id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
213337_23 | public ObservableList<Study> getSelectedStudiesModel() {
return d_selectedStudiesList;
} |
213337_24 | @Override
public int getColumnCount() {
return super.getColumnCount() + 1;
} |
213337_25 | @Override
public Object getValueAt(int rowIndex, int columnIndex) {
if (columnIndex < 0 || columnIndex >= getColumnCount()) {
throw new IndexOutOfBoundsException("column index (" + columnIndex + ") out of bounds");
}
if (rowIndex < 0 || rowIndex >= getRowCount()) {
throw new IndexOutOfBoundsException("row index ... |
213337_26 | @Override
public String getColumnName(int columnIndex) {
if (columnIndex == 0) {
return "";
}
return super.getColumnName(columnIndex - 1);
} |
213337_27 | @Override
public boolean isCellEditable(int rowIndex, int columnIndex) {
return columnIndex == 0;
} |
213337_28 | public int getColumnCount() {
return d_pm.countVisibleCharacteristics() + 1;
} |
213337_29 | public int getRowCount() {
return d_pm.getIncludedStudies().size();
} |
213337_30 | public Object getValueAt(int rowIndex, int columnIndex) {
if (columnIndex < 0 || columnIndex >= getColumnCount()) {
throw new IndexOutOfBoundsException("column index (" + columnIndex + ") out of bounds");
}
if (rowIndex < 0 || rowIndex >= getRowCount()) {
throw new IndexOutOfBoundsException("row index (" + rowIn... |
213337_31 | public Object getValueAt(int rowIndex, int columnIndex) {
if (columnIndex < 0 || columnIndex >= getColumnCount()) {
throw new IndexOutOfBoundsException("column index (" + columnIndex + ") out of bounds");
}
if (rowIndex < 0 || rowIndex >= getRowCount()) {
throw new IndexOutOfBoundsException("row index (" + rowIn... |
213337_32 | @Override
public String getColumnName(int columnIndex) {
if (columnIndex == 0) {
return "Study ID";
}
return getCharacteristic(columnIndex).getDescription();
} |
213337_33 | @Override
public Class<?> getColumnClass(int columnIndex) {
if (columnIndex == 0) {
return Study.class;
}
return EntityUtil.getConcreteTypeOrEntity(getCharacteristic(columnIndex).getValueType());
} |
213337_34 | public JsonNode getJSON() {
SMAASerializer<Alternative, AnalysisType> serializer = new SMAASerializer<Alternative, AnalysisType>(d_smaaf.createSMAAModel(), d_a, d_smaaf);
return serializer.getRootNode();
} |
213337_35 | @Override
public AbstractValueModel getLabelModel() {
return new LabelModel();
} |
213337_36 | @Override
public AbstractValueModel getLabelModel() {
return new LabelModel();
} |
213337_37 | public String getDescription() {
return getBean().getLabel();
} |
213337_38 | public boolean isStudyFinished() {
Object status = getBean().getCharacteristic(BasicStudyCharacteristic.STATUS);
if (status != null) {
return status.equals(BasicStudyCharacteristic.Status.COMPLETED);
}
return false;
} |
213337_39 | public StudyCharacteristicHolder getCharacteristicModel(Characteristic c) {
StudyCharacteristicHolder holder = d_characteristicModelMap.get(c);
return holder != null ? holder : new StudyCharacteristicHolder(getBean(), c);
} |
213337_40 | public StudyCharacteristicHolder getCharacteristicModel(Characteristic c) {
StudyCharacteristicHolder holder = d_characteristicModelMap.get(c);
return holder != null ? holder : new StudyCharacteristicHolder(getBean(), c);
} |
213337_41 | public StudyCharacteristicHolder getCharacteristicModel(Characteristic c) {
StudyCharacteristicHolder holder = d_characteristicModelMap.get(c);
return holder != null ? holder : new StudyCharacteristicHolder(getBean(), c);
} |
213337_42 | public StudyCharacteristicHolder getCharacteristicModel(Characteristic c) {
StudyCharacteristicHolder holder = d_characteristicModelMap.get(c);
return holder != null ? holder : new StudyCharacteristicHolder(getBean(), c);
} |
213337_43 | public int getArmCount() {
return getBean().getArms().size();
} |
213337_44 | public List<BasicArmPresentation> getArms() {
List<BasicArmPresentation> list = new ArrayList<BasicArmPresentation>();
for (Arm arm : getBean().getArms()) {
list.add((BasicArmPresentation) d_pmf.getModel(arm));
}
return list;
} |
213337_45 | public int getPopulationCharacteristicCount() {
return getPopulationCharacteristics().size();
} |
213337_46 | public List<? extends Variable> getPopulationCharacteristics() {
return getBean().getVariables(PopulationCharacteristic.class);
} |
213337_47 | public List<OutcomeMeasure> getEndpoints() {
List<OutcomeMeasure> endpoints = new ArrayList<OutcomeMeasure>();
endpoints.addAll(Study.extractVariables(getBean().getEndpoints()));
return endpoints;
} |
213337_48 | public void setValue(Object newValue) {
throw new RuntimeException("This CharacteristicHolder is immutable");
} |
213337_49 | public void setValue(Object newValue) {
throw new RuntimeException("This CharacteristicHolder is immutable");
} |
213337_50 | public Characteristic getCharacteristic() {
return d_char;
} |
213337_51 | @Override
public void setValue(Object newValue) {
d_model.setValue(newValue);
} |
213337_52 | @Override
public String getTitle() {
return "Odds-Ratio Table";
} |
213337_53 | public StudyListPresentation getCategorizedStudyList(final Category category) {
return d_studyListPresentations.get(category);
} |
213337_54 | @Override
public Boolean getValue() {
return evaluate(d_summaries);
} |
213337_55 | @Override
public Boolean getValue() {
return evaluate(d_summaries);
} |
213337_56 | @Override
public Boolean getValue() {
return evaluate(d_summaries);
} |
213337_57 | @Override
public Boolean getValue() {
return evaluate(d_summaries);
} |
213337_58 | @Override
public Boolean getValue() {
return evaluate(d_summaries);
} |
213337_59 | @Override
public Boolean getValue() {
return evaluate(d_summaries);
} |
213337_60 | @Override
public String getTitle() {
return "Risk-Ratio Table";
} |
213337_61 | public DosePresentation getDoseModel() {
return new DosePresentationImpl(this);
} |
213337_62 | public DosePresentation getDoseModel() {
return new DosePresentationImpl(this);
} |
213337_63 | public DosePresentation getDoseModel() {
return new DosePresentationImpl(this);
} |
213337_64 | public DosePresentation getDoseModel() {
return new DosePresentationImpl(this);
} |
213337_65 | public DosePresentation getDoseModel() {
return new DosePresentationImpl(this);
} |
213337_66 | public DosePresentation getDoseModel() {
return new DosePresentationImpl(this);
} |
213337_67 | public DosePresentation getDoseModel() {
return new DosePresentationImpl(this);
} |
213337_68 | public Boolean getValue() {
return areNamesUniqueAndValid() && d_listModel.size() >= d_minElms;
} |
213337_69 | public Boolean getValue() {
return areNamesUniqueAndValid() && d_listModel.size() >= d_minElms;
} |
213337_70 | public String getTypeName() {
return GUIHelper.humanize(d_type.getSimpleName());
} |
213337_71 | public boolean hasAddOptionDialog() {
return true;
} |
213337_72 | public String getTitle() {
return d_title;
} |
213337_73 | public ObservableList<T> getOptions() {
return d_options;
} |
213337_74 | public void addSlot() {
StudyOutcomeMeasure<T> som = new StudyOutcomeMeasure<T>(d_type);
WhenTaken measurmentEpoch = d_wtf.buildDefault();
if(measurmentEpoch != null) {
som.getWhenTaken().add(measurmentEpoch);
}
d_slots.add(som);
bindSlot(som);
} |
213337_75 | public StudyOutcomeMeasure<T> getSlot(int idx) {
return d_slots.get(idx);
} |
213337_76 | public void removeSlot(int idx) {
StudyOutcomeMeasure<T> s = d_slots.get(idx);
d_slots.remove(idx);
unbindSlot(s);
} |
213337_77 | public int getColumnCount() {
// One column for each non-baseline alternative and one for the criteria names.
return d_br.getAlternatives().size();
} |
213337_78 | public int getRowCount() {
return d_br.getCriteria().size();
} |
213337_79 | @Override
public String getColumnName(int index) {
if (index == 0) {
return "Criterion";
}
return d_br.getNonBaselineAlternatives().get(index-1).getLabel();
} |
213337_80 | public Object getValueAt(int rowIndex, int columnIndex) {
OutcomeMeasure om = d_br.getCriteria().get(rowIndex);
if (columnIndex == 0) return om.toString();
TreatmentDefinition a = d_br.getNonBaselineAlternatives().get(columnIndex - 1);
return d_br.getRelativeEffectDistribution(om, a);
} |
213337_81 | public Object getValueAt(int rowIndex, int columnIndex) {
OutcomeMeasure om = d_br.getCriteria().get(rowIndex);
if (columnIndex == 0) return om.toString();
TreatmentDefinition a = d_br.getNonBaselineAlternatives().get(columnIndex - 1);
return d_br.getRelativeEffectDistribution(om, a);
} |
213337_82 | public int getColumnCount() {
return d_br.getAlternatives().size() + EXTRA_COLUMNS;
} |
213337_83 | public int getRowCount() {
return d_br.getCriteria().size();
} |
213337_84 | @Override
public String getColumnName(int index) {
switch (index) {
case 0: return "Criteria";
case 1: return "Direction";
case 2: return "Description";
case 3: return "Unit";
default: return d_br.getAlternatives().get(index - EXTRA_COLUMNS).getLabel();
}
} |
213337_85 | public Object getValueAt(int rowIndex, int columnIndex) {
OutcomeMeasure om = d_br.getCriteria().get(rowIndex);
switch (columnIndex) {
case 0: return om.getLabel();
case 1: return om.getDirection();
case 2: return om.getDescription();
case 3: return getUnitOfMeasurement(om);
default: {
Alternative a = d_... |
213337_86 | public Object getValueAt(int rowIndex, int columnIndex) {
OutcomeMeasure om = d_br.getCriteria().get(rowIndex);
switch (columnIndex) {
case 0: return om.getLabel();
case 1: return om.getDirection();
case 2: return om.getDescription();
case 3: return getUnitOfMeasurement(om);
default: {
Alternative a = d_... |
213337_87 | public DateUnits getUnits() {
d_data = parseDuration();
return d_data == null ? DEFAULT_DATA.units : d_data.units;
} |
213337_88 | public int getQuantity() {
d_data = parseDuration();
return d_data == null ? DEFAULT_DATA.quantity : d_data.quantity;
} |
213337_89 | public void setQuantity(int quantity) {
if (getDefined()) {
int oldValue = d_data.quantity;
d_data = new Data(d_data.units, quantity);
d_bean.setDuration(d_data.getDuration());
firePropertyChange(PROPERTY_DURATION_QUANTITY, oldValue, quantity);
}
} |
213337_90 | public void setUnits(DateUnits units) {
if (getDefined()) {
DateUnits oldValue = d_data.units;
d_data = new Data(units, d_data.quantity);
d_bean.setDuration(d_data.getDuration());
firePropertyChange(PROPERTY_DURATION_UNITS, oldValue, units);
}
} |
213337_91 | @Override
public String toString() {
return getLabel();
} |
213337_92 | @Override
public AbstractValueModel getModel(String property) {
if (property.equals(PROPERTY_ODDS_RATIO)) {
return new OddsRatioValueModel();
}
return super.getModel(property);
} |
213337_93 | @Override
public AbstractValueModel getModel(String property) {
if (property.equals(PROPERTY_ODDS_RATIO)) {
return new OddsRatioValueModel();
}
return super.getModel(property);
} |
213337_94 | @Override
public AbstractValueModel getModel(String property) {
if (property.equals(PROPERTY_ODDS_RATIO)) {
return new OddsRatioValueModel();
}
return super.getModel(property);
} |
213337_95 | @Override
public AbstractValueModel getModel(String property) {
if (property.equals(PROPERTY_ODDS_RATIO)) {
return new OddsRatioValueModel();
}
return super.getModel(property);
} |
213337_96 | @Override
public AbstractValueModel getModel(String property) {
if (property.equals(PROPERTY_ODDS_RATIO)) {
return new OddsRatioValueModel();
}
return super.getModel(property);
} |
213337_97 | @Override
public AbstractValueModel getModel(String property) {
if (property.equals(PROPERTY_ODDS_RATIO)) {
return new OddsRatioValueModel();
}
return super.getModel(property);
} |
213337_98 | public AbstractValueModel getLabelModel() {
return new DefaultLabelModel(getBean());
} |
213337_99 | public AbstractValueModel getLabelModel() {
return new DefaultLabelModel(getBean());
} |
2136693_0 | public static File getSystemTempFolder() {
return new File(JAVA_TMP);
} |
2136693_1 | public static File getTmpFile(final String name, final String suffix) {
String suffixToUse = suffix == null ? ".tmp" : suffix;
if (!suffixToUse.startsWith(".")) {
suffixToUse = "." + suffix;
}
String nameToUse = name == null ? "tmp" : name;
File input = null;
try {
File folder = ... |
2136693_2 | public static boolean deleteTempFiles(final File workFolder) {
if (workFolder.isDirectory()) {
File[] entries = workFolder.listFiles();
for (int i = 0; i < entries.length; i++) {
File current = entries[i];
boolean deleteTempFiles = deleteTempFiles(current);
if (!d... |
2136693_3 | public static void close(final Closeable out) {
if (out != null) {
try {
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
} |
2136693_4 | public static boolean mkdir(final File file) {
boolean mkdir = file.mkdir();
handle(mkdir, file);
return mkdir;
} |
2136693_5 | public static String varToProp(String var) {
return var.replaceAll("_", ".");
} |
2136693_6 | public void createOperations() throws IOException, GeneratorException {
for (Operation operation : operations) {
createOperationCode(operation);
}
} |
2136693_7 | public void addVariable(String key, String val) {
this.putKeyValuePair(key, val);
} |
2136693_8 | public void deriveVariables() throws GeneratorException {
if(serviceDef == null) {
throw new GeneratorException("Service definition missing, unable "
+ "to derive variables");
}
VelocityContext vc = getContext();
Object[] keys = vc.getKeys();
for (Object key : keys) {
... |
2136693_9 | public void validate() throws GeneratorException {
if (toolspec == null) {
throw new GeneratorException("Tool specification is not available");
}
List<Service> services = toolspec.getServices().getService();
// for each service a different maven project will be generated
for (Service se... |
2139087_0 | @Override
public String getResponseContentType() {
if (this.format == null) {
throw new UnsupportedOperationException();
return WMSCapabilities.getSupportedFormat("WMS", "GetMap")[0];
} else {
return format;
}
} |
2139087_1 | @Override
public String method() {
return method;
} |
2139087_2 | @Override
public HttpHeaders headers() {
return this.headers;
} |
2139087_3 | @Override
public HttpQueryParams parseQuery() {
return new StdHttpQueryParams(uri());
} |
2139087_4 | @Override
public HttpQueryParams parseQuery() {
return new StdHttpQueryParams(uri());
} |
2139087_5 | @Override
public HttpQueryParams parseQuery() {
return new StdHttpQueryParams(uri());
} |
2139087_6 | @Override
public HttpQueryParams parseQuery() {
return new StdHttpQueryParams(uri());
} |
2139087_7 | @Override
public HttpQueryParams parseQuery() {
return new StdHttpQueryParams(uri());
} |
2139087_8 | @Override
public HttpQueryParams parseQuery() {
return new StdHttpQueryParams(uri());
} |
2139087_9 | @Override
public HttpQueryParams parseQuery() {
return new StdHttpQueryParams(uri());
} |
2144321_0 | public static boolean isEmpty(final String... values) {
if (values == null || values.length == 0)
return true;
for (String value : values)
if (value == null || value.length() == 0)
return true;
return false;
} |
2144321_1 | public static String[] removeEmpties(final String... values) {
if (values == null || values.length == 0)
return new String[0];
List<String> validValues = new ArrayList<String>();
for (String value : values)
if (value != null && value.length() > 0)
validValues.add(value);
return validValues.toArray(new String... |
2144321_2 | public static RepositoryId extractRepositoryFromScmUrl(String url) {
if (StringUtils.isEmpty(url))
return null;
int ghIndex = url.indexOf(HOST_DEFAULT);
if (ghIndex == -1 || ghIndex + 1 >= url.length())
return null;
if (!url.endsWith(SUFFIX_GIT))
return null;
url = url.substring(ghIndex + HOST_DEFAULT.length... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.