code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@SuppressWarnings("unchecked")
static VisitorStatusType visitList(String name, List<Object> list, BindMapListener listener, VisitorStatusType status) {
int i = 0;
for (Object item : list) {
if (item == null || item instanceof String) {
visit(name + "." + i, (String) item, listener... | public class class_name {
@SuppressWarnings("unchecked")
static VisitorStatusType visitList(String name, List<Object> list, BindMapListener listener, VisitorStatusType status) {
int i = 0;
for (Object item : list) {
if (item == null || item instanceof String) {
visit(name + "." + i, (String) item, listener... |
public class class_name {
private void finalizeSourceMap() throws IOException {
StringWriter writer = new StringWriter();
smGen.appendTo(writer, "" /* file name */); //$NON-NLS-1$
sourceMap = writer.toString();
// now add the sourcesContent field
try {
JSONObject obj = new JSONObject(sourceMap);
... | public class class_name {
private void finalizeSourceMap() throws IOException {
StringWriter writer = new StringWriter();
smGen.appendTo(writer, "" /* file name */); //$NON-NLS-1$
sourceMap = writer.toString();
// now add the sourcesContent field
try {
JSONObject obj = new JSONObject(sourceMap);
... |
public class class_name {
protected void growAndCopy() {
if (textLen == text.length) {
int newSize = text.length << 1;
char[] newText = new char[newSize];
if (textLen > 0) {
System.arraycopy(text, 0, newText, 0, textLen);
}
text = newText;
}
} } | public class class_name {
protected void growAndCopy() {
if (textLen == text.length) {
int newSize = text.length << 1;
char[] newText = new char[newSize];
if (textLen > 0) {
System.arraycopy(text, 0, newText, 0, textLen); // depends on control dependency: [if], data = [none]
}
text = newText; /... |
public class class_name {
protected synchronized void indexSearcherClose(IndexSearcher searcher) {
// in case there is an index searcher available close it
if ((searcher != null) && (searcher.getIndexReader() != null)) {
try {
searcher.getIndexReader().close();
... | public class class_name {
protected synchronized void indexSearcherClose(IndexSearcher searcher) {
// in case there is an index searcher available close it
if ((searcher != null) && (searcher.getIndexReader() != null)) {
try {
searcher.getIndexReader().close(); // depends o... |
public class class_name {
public float trimLastSpace()
{
BaseFont ft = font.getFont();
if (ft.getFontType() == BaseFont.FONT_TYPE_CJK && ft.getUnicodeEquivalent(' ') != ' ') {
if (value.length() > 1 && value.endsWith("\u0001")) {
value = value.substring(0, value.length()... | public class class_name {
public float trimLastSpace()
{
BaseFont ft = font.getFont();
if (ft.getFontType() == BaseFont.FONT_TYPE_CJK && ft.getUnicodeEquivalent(' ') != ' ') {
if (value.length() > 1 && value.endsWith("\u0001")) {
value = value.substring(0, value.length()... |
public class class_name {
public static int random(int min, int max) {
if (min < 0 || max < 0) {
throw new RuntimeException(
"illegal argment, min and max must great then zero.");
}
if (min > max) {
int t = max;
max = min;
min ... | public class class_name {
public static int random(int min, int max) {
if (min < 0 || max < 0) {
throw new RuntimeException(
"illegal argment, min and max must great then zero.");
}
if (min > max) {
int t = max;
max = min; // depends on co... |
public class class_name {
private boolean validatePast(Object validationObject, Annotation annotate)
{
if (checkNullObject(validationObject))
{
return true;
}
int res = 0;
if (validationObject.getClass().isAssignableFrom(java.util.Date.class))
{
... | public class class_name {
private boolean validatePast(Object validationObject, Annotation annotate)
{
if (checkNullObject(validationObject))
{
return true; // depends on control dependency: [if], data = [none]
}
int res = 0;
if (validationObject.getClass().isA... |
public class class_name {
public void sweepDisk() {
//iterate over the files in the store dir and check expiry times
long now = System.currentTimeMillis();
if (log.isDebugEnabled()) {
log.debug("Sweeping " + storeDir + " for old session files");
}
try {
... | public class class_name {
public void sweepDisk() {
//iterate over the files in the store dir and check expiry times
long now = System.currentTimeMillis();
if (log.isDebugEnabled()) {
log.debug("Sweeping " + storeDir + " for old session files");
// depends on control dependency... |
public class class_name {
Query createQuery(String jpaQuery, final String persistenceUnit)
{
Client client = getClient(persistenceUnit);
EntityMetadata metadata = null;
try
{
metadata = KunderaMetadataManager.getMetamodel(kunderaMetadata, client.getPersistenceUnit())
... | public class class_name {
Query createQuery(String jpaQuery, final String persistenceUnit)
{
Client client = getClient(persistenceUnit);
EntityMetadata metadata = null;
try
{
metadata = KunderaMetadataManager.getMetamodel(kunderaMetadata, client.getPersistenceUnit())
... |
public class class_name {
public List<T> getSuggestions(QueryToken queryToken) {
String prefix = queryToken.getKeywords().toLowerCase();
List<T> suggestions = new ArrayList<>();
if (mData != null) {
for (T suggestion : mData) {
String name = suggestion.getSuggestible... | public class class_name {
public List<T> getSuggestions(QueryToken queryToken) {
String prefix = queryToken.getKeywords().toLowerCase();
List<T> suggestions = new ArrayList<>();
if (mData != null) {
for (T suggestion : mData) {
String name = suggestion.getSuggestible... |
public class class_name {
void flattenSets() {
Assert.assrt(fType != setRef);
if (fLeftChild != null) {
if (fLeftChild.fType == setRef) {
RBBINode setRefNode = fLeftChild;
RBBINode usetNode = setRefNode.fLeftChild;
RBBINode replTree = usetNod... | public class class_name {
void flattenSets() {
Assert.assrt(fType != setRef);
if (fLeftChild != null) {
if (fLeftChild.fType == setRef) {
RBBINode setRefNode = fLeftChild;
RBBINode usetNode = setRefNode.fLeftChild;
RBBINode replTree = usetNod... |
public class class_name {
private void checkExactlyTheWeeksCheckBoxes(Collection<WeekOfMonth> weeksToCheck) {
for (CmsCheckBox cb : m_checkboxes) {
cb.setChecked(weeksToCheck.contains(WeekOfMonth.valueOf(cb.getInternalValue())));
}
} } | public class class_name {
private void checkExactlyTheWeeksCheckBoxes(Collection<WeekOfMonth> weeksToCheck) {
for (CmsCheckBox cb : m_checkboxes) {
cb.setChecked(weeksToCheck.contains(WeekOfMonth.valueOf(cb.getInternalValue())));
// depends on control dependency: [for], data = [cb]
}
... |
public class class_name {
synchronized Weight getMinimumDuration() {
if (calcMinDuration == null) {
Weight min = WeightFactory.POS_INFINITY;
for (int i = 0, n = intervals.size(); i < n; i++) {
Object finish = intervals.get(i).getFinish();
Map<?, Weight> d... | public class class_name {
synchronized Weight getMinimumDuration() {
if (calcMinDuration == null) {
Weight min = WeightFactory.POS_INFINITY;
for (int i = 0, n = intervals.size(); i < n; i++) {
Object finish = intervals.get(i).getFinish();
Map<?, Weight> d... |
public class class_name {
private Subject getSubject()
{
return AccessController.doPrivileged(new PrivilegedAction<Subject>()
{
/**
* run method
*/
public Subject run()
{
try
{
String domain = recoverSecurityDomain;
... | public class class_name {
private Subject getSubject()
{
return AccessController.doPrivileged(new PrivilegedAction<Subject>()
{
/**
* run method
*/
public Subject run()
{
try
{
String domain = recoverSecurityDomain;
... |
public class class_name {
@Override
public void visitBeanDefinitionConstructor(AnnotationMetadata annotationMetadata,
boolean requiresReflection,
Map<String, Object> argumentTypes,
... | public class class_name {
@Override
public void visitBeanDefinitionConstructor(AnnotationMetadata annotationMetadata,
boolean requiresReflection,
Map<String, Object> argumentTypes,
... |
public class class_name {
@Override
public double membership(double x) {
if (Double.isNaN(x)) {
return Double.NaN;
}
double sshape;
if (Op.isLE(x, bottomLeft)) {
sshape = 0.0;
} else if (Op.isLE(x, 0.5 * (bottomLeft + topLeft))) {
sshape =... | public class class_name {
@Override
public double membership(double x) {
if (Double.isNaN(x)) {
return Double.NaN; // depends on control dependency: [if], data = [none]
}
double sshape;
if (Op.isLE(x, bottomLeft)) {
sshape = 0.0; // depends on control depende... |
public class class_name {
@Override
public IPromise then(Callback resultCB) {
// FIXME: this can be implemented more efficient
while( !lock.compareAndSet(false,true) ) {}
try {
if (resultReceiver != null)
throw new RuntimeException("Double register of promise lis... | public class class_name {
@Override
public IPromise then(Callback resultCB) {
// FIXME: this can be implemented more efficient
while( !lock.compareAndSet(false,true) ) {}
try {
if (resultReceiver != null)
throw new RuntimeException("Double register of promise lis... |
public class class_name {
public void printUsage(Command command) {
String commandName = command.getDescriptor().getName();
StringBuilder sb = new StringBuilder(getSyntaxPrefix()).append(commandName).append(" ");
// create a list for processed option groups
Collection<OptionGroup> proc... | public class class_name {
public void printUsage(Command command) {
String commandName = command.getDescriptor().getName();
StringBuilder sb = new StringBuilder(getSyntaxPrefix()).append(commandName).append(" ");
// create a list for processed option groups
Collection<OptionGroup> proc... |
public class class_name {
public static boolean isAbsoluteURI(String systemId)
{
/** http://www.ietf.org/rfc/rfc2396.txt
* Authors should be aware that a path segment which contains a colon
* character cannot be used as the first segment of a relative URI path
* (e.g., "this:that"), because ... | public class class_name {
public static boolean isAbsoluteURI(String systemId)
{
/** http://www.ietf.org/rfc/rfc2396.txt
* Authors should be aware that a path segment which contains a colon
* character cannot be used as the first segment of a relative URI path
* (e.g., "this:that"), because ... |
public class class_name {
public static String flattenReservedTokens(String str) {
if (StringUtils.isBlank(str)) {
return str;
}
return str.replaceAll("\\{\\[", "{").replaceAll("\\]\\}", "}");
} } | public class class_name {
public static String flattenReservedTokens(String str) {
if (StringUtils.isBlank(str)) {
return str;
// depends on control dependency: [if], data = [none]
}
return str.replaceAll("\\{\\[", "{").replaceAll("\\]\\}", "}");
} } |
public class class_name {
public Result<MoveAlongSurfaceResult> moveAlongSurface(long startRef, float[] startPos, float[] endPos,
QueryFilter filter) {
// Validate input
if (!m_nav.isValidPolyRef(startRef) || Objects.isNull(startPos) || !vIsFinite(startPos)
|| Objects.isNul... | public class class_name {
public Result<MoveAlongSurfaceResult> moveAlongSurface(long startRef, float[] startPos, float[] endPos,
QueryFilter filter) {
// Validate input
if (!m_nav.isValidPolyRef(startRef) || Objects.isNull(startPos) || !vIsFinite(startPos)
|| Objects.isNul... |
public class class_name {
@Override
public void execute(final ModelNode original, final OperationMessageHandler messageHandler, final ProxyOperationControl control,
final OperationAttachments attachments, final BlockingTimeout blockingTimeout) {
// Add blocking support to adhere to ... | public class class_name {
@Override
public void execute(final ModelNode original, final OperationMessageHandler messageHandler, final ProxyOperationControl control,
final OperationAttachments attachments, final BlockingTimeout blockingTimeout) {
// Add blocking support to adhere to ... |
public class class_name {
static Jsii tryGetJsiiAnnotation(final Class<?> type, final boolean inherited) {
Jsii[] ann;
if (inherited) {
ann = (Jsii[]) type.getAnnotationsByType(Jsii.class);
} else {
ann = (Jsii[]) type.getDeclaredAnnotationsByType(Jsii.class);
}... | public class class_name {
static Jsii tryGetJsiiAnnotation(final Class<?> type, final boolean inherited) {
Jsii[] ann;
if (inherited) {
ann = (Jsii[]) type.getAnnotationsByType(Jsii.class); // depends on control dependency: [if], data = [none]
} else {
ann = (Jsii[]) ty... |
public class class_name {
public FieldDescriptor getFieldDescriptor(@SlashedClassName String className, String name, String signature, boolean isStatic) {
FieldDescriptor fieldDescriptor = new FieldDescriptor(className, name, signature, isStatic);
FieldDescriptor existing = fieldDescriptorMap.get(field... | public class class_name {
public FieldDescriptor getFieldDescriptor(@SlashedClassName String className, String name, String signature, boolean isStatic) {
FieldDescriptor fieldDescriptor = new FieldDescriptor(className, name, signature, isStatic);
FieldDescriptor existing = fieldDescriptorMap.get(field... |
public class class_name {
public static void main(final String[] args) {
// update java.io.tmpdir
final String tempPath = System.getProperty(FESS_TEMP_PATH);
if (tempPath != null) {
System.setProperty(JAVA_IO_TMPDIR, tempPath);
}
final TomcatBoot tomcatBoot = new Fe... | public class class_name {
public static void main(final String[] args) {
// update java.io.tmpdir
final String tempPath = System.getProperty(FESS_TEMP_PATH);
if (tempPath != null) {
System.setProperty(JAVA_IO_TMPDIR, tempPath); // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected CmsInheritanceReference parseReference(I_CmsXmlContentLocation location, Locale locale) {
I_CmsXmlContentValueLocation nameLocation = location.getSubValue("ConfigName");
if (nameLocation == null) {
return null;
}
String configName =... | public class class_name {
protected CmsInheritanceReference parseReference(I_CmsXmlContentLocation location, Locale locale) {
I_CmsXmlContentValueLocation nameLocation = location.getSubValue("ConfigName");
if (nameLocation == null) {
return null;
// depends on control dependency: [if]... |
public class class_name {
private synchronized boolean cancel(final int id, final boolean mayInterrupt,
final boolean removeOperation) {
final RunningOperation runningOperation = mRunningOperations.get(id);
if (runningOperation != null) {
if (removeOperation) {
m... | public class class_name {
private synchronized boolean cancel(final int id, final boolean mayInterrupt,
final boolean removeOperation) {
final RunningOperation runningOperation = mRunningOperations.get(id);
if (runningOperation != null) {
if (removeOperation) {
m... |
public class class_name {
private static boolean tryUpgradeUpdateToWriteLockMillis(
long address, long timeInMillis, boolean interruptible) throws InterruptedException {
long lastTime = System.currentTimeMillis();
registerWait(address);
try {
do {
if (try... | public class class_name {
private static boolean tryUpgradeUpdateToWriteLockMillis(
long address, long timeInMillis, boolean interruptible) throws InterruptedException {
long lastTime = System.currentTimeMillis();
registerWait(address);
try {
do {
if (try... |
public class class_name {
public SearchProvisionedProductsResult withProvisionedProducts(ProvisionedProductAttribute... provisionedProducts) {
if (this.provisionedProducts == null) {
setProvisionedProducts(new java.util.ArrayList<ProvisionedProductAttribute>(provisionedProducts.length));
}
... | public class class_name {
public SearchProvisionedProductsResult withProvisionedProducts(ProvisionedProductAttribute... provisionedProducts) {
if (this.provisionedProducts == null) {
setProvisionedProducts(new java.util.ArrayList<ProvisionedProductAttribute>(provisionedProducts.length)); // depends... |
public class class_name {
public void snapshotChanges(int originBase, Bytez origin) {
int sumLen = 0;
for (int i = 0; i < curIndex; i++) {
sumLen += changeLength[i];
}
snapshot = new byte[sumLen];
int targetIdx = 0;
for (int i = 0; i < curIndex; i++) {
... | public class class_name {
public void snapshotChanges(int originBase, Bytez origin) {
int sumLen = 0;
for (int i = 0; i < curIndex; i++) {
sumLen += changeLength[i]; // depends on control dependency: [for], data = [i]
}
snapshot = new byte[sumLen];
int targetIdx = 0;... |
public class class_name {
public boolean connect(){
try {
sock = new Socket(host, port);
in = new BufferedReader(new InputStreamReader(
sock.getInputStream(), "UTF-8"));
out = new BufferedWriter(new OutputStreamWriter(
sock.getOutputStream(), "UTF-8"));
return true;
}
catch (Except... | public class class_name {
public boolean connect(){
try {
sock = new Socket(host, port);
// depends on control dependency: [try], data = [none]
in = new BufferedReader(new InputStreamReader(
sock.getInputStream(), "UTF-8"));
// depends on control dependency: [try], data = [none]
out = new Buffered... |
public class class_name {
private void convertNode(final GraphObjectMap map, final Node node) {
final NodeList nodeList = node.getChildNodes();
if (nodeList != null) {
final List<GraphObjectMap> children = new LinkedList<>();
final int length = nodeList.getLength();
for (int i=0; i<l... | public class class_name {
private void convertNode(final GraphObjectMap map, final Node node) {
final NodeList nodeList = node.getChildNodes();
if (nodeList != null) {
final List<GraphObjectMap> children = new LinkedList<>();
final int length = nodeList.getLength();
for (int i=0; i<l... |
public class class_name {
public void setThisData(byte[] data)
{
try
{
pen.setData(data);
}
catch ( Exception e )
{
ThreadUtils.checkInterrupted(e);
Throwables.propagate(e);
}
} } | public class class_name {
public void setThisData(byte[] data)
{
try
{
pen.setData(data); // depends on control dependency: [try], data = [none]
}
catch ( Exception e )
{
ThreadUtils.checkInterrupted(e);
Throwables.propagate(e);
} ... |
public class class_name {
@Override
public void handleEvent(Event event) {
LOG.fine("CustomInfoHandler called");
if (customInfo != null) {
event.getCustomInfo().putAll(customInfo);
}
} } | public class class_name {
@Override
public void handleEvent(Event event) {
LOG.fine("CustomInfoHandler called");
if (customInfo != null) {
event.getCustomInfo().putAll(customInfo); // depends on control dependency: [if], data = [(customInfo]
}
} } |
public class class_name {
public void populateExtractionResult(List<Object> objects) {
for (Object object : objects) {
extractorDelegate.extractEntity(object);
}
} } | public class class_name {
public void populateExtractionResult(List<Object> objects) {
for (Object object : objects) {
extractorDelegate.extractEntity(object); // depends on control dependency: [for], data = [object]
}
} } |
public class class_name {
@Override
public Response getApplicationBindings( String applicationName ) {
Response response;
ManagedApplication ma = this.manager.applicationMngr().findManagedApplicationByName( applicationName );
if( ma == null ) {
response = handleError(
Status.NOT_FOUND,
new RestErr... | public class class_name {
@Override
public Response getApplicationBindings( String applicationName ) {
Response response;
ManagedApplication ma = this.manager.applicationMngr().findManagedApplicationByName( applicationName );
if( ma == null ) {
response = handleError(
Status.NOT_FOUND,
new RestErr... |
public class class_name {
@Override
public void setBufferSize(int size) {
if (this.writing || isClosed()) {
throw new IllegalStateException("Stream unable to set size");
}
this.amountToBuffer = size;
this.bbSize = (49152 < size) ? 32768 : 8192;
// make sure we n... | public class class_name {
@Override
public void setBufferSize(int size) {
if (this.writing || isClosed()) {
throw new IllegalStateException("Stream unable to set size");
}
this.amountToBuffer = size;
this.bbSize = (49152 < size) ? 32768 : 8192;
// make sure we n... |
public class class_name {
public Message clearFlag(Flag ... flags) {
if(flags != null) {
short tmp=this.flags;
for(Flag flag : flags)
if(flag != null)
tmp&=~flag.value();
this.flags=tmp;
}
return this;
} } | public class class_name {
public Message clearFlag(Flag ... flags) {
if(flags != null) {
short tmp=this.flags;
for(Flag flag : flags)
if(flag != null)
tmp&=~flag.value();
this.flags=tmp; // depends on control dependency: [if], data = [none... |
public class class_name {
protected void computePDists(Relation<O> relation, KNNQuery<O> knn, WritableDoubleDataStore pdists) {
// computing PRDs
FiniteProgress prdsProgress = LOG.isVerbose() ? new FiniteProgress("pdists", relation.size(), LOG) : null;
for(DBIDIter iditer = relation.iterDBIDs(); iditer.val... | public class class_name {
protected void computePDists(Relation<O> relation, KNNQuery<O> knn, WritableDoubleDataStore pdists) {
// computing PRDs
FiniteProgress prdsProgress = LOG.isVerbose() ? new FiniteProgress("pdists", relation.size(), LOG) : null;
for(DBIDIter iditer = relation.iterDBIDs(); iditer.val... |
public class class_name {
protected final boolean validate(@NonNull Subscriber<?>[] subscribers) {
int p = parallelism();
if (subscribers.length != p) {
Throwable iae = new IllegalArgumentException("parallelism = " + p + ", subscribers = " + subscribers.length);
for (Subscriber<... | public class class_name {
protected final boolean validate(@NonNull Subscriber<?>[] subscribers) {
int p = parallelism();
if (subscribers.length != p) {
Throwable iae = new IllegalArgumentException("parallelism = " + p + ", subscribers = " + subscribers.length);
for (Subscriber<... |
public class class_name {
@Override
public final long getLastIdleTime(IdleStatus status) {
if (status == IdleStatus.BOTH_IDLE) {
return lastIdleTimeForBoth;
}
if (status == IdleStatus.READER_IDLE) {
return lastIdleTimeForRead;
}
if (status == IdleSt... | public class class_name {
@Override
public final long getLastIdleTime(IdleStatus status) {
if (status == IdleStatus.BOTH_IDLE) {
return lastIdleTimeForBoth; // depends on control dependency: [if], data = [none]
}
if (status == IdleStatus.READER_IDLE) {
return lastId... |
public class class_name {
public void marshall(DeleteLoadBalancerTlsCertificateRequest deleteLoadBalancerTlsCertificateRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteLoadBalancerTlsCertificateRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
... | public class class_name {
public void marshall(DeleteLoadBalancerTlsCertificateRequest deleteLoadBalancerTlsCertificateRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteLoadBalancerTlsCertificateRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
... |
public class class_name {
void collectVertices(final List<ManagementVertex> vertices) {
final Iterator<ManagementVertex> it = this.groupMembers.iterator();
while (it.hasNext()) {
vertices.add(it.next());
}
} } | public class class_name {
void collectVertices(final List<ManagementVertex> vertices) {
final Iterator<ManagementVertex> it = this.groupMembers.iterator();
while (it.hasNext()) {
vertices.add(it.next()); // depends on control dependency: [while], data = [none]
}
} } |
public class class_name {
public InputStream post(URI uri, String json) {
HttpConnection connection = Http.POST(uri,
"application/json");
if (json != null && !json.isEmpty()) {
connection.setRequestBody(json);
}
return executeToInputStream(connection);
} ... | public class class_name {
public InputStream post(URI uri, String json) {
HttpConnection connection = Http.POST(uri,
"application/json");
if (json != null && !json.isEmpty()) {
connection.setRequestBody(json); // depends on control dependency: [if], data = [(json]
}
... |
public class class_name {
public TagFileInfo getTagFile(String shortname) {
TagFileInfo tagFiles[] = getTagFiles();
if (tagFiles == null || tagFiles.length == 0) {
return null;
}
for (int i=0; i < tagFiles.length; i++) {
if (tagFiles[i].getName().equals(shortna... | public class class_name {
public TagFileInfo getTagFile(String shortname) {
TagFileInfo tagFiles[] = getTagFiles();
if (tagFiles == null || tagFiles.length == 0) {
return null; // depends on control dependency: [if], data = [none]
}
for (int i=0; i < tagFiles.length; i++) ... |
public class class_name {
@Nonnull
public static Configuration createConfiguration(Properties properties) {
final Configuration configuration = new Configuration();
final Set<String> propertyNames = properties.stringPropertyNames();
for (String propertyName : propertyNames) {
configuration.setString(proper... | public class class_name {
@Nonnull
public static Configuration createConfiguration(Properties properties) {
final Configuration configuration = new Configuration();
final Set<String> propertyNames = properties.stringPropertyNames();
for (String propertyName : propertyNames) {
configuration.setString(proper... |
public class class_name {
public static boolean hasField( Class clazz, String fieldName )
{
try
{
clazz.getDeclaredField( fieldName );
return true;
}
catch( NoSuchFieldException nfe )
{
if( clazz.getSuperclass() != null )
{
return hasField( clazz.getSuperclass(), f... | public class class_name {
public static boolean hasField( Class clazz, String fieldName )
{
try
{
clazz.getDeclaredField( fieldName ); // depends on control dependency: [try], data = [none]
return true; // depends on control dependency: [try], data = [none]
}
catch( NoSuchFieldException n... |
public class class_name {
private void foldButtons() {
VerticalLayout mainPV = (VerticalLayout)m_foldedButtonsMenu.getContent().getPopupComponent();
for (int i = m_itemsLeft.getComponentCount() - 1; i > -1; i--) {
Component comp = m_itemsLeft.getComponent(i);
if (!isAlwaysShow(... | public class class_name {
private void foldButtons() {
VerticalLayout mainPV = (VerticalLayout)m_foldedButtonsMenu.getContent().getPopupComponent();
for (int i = m_itemsLeft.getComponentCount() - 1; i > -1; i--) {
Component comp = m_itemsLeft.getComponent(i);
if (!isAlwaysShow(... |
public class class_name {
private boolean cdissect(RuntimeSubexpression t, int begin, int end) {
assert t != null;
switch (t.op) {
case '=': /* terminal node */
assert t.left == null && t.right == null;
return true; /* no action, parent did the work */
... | public class class_name {
private boolean cdissect(RuntimeSubexpression t, int begin, int end) {
assert t != null;
switch (t.op) {
case '=': /* terminal node */
assert t.left == null && t.right == null;
return true; /* no action, parent did the work */
... |
public class class_name {
public Map<String, EntityDocument> getEntityDocuments(List<String> entityIds)
throws MediaWikiApiErrorException, IOException {
Map<String, EntityDocument> result = new HashMap<>();
List<String> newEntityIds = new ArrayList<>();
newEntityIds.addAll(entityIds);
boolean moreItems = !n... | public class class_name {
public Map<String, EntityDocument> getEntityDocuments(List<String> entityIds)
throws MediaWikiApiErrorException, IOException {
Map<String, EntityDocument> result = new HashMap<>();
List<String> newEntityIds = new ArrayList<>();
newEntityIds.addAll(entityIds);
boolean moreItems = !n... |
public class class_name {
public static double[] line_of_twoP(double[] p1, double[] p2) {
// kb[0]:if the line is vertical;kb[1]:a value if kb[0]=1,k value or else;kb[2]:insignificance if kb[0]=1,b value or else;
double[] kb = new double[3];
if (p1[0] == p2[0]) {
kb[0] = 1;
kb[1] = p1[0];
... | public class class_name {
public static double[] line_of_twoP(double[] p1, double[] p2) {
// kb[0]:if the line is vertical;kb[1]:a value if kb[0]=1,k value or else;kb[2]:insignificance if kb[0]=1,b value or else;
double[] kb = new double[3];
if (p1[0] == p2[0]) {
kb[0] = 1;
// depends on control... |
public class class_name {
public Discover firstAirDateYearLte(int year) {
if (checkYear(year)) {
params.add(Param.FIRST_AIR_DATE_LTE, year);
}
return this;
} } | public class class_name {
public Discover firstAirDateYearLte(int year) {
if (checkYear(year)) {
params.add(Param.FIRST_AIR_DATE_LTE, year); // depends on control dependency: [if], data = [none]
}
return this;
} } |
public class class_name {
private CompletableFuture<Void> throttle() {
val delay = new AtomicReference<ThrottlerCalculator.DelayResult>(this.throttlerCalculator.getThrottlingDelay());
if (!delay.get().isMaximum()) {
// We are not delaying the maximum amount. We only need to do this once.
... | public class class_name {
private CompletableFuture<Void> throttle() {
val delay = new AtomicReference<ThrottlerCalculator.DelayResult>(this.throttlerCalculator.getThrottlingDelay());
if (!delay.get().isMaximum()) {
// We are not delaying the maximum amount. We only need to do this once.
... |
public class class_name {
public static Method[] findMethods(String[] namesAndDescriptors, Method[] methods)
{
Map map = new HashMap();
for (int i = 0; i < methods.length; i++) {
Method method = methods[i];
map.put(method.getName() + Type.getMethodDescriptor(method), method)... | public class class_name {
public static Method[] findMethods(String[] namesAndDescriptors, Method[] methods)
{
Map map = new HashMap();
for (int i = 0; i < methods.length; i++) {
Method method = methods[i];
map.put(method.getName() + Type.getMethodDescriptor(method), method)... |
public class class_name {
@Override
public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException {
String marketName = DSXAdapters.currencyPairToMarketName(currencyPair);
String accountType = null;
try {
if (args != null) {
accountType = (String) args[0];
}
... | public class class_name {
@Override
public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException {
String marketName = DSXAdapters.currencyPairToMarketName(currencyPair);
String accountType = null;
try {
if (args != null) {
accountType = (String) args[0]; // depend... |
public class class_name {
public void setUserProperties(Map userData) throws SIResourceException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "setUserProperties",
new Object[] { userData });
_consumerDispatcher.getConsumerDispatcherState().setUserData(userData);
Transact... | public class class_name {
public void setUserProperties(Map userData) throws SIResourceException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "setUserProperties",
new Object[] { userData });
_consumerDispatcher.getConsumerDispatcherState().setUserData(userData);
Transact... |
public class class_name {
public final static boolean isJavaKeyword(String s)
{
if (s == null || s.length() == 0)
{
return false;
}
for (int i = 0; i < keywords.length; i++)
{
if (keywords[i].equals(s))
{
return true;
}
}
re... | public class class_name {
public final static boolean isJavaKeyword(String s)
{
if (s == null || s.length() == 0)
{
return false; // depends on control dependency: [if], data = [none]
}
for (int i = 0; i < keywords.length; i++)
{
if (keywords[i].equals(s))
{... |
public class class_name {
protected static double rawQuantile(double p, double alpha, double beta, final double logbeta) {
// Initial estimate for x
double x;
{
// Very fast approximation of y.
double tmp = FastMath.sqrt(-2 * FastMath.log(p));
double y = tmp - (2.30753 + 0.27061 * tmp) / ... | public class class_name {
protected static double rawQuantile(double p, double alpha, double beta, final double logbeta) {
// Initial estimate for x
double x;
{
// Very fast approximation of y.
double tmp = FastMath.sqrt(-2 * FastMath.log(p));
double y = tmp - (2.30753 + 0.27061 * tmp) / ... |
public class class_name {
public static Multimap<String, String> convertToMultiMap(final PObject objectParams) {
Multimap<String, String> params = HashMultimap.create();
if (objectParams != null) {
Iterator<String> customParamsIter = objectParams.keys();
while (customParamsIter.... | public class class_name {
public static Multimap<String, String> convertToMultiMap(final PObject objectParams) {
Multimap<String, String> params = HashMultimap.create();
if (objectParams != null) {
Iterator<String> customParamsIter = objectParams.keys();
while (customParamsIter.... |
public class class_name {
private void writeFileByte(byte[] content, File file) throws IOException {
FileOutputStream fOut = null;
DataOutputStream dOut = null;
try {
// write the content to the file in server filesystem
fOut = new FileOutputStream(file);
dO... | public class class_name {
private void writeFileByte(byte[] content, File file) throws IOException {
FileOutputStream fOut = null;
DataOutputStream dOut = null;
try {
// write the content to the file in server filesystem
fOut = new FileOutputStream(file);
dO... |
public class class_name {
protected MessageSecurityMetadataSource createMetadataSource() {
LinkedHashMap<MessageMatcher<?>, String> matcherToExpression = new LinkedHashMap<MessageMatcher<?>, String>();
for (Map.Entry<MatcherBuilder, String> entry : this.matcherToExpression
.entrySet()) {
matcherToExpression... | public class class_name {
protected MessageSecurityMetadataSource createMetadataSource() {
LinkedHashMap<MessageMatcher<?>, String> matcherToExpression = new LinkedHashMap<MessageMatcher<?>, String>();
for (Map.Entry<MatcherBuilder, String> entry : this.matcherToExpression
.entrySet()) {
matcherToExpression... |
public class class_name {
@Override
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
currentAttributes = attributes;
currentText = new StringBuilder();
if (SUPPRESS.equals(qName)) {
rule = new SuppressionRule();
... | public class class_name {
@Override
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
currentAttributes = attributes;
currentText = new StringBuilder();
if (SUPPRESS.equals(qName)) {
rule = new SuppressionRule();
... |
public class class_name {
public static HClientFactory createFactory(CassandraHostConfigurator chc) {
try {
return chc.getClientFactoryClass().newInstance();
} catch (Exception e) {
throw new RuntimeException(e);
}
} } | public class class_name {
public static HClientFactory createFactory(CassandraHostConfigurator chc) {
try {
return chc.getClientFactoryClass().newInstance(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
throw new RuntimeException(e);
} // depends on... |
public class class_name {
public void marshall(StopAssessmentRunRequest stopAssessmentRunRequest, ProtocolMarshaller protocolMarshaller) {
if (stopAssessmentRunRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(StopAssessmentRunRequest stopAssessmentRunRequest, ProtocolMarshaller protocolMarshaller) {
if (stopAssessmentRunRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
protected void checkForAllowedBody() {
int code = getIntCode();
// check for explicit codes
if (204 == code || 304 == code) {
setBodyAllowed(false);
}
// all 1xx codes should not have a body
else if (100 <= code && 200 > code) {
... | public class class_name {
protected void checkForAllowedBody() {
int code = getIntCode();
// check for explicit codes
if (204 == code || 304 == code) {
setBodyAllowed(false); // depends on control dependency: [if], data = [none]
}
// all 1xx codes should not have a b... |
public class class_name {
private String encodeAtomExpr(int atmIdx) {
final IAtom atom = mol.getAtom(atmIdx);
boolean complex = mode == MODE_EXACT;
StringBuilder sb = new StringBuilder();
switch (atom.getAtomicNumber()) {
case 0: // *
sb.append('*');
... | public class class_name {
private String encodeAtomExpr(int atmIdx) {
final IAtom atom = mol.getAtom(atmIdx);
boolean complex = mode == MODE_EXACT;
StringBuilder sb = new StringBuilder();
switch (atom.getAtomicNumber()) {
case 0: // *
sb.append('*');
... |
public class class_name {
public void marshall(DiscoverPollEndpointRequest discoverPollEndpointRequest, ProtocolMarshaller protocolMarshaller) {
if (discoverPollEndpointRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DiscoverPollEndpointRequest discoverPollEndpointRequest, ProtocolMarshaller protocolMarshaller) {
if (discoverPollEndpointRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public void updateVersion()
{
try
{
MessageDigest versionDigest = MessageDigest.getInstance("MD5");
for (Row row : SystemKeyspace.serializedSchema())
{
if (invalidSchemaRow(row) || ignoredSchemaRow(row))
... | public class class_name {
public void updateVersion()
{
try
{
MessageDigest versionDigest = MessageDigest.getInstance("MD5");
for (Row row : SystemKeyspace.serializedSchema())
{
if (invalidSchemaRow(row) || ignoredSchemaRow(row))
... |
public class class_name {
public void setUserPassword(String password) {
try {
getSipURI().setUserPassword(password);
} catch (ParseException e) {
logger.error("error setting parameter ", e);
throw new IllegalArgumentException("Bad arg", e );
}
} } | public class class_name {
public void setUserPassword(String password) {
try {
getSipURI().setUserPassword(password);
// depends on control dependency: [try], data = [none]
} catch (ParseException e) {
logger.error("error setting parameter ", e);
throw new IllegalArgumentException("Bad arg", e );
... |
public class class_name {
public int size() {
if (size == -1) {
if ((from instanceof Integer || from instanceof Long)
&& (to instanceof Integer || to instanceof Long)) {
// let's fast calculate the size
long fromNum = ((Number) from).longValue();
... | public class class_name {
public int size() {
if (size == -1) {
if ((from instanceof Integer || from instanceof Long)
&& (to instanceof Integer || to instanceof Long)) {
// let's fast calculate the size
long fromNum = ((Number) from).longValue();
... |
public class class_name {
private Optional<MethodUsage> solveMethodAsUsage(ResolvedReferenceType refType, String name,
List<ResolvedType> argumentsTypes, TypeSolver typeSolver,
Context invokationContext) {
... | public class class_name {
private Optional<MethodUsage> solveMethodAsUsage(ResolvedReferenceType refType, String name,
List<ResolvedType> argumentsTypes, TypeSolver typeSolver,
Context invokationContext) {
... |
public class class_name {
private static void recursiveSetSrid(Geometry geometry, int srid) {
if (geometry != null) {
geometry.setSrid(srid);
}
if (geometry.getGeometries() != null) {
for (Geometry childGeometry : geometry.getGeometries()) {
recursiveSetSrid(childGeometry, srid);
}
}
} } | public class class_name {
private static void recursiveSetSrid(Geometry geometry, int srid) {
if (geometry != null) {
geometry.setSrid(srid); // depends on control dependency: [if], data = [none]
}
if (geometry.getGeometries() != null) {
for (Geometry childGeometry : geometry.getGeometries()) {
recursi... |
public class class_name {
public List<ItemMini> getItemsByFieldAndTitle(int fieldId, String text,
List<Integer> notItemIds, Integer limit) {
WebResource resource = getResourceFactory().getApiResource(
"/item/field/" + fieldId + "/find");
if (limit != null) {
resource = resource.queryParam("limit... | public class class_name {
public List<ItemMini> getItemsByFieldAndTitle(int fieldId, String text,
List<Integer> notItemIds, Integer limit) {
WebResource resource = getResourceFactory().getApiResource(
"/item/field/" + fieldId + "/find");
if (limit != null) {
resource = resource.queryParam("limit... |
public class class_name {
private static BinaryMemcacheRequest handleGetRequest(final ChannelHandlerContext ctx, final GetRequest msg) {
byte opcode;
ByteBuf extras;
if (msg.lock()) {
opcode = OP_GET_AND_LOCK;
extras = ctx.alloc().buffer().writeInt(msg.expiry());
... | public class class_name {
private static BinaryMemcacheRequest handleGetRequest(final ChannelHandlerContext ctx, final GetRequest msg) {
byte opcode;
ByteBuf extras;
if (msg.lock()) {
opcode = OP_GET_AND_LOCK; // depends on control dependency: [if], data = [none]
extras ... |
public class class_name {
protected void initialize() {
if (m_folderList != null) {
// ensure folders are sorted starting with parent folders
Collections.sort(m_folderList, I_CmsResource.COMPARE_ROOT_PATH);
}
if (m_fileList != null) {
// ensure files are so... | public class class_name {
protected void initialize() {
if (m_folderList != null) {
// ensure folders are sorted starting with parent folders
Collections.sort(m_folderList, I_CmsResource.COMPARE_ROOT_PATH); // depends on control dependency: [if], data = [(m_folderList]
}
... |
public class class_name {
private void loadDynamicJavaRegisteredServices() {
Map<Package,Map<String,String>> packagedJava = new HashMap<>();
try {
for (Asset javaAsset : AssetCache.getAssets(Asset.JAVA)) {
// process RegisteredService-annotated classes
if (ja... | public class class_name {
private void loadDynamicJavaRegisteredServices() {
Map<Package,Map<String,String>> packagedJava = new HashMap<>();
try {
for (Asset javaAsset : AssetCache.getAssets(Asset.JAVA)) {
// process RegisteredService-annotated classes
if (ja... |
public class class_name {
@Override
public EClass getIfcSoundPressureLevelMeasure() {
if (ifcSoundPressureLevelMeasureEClass == null) {
ifcSoundPressureLevelMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(867);
}
return ifcSoundPressureLe... | public class class_name {
@Override
public EClass getIfcSoundPressureLevelMeasure() {
if (ifcSoundPressureLevelMeasureEClass == null) {
ifcSoundPressureLevelMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(867);
// depends on control dependency... |
public class class_name {
public final int decode(final InputStream stream, final ByteBuffer buffer) throws IOException {
// TODO: Allow decoding < row.length at a time and get rid of this assertion...
if (buffer.capacity() < row.length) {
throw new AssertionError("This decoder needs a buff... | public class class_name {
public final int decode(final InputStream stream, final ByteBuffer buffer) throws IOException {
// TODO: Allow decoding < row.length at a time and get rid of this assertion...
if (buffer.capacity() < row.length) {
throw new AssertionError("This decoder needs a buff... |
public class class_name {
public Set<ModuleIdentifier> getAllRevisionIds(String scriptModuleId) {
Objects.requireNonNull(scriptModuleId, "scriptModuleId");
Set<ModuleIdentifier> revisionIds = new LinkedHashSet<ModuleIdentifier>();
for (ModuleIdentifier revisionId : moduleSpecs.keySet()) {
... | public class class_name {
public Set<ModuleIdentifier> getAllRevisionIds(String scriptModuleId) {
Objects.requireNonNull(scriptModuleId, "scriptModuleId");
Set<ModuleIdentifier> revisionIds = new LinkedHashSet<ModuleIdentifier>();
for (ModuleIdentifier revisionId : moduleSpecs.keySet()) {
... |
public class class_name {
public boolean add( T[] entries ) {
assert entries != null;
if (entries.length == 0 || !addEntries.get()) return false;
try {
producerLock.lock();
long position = cursor.claim(entries.length); // blocks
for (int i = 0; i != entries.l... | public class class_name {
public boolean add( T[] entries ) {
assert entries != null;
if (entries.length == 0 || !addEntries.get()) return false;
try {
producerLock.lock(); // depends on control dependency: [try], data = [none]
long position = cursor.claim(entries.length... |
public class class_name {
private void extractImageFeatures(final ProgressMonitor progressMonitor, final int progress,
T image,
List<TupleDesc> descs, List<Point2D_F64> locs) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
progressMonitor.setNote("Detecting");
}
})... | public class class_name {
private void extractImageFeatures(final ProgressMonitor progressMonitor, final int progress,
T image,
List<TupleDesc> descs, List<Point2D_F64> locs) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
progressMonitor.setNote("Detecting");
}
})... |
public class class_name {
public void doWithRows(Pairs pairs) {
if (isEmpty()) {
return;
}
Row row1 = new Row(this);
Row row2 = new Row(this);
int max = rowCount();
for (int i = 1; i < max; i++) {
row1.at(i - 1);
row2.at(i);
... | public class class_name {
public void doWithRows(Pairs pairs) {
if (isEmpty()) {
return; // depends on control dependency: [if], data = [none]
}
Row row1 = new Row(this);
Row row2 = new Row(this);
int max = rowCount();
for (int i = 1; i < max; i++) {
... |
public class class_name {
void removeTrigger(String name) {
TriggerDef td = null;
for (int i = 0; i < triggerList.length; i++) {
td = triggerList[i];
if (td.name.name.equals(name)) {
td.terminate();
triggerList =
(TriggerDe... | public class class_name {
void removeTrigger(String name) {
TriggerDef td = null;
for (int i = 0; i < triggerList.length; i++) {
td = triggerList[i]; // depends on control dependency: [for], data = [i]
if (td.name.name.equals(name)) {
td.terminate(); // depend... |
public class class_name {
@Override
public String getSignature(String baseString, String apiSecret, String tokenSecret) {
try {
final Signature signature = Signature.getInstance(RSA_SHA1);
signature.initSign(privateKey);
signature.update(baseString.getBytes(UTF8));
... | public class class_name {
@Override
public String getSignature(String baseString, String apiSecret, String tokenSecret) {
try {
final Signature signature = Signature.getInstance(RSA_SHA1);
signature.initSign(privateKey); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public Observable<ServiceResponse<HostingEnvironmentDiagnosticsInner>> getDiagnosticsItemWithServiceResponseAsync(String resourceGroupName, String name, String diagnosticsName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupNa... | public class class_name {
public Observable<ServiceResponse<HostingEnvironmentDiagnosticsInner>> getDiagnosticsItemWithServiceResponseAsync(String resourceGroupName, String name, String diagnosticsName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupNa... |
public class class_name {
public void setLaunchConfigurations(java.util.Collection<LaunchConfiguration> launchConfigurations) {
if (launchConfigurations == null) {
this.launchConfigurations = null;
return;
}
this.launchConfigurations = new com.amazonaws.internal.SdkInte... | public class class_name {
public void setLaunchConfigurations(java.util.Collection<LaunchConfiguration> launchConfigurations) {
if (launchConfigurations == null) {
this.launchConfigurations = null; // depends on control dependency: [if], data = [none]
return; // depends on control depen... |
public class class_name {
@SuppressWarnings("unchecked")
public <P> Populator<P> getPopulator(final Class<P> clazz, final Path path) {
if (clazz == null || clazz.equals(Object.class)) {
return (Populator<P>)NullPopulator.INSTANCE;
} else {
final ClassTranslator<P> classTranslator = (ClassTranslator<P>)this.... | public class class_name {
@SuppressWarnings("unchecked")
public <P> Populator<P> getPopulator(final Class<P> clazz, final Path path) {
if (clazz == null || clazz.equals(Object.class)) {
return (Populator<P>)NullPopulator.INSTANCE; // depends on control dependency: [if], data = [none]
} else {
final ClassTra... |
public class class_name {
protected String getInputFileBasedOutputFileName(JobConf job, String name) {
String infilepath = job.get("map.input.file");
if (infilepath == null) {
// if the map input file does not exists, then return the given name
return name;
}
int numOfTrailingLegsToUse = jo... | public class class_name {
protected String getInputFileBasedOutputFileName(JobConf job, String name) {
String infilepath = job.get("map.input.file");
if (infilepath == null) {
// if the map input file does not exists, then return the given name
return name; // depends on control dependency: [if], d... |
public class class_name {
@Override
public XmlObject getFormObject(ProposalDevelopmentDocumentContract proposalDevelopmentDocument) {
this.pdDoc = proposalDevelopmentDocument;
S2sUserAttachedFormFileContract userAttachedFormFile = findUserAttachedFormFile();
if(userAttachedFormFile==null){
... | public class class_name {
@Override
public XmlObject getFormObject(ProposalDevelopmentDocumentContract proposalDevelopmentDocument) {
this.pdDoc = proposalDevelopmentDocument;
S2sUserAttachedFormFileContract userAttachedFormFile = findUserAttachedFormFile();
if(userAttachedFormFile==null){
... |
public class class_name {
@Deprecated
protected Runnable getTask(boolean oldThread) throws InterruptedException { // PK77809
long waitTime;
Runnable r = null;
boolean firstTime = true;
while (true) {
synchronized (this) {
// System.out.println("1 " + act... | public class class_name {
@Deprecated
protected Runnable getTask(boolean oldThread) throws InterruptedException { // PK77809
long waitTime;
Runnable r = null;
boolean firstTime = true;
while (true) {
synchronized (this) {
// System.out.println("1 " + act... |
public class class_name {
protected void unregisterDriver(){
String jdbcURL = this.config.getJdbcUrl();
if ((jdbcURL != null) && this.config.isDeregisterDriverOnClose()){
logger.info("Unregistering JDBC driver for : "+jdbcURL);
try {
DriverManager.deregisterDriver(DriverManager.getDriver(jdbcURL));
... | public class class_name {
protected void unregisterDriver(){
String jdbcURL = this.config.getJdbcUrl();
if ((jdbcURL != null) && this.config.isDeregisterDriverOnClose()){
logger.info("Unregistering JDBC driver for : "+jdbcURL);
// depends on control dependency: [if], data = [none]
try {
DriverManage... |
public class class_name {
public void add(VMTransitionBuilder b) {
Map<VMState, VMTransitionBuilder> m = vmAMB2.get(b.getDestinationState());
for (VMState src : b.getSourceStates()) {
m.put(src, b);
}
} } | public class class_name {
public void add(VMTransitionBuilder b) {
Map<VMState, VMTransitionBuilder> m = vmAMB2.get(b.getDestinationState());
for (VMState src : b.getSourceStates()) {
m.put(src, b); // depends on control dependency: [for], data = [src]
}
} } |
public class class_name {
@Override
public EClass getIfcObjectReferenceSelect() {
if (ifcObjectReferenceSelectEClass == null) {
ifcObjectReferenceSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1146);
}
return ifcObjectReferenceSelectEClas... | public class class_name {
@Override
public EClass getIfcObjectReferenceSelect() {
if (ifcObjectReferenceSelectEClass == null) {
ifcObjectReferenceSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1146);
// depends on control dependency: [if], dat... |
public class class_name {
public void fireChangeEvent() {
ChangeEvent event = createChangeEvent(getSource());
for (ChangeListener listener : this) {
listener.stateChanged(event);
}
} } | public class class_name {
public void fireChangeEvent() {
ChangeEvent event = createChangeEvent(getSource());
for (ChangeListener listener : this) {
listener.stateChanged(event); // depends on control dependency: [for], data = [listener]
}
} } |
public class class_name {
private String getClassName(final TypeMirror t) {
String res = null;
if (t instanceof DeclaredType) {
final DeclaredType dt = (DeclaredType) t;
res = ((TypeElement) dt.asElement()).getQualifiedName().toString();
}
return res;
} } | public class class_name {
private String getClassName(final TypeMirror t) {
String res = null;
if (t instanceof DeclaredType) {
final DeclaredType dt = (DeclaredType) t;
res = ((TypeElement) dt.asElement()).getQualifiedName().toString(); // depends on control dependency: [if], ... |
public class class_name {
public String json(String text) {
if (text == null || text.isEmpty()) {
return text;
}
return StringEscapeUtils.escapeJson(text);
} } | public class class_name {
public String json(String text) {
if (text == null || text.isEmpty()) {
return text; // depends on control dependency: [if], data = [none]
}
return StringEscapeUtils.escapeJson(text);
} } |
public class class_name {
public Optional<BigDecimal> getMax() {
if (property instanceof BaseIntegerProperty) {
BaseIntegerProperty integerProperty = (BaseIntegerProperty) property;
return Optional.ofNullable(integerProperty.getMaximum() != null ? integerProperty.getMaximum() : null);
... | public class class_name {
public Optional<BigDecimal> getMax() {
if (property instanceof BaseIntegerProperty) {
BaseIntegerProperty integerProperty = (BaseIntegerProperty) property;
return Optional.ofNullable(integerProperty.getMaximum() != null ? integerProperty.getMaximum() : null); /... |
public class class_name {
@Override
public void addSourceTargetSet(UnicodeSet inputFilter, UnicodeSet sourceSet, UnicodeSet targetSet) {
// Each form consists of a prefix, suffix,
// * radix, minimum digit count, and maximum digit count. These
// * values are stored as a five character hea... | public class class_name {
@Override
public void addSourceTargetSet(UnicodeSet inputFilter, UnicodeSet sourceSet, UnicodeSet targetSet) {
// Each form consists of a prefix, suffix,
// * radix, minimum digit count, and maximum digit count. These
// * values are stored as a five character hea... |
public class class_name {
public MessageFieldDesc getMessageFieldDesc(String strKey)
{
if (strKey.lastIndexOf('/') != -1)
{
String strParentKey = strKey.substring(0, strKey.lastIndexOf('/'));
String strFieldKey = strKey.substring(strKey.lastIndexOf('/') + 1);
Mes... | public class class_name {
public MessageFieldDesc getMessageFieldDesc(String strKey)
{
if (strKey.lastIndexOf('/') != -1)
{
String strParentKey = strKey.substring(0, strKey.lastIndexOf('/'));
String strFieldKey = strKey.substring(strKey.lastIndexOf('/') + 1);
Mes... |
public class class_name {
protected void purge() {
Reference ref = queue.poll();
while (ref != null) {
purge(ref);
ref = queue.poll();
}
} } | public class class_name {
protected void purge() {
Reference ref = queue.poll();
while (ref != null) {
purge(ref); // depends on control dependency: [while], data = [(ref]
ref = queue.poll(); // depends on control dependency: [while], data = [none]
}
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.