code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public EClass getListDataValue() {
if (listDataValueEClass == null) {
listDataValueEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(24);
}
return listDataValueEClass;
} } | public class class_name {
@Override
public EClass getListDataValue() {
if (listDataValueEClass == null) {
listDataValueEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(24);
// depends on control dependency: [if], data = [none]
}
return listDataValueECl... |
public class class_name {
public Element createDefaultXml(CmsObject cms, I_CmsXmlDocument document, Element root, Locale locale) {
Iterator<I_CmsXmlSchemaType> i = m_typeSequence.iterator();
while (i.hasNext()) {
I_CmsXmlSchemaType type = i.next();
for (int j = 0; j < type.getM... | public class class_name {
public Element createDefaultXml(CmsObject cms, I_CmsXmlDocument document, Element root, Locale locale) {
Iterator<I_CmsXmlSchemaType> i = m_typeSequence.iterator();
while (i.hasNext()) {
I_CmsXmlSchemaType type = i.next();
for (int j = 0; j < type.getM... |
public class class_name {
public CreateCommitResult withFilesDeleted(FileMetadata... filesDeleted) {
if (this.filesDeleted == null) {
setFilesDeleted(new java.util.ArrayList<FileMetadata>(filesDeleted.length));
}
for (FileMetadata ele : filesDeleted) {
this.filesDeleted.... | public class class_name {
public CreateCommitResult withFilesDeleted(FileMetadata... filesDeleted) {
if (this.filesDeleted == null) {
setFilesDeleted(new java.util.ArrayList<FileMetadata>(filesDeleted.length)); // depends on control dependency: [if], data = [none]
}
for (FileMetadat... |
public class class_name {
public void copyDeploymentValuesToProcessDefinitions(DeploymentEntity deployment,
List<ProcessDefinitionEntity> processDefinitions) {
String engineVersion = deployment.getEngineVersion();
String tenantId = deployment.getTenantId();
String deploymentId = deployment.getId();
... | public class class_name {
public void copyDeploymentValuesToProcessDefinitions(DeploymentEntity deployment,
List<ProcessDefinitionEntity> processDefinitions) {
String engineVersion = deployment.getEngineVersion();
String tenantId = deployment.getTenantId();
String deploymentId = deployment.getId();
... |
public class class_name {
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public RemoteObjectInstance create(Object envEntry) {
Class<?> clazz = envEntry.getClass();
if (clazz.isEnum()) {
return new RemoteObjectInstanceEnumImpl((Class<Enum>) clazz, ((Enum) envEntry).name())... | public class class_name {
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public RemoteObjectInstance create(Object envEntry) {
Class<?> clazz = envEntry.getClass();
if (clazz.isEnum()) {
return new RemoteObjectInstanceEnumImpl((Class<Enum>) clazz, ((Enum) envEntry).name())... |
public class class_name {
public final void streamBufferWithoutGroups(Iterator<IN> iterator, Collector<OUT> c) {
SingleElementPushBackIterator<IN> i = new SingleElementPushBackIterator<>(iterator);
try {
int size;
if (i.hasNext()) {
while (true) {
int sig = in.readInt();
switch (sig) {
ca... | public class class_name {
public final void streamBufferWithoutGroups(Iterator<IN> iterator, Collector<OUT> c) {
SingleElementPushBackIterator<IN> i = new SingleElementPushBackIterator<>(iterator);
try {
int size;
if (i.hasNext()) {
while (true) {
int sig = in.readInt();
switch (sig) {
ca... |
public class class_name {
private MediaDetails getCacheMediaDetails() throws IOException {
ZipEntry zipEntry = zipFile.getEntry(CACHE_DETAILS_ENTRY);
if (zipEntry == null) {
return null; // No details available.
}
InputStream is = zipFile.getInputStream(zipEntry);
t... | public class class_name {
private MediaDetails getCacheMediaDetails() throws IOException {
ZipEntry zipEntry = zipFile.getEntry(CACHE_DETAILS_ENTRY);
if (zipEntry == null) {
return null; // No details available.
}
InputStream is = zipFile.getInputStream(zipEntry);
t... |
public class class_name {
@Override
protected ModelAndView handleRequestInternal(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
for (val delegate : this.delegates) {
if (delegate.canHandle(request, response)) {
return delegate.handleRequ... | public class class_name {
@Override
protected ModelAndView handleRequestInternal(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
for (val delegate : this.delegates) {
if (delegate.canHandle(request, response)) {
return delegate.handleRequ... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T extends View> T get(View view, int id) {
SparseArray<View> viewHolder = (SparseArray<View>) view.getTag();
if (viewHolder == null) {
viewHolder = new SparseArray<View>();
view.setTag(viewHolder);
... | public class class_name {
@SuppressWarnings("unchecked")
public static <T extends View> T get(View view, int id) {
SparseArray<View> viewHolder = (SparseArray<View>) view.getTag();
if (viewHolder == null) {
viewHolder = new SparseArray<View>(); // depends on control dependency: [if], da... |
public class class_name {
public List<EntityType> resolve(Collection<EntityType> entityTypes) {
if (entityTypes.isEmpty()) {
return emptyList();
}
if (entityTypes.size() == 1) {
return singletonList(entityTypes.iterator().next());
}
// EntityType doesn't have equals/hashcode methods, m... | public class class_name {
public List<EntityType> resolve(Collection<EntityType> entityTypes) {
if (entityTypes.isEmpty()) {
return emptyList(); // depends on control dependency: [if], data = [none]
}
if (entityTypes.size() == 1) {
return singletonList(entityTypes.iterator().next()); // depends... |
public class class_name {
private void addExecutionGoals(MavenPluginExecutionDescriptor executionDescriptor, PluginExecution pluginExecution, Store store) {
List<String> goals = pluginExecution.getGoals();
for (String goal : goals) {
MavenExecutionGoalDescriptor goalDescriptor = store.creat... | public class class_name {
private void addExecutionGoals(MavenPluginExecutionDescriptor executionDescriptor, PluginExecution pluginExecution, Store store) {
List<String> goals = pluginExecution.getGoals();
for (String goal : goals) {
MavenExecutionGoalDescriptor goalDescriptor = store.creat... |
public class class_name {
public int getCardinality() {
int cardinality = 1;
for (FieldPartitioner fieldPartitioner : fieldPartitioners) {
if (fieldPartitioner.getCardinality() == FieldPartitioner.UNKNOWN_CARDINALITY) {
return FieldPartitioner.UNKNOWN_CARDINALITY;
}
cardinality *= fie... | public class class_name {
public int getCardinality() {
int cardinality = 1;
for (FieldPartitioner fieldPartitioner : fieldPartitioners) {
if (fieldPartitioner.getCardinality() == FieldPartitioner.UNKNOWN_CARDINALITY) {
return FieldPartitioner.UNKNOWN_CARDINALITY; // depends on control dependency... |
public class class_name {
public void setReplicationGroup(java.util.Collection<Replica> replicationGroup) {
if (replicationGroup == null) {
this.replicationGroup = null;
return;
}
this.replicationGroup = new java.util.ArrayList<Replica>(replicationGroup);
} } | public class class_name {
public void setReplicationGroup(java.util.Collection<Replica> replicationGroup) {
if (replicationGroup == null) {
this.replicationGroup = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public Object convertToType(ELContext context,
Object obj,
Class<?> targetType) {
context.setPropertyResolved(false);
Object value = null;
for (int i = 0; i < size; i++) {
value... | public class class_name {
@Override
public Object convertToType(ELContext context,
Object obj,
Class<?> targetType) {
context.setPropertyResolved(false);
Object value = null;
for (int i = 0; i < size; i++) {
value... |
public class class_name {
private void ensureRowIsVisible(int nRow) {
Rectangle visibleRect = jtable.getCellRect(nRow, 0, true);
if (visibleRect != null) {
visibleRect.x = scrollPane.getViewport().getViewPosition().x;
jtable.scrollRectToVisible(visibleRect);
jtable.repaint();
}
} } | public class class_name {
private void ensureRowIsVisible(int nRow) {
Rectangle visibleRect = jtable.getCellRect(nRow, 0, true);
if (visibleRect != null) {
visibleRect.x = scrollPane.getViewport().getViewPosition().x; // depends on control dependency: [if], data = [none]
jtable.scrollRectToVisible... |
public class class_name {
public static List<? extends CmsPrincipal> filterCoreFlag(List<? extends CmsPrincipal> principals, int flag) {
Iterator<? extends CmsPrincipal> it = principals.iterator();
while (it.hasNext()) {
CmsPrincipal p = it.next();
if ((p.getFlags() > I_CmsPrin... | public class class_name {
public static List<? extends CmsPrincipal> filterCoreFlag(List<? extends CmsPrincipal> principals, int flag) {
Iterator<? extends CmsPrincipal> it = principals.iterator();
while (it.hasNext()) {
CmsPrincipal p = it.next();
if ((p.getFlags() > I_CmsPrin... |
public class class_name {
public boolean close() {
List t = (List)((ArrayList)windows).clone();
Iterator e = t.iterator();
while (e.hasNext()) {
ApplicationWindow window = (ApplicationWindow)e.next();
if (!window.close()) { return false; }
}
if (subManage... | public class class_name {
public boolean close() {
List t = (List)((ArrayList)windows).clone();
Iterator e = t.iterator();
while (e.hasNext()) {
ApplicationWindow window = (ApplicationWindow)e.next();
if (!window.close()) { return false; } // depends on control dependenc... |
public class class_name {
public CreateCommitResult withFilesAdded(FileMetadata... filesAdded) {
if (this.filesAdded == null) {
setFilesAdded(new java.util.ArrayList<FileMetadata>(filesAdded.length));
}
for (FileMetadata ele : filesAdded) {
this.filesAdded.add(ele);
... | public class class_name {
public CreateCommitResult withFilesAdded(FileMetadata... filesAdded) {
if (this.filesAdded == null) {
setFilesAdded(new java.util.ArrayList<FileMetadata>(filesAdded.length)); // depends on control dependency: [if], data = [none]
}
for (FileMetadata ele : fi... |
public class class_name {
public String getLabel(String path) {
if (labelGenerator != null) {
return labelGenerator.getLabelForPath(path).toString();
}
if (fileNameMap != null && fileNameMap.containsKey(path))
return fileNameMap.get(path);
return (new File(path))... | public class class_name {
public String getLabel(String path) {
if (labelGenerator != null) {
return labelGenerator.getLabelForPath(path).toString(); // depends on control dependency: [if], data = [none]
}
if (fileNameMap != null && fileNameMap.containsKey(path))
return ... |
public class class_name {
protected void update (Map<Integer, SceneBlock> blocks)
{
boolean recover = false;
// link up to our neighbors
for (int ii = 0; ii < DX.length; ii++) {
SceneBlock neigh = blocks.get(neighborKey(DX[ii], DY[ii]));
if (neigh != _neighbors[ii])... | public class class_name {
protected void update (Map<Integer, SceneBlock> blocks)
{
boolean recover = false;
// link up to our neighbors
for (int ii = 0; ii < DX.length; ii++) {
SceneBlock neigh = blocks.get(neighborKey(DX[ii], DY[ii]));
if (neigh != _neighbors[ii])... |
public class class_name {
public synchronized static AdHocCompilerCache getCacheForCatalogHash(byte[] catalogHash) {
String hashString = Encoder.hexEncode(catalogHash);
AdHocCompilerCache cache = m_catalogHashMatch.getIfPresent(hashString);
if (cache == null) {
cache = new AdHocComp... | public class class_name {
public synchronized static AdHocCompilerCache getCacheForCatalogHash(byte[] catalogHash) {
String hashString = Encoder.hexEncode(catalogHash);
AdHocCompilerCache cache = m_catalogHashMatch.getIfPresent(hashString);
if (cache == null) {
cache = new AdHocComp... |
public class class_name {
@CheckReturnValue
@BackpressureSupport(BackpressureKind.FULL)
@SchedulerSupport(SchedulerSupport.NONE)
public final Flowable<T> takeLast(int count) {
if (count < 0) {
throw new IndexOutOfBoundsException("count >= 0 required but it was " + count);
} else... | public class class_name {
@CheckReturnValue
@BackpressureSupport(BackpressureKind.FULL)
@SchedulerSupport(SchedulerSupport.NONE)
public final Flowable<T> takeLast(int count) {
if (count < 0) {
throw new IndexOutOfBoundsException("count >= 0 required but it was " + count);
} else... |
public class class_name {
public void setClusterLogging(java.util.Collection<LogSetup> clusterLogging) {
if (clusterLogging == null) {
this.clusterLogging = null;
return;
}
this.clusterLogging = new java.util.ArrayList<LogSetup>(clusterLogging);
} } | public class class_name {
public void setClusterLogging(java.util.Collection<LogSetup> clusterLogging) {
if (clusterLogging == null) {
this.clusterLogging = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void getPlanNodeList_recurse(ArrayList<AbstractPlanNode> collected,
HashSet<AbstractPlanNode> visited) {
if (visited.contains(this)) {
assert(false): "do not expect loops in plangraph.";
return;
}
visited.add(this);
f... | public class class_name {
public void getPlanNodeList_recurse(ArrayList<AbstractPlanNode> collected,
HashSet<AbstractPlanNode> visited) {
if (visited.contains(this)) {
assert(false): "do not expect loops in plangraph.";
return;
}
visited.add(this);
f... |
public class class_name {
@Override
public boolean removeFirstOccurrence(DelayedEntry entry) {
DelayedEntry removedEntry = deque.pollFirst();
if (removedEntry == null) {
return false;
}
decreaseCountIndex(entry);
return true;
} } | public class class_name {
@Override
public boolean removeFirstOccurrence(DelayedEntry entry) {
DelayedEntry removedEntry = deque.pollFirst();
if (removedEntry == null) {
return false; // depends on control dependency: [if], data = [none]
}
decreaseCountIndex(entry);
... |
public class class_name {
public String getDomain(Class<?> clazz) {
StringBuilder ret = new StringBuilder();
String computedDomainPrefix = getDomainPrefix(clazz);
if(computedDomainPrefix != null) {
ret.append(computedDomainPrefix);
ret.append(".");
}
String camelCaseString = clazz.getSimpleName();
... | public class class_name {
public String getDomain(Class<?> clazz) {
StringBuilder ret = new StringBuilder();
String computedDomainPrefix = getDomainPrefix(clazz);
if(computedDomainPrefix != null) {
ret.append(computedDomainPrefix); // depends on control dependency: [if], data = [(computedDomainPrefix]
ret... |
public class class_name {
private List<Glyph> getInformation(Entity e) {
List<Glyph> list = new ArrayList<Glyph>();
// Add the molecule type before states if this is a nucleic acid or gene
if (e instanceof NucleicAcid || e instanceof Gene) {
Glyph g = factory.createGlyph();
g.setClazz(GlyphClazz.UNIT_OF_I... | public class class_name {
private List<Glyph> getInformation(Entity e) {
List<Glyph> list = new ArrayList<Glyph>();
// Add the molecule type before states if this is a nucleic acid or gene
if (e instanceof NucleicAcid || e instanceof Gene) {
Glyph g = factory.createGlyph();
g.setClazz(GlyphClazz.UNIT_OF_I... |
public class class_name {
@Override
public ArrayList<ItemT> getAvailableItems() {
if (availableItems == null) {
availableItems = getArguments().getParcelableArrayList(ARG_AVAILABLE_ITEMS);
if (availableItems == null || availableItems.isEmpty()) {
throw new RuntimeExc... | public class class_name {
@Override
public ArrayList<ItemT> getAvailableItems() {
if (availableItems == null) {
availableItems = getArguments().getParcelableArrayList(ARG_AVAILABLE_ITEMS); // depends on control dependency: [if], data = [none]
if (availableItems == null || availableI... |
public class class_name {
public EClass getGPARC() {
if (gparcEClass == null) {
gparcEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(459);
}
return gparcEClass;
} } | public class class_name {
public EClass getGPARC() {
if (gparcEClass == null) {
gparcEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(459); // depends on control dependency: [if], data = [none]
}
return gparcEClass;
} } |
public class class_name {
private static String mergeTickets(ProbeTest mAnnotation, ProbeTestClass cAnnotation) {
List<String> tickets = new ArrayList<>();
if (mAnnotation != null) {
tickets.addAll(Arrays.asList(mAnnotation.tickets()));
}
if (cAnnotation != null) {
... | public class class_name {
private static String mergeTickets(ProbeTest mAnnotation, ProbeTestClass cAnnotation) {
List<String> tickets = new ArrayList<>();
if (mAnnotation != null) {
tickets.addAll(Arrays.asList(mAnnotation.tickets())); // depends on control dependency: [if], data = [(mAnn... |
public class class_name {
@Override
public boolean isSameNodeInfo(final NodeInfo other) {
boolean retVal;
if (!(other instanceof NodeInfo)) {
retVal = false;
} else {
retVal = ((NodeWrapper)other).mKey == mKey;
}
return retVal;
} } | public class class_name {
@Override
public boolean isSameNodeInfo(final NodeInfo other) {
boolean retVal;
if (!(other instanceof NodeInfo)) {
retVal = false; // depends on control dependency: [if], data = [none]
} else {
retVal = ((NodeWrapper)other).mKey == mKey; /... |
public class class_name {
public static long generateLong(int length) {
if (length <= 0 || length > 19) {
throw new IllegalArgumentException("Can't generate random id with length: " + length);
}
SecureRandom random = new SecureRandom();
StringBuilder sb = new StringBuilder(length);
// 1st digit should ... | public class class_name {
public static long generateLong(int length) {
if (length <= 0 || length > 19) {
throw new IllegalArgumentException("Can't generate random id with length: " + length);
}
SecureRandom random = new SecureRandom();
StringBuilder sb = new StringBuilder(length);
// 1st digit should ... |
public class class_name {
private Node tryFoldStringSplit(Node n, Node stringNode, Node arg1) {
if (late) {
return n;
}
checkArgument(n.isCall());
checkArgument(stringNode.isString());
String separator = null;
String stringValue = stringNode.getString();
// Maximum number of possib... | public class class_name {
private Node tryFoldStringSplit(Node n, Node stringNode, Node arg1) {
if (late) {
return n; // depends on control dependency: [if], data = [none]
}
checkArgument(n.isCall());
checkArgument(stringNode.isString());
String separator = null;
String stringValue = st... |
public class class_name {
public Reflect call(String name, Object... args) throws ReflectException {
Class<?>[] types = types(args);
// Try invoking the "canonical" method, i.e. the one with exact
// matching argument types
try {
Method method = exactMethod(name, types);
... | public class class_name {
public Reflect call(String name, Object... args) throws ReflectException {
Class<?>[] types = types(args);
// Try invoking the "canonical" method, i.e. the one with exact
// matching argument types
try {
Method method = exactMethod(name, types);
... |
public class class_name {
public void setControlValue(Object objValue)
{
try {
if (!(this.getConverter() instanceof FieldInfo))
objValue = null;
if (objValue instanceof String)
objValue = ((FieldInfo)this.getConverter()).stringToDate((String)objValu... | public class class_name {
public void setControlValue(Object objValue)
{
try {
if (!(this.getConverter() instanceof FieldInfo))
objValue = null;
if (objValue instanceof String)
objValue = ((FieldInfo)this.getConverter()).stringToDate((String)objValu... |
public class class_name {
public static TwoDimTable createScoringHistoryTableDR(LinkedHashMap<String, ArrayList> scoreTable, String tableName,
long startTime) {
List<String> colHeaders = new ArrayList<>();
List<String> colTypes = new ArrayList<>... | public class class_name {
public static TwoDimTable createScoringHistoryTableDR(LinkedHashMap<String, ArrayList> scoreTable, String tableName,
long startTime) {
List<String> colHeaders = new ArrayList<>();
List<String> colTypes = new ArrayList<>... |
public class class_name {
public String processIfMatches(final I input) {
String uriAsString = input.getUri();
String text = input.getTextToProcess();
Matcher m = patternImpl.matcher(uriAsString);
if (!m.find()) {
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.f... | public class class_name {
public String processIfMatches(final I input) {
String uriAsString = input.getUri();
String text = input.getTextToProcess();
Matcher m = patternImpl.matcher(uriAsString);
if (!m.find()) {
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.f... |
public class class_name {
public void preShutdown(boolean transactionsLeft) throws Exception /* @PK31789C */
{
if (tc.isEntryEnabled())
Tr.entry(tc, "preShutdown", transactionsLeft);
try {
// Terminate partner log activity
getPartnerLogTable().terminate(); // 17... | public class class_name {
public void preShutdown(boolean transactionsLeft) throws Exception /* @PK31789C */
{
if (tc.isEntryEnabled())
Tr.entry(tc, "preShutdown", transactionsLeft);
try {
// Terminate partner log activity
getPartnerLogTable().terminate(); // 17... |
public class class_name {
private boolean hasReferringDU() throws Exception {
// Get SleeContainer instance from JNDI
SleeContainer sC = SleeContainer.lookupFromJndi();
for (String componentIdString : this.getComponents()) {
ComponentIDPropertyEditor cidpe = new ComponentIDPropertyEditor();
... | public class class_name {
private boolean hasReferringDU() throws Exception {
// Get SleeContainer instance from JNDI
SleeContainer sC = SleeContainer.lookupFromJndi();
for (String componentIdString : this.getComponents()) {
ComponentIDPropertyEditor cidpe = new ComponentIDPropertyEditor();
... |
public class class_name {
private void replacePlaceholdersWithCorrespondingMentionSpans(@NonNull Editable text) {
PlaceholderSpan[] tempSpans = text.getSpans(0, text.length(), PlaceholderSpan.class);
for (PlaceholderSpan span : tempSpans) {
int spanStart = text.getSpanStart(span);
... | public class class_name {
private void replacePlaceholdersWithCorrespondingMentionSpans(@NonNull Editable text) {
PlaceholderSpan[] tempSpans = text.getSpans(0, text.length(), PlaceholderSpan.class);
for (PlaceholderSpan span : tempSpans) {
int spanStart = text.getSpanStart(span);
... |
public class class_name {
@SuppressWarnings("unchecked")
public <T extends Metric> T register(String name, T metric) throws IllegalArgumentException {
if (metric instanceof MetricSet) {
registerAll(name, (MetricSet) metric);
} else {
final Metric existing = metrics.putIfAbse... | public class class_name {
@SuppressWarnings("unchecked")
public <T extends Metric> T register(String name, T metric) throws IllegalArgumentException {
if (metric instanceof MetricSet) {
registerAll(name, (MetricSet) metric);
} else {
final Metric existing = metrics.putIfAbse... |
public class class_name {
public void setDeclaredParam(JvmFormalParameter newDeclaredParam)
{
if (newDeclaredParam != declaredParam)
{
NotificationChain msgs = null;
if (declaredParam != null)
msgs = ((InternalEObject)declaredParam).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XbasePackage.XCATCH_CLAUS... | public class class_name {
public void setDeclaredParam(JvmFormalParameter newDeclaredParam)
{
if (newDeclaredParam != declaredParam)
{
NotificationChain msgs = null;
if (declaredParam != null)
msgs = ((InternalEObject)declaredParam).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XbasePackage.XCATCH_CLAUS... |
public class class_name {
protected boolean containsElem(int index, final T key, int hashCode) {
for (LinkedElement<T> e = entries[index]; e != null; e = e.next) {
// element found
if (hashCode == e.hashCode && e.element.equals(key)) {
return true;
}
}
// element not found
ret... | public class class_name {
protected boolean containsElem(int index, final T key, int hashCode) {
for (LinkedElement<T> e = entries[index]; e != null; e = e.next) {
// element found
if (hashCode == e.hashCode && e.element.equals(key)) {
return true; // depends on control dependency: [if], data =... |
public class class_name {
protected void addScripts()
{
if (loadPlugins == null || loadPlugins.size() == 0)
{
return;
}
for (GroovyScript2RestLoaderPlugin loadPlugin : loadPlugins)
{
// If no one script configured then skip this item,
// there is no reason to... | public class class_name {
protected void addScripts()
{
if (loadPlugins == null || loadPlugins.size() == 0)
{
return; // depends on control dependency: [if], data = [none]
}
for (GroovyScript2RestLoaderPlugin loadPlugin : loadPlugins)
{
// If no one script configured ... |
public class class_name {
@Override
public Map<String, Set<String>> cleanObsoleteContent() {
if(!readWrite) {
return Collections.emptyMap();
}
Map<String, Set<String>> cleanedContents = new HashMap<>(2);
cleanedContents.put(MARKED_CONTENT, new HashSet<>());
clean... | public class class_name {
@Override
public Map<String, Set<String>> cleanObsoleteContent() {
if(!readWrite) {
return Collections.emptyMap(); // depends on control dependency: [if], data = [none]
}
Map<String, Set<String>> cleanedContents = new HashMap<>(2);
cleanedConten... |
public class class_name {
static List<IDataModel> toDataModels(final Workbook book, final String function) {
if (book == null || function == null) { return emptyList(); }
List<IDataModel> list = new LinkedList<>();
final FormulaParsingWorkbook parsingBook = create((XSSFWorkbook) book);
... | public class class_name {
static List<IDataModel> toDataModels(final Workbook book, final String function) {
if (book == null || function == null) { return emptyList(); }
// depends on control dependency: [if], data = [none]
List<IDataModel> list = new LinkedList<>();
final FormulaParsingW... |
public class class_name {
private void labelBrowseCurrentLinkMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_labelBrowseCurrentLinkMouseClicked
if (evt.getClickCount() > 1) {
try {
UiUtils.browseURI(new URI(this.getText().trim()), false);
}
catch (URISyntaxException ex) {
... | public class class_name {
private void labelBrowseCurrentLinkMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_labelBrowseCurrentLinkMouseClicked
if (evt.getClickCount() > 1) {
try {
UiUtils.browseURI(new URI(this.getText().trim()), false); // depends on control dependency: [try], data =... |
public class class_name {
public void marshall(DeleteDirectoryRequest deleteDirectoryRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteDirectoryRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(DeleteDirectoryRequest deleteDirectoryRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteDirectoryRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
private Document loadDocument(String file) {
Document doc = null;
URL url = null;
File f = new File(file);
if (f.exists()) {
try {
url = f.toURI().toURL();
} catch (MalformedURLException e) {
throw new ConfigurationException("Unable to load " + file, e);
}
... | public class class_name {
private Document loadDocument(String file) {
Document doc = null;
URL url = null;
File f = new File(file);
if (f.exists()) {
try {
url = f.toURI().toURL();
// depends on control dependency: [try], data = [none]
} catch (MalformedURLException e) {
throw new Config... |
public class class_name {
public List<MessageDestinationRefType<WebAppType<T>>> getAllMessageDestinationRef()
{
List<MessageDestinationRefType<WebAppType<T>>> list = new ArrayList<MessageDestinationRefType<WebAppType<T>>>();
List<Node> nodeList = childNode.get("message-destination-ref");
for(Node ... | public class class_name {
public List<MessageDestinationRefType<WebAppType<T>>> getAllMessageDestinationRef()
{
List<MessageDestinationRefType<WebAppType<T>>> list = new ArrayList<MessageDestinationRefType<WebAppType<T>>>();
List<Node> nodeList = childNode.get("message-destination-ref");
for(Node ... |
public class class_name {
@GET
@Path("create")
public Response createFromRedirect() {
KeycloakPrincipal principal = (KeycloakPrincipal) sessionContext.getCallerPrincipal();
RefreshableKeycloakSecurityContext kcSecurityContext = (RefreshableKeycloakSecurityContext)
principal.getK... | public class class_name {
@GET
@Path("create")
public Response createFromRedirect() {
KeycloakPrincipal principal = (KeycloakPrincipal) sessionContext.getCallerPrincipal();
RefreshableKeycloakSecurityContext kcSecurityContext = (RefreshableKeycloakSecurityContext)
principal.getK... |
public class class_name {
public static Stream<IRI> ldpResourceTypes(final IRI ixnModel) {
final Stream.Builder<IRI> supertypes = Stream.builder();
if (ixnModel != null) {
LOGGER.debug("Finding types that subsume {}", ixnModel.getIRIString());
supertypes.accept(ixnModel);
... | public class class_name {
public static Stream<IRI> ldpResourceTypes(final IRI ixnModel) {
final Stream.Builder<IRI> supertypes = Stream.builder();
if (ixnModel != null) {
LOGGER.debug("Finding types that subsume {}", ixnModel.getIRIString()); // depends on control dependency: [if], data = ... |
public class class_name {
public void marshall(ReputationOptions reputationOptions, ProtocolMarshaller protocolMarshaller) {
if (reputationOptions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(r... | public class class_name {
public void marshall(ReputationOptions reputationOptions, ProtocolMarshaller protocolMarshaller) {
if (reputationOptions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(r... |
public class class_name {
public static <T> T parse(byte[] data, Class<? extends Request<T>> classType) {
Type[] types = doResolveTypeArguments(classType, classType, Request.class);
if (types == null || types.length == 0) {
throw new ParseException("Request<T> was not found for " + classTyp... | public class class_name {
public static <T> T parse(byte[] data, Class<? extends Request<T>> classType) {
Type[] types = doResolveTypeArguments(classType, classType, Request.class);
if (types == null || types.length == 0) {
throw new ParseException("Request<T> was not found for " + classTyp... |
public class class_name {
InstanceWrapper getInstanceForKey(final Object key) throws ContainerException {
// common case has "no" contention
InstanceWrapper wrapper = instances.get(key);
if(wrapper != null)
return wrapper;
// otherwise we will be working to get one.
... | public class class_name {
InstanceWrapper getInstanceForKey(final Object key) throws ContainerException {
// common case has "no" contention
InstanceWrapper wrapper = instances.get(key);
if(wrapper != null)
return wrapper;
// otherwise we will be working to get one.
... |
public class class_name {
@Override
public AtmosphereRequestBuilder newRequestBuilder(Class<AtmosphereRequest.AtmosphereRequestBuilder> clazz) {
AtmosphereRequestBuilder b;
try {
b = clazz.newInstance();
} catch (InstantiationException e) {
throw new RuntimeException... | public class class_name {
@Override
public AtmosphereRequestBuilder newRequestBuilder(Class<AtmosphereRequest.AtmosphereRequestBuilder> clazz) {
AtmosphereRequestBuilder b;
try {
b = clazz.newInstance(); // depends on control dependency: [try], data = [none]
} catch (Instantiati... |
public class class_name {
public Renderable<?> render(Template template, Object... parameters) {
Map<String, Object> map = Maps.newHashMap();
String key = null;
for (Object parameter : parameters) {
if (key == null) {
if (!(parameter instanceof String)) {
... | public class class_name {
public Renderable<?> render(Template template, Object... parameters) {
Map<String, Object> map = Maps.newHashMap();
String key = null;
for (Object parameter : parameters) {
if (key == null) {
if (!(parameter instanceof String)) {
... |
public class class_name {
public void setMaintenanceTracks(java.util.Collection<MaintenanceTrack> maintenanceTracks) {
if (maintenanceTracks == null) {
this.maintenanceTracks = null;
return;
}
this.maintenanceTracks = new com.amazonaws.internal.SdkInternalList<Maintenan... | public class class_name {
public void setMaintenanceTracks(java.util.Collection<MaintenanceTrack> maintenanceTracks) {
if (maintenanceTracks == null) {
this.maintenanceTracks = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], da... |
public class class_name {
public static void unregisterMessageHandler(Class<? extends AVIMMessage> clazz,
MessageHandler<?> handler) {
Set<MessageHandler> handlerSet = messageHandlerRepository.get(clazz);
if (handlerSet != null) {
handlerSet.remove(handler);
... | public class class_name {
public static void unregisterMessageHandler(Class<? extends AVIMMessage> clazz,
MessageHandler<?> handler) {
Set<MessageHandler> handlerSet = messageHandlerRepository.get(clazz);
if (handlerSet != null) {
handlerSet.remove(handler); ... |
public class class_name {
public static void print(ConsoleLevel level, String message) {
if (level.compareTo(_level) <= 0) {
if (_printLogLevel) {
level.getStream().println(level.name() + ": " + message);
}
else {
level.getStream().println(message);
}
level.getStream().flush();
}
... | public class class_name {
public static void print(ConsoleLevel level, String message) {
if (level.compareTo(_level) <= 0) {
if (_printLogLevel) {
level.getStream().println(level.name() + ": " + message);
// depends on control dependency: [if], data = [none]
}
else {
level.getStream().println(... |
public class class_name {
@SafeVarargs
public static float max(final float... array) {
// Validates input
if (N.isNullOrEmpty(array)) {
throw new IllegalArgumentException("Array cannot be null or empty.");
}
// Finds and returns max
float max = array[0];... | public class class_name {
@SafeVarargs
public static float max(final float... array) {
// Validates input
if (N.isNullOrEmpty(array)) {
throw new IllegalArgumentException("Array cannot be null or empty.");
}
// Finds and returns max
float max = array[0];... |
public class class_name {
@Override
public Collection<String> getMonomerNames() {
Iterator<String> keys = strands.keySet().iterator();
Map<String, IMonomer> monomers = new Hashtable<String, IMonomer>();
if (!keys.hasNext()) // no strands
return super.getMonomerNames();
... | public class class_name {
@Override
public Collection<String> getMonomerNames() {
Iterator<String> keys = strands.keySet().iterator();
Map<String, IMonomer> monomers = new Hashtable<String, IMonomer>();
if (!keys.hasNext()) // no strands
return super.getMonomerNames();
... |
public class class_name {
public String createUniqueName(String name) {
if (!isDuplicateName(name)) {
return name;
}
if (name.matches(".*\\(\\d*\\)")) { //$NON-NLS-1$
final int start = name.lastIndexOf('(');
final int end = name.lastIndexOf(')');
final String stringInt = name.substring(start + 1, end... | public class class_name {
public String createUniqueName(String name) {
if (!isDuplicateName(name)) {
return name; // depends on control dependency: [if], data = [none]
}
if (name.matches(".*\\(\\d*\\)")) { //$NON-NLS-1$
final int start = name.lastIndexOf('(');
final int end = name.lastIndexOf(')');
... |
public class class_name {
@Override
public OkHttpChannelBuilder keepAliveTime(long keepAliveTime, TimeUnit timeUnit) {
Preconditions.checkArgument(keepAliveTime > 0L, "keepalive time must be positive");
keepAliveTimeNanos = timeUnit.toNanos(keepAliveTime);
keepAliveTimeNanos = KeepAliveManager.clampKeepA... | public class class_name {
@Override
public OkHttpChannelBuilder keepAliveTime(long keepAliveTime, TimeUnit timeUnit) {
Preconditions.checkArgument(keepAliveTime > 0L, "keepalive time must be positive");
keepAliveTimeNanos = timeUnit.toNanos(keepAliveTime);
keepAliveTimeNanos = KeepAliveManager.clampKeepA... |
public class class_name {
public static <T extends ContentMeta> ResourceSelector<T> regexMetadataResourceSelector(final Map<String,
String> required, final boolean requireAll) {
return new ResourceSelector<T>() {
Map<String, Pattern> patternMap = new HashMap<String, Pattern>();
... | public class class_name {
public static <T extends ContentMeta> ResourceSelector<T> regexMetadataResourceSelector(final Map<String,
String> required, final boolean requireAll) {
return new ResourceSelector<T>() {
Map<String, Pattern> patternMap = new HashMap<String, Pattern>();
... |
public class class_name {
public AbstractRelationship getRelationship(final String id) {
if (id == null) {
return null;
}
final SecurityContext securityContext = getWebSocket().getSecurityContext();
final App app = StructrApp.getInstance(securityContext);
try (final Tx tx = app.tx()) {
final Abstra... | public class class_name {
public AbstractRelationship getRelationship(final String id) {
if (id == null) {
return null; // depends on control dependency: [if], data = [none]
}
final SecurityContext securityContext = getWebSocket().getSecurityContext();
final App app = StructrApp.getInstance(securityContex... |
public class class_name {
public static boolean isOptional(TypeRef type) {
if (!(type instanceof ClassRef)) {
return false;
}
return JAVA_UTIL_OPTIONAL.equals(((ClassRef)type).getDefinition().getFullyQualifiedName());
} } | public class class_name {
public static boolean isOptional(TypeRef type) {
if (!(type instanceof ClassRef)) {
return false; // depends on control dependency: [if], data = [none]
}
return JAVA_UTIL_OPTIONAL.equals(((ClassRef)type).getDefinition().getFullyQualifiedName());
} } |
public class class_name {
public boolean matches(HttpServletRequest request) {
if (httpMethod != null && httpMethod != HttpMethod.valueOf(request.getMethod())) { return false; }
String url = request.getServletPath();
String pathInfo = request.getPathInfo();
String query = request.getQueryString();
... | public class class_name {
public boolean matches(HttpServletRequest request) {
if (httpMethod != null && httpMethod != HttpMethod.valueOf(request.getMethod())) { return false; } // depends on control dependency: [if], data = [none]
String url = request.getServletPath();
String pathInfo = request.getPathInf... |
public class class_name {
@Override
public Object getProperty(String name) {
if(binding.containsKey(name)) {
return binding.get(name);
}
else {
if(springConfig.containsBean(name)) {
BeanConfiguration beanConfig = springConfig.getBeanConfig(name);
if(beanConfig != null) {
return new Configurab... | public class class_name {
@Override
public Object getProperty(String name) {
if(binding.containsKey(name)) {
return binding.get(name); // depends on control dependency: [if], data = [none]
}
else {
if(springConfig.containsBean(name)) {
BeanConfiguration beanConfig = springConfig.getBeanConfig(name);
... |
public class class_name {
public String waitAck(){
try {
this.latch.await(5000, TimeUnit.MILLISECONDS);
return consumerGroup;
} catch (Exception e) {}
return null;
} } | public class class_name {
public String waitAck(){
try {
this.latch.await(5000, TimeUnit.MILLISECONDS); // depends on control dependency: [try], data = [none]
return consumerGroup; // depends on control dependency: [try], data = [none]
} catch (Exception e) {} // depends on control dependency: [catch], data... |
public class class_name {
public void setTypeInfos(java.util.Collection<ActivityTypeInfo> typeInfos) {
if (typeInfos == null) {
this.typeInfos = null;
return;
}
this.typeInfos = new java.util.ArrayList<ActivityTypeInfo>(typeInfos);
} } | public class class_name {
public void setTypeInfos(java.util.Collection<ActivityTypeInfo> typeInfos) {
if (typeInfos == null) {
this.typeInfos = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
t... |
public class class_name {
private void parseAttribute(final Attributes atts) {
final URI attrValue = toURI(atts.getValue(ATTRIBUTE_NAME_HREF));
if (attrValue == null) {
return;
}
final String attrScope = atts.getValue(ATTRIBUTE_NAME_SCOPE);
if (isExternal(attrValue,... | public class class_name {
private void parseAttribute(final Attributes atts) {
final URI attrValue = toURI(atts.getValue(ATTRIBUTE_NAME_HREF));
if (attrValue == null) {
return; // depends on control dependency: [if], data = [none]
}
final String attrScope = atts.getValue(AT... |
public class class_name {
private void printDetails() {
StringBuilder builder = new StringBuilder("\"Name\",\"Phone\",\"Roles\",\"Identifier\"\n");
for (Object contact : repeater.getBeanList()) {
builder.append(contact).append('\n');
}
printOutput.setText(builder.toString());
} } | public class class_name {
private void printDetails() {
StringBuilder builder = new StringBuilder("\"Name\",\"Phone\",\"Roles\",\"Identifier\"\n");
for (Object contact : repeater.getBeanList()) {
builder.append(contact).append('\n'); // depends on control dependency: [for], data = [contact]
}
printOutput.se... |
public class class_name {
public void skipWhitespace()
{
while(hasMore())
{
char c=read();
if(c=='#')
{
readUntil('\n');
return;
}
if(!Character.isWhitespace(c))
{
rewind(1);
return;
}
}
} } | public class class_name {
public void skipWhitespace()
{
while(hasMore())
{
char c=read();
if(c=='#')
{
readUntil('\n'); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
if(!Character.isWhitespace(c))
{
rewind(1); /... |
public class class_name {
private CommunicationParam buildParams(String addr) {
CommunicationParam params = new CommunicationParam();
String[] strs = StringUtils.split(addr, ":");
if (strs == null || strs.length != 2) {
throw new IllegalArgumentException("addr example: 127.0.0.1:109... | public class class_name {
private CommunicationParam buildParams(String addr) {
CommunicationParam params = new CommunicationParam();
String[] strs = StringUtils.split(addr, ":");
if (strs == null || strs.length != 2) {
throw new IllegalArgumentException("addr example: 127.0.0.1:109... |
public class class_name {
public static int count(final String host, final char charactor) {
int count = 0;
for (int i = 0; i < host.length(); i++) {
if (host.charAt(i) == charactor) {
count++;
}
}
return count;
} } | public class class_name {
public static int count(final String host, final char charactor) {
int count = 0;
for (int i = 0; i < host.length(); i++) {
if (host.charAt(i) == charactor) {
count++; // depends on control dependency: [if], data = [none]
}
}
return count;
} } |
public class class_name {
static public long swapLong(byte[] b, int offset) {
// 8 bytes
long accum = 0;
long shiftedval;
for (int shiftBy = 0, i = offset; shiftBy < 64; shiftBy += 8, i++) {
shiftedval = ((long) (b[i] & 0xff)) << shiftBy;
accum |= shiftedval;
}
return accum;
} } | public class class_name {
static public long swapLong(byte[] b, int offset) {
// 8 bytes
long accum = 0;
long shiftedval;
for (int shiftBy = 0, i = offset; shiftBy < 64; shiftBy += 8, i++) {
shiftedval = ((long) (b[i] & 0xff)) << shiftBy; // depends on control dependency: [for], data = [shiftBy]
... |
public class class_name {
public static CommercePriceEntry toModel(CommercePriceEntrySoap soapModel) {
if (soapModel == null) {
return null;
}
CommercePriceEntry model = new CommercePriceEntryImpl();
model.setUuid(soapModel.getUuid());
model.setExternalReferenceCode(soapModel.getExternalReferenceCode())... | public class class_name {
public static CommercePriceEntry toModel(CommercePriceEntrySoap soapModel) {
if (soapModel == null) {
return null; // depends on control dependency: [if], data = [none]
}
CommercePriceEntry model = new CommercePriceEntryImpl();
model.setUuid(soapModel.getUuid());
model.setExter... |
public class class_name {
private boolean makeSpace() {
clearCaches();
int offset = savedScannerPosition == -1 ?
position : savedScannerPosition;
buf.position(offset);
// Gain space by compacting buffer
if (offset > 0) {
buf.compact();
transla... | public class class_name {
private boolean makeSpace() {
clearCaches();
int offset = savedScannerPosition == -1 ?
position : savedScannerPosition;
buf.position(offset);
// Gain space by compacting buffer
if (offset > 0) {
buf.compact(); // depends on contr... |
public class class_name {
public void onSuccessRespEvent(ResponseEvent event, ActivityContextInterface aci) {
if (tracer.isFineEnabled())
tracer.fine("Received 2xx (SUCCESS) response:\n"+event.getResponse());
final SbbLocalObject sbbLocalObject = sbbContext.getSbbLocalObject();
aci.detach(sbbLocalObject... | public class class_name {
public void onSuccessRespEvent(ResponseEvent event, ActivityContextInterface aci) {
if (tracer.isFineEnabled())
tracer.fine("Received 2xx (SUCCESS) response:\n"+event.getResponse());
final SbbLocalObject sbbLocalObject = sbbContext.getSbbLocalObject();
aci.detach(sbbLocalObject... |
public class class_name {
public void compile() throws EFapsException
{
final Map<String, String> compiled = readCompiledSources();
final List<T> allsource = readSources();
for (final T onesource : allsource) {
if (AbstractStaticSourceCompiler.LOG.isInfoEnabled()) {
... | public class class_name {
public void compile() throws EFapsException
{
final Map<String, String> compiled = readCompiledSources();
final List<T> allsource = readSources();
for (final T onesource : allsource) {
if (AbstractStaticSourceCompiler.LOG.isInfoEnabled()) {
... |
public class class_name {
public static <T> T get(Future<T> future, long timeout, TimeUnit timeUnit) {
try {
return future.get(timeout, timeUnit);
} catch (InterruptedException | ExecutionException | TimeoutException e) {
throw new RuntimeException(e);
}
} } | public class class_name {
public static <T> T get(Future<T> future, long timeout, TimeUnit timeUnit) {
try {
return future.get(timeout, timeUnit); // depends on control dependency: [try], data = [none]
} catch (InterruptedException | ExecutionException | TimeoutException e) {
throw new RuntimeExcep... |
public class class_name {
public static void replaceDefaultFont(Context context, String fontFilePath) {
final Typeface newTypeface = Typeface.createFromAsset(context.getAssets(), fontFilePath);
TypedValue tv = new TypedValue();
String staticTypefaceFieldName = null;
Map<String, Typeface> newMap = null;
Res... | public class class_name {
public static void replaceDefaultFont(Context context, String fontFilePath) {
final Typeface newTypeface = Typeface.createFromAsset(context.getAssets(), fontFilePath);
TypedValue tv = new TypedValue();
String staticTypefaceFieldName = null;
Map<String, Typeface> newMap = null;
Res... |
public class class_name {
public void marshall(CreateBGPPeerRequest createBGPPeerRequest, ProtocolMarshaller protocolMarshaller) {
if (createBGPPeerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(CreateBGPPeerRequest createBGPPeerRequest, ProtocolMarshaller protocolMarshaller) {
if (createBGPPeerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
public void splash() {
frame = shadowBorder ? new ShadowBorderFrame() : new JFrame();
if (isRootFrame())
JOptionPane.setRootFrame(frame);
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
frame.setUndecorated(true);
frame.setTitle(loadFrameTitle());
frame.setIconIma... | public class class_name {
public void splash() {
frame = shadowBorder ? new ShadowBorderFrame() : new JFrame();
if (isRootFrame())
JOptionPane.setRootFrame(frame);
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
frame.setUndecorated(true);
frame.setTitle(loadFrameTitle());
frame.setIconIma... |
public class class_name {
public Directory getDirectory(final String name) throws IOException
{
return SecurityHelper.doPrivilegedIOExceptionAction(new PrivilegedExceptionAction<Directory>()
{
public Directory run() throws Exception
{
File dir;
if (name.equals("... | public class class_name {
public Directory getDirectory(final String name) throws IOException
{
return SecurityHelper.doPrivilegedIOExceptionAction(new PrivilegedExceptionAction<Directory>()
{
public Directory run() throws Exception
{
File dir;
if (name.equals("... |
public class class_name {
static String convertURLToString(URL url) {
if (URISchemeType.FILE.isURL(url)) {
final StringBuilder externalForm = new StringBuilder();
externalForm.append(url.getPath());
final String ref = url.getRef();
if (!Strings.isEmpty(ref)) {
externalForm.append("#").append(ref); //... | public class class_name {
static String convertURLToString(URL url) {
if (URISchemeType.FILE.isURL(url)) {
final StringBuilder externalForm = new StringBuilder();
externalForm.append(url.getPath()); // depends on control dependency: [if], data = [none]
final String ref = url.getRef();
if (!Strings.isEmpt... |
public class class_name {
private MenuItem addInternal(int group, int id, int categoryOrder, CharSequence title) {
final int ordering = getOrdering(categoryOrder);
final MenuItemImpl item = new MenuItemImpl(this, group, id, categoryOrder,
ordering, title, mDefaultShowAsAction);
... | public class class_name {
private MenuItem addInternal(int group, int id, int categoryOrder, CharSequence title) {
final int ordering = getOrdering(categoryOrder);
final MenuItemImpl item = new MenuItemImpl(this, group, id, categoryOrder,
ordering, title, mDefaultShowAsAction);
... |
public class class_name {
private String getSuggestionMessage(ConstructorKey key) {
StringBuilder sb = new StringBuilder(200);
sb.append("No constructor found for '").append(key);
sb.append("' candidates are: ");
Iterator<ConstructorKey> iterator = suggest(key.intf());
while... | public class class_name {
private String getSuggestionMessage(ConstructorKey key) {
StringBuilder sb = new StringBuilder(200);
sb.append("No constructor found for '").append(key);
sb.append("' candidates are: ");
Iterator<ConstructorKey> iterator = suggest(key.intf());
while... |
public class class_name {
public int unprotect(RtpPacket packet) {
if (txSessAuthKey == null) {
// Only the tx session key is set at session start, rx is done when
// 1st packet received
log("unprotect() called out of session");
return UNPROTECT_SESSION_NOT_STARTED;
}
if (packet == null) {
logWarn... | public class class_name {
public int unprotect(RtpPacket packet) {
if (txSessAuthKey == null) {
// Only the tx session key is set at session start, rx is done when
// 1st packet received
log("unprotect() called out of session"); // depends on control dependency: [if], data = [none]
return UNPROTECT_SESSI... |
public class class_name {
@Override
public void removeByC_C(long classNameId, long classPK) {
for (CPAttachmentFileEntry cpAttachmentFileEntry : findByC_C(
classNameId, classPK, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpAttachmentFileEntry);
}
} } | public class class_name {
@Override
public void removeByC_C(long classNameId, long classPK) {
for (CPAttachmentFileEntry cpAttachmentFileEntry : findByC_C(
classNameId, classPK, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpAttachmentFileEntry); // depends on control dependency: [for], data = [cpAt... |
public class class_name {
private String getJoinColumnName(Field relation)
{
String columnName = null;
JoinColumn ann = relation.getAnnotation(JoinColumn.class);
if (ann != null)
{
columnName = ann.name();
}
return StringUtils.isBlank(columnName... | public class class_name {
private String getJoinColumnName(Field relation)
{
String columnName = null;
JoinColumn ann = relation.getAnnotation(JoinColumn.class);
if (ann != null)
{
columnName = ann.name();
// depends on control dependency: [if], data = [none]
... |
public class class_name {
public static boolean isCompositeComponentExpression(String expression)
{
if (expression.contains(CC))
{
return CC_EXPRESSION_REGEX.matcher(expression).matches();
}
else
{
return false;
}
} } | public class class_name {
public static boolean isCompositeComponentExpression(String expression)
{
if (expression.contains(CC))
{
return CC_EXPRESSION_REGEX.matcher(expression).matches(); // depends on control dependency: [if], data = [none]
}
else
{
... |
public class class_name {
public void marshall(GetGroupRequest getGroupRequest, ProtocolMarshaller protocolMarshaller) {
if (getGroupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(getGrou... | public class class_name {
public void marshall(GetGroupRequest getGroupRequest, ProtocolMarshaller protocolMarshaller) {
if (getGroupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(getGrou... |
public class class_name {
public ServiceCall<Translation> getWord(GetWordOptions getWordOptions) {
Validator.notNull(getWordOptions, "getWordOptions cannot be null");
String[] pathSegments = { "v1/customizations", "words" };
String[] pathParameters = { getWordOptions.customizationId(), getWordOptions.word(... | public class class_name {
public ServiceCall<Translation> getWord(GetWordOptions getWordOptions) {
Validator.notNull(getWordOptions, "getWordOptions cannot be null");
String[] pathSegments = { "v1/customizations", "words" };
String[] pathParameters = { getWordOptions.customizationId(), getWordOptions.word(... |
public class class_name {
@SuppressWarnings("unchecked")
void merge(final long key, final S summary, final SummarySetOperations<S> summarySetOps) {
isEmpty_ = false;
if (key < theta_) {
final int index = findOrInsert(key);
if (index < 0) {
insertSummary(~index, (S)summary.copy());
}... | public class class_name {
@SuppressWarnings("unchecked")
void merge(final long key, final S summary, final SummarySetOperations<S> summarySetOps) {
isEmpty_ = false;
if (key < theta_) {
final int index = findOrInsert(key);
if (index < 0) {
insertSummary(~index, (S)summary.copy()); // depe... |
public class class_name {
public static String createAutoFormHtml(String reqUrl, Map<String, String> hiddens,String encoding) {
StringBuffer sf = new StringBuffer();
sf.append("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset="+encoding+"\"/></head><body>");
sf.append("<form id = \"pay_... | public class class_name {
public static String createAutoFormHtml(String reqUrl, Map<String, String> hiddens,String encoding) {
StringBuffer sf = new StringBuffer();
sf.append("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset="+encoding+"\"/></head><body>");
sf.append("<form id = \"pay_... |
public class class_name {
Map<String,Object> executeEvent(Transaction trans, Map<String,Object> args, StringBuilder statementHolder) throws PersistenceException {
logger.debug("enter - execute(Transaction, Map)");
state = "EXECUTING";
try {
if( logger.isDebugEnabled() ) {
... | public class class_name {
Map<String,Object> executeEvent(Transaction trans, Map<String,Object> args, StringBuilder statementHolder) throws PersistenceException {
logger.debug("enter - execute(Transaction, Map)");
state = "EXECUTING";
try {
if( logger.isDebugEnabled() ) {
... |
public class class_name {
public Map<Computer,List<LogRecord>> getSlaveLogRecords() {
Map<Computer,List<LogRecord>> result = new TreeMap<Computer,List<LogRecord>>(new Comparator<Computer>() {
final Collator COLL = Collator.getInstance();
public int compare(Computer c1, Computer c2) {
... | public class class_name {
public Map<Computer,List<LogRecord>> getSlaveLogRecords() {
Map<Computer,List<LogRecord>> result = new TreeMap<Computer,List<LogRecord>>(new Comparator<Computer>() {
final Collator COLL = Collator.getInstance();
public int compare(Computer c1, Computer c2) {
... |
public class class_name {
public List<MessageDestinationRefType<WebFragmentDescriptor>> getAllMessageDestinationRef()
{
List<MessageDestinationRefType<WebFragmentDescriptor>> list = new ArrayList<MessageDestinationRefType<WebFragmentDescriptor>>();
List<Node> nodeList = model.get("message-destination-re... | public class class_name {
public List<MessageDestinationRefType<WebFragmentDescriptor>> getAllMessageDestinationRef()
{
List<MessageDestinationRefType<WebFragmentDescriptor>> list = new ArrayList<MessageDestinationRefType<WebFragmentDescriptor>>();
List<Node> nodeList = model.get("message-destination-re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.