id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
1109529_0 | String nowTimeImageUrl() throws Exception {
String time = DateFormatUtils.format(new Date(), "hhmm");
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = buildDefaultHttpMessage(new HttpGet("http://www.bijint.com/cache/"+ time + ".html"));
httpget.setHeader("Referer", "http://www.bijint.com... |
1109529_1 | String getImagePath(String str) throws Exception {
DOMParser parser = new DOMParser();
parser.parse(new InputSource(new StringReader(str)));
NodeList nodeList = XPathAPI.selectNodeList(parser.getDocument(),
"/HTML/BODY/TABLE/TR/TH[1]/IMG");
String path = null;
for (int i = 0; i < nodeList.getLength(); i++) {
... |
1109529_2 | BufferedImage getFittingImage(String url) throws Exception {
// 画像を縮小
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = buildDefaultHttpMessage(new HttpGet(url));
httpget.setHeader("Referer", "http://www.bijint.com/jp/");
HttpResponse response = httpclient.execute(httpget);
BufferedImage i... |
1109529_3 | public void execute() throws MojoExecutionException {
try {
String imgUrl = nowTimeImageUrl();
if (imgUrl == null) {
return;
}
// 表示
getLog().info("\n" + getAsciiArt(getFittingImage(imgUrl)));
} catch (Exception e) {
e.printStackTrace();
throw new MojoExecutionException("なん... |
1109529_4 | public void makeXlsxFile() throws Exception {
String fileName = "test.xlsx";
FileOutputStream fileOut = new FileOutputStream(fileName);
Workbook wb = new XSSFWorkbook();
Sheet sheet = wb.createSheet("test"); // シート作成
Row row = sheet.createRow((short)0);
Cell cell = row.createCell(0);
cell.setCellValue("日本語は通る?")... |
1109529_5 | public void dbSelect() throws Exception {
Class.forName("org.postgresql.Driver");
String url = "jdbc:postgresql://localhost:5432/np";
Connection con = DriverManager.getConnection(url, "np", "npnpnp");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(getPlainSQL());
/ PreparedStatement stmt... |
1109529_6 | public void insertData() {
Connection con = null;
Statement stmt = null;
try {
con = ds.getConnection();
stmt = con.createStatement();
int count = sampleLogic.plus(1, 5);
for (int i = 0; i < count; i++) {
stmt.executeUpdate("INSERT INTO EMP (id, name) values (" + ... |
1109529_7 | public List<EmpDto> getEmpAllRecord() {
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
try {
con = ds.getConnection();
stmt = con.createStatement();
rs = stmt.executeQuery("SELECT * FROM EMP");
List<EmpDto> list = new ArrayList<EmpDto>();
while... |
1110934_0 | public ViewMapVO getViewMapForView(String register, String dataType, long version) throws SQLException {
String sql = "SELECT idSKRSViewMapping,tableName,createdDate FROM SKRSViewMapping WHERE register=? AND " +
"datatype=? AND version=?";
ArrayListHandler handler = new ArrayListHandler();
Query... |
1110934_1 | public List<String> extractCprNumbersWithoutHeaders(String soapResponse) throws CprAbbsException
{
try
{
Document document = createDomTree(soapResponse);
NodeList nodeList = extractChangedCprsNodes(document);
return convertNodeListToCprStrings(nodeList);
}
catch (Exception e)
... |
1110934_2 | public List<String> extractCprNumbers(String soapResponse) throws CprAbbsException
{
int start = soapResponse.indexOf("<?xml");
if(start == -1) {
throw new CprAbbsException("Invalid message body on call to CPR Abbs");
}
String soapResponseWithoutHeader = soapResponse.substring(start);
return... |
1116314_0 | public void setPhrase( String phrase )
throws IllegalArgumentException
{
if( phrase == null )
{
throw new IllegalArgumentException( "Phrase may not be null " );
}
this.phrase = phrase;
} |
1116314_1 | public void setName( String name )
throws IllegalArgumentException
{
if( name == null )
{
throw new IllegalArgumentException( "Name may not be null " );
}
this.name = name;
} |
1116314_2 | @Override
public int makeBooking( Cargo cargo, Voyage voyage )
{
int ok = next.makeBooking( cargo, voyage );
if( ok < 0 )
{
return ok;
}
Property<Integer> gen = generator.sequence();
ok = gen.get();
generator.sequence().set( ok + 1 );
return ok;
} |
1116314_3 | @Override
public int makeBooking( Cargo cargo, Voyage voyage )
{
int ok = next.makeBooking( cargo, voyage );
if( ok < 0 )
{
return ok;
}
Property<Integer> gen = generator.sequence();
ok = gen.get();
generator.sequence().set( ok + 1 );
return ok;
} |
1116314_4 | @Override
public <T> QueryBuilder<T> newQueryBuilder( final Class<T> resultType )
{
NotQueryableException.throwIfNotQueryable( resultType );
final ServiceReference<EntityFinder> serviceReference;
try
{
serviceReference = finder.findService( EntityFinder.class );
return new QueryBuilderIm... |
1116314_5 | @Override
public <T> QueryBuilder<T> newQueryBuilder( final Class<T> resultType )
{
NotQueryableException.throwIfNotQueryable( resultType );
final ServiceReference<EntityFinder> serviceReference;
try
{
serviceReference = finder.findService( EntityFinder.class );
return new QueryBuilderIm... |
1116314_6 | @Override
public <T> QueryBuilder<T> newQueryBuilder( final Class<T> resultType )
{
NotQueryableException.throwIfNotQueryable( resultType );
final ServiceReference<EntityFinder> serviceReference;
try
{
serviceReference = finder.findService( EntityFinder.class );
return new QueryBuilderIm... |
1116314_7 | @Override
public <T> QueryBuilder<T> newQueryBuilder( final Class<T> resultType )
{
NotQueryableException.throwIfNotQueryable( resultType );
final ServiceReference<EntityFinder> serviceReference;
try
{
serviceReference = finder.findService( EntityFinder.class );
return new QueryBuilderIm... |
1116314_8 | @Override
public <T> QueryBuilder<T> newQueryBuilder( final Class<T> resultType )
{
NotQueryableException.throwIfNotQueryable( resultType );
final ServiceReference<EntityFinder> serviceReference;
try
{
serviceReference = finder.findService( EntityFinder.class );
return new QueryBuilderIm... |
1116314_9 | @Override
public <T> QueryBuilder<T> newQueryBuilder( final Class<T> resultType )
{
NotQueryableException.throwIfNotQueryable( resultType );
final ServiceReference<EntityFinder> serviceReference;
try
{
serviceReference = finder.findService( EntityFinder.class );
return new QueryBuilderIm... |
1146205_0 | protected AbstractMuxStore(URI id, BlobStore ... stores) {
super(id);
setBackingStores(Arrays.asList(stores));
} |
1146205_1 | @Override
public void close() {
super.close();
if (cons != null) {
for (BlobStoreConnection con : cons.values())
con.close();
cons.clear();
cons = null;
}
} |
1146205_2 | public AbstractMuxConnection(BlobStore store, Transaction txn) {
super(store);
this.txn = txn;
} |
1146205_3 | public Set<BlobStore> getStores(String prefix) {
return new HashSet<BlobStore>(((AbstractMuxStore) getBlobStore()).getBackingStores());
} |
1146205_4 | protected BlobStoreConnection getConnection(BlobStore store, Map<String, String> hints)
throws IOException {
if (store == null)
return null;
if (cons == null)
throw new IllegalStateException("Connection closed.");
BlobStoreConnection con = cons.get(store.getId());
if... |
1146205_5 | @Override
public Iterator<URI> listBlobIds(String filterPrefix) throws IOException {
List<Iterator<URI>> iterators = new ArrayList<Iterator<URI>>();
for (BlobStore store : getStores(filterPrefix))
iterators.add(getConnection(store, null).listBlobIds(filterPrefix));
return Iterators.concat(iterators.iterator()... |
1146205_6 | @Override
public URI getCanonicalId() throws IOException {
URI internalId = delegate.getCanonicalId();
if (internalId == null)
return null;
return mapper.getExternalId(internalId);
} |
1146205_7 | @Override
public URI getCanonicalId() throws IOException {
URI internalId = delegate.getCanonicalId();
if (internalId == null)
return null;
return mapper.getExternalId(internalId);
} |
1146205_8 | @Override
public BlobStoreConnection openConnection(Transaction tx, Map<String, String> hints)
throws UnsupportedOperationException, IOException {
RemoteConnection con = (tx == null) ? server.openConnection(hints)
: new ClientTransactionListener(server.startTransactionListener... |
1146205_9 | public boolean hasNext() {
return load().hasNext();
} |
1149947_0 | static int getPort() {
int port = DEFAULT_PORT;
final String portAsStr = System.getProperty(DEFAULT_PORT_PROPERTY);
if (portAsStr != null) {
port = Integer.parseInt(portAsStr);
}
return port;
} |
1149947_1 | static int getPort() {
int port = DEFAULT_PORT;
final String portAsStr = System.getProperty(DEFAULT_PORT_PROPERTY);
if (portAsStr != null) {
port = Integer.parseInt(portAsStr);
}
return port;
} |
1149947_2 | @Override
@SuppressWarnings("unchecked")
public void mapTo(Context context, HttpBindingData target) throws Exception {
Map<String, List<String>> httpHeaders = target.getHeaders();
for (Property property : context.getProperties()) {
String name = property.getName();
Object value = property.getVal... |
1149947_3 | @Override
@SuppressWarnings("unchecked")
public void mapTo(Context context, HttpBindingData target) throws Exception {
Map<String, List<String>> httpHeaders = target.getHeaders();
for (Property property : context.getProperties()) {
String name = property.getName();
Object value = property.getVal... |
1149947_4 | public static org.w3c.dom.Node unwrapMessagePart(org.w3c.dom.Element content) {
org.w3c.dom.NodeList nl=content.getChildNodes();
for (int i=0; i < nl.getLength(); i++) {
if (nl.item(i) instanceof org.w3c.dom.Element) {
org.w3c.dom.NodeList nl2=((org.w3c.dom.El... |
1149947_5 | public static org.w3c.dom.Node unwrapMessagePart(org.w3c.dom.Element content) {
org.w3c.dom.NodeList nl=content.getChildNodes();
for (int i=0; i < nl.getLength(); i++) {
if (nl.item(i) instanceof org.w3c.dom.Element) {
org.w3c.dom.NodeList nl2=((org.w3c.dom.El... |
1149947_6 | public static org.w3c.dom.Node unwrapMessagePart(org.w3c.dom.Element content) {
org.w3c.dom.NodeList nl=content.getChildNodes();
for (int i=0; i < nl.getLength(); i++) {
if (nl.item(i) instanceof org.w3c.dom.Element) {
org.w3c.dom.NodeList nl2=((org.w3c.dom.El... |
1149947_7 | public static org.w3c.dom.Element wrapRequestMessagePart(org.w3c.dom.Element content,
javax.wsdl.Operation operation) {
return (wrapMessagePart(content, operation, operation.getInput().getMessage().getParts(), false));
} |
1149947_8 | public static org.w3c.dom.Element wrapResponseMessagePart(org.w3c.dom.Element content,
javax.wsdl.Operation operation) {
return (wrapMessagePart(content, operation, operation.getOutput().getMessage().getParts(), false));
} |
1149947_9 | public static Map<String, Object> deepClone(Map<String, Object> sourceMap) {
Map<String, Object> map = new LinkedHashMap<String, Object>();
Set<Map.Entry<String,Object>> mapEntries = sourceMap.entrySet();
for (Map.Entry<String,Object> entry : mapEntries) {
map.put(entry.getKey(), deepClone(entry.get... |
1155836_0 | @Override
public LogLevel getLogLevel() {
Level level = m_delegate.getEffectiveLevel();
return getLogLevel(level);
} |
1155836_1 | @Override
public LogLevel getLogLevel() {
Level level = m_delegate.getEffectiveLevel();
return getLogLevel(level);
} |
1155961_0 | private i18n () {
} |
1155961_1 | public List<Contact> findByBasicAttributes (
String firstName, String midInitials, String lastName, String email )
{
Contact templateObj = new Contact ( firstName, midInitials, lastName, email );
Example tplCriterion = Example.create ( templateObj );
tplCriterion.enableLike ( MatchMode.ANYWHERE );
tplCriterion.ign... |
1155961_2 | public List<Contact> findByBasicAttributes (
String firstName, String midInitials, String lastName, String email )
{
Contact templateObj = new Contact ( firstName, midInitials, lastName, email );
Example tplCriterion = Example.create ( templateObj );
tplCriterion.enableLike ( MatchMode.ANYWHERE );
tplCriterion.ign... |
1155961_3 | public List<Property<FactorValue>> getFactorsForStudy(Long studyId) {
Query query = entityManager.createQuery("SELECT distinct p " +
"FROM AssayResult ar join ar.cascadedPropertyValues pv, Factor p " +
"WHERE " +
"ar.study.id =:studyId " +
"AND pv.type = p.id ")
.setParameter("studyId", studyId);
retur... |
1155961_4 | public List<Property<CharacteristicValue>> getCharacteristicsForStudy(Long studyId) {
Query query = entityManager.createQuery("SELECT distinct p " +
"FROM AssayResult ar join ar.cascadedPropertyValues pv, Characteristic p " +
"WHERE " +
"ar.study.id =:studyId " +
"AND pv.type = p.id ")
.setParameter("st... |
1155961_5 | public List<PropertyValue> getValuesOfPropertyForStudyId(Long studyId, String propertyName) {
return entityManager.createQuery("SELECT distinct pv " +
"FROM AssayResult ar join ar.cascadedPropertyValues pv, Property p " +
"WHERE " +
"ar.study.id =:studyId " +
"AND pv.type = p.id " +
"AND lower(p.value) ... |
1155961_6 | public List<PropertyValue> getValuesOfPropertyForStudyAcc(String studyAcc, String propertyName) {
return entityManager.createQuery("SELECT distinct pv " +
"FROM AssayResult ar join ar.cascadedPropertyValues pv, Property p " +
"WHERE " +
"ar.study.acc =:studyId " +
"AND pv.type = p.id " +
"AND lower(p.va... |
1155961_7 | public List<String> filterByOntologyTermAndRefName(String termAcc, String refSourceName) {
return entityManager.createQuery("SELECT distinct study.acc " +
"FROM Study study, AssayResult ar join ar.cascadedPropertyValues pv join pv.ontologyTerms ot " +
"WHERE " +
"study.id = ar.study.id " +
"AND ot.acc =:te... |
1155961_8 | public List<String> getOwnedStudiesForUser(String userName) {
//ToDo: problem with this query: returns only those Studies which have a user attached, if a Study is public
//but doesn't have attached user, it will not be returned
Query query = entityManager.createQuery("SELECT distinct s.acc " +
"FROM Study s join... |
1155961_9 | public Study getByAccForUser(String acc, String userName) {
Query query = entityManager.createQuery("SELECT s " +
"FROM Study s join s.users user " +
"WHERE " +
"s.acc =:acc AND (user.userName =:userName"
+ " OR s.status =:status)"
)
.setParameter("acc", acc)
.setParameter("status", VisibilityStatus... |
1156021_0 | public FormatSetInstance load() throws IOException {
// Load the Investigation file
loadInvestigation();
// Load the studies in Investigation.studyFileName
loadStudies();
// For all the assay files named in the assays, load the file
loadAssays();
log.debug("Finished loading Assays");
ret... |
1156021_1 | public Person createNewUserFromOptions(String login, CommandLine cmdl) {
String forename = cmdl.getOptionValue("n");
String surname = cmdl.getOptionValue("s");
String pwd = cmdl.getOptionValue("p");
String affiliation = cmdl.getOptionValue("f");
String addr = cmdl.getOptionValue("a");
String ema... |
1156021_2 | public void validateUser(Person user) {
if (user == null) {
throw new TabInvalidValueException("Cannot add a null user to the BII db!");
}
if (StringUtils.trimToNull(user.getUserName()) == null
|| StringUtils.trimToNull(user.getPassword()) == null
|| StringUtils.trimToNull(us... |
1156021_3 | public void validateUser(Person user) {
if (user == null) {
throw new TabInvalidValueException("Cannot add a null user to the BII db!");
}
if (StringUtils.trimToNull(user.getUserName()) == null
|| StringUtils.trimToNull(user.getPassword()) == null
|| StringUtils.trimToNull(us... |
1156021_4 | public void validateUser(Person user) {
if (user == null) {
throw new TabInvalidValueException("Cannot add a null user to the BII db!");
}
if (StringUtils.trimToNull(user.getUserName()) == null
|| StringUtils.trimToNull(user.getPassword()) == null
|| StringUtils.trimToNull(us... |
1156021_5 | public long addUser(Person user) {
UserDAO dao = daoFactory.getUserDAO();
User u = dao.getByUsername(user.getUserName());
if (u != null) {
throw new TabInvalidValueException("Login '" + user.getUserName() + "' already exists!");
}
validateUser(user);
return dao.save(user);
} |
1156021_6 | public void updateUser(Person user) {
String login = StringUtils.trimToNull(user.getUserName());
if (login == null) {
throw new TabMissingValueException("Cannot update user: user login is null");
}
Person userDB = getUserByLogin(login);
mergeProps(user, userDB, "address", "firstName", "lastN... |
1156021_7 | public void deleteUser(String login) {
if (login == null) {
throw new TabMissingValueException("Cannot update user: user login is null");
}
Person userDB = getUserByLogin(login);
daoFactory.getUserDAO().deleteById(userDB.getId());
} |
1156021_8 | public void setStudyOwners(CommandLine cmdl) {
String specs[] = cmdl.getOptionValues("o");
if (specs == null) {
return;
}
for (String spec : specs) {
setStudyOwners(spec);
}
} |
1156021_9 | public void setPublic(String spec) {
spec = StringUtils.trimToNull(spec);
if (spec == null) {
throw new TabInvalidValueException("Invalid syntax for the study list: '" + spec + "'");
}
String accs[] = spec.split("\\,");
if (accs == null || accs.length == 0) {
throw new TabInvalidValu... |
1156136_0 | public void setRemoteException(Throwable remoteException) {
StringBuilder sb = new StringBuilder();
Set<Throwable> causes = new HashSet();
while (remoteException != null) {
sb.append(remoteException.toString());
StackTraceElement[] stackTraceElements = remoteException.getStackTrace();
if (sta... |
1156136_1 | public static String parseString(String string) {
if (string == null) return null;
StringBuilder sb = new StringBuilder();
int currentIndex = 0;
while (currentIndex < string.length()) {
int propertyIndex = string.indexOf("${", currentIndex);
int expressionIndex = string.indexOf("#{", currentInde... |
1156136_2 | public boolean isXsltAttribute(String file) {
boolean xslt = false;
if (file != null && !file.trim().isEmpty()) {
xslt = file.toLowerCase().startsWith(XSLT_PREFIX);
}
return xslt;
} |
1156136_3 | @Override
public DistStageAck executeOnWorker() {
if (!isServiceRunning()) {
return successfulResponse();
}
long startTime = TimeService.currentTimeMillis();
for (; ; ) {
long now = TimeService.currentTimeMillis();
if (now >= startTime + timeout) {
return errorResponse("The topolo... |
1156136_4 | @Override
protected boolean invokeLogic(long keyId) throws Exception {
Operation operation = getOperation(operationTypeRandom);
OperationTimestampPair prevOperation = timestamps.get(keyId);
// first we have to get the value
PrivateLogValue prevValue = checkedGetValue(keyId);
PrivateLogValue backupValue =... |
1156136_5 | @Override
public void addValue(double value, double deviation, Comparable seriesName, double xValue, String xString) {
YIntervalSeries series = seriesMap.get(seriesName);
if (series == null) {
seriesMap.put(seriesName, series = new YIntervalSeries(seriesName));
dataset.addSeries(series);
}
// do... |
1158118_0 | public static String decrypt(String input) {
if (isEmpty(input)) {
return input;
}
char[] inputChars = input.toCharArray();
int length = inputChars.length;
char[] inputCharsCopy = new char[length];
int j = 0;
int i = 0;
while (j < length) {
inputCharsCopy[j] = ((char) (in... |
1158315_0 | @Override
public String getNamespace(String prefix) {
String namespace;
mappingsLock.readLock().lock();
try {
namespace = prefixMap.get(prefix);
} finally {
mappingsLock.readLock().unlock();
}
if(namespace == null){
ServiceReference[] refs = getSortedProviderReferences();... |
1158315_1 | @Override
public String getFullName(String shortNameOrUri) {
String prefix = NamespaceMappingUtils.getPrefix(shortNameOrUri);
if(prefix != null){
String namespace = getNamespace(prefix);
if(namespace != null){
return namespace+shortNameOrUri.substring(prefix.length()+1);
} el... |
1158315_2 | PermissionInfo[] retrievePermissions(String location) {
List<PermissionInfo> permInfoList = new ArrayList<PermissionInfo>();
Iterator<Triple> ownerTriples =
systemGraph.filter(new IRI(location), OSGI.owner, null);
if (ownerTriples.hasNext()) {
BlankNodeOrIRI user = (BlankNodeOrIRI) ownerTriples.next().getObject... |
1158315_3 | PermissionInfo[] retrievePermissions(String location) {
List<PermissionInfo> permInfoList = new ArrayList<PermissionInfo>();
Iterator<Triple> ownerTriples =
systemGraph.filter(new IRI(location), OSGI.owner, null);
if (ownerTriples.hasNext()) {
BlankNodeOrIRI user = (BlankNodeOrIRI) ownerTriples.next().getObject... |
1158315_4 | public static OWLOntologyID guessOntologyID(InputStream content, Parser parser, String format) throws IOException {
return guessOntologyID(content, parser, format, _LOOKAHEAD_LIMIT_DEFAULT);
} |
1158315_5 | public static OWLOntologyID guessOntologyID(InputStream content, Parser parser, String format) throws IOException {
return guessOntologyID(content, parser, format, _LOOKAHEAD_LIMIT_DEFAULT);
} |
1158315_6 | public static OWLOntologyID guessOntologyID(InputStream content, Parser parser, String format) throws IOException {
return guessOntologyID(content, parser, format, _LOOKAHEAD_LIMIT_DEFAULT);
} |
1158315_7 | public static OWLOntologyID guessOntologyID(InputStream content, Parser parser, String format) throws IOException {
return guessOntologyID(content, parser, format, _LOOKAHEAD_LIMIT_DEFAULT);
} |
1158315_8 | public static OWLOntologyID guessOntologyID(InputStream content, Parser parser, String format) throws IOException {
return guessOntologyID(content, parser, format, _LOOKAHEAD_LIMIT_DEFAULT);
} |
1158315_9 | public static OWLOntologyID guessOntologyID(InputStream content, Parser parser, String format) throws IOException {
return guessOntologyID(content, parser, format, _LOOKAHEAD_LIMIT_DEFAULT);
} |
1161604_0 | @Override
public TriplestoreReader getReader() {
if (m_reader == null){
try{
open();
}
catch(TrippiException e){
logger.error(e.toString(),e);
}
}
return m_reader;
} |
1161604_1 | @Override
public TriplestoreWriter getWriter() {
if (m_reader == null){
try{
open();
}
catch(TrippiException e){
logger.error(e.toString(),e);
}
}
if (m_writer == null) {
throw new UnsupportedOperationException(
"This MulgaraConnector is read-only!");
} else {
... |
1163141_0 | public ValidationResult validate(String pid) {
if (pid == null) {
throw new NullPointerException("pid may not be null.");
}
ObjectInfo object = null;
try {
object = objectSource.getValidationObject(pid);
} catch (ObjectSourceException e) {
// This falls into the case of objec... |
1163141_1 | public ValidationResult validate(String pid) {
if (pid == null) {
throw new NullPointerException("pid may not be null.");
}
ObjectInfo object = null;
try {
object = objectSource.getValidationObject(pid);
} catch (ObjectSourceException e) {
// This falls into the case of objec... |
1163141_2 | public ValidationResult validate(String pid) {
if (pid == null) {
throw new NullPointerException("pid may not be null.");
}
ObjectInfo object = null;
try {
object = objectSource.getValidationObject(pid);
} catch (ObjectSourceException e) {
// This falls into the case of objec... |
1163141_3 | public ValidationResult validate(String pid) {
if (pid == null) {
throw new NullPointerException("pid may not be null.");
}
ObjectInfo object = null;
try {
object = objectSource.getValidationObject(pid);
} catch (ObjectSourceException e) {
// This falls into the case of objec... |
1163141_4 | public ValidationResult validate(String pid) {
if (pid == null) {
throw new NullPointerException("pid may not be null.");
}
ObjectInfo object = null;
try {
object = objectSource.getValidationObject(pid);
} catch (ObjectSourceException e) {
// This falls into the case of objec... |
1163141_5 | public static OptionDefinition get(String id, InstallOptions options) {
String label = _PROPS.getProperty(id + ".label");
String description = _PROPS.getProperty(id + ".description");
String[] validValues = getArray(id + ".validValues");
String defaultValue = _PROPS.getProperty(id + ".defaultValue");
... |
1163141_6 | public void update() throws InstallationFailedException {
setHTTPPort();
setShutdownPort();
setSSLPort();
setURIEncoding();
} |
1163141_7 | public void validate(File objectAsFile) throws ObjectValidityException,
GeneralException {
try {
validate(new StreamSource(new FileInputStream(objectAsFile)));
} catch (IOException e) {
String msg =
"DOValidatorXMLSchema returned error.\n"
+ "The u... |
1163141_8 | public void validate(File objectAsFile) throws ObjectValidityException,
GeneralException {
try {
validate(new StreamSource(new FileInputStream(objectAsFile)));
} catch (IOException e) {
String msg =
"DOValidatorXMLSchema returned error.\n"
+ "The u... |
1163141_9 | public void validate(File objectAsFile) throws ObjectValidityException,
GeneralException {
try {
validate(new StreamSource(new FileInputStream(objectAsFile)));
} catch (IOException e) {
String msg =
"DOValidatorXMLSchema returned error.\n"
+ "The u... |
1163806_0 | @Override
public ChangeLogSet parse(final Run build, final RepositoryBrowser<?> browser, final File changelogFile) throws IOException, SAXException {
try (FileInputStream stream = new FileInputStream(changelogFile); Reader reader = new InputStreamReader(stream, Charset.defaultCharset())) {
return parse(buil... |
1163806_1 | @Override
public ChangeLogSet parse(final Run build, final RepositoryBrowser<?> browser, final File changelogFile) throws IOException, SAXException {
try (FileInputStream stream = new FileInputStream(changelogFile); Reader reader = new InputStreamReader(stream, Charset.defaultCharset())) {
return parse(buil... |
1163806_2 | @Override
public ChangeLogSet parse(final Run build, final RepositoryBrowser<?> browser, final File changelogFile) throws IOException, SAXException {
try (FileInputStream stream = new FileInputStream(changelogFile); Reader reader = new InputStreamReader(stream, Charset.defaultCharset())) {
return parse(buil... |
1163806_3 | static String createAuthorization(final StandardUsernamePasswordCredentials credentials) {
final String username = credentials.getUsername();
final Secret secretPassword = credentials.getPassword();
final String password = secretPassword.getPlainText();
final String credPair = username + ":" + password;... |
1163806_4 | public String ping() throws IOException {
final URI requestUri;
if (isTeamServices) {
requestUri = UriHelper.join(collectionUri, "_apis", "connectiondata");
}
else {
requestUri = UriHelper.join(collectionUri, "_home", "About");
}
return request(String.class, HttpMethod.GET, reque... |
1163806_5 | @Override
public String toString() {
return UriHelper.serializeParameters(this);
} |
1163806_6 | @Override
public String toString() {
return UriHelper.serializeParameters(this);
} |
1163806_7 | @Override
public String toString() {
return UriHelper.serializeParameters(this);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.