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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
154,200 | arxanchain/java-common | src/main/java/com/arxanfintech/common/crypto/Crypto.java | Crypto.signDataWithBase64 | public String signDataWithBase64(byte[] data)
throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException {
String res = null;
byte[] signature = this.signData(data);
// to base64
res = Base64.toBase64String(signature);
return res... | java | public String signDataWithBase64(byte[] data)
throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException {
String res = null;
byte[] signature = this.signData(data);
// to base64
res = Base64.toBase64String(signature);
return res... | [
"public",
"String",
"signDataWithBase64",
"(",
"byte",
"[",
"]",
"data",
")",
"throws",
"InvalidKeyException",
",",
"NoSuchAlgorithmException",
",",
"NoSuchProviderException",
",",
"SignatureException",
"{",
"String",
"res",
"=",
"null",
";",
"byte",
"[",
"]",
"si... | Generate the signature with the enrollment private key
@param data
data to sign
@return the signature in base64
@throws SignatureException
SignatureException
@throws NoSuchProviderException
NoSuchProviderException
@throws NoSuchAlgorithmException
NoSuchAlgorithmException
@throws InvalidKeyException
InvalidKeyException | [
"Generate",
"the",
"signature",
"with",
"the",
"enrollment",
"private",
"key"
] | 3ddfedfd948f5bab3fee0b74b85cdce4702ed84e | https://github.com/arxanchain/java-common/blob/3ddfedfd948f5bab3fee0b74b85cdce4702ed84e/src/main/java/com/arxanfintech/common/crypto/Crypto.java#L190-L197 |
154,201 | arxanchain/java-common | src/main/java/com/arxanfintech/common/crypto/Crypto.java | Crypto.encryptWithBase64 | public String encryptWithBase64(byte[] data) throws NoSuchAlgorithmException, NoSuchProviderException,
NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException,
InvalidAlgorithmParameterException, InvalidCipherTextException, IOException {
byte[] cipher ... | java | public String encryptWithBase64(byte[] data) throws NoSuchAlgorithmException, NoSuchProviderException,
NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException,
InvalidAlgorithmParameterException, InvalidCipherTextException, IOException {
byte[] cipher ... | [
"public",
"String",
"encryptWithBase64",
"(",
"byte",
"[",
"]",
"data",
")",
"throws",
"NoSuchAlgorithmException",
",",
"NoSuchProviderException",
",",
"NoSuchPaddingException",
",",
"InvalidKeyException",
",",
"IllegalBlockSizeException",
",",
"BadPaddingException",
",",
... | Encrypt data with TLS certificate and convert cipher to base64
@param data
byte array to encrypt
@return cipher in base64
@throws NoSuchAlgorithmException
NoSuchAlgorithmException
@throws NoSuchProviderException
NoSuchProviderException
@throws NoSuchPaddingException
NoSuchPaddingException
@throws InvalidKeyException
I... | [
"Encrypt",
"data",
"with",
"TLS",
"certificate",
"and",
"convert",
"cipher",
"to",
"base64"
] | 3ddfedfd948f5bab3fee0b74b85cdce4702ed84e | https://github.com/arxanchain/java-common/blob/3ddfedfd948f5bab3fee0b74b85cdce4702ed84e/src/main/java/com/arxanfintech/common/crypto/Crypto.java#L239-L244 |
154,202 | arxanchain/java-common | src/main/java/com/arxanfintech/common/crypto/Crypto.java | Crypto.signAndEncrypt | public String signAndEncrypt(byte[] data) throws NoSuchAlgorithmException, NoSuchProviderException,
NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException,
SignatureException, InvalidAlgorithmParameterException, InvalidCipherTextException, IOException {
... | java | public String signAndEncrypt(byte[] data) throws NoSuchAlgorithmException, NoSuchProviderException,
NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException,
SignatureException, InvalidAlgorithmParameterException, InvalidCipherTextException, IOException {
... | [
"public",
"String",
"signAndEncrypt",
"(",
"byte",
"[",
"]",
"data",
")",
"throws",
"NoSuchAlgorithmException",
",",
"NoSuchProviderException",
",",
"NoSuchPaddingException",
",",
"InvalidKeyException",
",",
"IllegalBlockSizeException",
",",
"BadPaddingException",
",",
"S... | Sign and encrypt data then convert cipher to base64
@param data
data byte array to encrypt
@return cipher in base64
@throws NoSuchAlgorithmException
NoSuchAlgorithmException
@throws NoSuchProviderException
NoSuchProviderException
@throws NoSuchPaddingException
NoSuchPaddingException
@throws InvalidKeyException
Invalid... | [
"Sign",
"and",
"encrypt",
"data",
"then",
"convert",
"cipher",
"to",
"base64"
] | 3ddfedfd948f5bab3fee0b74b85cdce4702ed84e | https://github.com/arxanchain/java-common/blob/3ddfedfd948f5bab3fee0b74b85cdce4702ed84e/src/main/java/com/arxanfintech/common/crypto/Crypto.java#L273-L284 |
154,203 | arxanchain/java-common | src/main/java/com/arxanfintech/common/crypto/Crypto.java | Crypto.decryptAndVerify | public String decryptAndVerify(byte[] data) throws NoSuchAlgorithmException, NoSuchProviderException,
NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException,
SignatureException, InvalidAlgorithmParameterException, InvalidCipherTextException, IOException {
... | java | public String decryptAndVerify(byte[] data) throws NoSuchAlgorithmException, NoSuchProviderException,
NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException,
SignatureException, InvalidAlgorithmParameterException, InvalidCipherTextException, IOException {
... | [
"public",
"String",
"decryptAndVerify",
"(",
"byte",
"[",
"]",
"data",
")",
"throws",
"NoSuchAlgorithmException",
",",
"NoSuchProviderException",
",",
"NoSuchPaddingException",
",",
"InvalidKeyException",
",",
"IllegalBlockSizeException",
",",
"BadPaddingException",
",",
... | decrypt and verify signature of data
@param data
data byte array to decrypt and verify
@return original plain text
@throws NoSuchAlgorithmException
NoSuchAlgorithmException
@throws NoSuchProviderException
NoSuchProviderException
@throws NoSuchPaddingException
NoSuchPaddingException
@throws InvalidKeyException
InvalidK... | [
"decrypt",
"and",
"verify",
"signature",
"of",
"data"
] | 3ddfedfd948f5bab3fee0b74b85cdce4702ed84e | https://github.com/arxanchain/java-common/blob/3ddfedfd948f5bab3fee0b74b85cdce4702ed84e/src/main/java/com/arxanfintech/common/crypto/Crypto.java#L313-L339 |
154,204 | matiascamiletti/MCDropdownMenu | app/src/main/java/com/mobileia/mcdropdownmenu/example/ViewHolder.java | ViewHolder.get | @SuppressWarnings("unchecked")
public static <T extends View> T get(View view, int id) {
SparseArray<View> viewHolder = (SparseArray<View>) view.getTag();
if (viewHolder == null) {
viewHolder = new SparseArray<View>();
view.setTag(viewHolder);
}
View childView... | java | @SuppressWarnings("unchecked")
public static <T extends View> T get(View view, int id) {
SparseArray<View> viewHolder = (SparseArray<View>) view.getTag();
if (viewHolder == null) {
viewHolder = new SparseArray<View>();
view.setTag(viewHolder);
}
View childView... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"T",
"extends",
"View",
">",
"T",
"get",
"(",
"View",
"view",
",",
"int",
"id",
")",
"{",
"SparseArray",
"<",
"View",
">",
"viewHolder",
"=",
"(",
"SparseArray",
"<",
"View",
... | I added a generic return type to reduce the casting noise in client code | [
"I",
"added",
"a",
"generic",
"return",
"type",
"to",
"reduce",
"the",
"casting",
"noise",
"in",
"client",
"code"
] | eba3dac505c2b9945151430406aee82ed809ab15 | https://github.com/matiascamiletti/MCDropdownMenu/blob/eba3dac505c2b9945151430406aee82ed809ab15/app/src/main/java/com/mobileia/mcdropdownmenu/example/ViewHolder.java#L11-L24 |
154,205 | tvesalainen/util | util/src/main/java/org/vesalainen/navi/Area.java | Area.getArea | public static Area getArea(Location... locations)
{
if (locations.length == 2)
{
if (locations[0].getLongitude() == 0.0 && locations[1].getLongitude() == 0.0)
{
return getPolar(locations[0].getLatitude(), locations[1].getLatitude());
}
... | java | public static Area getArea(Location... locations)
{
if (locations.length == 2)
{
if (locations[0].getLongitude() == 0.0 && locations[1].getLongitude() == 0.0)
{
return getPolar(locations[0].getLatitude(), locations[1].getLatitude());
}
... | [
"public",
"static",
"Area",
"getArea",
"(",
"Location",
"...",
"locations",
")",
"{",
"if",
"(",
"locations",
".",
"length",
"==",
"2",
")",
"{",
"if",
"(",
"locations",
"[",
"0",
"]",
".",
"getLongitude",
"(",
")",
"==",
"0.0",
"&&",
"locations",
"[... | Returns area limited by given coordinates. Area must be convex.
If exactly 2 locations are given the longitudes must be 0 defining polar
area limited by latitudes.
@param locations
@return | [
"Returns",
"area",
"limited",
"by",
"given",
"coordinates",
".",
"Area",
"must",
"be",
"convex",
".",
"If",
"exactly",
"2",
"locations",
"are",
"given",
"the",
"longitudes",
"must",
"be",
"0",
"defining",
"polar",
"area",
"limited",
"by",
"latitudes",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/navi/Area.java#L77-L94 |
154,206 | FitLayout/classify | src/main/java/org/fit/layout/classify/articles/ArticleFeatureExtractor.java | ArticleFeatureExtractor.getMarkedness | public double getMarkedness(Area node)
{
double fsz = node.getFontSize() / avgfont; //use relative font size, 0 is the normal font
double fwt = node.getFontWeight();
double fst = node.getFontStyle();
double ind = getIndentation(node);
double cen = isCentered(node) ? 1.0 : 0.0... | java | public double getMarkedness(Area node)
{
double fsz = node.getFontSize() / avgfont; //use relative font size, 0 is the normal font
double fwt = node.getFontWeight();
double fst = node.getFontStyle();
double ind = getIndentation(node);
double cen = isCentered(node) ? 1.0 : 0.0... | [
"public",
"double",
"getMarkedness",
"(",
"Area",
"node",
")",
"{",
"double",
"fsz",
"=",
"node",
".",
"getFontSize",
"(",
")",
"/",
"avgfont",
";",
"//use relative font size, 0 is the normal font",
"double",
"fwt",
"=",
"node",
".",
"getFontWeight",
"(",
")",
... | Computes the markedness of the area. The markedness generally describes the visual importance of the area based on different criteria.
@return the computed expressiveness | [
"Computes",
"the",
"markedness",
"of",
"the",
"area",
".",
"The",
"markedness",
"generally",
"describes",
"the",
"visual",
"importance",
"of",
"the",
"area",
"based",
"on",
"different",
"criteria",
"."
] | 0b43ceb2f0be4e6d26263491893884d811f0d605 | https://github.com/FitLayout/classify/blob/0b43ceb2f0be4e6d26263491893884d811f0d605/src/main/java/org/fit/layout/classify/articles/ArticleFeatureExtractor.java#L152-L175 |
154,207 | FitLayout/classify | src/main/java/org/fit/layout/classify/articles/ArticleFeatureExtractor.java | ArticleFeatureExtractor.isCentered | private int isCentered(Area area, boolean askBefore, boolean askAfter)
{
Area parent = area.getParent();
if (parent != null)
{
int left = area.getX1() - parent.getX1();
int right = parent.getX2() - area.getX2();
int limit = (int) (((left + right) / 2.0) * ... | java | private int isCentered(Area area, boolean askBefore, boolean askAfter)
{
Area parent = area.getParent();
if (parent != null)
{
int left = area.getX1() - parent.getX1();
int right = parent.getX2() - area.getX2();
int limit = (int) (((left + right) / 2.0) * ... | [
"private",
"int",
"isCentered",
"(",
"Area",
"area",
",",
"boolean",
"askBefore",
",",
"boolean",
"askAfter",
")",
"{",
"Area",
"parent",
"=",
"area",
".",
"getParent",
"(",
")",
";",
"if",
"(",
"parent",
"!=",
"null",
")",
"{",
"int",
"left",
"=",
"... | Tries to guess whether the area is horizontally centered within its parent area
@param askBefore may we compare the alignment with the preceding siblings?
@param askAfter may we compare the alignment with the following siblings?
@return 0 when certailny not centered, 1 when certainly centered, 2 when not sure (nothing ... | [
"Tries",
"to",
"guess",
"whether",
"the",
"area",
"is",
"horizontally",
"centered",
"within",
"its",
"parent",
"area"
] | 0b43ceb2f0be4e6d26263491893884d811f0d605 | https://github.com/FitLayout/classify/blob/0b43ceb2f0be4e6d26263491893884d811f0d605/src/main/java/org/fit/layout/classify/articles/ArticleFeatureExtractor.java#L232-L301 |
154,208 | FitLayout/classify | src/main/java/org/fit/layout/classify/articles/ArticleFeatureExtractor.java | ArticleFeatureExtractor.lrAligned | private int lrAligned(Area a1, Area a2)
{
if (a1.getX1() == a2.getX1())
return (a1.getX2() == a2.getX2()) ? 2 : 1;
else if (a1.getX2() == a2.getX2())
return 1;
else
return 0;
} | java | private int lrAligned(Area a1, Area a2)
{
if (a1.getX1() == a2.getX1())
return (a1.getX2() == a2.getX2()) ? 2 : 1;
else if (a1.getX2() == a2.getX2())
return 1;
else
return 0;
} | [
"private",
"int",
"lrAligned",
"(",
"Area",
"a1",
",",
"Area",
"a2",
")",
"{",
"if",
"(",
"a1",
".",
"getX1",
"(",
")",
"==",
"a2",
".",
"getX1",
"(",
")",
")",
"return",
"(",
"a1",
".",
"getX2",
"(",
")",
"==",
"a2",
".",
"getX2",
"(",
")",
... | Checks if the areas are left- or right-aligned.
@return 0 if not, 1 if yes, 2 if both left and right | [
"Checks",
"if",
"the",
"areas",
"are",
"left",
"-",
"or",
"right",
"-",
"aligned",
"."
] | 0b43ceb2f0be4e6d26263491893884d811f0d605 | https://github.com/FitLayout/classify/blob/0b43ceb2f0be4e6d26263491893884d811f0d605/src/main/java/org/fit/layout/classify/articles/ArticleFeatureExtractor.java#L307-L315 |
154,209 | FitLayout/classify | src/main/java/org/fit/layout/classify/articles/ArticleFeatureExtractor.java | ArticleFeatureExtractor.countAreas | private int countAreas(Area a, Rectangular r)
{
int ret = 0;
for (int i = 0; i < a.getChildCount(); i++)
{
Area n = a.getChildAt(i);
if (a.getTopology().getPosition(n).intersects(r))
ret++;
}
return ret;
} | java | private int countAreas(Area a, Rectangular r)
{
int ret = 0;
for (int i = 0; i < a.getChildCount(); i++)
{
Area n = a.getChildAt(i);
if (a.getTopology().getPosition(n).intersects(r))
ret++;
}
return ret;
} | [
"private",
"int",
"countAreas",
"(",
"Area",
"a",
",",
"Rectangular",
"r",
")",
"{",
"int",
"ret",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"a",
".",
"getChildCount",
"(",
")",
";",
"i",
"++",
")",
"{",
"Area",
"n",
"="... | Counts the number of sub-areas in the specified region of the area
@param a the area to be examined
@param r the grid region of the area to be examined
@return the number of visual areas in the specified area of the grid | [
"Counts",
"the",
"number",
"of",
"sub",
"-",
"areas",
"in",
"the",
"specified",
"region",
"of",
"the",
"area"
] | 0b43ceb2f0be4e6d26263491893884d811f0d605 | https://github.com/FitLayout/classify/blob/0b43ceb2f0be4e6d26263491893884d811f0d605/src/main/java/org/fit/layout/classify/articles/ArticleFeatureExtractor.java#L346-L357 |
154,210 | jbundle/jbundle | thin/base/remote/src/main/java/org/jbundle/thin/base/remote/proxy/SessionProxy.java | SessionProxy.getRemoteTable | public RemoteTable getRemoteTable(String strRecordName) throws RemoteException
{
BaseTransport transport = this.createProxyTransport(GET_REMOTE_TABLE);
transport.addParam(NAME, strRecordName);
String strTableID = (String)transport.sendMessageAndGetReply();
// See if I have this one a... | java | public RemoteTable getRemoteTable(String strRecordName) throws RemoteException
{
BaseTransport transport = this.createProxyTransport(GET_REMOTE_TABLE);
transport.addParam(NAME, strRecordName);
String strTableID = (String)transport.sendMessageAndGetReply();
// See if I have this one a... | [
"public",
"RemoteTable",
"getRemoteTable",
"(",
"String",
"strRecordName",
")",
"throws",
"RemoteException",
"{",
"BaseTransport",
"transport",
"=",
"this",
".",
"createProxyTransport",
"(",
"GET_REMOTE_TABLE",
")",
";",
"transport",
".",
"addParam",
"(",
"NAME",
",... | Get this table for this session.
@param strRecordName Table Name or Class Name of the record to find | [
"Get",
"this",
"table",
"for",
"this",
"session",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/remote/src/main/java/org/jbundle/thin/base/remote/proxy/SessionProxy.java#L60-L70 |
154,211 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/event/SetUserIDHandler.java | SetUserIDHandler.setUserID | public int setUserID(int iChangeType, boolean bDisplayOption)
{
int iErrorCode = DBConstants.NORMAL_RETURN;
int iUserID = -1;
if (this.getOwner().getRecordOwner() != null)
if (((BaseApplication)this.getOwner().getRecordOwner().getTask().getApplication()) != null)
if (... | java | public int setUserID(int iChangeType, boolean bDisplayOption)
{
int iErrorCode = DBConstants.NORMAL_RETURN;
int iUserID = -1;
if (this.getOwner().getRecordOwner() != null)
if (((BaseApplication)this.getOwner().getRecordOwner().getTask().getApplication()) != null)
if (... | [
"public",
"int",
"setUserID",
"(",
"int",
"iChangeType",
",",
"boolean",
"bDisplayOption",
")",
"{",
"int",
"iErrorCode",
"=",
"DBConstants",
".",
"NORMAL_RETURN",
";",
"int",
"iUserID",
"=",
"-",
"1",
";",
"if",
"(",
"this",
".",
"getOwner",
"(",
")",
"... | Set the user ID.
@param iChangeType
@param bDisplayOption The display option.
@return The error code. | [
"Set",
"the",
"user",
"ID",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/event/SetUserIDHandler.java#L119-L139 |
154,212 | tvesalainen/util | util/src/main/java/org/vesalainen/math/AngleAverage.java | AngleAverage.add | public void add(double rad, double weight)
{
sin += Math.sin(rad)*weight;
cos += Math.cos(rad)*weight;
} | java | public void add(double rad, double weight)
{
sin += Math.sin(rad)*weight;
cos += Math.cos(rad)*weight;
} | [
"public",
"void",
"add",
"(",
"double",
"rad",
",",
"double",
"weight",
")",
"{",
"sin",
"+=",
"Math",
".",
"sin",
"(",
"rad",
")",
"*",
"weight",
";",
"cos",
"+=",
"Math",
".",
"cos",
"(",
"rad",
")",
"*",
"weight",
";",
"}"
] | Adds angle in radians with weight
@param rad
@param weight | [
"Adds",
"angle",
"in",
"radians",
"with",
"weight"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/math/AngleAverage.java#L59-L63 |
154,213 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.getGroups | public void getGroups(String startFrom, boolean forward, Collection<Recipient> result) {
List<String> lst = broker.callRPCList("RGUTRPC FILGET", null, 3.8, startFrom, forward ? 1 : -1, MG_SCREEN, 40);
toRecipients(lst, true, startFrom, result);
} | java | public void getGroups(String startFrom, boolean forward, Collection<Recipient> result) {
List<String> lst = broker.callRPCList("RGUTRPC FILGET", null, 3.8, startFrom, forward ? 1 : -1, MG_SCREEN, 40);
toRecipients(lst, true, startFrom, result);
} | [
"public",
"void",
"getGroups",
"(",
"String",
"startFrom",
",",
"boolean",
"forward",
",",
"Collection",
"<",
"Recipient",
">",
"result",
")",
"{",
"List",
"<",
"String",
">",
"lst",
"=",
"broker",
".",
"callRPCList",
"(",
"\"RGUTRPC FILGET\"",
",",
"null",
... | Returns a bolus of mail groups.
@param startFrom Starting entry.
@param forward Direction of traversal.
@param result Result of lookup. | [
"Returns",
"a",
"bolus",
"of",
"mail",
"groups",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L62-L65 |
154,214 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.getUsers | public void getUsers(String startFrom, boolean forward, Collection<Recipient> result) {
List<String> lst = broker.callRPCList("RGCWFUSR LOOKUP", null, startFrom, forward ? 1 : -1, null, null, "A");
toRecipients(lst, false, startFrom, result);
} | java | public void getUsers(String startFrom, boolean forward, Collection<Recipient> result) {
List<String> lst = broker.callRPCList("RGCWFUSR LOOKUP", null, startFrom, forward ? 1 : -1, null, null, "A");
toRecipients(lst, false, startFrom, result);
} | [
"public",
"void",
"getUsers",
"(",
"String",
"startFrom",
",",
"boolean",
"forward",
",",
"Collection",
"<",
"Recipient",
">",
"result",
")",
"{",
"List",
"<",
"String",
">",
"lst",
"=",
"broker",
".",
"callRPCList",
"(",
"\"RGCWFUSR LOOKUP\"",
",",
"null",
... | Returns a bolus of users.
@param startFrom Starting entry.
@param forward Direction of traversal.
@param result Result of lookup. | [
"Returns",
"a",
"bolus",
"of",
"users",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L74-L77 |
154,215 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.getNotifications | public void getNotifications(Patient patient, Collection<Notification> result) {
List<String> lst = null;
result.clear();
if (patient == null) {
lst = broker.callRPCList("RGCWXQ ALRLIST", null);
} else if (patient != null) {
lst = broker.callRPCList("RGCWXQ ALRLI... | java | public void getNotifications(Patient patient, Collection<Notification> result) {
List<String> lst = null;
result.clear();
if (patient == null) {
lst = broker.callRPCList("RGCWXQ ALRLIST", null);
} else if (patient != null) {
lst = broker.callRPCList("RGCWXQ ALRLI... | [
"public",
"void",
"getNotifications",
"(",
"Patient",
"patient",
",",
"Collection",
"<",
"Notification",
">",
"result",
")",
"{",
"List",
"<",
"String",
">",
"lst",
"=",
"null",
";",
"result",
".",
"clear",
"(",
")",
";",
"if",
"(",
"patient",
"==",
"n... | Returns notifications for the current user.
@param patient If not null, only notifications associated with the current user are returned.
Otherwise, all notifications for the current user are returned.
@param result The list to receive the results. | [
"Returns",
"notifications",
"for",
"the",
"current",
"user",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L86-L101 |
154,216 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.deleteNotification | public boolean deleteNotification(Notification notification) {
boolean result = notification.canDelete();
if (result) {
broker.callRPC("RGCWXQ ALRPP", notification.getAlertId());
}
return result;
} | java | public boolean deleteNotification(Notification notification) {
boolean result = notification.canDelete();
if (result) {
broker.callRPC("RGCWXQ ALRPP", notification.getAlertId());
}
return result;
} | [
"public",
"boolean",
"deleteNotification",
"(",
"Notification",
"notification",
")",
"{",
"boolean",
"result",
"=",
"notification",
".",
"canDelete",
"(",
")",
";",
"if",
"(",
"result",
")",
"{",
"broker",
".",
"callRPC",
"(",
"\"RGCWXQ ALRPP\"",
",",
"notific... | Delete a notification.
@param notification The notification to delete.
@return True if the operation was successful. | [
"Delete",
"a",
"notification",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L109-L117 |
154,217 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.forwardNotifications | public void forwardNotifications(Collection<Notification> notifications, Collection<Recipient> recipients,
String comment) {
List<String> lst1 = new ArrayList<>();
for (Notification notification : notifications) {
lst1.add(notification.getAlertId());
... | java | public void forwardNotifications(Collection<Notification> notifications, Collection<Recipient> recipients,
String comment) {
List<String> lst1 = new ArrayList<>();
for (Notification notification : notifications) {
lst1.add(notification.getAlertId());
... | [
"public",
"void",
"forwardNotifications",
"(",
"Collection",
"<",
"Notification",
">",
"notifications",
",",
"Collection",
"<",
"Recipient",
">",
"recipients",
",",
"String",
"comment",
")",
"{",
"List",
"<",
"String",
">",
"lst1",
"=",
"new",
"ArrayList",
"<>... | Forward multiple notifications.
@param notifications List of notifications to forward.
@param recipients List of recipients.
@param comment Comment to attach to forwarded notification. | [
"Forward",
"multiple",
"notifications",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L126-L139 |
154,218 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.prepareRecipients | private List<Long> prepareRecipients(Collection<Recipient> recipients) {
List<Long> lst = new ArrayList<>();
for (Recipient recipient : recipients) {
lst.add(recipient.getIen());
}
return lst;
} | java | private List<Long> prepareRecipients(Collection<Recipient> recipients) {
List<Long> lst = new ArrayList<>();
for (Recipient recipient : recipients) {
lst.add(recipient.getIen());
}
return lst;
} | [
"private",
"List",
"<",
"Long",
">",
"prepareRecipients",
"(",
"Collection",
"<",
"Recipient",
">",
"recipients",
")",
"{",
"List",
"<",
"Long",
">",
"lst",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"for",
"(",
"Recipient",
"recipient",
":",
"recipie... | Prepares a recipient list for passing to an RPC.
@param recipients List of recipients.
@return List of recipients to pass to RPC. | [
"Prepares",
"a",
"recipient",
"list",
"for",
"passing",
"to",
"an",
"RPC",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L147-L155 |
154,219 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.toRecipients | private void toRecipients(List<String> recipientData, boolean isGroup, String filter, Collection<Recipient> result) {
result.clear();
for (String data : recipientData) {
Recipient recipient = new Recipient(data, isGroup);
if (StringUtils.startsWithIgnoreCase(recipient.getName()... | java | private void toRecipients(List<String> recipientData, boolean isGroup, String filter, Collection<Recipient> result) {
result.clear();
for (String data : recipientData) {
Recipient recipient = new Recipient(data, isGroup);
if (StringUtils.startsWithIgnoreCase(recipient.getName()... | [
"private",
"void",
"toRecipients",
"(",
"List",
"<",
"String",
">",
"recipientData",
",",
"boolean",
"isGroup",
",",
"String",
"filter",
",",
"Collection",
"<",
"Recipient",
">",
"result",
")",
"{",
"result",
".",
"clear",
"(",
")",
";",
"for",
"(",
"Str... | Creates a list of recipients from a list of raw data.
@param recipientData List of raw data as returned by lookup.
@param isGroup If true, the list represents mail groups. If false, it represents users.
@param filter The text used in the lookup. It will be used to limit the returned results.
@param result List of reci... | [
"Creates",
"a",
"list",
"of",
"recipients",
"from",
"a",
"list",
"of",
"raw",
"data",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L165-L177 |
154,220 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.getNotificationMessage | public List<String> getNotificationMessage(Notification notification) {
List<String> message = notification.getMessage();
if (message == null) {
message = broker.callRPCList("RGCWXQ ALRMSG", null, notification.getAlertId());
notification.setMessage(message);
}
r... | java | public List<String> getNotificationMessage(Notification notification) {
List<String> message = notification.getMessage();
if (message == null) {
message = broker.callRPCList("RGCWXQ ALRMSG", null, notification.getAlertId());
notification.setMessage(message);
}
r... | [
"public",
"List",
"<",
"String",
">",
"getNotificationMessage",
"(",
"Notification",
"notification",
")",
"{",
"List",
"<",
"String",
">",
"message",
"=",
"notification",
".",
"getMessage",
"(",
")",
";",
"if",
"(",
"message",
"==",
"null",
")",
"{",
"mess... | Returns the message associated with a notification, fetching it from the server if necessary.
@param notification A notification.
@return Message associated with the notification. | [
"Returns",
"the",
"message",
"associated",
"with",
"a",
"notification",
"fetching",
"it",
"from",
"the",
"server",
"if",
"necessary",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L185-L194 |
154,221 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.getScheduledNotifications | public void getScheduledNotifications(Collection<ScheduledNotification> result) {
List<String> lst = broker.callRPCList("RGCWXQ SCHLIST", null, scheduledPrefix);
result.clear();
for (String data : lst) {
result.add(new ScheduledNotification(data));
}
} | java | public void getScheduledNotifications(Collection<ScheduledNotification> result) {
List<String> lst = broker.callRPCList("RGCWXQ SCHLIST", null, scheduledPrefix);
result.clear();
for (String data : lst) {
result.add(new ScheduledNotification(data));
}
} | [
"public",
"void",
"getScheduledNotifications",
"(",
"Collection",
"<",
"ScheduledNotification",
">",
"result",
")",
"{",
"List",
"<",
"String",
">",
"lst",
"=",
"broker",
".",
"callRPCList",
"(",
"\"RGCWXQ SCHLIST\"",
",",
"null",
",",
"scheduledPrefix",
")",
";... | Returns all scheduled notifications for the current user.
@param result The list to receive the results. | [
"Returns",
"all",
"scheduled",
"notifications",
"for",
"the",
"current",
"user",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L201-L208 |
154,222 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.getScheduledNotificationRecipients | public void getScheduledNotificationRecipients(ScheduledNotification notification, Collection<Recipient> result) {
List<String> lst = broker.callRPCList("RGCWXQ SCHRECIP", null, notification.getIen());
result.clear();
for (String data : lst) {
result.add(new Recipient(data));
... | java | public void getScheduledNotificationRecipients(ScheduledNotification notification, Collection<Recipient> result) {
List<String> lst = broker.callRPCList("RGCWXQ SCHRECIP", null, notification.getIen());
result.clear();
for (String data : lst) {
result.add(new Recipient(data));
... | [
"public",
"void",
"getScheduledNotificationRecipients",
"(",
"ScheduledNotification",
"notification",
",",
"Collection",
"<",
"Recipient",
">",
"result",
")",
"{",
"List",
"<",
"String",
">",
"lst",
"=",
"broker",
".",
"callRPCList",
"(",
"\"RGCWXQ SCHRECIP\"",
",",... | Returns a list of recipients associated with a scheduled notification.
@param notification A scheduled notification.
@param result Recipients associated with the notification. | [
"Returns",
"a",
"list",
"of",
"recipients",
"associated",
"with",
"a",
"scheduled",
"notification",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L226-L233 |
154,223 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.getScheduledNotificationMessage | public List<String> getScheduledNotificationMessage(ScheduledNotification notification) {
return broker.callRPCList("RGCWXQ SCHMSG", null, notification.getIen());
} | java | public List<String> getScheduledNotificationMessage(ScheduledNotification notification) {
return broker.callRPCList("RGCWXQ SCHMSG", null, notification.getIen());
} | [
"public",
"List",
"<",
"String",
">",
"getScheduledNotificationMessage",
"(",
"ScheduledNotification",
"notification",
")",
"{",
"return",
"broker",
".",
"callRPCList",
"(",
"\"RGCWXQ SCHMSG\"",
",",
"null",
",",
"notification",
".",
"getIen",
"(",
")",
")",
";",
... | Returns the message associated with a scheduled notification.
@param notification A scheduled notification.
@return Message associated with the scheduled notification. | [
"Returns",
"the",
"message",
"associated",
"with",
"a",
"scheduled",
"notification",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L241-L243 |
154,224 | carewebframework/carewebframework-vista | org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java | NotificationService.scheduleNotification | public boolean scheduleNotification(ScheduledNotification notification, List<String> message,
Collection<Recipient> recipients) {
if (notification.getIen() > 0) {
deleteScheduledNotification(notification);
}
String extraInfo = StrUtil.fromList... | java | public boolean scheduleNotification(ScheduledNotification notification, List<String> message,
Collection<Recipient> recipients) {
if (notification.getIen() > 0) {
deleteScheduledNotification(notification);
}
String extraInfo = StrUtil.fromList... | [
"public",
"boolean",
"scheduleNotification",
"(",
"ScheduledNotification",
"notification",
",",
"List",
"<",
"String",
">",
"message",
",",
"Collection",
"<",
"Recipient",
">",
"recipients",
")",
"{",
"if",
"(",
"notification",
".",
"getIen",
"(",
")",
">",
"0... | Creates a schedule notification. If the notification is replacing an existing one, the
existing one will be first deleted and a new one created in its place.
@param notification Notification to be scheduled.
@param message The associated message, if any.
@param recipients The target recipients.
@return True if the not... | [
"Creates",
"a",
"schedule",
"notification",
".",
"If",
"the",
"notification",
"is",
"replacing",
"an",
"existing",
"one",
"the",
"existing",
"one",
"will",
"be",
"first",
"deleted",
"and",
"a",
"new",
"one",
"created",
"in",
"its",
"place",
"."
] | 883b2cbe395d9e8a21cd19db820f0876bda6b1c6 | https://github.com/carewebframework/carewebframework-vista/blob/883b2cbe395d9e8a21cd19db820f0876bda6b1c6/org.carewebframework.vista.api-parent/org.carewebframework.vista.api.notification/src/main/java/org/carewebframework/vista/api/notification/NotificationService.java#L254-L263 |
154,225 | pressgang-ccms/PressGangCCMSBuilder | src/main/java/org/jboss/pressgang/ccms/contentspec/builder/JDocBookBuilder.java | JDocBookBuilder.addPublicanCommonContentToBook | protected void addPublicanCommonContentToBook(final BuildData buildData) throws BuildProcessingException {
final ContentSpec contentSpec = buildData.getContentSpec();
final String commonContentLocale = buildData.getOutputLocale();
final String commonContentDirectory = buildData.getBuildOptions()... | java | protected void addPublicanCommonContentToBook(final BuildData buildData) throws BuildProcessingException {
final ContentSpec contentSpec = buildData.getContentSpec();
final String commonContentLocale = buildData.getOutputLocale();
final String commonContentDirectory = buildData.getBuildOptions()... | [
"protected",
"void",
"addPublicanCommonContentToBook",
"(",
"final",
"BuildData",
"buildData",
")",
"throws",
"BuildProcessingException",
"{",
"final",
"ContentSpec",
"contentSpec",
"=",
"buildData",
".",
"getContentSpec",
"(",
")",
";",
"final",
"String",
"commonConten... | Adds the Publican Common_Content files specified by the brand, locale and directory location build options . If the
Common_Content files don't exist at the directory, brand and locale specified then the "common" brand will be used
instead. If the file still don't exist then the files are skipped and will rely on XML XI... | [
"Adds",
"the",
"Publican",
"Common_Content",
"files",
"specified",
"by",
"the",
"brand",
"locale",
"and",
"directory",
"location",
"build",
"options",
".",
"If",
"the",
"Common_Content",
"files",
"don",
"t",
"exist",
"at",
"the",
"directory",
"brand",
"and",
"... | 5436d36ba1b3c5baa246b270e5fc350e6778bce8 | https://github.com/pressgang-ccms/PressGangCCMSBuilder/blob/5436d36ba1b3c5baa246b270e5fc350e6778bce8/src/main/java/org/jboss/pressgang/ccms/contentspec/builder/JDocBookBuilder.java#L93-L156 |
154,226 | microfocus-idol/java-content-parameter-api | src/main/java/com/hp/autonomy/aci/content/fieldtext/Specifier.java | Specifier.resolveFields | private static List<String> resolveFields(final Iterable<? extends String> fields) {
final List<String> fieldList = new ArrayList<String>();
for (final String field : fields) {
Validate.isTrue(StringUtils.isNotBlank(field), "One of the specified fields was blank");
fieldList.add... | java | private static List<String> resolveFields(final Iterable<? extends String> fields) {
final List<String> fieldList = new ArrayList<String>();
for (final String field : fields) {
Validate.isTrue(StringUtils.isNotBlank(field), "One of the specified fields was blank");
fieldList.add... | [
"private",
"static",
"List",
"<",
"String",
">",
"resolveFields",
"(",
"final",
"Iterable",
"<",
"?",
"extends",
"String",
">",
"fields",
")",
"{",
"final",
"List",
"<",
"String",
">",
"fieldList",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
... | Private helper method for setting the field names. It converts colons to underscores and removes any blanks or
excess whitespace. Instances are immutable so this method cannot be made public.
@param fields A non-null Iterable of field names. | [
"Private",
"helper",
"method",
"for",
"setting",
"the",
"field",
"names",
".",
"It",
"converts",
"colons",
"to",
"underscores",
"and",
"removes",
"any",
"blanks",
"or",
"excess",
"whitespace",
".",
"Instances",
"are",
"immutable",
"so",
"this",
"method",
"cann... | 8d33dc633f8df2a470a571ac7694e423e7004ad0 | https://github.com/microfocus-idol/java-content-parameter-api/blob/8d33dc633f8df2a470a571ac7694e423e7004ad0/src/main/java/com/hp/autonomy/aci/content/fieldtext/Specifier.java#L166-L175 |
154,227 | microfocus-idol/java-content-parameter-api | src/main/java/com/hp/autonomy/aci/content/fieldtext/Specifier.java | Specifier.resolveValues | private static List<String> resolveValues(final Iterable<? extends String> values) {
final List<String> valuesList = new ArrayList<String>();
for(final String value : values) {
Validate.notNull(value, "One of the specified values was null");
valuesList.add(value);
}
... | java | private static List<String> resolveValues(final Iterable<? extends String> values) {
final List<String> valuesList = new ArrayList<String>();
for(final String value : values) {
Validate.notNull(value, "One of the specified values was null");
valuesList.add(value);
}
... | [
"private",
"static",
"List",
"<",
"String",
">",
"resolveValues",
"(",
"final",
"Iterable",
"<",
"?",
"extends",
"String",
">",
"values",
")",
"{",
"final",
"List",
"<",
"String",
">",
"valuesList",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
... | Private helper method for setting the field values. nulls are not permitted. Instances are immutable so this
method cannot be made public.
@param values A non-null Iterable of field values. | [
"Private",
"helper",
"method",
"for",
"setting",
"the",
"field",
"values",
".",
"nulls",
"are",
"not",
"permitted",
".",
"Instances",
"are",
"immutable",
"so",
"this",
"method",
"cannot",
"be",
"made",
"public",
"."
] | 8d33dc633f8df2a470a571ac7694e423e7004ad0 | https://github.com/microfocus-idol/java-content-parameter-api/blob/8d33dc633f8df2a470a571ac7694e423e7004ad0/src/main/java/com/hp/autonomy/aci/content/fieldtext/Specifier.java#L183-L192 |
154,228 | microfocus-idol/java-content-parameter-api | src/main/java/com/hp/autonomy/aci/content/fieldtext/Specifier.java | Specifier.getValuesString | protected String getValuesString() {
final StringBuilder builder = new StringBuilder();
for(final String value : values) {
builder.append(AciURLCodec.getInstance().encode(value)).append(',');
}
if(builder.length() > 0) {
builder.deleteCharAt(builder.length() - 1... | java | protected String getValuesString() {
final StringBuilder builder = new StringBuilder();
for(final String value : values) {
builder.append(AciURLCodec.getInstance().encode(value)).append(',');
}
if(builder.length() > 0) {
builder.deleteCharAt(builder.length() - 1... | [
"protected",
"String",
"getValuesString",
"(",
")",
"{",
"final",
"StringBuilder",
"builder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"final",
"String",
"value",
":",
"values",
")",
"{",
"builder",
".",
"append",
"(",
"AciURLCodec",
".",
"g... | Accessor for the specifier's values. The values are URL encoded and
separated by commas.
@return The specifier's value. | [
"Accessor",
"for",
"the",
"specifier",
"s",
"values",
".",
"The",
"values",
"are",
"URL",
"encoded",
"and",
"separated",
"by",
"commas",
"."
] | 8d33dc633f8df2a470a571ac7694e423e7004ad0 | https://github.com/microfocus-idol/java-content-parameter-api/blob/8d33dc633f8df2a470a571ac7694e423e7004ad0/src/main/java/com/hp/autonomy/aci/content/fieldtext/Specifier.java#L258-L270 |
154,229 | tvesalainen/util | util/src/main/java/org/vesalainen/util/OrderedList.java | OrderedList.headStream | public Stream<T> headStream(T key, boolean inclusive, boolean parallel)
{
return StreamSupport.stream(headSpliterator(key, inclusive), parallel);
} | java | public Stream<T> headStream(T key, boolean inclusive, boolean parallel)
{
return StreamSupport.stream(headSpliterator(key, inclusive), parallel);
} | [
"public",
"Stream",
"<",
"T",
">",
"headStream",
"(",
"T",
"key",
",",
"boolean",
"inclusive",
",",
"boolean",
"parallel",
")",
"{",
"return",
"StreamSupport",
".",
"stream",
"(",
"headSpliterator",
"(",
"key",
",",
"inclusive",
")",
",",
"parallel",
")",
... | Returns stream from start to key
@param key
@param inclusive
@param parallel
@return | [
"Returns",
"stream",
"from",
"start",
"to",
"key"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/OrderedList.java#L80-L83 |
154,230 | tvesalainen/util | util/src/main/java/org/vesalainen/util/OrderedList.java | OrderedList.tailStream | public Stream<T> tailStream(T key, boolean inclusive, boolean parallel)
{
return StreamSupport.stream(tailSpliterator(key, inclusive), parallel);
} | java | public Stream<T> tailStream(T key, boolean inclusive, boolean parallel)
{
return StreamSupport.stream(tailSpliterator(key, inclusive), parallel);
} | [
"public",
"Stream",
"<",
"T",
">",
"tailStream",
"(",
"T",
"key",
",",
"boolean",
"inclusive",
",",
"boolean",
"parallel",
")",
"{",
"return",
"StreamSupport",
".",
"stream",
"(",
"tailSpliterator",
"(",
"key",
",",
"inclusive",
")",
",",
"parallel",
")",
... | Returns stream from key to end
@param key
@param inclusive
@param parallel
@return | [
"Returns",
"stream",
"from",
"key",
"to",
"end"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/OrderedList.java#L91-L94 |
154,231 | tvesalainen/util | util/src/main/java/org/vesalainen/util/OrderedList.java | OrderedList.headSpliterator | public Spliterator<T> headSpliterator(T key, boolean inclusive)
{
int point = point(key, !inclusive);
Iterator<T> iterator = subList(0, point).iterator();
return Spliterators.spliterator(iterator, size()-point, 0);
} | java | public Spliterator<T> headSpliterator(T key, boolean inclusive)
{
int point = point(key, !inclusive);
Iterator<T> iterator = subList(0, point).iterator();
return Spliterators.spliterator(iterator, size()-point, 0);
} | [
"public",
"Spliterator",
"<",
"T",
">",
"headSpliterator",
"(",
"T",
"key",
",",
"boolean",
"inclusive",
")",
"{",
"int",
"point",
"=",
"point",
"(",
"key",
",",
"!",
"inclusive",
")",
";",
"Iterator",
"<",
"T",
">",
"iterator",
"=",
"subList",
"(",
... | Returns spliterator from start to key
@param key
@param inclusive
@return | [
"Returns",
"spliterator",
"from",
"start",
"to",
"key"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/OrderedList.java#L101-L106 |
154,232 | tvesalainen/util | util/src/main/java/org/vesalainen/util/OrderedList.java | OrderedList.headIterator | public Iterator<T> headIterator(T key, boolean inclusive)
{
int point = point(key, !inclusive);
return subList(0, point).iterator();
} | java | public Iterator<T> headIterator(T key, boolean inclusive)
{
int point = point(key, !inclusive);
return subList(0, point).iterator();
} | [
"public",
"Iterator",
"<",
"T",
">",
"headIterator",
"(",
"T",
"key",
",",
"boolean",
"inclusive",
")",
"{",
"int",
"point",
"=",
"point",
"(",
"key",
",",
"!",
"inclusive",
")",
";",
"return",
"subList",
"(",
"0",
",",
"point",
")",
".",
"iterator",... | Returns iterator from start to key
@param key
@param inclusive
@return | [
"Returns",
"iterator",
"from",
"start",
"to",
"key"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/OrderedList.java#L125-L129 |
154,233 | tvesalainen/util | util/src/main/java/org/vesalainen/util/OrderedList.java | OrderedList.tailIterator | public Iterator<T> tailIterator(T key, boolean inclusive)
{
int point = point(key, inclusive);
return subList(point, size()).iterator();
} | java | public Iterator<T> tailIterator(T key, boolean inclusive)
{
int point = point(key, inclusive);
return subList(point, size()).iterator();
} | [
"public",
"Iterator",
"<",
"T",
">",
"tailIterator",
"(",
"T",
"key",
",",
"boolean",
"inclusive",
")",
"{",
"int",
"point",
"=",
"point",
"(",
"key",
",",
"inclusive",
")",
";",
"return",
"subList",
"(",
"point",
",",
"size",
"(",
")",
")",
".",
"... | Returns iterator from key to end
@param key
@param inclusive
@return | [
"Returns",
"iterator",
"from",
"key",
"to",
"end"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/OrderedList.java#L136-L140 |
154,234 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/field/TimeField.java | TimeField.stringToBinary | public Object stringToBinary(String tempString) throws Exception
{
java.util.Date dateOld = new java.util.Date((long)this.getValue()); // Save current time
return DateConverter.stringToBinary(tempString, dateOld, DBConstants.TIME_ONLY_FORMAT);
} | java | public Object stringToBinary(String tempString) throws Exception
{
java.util.Date dateOld = new java.util.Date((long)this.getValue()); // Save current time
return DateConverter.stringToBinary(tempString, dateOld, DBConstants.TIME_ONLY_FORMAT);
} | [
"public",
"Object",
"stringToBinary",
"(",
"String",
"tempString",
")",
"throws",
"Exception",
"{",
"java",
".",
"util",
".",
"Date",
"dateOld",
"=",
"new",
"java",
".",
"util",
".",
"Date",
"(",
"(",
"long",
")",
"this",
".",
"getValue",
"(",
")",
")"... | Convert this string to this field's binary data format.
@param tempString A string to be converted to this field's binary data.
@return The physical data converted from this string (must be the raw data class). | [
"Convert",
"this",
"string",
"to",
"this",
"field",
"s",
"binary",
"data",
"format",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/field/TimeField.java#L120-L124 |
154,235 | wigforss/Ka-Web | servlet/src/main/java/org/kasource/web/servlet/listener/properties/SystemPropertiesSetter.java | SystemPropertiesSetter.contextInitialized | @Override
public void contextInitialized(ServletContextEvent sce) {
ServletContext context = sce.getServletContext();
String propertiesConfig = context.getInitParameter(PROPERTIES_CONFIG);
if(propertiesConfig == null) {
propertiesConfig = PROPERTIES_CONFIG_DEFAULT;
}
... | java | @Override
public void contextInitialized(ServletContextEvent sce) {
ServletContext context = sce.getServletContext();
String propertiesConfig = context.getInitParameter(PROPERTIES_CONFIG);
if(propertiesConfig == null) {
propertiesConfig = PROPERTIES_CONFIG_DEFAULT;
}
... | [
"@",
"Override",
"public",
"void",
"contextInitialized",
"(",
"ServletContextEvent",
"sce",
")",
"{",
"ServletContext",
"context",
"=",
"sce",
".",
"getServletContext",
"(",
")",
";",
"String",
"propertiesConfig",
"=",
"context",
".",
"getInitParameter",
"(",
"PRO... | Sets properties from the context-param named system.properties.file into System.properties. | [
"Sets",
"properties",
"from",
"the",
"context",
"-",
"param",
"named",
"system",
".",
"properties",
".",
"file",
"into",
"System",
".",
"properties",
"."
] | bb6d8eacbefdeb7c8c6bb6135e55939d968fa433 | https://github.com/wigforss/Ka-Web/blob/bb6d8eacbefdeb7c8c6bb6135e55939d968fa433/servlet/src/main/java/org/kasource/web/servlet/listener/properties/SystemPropertiesSetter.java#L83-L96 |
154,236 | wigforss/Ka-Web | servlet/src/main/java/org/kasource/web/servlet/listener/properties/SystemPropertiesSetter.java | SystemPropertiesSetter.loadConfiguration | private SystemProperties loadConfiguration(String propertiesConfig, ServletContext context) throws IllegalStateException{
InputStream inStream = null;
try {
inStream = getStreamForLocation(propertiesConfig, context);
JAXBContext jaxb = JAXBContext.newInstance(SystemP... | java | private SystemProperties loadConfiguration(String propertiesConfig, ServletContext context) throws IllegalStateException{
InputStream inStream = null;
try {
inStream = getStreamForLocation(propertiesConfig, context);
JAXBContext jaxb = JAXBContext.newInstance(SystemP... | [
"private",
"SystemProperties",
"loadConfiguration",
"(",
"String",
"propertiesConfig",
",",
"ServletContext",
"context",
")",
"throws",
"IllegalStateException",
"{",
"InputStream",
"inStream",
"=",
"null",
";",
"try",
"{",
"inStream",
"=",
"getStreamForLocation",
"(",
... | Loads and returns the configuration.
@param propertiesConfig Location of the configuration XML file.
@param context Servlet Context to read configuration from.
@return the configuration object.
@throws IllegalStateException If configuration could not be read due to missing file or invalid XML content in
the confi... | [
"Loads",
"and",
"returns",
"the",
"configuration",
"."
] | bb6d8eacbefdeb7c8c6bb6135e55939d968fa433 | https://github.com/wigforss/Ka-Web/blob/bb6d8eacbefdeb7c8c6bb6135e55939d968fa433/servlet/src/main/java/org/kasource/web/servlet/listener/properties/SystemPropertiesSetter.java#L110-L130 |
154,237 | wigforss/Ka-Web | servlet/src/main/java/org/kasource/web/servlet/listener/properties/SystemPropertiesSetter.java | SystemPropertiesSetter.getStreamForLocation | private InputStream getStreamForLocation(final String location, final ServletContext context) throws FileNotFoundException {
String fileLocation = StringUtils.replaceVariables(location, new HashMap<String, Object>(), true);
if (fileLocation.startsWith(PREFIX_FILE)) {
return new FileIn... | java | private InputStream getStreamForLocation(final String location, final ServletContext context) throws FileNotFoundException {
String fileLocation = StringUtils.replaceVariables(location, new HashMap<String, Object>(), true);
if (fileLocation.startsWith(PREFIX_FILE)) {
return new FileIn... | [
"private",
"InputStream",
"getStreamForLocation",
"(",
"final",
"String",
"location",
",",
"final",
"ServletContext",
"context",
")",
"throws",
"FileNotFoundException",
"{",
"String",
"fileLocation",
"=",
"StringUtils",
".",
"replaceVariables",
"(",
"location",
",",
"... | Returns the InputStream to the supplied file location
@param location File location, may contain file:, classpath: or war: prefix. If no prefix is used war location is assumed.
@param context Servlet Context to read war resources from.
@throws FileNotFoundException If a file resource could not be found. | [
"Returns",
"the",
"InputStream",
"to",
"the",
"supplied",
"file",
"location"
] | bb6d8eacbefdeb7c8c6bb6135e55939d968fa433 | https://github.com/wigforss/Ka-Web/blob/bb6d8eacbefdeb7c8c6bb6135e55939d968fa433/servlet/src/main/java/org/kasource/web/servlet/listener/properties/SystemPropertiesSetter.java#L141-L153 |
154,238 | wigforss/Ka-Web | servlet/src/main/java/org/kasource/web/servlet/listener/properties/SystemPropertiesSetter.java | SystemPropertiesSetter.addProperties | private void addProperties(final SystemProperties config) {
for(Property property : config.getProperty()) {
String name = property.getName().trim();
String value = property.getValue().trim();
if(config.isOverrideProperties() || (System.getProperty(name) == null)) {
... | java | private void addProperties(final SystemProperties config) {
for(Property property : config.getProperty()) {
String name = property.getName().trim();
String value = property.getValue().trim();
if(config.isOverrideProperties() || (System.getProperty(name) == null)) {
... | [
"private",
"void",
"addProperties",
"(",
"final",
"SystemProperties",
"config",
")",
"{",
"for",
"(",
"Property",
"property",
":",
"config",
".",
"getProperty",
"(",
")",
")",
"{",
"String",
"name",
"=",
"property",
".",
"getName",
"(",
")",
".",
"trim",
... | Adds properties from the configuration to system properties.
@param config Configuration object. | [
"Adds",
"properties",
"from",
"the",
"configuration",
"to",
"system",
"properties",
"."
] | bb6d8eacbefdeb7c8c6bb6135e55939d968fa433 | https://github.com/wigforss/Ka-Web/blob/bb6d8eacbefdeb7c8c6bb6135e55939d968fa433/servlet/src/main/java/org/kasource/web/servlet/listener/properties/SystemPropertiesSetter.java#L160-L169 |
154,239 | wigforss/Ka-Web | servlet/src/main/java/org/kasource/web/servlet/listener/properties/SystemPropertiesSetter.java | SystemPropertiesSetter.addPropertiesFromFile | private void addPropertiesFromFile(final SystemProperties config, final ServletContext context) {
String fileLocation = StringUtils.replaceVariables(config.getFile(), new HashMap<String, Object>(), true);
InputStream inStream = null;
try {
inStream = getStreamForLocation(fileLocation... | java | private void addPropertiesFromFile(final SystemProperties config, final ServletContext context) {
String fileLocation = StringUtils.replaceVariables(config.getFile(), new HashMap<String, Object>(), true);
InputStream inStream = null;
try {
inStream = getStreamForLocation(fileLocation... | [
"private",
"void",
"addPropertiesFromFile",
"(",
"final",
"SystemProperties",
"config",
",",
"final",
"ServletContext",
"context",
")",
"{",
"String",
"fileLocation",
"=",
"StringUtils",
".",
"replaceVariables",
"(",
"config",
".",
"getFile",
"(",
")",
",",
"new",... | Adds properties from the properties file configured in the configuration object.
@param config Configuration object. | [
"Adds",
"properties",
"from",
"the",
"properties",
"file",
"configured",
"in",
"the",
"configuration",
"object",
"."
] | bb6d8eacbefdeb7c8c6bb6135e55939d968fa433 | https://github.com/wigforss/Ka-Web/blob/bb6d8eacbefdeb7c8c6bb6135e55939d968fa433/servlet/src/main/java/org/kasource/web/servlet/listener/properties/SystemPropertiesSetter.java#L176-L206 |
154,240 | jbundle/jbundle | base/screen/control/xslservlet/src/main/java/org/jbundle/base/screen/control/xslservlet/XSLServlet.java | XSLServlet.getTransformer | public Transformer getTransformer(HttpServletRequest req, ServletTask servletTask, ScreenModel screen)
throws ServletException, IOException
{
String stylesheet = null;
if (stylesheet == null)
stylesheet = req.getParameter(DBParams.TEMPLATE);
if (stylesheet == null)
... | java | public Transformer getTransformer(HttpServletRequest req, ServletTask servletTask, ScreenModel screen)
throws ServletException, IOException
{
String stylesheet = null;
if (stylesheet == null)
stylesheet = req.getParameter(DBParams.TEMPLATE);
if (stylesheet == null)
... | [
"public",
"Transformer",
"getTransformer",
"(",
"HttpServletRequest",
"req",
",",
"ServletTask",
"servletTask",
",",
"ScreenModel",
"screen",
")",
"throws",
"ServletException",
",",
"IOException",
"{",
"String",
"stylesheet",
"=",
"null",
";",
"if",
"(",
"stylesheet... | Get or Create a transformer for the specified stylesheet.
@param req
@param servletTask
@param screen
@return
@throws ServletException
@throws IOException | [
"Get",
"or",
"Create",
"a",
"transformer",
"for",
"the",
"specified",
"stylesheet",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/screen/control/xslservlet/src/main/java/org/jbundle/base/screen/control/xslservlet/XSLServlet.java#L189-L232 |
154,241 | tvesalainen/util | util/src/main/java/org/vesalainen/util/ArrayHelp.java | ArrayHelp.sort | public static void sort(double[] data, int rowLength)
{
quickSort(data, 0, (data.length - 1)/rowLength, rowLength, NATURAL_ROW_COMPARATOR, new double[rowLength], new double[rowLength]);
} | java | public static void sort(double[] data, int rowLength)
{
quickSort(data, 0, (data.length - 1)/rowLength, rowLength, NATURAL_ROW_COMPARATOR, new double[rowLength], new double[rowLength]);
} | [
"public",
"static",
"void",
"sort",
"(",
"double",
"[",
"]",
"data",
",",
"int",
"rowLength",
")",
"{",
"quickSort",
"(",
"data",
",",
"0",
",",
"(",
"data",
".",
"length",
"-",
"1",
")",
"/",
"rowLength",
",",
"rowLength",
",",
"NATURAL_ROW_COMPARATOR... | Sorts rows in 1D array in ascending order comparing each rows column.
@param data
@param rowLength | [
"Sorts",
"rows",
"in",
"1D",
"array",
"in",
"ascending",
"order",
"comparing",
"each",
"rows",
"column",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/ArrayHelp.java#L34-L37 |
154,242 | tvesalainen/util | util/src/main/java/org/vesalainen/util/ArrayHelp.java | ArrayHelp.contains | public static final <T> boolean contains(T[] array, T item)
{
for (T b : array)
{
if (b.equals(item))
{
return true;
}
}
return false;
} | java | public static final <T> boolean contains(T[] array, T item)
{
for (T b : array)
{
if (b.equals(item))
{
return true;
}
}
return false;
} | [
"public",
"static",
"final",
"<",
"T",
">",
"boolean",
"contains",
"(",
"T",
"[",
"]",
"array",
",",
"T",
"item",
")",
"{",
"for",
"(",
"T",
"b",
":",
"array",
")",
"{",
"if",
"(",
"b",
".",
"equals",
"(",
"item",
")",
")",
"{",
"return",
"tr... | Returns true if one of arr members equals item
@param <T>
@param array
@param item
@return | [
"Returns",
"true",
"if",
"one",
"of",
"arr",
"members",
"equals",
"item"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/ArrayHelp.java#L374-L384 |
154,243 | tvesalainen/util | util/src/main/java/org/vesalainen/util/ArrayHelp.java | ArrayHelp.containsOnly | public static final <T> boolean containsOnly(short[] array, T... items)
{
for (short b : array)
{
if (!contains(items, b))
{
return false;
}
}
return true;
} | java | public static final <T> boolean containsOnly(short[] array, T... items)
{
for (short b : array)
{
if (!contains(items, b))
{
return false;
}
}
return true;
} | [
"public",
"static",
"final",
"<",
"T",
">",
"boolean",
"containsOnly",
"(",
"short",
"[",
"]",
"array",
",",
"T",
"...",
"items",
")",
"{",
"for",
"(",
"short",
"b",
":",
"array",
")",
"{",
"if",
"(",
"!",
"contains",
"(",
"items",
",",
"b",
")",... | Throws UnsupportedOperationException if one of array members is not one
of items
@param <T>
@param array
@param items
@return | [
"Throws",
"UnsupportedOperationException",
"if",
"one",
"of",
"array",
"members",
"is",
"not",
"one",
"of",
"items"
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/ArrayHelp.java#L450-L460 |
154,244 | Stratio/stratio-connector-commons | connector-commons/src/main/java/com/stratio/connector/commons/metadata/CatalogMetadataBuilder.java | CatalogMetadataBuilder.withTables | @TimerJ
public CatalogMetadataBuilder withTables(TableMetadata... tableMetadataList) {
for (TableMetadata tableMetadata : tableMetadataList) {
tables.put(tableMetadata.getName(), tableMetadata);
}
return this;
} | java | @TimerJ
public CatalogMetadataBuilder withTables(TableMetadata... tableMetadataList) {
for (TableMetadata tableMetadata : tableMetadataList) {
tables.put(tableMetadata.getName(), tableMetadata);
}
return this;
} | [
"@",
"TimerJ",
"public",
"CatalogMetadataBuilder",
"withTables",
"(",
"TableMetadata",
"...",
"tableMetadataList",
")",
"{",
"for",
"(",
"TableMetadata",
"tableMetadata",
":",
"tableMetadataList",
")",
"{",
"tables",
".",
"put",
"(",
"tableMetadata",
".",
"getName",... | Adds tables to the catalog.
@param tableMetadataList the table metadata list
@return the catalog metadata builder | [
"Adds",
"tables",
"to",
"the",
"catalog",
"."
] | d7cc66cb9591344a13055962e87a91f01c3707d1 | https://github.com/Stratio/stratio-connector-commons/blob/d7cc66cb9591344a13055962e87a91f01c3707d1/connector-commons/src/main/java/com/stratio/connector/commons/metadata/CatalogMetadataBuilder.java#L68-L74 |
154,245 | jbundle/jbundle | main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java | MessageProcessInfo.getQueueType | public String getQueueType(boolean bDefaultIfNone)
{
String strQueueType = null;
Record recQueueName = ((ReferenceField)this.getField(MessageProcessInfo.QUEUE_NAME_ID)).getReference();
if (recQueueName != null)
if (recQueueName.getEditMode() == DBConstants.EDIT_CURRENT)
... | java | public String getQueueType(boolean bDefaultIfNone)
{
String strQueueType = null;
Record recQueueName = ((ReferenceField)this.getField(MessageProcessInfo.QUEUE_NAME_ID)).getReference();
if (recQueueName != null)
if (recQueueName.getEditMode() == DBConstants.EDIT_CURRENT)
... | [
"public",
"String",
"getQueueType",
"(",
"boolean",
"bDefaultIfNone",
")",
"{",
"String",
"strQueueType",
"=",
"null",
";",
"Record",
"recQueueName",
"=",
"(",
"(",
"ReferenceField",
")",
"this",
".",
"getField",
"(",
"MessageProcessInfo",
".",
"QUEUE_NAME_ID",
... | Get the queue type for this message process. | [
"Get",
"the",
"queue",
"type",
"for",
"this",
"message",
"process",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java#L238-L249 |
154,246 | jbundle/jbundle | main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java | MessageProcessInfo.setupMessageHeaderFromCode | public boolean setupMessageHeaderFromCode(Message trxMessage, String strMessageCode, String strVersion)
{
TrxMessageHeader trxMessageHeader = (TrxMessageHeader)((BaseMessage)trxMessage).getMessageHeader();
if ((trxMessageHeader == null) && (strMessageCode == null))
return false;
... | java | public boolean setupMessageHeaderFromCode(Message trxMessage, String strMessageCode, String strVersion)
{
TrxMessageHeader trxMessageHeader = (TrxMessageHeader)((BaseMessage)trxMessage).getMessageHeader();
if ((trxMessageHeader == null) && (strMessageCode == null))
return false;
... | [
"public",
"boolean",
"setupMessageHeaderFromCode",
"(",
"Message",
"trxMessage",
",",
"String",
"strMessageCode",
",",
"String",
"strVersion",
")",
"{",
"TrxMessageHeader",
"trxMessageHeader",
"=",
"(",
"TrxMessageHeader",
")",
"(",
"(",
"BaseMessage",
")",
"trxMessag... | SetupMessageHeaderFromCode Method. | [
"SetupMessageHeaderFromCode",
"Method",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java#L354-L380 |
154,247 | jbundle/jbundle | main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java | MessageProcessInfo.getMessageControl | public MessageControl getMessageControl()
{
if (m_recMessageControl == null)
{
RecordOwner recordOwner = this.findRecordOwner();
m_recMessageControl = new MessageControl(recordOwner);
if (recordOwner != null)
recordOwner.removeRecord(m_recMessa... | java | public MessageControl getMessageControl()
{
if (m_recMessageControl == null)
{
RecordOwner recordOwner = this.findRecordOwner();
m_recMessageControl = new MessageControl(recordOwner);
if (recordOwner != null)
recordOwner.removeRecord(m_recMessa... | [
"public",
"MessageControl",
"getMessageControl",
"(",
")",
"{",
"if",
"(",
"m_recMessageControl",
"==",
"null",
")",
"{",
"RecordOwner",
"recordOwner",
"=",
"this",
".",
"findRecordOwner",
"(",
")",
";",
"m_recMessageControl",
"=",
"new",
"MessageControl",
"(",
... | GetMessageControl Method. | [
"GetMessageControl",
"Method",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java#L499-L510 |
154,248 | jbundle/jbundle | main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java | MessageProcessInfo.addMessageProperties | public TrxMessageHeader addMessageProperties(TrxMessageHeader trxMessageHeader)
{
Map<String,Object> mapHeaderMessageInfo = trxMessageHeader.getMessageInfoMap();
Map<String,Object> propMessageProcessInfo = ((PropertiesField)this.getField(MessageProcessInfo.PROPERTIES)).loadProperties();
... | java | public TrxMessageHeader addMessageProperties(TrxMessageHeader trxMessageHeader)
{
Map<String,Object> mapHeaderMessageInfo = trxMessageHeader.getMessageInfoMap();
Map<String,Object> propMessageProcessInfo = ((PropertiesField)this.getField(MessageProcessInfo.PROPERTIES)).loadProperties();
... | [
"public",
"TrxMessageHeader",
"addMessageProperties",
"(",
"TrxMessageHeader",
"trxMessageHeader",
")",
"{",
"Map",
"<",
"String",
",",
"Object",
">",
"mapHeaderMessageInfo",
"=",
"trxMessageHeader",
".",
"getMessageInfoMap",
"(",
")",
";",
"Map",
"<",
"String",
","... | AddMessageProperties Method. | [
"AddMessageProperties",
"Method",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java#L514-L557 |
154,249 | jbundle/jbundle | main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java | MessageProcessInfo.setDefaultMessageProcessor | public void setDefaultMessageProcessor(Map<String,Object> mapHeaderMessageInfo)
{
if (mapHeaderMessageInfo.get(TrxMessageHeader.MESSAGE_PROCESSOR_CLASS) == null)
{
String strMessageInfoTypeCode = (String)mapHeaderMessageInfo.get(TrxMessageHeader.MESSAGE_INFO_TYPE);
String str... | java | public void setDefaultMessageProcessor(Map<String,Object> mapHeaderMessageInfo)
{
if (mapHeaderMessageInfo.get(TrxMessageHeader.MESSAGE_PROCESSOR_CLASS) == null)
{
String strMessageInfoTypeCode = (String)mapHeaderMessageInfo.get(TrxMessageHeader.MESSAGE_INFO_TYPE);
String str... | [
"public",
"void",
"setDefaultMessageProcessor",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"mapHeaderMessageInfo",
")",
"{",
"if",
"(",
"mapHeaderMessageInfo",
".",
"get",
"(",
"TrxMessageHeader",
".",
"MESSAGE_PROCESSOR_CLASS",
")",
"==",
"null",
")",
"{",
... | et the default processor if one is not specified. | [
"et",
"the",
"default",
"processor",
"if",
"one",
"is",
"not",
"specified",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java#L682-L703 |
154,250 | jbundle/jbundle | main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java | MessageProcessInfo.createReplyMessage | public Message createReplyMessage(Message message)
{
Object objResponseID = ((BaseMessage)message).getMessageHeader().get(TrxMessageHeader.MESSAGE_RESPONSE_ID);
if (objResponseID == null)
return null; // TODO (don) FIX this - return an error.
MessageProcessInfo recMessageProce... | java | public Message createReplyMessage(Message message)
{
Object objResponseID = ((BaseMessage)message).getMessageHeader().get(TrxMessageHeader.MESSAGE_RESPONSE_ID);
if (objResponseID == null)
return null; // TODO (don) FIX this - return an error.
MessageProcessInfo recMessageProce... | [
"public",
"Message",
"createReplyMessage",
"(",
"Message",
"message",
")",
"{",
"Object",
"objResponseID",
"=",
"(",
"(",
"BaseMessage",
")",
"message",
")",
".",
"getMessageHeader",
"(",
")",
".",
"get",
"(",
"TrxMessageHeader",
".",
"MESSAGE_RESPONSE_ID",
")",... | Create the response message for this message.
@return the response message (or null if none). | [
"Create",
"the",
"response",
"message",
"for",
"this",
"message",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/main/msg/src/main/java/org/jbundle/main/msg/db/MessageProcessInfo.java#L708-L718 |
154,251 | jmeetsma/Iglu-Util | src/main/java/org/ijsberg/iglu/util/execution/Executable.java | Executable.run | public void run() {
try {
Object result = execute();
if (!aborted) {
this.retval = result;
finished = true;
}
}
catch (InterruptedException ie) {
//
}
catch (Throwable t) {
execException = t;
finished = true;
}
} | java | public void run() {
try {
Object result = execute();
if (!aborted) {
this.retval = result;
finished = true;
}
}
catch (InterruptedException ie) {
//
}
catch (Throwable t) {
execException = t;
finished = true;
}
} | [
"public",
"void",
"run",
"(",
")",
"{",
"try",
"{",
"Object",
"result",
"=",
"execute",
"(",
")",
";",
"if",
"(",
"!",
"aborted",
")",
"{",
"this",
".",
"retval",
"=",
"result",
";",
"finished",
"=",
"true",
";",
"}",
"}",
"catch",
"(",
"Interrup... | Used to invoke executable asynchronously. | [
"Used",
"to",
"invoke",
"executable",
"asynchronously",
"."
] | 971eb022115247b1e34dc26dd02e7e621e29e910 | https://github.com/jmeetsma/Iglu-Util/blob/971eb022115247b1e34dc26dd02e7e621e29e910/src/main/java/org/ijsberg/iglu/util/execution/Executable.java#L54-L69 |
154,252 | jmeetsma/Iglu-Util | src/main/java/org/ijsberg/iglu/util/execution/Executable.java | Executable.interrupt | public void interrupt() {
if (!aborted) {
aborted = true;
if (executeThread != null) {
executeThread.interrupt();
}
if(helperExecutable != null) {
helperExecutable.interrupt();
}
}
} | java | public void interrupt() {
if (!aborted) {
aborted = true;
if (executeThread != null) {
executeThread.interrupt();
}
if(helperExecutable != null) {
helperExecutable.interrupt();
}
}
} | [
"public",
"void",
"interrupt",
"(",
")",
"{",
"if",
"(",
"!",
"aborted",
")",
"{",
"aborted",
"=",
"true",
";",
"if",
"(",
"executeThread",
"!=",
"null",
")",
"{",
"executeThread",
".",
"interrupt",
"(",
")",
";",
"}",
"if",
"(",
"helperExecutable",
... | Tries to interrupt execution.
Execution code is interrupted if it sleeps once in a while. | [
"Tries",
"to",
"interrupt",
"execution",
".",
"Execution",
"code",
"is",
"interrupted",
"if",
"it",
"sleeps",
"once",
"in",
"a",
"while",
"."
] | 971eb022115247b1e34dc26dd02e7e621e29e910 | https://github.com/jmeetsma/Iglu-Util/blob/971eb022115247b1e34dc26dd02e7e621e29e910/src/main/java/org/ijsberg/iglu/util/execution/Executable.java#L174-L184 |
154,253 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/event/SubCountHandler.java | SubCountHandler.init | public void init(Record record, Record recordMain, String iMainFilesField, BaseField fieldMain, String fsToCount, boolean bRecountOnSelect, boolean bVerifyOnEOF, boolean bResetOnBreak) // Init this field override for other value
{
super.init(record);
this.fsToCount = fsToCount;
if (fieldM... | java | public void init(Record record, Record recordMain, String iMainFilesField, BaseField fieldMain, String fsToCount, boolean bRecountOnSelect, boolean bVerifyOnEOF, boolean bResetOnBreak) // Init this field override for other value
{
super.init(record);
this.fsToCount = fsToCount;
if (fieldM... | [
"public",
"void",
"init",
"(",
"Record",
"record",
",",
"Record",
"recordMain",
",",
"String",
"iMainFilesField",
",",
"BaseField",
"fieldMain",
",",
"String",
"fsToCount",
",",
"boolean",
"bRecountOnSelect",
",",
"boolean",
"bVerifyOnEOF",
",",
"boolean",
"bReset... | Constructor for counting the value of a field in this record.
@param fieldMain The field to receive the count.
@param ifsToCount The field in this record to add up.
@param bVerifyOnEOF Verify the total on End of File (true default).
@param bRecountOnSelect Recount the total each time a file select is called (False defa... | [
"Constructor",
"for",
"counting",
"the",
"value",
"of",
"a",
"field",
"in",
"this",
"record",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/event/SubCountHandler.java#L127-L144 |
154,254 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/db/event/SubCountHandler.java | SubCountHandler.setCount | public int setCount(double dFieldCount, boolean bDisableListeners, int iMoveMode)
{
int iErrorCode = DBConstants.NORMAL_RETURN;
if (m_fldMain != null)
{
boolean[] rgbEnabled = null;
if (bDisableListeners)
rgbEnabled = m_fldMain.setEnableListeners(false... | java | public int setCount(double dFieldCount, boolean bDisableListeners, int iMoveMode)
{
int iErrorCode = DBConstants.NORMAL_RETURN;
if (m_fldMain != null)
{
boolean[] rgbEnabled = null;
if (bDisableListeners)
rgbEnabled = m_fldMain.setEnableListeners(false... | [
"public",
"int",
"setCount",
"(",
"double",
"dFieldCount",
",",
"boolean",
"bDisableListeners",
",",
"int",
"iMoveMode",
")",
"{",
"int",
"iErrorCode",
"=",
"DBConstants",
".",
"NORMAL_RETURN",
";",
"if",
"(",
"m_fldMain",
"!=",
"null",
")",
"{",
"boolean",
... | Reset the field count.
@param bDisableListeners Disable the field listeners (used for grid count verification)
@param iMoveMode Move mode. | [
"Reset",
"the",
"field",
"count",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/db/event/SubCountHandler.java#L312-L332 |
154,255 | GII/broccoli | broccoli-owls/src/main/java/com/hi3project/broccoli/bsdf/impl/owls/serviceBuilder/OWLSServiceBuilder.java | OWLSServiceBuilder.buildOWLSServiceFrom | public OWLSAtomicService buildOWLSServiceFrom(URI serviceURI, List<URI> modelURIs) throws ModelException
{
if (isFile(serviceURI))
{
return buildOWLSServiceFromLocalOrRemoteURI(serviceURI, modelURIs);
} else
{
Service service = OWLSStore.persistentModelAsOWLKB... | java | public OWLSAtomicService buildOWLSServiceFrom(URI serviceURI, List<URI> modelURIs) throws ModelException
{
if (isFile(serviceURI))
{
return buildOWLSServiceFromLocalOrRemoteURI(serviceURI, modelURIs);
} else
{
Service service = OWLSStore.persistentModelAsOWLKB... | [
"public",
"OWLSAtomicService",
"buildOWLSServiceFrom",
"(",
"URI",
"serviceURI",
",",
"List",
"<",
"URI",
">",
"modelURIs",
")",
"throws",
"ModelException",
"{",
"if",
"(",
"isFile",
"(",
"serviceURI",
")",
")",
"{",
"return",
"buildOWLSServiceFromLocalOrRemoteURI",... | Builds an OWLSAtomicService
@param serviceURI the URI that identifies the service
@param modelURIs a List of URIs for ontologies that may be used by the
service to be loaded
@return
@throws ModelException | [
"Builds",
"an",
"OWLSAtomicService"
] | a3033a90322cbcee4dc0f1719143b84b822bc4ba | https://github.com/GII/broccoli/blob/a3033a90322cbcee4dc0f1719143b84b822bc4ba/broccoli-owls/src/main/java/com/hi3project/broccoli/bsdf/impl/owls/serviceBuilder/OWLSServiceBuilder.java#L76-L90 |
154,256 | GII/broccoli | broccoli-owls/src/main/java/com/hi3project/broccoli/bsdf/impl/owls/serviceBuilder/OWLSServiceBuilder.java | OWLSServiceBuilder.buildOWLSServiceFrom | public OWLSAtomicService buildOWLSServiceFrom(Service owlsService) throws ModelException
{
OWLSAtomicService service = new OWLSAtomicService(owlsService);
return completeOWLSServiceIfNeeded(service);
} | java | public OWLSAtomicService buildOWLSServiceFrom(Service owlsService) throws ModelException
{
OWLSAtomicService service = new OWLSAtomicService(owlsService);
return completeOWLSServiceIfNeeded(service);
} | [
"public",
"OWLSAtomicService",
"buildOWLSServiceFrom",
"(",
"Service",
"owlsService",
")",
"throws",
"ModelException",
"{",
"OWLSAtomicService",
"service",
"=",
"new",
"OWLSAtomicService",
"(",
"owlsService",
")",
";",
"return",
"completeOWLSServiceIfNeeded",
"(",
"servic... | Builds an OWLSAtomicService, from a given Service object
@param owlsService
@return
@throws ModelException | [
"Builds",
"an",
"OWLSAtomicService",
"from",
"a",
"given",
"Service",
"object"
] | a3033a90322cbcee4dc0f1719143b84b822bc4ba | https://github.com/GII/broccoli/blob/a3033a90322cbcee4dc0f1719143b84b822bc4ba/broccoli-owls/src/main/java/com/hi3project/broccoli/bsdf/impl/owls/serviceBuilder/OWLSServiceBuilder.java#L99-L103 |
154,257 | GII/broccoli | broccoli-owls/src/main/java/com/hi3project/broccoli/bsdf/impl/owls/serviceBuilder/OWLSServiceBuilder.java | OWLSServiceBuilder.buildOWLSServiceFromLocalOrRemoteURI | private OWLSAtomicService buildOWLSServiceFromLocalOrRemoteURI(URI serviceURI, List<URI> modelURIs) throws ModelException
{
BSDFLogger.getLogger().info("Builds OWL service (BSDF functionality) from: " + serviceURI.toString());
OWLContainer owlSyntaxTranslator = new OWLContainer();
OWLKnowled... | java | private OWLSAtomicService buildOWLSServiceFromLocalOrRemoteURI(URI serviceURI, List<URI> modelURIs) throws ModelException
{
BSDFLogger.getLogger().info("Builds OWL service (BSDF functionality) from: " + serviceURI.toString());
OWLContainer owlSyntaxTranslator = new OWLContainer();
OWLKnowled... | [
"private",
"OWLSAtomicService",
"buildOWLSServiceFromLocalOrRemoteURI",
"(",
"URI",
"serviceURI",
",",
"List",
"<",
"URI",
">",
"modelURIs",
")",
"throws",
"ModelException",
"{",
"BSDFLogger",
".",
"getLogger",
"(",
")",
".",
"info",
"(",
"\"Builds OWL service (BSDF f... | Builds an OWLSAtomicService, from a given URI that has to be a local file
or an http URL
@param serviceURI the URI for the service location
@param modelURIs a List of URIs for ontologies that may be used by the
service to be loaded (currently needed when the service is written in
functional or turtle syntax)
@return
@... | [
"Builds",
"an",
"OWLSAtomicService",
"from",
"a",
"given",
"URI",
"that",
"has",
"to",
"be",
"a",
"local",
"file",
"or",
"an",
"http",
"URL"
] | a3033a90322cbcee4dc0f1719143b84b822bc4ba | https://github.com/GII/broccoli/blob/a3033a90322cbcee4dc0f1719143b84b822bc4ba/broccoli-owls/src/main/java/com/hi3project/broccoli/bsdf/impl/owls/serviceBuilder/OWLSServiceBuilder.java#L129-L145 |
154,258 | mbenson/uelbox | src/main/java/uelbox/ELContextWrapper.java | ELContextWrapper.getTypedContext | public final <T> T getTypedContext(Class<T> key, T defaultValue) {
return UEL.getContext(this, key, defaultValue);
} | java | public final <T> T getTypedContext(Class<T> key, T defaultValue) {
return UEL.getContext(this, key, defaultValue);
} | [
"public",
"final",
"<",
"T",
">",
"T",
"getTypedContext",
"(",
"Class",
"<",
"T",
">",
"key",
",",
"T",
"defaultValue",
")",
"{",
"return",
"UEL",
".",
"getContext",
"(",
"this",
",",
"key",
",",
"defaultValue",
")",
";",
"}"
] | Convenience method to return a typed context object when key resolves per documented convention to an object of
the same type.
@param <T>
@param key
@param defaultValue if absent
@return T
@see ELContext#getContext(Class) | [
"Convenience",
"method",
"to",
"return",
"a",
"typed",
"context",
"object",
"when",
"key",
"resolves",
"per",
"documented",
"convention",
"to",
"an",
"object",
"of",
"the",
"same",
"type",
"."
] | b0c2df2c738295bddfd3c16a916e67c9c7c512ef | https://github.com/mbenson/uelbox/blob/b0c2df2c738295bddfd3c16a916e67c9c7c512ef/src/main/java/uelbox/ELContextWrapper.java#L151-L153 |
154,259 | theHilikus/Event-manager | src/main/java/com/github/thehilikus/events/event_manager/SubscriptionManager.java | SubscriptionManager.subscribe | public <T extends EventListener> void subscribe(EventPublisher source, T listener) {
if (source == null || listener == null) {
throw new IllegalArgumentException("Parameters cannot be null");
}
log.debug("[subscribe] Adding {} --> {}", source.getClass().getName(), listener.getClass().getName());
GenericEventD... | java | public <T extends EventListener> void subscribe(EventPublisher source, T listener) {
if (source == null || listener == null) {
throw new IllegalArgumentException("Parameters cannot be null");
}
log.debug("[subscribe] Adding {} --> {}", source.getClass().getName(), listener.getClass().getName());
GenericEventD... | [
"public",
"<",
"T",
"extends",
"EventListener",
">",
"void",
"subscribe",
"(",
"EventPublisher",
"source",
",",
"T",
"listener",
")",
"{",
"if",
"(",
"source",
"==",
"null",
"||",
"listener",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException"... | Binds a listener to a publisher
@param source the event publisher
@param listener the event receiver | [
"Binds",
"a",
"listener",
"to",
"a",
"publisher"
] | c3dabf5a145e57b2a6de89c1910851b8a8ae6064 | https://github.com/theHilikus/Event-manager/blob/c3dabf5a145e57b2a6de89c1910851b8a8ae6064/src/main/java/com/github/thehilikus/events/event_manager/SubscriptionManager.java#L30-L44 |
154,260 | theHilikus/Event-manager | src/main/java/com/github/thehilikus/events/event_manager/SubscriptionManager.java | SubscriptionManager.unsubscribe | public <T extends EventListener> void unsubscribe(EventPublisher source, T listener) {
log.debug("[unsubscribe] Removing {} --> {}", source.getClass().getName(), listener.getClass().getName());
GenericEventDispatcher<T> dispatcher = (GenericEventDispatcher<T>) dispatchers.get(source);
dispatcher.removeListener(liste... | java | public <T extends EventListener> void unsubscribe(EventPublisher source, T listener) {
log.debug("[unsubscribe] Removing {} --> {}", source.getClass().getName(), listener.getClass().getName());
GenericEventDispatcher<T> dispatcher = (GenericEventDispatcher<T>) dispatchers.get(source);
dispatcher.removeListener(liste... | [
"public",
"<",
"T",
"extends",
"EventListener",
">",
"void",
"unsubscribe",
"(",
"EventPublisher",
"source",
",",
"T",
"listener",
")",
"{",
"log",
".",
"debug",
"(",
"\"[unsubscribe] Removing {} --> {}\"",
",",
"source",
".",
"getClass",
"(",
")",
".",
"getNa... | Unbinds a listener to a publisher
@param source the event publisher
@param listener the event receiver | [
"Unbinds",
"a",
"listener",
"to",
"a",
"publisher"
] | c3dabf5a145e57b2a6de89c1910851b8a8ae6064 | https://github.com/theHilikus/Event-manager/blob/c3dabf5a145e57b2a6de89c1910851b8a8ae6064/src/main/java/com/github/thehilikus/events/event_manager/SubscriptionManager.java#L59-L63 |
154,261 | theHilikus/Event-manager | src/main/java/com/github/thehilikus/events/event_manager/SubscriptionManager.java | SubscriptionManager.getEventDispatcher | public EventDispatcher getEventDispatcher(EventPublisher source) {
EventDispatcher ret = dispatchers.get(source);
if (ret == null) {
ret = createDispatcher(source);
}
return ret;
} | java | public EventDispatcher getEventDispatcher(EventPublisher source) {
EventDispatcher ret = dispatchers.get(source);
if (ret == null) {
ret = createDispatcher(source);
}
return ret;
} | [
"public",
"EventDispatcher",
"getEventDispatcher",
"(",
"EventPublisher",
"source",
")",
"{",
"EventDispatcher",
"ret",
"=",
"dispatchers",
".",
"get",
"(",
"source",
")",
";",
"if",
"(",
"ret",
"==",
"null",
")",
"{",
"ret",
"=",
"createDispatcher",
"(",
"s... | Gets the object used to fire events
@param source the event publisher
@return the object used to fire events | [
"Gets",
"the",
"object",
"used",
"to",
"fire",
"events"
] | c3dabf5a145e57b2a6de89c1910851b8a8ae6064 | https://github.com/theHilikus/Event-manager/blob/c3dabf5a145e57b2a6de89c1910851b8a8ae6064/src/main/java/com/github/thehilikus/events/event_manager/SubscriptionManager.java#L71-L77 |
154,262 | theHilikus/Event-manager | src/main/java/com/github/thehilikus/events/event_manager/SubscriptionManager.java | SubscriptionManager.getSubscribersCount | public int getSubscribersCount(EventPublisher source) {
GenericEventDispatcher<?> dispatcherObject = dispatchers.get(source);
if (dispatcherObject == null) {
return 0;
} else {
return dispatcherObject.getListenersCount();
}
} | java | public int getSubscribersCount(EventPublisher source) {
GenericEventDispatcher<?> dispatcherObject = dispatchers.get(source);
if (dispatcherObject == null) {
return 0;
} else {
return dispatcherObject.getListenersCount();
}
} | [
"public",
"int",
"getSubscribersCount",
"(",
"EventPublisher",
"source",
")",
"{",
"GenericEventDispatcher",
"<",
"?",
">",
"dispatcherObject",
"=",
"dispatchers",
".",
"get",
"(",
"source",
")",
";",
"if",
"(",
"dispatcherObject",
"==",
"null",
")",
"{",
"ret... | Gets the number of listeners registered for a publisher
@param source the event publisher
@return the number of listeners registered for a publisher | [
"Gets",
"the",
"number",
"of",
"listeners",
"registered",
"for",
"a",
"publisher"
] | c3dabf5a145e57b2a6de89c1910851b8a8ae6064 | https://github.com/theHilikus/Event-manager/blob/c3dabf5a145e57b2a6de89c1910851b8a8ae6064/src/main/java/com/github/thehilikus/events/event_manager/SubscriptionManager.java#L113-L121 |
154,263 | fuinorg/utils4swing | src/main/java/org/fuin/utils4swing/common/Utils4Swing.java | Utils4Swing.createShowAndPosition | public static JFrame createShowAndPosition(final String title, final Container content,
final boolean exitOnClose, final FramePositioner positioner) {
return createShowAndPosition(title, content, exitOnClose, true, positioner);
} | java | public static JFrame createShowAndPosition(final String title, final Container content,
final boolean exitOnClose, final FramePositioner positioner) {
return createShowAndPosition(title, content, exitOnClose, true, positioner);
} | [
"public",
"static",
"JFrame",
"createShowAndPosition",
"(",
"final",
"String",
"title",
",",
"final",
"Container",
"content",
",",
"final",
"boolean",
"exitOnClose",
",",
"final",
"FramePositioner",
"positioner",
")",
"{",
"return",
"createShowAndPosition",
"(",
"ti... | Create a new resizeable frame with a panel as it's content pane and
position the frame.
@param title
Frame title.
@param content
Content.
@param exitOnClose
Exit the program on closing the frame?
@param positioner
FramePositioner.
@return A visible frame at the preferred position. | [
"Create",
"a",
"new",
"resizeable",
"frame",
"with",
"a",
"panel",
"as",
"it",
"s",
"content",
"pane",
"and",
"position",
"the",
"frame",
"."
] | 560fb69eac182e3473de9679c3c15433e524ef6b | https://github.com/fuinorg/utils4swing/blob/560fb69eac182e3473de9679c3c15433e524ef6b/src/main/java/org/fuin/utils4swing/common/Utils4Swing.java#L66-L69 |
154,264 | fuinorg/utils4swing | src/main/java/org/fuin/utils4swing/common/Utils4Swing.java | Utils4Swing.loadIcon | public static ImageIcon loadIcon(final Class clasz, final String name) {
final URL url = Utils4J.getResource(clasz, name);
return new ImageIcon(url);
} | java | public static ImageIcon loadIcon(final Class clasz, final String name) {
final URL url = Utils4J.getResource(clasz, name);
return new ImageIcon(url);
} | [
"public",
"static",
"ImageIcon",
"loadIcon",
"(",
"final",
"Class",
"clasz",
",",
"final",
"String",
"name",
")",
"{",
"final",
"URL",
"url",
"=",
"Utils4J",
".",
"getResource",
"(",
"clasz",
",",
"name",
")",
";",
"return",
"new",
"ImageIcon",
"(",
"url... | Load an icon located in the same package as a given class.
@param clasz
Class with the same package where the icon is located.
@param name
Filename of the icon.
@return New icon instance. | [
"Load",
"an",
"icon",
"located",
"in",
"the",
"same",
"package",
"as",
"a",
"given",
"class",
"."
] | 560fb69eac182e3473de9679c3c15433e524ef6b | https://github.com/fuinorg/utils4swing/blob/560fb69eac182e3473de9679c3c15433e524ef6b/src/main/java/org/fuin/utils4swing/common/Utils4Swing.java#L124-L127 |
154,265 | fuinorg/utils4swing | src/main/java/org/fuin/utils4swing/common/Utils4Swing.java | Utils4Swing.initLookAndFeelIntern | private static void initLookAndFeelIntern(final String className) {
try {
UIManager.setLookAndFeel(className);
} catch (final Exception e) {
throw new RuntimeException("Error initializing the Look And Feel!", e);
}
} | java | private static void initLookAndFeelIntern(final String className) {
try {
UIManager.setLookAndFeel(className);
} catch (final Exception e) {
throw new RuntimeException("Error initializing the Look And Feel!", e);
}
} | [
"private",
"static",
"void",
"initLookAndFeelIntern",
"(",
"final",
"String",
"className",
")",
"{",
"try",
"{",
"UIManager",
".",
"setLookAndFeel",
"(",
"className",
")",
";",
"}",
"catch",
"(",
"final",
"Exception",
"e",
")",
"{",
"throw",
"new",
"RuntimeE... | Initializes the look and feel and wraps exceptions into a runtime
exception. It's executed in the calling thread.
@param className
Full qualified name of the look and feel class. | [
"Initializes",
"the",
"look",
"and",
"feel",
"and",
"wraps",
"exceptions",
"into",
"a",
"runtime",
"exception",
".",
"It",
"s",
"executed",
"in",
"the",
"calling",
"thread",
"."
] | 560fb69eac182e3473de9679c3c15433e524ef6b | https://github.com/fuinorg/utils4swing/blob/560fb69eac182e3473de9679c3c15433e524ef6b/src/main/java/org/fuin/utils4swing/common/Utils4Swing.java#L136-L142 |
154,266 | fuinorg/utils4swing | src/main/java/org/fuin/utils4swing/common/Utils4Swing.java | Utils4Swing.findRootPaneContainer | public static RootPaneContainer findRootPaneContainer(final Component source) {
Component comp = source;
while ((comp != null) && !(comp instanceof RootPaneContainer)) {
comp = comp.getParent();
}
if (comp instanceof RootPaneContainer) {
return (RootPaneCont... | java | public static RootPaneContainer findRootPaneContainer(final Component source) {
Component comp = source;
while ((comp != null) && !(comp instanceof RootPaneContainer)) {
comp = comp.getParent();
}
if (comp instanceof RootPaneContainer) {
return (RootPaneCont... | [
"public",
"static",
"RootPaneContainer",
"findRootPaneContainer",
"(",
"final",
"Component",
"source",
")",
"{",
"Component",
"comp",
"=",
"source",
";",
"while",
"(",
"(",
"comp",
"!=",
"null",
")",
"&&",
"!",
"(",
"comp",
"instanceof",
"RootPaneContainer",
"... | Find the root pane container in the current hierarchy.
@param source
Component to start with.
@return Root pane container or NULL if it cannot be found. | [
"Find",
"the",
"root",
"pane",
"container",
"in",
"the",
"current",
"hierarchy",
"."
] | 560fb69eac182e3473de9679c3c15433e524ef6b | https://github.com/fuinorg/utils4swing/blob/560fb69eac182e3473de9679c3c15433e524ef6b/src/main/java/org/fuin/utils4swing/common/Utils4Swing.java#L187-L196 |
154,267 | fuinorg/utils4swing | src/main/java/org/fuin/utils4swing/common/Utils4Swing.java | Utils4Swing.showGlassPane | public static GlassPaneState showGlassPane(final Component source) {
final Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager()
.getFocusOwner();
final RootPaneContainer rootPaneContainer = findRootPaneContainer(source);
final Component glassPane = roo... | java | public static GlassPaneState showGlassPane(final Component source) {
final Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager()
.getFocusOwner();
final RootPaneContainer rootPaneContainer = findRootPaneContainer(source);
final Component glassPane = roo... | [
"public",
"static",
"GlassPaneState",
"showGlassPane",
"(",
"final",
"Component",
"source",
")",
"{",
"final",
"Component",
"focusOwner",
"=",
"KeyboardFocusManager",
".",
"getCurrentKeyboardFocusManager",
"(",
")",
".",
"getFocusOwner",
"(",
")",
";",
"final",
"Roo... | Makes the glass pane visible and focused and stores the saves the current
state.
@param source
Component to use when looking for the root pane container.
@return State of the UI before the glasspane was visible. | [
"Makes",
"the",
"glass",
"pane",
"visible",
"and",
"focused",
"and",
"stores",
"the",
"saves",
"the",
"current",
"state",
"."
] | 560fb69eac182e3473de9679c3c15433e524ef6b | https://github.com/fuinorg/utils4swing/blob/560fb69eac182e3473de9679c3c15433e524ef6b/src/main/java/org/fuin/utils4swing/common/Utils4Swing.java#L207-L220 |
154,268 | fuinorg/utils4swing | src/main/java/org/fuin/utils4swing/common/Utils4Swing.java | Utils4Swing.hideGlassPane | public static void hideGlassPane(final GlassPaneState state) {
Utils4J.checkNotNull("state", state);
final Component glassPane = state.getGlassPane();
glassPane.removeMouseListener(state.getMouseListener());
glassPane.setCursor(state.getCursor());
glassPane.setVisible(false);
... | java | public static void hideGlassPane(final GlassPaneState state) {
Utils4J.checkNotNull("state", state);
final Component glassPane = state.getGlassPane();
glassPane.removeMouseListener(state.getMouseListener());
glassPane.setCursor(state.getCursor());
glassPane.setVisible(false);
... | [
"public",
"static",
"void",
"hideGlassPane",
"(",
"final",
"GlassPaneState",
"state",
")",
"{",
"Utils4J",
".",
"checkNotNull",
"(",
"\"state\"",
",",
"state",
")",
";",
"final",
"Component",
"glassPane",
"=",
"state",
".",
"getGlassPane",
"(",
")",
";",
"gl... | Hides the glass pane and restores the saved state.
@param state
State to restore - Cannot be <code>null</code>. | [
"Hides",
"the",
"glass",
"pane",
"and",
"restores",
"the",
"saved",
"state",
"."
] | 560fb69eac182e3473de9679c3c15433e524ef6b | https://github.com/fuinorg/utils4swing/blob/560fb69eac182e3473de9679c3c15433e524ef6b/src/main/java/org/fuin/utils4swing/common/Utils4Swing.java#L228-L237 |
154,269 | entrusc/xdata | src/main/java/com/moebiusgames/xdata/DataNode.java | DataNode.setObject | public <T> void setObject(DataKey<T> key, T object) {
if (key == null) {
throw new IllegalArgumentException("key must not be null");
}
if (object == null && !key.allowNull()) {
throw new IllegalArgumentException("key \"" + key.getName() + "\" disallows null values but obj... | java | public <T> void setObject(DataKey<T> key, T object) {
if (key == null) {
throw new IllegalArgumentException("key must not be null");
}
if (object == null && !key.allowNull()) {
throw new IllegalArgumentException("key \"" + key.getName() + "\" disallows null values but obj... | [
"public",
"<",
"T",
">",
"void",
"setObject",
"(",
"DataKey",
"<",
"T",
">",
"key",
",",
"T",
"object",
")",
"{",
"if",
"(",
"key",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"key must not be null\"",
")",
";",
"}",
"if"... | stores an object for the given key
@param <T>
@param key
@param object | [
"stores",
"an",
"object",
"for",
"the",
"given",
"key"
] | 44ba4c59fd639c99b89fc8995ba83fe89ca4239d | https://github.com/entrusc/xdata/blob/44ba4c59fd639c99b89fc8995ba83fe89ca4239d/src/main/java/com/moebiusgames/xdata/DataNode.java#L113-L121 |
154,270 | entrusc/xdata | src/main/java/com/moebiusgames/xdata/DataNode.java | DataNode.setObjectList | public <T> void setObjectList(ListDataKey<T> key, List<T> objects) {
if (key == null) {
throw new IllegalArgumentException("key must not be null");
}
if (objects == null && !key.allowNull()) {
throw new IllegalArgumentException("list key \"" + key.getName() + "\" disallow... | java | public <T> void setObjectList(ListDataKey<T> key, List<T> objects) {
if (key == null) {
throw new IllegalArgumentException("key must not be null");
}
if (objects == null && !key.allowNull()) {
throw new IllegalArgumentException("list key \"" + key.getName() + "\" disallow... | [
"public",
"<",
"T",
">",
"void",
"setObjectList",
"(",
"ListDataKey",
"<",
"T",
">",
"key",
",",
"List",
"<",
"T",
">",
"objects",
")",
"{",
"if",
"(",
"key",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"key must not be nul... | stores a list of objects for a given key
@param <T>
@param key a list data key (where isList is set to true)
@param objects | [
"stores",
"a",
"list",
"of",
"objects",
"for",
"a",
"given",
"key"
] | 44ba4c59fd639c99b89fc8995ba83fe89ca4239d | https://github.com/entrusc/xdata/blob/44ba4c59fd639c99b89fc8995ba83fe89ca4239d/src/main/java/com/moebiusgames/xdata/DataNode.java#L130-L138 |
154,271 | lshift/jamume | src/main/java/net/lshift/java/dispatch/Delegate.java | Delegate.delegateIf | @SuppressWarnings("unchecked")
public static <C> C delegateIf(
Class<C> contract,
Supplier<C> target,
Supplier<Boolean> condition)
{
checkVoid(contract);
return (C)Proxy.newProxyInstance(
contract.getClassLoader(... | java | @SuppressWarnings("unchecked")
public static <C> C delegateIf(
Class<C> contract,
Supplier<C> target,
Supplier<Boolean> condition)
{
checkVoid(contract);
return (C)Proxy.newProxyInstance(
contract.getClassLoader(... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"C",
">",
"C",
"delegateIf",
"(",
"Class",
"<",
"C",
">",
"contract",
",",
"Supplier",
"<",
"C",
">",
"target",
",",
"Supplier",
"<",
"Boolean",
">",
"condition",
")",
"{",
"c... | Create a proxy which only delegates if a condition is true.
@param <C> the contract class
@param contract the contract class
@param target the object to delegate to
@param condition - if Reference.get() returns true at the
time of the call, then the method will be executed, otherwise not.
@return | [
"Create",
"a",
"proxy",
"which",
"only",
"delegates",
"if",
"a",
"condition",
"is",
"true",
"."
] | 754d9ab29311601328a2f39928775e4e010305b7 | https://github.com/lshift/jamume/blob/754d9ab29311601328a2f39928775e4e010305b7/src/main/java/net/lshift/java/dispatch/Delegate.java#L34-L45 |
154,272 | jbundle/jbundle | thin/base/screen/util/src/main/java/org/jbundle/thin/base/screen/util/JFSTextScroller.java | JFSTextScroller.keyPressed | public void keyPressed(KeyEvent evt)
{
if (evt.getKeyCode() == KeyEvent.VK_ENTER)
{
boolean bDoTab = true;
int iTextLength = m_control.getDocument().getLength();
if (((m_control.getSelectionStart() == 0) || (m_control.getSelectionStart() == iTextLength))
... | java | public void keyPressed(KeyEvent evt)
{
if (evt.getKeyCode() == KeyEvent.VK_ENTER)
{
boolean bDoTab = true;
int iTextLength = m_control.getDocument().getLength();
if (((m_control.getSelectionStart() == 0) || (m_control.getSelectionStart() == iTextLength))
... | [
"public",
"void",
"keyPressed",
"(",
"KeyEvent",
"evt",
")",
"{",
"if",
"(",
"evt",
".",
"getKeyCode",
"(",
")",
"==",
"KeyEvent",
".",
"VK_ENTER",
")",
"{",
"boolean",
"bDoTab",
"=",
"true",
";",
"int",
"iTextLength",
"=",
"m_control",
".",
"getDocument... | key released, if tab, select next field. | [
"key",
"released",
"if",
"tab",
"select",
"next",
"field",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/util/src/main/java/org/jbundle/thin/base/screen/util/JFSTextScroller.java#L120-L145 |
154,273 | jbundle/jbundle | base/message/trx/src/main/java/org/jbundle/base/message/trx/message/external/convert/BaseConvertToMessage.java | BaseConvertToMessage.unmarshalRootElement | public Object unmarshalRootElement(Node node, BaseXmlTrxMessageIn soapTrxMessage) throws Exception
{
// Override this! (If you can!)
TransformerFactory tFact = TransformerFactory.newInstance();
Source source = new DOMSource(node);
Writer writer = new StringWriter();
Resu... | java | public Object unmarshalRootElement(Node node, BaseXmlTrxMessageIn soapTrxMessage) throws Exception
{
// Override this! (If you can!)
TransformerFactory tFact = TransformerFactory.newInstance();
Source source = new DOMSource(node);
Writer writer = new StringWriter();
Resu... | [
"public",
"Object",
"unmarshalRootElement",
"(",
"Node",
"node",
",",
"BaseXmlTrxMessageIn",
"soapTrxMessage",
")",
"throws",
"Exception",
"{",
"// Override this! (If you can!)",
"TransformerFactory",
"tFact",
"=",
"TransformerFactory",
".",
"newInstance",
"(",
")",
";",
... | Create the root element for this message.
You SHOULD override this if the unmarshaller has a native method to unmarshall a dom node.
@return The root element. | [
"Create",
"the",
"root",
"element",
"for",
"this",
"message",
".",
"You",
"SHOULD",
"override",
"this",
"if",
"the",
"unmarshaller",
"has",
"a",
"native",
"method",
"to",
"unmarshall",
"a",
"dom",
"node",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/message/trx/src/main/java/org/jbundle/base/message/trx/message/external/convert/BaseConvertToMessage.java#L105-L128 |
154,274 | jbundle/jbundle | base/message/trx/src/main/java/org/jbundle/base/message/trx/message/external/convert/BaseConvertToMessage.java | BaseConvertToMessage.addPayloadProperties | public void addPayloadProperties(Object msg, BaseMessage message)
{
MessageDataDesc messageDataDesc = message.getMessageDataDesc(null); // Top level only
if (messageDataDesc != null)
{
Map<String,Class<?>> mapPropertyNames = messageDataDesc.getPayloadPropertyNames(null);
... | java | public void addPayloadProperties(Object msg, BaseMessage message)
{
MessageDataDesc messageDataDesc = message.getMessageDataDesc(null); // Top level only
if (messageDataDesc != null)
{
Map<String,Class<?>> mapPropertyNames = messageDataDesc.getPayloadPropertyNames(null);
... | [
"public",
"void",
"addPayloadProperties",
"(",
"Object",
"msg",
",",
"BaseMessage",
"message",
")",
"{",
"MessageDataDesc",
"messageDataDesc",
"=",
"message",
".",
"getMessageDataDesc",
"(",
"null",
")",
";",
"// Top level only",
"if",
"(",
"messageDataDesc",
"!=",
... | Utility to add the standard payload properties to the message
@param msg
@param message | [
"Utility",
"to",
"add",
"the",
"standard",
"payload",
"properties",
"to",
"the",
"message"
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/message/trx/src/main/java/org/jbundle/base/message/trx/message/external/convert/BaseConvertToMessage.java#L161-L177 |
154,275 | jbundle/jbundle | base/message/trx/src/main/java/org/jbundle/base/message/trx/message/external/convert/BaseConvertToMessage.java | BaseConvertToMessage.getPayloadProperties | public Map<String,Object> getPayloadProperties(Object msg, Map<String,Class<?>> mapPropertyNames)
{
Map<String,Object> properties = new HashMap<String,Object>();
for (String strKey : mapPropertyNames.keySet())
{
this.addPayloadProperty(msg, properties, strKey); ... | java | public Map<String,Object> getPayloadProperties(Object msg, Map<String,Class<?>> mapPropertyNames)
{
Map<String,Object> properties = new HashMap<String,Object>();
for (String strKey : mapPropertyNames.keySet())
{
this.addPayloadProperty(msg, properties, strKey); ... | [
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"getPayloadProperties",
"(",
"Object",
"msg",
",",
"Map",
"<",
"String",
",",
"Class",
"<",
"?",
">",
">",
"mapPropertyNames",
")",
"{",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
"=",
"n... | Get all the payload properties.
@param msg
@return | [
"Get",
"all",
"the",
"payload",
"properties",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/message/trx/src/main/java/org/jbundle/base/message/trx/message/external/convert/BaseConvertToMessage.java#L183-L193 |
154,276 | jbundle/jbundle | base/message/trx/src/main/java/org/jbundle/base/message/trx/message/external/convert/BaseConvertToMessage.java | BaseConvertToMessage.addPayloadProperty | public void addPayloadProperty(Object msg, Map<String,Object> properties, String key)
{
String name = "get" + key;
try {
Method method = msg.getClass().getMethod(name, EMPTY_PARAMS);
if (method != null)
{
Object value = method.invoke(msg, EMPTY_DAT... | java | public void addPayloadProperty(Object msg, Map<String,Object> properties, String key)
{
String name = "get" + key;
try {
Method method = msg.getClass().getMethod(name, EMPTY_PARAMS);
if (method != null)
{
Object value = method.invoke(msg, EMPTY_DAT... | [
"public",
"void",
"addPayloadProperty",
"(",
"Object",
"msg",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
",",
"String",
"key",
")",
"{",
"String",
"name",
"=",
"\"get\"",
"+",
"key",
";",
"try",
"{",
"Method",
"method",
"=",
"msg",
".... | Add this payload property to this map.
@param msg
@param properties
@param key | [
"Add",
"this",
"payload",
"property",
"to",
"this",
"map",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/message/trx/src/main/java/org/jbundle/base/message/trx/message/external/convert/BaseConvertToMessage.java#L200-L225 |
154,277 | jbundle/jbundle | base/message/trx/src/main/java/org/jbundle/base/message/trx/message/external/convert/BaseConvertToMessage.java | BaseConvertToMessage.addErrorsProperties | public void addErrorsProperties(Map<String,Object> properties, Object errorsType)
{
try {
Method method = errorsType.getClass().getMethod("getErrors", EMPTY_PARAMS);
if (method != null)
{
Object value = method.invoke(errorsType, EMPTY_DATA);
... | java | public void addErrorsProperties(Map<String,Object> properties, Object errorsType)
{
try {
Method method = errorsType.getClass().getMethod("getErrors", EMPTY_PARAMS);
if (method != null)
{
Object value = method.invoke(errorsType, EMPTY_DATA);
... | [
"public",
"void",
"addErrorsProperties",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
",",
"Object",
"errorsType",
")",
"{",
"try",
"{",
"Method",
"method",
"=",
"errorsType",
".",
"getClass",
"(",
")",
".",
"getMethod",
"(",
"\"getErrors\"",... | Add the error properties from this message.
@param properties
@param errorsType | [
"Add",
"the",
"error",
"properties",
"from",
"this",
"message",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/message/trx/src/main/java/org/jbundle/base/message/trx/message/external/convert/BaseConvertToMessage.java#L231-L263 |
154,278 | tvesalainen/util | util/src/main/java/org/vesalainen/util/navi/Location.java | Location.radius | @Unit(NM)
public static double radius(Location... location)
{
Location center = center(location);
double max = 0;
for (Location loc : location)
{
Distance distance = distance(loc, center);
double miles = distance.getMiles();
if (miles ... | java | @Unit(NM)
public static double radius(Location... location)
{
Location center = center(location);
double max = 0;
for (Location loc : location)
{
Distance distance = distance(loc, center);
double miles = distance.getMiles();
if (miles ... | [
"@",
"Unit",
"(",
"NM",
")",
"public",
"static",
"double",
"radius",
"(",
"Location",
"...",
"location",
")",
"{",
"Location",
"center",
"=",
"center",
"(",
"location",
")",
";",
"double",
"max",
"=",
"0",
";",
"for",
"(",
"Location",
"loc",
":",
"lo... | First calculates center point and returns maximum distance from center
in NM.
@param location
@return | [
"First",
"calculates",
"center",
"point",
"and",
"returns",
"maximum",
"distance",
"from",
"center",
"in",
"NM",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/util/navi/Location.java#L280-L295 |
154,279 | isisaddons-legacy/isis-module-publishing | dom/src/main/java/org/isisaddons/module/publishing/dom/PublishingServiceRepository.java | PublishingServiceRepository.findQueued | @Programmatic
public List<PublishedEvent> findQueued() {
return repositoryService.allMatches(
new QueryDefault<>(PublishedEvent.class,
"findByStateOrderByTimestamp",
"state", PublishedEvent.State.QUEUED));
} | java | @Programmatic
public List<PublishedEvent> findQueued() {
return repositoryService.allMatches(
new QueryDefault<>(PublishedEvent.class,
"findByStateOrderByTimestamp",
"state", PublishedEvent.State.QUEUED));
} | [
"@",
"Programmatic",
"public",
"List",
"<",
"PublishedEvent",
">",
"findQueued",
"(",
")",
"{",
"return",
"repositoryService",
".",
"allMatches",
"(",
"new",
"QueryDefault",
"<>",
"(",
"PublishedEvent",
".",
"class",
",",
"\"findByStateOrderByTimestamp\"",
",",
"\... | region > findQueued | [
"region",
">",
"findQueued"
] | 9f13eab061156b70ccefd2418346dace612c1de0 | https://github.com/isisaddons-legacy/isis-module-publishing/blob/9f13eab061156b70ccefd2418346dace612c1de0/dom/src/main/java/org/isisaddons/module/publishing/dom/PublishingServiceRepository.java#L53-L59 |
154,280 | isisaddons-legacy/isis-module-publishing | dom/src/main/java/org/isisaddons/module/publishing/dom/PublishingServiceRepository.java | PublishingServiceRepository.findProcessed | @Programmatic
public List<PublishedEvent> findProcessed() {
return repositoryService.allMatches(
new QueryDefault<>(PublishedEvent.class,
"findByStateOrderByTimestamp",
"state", PublishedEvent.State.PROCESSED));
} | java | @Programmatic
public List<PublishedEvent> findProcessed() {
return repositoryService.allMatches(
new QueryDefault<>(PublishedEvent.class,
"findByStateOrderByTimestamp",
"state", PublishedEvent.State.PROCESSED));
} | [
"@",
"Programmatic",
"public",
"List",
"<",
"PublishedEvent",
">",
"findProcessed",
"(",
")",
"{",
"return",
"repositoryService",
".",
"allMatches",
"(",
"new",
"QueryDefault",
"<>",
"(",
"PublishedEvent",
".",
"class",
",",
"\"findByStateOrderByTimestamp\"",
",",
... | region > findProcessed | [
"region",
">",
"findProcessed"
] | 9f13eab061156b70ccefd2418346dace612c1de0 | https://github.com/isisaddons-legacy/isis-module-publishing/blob/9f13eab061156b70ccefd2418346dace612c1de0/dom/src/main/java/org/isisaddons/module/publishing/dom/PublishingServiceRepository.java#L65-L71 |
154,281 | isisaddons-legacy/isis-module-publishing | dom/src/main/java/org/isisaddons/module/publishing/dom/PublishingServiceRepository.java | PublishingServiceRepository.purgeProcessed | @Programmatic
public void purgeProcessed() {
// REVIEW: this is not particularly performant.
// much better would be to go direct to the JDO API.
List<PublishedEvent> processedEvents = findProcessed();
for (PublishedEvent publishedEvent : processedEvents) {
publishedEvent... | java | @Programmatic
public void purgeProcessed() {
// REVIEW: this is not particularly performant.
// much better would be to go direct to the JDO API.
List<PublishedEvent> processedEvents = findProcessed();
for (PublishedEvent publishedEvent : processedEvents) {
publishedEvent... | [
"@",
"Programmatic",
"public",
"void",
"purgeProcessed",
"(",
")",
"{",
"// REVIEW: this is not particularly performant.",
"// much better would be to go direct to the JDO API.",
"List",
"<",
"PublishedEvent",
">",
"processedEvents",
"=",
"findProcessed",
"(",
")",
";",
"for"... | region > purgeProcessed | [
"region",
">",
"purgeProcessed"
] | 9f13eab061156b70ccefd2418346dace612c1de0 | https://github.com/isisaddons-legacy/isis-module-publishing/blob/9f13eab061156b70ccefd2418346dace612c1de0/dom/src/main/java/org/isisaddons/module/publishing/dom/PublishingServiceRepository.java#L89-L97 |
154,282 | jbundle/jbundle | thin/base/screen/util-misc/src/main/java/org/jbundle/thin/base/screen/util/html/JHtmlView.java | JHtmlView.getURLFromPath | public static URL getURLFromPath(String path, BaseApplet applet)
{
URL url = null;
try {
if ((url == null) && (path != null))
url = new URL(path);
} catch (MalformedURLException ex) {
Application app = null;
if (applet == null)
... | java | public static URL getURLFromPath(String path, BaseApplet applet)
{
URL url = null;
try {
if ((url == null) && (path != null))
url = new URL(path);
} catch (MalformedURLException ex) {
Application app = null;
if (applet == null)
... | [
"public",
"static",
"URL",
"getURLFromPath",
"(",
"String",
"path",
",",
"BaseApplet",
"applet",
")",
"{",
"URL",
"url",
"=",
"null",
";",
"try",
"{",
"if",
"(",
"(",
"url",
"==",
"null",
")",
"&&",
"(",
"path",
"!=",
"null",
")",
")",
"url",
"=",
... | Get the URL from the path.
@param The resource path.
@return The URL. | [
"Get",
"the",
"URL",
"from",
"the",
"path",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/thin/base/screen/util-misc/src/main/java/org/jbundle/thin/base/screen/util/html/JHtmlView.java#L110-L128 |
154,283 | tvesalainen/util | util/src/main/java/org/vesalainen/nio/SynchronizedRingByteBuffer.java | SynchronizedRingByteBuffer.tryFillAll | public int tryFillAll(RingByteBuffer ring) throws IOException, InterruptedException
{
fillLock.lock();
try
{
if (ring.marked() > free())
{
return 0;
}
return fill(ring);
}
finally
{
... | java | public int tryFillAll(RingByteBuffer ring) throws IOException, InterruptedException
{
fillLock.lock();
try
{
if (ring.marked() > free())
{
return 0;
}
return fill(ring);
}
finally
{
... | [
"public",
"int",
"tryFillAll",
"(",
"RingByteBuffer",
"ring",
")",
"throws",
"IOException",
",",
"InterruptedException",
"{",
"fillLock",
".",
"lock",
"(",
")",
";",
"try",
"{",
"if",
"(",
"ring",
".",
"marked",
"(",
")",
">",
"free",
"(",
")",
")",
"{... | Calls fill if rings marked fits. Otherwise returns 0.
@param ring
@return
@throws IOException
@throws InterruptedException | [
"Calls",
"fill",
"if",
"rings",
"marked",
"fits",
".",
"Otherwise",
"returns",
"0",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/nio/SynchronizedRingByteBuffer.java#L138-L153 |
154,284 | tvesalainen/util | util/src/main/java/org/vesalainen/nio/SynchronizedRingByteBuffer.java | SynchronizedRingByteBuffer.fillAll | public int fillAll(RingByteBuffer ring) throws IOException, InterruptedException
{
if (ring.marked() > capacity)
{
throw new IllegalArgumentException("marked > capacity");
}
fillLock.lock();
try
{
fillSync.waitUntil(()->ring.marked()<=... | java | public int fillAll(RingByteBuffer ring) throws IOException, InterruptedException
{
if (ring.marked() > capacity)
{
throw new IllegalArgumentException("marked > capacity");
}
fillLock.lock();
try
{
fillSync.waitUntil(()->ring.marked()<=... | [
"public",
"int",
"fillAll",
"(",
"RingByteBuffer",
"ring",
")",
"throws",
"IOException",
",",
"InterruptedException",
"{",
"if",
"(",
"ring",
".",
"marked",
"(",
")",
">",
"capacity",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"marked > capacit... | Waits until ring.marked fits.
@param ring
@return
@throws IOException
@throws InterruptedException | [
"Waits",
"until",
"ring",
".",
"marked",
"fits",
"."
] | bba7a44689f638ffabc8be40a75bdc9a33676433 | https://github.com/tvesalainen/util/blob/bba7a44689f638ffabc8be40a75bdc9a33676433/util/src/main/java/org/vesalainen/nio/SynchronizedRingByteBuffer.java#L161-L177 |
154,285 | pressgang-ccms/PressGangCCMSContentSpec | src/main/java/org/jboss/pressgang/ccms/contentspec/Node.java | Node.getSpacer | protected String getSpacer() {
final StringBuilder output = new StringBuilder();
final int indentationSize = parent != null ? getColumn() : 0;
for (int i = 1; i < indentationSize; i++) {
output.append(SPACER);
}
return output.toString();
} | java | protected String getSpacer() {
final StringBuilder output = new StringBuilder();
final int indentationSize = parent != null ? getColumn() : 0;
for (int i = 1; i < indentationSize; i++) {
output.append(SPACER);
}
return output.toString();
} | [
"protected",
"String",
"getSpacer",
"(",
")",
"{",
"final",
"StringBuilder",
"output",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"final",
"int",
"indentationSize",
"=",
"parent",
"!=",
"null",
"?",
"getColumn",
"(",
")",
":",
"0",
";",
"for",
"(",
"int... | Gets the spacer string to append before nodes in their toString methods.
@return A string containing the amount of space to use for the node. | [
"Gets",
"the",
"spacer",
"string",
"to",
"append",
"before",
"nodes",
"in",
"their",
"toString",
"methods",
"."
] | 2bc02e2971e4522b47a130fb7ae5a0f5ad377df1 | https://github.com/pressgang-ccms/PressGangCCMSContentSpec/blob/2bc02e2971e4522b47a130fb7ae5a0f5ad377df1/src/main/java/org/jboss/pressgang/ccms/contentspec/Node.java#L167-L174 |
154,286 | jbundle/jbundle | base/message/trx/src/main/java/org/jbundle/base/message/trx/processor/BaseMessageProcessor.java | BaseMessageProcessor.init | public void init(RecordOwnerParent taskParent, Record recordMain, Map<String, Object> properties)
{
m_trxMessage = null;
if (properties != null) // NOTE: I remove message from the properties
m_trxMessage = (BaseMessage)properties.remove(DBParams.MESSAGE);
super.init(taskParent,... | java | public void init(RecordOwnerParent taskParent, Record recordMain, Map<String, Object> properties)
{
m_trxMessage = null;
if (properties != null) // NOTE: I remove message from the properties
m_trxMessage = (BaseMessage)properties.remove(DBParams.MESSAGE);
super.init(taskParent,... | [
"public",
"void",
"init",
"(",
"RecordOwnerParent",
"taskParent",
",",
"Record",
"recordMain",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
")",
"{",
"m_trxMessage",
"=",
"null",
";",
"if",
"(",
"properties",
"!=",
"null",
")",
"// NOTE: I re... | Initializes the MessageProcessor. | [
"Initializes",
"the",
"MessageProcessor",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/message/trx/src/main/java/org/jbundle/base/message/trx/processor/BaseMessageProcessor.java#L63-L69 |
154,287 | jbundle/jbundle | base/message/trx/src/main/java/org/jbundle/base/message/trx/processor/BaseMessageProcessor.java | BaseMessageProcessor.getRegistryID | public Integer getRegistryID(BaseMessage internalMessageReply)
{
Integer intRegistryID = null;
Object objRegistryID = null;
if (internalMessageReply.getMessageHeader() instanceof TrxMessageHeader) // Always
objRegistryID = ((TrxMessageHeader)internalMessageReply.getMessageHead... | java | public Integer getRegistryID(BaseMessage internalMessageReply)
{
Integer intRegistryID = null;
Object objRegistryID = null;
if (internalMessageReply.getMessageHeader() instanceof TrxMessageHeader) // Always
objRegistryID = ((TrxMessageHeader)internalMessageReply.getMessageHead... | [
"public",
"Integer",
"getRegistryID",
"(",
"BaseMessage",
"internalMessageReply",
")",
"{",
"Integer",
"intRegistryID",
"=",
"null",
";",
"Object",
"objRegistryID",
"=",
"null",
";",
"if",
"(",
"internalMessageReply",
".",
"getMessageHeader",
"(",
")",
"instanceof",... | Get the message queue registry ID from this message.
@param internalMessage The message to get the registry ID from.
@return Integer The registry ID. | [
"Get",
"the",
"message",
"queue",
"registry",
"ID",
"from",
"this",
"message",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/message/trx/src/main/java/org/jbundle/base/message/trx/processor/BaseMessageProcessor.java#L137-L156 |
154,288 | dfoerderreuther/console-builder | console-builder/src/main/java/de/eleon/console/builder/AskBuilder.java | AskBuilder.answer | public <T> T answer(Function<String, T> function, final String validationErrorMessage) {
validateWith(functionValidator(function, validationErrorMessage));
return function.apply(answer());
} | java | public <T> T answer(Function<String, T> function, final String validationErrorMessage) {
validateWith(functionValidator(function, validationErrorMessage));
return function.apply(answer());
} | [
"public",
"<",
"T",
">",
"T",
"answer",
"(",
"Function",
"<",
"String",
",",
"T",
">",
"function",
",",
"final",
"String",
"validationErrorMessage",
")",
"{",
"validateWith",
"(",
"functionValidator",
"(",
"function",
",",
"validationErrorMessage",
")",
")",
... | Return user input as T
@param function {@link Function} or {@link de.eleon.console.builder.functional.Transformer} for value conversion
@param validationErrorMessage error message if function conversion fails
@param <T> the return type
@return user input as T | [
"Return",
"user",
"input",
"as",
"T"
] | 814bee4a1a812a3a39a9b239e5eccb525b944e65 | https://github.com/dfoerderreuther/console-builder/blob/814bee4a1a812a3a39a9b239e5eccb525b944e65/console-builder/src/main/java/de/eleon/console/builder/AskBuilder.java#L135-L138 |
154,289 | dfoerderreuther/console-builder | console-builder/src/main/java/de/eleon/console/builder/AskBuilder.java | AskBuilder.initConsoleAndGetAnswer | private String initConsoleAndGetAnswer() {
ConsoleReaderWrapper consoleReaderWrapper = initConsole();
String input = "";
boolean valid = false;
while (!valid) {
input = consoleReaderWrapper.getInput();
valid = validate(consoleReaderWrapper, input);
... | java | private String initConsoleAndGetAnswer() {
ConsoleReaderWrapper consoleReaderWrapper = initConsole();
String input = "";
boolean valid = false;
while (!valid) {
input = consoleReaderWrapper.getInput();
valid = validate(consoleReaderWrapper, input);
... | [
"private",
"String",
"initConsoleAndGetAnswer",
"(",
")",
"{",
"ConsoleReaderWrapper",
"consoleReaderWrapper",
"=",
"initConsole",
"(",
")",
";",
"String",
"input",
"=",
"\"\"",
";",
"boolean",
"valid",
"=",
"false",
";",
"while",
"(",
"!",
"valid",
")",
"{",
... | Initialize console and get user input as answer
@return user input as String | [
"Initialize",
"console",
"and",
"get",
"user",
"input",
"as",
"answer"
] | 814bee4a1a812a3a39a9b239e5eccb525b944e65 | https://github.com/dfoerderreuther/console-builder/blob/814bee4a1a812a3a39a9b239e5eccb525b944e65/console-builder/src/main/java/de/eleon/console/builder/AskBuilder.java#L170-L188 |
154,290 | dfoerderreuther/console-builder | console-builder/src/main/java/de/eleon/console/builder/AskBuilder.java | AskBuilder.validate | private boolean validate(ConsoleReaderWrapper consoleReaderWrapper, String input) {
Iterable<String> errors = validate(input);
if (!Iterables.isEmpty(errors)) {
consoleReaderWrapper.beep();
for (String error : errors) {
consoleReaderWrapper.print(error);
... | java | private boolean validate(ConsoleReaderWrapper consoleReaderWrapper, String input) {
Iterable<String> errors = validate(input);
if (!Iterables.isEmpty(errors)) {
consoleReaderWrapper.beep();
for (String error : errors) {
consoleReaderWrapper.print(error);
... | [
"private",
"boolean",
"validate",
"(",
"ConsoleReaderWrapper",
"consoleReaderWrapper",
",",
"String",
"input",
")",
"{",
"Iterable",
"<",
"String",
">",
"errors",
"=",
"validate",
"(",
"input",
")",
";",
"if",
"(",
"!",
"Iterables",
".",
"isEmpty",
"(",
"err... | Validate user input with available validators
@param consoleReaderWrapper Console to print errir messages
@param input User input as String
@return boolean of validation result. valid == true | [
"Validate",
"user",
"input",
"with",
"available",
"validators"
] | 814bee4a1a812a3a39a9b239e5eccb525b944e65 | https://github.com/dfoerderreuther/console-builder/blob/814bee4a1a812a3a39a9b239e5eccb525b944e65/console-builder/src/main/java/de/eleon/console/builder/AskBuilder.java#L215-L226 |
154,291 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/util/MainApplication.java | MainApplication.init | public void init(Object env, Map<String,Object> properties, Object applet)
{
super.init(env, properties, applet);
Task task = new AutoTask(this, null, null); // This is the base task for this application
m_systemRecordOwner = (RecordOwner)ClassServiceUtility.getClassService().makeObjectFrom... | java | public void init(Object env, Map<String,Object> properties, Object applet)
{
super.init(env, properties, applet);
Task task = new AutoTask(this, null, null); // This is the base task for this application
m_systemRecordOwner = (RecordOwner)ClassServiceUtility.getClassService().makeObjectFrom... | [
"public",
"void",
"init",
"(",
"Object",
"env",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
",",
"Object",
"applet",
")",
"{",
"super",
".",
"init",
"(",
"env",
",",
"properties",
",",
"applet",
")",
";",
"Task",
"task",
"=",
"new",
... | Initializes the MainApplication.
Usually you pass the object that wants to use this sesssion.
For example, the applet or MainApplication.
@param env The Environment.
@param strURL The application parameters as a URL.
@param args The application parameters as an initial arg list.
@param applet The application parameters... | [
"Initializes",
"the",
"MainApplication",
".",
"Usually",
"you",
"pass",
"the",
"object",
"that",
"wants",
"to",
"use",
"this",
"sesssion",
".",
"For",
"example",
"the",
"applet",
"or",
"MainApplication",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/util/MainApplication.java#L86-L100 |
154,292 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/util/MainApplication.java | MainApplication.free | public void free()
{
Record recUserRegistration = (Record)m_systemRecordOwner.getRecord(UserRegistrationModel.USER_REGISTRATION_FILE);
if (recUserRegistration != null)
{
for (UserProperties regKey : m_htRegistration.values())
{
regKey.free(); // Remov... | java | public void free()
{
Record recUserRegistration = (Record)m_systemRecordOwner.getRecord(UserRegistrationModel.USER_REGISTRATION_FILE);
if (recUserRegistration != null)
{
for (UserProperties regKey : m_htRegistration.values())
{
regKey.free(); // Remov... | [
"public",
"void",
"free",
"(",
")",
"{",
"Record",
"recUserRegistration",
"=",
"(",
"Record",
")",
"m_systemRecordOwner",
".",
"getRecord",
"(",
"UserRegistrationModel",
".",
"USER_REGISTRATION_FILE",
")",
";",
"if",
"(",
"recUserRegistration",
"!=",
"null",
")",
... | Release the user's preferences. | [
"Release",
"the",
"user",
"s",
"preferences",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/util/MainApplication.java#L104-L136 |
154,293 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/util/MainApplication.java | MainApplication.getDefaultSystemName | public String getDefaultSystemName()
{ // No system name set, check the base menus for domain or default properties
Environment env = this.getEnvironment();
Map<String, Object> properties = new HashMap<String, Object>();
properties.put(DBConstants.SYSTEM_NAME, "base");
BaseApplicat... | java | public String getDefaultSystemName()
{ // No system name set, check the base menus for domain or default properties
Environment env = this.getEnvironment();
Map<String, Object> properties = new HashMap<String, Object>();
properties.put(DBConstants.SYSTEM_NAME, "base");
BaseApplicat... | [
"public",
"String",
"getDefaultSystemName",
"(",
")",
"{",
"// No system name set, check the base menus for domain or default properties",
"Environment",
"env",
"=",
"this",
".",
"getEnvironment",
"(",
")",
";",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
"=... | Read the default system name.
@return | [
"Read",
"the",
"default",
"system",
"name",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/util/MainApplication.java#L199-L221 |
154,294 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/util/MainApplication.java | MainApplication.addMenuProperties | public Map<String,Object> addMenuProperties(String strSubDomain, Record recMenus, Map<String,Object> mapDomainProperties)
{
try {
recMenus.getField(Menus.CODE).setString(strSubDomain);
if (recMenus.seek("="))
{
Map<String,Object> properties = ((PropertiesF... | java | public Map<String,Object> addMenuProperties(String strSubDomain, Record recMenus, Map<String,Object> mapDomainProperties)
{
try {
recMenus.getField(Menus.CODE).setString(strSubDomain);
if (recMenus.seek("="))
{
Map<String,Object> properties = ((PropertiesF... | [
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"addMenuProperties",
"(",
"String",
"strSubDomain",
",",
"Record",
"recMenus",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"mapDomainProperties",
")",
"{",
"try",
"{",
"recMenus",
".",
"getField",
"(",
... | Add the properies from this menu item.
@param strSubDomain The menu item
@param recMenus The menu record
@param mapDomainProperties The properties to add to.
@return The new properties (actually mapDomainProperties updated) | [
"Add",
"the",
"properies",
"from",
"this",
"menu",
"item",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/util/MainApplication.java#L229-L257 |
154,295 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/util/MainApplication.java | MainApplication.setDomainProperties | public Map<String,Object> setDomainProperties(Task task, String strDomain)
{
Map<String,Object> mapDomainProperties = null;
if (strDomain != null)
{ // Special case - Main URL menu (Save properties)
if (m_systemRecordOwner != null)
{ // Always
mapD... | java | public Map<String,Object> setDomainProperties(Task task, String strDomain)
{
Map<String,Object> mapDomainProperties = null;
if (strDomain != null)
{ // Special case - Main URL menu (Save properties)
if (m_systemRecordOwner != null)
{ // Always
mapD... | [
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"setDomainProperties",
"(",
"Task",
"task",
",",
"String",
"strDomain",
")",
"{",
"Map",
"<",
"String",
",",
"Object",
">",
"mapDomainProperties",
"=",
"null",
";",
"if",
"(",
"strDomain",
"!=",
"null",
... | If the domain changes, change the properties to the new domain.
@param task
@param strDomain
@return | [
"If",
"the",
"domain",
"changes",
"change",
"the",
"properties",
"to",
"the",
"new",
"domain",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/util/MainApplication.java#L391-L413 |
154,296 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/util/MainApplication.java | MainApplication.readUserInfo | public boolean readUserInfo(boolean bRefreshOnChange, boolean bForceRead)
{
String strUserID = this.getProperty(DBParams.USER_ID);
if (strUserID == null)
strUserID = this.getProperty(DBParams.USER_NAME);
if (strUserID == null)
strUserID = Constants.BLANK;
Reco... | java | public boolean readUserInfo(boolean bRefreshOnChange, boolean bForceRead)
{
String strUserID = this.getProperty(DBParams.USER_ID);
if (strUserID == null)
strUserID = this.getProperty(DBParams.USER_NAME);
if (strUserID == null)
strUserID = Constants.BLANK;
Reco... | [
"public",
"boolean",
"readUserInfo",
"(",
"boolean",
"bRefreshOnChange",
",",
"boolean",
"bForceRead",
")",
"{",
"String",
"strUserID",
"=",
"this",
".",
"getProperty",
"(",
"DBParams",
".",
"USER_ID",
")",
";",
"if",
"(",
"strUserID",
"==",
"null",
")",
"st... | Read the user info record for the current user.
@param bRefreshOnChange If true, don't use the cached value | [
"Read",
"the",
"user",
"info",
"record",
"for",
"the",
"current",
"user",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/util/MainApplication.java#L427-L472 |
154,297 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/util/MainApplication.java | MainApplication.removeUserProperties | public void removeUserProperties(UserProperties userProperties)
{
if (m_htRegistration.get(userProperties.getKey()) != null)
m_htRegistration.remove(userProperties.getKey());
} | java | public void removeUserProperties(UserProperties userProperties)
{
if (m_htRegistration.get(userProperties.getKey()) != null)
m_htRegistration.remove(userProperties.getKey());
} | [
"public",
"void",
"removeUserProperties",
"(",
"UserProperties",
"userProperties",
")",
"{",
"if",
"(",
"m_htRegistration",
".",
"get",
"(",
"userProperties",
".",
"getKey",
"(",
")",
")",
"!=",
"null",
")",
"m_htRegistration",
".",
"remove",
"(",
"userPropertie... | Remove this user registration record.
@param userProperties The user properties to remove. | [
"Remove",
"this",
"user",
"registration",
"record",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/util/MainApplication.java#L602-L606 |
154,298 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/util/MainApplication.java | MainApplication.getUserRegistration | public Record getUserRegistration()
{
Record recUserRegistration = (Record)m_systemRecordOwner.getRecord(UserRegistrationModel.USER_REGISTRATION_FILE);
if (recUserRegistration == null)
recUserRegistration = Record.makeRecordFromClassName(UserRegistrationModel.THICK_CLASS, m_systemRecordO... | java | public Record getUserRegistration()
{
Record recUserRegistration = (Record)m_systemRecordOwner.getRecord(UserRegistrationModel.USER_REGISTRATION_FILE);
if (recUserRegistration == null)
recUserRegistration = Record.makeRecordFromClassName(UserRegistrationModel.THICK_CLASS, m_systemRecordO... | [
"public",
"Record",
"getUserRegistration",
"(",
")",
"{",
"Record",
"recUserRegistration",
"=",
"(",
"Record",
")",
"m_systemRecordOwner",
".",
"getRecord",
"(",
"UserRegistrationModel",
".",
"USER_REGISTRATION_FILE",
")",
";",
"if",
"(",
"recUserRegistration",
"==",
... | Get the user registration record.
And create it if it doesn't exist yet.
@return The user registration record. | [
"Get",
"the",
"user",
"registration",
"record",
".",
"And",
"create",
"it",
"if",
"it",
"doesn",
"t",
"exist",
"yet",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/util/MainApplication.java#L612-L618 |
154,299 | jbundle/jbundle | base/base/src/main/java/org/jbundle/base/util/MainApplication.java | MainApplication.getUserInfo | public UserInfoModel getUserInfo()
{
UserInfoModel recUserInfo = null;
if (m_systemRecordOwner != null)
recUserInfo = (UserInfoModel)m_systemRecordOwner.getRecord(UserInfoModel.USER_INFO_FILE);
return recUserInfo;
} | java | public UserInfoModel getUserInfo()
{
UserInfoModel recUserInfo = null;
if (m_systemRecordOwner != null)
recUserInfo = (UserInfoModel)m_systemRecordOwner.getRecord(UserInfoModel.USER_INFO_FILE);
return recUserInfo;
} | [
"public",
"UserInfoModel",
"getUserInfo",
"(",
")",
"{",
"UserInfoModel",
"recUserInfo",
"=",
"null",
";",
"if",
"(",
"m_systemRecordOwner",
"!=",
"null",
")",
"recUserInfo",
"=",
"(",
"UserInfoModel",
")",
"m_systemRecordOwner",
".",
"getRecord",
"(",
"UserInfoMo... | Get the user information record.
@return The userinfo record. | [
"Get",
"the",
"user",
"information",
"record",
"."
] | 4037fcfa85f60c7d0096c453c1a3cd573c2b0abc | https://github.com/jbundle/jbundle/blob/4037fcfa85f60c7d0096c453c1a3cd573c2b0abc/base/base/src/main/java/org/jbundle/base/util/MainApplication.java#L623-L629 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.