code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static Method[] collectMethods(Class<?> c, int inclusiveModifiers, int exclusiveModifiers, Class<?> limitExclusive) {
Set<Method> methods = new HashSet<Method>();
while (c != limitExclusive) {
for (Method f : c.getDeclaredMethods()) {
... | public class class_name {
public static Method[] collectMethods(Class<?> c, int inclusiveModifiers, int exclusiveModifiers, Class<?> limitExclusive) {
Set<Method> methods = new HashSet<Method>();
while (c != limitExclusive) {
for (Method f : c.getDeclaredMethods()) {
... |
public class class_name {
public void printDataStartForm(PrintWriter out, int iPrintOptions)
{
String strRecordName = "norecord";
Record record = this.getMainRecord();
if (record != null)
strRecordName = record.getTableNames(false);
if ((iPrintOptions & HtmlConstants.MAI... | public class class_name {
public void printDataStartForm(PrintWriter out, int iPrintOptions)
{
String strRecordName = "norecord";
Record record = this.getMainRecord();
if (record != null)
strRecordName = record.getTableNames(false);
if ((iPrintOptions & HtmlConstants.MAI... |
public class class_name {
public void inputWatermark(Watermark watermark, int channelIndex) {
// ignore the input watermark if its input channel, or all input channels are idle (i.e. overall the valve is idle).
if (lastOutputStreamStatus.isActive() && channelStatuses[channelIndex].streamStatus.isActive()) {
lon... | public class class_name {
public void inputWatermark(Watermark watermark, int channelIndex) {
// ignore the input watermark if its input channel, or all input channels are idle (i.e. overall the valve is idle).
if (lastOutputStreamStatus.isActive() && channelStatuses[channelIndex].streamStatus.isActive()) {
lon... |
public class class_name {
private String formatParserLocation() {
StringBuilder sb = new StringBuilder();
if ( paraphrases != null ) {
for ( Map<DroolsParaphraseTypes, String> map : paraphrases ) {
for ( Entry<DroolsParaphraseTypes, String> activeEntry : map.entrySet() ) {
... | public class class_name {
private String formatParserLocation() {
StringBuilder sb = new StringBuilder();
if ( paraphrases != null ) {
for ( Map<DroolsParaphraseTypes, String> map : paraphrases ) {
for ( Entry<DroolsParaphraseTypes, String> activeEntry : map.entrySet() ) {
... |
public class class_name {
@Override
public void start(StartContext context) throws StartException {
Set<KeytabService> services = keytabServices.getValue();
hostServiceMap = new HashMap<String, KeytabService>(services.size()); // Assume at least one per service.
/*
* Iterate the s... | public class class_name {
@Override
public void start(StartContext context) throws StartException {
Set<KeytabService> services = keytabServices.getValue();
hostServiceMap = new HashMap<String, KeytabService>(services.size()); // Assume at least one per service.
/*
* Iterate the s... |
public class class_name {
@Override
public final V getEntity(final NamedParameterQueryData query) {
V entity; // Entity acquired from the query
checkNotNull(query, "Received a null pointer as the query");
// Tries to acquire the entity
try {
entity = getTemplate().quer... | public class class_name {
@Override
public final V getEntity(final NamedParameterQueryData query) {
V entity; // Entity acquired from the query
checkNotNull(query, "Received a null pointer as the query");
// Tries to acquire the entity
try {
entity = getTemplate().quer... |
public class class_name {
public void writePocketsToPMesh(String outPutFileName) {
try {
for (int i = 0; i < pockets.size(); i++) {// go through every
// pocket
BufferedWriter writer = new BufferedWriter(new FileWriter(outPutFileName + "-" + i + ".pmesh"));
... | public class class_name {
public void writePocketsToPMesh(String outPutFileName) {
try {
for (int i = 0; i < pockets.size(); i++) {// go through every
// pocket
BufferedWriter writer = new BufferedWriter(new FileWriter(outPutFileName + "-" + i + ".pmesh"));
... |
public class class_name {
public List<Record> handle(Record record) {
boolean isPrinting = false;
if(record.force()){
//--Case: Force Printing
isPrinting = true;
} else {
//--Case: Filter
switch (this.defaultState){
case HIDE_ALL:
//--Default False
... | public class class_name {
public List<Record> handle(Record record) {
boolean isPrinting = false;
if(record.force()){
//--Case: Force Printing
isPrinting = true;
// depends on control dependency: [if], data = [none]
} else {
//--Case: Filter
switch (this.defaultState){
... |
public class class_name {
private List<Method> findSubscriberMethods(Object subscriber) throws InvalidSubscriberException {
List<Method> subscriberMethods = new ArrayList<Method>();
Set<Method> allMethods = new HashSet<Method>();
Method[] methods = subscriber.getClass().getMethods();
al... | public class class_name {
private List<Method> findSubscriberMethods(Object subscriber) throws InvalidSubscriberException {
List<Method> subscriberMethods = new ArrayList<Method>();
Set<Method> allMethods = new HashSet<Method>();
Method[] methods = subscriber.getClass().getMethods();
al... |
public class class_name {
public static File toFile(final URL aURL) {
Objects.requireNonNull(aURL, LOGGER.getI18n(MessageCodes.UTIL_031));
if (!FILE_PROTOCOL.equals(aURL.getProtocol())) {
throw new UnsupportedOperationException(LOGGER.getI18n(MessageCodes.UTIL_030));
}
Str... | public class class_name {
public static File toFile(final URL aURL) {
Objects.requireNonNull(aURL, LOGGER.getI18n(MessageCodes.UTIL_031));
if (!FILE_PROTOCOL.equals(aURL.getProtocol())) {
throw new UnsupportedOperationException(LOGGER.getI18n(MessageCodes.UTIL_030));
}
Str... |
public class class_name {
public EClass getBandImageData() {
if (bandImageDataEClass == null) {
bandImageDataEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(400);
}
return bandImageDataEClass;
} } | public class class_name {
public EClass getBandImageData() {
if (bandImageDataEClass == null) {
bandImageDataEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(400); // depends on control dependency: [if], data = [none]
}
return bandImageDataEClass;
} } |
public class class_name {
public void add(int index, Object element)
{
DListEntry entry = prepareEntry(element);
elements.add(index, entry);
// if we are in a transaction: acquire locks !
TransactionImpl tx = getTransaction();
if (checkForOpenTransaction(tx))
... | public class class_name {
public void add(int index, Object element)
{
DListEntry entry = prepareEntry(element);
elements.add(index, entry);
// if we are in a transaction: acquire locks !
TransactionImpl tx = getTransaction();
if (checkForOpenTransaction(tx))
... |
public class class_name {
@EventHandler
public void onSelectFilter(SelectFilterEvent selectFilterEvent){
for (FacetWidget facetWidget : filterList) {
if(facetWidget.getFacetField().equals(selectFilterEvent.getFilterName())){
for (FacetWidgetItem facetWidgetItem : facetWidget.get... | public class class_name {
@EventHandler
public void onSelectFilter(SelectFilterEvent selectFilterEvent){
for (FacetWidget facetWidget : filterList) {
if(facetWidget.getFacetField().equals(selectFilterEvent.getFilterName())){
for (FacetWidgetItem facetWidgetItem : facetWidget.get... |
public class class_name {
SymbolToken find(String text)
{
for (int i = 0; i < myImports.length; i++)
{
SymbolTable importedTable = myImports[i];
SymbolToken tok = importedTable.find(text);
if (tok != null)
{
int sid = tok.getSid() + m... | public class class_name {
SymbolToken find(String text)
{
for (int i = 0; i < myImports.length; i++)
{
SymbolTable importedTable = myImports[i];
SymbolToken tok = importedTable.find(text);
if (tok != null)
{
int sid = tok.getSid() + m... |
public class class_name {
private boolean hasPublicEmptyConstructor(DeclaredType type) {
Element element = type.asElement();
List<? extends Element> containing = element.getEnclosedElements();
for (Element e : containing) {
if (e.getKind() == ElementKind.CONSTRUCTOR) {
ExecutableElement c =... | public class class_name {
private boolean hasPublicEmptyConstructor(DeclaredType type) {
Element element = type.asElement();
List<? extends Element> containing = element.getEnclosedElements();
for (Element e : containing) {
if (e.getKind() == ElementKind.CONSTRUCTOR) {
ExecutableElement c =... |
public class class_name {
private JPanel getJPanel() {
if (jPanel == null) {
// TODO add a cancel button?
//java.awt.GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
java.awt.GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
java.awt.GridBagConstraints gridBagConst... | public class class_name {
private JPanel getJPanel() {
if (jPanel == null) {
// TODO add a cancel button?
//java.awt.GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
java.awt.GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
java.awt.GridBagConstraints gridBagConst... |
public class class_name {
private void insertCheckFringeBalance(
InsertStack stack,
GBSNode endp,
int endIndex,
int ... | public class class_name {
private void insertCheckFringeBalance(
InsertStack stack,
GBSNode endp,
int endIndex,
int ... |
public class class_name {
public void marshall(GetRoomSkillParameterRequest getRoomSkillParameterRequest, ProtocolMarshaller protocolMarshaller) {
if (getRoomSkillParameterRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(GetRoomSkillParameterRequest getRoomSkillParameterRequest, ProtocolMarshaller protocolMarshaller) {
if (getRoomSkillParameterRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
@Override
public Object load(String batchId) {
Object loadedArtifact;
loadedArtifact = getArtifactById(batchId);
if (loadedArtifact != null) {
if (logger.isLoggable(Level.FINEST)) {
logger.finest("load: batchId: " + batchId
... | public class class_name {
@Override
public Object load(String batchId) {
Object loadedArtifact;
loadedArtifact = getArtifactById(batchId);
if (loadedArtifact != null) {
if (logger.isLoggable(Level.FINEST)) {
logger.finest("load: batchId: " + batchId
... |
public class class_name {
public static String meterToKind(Registry registry, Meter meter) {
String kind;
if (meter instanceof Timer) {
kind = "Timer";
} else if (meter instanceof Counter) {
kind = "Counter";
} else if (meter instanceof Gauge) {
kind = "Gauge";
} else if (meter in... | public class class_name {
public static String meterToKind(Registry registry, Meter meter) {
String kind;
if (meter instanceof Timer) {
kind = "Timer"; // depends on control dependency: [if], data = [none]
} else if (meter instanceof Counter) {
kind = "Counter"; // depends on control dependency... |
public class class_name {
public int removeJob(JobKey key) throws IOException {
byte[] jobRow = jobKeyConv.toBytes(key);
Table historyTable =
hbaseConnection.getTable(TableName.valueOf(Constants.HISTORY_TABLE));
historyTable.delete(new Delete(jobRow));
historyTable.close();
int deleteCoun... | public class class_name {
public int removeJob(JobKey key) throws IOException {
byte[] jobRow = jobKeyConv.toBytes(key);
Table historyTable =
hbaseConnection.getTable(TableName.valueOf(Constants.HISTORY_TABLE));
historyTable.delete(new Delete(jobRow));
historyTable.close();
int deleteCoun... |
public class class_name {
private static URL getConfigUrl() throws ConfigurationException {
String spec = System.getProperty(CONFIG_URL_PROPERTY_NAME);
if (spec == null) {
spec = DEFAULT_CONFIG_URL;
}
URL configUrl = null;
try {
configUrl = new U... | public class class_name {
private static URL getConfigUrl() throws ConfigurationException {
String spec = System.getProperty(CONFIG_URL_PROPERTY_NAME);
if (spec == null) {
spec = DEFAULT_CONFIG_URL;
}
URL configUrl = null;
try {
configUrl = new U... |
public class class_name {
public AwsEc2InstanceDetails withIpV6Addresses(String... ipV6Addresses) {
if (this.ipV6Addresses == null) {
setIpV6Addresses(new java.util.ArrayList<String>(ipV6Addresses.length));
}
for (String ele : ipV6Addresses) {
this.ipV6Addresses.add(ele)... | public class class_name {
public AwsEc2InstanceDetails withIpV6Addresses(String... ipV6Addresses) {
if (this.ipV6Addresses == null) {
setIpV6Addresses(new java.util.ArrayList<String>(ipV6Addresses.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : ip... |
public class class_name {
private String escapeSql(final Object obj) {
if (obj == null) {
return "";
} else {
String val = obj.toString();
return val.replace("'", "''");
}
} } | public class class_name {
private String escapeSql(final Object obj) {
if (obj == null) {
return ""; // depends on control dependency: [if], data = [none]
} else {
String val = obj.toString();
return val.replace("'", "''"); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void addMasterListeners()
{
super.addMasterListeners();
this.getField(UserInfo.USER_NAME).addListener(new CheckNonNumericListener(null));
this.addListener(new ReadOnlyRecordHandler(this.getField(UserInfo.READ_ONLY_RECORD), true));
this.addListener(ne... | public class class_name {
public void addMasterListeners()
{
super.addMasterListeners();
this.getField(UserInfo.USER_NAME).addListener(new CheckNonNumericListener(null));
this.addListener(new ReadOnlyRecordHandler(this.getField(UserInfo.READ_ONLY_RECORD), true));
this.addListener(ne... |
public class class_name {
public XYDataItem getDataItem(int index) {
// int id = start + index * stepsize;
// if (id >= variable.getVariable().getMatrixCount()) {
// return new XYDataItem(id, 0.0);
// }
//
// Matrix matrix = variable.getVariable().getMatrix(id);
// double value = 0.0;
// try {
... | public class class_name {
public XYDataItem getDataItem(int index) {
// int id = start + index * stepsize;
// if (id >= variable.getVariable().getMatrixCount()) {
// return new XYDataItem(id, 0.0);
// }
//
// Matrix matrix = variable.getVariable().getMatrix(id);
// double value = 0.0;
// try {
... |
public class class_name {
public void marshall(ResourceTargetDefinition resourceTargetDefinition, ProtocolMarshaller protocolMarshaller) {
if (resourceTargetDefinition == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(ResourceTargetDefinition resourceTargetDefinition, ProtocolMarshaller protocolMarshaller) {
if (resourceTargetDefinition == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
public String[] getArray(final String key) {
final String value = getProperty(key);
if (value != null) {
final String[] strings = value.split(",[\\s]*|[\\s]*$");
return strings;
}
return null;
} } | public class class_name {
public String[] getArray(final String key) {
final String value = getProperty(key);
if (value != null) {
final String[] strings = value.split(",[\\s]*|[\\s]*$");
return strings; // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
static ResourceBundle getMessageBundle(Language lang) {
try {
ResourceBundle bundle = ResourceBundle.getBundle(MESSAGE_BUNDLE, lang.getLocaleWithCountryAndVariant());
if (!isValidBundleFor(lang, bundle)) {
bundle = ResourceBundle.getBundle(MESSAGE_BUNDLE, lang.getLocal... | public class class_name {
static ResourceBundle getMessageBundle(Language lang) {
try {
ResourceBundle bundle = ResourceBundle.getBundle(MESSAGE_BUNDLE, lang.getLocaleWithCountryAndVariant());
if (!isValidBundleFor(lang, bundle)) {
bundle = ResourceBundle.getBundle(MESSAGE_BUNDLE, lang.getLocal... |
public class class_name {
private void mkRefreshConfThread(final NimbusData nimbusData) {
nimbusData.getScheduExec().scheduleAtFixedRate(new RunnableCallback() {
@Override
public void run() {
LOG.debug("checking changes in storm.yaml...");
Map newConf = ... | public class class_name {
private void mkRefreshConfThread(final NimbusData nimbusData) {
nimbusData.getScheduExec().scheduleAtFixedRate(new RunnableCallback() {
@Override
public void run() {
LOG.debug("checking changes in storm.yaml...");
Map newConf = ... |
public class class_name {
public void addTransportListener(JingleTransportListener li) {
for (ContentNegotiator contentNegotiator : contentNegotiators) {
if (contentNegotiator.getTransportNegotiator() != null) {
contentNegotiator.getTransportNegotiator().addListener(li);
... | public class class_name {
public void addTransportListener(JingleTransportListener li) {
for (ContentNegotiator contentNegotiator : contentNegotiators) {
if (contentNegotiator.getTransportNegotiator() != null) {
contentNegotiator.getTransportNegotiator().addListener(li); // depends ... |
public class class_name {
public static String getUriWithOutputDir(DocumentURI key, String outputDir){
String uri = key.getUri();
if (outputDir != null && !outputDir.isEmpty()) {
uri = outputDir.endsWith("/") || uri.startsWith("/") ?
outputDir + uri : outputDir + '/' + ur... | public class class_name {
public static String getUriWithOutputDir(DocumentURI key, String outputDir){
String uri = key.getUri();
if (outputDir != null && !outputDir.isEmpty()) {
uri = outputDir.endsWith("/") || uri.startsWith("/") ?
outputDir + uri : outputDir + '/' + ur... |
public class class_name {
public String toXML()
{
RepositoryTags tags = RepositoryTags.getInstance();
String eol = System.getProperty( "line.separator" );
// opening tag
StringBuffer result = new StringBuffer( 1024 );
result.append( " " );
result.append... | public class class_name {
public String toXML()
{
RepositoryTags tags = RepositoryTags.getInstance();
String eol = System.getProperty( "line.separator" );
// opening tag
StringBuffer result = new StringBuffer( 1024 );
result.append( " " );
result.append... |
public class class_name {
@SuppressWarnings( "fallthrough" )
private void versionNodeAt( AbstractJcrNode node,
Name nodeName,
MutableCachedNode parentInVersionHistory,
boolean forceCopy,
... | public class class_name {
@SuppressWarnings( "fallthrough" )
private void versionNodeAt( AbstractJcrNode node,
Name nodeName,
MutableCachedNode parentInVersionHistory,
boolean forceCopy,
... |
public class class_name {
public DescribeEnvironmentManagedActionHistoryResult withManagedActionHistoryItems(ManagedActionHistoryItem... managedActionHistoryItems) {
if (this.managedActionHistoryItems == null) {
setManagedActionHistoryItems(new com.amazonaws.internal.SdkInternalList<ManagedActionHi... | public class class_name {
public DescribeEnvironmentManagedActionHistoryResult withManagedActionHistoryItems(ManagedActionHistoryItem... managedActionHistoryItems) {
if (this.managedActionHistoryItems == null) {
setManagedActionHistoryItems(new com.amazonaws.internal.SdkInternalList<ManagedActionHi... |
public class class_name {
public static String concatEntityHref(
String baseUri, String qualifiedEntityName, Object entityIdValue) {
if (null == qualifiedEntityName) {
qualifiedEntityName = "";
}
return String.format(
"%s/%s/%s",
baseUri,
encodePathSegment(qualifiedEnti... | public class class_name {
public static String concatEntityHref(
String baseUri, String qualifiedEntityName, Object entityIdValue) {
if (null == qualifiedEntityName) {
qualifiedEntityName = ""; // depends on control dependency: [if], data = [none]
}
return String.format(
"%s/%s/%s",
... |
public class class_name {
public static void main(String[] args) throws Exception {
parseArgs(args);
GenMunger rawMunger;
rawMunger = (hex.genmodel.GenMunger) Class.forName(assemblyClassName).newInstance();
BufferedReader input = new BufferedReader(new FileReader(inputCSVFileName));
BufferedWrite... | public class class_name {
public static void main(String[] args) throws Exception {
parseArgs(args);
GenMunger rawMunger;
rawMunger = (hex.genmodel.GenMunger) Class.forName(assemblyClassName).newInstance();
BufferedReader input = new BufferedReader(new FileReader(inputCSVFileName));
BufferedWrite... |
public class class_name {
private SchemaManager getSchemaManagerForPu(final String persistenceUnit)
{
SchemaManager schemaManager = null;
Map<String, Object> externalProperties = KunderaCoreUtils.getExternalProperties(persistenceUnit,
externalPropertyMap, persistenceUnits);
... | public class class_name {
private SchemaManager getSchemaManagerForPu(final String persistenceUnit)
{
SchemaManager schemaManager = null;
Map<String, Object> externalProperties = KunderaCoreUtils.getExternalProperties(persistenceUnit,
externalPropertyMap, persistenceUnits);
... |
public class class_name {
public void marshall(PutLifecycleEventHookExecutionStatusRequest putLifecycleEventHookExecutionStatusRequest, ProtocolMarshaller protocolMarshaller) {
if (putLifecycleEventHookExecutionStatusRequest == null) {
throw new SdkClientException("Invalid argument passed to marsh... | public class class_name {
public void marshall(PutLifecycleEventHookExecutionStatusRequest putLifecycleEventHookExecutionStatusRequest, ProtocolMarshaller protocolMarshaller) {
if (putLifecycleEventHookExecutionStatusRequest == null) {
throw new SdkClientException("Invalid argument passed to marsh... |
public class class_name {
public void close() {
boolean performClose = false;
;
synchronized (this) {
if (!closing && state == CHANNEL_OPEN) {
performClose = closing = true;
}
}
if (performClose) {
synchronized (listeners) {
for (Enumeration<ChannelEventListener> e = listeners.elements()... | public class class_name {
public void close() {
boolean performClose = false;
;
synchronized (this) {
if (!closing && state == CHANNEL_OPEN) {
performClose = closing = true; // depends on control dependency: [if], data = [none]
}
}
if (performClose) {
synchronized (listeners) { // depends on... |
public class class_name {
public JSONWriter with(TreeCodec tc) {
if (_treeCodec == tc) {
return this;
}
return _with(_features, _writerLocator, tc);
} } | public class class_name {
public JSONWriter with(TreeCodec tc) {
if (_treeCodec == tc) {
return this; // depends on control dependency: [if], data = [none]
}
return _with(_features, _writerLocator, tc);
} } |
public class class_name {
public void marshall(ProvisioningParameter provisioningParameter, ProtocolMarshaller protocolMarshaller) {
if (provisioningParameter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(ProvisioningParameter provisioningParameter, ProtocolMarshaller protocolMarshaller) {
if (provisioningParameter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
public CmsAppCategoryNode buildHierarchy() {
// STEP 0: Initialize everything and sort categories by priority
Collections.sort(m_appCategoryList, new Comparator<I_CmsAppCategory>() {
public int compare(I_CmsAppCategory cat1, I_CmsAppCategory cat2) {
... | public class class_name {
public CmsAppCategoryNode buildHierarchy() {
// STEP 0: Initialize everything and sort categories by priority
Collections.sort(m_appCategoryList, new Comparator<I_CmsAppCategory>() {
public int compare(I_CmsAppCategory cat1, I_CmsAppCategory cat2) {
... |
public class class_name {
void unregister(ResourceMonitorImpl monitorImpl)
{
Set<Entry<WatchKey, ResourceMonitorImpl>> entrySet = keys.entrySet();
Iterator<Entry<WatchKey, ResourceMonitorImpl>> iterator = entrySet.iterator();
while (iterator.hasNext())
{
Entry<WatchKey, ResourceMoni... | public class class_name {
void unregister(ResourceMonitorImpl monitorImpl)
{
Set<Entry<WatchKey, ResourceMonitorImpl>> entrySet = keys.entrySet();
Iterator<Entry<WatchKey, ResourceMonitorImpl>> iterator = entrySet.iterator();
while (iterator.hasNext())
{
Entry<WatchKey, ResourceMoni... |
public class class_name {
@Override
public void updateWayNameVisibility(boolean isVisible) {
wayNameView.updateVisibility(isVisible);
if (navigationMap != null) {
navigationMap.updateWaynameQueryMap(isVisible);
}
} } | public class class_name {
@Override
public void updateWayNameVisibility(boolean isVisible) {
wayNameView.updateVisibility(isVisible);
if (navigationMap != null) {
navigationMap.updateWaynameQueryMap(isVisible); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public I_CmsResourceType getDefaultTypeForName(String resourcename) throws CmsException {
String typeName = null;
String suffix = null;
if (CmsStringUtil.isNotEmpty(resourcename)) {
int pos = resourcename.lastIndexOf('.');
if (pos >= 0) {
... | public class class_name {
public I_CmsResourceType getDefaultTypeForName(String resourcename) throws CmsException {
String typeName = null;
String suffix = null;
if (CmsStringUtil.isNotEmpty(resourcename)) {
int pos = resourcename.lastIndexOf('.');
if (pos >= 0) {
... |
public class class_name {
@Override
public void sawOpcode(int seen) {
try {
stack.precomputation(this);
if (seen == Const.INVOKEINTERFACE) {
KeyType type = isKeyAccessMethod(seen);
if (type != null) {
int numParms = SignatureUtils... | public class class_name {
@Override
public void sawOpcode(int seen) {
try {
stack.precomputation(this); // depends on control dependency: [try], data = [none]
if (seen == Const.INVOKEINTERFACE) {
KeyType type = isKeyAccessMethod(seen);
if (type != nu... |
public class class_name {
private JXTable getUrlsTable() {
if (urlsTable == null) {
// Create the table with a default, empty TableModel and the proper settings
urlsTable = new ZapTable(EMPTY_URLS_TABLE_MODEL);
urlsTable.setColumnSelectionAllowed(false);
urlsTable.setCellSelectionEnabled(false);
... | public class class_name {
private JXTable getUrlsTable() {
if (urlsTable == null) {
// Create the table with a default, empty TableModel and the proper settings
urlsTable = new ZapTable(EMPTY_URLS_TABLE_MODEL);
// depends on control dependency: [if], data = [none]
urlsTable.setColumnSelectionAllowed(fal... |
public class class_name {
public final srecParser.expression_return expression() throws RecognitionException {
srecParser.expression_return retval = new srecParser.expression_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
srecParser.method_call_or_varref_return method... | public class class_name {
public final srecParser.expression_return expression() throws RecognitionException {
srecParser.expression_return retval = new srecParser.expression_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
srecParser.method_call_or_varref_return method... |
public class class_name {
@Override public Number parse(String str, ParsePosition parsePosition)
{
Number result = null;
if (str == null)
{
parsePosition.setIndex(-1);
}
else
{
str = str.trim();
if (str.length() == 0)
{
parsePosit... | public class class_name {
@Override public Number parse(String str, ParsePosition parsePosition)
{
Number result = null;
if (str == null)
{
parsePosition.setIndex(-1); // depends on control dependency: [if], data = [none]
}
else
{
str = str.trim(); // depends o... |
public class class_name {
@Override
public InetSocketAddress ipRemote()
{
SocketChannel s = _channel;
if (s != null) {
try {
return (InetSocketAddress) s.getRemoteAddress();
} catch (IOException e) {
return null;
//throw new RuntimeException(e);
}
}
el... | public class class_name {
@Override
public InetSocketAddress ipRemote()
{
SocketChannel s = _channel;
if (s != null) {
try {
return (InetSocketAddress) s.getRemoteAddress(); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
return null;
... |
public class class_name {
public static BigRational valueOf(BigDecimal value) {
if (value.compareTo(BigDecimal.ZERO) == 0) {
return ZERO;
}
if (value.compareTo(BigDecimal.ONE) == 0) {
return ONE;
}
int scale = value.scale();
if (scale == 0) {
return new BigRational(value, BigDecimal.O... | public class class_name {
public static BigRational valueOf(BigDecimal value) {
if (value.compareTo(BigDecimal.ZERO) == 0) {
return ZERO;
// depends on control dependency: [if], data = [none]
}
if (value.compareTo(BigDecimal.ONE) == 0) {
return ONE;
// depends on control dependency: [if], data = [non... |
public class class_name {
public void marshall(RenewCertificateRequest renewCertificateRequest, ProtocolMarshaller protocolMarshaller) {
if (renewCertificateRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(RenewCertificateRequest renewCertificateRequest, ProtocolMarshaller protocolMarshaller) {
if (renewCertificateRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
private void sendSensorEvent(GVRPicker.GVRPickedObject collision, boolean over)
{
SensorEvent event = SensorEvent.obtain();
final IEventReceiver ownerCopy = getOwnerObject();
GVRCursorController controller;
if (collision.picker == null)
{
... | public class class_name {
private void sendSensorEvent(GVRPicker.GVRPickedObject collision, boolean over)
{
SensorEvent event = SensorEvent.obtain();
final IEventReceiver ownerCopy = getOwnerObject();
GVRCursorController controller;
if (collision.picker == null)
{
... |
public class class_name {
public Toolbox feature(Object... values) {
if (values == null && values.length == 0) {
return this;
}
if (this.feature == null) {
this.feature = new LinkedHashMap<String, Feature>();
}
for (Object t : values) {
if (t ... | public class class_name {
public Toolbox feature(Object... values) {
if (values == null && values.length == 0) {
return this; // depends on control dependency: [if], data = [none]
}
if (this.feature == null) {
this.feature = new LinkedHashMap<String, Feature>(); // depen... |
public class class_name {
protected final String getForFolSave(final Class<?> pClass) {
if (PurchaseInvoiceServiceLine.class == pClass) {
return PrcPurchaseInvoiceServiceLineSave.class.getSimpleName();
} else if (BankStatementLine.class == pClass) {
return PrcBankStatementLineSave.class.getSimpleNa... | public class class_name {
protected final String getForFolSave(final Class<?> pClass) {
if (PurchaseInvoiceServiceLine.class == pClass) {
return PrcPurchaseInvoiceServiceLineSave.class.getSimpleName(); // depends on control dependency: [if], data = [none]
} else if (BankStatementLine.class == pClass) {
... |
public class class_name {
@Override
public double dot(Vec v)
{
if(v instanceof ShiftedVec)
{
ShiftedVec other = (ShiftedVec) v;
return this.base.dot(other.base) + other.base.sum()*this.shift + this.base.sum()*other.shift + this.length()*this.shift*other.shift;
}... | public class class_name {
@Override
public double dot(Vec v)
{
if(v instanceof ShiftedVec)
{
ShiftedVec other = (ShiftedVec) v;
return this.base.dot(other.base) + other.base.sum()*this.shift + this.base.sum()*other.shift + this.length()*this.shift*other.shift; // depend... |
public class class_name {
public static String format(String[] d, String sep) {
if(d == null) {
return "null";
}
if(d.length == 0) {
return "";
}
if(d.length == 1) {
return d[0];
}
int len = sep.length() * (d.length - 1);
for(String s : d) {
len += s.length();
... | public class class_name {
public static String format(String[] d, String sep) {
if(d == null) {
return "null"; // depends on control dependency: [if], data = [none]
}
if(d.length == 0) {
return ""; // depends on control dependency: [if], data = [none]
}
if(d.length == 1) {
return ... |
public class class_name {
private synchronized byte[] getPseudoIEEE802MACAddress(long uniqueTimeStamp) {
byte[] ieee802Addr = new byte[6];
byte[] currentTime = String.valueOf(uniqueTimeStamp).getBytes();
byte[] localHostAddress = null;
try {
localHostAddress = InetAddress.... | public class class_name {
private synchronized byte[] getPseudoIEEE802MACAddress(long uniqueTimeStamp) {
byte[] ieee802Addr = new byte[6];
byte[] currentTime = String.valueOf(uniqueTimeStamp).getBytes();
byte[] localHostAddress = null;
try {
localHostAddress = InetAddress.... |
public class class_name {
public List<TagCount> getTagsOnSpace(int spaceId, int limit, String text) {
MultivaluedMap<String, String> params=new MultivaluedMapImpl();
params.add("limit", new Integer(limit).toString());
if ((text != null) && (!text.isEmpty())) {
params.add("text", text);
}
return getTagsOnS... | public class class_name {
public List<TagCount> getTagsOnSpace(int spaceId, int limit, String text) {
MultivaluedMap<String, String> params=new MultivaluedMapImpl();
params.add("limit", new Integer(limit).toString());
if ((text != null) && (!text.isEmpty())) {
params.add("text", text); // depends on control d... |
public class class_name {
public static IDifference difference(IChemObject first, IChemObject second) {
if (!(first instanceof IIsotope && second instanceof IIsotope)) {
return null;
}
IIsotope firstElem = (IIsotope) first;
IIsotope secondElem = (IIsotope) second;
Ch... | public class class_name {
public static IDifference difference(IChemObject first, IChemObject second) {
if (!(first instanceof IIsotope && second instanceof IIsotope)) {
return null; // depends on control dependency: [if], data = [none]
}
IIsotope firstElem = (IIsotope) first;
... |
public class class_name {
private boolean edgeCaseQueryNoFixNeeded(Set<String> mvDDLGroupbyColumnNames,
Map<String, ExpressionType> mvColumnAggType,
List<ParsedColInfo> displayColumns,
List<ParsedColInfo> groupByColumns) {
// Condition (1): Group by columns must be part of ... | public class class_name {
private boolean edgeCaseQueryNoFixNeeded(Set<String> mvDDLGroupbyColumnNames,
Map<String, ExpressionType> mvColumnAggType,
List<ParsedColInfo> displayColumns,
List<ParsedColInfo> groupByColumns) {
// Condition (1): Group by columns must be part of ... |
public class class_name {
public Date getObjectLockRetainUntilDate() {
String dateStr = (String) metadata.get(Headers.OBJECT_LOCK_RETAIN_UNTIL_DATE);
if (dateStr != null) {
return DateUtils.parseISO8601Date(dateStr);
}
return null;
} } | public class class_name {
public Date getObjectLockRetainUntilDate() {
String dateStr = (String) metadata.get(Headers.OBJECT_LOCK_RETAIN_UNTIL_DATE);
if (dateStr != null) {
return DateUtils.parseISO8601Date(dateStr); // depends on control dependency: [if], data = [(dateStr]
}
... |
public class class_name {
public List<D6TableMetaInfo> getTablesInfo(DBConnInfo dbConnInfo) {
final List<D6TableMetaInfo> retTablesInfo = new ArrayList<D6TableMetaInfo>();
final Connection conn = new DBConnCreator(dbConnInfo).createDBConnection();
final List<String> tableList = new ArrayList<String>();
Res... | public class class_name {
public List<D6TableMetaInfo> getTablesInfo(DBConnInfo dbConnInfo) {
final List<D6TableMetaInfo> retTablesInfo = new ArrayList<D6TableMetaInfo>();
final Connection conn = new DBConnCreator(dbConnInfo).createDBConnection();
final List<String> tableList = new ArrayList<String>();
Res... |
public class class_name {
public synchronized Boolean start() {
if (started) {
return true;
}
createSerialPort();
serialPort.addEventListener(this);
if (!serialPort.connect()) {
log.error("Failed to start Firmata Library. Cannot connect to Serial Port.... | public class class_name {
public synchronized Boolean start() {
if (started) {
return true; // depends on control dependency: [if], data = [none]
}
createSerialPort();
serialPort.addEventListener(this);
if (!serialPort.connect()) {
log.error("Failed to... |
public class class_name {
public EClass getIfcFlowTreatmentDeviceType() {
if (ifcFlowTreatmentDeviceTypeEClass == null) {
ifcFlowTreatmentDeviceTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(255);
}
return ifcFlowTreatmentDeviceTypeEClas... | public class class_name {
public EClass getIfcFlowTreatmentDeviceType() {
if (ifcFlowTreatmentDeviceTypeEClass == null) {
ifcFlowTreatmentDeviceTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(255);
// depends on control dependency: [if], data ... |
public class class_name {
private void configureClearText(final SocketChannel ch) {
final ChannelPipeline p = ch.pipeline();
final HttpServerCodec sourceCodec = new HttpServerCodec();
final HttpServerUpgradeHandler upgradeHandler = new HttpServerUpgradeHandler(sourceCodec,
new Upgra... | public class class_name {
private void configureClearText(final SocketChannel ch) {
final ChannelPipeline p = ch.pipeline();
final HttpServerCodec sourceCodec = new HttpServerCodec();
final HttpServerUpgradeHandler upgradeHandler = new HttpServerUpgradeHandler(sourceCodec,
new Upgra... |
public class class_name {
private void register(PathMapping pathMapping) throws IOException {
GeneratorRegistry generatorRegistry = bundlesHandler.getConfig().getGeneratorRegistry();
List<PathMapping> mappings = new ArrayList<>();
if (generatorRegistry.isPathGenerated(pathMapping.getPath())) {
List<PathMappi... | public class class_name {
private void register(PathMapping pathMapping) throws IOException {
GeneratorRegistry generatorRegistry = bundlesHandler.getConfig().getGeneratorRegistry();
List<PathMapping> mappings = new ArrayList<>();
if (generatorRegistry.isPathGenerated(pathMapping.getPath())) {
List<PathMappi... |
public class class_name {
@Override
public void handleAsyncException(String message, Throwable exception) {
if (isRunning) {
// only fail if the task is still running
getEnvironment().failExternally(exception);
}
} } | public class class_name {
@Override
public void handleAsyncException(String message, Throwable exception) {
if (isRunning) {
// only fail if the task is still running
getEnvironment().failExternally(exception); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void slmexpire(final String keyspace, final String uid, final long expireMillis, final String serviceCode,
final String... keys) {
final byte[][] bkeys = new byte[keys.length][];
for (int i = 0; i < keys.length; i++) {
bkeys[i] = Sa... | public class class_name {
public void slmexpire(final String keyspace, final String uid, final long expireMillis, final String serviceCode,
final String... keys) {
final byte[][] bkeys = new byte[keys.length][];
for (int i = 0; i < keys.length; i++) {
bkeys[i] = Sa... |
public class class_name {
public static Annotation[] union(Annotation[] a, Annotation[] b) {
// fast path
if (a.length==0) return b;
if (b.length==0) return a;
// slow path
List<Annotation> combined = new ArrayList<Annotation>(a.length+b.length);
combined.addAll(A... | public class class_name {
public static Annotation[] union(Annotation[] a, Annotation[] b) {
// fast path
if (a.length==0) return b;
if (b.length==0) return a;
// slow path
List<Annotation> combined = new ArrayList<Annotation>(a.length+b.length);
combined.addAll(A... |
public class class_name {
@Override
public void copyFrom(final CopyFrom obj) {
final FeedInformationImpl info = (FeedInformationImpl) obj;
setAuthor(info.getAuthor());
setBlock(info.getBlock());
getCategories().clear();
if (info.getCategories() != null) {
getCat... | public class class_name {
@Override
public void copyFrom(final CopyFrom obj) {
final FeedInformationImpl info = (FeedInformationImpl) obj;
setAuthor(info.getAuthor());
setBlock(info.getBlock());
getCategories().clear();
if (info.getCategories() != null) {
getCat... |
public class class_name {
public static <E> NavigableSet<E> unmodifiableNavigableSet(NavigableSet<E> set) {
if (set instanceof ImmutableCollection || set instanceof UnmodifiableNavigableSet) {
return set;
}
return new UnmodifiableNavigableSet<E>(set);
} } | public class class_name {
public static <E> NavigableSet<E> unmodifiableNavigableSet(NavigableSet<E> set) {
if (set instanceof ImmutableCollection || set instanceof UnmodifiableNavigableSet) {
return set; // depends on control dependency: [if], data = [none]
}
return new UnmodifiableNavigableSet<E>(s... |
public class class_name {
protected static void checkCreateSession ()
{
if (_defaultSession == null) { // no need to sync
Properties props = System.getProperties();
if (props.getProperty("mail.smtp.host") == null) {
props.put("mail.smtp.host", "localhost");
... | public class class_name {
protected static void checkCreateSession ()
{
if (_defaultSession == null) { // no need to sync
Properties props = System.getProperties();
if (props.getProperty("mail.smtp.host") == null) {
props.put("mail.smtp.host", "localhost"); // depend... |
public class class_name {
@Override
public IMonomer getMonomer(String monName, String strandName) {
Strand strand = (Strand) strands.get(strandName);
if (strand != null) {
return (Monomer) strand.getMonomer(monName);
} else {
return null;
}
} } | public class class_name {
@Override
public IMonomer getMonomer(String monName, String strandName) {
Strand strand = (Strand) strands.get(strandName);
if (strand != null) {
return (Monomer) strand.getMonomer(monName); // depends on control dependency: [if], data = [none]
} else ... |
public class class_name {
public String toHtml(Archipelago arch) {
int mat[] = new int[rowNum()];
for (Island isl : arch.getIslands()) {
for (Coordinate c : isl) {
mat[c.row] = c.column;
}
}
StringBuilder result = new StringBuilder("<table>\n<tr><... | public class class_name {
public String toHtml(Archipelago arch) {
int mat[] = new int[rowNum()];
for (Island isl : arch.getIslands()) {
for (Coordinate c : isl) {
mat[c.row] = c.column; // depends on control dependency: [for], data = [c]
}
}
Stri... |
public class class_name {
private PluralRule instantiateCustomPluralRuleClass(Class<? extends PluralRule> clazz) {
PluralRule retVal;
try {
String pluralClassName = clazz.getName() + "_" + this.getLocale().getLanguage();
try {
Class<?> pClass = Class.forName... | public class class_name {
private PluralRule instantiateCustomPluralRuleClass(Class<? extends PluralRule> clazz) {
PluralRule retVal;
try {
String pluralClassName = clazz.getName() + "_" + this.getLocale().getLanguage();
try {
Class<?> pClass = Class.forName... |
public class class_name {
public static byte[] defaultMachineId() {
byte[] bestMacAddr = bestAvailableMac();
if (bestMacAddr == null) {
bestMacAddr = new byte[EUI64_MAC_ADDRESS_LENGTH];
PlatformDependent.threadLocalRandom().nextBytes(bestMacAddr);
logger.warn(
... | public class class_name {
public static byte[] defaultMachineId() {
byte[] bestMacAddr = bestAvailableMac();
if (bestMacAddr == null) {
bestMacAddr = new byte[EUI64_MAC_ADDRESS_LENGTH]; // depends on control dependency: [if], data = [none]
PlatformDependent.threadLocalRandom().n... |
public class class_name {
private void findSpecNameForGV(String jobnameLL) {
int maxVersion = 0;
StringBuilder key = new StringBuilder();
// alle param-segmente durchlaufen
Map<String, String> bpd = passport.getBPD();
for (String path : bpd.keySet()) {
key.setLength... | public class class_name {
private void findSpecNameForGV(String jobnameLL) {
int maxVersion = 0;
StringBuilder key = new StringBuilder();
// alle param-segmente durchlaufen
Map<String, String> bpd = passport.getBPD();
for (String path : bpd.keySet()) {
key.setLength... |
public class class_name {
public void truncateAfter(long newTruncationPoint) {
if (size() == 0) {
m_map.add(range(newTruncationPoint, newTruncationPoint));
m_hasSentinel = true;
return;
}
if (newTruncationPoint > getLastSeqNo()) {
return;
... | public class class_name {
public void truncateAfter(long newTruncationPoint) {
if (size() == 0) {
m_map.add(range(newTruncationPoint, newTruncationPoint)); // depends on control dependency: [if], data = [none]
m_hasSentinel = true; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private static <T> Supplier<T> memoize(Supplier<T> original) {
return new Supplier<T>() {
Supplier<T> mDelegate = this::firstTime;
boolean mInitialized;
public T get() {
return mDelegate.get();
}
private synchronized T firstTime() {
if (!mIni... | public class class_name {
private static <T> Supplier<T> memoize(Supplier<T> original) {
return new Supplier<T>() {
Supplier<T> mDelegate = this::firstTime;
boolean mInitialized;
public T get() {
return mDelegate.get();
}
private synchronized T firstTime() {
if (!mIni... |
public class class_name {
private int generateTiles(TileMatrixDao tileMatrixDao, TileDao tileDao,
Contents contents, int zoomLevel, TileGrid tileGrid,
TileGrid localTileGrid, long matrixWidth, long matrixHeight,
boolean update) throws SQLException, IOException {
int count = 0;
Integer tileWidth = null;
... | public class class_name {
private int generateTiles(TileMatrixDao tileMatrixDao, TileDao tileDao,
Contents contents, int zoomLevel, TileGrid tileGrid,
TileGrid localTileGrid, long matrixWidth, long matrixHeight,
boolean update) throws SQLException, IOException {
int count = 0;
Integer tileWidth = null;
... |
public class class_name {
private String getNodeId(PatriciaTrie.PatriciaNode<V> node) {
if (node == null) {
return "null";
} else {
return node.getKey();
}
} } | public class class_name {
private String getNodeId(PatriciaTrie.PatriciaNode<V> node) {
if (node == null) {
return "null"; // depends on control dependency: [if], data = [none]
} else {
return node.getKey(); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static void queueException(final String level, final String message, final Throwable e) {
try {
LogAppender<LogEvent> appender = LogManager.getAppender();
if (appender != null) {
appender.append(LogEvent.newBuilder().level(level).message(message).exception(e).build());
... | public class class_name {
public static void queueException(final String level, final String message, final Throwable e) {
try {
LogAppender<LogEvent> appender = LogManager.getAppender();
if (appender != null) {
appender.append(LogEvent.newBuilder().level(level).message(message).exception(e).build()); // ... |
public class class_name {
public final void reload(final CClassLoaderConfig config) {
if (this == CClassLoader.getRootLoader()) {
return;
}
if (config == null) {
return;
}
final CClassLoader parent = ((CClassLoader) this.getParent());
parent.removeLoader(this.name);
if (this.isMandatory()) {
... | public class class_name {
public final void reload(final CClassLoaderConfig config) {
if (this == CClassLoader.getRootLoader()) {
return; // depends on control dependency: [if], data = [none]
}
if (config == null) {
return; // depends on control dependency: [if], data = [none]
}
final CClassLoader pa... |
public class class_name {
@Pure
public static int getPreferredLaneCount() {
final Preferences prefs = Preferences.userNodeForPackage(RoadNetworkConstants.class);
if (prefs != null) {
return prefs.getInt("LANE_COUNT", DEFAULT_LANE_COUNT); //$NON-NLS-1$
}
return DEFAULT_LANE_COUNT;
} } | public class class_name {
@Pure
public static int getPreferredLaneCount() {
final Preferences prefs = Preferences.userNodeForPackage(RoadNetworkConstants.class);
if (prefs != null) {
return prefs.getInt("LANE_COUNT", DEFAULT_LANE_COUNT); //$NON-NLS-1$ // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void error(long requestId, String message, Object... args) {
if (requestId != RequestTag.NON_EXISTENT_ID) {
log.error(String.format("[requestId=%d] %s", requestId, message), args);
} else {
log.error(message, args);
}
} } | public class class_name {
public void error(long requestId, String message, Object... args) {
if (requestId != RequestTag.NON_EXISTENT_ID) {
log.error(String.format("[requestId=%d] %s", requestId, message), args); // depends on control dependency: [if], data = [none]
} else {
lo... |
public class class_name {
public static Integer tryGetGlobalIntegerProperty(String key, Integer defaultValue) {
try {
String value = System.getenv(formatEnvironmentVariable(key));
if (value == null) {
return tryGetIntegerProperty(key, defaultValue);
} else {
... | public class class_name {
public static Integer tryGetGlobalIntegerProperty(String key, Integer defaultValue) {
try {
String value = System.getenv(formatEnvironmentVariable(key));
if (value == null) {
return tryGetIntegerProperty(key, defaultValue); // depends on control... |
public class class_name {
public void setElements(List<AstNode> elements) {
if (elements == null) {
this.elements = null;
} else {
if (this.elements != null)
this.elements.clear();
for (AstNode e : elements)
addElement(e);
}
... | public class class_name {
public void setElements(List<AstNode> elements) {
if (elements == null) {
this.elements = null; // depends on control dependency: [if], data = [none]
} else {
if (this.elements != null)
this.elements.clear();
for (AstNode e :... |
public class class_name {
public void setResultList(java.util.Collection<BatchDetectDominantLanguageItemResult> resultList) {
if (resultList == null) {
this.resultList = null;
return;
}
this.resultList = new java.util.ArrayList<BatchDetectDominantLanguageItemResult>(res... | public class class_name {
public void setResultList(java.util.Collection<BatchDetectDominantLanguageItemResult> resultList) {
if (resultList == null) {
this.resultList = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [n... |
public class class_name {
public static CPDefinitionOptionValueRel toModel(
CPDefinitionOptionValueRelSoap soapModel) {
if (soapModel == null) {
return null;
}
CPDefinitionOptionValueRel model = new CPDefinitionOptionValueRelImpl();
model.setUuid(soapModel.getUuid());
model.setCPDefinitionOptionValueR... | public class class_name {
public static CPDefinitionOptionValueRel toModel(
CPDefinitionOptionValueRelSoap soapModel) {
if (soapModel == null) {
return null; // depends on control dependency: [if], data = [none]
}
CPDefinitionOptionValueRel model = new CPDefinitionOptionValueRelImpl();
model.setUuid(soa... |
public class class_name {
public static void extractParameterMap(final HttpServletRequest request, final Map<String, String[]> parameters,
final Map<String, FileItem[]> files) {
if (isMultipart(request)) {
ServletFileUpload upload = new ServletFileUpload();
upload.setFileItemFactory(new DiskFileItemFactory... | public class class_name {
public static void extractParameterMap(final HttpServletRequest request, final Map<String, String[]> parameters,
final Map<String, FileItem[]> files) {
if (isMultipart(request)) {
ServletFileUpload upload = new ServletFileUpload();
upload.setFileItemFactory(new DiskFileItemFactory... |
public class class_name {
public static String prepareCompositeKey(final SingularAttribute attribute, final MetamodelImpl metaModel,
final Object compositeKey)
{
Field[] fields = attribute.getBindableJavaType().getDeclaredFields();
EmbeddableType embeddable = metaModel.embeddable(attrib... | public class class_name {
public static String prepareCompositeKey(final SingularAttribute attribute, final MetamodelImpl metaModel,
final Object compositeKey)
{
Field[] fields = attribute.getBindableJavaType().getDeclaredFields();
EmbeddableType embeddable = metaModel.embeddable(attrib... |
public class class_name {
public static Optional<OffsetRange<CharOffset>> charOffsetsOfWholeString(String s) {
if (s.isEmpty()) {
return Optional.absent();
}
return Optional.of(charOffsetRange(0, s.length() - 1));
} } | public class class_name {
public static Optional<OffsetRange<CharOffset>> charOffsetsOfWholeString(String s) {
if (s.isEmpty()) {
return Optional.absent(); // depends on control dependency: [if], data = [none]
}
return Optional.of(charOffsetRange(0, s.length() - 1));
} } |
public class class_name {
public void setDocumentLocator(Locator locator)
{
try
{
if (null == m_resultContentHandler)
createResultContentHandler(m_result);
}
catch (TransformerException te)
{
throw new org.apache.xml.utils.WrappedRuntimeException(te);
}
m_resultConten... | public class class_name {
public void setDocumentLocator(Locator locator)
{
try
{
if (null == m_resultContentHandler)
createResultContentHandler(m_result);
}
catch (TransformerException te)
{
throw new org.apache.xml.utils.WrappedRuntimeException(te);
} // depends on contr... |
public class class_name {
@Override
public List<R> subList(int fromIndex, int toIndex) {
List<R> r = new ArrayList<>();
Iterator<R> itr = iterator();
hudson.util.Iterators.skip(itr, fromIndex);
for (int i=toIndex-fromIndex; i>0; i--) {
r.add(itr.next());
}
... | public class class_name {
@Override
public List<R> subList(int fromIndex, int toIndex) {
List<R> r = new ArrayList<>();
Iterator<R> itr = iterator();
hudson.util.Iterators.skip(itr, fromIndex);
for (int i=toIndex-fromIndex; i>0; i--) {
r.add(itr.next()); // depends on co... |
public class class_name {
public static String restrictHTML (String src, String[] regexes)
{
if (StringUtil.isBlank(src)) {
return src;
}
ArrayList<String> list = new ArrayList<String>();
list.add(src);
for (String regexe : regexes) {
Pattern p = Pat... | public class class_name {
public static String restrictHTML (String src, String[] regexes)
{
if (StringUtil.isBlank(src)) {
return src; // depends on control dependency: [if], data = [none]
}
ArrayList<String> list = new ArrayList<String>();
list.add(src);
for (... |
public class class_name {
@SneakyThrows
public void init(final ExtractorRuleDefinitionEntity ruleDefinitionEntity) {
for (ExtractorRuleEntity each : ruleDefinitionEntity.getRules()) {
rules.put(each.getId(), (SQLSegmentExtractor) Class.forName(each.getExtractorClass()).newInstance());
}... | public class class_name {
@SneakyThrows
public void init(final ExtractorRuleDefinitionEntity ruleDefinitionEntity) {
for (ExtractorRuleEntity each : ruleDefinitionEntity.getRules()) {
rules.put(each.getId(), (SQLSegmentExtractor) Class.forName(each.getExtractorClass()).newInstance()); // depend... |
public class class_name {
private boolean startLoading(String name) {
Set classesAndResources = (Set) cycleDetector.get();
if (classesAndResources != null && classesAndResources.contains(name))
return false;
if (classesAndResources == null) {
classesAndResources = new HashSet(3);
cycleDetector.set(clas... | public class class_name {
private boolean startLoading(String name) {
Set classesAndResources = (Set) cycleDetector.get();
if (classesAndResources != null && classesAndResources.contains(name))
return false;
if (classesAndResources == null) {
classesAndResources = new HashSet(3); // depends on control dep... |
public class class_name {
public static GssapiAuth getAuthenticationMethod() {
try {
//Waffle-jna has jna as dependency, so if not available on classpath, just use standard authentication
if (Platform.isWindows()) {
try {
Class.forName("waffle.windows.auth.impl.WindowsAuthProviderImpl... | public class class_name {
public static GssapiAuth getAuthenticationMethod() {
try {
//Waffle-jna has jna as dependency, so if not available on classpath, just use standard authentication
if (Platform.isWindows()) {
try {
Class.forName("waffle.windows.auth.impl.WindowsAuthProviderImpl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.