code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private void reschedule() {
// set up a daily roll
Calendar cal = Calendar.getInstance();
long today = cal.getTimeInMillis();
// adjust to somewhere after midnight of the next day
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
... | public class class_name {
private void reschedule() {
// set up a daily roll
Calendar cal = Calendar.getInstance();
long today = cal.getTimeInMillis();
// adjust to somewhere after midnight of the next day
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
... |
public class class_name {
public ChangeMessageVisibilityBatchResult withSuccessful(ChangeMessageVisibilityBatchResultEntry... successful) {
if (this.successful == null) {
setSuccessful(new com.amazonaws.internal.SdkInternalList<ChangeMessageVisibilityBatchResultEntry>(successful.length));
}... | public class class_name {
public ChangeMessageVisibilityBatchResult withSuccessful(ChangeMessageVisibilityBatchResultEntry... successful) {
if (this.successful == null) {
setSuccessful(new com.amazonaws.internal.SdkInternalList<ChangeMessageVisibilityBatchResultEntry>(successful.length)); // depend... |
public class class_name {
private static String createRowTemplate(List<Integer> maxColumnSizes) {
List<String> columnFormatSpecifiers = Lists.newArrayList();
for (int maxColumnSize : maxColumnSizes) {
columnFormatSpecifiers.add("%-" + maxColumnSize + "s");
}
return new StringBuilder("| ")
... | public class class_name {
private static String createRowTemplate(List<Integer> maxColumnSizes) {
List<String> columnFormatSpecifiers = Lists.newArrayList();
for (int maxColumnSize : maxColumnSizes) {
columnFormatSpecifiers.add("%-" + maxColumnSize + "s"); // depends on control dependency: [for], data = ... |
public class class_name {
@SuppressWarnings("unchecked")
static <K,V> Map<K,V> asMap(Object value, PDescriptor keyType, PDescriptor itemType) throws ProvidenceConfigException {
if (value instanceof Map) {
boolean sorted = value instanceof TreeMap ||
value instanceof... | public class class_name {
@SuppressWarnings("unchecked")
static <K,V> Map<K,V> asMap(Object value, PDescriptor keyType, PDescriptor itemType) throws ProvidenceConfigException {
if (value instanceof Map) {
boolean sorted = value instanceof TreeMap ||
value instanceof... |
public class class_name {
private Document loadXML(URL url, boolean useNamespace) {
InputStream stream = null;
try {
stream = url.openConnection().getInputStream();
InputSource source = new InputSource(stream);
return useNamespace ? loadXMLNS(source) : loadXML(source);
} catch (Exception e) {
... | public class class_name {
private Document loadXML(URL url, boolean useNamespace) {
InputStream stream = null;
try {
stream = url.openConnection().getInputStream();
// depends on control dependency: [try], data = [none]
InputSource source = new InputSource(stream);
return useNamespace ? loadXMLNS(sou... |
public class class_name {
public static long incTwoBytePrimaryByOffset(long basePrimary, boolean isCompressible,
int offset) {
// Extract the second byte, minus the minimum byte value,
// plus the offset, modulo the number of usable byte values, plus the mi... | public class class_name {
public static long incTwoBytePrimaryByOffset(long basePrimary, boolean isCompressible,
int offset) {
// Extract the second byte, minus the minimum byte value,
// plus the offset, modulo the number of usable byte values, plus the mi... |
public class class_name {
private Attribute checkContext(URI type, URI id, URI issuer,
URI category, int designatorType) {
if (!STRING_ATTRIBUTE_TYPE_URI.equals(type)) return null;
String [] values = null;
switch(designatorType){
case Attribut... | public class class_name {
private Attribute checkContext(URI type, URI id, URI issuer,
URI category, int designatorType) {
if (!STRING_ATTRIBUTE_TYPE_URI.equals(type)) return null;
String [] values = null;
switch(designatorType){
case Attribut... |
public class class_name {
public static StreamingOutput buildDOMResponse(final List<String> availableResources) {
try {
final Document document = createSurroundingXMLResp();
final Element resElement = createResultElement(document);
final List<Element> resources = createCol... | public class class_name {
public static StreamingOutput buildDOMResponse(final List<String> availableResources) {
try {
final Document document = createSurroundingXMLResp();
final Element resElement = createResultElement(document);
final List<Element> resources = createCol... |
public class class_name {
public static synchronized DotGit getInstance(File path) {
DotGit dotGit;
// TODO (rs2705): make sure that path is valid
/*
* We want to make sure we're dealing with the canonical path here, since there are multiple
* ways to refer to the same dir with different string... | public class class_name {
public static synchronized DotGit getInstance(File path) {
DotGit dotGit;
// TODO (rs2705): make sure that path is valid
/*
* We want to make sure we're dealing with the canonical path here, since there are multiple
* ways to refer to the same dir with different string... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T extends Number> T isNumber( String value, Class<T> adaptee ) {
if (value == null) {
return null;
}
if (adaptee == null) {
adaptee = (Class<T>) Double.class;
}
if (adaptee.isAssi... | public class class_name {
@SuppressWarnings("unchecked")
public static <T extends Number> T isNumber( String value, Class<T> adaptee ) {
if (value == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (adaptee == null) {
adaptee = (Class<... |
public class class_name {
protected LookAndFeels setDefaultLookAndFeel(@NonNull LookAndFeels lookAndFeels,
Component component)
{
try
{
LookAndFeels.setLookAndFeel(lookAndFeels, component);
setCurrentLookAndFeels(lookAndFeels);
}
catch (final ClassNotFoundException | InstantiationException | IllegalAc... | public class class_name {
protected LookAndFeels setDefaultLookAndFeel(@NonNull LookAndFeels lookAndFeels,
Component component)
{
try
{
LookAndFeels.setLookAndFeel(lookAndFeels, component); // depends on control dependency: [try], data = [none]
setCurrentLookAndFeels(lookAndFeels); // depends on control d... |
public class class_name {
public SchemaRepositoryModelBuilder addSchema(String id, String location) {
SchemaModel schema = new SchemaModel();
schema.setId(id);
schema.setLocation(location);
if (model.getSchemas() == null) {
model.setSchemas(new SchemaRepositoryModel.Schemas... | public class class_name {
public SchemaRepositoryModelBuilder addSchema(String id, String location) {
SchemaModel schema = new SchemaModel();
schema.setId(id);
schema.setLocation(location);
if (model.getSchemas() == null) {
model.setSchemas(new SchemaRepositoryModel.Schemas... |
public class class_name {
private void handleResponse(ByteBuf response, ChannelHandlerContext context) {
NettyConnection connection = getConnection(context.channel());
if (connection != null) {
connection.handleResponse(response);
}
} } | public class class_name {
private void handleResponse(ByteBuf response, ChannelHandlerContext context) {
NettyConnection connection = getConnection(context.channel());
if (connection != null) {
connection.handleResponse(response); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
public boolean isSinglePrefixBlock() {
Integer networkPrefixLength = getNetworkPrefixLength();
if(networkPrefixLength == null) {
return false;
}
return containsSinglePrefixBlock(networkPrefixLength);
} } | public class class_name {
@Override
public boolean isSinglePrefixBlock() {
Integer networkPrefixLength = getNetworkPrefixLength();
if(networkPrefixLength == null) {
return false; // depends on control dependency: [if], data = [none]
}
return containsSinglePrefixBlock(networkPrefixLength);
} } |
public class class_name {
public void dumpState() {
executorService.execute(new Runnable() {
@Override
public void run() {
lockSendRequestsToService.lock();
try {
final StringBuilder stringBuilder = new StringBuilder();
... | public class class_name {
public void dumpState() {
executorService.execute(new Runnable() {
@Override
public void run() {
lockSendRequestsToService.lock();
try {
final StringBuilder stringBuilder = new StringBuilder();
... |
public class class_name {
private IPath getAbsoluteLocation(IPath location) {
if (location.isAbsolute())
return location;
IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot();
if (location.segmentCount() >= 2 && !"..".equals(location.segment(0))) { //$NON-NLS-1$
IFile file= root.getFile(location)... | public class class_name {
private IPath getAbsoluteLocation(IPath location) {
if (location.isAbsolute())
return location;
IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot();
if (location.segmentCount() >= 2 && !"..".equals(location.segment(0))) { //$NON-NLS-1$
IFile file= root.getFile(location)... |
public class class_name {
public static String byteBufferToString(ByteBuffer buf) {
StringBuilder sb = new StringBuilder();
for (int k = 0; k < buf.limit() / 4; k++) {
if (k != 0) {
sb.append(" ");
}
sb.append(buf.getInt());
}
return sb.toString();
} } | public class class_name {
public static String byteBufferToString(ByteBuffer buf) {
StringBuilder sb = new StringBuilder();
for (int k = 0; k < buf.limit() / 4; k++) {
if (k != 0) {
sb.append(" "); // depends on control dependency: [if], data = [none]
}
sb.append(buf.getInt()); // dep... |
public class class_name {
private static void validateRegex(String regex) {
if (regex == null) {
throw new IllegalArgumentException("The regular expression must not be null.");
}
String trimmedRegex = regex.trim();
if (!trimmedRegex.isEmpty()) {
Pattern.compile(trimmedRegex, Pattern.CASE_INSENSITIV... | public class class_name {
private static void validateRegex(String regex) {
if (regex == null) {
throw new IllegalArgumentException("The regular expression must not be null.");
}
String trimmedRegex = regex.trim();
if (!trimmedRegex.isEmpty()) {
Pattern.compile(trimmedRegex, Pattern.CASE_INSENSITIV... |
public class class_name {
public void setCacheSecurityGroupNames(java.util.Collection<String> cacheSecurityGroupNames) {
if (cacheSecurityGroupNames == null) {
this.cacheSecurityGroupNames = null;
return;
}
this.cacheSecurityGroupNames = new com.amazonaws.internal.SdkIn... | public class class_name {
public void setCacheSecurityGroupNames(java.util.Collection<String> cacheSecurityGroupNames) {
if (cacheSecurityGroupNames == null) {
this.cacheSecurityGroupNames = null; // depends on control dependency: [if], data = [none]
return; // depends on control depend... |
public class class_name {
@VisibleForTesting
static String escape(String text) {
// unwrap double quotes
if (text.length() > 1 && text.charAt(0) == '"' && text.charAt(text.length() - 1) == '"') {
text = text.substring(1, text.length() - 1);
}
int i = 0;
int length = text.length();
Strin... | public class class_name {
@VisibleForTesting
static String escape(String text) {
// unwrap double quotes
if (text.length() > 1 && text.charAt(0) == '"' && text.charAt(text.length() - 1) == '"') {
text = text.substring(1, text.length() - 1); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public String buildDialogForm() {
StringBuffer result = new StringBuffer(16384);
List<CmsResource> resources = getResources();
//Compute the height:
int amountOfInputFields = 4 * resources.size();
int height = amountOfInputFields * 25;
// add p... | public class class_name {
public String buildDialogForm() {
StringBuffer result = new StringBuffer(16384);
List<CmsResource> resources = getResources();
//Compute the height:
int amountOfInputFields = 4 * resources.size();
int height = amountOfInputFields * 25;
// add p... |
public class class_name {
private final byte[][] decode(byte[] encodedPrivateKey) {
byte[][] decodedKey = new byte[8][];
if (encodedPrivateKey.length > (PUBLIC_EXPONENT_LENGTH + PRIME_P_LENGTH + PRIME_Q_LENGTH)) {
// it is potentially the new encoding mechanism based on R3.5 [with CRT key i... | public class class_name {
private final byte[][] decode(byte[] encodedPrivateKey) {
byte[][] decodedKey = new byte[8][];
if (encodedPrivateKey.length > (PUBLIC_EXPONENT_LENGTH + PRIME_P_LENGTH + PRIME_Q_LENGTH)) {
// it is potentially the new encoding mechanism based on R3.5 [with CRT key i... |
public class class_name {
@VisibleForTesting
protected ProctorResult determineBucketsInternal(final Identifiers identifiers, final Map<String, Object> context, final Map<String, Integer> forcedGroups) {
final Proctor proctor = proctorSource.get();
if (proctor == null) {
final Map<String... | public class class_name {
@VisibleForTesting
protected ProctorResult determineBucketsInternal(final Identifiers identifiers, final Map<String, Object> context, final Map<String, Integer> forcedGroups) {
final Proctor proctor = proctorSource.get();
if (proctor == null) {
final Map<String... |
public class class_name {
private static double crank(double[] w) {
int n = w.length;
double s = 0.0;
int j = 1;
while (j < n) {
if (w[j] != w[j - 1]) {
w[j - 1] = j;
++j;
} else {
int jt = j + 1;
wh... | public class class_name {
private static double crank(double[] w) {
int n = w.length;
double s = 0.0;
int j = 1;
while (j < n) {
if (w[j] != w[j - 1]) {
w[j - 1] = j; // depends on control dependency: [if], data = [none]
++j; // depends on con... |
public class class_name {
public String getFunctionName(ExecutableElement method) {
String name = ElementUtil.getSelector(method);
if (name == null) {
name = getRenamedMethodName(method);
}
if (name != null) {
return name.replaceAll(":", "_");
} else {
return addParamNames(method,... | public class class_name {
public String getFunctionName(ExecutableElement method) {
String name = ElementUtil.getSelector(method);
if (name == null) {
name = getRenamedMethodName(method); // depends on control dependency: [if], data = [none]
}
if (name != null) {
return name.replaceAll(":",... |
public class class_name {
public void store(String gavc,
String action,
String commentText,
DbCredential credential,
String entityType) {
DbComment comment = new DbComment();
comment.setEntityId(gavc);
comme... | public class class_name {
public void store(String gavc,
String action,
String commentText,
DbCredential credential,
String entityType) {
DbComment comment = new DbComment();
comment.setEntityId(gavc);
comme... |
public class class_name {
public String[] resolveParamNames(final Method actionClassMethod) {
MethodParameter[] methodParameters = Paramo.resolveParameters(actionClassMethod);
String[] names = new String[methodParameters.length];
for (int i = 0; i < methodParameters.length; i++) {
names[i] = methodParameter... | public class class_name {
public String[] resolveParamNames(final Method actionClassMethod) {
MethodParameter[] methodParameters = Paramo.resolveParameters(actionClassMethod);
String[] names = new String[methodParameters.length];
for (int i = 0; i < methodParameters.length; i++) {
names[i] = methodParameter... |
public class class_name {
public static byte[] decode(final byte[] compressed) throws IOException {
ByteArrayInputStream byteIn = new ByteArrayInputStream(compressed);
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
GZIPInputStream gzIn = null;
try {
gzIn = new ... | public class class_name {
public static byte[] decode(final byte[] compressed) throws IOException {
ByteArrayInputStream byteIn = new ByteArrayInputStream(compressed);
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
GZIPInputStream gzIn = null;
try {
gzIn = new ... |
public class class_name {
public EClass getObjectOriginIdentifier() {
if (objectOriginIdentifierEClass == null) {
objectOriginIdentifierEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(514);
}
return objectOriginIdentifierEClass;
} } | public class class_name {
public EClass getObjectOriginIdentifier() {
if (objectOriginIdentifierEClass == null) {
objectOriginIdentifierEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(514); // depends on control dependency: [if], data = [none]
}
return obje... |
public class class_name {
protected FromHostPrimitiveResult < T > fromHostInternal(Class < T > javaClass,
CobolContext cobolContext, byte[] hostData, int start) {
int end = start + getBytesLen();
StringBuffer sb = new StringBuffer();
int[] nibbles = new int[2];
for (int i... | public class class_name {
protected FromHostPrimitiveResult < T > fromHostInternal(Class < T > javaClass,
CobolContext cobolContext, byte[] hostData, int start) {
int end = start + getBytesLen();
StringBuffer sb = new StringBuffer();
int[] nibbles = new int[2];
for (int i... |
public class class_name {
@Override
public int print(
ChronoDisplay formattable,
Appendable buffer,
AttributeQuery attributes,
Set<ElementPosition> positions, // optional
boolean quickPath
) throws IOException {
BigDecimal value = toDecimal(formattable.get(this.... | public class class_name {
@Override
public int print(
ChronoDisplay formattable,
Appendable buffer,
AttributeQuery attributes,
Set<ElementPosition> positions, // optional
boolean quickPath
) throws IOException {
BigDecimal value = toDecimal(formattable.get(this.... |
public class class_name {
private static void validateGeneration(int generation) {
if (generation == CONTEXT_DEPTH_WARN_THRESH) {
log.log(
Level.SEVERE,
"Context ancestry chain length is abnormally long. "
+ "This suggests an error in application code. "
+ "Len... | public class class_name {
private static void validateGeneration(int generation) {
if (generation == CONTEXT_DEPTH_WARN_THRESH) {
log.log(
Level.SEVERE,
"Context ancestry chain length is abnormally long. "
+ "This suggests an error in application code. "
+ "Len... |
public class class_name {
public EClass getBFG() {
if (bfgEClass == null) {
bfgEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(205);
}
return bfgEClass;
} } | public class class_name {
public EClass getBFG() {
if (bfgEClass == null) {
bfgEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(205); // depends on control dependency: [if], data = [none]
}
return bfgEClass;
} } |
public class class_name {
public void setErrorCode(String errorCode) {
if (errorCode != null) {
NullArgumentException.validateNotEmpty(errorCode, "Error code");
}
this.errorCode = errorCode;
} } | public class class_name {
public void setErrorCode(String errorCode) {
if (errorCode != null) {
NullArgumentException.validateNotEmpty(errorCode, "Error code"); // depends on control dependency: [if], data = [(errorCode]
}
this.errorCode = errorCode;
} } |
public class class_name {
private void loadData() {
if (parent.getSerialDataContext().getDataContext() == null) {
// no data objects available.
return;
}
if (parent.isAdvancedContext()) {
parent.getSerialDataContext().getDataContext().put("tiecells", new HashMap<String, TieCell>());
}
... | public class class_name {
private void loadData() {
if (parent.getSerialDataContext().getDataContext() == null) {
// no data objects available.
return;
// depends on control dependency: [if], data = [none]
}
if (parent.isAdvancedContext()) {
parent.getSerialDataContext().getDataContext().put("... |
public class class_name {
private void newScreenSize(Rectangle b) {
boolean sameSize = (b.width == myBounds.width) && (b.height == myBounds.height);
if (debugBounds) System.out.println( "NavigatedPanel newScreenSize old= "+myBounds);
if (sameSize && (b.x == myBounds.x) && (b.y == myBounds.y))
return;... | public class class_name {
private void newScreenSize(Rectangle b) {
boolean sameSize = (b.width == myBounds.width) && (b.height == myBounds.height);
if (debugBounds) System.out.println( "NavigatedPanel newScreenSize old= "+myBounds);
if (sameSize && (b.x == myBounds.x) && (b.y == myBounds.y))
return;... |
public class class_name {
private Map<CPGroupId, Collection<Tuple2<Long, Long>>> getSessionsToExpire() {
Map<CPGroupId, Collection<Tuple2<Long, Long>>> expired = new HashMap<CPGroupId, Collection<Tuple2<Long, Long>>>();
for (RaftSessionRegistry registry : registries.values()) {
Collection<T... | public class class_name {
private Map<CPGroupId, Collection<Tuple2<Long, Long>>> getSessionsToExpire() {
Map<CPGroupId, Collection<Tuple2<Long, Long>>> expired = new HashMap<CPGroupId, Collection<Tuple2<Long, Long>>>();
for (RaftSessionRegistry registry : registries.values()) {
Collection<T... |
public class class_name {
public float predictSingle(FVec feat, boolean output_margin, int ntree_limit) {
float pred = predictSingleRaw(feat, ntree_limit);
if (!output_margin) {
pred = obj.predTransform(pred);
}
return pred;
} } | public class class_name {
public float predictSingle(FVec feat, boolean output_margin, int ntree_limit) {
float pred = predictSingleRaw(feat, ntree_limit);
if (!output_margin) {
pred = obj.predTransform(pred); // depends on control dependency: [if], data = [none]
}
return pr... |
public class class_name {
public void marshall(GetPipelineExecutionRequest getPipelineExecutionRequest, ProtocolMarshaller protocolMarshaller) {
if (getPipelineExecutionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(GetPipelineExecutionRequest getPipelineExecutionRequest, ProtocolMarshaller protocolMarshaller) {
if (getPipelineExecutionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public void setGalleryDefaultScope(String galleryDefaultScope) {
m_galleryDefaultScope = galleryDefaultScope;
try {
CmsGallerySearchScope.valueOf(galleryDefaultScope);
} catch (Throwable t) {
LOG.warn(t.getLocalizedMessage(), t);
}
... | public class class_name {
public void setGalleryDefaultScope(String galleryDefaultScope) {
m_galleryDefaultScope = galleryDefaultScope;
try {
CmsGallerySearchScope.valueOf(galleryDefaultScope); // depends on control dependency: [try], data = [none]
} catch (Throwable t) {
... |
public class class_name {
public static double[] colMeans (RealMatrix matrix) {
// Get the col sums:
double[] retval = EMatrixUtils.colSums(matrix);
// Iterate over return value and divide by the length:
for (int i = 0; i < retval.length; i++) {
retval[i] = retval[i] / matr... | public class class_name {
public static double[] colMeans (RealMatrix matrix) {
// Get the col sums:
double[] retval = EMatrixUtils.colSums(matrix);
// Iterate over return value and divide by the length:
for (int i = 0; i < retval.length; i++) {
retval[i] = retval[i] / matr... |
public class class_name {
public static int
value(String s, boolean numberok) {
int val = types.getValue(s);
if (val == -1 && numberok) {
val = types.getValue("TYPE" + s);
}
return val;
} } | public class class_name {
public static int
value(String s, boolean numberok) {
int val = types.getValue(s);
if (val == -1 && numberok) {
val = types.getValue("TYPE" + s); // depends on control dependency: [if], data = [none]
}
return val;
} } |
public class class_name {
protected void unregister() {
if (providerConfig.isRegister()) {
List<RegistryConfig> registryConfigs = providerConfig.getRegistry();
if (registryConfigs != null) {
for (RegistryConfig registryConfig : registryConfigs) {
Regi... | public class class_name {
protected void unregister() {
if (providerConfig.isRegister()) {
List<RegistryConfig> registryConfigs = providerConfig.getRegistry();
if (registryConfigs != null) {
for (RegistryConfig registryConfig : registryConfigs) {
Regi... |
public class class_name {
@Override
public CommerceSubscriptionEntry remove(Serializable primaryKey)
throws NoSuchSubscriptionEntryException {
Session session = null;
try {
session = openSession();
CommerceSubscriptionEntry commerceSubscriptionEntry = (CommerceSubscriptionEntry)session.get(CommerceSubsc... | public class class_name {
@Override
public CommerceSubscriptionEntry remove(Serializable primaryKey)
throws NoSuchSubscriptionEntryException {
Session session = null;
try {
session = openSession();
CommerceSubscriptionEntry commerceSubscriptionEntry = (CommerceSubscriptionEntry)session.get(CommerceSubsc... |
public class class_name {
public boolean check() throws Exception {
try (PDDocument document = PDDocument.load(in)) {
PDDocumentCatalog catalog = document.getDocumentCatalog();
PDFPageable pageable = new PDFPageable(document);
PageFormat firstPage = pageable.getPageFormat(0)... | public class class_name {
public boolean check() throws Exception {
try (PDDocument document = PDDocument.load(in)) {
PDDocumentCatalog catalog = document.getDocumentCatalog();
PDFPageable pageable = new PDFPageable(document);
PageFormat firstPage = pageable.getPageFormat(0)... |
public class class_name {
public void simulateGattConnectionChange(int status, int newState) {
for (BluetoothGatt bluetoothGatt : bluetoothGatts) {
ShadowBluetoothGatt shadowBluetoothGatt = Shadow.extract(bluetoothGatt);
BluetoothGattCallback gattCallback = shadowBluetoothGatt.getGattCallback();
... | public class class_name {
public void simulateGattConnectionChange(int status, int newState) {
for (BluetoothGatt bluetoothGatt : bluetoothGatts) {
ShadowBluetoothGatt shadowBluetoothGatt = Shadow.extract(bluetoothGatt);
BluetoothGattCallback gattCallback = shadowBluetoothGatt.getGattCallback();
... |
public class class_name {
protected void log(SessionId sessionId, String commandName, Object toLog, When when) {
if (!logger.isLoggable(level)) {
return;
}
String text = String.valueOf(toLog);
if (commandName.equals(DriverCommand.EXECUTE_SCRIPT)
|| commandName.equals(DriverCommand.EXECUTE... | public class class_name {
protected void log(SessionId sessionId, String commandName, Object toLog, When when) {
if (!logger.isLoggable(level)) {
return; // depends on control dependency: [if], data = [none]
}
String text = String.valueOf(toLog);
if (commandName.equals(DriverCommand.EXECUTE_SCRIP... |
public class class_name {
protected boolean isExist(String rootPackageName, String lastClassName) {
final Resources[] checkerArray = getExistCheckerArray(rootPackageName);
for (int i = 0; i < checkerArray.length; ++i) {
if (checkerArray[i].isExistClass(lastClassName)) {
retu... | public class class_name {
protected boolean isExist(String rootPackageName, String lastClassName) {
final Resources[] checkerArray = getExistCheckerArray(rootPackageName);
for (int i = 0; i < checkerArray.length; ++i) {
if (checkerArray[i].isExistClass(lastClassName)) {
retu... |
public class class_name {
private void restoreRequestAttributesAfterInclude(Invocation inv) {
logger.debug("Restoring snapshot of request attributes after include");
HttpServletRequest request = inv.getRequest();
@SuppressWarnings("unchecked")
Map<String, Object> attributesSnapshot = (... | public class class_name {
private void restoreRequestAttributesAfterInclude(Invocation inv) {
logger.debug("Restoring snapshot of request attributes after include");
HttpServletRequest request = inv.getRequest();
@SuppressWarnings("unchecked")
Map<String, Object> attributesSnapshot = (... |
public class class_name {
public void marshall(DescribeServicesRequest describeServicesRequest, ProtocolMarshaller protocolMarshaller) {
if (describeServicesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(DescribeServicesRequest describeServicesRequest, ProtocolMarshaller protocolMarshaller) {
if (describeServicesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public Result isValidWindows1252(byte[] buf) {
for (byte b : buf) {
if (!VALID_WINDOWS_1252[b + 128]) {
return Result.INVALID;
}
}
try {
return new Result(Validation.MAYBE, Charset.forName("Windows-1252"));
} catch (UnsupportedCharsetException e) {
... | public class class_name {
public Result isValidWindows1252(byte[] buf) {
for (byte b : buf) {
if (!VALID_WINDOWS_1252[b + 128]) {
return Result.INVALID; // depends on control dependency: [if], data = [none]
}
}
try {
return new Result(Validation.MAYBE, Charset.forName("Windows-12... |
public class class_name {
public HyperParameterAlgorithmSpecification withMetricDefinitions(MetricDefinition... metricDefinitions) {
if (this.metricDefinitions == null) {
setMetricDefinitions(new java.util.ArrayList<MetricDefinition>(metricDefinitions.length));
}
for (MetricDefiniti... | public class class_name {
public HyperParameterAlgorithmSpecification withMetricDefinitions(MetricDefinition... metricDefinitions) {
if (this.metricDefinitions == null) {
setMetricDefinitions(new java.util.ArrayList<MetricDefinition>(metricDefinitions.length)); // depends on control dependency: [if... |
public class class_name {
public void collectDbStats(ArrayList<DbStats> dbStatsList) {
synchronized (mLock) {
if (mAvailablePrimaryConnection != null) {
mAvailablePrimaryConnection.collectDbStats(dbStatsList);
}
for (SQLiteConnection connection : mAvailableN... | public class class_name {
public void collectDbStats(ArrayList<DbStats> dbStatsList) {
synchronized (mLock) {
if (mAvailablePrimaryConnection != null) {
mAvailablePrimaryConnection.collectDbStats(dbStatsList); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private static int listDFSPaths()
{
Date alpha = new Date();
int inodeCount = 0;
String basePath = new String(TEST_BASE_DIR) + "/" + hostName_ + "_" + processName_;
Queue<String> pending = new LinkedList<String>();
pending.add(basePath);
while (!pending.isEmpty()) ... | public class class_name {
private static int listDFSPaths()
{
Date alpha = new Date();
int inodeCount = 0;
String basePath = new String(TEST_BASE_DIR) + "/" + hostName_ + "_" + processName_;
Queue<String> pending = new LinkedList<String>();
pending.add(basePath);
while (!pending.isEmpty()) ... |
public class class_name {
private void init(final Locale locale) {
Class<?> c;
try {
c = Class.forName("com.ibm.icu.text.Collator");
} catch (final Exception e) {
c = Collator.class;
}
try {
final Method m = c.getDeclaredMethod("getInstance"... | public class class_name {
private void init(final Locale locale) {
Class<?> c;
try {
c = Class.forName("com.ibm.icu.text.Collator"); // depends on control dependency: [try], data = [none]
} catch (final Exception e) {
c = Collator.class;
} // depends on control ... |
public class class_name {
public void setPanelsVisible(boolean visible) {
if (layout == Layout.FULL) {
getTabbedFull().setPanelsVisible(visible);
} else {
getTabbedSelect().setPanelsVisible(visible);
getTabbedWork().setPanelsVisible(visible);
getTabbedStatus().setPanelsVisible(visible);
}
} ... | public class class_name {
public void setPanelsVisible(boolean visible) {
if (layout == Layout.FULL) {
getTabbedFull().setPanelsVisible(visible);
// depends on control dependency: [if], data = [none]
} else {
getTabbedSelect().setPanelsVisible(visible);
// depends on control dependency: [if], data = [no... |
public class class_name {
public DescribeDBClusterSnapshotsResult withDBClusterSnapshots(DBClusterSnapshot... dBClusterSnapshots) {
if (this.dBClusterSnapshots == null) {
setDBClusterSnapshots(new com.amazonaws.internal.SdkInternalList<DBClusterSnapshot>(dBClusterSnapshots.length));
}
... | public class class_name {
public DescribeDBClusterSnapshotsResult withDBClusterSnapshots(DBClusterSnapshot... dBClusterSnapshots) {
if (this.dBClusterSnapshots == null) {
setDBClusterSnapshots(new com.amazonaws.internal.SdkInternalList<DBClusterSnapshot>(dBClusterSnapshots.length)); // depends on c... |
public class class_name {
public static int searchDescending(double[] doubleArray, double value) {
int start = 0;
int end = doubleArray.length - 1;
int middle = 0;
while(start <= end) {
middle = (start + end) >> 1;
if(value == doubleArray[middl... | public class class_name {
public static int searchDescending(double[] doubleArray, double value) {
int start = 0;
int end = doubleArray.length - 1;
int middle = 0;
while(start <= end) {
middle = (start + end) >> 1; // depends on control dependency: [while], data = ... |
public class class_name {
protected static int getBytesPerPixel(Bitmap.Config config) {
if (config == Bitmap.Config.ARGB_8888) {
return 4;
} else if (config == Bitmap.Config.RGB_565) {
return 2;
} else if (config == Bitmap.Config.ARGB_4444) {
return 2;
... | public class class_name {
protected static int getBytesPerPixel(Bitmap.Config config) {
if (config == Bitmap.Config.ARGB_8888) {
return 4; // depends on control dependency: [if], data = [none]
} else if (config == Bitmap.Config.RGB_565) {
return 2; // depends on control dependen... |
public class class_name {
@Override
public Object instantiateItem(ViewGroup container, int position) {
int itemViewType = getItemViewType(position);
RecyclerView.ViewHolder holder = mRecycledViewPool.getRecycledView(itemViewType);
if (holder == null) {
holder = mAdapter.createV... | public class class_name {
@Override
public Object instantiateItem(ViewGroup container, int position) {
int itemViewType = getItemViewType(position);
RecyclerView.ViewHolder holder = mRecycledViewPool.getRecycledView(itemViewType);
if (holder == null) {
holder = mAdapter.createV... |
public class class_name {
@Override
public Long serialize(Date value) {
if (value != null) {
return value.getTime();
}
return null;
} } | public class class_name {
@Override
public Long serialize(Date value) {
if (value != null) {
return value.getTime(); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public <T> String tableCreateStatement(Type<T> type, TableCreationMode mode) {
String tableName = type.getName();
QueryBuilder qb = createQueryBuilder();
qb.keyword(CREATE);
if (type.getTableCreateAttributes() != null) {
for (String attribute : typ... | public class class_name {
public <T> String tableCreateStatement(Type<T> type, TableCreationMode mode) {
String tableName = type.getName();
QueryBuilder qb = createQueryBuilder();
qb.keyword(CREATE);
if (type.getTableCreateAttributes() != null) {
for (String attribute : typ... |
public class class_name {
public Observable<ServiceResponse<QueryResults>> executeWithServiceResponseAsync(String appId, QueryBody body) {
if (appId == null) {
throw new IllegalArgumentException("Parameter appId is required and cannot be null.");
}
if (body == null) {
th... | public class class_name {
public Observable<ServiceResponse<QueryResults>> executeWithServiceResponseAsync(String appId, QueryBody body) {
if (appId == null) {
throw new IllegalArgumentException("Parameter appId is required and cannot be null.");
}
if (body == null) {
th... |
public class class_name {
public static GVRMesh createCurvedMesh(GVRContext gvrContext, int width, int height, float centralAngle, float radius)
{
GVRMesh mesh = new GVRMesh(gvrContext);
final float MAX_DEGREES_PER_SUBDIVISION = 10f;
float ratio = (float)width/(float)height;
int sub... | public class class_name {
public static GVRMesh createCurvedMesh(GVRContext gvrContext, int width, int height, float centralAngle, float radius)
{
GVRMesh mesh = new GVRMesh(gvrContext);
final float MAX_DEGREES_PER_SUBDIVISION = 10f;
float ratio = (float)width/(float)height;
int sub... |
public class class_name {
protected long getAbsolutePosition(final long[] iFilePosition) {
long position = 0;
for (int i = 0; i < iFilePosition[0]; ++i) {
position += fileMaxSize;
}
return position + iFilePosition[1];
} } | public class class_name {
protected long getAbsolutePosition(final long[] iFilePosition) {
long position = 0;
for (int i = 0; i < iFilePosition[0]; ++i) {
position += fileMaxSize;
// depends on control dependency: [for], data = [none]
}
return position + iFilePosition[1];
} } |
public class class_name {
private Properties addSeveralSpecialProperties() {
String timeStamp = new MavenBuildTimestamp(new Date(), timestampFormat).formattedTimestamp();
Properties additionalProperties = new Properties();
additionalProperties.put("mdpagegenerator.timestamp", timeStamp);
... | public class class_name {
private Properties addSeveralSpecialProperties() {
String timeStamp = new MavenBuildTimestamp(new Date(), timestampFormat).formattedTimestamp();
Properties additionalProperties = new Properties();
additionalProperties.put("mdpagegenerator.timestamp", timeStamp);
... |
public class class_name {
public void setSpanCount(int spanCount) {
if (spanCount == mSpanCount) {
return;
}
if (spanCount < 1) {
throw new IllegalArgumentException("Span count should be at least 1. Provided "
+ spanCount);
}
mSpanCoun... | public class class_name {
public void setSpanCount(int spanCount) {
if (spanCount == mSpanCount) {
return; // depends on control dependency: [if], data = [none]
}
if (spanCount < 1) {
throw new IllegalArgumentException("Span count should be at least 1. Provided "
... |
public class class_name {
public static Integer getContentSpecID(final String contentSpecString) {
final Matcher matcher = CS_ID_PATTERN.matcher(contentSpecString);
if (matcher.find()) {
return Integer.parseInt(matcher.group("ID"));
}
return null;
} } | public class class_name {
public static Integer getContentSpecID(final String contentSpecString) {
final Matcher matcher = CS_ID_PATTERN.matcher(contentSpecString);
if (matcher.find()) {
return Integer.parseInt(matcher.group("ID")); // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public void close() {
if (posTimeMap != null) {
posTimeMap.clear();
}
try {
fis.close();
fileChannel.close();
} catch (IOException e) {
log.error("Exception on close", e);
}
} ... | public class class_name {
@Override
public void close() {
if (posTimeMap != null) {
posTimeMap.clear();
// depends on control dependency: [if], data = [none]
}
try {
fis.close();
// depends on control dependency: [try], data = [none]
fileChannel.cl... |
public class class_name {
public FeatureState copy() {
FeatureState copy = new FeatureState(feature);
copy.setEnabled(this.enabled);
copy.setStrategyId(this.strategyId);
for (Entry<String, String> entry : this.parameters.entrySet()) {
copy.setParameter(entry.getKey(), entry.... | public class class_name {
public FeatureState copy() {
FeatureState copy = new FeatureState(feature);
copy.setEnabled(this.enabled);
copy.setStrategyId(this.strategyId);
for (Entry<String, String> entry : this.parameters.entrySet()) {
copy.setParameter(entry.getKey(), entry.... |
public class class_name {
protected <C extends CrudResponse, T extends CreateEntity> C handleInsertEntity(T entity) {
Map<String, String> uriVariables = restUriVariablesFactory.getUriVariablesForEntityInsert(BullhornEntityInfo
.getTypesRestEntityName(entity.getClass()));
String url = re... | public class class_name {
protected <C extends CrudResponse, T extends CreateEntity> C handleInsertEntity(T entity) {
Map<String, String> uriVariables = restUriVariablesFactory.getUriVariablesForEntityInsert(BullhornEntityInfo
.getTypesRestEntityName(entity.getClass()));
String url = re... |
public class class_name {
protected int indexOf(String text, String... values) {
int answer = -1;
for (String value : values) {
int idx = text.indexOf(value);
if (idx >= 0) {
if (answer < 0 || idx < answer) {
answer = idx;
}
... | public class class_name {
protected int indexOf(String text, String... values) {
int answer = -1;
for (String value : values) {
int idx = text.indexOf(value);
if (idx >= 0) {
if (answer < 0 || idx < answer) {
answer = idx; // depends on contro... |
public class class_name {
@Nonnull
public static String getExpandedMessage (@Nonnull final String sMsg)
{
final char cCheck = sMsg.length () == 8 ? sMsg.charAt (7) : '\u0000';
final String sUpce = sMsg.substring (0, 0 + 7);
final byte nNumberSystem = _extractNumberSystem (sUpce);
if (nNumberSystem ... | public class class_name {
@Nonnull
public static String getExpandedMessage (@Nonnull final String sMsg)
{
final char cCheck = sMsg.length () == 8 ? sMsg.charAt (7) : '\u0000';
final String sUpce = sMsg.substring (0, 0 + 7);
final byte nNumberSystem = _extractNumberSystem (sUpce);
if (nNumberSystem ... |
public class class_name {
private void visitCallContainingSpread(Node spreadParent) {
checkArgument(spreadParent.isCall());
Node callee = spreadParent.getFirstChild();
// Check if the callee has side effects before removing it from the AST (since some NodeUtil
// methods assume the node they are passe... | public class class_name {
private void visitCallContainingSpread(Node spreadParent) {
checkArgument(spreadParent.isCall());
Node callee = spreadParent.getFirstChild();
// Check if the callee has side effects before removing it from the AST (since some NodeUtil
// methods assume the node they are passe... |
public class class_name {
public Observable<ServiceResponse<Page<BillingMeterInner>>> listBillingMetersNextSinglePageAsync(final String nextPageLink) {
if (nextPageLink == null) {
throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
}
String ... | public class class_name {
public Observable<ServiceResponse<Page<BillingMeterInner>>> listBillingMetersNextSinglePageAsync(final String nextPageLink) {
if (nextPageLink == null) {
throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
}
String ... |
public class class_name {
public void undo() {
if (isListChange()) {
LOGGER.trace("Undoing list change: " + oldList.get().toString());
setting.valueProperty().setValue(oldList.get());
} else {
setting.valueProperty().setValue(oldValue.get());
}
} } | public class class_name {
public void undo() {
if (isListChange()) {
LOGGER.trace("Undoing list change: " + oldList.get().toString()); // depends on control dependency: [if], data = [none]
setting.valueProperty().setValue(oldList.get()); // depends on control dependency: [if], data = [none]
} else ... |
public class class_name {
@Override
public EEnum getIfcDoorPanelOperationEnum() {
if (ifcDoorPanelOperationEnumEEnum == null) {
ifcDoorPanelOperationEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(965);
}
return ifcDoorPanelOperationEnumEEnum;... | public class class_name {
@Override
public EEnum getIfcDoorPanelOperationEnum() {
if (ifcDoorPanelOperationEnumEEnum == null) {
ifcDoorPanelOperationEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(965);
// depends on control dependency: [if], data ... |
public class class_name {
public void marshall(ExponentialRolloutRate exponentialRolloutRate, ProtocolMarshaller protocolMarshaller) {
if (exponentialRolloutRate == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(ExponentialRolloutRate exponentialRolloutRate, ProtocolMarshaller protocolMarshaller) {
if (exponentialRolloutRate == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
public DataObjectModel view(String... properties)
{
DataObjectModel view = clone();
view.propertyList = new ArrayList<String>();
for (String property : properties)
{
view.propertyList.add(property);
}
return view;
} ... | public class class_name {
public DataObjectModel view(String... properties)
{
DataObjectModel view = clone();
view.propertyList = new ArrayList<String>();
for (String property : properties)
{
view.propertyList.add(property);
// depends on control dependency: [for]... |
public class class_name {
private void calculateError(){
int totalErrorCount = 0;
int totalRedundancy = 0;
int trueCoverage = 0;
int totalCoverage = 0;
int numNoise = 0;
double errorNoise = 0;
double errorNoiseMax = 0;
double errorMissed = 0;
do... | public class class_name {
private void calculateError(){
int totalErrorCount = 0;
int totalRedundancy = 0;
int trueCoverage = 0;
int totalCoverage = 0;
int numNoise = 0;
double errorNoise = 0;
double errorNoiseMax = 0;
double errorMissed = 0;
do... |
public class class_name {
public final String input() throws RecognitionException {
String value = null;
String unquoted_string3 =null;
String quoted_string4 =null;
try {
// C:\\Project\\Obdalib\\obdalib-parent\\obdalib-core\\src\\main\\java\\it\\unibz\\inf\\obda\\gui\\... | public class class_name {
public final String input() throws RecognitionException {
String value = null;
String unquoted_string3 =null;
String quoted_string4 =null;
try {
// C:\\Project\\Obdalib\\obdalib-parent\\obdalib-core\\src\\main\\java\\it\\unibz\\inf\\obda\\gui\\... |
public class class_name {
private static void callback(long handle, String docID, long sequence) {
final C4DocumentObserver obs = REVERSE_LOOKUP_TABLE.get(handle);
if (obs != null && obs.listener != null) { obs.listener.callback(obs, docID, sequence, obs.context); }
} } | public class class_name {
private static void callback(long handle, String docID, long sequence) {
final C4DocumentObserver obs = REVERSE_LOOKUP_TABLE.get(handle);
if (obs != null && obs.listener != null) { obs.listener.callback(obs, docID, sequence, obs.context); } // depends on control dependency: [i... |
public class class_name {
@Override
protected void initialize() {
super.initialize();
ClientLayerTreeInfo ltwli = (ClientLayerTreeInfo) mapWidget.getMapModel().getMapInfo()
.getWidgetInfo(ClientLayerTreeInfo.IDENTIFIER);
setIconSize(ltwli == null ? GltLayout.layerTreeIconSize : ltwli.getIconSize());
for ... | public class class_name {
@Override
protected void initialize() {
super.initialize();
ClientLayerTreeInfo ltwli = (ClientLayerTreeInfo) mapWidget.getMapModel().getMapInfo()
.getWidgetInfo(ClientLayerTreeInfo.IDENTIFIER);
setIconSize(ltwli == null ? GltLayout.layerTreeIconSize : ltwli.getIconSize());
for ... |
public class class_name {
public static boolean isFile(Path path, boolean isFollowLinks) {
if (null == path) {
return false;
}
final LinkOption[] options = isFollowLinks ? new LinkOption[0] : new LinkOption[] { LinkOption.NOFOLLOW_LINKS };
return Files.isRegularFile(path, options);
} } | public class class_name {
public static boolean isFile(Path path, boolean isFollowLinks) {
if (null == path) {
return false;
// depends on control dependency: [if], data = [none]
}
final LinkOption[] options = isFollowLinks ? new LinkOption[0] : new LinkOption[] { LinkOption.NOFOLLOW_LINKS };
return Fi... |
public class class_name {
public void marshall(ProviderDescription providerDescription, ProtocolMarshaller protocolMarshaller) {
if (providerDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(ProviderDescription providerDescription, ProtocolMarshaller protocolMarshaller) {
if (providerDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
public static String convertToLevel3(final String biopaxData) {
String toReturn = "";
try {
ByteArrayOutputStream os = new ByteArrayOutputStream();
InputStream is = new ByteArrayInputStream(biopaxData.getBytes());
SimpleIOHandler io = new SimpleIOHandler();
io.mergeDuplicat... | public class class_name {
public static String convertToLevel3(final String biopaxData) {
String toReturn = "";
try {
ByteArrayOutputStream os = new ByteArrayOutputStream();
InputStream is = new ByteArrayInputStream(biopaxData.getBytes());
SimpleIOHandler io = new SimpleIOHandler();
io.mergeDuplicat... |
public class class_name {
protected void endTransaction(final Transaction tx) {
ContextTransactionManager tm = ContextTransactionManager.getInstance();
try {
if (! tx.equals(tm.getTransaction())) {
throw EjbLogger.ROOT_LOGGER.wrongTxOnThread(tx, tm.getTransaction());
... | public class class_name {
protected void endTransaction(final Transaction tx) {
ContextTransactionManager tm = ContextTransactionManager.getInstance();
try {
if (! tx.equals(tm.getTransaction())) {
throw EjbLogger.ROOT_LOGGER.wrongTxOnThread(tx, tm.getTransaction());
... |
public class class_name {
public void marshall(GetBundlesRequest getBundlesRequest, ProtocolMarshaller protocolMarshaller) {
if (getBundlesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(g... | public class class_name {
public void marshall(GetBundlesRequest getBundlesRequest, ProtocolMarshaller protocolMarshaller) {
if (getBundlesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(g... |
public class class_name {
public ExchangeAttribute parse(final String valueString) {
final List<ExchangeAttribute> attributes = new ArrayList<>();
int pos = 0;
int state = 0; //0 = literal, 1 = %, 2 = %{, 3 = $, 4 = ${
for (int i = 0; i < valueString.length(); ++i) {
char c ... | public class class_name {
public ExchangeAttribute parse(final String valueString) {
final List<ExchangeAttribute> attributes = new ArrayList<>();
int pos = 0;
int state = 0; //0 = literal, 1 = %, 2 = %{, 3 = $, 4 = ${
for (int i = 0; i < valueString.length(); ++i) {
char c ... |
public class class_name {
public java.util.List<VpcCidrBlockAssociation> getCidrBlockAssociationSet() {
if (cidrBlockAssociationSet == null) {
cidrBlockAssociationSet = new com.amazonaws.internal.SdkInternalList<VpcCidrBlockAssociation>();
}
return cidrBlockAssociationSet;
} } | public class class_name {
public java.util.List<VpcCidrBlockAssociation> getCidrBlockAssociationSet() {
if (cidrBlockAssociationSet == null) {
cidrBlockAssociationSet = new com.amazonaws.internal.SdkInternalList<VpcCidrBlockAssociation>(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void requestAfterExplanation(@NonNull String permissionName) {
if (isPermissionDeclined(permissionName)) {
ActivityCompat.requestPermissions(context, new String[]{permissionName}, REQUEST_PERMISSIONS);
} else {
permissionCallback.onPermissionPreG... | public class class_name {
public void requestAfterExplanation(@NonNull String permissionName) {
if (isPermissionDeclined(permissionName)) {
ActivityCompat.requestPermissions(context, new String[]{permissionName}, REQUEST_PERMISSIONS); // depends on control dependency: [if], data = [none]
} ... |
public class class_name {
private void readCalendars()
{
//
// Create the calendars
//
for (MapRow row : getTable("NCALTAB"))
{
ProjectCalendar calendar = m_projectFile.addCalendar();
calendar.setUniqueID(row.getInteger("UNIQUE_ID"));
calendar.setName(row.get... | public class class_name {
private void readCalendars()
{
//
// Create the calendars
//
for (MapRow row : getTable("NCALTAB"))
{
ProjectCalendar calendar = m_projectFile.addCalendar();
calendar.setUniqueID(row.getInteger("UNIQUE_ID")); // depends on control dependency:... |
public class class_name {
@Override
protected NodePropBundle loadBundle(NodeId id) throws ItemStateException {
try {
ResultSet rs =
conHelper.exec(bundleSelectSQL, getKey(id), false, 0);
try {
if (rs != null && rs.next()) {
return ... | public class class_name {
@Override
protected NodePropBundle loadBundle(NodeId id) throws ItemStateException {
try {
ResultSet rs =
conHelper.exec(bundleSelectSQL, getKey(id), false, 0);
try {
if (rs != null && rs.next()) {
return ... |
public class class_name {
public static String filterNormalizeMediaUri(String value) {
if (EscapingConventions.FilterNormalizeMediaUri.INSTANCE
.getValueFilter()
.matcher(value)
.find()) {
return EscapingConventions.FilterNormalizeMediaUri.INSTANCE.escape(value);
}
logger.log(... | public class class_name {
public static String filterNormalizeMediaUri(String value) {
if (EscapingConventions.FilterNormalizeMediaUri.INSTANCE
.getValueFilter()
.matcher(value)
.find()) {
return EscapingConventions.FilterNormalizeMediaUri.INSTANCE.escape(value); // depends on control... |
public class class_name {
public double get(long i) {
if (i < 0 || i >= idxAfterLast) {
return missingEntries;
}
return elements[SafeCast.safeLongToInt(i)];
} } | public class class_name {
public double get(long i) {
if (i < 0 || i >= idxAfterLast) {
return missingEntries; // depends on control dependency: [if], data = [none]
}
return elements[SafeCast.safeLongToInt(i)];
} } |
public class class_name {
Motion selectCoordinateBase(View view ) {
double bestScore = 0;
Motion best = null;
if( verbose != null )
verbose.println("selectCoordinateBase");
for (int i = 0; i < view.connections.size(); i++) {
Motion e = view.connections.get(i);
double s = e.scoreTriangulation();
i... | public class class_name {
Motion selectCoordinateBase(View view ) {
double bestScore = 0;
Motion best = null;
if( verbose != null )
verbose.println("selectCoordinateBase");
for (int i = 0; i < view.connections.size(); i++) {
Motion e = view.connections.get(i);
double s = e.scoreTriangulation();
i... |
public class class_name {
public void marshall(ProblemDetail problemDetail, ProtocolMarshaller protocolMarshaller) {
if (problemDetail == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(problemDetail... | public class class_name {
public void marshall(ProblemDetail problemDetail, ProtocolMarshaller protocolMarshaller) {
if (problemDetail == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(problemDetail... |
public class class_name {
public void clearCaches() {
try {
FSTInputStream.cachedBuffer.set(null);
while (!cacheLock.compareAndSet(false, true)) {
// empty
}
cachedObjects.clear();
} finally {
cacheLock.set( false );
}
... | public class class_name {
public void clearCaches() {
try {
FSTInputStream.cachedBuffer.set(null); // depends on control dependency: [try], data = [none]
while (!cacheLock.compareAndSet(false, true)) {
// empty
}
cachedObjects.clear(); // depends ... |
public class class_name {
private void applySettings() {
// reset the container.
container.reset();
// create the new collapsible.
WText component1 = new WText("Here is some text that is collapsible via ajax.");
WCollapsible collapsible1 = new WCollapsible(component1, "Collapsible",
(CollapsibleMode) rb... | public class class_name {
private void applySettings() {
// reset the container.
container.reset();
// create the new collapsible.
WText component1 = new WText("Here is some text that is collapsible via ajax.");
WCollapsible collapsible1 = new WCollapsible(component1, "Collapsible",
(CollapsibleMode) rb... |
public class class_name {
@Override
protected void doPerform() {
WebElement source = isSourceDocumentRoot() ? null : getFirstElement();
if (offset != null) {
Point offsetPoint = offset.offset(getSize());
getActions().moveToElement(source, offsetPoint.x(), offsetPoint.y()).pe... | public class class_name {
@Override
protected void doPerform() {
WebElement source = isSourceDocumentRoot() ? null : getFirstElement();
if (offset != null) {
Point offsetPoint = offset.offset(getSize());
getActions().moveToElement(source, offsetPoint.x(), offsetPoint.y()).pe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.