code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void printNavBlock() {
StringBuilder buf = new StringBuilder("GRID NAVIGATION:");
if (navBlock != null) {
buf.append(navBlock.toString());
} else {
buf.append("\n\tUNKNOWN GRID NAVIGATION");
}
System.out.println(buf.toString());
} } | public class class_name {
public void printNavBlock() {
StringBuilder buf = new StringBuilder("GRID NAVIGATION:");
if (navBlock != null) {
buf.append(navBlock.toString()); // depends on control dependency: [if], data = [(navBlock]
} else {
buf.append("\n\tUNKNOWN GRID NAVIGATION"); // depends o... |
public class class_name {
public void exiting(Object object) {
if (!getLogger().isLoggable(Level.FINER)) {
return;
}
FrameInfo fi = getLoggingFrame();
getLogger().exiting(fi.className, fi.methodName, object);
} } | public class class_name {
public void exiting(Object object) {
if (!getLogger().isLoggable(Level.FINER)) {
return; // depends on control dependency: [if], data = [none]
}
FrameInfo fi = getLoggingFrame();
getLogger().exiting(fi.className, fi.methodName, object);
} } |
public class class_name {
public EClass getTilePosition() {
if (tilePositionEClass == null) {
tilePositionEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(394);
}
return tilePositionEClass;
} } | public class class_name {
public EClass getTilePosition() {
if (tilePositionEClass == null) {
tilePositionEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(394); // depends on control dependency: [if], data = [none]
}
return tilePositionEClass;
} } |
public class class_name {
public static Props getPropsFromYamlFile(final String path, final File flowFile) {
final List<Props> propsList = new ArrayList<>();
final NodeBeanLoader loader = new NodeBeanLoader();
try {
final NodeBean nodeBean = loader.load(flowFile);
final String[] pathList = pat... | public class class_name {
public static Props getPropsFromYamlFile(final String path, final File flowFile) {
final List<Props> propsList = new ArrayList<>();
final NodeBeanLoader loader = new NodeBeanLoader();
try {
final NodeBean nodeBean = loader.load(flowFile);
final String[] pathList = pat... |
public class class_name {
public void init (
String nodeName, String sharedSecret, String hostName, String publicHostName,
String region, int port, String nodeNamespace, boolean adHoc)
{
_nodeName = nodeName;
_sharedSecret = sharedSecret;
_nodeNamespace = nodeNamespace;
... | public class class_name {
public void init (
String nodeName, String sharedSecret, String hostName, String publicHostName,
String region, int port, String nodeNamespace, boolean adHoc)
{
_nodeName = nodeName;
_sharedSecret = sharedSecret;
_nodeNamespace = nodeNamespace;
... |
public class class_name {
@Override
public void close() {
synchronized (this) {
LOG.log(Level.FINER, "Close launcher: job {0} with status {1}", new Object[] {this.theJob, this.status});
if (this.status.isRunning()) {
this.status = LauncherStatus.FORCE_CLOSED;
}
if (null != this.th... | public class class_name {
@Override
public void close() {
synchronized (this) {
LOG.log(Level.FINER, "Close launcher: job {0} with status {1}", new Object[] {this.theJob, this.status});
if (this.status.isRunning()) {
this.status = LauncherStatus.FORCE_CLOSED; // depends on control dependency:... |
public class class_name {
@UiThread
public void notifyParentMoved(int fromParentPosition, int toParentPosition) {
int fromFlatParentPosition = getFlatParentPosition(fromParentPosition);
ExpandableWrapper<P, C> fromParentWrapper = mFlatItemList.get(fromFlatParentPosition);
// If the parent ... | public class class_name {
@UiThread
public void notifyParentMoved(int fromParentPosition, int toParentPosition) {
int fromFlatParentPosition = getFlatParentPosition(fromParentPosition);
ExpandableWrapper<P, C> fromParentWrapper = mFlatItemList.get(fromFlatParentPosition);
// If the parent ... |
public class class_name {
public void marshall(Nameserver nameserver, ProtocolMarshaller protocolMarshaller) {
if (nameserver == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(nameserver.getName(), ... | public class class_name {
public void marshall(Nameserver nameserver, ProtocolMarshaller protocolMarshaller) {
if (nameserver == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(nameserver.getName(), ... |
public class class_name {
public void marshall(FleetAttributes fleetAttributes, ProtocolMarshaller protocolMarshaller) {
if (fleetAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(fleetAt... | public class class_name {
public void marshall(FleetAttributes fleetAttributes, ProtocolMarshaller protocolMarshaller) {
if (fleetAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(fleetAt... |
public class class_name {
public static int convertToJDBCCode(int op) {
if (CRUD_MAP.containsKey(op)){
return CRUD_MAP.get(op);
}
throw new UnsupportedOperationException(Utils.format("Operation code {} is not supported", op));
} } | public class class_name {
public static int convertToJDBCCode(int op) {
if (CRUD_MAP.containsKey(op)){
return CRUD_MAP.get(op); // depends on control dependency: [if], data = [none]
}
throw new UnsupportedOperationException(Utils.format("Operation code {} is not supported", op));
} } |
public class class_name {
protected static void invalidateSwitchPoints() {
if (LOG_ENABLED) {
LOG.info("invalidating switch point");
}
SwitchPoint old = switchPoint;
switchPoint = new SwitchPoint();
synchronized(IndyInterface.class) { SwitchPoin... | public class class_name {
protected static void invalidateSwitchPoints() {
if (LOG_ENABLED) {
LOG.info("invalidating switch point"); // depends on control dependency: [if], data = [none]
}
SwitchPoint old = switchPoint;
switchPoint = new SwitchPoint();
... |
public class class_name {
private static void replaceWord(StringBuilder input, String word, String replace, boolean ignoreCase) {
// The string where we look for (lower case if ignoreCase)
StringBuilder workInput;
// The string to find (lower case if ignoreCase)
String workWord;
... | public class class_name {
private static void replaceWord(StringBuilder input, String word, String replace, boolean ignoreCase) {
// The string where we look for (lower case if ignoreCase)
StringBuilder workInput;
// The string to find (lower case if ignoreCase)
String workWord;
... |
public class class_name {
public void createCheckpoint() {
if (logger.isLoggable(Level.INFO))
logger.info("Start creating checkpoint");
if (MY_METHOD == METHOD_MONITOR) {
if (VanillaDb.txMgr().getNextTxNum() - lastTxNum > TX_COUNT_TO_CHECKPOINT) {
Transaction tx = VanillaDb.txMgr().newTransaction(
... | public class class_name {
public void createCheckpoint() {
if (logger.isLoggable(Level.INFO))
logger.info("Start creating checkpoint");
if (MY_METHOD == METHOD_MONITOR) {
if (VanillaDb.txMgr().getNextTxNum() - lastTxNum > TX_COUNT_TO_CHECKPOINT) {
Transaction tx = VanillaDb.txMgr().newTransaction(
... |
public class class_name {
public static Iterator<Token[]> tokenIterator(ItemRule itemRule) {
Iterator<Token[]> it = null;
if (itemRule.isListableType()) {
List<Token[]> list = itemRule.getTokensList();
if (list != null) {
it = list.iterator();
}
... | public class class_name {
public static Iterator<Token[]> tokenIterator(ItemRule itemRule) {
Iterator<Token[]> it = null;
if (itemRule.isListableType()) {
List<Token[]> list = itemRule.getTokensList();
if (list != null) {
it = list.iterator(); // depends on contr... |
public class class_name {
public static String removePrefixPath(final String prefix,
final String resource) {
String normalizedResource = resource;
if (normalizedResource.startsWith(prefix)) {
normalizedResource = normalizedResource
.substring(prefix.length() - 1);
}
return normalizedResour... | public class class_name {
public static String removePrefixPath(final String prefix,
final String resource) {
String normalizedResource = resource;
if (normalizedResource.startsWith(prefix)) {
normalizedResource = normalizedResource
.substring(prefix.length() - 1);
// depends on control dependency... |
public class class_name {
public static Map<String, Object> queryForMap(String sql, Object... args) {
Map<String, Object> result = new HashMap<String, Object>();
List<Map<String, Object>> list = queryForList(sql, args);
if (list.size() > 0) {
result = list.get(0);
}
return result;
} } | public class class_name {
public static Map<String, Object> queryForMap(String sql, Object... args) {
Map<String, Object> result = new HashMap<String, Object>();
List<Map<String, Object>> list = queryForList(sql, args);
if (list.size() > 0) {
result = list.get(0); // depends on control dependency: [if], data ... |
public class class_name {
void formatHours(StringBuilder b, ZonedDateTime d, int width, boolean twelveHour) {
int hours = d.getHour();
if (twelveHour && hours > 12) {
hours = hours - 12;
}
if (twelveHour && hours == 0) {
hours = 12;
}
zeroPad2(b, hours, width);
} } | public class class_name {
void formatHours(StringBuilder b, ZonedDateTime d, int width, boolean twelveHour) {
int hours = d.getHour();
if (twelveHour && hours > 12) {
hours = hours - 12; // depends on control dependency: [if], data = [none]
}
if (twelveHour && hours == 0) {
hours = 12; // d... |
public class class_name {
public static String getLabel(FacesContext context, UIComponent comp) {
Object o = comp.getAttributes().get("label");
if (o == null || (o instanceof String && ((String) o).length() == 0)) {
ValueExpression vex = comp.getValueExpression("label");
if (null != vex)
return (String) ... | public class class_name {
public static String getLabel(FacesContext context, UIComponent comp) {
Object o = comp.getAttributes().get("label");
if (o == null || (o instanceof String && ((String) o).length() == 0)) {
ValueExpression vex = comp.getValueExpression("label");
if (null != vex)
return (String) ... |
public class class_name {
private <IN1, IN2> TypeInformation<?>[] createSubTypesInfo(Type originalType, ParameterizedType definingType,
ArrayList<Type> typeHierarchy, TypeInformation<IN1> in1Type, TypeInformation<IN2> in2Type, boolean lenient) {
Type[] subtypes = new Type[definingType.getActualTypeArguments().len... | public class class_name {
private <IN1, IN2> TypeInformation<?>[] createSubTypesInfo(Type originalType, ParameterizedType definingType,
ArrayList<Type> typeHierarchy, TypeInformation<IN1> in1Type, TypeInformation<IN2> in2Type, boolean lenient) {
Type[] subtypes = new Type[definingType.getActualTypeArguments().len... |
public class class_name {
public static void invertLower( double L[] , int m ) {
for( int i = 0; i < m; i++ ) {
double L_ii = L[ i*m + i ];
for( int j = 0; j < i; j++ ) {
double val = 0;
for( int k = j; k < i; k++ ) {
val += L[ i*m + k... | public class class_name {
public static void invertLower( double L[] , int m ) {
for( int i = 0; i < m; i++ ) {
double L_ii = L[ i*m + i ];
for( int j = 0; j < i; j++ ) {
double val = 0;
for( int k = j; k < i; k++ ) {
val += L[ i*m + k... |
public class class_name {
public static Font createFont(File fontFile) {
try {
return Font.createFont(Font.TRUETYPE_FONT, fontFile);
} catch (FontFormatException e) {
// True Type字体无效时使用Type1字体
try {
return Font.createFont(Font.TYPE1_FONT, fontFile);
} catch (Exception e1) {
throw new U... | public class class_name {
public static Font createFont(File fontFile) {
try {
return Font.createFont(Font.TRUETYPE_FONT, fontFile);
// depends on control dependency: [try], data = [none]
} catch (FontFormatException e) {
// True Type字体无效时使用Type1字体
try {
return Font.createFont(Font.TYPE1_FONT, f... |
public class class_name {
public byte[] compRequest(CommsConnection conn, int productVersion, int packetId, byte[] data) {
//Venu liberty change
// using CommsConstants instead of JfapChanelConstants
if(packetId == CommsConstants.SEG_REQUEST_SCHEMA){
// get the requested schemata from the SchemaMan... | public class class_name {
public byte[] compRequest(CommsConnection conn, int productVersion, int packetId, byte[] data) {
//Venu liberty change
// using CommsConstants instead of JfapChanelConstants
if(packetId == CommsConstants.SEG_REQUEST_SCHEMA){
// get the requested schemata from the SchemaMan... |
public class class_name {
public static Object stringToSqlValue(String value, int sqlType, boolean isRequired, boolean isEmptyStringNulled) {
// 设置变量
String sourceValue = value;
if (SqlUtils.isTextType(sqlType)) {
if ((sourceValue == null) || (true == StringUtils.isEmpty(sourceValue... | public class class_name {
public static Object stringToSqlValue(String value, int sqlType, boolean isRequired, boolean isEmptyStringNulled) {
// 设置变量
String sourceValue = value;
if (SqlUtils.isTextType(sqlType)) {
if ((sourceValue == null) || (true == StringUtils.isEmpty(sourceValue... |
public class class_name {
public static IUnitizingAnnotationUnit findNextUnit(
final Iterator<IUnitizingAnnotationUnit> units, int raterIdx,
final Object category) {
while (units.hasNext()) {
IUnitizingAnnotationUnit result = units.next();
if (category != null && !category.equals(result.getCategory(... | public class class_name {
public static IUnitizingAnnotationUnit findNextUnit(
final Iterator<IUnitizingAnnotationUnit> units, int raterIdx,
final Object category) {
while (units.hasNext()) {
IUnitizingAnnotationUnit result = units.next();
if (category != null && !category.equals(result.getCategory(... |
public class class_name {
public TypeSignature getTypeSignature(Type type) {
FullTypeSignature typeSignature = getFullTypeSignature(type);
if (typeSignature != null) {
return typeSignature;
}
if (type instanceof WildcardType) {
return getTypeArgSignature((WildcardType) type);
}
return null;
... | public class class_name {
public TypeSignature getTypeSignature(Type type) {
FullTypeSignature typeSignature = getFullTypeSignature(type);
if (typeSignature != null) {
return typeSignature;
// depends on control dependency: [if], data = [none]
}
if (type instanceof WildcardType) {
return getTypeArg... |
public class class_name {
public static DateItem fromString(String code) {
String[] items = code.split("\n");
if(items.length != 6) return null;
int year, month, day, id;
try {
year = Integer.parseInt(items[2]);
month = Integer.parseInt(items[3]);
day... | public class class_name {
public static DateItem fromString(String code) {
String[] items = code.split("\n");
if(items.length != 6) return null;
int year, month, day, id;
try {
year = Integer.parseInt(items[2]); // depends on control dependency: [try], data = [none]
... |
public class class_name {
private LockedObject generateLockedObjects( String path ) {
if (!locks.containsKey(path)) {
LockedObject returnObject = new LockedObject(this, path, !temporary);
String parentPath = getParentPath(path);
if (parentPath != null) {
Lock... | public class class_name {
private LockedObject generateLockedObjects( String path ) {
if (!locks.containsKey(path)) {
LockedObject returnObject = new LockedObject(this, path, !temporary);
String parentPath = getParentPath(path);
if (parentPath != null) {
Lock... |
public class class_name {
public static DeploymentType parseDeployment(String deploymentURL) {
// get the URL/path for the deployment and prep an InputStream
InputStream deployIS = null;
try {
URL deployURL = new URL(deploymentURL);
deployIS = deployURL.openStream();
... | public class class_name {
public static DeploymentType parseDeployment(String deploymentURL) {
// get the URL/path for the deployment and prep an InputStream
InputStream deployIS = null;
try {
URL deployURL = new URL(deploymentURL);
deployIS = deployURL.openStream(); // ... |
public class class_name {
static private float[][] splitArray(final float[] array, final int blockSize)
{
int size = array.length / blockSize;
float[][] split = new float[size][];
for (int i = 0; i < size; i++)
{
split[i] = subArray(array, i * blockSize, blockSize);
}
return split;
} } | public class class_name {
static private float[][] splitArray(final float[] array, final int blockSize)
{
int size = array.length / blockSize;
float[][] split = new float[size][];
for (int i = 0; i < size; i++)
{
split[i] = subArray(array, i * blockSize, blockSize); // depends on control dependency: [for],... |
public class class_name {
private String getTextChunk(final String string, final int slength,
final int marker) {
final StringBuilder chunk = new StringBuilder();
for (int index = marker; index < slength; index++) {
final char c = string.charAt(index);
if (isDigit(c)... | public class class_name {
private String getTextChunk(final String string, final int slength,
final int marker) {
final StringBuilder chunk = new StringBuilder();
for (int index = marker; index < slength; index++) {
final char c = string.charAt(index);
if (isDigit(c)... |
public class class_name {
private void setAdminAttribute(Account account) {
if (adminGroups != null) {
for (String adminGroup : adminGroups) {
if (adminGroup.startsWith("@") && account.getUsername().equalsIgnoreCase(adminGroup.substring(1))) {
// admin user
... | public class class_name {
private void setAdminAttribute(Account account) {
if (adminGroups != null) {
for (String adminGroup : adminGroups) {
if (adminGroup.startsWith("@") && account.getUsername().equalsIgnoreCase(adminGroup.substring(1))) {
// admin user
... |
public class class_name {
public ReleaseHostsResult withSuccessful(String... successful) {
if (this.successful == null) {
setSuccessful(new com.amazonaws.internal.SdkInternalList<String>(successful.length));
}
for (String ele : successful) {
this.successful.add(ele);
... | public class class_name {
public ReleaseHostsResult withSuccessful(String... successful) {
if (this.successful == null) {
setSuccessful(new com.amazonaws.internal.SdkInternalList<String>(successful.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : s... |
public class class_name {
private Object readOrLoadItem(long sequence) {
Object item;
if (sequence < ringbuffer.headSequence() && store.isEnabled()) {
item = store.load(sequence);
} else {
item = ringbuffer.read(sequence);
}
return item;
} } | public class class_name {
private Object readOrLoadItem(long sequence) {
Object item;
if (sequence < ringbuffer.headSequence() && store.isEnabled()) {
item = store.load(sequence); // depends on control dependency: [if], data = [(sequence]
} else {
item = ringbuffer.read(... |
public class class_name {
public void onLeafClick(LeafClickEvent event) {
try {
if (isIconTargetClicked()) {
onIconClick(event.getLeaf());
} else {
LayerTreeTreeNode layerTreeNode = (LayerTreeTreeNode) event.getLeaf();
mapModel.selectLayer(layerTreeNode.getLayer());
}
} catch (Exception e) { /... | public class class_name {
public void onLeafClick(LeafClickEvent event) {
try {
if (isIconTargetClicked()) {
onIconClick(event.getLeaf()); // depends on control dependency: [if], data = [none]
} else {
LayerTreeTreeNode layerTreeNode = (LayerTreeTreeNode) event.getLeaf();
mapModel.selectLayer(layer... |
public class class_name {
@Override
protected void doHandle(CommandContext ctx) throws CommandLineException {
final ModelControllerClient client = ctx.getModelControllerClient();
if(client == null) {
throw new CommandLineException("Connection is not available.");
}
if (... | public class class_name {
@Override
protected void doHandle(CommandContext ctx) throws CommandLineException {
final ModelControllerClient client = ctx.getModelControllerClient();
if(client == null) {
throw new CommandLineException("Connection is not available.");
}
if (... |
public class class_name {
public void push(T val)
{
backChunk.values[backPos] = val;
backChunk = endChunk;
backPos = endPos;
if (++endPos != size) {
return;
}
Chunk<T> sc = spareChunk;
if (sc != beginChunk) {
spareChunk = spareChunk.... | public class class_name {
public void push(T val)
{
backChunk.values[backPos] = val;
backChunk = endChunk;
backPos = endPos;
if (++endPos != size) {
return; // depends on control dependency: [if], data = [none]
}
Chunk<T> sc = spareChunk;
if (sc... |
public class class_name {
@Column(header = Messages.GUI_HISTORY_DIALOG_BUTTON_RESTORE_0, order = 6)
public Button getRestoreButton() {
if (m_bean.getVersion().getVersionNumber() == null) {
return null;
}
return m_restoreButton;
} } | public class class_name {
@Column(header = Messages.GUI_HISTORY_DIALOG_BUTTON_RESTORE_0, order = 6)
public Button getRestoreButton() {
if (m_bean.getVersion().getVersionNumber() == null) {
return null; // depends on control dependency: [if], data = [none]
}
return m_restoreButt... |
public class class_name {
public void updateInNavigation(CmsClientSitemapEntry entry) {
if (entry.isInNavigation()) {
m_inNavigationStyle.setValue(null);
getListItemWidget().setTitleEditable(true);
} else {
m_inNavigationStyle.setValue(CSS.notInNavigationEntry());
... | public class class_name {
public void updateInNavigation(CmsClientSitemapEntry entry) {
if (entry.isInNavigation()) {
m_inNavigationStyle.setValue(null); // depends on control dependency: [if], data = [none]
getListItemWidget().setTitleEditable(true); // depends on control dependency: ... |
public class class_name {
private String removeLocalParamPrefix(final String q) {
int index = q.indexOf('}');
if (index >= 0) {
return q.substring(index + 1);
}
return q;
} } | public class class_name {
private String removeLocalParamPrefix(final String q) {
int index = q.indexOf('}');
if (index >= 0) {
return q.substring(index + 1); // depends on control dependency: [if], data = [(index]
}
return q;
} } |
public class class_name {
protected int getNumberOfSelectedMessages(HttpMessageContainer httpMessageContainer) {
if (httpMessageContainer instanceof SelectableHttpMessagesContainer) {
return ((SelectableHttpMessagesContainer) httpMessageContainer).getNumberOfSelectedMessages();
} else if (h... | public class class_name {
protected int getNumberOfSelectedMessages(HttpMessageContainer httpMessageContainer) {
if (httpMessageContainer instanceof SelectableHttpMessagesContainer) {
return ((SelectableHttpMessagesContainer) httpMessageContainer).getNumberOfSelectedMessages(); // depends on contro... |
public class class_name {
public static <K, V> void putAll(Map<K, V> to, Map<? extends K, ? extends V> from) {
if (to != null && from != null) {
to.putAll(from);
}
} } | public class class_name {
public static <K, V> void putAll(Map<K, V> to, Map<? extends K, ? extends V> from) {
if (to != null && from != null) {
to.putAll(from); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void updateConfig(Map<String, Object> config) {
Object value = config.get(PROPERTY_CHAIN_START_RETRY_ATTEMPTS);
if (null != value) {
setChainStartRetryAttempts(value);
}
value = config.get(PROPERTY_CHAIN_START_RETRY_INTERVAL);
if (nu... | public class class_name {
public void updateConfig(Map<String, Object> config) {
Object value = config.get(PROPERTY_CHAIN_START_RETRY_ATTEMPTS);
if (null != value) {
setChainStartRetryAttempts(value); // depends on control dependency: [if], data = [value)]
}
value = config.... |
public class class_name {
@Override
public String path() {
try {
return new URI(request.uri()).getRawPath();
} catch (URISyntaxException e) { //NOSONAR
// Should never be the case.
return uri();
}
} } | public class class_name {
@Override
public String path() {
try {
return new URI(request.uri()).getRawPath(); // depends on control dependency: [try], data = [none]
} catch (URISyntaxException e) { //NOSONAR
// Should never be the case.
return uri();
} // ... |
public class class_name {
public static List <NameValuePair> parse (final URI uri, final String encoding) {
final String query = uri.getRawQuery();
if (query != null && query.length() > 0) {
List<NameValuePair> result = new ArrayList<NameValuePair>();
Scanner scanner = new Scann... | public class class_name {
public static List <NameValuePair> parse (final URI uri, final String encoding) {
final String query = uri.getRawQuery();
if (query != null && query.length() > 0) {
List<NameValuePair> result = new ArrayList<NameValuePair>();
Scanner scanner = new Scann... |
public class class_name {
public static Byte[] toObject(byte... a)
{
if (a != null) {
Byte[] w = new Byte[a.length];
for (int i = 0; i < a.length; i++) {
w[i] = a[i];
}
return w;
}
return null;
} } | public class class_name {
public static Byte[] toObject(byte... a)
{
if (a != null) {
Byte[] w = new Byte[a.length];
for (int i = 0; i < a.length; i++) {
w[i] = a[i]; // depends on control dependency: [for], data = [i]
}
return w; // depends on control dependency: [if], data = [none]
}
return nu... |
public class class_name {
public void goToHour(double hour){
if (mAreDimensionsInvalid) {
mScrollToHour = hour;
return;
}
int verticalOffset = 0;
if (hour > 24)
verticalOffset = mHourHeight * 24;
else if (hour > 0)
verticalOffset ... | public class class_name {
public void goToHour(double hour){
if (mAreDimensionsInvalid) {
mScrollToHour = hour; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
int verticalOffset = 0;
if (hour... |
public class class_name {
protected void makeCoordinateAxes(NetcdfDataset ncDataset) {
for (VarProcess vp : varList) {
if (vp.isCoordinateAxis || vp.isCoordinateVariable) {
if (vp.axisType == null)
vp.axisType = getAxisType(ncDataset, (VariableEnhanced) vp.v);
if (vp.axisType =... | public class class_name {
protected void makeCoordinateAxes(NetcdfDataset ncDataset) {
for (VarProcess vp : varList) {
if (vp.isCoordinateAxis || vp.isCoordinateVariable) {
if (vp.axisType == null)
vp.axisType = getAxisType(ncDataset, (VariableEnhanced) vp.v);
if (vp.axisType =... |
public class class_name {
public void setPrincipals(java.util.Collection<PrincipalIdFormat> principals) {
if (principals == null) {
this.principals = null;
return;
}
this.principals = new com.amazonaws.internal.SdkInternalList<PrincipalIdFormat>(principals);
} } | public class class_name {
public void setPrincipals(java.util.Collection<PrincipalIdFormat> principals) {
if (principals == null) {
this.principals = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private static <T, E extends Exception> T runWithOurClassLoader(final Callable<T> action, Class<E> allowed) throws E {
PrivilegedExceptionAction<T> actionWithClassloader = new PrivilegedExceptionAction<T>() {
public T run() throws Exception {
ClassLoader or... | public class class_name {
private static <T, E extends Exception> T runWithOurClassLoader(final Callable<T> action, Class<E> allowed) throws E {
PrivilegedExceptionAction<T> actionWithClassloader = new PrivilegedExceptionAction<T>() {
public T run() throws Exception {
ClassLoader or... |
public class class_name {
@Override
public EClass getIfcRatioMeasure() {
if (ifcRatioMeasureEClass == null) {
ifcRatioMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(856);
}
return ifcRatioMeasureEClass;
} } | public class class_name {
@Override
public EClass getIfcRatioMeasure() {
if (ifcRatioMeasureEClass == null) {
ifcRatioMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(856);
// depends on control dependency: [if], data = [none]
}
return ifc... |
public class class_name {
@Nullable
private String _parseToken (final char cTerminator1, final char cTerminator2)
{
char ch;
m_nIndex1 = m_nPos;
m_nIndex2 = m_nPos;
while (_hasChar ())
{
ch = m_aChars[m_nPos];
if (ch == cTerminator1 || ch == cTerminator2)
break;
m_nInd... | public class class_name {
@Nullable
private String _parseToken (final char cTerminator1, final char cTerminator2)
{
char ch;
m_nIndex1 = m_nPos;
m_nIndex2 = m_nPos;
while (_hasChar ())
{
ch = m_aChars[m_nPos]; // depends on control dependency: [while], data = [none]
if (ch == cTermi... |
public class class_name {
public NFNota notaParaObjeto(final File xml) {
try {
return this.persister.read(NFNota.class, xml);
} catch (final Exception e) {
throw new IllegalArgumentException(String.format("Nao foi possivel parsear o xml: %s", e.getMessage()));
}
} } | public class class_name {
public NFNota notaParaObjeto(final File xml) {
try {
return this.persister.read(NFNota.class, xml); // depends on control dependency: [try], data = [none]
} catch (final Exception e) {
throw new IllegalArgumentException(String.format("Nao foi possivel p... |
public class class_name {
public String getPeerPublicHostName (String nodeName)
{
if (Objects.equal(_nodeName, nodeName)) {
return _self.publicHostName;
}
PeerNode peer = _peers.get(nodeName);
return (peer == null) ? null : peer.getPublicHostName();
} } | public class class_name {
public String getPeerPublicHostName (String nodeName)
{
if (Objects.equal(_nodeName, nodeName)) {
return _self.publicHostName; // depends on control dependency: [if], data = [none]
}
PeerNode peer = _peers.get(nodeName);
return (peer == null) ? ... |
public class class_name {
private void adjustApproximatedKNNDistances(MkCoPEntry entry, Map<DBID, KNNList> knnLists) {
MkCoPTreeNode<O> node = getNode(entry);
if(node.isLeaf()) {
for(int i = 0; i < node.getNumEntries(); i++) {
MkCoPLeafEntry leafEntry = (MkCoPLeafEntry) node.getEntry(i);
... | public class class_name {
private void adjustApproximatedKNNDistances(MkCoPEntry entry, Map<DBID, KNNList> knnLists) {
MkCoPTreeNode<O> node = getNode(entry);
if(node.isLeaf()) {
for(int i = 0; i < node.getNumEntries(); i++) {
MkCoPLeafEntry leafEntry = (MkCoPLeafEntry) node.getEntry(i);
... |
public class class_name {
private static Observable<PingServiceHealth> pingQuery(
final NetworkAddress hostname, final String bucket, final String password,
final ClusterFacade core, final long timeout, final TimeUnit timeUnit) {
final AtomicReference<CouchbaseRequest> request = new AtomicRefer... | public class class_name {
private static Observable<PingServiceHealth> pingQuery(
final NetworkAddress hostname, final String bucket, final String password,
final ClusterFacade core, final long timeout, final TimeUnit timeUnit) {
final AtomicReference<CouchbaseRequest> request = new AtomicRefer... |
public class class_name {
public void dumpTo(OutputStream out)
{
PrintWriter writer;
try {
writer = new PrintWriter(new OutputStreamWriter(out, "utf-8"));
} catch (UnsupportedEncodingException e) {
writer = new PrintWriter(out);
}
recursiveDump(root, ... | public class class_name {
public void dumpTo(OutputStream out)
{
PrintWriter writer;
try {
writer = new PrintWriter(new OutputStreamWriter(out, "utf-8")); // depends on control dependency: [try], data = [none]
} catch (UnsupportedEncodingException e) {
writer = new P... |
public class class_name {
public static String escapeHtml(String source) {
if (source == null) {
return null;
}
source = escapeXml(source);
source = substitute(source, "\r", "");
source = substitute(source, "\n", "<br/>\n");
return source;
} } | public class class_name {
public static String escapeHtml(String source) {
if (source == null) {
return null; // depends on control dependency: [if], data = [none]
}
source = escapeXml(source);
source = substitute(source, "\r", "");
source = substitute(source, "\n", ... |
public class class_name {
public Observable<ServiceResponse<Page<StorageAccountInfoInner>>> listStorageAccountsNextWithServiceResponseAsync(final String nextPageLink) {
return listStorageAccountsNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<StorageAccountInfoInner>>, O... | public class class_name {
public Observable<ServiceResponse<Page<StorageAccountInfoInner>>> listStorageAccountsNextWithServiceResponseAsync(final String nextPageLink) {
return listStorageAccountsNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<StorageAccountInfoInner>>, O... |
public class class_name {
protected void closeConnection(final String meUuid)
{
final String methodName = "closeConnection";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, meUuid);
}
closeConn... | public class class_name {
protected void closeConnection(final String meUuid)
{
final String methodName = "closeConnection";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, meUuid); // depends on control dependency: [i... |
public class class_name {
public static String joinP(String delimiter, char... chars) {
StringBuilder builder = new StringBuilder(chars.length + (delimiter.length() * chars.length));
boolean first = true;
for (char c : chars) {
if (first) {
first = false;
... | public class class_name {
public static String joinP(String delimiter, char... chars) {
StringBuilder builder = new StringBuilder(chars.length + (delimiter.length() * chars.length));
boolean first = true;
for (char c : chars) {
if (first) {
first = false; // depends ... |
public class class_name {
@Override
public LocalDate with(TemporalField field, long newValue) {
if (field instanceof ChronoField) {
ChronoField f = (ChronoField) field;
f.checkValidValue(newValue);
switch (f) {
case DAY_OF_WEEK: return plusDays(newValue -... | public class class_name {
@Override
public LocalDate with(TemporalField field, long newValue) {
if (field instanceof ChronoField) {
ChronoField f = (ChronoField) field;
f.checkValidValue(newValue); // depends on control dependency: [if], data = [none]
switch (f) {
... |
public class class_name {
private static GeometricParity geometric2D(Map<IAtom, Integer> elevationMap, List<IBond> bonds, int i,
int[] adjacent, IAtomContainer container) {
IAtom atom = container.getAtom(i);
// create map of the atoms and their elevation from the center,
makeEleva... | public class class_name {
private static GeometricParity geometric2D(Map<IAtom, Integer> elevationMap, List<IBond> bonds, int i,
int[] adjacent, IAtomContainer container) {
IAtom atom = container.getAtom(i);
// create map of the atoms and their elevation from the center,
makeEleva... |
public class class_name {
public com.groupon.odo.proxylib.models.Method getMethodForEnabledId(int enabledId) {
com.groupon.odo.proxylib.models.Method method = null;
int override_id = 0;
PreparedStatement queryStatement = null;
ResultSet results = null;
try (Connection sqlConnec... | public class class_name {
public com.groupon.odo.proxylib.models.Method getMethodForEnabledId(int enabledId) {
com.groupon.odo.proxylib.models.Method method = null;
int override_id = 0;
PreparedStatement queryStatement = null;
ResultSet results = null;
try (Connection sqlConnec... |
public class class_name {
public String getJsDoc() {
Comment comment = getJsDocNode();
if (comment != null) {
return comment.getValue();
}
return null;
} } | public class class_name {
public String getJsDoc() {
Comment comment = getJsDocNode();
if (comment != null) {
return comment.getValue(); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public DoubleVector centerOfMass() {
// Handle lazy initialization
if (centroid == null) {
if (indices.size() == 1)
centroid = sumVector;
else {
// Update the centroid by normalizing by the number of elements.
... | public class class_name {
public DoubleVector centerOfMass() {
// Handle lazy initialization
if (centroid == null) {
if (indices.size() == 1)
centroid = sumVector;
else {
// Update the centroid by normalizing by the number of elements.
... |
public class class_name {
private static synchronized LogRecordHandler getBinaryHandler() {
if (binaryHandler == null) {
binaryHandler = new LogRecordHandler(TRACE_THRESHOLD, LogRepositoryManagerImpl.KNOWN_FORMATTERS[0]);
}
return binaryHandler;
} } | public class class_name {
private static synchronized LogRecordHandler getBinaryHandler() {
if (binaryHandler == null) {
binaryHandler = new LogRecordHandler(TRACE_THRESHOLD, LogRepositoryManagerImpl.KNOWN_FORMATTERS[0]); // depends on control dependency: [if], data = [none]
}
return binaryHandler;
} } |
public class class_name {
public List<List<Object>> getParameterSet(final Statement statement) {
List<List<Object>> result = new LinkedList<>();
for (ShardingExecuteGroup<StatementExecuteUnit> each : getExecuteGroups()) {
Optional<StatementExecuteUnit> target = getStatementExecuteUnit(state... | public class class_name {
public List<List<Object>> getParameterSet(final Statement statement) {
List<List<Object>> result = new LinkedList<>();
for (ShardingExecuteGroup<StatementExecuteUnit> each : getExecuteGroups()) {
Optional<StatementExecuteUnit> target = getStatementExecuteUnit(state... |
public class class_name {
public void marshall(ListResourceInventoryRequest listResourceInventoryRequest, ProtocolMarshaller protocolMarshaller) {
if (listResourceInventoryRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ListResourceInventoryRequest listResourceInventoryRequest, ProtocolMarshaller protocolMarshaller) {
if (listResourceInventoryRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
@Override
public void mouseClicked(MouseEvent evt) {
if (evt.getClickCount() == 2) {
triggerMaximisation((Component) evt.getSource());
}
} } | public class class_name {
@Override
public void mouseClicked(MouseEvent evt) {
if (evt.getClickCount() == 2) {
triggerMaximisation((Component) evt.getSource()); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
protected static double calcFirstScore(double estimatedValue, double realValue,
double estimatedSigma, int smoothingWindow)
{
if (estimatedSigma == 0)
{
return 0.0d;
}
else
{
// 確率密度関数を適用した結果を算出
double... | public class class_name {
protected static double calcFirstScore(double estimatedValue, double realValue,
double estimatedSigma, int smoothingWindow)
{
if (estimatedSigma == 0)
{
return 0.0d; // depends on control dependency: [if], data = [none]
}
else
... |
public class class_name {
public double getProd() {
double prod = s.one();
for (int c = 0; c < this.values.length; c++) {
prod = s.times(prod, values[c]);
}
return prod;
} } | public class class_name {
public double getProd() {
double prod = s.one();
for (int c = 0; c < this.values.length; c++) {
prod = s.times(prod, values[c]); // depends on control dependency: [for], data = [c]
}
return prod;
} } |
public class class_name {
public Observable<ServiceResponse<Page<DetectorResponseInner>>> listSiteDetectorResponsesSlotSinglePageAsync(final String resourceGroupName, final String siteName, final String slot) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceG... | public class class_name {
public Observable<ServiceResponse<Page<DetectorResponseInner>>> listSiteDetectorResponsesSlotSinglePageAsync(final String resourceGroupName, final String siteName, final String slot) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceG... |
public class class_name {
public long getRowCount(String tileSourceName) {
if (tileSourceName == null) {
return getRowCount(null, null);
}
return getRowCount(COLUMN_PROVIDER + "=?", new String[] {tileSourceName});
} } | public class class_name {
public long getRowCount(String tileSourceName) {
if (tileSourceName == null) {
return getRowCount(null, null); // depends on control dependency: [if], data = [null)]
}
return getRowCount(COLUMN_PROVIDER + "=?", new String[] {tileSourceName});
} } |
public class class_name {
public static Object lookup(String name)
{
Exception ex = null;
try {
Object value = new InitialContext().lookup(name);
if (value != null)
return value;
} catch (NamingException e) {
ex = e;
}
if (! name.startsWith("java:")) {
t... | public class class_name {
public static Object lookup(String name)
{
Exception ex = null;
try {
Object value = new InitialContext().lookup(name);
if (value != null)
return value;
} catch (NamingException e) {
ex = e;
} // depends on control dependency: [catch], dat... |
public class class_name {
public <X> DataSource<X> readFile(FileInputFormat<X> inputFormat, String filePath) {
if (inputFormat == null) {
throw new IllegalArgumentException("InputFormat must not be null.");
}
if (filePath == null) {
throw new IllegalArgumentException("The file path must not be null.");
}... | public class class_name {
public <X> DataSource<X> readFile(FileInputFormat<X> inputFormat, String filePath) {
if (inputFormat == null) {
throw new IllegalArgumentException("InputFormat must not be null.");
}
if (filePath == null) {
throw new IllegalArgumentException("The file path must not be null.");
}... |
public class class_name {
private void computeMean() {
meanError = 0;
int size = allPoints.size();
for (PointIndex<Point> inlier : allPoints) {
Point pt = inlier.data;
meanError += modelError.computeDistance(pt);
}
meanError /= size;
} } | public class class_name {
private void computeMean() {
meanError = 0;
int size = allPoints.size();
for (PointIndex<Point> inlier : allPoints) {
Point pt = inlier.data;
meanError += modelError.computeDistance(pt); // depends on control dependency: [for], data = [none]
}
meanError /= size;
} } |
public class class_name {
private static boolean contains(Object[] arr, Object member) {
for (Object mem : arr) {
if (Objects.equals(mem, member)) {
return true;
}
}
return false;
} } | public class class_name {
private static boolean contains(Object[] arr, Object member) {
for (Object mem : arr) {
if (Objects.equals(mem, member)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
@Override
@SuppressFBWarnings ("IL_INFINITE_LOOP")
public void write (final char [] cbuf, final int nOfs, final int nLen) throws IOException
{
_ensureOpen ();
ValueEnforcer.isArrayOfsLen (cbuf, nOfs, nLen);
if (nLen == 0)
return;
if (nLen >= m_nChars)
{
... | public class class_name {
@Override
@SuppressFBWarnings ("IL_INFINITE_LOOP")
public void write (final char [] cbuf, final int nOfs, final int nLen) throws IOException
{
_ensureOpen ();
ValueEnforcer.isArrayOfsLen (cbuf, nOfs, nLen);
if (nLen == 0)
return;
if (nLen >= m_nChars)
{
... |
public class class_name {
public int delete(CMASpaceMembership membership) {
final String id = getResourceIdOrThrow(membership, "membership");
final String spaceId = getSpaceIdOrThrow(membership, "membership");
final CMASystem sys = membership.getSystem();
membership.setSystem(null);
try {
... | public class class_name {
public int delete(CMASpaceMembership membership) {
final String id = getResourceIdOrThrow(membership, "membership");
final String spaceId = getSpaceIdOrThrow(membership, "membership");
final CMASystem sys = membership.getSystem();
membership.setSystem(null);
try {
... |
public class class_name {
public void parse() throws EOFException {
if (!startedStreaming && levelStack.isEmpty()) {
readNextChar(null);
switch (currentChar) {
case (byte) 0xEF:
pushLevel(Mode.BOM);
break;
case O_C... | public class class_name {
public void parse() throws EOFException {
if (!startedStreaming && levelStack.isEmpty()) {
readNextChar(null);
switch (currentChar) {
case (byte) 0xEF:
pushLevel(Mode.BOM);
break;
case O_C... |
public class class_name {
@GET
@Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
@Path("/{gavc}")
public Response get(@PathParam("gavc") final String gavc){
if(LOG.isInfoEnabled()) {
LOG.info(String.format("Got a get artifact request [%s]", gavc));
}
final Ar... | public class class_name {
@GET
@Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
@Path("/{gavc}")
public Response get(@PathParam("gavc") final String gavc){
if(LOG.isInfoEnabled()) {
LOG.info(String.format("Got a get artifact request [%s]", gavc)); // depends on control depen... |
public class class_name {
public static String removeQuerystring(String uriString) {
URI uri = createURI(uriString);
try {
return new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), uri.getPath(), null, null)
.toASCIIString();
} catch (URISy... | public class class_name {
public static String removeQuerystring(String uriString) {
URI uri = createURI(uriString);
try {
return new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), uri.getPath(), null, null)
.toASCIIString(); // depends on control ... |
public class class_name {
public static boolean bestFit( Se3_F64 a ) {
SingularValueDecomposition_F64<DMatrixRMaj> svd = DecompositionFactory_DDRM.svd(true,true,true);
if( !svd.decompose(a.R))
throw new RuntimeException("SVD Failed");
CommonOps_DDRM.multTransB(svd.getU(null,false),svd.getV(null,false),a.R);... | public class class_name {
public static boolean bestFit( Se3_F64 a ) {
SingularValueDecomposition_F64<DMatrixRMaj> svd = DecompositionFactory_DDRM.svd(true,true,true);
if( !svd.decompose(a.R))
throw new RuntimeException("SVD Failed");
CommonOps_DDRM.multTransB(svd.getU(null,false),svd.getV(null,false),a.R);... |
public class class_name {
private void iterateChangedAndAdded(ZipEntryOrInfoAdapter zipEntryCallback) {
for (ZipEntrySource entrySource : changedEntries) {
InputStream entrySourceStream = null;
try {
ZipEntry entry = entrySource.getEntry();
if (nameMapper != null) {
String ma... | public class class_name {
private void iterateChangedAndAdded(ZipEntryOrInfoAdapter zipEntryCallback) {
for (ZipEntrySource entrySource : changedEntries) {
InputStream entrySourceStream = null;
try {
ZipEntry entry = entrySource.getEntry();
if (nameMapper != null) {
String ma... |
public class class_name {
public FillOptions withLatLngs(List<List<LatLng>> latLngs) {
List<List<Point>> points = new ArrayList<>();
for (List<LatLng> innerLatLngs : latLngs) {
List<Point>innerList = new ArrayList<>();
for (LatLng latLng : innerLatLngs) {
innerList.add(Point.fromLngLat(latL... | public class class_name {
public FillOptions withLatLngs(List<List<LatLng>> latLngs) {
List<List<Point>> points = new ArrayList<>();
for (List<LatLng> innerLatLngs : latLngs) {
List<Point>innerList = new ArrayList<>();
for (LatLng latLng : innerLatLngs) {
innerList.add(Point.fromLngLat(latL... |
public class class_name {
public <T extends LocalizableResource> T create(Class<T> cls, String locale) {
Locale l = null;
if (locale != null) {
String[] parts = locale.split("_", 3);
l = new Locale(
parts[0],
parts.length > 1 ? parts[1] : ... | public class class_name {
public <T extends LocalizableResource> T create(Class<T> cls, String locale) {
Locale l = null;
if (locale != null) {
String[] parts = locale.split("_", 3);
l = new Locale(
parts[0],
parts.length > 1 ? parts[1] : ... |
public class class_name {
public boolean sendCommand(String command) {
if (writer != null) {
try {
logger.info("Sending command " + command + " to remote host " + remoteHost);
writer.write(command);
writer.write('\r');
writer.flush();
... | public class class_name {
public boolean sendCommand(String command) {
if (writer != null) {
try {
logger.info("Sending command " + command + " to remote host " + remoteHost); // depends on control dependency: [try], data = [none]
writer.write(command); // depends on... |
public class class_name {
public void update() {
if (this.measures == null || this.measures.length == 0) {
// no measures to show -> empty entries
for (int i = 0; i < this.currentValues.length; i++) {
this.currentValues[i].setText("-");
this.meanValues[i]... | public class class_name {
public void update() {
if (this.measures == null || this.measures.length == 0) {
// no measures to show -> empty entries
for (int i = 0; i < this.currentValues.length; i++) {
this.currentValues[i].setText("-"); // depends on control dependency: ... |
public class class_name {
public java.util.List<DnsEntry> getDnsEntries() {
if (dnsEntries == null) {
dnsEntries = new com.amazonaws.internal.SdkInternalList<DnsEntry>();
}
return dnsEntries;
} } | public class class_name {
public java.util.List<DnsEntry> getDnsEntries() {
if (dnsEntries == null) {
dnsEntries = new com.amazonaws.internal.SdkInternalList<DnsEntry>(); // depends on control dependency: [if], data = [none]
}
return dnsEntries;
} } |
public class class_name {
@Override
public RandomVariable add(RandomVariable randomVariable) {
if(randomVariable.getTypePriority() > this.getTypePriority()) {
// Check type priority
return randomVariable.add(this);
}
// Set time of this random variable to maximum of time with respect to which measurabili... | public class class_name {
@Override
public RandomVariable add(RandomVariable randomVariable) {
if(randomVariable.getTypePriority() > this.getTypePriority()) {
// Check type priority
return randomVariable.add(this); // depends on control dependency: [if], data = [none]
}
// Set time of this random variabl... |
public class class_name {
public static long quorumPosition(final ClusterMember[] members, final long[] rankedPositions)
{
final int length = rankedPositions.length;
for (int i = 0; i < length; i++)
{
rankedPositions[i] = 0;
}
for (final ClusterMember member : m... | public class class_name {
public static long quorumPosition(final ClusterMember[] members, final long[] rankedPositions)
{
final int length = rankedPositions.length;
for (int i = 0; i < length; i++)
{
rankedPositions[i] = 0; // depends on control dependency: [for], data = [i]
... |
public class class_name {
public static String qualifyType(VisitorState state, SuggestedFix.Builder fix, String typeName) {
for (int startOfClass = typeName.indexOf('.');
startOfClass > 0;
startOfClass = typeName.indexOf('.', startOfClass + 1)) {
int endOfClass = typeName.indexOf('.', startOf... | public class class_name {
public static String qualifyType(VisitorState state, SuggestedFix.Builder fix, String typeName) {
for (int startOfClass = typeName.indexOf('.');
startOfClass > 0;
startOfClass = typeName.indexOf('.', startOfClass + 1)) {
int endOfClass = typeName.indexOf('.', startOf... |
public class class_name {
@Override
public @NonNull MirroredIndex getIndex(@NonNull String indexName) {
MirroredIndex index = null;
WeakReference<Object> existingIndex = indices.get(indexName);
if (existingIndex != null) {
index = (MirroredIndex)existingIndex.get();
}
... | public class class_name {
@Override
public @NonNull MirroredIndex getIndex(@NonNull String indexName) {
MirroredIndex index = null;
WeakReference<Object> existingIndex = indices.get(indexName);
if (existingIndex != null) {
index = (MirroredIndex)existingIndex.get(); // depends o... |
public class class_name {
public static Iterator<ResidueNumber> multiIterator(final AtomPositionMap map, final ResidueRange... rrs) {
return new Iterator<ResidueNumber>() {
private int r = 0;
private Iterator<ResidueNumber> internal;
@Override
public boolean hasNext() {
if (r == rrs.length - 1) {
... | public class class_name {
public static Iterator<ResidueNumber> multiIterator(final AtomPositionMap map, final ResidueRange... rrs) {
return new Iterator<ResidueNumber>() {
private int r = 0;
private Iterator<ResidueNumber> internal;
@Override
public boolean hasNext() {
if (r == rrs.length - 1) {
... |
public class class_name {
private static List<ModuleRef> findModuleRefsFromCallstack(final Class<?>[] callStack, final ScanSpec scanSpec,
final LogNode log) {
final LinkedHashSet<Object> layers = new LinkedHashSet<>();
if (callStack != null) {
for (final Class<?> stackFrameClass... | public class class_name {
private static List<ModuleRef> findModuleRefsFromCallstack(final Class<?>[] callStack, final ScanSpec scanSpec,
final LogNode log) {
final LinkedHashSet<Object> layers = new LinkedHashSet<>();
if (callStack != null) {
for (final Class<?> stackFrameClass... |
public class class_name {
@Override
public EEnum getIfcInternalOrExternalEnum() {
if (ifcInternalOrExternalEnumEEnum == null) {
ifcInternalOrExternalEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1004);
}
return ifcInternalOrExternalEnumEEnum... | public class class_name {
@Override
public EEnum getIfcInternalOrExternalEnum() {
if (ifcInternalOrExternalEnumEEnum == null) {
ifcInternalOrExternalEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1004);
// depends on control dependency: [if], data... |
public class class_name {
private void rewriteMethodBody(MutableClass mutableClass, MethodNode callingMethod) {
ListIterator<AbstractInsnNode> instructions = callingMethod.instructions.iterator();
while (instructions.hasNext()) {
AbstractInsnNode node = instructions.next();
switch (node.getOpcode(... | public class class_name {
private void rewriteMethodBody(MutableClass mutableClass, MethodNode callingMethod) {
ListIterator<AbstractInsnNode> instructions = callingMethod.instructions.iterator();
while (instructions.hasNext()) {
AbstractInsnNode node = instructions.next();
switch (node.getOpcode(... |
public class class_name {
public static List<BlockingState> sortedCopy(final Iterable<BlockingState> blockingStates) {
final List<BlockingState> blockingStatesSomewhatSorted = Ordering.<BlockingState>natural().immutableSortedCopy(blockingStates);
final List<BlockingState> result = new LinkedList<Block... | public class class_name {
public static List<BlockingState> sortedCopy(final Iterable<BlockingState> blockingStates) {
final List<BlockingState> blockingStatesSomewhatSorted = Ordering.<BlockingState>natural().immutableSortedCopy(blockingStates);
final List<BlockingState> result = new LinkedList<Block... |
public class class_name {
private WritableIntegerDataStore computeSubtreeSizes(DBIDs order) {
WritableIntegerDataStore siz = DataStoreUtil.makeIntegerStorage(ids, DataStoreFactory.HINT_HOT | DataStoreFactory.HINT_TEMP, 1);
DBIDVar v1 = DBIDUtil.newVar();
for(DBIDIter it = order.iter(); it.valid(); it.advan... | public class class_name {
private WritableIntegerDataStore computeSubtreeSizes(DBIDs order) {
WritableIntegerDataStore siz = DataStoreUtil.makeIntegerStorage(ids, DataStoreFactory.HINT_HOT | DataStoreFactory.HINT_TEMP, 1);
DBIDVar v1 = DBIDUtil.newVar();
for(DBIDIter it = order.iter(); it.valid(); it.advan... |
public class class_name {
static List<GoogleToken> getGoogleTokens(String sentence, boolean addStartToken, Tokenizer wordTokenizer) {
List<GoogleToken> result = new ArrayList<>();
if (addStartToken) {
result.add(new GoogleToken(LanguageModel.GOOGLE_SENTENCE_START, 0, 0));
}
List<String> tokens = ... | public class class_name {
static List<GoogleToken> getGoogleTokens(String sentence, boolean addStartToken, Tokenizer wordTokenizer) {
List<GoogleToken> result = new ArrayList<>();
if (addStartToken) {
result.add(new GoogleToken(LanguageModel.GOOGLE_SENTENCE_START, 0, 0)); // depends on control dependency... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.