id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
152,300 | mbenson/uelbox | src/main/java/uelbox/UEL.java | UEL.join | public static String join(final char trigger, final String... expressions) {
Validate.notEmpty(expressions);
final StringBuilder buf = new StringBuilder();
for (String expression : expressions) {
final String stripped = strip(expression);
if (expression.isEmpty()) {
... | java | public static String join(final char trigger, final String... expressions) {
Validate.notEmpty(expressions);
final StringBuilder buf = new StringBuilder();
for (String expression : expressions) {
final String stripped = strip(expression);
if (expression.isEmpty()) {
... | [
"public",
"static",
"String",
"join",
"(",
"final",
"char",
"trigger",
",",
"final",
"String",
"...",
"expressions",
")",
"{",
"Validate",
".",
"notEmpty",
"(",
"expressions",
")",
";",
"final",
"StringBuilder",
"buf",
"=",
"new",
"StringBuilder",
"(",
")",
... | Join expressions using the specified trigger character.
@param trigger
@param expressions
@return String | [
"Join",
"expressions",
"using",
"the",
"specified",
"trigger",
"character",
"."
] | b0c2df2c738295bddfd3c16a916e67c9c7c512ef | https://github.com/mbenson/uelbox/blob/b0c2df2c738295bddfd3c16a916e67c9c7c512ef/src/main/java/uelbox/UEL.java#L202-L237 |
152,301 | mbenson/uelbox | src/main/java/uelbox/UEL.java | UEL.coerceToType | public static <T> T coerceToType(ELContext context, Class<T> toType, Object object) {
@SuppressWarnings("unchecked")
T result = (T) getExpressionFactory(context).coerceToType(object, toType);
return result;
} | java | public static <T> T coerceToType(ELContext context, Class<T> toType, Object object) {
@SuppressWarnings("unchecked")
T result = (T) getExpressionFactory(context).coerceToType(object, toType);
return result;
} | [
"public",
"static",
"<",
"T",
">",
"T",
"coerceToType",
"(",
"ELContext",
"context",
",",
"Class",
"<",
"T",
">",
"toType",
",",
"Object",
"object",
")",
"{",
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"T",
"result",
"=",
"(",
"T",
")",
"getEx... | Use EL specification coercion facilities to coerce an object to the specified type.
@param context
@param toType
@param object
@return T
@throws ELException if the coercion fails. | [
"Use",
"EL",
"specification",
"coercion",
"facilities",
"to",
"coerce",
"an",
"object",
"to",
"the",
"specified",
"type",
"."
] | b0c2df2c738295bddfd3c16a916e67c9c7c512ef | https://github.com/mbenson/uelbox/blob/b0c2df2c738295bddfd3c16a916e67c9c7c512ef/src/main/java/uelbox/UEL.java#L248-L252 |
152,302 | js-lib-com/transaction.hibernate | src/main/java/js/transaction/hibernate/HqlQueryImpl.java | HqlQueryImpl.query | private org.hibernate.Query query(String hql, Class<?>... type)
{
org.hibernate.Query q = session.createQuery(hql);
for(int i = 0; i < positionedParameters.length; i++) {
q.setParameter(i, positionedParameters[i]);
}
for(Map.Entry<String, Object> entry : namedParameters.entrySet()) {
... | java | private org.hibernate.Query query(String hql, Class<?>... type)
{
org.hibernate.Query q = session.createQuery(hql);
for(int i = 0; i < positionedParameters.length; i++) {
q.setParameter(i, positionedParameters[i]);
}
for(Map.Entry<String, Object> entry : namedParameters.entrySet()) {
... | [
"private",
"org",
".",
"hibernate",
".",
"Query",
"query",
"(",
"String",
"hql",
",",
"Class",
"<",
"?",
">",
"...",
"type",
")",
"{",
"org",
".",
"hibernate",
".",
"Query",
"q",
"=",
"session",
".",
"createQuery",
"(",
"hql",
")",
";",
"for",
"(",... | Create Hibernate query object and initialize it from this helper properties.
@param hql query string expressed in HQL.
@return newly created Hibernate query object. | [
"Create",
"Hibernate",
"query",
"object",
"and",
"initialize",
"it",
"from",
"this",
"helper",
"properties",
"."
] | 3aaafa6fa573f27733e6edaef3a4b2cf97cf67d6 | https://github.com/js-lib-com/transaction.hibernate/blob/3aaafa6fa573f27733e6edaef3a4b2cf97cf67d6/src/main/java/js/transaction/hibernate/HqlQueryImpl.java#L220-L257 |
152,303 | tvesalainen/util | util/src/main/java/org/vesalainen/math/matrix/AbstractMatrix.java | AbstractMatrix.getInstance | public static AbstractMatrix getInstance(int rows, int cols, Class<?> cls)
{
return new AbstractMatrix(rows, Array.newInstance(cls, rows*cols));
} | java | public static AbstractMatrix getInstance(int rows, int cols, Class<?> cls)
{
return new AbstractMatrix(rows, Array.newInstance(cls, rows*cols));
} | [
"public",
"static",
"AbstractMatrix",
"getInstance",
"(",
"int",
"rows",
",",
"int",
"cols",
",",
"Class",
"<",
"?",
">",
"cls",
")",
"{",
"return",
"new",
"AbstractMatrix",
"(",
"rows",
",",
"Array",
".",
"newInstance",
"(",
"cls",
",",
"rows",
"*",
"... | Returns new DoubleMatrix initialized to zeroes.
@param rows
@param cols
@return | [
"Returns",
"new",
"DoubleMatrix",
"initialized",
"to",
"zeroes",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/math/matrix/AbstractMatrix.java#L65-L68 |
152,304 | tvesalainen/util | util/src/main/java/org/vesalainen/math/matrix/AbstractMatrix.java | AbstractMatrix.swapRows | public void swapRows(int r1, int r2, Object tmp)
{
int col = columns();
System.arraycopy(array, col * r1, tmp, 0, col);
System.arraycopy(array, col * r2, array, col * r1, col);
System.arraycopy(tmp, 0, array, col * r2, col);
} | java | public void swapRows(int r1, int r2, Object tmp)
{
int col = columns();
System.arraycopy(array, col * r1, tmp, 0, col);
System.arraycopy(array, col * r2, array, col * r1, col);
System.arraycopy(tmp, 0, array, col * r2, col);
} | [
"public",
"void",
"swapRows",
"(",
"int",
"r1",
",",
"int",
"r2",
",",
"Object",
"tmp",
")",
"{",
"int",
"col",
"=",
"columns",
"(",
")",
";",
"System",
".",
"arraycopy",
"(",
"array",
",",
"col",
"*",
"r1",
",",
"tmp",
",",
"0",
",",
"col",
")... | Swaps row r1 and r2 possibly using tmp
@param r1
@param r2
@param tmp double [columns] | [
"Swaps",
"row",
"r1",
"and",
"r2",
"possibly",
"using",
"tmp"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/math/matrix/AbstractMatrix.java#L164-L170 |
152,305 | FitLayout/classify | src/main/java/org/fit/layout/classify/VisualClassifier.java | VisualClassifier.classifyTree | public void classifyTree(Area root, FeatureExtractor features)
{
if (classifier != null)
{
System.out.print("tree visual classification...");
testRoot = root;
this.features = features;
//create a new empty set with the same header as the training set
testset = new... | java | public void classifyTree(Area root, FeatureExtractor features)
{
if (classifier != null)
{
System.out.print("tree visual classification...");
testRoot = root;
this.features = features;
//create a new empty set with the same header as the training set
testset = new... | [
"public",
"void",
"classifyTree",
"(",
"Area",
"root",
",",
"FeatureExtractor",
"features",
")",
"{",
"if",
"(",
"classifier",
"!=",
"null",
")",
"{",
"System",
".",
"out",
".",
"print",
"(",
"\"tree visual classification...\"",
")",
";",
"testRoot",
"=",
"r... | Classifies the areas in an area tree.
@param root the root node of the area tree | [
"Classifies",
"the",
"areas",
"in",
"an",
"area",
"tree",
"."
] | 0b43ceb2f0be4e6d26263491893884d811f0d605 | https://github.com/FitLayout/classify/blob/0b43ceb2f0be4e6d26263491893884d811f0d605/src/main/java/org/fit/layout/classify/VisualClassifier.java#L56-L71 |
152,306 | pressgang-ccms/PressGangCCMSQuery | src/main/java/org/jboss/pressgang/ccms/filter/builder/ImageFilterQueryBuilder.java | ImageFilterQueryBuilder.getImagesWithFileNameSubquery | private Subquery<ImageFile> getImagesWithFileNameSubquery(final String filename, final FilterStringLogic searchLogic) {
final CriteriaBuilder criteriaBuilder = getCriteriaBuilder();
final Subquery<ImageFile> subQuery = getCriteriaQuery().subquery(ImageFile.class);
final Root<LanguageImage> root ... | java | private Subquery<ImageFile> getImagesWithFileNameSubquery(final String filename, final FilterStringLogic searchLogic) {
final CriteriaBuilder criteriaBuilder = getCriteriaBuilder();
final Subquery<ImageFile> subQuery = getCriteriaQuery().subquery(ImageFile.class);
final Root<LanguageImage> root ... | [
"private",
"Subquery",
"<",
"ImageFile",
">",
"getImagesWithFileNameSubquery",
"(",
"final",
"String",
"filename",
",",
"final",
"FilterStringLogic",
"searchLogic",
")",
"{",
"final",
"CriteriaBuilder",
"criteriaBuilder",
"=",
"getCriteriaBuilder",
"(",
")",
";",
"fin... | Create a Subquery to check if a image has a specific filename.
@param filename The Value that the property tag should have.
@return A subquery that can be used in an exists statement to see if a topic has a property tag with the specified value. | [
"Create",
"a",
"Subquery",
"to",
"check",
"if",
"a",
"image",
"has",
"a",
"specific",
"filename",
"."
] | 2bb23430adab956737d0301cd2ea933f986dd85b | https://github.com/pressgang-ccms/PressGangCCMSQuery/blob/2bb23430adab956737d0301cd2ea933f986dd85b/src/main/java/org/jboss/pressgang/ccms/filter/builder/ImageFilterQueryBuilder.java#L91-L109 |
152,307 | OwlPlatform/java-owl-solver | src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java | SolverAggregatorInterface.connectionClosed | protected void connectionClosed(IoSession session) {
this.connected = false;
this._disconnect();
log.info("Connection lost to aggregator at {}:{}", this.host,
Integer.valueOf(this.port));
while (this.stayConnected) {
try {
Thread.sleep(this.connectionRetryDelay);
} catch (InterruptedException ie)... | java | protected void connectionClosed(IoSession session) {
this.connected = false;
this._disconnect();
log.info("Connection lost to aggregator at {}:{}", this.host,
Integer.valueOf(this.port));
while (this.stayConnected) {
try {
Thread.sleep(this.connectionRetryDelay);
} catch (InterruptedException ie)... | [
"protected",
"void",
"connectionClosed",
"(",
"IoSession",
"session",
")",
"{",
"this",
".",
"connected",
"=",
"false",
";",
"this",
".",
"_disconnect",
"(",
")",
";",
"log",
".",
"info",
"(",
"\"Connection lost to aggregator at {}:{}\"",
",",
"this",
".",
"ho... | Called when the connection to the aggregator closes.
@param session
the connection that closed. | [
"Called",
"when",
"the",
"connection",
"to",
"the",
"aggregator",
"closes",
"."
] | 53a1faabd63613c716203922cd52f871e5fedb9b | https://github.com/OwlPlatform/java-owl-solver/blob/53a1faabd63613c716203922cd52f871e5fedb9b/src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java#L535-L558 |
152,308 | OwlPlatform/java-owl-solver | src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java | SolverAggregatorInterface.handshakeReceived | protected void handshakeReceived(IoSession session,
HandshakeMessage handshakeMessage) {
log.debug("Received {}", handshakeMessage);
this.receivedHandshake = handshakeMessage;
Boolean handshakeCheck = this.checkHandshake();
if (handshakeCheck == null) {
return;
}
if (Boolean.FALSE.equals(handshakeChe... | java | protected void handshakeReceived(IoSession session,
HandshakeMessage handshakeMessage) {
log.debug("Received {}", handshakeMessage);
this.receivedHandshake = handshakeMessage;
Boolean handshakeCheck = this.checkHandshake();
if (handshakeCheck == null) {
return;
}
if (Boolean.FALSE.equals(handshakeChe... | [
"protected",
"void",
"handshakeReceived",
"(",
"IoSession",
"session",
",",
"HandshakeMessage",
"handshakeMessage",
")",
"{",
"log",
".",
"debug",
"(",
"\"Received {}\"",
",",
"handshakeMessage",
")",
";",
"this",
".",
"receivedHandshake",
"=",
"handshakeMessage",
"... | Called when a handshake message is received from the aggregator.
@param session
the session on which the message arrived.
@param handshakeMessage
the received message. | [
"Called",
"when",
"a",
"handshake",
"message",
"is",
"received",
"from",
"the",
"aggregator",
"."
] | 53a1faabd63613c716203922cd52f871e5fedb9b | https://github.com/OwlPlatform/java-owl-solver/blob/53a1faabd63613c716203922cd52f871e5fedb9b/src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java#L590-L608 |
152,309 | OwlPlatform/java-owl-solver | src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java | SolverAggregatorInterface.generateGenericSubscriptionMessage | protected SubscriptionMessage generateGenericSubscriptionMessage() {
SubscriptionMessage subMessage = new SubscriptionMessage();
subMessage.setRules(this.rules);
subMessage.setMessageType(SubscriptionMessage.SUBSCRIPTION_MESSAGE_ID);
return subMessage;
} | java | protected SubscriptionMessage generateGenericSubscriptionMessage() {
SubscriptionMessage subMessage = new SubscriptionMessage();
subMessage.setRules(this.rules);
subMessage.setMessageType(SubscriptionMessage.SUBSCRIPTION_MESSAGE_ID);
return subMessage;
} | [
"protected",
"SubscriptionMessage",
"generateGenericSubscriptionMessage",
"(",
")",
"{",
"SubscriptionMessage",
"subMessage",
"=",
"new",
"SubscriptionMessage",
"(",
")",
";",
"subMessage",
".",
"setRules",
"(",
"this",
".",
"rules",
")",
";",
"subMessage",
".",
"se... | Creates a generic subscription message with the rules defined within this
interface.
@return the new message. | [
"Creates",
"a",
"generic",
"subscription",
"message",
"with",
"the",
"rules",
"defined",
"within",
"this",
"interface",
"."
] | 53a1faabd63613c716203922cd52f871e5fedb9b | https://github.com/OwlPlatform/java-owl-solver/blob/53a1faabd63613c716203922cd52f871e5fedb9b/src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java#L644-L651 |
152,310 | OwlPlatform/java-owl-solver | src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java | SolverAggregatorInterface.solverSampleReceived | protected void solverSampleReceived(IoSession session,
SampleMessage sampleMessage) {
for (SampleListener listener : this.sampleListeners) {
listener.sampleReceived(this, sampleMessage);
}
} | java | protected void solverSampleReceived(IoSession session,
SampleMessage sampleMessage) {
for (SampleListener listener : this.sampleListeners) {
listener.sampleReceived(this, sampleMessage);
}
} | [
"protected",
"void",
"solverSampleReceived",
"(",
"IoSession",
"session",
",",
"SampleMessage",
"sampleMessage",
")",
"{",
"for",
"(",
"SampleListener",
"listener",
":",
"this",
".",
"sampleListeners",
")",
"{",
"listener",
".",
"sampleReceived",
"(",
"this",
",",... | Called when a sample is received from the aggregator.
@param session
the session the sample was received on.
@param sampleMessage
the received sample. | [
"Called",
"when",
"a",
"sample",
"is",
"received",
"from",
"the",
"aggregator",
"."
] | 53a1faabd63613c716203922cd52f871e5fedb9b | https://github.com/OwlPlatform/java-owl-solver/blob/53a1faabd63613c716203922cd52f871e5fedb9b/src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java#L661-L666 |
152,311 | OwlPlatform/java-owl-solver | src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java | SolverAggregatorInterface.subscriptionRequestSent | protected void subscriptionRequestSent(IoSession session,
SubscriptionMessage subscriptionMessage) {
this.sentSubscription = subscriptionMessage;
log.info("Sent {}", subscriptionMessage);
} | java | protected void subscriptionRequestSent(IoSession session,
SubscriptionMessage subscriptionMessage) {
this.sentSubscription = subscriptionMessage;
log.info("Sent {}", subscriptionMessage);
} | [
"protected",
"void",
"subscriptionRequestSent",
"(",
"IoSession",
"session",
",",
"SubscriptionMessage",
"subscriptionMessage",
")",
"{",
"this",
".",
"sentSubscription",
"=",
"subscriptionMessage",
";",
"log",
".",
"info",
"(",
"\"Sent {}\"",
",",
"subscriptionMessage"... | Called after a subscription request message is sent to the aggregator.
@param session
the session on which the message was sent.
@param subscriptionMessage
the sent message. | [
"Called",
"after",
"a",
"subscription",
"request",
"message",
"is",
"sent",
"to",
"the",
"aggregator",
"."
] | 53a1faabd63613c716203922cd52f871e5fedb9b | https://github.com/OwlPlatform/java-owl-solver/blob/53a1faabd63613c716203922cd52f871e5fedb9b/src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java#L722-L727 |
152,312 | OwlPlatform/java-owl-solver | src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java | SolverAggregatorInterface.subscriptionResponseReceived | protected void subscriptionResponseReceived(IoSession session,
SubscriptionMessage subscriptionMessage) {
log.info("Received {}", subscriptionMessage);
this.receivedSubscription = subscriptionMessage;
if (this.sentSubscription == null) {
log.error(
"Protocol error: Received a subscription response wit... | java | protected void subscriptionResponseReceived(IoSession session,
SubscriptionMessage subscriptionMessage) {
log.info("Received {}", subscriptionMessage);
this.receivedSubscription = subscriptionMessage;
if (this.sentSubscription == null) {
log.error(
"Protocol error: Received a subscription response wit... | [
"protected",
"void",
"subscriptionResponseReceived",
"(",
"IoSession",
"session",
",",
"SubscriptionMessage",
"subscriptionMessage",
")",
"{",
"log",
".",
"info",
"(",
"\"Received {}\"",
",",
"subscriptionMessage",
")",
";",
"this",
".",
"receivedSubscription",
"=",
"... | Called when a subscription response is received from the aggregator.
@param session
the session on which message was received.
@param subscriptionMessage
the received message. | [
"Called",
"when",
"a",
"subscription",
"response",
"is",
"received",
"from",
"the",
"aggregator",
"."
] | 53a1faabd63613c716203922cd52f871e5fedb9b | https://github.com/OwlPlatform/java-owl-solver/blob/53a1faabd63613c716203922cd52f871e5fedb9b/src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java#L737-L759 |
152,313 | OwlPlatform/java-owl-solver | src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java | SolverAggregatorInterface.exceptionCaught | protected void exceptionCaught(IoSession session, Throwable cause) {
log.error("Unhandled exception for: " + String.valueOf(session), cause);
if (this.disconnectOnException) {
this._disconnect();
}
} | java | protected void exceptionCaught(IoSession session, Throwable cause) {
log.error("Unhandled exception for: " + String.valueOf(session), cause);
if (this.disconnectOnException) {
this._disconnect();
}
} | [
"protected",
"void",
"exceptionCaught",
"(",
"IoSession",
"session",
",",
"Throwable",
"cause",
")",
"{",
"log",
".",
"error",
"(",
"\"Unhandled exception for: \"",
"+",
"String",
".",
"valueOf",
"(",
"session",
")",
",",
"cause",
")",
";",
"if",
"(",
"this"... | Called when an exception occurs on the session
@param session
the session on which the exception occurred
@param cause
the exception | [
"Called",
"when",
"an",
"exception",
"occurs",
"on",
"the",
"session"
] | 53a1faabd63613c716203922cd52f871e5fedb9b | https://github.com/OwlPlatform/java-owl-solver/blob/53a1faabd63613c716203922cd52f871e5fedb9b/src/main/java/com/owlplatform/solver/SolverAggregatorInterface.java#L827-L832 |
152,314 | schwa-lab/libschwa-java | src/main/java/org/schwa/dr/DocSchema.java | DocSchema.getStore | public StoreSchema getStore(final String name) {
for (StoreSchema store : storeSchemas)
if (store.getName().equals(name))
return store;
return null;
} | java | public StoreSchema getStore(final String name) {
for (StoreSchema store : storeSchemas)
if (store.getName().equals(name))
return store;
return null;
} | [
"public",
"StoreSchema",
"getStore",
"(",
"final",
"String",
"name",
")",
"{",
"for",
"(",
"StoreSchema",
"store",
":",
"storeSchemas",
")",
"if",
"(",
"store",
".",
"getName",
"(",
")",
".",
"equals",
"(",
"name",
")",
")",
"return",
"store",
";",
"re... | Returns the schema for the stores on this annotation class whose name matches the provided
name. This method returns null if no field matches. | [
"Returns",
"the",
"schema",
"for",
"the",
"stores",
"on",
"this",
"annotation",
"class",
"whose",
"name",
"matches",
"the",
"provided",
"name",
".",
"This",
"method",
"returns",
"null",
"if",
"no",
"field",
"matches",
"."
] | 83a2330e212bbc0fcd62be12453424736d997f41 | https://github.com/schwa-lab/libschwa-java/blob/83a2330e212bbc0fcd62be12453424736d997f41/src/main/java/org/schwa/dr/DocSchema.java#L69-L74 |
152,315 | kaeluka/spencer-instrumentation | src/main/java/NativeInterface.java | NativeInterface.modify | public static void modify(
int calleeValKind,
Object callee,
String calleeClass,
String fieldName,
int callerValKind,
Object caller,
String callerClass) {
System.err.println("modify( "+
valAndValKindToString(callee, calleeClass, calleeValKind)+
" . "+fieldName+", "+
// "callee... | java | public static void modify(
int calleeValKind,
Object callee,
String calleeClass,
String fieldName,
int callerValKind,
Object caller,
String callerClass) {
System.err.println("modify( "+
valAndValKindToString(callee, calleeClass, calleeValKind)+
" . "+fieldName+", "+
// "callee... | [
"public",
"static",
"void",
"modify",
"(",
"int",
"calleeValKind",
",",
"Object",
"callee",
",",
"String",
"calleeClass",
",",
"String",
"fieldName",
",",
"int",
"callerValKind",
",",
"Object",
"caller",
",",
"String",
"callerClass",
")",
"{",
"System",
".",
... | an object WRITES a primitive field of another object | [
"an",
"object",
"WRITES",
"a",
"primitive",
"field",
"of",
"another",
"object"
] | b01661aed192be3fa6ae780fd59a33207f758765 | https://github.com/kaeluka/spencer-instrumentation/blob/b01661aed192be3fa6ae780fd59a33207f758765/src/main/java/NativeInterface.java#L238-L253 |
152,316 | jbundle/jbundle | thin/base/screen/cal/sample/remote/src/main/java/org/jbundle/thin/base/screen/cal/sample/message/CalendarMessageListener.java | CalendarMessageListener.getPrice | public void getPrice(BaseMessage message)
{
String strPrice = (String)message.get("hotelRate");
System.out.println("Price: " + strPrice);
/**
LineItem lineItem = m_productItem.getLineItem();
if (!(lineItem instanceof TourLineItem))
return;
try {
... | java | public void getPrice(BaseMessage message)
{
String strPrice = (String)message.get("hotelRate");
System.out.println("Price: " + strPrice);
/**
LineItem lineItem = m_productItem.getLineItem();
if (!(lineItem instanceof TourLineItem))
return;
try {
... | [
"public",
"void",
"getPrice",
"(",
"BaseMessage",
"message",
")",
"{",
"String",
"strPrice",
"=",
"(",
"String",
")",
"message",
".",
"get",
"(",
"\"hotelRate\"",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Price: \"",
"+",
"strPrice",
")",
"... | Get the price of this product. | [
"Get",
"the",
"price",
"of",
"this",
"product",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/cal/sample/remote/src/main/java/org/jbundle/thin/base/screen/cal/sample/message/CalendarMessageListener.java#L51-L84 |
152,317 | nleva/GwtEventBus | SimpleEventBus/src/main/java/ru/sendto/gwt/client/util/Bus.java | Bus.listen | public <A> void listen(Class<A> key, VoidEvent<A> value) {
map.wire(key, value);
} | java | public <A> void listen(Class<A> key, VoidEvent<A> value) {
map.wire(key, value);
} | [
"public",
"<",
"A",
">",
"void",
"listen",
"(",
"Class",
"<",
"A",
">",
"key",
",",
"VoidEvent",
"<",
"A",
">",
"value",
")",
"{",
"map",
".",
"wire",
"(",
"key",
",",
"value",
")",
";",
"}"
] | Add void listener
@param key - object class
@param value - event listener
@param <A> - event listener | [
"Add",
"void",
"listener"
] | a3b593febf0454a112d18765543b081a13add888 | https://github.com/nleva/GwtEventBus/blob/a3b593febf0454a112d18765543b081a13add888/SimpleEventBus/src/main/java/ru/sendto/gwt/client/util/Bus.java#L110-L112 |
152,318 | nleva/GwtEventBus | SimpleEventBus/src/main/java/ru/sendto/gwt/client/util/Bus.java | Bus.getBy | static public Bus getBy(String busName){
if(busName==null)
return get();
Bus bus = busMap.get(busName);
if(bus==null) {
bus=new Bus();
busMap.put(busName, bus);
}
return bus;
} | java | static public Bus getBy(String busName){
if(busName==null)
return get();
Bus bus = busMap.get(busName);
if(bus==null) {
bus=new Bus();
busMap.put(busName, bus);
}
return bus;
} | [
"static",
"public",
"Bus",
"getBy",
"(",
"String",
"busName",
")",
"{",
"if",
"(",
"busName",
"==",
"null",
")",
"return",
"get",
"(",
")",
";",
"Bus",
"bus",
"=",
"busMap",
".",
"get",
"(",
"busName",
")",
";",
"if",
"(",
"bus",
"==",
"null",
")... | Get bus instance by name
@param busName bus name
@return event bus | [
"Get",
"bus",
"instance",
"by",
"name"
] | a3b593febf0454a112d18765543b081a13add888 | https://github.com/nleva/GwtEventBus/blob/a3b593febf0454a112d18765543b081a13add888/SimpleEventBus/src/main/java/ru/sendto/gwt/client/util/Bus.java#L142-L152 |
152,319 | nleva/GwtEventBus | SimpleEventBus/src/main/java/ru/sendto/gwt/client/util/Bus.java | Bus.getBy | static public Bus getBy(Class<?> busName){
if(busName==null)
return get();
return getBy(busName.getName());
} | java | static public Bus getBy(Class<?> busName){
if(busName==null)
return get();
return getBy(busName.getName());
} | [
"static",
"public",
"Bus",
"getBy",
"(",
"Class",
"<",
"?",
">",
"busName",
")",
"{",
"if",
"(",
"busName",
"==",
"null",
")",
"return",
"get",
"(",
")",
";",
"return",
"getBy",
"(",
"busName",
".",
"getName",
"(",
")",
")",
";",
"}"
] | Get bus instance by class name
@param busName bus name
@return event bus | [
"Get",
"bus",
"instance",
"by",
"class",
"name"
] | a3b593febf0454a112d18765543b081a13add888 | https://github.com/nleva/GwtEventBus/blob/a3b593febf0454a112d18765543b081a13add888/SimpleEventBus/src/main/java/ru/sendto/gwt/client/util/Bus.java#L158-L163 |
152,320 | nleva/GwtEventBus | SimpleEventBus/src/main/java/ru/sendto/gwt/client/util/Bus.java | Bus.getBy | static public Bus getBy(Object busName){
if(busName==null)
return get();
return getBy(busName.getClass());
} | java | static public Bus getBy(Object busName){
if(busName==null)
return get();
return getBy(busName.getClass());
} | [
"static",
"public",
"Bus",
"getBy",
"(",
"Object",
"busName",
")",
"{",
"if",
"(",
"busName",
"==",
"null",
")",
"return",
"get",
"(",
")",
";",
"return",
"getBy",
"(",
"busName",
".",
"getClass",
"(",
")",
")",
";",
"}"
] | Get bus instance by object class name
@param busName bus name
@return event bus | [
"Get",
"bus",
"instance",
"by",
"object",
"class",
"name"
] | a3b593febf0454a112d18765543b081a13add888 | https://github.com/nleva/GwtEventBus/blob/a3b593febf0454a112d18765543b081a13add888/SimpleEventBus/src/main/java/ru/sendto/gwt/client/util/Bus.java#L169-L174 |
152,321 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/filter/CompareFileFilter.java | CompareFileFilter.setOwner | public void setOwner(ListenerOwner owner)
{
super.setOwner(owner);
if (owner == null)
return;
if ((m_strFieldNameToCheck != null)
&& (m_strFieldNameToCheck.length() > 0))
if ((m_fldToCheck == null)
|| (m_fldToCheck.getFieldName() == null)
... | java | public void setOwner(ListenerOwner owner)
{
super.setOwner(owner);
if (owner == null)
return;
if ((m_strFieldNameToCheck != null)
&& (m_strFieldNameToCheck.length() > 0))
if ((m_fldToCheck == null)
|| (m_fldToCheck.getFieldName() == null)
... | [
"public",
"void",
"setOwner",
"(",
"ListenerOwner",
"owner",
")",
"{",
"super",
".",
"setOwner",
"(",
"owner",
")",
";",
"if",
"(",
"owner",
"==",
"null",
")",
"return",
";",
"if",
"(",
"(",
"m_strFieldNameToCheck",
"!=",
"null",
")",
"&&",
"(",
"m_str... | Set the field or file that owns this listener.
Besides inherited, this method closes the owner record.
@param owner My owner. | [
"Set",
"the",
"field",
"or",
"file",
"that",
"owns",
"this",
"listener",
".",
"Besides",
"inherited",
"this",
"method",
"closes",
"the",
"owner",
"record",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/filter/CompareFileFilter.java#L184-L200 |
152,322 | OwlPlatform/java-owl-worldmodel | src/main/java/com/owlplatform/worldmodel/client/protocol/messages/IdSearchResponseMessage.java | IdSearchResponseMessage.getMessageLength | public int getMessageLength() {
int length = 1;
if (this.matchingIds != null) {
for (String id : this.matchingIds) {
try {
length += 4;
length += id.getBytes("UTF-16BE").length;
} catch (UnsupportedEncodingException uee) {
log.error("Unable to encode UTF-16BE String: {}", uee);
}
}... | java | public int getMessageLength() {
int length = 1;
if (this.matchingIds != null) {
for (String id : this.matchingIds) {
try {
length += 4;
length += id.getBytes("UTF-16BE").length;
} catch (UnsupportedEncodingException uee) {
log.error("Unable to encode UTF-16BE String: {}", uee);
}
}... | [
"public",
"int",
"getMessageLength",
"(",
")",
"{",
"int",
"length",
"=",
"1",
";",
"if",
"(",
"this",
".",
"matchingIds",
"!=",
"null",
")",
"{",
"for",
"(",
"String",
"id",
":",
"this",
".",
"matchingIds",
")",
"{",
"try",
"{",
"length",
"+=",
"4... | Gets the length of this message when encoded according to the Client-World Model protocol.
@return the length, in bytes, of the encoded form of this message | [
"Gets",
"the",
"length",
"of",
"this",
"message",
"when",
"encoded",
"according",
"to",
"the",
"Client",
"-",
"World",
"Model",
"protocol",
"."
] | a850e8b930c6e9787c7cad30c0de887858ca563d | https://github.com/OwlPlatform/java-owl-worldmodel/blob/a850e8b930c6e9787c7cad30c0de887858ca563d/src/main/java/com/owlplatform/worldmodel/client/protocol/messages/IdSearchResponseMessage.java#L55-L69 |
152,323 | jbundle/jbundle | base/screen/model/src/main/java/org/jbundle/base/screen/model/calendar/CalendarRecordItem.java | CalendarRecordItem.getRelativeSField | public int getRelativeSField(int iSFieldSeq)
{
Convert lastField = null;
for (int i = 0; i < m_gridScreen.getSFieldCount(); i++)
{
Convert field = m_gridScreen.getSField(i).getConverter();
if (field != null)
field = field.getField();
if (m_... | java | public int getRelativeSField(int iSFieldSeq)
{
Convert lastField = null;
for (int i = 0; i < m_gridScreen.getSFieldCount(); i++)
{
Convert field = m_gridScreen.getSField(i).getConverter();
if (field != null)
field = field.getField();
if (m_... | [
"public",
"int",
"getRelativeSField",
"(",
"int",
"iSFieldSeq",
")",
"{",
"Convert",
"lastField",
"=",
"null",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m_gridScreen",
".",
"getSFieldCount",
"(",
")",
";",
"i",
"++",
")",
"{",
"Convert",
... | This is lame.
@param iSFieldSeq The screen field sequence.
@return The relative sequence. | [
"This",
"is",
"lame",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/screen/model/src/main/java/org/jbundle/base/screen/model/calendar/CalendarRecordItem.java#L296-L315 |
152,324 | fuinorg/utils4swing | src/main/java/org/fuin/utils4swing/progress/FileCopyProgressMonitor.java | FileCopyProgressMonitor.main | public static void main(final String[] args) {
// This runs in the "main" thread (outside the EDT)
// Initialize the L&F in a thread safe way
Utils4Swing.initSystemLookAndFeel();
// Create an cancel tracker
final Cancelable cancelable = new CancelableVo... | java | public static void main(final String[] args) {
// This runs in the "main" thread (outside the EDT)
// Initialize the L&F in a thread safe way
Utils4Swing.initSystemLookAndFeel();
// Create an cancel tracker
final Cancelable cancelable = new CancelableVo... | [
"public",
"static",
"void",
"main",
"(",
"final",
"String",
"[",
"]",
"args",
")",
"{",
"// This runs in the \"main\" thread (outside the EDT)\r",
"// Initialize the L&F in a thread safe way\r",
"Utils4Swing",
".",
"initSystemLookAndFeel",
"(",
")",
";",
"// Create an cancel ... | Main method to test the monitor. Only for testing purposes.
@param args
Not used. | [
"Main",
"method",
"to",
"test",
"the",
"monitor",
".",
"Only",
"for",
"testing",
"purposes",
"."
] | 560fb69eac182e3473de9679c3c15433e524ef6b | https://github.com/fuinorg/utils4swing/blob/560fb69eac182e3473de9679c3c15433e524ef6b/src/main/java/org/fuin/utils4swing/progress/FileCopyProgressMonitor.java#L363-L414 |
152,325 | jbundle/jbundle | thin/base/screen/cal/grid/src/main/java/org/jbundle/thin/base/screen/cal/grid/JCalendarScreen.java | JCalendarScreen.free | public void free()
{
CalendarPanel panel = (CalendarPanel)JBasePanel.getSubScreen(this, CalendarPanel.class);
if (panel != null)
panel.free();
super.free();
} | java | public void free()
{
CalendarPanel panel = (CalendarPanel)JBasePanel.getSubScreen(this, CalendarPanel.class);
if (panel != null)
panel.free();
super.free();
} | [
"public",
"void",
"free",
"(",
")",
"{",
"CalendarPanel",
"panel",
"=",
"(",
"CalendarPanel",
")",
"JBasePanel",
".",
"getSubScreen",
"(",
"this",
",",
"CalendarPanel",
".",
"class",
")",
";",
"if",
"(",
"panel",
"!=",
"null",
")",
"panel",
".",
"free",
... | Free the sub=components. | [
"Free",
"the",
"sub",
"=",
"components",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/cal/grid/src/main/java/org/jbundle/thin/base/screen/cal/grid/JCalendarScreen.java#L76-L82 |
152,326 | jbundle/jbundle | thin/base/screen/cal/grid/src/main/java/org/jbundle/thin/base/screen/cal/grid/JCalendarScreen.java | JCalendarScreen.getCalendarModel | public CalendarModel getCalendarModel(FieldTable table)
{
if (m_model == null)
if (table != null)
m_model = new CalendarThinTableModel(table);
return m_model;
} | java | public CalendarModel getCalendarModel(FieldTable table)
{
if (m_model == null)
if (table != null)
m_model = new CalendarThinTableModel(table);
return m_model;
} | [
"public",
"CalendarModel",
"getCalendarModel",
"(",
"FieldTable",
"table",
")",
"{",
"if",
"(",
"m_model",
"==",
"null",
")",
"if",
"(",
"table",
"!=",
"null",
")",
"m_model",
"=",
"new",
"CalendarThinTableModel",
"(",
"table",
")",
";",
"return",
"m_model",... | Get the calendar model.
Override this to supply the calendar model.
The default listener wraps the table in a CalendarThinTableModel. | [
"Get",
"the",
"calendar",
"model",
".",
"Override",
"this",
"to",
"supply",
"the",
"calendar",
"model",
".",
"The",
"default",
"listener",
"wraps",
"the",
"table",
"in",
"a",
"CalendarThinTableModel",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/cal/grid/src/main/java/org/jbundle/thin/base/screen/cal/grid/JCalendarScreen.java#L88-L94 |
152,327 | jbundle/jbundle | thin/base/screen/util/src/main/java/org/jbundle/thin/base/screen/util/ParamDispatcher.java | ParamDispatcher.propertyChange | public void propertyChange(PropertyChangeEvent evt)
{
String strProperty = evt.getPropertyName();
if (this.isValidProperty(strProperty))
{
Object objCurrentValue = this.get(strProperty);
if (evt.getNewValue() != objCurrentValue)
{
m_strCurr... | java | public void propertyChange(PropertyChangeEvent evt)
{
String strProperty = evt.getPropertyName();
if (this.isValidProperty(strProperty))
{
Object objCurrentValue = this.get(strProperty);
if (evt.getNewValue() != objCurrentValue)
{
m_strCurr... | [
"public",
"void",
"propertyChange",
"(",
"PropertyChangeEvent",
"evt",
")",
"{",
"String",
"strProperty",
"=",
"evt",
".",
"getPropertyName",
"(",
")",
";",
"if",
"(",
"this",
".",
"isValidProperty",
"(",
"strProperty",
")",
")",
"{",
"Object",
"objCurrentValu... | This method gets called when a bound property is changed.
Propogate the event to all listeners.
@param evt A PropertyChangeEvent object describing the event source and the property that has changed. | [
"This",
"method",
"gets",
"called",
"when",
"a",
"bound",
"property",
"is",
"changed",
".",
"Propogate",
"the",
"event",
"to",
"all",
"listeners",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/util/src/main/java/org/jbundle/thin/base/screen/util/ParamDispatcher.java#L77-L96 |
152,328 | jbundle/jbundle | thin/base/screen/util/src/main/java/org/jbundle/thin/base/screen/util/ParamDispatcher.java | ParamDispatcher.getProperties | public Map<String,Object> getProperties()
{
Map<String,Object> properties = new Hashtable<String,Object>();
ParamDispatcher params = this;
for (Enumeration<String> e = params.keys() ; e.hasMoreElements() ;)
{
String strKey = e.nextElement();
String strValue = ... | java | public Map<String,Object> getProperties()
{
Map<String,Object> properties = new Hashtable<String,Object>();
ParamDispatcher params = this;
for (Enumeration<String> e = params.keys() ; e.hasMoreElements() ;)
{
String strKey = e.nextElement();
String strValue = ... | [
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"getProperties",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
"=",
"new",
"Hashtable",
"<",
"String",
",",
"Object",
">",
"(",
")",
";",
"ParamDispatcher",
"params",
"=",
"th... | Get the current parameters for this screen.
Convert the params to strings and place them in a properties object. | [
"Get",
"the",
"current",
"parameters",
"for",
"this",
"screen",
".",
"Convert",
"the",
"params",
"to",
"strings",
"and",
"place",
"them",
"in",
"a",
"properties",
"object",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/util/src/main/java/org/jbundle/thin/base/screen/util/ParamDispatcher.java#L101-L112 |
152,329 | jbundle/jbundle | thin/base/screen/util/src/main/java/org/jbundle/thin/base/screen/util/ParamDispatcher.java | ParamDispatcher.isValidProperty | public boolean isValidProperty(String strProperty)
{
if (m_rgstrValidParams != null)
{
for (int i = 0; i < m_rgstrValidParams.length; i++)
{
if (m_rgstrValidParams[i].equalsIgnoreCase(strProperty))
{ // Valid property
if (m_... | java | public boolean isValidProperty(String strProperty)
{
if (m_rgstrValidParams != null)
{
for (int i = 0; i < m_rgstrValidParams.length; i++)
{
if (m_rgstrValidParams[i].equalsIgnoreCase(strProperty))
{ // Valid property
if (m_... | [
"public",
"boolean",
"isValidProperty",
"(",
"String",
"strProperty",
")",
"{",
"if",
"(",
"m_rgstrValidParams",
"!=",
"null",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m_rgstrValidParams",
".",
"length",
";",
"i",
"++",
")",
"{",
"if... | This method gets called when a bound property is changed.
Propagate the event to all listeners.
@param evt A PropertyChangeEvent object describing the event source and the property that has changed. | [
"This",
"method",
"gets",
"called",
"when",
"a",
"bound",
"property",
"is",
"changed",
".",
"Propagate",
"the",
"event",
"to",
"all",
"listeners",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/util/src/main/java/org/jbundle/thin/base/screen/util/ParamDispatcher.java#L118-L134 |
152,330 | jbundle/jbundle | thin/base/screen/util/src/main/java/org/jbundle/thin/base/screen/util/ParamDispatcher.java | ParamDispatcher.firePropertyChange | public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
{
if (propertyChange != null)
propertyChange.firePropertyChange(propertyName, oldValue, newValue);
} | java | public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
{
if (propertyChange != null)
propertyChange.firePropertyChange(propertyName, oldValue, newValue);
} | [
"public",
"void",
"firePropertyChange",
"(",
"String",
"propertyName",
",",
"Object",
"oldValue",
",",
"Object",
"newValue",
")",
"{",
"if",
"(",
"propertyChange",
"!=",
"null",
")",
"propertyChange",
".",
"firePropertyChange",
"(",
"propertyName",
",",
"oldValue"... | The firePropertyChange method was generated to support the propertyChange field.
@param propertyName The property name.
@param oldValue The old value.
@param newValue The new value. | [
"The",
"firePropertyChange",
"method",
"was",
"generated",
"to",
"support",
"the",
"propertyChange",
"field",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/util/src/main/java/org/jbundle/thin/base/screen/util/ParamDispatcher.java#L149-L153 |
152,331 | tvesalainen/util | util/src/main/java/org/vesalainen/util/navi/Angle.java | Angle.add | public Angle add(Angle angle, boolean clockwice)
{
if (clockwice)
{
return new Angle(normalizeToFullAngle(value + angle.value));
}
else
{
return new Angle(normalizeToFullAngle(value - angle.value));
}
} | java | public Angle add(Angle angle, boolean clockwice)
{
if (clockwice)
{
return new Angle(normalizeToFullAngle(value + angle.value));
}
else
{
return new Angle(normalizeToFullAngle(value - angle.value));
}
} | [
"public",
"Angle",
"add",
"(",
"Angle",
"angle",
",",
"boolean",
"clockwice",
")",
"{",
"if",
"(",
"clockwice",
")",
"{",
"return",
"new",
"Angle",
"(",
"normalizeToFullAngle",
"(",
"value",
"+",
"angle",
".",
"value",
")",
")",
";",
"}",
"else",
"{",
... | Add angle clockwise or counter clockwice.
@param angle
@return Returns a new Angle | [
"Add",
"angle",
"clockwise",
"or",
"counter",
"clockwice",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/navi/Angle.java#L127-L137 |
152,332 | tvesalainen/util | util/src/main/java/org/vesalainen/util/navi/Angle.java | Angle.turn | public Angle turn(Angle angle)
{
if (angle.getRadians() < Math.PI)
{
return add(angle, true);
}
else
{
return add(angle.toHalfAngle(), false);
}
} | java | public Angle turn(Angle angle)
{
if (angle.getRadians() < Math.PI)
{
return add(angle, true);
}
else
{
return add(angle.toHalfAngle(), false);
}
} | [
"public",
"Angle",
"turn",
"(",
"Angle",
"angle",
")",
"{",
"if",
"(",
"angle",
".",
"getRadians",
"(",
")",
"<",
"Math",
".",
"PI",
")",
"{",
"return",
"add",
"(",
"angle",
",",
"true",
")",
";",
"}",
"else",
"{",
"return",
"add",
"(",
"angle",
... | Turn angle clockwise or counter clockwice. If < 180 turns
clockwice. If ≥ 180 turns counter clockwice 360 - angle
@param angle
@return Returns a new Angle | [
"Turn",
"angle",
"clockwise",
"or",
"counter",
"clockwice",
".",
"If",
"<",
";",
"180",
"turns",
"clockwice",
".",
"If",
"&ge",
";",
"180",
"turns",
"counter",
"clockwice",
"360",
"-",
"angle"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/navi/Angle.java#L144-L154 |
152,333 | tvesalainen/util | util/src/main/java/org/vesalainen/util/navi/Angle.java | Angle.inSector | public final boolean inSector(Angle start, Angle end)
{
if (start.clockwise(end))
{
return !clockwise(start) && clockwise(end);
}
else
{
return clockwise(start) && !clockwise(end);
}
} | java | public final boolean inSector(Angle start, Angle end)
{
if (start.clockwise(end))
{
return !clockwise(start) && clockwise(end);
}
else
{
return clockwise(start) && !clockwise(end);
}
} | [
"public",
"final",
"boolean",
"inSector",
"(",
"Angle",
"start",
",",
"Angle",
"end",
")",
"{",
"if",
"(",
"start",
".",
"clockwise",
"(",
"end",
")",
")",
"{",
"return",
"!",
"clockwise",
"(",
"start",
")",
"&&",
"clockwise",
"(",
"end",
")",
";",
... | Sector is less than 180 degrees delimited by start and end
@param start
@param end
@return If this is between start - end | [
"Sector",
"is",
"less",
"than",
"180",
"degrees",
"delimited",
"by",
"start",
"and",
"end"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/navi/Angle.java#L168-L178 |
152,334 | tvesalainen/util | util/src/main/java/org/vesalainen/util/navi/Angle.java | Angle.difference | public static final Angle difference(Angle a1, Angle a2)
{
return new Angle(normalizeToHalfAngle(angleDiff(a1.value, a2.value)));
} | java | public static final Angle difference(Angle a1, Angle a2)
{
return new Angle(normalizeToHalfAngle(angleDiff(a1.value, a2.value)));
} | [
"public",
"static",
"final",
"Angle",
"difference",
"(",
"Angle",
"a1",
",",
"Angle",
"a2",
")",
"{",
"return",
"new",
"Angle",
"(",
"normalizeToHalfAngle",
"(",
"angleDiff",
"(",
"a1",
".",
"value",
",",
"a2",
".",
"value",
")",
")",
")",
";",
"}"
] | The difference between two angles
@param a1
@param a2
@return New Angle representing the difference | [
"The",
"difference",
"between",
"two",
"angles"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/navi/Angle.java#L197-L200 |
152,335 | tvesalainen/util | util/src/main/java/org/vesalainen/util/navi/Angle.java | Angle.clockwise | public static final boolean clockwise(Angle angle1, Angle angle2)
{
return clockwise(angle1.value, angle2.value);
} | java | public static final boolean clockwise(Angle angle1, Angle angle2)
{
return clockwise(angle1.value, angle2.value);
} | [
"public",
"static",
"final",
"boolean",
"clockwise",
"(",
"Angle",
"angle1",
",",
"Angle",
"angle2",
")",
"{",
"return",
"clockwise",
"(",
"angle1",
".",
"value",
",",
"angle2",
".",
"value",
")",
";",
"}"
] | 10 is clockwise from 340
@param angle1
@param angle2
@return true if angle2 is clockwise from angle1 | [
"10",
"is",
"clockwise",
"from",
"340"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/navi/Angle.java#L221-L224 |
152,336 | tvesalainen/util | util/src/main/java/org/vesalainen/util/navi/Angle.java | Angle.signed | public static final double signed(double angle)
{
angle = normalizeToFullAngle(angle);
if (angle > Math.PI)
{
return angle - FULL_CIRCLE;
}
else
{
return angle;
}
} | java | public static final double signed(double angle)
{
angle = normalizeToFullAngle(angle);
if (angle > Math.PI)
{
return angle - FULL_CIRCLE;
}
else
{
return angle;
}
} | [
"public",
"static",
"final",
"double",
"signed",
"(",
"double",
"angle",
")",
"{",
"angle",
"=",
"normalizeToFullAngle",
"(",
"angle",
")",
";",
"if",
"(",
"angle",
">",
"Math",
".",
"PI",
")",
"{",
"return",
"angle",
"-",
"FULL_CIRCLE",
";",
"}",
"els... | Convert full angle to signed angle -180 - 180. 340 -> -20
@param angle
@return | [
"Convert",
"full",
"angle",
"to",
"signed",
"angle",
"-",
"180",
"-",
"180",
".",
"340",
"-",
">",
";",
"-",
"20"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/navi/Angle.java#L348-L359 |
152,337 | aequologica/geppaequo | geppaequo-core/src/main/java/net/aequologica/neo/geppaequo/auth/AuthUtil.java | AuthUtil.getUserInfo | public static UserInfo getUserInfo(final String userId) {
if (userId == null) {
throw new IllegalArgumentException("null userName");
}
try {
Class<?> accessor = Class.forName("com.sap.security.um.service.UserManagementAccessor");
if (accessor != null) {
... | java | public static UserInfo getUserInfo(final String userId) {
if (userId == null) {
throw new IllegalArgumentException("null userName");
}
try {
Class<?> accessor = Class.forName("com.sap.security.um.service.UserManagementAccessor");
if (accessor != null) {
... | [
"public",
"static",
"UserInfo",
"getUserInfo",
"(",
"final",
"String",
"userId",
")",
"{",
"if",
"(",
"userId",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"null userName\"",
")",
";",
"}",
"try",
"{",
"Class",
"<",
"?",
">",... | never returns null | [
"never",
"returns",
"null"
] | b72e5f6356535fd045a931f8c544d4a8ea6e35a2 | https://github.com/aequologica/geppaequo/blob/b72e5f6356535fd045a931f8c544d4a8ea6e35a2/geppaequo-core/src/main/java/net/aequologica/neo/geppaequo/auth/AuthUtil.java#L15-L42 |
152,338 | tvesalainen/util | ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java | Predictor.method | public Predictor method(int method, int startPage)
{
input.add(new CommandLine<>(METHOD, 5, method, startPage));
return this;
} | java | public Predictor method(int method, int startPage)
{
input.add(new CommandLine<>(METHOD, 5, method, startPage));
return this;
} | [
"public",
"Predictor",
"method",
"(",
"int",
"method",
",",
"int",
"startPage",
")",
"{",
"input",
".",
"add",
"(",
"new",
"CommandLine",
"<>",
"(",
"METHOD",
",",
"5",
",",
"method",
",",
"startPage",
")",
")",
";",
"return",
"this",
";",
"}"
] | The METHOD command defines the analysis task to be performed for a
particular system configuration.
@param method
@return | [
"The",
"METHOD",
"command",
"defines",
"the",
"analysis",
"task",
"to",
"be",
"performed",
"for",
"a",
"particular",
"system",
"configuration",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java#L146-L150 |
152,339 | tvesalainen/util | ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java | Predictor.execute | public Predictor execute(KRun krun)
{
input.add(new CommandLine<>(EXECUTE, 5, krun.ordinal()));
return this;
} | java | public Predictor execute(KRun krun)
{
input.add(new CommandLine<>(EXECUTE, 5, krun.ordinal()));
return this;
} | [
"public",
"Predictor",
"execute",
"(",
"KRun",
"krun",
")",
"{",
"input",
".",
"add",
"(",
"new",
"CommandLine",
"<>",
"(",
"EXECUTE",
",",
"5",
",",
"krun",
".",
"ordinal",
"(",
")",
")",
")",
";",
"return",
"this",
";",
"}"
] | The EXECUTE command causes the program to perform the indicated analysis
task for the currently defined system configuration.
@param krun
@return | [
"The",
"EXECUTE",
"command",
"causes",
"the",
"program",
"to",
"perform",
"the",
"indicated",
"analysis",
"task",
"for",
"the",
"currently",
"defined",
"system",
"configuration",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java#L171-L175 |
152,340 | tvesalainen/util | ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java | Predictor.time | public Predictor time(int ihro, int ihre, int ihrs, boolean ut)
{
input.add(new CommandLine<>(TIME, 5, ihro, ihre, ihrs, ut ? 1 : -1));
return this;
} | java | public Predictor time(int ihro, int ihre, int ihrs, boolean ut)
{
input.add(new CommandLine<>(TIME, 5, ihro, ihre, ihrs, ut ? 1 : -1));
return this;
} | [
"public",
"Predictor",
"time",
"(",
"int",
"ihro",
",",
"int",
"ihre",
",",
"int",
"ihrs",
",",
"boolean",
"ut",
")",
"{",
"input",
".",
"add",
"(",
"new",
"CommandLine",
"<>",
"(",
"TIME",
",",
"5",
",",
"ihro",
",",
"ihre",
",",
"ihrs",
",",
"u... | The TIME command indicates the time of day for which the analysis and
predictions are to be performed.
@param ihro indicates the starting hour in universal time or in local
mean time at the transmitter.
@param ihre indicates the ending hour in universal time or in local mean
time at the transmitter.
@param ihrs indica... | [
"The",
"TIME",
"command",
"indicates",
"the",
"time",
"of",
"day",
"for",
"which",
"the",
"analysis",
"and",
"predictions",
"are",
"to",
"be",
"performed",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java#L205-L209 |
152,341 | tvesalainen/util | ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java | Predictor.month | public Predictor month(int nyear, Month... months)
{
Object[] arr = new Object[months.length + 1];
arr[0] = nyear;
int index = 1;
for (Month m : months)
{
arr[index++] = Double.valueOf(m.getValue());
}
input.add(new CommandLine<>(MONTH, 5,... | java | public Predictor month(int nyear, Month... months)
{
Object[] arr = new Object[months.length + 1];
arr[0] = nyear;
int index = 1;
for (Month m : months)
{
arr[index++] = Double.valueOf(m.getValue());
}
input.add(new CommandLine<>(MONTH, 5,... | [
"public",
"Predictor",
"month",
"(",
"int",
"nyear",
",",
"Month",
"...",
"months",
")",
"{",
"Object",
"[",
"]",
"arr",
"=",
"new",
"Object",
"[",
"months",
".",
"length",
"+",
"1",
"]",
";",
"arr",
"[",
"0",
"]",
"=",
"nyear",
";",
"int",
"inde... | The MONTH command indicates the year and months for which the analysis
and prediction are to be performed.
@param nyear indicates the year, but has no effect on the program
calculations.
@param months The program analysis and predictions are performed for each
of the months the user specifies. The desired month can be... | [
"The",
"MONTH",
"command",
"indicates",
"the",
"year",
"and",
"months",
"for",
"which",
"the",
"analysis",
"and",
"prediction",
"are",
"to",
"be",
"performed",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java#L222-L233 |
152,342 | tvesalainen/util | ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java | Predictor.sunspot | public Predictor sunspot(double... sunspot)
{
CommandLine<Double> line = new CommandLine<>(SUNSPOT, 5);
for (double s : sunspot)
{
line.add(s);
}
input.add(line);
return this;
} | java | public Predictor sunspot(double... sunspot)
{
CommandLine<Double> line = new CommandLine<>(SUNSPOT, 5);
for (double s : sunspot)
{
line.add(s);
}
input.add(line);
return this;
} | [
"public",
"Predictor",
"sunspot",
"(",
"double",
"...",
"sunspot",
")",
"{",
"CommandLine",
"<",
"Double",
">",
"line",
"=",
"new",
"CommandLine",
"<>",
"(",
"SUNSPOT",
",",
"5",
")",
";",
"for",
"(",
"double",
"s",
":",
"sunspot",
")",
"{",
"line",
... | The sunspot command line indicates the sunspot numbers of the solar
activity period of interest and is the 12-month smoothed mean for each of
the months specified.
@param sunspot
@return | [
"The",
"sunspot",
"command",
"line",
"indicates",
"the",
"sunspot",
"numbers",
"of",
"the",
"solar",
"activity",
"period",
"of",
"interest",
"and",
"is",
"the",
"12",
"-",
"month",
"smoothed",
"mean",
"for",
"each",
"of",
"the",
"months",
"specified",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java#L243-L252 |
152,343 | tvesalainen/util | ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java | Predictor.label | public Predictor label(String itran, String ircvr)
{
input.add(new CommandLine<>(LABEL, 20, itran, ircvr));
return this;
} | java | public Predictor label(String itran, String ircvr)
{
input.add(new CommandLine<>(LABEL, 20, itran, ircvr));
return this;
} | [
"public",
"Predictor",
"label",
"(",
"String",
"itran",
",",
"String",
"ircvr",
")",
"{",
"input",
".",
"add",
"(",
"new",
"CommandLine",
"<>",
"(",
"LABEL",
",",
"20",
",",
"itran",
",",
"ircvr",
")",
")",
";",
"return",
"this",
";",
"}"
] | The LABEL command contains alphanumeric information used to describe the
system location on both the input and output.
@param itran is an array of 20 alphanumeric characters used to describe
the transmitter location.
@param ircvr is an array of 20 alphanumeric characters used to describe
the receiver location.
@return | [
"The",
"LABEL",
"command",
"contains",
"alphanumeric",
"information",
"used",
"to",
"describe",
"the",
"system",
"location",
"on",
"both",
"the",
"input",
"and",
"output",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java#L264-L268 |
152,344 | tvesalainen/util | ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java | Predictor.circuit | public Predictor circuit(Location transmitter, Location receiver, boolean shorter)
{
this.receiverLocation = receiver;
input.add(new CommandLine<>(CIRCUIT, 5,
Math.abs(transmitter.getLatitude()),
transmitter.getLatitudeNS(),
Math.abs(transmitter.... | java | public Predictor circuit(Location transmitter, Location receiver, boolean shorter)
{
this.receiverLocation = receiver;
input.add(new CommandLine<>(CIRCUIT, 5,
Math.abs(transmitter.getLatitude()),
transmitter.getLatitudeNS(),
Math.abs(transmitter.... | [
"public",
"Predictor",
"circuit",
"(",
"Location",
"transmitter",
",",
"Location",
"receiver",
",",
"boolean",
"shorter",
")",
"{",
"this",
".",
"receiverLocation",
"=",
"receiver",
";",
"input",
".",
"add",
"(",
"new",
"CommandLine",
"<>",
"(",
"CIRCUIT",
"... | The CIRCUIT command contains the geographic coordinates of the
transmitter and receiver and a variable to indicate the user's choice
between shorter or longer great circle paths from the transmitter to the
receiver.
@param transmitter
@param receiver
@param shorter
@return | [
"The",
"CIRCUIT",
"command",
"contains",
"the",
"geographic",
"coordinates",
"of",
"the",
"transmitter",
"and",
"receiver",
"and",
"a",
"variable",
"to",
"indicate",
"the",
"user",
"s",
"choice",
"between",
"shorter",
"or",
"longer",
"great",
"circle",
"paths",
... | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java#L281-L296 |
152,345 | tvesalainen/util | ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java | Predictor.frequency | public Predictor frequency(double... frel)
{
frequencies = frel;
CommandLine<Double> line = new CommandLine<>(FREQUENCY, 5);
for (double f : frel)
{
line.add(f);
}
input.add(line);
return this;
} | java | public Predictor frequency(double... frel)
{
frequencies = frel;
CommandLine<Double> line = new CommandLine<>(FREQUENCY, 5);
for (double f : frel)
{
line.add(f);
}
input.add(line);
return this;
} | [
"public",
"Predictor",
"frequency",
"(",
"double",
"...",
"frel",
")",
"{",
"frequencies",
"=",
"frel",
";",
"CommandLine",
"<",
"Double",
">",
"line",
"=",
"new",
"CommandLine",
"<>",
"(",
"FREQUENCY",
",",
"5",
")",
";",
"for",
"(",
"double",
"f",
":... | The FREQUENCY complement command line contains up to 11 user-defined
frequencies that are used in the calculation.
@param frel FREL is the array of up to 11 user-defined frequencies in
megahertz.
@return | [
"The",
"FREQUENCY",
"complement",
"command",
"line",
"contains",
"up",
"to",
"11",
"user",
"-",
"defined",
"frequencies",
"that",
"are",
"used",
"in",
"the",
"calculation",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/ham/src/main/java/org/vesalainen/ham/itshfbc/Predictor.java#L355-L365 |
152,346 | pressgang-ccms/PressGangCCMSContentSpec | src/main/java/org/jboss/pressgang/ccms/contentspec/buglinks/BugLinkStrategyFactory.java | BugLinkStrategyFactory.create | public <T extends BaseBugLinkStrategy<?>> T create(final BugLinkType type, final String serverUrl,
final Object... additionalArgs) {
// Check that the internals are registered
if (!internalsRegistered) {
registerInternals();
}
if (map.containsKey(type)) {
... | java | public <T extends BaseBugLinkStrategy<?>> T create(final BugLinkType type, final String serverUrl,
final Object... additionalArgs) {
// Check that the internals are registered
if (!internalsRegistered) {
registerInternals();
}
if (map.containsKey(type)) {
... | [
"public",
"<",
"T",
"extends",
"BaseBugLinkStrategy",
"<",
"?",
">",
">",
"T",
"create",
"(",
"final",
"BugLinkType",
"type",
",",
"final",
"String",
"serverUrl",
",",
"final",
"Object",
"...",
"additionalArgs",
")",
"{",
"// Check that the internals are registere... | Create a strategy instance to be used for the specified type and server url.
@param type The type of strategy to get (eg JIRA, BUGZILLA, etc...)
@param serverUrl The url that the bug links should be used against.
@param additionalArgs Any additional arguments that are needed to instantiate/configure the strategy.
@par... | [
"Create",
"a",
"strategy",
"instance",
"to",
"be",
"used",
"for",
"the",
"specified",
"type",
"and",
"server",
"url",
"."
] | 2bc02e2971e4522b47a130fb7ae5a0f5ad377df1 | https://github.com/pressgang-ccms/PressGangCCMSContentSpec/blob/2bc02e2971e4522b47a130fb7ae5a0f5ad377df1/src/main/java/org/jboss/pressgang/ccms/contentspec/buglinks/BugLinkStrategyFactory.java#L59-L88 |
152,347 | tvesalainen/util | util/src/main/java/org/vesalainen/util/OSProcess.java | OSProcess.call | public static final int call(Path cwd, Map<String,String> env, String... args) throws IOException, InterruptedException
{
if (args.length == 1)
{
args = args[0].split("[ ]+");
}
String cmd = Arrays.stream(args).collect(Collectors.joining(" "));
JavaLogging.... | java | public static final int call(Path cwd, Map<String,String> env, String... args) throws IOException, InterruptedException
{
if (args.length == 1)
{
args = args[0].split("[ ]+");
}
String cmd = Arrays.stream(args).collect(Collectors.joining(" "));
JavaLogging.... | [
"public",
"static",
"final",
"int",
"call",
"(",
"Path",
"cwd",
",",
"Map",
"<",
"String",
",",
"String",
">",
"env",
",",
"String",
"...",
"args",
")",
"throws",
"IOException",
",",
"InterruptedException",
"{",
"if",
"(",
"args",
".",
"length",
"==",
... | Call os process and waits it's execution.
@param args Either command and arguments in single string or command and
arguments as separate strings.
<p>
call("netstat -an") is same as call("netstat", "-an")
@param cwd Current Working Directory
@param env Environment
@param args
@return
@throws IOException
@throws Interrup... | [
"Call",
"os",
"process",
"and",
"waits",
"it",
"s",
"execution",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/OSProcess.java#L63-L88 |
152,348 | PeachTech/peachweb-peachproxy-java | src/main/java/com/peachfuzzer/web/api/PeachProxy.java | PeachProxy.sessionSetup | public void sessionSetup(String project, String profile) throws PeachApiException
{
stashUnirestProxy();
if(_debug)
System.out.println(">>sessionSetup");
try
{
HttpResponse<JsonNode> ret = null;
try {
re... | java | public void sessionSetup(String project, String profile) throws PeachApiException
{
stashUnirestProxy();
if(_debug)
System.out.println(">>sessionSetup");
try
{
HttpResponse<JsonNode> ret = null;
try {
re... | [
"public",
"void",
"sessionSetup",
"(",
"String",
"project",
",",
"String",
"profile",
")",
"throws",
"PeachApiException",
"{",
"stashUnirestProxy",
"(",
")",
";",
"if",
"(",
"_debug",
")",
"System",
".",
"out",
".",
"println",
"(",
"\">>sessionSetup\"",
")",
... | Start a Peach API Security job.
This will start a new job with associated
proxy. Once the call returns the proxy is
ready to accept traffic.
Expected call flow:
sessionSetup(...)
Loop until finished:
testSetup(...)
testCase(...)
testTeardown(...)
suiteTeardown(...)
sessionTeardown(...)
@param project Name of proje... | [
"Start",
"a",
"Peach",
"API",
"Security",
"job",
"."
] | 0ca274b0d1668fb4be0fed7e247394438374de58 | https://github.com/PeachTech/peachweb-peachproxy-java/blob/0ca274b0d1668fb4be0fed7e247394438374de58/src/main/java/com/peachfuzzer/web/api/PeachProxy.java#L239-L284 |
152,349 | PeachTech/peachweb-peachproxy-java | src/main/java/com/peachfuzzer/web/api/PeachProxy.java | PeachProxy.sessionTeardown | public void sessionTeardown() throws PeachApiException
{
stashUnirestProxy();
if(_debug)
System.out.println(">>sessionTeardown");
try
{
HttpResponse<String> ret = null;
try {
ret = Unirest
... | java | public void sessionTeardown() throws PeachApiException
{
stashUnirestProxy();
if(_debug)
System.out.println(">>sessionTeardown");
try
{
HttpResponse<String> ret = null;
try {
ret = Unirest
... | [
"public",
"void",
"sessionTeardown",
"(",
")",
"throws",
"PeachApiException",
"{",
"stashUnirestProxy",
"(",
")",
";",
"if",
"(",
"_debug",
")",
"System",
".",
"out",
".",
"println",
"(",
"\">>sessionTeardown\"",
")",
";",
"try",
"{",
"HttpResponse",
"<",
"S... | Stop testing job and destroy proxy.
This will stop the current testing job and
destroy the proxy.
@throws PeachApiException | [
"Stop",
"testing",
"job",
"and",
"destroy",
"proxy",
"."
] | 0ca274b0d1668fb4be0fed7e247394438374de58 | https://github.com/PeachTech/peachweb-peachproxy-java/blob/0ca274b0d1668fb4be0fed7e247394438374de58/src/main/java/com/peachfuzzer/web/api/PeachProxy.java#L373-L411 |
152,350 | lightblueseas/vintage-time | src/main/java/de/alpharogroup/date/DateExtensions.java | DateExtensions.getAllDatePatterns | public static Map<String, Object> getAllDatePatterns() throws IllegalAccessException
{
final Field[] fields = DatePatterns.class.getFields();
final Map<String, Object> patterns = new HashMap<>(fields.length);
for (final Field field : fields)
{
patterns.put(field.getName(), field.get(field.getName()));
}
... | java | public static Map<String, Object> getAllDatePatterns() throws IllegalAccessException
{
final Field[] fields = DatePatterns.class.getFields();
final Map<String, Object> patterns = new HashMap<>(fields.length);
for (final Field field : fields)
{
patterns.put(field.getName(), field.get(field.getName()));
}
... | [
"public",
"static",
"Map",
"<",
"String",
",",
"Object",
">",
"getAllDatePatterns",
"(",
")",
"throws",
"IllegalAccessException",
"{",
"final",
"Field",
"[",
"]",
"fields",
"=",
"DatePatterns",
".",
"class",
".",
"getFields",
"(",
")",
";",
"final",
"Map",
... | Returns a map with all date patterns from the Interface DatePatterns. As key is the name from
the pattern.
@return Returns a Map with all date patterns from the Interface DatePatterns.
@throws IllegalAccessException
is thrown when an application tries to reflectively create an instance | [
"Returns",
"a",
"map",
"with",
"all",
"date",
"patterns",
"from",
"the",
"Interface",
"DatePatterns",
".",
"As",
"key",
"is",
"the",
"name",
"from",
"the",
"pattern",
"."
] | fbf201e679d9f9b92e7b5771f3eea1413cc2e113 | https://github.com/lightblueseas/vintage-time/blob/fbf201e679d9f9b92e7b5771f3eea1413cc2e113/src/main/java/de/alpharogroup/date/DateExtensions.java#L77-L86 |
152,351 | OrienteerBAP/orientdb-oda-birt | org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java | CustomDataSetWizardPage.createPageControl | private Control createPageControl( Composite parent )
{
Composite composite = new Composite( parent, SWT.NONE );
composite.setLayout( new GridLayout( 1, false ) );
GridData gridData = new GridData( GridData.HORIZONTAL_ALIGN_FILL
| GridData.VERTICAL_ALIGN_FILL );
comp... | java | private Control createPageControl( Composite parent )
{
Composite composite = new Composite( parent, SWT.NONE );
composite.setLayout( new GridLayout( 1, false ) );
GridData gridData = new GridData( GridData.HORIZONTAL_ALIGN_FILL
| GridData.VERTICAL_ALIGN_FILL );
comp... | [
"private",
"Control",
"createPageControl",
"(",
"Composite",
"parent",
")",
"{",
"Composite",
"composite",
"=",
"new",
"Composite",
"(",
"parent",
",",
"SWT",
".",
"NONE",
")",
";",
"composite",
".",
"setLayout",
"(",
"new",
"GridLayout",
"(",
"1",
",",
"f... | Creates custom control for user-defined query text. | [
"Creates",
"custom",
"control",
"for",
"user",
"-",
"defined",
"query",
"text",
"."
] | 62820c256fa1d221265e68b8ebb60f291a9a1405 | https://github.com/OrienteerBAP/orientdb-oda-birt/blob/62820c256fa1d221265e68b8ebb60f291a9a1405/org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java#L89-L116 |
152,352 | OrienteerBAP/orientdb-oda-birt | org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java | CustomDataSetWizardPage.initializeControl | private void initializeControl( )
{
/*
* To optionally restore the designer state of the previous design session, use
* getInitializationDesignerState();
*/
// Restores the last saved data set design
DataSetDesign dataSetDesign = getInitializationDesign();
... | java | private void initializeControl( )
{
/*
* To optionally restore the designer state of the previous design session, use
* getInitializationDesignerState();
*/
// Restores the last saved data set design
DataSetDesign dataSetDesign = getInitializationDesign();
... | [
"private",
"void",
"initializeControl",
"(",
")",
"{",
"/* \n * To optionally restore the designer state of the previous design session, use\n * getInitializationDesignerState(); \n */",
"// Restores the last saved data set design",
"DataSetDesign",
"dataSetDesign",
... | Initializes the page control with the last edited data set design. | [
"Initializes",
"the",
"page",
"control",
"with",
"the",
"last",
"edited",
"data",
"set",
"design",
"."
] | 62820c256fa1d221265e68b8ebb60f291a9a1405 | https://github.com/OrienteerBAP/orientdb-oda-birt/blob/62820c256fa1d221265e68b8ebb60f291a9a1405/org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java#L121-L147 |
152,353 | OrienteerBAP/orientdb-oda-birt | org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java | CustomDataSetWizardPage.validateData | private void validateData( )
{
boolean isValid = ( m_queryTextField != null &&
getQueryText() != null && getQueryText().trim().length() > 0 );
if( isValid )
setMessage( DEFAULT_MESSAGE );
else
setMessage( "Requires input value.", ERROR );
setPageComplete(... | java | private void validateData( )
{
boolean isValid = ( m_queryTextField != null &&
getQueryText() != null && getQueryText().trim().length() > 0 );
if( isValid )
setMessage( DEFAULT_MESSAGE );
else
setMessage( "Requires input value.", ERROR );
setPageComplete(... | [
"private",
"void",
"validateData",
"(",
")",
"{",
"boolean",
"isValid",
"=",
"(",
"m_queryTextField",
"!=",
"null",
"&&",
"getQueryText",
"(",
")",
"!=",
"null",
"&&",
"getQueryText",
"(",
")",
".",
"trim",
"(",
")",
".",
"length",
"(",
")",
">",
"0",
... | Validates the user-defined value in the page control exists
and not a blank text.
Set page message accordingly. | [
"Validates",
"the",
"user",
"-",
"defined",
"value",
"in",
"the",
"page",
"control",
"exists",
"and",
"not",
"a",
"blank",
"text",
".",
"Set",
"page",
"message",
"accordingly",
"."
] | 62820c256fa1d221265e68b8ebb60f291a9a1405 | https://github.com/OrienteerBAP/orientdb-oda-birt/blob/62820c256fa1d221265e68b8ebb60f291a9a1405/org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java#L201-L212 |
152,354 | OrienteerBAP/orientdb-oda-birt | org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java | CustomDataSetWizardPage.savePage | private void savePage( DataSetDesign dataSetDesign )
{
// save user-defined query text
String queryText = getQueryText();
dataSetDesign.setQueryText( queryText );
// obtain query's current runtime metadata, and maps it to the dataSetDesign
IConnection customConn = null;
... | java | private void savePage( DataSetDesign dataSetDesign )
{
// save user-defined query text
String queryText = getQueryText();
dataSetDesign.setQueryText( queryText );
// obtain query's current runtime metadata, and maps it to the dataSetDesign
IConnection customConn = null;
... | [
"private",
"void",
"savePage",
"(",
"DataSetDesign",
"dataSetDesign",
")",
"{",
"// save user-defined query text",
"String",
"queryText",
"=",
"getQueryText",
"(",
")",
";",
"dataSetDesign",
".",
"setQueryText",
"(",
"queryText",
")",
";",
"// obtain query's current run... | Saves the user-defined value in this page, and updates the specified
dataSetDesign with the latest design definition. | [
"Saves",
"the",
"user",
"-",
"defined",
"value",
"in",
"this",
"page",
"and",
"updates",
"the",
"specified",
"dataSetDesign",
"with",
"the",
"latest",
"design",
"definition",
"."
] | 62820c256fa1d221265e68b8ebb60f291a9a1405 | https://github.com/OrienteerBAP/orientdb-oda-birt/blob/62820c256fa1d221265e68b8ebb60f291a9a1405/org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java#L229-L268 |
152,355 | OrienteerBAP/orientdb-oda-birt | org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java | CustomDataSetWizardPage.updateDesign | private void updateDesign( DataSetDesign dataSetDesign,
IConnection conn, String queryText )
throws OdaException
{
IQuery query = conn.newQuery( null );
query.prepare( queryText );
// TODO a runtime driver might require a query to first execute... | java | private void updateDesign( DataSetDesign dataSetDesign,
IConnection conn, String queryText )
throws OdaException
{
IQuery query = conn.newQuery( null );
query.prepare( queryText );
// TODO a runtime driver might require a query to first execute... | [
"private",
"void",
"updateDesign",
"(",
"DataSetDesign",
"dataSetDesign",
",",
"IConnection",
"conn",
",",
"String",
"queryText",
")",
"throws",
"OdaException",
"{",
"IQuery",
"query",
"=",
"conn",
".",
"newQuery",
"(",
"null",
")",
";",
"query",
".",
"prepare... | Updates the given dataSetDesign with the queryText and its derived metadata
obtained from the ODA runtime connection. | [
"Updates",
"the",
"given",
"dataSetDesign",
"with",
"the",
"queryText",
"and",
"its",
"derived",
"metadata",
"obtained",
"from",
"the",
"ODA",
"runtime",
"connection",
"."
] | 62820c256fa1d221265e68b8ebb60f291a9a1405 | https://github.com/OrienteerBAP/orientdb-oda-birt/blob/62820c256fa1d221265e68b8ebb60f291a9a1405/org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java#L274-L315 |
152,356 | OrienteerBAP/orientdb-oda-birt | org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java | CustomDataSetWizardPage.updateResultSetDesign | private void updateResultSetDesign( IResultSetMetaData md,
DataSetDesign dataSetDesign )
throws OdaException
{
ResultSetColumns columns = DesignSessionUtil.toResultSetColumnsDesign( md );
ResultSetDefinition resultSetDefn = DesignFactory.eINSTANCE
.createResultSetD... | java | private void updateResultSetDesign( IResultSetMetaData md,
DataSetDesign dataSetDesign )
throws OdaException
{
ResultSetColumns columns = DesignSessionUtil.toResultSetColumnsDesign( md );
ResultSetDefinition resultSetDefn = DesignFactory.eINSTANCE
.createResultSetD... | [
"private",
"void",
"updateResultSetDesign",
"(",
"IResultSetMetaData",
"md",
",",
"DataSetDesign",
"dataSetDesign",
")",
"throws",
"OdaException",
"{",
"ResultSetColumns",
"columns",
"=",
"DesignSessionUtil",
".",
"toResultSetColumnsDesign",
"(",
"md",
")",
";",
"Result... | Updates the specified data set design's result set definition based on the
specified runtime metadata.
@param md runtime result set metadata instance
@param dataSetDesign data set design instance to update
@throws OdaException | [
"Updates",
"the",
"specified",
"data",
"set",
"design",
"s",
"result",
"set",
"definition",
"based",
"on",
"the",
"specified",
"runtime",
"metadata",
"."
] | 62820c256fa1d221265e68b8ebb60f291a9a1405 | https://github.com/OrienteerBAP/orientdb-oda-birt/blob/62820c256fa1d221265e68b8ebb60f291a9a1405/org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java#L324-L338 |
152,357 | OrienteerBAP/orientdb-oda-birt | org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java | CustomDataSetWizardPage.updateParameterDesign | private void updateParameterDesign( IParameterMetaData paramMd,
DataSetDesign dataSetDesign )
throws OdaException
{
DataSetParameters paramDesign =
DesignSessionUtil.toDataSetParametersDesign( paramMd,
DesignSessionUtil.toParameterModeDesign( IParameter... | java | private void updateParameterDesign( IParameterMetaData paramMd,
DataSetDesign dataSetDesign )
throws OdaException
{
DataSetParameters paramDesign =
DesignSessionUtil.toDataSetParametersDesign( paramMd,
DesignSessionUtil.toParameterModeDesign( IParameter... | [
"private",
"void",
"updateParameterDesign",
"(",
"IParameterMetaData",
"paramMd",
",",
"DataSetDesign",
"dataSetDesign",
")",
"throws",
"OdaException",
"{",
"DataSetParameters",
"paramDesign",
"=",
"DesignSessionUtil",
".",
"toDataSetParametersDesign",
"(",
"paramMd",
",",
... | Updates the specified data set design's parameter definition based on the
specified runtime metadata.
@param paramMd runtime parameter metadata instance
@param dataSetDesign data set design instance to update
@throws OdaException | [
"Updates",
"the",
"specified",
"data",
"set",
"design",
"s",
"parameter",
"definition",
"based",
"on",
"the",
"specified",
"runtime",
"metadata",
"."
] | 62820c256fa1d221265e68b8ebb60f291a9a1405 | https://github.com/OrienteerBAP/orientdb-oda-birt/blob/62820c256fa1d221265e68b8ebb60f291a9a1405/org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java#L347-L373 |
152,358 | OrienteerBAP/orientdb-oda-birt | org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java | CustomDataSetWizardPage.closeConnection | private void closeConnection( IConnection conn )
{
try
{
if( conn != null && conn.isOpen() )
conn.close();
}
catch ( OdaException e )
{
// ignore
e.printStackTrace();
}
} | java | private void closeConnection( IConnection conn )
{
try
{
if( conn != null && conn.isOpen() )
conn.close();
}
catch ( OdaException e )
{
// ignore
e.printStackTrace();
}
} | [
"private",
"void",
"closeConnection",
"(",
"IConnection",
"conn",
")",
"{",
"try",
"{",
"if",
"(",
"conn",
"!=",
"null",
"&&",
"conn",
".",
"isOpen",
"(",
")",
")",
"conn",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"OdaException",
"e",
")",
"... | Attempts to close given ODA connection. | [
"Attempts",
"to",
"close",
"given",
"ODA",
"connection",
"."
] | 62820c256fa1d221265e68b8ebb60f291a9a1405 | https://github.com/OrienteerBAP/orientdb-oda-birt/blob/62820c256fa1d221265e68b8ebb60f291a9a1405/org.orienteer.birt.orientdb.ui/src/org/orienteer/birt/orientdb/ui/impl/CustomDataSetWizardPage.java#L378-L390 |
152,359 | exKAZUu/GameAIArena | src/main/java/net/exkazuu/gameaiarena/api/Point2.java | Point2.getManhattanDistance | public int getManhattanDistance(Point2 that) {
return Math.abs(x - that.x) + Math.abs(y - that.y);
} | java | public int getManhattanDistance(Point2 that) {
return Math.abs(x - that.x) + Math.abs(y - that.y);
} | [
"public",
"int",
"getManhattanDistance",
"(",
"Point2",
"that",
")",
"{",
"return",
"Math",
".",
"abs",
"(",
"x",
"-",
"that",
".",
"x",
")",
"+",
"Math",
".",
"abs",
"(",
"y",
"-",
"that",
".",
"y",
")",
";",
"}"
] | Returns the manhattan distance between this and specified points.
@param that the point to calculate the manhattan distance
@return the manhattan distance between this and specified points | [
"Returns",
"the",
"manhattan",
"distance",
"between",
"this",
"and",
"specified",
"points",
"."
] | 66894c251569fb763174654d6c262c5176dfcf48 | https://github.com/exKAZUu/GameAIArena/blob/66894c251569fb763174654d6c262c5176dfcf48/src/main/java/net/exkazuu/gameaiarena/api/Point2.java#L136-L138 |
152,360 | exKAZUu/GameAIArena | src/main/java/net/exkazuu/gameaiarena/api/Point2.java | Point2.move | @Deprecated
public Point2 move(Direction4 direction) {
return new Point2(x + direction.dx, y + direction.dy);
} | java | @Deprecated
public Point2 move(Direction4 direction) {
return new Point2(x + direction.dx, y + direction.dy);
} | [
"@",
"Deprecated",
"public",
"Point2",
"move",
"(",
"Direction4",
"direction",
")",
"{",
"return",
"new",
"Point2",
"(",
"x",
"+",
"direction",
".",
"dx",
",",
"y",
"+",
"direction",
".",
"dy",
")",
";",
"}"
] | This method is deprecated so please use move method in Direction4. Returns the moved location
from this position with the specified direction.
@param direction the specified direction to move
@return the moved location | [
"This",
"method",
"is",
"deprecated",
"so",
"please",
"use",
"move",
"method",
"in",
"Direction4",
".",
"Returns",
"the",
"moved",
"location",
"from",
"this",
"position",
"with",
"the",
"specified",
"direction",
"."
] | 66894c251569fb763174654d6c262c5176dfcf48 | https://github.com/exKAZUu/GameAIArena/blob/66894c251569fb763174654d6c262c5176dfcf48/src/main/java/net/exkazuu/gameaiarena/api/Point2.java#L157-L160 |
152,361 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/xmlutil/XmlRecord.java | XmlRecord.setupField | public BaseField setupField(int iFieldSeq)
{
BaseField field = null;
if (iFieldSeq == DBConstants.MAIN_FIELD)
field = new CounterField(this, "ID", Constants.DEFAULT_FIELD_LENGTH, null, null);
return field;
} | java | public BaseField setupField(int iFieldSeq)
{
BaseField field = null;
if (iFieldSeq == DBConstants.MAIN_FIELD)
field = new CounterField(this, "ID", Constants.DEFAULT_FIELD_LENGTH, null, null);
return field;
} | [
"public",
"BaseField",
"setupField",
"(",
"int",
"iFieldSeq",
")",
"{",
"BaseField",
"field",
"=",
"null",
";",
"if",
"(",
"iFieldSeq",
"==",
"DBConstants",
".",
"MAIN_FIELD",
")",
"field",
"=",
"new",
"CounterField",
"(",
"this",
",",
"\"ID\"",
",",
"Cons... | Add this field in the Record's field sequence.. | [
"Add",
"this",
"field",
"in",
"the",
"Record",
"s",
"field",
"sequence",
".."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/xmlutil/XmlRecord.java#L94-L100 |
152,362 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/xmlutil/XmlRecord.java | XmlRecord.setupKey | public KeyArea setupKey(int iKeyArea)
{
KeyArea keyArea = null;
if (iKeyArea == DBConstants.MAIN_KEY_FIELD)
{
keyArea = this.makeIndex(DBConstants.UNIQUE, DBConstants.PRIMARY_KEY);
keyArea.addKeyField(DBConstants.MAIN_FIELD, DBConstants.ASCENDING);
}
r... | java | public KeyArea setupKey(int iKeyArea)
{
KeyArea keyArea = null;
if (iKeyArea == DBConstants.MAIN_KEY_FIELD)
{
keyArea = this.makeIndex(DBConstants.UNIQUE, DBConstants.PRIMARY_KEY);
keyArea.addKeyField(DBConstants.MAIN_FIELD, DBConstants.ASCENDING);
}
r... | [
"public",
"KeyArea",
"setupKey",
"(",
"int",
"iKeyArea",
")",
"{",
"KeyArea",
"keyArea",
"=",
"null",
";",
"if",
"(",
"iKeyArea",
"==",
"DBConstants",
".",
"MAIN_KEY_FIELD",
")",
"{",
"keyArea",
"=",
"this",
".",
"makeIndex",
"(",
"DBConstants",
".",
"UNIQ... | Add this key area description to the Record.. | [
"Add",
"this",
"key",
"area",
"description",
"to",
"the",
"Record",
".."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/xmlutil/XmlRecord.java#L104-L113 |
152,363 | pressgang-ccms/PressGangCCMSContentSpec | src/main/java/org/jboss/pressgang/ccms/contentspec/sort/CSNodeSorter.java | CSNodeSorter.findEntry | private static <T extends Node> Map.Entry<CSNodeWrapper, T> findEntry(Map<CSNodeWrapper, T> map, Integer id) {
if (id == null) return null;
for (final Map.Entry<CSNodeWrapper, T> entry : map.entrySet()) {
if (entry.getKey().getNextNode() != null && entry.getKey().getNextNode().getId().equal... | java | private static <T extends Node> Map.Entry<CSNodeWrapper, T> findEntry(Map<CSNodeWrapper, T> map, Integer id) {
if (id == null) return null;
for (final Map.Entry<CSNodeWrapper, T> entry : map.entrySet()) {
if (entry.getKey().getNextNode() != null && entry.getKey().getNextNode().getId().equal... | [
"private",
"static",
"<",
"T",
"extends",
"Node",
">",
"Map",
".",
"Entry",
"<",
"CSNodeWrapper",
",",
"T",
">",
"findEntry",
"(",
"Map",
"<",
"CSNodeWrapper",
",",
"T",
">",
"map",
",",
"Integer",
"id",
")",
"{",
"if",
"(",
"id",
"==",
"null",
")"... | Find the entry, how has a next node that matches a specified by a node id.
@param map The map to find the entry from.
@param id The next node ID of to find in the map
@return The Entry value where the key matches the node id otherwise null. | [
"Find",
"the",
"entry",
"how",
"has",
"a",
"next",
"node",
"that",
"matches",
"a",
"specified",
"by",
"a",
"node",
"id",
"."
] | 2bc02e2971e4522b47a130fb7ae5a0f5ad377df1 | https://github.com/pressgang-ccms/PressGangCCMSContentSpec/blob/2bc02e2971e4522b47a130fb7ae5a0f5ad377df1/src/main/java/org/jboss/pressgang/ccms/contentspec/sort/CSNodeSorter.java#L68-L78 |
152,364 | pressgang-ccms/PressGangCCMSContentSpec | src/main/java/org/jboss/pressgang/ccms/contentspec/sort/CSNodeSorter.java | CSNodeSorter.findLastEntry | private static <T extends Node> Map.Entry<CSNodeWrapper, T> findLastEntry(Map<CSNodeWrapper, T> map) {
Map.Entry<CSNodeWrapper, T> nodeEntry = null;
// Find the initial entry
for (final Map.Entry<CSNodeWrapper, T> entry : map.entrySet()) {
if (entry.getKey().getNextNode() == null) {... | java | private static <T extends Node> Map.Entry<CSNodeWrapper, T> findLastEntry(Map<CSNodeWrapper, T> map) {
Map.Entry<CSNodeWrapper, T> nodeEntry = null;
// Find the initial entry
for (final Map.Entry<CSNodeWrapper, T> entry : map.entrySet()) {
if (entry.getKey().getNextNode() == null) {... | [
"private",
"static",
"<",
"T",
"extends",
"Node",
">",
"Map",
".",
"Entry",
"<",
"CSNodeWrapper",
",",
"T",
">",
"findLastEntry",
"(",
"Map",
"<",
"CSNodeWrapper",
",",
"T",
">",
"map",
")",
"{",
"Map",
".",
"Entry",
"<",
"CSNodeWrapper",
",",
"T",
"... | Finds the initial entry for the unordered map.
@param map The unordered map.
@return The initial entry to start sorting the map from. | [
"Finds",
"the",
"initial",
"entry",
"for",
"the",
"unordered",
"map",
"."
] | 2bc02e2971e4522b47a130fb7ae5a0f5ad377df1 | https://github.com/pressgang-ccms/PressGangCCMSContentSpec/blob/2bc02e2971e4522b47a130fb7ae5a0f5ad377df1/src/main/java/org/jboss/pressgang/ccms/contentspec/sort/CSNodeSorter.java#L86-L98 |
152,365 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.checkSecurity | public boolean checkSecurity(JBasePanel baseScreen)
{
if ((this.getApplication() == null) || (baseScreen == null))
return true; // Never
int iErrorCode = baseScreen.checkSecurity(this.getApplication());
if (iErrorCode == Constants.READ_ACCESS)
{
in... | java | public boolean checkSecurity(JBasePanel baseScreen)
{
if ((this.getApplication() == null) || (baseScreen == null))
return true; // Never
int iErrorCode = baseScreen.checkSecurity(this.getApplication());
if (iErrorCode == Constants.READ_ACCESS)
{
in... | [
"public",
"boolean",
"checkSecurity",
"(",
"JBasePanel",
"baseScreen",
")",
"{",
"if",
"(",
"(",
"this",
".",
"getApplication",
"(",
")",
"==",
"null",
")",
"||",
"(",
"baseScreen",
"==",
"null",
")",
")",
"return",
"true",
";",
"// Never",
"int",
"iErro... | This is just for convenience. A simple way to change or set the screen for this applet.
The old screen is removed and the new screen is added.
This method is also used to switch a sub-screen to a new sub-screen.
@param parent The (optional) parent to add this screen to (BaseApplet keeps track of the parent).
@param bas... | [
"This",
"is",
"just",
"for",
"convenience",
".",
"A",
"simple",
"way",
"to",
"change",
"or",
"set",
"the",
"screen",
"for",
"this",
"applet",
".",
"The",
"old",
"screen",
"is",
"removed",
"and",
"the",
"new",
"screen",
"is",
"added",
".",
"This",
"meth... | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L352-L396 |
152,366 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.onLogonDialog | public int onLogonDialog()
{
String strDisplay = "Login required";
strDisplay = this.getTask().getString(strDisplay);
for (int i = 1; i < 3; i++)
{
String strUserName = this.getProperty(Params.USER_NAME);
Frame frame = ScreenUtil.getFrame(this);
Lo... | java | public int onLogonDialog()
{
String strDisplay = "Login required";
strDisplay = this.getTask().getString(strDisplay);
for (int i = 1; i < 3; i++)
{
String strUserName = this.getProperty(Params.USER_NAME);
Frame frame = ScreenUtil.getFrame(this);
Lo... | [
"public",
"int",
"onLogonDialog",
"(",
")",
"{",
"String",
"strDisplay",
"=",
"\"Login required\"",
";",
"strDisplay",
"=",
"this",
".",
"getTask",
"(",
")",
".",
"getString",
"(",
"strDisplay",
")",
";",
"for",
"(",
"int",
"i",
"=",
"1",
";",
"i",
"<"... | Display the logon dialog and login.
@return | [
"Display",
"the",
"logon",
"dialog",
"and",
"login",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L401-L448 |
152,367 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.onChangePassword | public int onChangePassword()
{
String strDisplay = "Login required";
strDisplay = this.getTask().getString(strDisplay);
for (int i = 1; i < 3; i++)
{
String strUserName = this.getProperty(Params.USER_NAME);
Frame frame = ScreenUtil.getFrame(this);
... | java | public int onChangePassword()
{
String strDisplay = "Login required";
strDisplay = this.getTask().getString(strDisplay);
for (int i = 1; i < 3; i++)
{
String strUserName = this.getProperty(Params.USER_NAME);
Frame frame = ScreenUtil.getFrame(this);
... | [
"public",
"int",
"onChangePassword",
"(",
")",
"{",
"String",
"strDisplay",
"=",
"\"Login required\"",
";",
"strDisplay",
"=",
"this",
".",
"getTask",
"(",
")",
".",
"getString",
"(",
"strDisplay",
")",
";",
"for",
"(",
"int",
"i",
"=",
"1",
";",
"i",
... | Display the change password dialog and change the password.
@return | [
"Display",
"the",
"change",
"password",
"dialog",
"and",
"change",
"the",
"password",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L478-L517 |
152,368 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.changeSubScreen | public boolean changeSubScreen(Container parent, JBasePanel baseScreen, String strCommandToPush, int options)
{
if ((parent == null) || (parent == this))
parent = m_parent;
boolean bScreenChange = false;
if (!this.checkSecurity(baseScreen))
{
baseScreen.free()... | java | public boolean changeSubScreen(Container parent, JBasePanel baseScreen, String strCommandToPush, int options)
{
if ((parent == null) || (parent == this))
parent = m_parent;
boolean bScreenChange = false;
if (!this.checkSecurity(baseScreen))
{
baseScreen.free()... | [
"public",
"boolean",
"changeSubScreen",
"(",
"Container",
"parent",
",",
"JBasePanel",
"baseScreen",
",",
"String",
"strCommandToPush",
",",
"int",
"options",
")",
"{",
"if",
"(",
"(",
"parent",
"==",
"null",
")",
"||",
"(",
"parent",
"==",
"this",
")",
")... | Change the sub-screen.
@param parent
@param baseScreen
@param strCommandToPush
@param options
@return | [
"Change",
"the",
"sub",
"-",
"screen",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L526-L570 |
152,369 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.loadImageIcon | public ImageIcon loadImageIcon(String filename, String description)
{
filename = Util.getImageFilename(filename, "buttons");
URL url = null;
if (this.getApplication() != null)
url = this.getApplication().getResourceURL(filename, this);
if (url == null)
{ // Not a ... | java | public ImageIcon loadImageIcon(String filename, String description)
{
filename = Util.getImageFilename(filename, "buttons");
URL url = null;
if (this.getApplication() != null)
url = this.getApplication().getResourceURL(filename, this);
if (url == null)
{ // Not a ... | [
"public",
"ImageIcon",
"loadImageIcon",
"(",
"String",
"filename",
",",
"String",
"description",
")",
"{",
"filename",
"=",
"Util",
".",
"getImageFilename",
"(",
"filename",
",",
"\"buttons\"",
")",
";",
"URL",
"url",
"=",
"null",
";",
"if",
"(",
"this",
"... | Get this image.
@param filename The filename of this image (if no path, assumes images/buttons; if not ext assumes .gif).
@param description The image description.
@return The image. | [
"Get",
"this",
"image",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L655-L671 |
152,370 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.setBackgroundColor | public void setBackgroundColor(Color colorBackground)
{
m_colorBackground = colorBackground;
if (m_parent != null)
{
JTiledImage panel = (JTiledImage)JBasePanel.getSubScreen(this, JTiledImage.class);
if (panel != null)
panel.setBackground(colorBackgrou... | java | public void setBackgroundColor(Color colorBackground)
{
m_colorBackground = colorBackground;
if (m_parent != null)
{
JTiledImage panel = (JTiledImage)JBasePanel.getSubScreen(this, JTiledImage.class);
if (panel != null)
panel.setBackground(colorBackgrou... | [
"public",
"void",
"setBackgroundColor",
"(",
"Color",
"colorBackground",
")",
"{",
"m_colorBackground",
"=",
"colorBackground",
";",
"if",
"(",
"m_parent",
"!=",
"null",
")",
"{",
"JTiledImage",
"panel",
"=",
"(",
"JTiledImage",
")",
"JBasePanel",
".",
"getSubSc... | Set the background image's color.
@param colorBackground The color to set the background. | [
"Set",
"the",
"background",
"image",
"s",
"color",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L792-L801 |
152,371 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.nameToColor | public static Color nameToColor(String strColor)
{
final Object[][] obj = {
{"black", Color.black},
{"blue", Color.blue},
{"cyan", Color.cyan},
{"darkGray", Color.darkGray},
{"gray", Color.gray},
{"green", Color.green},
{"li... | java | public static Color nameToColor(String strColor)
{
final Object[][] obj = {
{"black", Color.black},
{"blue", Color.blue},
{"cyan", Color.cyan},
{"darkGray", Color.darkGray},
{"gray", Color.gray},
{"green", Color.green},
{"li... | [
"public",
"static",
"Color",
"nameToColor",
"(",
"String",
"strColor",
")",
"{",
"final",
"Object",
"[",
"]",
"[",
"]",
"obj",
"=",
"{",
"{",
"\"black\"",
",",
"Color",
".",
"black",
"}",
",",
"{",
"\"blue\"",
",",
"Color",
".",
"blue",
"}",
",",
"... | Convert this color string to the Color object.
@param strColor Name of the color (ie., gray or 0xFFFFCF or #FFFFCF).
@return The java color object (or null). | [
"Convert",
"this",
"color",
"string",
"to",
"the",
"Color",
"object",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L825-L852 |
152,372 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.doAction | public boolean doAction(String strAction, int iOptions)
{
if (Constants.BACK.equalsIgnoreCase(strAction))
{
String strPrevAction = this.popHistory(1, false); // Current screen
strAction = this.popHistory(1, false); // Last screen
if (strAction != null) // I d... | java | public boolean doAction(String strAction, int iOptions)
{
if (Constants.BACK.equalsIgnoreCase(strAction))
{
String strPrevAction = this.popHistory(1, false); // Current screen
strAction = this.popHistory(1, false); // Last screen
if (strAction != null) // I d... | [
"public",
"boolean",
"doAction",
"(",
"String",
"strAction",
",",
"int",
"iOptions",
")",
"{",
"if",
"(",
"Constants",
".",
"BACK",
".",
"equalsIgnoreCase",
"(",
"strAction",
")",
")",
"{",
"String",
"strPrevAction",
"=",
"this",
".",
"popHistory",
"(",
"1... | Do some applet-wide action.
For example, submit or reset. Pass this action down to all the JBaseScreens.
Remember to override this method to send the actual data!
@param iOptions Extra command options | [
"Do",
"some",
"applet",
"-",
"wide",
"action",
".",
"For",
"example",
"submit",
"or",
"reset",
".",
"Pass",
"this",
"action",
"down",
"to",
"all",
"the",
"JBaseScreens",
".",
"Remember",
"to",
"override",
"this",
"method",
"to",
"send",
"the",
"actual",
... | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L859-L910 |
152,373 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.getHelpPageOptions | public int getHelpPageOptions(int iOptions)
{
String strPreference = this.getProperty(ThinMenuConstants.USER_HELP_DISPLAY);
if ((strPreference == null) || (strPreference.length() == 0))
strPreference = this.getProperty(ThinMenuConstants.HELP_DISPLAY);
if (this.getHelpView() == null)
if (T... | java | public int getHelpPageOptions(int iOptions)
{
String strPreference = this.getProperty(ThinMenuConstants.USER_HELP_DISPLAY);
if ((strPreference == null) || (strPreference.length() == 0))
strPreference = this.getProperty(ThinMenuConstants.HELP_DISPLAY);
if (this.getHelpView() == null)
if (T... | [
"public",
"int",
"getHelpPageOptions",
"(",
"int",
"iOptions",
")",
"{",
"String",
"strPreference",
"=",
"this",
".",
"getProperty",
"(",
"ThinMenuConstants",
".",
"USER_HELP_DISPLAY",
")",
";",
"if",
"(",
"(",
"strPreference",
"==",
"null",
")",
"||",
"(",
... | Get the display preference for the help window.
@return | [
"Get",
"the",
"display",
"preference",
"for",
"the",
"help",
"window",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L915-L941 |
152,374 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.makeRemoteSession | public RemoteSession makeRemoteSession(RemoteSession parentSessionObject, String strSessionClass)
{
RemoteTask server = (RemoteTask)this.getRemoteTask();
try {
synchronized (server)
{ // In case this is called from another task
if (parentSessionObject == n... | java | public RemoteSession makeRemoteSession(RemoteSession parentSessionObject, String strSessionClass)
{
RemoteTask server = (RemoteTask)this.getRemoteTask();
try {
synchronized (server)
{ // In case this is called from another task
if (parentSessionObject == n... | [
"public",
"RemoteSession",
"makeRemoteSession",
"(",
"RemoteSession",
"parentSessionObject",
",",
"String",
"strSessionClass",
")",
"{",
"RemoteTask",
"server",
"=",
"(",
"RemoteTask",
")",
"this",
".",
"getRemoteTask",
"(",
")",
";",
"try",
"{",
"synchronized",
"... | Create this session with this class name at the remote server.
@param parentSessionObject The (optional) parent session.
@param strSessionClass The class name of the remote session to create.
@return The new remote session (or null if not found). | [
"Create",
"this",
"session",
"with",
"this",
"class",
"name",
"at",
"the",
"remote",
"server",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L1166-L1183 |
152,375 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.popHistory | public String popHistory(int quanityToPop, boolean bPopFromBrowser)
{
String strHistory = null;
for (int i = 0; i < quanityToPop; i++)
{
strHistory = null;
if (m_vHistory != null) if (m_vHistory.size() > 0)
strHistory = (String)m_vHistory.remove(m_vHistory.size... | java | public String popHistory(int quanityToPop, boolean bPopFromBrowser)
{
String strHistory = null;
for (int i = 0; i < quanityToPop; i++)
{
strHistory = null;
if (m_vHistory != null) if (m_vHistory.size() > 0)
strHistory = (String)m_vHistory.remove(m_vHistory.size... | [
"public",
"String",
"popHistory",
"(",
"int",
"quanityToPop",
",",
"boolean",
"bPopFromBrowser",
")",
"{",
"String",
"strHistory",
"=",
"null",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"quanityToPop",
";",
"i",
"++",
")",
"{",
"strHistory",
... | Pop this command off the history stack.
@param quanityToPop The number of commands to pop off the stack
@param bPopFromBrowser Pop them off the browser stack also?
NOTE: The params are different from the next call. | [
"Pop",
"this",
"command",
"off",
"the",
"history",
"stack",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L1261-L1273 |
152,376 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.popBrowserHistory | public void popBrowserHistory(int quanityToPop, boolean bCommandHandledByJava, String browserTitle)
{
if (this.getBrowserManager() != null)
this.getBrowserManager().popBrowserHistory(quanityToPop, bCommandHandledByJava, this.getStatusText(Constants.INFORMATION)); // Let browser know about... | java | public void popBrowserHistory(int quanityToPop, boolean bCommandHandledByJava, String browserTitle)
{
if (this.getBrowserManager() != null)
this.getBrowserManager().popBrowserHistory(quanityToPop, bCommandHandledByJava, this.getStatusText(Constants.INFORMATION)); // Let browser know about... | [
"public",
"void",
"popBrowserHistory",
"(",
"int",
"quanityToPop",
",",
"boolean",
"bCommandHandledByJava",
",",
"String",
"browserTitle",
")",
"{",
"if",
"(",
"this",
".",
"getBrowserManager",
"(",
")",
"!=",
"null",
")",
"this",
".",
"getBrowserManager",
"(",
... | Pop commands off the browser stack.
@param quanityToPop The number of commands to pop off the stack
@param bCommandHandledByJava If I say false, the browser will do a 'back', otherwise, it just pops to top command(s) | [
"Pop",
"commands",
"off",
"the",
"browser",
"stack",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L1279-L1283 |
152,377 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.getInitialCommand | public String getInitialCommand(boolean bIncludeAppletCommands)
{
String strCommand = Constants.BLANK;
if (bIncludeAppletCommands)
{
if (this.getProperty(Params.APPLET) != null)
strCommand = Util.addURLParam(strCommand, Params.APPLET, this.getProperty(Params.APPLET));
else if (this.ge... | java | public String getInitialCommand(boolean bIncludeAppletCommands)
{
String strCommand = Constants.BLANK;
if (bIncludeAppletCommands)
{
if (this.getProperty(Params.APPLET) != null)
strCommand = Util.addURLParam(strCommand, Params.APPLET, this.getProperty(Params.APPLET));
else if (this.ge... | [
"public",
"String",
"getInitialCommand",
"(",
"boolean",
"bIncludeAppletCommands",
")",
"{",
"String",
"strCommand",
"=",
"Constants",
".",
"BLANK",
";",
"if",
"(",
"bIncludeAppletCommands",
")",
"{",
"if",
"(",
"this",
".",
"getProperty",
"(",
"Params",
".",
... | Get the original screen params.
@param bIncludeAppletCommands Include the initial applet commands?
@return | [
"Get",
"the",
"original",
"screen",
"params",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L1309-L1350 |
152,378 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.cleanCommand | public String cleanCommand(String command)
{
if (command == null)
return command;
Map<String,Object> properties = Util.parseArgs(null, command);
properties.remove(Params.APPLET);
properties.remove("code");
properties.remove("jnlpjars");
properties.remove("jnlpextensions");
properties.remove(ScreenUtil... | java | public String cleanCommand(String command)
{
if (command == null)
return command;
Map<String,Object> properties = Util.parseArgs(null, command);
properties.remove(Params.APPLET);
properties.remove("code");
properties.remove("jnlpjars");
properties.remove("jnlpextensions");
properties.remove(ScreenUtil... | [
"public",
"String",
"cleanCommand",
"(",
"String",
"command",
")",
"{",
"if",
"(",
"command",
"==",
"null",
")",
"return",
"command",
";",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
"=",
"Util",
".",
"parseArgs",
"(",
"null",
",",
"command",... | Clean the javascript command for java use. | [
"Clean",
"the",
"javascript",
"command",
"for",
"java",
"use",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L1354-L1366 |
152,379 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.onAbout | public boolean onAbout()
{
Application application = this.getApplication();
application.getResources(null, true); // Set the resource bundle to default
String strTitle = this.getString(ThinMenuConstants.ABOUT);
String strMessage = this.getString("Copyright");
JOptionPane.sh... | java | public boolean onAbout()
{
Application application = this.getApplication();
application.getResources(null, true); // Set the resource bundle to default
String strTitle = this.getString(ThinMenuConstants.ABOUT);
String strMessage = this.getString("Copyright");
JOptionPane.sh... | [
"public",
"boolean",
"onAbout",
"(",
")",
"{",
"Application",
"application",
"=",
"this",
".",
"getApplication",
"(",
")",
";",
"application",
".",
"getResources",
"(",
"null",
",",
"true",
")",
";",
"// Set the resource bundle to default",
"String",
"strTitle",
... | Throw up a dialog box to show "about" info.
@return true. | [
"Throw",
"up",
"a",
"dialog",
"box",
"to",
"show",
"about",
"info",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L1609-L1617 |
152,380 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.setScreenProperties | public void setScreenProperties(PropertyOwner propertyOwner, Map<String,Object> properties)
{
Frame frame = ScreenUtil.getFrame(this);
ScreenUtil.updateLookAndFeel((Frame)frame, propertyOwner, properties);
Color colorBackgroundNew = ScreenUtil.getColor(ScreenUtil.BACKGROUND_COLOR, propertyOw... | java | public void setScreenProperties(PropertyOwner propertyOwner, Map<String,Object> properties)
{
Frame frame = ScreenUtil.getFrame(this);
ScreenUtil.updateLookAndFeel((Frame)frame, propertyOwner, properties);
Color colorBackgroundNew = ScreenUtil.getColor(ScreenUtil.BACKGROUND_COLOR, propertyOw... | [
"public",
"void",
"setScreenProperties",
"(",
"PropertyOwner",
"propertyOwner",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
")",
"{",
"Frame",
"frame",
"=",
"ScreenUtil",
".",
"getFrame",
"(",
"this",
")",
";",
"ScreenUtil",
".",
"updateLookAn... | Change the screen properties to these properties.
@param propertyOwner The properties to change to. | [
"Change",
"the",
"screen",
"properties",
"to",
"these",
"properties",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L1665-L1672 |
152,381 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java | BaseApplet.setupLookAndFeel | @SuppressWarnings({ "unchecked", "rawtypes" })
public void setupLookAndFeel(PropertyOwner propertyOwner)
{
Map<String,Object> properties = null;
if (propertyOwner == null)
propertyOwner = this.retrieveUserProperties(Params.SCREEN);
if (propertyOwner == null)
{ // Th... | java | @SuppressWarnings({ "unchecked", "rawtypes" })
public void setupLookAndFeel(PropertyOwner propertyOwner)
{
Map<String,Object> properties = null;
if (propertyOwner == null)
propertyOwner = this.retrieveUserProperties(Params.SCREEN);
if (propertyOwner == null)
{ // Th... | [
"@",
"SuppressWarnings",
"(",
"{",
"\"unchecked\"",
",",
"\"rawtypes\"",
"}",
")",
"public",
"void",
"setupLookAndFeel",
"(",
"PropertyOwner",
"propertyOwner",
")",
"{",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
"=",
"null",
";",
"if",
"(",
"pr... | Get the screen properties and set up the look and feel.
@param propertyOwner The screen properties (if null, I will look them up). | [
"Get",
"the",
"screen",
"properties",
"and",
"set",
"up",
"the",
"look",
"and",
"feel",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/BaseApplet.java#L1677-L1710 |
152,382 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/menu/JBaseMenuScreen.java | JBaseMenuScreen.getGBConstraints | public GridBagConstraints getGBConstraints()
{
if (m_gbconstraints == null)
m_gbconstraints = new GridBagConstraints();
else
{ // Set back to default values
m_gbconstraints.gridx = GridBagConstraints.RELATIVE;
m_gbconstraints.gridy = GridBagConstraints.REL... | java | public GridBagConstraints getGBConstraints()
{
if (m_gbconstraints == null)
m_gbconstraints = new GridBagConstraints();
else
{ // Set back to default values
m_gbconstraints.gridx = GridBagConstraints.RELATIVE;
m_gbconstraints.gridy = GridBagConstraints.REL... | [
"public",
"GridBagConstraints",
"getGBConstraints",
"(",
")",
"{",
"if",
"(",
"m_gbconstraints",
"==",
"null",
")",
"m_gbconstraints",
"=",
"new",
"GridBagConstraints",
"(",
")",
";",
"else",
"{",
"// Set back to default values",
"m_gbconstraints",
".",
"gridx",
"="... | Get standard GridBagConstraints.
The grid bag constrain is reset to the original value in this method.
@return The grid bag constraints. | [
"Get",
"standard",
"GridBagConstraints",
".",
"The",
"grid",
"bag",
"constrain",
"is",
"reset",
"to",
"the",
"original",
"value",
"in",
"this",
"method",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/menu/JBaseMenuScreen.java#L75-L97 |
152,383 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/menu/JBaseMenuScreen.java | JBaseMenuScreen.getMenuIcon | public String getMenuIcon(FieldList record)
{
FieldInfo field = record.getField("IconResource");
String strIcon = null;
if (field != null)
{
strIcon = field.toString();
if ((strIcon != null) && (strIcon.length() > 0))
return strIcon;
}
... | java | public String getMenuIcon(FieldList record)
{
FieldInfo field = record.getField("IconResource");
String strIcon = null;
if (field != null)
{
strIcon = field.toString();
if ((strIcon != null) && (strIcon.length() > 0))
return strIcon;
}
... | [
"public",
"String",
"getMenuIcon",
"(",
"FieldList",
"record",
")",
"{",
"FieldInfo",
"field",
"=",
"record",
".",
"getField",
"(",
"\"IconResource\"",
")",
";",
"String",
"strIcon",
"=",
"null",
";",
"if",
"(",
"field",
"!=",
"null",
")",
"{",
"strIcon",
... | Get the menu icon.
@param record The menu record.
@return The icon filename for this menu item. | [
"Get",
"the",
"menu",
"icon",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/menu/JBaseMenuScreen.java#L158-L179 |
152,384 | jbundle/jbundle | thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/menu/JBaseMenuScreen.java | JBaseMenuScreen.getMenuLink | public String getMenuLink(FieldList record)
{
FieldInfo field = record.getField("Type");
if ((field != null) && (!field.isNull()))
{
String strType = field.toString();
String strParams = record.getField("Params").toString();
if (strParams == null)
... | java | public String getMenuLink(FieldList record)
{
FieldInfo field = record.getField("Type");
if ((field != null) && (!field.isNull()))
{
String strType = field.toString();
String strParams = record.getField("Params").toString();
if (strParams == null)
... | [
"public",
"String",
"getMenuLink",
"(",
"FieldList",
"record",
")",
"{",
"FieldInfo",
"field",
"=",
"record",
".",
"getField",
"(",
"\"Type\"",
")",
";",
"if",
"(",
"(",
"field",
"!=",
"null",
")",
"&&",
"(",
"!",
"field",
".",
"isNull",
"(",
")",
")... | Get the menu command to send to handle command.
@param record The menu record.
@return The command for this menu item. | [
"Get",
"the",
"menu",
"command",
"to",
"send",
"to",
"handle",
"command",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/screen/src/main/java/org/jbundle/thin/base/screen/menu/JBaseMenuScreen.java#L185-L221 |
152,385 | lightblueseas/file-worker | src/main/java/de/alpharogroup/file/FileExtensions.java | FileExtensions.download | public static byte[] download(final URI uri) throws IOException
{
final File tmpFile = new File(uri);
return ReadFileExtensions.toByteArray(tmpFile);
} | java | public static byte[] download(final URI uri) throws IOException
{
final File tmpFile = new File(uri);
return ReadFileExtensions.toByteArray(tmpFile);
} | [
"public",
"static",
"byte",
"[",
"]",
"download",
"(",
"final",
"URI",
"uri",
")",
"throws",
"IOException",
"{",
"final",
"File",
"tmpFile",
"=",
"new",
"File",
"(",
"uri",
")",
";",
"return",
"ReadFileExtensions",
".",
"toByteArray",
"(",
"tmpFile",
")",
... | Downloads Data from the given URI.
@param uri
The URI from where to download.
@return Returns a byte array or null.
@throws IOException
Signals that an I/O exception has occurred. | [
"Downloads",
"Data",
"from",
"the",
"given",
"URI",
"."
] | 2c81de10fb5d68de64c1abc3ed64ca681ce76da8 | https://github.com/lightblueseas/file-worker/blob/2c81de10fb5d68de64c1abc3ed64ca681ce76da8/src/main/java/de/alpharogroup/file/FileExtensions.java#L59-L63 |
152,386 | lightblueseas/file-worker | src/main/java/de/alpharogroup/file/FileExtensions.java | FileExtensions.getAbsolutPathWithoutFilename | public static String getAbsolutPathWithoutFilename(final File file)
{
final String absolutePath = file.getAbsolutePath();
int lastSlash_index = absolutePath.lastIndexOf("/");
if (lastSlash_index < 0)
{
lastSlash_index = absolutePath.lastIndexOf("\\");
}
return absolutePath.substring(0, lastSlash_index +... | java | public static String getAbsolutPathWithoutFilename(final File file)
{
final String absolutePath = file.getAbsolutePath();
int lastSlash_index = absolutePath.lastIndexOf("/");
if (lastSlash_index < 0)
{
lastSlash_index = absolutePath.lastIndexOf("\\");
}
return absolutePath.substring(0, lastSlash_index +... | [
"public",
"static",
"String",
"getAbsolutPathWithoutFilename",
"(",
"final",
"File",
"file",
")",
"{",
"final",
"String",
"absolutePath",
"=",
"file",
".",
"getAbsolutePath",
"(",
")",
";",
"int",
"lastSlash_index",
"=",
"absolutePath",
".",
"lastIndexOf",
"(",
... | Gets the absolut path without the filename.
@param file
the file.
@return 's the absolut path without filename. | [
"Gets",
"the",
"absolut",
"path",
"without",
"the",
"filename",
"."
] | 2c81de10fb5d68de64c1abc3ed64ca681ce76da8 | https://github.com/lightblueseas/file-worker/blob/2c81de10fb5d68de64c1abc3ed64ca681ce76da8/src/main/java/de/alpharogroup/file/FileExtensions.java#L72-L81 |
152,387 | lightblueseas/file-worker | src/main/java/de/alpharogroup/file/FileExtensions.java | FileExtensions.getCurrentAbsolutPathWithoutDotAndSlash | public static String getCurrentAbsolutPathWithoutDotAndSlash()
{
final File currentAbsolutPath = new File(".");
return currentAbsolutPath.getAbsolutePath().substring(0,
currentAbsolutPath.getAbsolutePath().length() - 2);
} | java | public static String getCurrentAbsolutPathWithoutDotAndSlash()
{
final File currentAbsolutPath = new File(".");
return currentAbsolutPath.getAbsolutePath().substring(0,
currentAbsolutPath.getAbsolutePath().length() - 2);
} | [
"public",
"static",
"String",
"getCurrentAbsolutPathWithoutDotAndSlash",
"(",
")",
"{",
"final",
"File",
"currentAbsolutPath",
"=",
"new",
"File",
"(",
"\".\"",
")",
";",
"return",
"currentAbsolutPath",
".",
"getAbsolutePath",
"(",
")",
".",
"substring",
"(",
"0",... | Gets the current absolut path without the dot and slash.
@return 's the current absolut path without the dot and slash. | [
"Gets",
"the",
"current",
"absolut",
"path",
"without",
"the",
"dot",
"and",
"slash",
"."
] | 2c81de10fb5d68de64c1abc3ed64ca681ce76da8 | https://github.com/lightblueseas/file-worker/blob/2c81de10fb5d68de64c1abc3ed64ca681ce76da8/src/main/java/de/alpharogroup/file/FileExtensions.java#L88-L93 |
152,388 | lightblueseas/file-worker | src/main/java/de/alpharogroup/file/FileExtensions.java | FileExtensions.isOpen | public static boolean isOpen(final File file) throws IOException
{
boolean open = false;
FileLock lock = null;
try (RandomAccessFile fileAccess = new RandomAccessFile(file.getAbsolutePath(), "rw"))
{
lock = fileAccess.getChannel().tryLock();
if (lock == null)
{
open = true;
}
else
{
l... | java | public static boolean isOpen(final File file) throws IOException
{
boolean open = false;
FileLock lock = null;
try (RandomAccessFile fileAccess = new RandomAccessFile(file.getAbsolutePath(), "rw"))
{
lock = fileAccess.getChannel().tryLock();
if (lock == null)
{
open = true;
}
else
{
l... | [
"public",
"static",
"boolean",
"isOpen",
"(",
"final",
"File",
"file",
")",
"throws",
"IOException",
"{",
"boolean",
"open",
"=",
"false",
";",
"FileLock",
"lock",
"=",
"null",
";",
"try",
"(",
"RandomAccessFile",
"fileAccess",
"=",
"new",
"RandomAccessFile",
... | Not yet implemented. Checks if the given file is open.
@param file
The file to check.
@return Return true if the file is open otherwise false.
@throws IOException
Signals that an I/O exception has occurred. | [
"Not",
"yet",
"implemented",
".",
"Checks",
"if",
"the",
"given",
"file",
"is",
"open",
"."
] | 2c81de10fb5d68de64c1abc3ed64ca681ce76da8 | https://github.com/lightblueseas/file-worker/blob/2c81de10fb5d68de64c1abc3ed64ca681ce76da8/src/main/java/de/alpharogroup/file/FileExtensions.java#L151-L168 |
152,389 | tvesalainen/util | util/src/main/java/org/vesalainen/nio/DynamicByteBuffer.java | DynamicByteBuffer.create | public static MappedByteBuffer create(MapMode mapMode, int maxSize) throws IOException
{
Path tmp = Files.createTempFile("dynBB", "tmp");
try (FileChannel fc = FileChannel.open(tmp, READ, WRITE, CREATE, DELETE_ON_CLOSE))
{
return fc.map(MapMode.READ_WRITE, 0, maxSize);
... | java | public static MappedByteBuffer create(MapMode mapMode, int maxSize) throws IOException
{
Path tmp = Files.createTempFile("dynBB", "tmp");
try (FileChannel fc = FileChannel.open(tmp, READ, WRITE, CREATE, DELETE_ON_CLOSE))
{
return fc.map(MapMode.READ_WRITE, 0, maxSize);
... | [
"public",
"static",
"MappedByteBuffer",
"create",
"(",
"MapMode",
"mapMode",
",",
"int",
"maxSize",
")",
"throws",
"IOException",
"{",
"Path",
"tmp",
"=",
"Files",
".",
"createTempFile",
"(",
"\"dynBB\"",
",",
"\"tmp\"",
")",
";",
"try",
"(",
"FileChannel",
... | Creates dynamically growing ByteBuffer upto maxSize. ByteBuffer is
created by mapping a temporary file
@param mapMode
@param maxSize
@return
@throws IOException | [
"Creates",
"dynamically",
"growing",
"ByteBuffer",
"upto",
"maxSize",
".",
"ByteBuffer",
"is",
"created",
"by",
"mapping",
"a",
"temporary",
"file"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/nio/DynamicByteBuffer.java#L55-L62 |
152,390 | tvesalainen/util | util/src/main/java/org/vesalainen/nio/DynamicByteBuffer.java | DynamicByteBuffer.create | public static ByteBuffer create(Path path, int maxSize) throws IOException
{
try (FileChannel fc = FileChannel.open(path, READ, WRITE, CREATE))
{
return fc.map(FileChannel.MapMode.READ_WRITE, 0, maxSize);
}
} | java | public static ByteBuffer create(Path path, int maxSize) throws IOException
{
try (FileChannel fc = FileChannel.open(path, READ, WRITE, CREATE))
{
return fc.map(FileChannel.MapMode.READ_WRITE, 0, maxSize);
}
} | [
"public",
"static",
"ByteBuffer",
"create",
"(",
"Path",
"path",
",",
"int",
"maxSize",
")",
"throws",
"IOException",
"{",
"try",
"(",
"FileChannel",
"fc",
"=",
"FileChannel",
".",
"open",
"(",
"path",
",",
"READ",
",",
"WRITE",
",",
"CREATE",
")",
")",
... | Creates dynamically growing ByteBuffer upto maxSize for named file.
@param path
@param maxSize
@return
@throws IOException | [
"Creates",
"dynamically",
"growing",
"ByteBuffer",
"upto",
"maxSize",
"for",
"named",
"file",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/nio/DynamicByteBuffer.java#L70-L76 |
152,391 | jbundle/jbundle | app/program/script/src/main/java/org/jbundle/app/program/script/scan/DateOffsetScanListener.java | DateOffsetScanListener.formatDate | public String formatDate(Date date, int type)
{
String string = null;
if (type == DBConstants.DATE_TIME_FORMAT)
string = XmlUtilities.dateTimeFormat.format(date);
else if (type == DBConstants.DATE_ONLY_FORMAT)
string = XmlUtilities.dateFormat.format(date);
els... | java | public String formatDate(Date date, int type)
{
String string = null;
if (type == DBConstants.DATE_TIME_FORMAT)
string = XmlUtilities.dateTimeFormat.format(date);
else if (type == DBConstants.DATE_ONLY_FORMAT)
string = XmlUtilities.dateFormat.format(date);
els... | [
"public",
"String",
"formatDate",
"(",
"Date",
"date",
",",
"int",
"type",
")",
"{",
"String",
"string",
"=",
"null",
";",
"if",
"(",
"type",
"==",
"DBConstants",
".",
"DATE_TIME_FORMAT",
")",
"string",
"=",
"XmlUtilities",
".",
"dateTimeFormat",
".",
"for... | FormatDate Method. | [
"FormatDate",
"Method",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/app/program/script/src/main/java/org/jbundle/app/program/script/scan/DateOffsetScanListener.java#L196-L206 |
152,392 | jbundle/jbundle | base/screen/model/src/main/java/org/jbundle/base/screen/model/ScreenField.java | ScreenField.fieldToControl | public void fieldToControl()
{
if (this.getConverter() != null)
{
Object objValue = this.getScreenFieldView().getFieldState();
if (this.getScreenFieldView().getControl() != null)
this.getScreenFieldView().setComponentState(this.getScreenFieldView().getControl(... | java | public void fieldToControl()
{
if (this.getConverter() != null)
{
Object objValue = this.getScreenFieldView().getFieldState();
if (this.getScreenFieldView().getControl() != null)
this.getScreenFieldView().setComponentState(this.getScreenFieldView().getControl(... | [
"public",
"void",
"fieldToControl",
"(",
")",
"{",
"if",
"(",
"this",
".",
"getConverter",
"(",
")",
"!=",
"null",
")",
"{",
"Object",
"objValue",
"=",
"this",
".",
"getScreenFieldView",
"(",
")",
".",
"getFieldState",
"(",
")",
";",
"if",
"(",
"this",... | Move the field's value to the control. | [
"Move",
"the",
"field",
"s",
"value",
"to",
"the",
"control",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/screen/model/src/main/java/org/jbundle/base/screen/model/ScreenField.java#L194-L202 |
152,393 | jbundle/jbundle | base/screen/model/src/main/java/org/jbundle/base/screen/model/ScreenField.java | ScreenField.setupControlDesc | public void setupControlDesc()
{
if (m_screenParent == null)
return;
String strDisplay = m_converterField.getFieldDesc();
if ((strDisplay != null) && (strDisplay.length() > 0))
{
ScreenLocation descLocation = m_screenParent.getNextLocation(ScreenConstants.FIEL... | java | public void setupControlDesc()
{
if (m_screenParent == null)
return;
String strDisplay = m_converterField.getFieldDesc();
if ((strDisplay != null) && (strDisplay.length() > 0))
{
ScreenLocation descLocation = m_screenParent.getNextLocation(ScreenConstants.FIEL... | [
"public",
"void",
"setupControlDesc",
"(",
")",
"{",
"if",
"(",
"m_screenParent",
"==",
"null",
")",
"return",
";",
"String",
"strDisplay",
"=",
"m_converterField",
".",
"getFieldDesc",
"(",
")",
";",
"if",
"(",
"(",
"strDisplay",
"!=",
"null",
")",
"&&",
... | Create the description for this control. | [
"Create",
"the",
"description",
"for",
"this",
"control",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/screen/model/src/main/java/org/jbundle/base/screen/model/ScreenField.java#L436-L446 |
152,394 | jbundle/jbundle | base/screen/model/src/main/java/org/jbundle/base/screen/model/ScreenField.java | ScreenField.printScreen | public void printScreen(PrintWriter out, ResourceBundle reg)
throws DBException
{
this.getScreenFieldView().printScreen(out, reg);
} | java | public void printScreen(PrintWriter out, ResourceBundle reg)
throws DBException
{
this.getScreenFieldView().printScreen(out, reg);
} | [
"public",
"void",
"printScreen",
"(",
"PrintWriter",
"out",
",",
"ResourceBundle",
"reg",
")",
"throws",
"DBException",
"{",
"this",
".",
"getScreenFieldView",
"(",
")",
".",
"printScreen",
"(",
"out",
",",
"reg",
")",
";",
"}"
] | Display the result in html table format.
@param out The http output stream.
@param reg The resource bundle
@exception DBException File exception. | [
"Display",
"the",
"result",
"in",
"html",
"table",
"format",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/screen/model/src/main/java/org/jbundle/base/screen/model/ScreenField.java#L659-L663 |
152,395 | jbundle/jbundle | base/screen/model/src/main/java/org/jbundle/base/screen/model/ScreenField.java | ScreenField.getInputType | public String getInputType(String strViewType)
{
if (strViewType == null)
strViewType = this.getParentScreen().getViewFactory().getViewSubpackage();
BaseField field = null;
if (this.getConverter() != null)
field = (BaseField)this.getConverter().getField();
Str... | java | public String getInputType(String strViewType)
{
if (strViewType == null)
strViewType = this.getParentScreen().getViewFactory().getViewSubpackage();
BaseField field = null;
if (this.getConverter() != null)
field = (BaseField)this.getConverter().getField();
Str... | [
"public",
"String",
"getInputType",
"(",
"String",
"strViewType",
")",
"{",
"if",
"(",
"strViewType",
"==",
"null",
")",
"strViewType",
"=",
"this",
".",
"getParentScreen",
"(",
")",
".",
"getViewFactory",
"(",
")",
".",
"getViewSubpackage",
"(",
")",
";",
... | Get the rich text type for this control.
@return The type (Such as HTML, Date, etc... very close to HTML control names). | [
"Get",
"the",
"rich",
"text",
"type",
"for",
"this",
"control",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/screen/model/src/main/java/org/jbundle/base/screen/model/ScreenField.java#L891-L917 |
152,396 | jbundle/jbundle | thin/base/remote/src/main/java/org/jbundle/thin/base/remote/proxy/transport/ServletMessage.java | ServletMessage.sendMessage | public InputStream sendMessage(Properties args, int method)
throws IOException {
// Set this up any way you want -- POST can be used for all calls,
// but request headers cannot be set in JDK 1.0.2 so the query
// string still must be used to pass arguments.
if (method == GET)
... | java | public InputStream sendMessage(Properties args, int method)
throws IOException {
// Set this up any way you want -- POST can be used for all calls,
// but request headers cannot be set in JDK 1.0.2 so the query
// string still must be used to pass arguments.
if (method == GET)
... | [
"public",
"InputStream",
"sendMessage",
"(",
"Properties",
"args",
",",
"int",
"method",
")",
"throws",
"IOException",
"{",
"// Set this up any way you want -- POST can be used for all calls,",
"// but request headers cannot be set in JDK 1.0.2 so the query",
"// string still must be u... | Send the request. Return the input stream with the response if
the request succeeds.
@param args the arguments to send to the servlet
@param method GET or POST
@exception IOException if error sending request
@return the response from the servlet to this message | [
"Send",
"the",
"request",
".",
"Return",
"the",
"input",
"stream",
"with",
"the",
"response",
"if",
"the",
"request",
"succeeds",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/remote/src/main/java/org/jbundle/thin/base/remote/proxy/transport/ServletMessage.java#L68-L96 |
152,397 | jbundle/jbundle | thin/base/remote/src/main/java/org/jbundle/thin/base/remote/proxy/transport/ServletMessage.java | ServletMessage.toEncodedString | public String toEncodedString(Properties args) {
StringBuffer sb = new StringBuffer();
try {
if (args != null) {
String sep = "";
Enumeration<?> names = args.propertyNames();
while (names.hasMoreElements()) {
String name = (String)names.nextElement();
sb.app... | java | public String toEncodedString(Properties args) {
StringBuffer sb = new StringBuffer();
try {
if (args != null) {
String sep = "";
Enumeration<?> names = args.propertyNames();
while (names.hasMoreElements()) {
String name = (String)names.nextElement();
sb.app... | [
"public",
"String",
"toEncodedString",
"(",
"Properties",
"args",
")",
"{",
"StringBuffer",
"sb",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"try",
"{",
"if",
"(",
"args",
"!=",
"null",
")",
"{",
"String",
"sep",
"=",
"\"\"",
";",
"Enumeration",
"<",
"... | Encode the arguments in the property set as a URL-encoded string.
Multiple name=value pairs are separated by ampersands.
@return the URLEncoded string with name=value pairs | [
"Encode",
"the",
"arguments",
"in",
"the",
"property",
"set",
"as",
"a",
"URL",
"-",
"encoded",
"string",
".",
"Multiple",
"name",
"=",
"value",
"pairs",
"are",
"separated",
"by",
"ampersands",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/remote/src/main/java/org/jbundle/thin/base/remote/proxy/transport/ServletMessage.java#L103-L120 |
152,398 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/convert/MultipleTableFieldConverter.java | MultipleTableFieldConverter.getTargetField | public Converter getTargetField(Record record)
{
if (record == null)
{
BaseTable currentTable = m_recMerge.getTable().getCurrentTable();
if (currentTable == null)
currentTable = m_recMerge.getTable(); // First time only
record = currentTable.get... | java | public Converter getTargetField(Record record)
{
if (record == null)
{
BaseTable currentTable = m_recMerge.getTable().getCurrentTable();
if (currentTable == null)
currentTable = m_recMerge.getTable(); // First time only
record = currentTable.get... | [
"public",
"Converter",
"getTargetField",
"(",
"Record",
"record",
")",
"{",
"if",
"(",
"record",
"==",
"null",
")",
"{",
"BaseTable",
"currentTable",
"=",
"m_recMerge",
".",
"getTable",
"(",
")",
".",
"getCurrentTable",
"(",
")",
";",
"if",
"(",
"currentTa... | Get the target field in this record. | [
"Get",
"the",
"target",
"field",
"in",
"this",
"record",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/convert/MultipleTableFieldConverter.java#L170-L199 |
152,399 | krotscheck/data-file-reader | data-file-reader-csv/src/main/java/net/krotscheck/dfr/csv/CSVDataEncoder.java | CSVDataEncoder.writeToOutput | @Override
protected void writeToOutput(final Map<String, Object> row)
throws IOException {
if (writer == null) {
CsvMapper mapper = new CsvMapper();
mapper.disable(SerializationFeature.CLOSE_CLOSEABLE);
mapper.getFactory()
.configure(JsonGe... | java | @Override
protected void writeToOutput(final Map<String, Object> row)
throws IOException {
if (writer == null) {
CsvMapper mapper = new CsvMapper();
mapper.disable(SerializationFeature.CLOSE_CLOSEABLE);
mapper.getFactory()
.configure(JsonGe... | [
"@",
"Override",
"protected",
"void",
"writeToOutput",
"(",
"final",
"Map",
"<",
"String",
",",
"Object",
">",
"row",
")",
"throws",
"IOException",
"{",
"if",
"(",
"writer",
"==",
"null",
")",
"{",
"CsvMapper",
"mapper",
"=",
"new",
"CsvMapper",
"(",
")"... | Write a row to the destination.
@param row The row to write.
@throws java.io.IOException Exception thrown when there's problems
writing to the output. | [
"Write",
"a",
"row",
"to",
"the",
"destination",
"."
] | b9a85bd07dc9f9b8291ffbfb6945443d96371811 | https://github.com/krotscheck/data-file-reader/blob/b9a85bd07dc9f9b8291ffbfb6945443d96371811/data-file-reader-csv/src/main/java/net/krotscheck/dfr/csv/CSVDataEncoder.java#L47-L61 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.