code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public EClass getIfcMaterial() {
if (ifcMaterialEClass == null) {
ifcMaterialEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(356);
}
return ifcMaterialEClass;
} } | public class class_name {
@Override
public EClass getIfcMaterial() {
if (ifcMaterialEClass == null) {
ifcMaterialEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(356);
// depends on control dependency: [if], data = [none]
}
return ifcMaterialECla... |
public class class_name {
public static double root(Function func, double x1, double x2, double tol, int maxIter) {
if (tol <= 0.0) {
throw new IllegalArgumentException("Invalid tolerance: " + tol);
}
if (maxIter <= 0) {
throw new IllegalArgumentExce... | public class class_name {
public static double root(Function func, double x1, double x2, double tol, int maxIter) {
if (tol <= 0.0) {
throw new IllegalArgumentException("Invalid tolerance: " + tol);
}
if (maxIter <= 0) {
throw new IllegalArgumentExce... |
public class class_name {
public List<GROUP> getGroups(List<RESOURCE> resources) {
List<RESOURCE> sortedResources = new ArrayList<RESOURCE>(resources);
Collections.sort(sortedResources, new SortingComparator());
Map<Long, Integer> daysMap = computeDaysForResources(sortedResources);
Map... | public class class_name {
public List<GROUP> getGroups(List<RESOURCE> resources) {
List<RESOURCE> sortedResources = new ArrayList<RESOURCE>(resources);
Collections.sort(sortedResources, new SortingComparator());
Map<Long, Integer> daysMap = computeDaysForResources(sortedResources);
Map... |
public class class_name {
public boolean seek(String strSeekSign) throws DBException
{
Record recMain = this.getRecord();
BaseBuffer vector = new VectorBuffer(null);
KeyArea keyMain = recMain.getKeyArea(recMain.getDefaultOrder());
keyMain.setupKeyBuffer(vector, DBConstants.FILE_KEY_... | public class class_name {
public boolean seek(String strSeekSign) throws DBException
{
Record recMain = this.getRecord();
BaseBuffer vector = new VectorBuffer(null);
KeyArea keyMain = recMain.getKeyArea(recMain.getDefaultOrder());
keyMain.setupKeyBuffer(vector, DBConstants.FILE_KEY_... |
public class class_name {
void showCursor () {
updateCurrentLine();
if (cursorLine != firstLineShowing) {
int step = cursorLine >= firstLineShowing ? 1 : -1;
while (firstLineShowing > cursorLine || firstLineShowing + linesShowing - 1 < cursorLine) {
firstLineShowing += step;
}
}
} } | public class class_name {
void showCursor () {
updateCurrentLine();
if (cursorLine != firstLineShowing) {
int step = cursorLine >= firstLineShowing ? 1 : -1;
while (firstLineShowing > cursorLine || firstLineShowing + linesShowing - 1 < cursorLine) {
firstLineShowing += step; // depends on control depende... |
public class class_name {
static SecretKeySpec readSecretKey(DecryptionSetup ds) {
Keyed<?> ksObject = DKV.getGet(ds._keystore_id);
ByteVec ksVec = (ByteVec) (ksObject instanceof Frame ? ((Frame) ksObject).vec(0) : ksObject);
InputStream ksStream = ksVec.openStream(null /*job key*/);
try {
KeySto... | public class class_name {
static SecretKeySpec readSecretKey(DecryptionSetup ds) {
Keyed<?> ksObject = DKV.getGet(ds._keystore_id);
ByteVec ksVec = (ByteVec) (ksObject instanceof Frame ? ((Frame) ksObject).vec(0) : ksObject);
InputStream ksStream = ksVec.openStream(null /*job key*/);
try {
KeySto... |
public class class_name {
public static List<Dependency> getAllDependencies(final Module module) {
final Set<Dependency> dependencies = new HashSet<Dependency>();
final List<String> producedArtifacts = new ArrayList<String>();
for(final Artifact artifact: getAllArtifacts(module)){
p... | public class class_name {
public static List<Dependency> getAllDependencies(final Module module) {
final Set<Dependency> dependencies = new HashSet<Dependency>();
final List<String> producedArtifacts = new ArrayList<String>();
for(final Artifact artifact: getAllArtifacts(module)){
p... |
public class class_name {
protected void appendCopy(PointableRoaringArray highLowContainer, int startingIndex, int end) {
extendArray(end - startingIndex);
for (int i = startingIndex; i < end; ++i) {
this.keys[this.size] = highLowContainer.getKeyAtIndex(i);
this.values[this.size] = highLowContainer... | public class class_name {
protected void appendCopy(PointableRoaringArray highLowContainer, int startingIndex, int end) {
extendArray(end - startingIndex);
for (int i = startingIndex; i < end; ++i) {
this.keys[this.size] = highLowContainer.getKeyAtIndex(i); // depends on control dependency: [for], data =... |
public class class_name {
public static void main(String[] args) {
String icuApiVer;
if (ICU_VERSION.getMajor() <= 4) {
if (ICU_VERSION.getMinor() % 2 != 0) {
// Development mile stone
int major = ICU_VERSION.getMajor();
int minor = ICU_VERSI... | public class class_name {
public static void main(String[] args) {
String icuApiVer;
if (ICU_VERSION.getMajor() <= 4) {
if (ICU_VERSION.getMinor() % 2 != 0) {
// Development mile stone
int major = ICU_VERSION.getMajor();
int minor = ICU_VERSI... |
public class class_name {
public String nextToken()
{
if (m_tokenOffset_ < 0) {
if (m_nextOffset_ < 0) {
throw new NoSuchElementException("No more tokens in String");
}
// pre-calculations of tokens not done
if (m_returnDelimiters_) {
... | public class class_name {
public String nextToken()
{
if (m_tokenOffset_ < 0) {
if (m_nextOffset_ < 0) {
throw new NoSuchElementException("No more tokens in String");
}
// pre-calculations of tokens not done
if (m_returnDelimiters_) {
... |
public class class_name {
@Override
public String getDescription() {
StringBuilder builder = new StringBuilder("class path resource [");
if (clazz != null) {
builder.append(ResourceUtils.classPackageAsResourcePath(clazz));
builder.append('/');
}
builder.app... | public class class_name {
@Override
public String getDescription() {
StringBuilder builder = new StringBuilder("class path resource [");
if (clazz != null) {
builder.append(ResourceUtils.classPackageAsResourcePath(clazz)); // depends on control dependency: [if], data = [(clazz]
... |
public class class_name {
public LdapContext getInnermostDelegateLdapContext() {
final LdapContext delegateLdapContext = this.getDelegateLdapContext();
if (delegateLdapContext instanceof DelegatingLdapContext) {
return ((DelegatingLdapContext)delegateLdapContext).getInnermostDelegateLdapCo... | public class class_name {
public LdapContext getInnermostDelegateLdapContext() {
final LdapContext delegateLdapContext = this.getDelegateLdapContext();
if (delegateLdapContext instanceof DelegatingLdapContext) {
return ((DelegatingLdapContext)delegateLdapContext).getInnermostDelegateLdapCo... |
public class class_name {
static public double xy(double[] x, double[] y) {
double result = 0.0;
for (int i = 0; i < x.length; i++) {
result += (x[i] * y[i]);
}
return (result);
} } | public class class_name {
static public double xy(double[] x, double[] y) {
double result = 0.0;
for (int i = 0; i < x.length; i++) {
result += (x[i] * y[i]); // depends on control dependency: [for], data = [i]
}
return (result);
} } |
public class class_name {
public void characters(char[] ch, int start, int length) throws RepositoryException
{
// property values
if (propertyInfo.getValues().size() > 0)
{
DecodedValue curPropValue = propertyInfo.getValues().get(propertyInfo.getValues().size() - 1);
if (curProp... | public class class_name {
public void characters(char[] ch, int start, int length) throws RepositoryException
{
// property values
if (propertyInfo.getValues().size() > 0)
{
DecodedValue curPropValue = propertyInfo.getValues().get(propertyInfo.getValues().size() - 1);
if (curProp... |
public class class_name {
public static boolean isTrimmed(String str) {
int length;
if (str == null || (length = str.length()) == 0) {
return true;
}
return !Character.isWhitespace(str.charAt(0))
&& !Character.isWhitespace(str.charAt(length - 1));
} } | public class class_name {
public static boolean isTrimmed(String str) {
int length;
if (str == null || (length = str.length()) == 0) {
return true; // depends on control dependency: [if], data = [none]
}
return !Character.isWhitespace(str.charAt(0))
&& !Chara... |
public class class_name {
public static String intentToString(Intent intent) {
if (intent == null) {
return "null";
}
StringBuilder b = new StringBuilder(128);
b.append("Intent { ");
intentToShortString(intent, b);
b.append(" }");
return b.toString();
} } | public class class_name {
public static String intentToString(Intent intent) {
if (intent == null) {
return "null"; // depends on control dependency: [if], data = [none]
}
StringBuilder b = new StringBuilder(128);
b.append("Intent { ");
intentToShortString(intent, b);
b.append(" }");
... |
public class class_name {
public static String absoluteHrefOf(final String path) {
try {
return fromCurrentServletMapping().path(path).build().toString();
} catch (final IllegalStateException e) {
return path;
}
} } | public class class_name {
public static String absoluteHrefOf(final String path) {
try {
return fromCurrentServletMapping().path(path).build().toString(); // depends on control dependency: [try], data = [none]
} catch (final IllegalStateException e) {
return path;
} // d... |
public class class_name {
@Override
public LocalDate getAdjustedDate(LocalDate date, DateRollConvention dateRollConvention) {
if(dateRollConvention == DateRollConvention.UNADJUSTED) {
return date;
}
else if(dateRollConvention == DateRollConvention.MODIFIED_FOLLOWING) {
LocalDate adjustedDate = getAdjusted... | public class class_name {
@Override
public LocalDate getAdjustedDate(LocalDate date, DateRollConvention dateRollConvention) {
if(dateRollConvention == DateRollConvention.UNADJUSTED) {
return date; // depends on control dependency: [if], data = [none]
}
else if(dateRollConvention == DateRollConvention.MODIFIE... |
public class class_name {
public void applyDefaults() {
if (fillColor == null) {
fillColor = "#ffffff"; // white
}
if (strokeColor == null) {
strokeColor = "#000000"; // black
}
if (strokeOpacity == -1) {
strokeOpacity = 1; // fully opaque by default
}
if (fillOpacity == -1) {
fillOpacity = .... | public class class_name {
public void applyDefaults() {
if (fillColor == null) {
fillColor = "#ffffff"; // white // depends on control dependency: [if], data = [none]
}
if (strokeColor == null) {
strokeColor = "#000000"; // black // depends on control dependency: [if], data = [none]
}
if (strokeOpacity... |
public class class_name {
public static void init(final String _appKey,
final Set<UUID> _loginRoles)
{
if (AppAccessHandler.HANDLER == null) {
AppAccessHandler.HANDLER = new AppAccessHandler(_appKey, _loginRoles);
}
} } | public class class_name {
public static void init(final String _appKey,
final Set<UUID> _loginRoles)
{
if (AppAccessHandler.HANDLER == null) {
AppAccessHandler.HANDLER = new AppAccessHandler(_appKey, _loginRoles); // depends on control dependency: [if], data = [none]... |
public class class_name {
public void eInit(XtendTypeDeclaration container, IJvmTypeProvider context) {
setTypeResolutionContext(context);
if (this.sarlConstructor == null) {
this.container = container;
this.sarlConstructor = SarlFactory.eINSTANCE.createSarlConstructor();
this.sarlConstructor.setAnnotatio... | public class class_name {
public void eInit(XtendTypeDeclaration container, IJvmTypeProvider context) {
setTypeResolutionContext(context);
if (this.sarlConstructor == null) {
this.container = container; // depends on control dependency: [if], data = [none]
this.sarlConstructor = SarlFactory.eINSTANCE.createS... |
public class class_name {
public static <E> ErrorMessageFactory shouldBeLenientEqualByAccepting(Object actual, List<String> rejectedFields,
List<Object> expectedValues, List<String> acceptedFields) {
if (rejectedFields.size() == 1) {
return new ShouldBeLenientEqualByAccepting(actual, rejectedFields.get... | public class class_name {
public static <E> ErrorMessageFactory shouldBeLenientEqualByAccepting(Object actual, List<String> rejectedFields,
List<Object> expectedValues, List<String> acceptedFields) {
if (rejectedFields.size() == 1) {
return new ShouldBeLenientEqualByAccepting(actual, rejectedFields.get... |
public class class_name {
public void dispatchMessage(final SipProvider sipProvider, SipServletMessageImpl sipServletMessage) throws DispatcherException {
// final SipNetworkInterfaceManager sipNetworkInterfaceManager = sipApplicationDispatcher.getSipNetworkInterfaceManager();
final SipServletRequestImpl sipServlet... | public class class_name {
public void dispatchMessage(final SipProvider sipProvider, SipServletMessageImpl sipServletMessage) throws DispatcherException {
// final SipNetworkInterfaceManager sipNetworkInterfaceManager = sipApplicationDispatcher.getSipNetworkInterfaceManager();
final SipServletRequestImpl sipServlet... |
public class class_name {
private static Properties loadProperties()
{
Properties properties = new Properties();
boolean loaded = false;
String sysProperty = SecurityActions.getSystemProperty("ironjacamar.options");
if (sysProperty != null && !sysProperty.equals(""))
{
File f... | public class class_name {
private static Properties loadProperties()
{
Properties properties = new Properties();
boolean loaded = false;
String sysProperty = SecurityActions.getSystemProperty("ironjacamar.options");
if (sysProperty != null && !sysProperty.equals(""))
{
File f... |
public class class_name {
public synchronized TrackedTorrent announce(TrackedTorrent torrent) {
TrackedTorrent existing = myTorrentsRepository.getTorrent(torrent.getHexInfoHash());
if (existing != null) {
logger.warn("Tracker already announced torrent with hash {}.", existing.getHexInfoHash());
re... | public class class_name {
public synchronized TrackedTorrent announce(TrackedTorrent torrent) {
TrackedTorrent existing = myTorrentsRepository.getTorrent(torrent.getHexInfoHash());
if (existing != null) {
logger.warn("Tracker already announced torrent with hash {}.", existing.getHexInfoHash()); // depen... |
public class class_name {
protected <T> T query(StatementHandler stmtHandler, String sql, OutputHandler<T> outputHandler, QueryParameters params)
throws SQLException {
Connection conn = this.transactionHandler.getConnection();
if (sql == null) {
this.transactionHandler.rollback... | public class class_name {
protected <T> T query(StatementHandler stmtHandler, String sql, OutputHandler<T> outputHandler, QueryParameters params)
throws SQLException {
Connection conn = this.transactionHandler.getConnection();
if (sql == null) {
this.transactionHandler.rollback... |
public class class_name {
@Nullable
public IURLProtocol getProtocol (@Nullable final String sURL)
{
if (sURL == null)
return null;
// Is called often - so no Lambdas
m_aRWLock.readLock ().lock ();
try
{
for (final IURLProtocol aProtocol : m_aProtocols.values ())
if (aProtoc... | public class class_name {
@Nullable
public IURLProtocol getProtocol (@Nullable final String sURL)
{
if (sURL == null)
return null;
// Is called often - so no Lambdas
m_aRWLock.readLock ().lock ();
try
{
for (final IURLProtocol aProtocol : m_aProtocols.values ())
if (aProtoc... |
public class class_name {
public void createResource(final InputStream inputStream, final String resourceName)
throws JaxRxException {
synchronized (resourceName) {
if (inputStream == null) {
throw new JaxRxException(400, "Bad user request");
} else {
... | public class class_name {
public void createResource(final InputStream inputStream, final String resourceName)
throws JaxRxException {
synchronized (resourceName) {
if (inputStream == null) {
throw new JaxRxException(400, "Bad user request");
} else {
... |
public class class_name {
private void retry(int attempt, Throwable error, ErrorClassification errorClassification, Context recoveryContext, SettablePromise<T> recoveryResult) {
long backoffTime = _policy.getBackoffPolicy().nextBackoff(attempt, error);
if (errorClassification == ErrorClassification.UNRECOVERA... | public class class_name {
private void retry(int attempt, Throwable error, ErrorClassification errorClassification, Context recoveryContext, SettablePromise<T> recoveryResult) {
long backoffTime = _policy.getBackoffPolicy().nextBackoff(attempt, error);
if (errorClassification == ErrorClassification.UNRECOVERA... |
public class class_name {
@PostMapping(value = "/v1/tickets", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
public ResponseEntity<String> createTicketGrantingTicket(@RequestBody(required=false) final MultiValueMap<String, String> requestBody,
f... | public class class_name {
@PostMapping(value = "/v1/tickets", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
public ResponseEntity<String> createTicketGrantingTicket(@RequestBody(required=false) final MultiValueMap<String, String> requestBody,
f... |
public class class_name {
public void marshall(DeregisterTargetFromMaintenanceWindowRequest deregisterTargetFromMaintenanceWindowRequest, ProtocolMarshaller protocolMarshaller) {
if (deregisterTargetFromMaintenanceWindowRequest == null) {
throw new SdkClientException("Invalid argument passed to ma... | public class class_name {
public void marshall(DeregisterTargetFromMaintenanceWindowRequest deregisterTargetFromMaintenanceWindowRequest, ProtocolMarshaller protocolMarshaller) {
if (deregisterTargetFromMaintenanceWindowRequest == null) {
throw new SdkClientException("Invalid argument passed to ma... |
public class class_name {
protected Object setInList(CachingPojoPath currentPath, PojoPathContext context, PojoPathState state, Object parentPojo, Object value, int index) {
Object arrayOrList = convertList(currentPath, context, state, parentPojo);
GenericBean<Object> arrayReceiver = new GenericBean<>();
... | public class class_name {
protected Object setInList(CachingPojoPath currentPath, PojoPathContext context, PojoPathState state, Object parentPojo, Object value, int index) {
Object arrayOrList = convertList(currentPath, context, state, parentPojo);
GenericBean<Object> arrayReceiver = new GenericBean<>();
... |
public class class_name {
private void understandSchema(String schema) throws JSONException {
JSONObject j1 = new JSONObject(schema);
JSONArray fields = j1.getJSONArray(FIELDS);
String fieldName;
String fieldTypeValue;
Object recName;
for (int k = 0; k < fields.length(); k++) {
if (fie... | public class class_name {
private void understandSchema(String schema) throws JSONException {
JSONObject j1 = new JSONObject(schema);
JSONArray fields = j1.getJSONArray(FIELDS);
String fieldName;
String fieldTypeValue;
Object recName;
for (int k = 0; k < fields.length(); k++) {
if (fie... |
public class class_name {
public void unmark() {
// check if it's marked before removing the style class
if (marked) {
preferencesGroup.getRenderer().removeStyleClass(MARKED_STYLE_CLASS);
preferencesGroup.getRenderer().getTitleLabel().removeEventHandler(
MouseEvent.MOUSE_EXITED, unmarker
... | public class class_name {
public void unmark() {
// check if it's marked before removing the style class
if (marked) {
preferencesGroup.getRenderer().removeStyleClass(MARKED_STYLE_CLASS); // depends on control dependency: [if], data = [none]
preferencesGroup.getRenderer().getTitleLabel().removeEven... |
public class class_name {
static String getIdlExceptionName(String exClassName, boolean mangleComponents)
{
StringBuilder idlName = new StringBuilder(256);
idlName.append("IDL:");
idlName.append(exClassName.replace('.', '/'));
if (exClassName.endsWith("Exception"))
{
... | public class class_name {
static String getIdlExceptionName(String exClassName, boolean mangleComponents)
{
StringBuilder idlName = new StringBuilder(256);
idlName.append("IDL:");
idlName.append(exClassName.replace('.', '/'));
if (exClassName.endsWith("Exception"))
{
... |
public class class_name {
public void buildCluster(String secured) {
if (secured == null) {
this.cluster = Cluster.builder().addContactPoint(this.host).build();
this.cluster.getConfiguration().getQueryOptions()
.setConsistencyLevel(ConsistencyLevel.ONE);
} el... | public class class_name {
public void buildCluster(String secured) {
if (secured == null) {
this.cluster = Cluster.builder().addContactPoint(this.host).build(); // depends on control dependency: [if], data = [none]
this.cluster.getConfiguration().getQueryOptions()
.s... |
public class class_name {
@Override
public void endVisit(VariableDeclarationFragment fragment) {
//TODO(malvania): Add field to elementReferenceMap when field detection is enabled and the
// ElementUtil.getBinaryName() method doesn't break when called on a static block's
// ExecutableElement.
//Str... | public class class_name {
@Override
public void endVisit(VariableDeclarationFragment fragment) {
//TODO(malvania): Add field to elementReferenceMap when field detection is enabled and the
// ElementUtil.getBinaryName() method doesn't break when called on a static block's
// ExecutableElement.
//Str... |
public class class_name {
private static Object readFromUriParam(Message m,
String parameterName,
Class<?> paramType,
Type genericType,
Annotation[... | public class class_name {
private static Object readFromUriParam(Message m,
String parameterName,
Class<?> paramType,
Type genericType,
Annotation[... |
public class class_name {
public Content getTagletOutput(Doc holder, TagletWriter writer) {
SeeTag[] tags = holder.seeTags();
if (tags.length == 0 && holder instanceof MethodDoc) {
DocFinder.Output inheritedDoc =
DocFinder.search(new DocFinder.Input((MethodDoc) holder, this)... | public class class_name {
public Content getTagletOutput(Doc holder, TagletWriter writer) {
SeeTag[] tags = holder.seeTags();
if (tags.length == 0 && holder instanceof MethodDoc) {
DocFinder.Output inheritedDoc =
DocFinder.search(new DocFinder.Input((MethodDoc) holder, this)... |
public class class_name {
public void notifyMonitors(ProcessInstance processInstance, String event) {
// notify registered monitors
Process processVO = getMainProcessDefinition(processInstance);
Package pkg = PackageCache.getProcessPackage(processVO.getId());
// runtime context for enab... | public class class_name {
public void notifyMonitors(ProcessInstance processInstance, String event) {
// notify registered monitors
Process processVO = getMainProcessDefinition(processInstance);
Package pkg = PackageCache.getProcessPackage(processVO.getId());
// runtime context for enab... |
public class class_name {
public final void setProfileId(String profileId) {
boolean force = false;
if (Utility.isNullOrEmpty(this.profileId) || !this.profileId.equalsIgnoreCase(profileId)) {
// Clear out the old profilePicture before requesting for the new one.
setBlankProfileP... | public class class_name {
public final void setProfileId(String profileId) {
boolean force = false;
if (Utility.isNullOrEmpty(this.profileId) || !this.profileId.equalsIgnoreCase(profileId)) {
// Clear out the old profilePicture before requesting for the new one.
setBlankProfileP... |
public class class_name {
private KamEdge wrapEdge(KamEdge kamEdge) {
if (kamEdge == null) {
return null;
}
TermParameter param = etp.get(kamEdge.getId());
if (param != null) {
return new OrthologousEdge(kamEdge, param);
}
return kamEdge;
} ... | public class class_name {
private KamEdge wrapEdge(KamEdge kamEdge) {
if (kamEdge == null) {
return null; // depends on control dependency: [if], data = [none]
}
TermParameter param = etp.get(kamEdge.getId());
if (param != null) {
return new OrthologousEdge(kamE... |
public class class_name {
private void calculateIndexGroupByInfo(IndexScanPlanNode root,
IndexGroupByInfo gbInfo) {
String fromTableAlias = root.getTargetTableAlias();
assert(fromTableAlias != null);
Index index = root.getCatalogIndex();
if ( ! IndexType.isScannable(index.g... | public class class_name {
private void calculateIndexGroupByInfo(IndexScanPlanNode root,
IndexGroupByInfo gbInfo) {
String fromTableAlias = root.getTargetTableAlias();
assert(fromTableAlias != null);
Index index = root.getCatalogIndex();
if ( ! IndexType.isScannable(index.g... |
public class class_name {
public final boolean commit()
throws LoginException
{
boolean ret = false;
if (this.mode == ActionCallback.Mode.ALL_PERSONS) {
for (final XMLPersonPrincipal personTmp : this.allPersons.values()) {
if (!this.subject.getPrincipals().con... | public class class_name {
public final boolean commit()
throws LoginException
{
boolean ret = false;
if (this.mode == ActionCallback.Mode.ALL_PERSONS) {
for (final XMLPersonPrincipal personTmp : this.allPersons.values()) {
if (!this.subject.getPrincipals().con... |
public class class_name {
public Weighting createWeighting(HintsMap hintsMap, FlagEncoder encoder, Graph graph) {
String weightingStr = toLowerCase(hintsMap.getWeighting());
Weighting weighting = null;
if (encoder.supports(GenericWeighting.class)) {
weighting = new GenericWeighting... | public class class_name {
public Weighting createWeighting(HintsMap hintsMap, FlagEncoder encoder, Graph graph) {
String weightingStr = toLowerCase(hintsMap.getWeighting());
Weighting weighting = null;
if (encoder.supports(GenericWeighting.class)) {
weighting = new GenericWeighting... |
public class class_name {
private void createFieldMap(byte[] data)
{
int index = 0;
int lastDataBlockOffset = 0;
int dataBlockIndex = 0;
while (index < data.length)
{
long mask = MPPUtility.getInt(data, index + 0);
//mask = mask << 4;
int dataBlockOffset = ... | public class class_name {
private void createFieldMap(byte[] data)
{
int index = 0;
int lastDataBlockOffset = 0;
int dataBlockIndex = 0;
while (index < data.length)
{
long mask = MPPUtility.getInt(data, index + 0);
//mask = mask << 4;
int dataBlockOffset = ... |
public class class_name {
@Nullable
CompiledTemplate.Factory selectDelTemplate(
String delTemplateName, String variant, Predicate<String> activeDelPackageSelector) {
TemplateData selectedTemplate =
selector.selectTemplate(delTemplateName, variant, activeDelPackageSelector);
if (selectedTemplate... | public class class_name {
@Nullable
CompiledTemplate.Factory selectDelTemplate(
String delTemplateName, String variant, Predicate<String> activeDelPackageSelector) {
TemplateData selectedTemplate =
selector.selectTemplate(delTemplateName, variant, activeDelPackageSelector);
if (selectedTemplate... |
public class class_name {
public void setText(Document doc, String text)
{
StringReader reader = new StringReader(text);
HTMLEditorKit kit = (HTMLEditorKit) m_editorPane.getEditorKitForContentType(HTML_CONTENT);
try {
int iLength = doc.getLength();
if (iLength > 0)
... | public class class_name {
public void setText(Document doc, String text)
{
StringReader reader = new StringReader(text);
HTMLEditorKit kit = (HTMLEditorKit) m_editorPane.getEditorKitForContentType(HTML_CONTENT);
try {
int iLength = doc.getLength();
if (iLength > 0)
... |
public class class_name {
public static Object arrayToString(final Object obj) {
if (obj != null && obj.getClass().isArray()) {
final int len = Array.getLength(obj);
final String[] strings = new String[len];
for (int i = 0; i < len; i++) {
strings[i] = String... | public class class_name {
public static Object arrayToString(final Object obj) {
if (obj != null && obj.getClass().isArray()) {
final int len = Array.getLength(obj);
final String[] strings = new String[len];
for (int i = 0; i < len; i++) {
strings[i] = String... |
public class class_name {
public StringifiedAccumulatorResult[] getAggregatedUserAccumulatorsStringified() {
Map<String, OptionalFailure<Accumulator<?, ?>>> userAccumulators = new HashMap<>();
for (ExecutionVertex vertex : taskVertices) {
Map<String, Accumulator<?, ?>> next = vertex.getCurrentExecutionAttempt(... | public class class_name {
public StringifiedAccumulatorResult[] getAggregatedUserAccumulatorsStringified() {
Map<String, OptionalFailure<Accumulator<?, ?>>> userAccumulators = new HashMap<>();
for (ExecutionVertex vertex : taskVertices) {
Map<String, Accumulator<?, ?>> next = vertex.getCurrentExecutionAttempt(... |
public class class_name {
public static boolean startsWithUppercase(String str) {
if (isEmpty(str)) {
return false;
}
return Character.isUpperCase(str.charAt(0));
} } | public class class_name {
public static boolean startsWithUppercase(String str) {
if (isEmpty(str)) {
return false; // depends on control dependency: [if], data = [none]
}
return Character.isUpperCase(str.charAt(0));
} } |
public class class_name {
private JobRequest getJobRequest(int launchId, DbConn cnx)
{
Map<String, String> prms = RuntimeParameter.select_map(cnx, "jiprm_select_by_ji", launchId);
ResultSet rs = cnx.runSelect("history_select_reenqueue_by_id", launchId);
try
{
if (!rs.ne... | public class class_name {
private JobRequest getJobRequest(int launchId, DbConn cnx)
{
Map<String, String> prms = RuntimeParameter.select_map(cnx, "jiprm_select_by_ji", launchId);
ResultSet rs = cnx.runSelect("history_select_reenqueue_by_id", launchId);
try
{
if (!rs.ne... |
public class class_name {
private void setNetworkPipes( boolean isAreaNotAllDry ) throws Exception {
int length = inPipes.size();
networkPipes = new Pipe[length];
SimpleFeatureIterator stationsIter = inPipes.features();
boolean existOut = false;
int tmpOutIndex = 0;
try... | public class class_name {
private void setNetworkPipes( boolean isAreaNotAllDry ) throws Exception {
int length = inPipes.size();
networkPipes = new Pipe[length];
SimpleFeatureIterator stationsIter = inPipes.features();
boolean existOut = false;
int tmpOutIndex = 0;
try... |
public class class_name {
protected void removeTargetListeners (Component comp)
{
comp.removeMouseListener(_targetListener);
comp.removeMouseMotionListener(_targetListener);
if (comp instanceof Container) { // again, always true for JComp...
Container cont = (Container) comp;
... | public class class_name {
protected void removeTargetListeners (Component comp)
{
comp.removeMouseListener(_targetListener);
comp.removeMouseMotionListener(_targetListener);
if (comp instanceof Container) { // again, always true for JComp...
Container cont = (Container) comp;
... |
public class class_name {
public boolean scheduleExecutorTask(Runnable task)
{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
synchronized (_executorLock) {
_executorTaskCount++;
if (_executorTaskCount <= _executorTaskMax || _executorTaskMax < 0) {
boolean isPriori... | public class class_name {
public boolean scheduleExecutorTask(Runnable task)
{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
synchronized (_executorLock) {
_executorTaskCount++;
if (_executorTaskCount <= _executorTaskMax || _executorTaskMax < 0) {
boolean isPriori... |
public class class_name {
public void runAfterApplicationCreateBootstrap(
Instrumentation instrumentation, String[] bootstrapClasses) {
if (!isWithExtension) {
SelendroidLogger.error("Cannot run bootstrap. Must load an extension first.");
return;
}
for (String bootstrapClassName : bootst... | public class class_name {
public void runAfterApplicationCreateBootstrap(
Instrumentation instrumentation, String[] bootstrapClasses) {
if (!isWithExtension) {
SelendroidLogger.error("Cannot run bootstrap. Must load an extension first."); // depends on control dependency: [if], data = [none]
retu... |
public class class_name {
public int write(String words) {
if (mode.isWritable() == false)
throw new IllegalStateException("IOError: not opened for writing");
try {
raFile.write(words.getBytes());
} catch (IOException e) {
logger.log(Level.SEVERE, null, e);
throw new RuntimeExcepti... | public class class_name {
public int write(String words) {
if (mode.isWritable() == false)
throw new IllegalStateException("IOError: not opened for writing");
try {
raFile.write(words.getBytes()); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
logger.log... |
public class class_name {
@Override
public FatLfnDirectoryEntry getEntry(String name) {
name = name.trim().toLowerCase(Locale.ROOT);
final FatLfnDirectoryEntry entry = longNameIndex.get(name);
if (entry == null) {
if (!ShortName.canConvert(name)) return null;
... | public class class_name {
@Override
public FatLfnDirectoryEntry getEntry(String name) {
name = name.trim().toLowerCase(Locale.ROOT);
final FatLfnDirectoryEntry entry = longNameIndex.get(name);
if (entry == null) {
if (!ShortName.canConvert(name)) return null;
... |
public class class_name {
public double getRequstURIPath(String prefix, double defvalue) {
String val = getRequstURIPath(prefix, null);
try {
return val == null ? defvalue : Double.parseDouble(val);
} catch (NumberFormatException e) {
return defvalue;
}
... | public class class_name {
public double getRequstURIPath(String prefix, double defvalue) {
String val = getRequstURIPath(prefix, null);
try {
return val == null ? defvalue : Double.parseDouble(val);
// depends on control dependency: [try], data = [none]
} catch (NumberFormatExce... |
public class class_name {
public static String[] splitWithCommaOrSemicolon(String src) {
if (isEmpty(src)) {
return StringUtils.EMPTY_STRING_ARRAY;
}
String[] ss = split(src.replace(',', ';'), ";");
List<String> list = new ArrayList<String>();
for (String s : ss) {
... | public class class_name {
public static String[] splitWithCommaOrSemicolon(String src) {
if (isEmpty(src)) {
return StringUtils.EMPTY_STRING_ARRAY; // depends on control dependency: [if], data = [none]
}
String[] ss = split(src.replace(',', ';'), ";");
List<String> list = ne... |
public class class_name {
protected Cooccurrence filterCooccurence(JCas jCas, Annotation enclosingAnnot,
Annotation annot1, Annotation annot2, String[] ids1, String[] ids2) {
if (annot1.getAddress() < annot2.getAddress()) {
return super.filterCooccurence(jCas, enclosingAnnot, annot1, a... | public class class_name {
protected Cooccurrence filterCooccurence(JCas jCas, Annotation enclosingAnnot,
Annotation annot1, Annotation annot2, String[] ids1, String[] ids2) {
if (annot1.getAddress() < annot2.getAddress()) {
return super.filterCooccurence(jCas, enclosingAnnot, annot1, a... |
public class class_name {
public void marshall(StartGameSessionPlacementRequest startGameSessionPlacementRequest, ProtocolMarshaller protocolMarshaller) {
if (startGameSessionPlacementRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... | public class class_name {
public void marshall(StartGameSessionPlacementRequest startGameSessionPlacementRequest, ProtocolMarshaller protocolMarshaller) {
if (startGameSessionPlacementRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... |
public class class_name {
private static URI asRefBase( JsonString uri)
{
try
{
return
uri == null
? null
: new URI( uri.getChars().toString());
}
catch( Exception e)
{
throw new ProjectException( String.format( "Error defining reference base=%s", uri),... | public class class_name {
private static URI asRefBase( JsonString uri)
{
try
{
return
uri == null
? null
: new URI( uri.getChars().toString()); // depends on control dependency: [try], data = [none]
}
catch( Exception e)
{
throw new ProjectException( S... |
public class class_name {
public void setOtaUpdates(java.util.Collection<OTAUpdateSummary> otaUpdates) {
if (otaUpdates == null) {
this.otaUpdates = null;
return;
}
this.otaUpdates = new java.util.ArrayList<OTAUpdateSummary>(otaUpdates);
} } | public class class_name {
public void setOtaUpdates(java.util.Collection<OTAUpdateSummary> otaUpdates) {
if (otaUpdates == null) {
this.otaUpdates = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static ZonedDateTime toDateTime(Object value, EvaluationContext ctx) {
if (value instanceof String) {
Temporal temporal = ctx.getDateParser().auto((String) value);
if (temporal != null) {
return toDateTime(temporal, ctx);
}
... | public class class_name {
public static ZonedDateTime toDateTime(Object value, EvaluationContext ctx) {
if (value instanceof String) {
Temporal temporal = ctx.getDateParser().auto((String) value);
if (temporal != null) {
return toDateTime(temporal, ctx); // depends on co... |
public class class_name {
@Override
protected void perform(final Wave wave) throws CommandException {
// Get the undo/redo flag to know which action to perform
if (wave.contains(UndoRedoWaves.UNDO_REDO)) {
// The flag is true perform undo action
if (wave.get(UndoRed... | public class class_name {
@Override
protected void perform(final Wave wave) throws CommandException {
// Get the undo/redo flag to know which action to perform
if (wave.contains(UndoRedoWaves.UNDO_REDO)) {
// The flag is true perform undo action
if (wave.get(UndoRed... |
public class class_name {
public boolean acquire(final Lock lock) {
lock.setUniqueId(this.uniqueId);
if (this.lockTimeout > 0) {
lock.setExpirationDate(ZonedDateTime.now(ZoneOffset.UTC).plusSeconds(this.lockTimeout));
} else {
lock.setExpirationDate(null);
}
... | public class class_name {
public boolean acquire(final Lock lock) {
lock.setUniqueId(this.uniqueId);
if (this.lockTimeout > 0) {
lock.setExpirationDate(ZonedDateTime.now(ZoneOffset.UTC).plusSeconds(this.lockTimeout)); // depends on control dependency: [if], data = [(this.lockTimeout]
... |
public class class_name {
final void setJarFileUrls(List<String> jarFilePaths, JPAPXml pxml) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "setJarFileUrls: root=" + ivPUnitRootURL.toExternalForm());
// 6.2.1.6 m... | public class class_name {
final void setJarFileUrls(List<String> jarFilePaths, JPAPXml pxml) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "setJarFileUrls: root=" + ivPUnitRootURL.toExternalForm());
// 6.2.1.6 m... |
public class class_name {
public NumberExpression<Long> countDistinct() {
if (countDistinct == null) {
countDistinct = Expressions.numberOperation(Long.class, Ops.AggOps.COUNT_DISTINCT_AGG, mixin);
}
return countDistinct;
} } | public class class_name {
public NumberExpression<Long> countDistinct() {
if (countDistinct == null) {
countDistinct = Expressions.numberOperation(Long.class, Ops.AggOps.COUNT_DISTINCT_AGG, mixin); // depends on control dependency: [if], data = [none]
}
return countDistinct;
} } |
public class class_name {
private byte[] _requestRaw(@NonNull Method m, @NonNull String url, @Nullable Map<String, String> urlParameters, @Nullable String json, @NonNull List<String> hostsArray, int connectTimeout, int readTimeout, @Nullable RequestOptions requestOptions) throws AlgoliaException {
String reque... | public class class_name {
private byte[] _requestRaw(@NonNull Method m, @NonNull String url, @Nullable Map<String, String> urlParameters, @Nullable String json, @NonNull List<String> hostsArray, int connectTimeout, int readTimeout, @Nullable RequestOptions requestOptions) throws AlgoliaException {
String reque... |
public class class_name {
private void ensureIndex(DS session, EntityTypeMetadata<NodeMetadata<L>> entityTypeMetadata,
IndexedPropertyMethodMetadata<IndexedPropertyMetadata> indexedProperty) {
if (indexedProperty != null) {
IndexedPropertyMetadata datastoreMetadata = indexedProperty.get... | public class class_name {
private void ensureIndex(DS session, EntityTypeMetadata<NodeMetadata<L>> entityTypeMetadata,
IndexedPropertyMethodMetadata<IndexedPropertyMetadata> indexedProperty) {
if (indexedProperty != null) {
IndexedPropertyMetadata datastoreMetadata = indexedProperty.get... |
public class class_name {
public T findMatch(Q key) {
Object[] keyArray = matchFields.stream().map(mf -> mf.extract(key)).toArray();
int ordinal = hpki.getMatchingOrdinal(keyArray);
if (ordinal == -1) {
return null;
}
return uniqueTypeExtractor.extract(api, ordinal... | public class class_name {
public T findMatch(Q key) {
Object[] keyArray = matchFields.stream().map(mf -> mf.extract(key)).toArray();
int ordinal = hpki.getMatchingOrdinal(keyArray);
if (ordinal == -1) {
return null; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static void setTopBodyForParentBody(TemplateDirectiveBodyOverrideWraper topBody,
TemplateDirectiveBodyOverrideWraper overrideBody) {
TemplateDirectiveBodyOverrideWraper parent = overrideBody;
while (parent.parentBody != nul... | public class class_name {
public static void setTopBodyForParentBody(TemplateDirectiveBodyOverrideWraper topBody,
TemplateDirectiveBodyOverrideWraper overrideBody) {
TemplateDirectiveBodyOverrideWraper parent = overrideBody;
while (parent.parentBody != nul... |
public class class_name {
protected void createEntries(final MutableAcl acl) {
if (acl.getEntries().isEmpty()) {
return;
}
jdbcOperations.batchUpdate(insertEntry, new BatchPreparedStatementSetter() {
public int getBatchSize() {
return acl.getEntries().size();
}
public void setValues(PreparedStat... | public class class_name {
protected void createEntries(final MutableAcl acl) {
if (acl.getEntries().isEmpty()) {
return; // depends on control dependency: [if], data = [none]
}
jdbcOperations.batchUpdate(insertEntry, new BatchPreparedStatementSetter() {
public int getBatchSize() {
return acl.getEntries... |
public class class_name {
public static byte[] gzipUncompress(byte[] bytes) {
if (bytes == null || bytes.length == 0) {
return null;
}
ByteArrayOutputStream out = new ByteArrayOutputStream();
ByteArrayInputStream in = new ByteArrayInputStream(bytes);
try {
GZIPInputStream ungzip = new GZIPInputStream(i... | public class class_name {
public static byte[] gzipUncompress(byte[] bytes) {
if (bytes == null || bytes.length == 0) {
return null; // depends on control dependency: [if], data = [none]
}
ByteArrayOutputStream out = new ByteArrayOutputStream();
ByteArrayInputStream in = new ByteArrayInputStream(bytes);
t... |
public class class_name {
public void setTransactItems(java.util.Collection<TransactWriteItem> transactItems) {
if (transactItems == null) {
this.transactItems = null;
return;
}
this.transactItems = new java.util.ArrayList<TransactWriteItem>(transactItems);
} } | public class class_name {
public void setTransactItems(java.util.Collection<TransactWriteItem> transactItems) {
if (transactItems == null) {
this.transactItems = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public AbstractBooleanList times(int times) {
AbstractBooleanList newList = new BooleanArrayList(times*size());
for (int i=times; --i >= 0; ) {
newList.addAllOfFromTo(this,0,size()-1);
}
return newList;
} } | public class class_name {
public AbstractBooleanList times(int times) {
AbstractBooleanList newList = new BooleanArrayList(times*size());
for (int i=times; --i >= 0; ) {
newList.addAllOfFromTo(this,0,size()-1);
// depends on control dependency: [for], data = [none]
}
return newList;
} } |
public class class_name {
public synchronized void addConnector(Connector connector) {
if (connector.getProtocolHandler() instanceof SipProtocolHandler) {
final SipStandardService sipService = this.sipService;
sipService.addConnector(connector);
}
} } | public class class_name {
public synchronized void addConnector(Connector connector) {
if (connector.getProtocolHandler() instanceof SipProtocolHandler) {
final SipStandardService sipService = this.sipService;
sipService.addConnector(connector); // depends on control dependency: [if], d... |
public class class_name {
public Geometry getGeometryN(int n) {
if (isEmpty()) {
return null;
}
if (n >= 0 && n < points.length) {
return points[n];
}
throw new ArrayIndexOutOfBoundsException(n);
// return this;
} } | public class class_name {
public Geometry getGeometryN(int n) {
if (isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
if (n >= 0 && n < points.length) {
return points[n]; // depends on control dependency: [if], data = [none]
}
throw new ArrayIndexOutOfBoundsException(n);... |
public class class_name {
@Override
public void run() {
try {
try {
turnsControl.waitTurns(1, "Robot starting"); // block at the beginning so that all
// robots start at the
// same time
} catch (BankInterruptedException exc) {
log.trace("[run] Interrupted before starting");
}
... | public class class_name {
@Override
public void run() {
try {
try {
turnsControl.waitTurns(1, "Robot starting"); // block at the beginning so that all // depends on control dependency: [try], data = [none]
// robots start at the
// same time
} catch (BankInterruptedException exc) {
log... |
public class class_name {
@SuppressWarnings("PMD.SimplifyBooleanReturns")
private boolean differentAttributes(Method m1, Method m2) {
if (m1.getAnnotationEntries().length > 0 || m2.getAnnotationEntries().length > 0) {
return true;
}
int access1 = m1.getAccessFlags()
... | public class class_name {
@SuppressWarnings("PMD.SimplifyBooleanReturns")
private boolean differentAttributes(Method m1, Method m2) {
if (m1.getAnnotationEntries().length > 0 || m2.getAnnotationEntries().length > 0) {
return true; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public final void processData(RD dataHolder) throws VectorPrintException, DocumentException {
if (dataHolder == null) {
throw new VectorPrintException("No data to process, does your DataCollector return a ReportDataHolder? Or perhaps you should override createRepor... | public class class_name {
@Override
public final void processData(RD dataHolder) throws VectorPrintException, DocumentException {
if (dataHolder == null) {
throw new VectorPrintException("No data to process, does your DataCollector return a ReportDataHolder? Or perhaps you should override createRepor... |
public class class_name {
public void addWithLeftMargin(E tabContent, String tabName) {
tabContent.addStyleName(I_CmsLayoutBundle.INSTANCE.generalCss().cornerAll());
m_tabPanel.add(tabContent, CmsDomUtil.stripHtml(tabName));
int tabIndex = m_tabPanel.getWidgetIndex(tabContent);
Elemen... | public class class_name {
public void addWithLeftMargin(E tabContent, String tabName) {
tabContent.addStyleName(I_CmsLayoutBundle.INSTANCE.generalCss().cornerAll());
m_tabPanel.add(tabContent, CmsDomUtil.stripHtml(tabName));
int tabIndex = m_tabPanel.getWidgetIndex(tabContent);
Elemen... |
public class class_name {
public void updateBannerInstructionsWith(Milestone milestone) {
if (milestone instanceof BannerInstructionMilestone) {
BannerInstructions instructions = ((BannerInstructionMilestone) milestone).getBannerInstructions();
if (instructions == null || instructions.primary() == null... | public class class_name {
public void updateBannerInstructionsWith(Milestone milestone) {
if (milestone instanceof BannerInstructionMilestone) {
BannerInstructions instructions = ((BannerInstructionMilestone) milestone).getBannerInstructions();
if (instructions == null || instructions.primary() == null... |
public class class_name {
public TabularResult process(final InputStream inputStream, final Request request) {
CSVReader reader = new CSVReader(new InputStreamReader(inputStream));
try {
String[] headerRow = reader.readNext();
if (headerRow != null) {
HeaderDefinition headerDef = HeaderDefi... | public class class_name {
public TabularResult process(final InputStream inputStream, final Request request) {
CSVReader reader = new CSVReader(new InputStreamReader(inputStream));
try {
String[] headerRow = reader.readNext();
if (headerRow != null) {
HeaderDefinition headerDef = HeaderDefi... |
public class class_name {
public void setChainPolicy(String policyStr) {
if (policyStr.equalsIgnoreCase(ACCEPT_ON_MATCH)) {
matchReturnValue = ACCEPT;
noMatchReturnValue = NEUTRAL;
} else if (policyStr.equalsIgnoreCase(DENY_ON_MATCH)) {
matchReturnValue = DENY;
noMatchReturnValue = NEUT... | public class class_name {
public void setChainPolicy(String policyStr) {
if (policyStr.equalsIgnoreCase(ACCEPT_ON_MATCH)) {
matchReturnValue = ACCEPT; // depends on control dependency: [if], data = [none]
noMatchReturnValue = NEUTRAL; // depends on control dependency: [if], data = [none]
} else if ... |
public class class_name {
@Override
public void actionCommit() {
List<Throwable> errors = new ArrayList<Throwable>();
try {
// if new create it first
if (isNewUser()) {
// test the group name
CmsGroup group = null;
if (CmsStr... | public class class_name {
@Override
public void actionCommit() {
List<Throwable> errors = new ArrayList<Throwable>();
try {
// if new create it first
if (isNewUser()) {
// test the group name
CmsGroup group = null;
if (CmsStr... |
public class class_name {
public String map(String name) {
String mapped = super.get(name);
if (mapped == null) {
mapped = String.format("%s%03d", BASENAME, count.incrementAndGet());
super.put(name, mapped);
}
return mapped;
} } | public class class_name {
public String map(String name) {
String mapped = super.get(name);
if (mapped == null) {
mapped = String.format("%s%03d", BASENAME, count.incrementAndGet()); // depends on control dependency: [if], data = [none]
super.put(name, mapped); // depends on control dependency: [if], data = ... |
public class class_name {
public void infer() {
scopes = StaticAnalysis.getScopes(expression);
expressionTypes = Maps.newHashMap();
constraints = ConstraintSet.empty();
for (Scope scope : scopes.getScopes()) {
for (String variable : scope.getBoundVariables()) {
int location = scope.getBin... | public class class_name {
public void infer() {
scopes = StaticAnalysis.getScopes(expression);
expressionTypes = Maps.newHashMap();
constraints = ConstraintSet.empty();
for (Scope scope : scopes.getScopes()) {
for (String variable : scope.getBoundVariables()) {
int location = scope.getBin... |
public class class_name {
private AnnotationFS findCoverFS(CAS aCAS, AnnotationFS annot, Type coverFsType) {
// covering annotation
AnnotationFS coverFs = null;
// create a searchFS of the coverFsType with the annot boundaries to
// search for it.
FeatureStructure searchFs = aCAS.createAnnotation(cove... | public class class_name {
private AnnotationFS findCoverFS(CAS aCAS, AnnotationFS annot, Type coverFsType) {
// covering annotation
AnnotationFS coverFs = null;
// create a searchFS of the coverFsType with the annot boundaries to
// search for it.
FeatureStructure searchFs = aCAS.createAnnotation(cove... |
public class class_name {
public static void injectContextProxiesAndApplication(AbstractResourceInfo cri,
Object instance,
Application app,
Provi... | public class class_name {
public static void injectContextProxiesAndApplication(AbstractResourceInfo cri,
Object instance,
Application app,
Provi... |
public class class_name {
protected void notifyListeners (int event)
{
int size = _listeners.size();
for (int ii = 0; ii < size; ii++) {
_listeners.get(ii).modelChanged(event);
}
} } | public class class_name {
protected void notifyListeners (int event)
{
int size = _listeners.size();
for (int ii = 0; ii < size; ii++) {
_listeners.get(ii).modelChanged(event); // depends on control dependency: [for], data = [ii]
}
} } |
public class class_name {
public DbOrganization getOrganization(final DbArtifact dbArtifact) {
final DbModule module = getModule(dbArtifact);
if(module == null || module.getOrganization() == null){
return null;
}
return repositoryHandler.getOrganization(module.getOrganizat... | public class class_name {
public DbOrganization getOrganization(final DbArtifact dbArtifact) {
final DbModule module = getModule(dbArtifact);
if(module == null || module.getOrganization() == null){
return null; // depends on control dependency: [if], data = [none]
}
return... |
public class class_name {
protected ListItemHostWidget getRecycleableView(int dataIndex) {
ListItemHostWidget host = null;
try {
host = getHostView(dataIndex);
if (host != null) {
if (host.isRecycled()) {
Widget view = getViewFromAdapter(dataI... | public class class_name {
protected ListItemHostWidget getRecycleableView(int dataIndex) {
ListItemHostWidget host = null;
try {
host = getHostView(dataIndex); // depends on control dependency: [try], data = [none]
if (host != null) {
if (host.isRecycled()) {
... |
public class class_name {
@SuppressWarnings("unchecked")
private void writeRows(Cell templateCell, List<Object> items) {
val tmplRow = templateCell.getRow();
val fromRow = tmplRow.getRowNum();
val tmplCol = templateCell.getColumnIndex();
for (int i = 0, ii = items.size(); i < ii; +... | public class class_name {
@SuppressWarnings("unchecked")
private void writeRows(Cell templateCell, List<Object> items) {
val tmplRow = templateCell.getRow();
val fromRow = tmplRow.getRowNum();
val tmplCol = templateCell.getColumnIndex();
for (int i = 0, ii = items.size(); i < ii; +... |
public class class_name {
static AuthenticationType convertAuthToEnum(int resAuthType)
{
AuthenticationType authType = AuthenticationType.CONTAINER;
if (resAuthType == ResourceRef.AUTH_APPLICATION)
{
authType = AuthenticationType.APPLICATION;
}
if (TraceCompone... | public class class_name {
static AuthenticationType convertAuthToEnum(int resAuthType)
{
AuthenticationType authType = AuthenticationType.CONTAINER;
if (resAuthType == ResourceRef.AUTH_APPLICATION)
{
authType = AuthenticationType.APPLICATION; // depends on control dependency: [... |
public class class_name {
public void setSuggesters(java.util.Collection<SuggesterStatus> suggesters) {
if (suggesters == null) {
this.suggesters = null;
return;
}
this.suggesters = new com.amazonaws.internal.SdkInternalList<SuggesterStatus>(suggesters);
} } | public class class_name {
public void setSuggesters(java.util.Collection<SuggesterStatus> suggesters) {
if (suggesters == null) {
this.suggesters = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@SuppressWarnings("unchecked")
private int getVarArgsParmCount(String signature) {
if (SignatureBuilder.SIG_STRING_AND_OBJECT_TO_VOID.equals(signature)) {
return 1;
}
if (SIG_STRING_AND_TWO_OBJECTS_TO_VOID.equals(signature)) {
return 2;
... | public class class_name {
@SuppressWarnings("unchecked")
private int getVarArgsParmCount(String signature) {
if (SignatureBuilder.SIG_STRING_AND_OBJECT_TO_VOID.equals(signature)) {
return 1; // depends on control dependency: [if], data = [none]
}
if (SIG_STRING_AND_TWO_OBJECTS_T... |
public class class_name {
public void enqueue(TargetTransportPort port, Command command)
{
if (_logger.isDebugEnabled())
{
_logger.debug("enqueuing command: " + command + ", associated with TargetTransportPort: "
+ port);
}
try
{
Task task = this.getTas... | public class class_name {
public void enqueue(TargetTransportPort port, Command command)
{
if (_logger.isDebugEnabled())
{
_logger.debug("enqueuing command: " + command + ", associated with TargetTransportPort: "
+ port); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private PGPKeyRingGenerator createKeyRingGenerator(String userId, String password, int keySize) {
LOGGER.trace("createKeyRingGenerator(String, String, int)");
LOGGER.trace("User ID: {}, Password: {}, Key Size: {}", userId, password == null ? "not set" : "********", keySize);
PGPKe... | public class class_name {
private PGPKeyRingGenerator createKeyRingGenerator(String userId, String password, int keySize) {
LOGGER.trace("createKeyRingGenerator(String, String, int)");
LOGGER.trace("User ID: {}, Password: {}, Key Size: {}", userId, password == null ? "not set" : "********", keySize);
PGPKe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.