code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
static DBIDs randomSample(DBIDs ids, int samplesize, Random rnd, DBIDs previous) {
if(previous == null) {
return DBIDUtil.randomSample(ids, samplesize, rnd);
}
ModifiableDBIDs sample = DBIDUtil.newHashSet(samplesize);
sample.addDBIDs(previous);
sample.addDBIDs(DBIDUt... | public class class_name {
static DBIDs randomSample(DBIDs ids, int samplesize, Random rnd, DBIDs previous) {
if(previous == null) {
return DBIDUtil.randomSample(ids, samplesize, rnd); // depends on control dependency: [if], data = [none]
}
ModifiableDBIDs sample = DBIDUtil.newHashSet(samplesize);
... |
public class class_name {
public Promise transferFrom(File source) {
try {
return transferFrom(new FileInputStream(source));
} catch (Throwable cause) {
return Promise.reject(cause);
}
} } | public class class_name {
public Promise transferFrom(File source) {
try {
return transferFrom(new FileInputStream(source));
// depends on control dependency: [try], data = [none]
} catch (Throwable cause) {
return Promise.reject(cause);
}
// depends on control dependency: [catch], data = [none]
} } |
public class class_name {
public static boolean checkStorageAccessPermissions(Context context)
{ //Only for Android M and above.
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
String permission = "android.permission.READ_EXTERNAL_STORAGE";
int res = co... | public class class_name {
public static boolean checkStorageAccessPermissions(Context context)
{ //Only for Android M and above.
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
String permission = "android.permission.READ_EXTERNAL_STORAGE";
int res = co... |
public class class_name {
public <S, T> FromUnmarshaller<S, T> findUnmarshaller(ConverterKey<S,T> key) {
Converter<T,S> converter = findConverter(key.invert());
if (converter == null) {
return null;
}
if (FromUnmarshallerConverter.class.isAssignableFrom(converter.getClass())) {
return ((F... | public class class_name {
public <S, T> FromUnmarshaller<S, T> findUnmarshaller(ConverterKey<S,T> key) {
Converter<T,S> converter = findConverter(key.invert());
if (converter == null) {
return null;
// depends on control dependency: [if], data = [none]
}
if (FromUnmarshallerConverter.class.is... |
public class class_name {
public XmlSchemaAnnotation createLegStarAnnotation(
final XsdDataItem xsdDataItem) {
Document doc = _docBuilder.newDocument();
Element el = doc.createElementNS(getCOXBNamespace(), getCOXBElements());
Element elc = doc.createElementNS(getCOXBNamespace(), ge... | public class class_name {
public XmlSchemaAnnotation createLegStarAnnotation(
final XsdDataItem xsdDataItem) {
Document doc = _docBuilder.newDocument();
Element el = doc.createElementNS(getCOXBNamespace(), getCOXBElements());
Element elc = doc.createElementNS(getCOXBNamespace(), ge... |
public class class_name {
@Programmatic
public List<CommunicationChannelOwnerLink> findByOwner(final Object owner) {
if(owner == null) {
return null;
}
final Bookmark bookmark = bookmarkService.bookmarkFor(owner);
if(bookmark == null) {
return null;
}... | public class class_name {
@Programmatic
public List<CommunicationChannelOwnerLink> findByOwner(final Object owner) {
if(owner == null) {
return null; // depends on control dependency: [if], data = [none]
}
final Bookmark bookmark = bookmarkService.bookmarkFor(owner);
if(... |
public class class_name {
public static int schemeToDefaultPort(final String scheme) {
if(scheme.equals(HTTP_SCHEME)) {
return 80;
}
if(scheme.equals(HTTPS_SCHEME)) {
return 443;
}
if(scheme.equals(FTP_SCHEME)) {
return 21;
}
if(scheme.equals(RTSP_SCHEME)) {
return 554;
}
if(scheme.equals... | public class class_name {
public static int schemeToDefaultPort(final String scheme) {
if(scheme.equals(HTTP_SCHEME)) {
return 80; // depends on control dependency: [if], data = [none]
}
if(scheme.equals(HTTPS_SCHEME)) {
return 443; // depends on control dependency: [if], data = [none]
}
if(scheme.equa... |
public class class_name {
public static DiscountCurve createDiscountFactorsFromForwardRates(String name, TimeDiscretization tenor, double[] forwardRates) {
DiscountCurveInterpolation discountFactors = new DiscountCurveInterpolation(name);
double df = 1.0;
for(int timeIndex=0; timeIndex<tenor.getNumberOfTimeStep... | public class class_name {
public static DiscountCurve createDiscountFactorsFromForwardRates(String name, TimeDiscretization tenor, double[] forwardRates) {
DiscountCurveInterpolation discountFactors = new DiscountCurveInterpolation(name);
double df = 1.0;
for(int timeIndex=0; timeIndex<tenor.getNumberOfTimeStep... |
public class class_name {
private List<String> getCollection(String value) {
String arrayString = value;
if (arrayString.startsWith("[") && arrayString.endsWith("]")) {
arrayString = arrayString.substring(1, arrayString.length()-1);
}
return Arrays.stream(StringUtils.comma... | public class class_name {
private List<String> getCollection(String value) {
String arrayString = value;
if (arrayString.startsWith("[") && arrayString.endsWith("]")) {
arrayString = arrayString.substring(1, arrayString.length()-1); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void shutdown() {
if (clientList == null) {
return;
}
cancelEvictor();
for (RedisClient connection : clientList) {
try {
connection.shutdown();
} catch (Exception e) {
logger.debug(e.get... | public class class_name {
public void shutdown() {
if (clientList == null) {
return; // depends on control dependency: [if], data = [none]
}
cancelEvictor();
for (RedisClient connection : clientList) {
try {
connection.shutdown(); // depends on co... |
public class class_name {
protected LogEvent createLogEntry(
LogLevelType logLevel,
MuleMessage message,
String logMessage,
String argIntegrationScenario, String argContractId, Map<String, String> businessContextId,
Map<String, String> extraInfo,
Object payload,
Throwable exception) {
// ------------... | public class class_name {
protected LogEvent createLogEntry(
LogLevelType logLevel,
MuleMessage message,
String logMessage,
String argIntegrationScenario, String argContractId, Map<String, String> businessContextId,
Map<String, String> extraInfo,
Object payload,
Throwable exception) {
// ------------... |
public class class_name {
public static boolean shouldFocusNode(Context context, AccessibilityNodeInfoCompat node) {
if (node == null) {
return false;
}
if (!isVisibleOrLegacy(node)) {
LogUtils.log(AccessibilityNodeInfoUtils.class, Log.VERBOSE,
"Don'... | public class class_name {
public static boolean shouldFocusNode(Context context, AccessibilityNodeInfoCompat node) {
if (node == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (!isVisibleOrLegacy(node)) {
LogUtils.log(AccessibilityNodeI... |
public class class_name {
private static boolean isCritical(final X509Certificate certificate, final String extensionOid) {
val criticalOids = certificate.getCriticalExtensionOIDs();
if (criticalOids == null || criticalOids.isEmpty()) {
return false;
}
return criticalOids.co... | public class class_name {
private static boolean isCritical(final X509Certificate certificate, final String extensionOid) {
val criticalOids = certificate.getCriticalExtensionOIDs();
if (criticalOids == null || criticalOids.isEmpty()) {
return false; // depends on control dependency: [if], ... |
public class class_name {
private static String transform(String constantNameString)
{
StringBuilder sb = new StringBuilder();
String tokens[] = constantNameString.split("_");
List<String> list = new ArrayList<String>();
for (String token : tokens)
{
Strin... | public class class_name {
private static String transform(String constantNameString)
{
StringBuilder sb = new StringBuilder();
String tokens[] = constantNameString.split("_");
List<String> list = new ArrayList<String>();
for (String token : tokens)
{
Strin... |
public class class_name {
public RobotsDirectives getDirectivesFor(String ua, boolean useFallbacks) {
// find matching ua
for(String uaListed : namedUserAgents) {
if(ua.indexOf(uaListed)>-1) {
return agentsToDirectives.get(uaListed);
}
}
if(useFal... | public class class_name {
public RobotsDirectives getDirectivesFor(String ua, boolean useFallbacks) {
// find matching ua
for(String uaListed : namedUserAgents) {
if(ua.indexOf(uaListed)>-1) {
return agentsToDirectives.get(uaListed); // depends on control dependency: [if], d... |
public class class_name {
public static ScoringInfo[] prependScoringInfo(ScoringInfo scoringInfo, ScoringInfo[] scoringInfos) {
if (scoringInfos == null) {
return new ScoringInfo[]{ scoringInfo };
} else {
ScoringInfo[] bigger = new ScoringInfo[scoringInfos.length + 1];
System.arraycopy(scori... | public class class_name {
public static ScoringInfo[] prependScoringInfo(ScoringInfo scoringInfo, ScoringInfo[] scoringInfos) {
if (scoringInfos == null) {
return new ScoringInfo[]{ scoringInfo }; // depends on control dependency: [if], data = [none]
} else {
ScoringInfo[] bigger = new ScoringInfo[... |
public class class_name {
private int[] computeFirstStates(IntIntHashMap inlinkCount, int maxStates, int minInlinkCount) {
Comparator<IntIntHolder> comparator = new Comparator<FSAUtils.IntIntHolder>() {
public int compare(IntIntHolder o1, IntIntHolder o2) {
int v = o1.a - o2.a;
return v =... | public class class_name {
private int[] computeFirstStates(IntIntHashMap inlinkCount, int maxStates, int minInlinkCount) {
Comparator<IntIntHolder> comparator = new Comparator<FSAUtils.IntIntHolder>() {
public int compare(IntIntHolder o1, IntIntHolder o2) {
int v = o1.a - o2.a;
return v =... |
public class class_name {
String convertSoapMessageAsString(SOAPMessage soapMessage) {
if (soapMessage == null) {
return "null";
}
try {
ByteArrayOutputStream os = new ByteArrayOutputStream();
soapMessage.writeTo(os);
return new String(os.toByteArray(), determineMessageEncoding(soapMessage));
} cat... | public class class_name {
String convertSoapMessageAsString(SOAPMessage soapMessage) {
if (soapMessage == null) {
return "null"; // depends on control dependency: [if], data = [none]
}
try {
ByteArrayOutputStream os = new ByteArrayOutputStream();
soapMessage.writeTo(os); // depends on control dependency... |
public class class_name {
protected void setEmbeddableWebSphereTransactionManager(ServiceReference<EmbeddableWebSphereTransactionManager> ref) {
if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, metho... | public class class_name {
protected void setEmbeddableWebSphereTransactionManager(ServiceReference<EmbeddableWebSphereTransactionManager> ref) {
if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, metho... |
public class class_name {
public void marshall(AdminGetUserRequest adminGetUserRequest, ProtocolMarshaller protocolMarshaller) {
if (adminGetUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(AdminGetUserRequest adminGetUserRequest, ProtocolMarshaller protocolMarshaller) {
if (adminGetUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
private Pair<MethodSymbol, Attribute> attributeAnnotationNameValuePair(JCExpression nameValuePair,
Type thisAnnotationType, boolean badAnnotation, Env<AttrContext> env, boolean elidedValue)
{
if (!nameValuePair.hasTag(ASSIGN)) {
log.error(nameValuePair.pos(... | public class class_name {
private Pair<MethodSymbol, Attribute> attributeAnnotationNameValuePair(JCExpression nameValuePair,
Type thisAnnotationType, boolean badAnnotation, Env<AttrContext> env, boolean elidedValue)
{
if (!nameValuePair.hasTag(ASSIGN)) {
log.error(nameValuePair.pos(... |
public class class_name {
public Set<String> getIdAttributes(final BuildData buildData) {
final Set<String> ids = new HashSet<String>();
// Add all the level id attributes
for (final Level level : levels) {
ids.add(level.getUniqueLinkId(buildData.isUseFixedUrls()));
}
... | public class class_name {
public Set<String> getIdAttributes(final BuildData buildData) {
final Set<String> ids = new HashSet<String>();
// Add all the level id attributes
for (final Level level : levels) {
ids.add(level.getUniqueLinkId(buildData.isUseFixedUrls())); // depends on c... |
public class class_name {
@Override
public String render(final JavaDocData nonNullData, final SortableLocation location) {
// Compile the XSD documentation string for this Node.
final StringBuilder builder = new StringBuilder();
// First, render the JavaDoc comment.
builder.append... | public class class_name {
@Override
public String render(final JavaDocData nonNullData, final SortableLocation location) {
// Compile the XSD documentation string for this Node.
final StringBuilder builder = new StringBuilder();
// First, render the JavaDoc comment.
builder.append... |
public class class_name {
private void validateRequiredParams() {
String[] uriStrings = getURI().split("\\?");
if (uriStrings.length > 0) {
List<String> requiredParms = extractRequiredParamsInURI(uriStrings[0]);
for (String param: requiredParms) {
Utils.require(comman... | public class class_name {
private void validateRequiredParams() {
String[] uriStrings = getURI().split("\\?");
if (uriStrings.length > 0) {
List<String> requiredParms = extractRequiredParamsInURI(uriStrings[0]);
for (String param: requiredParms) {
Utils.require(comman... |
public class class_name {
private static int computeKey(Collection array) {
int intKey = 0;
for (Object s : array) {
intKey += s.hashCode();
}
return intKey;
} } | public class class_name {
private static int computeKey(Collection array) {
int intKey = 0;
for (Object s : array) {
intKey += s.hashCode(); // depends on control dependency: [for], data = [s]
}
return intKey;
} } |
public class class_name {
private void cboDataSetActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_cboDataSetActionPerformed
txtQueryEditor.setText(EMPTY_TEXT); // clear the text editor
JComboBox cb = (JComboBox) evt.getSource();
if (cb.getSelectedIndex() != -1) {
RelationDefinition dd = (Re... | public class class_name {
private void cboDataSetActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_cboDataSetActionPerformed
txtQueryEditor.setText(EMPTY_TEXT); // clear the text editor
JComboBox cb = (JComboBox) evt.getSource();
if (cb.getSelectedIndex() != -1) {
RelationDefinition dd = (Re... |
public class class_name {
void serializeUpdateWithExplicitVersion(@NonNull Collection<TableEntry> entries, byte[] target) {
int offset = 0;
for (TableEntry e : entries) {
offset = serializeUpdate(e, target, offset, e.getKey().getVersion());
}
} } | public class class_name {
void serializeUpdateWithExplicitVersion(@NonNull Collection<TableEntry> entries, byte[] target) {
int offset = 0;
for (TableEntry e : entries) {
offset = serializeUpdate(e, target, offset, e.getKey().getVersion()); // depends on control dependency: [for], data = [e... |
public class class_name {
public Throwable blockingGetError() {
if (getCount() != 0) {
try {
BlockingHelper.verifyNonBlocking();
await();
} catch (InterruptedException ex) {
dispose();
return ex;
}
}
... | public class class_name {
public Throwable blockingGetError() {
if (getCount() != 0) {
try {
BlockingHelper.verifyNonBlocking(); // depends on control dependency: [try], data = [none]
await(); // depends on control dependency: [try], data = [none]
} catch... |
public class class_name {
protected boolean compareValues(Object previous, Object value) {
if (previous instanceof String && value instanceof Double) {
previous = Double.valueOf((String) previous);
}
return super.compareValues(previous, value);
} } | public class class_name {
protected boolean compareValues(Object previous, Object value) {
if (previous instanceof String && value instanceof Double) {
previous = Double.valueOf((String) previous); // depends on control dependency: [if], data = [none]
}
return super.compareValues(previous, value);
} } |
public class class_name {
public Authentication authenticate(Authentication authentication)
throws AuthenticationException {
Class<? extends Authentication> toTest = authentication.getClass();
AuthenticationException lastException = null;
AuthenticationException parentException = null;
Authentication result... | public class class_name {
public Authentication authenticate(Authentication authentication)
throws AuthenticationException {
Class<? extends Authentication> toTest = authentication.getClass();
AuthenticationException lastException = null;
AuthenticationException parentException = null;
Authentication result... |
public class class_name {
public EClass getIfcPreDefinedPointMarkerSymbol() {
if (ifcPreDefinedPointMarkerSymbolEClass == null) {
ifcPreDefinedPointMarkerSymbolEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(376);
}
return ifcPreDefinedPointM... | public class class_name {
public EClass getIfcPreDefinedPointMarkerSymbol() {
if (ifcPreDefinedPointMarkerSymbolEClass == null) {
ifcPreDefinedPointMarkerSymbolEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(376);
// depends on control dependency:... |
public class class_name {
public void marshall(CreateAppRequest createAppRequest, ProtocolMarshaller protocolMarshaller) {
if (createAppRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(crea... | public class class_name {
public void marshall(CreateAppRequest createAppRequest, ProtocolMarshaller protocolMarshaller) {
if (createAppRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(crea... |
public class class_name {
public static void writeRow(Row row, Iterable<?> rowData, StyleSet styleSet, boolean isHeader) {
int i = 0;
Cell cell;
for (Object value : rowData) {
cell = row.createCell(i);
CellUtil.setCellValue(cell, value, styleSet, isHeader);
i++;
}
} } | public class class_name {
public static void writeRow(Row row, Iterable<?> rowData, StyleSet styleSet, boolean isHeader) {
int i = 0;
Cell cell;
for (Object value : rowData) {
cell = row.createCell(i);
// depends on control dependency: [for], data = [none]
CellUtil.setCellValue(cell, value, styleSet, ... |
public class class_name {
public static DataSet<Edge<Long, String>> getEdges(ExecutionEnvironment env) {
List<Edge<Long, String>> edges = new ArrayList<>(INPUT_EDGES.length);
for (String edge : INPUT_EDGES) {
String[] tokens = edge.split(";");
edges.add(new Edge<>(Long.parseLong(tokens[0]), Long.parseLong(to... | public class class_name {
public static DataSet<Edge<Long, String>> getEdges(ExecutionEnvironment env) {
List<Edge<Long, String>> edges = new ArrayList<>(INPUT_EDGES.length);
for (String edge : INPUT_EDGES) {
String[] tokens = edge.split(";");
edges.add(new Edge<>(Long.parseLong(tokens[0]), Long.parseLong(to... |
public class class_name {
private int findNextTypeId() {
int result = (int)(20000 + Math.round(Math.random() * 1000));
for (I_CmsResourceType type : OpenCms.getResourceManager().getResourceTypes()) {
if (type.getTypeId() >= result) {
result = type.getTypeId() + 1;
... | public class class_name {
private int findNextTypeId() {
int result = (int)(20000 + Math.round(Math.random() * 1000));
for (I_CmsResourceType type : OpenCms.getResourceManager().getResourceTypes()) {
if (type.getTypeId() >= result) {
result = type.getTypeId() + 1; // depend... |
public class class_name {
private List<SyndPerson> parsePersons(final String baseURI, final List<Element> ePersons, final Locale locale) {
final List<SyndPerson> persons = new ArrayList<SyndPerson>();
for (final Element ePerson : ePersons) {
persons.add(parsePerson(baseURI, ePerson, locale... | public class class_name {
private List<SyndPerson> parsePersons(final String baseURI, final List<Element> ePersons, final Locale locale) {
final List<SyndPerson> persons = new ArrayList<SyndPerson>();
for (final Element ePerson : ePersons) {
persons.add(parsePerson(baseURI, ePerson, locale... |
public class class_name {
public BaseMessage sendMessageRequest(BaseMessage messageOut)
{
if (m_con == null)
{
try {
m_con = SOAPConnectionFactory.newInstance().createConnection();
} catch(Exception e) {
Utility.getLogger().warning("Unable to ... | public class class_name {
public BaseMessage sendMessageRequest(BaseMessage messageOut)
{
if (m_con == null)
{
try {
m_con = SOAPConnectionFactory.newInstance().createConnection(); // depends on control dependency: [try], data = [none]
} catch(Exception e) {
... |
public class class_name {
public void handle(Collection<Data> keys, Collection<String> sourceUuids,
Collection<UUID> partitionUuids, Collection<Long> sequences) {
Iterator<Data> keyIterator = keys.iterator();
Iterator<Long> sequenceIterator = sequences.iterator();
Iterato... | public class class_name {
public void handle(Collection<Data> keys, Collection<String> sourceUuids,
Collection<UUID> partitionUuids, Collection<Long> sequences) {
Iterator<Data> keyIterator = keys.iterator();
Iterator<Long> sequenceIterator = sequences.iterator();
Iterato... |
public class class_name {
public synchronized boolean hasService(Class serviceClass) {
// todo: for multithreaded usage this block needs to be synchronized
ServiceProvider sp = _serviceProviders.get(serviceClass);
if (sp != null && !sp.isRevoked()) {
return true;
}
... | public class class_name {
public synchronized boolean hasService(Class serviceClass) {
// todo: for multithreaded usage this block needs to be synchronized
ServiceProvider sp = _serviceProviders.get(serviceClass);
if (sp != null && !sp.isRevoked()) {
return true; // depends on cont... |
public class class_name {
public EClass getIfcPresentationLayerWithStyle() {
if (ifcPresentationLayerWithStyleEClass == null) {
ifcPresentationLayerWithStyleEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(381);
}
return ifcPresentationLayerWi... | public class class_name {
public EClass getIfcPresentationLayerWithStyle() {
if (ifcPresentationLayerWithStyleEClass == null) {
ifcPresentationLayerWithStyleEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(381);
// depends on control dependency: [i... |
public class class_name {
public ModelNode getNoTextDescription(boolean forOperation) {
final ModelNode result = new ModelNode();
result.get(ModelDescriptionConstants.TYPE).set(type);
result.get(ModelDescriptionConstants.DESCRIPTION); // placeholder
if (attributeGroup != null && !forOpe... | public class class_name {
public ModelNode getNoTextDescription(boolean forOperation) {
final ModelNode result = new ModelNode();
result.get(ModelDescriptionConstants.TYPE).set(type);
result.get(ModelDescriptionConstants.DESCRIPTION); // placeholder
if (attributeGroup != null && !forOpe... |
public class class_name {
private static void getChroma00(byte[] pic, int picW, int picH, byte[] blk, int blkOff, int blkStride, int x, int y,
int blkW, int blkH) {
int off = y * picW + x;
for (int j = 0; j < blkH; j++) {
arraycopy(pic, off, blk, blkOff, blkW);
off +... | public class class_name {
private static void getChroma00(byte[] pic, int picW, int picH, byte[] blk, int blkOff, int blkStride, int x, int y,
int blkW, int blkH) {
int off = y * picW + x;
for (int j = 0; j < blkH; j++) {
arraycopy(pic, off, blk, blkOff, blkW); // depends on con... |
public class class_name {
public String nextVASPToken(boolean newLine) throws IOException {
String line;
if (newLine) { // We ignore the end of the line and go to the following line
if (inputBuffer.ready()) {
line = inputBuffer.readLine();
st = new StringTo... | public class class_name {
public String nextVASPToken(boolean newLine) throws IOException {
String line;
if (newLine) { // We ignore the end of the line and go to the following line
if (inputBuffer.ready()) {
line = inputBuffer.readLine(); // depends on control dependency:... |
public class class_name {
public static void removeDuplicatesFromOutputDirectory(File outputDirectory,
File originDirectory) {
if (originDirectory.isDirectory()) {
for (String name : originDirectory.list()) {
File targetFile = new File(outputDirectory, name);
if (targetFile.exists() && targetFile.canWr... | public class class_name {
public static void removeDuplicatesFromOutputDirectory(File outputDirectory,
File originDirectory) {
if (originDirectory.isDirectory()) {
for (String name : originDirectory.list()) {
File targetFile = new File(outputDirectory, name);
if (targetFile.exists() && targetFile.canWr... |
public class class_name {
public double getFitness(String candidate,
List<? extends String> population)
{
int errors = 0;
for (int i = 0; i < candidate.length(); i++)
{
if (candidate.charAt(i) != targetString.charAt(i))
{
... | public class class_name {
public double getFitness(String candidate,
List<? extends String> population)
{
int errors = 0;
for (int i = 0; i < candidate.length(); i++)
{
if (candidate.charAt(i) != targetString.charAt(i))
{
... |
public class class_name {
public static TreePath createTreePathToRoot(
TreeModel treeModel, Object node)
{
List<Object> nodes = new ArrayList<Object>();
nodes.add(node);
Object current = node;
while (true)
{
Object parent = getParent(treeModel, cu... | public class class_name {
public static TreePath createTreePathToRoot(
TreeModel treeModel, Object node)
{
List<Object> nodes = new ArrayList<Object>();
nodes.add(node);
Object current = node;
while (true)
{
Object parent = getParent(treeModel, cu... |
public class class_name {
public void unregisterPushServices(TaskCompletionListener completionListener) {
RespokeClient activeInstance = null;
// If there are already client instances running, check if any of them have already connected
for (RespokeClient eachInstance : instances) {
... | public class class_name {
public void unregisterPushServices(TaskCompletionListener completionListener) {
RespokeClient activeInstance = null;
// If there are already client instances running, check if any of them have already connected
for (RespokeClient eachInstance : instances) {
... |
public class class_name {
public void setPartitions(java.util.Collection<Partition> partitions) {
if (partitions == null) {
this.partitions = null;
return;
}
this.partitions = new java.util.ArrayList<Partition>(partitions);
} } | public class class_name {
public void setPartitions(java.util.Collection<Partition> partitions) {
if (partitions == null) {
this.partitions = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this... |
public class class_name {
public static void shutdown() {
if (applicationContextCreator.isCreated()) {
final ConfigurableApplicationContext applicationContext =
applicationContextCreator.get();
applicationContext.close();
} else {
final IllegalSt... | public class class_name {
public static void shutdown() {
if (applicationContextCreator.isCreated()) {
final ConfigurableApplicationContext applicationContext =
applicationContextCreator.get();
applicationContext.close(); // depends on control dependency: [if], data... |
public class class_name {
public void setKeepAliveTime(long keepAliveTime) {
this.keepAliveTime = keepAliveTime;
if(this.timerKey != null) {
this.timerKey.remove();
}
this.timerKey = sink.getIoThread().executeAtInterval(new Runnable() {
@Override
publ... | public class class_name {
public void setKeepAliveTime(long keepAliveTime) {
this.keepAliveTime = keepAliveTime;
if(this.timerKey != null) {
this.timerKey.remove(); // depends on control dependency: [if], data = [none]
}
this.timerKey = sink.getIoThread().executeAtInterval(n... |
public class class_name {
public static final <T> void offer(T[] heapKeys, double[] heapValues, int heapSize,
T newKey, double newValue) {
heapKeys[heapSize] = newKey;
heapValues[heapSize] = newValue;
int curIndex = heapSize;
int parentIndex = (curIndex - 1) / 2;
while (heapValues[curIndex] ... | public class class_name {
public static final <T> void offer(T[] heapKeys, double[] heapValues, int heapSize,
T newKey, double newValue) {
heapKeys[heapSize] = newKey;
heapValues[heapSize] = newValue;
int curIndex = heapSize;
int parentIndex = (curIndex - 1) / 2;
while (heapValues[curIndex] ... |
public class class_name {
public void onResume() {
Session session = Session.getActiveSession();
if (session != null) {
if (callback != null) {
session.addCallback(callback);
}
if (SessionState.CREATED_TOKEN_LOADED.equals(session.getState())) {
... | public class class_name {
public void onResume() {
Session session = Session.getActiveSession();
if (session != null) {
if (callback != null) {
session.addCallback(callback); // depends on control dependency: [if], data = [(callback]
}
if (SessionStat... |
public class class_name {
public PropsEntry getProfileProperty(final String profile, final String key) {
final Map<String, PropsEntry> profileMap = profileProperties.get(profile);
if (profileMap == null) {
return null;
}
return profileMap.get(key);
} } | public class class_name {
public PropsEntry getProfileProperty(final String profile, final String key) {
final Map<String, PropsEntry> profileMap = profileProperties.get(profile);
if (profileMap == null) {
return null; // depends on control dependency: [if], data = [none]
}
return profileMap.get(key);
} } |
public class class_name {
protected void writeRequest(final NextFilter nextFilter,
final SocksProxyRequest request) {
try {
boolean isV4ARequest = request.getHost() != null;
byte[] userID = request.getUserName().getBytes("ASCII");
byte[] host = isV4ARequest ? req... | public class class_name {
protected void writeRequest(final NextFilter nextFilter,
final SocksProxyRequest request) {
try {
boolean isV4ARequest = request.getHost() != null;
byte[] userID = request.getUserName().getBytes("ASCII");
byte[] host = isV4ARequest ? req... |
public class class_name {
public void marshall(ListDevicesRequest listDevicesRequest, ProtocolMarshaller protocolMarshaller) {
if (listDevicesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(ListDevicesRequest listDevicesRequest, ProtocolMarshaller protocolMarshaller) {
if (listDevicesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public void addOrUpdateUsbDevice(UsbDevice usbDevice, boolean hasPermission) {
Preconditions.checkNotNull(usbDevice);
Preconditions.checkNotNull(usbDevice.getDeviceName());
usbDevices.put(usbDevice.getDeviceName(), usbDevice);
if (hasPermission) {
grantPermission(usbDevi... | public class class_name {
public void addOrUpdateUsbDevice(UsbDevice usbDevice, boolean hasPermission) {
Preconditions.checkNotNull(usbDevice);
Preconditions.checkNotNull(usbDevice.getDeviceName());
usbDevices.put(usbDevice.getDeviceName(), usbDevice);
if (hasPermission) {
grantPermission(usbDevi... |
public class class_name {
public void write(ByteBuffer buffer, int len) {
if (len < 1) return;
if (count >= content.length - len) {
byte[] ns = new byte[content.length + len];
System.arraycopy(content, 0, ns, 0, count);
this.content = ns;
}
buf... | public class class_name {
public void write(ByteBuffer buffer, int len) {
if (len < 1) return;
if (count >= content.length - len) {
byte[] ns = new byte[content.length + len];
System.arraycopy(content, 0, ns, 0, count);
// depends on control dependency: [if], data = [none]
... |
public class class_name {
private void buildupPropertiesBundles(final File file) throws IOException {
File[] files = file.listFiles();
for (File f : files) {
if (f.getName().endsWith("properties")) {
String bundleName = f.getName().substring(0,
f.getName().indexOf("properties") - 1);
LOG.info("L... | public class class_name {
private void buildupPropertiesBundles(final File file) throws IOException {
File[] files = file.listFiles();
for (File f : files) {
if (f.getName().endsWith("properties")) {
String bundleName = f.getName().substring(0,
f.getName().indexOf("properties") - 1);
LOG.info("L... |
public class class_name {
public void processNotContainsException(Map<String, String> parameters) {
LoggingEvent match = getMessageWithException(parameters);
if (match == null) {
cell.right();
} else {
cell.wrong(match.getThrowableInformation().getThrowableStrRep()[0]);
}
} } | public class class_name {
public void processNotContainsException(Map<String, String> parameters) {
LoggingEvent match = getMessageWithException(parameters);
if (match == null) {
cell.right(); // depends on control dependency: [if], data = [none]
} else {
cell.wrong(match.getThrowableInformation().getThro... |
public class class_name {
public void addUndoableMove(int moveThreadIndex, int stepIndex, int moveIndex, Move<Solution_> move) {
MoveResult<Solution_> result = new MoveResult<>(moveThreadIndex, stepIndex, moveIndex, move, false, null);
synchronized (this) {
if (result.getStepIndex() != filt... | public class class_name {
public void addUndoableMove(int moveThreadIndex, int stepIndex, int moveIndex, Move<Solution_> move) {
MoveResult<Solution_> result = new MoveResult<>(moveThreadIndex, stepIndex, moveIndex, move, false, null);
synchronized (this) {
if (result.getStepIndex() != filt... |
public class class_name {
private void pruneStatement(final Statement stmt, final Document doc) {
final List<StatementGroup> stmtgroups = doc.getAllStatementGroups();
for (final StatementGroup stmtgroup : stmtgroups) {
final Iterator<Statement> sgi = stmtgroup.getStatements()
... | public class class_name {
private void pruneStatement(final Statement stmt, final Document doc) {
final List<StatementGroup> stmtgroups = doc.getAllStatementGroups();
for (final StatementGroup stmtgroup : stmtgroups) {
final Iterator<Statement> sgi = stmtgroup.getStatements()
... |
public class class_name {
public Content getClassLinkLabel(Configuration configuration) {
if (label != null && !label.isEmpty()) {
return label;
} else if (isLinkable()) {
Content tlabel = newContent();
tlabel.addContent(configuration.utils.getSimpleName(typeElement)... | public class class_name {
public Content getClassLinkLabel(Configuration configuration) {
if (label != null && !label.isEmpty()) {
return label; // depends on control dependency: [if], data = [none]
} else if (isLinkable()) {
Content tlabel = newContent();
tlabel.add... |
public class class_name {
public BoundCodeDt<NarrativeStatusEnum> getStatus() {
if (myStatus == null) {
myStatus = new BoundCodeDt<NarrativeStatusEnum>(NarrativeStatusEnum.VALUESET_BINDER);
}
return myStatus;
} } | public class class_name {
public BoundCodeDt<NarrativeStatusEnum> getStatus() {
if (myStatus == null) {
myStatus = new BoundCodeDt<NarrativeStatusEnum>(NarrativeStatusEnum.VALUESET_BINDER); // depends on control dependency: [if], data = [none]
}
return myStatus;
} } |
public class class_name {
static ConfigurationPropertyName adapt(CharSequence name, char separator,
Function<CharSequence, CharSequence> elementValueProcessor) {
Assert.notNull(name, "Name must not be null");
if (name.length() == 0) {
return EMPTY;
}
Elements elements = new ElementsParser(name, separator... | public class class_name {
static ConfigurationPropertyName adapt(CharSequence name, char separator,
Function<CharSequence, CharSequence> elementValueProcessor) {
Assert.notNull(name, "Name must not be null");
if (name.length() == 0) {
return EMPTY; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private PeriodFormatterBuilder appendSuffix(PeriodFieldAffix suffix) {
final Object originalPrinter;
final Object originalParser;
if (iElementPairs.size() > 0) {
originalPrinter = iElementPairs.get(iElementPairs.size() - 2);
originalParser = iEl... | public class class_name {
private PeriodFormatterBuilder appendSuffix(PeriodFieldAffix suffix) {
final Object originalPrinter;
final Object originalParser;
if (iElementPairs.size() > 0) {
originalPrinter = iElementPairs.get(iElementPairs.size() - 2); // depends on control dependency... |
public class class_name {
public void marshall(ClientProperties clientProperties, ProtocolMarshaller protocolMarshaller) {
if (clientProperties == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(clie... | public class class_name {
public void marshall(ClientProperties clientProperties, ProtocolMarshaller protocolMarshaller) {
if (clientProperties == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(clie... |
public class class_name {
public void add(HeaderField header) {
int headerSize = header.size();
if (headerSize > capacity) {
clear();
return;
}
while (size + headerSize > capacity) {
remove();
}
headerFields[head++] = header;
size += header.size();
if (head == headerFi... | public class class_name {
public void add(HeaderField header) {
int headerSize = header.size();
if (headerSize > capacity) {
clear(); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
while (size + headerSize > capacity) {
... |
public class class_name {
public static void readStreamLines (@WillClose @Nullable final InputStream aIS,
@Nonnull @Nonempty final Charset aCharset,
@Nonnegative final int nLinesToSkip,
final int nLinesToR... | public class class_name {
public static void readStreamLines (@WillClose @Nullable final InputStream aIS,
@Nonnull @Nonempty final Charset aCharset,
@Nonnegative final int nLinesToSkip,
final int nLinesToR... |
public class class_name {
@Override
public void errormsg(String key, Object... args) {
if (isRunningInteractive()) {
rawout(prefixError(messageFormat(key, args)));
} else {
startmsg(key, args);
}
} } | public class class_name {
@Override
public void errormsg(String key, Object... args) {
if (isRunningInteractive()) {
rawout(prefixError(messageFormat(key, args))); // depends on control dependency: [if], data = [none]
} else {
startmsg(key, args); // depends on control depen... |
public class class_name {
public static String toHeaderValue(List<ExtensionConfig> configs) {
if ((configs == null) || (configs.isEmpty())) {
return null;
}
StringBuilder parameters = new StringBuilder();
boolean needsDelim = false;
for (ExtensionConfig ext : configs... | public class class_name {
public static String toHeaderValue(List<ExtensionConfig> configs) {
if ((configs == null) || (configs.isEmpty())) {
return null; // depends on control dependency: [if], data = [none]
}
StringBuilder parameters = new StringBuilder();
boolean needsDel... |
public class class_name {
@Override
public void run() {
if (executorService == null)
executorService = Executors.newSingleThreadExecutor();
if (!isServing()) {
beforeStart(getServerConfiguration().getServerAspect());
executorService.execute(() -> {
try {
start();
} catch (IkasoaException e) ... | public class class_name {
@Override
public void run() {
if (executorService == null)
executorService = Executors.newSingleThreadExecutor();
if (!isServing()) {
beforeStart(getServerConfiguration().getServerAspect()); // depends on control dependency: [if], data = [none]
executorService.execute(() -> {
... |
public class class_name {
@Override
protected List<ChecksumFile> getFilesToProcess()
{
List<ChecksumFile> files = new LinkedList<ChecksumFile>();
@SuppressWarnings("unchecked")
Set<Artifact> artifacts = transitive ? project.getArtifacts() : project.getDependencyArtifacts();
fo... | public class class_name {
@Override
protected List<ChecksumFile> getFilesToProcess()
{
List<ChecksumFile> files = new LinkedList<ChecksumFile>();
@SuppressWarnings("unchecked")
Set<Artifact> artifacts = transitive ? project.getArtifacts() : project.getDependencyArtifacts();
fo... |
public class class_name {
public void registerMonitor(final Graph.Monitor monitor) {
if (uiThreadRunner.isOnUiThread()) {
graph.registerMonitor(monitor);
} else {
uiThreadRunner.post(new Runnable() {
@Override
public void run() {
... | public class class_name {
public void registerMonitor(final Graph.Monitor monitor) {
if (uiThreadRunner.isOnUiThread()) {
graph.registerMonitor(monitor); // depends on control dependency: [if], data = [none]
} else {
uiThreadRunner.post(new Runnable() {
@Override... |
public class class_name {
private JCheckBox getChkParseSVNEntries() {
if (parseSVNEntries == null) {
parseSVNEntries = new JCheckBox();
parseSVNEntries.setText(Constant.messages.getString("spider.options.label.svnentries"));
}
return parseSVNEntries;
} } | public class class_name {
private JCheckBox getChkParseSVNEntries() {
if (parseSVNEntries == null) {
parseSVNEntries = new JCheckBox();
// depends on control dependency: [if], data = [none]
parseSVNEntries.setText(Constant.messages.getString("spider.options.label.svnentries"));
}
return parseSVNEntrie... |
public class class_name {
@Override
public Set<KamNode> findNode(Pattern labelPattern, NodeFilter filter) {
Set<KamNode> results = new LinkedHashSet<KamNode>();
for (KamNode node : getNodes()) {
boolean passedFilter = (filter == null || filter.accept(node));
if (passedFilte... | public class class_name {
@Override
public Set<KamNode> findNode(Pattern labelPattern, NodeFilter filter) {
Set<KamNode> results = new LinkedHashSet<KamNode>();
for (KamNode node : getNodes()) {
boolean passedFilter = (filter == null || filter.accept(node));
if (passedFilte... |
public class class_name {
public static synchronized void removeChannelGroup(String groupId) {
try {
if (_removeChannelGroup(groupId)) {
save();
}
} catch (Exception ex) {
Log.e(WonderPush.TAG, "Unexpected error while removing channel group " + groupI... | public class class_name {
public static synchronized void removeChannelGroup(String groupId) {
try {
if (_removeChannelGroup(groupId)) {
save(); // depends on control dependency: [if], data = [none]
}
} catch (Exception ex) {
Log.e(WonderPush.TAG, "Un... |
public class class_name {
public void merge(GridHubConfiguration other) {
if (other == null) {
return;
}
super.merge(other);
if (isMergeAble(CapabilityMatcher.class, other.capabilityMatcher, capabilityMatcher)) {
capabilityMatcher = other.capabilityMatcher;
}
if (isMergeAble(Intege... | public class class_name {
public void merge(GridHubConfiguration other) {
if (other == null) {
return; // depends on control dependency: [if], data = [none]
}
super.merge(other);
if (isMergeAble(CapabilityMatcher.class, other.capabilityMatcher, capabilityMatcher)) {
capabilityMatcher = oth... |
public class class_name {
public void setUserList(java.util.Collection<User> userList) {
if (userList == null) {
this.userList = null;
return;
}
this.userList = new java.util.ArrayList<User>(userList);
} } | public class class_name {
public void setUserList(java.util.Collection<User> userList) {
if (userList == null) {
this.userList = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.userList = n... |
public class class_name {
public static Object fromPersistenceType(Object value, Class<?> parameterType) {
if (!isTypeConversionRequired(parameterType)) {
return value;
}
if (Map.class.isAssignableFrom(parameterType) && (value instanceof String[])) {
String[] rows = (String[])value;
Map<S... | public class class_name {
public static Object fromPersistenceType(Object value, Class<?> parameterType) {
if (!isTypeConversionRequired(parameterType)) {
return value; // depends on control dependency: [if], data = [none]
}
if (Map.class.isAssignableFrom(parameterType) && (value instanceof String[])... |
public class class_name {
public Computer withComputerAttributes(Attribute... computerAttributes) {
if (this.computerAttributes == null) {
setComputerAttributes(new com.amazonaws.internal.SdkInternalList<Attribute>(computerAttributes.length));
}
for (Attribute ele : computerAttribut... | public class class_name {
public Computer withComputerAttributes(Attribute... computerAttributes) {
if (this.computerAttributes == null) {
setComputerAttributes(new com.amazonaws.internal.SdkInternalList<Attribute>(computerAttributes.length)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public ScheduledFuture<?> schedule() {
synchronized (this.triggerContextMonitor) {
this.scheduledExecutionTime = this.trigger.nextExecutionTime(this.triggerContext);
if (this.scheduledExecutionTime == null) {
return null;
}
... | public class class_name {
public ScheduledFuture<?> schedule() {
synchronized (this.triggerContextMonitor) {
this.scheduledExecutionTime = this.trigger.nextExecutionTime(this.triggerContext);
if (this.scheduledExecutionTime == null) {
return null; // depends on control d... |
public class class_name {
@Override
public void processIOSettingQuestion(IOSetting setting) {
// post the question
if (setting.getLevel().ordinal() <= this.level.ordinal()) {
String answer = setting.getSetting();
if (setting instanceof BooleanIOSetting) {
in... | public class class_name {
@Override
public void processIOSettingQuestion(IOSetting setting) {
// post the question
if (setting.getLevel().ordinal() <= this.level.ordinal()) {
String answer = setting.getSetting();
if (setting instanceof BooleanIOSetting) {
in... |
public class class_name {
public void reconstitute(
MessageProcessor processor,
HashMap durableSubscriptionsTable,
int startMode) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "reconstitute",
new Object[] { processor, dur... | public class class_name {
public void reconstitute(
MessageProcessor processor,
HashMap durableSubscriptionsTable,
int startMode) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "reconstitute",
new Object[] { processor, dur... |
public class class_name {
public IRObject getReference() {
if (ref == null) {
ref = org.omg.CORBA.ValueDefHelper.narrow(
servantToReference(new ValueDefPOATie(this)));
}
return ref;
} } | public class class_name {
public IRObject getReference() {
if (ref == null) {
ref = org.omg.CORBA.ValueDefHelper.narrow(
servantToReference(new ValueDefPOATie(this))); // depends on control dependency: [if], data = [none]
}
return ref;
} } |
public class class_name {
public Future<?> asynchronouslyDetermineLocalReplicas() {
return VoltDB.instance().getSES(false).submit(new Runnable() {
@Override
public void run() {
/*
* Assemble a map of all local replicas that will be used to determine
... | public class class_name {
public Future<?> asynchronouslyDetermineLocalReplicas() {
return VoltDB.instance().getSES(false).submit(new Runnable() {
@Override
public void run() {
/*
* Assemble a map of all local replicas that will be used to determine
... |
public class class_name {
public void marshall(GetCertificateAuthorityCertificateRequest getCertificateAuthorityCertificateRequest, ProtocolMarshaller protocolMarshaller) {
if (getCertificateAuthorityCertificateRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(..... | public class class_name {
public void marshall(GetCertificateAuthorityCertificateRequest getCertificateAuthorityCertificateRequest, ProtocolMarshaller protocolMarshaller) {
if (getCertificateAuthorityCertificateRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(..... |
public class class_name {
public void marshall(StartPipelineExecutionRequest startPipelineExecutionRequest, ProtocolMarshaller protocolMarshaller) {
if (startPipelineExecutionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(StartPipelineExecutionRequest startPipelineExecutionRequest, ProtocolMarshaller protocolMarshaller) {
if (startPipelineExecutionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public String getFieldName(int i) {
if (i >= nfields || i < 0) {
return null;
}
return (FieldDesc[i].Name);
} } | public class class_name {
public String getFieldName(int i) {
if (i >= nfields || i < 0) {
return null;
// depends on control dependency: [if], data = [none]
}
return (FieldDesc[i].Name);
} } |
public class class_name {
@Override
public int getCurrentBytes(final boolean compact) {
if (!compact) {
final byte lgArrLongs = mem_.getByte(LG_ARR_LONGS_BYTE);
final int preambleLongs = mem_.getByte(PREAMBLE_LONGS_BYTE) & 0X3F;
final int lengthBytes = (preambleLongs + (1 << lgArrLongs)) << 3;
... | public class class_name {
@Override
public int getCurrentBytes(final boolean compact) {
if (!compact) {
final byte lgArrLongs = mem_.getByte(LG_ARR_LONGS_BYTE);
final int preambleLongs = mem_.getByte(PREAMBLE_LONGS_BYTE) & 0X3F;
final int lengthBytes = (preambleLongs + (1 << lgArrLongs)) << 3;
... |
public class class_name {
public void marshall(Patch patch, ProtocolMarshaller protocolMarshaller) {
if (patch == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(patch.getId(), ID_BINDING);
... | public class class_name {
public void marshall(Patch patch, ProtocolMarshaller protocolMarshaller) {
if (patch == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(patch.getId(), ID_BINDING); // depend... |
public class class_name {
private Logger internalGetLogger(String name) {
assert name != null : "Name was null";
Logger rv = instances.get(name);
if (rv == null) {
Logger newLogger = null;
try {
newLogger = getNewInstance(name);
} catch (Exception e) {
throw new RuntimeEx... | public class class_name {
private Logger internalGetLogger(String name) {
assert name != null : "Name was null";
Logger rv = instances.get(name);
if (rv == null) {
Logger newLogger = null;
try {
newLogger = getNewInstance(name); // depends on control dependency: [try], data = [none]
... |
public class class_name {
@Override
protected boolean initiateClient()
{
try
{
SchemeSocketFactory ssf = null;
ssf = PlainSocketFactory.getSocketFactory();
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("h... | public class class_name {
@Override
protected boolean initiateClient()
{
try
{
SchemeSocketFactory ssf = null;
ssf = PlainSocketFactory.getSocketFactory(); // depends on control dependency: [try], data = [none]
SchemeRegistry schemeRegistry = new SchemeRegist... |
public class class_name {
public void update(final Sketch<S> sketchIn) {
if (sketchIn == null || sketchIn.isEmpty()) { return; }
if (sketchIn.theta_ < theta_) { theta_ = sketchIn.theta_; }
final SketchIterator<S> it = sketchIn.iterator();
while (it.next()) {
sketch_.merge(it.getKey(), it.getSumma... | public class class_name {
public void update(final Sketch<S> sketchIn) {
if (sketchIn == null || sketchIn.isEmpty()) { return; } // depends on control dependency: [if], data = [none]
if (sketchIn.theta_ < theta_) { theta_ = sketchIn.theta_; } // depends on control dependency: [if], data = [none]
final Sket... |
public class class_name {
public void stop()
{
if (!mIsRunning || (mAnimations.size() == 0))
{
return;
}
GVRAnimation anim = mAnimations.get(0);
mIsRunning = false;
anim.setOnFinish(null);
for (int i = 0; i < mAnimations.size(); ++i)
{
... | public class class_name {
public void stop()
{
if (!mIsRunning || (mAnimations.size() == 0))
{
return; // depends on control dependency: [if], data = [none]
}
GVRAnimation anim = mAnimations.get(0);
mIsRunning = false;
anim.setOnFinish(null);
for ... |
public class class_name {
public static void doLogicalDetachFromHtmlPanel(Widget w) {
Widget parent = w.getParent();
if (parent instanceof HTMLPanel) {
complexPanelGetChildren((HTMLPanel) parent).remove(w);
widgetSetParent(w, null);
} else {
throw new IllegalStateException(
"Yo... | public class class_name {
public static void doLogicalDetachFromHtmlPanel(Widget w) {
Widget parent = w.getParent();
if (parent instanceof HTMLPanel) {
complexPanelGetChildren((HTMLPanel) parent).remove(w); // depends on control dependency: [if], data = [none]
widgetSetParent(w, null); // depends ... |
public class class_name {
public Object getContent() throws IOException, UnsupportedEncodingException {
ContentTypeHeader contentTypeHeader = (ContentTypeHeader)
this.message.getHeader(ContentTypeHeader.NAME);
if(contentTypeHeader != null && logger.isDebugEnabled()) {
logger.debug("Content type " + contentT... | public class class_name {
public Object getContent() throws IOException, UnsupportedEncodingException {
ContentTypeHeader contentTypeHeader = (ContentTypeHeader)
this.message.getHeader(ContentTypeHeader.NAME);
if(contentTypeHeader != null && logger.isDebugEnabled()) {
logger.debug("Content type " + contentT... |
public class class_name {
@Override
protected void doStart() {
log.info("{}: Starting.", this.traceObjectId);
this.delayedStartRetry
.runAsync(() -> tryStartOnce()
.whenComplete((v, ex) -> {
if (ex == null) {
... | public class class_name {
@Override
protected void doStart() {
log.info("{}: Starting.", this.traceObjectId);
this.delayedStartRetry
.runAsync(() -> tryStartOnce()
.whenComplete((v, ex) -> {
if (ex == null) {
... |
public class class_name {
public boolean recordNgInject(boolean ngInject) {
if (!isNgInjectRecorded()) {
currentInfo.setNgInject(ngInject);
populated = true;
return true;
} else {
return false;
}
} } | public class class_name {
public boolean recordNgInject(boolean ngInject) {
if (!isNgInjectRecorded()) {
currentInfo.setNgInject(ngInject); // depends on control dependency: [if], data = [none]
populated = true; // depends on control dependency: [if], data = [none]
return true; // depends on cont... |
public class class_name {
@Override
protected void implementInterface(InterfaceCapableSource<?> source, Iterable<String> value, JavaSourceFacet facet)
{
for (String type : value)
{
source.addInterface(type);
}
} } | public class class_name {
@Override
protected void implementInterface(InterfaceCapableSource<?> source, Iterable<String> value, JavaSourceFacet facet)
{
for (String type : value)
{
source.addInterface(type); // depends on control dependency: [for], data = [type]
}
} } |
public class class_name {
@Override
public void add(Difference difference) {
if(ignorePaths == null) {
list.add(difference);
} else {
String pathA = trimNonXmlElements(difference.getPathA());
String pathB = trimNonXmlElements(difference.getPathB());
i... | public class class_name {
@Override
public void add(Difference difference) {
if(ignorePaths == null) {
list.add(difference); // depends on control dependency: [if], data = [none]
} else {
String pathA = trimNonXmlElements(difference.getPathA());
String pathB = tr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.