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
46,600
nmdp-bioinformatics/ngs
hml/src/main/java/org/nmdp/ngs/hml/HmlWriter.java
HmlWriter.write
public static void write(final Hml data, final Writer writer) throws IOException { checkNotNull(data); checkNotNull(writer); try { JAXBContext context = JAXBContext.newInstance(Hml.class); Marshaller marshaller = context.createMarshaller(); SchemaFactory sche...
java
public static void write(final Hml data, final Writer writer) throws IOException { checkNotNull(data); checkNotNull(writer); try { JAXBContext context = JAXBContext.newInstance(Hml.class); Marshaller marshaller = context.createMarshaller(); SchemaFactory sche...
[ "public", "static", "void", "write", "(", "final", "Hml", "data", ",", "final", "Writer", "writer", ")", "throws", "IOException", "{", "checkNotNull", "(", "data", ")", ";", "checkNotNull", "(", "writer", ")", ";", "try", "{", "JAXBContext", "context", "="...
Write the specified HML to the specified writer. @param data HML to write, must not be null @param writer writer to write to, must not be null @throws IOException if an I/O error occurs
[ "Write", "the", "specified", "HML", "to", "the", "specified", "writer", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/hml/src/main/java/org/nmdp/ngs/hml/HmlWriter.java#L70-L88
46,601
nmdp-bioinformatics/ngs
hml/src/main/java/org/nmdp/ngs/hml/HmlWriter.java
HmlWriter.write
public static void write(final Hml data, final File file) throws IOException { checkNotNull(data); checkNotNull(file); try (BufferedWriter writer = new BufferedWriter(new FileWriter(file))) { write(data, writer); } }
java
public static void write(final Hml data, final File file) throws IOException { checkNotNull(data); checkNotNull(file); try (BufferedWriter writer = new BufferedWriter(new FileWriter(file))) { write(data, writer); } }
[ "public", "static", "void", "write", "(", "final", "Hml", "data", ",", "final", "File", "file", ")", "throws", "IOException", "{", "checkNotNull", "(", "data", ")", ";", "checkNotNull", "(", "file", ")", ";", "try", "(", "BufferedWriter", "writer", "=", ...
Write the specified HML to the specified file. @param data HML to write, must not be null @param file file to write to, must not be null @throws IOException if an I/O error occurs
[ "Write", "the", "specified", "HML", "to", "the", "specified", "file", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/hml/src/main/java/org/nmdp/ngs/hml/HmlWriter.java#L97-L103
46,602
nmdp-bioinformatics/ngs
hml/src/main/java/org/nmdp/ngs/hml/HmlWriter.java
HmlWriter.write
public static void write(final Hml data, final OutputStream outputStream) throws IOException { checkNotNull(data); checkNotNull(outputStream); try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(outputStream))) { write(data, writer); } }
java
public static void write(final Hml data, final OutputStream outputStream) throws IOException { checkNotNull(data); checkNotNull(outputStream); try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(outputStream))) { write(data, writer); } }
[ "public", "static", "void", "write", "(", "final", "Hml", "data", ",", "final", "OutputStream", "outputStream", ")", "throws", "IOException", "{", "checkNotNull", "(", "data", ")", ";", "checkNotNull", "(", "outputStream", ")", ";", "try", "(", "BufferedWriter...
Write the specified HML to the specified output stream. @param data HML to write, must not be null @param outputStream output stream to write to, must not be null @throws IOException if an I/O error occurs
[ "Write", "the", "specified", "HML", "to", "the", "specified", "output", "stream", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/hml/src/main/java/org/nmdp/ngs/hml/HmlWriter.java#L112-L118
46,603
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/CurrencyLocalizationUrl.java
CurrencyLocalizationUrl.getCurrencyExchangeRateUrl
public static MozuUrl getCurrencyExchangeRateUrl(String currencyCode, String responseFields, String toCurrencyCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/currency/{currencyCode}/exchangerates/{toCurrencyCode}?responseFields={responseFields}"); formatter.formatUrl("currencyCode", ...
java
public static MozuUrl getCurrencyExchangeRateUrl(String currencyCode, String responseFields, String toCurrencyCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/currency/{currencyCode}/exchangerates/{toCurrencyCode}?responseFields={responseFields}"); formatter.formatUrl("currencyCode", ...
[ "public", "static", "MozuUrl", "getCurrencyExchangeRateUrl", "(", "String", "currencyCode", ",", "String", "responseFields", ",", "String", "toCurrencyCode", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/currency/{cur...
Get Resource Url for GetCurrencyExchangeRate @param currencyCode The three character ISO currency code, such as USD for US Dollars. @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve da...
[ "Get", "Resource", "Url", "for", "GetCurrencyExchangeRate" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/CurrencyLocalizationUrl.java#L35-L42
46,604
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/CurrencyLocalizationUrl.java
CurrencyLocalizationUrl.updateCurrencyLocalizationUrl
public static MozuUrl updateCurrencyLocalizationUrl(String currencyCode, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/currency/{currencyCode}?responseFields={responseFields}"); formatter.formatUrl("currencyCode", currencyCode); formatter.formatUrl("responseField...
java
public static MozuUrl updateCurrencyLocalizationUrl(String currencyCode, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/currency/{currencyCode}?responseFields={responseFields}"); formatter.formatUrl("currencyCode", currencyCode); formatter.formatUrl("responseField...
[ "public", "static", "MozuUrl", "updateCurrencyLocalizationUrl", "(", "String", "currencyCode", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/currency/{currencyCode}?responseFields={responseF...
Get Resource Url for UpdateCurrencyLocalization @param currencyCode The three character ISO currency code, such as USD for US Dollars. @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve...
[ "Get", "Resource", "Url", "for", "UpdateCurrencyLocalization" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/CurrencyLocalizationUrl.java#L114-L120
46,605
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/CurrencyLocalizationUrl.java
CurrencyLocalizationUrl.deleteCurrencyLocalizationUrl
public static MozuUrl deleteCurrencyLocalizationUrl(String currencyCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/currency/{currencyCode}"); formatter.formatUrl("currencyCode", currencyCode); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl deleteCurrencyLocalizationUrl(String currencyCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/currency/{currencyCode}"); formatter.formatUrl("currencyCode", currencyCode); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
[ "public", "static", "MozuUrl", "deleteCurrencyLocalizationUrl", "(", "String", "currencyCode", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/currency/{currencyCode}\"", ")", ";", "formatter", ".", "formatUrl", "(", ...
Get Resource Url for DeleteCurrencyLocalization @param currencyCode The three character ISO currency code, such as USD for US Dollars. @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteCurrencyLocalization" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/CurrencyLocalizationUrl.java#L127-L132
46,606
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/CurrencyLocalizationUrl.java
CurrencyLocalizationUrl.deleteCurrencyExchangeRateUrl
public static MozuUrl deleteCurrencyExchangeRateUrl(String currencyCode, String toCurrencyCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/currency/{currencyCode}/exchangerates/{toCurrencyCode}"); formatter.formatUrl("currencyCode", currencyCode); formatter.formatUrl("toCurrencyCode...
java
public static MozuUrl deleteCurrencyExchangeRateUrl(String currencyCode, String toCurrencyCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/currency/{currencyCode}/exchangerates/{toCurrencyCode}"); formatter.formatUrl("currencyCode", currencyCode); formatter.formatUrl("toCurrencyCode...
[ "public", "static", "MozuUrl", "deleteCurrencyExchangeRateUrl", "(", "String", "currencyCode", ",", "String", "toCurrencyCode", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/currency/{currencyCode}/exchangerates/{toCurrency...
Get Resource Url for DeleteCurrencyExchangeRate @param currencyCode The three character ISO currency code, such as USD for US Dollars. @param toCurrencyCode @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteCurrencyExchangeRate" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/CurrencyLocalizationUrl.java#L140-L146
46,607
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java
MailAccountManager.reserveMailAccount
public MailAccount reserveMailAccount(final String accountReservationKey, final String pool) { if (pool == null && emailAddressPools.keySet().size() > 1) { throw new IllegalStateException("No pool specified but multiple pools available."); } String poolKey = pool == null ? defaultPool : pool; List<MailAccou...
java
public MailAccount reserveMailAccount(final String accountReservationKey, final String pool) { if (pool == null && emailAddressPools.keySet().size() > 1) { throw new IllegalStateException("No pool specified but multiple pools available."); } String poolKey = pool == null ? defaultPool : pool; List<MailAccou...
[ "public", "MailAccount", "reserveMailAccount", "(", "final", "String", "accountReservationKey", ",", "final", "String", "pool", ")", "{", "if", "(", "pool", "==", "null", "&&", "emailAddressPools", ".", "keySet", "(", ")", ".", "size", "(", ")", ">", "1", ...
Reserves an available mail account from the specified pool under the specified reservation key. The method blocks until an account is available. @param pool the mail address pool to reserve an account from @param accountReservationKey the key under which to reserve the account @return the reserved mail account
[ "Reserves", "an", "available", "mail", "account", "from", "the", "specified", "pool", "under", "the", "specified", "reservation", "key", ".", "The", "method", "blocks", "until", "an", "account", "is", "available", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java#L177-L187
46,608
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java
MailAccountManager.lookupUsedMailAccountForCurrentThread
public MailAccount lookupUsedMailAccountForCurrentThread(final String accountReservationKey) { lock.lock(); try { Map<MailAccount, ThreadReservationKeyWrapper> usedAccountsForThread = filterValues(usedAccounts, new CurrentThreadWrapperPredicate()); if (!usedAccountsForThread.isEmpty()) { for (Entry<MailAc...
java
public MailAccount lookupUsedMailAccountForCurrentThread(final String accountReservationKey) { lock.lock(); try { Map<MailAccount, ThreadReservationKeyWrapper> usedAccountsForThread = filterValues(usedAccounts, new CurrentThreadWrapperPredicate()); if (!usedAccountsForThread.isEmpty()) { for (Entry<MailAc...
[ "public", "MailAccount", "lookupUsedMailAccountForCurrentThread", "(", "final", "String", "accountReservationKey", ")", "{", "lock", ".", "lock", "(", ")", ";", "try", "{", "Map", "<", "MailAccount", ",", "ThreadReservationKeyWrapper", ">", "usedAccountsForThread", "=...
Looks up the mail account that is reserved for the current thread under the specified key. @param accountReservationKey the reservation key @return the reserved account, or {@code null} if none is found
[ "Looks", "up", "the", "mail", "account", "that", "is", "reserved", "for", "the", "current", "thread", "under", "the", "specified", "key", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java#L282-L298
46,609
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java
MailAccountManager.getReservedMailAccountsForCurrentThread
public Set<MailAccount> getReservedMailAccountsForCurrentThread() { lock.lock(); try { Map<MailAccount, ThreadReservationKeyWrapper> accountsForThread = filterValues(usedAccounts, new CurrentThreadWrapperPredicate()); return ImmutableSet.copyOf(accountsForThread.keySet()); } finally { lock.unlock(); } ...
java
public Set<MailAccount> getReservedMailAccountsForCurrentThread() { lock.lock(); try { Map<MailAccount, ThreadReservationKeyWrapper> accountsForThread = filterValues(usedAccounts, new CurrentThreadWrapperPredicate()); return ImmutableSet.copyOf(accountsForThread.keySet()); } finally { lock.unlock(); } ...
[ "public", "Set", "<", "MailAccount", ">", "getReservedMailAccountsForCurrentThread", "(", ")", "{", "lock", ".", "lock", "(", ")", ";", "try", "{", "Map", "<", "MailAccount", ",", "ThreadReservationKeyWrapper", ">", "accountsForThread", "=", "filterValues", "(", ...
Gets the set of reserved mail accounts for the current thread. @return the set of reserved mail accounts
[ "Gets", "the", "set", "of", "reserved", "mail", "accounts", "for", "the", "current", "thread", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java#L314-L322
46,610
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java
MailAccountManager.getRegisteredAccountReservationKeysForCurrentThread
public Set<String> getRegisteredAccountReservationKeysForCurrentThread() { lock.lock(); try { Map<MailAccount, String> accountsForThread = transformValues(filterValues(usedAccounts, new CurrentThreadWrapperPredicate()), new Function<ThreadReservationKeyWrapper, String>() { @Override public Strin...
java
public Set<String> getRegisteredAccountReservationKeysForCurrentThread() { lock.lock(); try { Map<MailAccount, String> accountsForThread = transformValues(filterValues(usedAccounts, new CurrentThreadWrapperPredicate()), new Function<ThreadReservationKeyWrapper, String>() { @Override public Strin...
[ "public", "Set", "<", "String", ">", "getRegisteredAccountReservationKeysForCurrentThread", "(", ")", "{", "lock", ".", "lock", "(", ")", ";", "try", "{", "Map", "<", "MailAccount", ",", "String", ">", "accountsForThread", "=", "transformValues", "(", "filterVal...
Gets the set of reservation key under which accounts are reserved for the current thread. @return the set of reservation keys
[ "Gets", "the", "set", "of", "reservation", "key", "under", "which", "accounts", "are", "reserved", "for", "the", "current", "thread", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java#L329-L345
46,611
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java
MailAccountManager.releaseAllMailAccountsForThread
public void releaseAllMailAccountsForThread() { log.info("Releasing all mail accounts for the current thread..."); lock.lock(); try { for (Iterator<Entry<MailAccount, ThreadReservationKeyWrapper>> it = usedAccounts.entrySet().iterator(); it.hasNext(); ) { ThreadReservationKeyWrapper wrapper = it.next().get...
java
public void releaseAllMailAccountsForThread() { log.info("Releasing all mail accounts for the current thread..."); lock.lock(); try { for (Iterator<Entry<MailAccount, ThreadReservationKeyWrapper>> it = usedAccounts.entrySet().iterator(); it.hasNext(); ) { ThreadReservationKeyWrapper wrapper = it.next().get...
[ "public", "void", "releaseAllMailAccountsForThread", "(", ")", "{", "log", ".", "info", "(", "\"Releasing all mail accounts for the current thread...\"", ")", ";", "lock", ".", "lock", "(", ")", ";", "try", "{", "for", "(", "Iterator", "<", "Entry", "<", "MailAc...
Releases all reserved mail accounts for the current thread so they can be reused by other threads. Threads blocking on an attempt to reserved an account are notified.
[ "Releases", "all", "reserved", "mail", "accounts", "for", "the", "current", "thread", "so", "they", "can", "be", "reused", "by", "other", "threads", ".", "Threads", "blocking", "on", "an", "attempt", "to", "reserved", "an", "account", "are", "notified", "." ...
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java#L362-L376
46,612
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java
MailAccountManager.releaseMailAccountForThread
public void releaseMailAccountForThread(final MailAccount account) { log.info("Releasing mail account for the current thread: {}", account); lock.lock(); try { ThreadReservationKeyWrapper wrapper = usedAccounts.get(account); if (wrapper != null) { if (wrapper.thread == Thread.currentThread()) { log...
java
public void releaseMailAccountForThread(final MailAccount account) { log.info("Releasing mail account for the current thread: {}", account); lock.lock(); try { ThreadReservationKeyWrapper wrapper = usedAccounts.get(account); if (wrapper != null) { if (wrapper.thread == Thread.currentThread()) { log...
[ "public", "void", "releaseMailAccountForThread", "(", "final", "MailAccount", "account", ")", "{", "log", ".", "info", "(", "\"Releasing mail account for the current thread: {}\"", ",", "account", ")", ";", "lock", ".", "lock", "(", ")", ";", "try", "{", "ThreadRe...
Releases the specified mail account for the current thread so it can be reused by another threads. Threads blocking on an attempt to reserved an account are notified. @param account the account to release
[ "Releases", "the", "specified", "mail", "account", "for", "the", "current", "thread", "so", "it", "can", "be", "reused", "by", "another", "threads", ".", "Threads", "blocking", "on", "an", "attempt", "to", "reserved", "an", "account", "are", "notified", "." ...
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java#L385-L402
46,613
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java
MailAccountManager.releaseMailAccountForThread
public void releaseMailAccountForThread(final String accountReservationKey) { lock.lock(); try { MailAccount mailAccount = lookupUsedMailAccountForCurrentThread(accountReservationKey); releaseMailAccountForThread(mailAccount); } finally { lock.unlock(); } }
java
public void releaseMailAccountForThread(final String accountReservationKey) { lock.lock(); try { MailAccount mailAccount = lookupUsedMailAccountForCurrentThread(accountReservationKey); releaseMailAccountForThread(mailAccount); } finally { lock.unlock(); } }
[ "public", "void", "releaseMailAccountForThread", "(", "final", "String", "accountReservationKey", ")", "{", "lock", ".", "lock", "(", ")", ";", "try", "{", "MailAccount", "mailAccount", "=", "lookupUsedMailAccountForCurrentThread", "(", "accountReservationKey", ")", "...
Releases the mail account reserved under the specified reservation key for the current thread so it can be reused by another threads. Threads blocking on an attempt to reserved an account are notified. @param accountReservationKey the reservation key
[ "Releases", "the", "mail", "account", "reserved", "under", "the", "specified", "reservation", "key", "for", "the", "current", "thread", "so", "it", "can", "be", "reused", "by", "another", "threads", ".", "Threads", "blocking", "on", "an", "attempt", "to", "r...
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/mail/MailAccountManager.java#L412-L420
46,614
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/ProductSortDefinitionUrl.java
ProductSortDefinitionUrl.addProductSortDefinitionUrl
public static MozuUrl addProductSortDefinitionUrl(String responseFields, Boolean useProvidedId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/productsortdefinitions/?useProvidedId={useProvidedId}&responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); ...
java
public static MozuUrl addProductSortDefinitionUrl(String responseFields, Boolean useProvidedId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/productsortdefinitions/?useProvidedId={useProvidedId}&responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); ...
[ "public", "static", "MozuUrl", "addProductSortDefinitionUrl", "(", "String", "responseFields", ",", "Boolean", "useProvidedId", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/productsortdefinitions/?useProvidedId={useProvide...
Get Resource Url for AddProductSortDefinition @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. @param useProvid...
[ "Get", "Resource", "Url", "for", "AddProductSortDefinition" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/ProductSortDefinitionUrl.java#L56-L62
46,615
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/ProductSortDefinitionUrl.java
ProductSortDefinitionUrl.updateProductSortDefinitionUrl
public static MozuUrl updateProductSortDefinitionUrl(Integer productSortDefinitionId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/productsortdefinitions/{productSortDefinitionId}?responseFields={responseFields}"); formatter.formatUrl("productSortDefinitionId", pr...
java
public static MozuUrl updateProductSortDefinitionUrl(Integer productSortDefinitionId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/productsortdefinitions/{productSortDefinitionId}?responseFields={responseFields}"); formatter.formatUrl("productSortDefinitionId", pr...
[ "public", "static", "MozuUrl", "updateProductSortDefinitionUrl", "(", "Integer", "productSortDefinitionId", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/productsortdefinitions/{productSortD...
Get Resource Url for UpdateProductSortDefinition @param productSortDefinitionId Unique identifier of the product sort definition. @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. ...
[ "Get", "Resource", "Url", "for", "UpdateProductSortDefinition" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/ProductSortDefinitionUrl.java#L70-L76
46,616
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/ProductSortDefinitionUrl.java
ProductSortDefinitionUrl.deleteProductSortDefinitionUrl
public static MozuUrl deleteProductSortDefinitionUrl(Integer productSortDefinitionId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/productsortdefinitions/{productSortDefinitionId}"); formatter.formatUrl("productSortDefinitionId", productSortDefinitionId); return new MozuUrl(formatter....
java
public static MozuUrl deleteProductSortDefinitionUrl(Integer productSortDefinitionId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/productsortdefinitions/{productSortDefinitionId}"); formatter.formatUrl("productSortDefinitionId", productSortDefinitionId); return new MozuUrl(formatter....
[ "public", "static", "MozuUrl", "deleteProductSortDefinitionUrl", "(", "Integer", "productSortDefinitionId", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/productsortdefinitions/{productSortDefinitionId}\"", ")", ";", "forma...
Get Resource Url for DeleteProductSortDefinition @param productSortDefinitionId Unique identifier of the product sort definition. @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteProductSortDefinition" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/ProductSortDefinitionUrl.java#L83-L88
46,617
mgm-tp/jfunk
jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/Sum.java
Sum.hasNextCase
@Override public boolean hasNextCase() { for (ConstraintWrap wrap : summands) { if (wrap.constraint.hasNextCase()) { return true; } } return false; }
java
@Override public boolean hasNextCase() { for (ConstraintWrap wrap : summands) { if (wrap.constraint.hasNextCase()) { return true; } } return false; }
[ "@", "Override", "public", "boolean", "hasNextCase", "(", ")", "{", "for", "(", "ConstraintWrap", "wrap", ":", "summands", ")", "{", "if", "(", "wrap", ".", "constraint", ".", "hasNextCase", "(", ")", ")", "{", "return", "true", ";", "}", "}", "return"...
Returns true if one of the sub-constraints still contains mandatory cases @return true if at least on of the sub-constraints contains at least one mandatory case
[ "Returns", "true", "if", "one", "of", "the", "sub", "-", "constraints", "still", "contains", "mandatory", "cases" ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/Sum.java#L134-L142
46,618
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/events/EventManager.java
EventManager.registerHandler
public synchronized void registerHandler(Object handler) { boolean validClass = false; if (handler==null) { throw new IllegalArgumentException("Null handler class"); } // Get the implemented interfaces. This gets only the // directly implemented inte...
java
public synchronized void registerHandler(Object handler) { boolean validClass = false; if (handler==null) { throw new IllegalArgumentException("Null handler class"); } // Get the implemented interfaces. This gets only the // directly implemented inte...
[ "public", "synchronized", "void", "registerHandler", "(", "Object", "handler", ")", "{", "boolean", "validClass", "=", "false", ";", "if", "(", "handler", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Null handler class\"", ")", ";"...
Register an event handler. The registration looks at the interfaces that the handler implements. An entry is created in the event handler map for each event interface that is implemented. Event interfaces are named in the form [Category]Event (e.g. ProductEvent) @param handler handler class
[ "Register", "an", "event", "handler", ".", "The", "registration", "looks", "at", "the", "interfaces", "that", "the", "handler", "implements", ".", "An", "entry", "is", "created", "in", "the", "event", "handler", "map", "for", "each", "event", "interface", "t...
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/events/EventManager.java#L53-L85
46,619
thomasjungblut/tjungblut-math
src/de/jungblut/math/sparse/OrderedIntDoubleMapping.java
OrderedIntDoubleMapping.merge
public void merge(OrderedIntDoubleMapping updates, DoubleDoubleFunction func) { int[] updateIndices = updates.getIndices(); double[] updateValues = updates.getValues(); int newNumMappings = numMappings + updates.getNumMappings(); int newCapacity = Math .max((int) (1.2 * newNumMappings), newNumM...
java
public void merge(OrderedIntDoubleMapping updates, DoubleDoubleFunction func) { int[] updateIndices = updates.getIndices(); double[] updateValues = updates.getValues(); int newNumMappings = numMappings + updates.getNumMappings(); int newCapacity = Math .max((int) (1.2 * newNumMappings), newNumM...
[ "public", "void", "merge", "(", "OrderedIntDoubleMapping", "updates", ",", "DoubleDoubleFunction", "func", ")", "{", "int", "[", "]", "updateIndices", "=", "updates", ".", "getIndices", "(", ")", ";", "double", "[", "]", "updateValues", "=", "updates", ".", ...
Merges the updates in linear time by allocating new arrays and iterating through the existing indices and values and the updates' indices and values at the same time while selecting the minimum index to set at each step. @param updates another list of mappings to be merged in.
[ "Merges", "the", "updates", "in", "linear", "time", "by", "allocating", "new", "arrays", "and", "iterating", "through", "the", "existing", "indices", "and", "values", "and", "the", "updates", "indices", "and", "values", "at", "the", "same", "time", "while", ...
4de5aa25f263d982a253be88aaf350b51cf3860d
https://github.com/thomasjungblut/tjungblut-math/blob/4de5aa25f263d982a253be88aaf350b51cf3860d/src/de/jungblut/math/sparse/OrderedIntDoubleMapping.java#L134-L180
46,620
mgm-tp/jfunk
jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/field/FieldFactory.java
FieldFactory.createField
public Field createField(final MathRandom random, final Element element, final String characterSetId) { Field field = null; Element fieldElement = null; Element fieldRefElement = element.getChild(XMLTags.FIELD_REF); if (fieldRefElement != null) { fieldElement = getElementFinder(element).findElementById(...
java
public Field createField(final MathRandom random, final Element element, final String characterSetId) { Field field = null; Element fieldElement = null; Element fieldRefElement = element.getChild(XMLTags.FIELD_REF); if (fieldRefElement != null) { fieldElement = getElementFinder(element).findElementById(...
[ "public", "Field", "createField", "(", "final", "MathRandom", "random", ",", "final", "Element", "element", ",", "final", "String", "characterSetId", ")", "{", "Field", "field", "=", "null", ";", "Element", "fieldElement", "=", "null", ";", "Element", "fieldRe...
Searches for the Field Child tag in the specified element or takes the Field_Ref Tag and generates a new field instance based on the tag data. So this method has to be called with an element as parameter that contains a field or a field_ref element, respectively.
[ "Searches", "for", "the", "Field", "Child", "tag", "in", "the", "specified", "element", "or", "takes", "the", "Field_Ref", "Tag", "and", "generates", "a", "new", "field", "instance", "based", "on", "the", "tag", "data", ".", "So", "this", "method", "has", ...
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/field/FieldFactory.java#L53-L74
46,621
mgm-tp/jfunk
jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/field/FieldFactory.java
FieldFactory.getClassObject
private Class<? extends Field> getClassObject(final Element element) { String className = element.getAttributeValue(XMLTags.CLASS); Class<? extends Field> classObject = null; try { className = className.indexOf('.') > 0 ? className : getClass().getPackage().getName() + '.' + className; classObject = Cl...
java
private Class<? extends Field> getClassObject(final Element element) { String className = element.getAttributeValue(XMLTags.CLASS); Class<? extends Field> classObject = null; try { className = className.indexOf('.') > 0 ? className : getClass().getPackage().getName() + '.' + className; classObject = Cl...
[ "private", "Class", "<", "?", "extends", "Field", ">", "getClassObject", "(", "final", "Element", "element", ")", "{", "String", "className", "=", "element", ".", "getAttributeValue", "(", "XMLTags", ".", "CLASS", ")", ";", "Class", "<", "?", "extends", "F...
This method returns the class object from which a new instance shall be generated. To achieve this the class attribute of the passed element is taken to determine the class name.
[ "This", "method", "returns", "the", "class", "object", "from", "which", "a", "new", "instance", "shall", "be", "generated", ".", "To", "achieve", "this", "the", "class", "attribute", "of", "the", "passed", "element", "is", "taken", "to", "determine", "the", ...
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/field/FieldFactory.java#L80-L90
46,622
sualeh/pointlocation6709
src/main/java/us/fatehi/pointlocation6709/parse/PointLocationParser.java
PointLocationParser.parsePointLocation
public static PointLocation parsePointLocation(final String representation) throws ParserException { if (StringUtils.isBlank(representation)) { throw new ParserException("No point location value provided"); } if (!StringUtils.endsWith(representation, "/")) { throw new ParserExcepti...
java
public static PointLocation parsePointLocation(final String representation) throws ParserException { if (StringUtils.isBlank(representation)) { throw new ParserException("No point location value provided"); } if (!StringUtils.endsWith(representation, "/")) { throw new ParserExcepti...
[ "public", "static", "PointLocation", "parsePointLocation", "(", "final", "String", "representation", ")", "throws", "ParserException", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "representation", ")", ")", "{", "throw", "new", "ParserException", "(", "\"N...
Parses a string representation of the point location. @param representation String representation of the point location @return Point location @throws ParserException On an exception
[ "Parses", "a", "string", "representation", "of", "the", "point", "location", "." ]
c0c186c2518f41e3fe174920cacd5c0d082d01a0
https://github.com/sualeh/pointlocation6709/blob/c0c186c2518f41e3fe174920cacd5c0d082d01a0/src/main/java/us/fatehi/pointlocation6709/parse/PointLocationParser.java#L52-L84
46,623
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/products/ProductPropertyUrl.java
ProductPropertyUrl.getPropertyValueLocalizedContentsUrl
public static MozuUrl getPropertyValueLocalizedContentsUrl(String attributeFQN, String productCode, String value) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/products/{productCode}/Properties/{attributeFQN}/values/{value}/LocalizedContent"); formatter.formatUrl("attributeFQN", attri...
java
public static MozuUrl getPropertyValueLocalizedContentsUrl(String attributeFQN, String productCode, String value) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/products/{productCode}/Properties/{attributeFQN}/values/{value}/LocalizedContent"); formatter.formatUrl("attributeFQN", attri...
[ "public", "static", "MozuUrl", "getPropertyValueLocalizedContentsUrl", "(", "String", "attributeFQN", ",", "String", "productCode", ",", "String", "value", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/products/{produ...
Get Resource Url for GetPropertyValueLocalizedContents @param attributeFQN Fully qualified name for an attribute. @param productCode The unique, user-defined product code of a product, used throughout to reference and associate to a product. @param value The value string to create. @return String Resource Url
[ "Get", "Resource", "Url", "for", "GetPropertyValueLocalizedContents" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/products/ProductPropertyUrl.java#L35-L42
46,624
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/products/ProductPropertyUrl.java
ProductPropertyUrl.deletePropertyUrl
public static MozuUrl deletePropertyUrl(String attributeFQN, String productCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/products/{productCode}/Properties/{attributeFQN}"); formatter.formatUrl("attributeFQN", attributeFQN); formatter.formatUrl("productCode", productCode); ...
java
public static MozuUrl deletePropertyUrl(String attributeFQN, String productCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/products/{productCode}/Properties/{attributeFQN}"); formatter.formatUrl("attributeFQN", attributeFQN); formatter.formatUrl("productCode", productCode); ...
[ "public", "static", "MozuUrl", "deletePropertyUrl", "(", "String", "attributeFQN", ",", "String", "productCode", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/products/{productCode}/Properties/{attributeFQN}\"", ")", ";...
Get Resource Url for DeleteProperty @param attributeFQN Fully qualified name for an attribute. @param productCode The unique, user-defined product code of a product, used throughout to reference and associate to a product. @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteProperty" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/products/ProductPropertyUrl.java#L170-L176
46,625
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java
ProductUrl.getProductsUrl
public static MozuUrl getProductsUrl(String cursorMark, String defaultSort, String filter, Integer pageSize, String responseFields, String responseOptions, String sortBy, Integer startIndex) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/?filter={filter}&startIndex={startInd...
java
public static MozuUrl getProductsUrl(String cursorMark, String defaultSort, String filter, Integer pageSize, String responseFields, String responseOptions, String sortBy, Integer startIndex) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/?filter={filter}&startIndex={startInd...
[ "public", "static", "MozuUrl", "getProductsUrl", "(", "String", "cursorMark", ",", "String", "defaultSort", ",", "String", "filter", ",", "Integer", "pageSize", ",", "String", "responseFields", ",", "String", "responseOptions", ",", "String", "sortBy", ",", "Integ...
Get Resource Url for GetProducts @param cursorMark In your first deep paged request, set this parameter to . Then, in all subsequent requests, set this parameter to the subsequent values of that's returned in each response to continue paging through the results. Continue this pattern until is null, which signifies th...
[ "Get", "Resource", "Url", "for", "GetProducts" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java#L28-L40
46,626
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java
ProductUrl.getProductInventoryUrl
public static MozuUrl getProductInventoryUrl(String locationCodes, String productCode, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/{productCode}/locationinventory?locationCodes={locationCodes}&responseFields={responseFields}"); formatter.formatUr...
java
public static MozuUrl getProductInventoryUrl(String locationCodes, String productCode, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/{productCode}/locationinventory?locationCodes={locationCodes}&responseFields={responseFields}"); formatter.formatUr...
[ "public", "static", "MozuUrl", "getProductInventoryUrl", "(", "String", "locationCodes", ",", "String", "productCode", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/storefront/products/{prod...
Get Resource Url for GetProductInventory @param locationCodes Array of location codes for which to retrieve product inventory information. @param productCode The unique, user-defined product code of a product, used throughout to reference and associate to a product. @param responseFields Filtering syntax appended to a...
[ "Get", "Resource", "Url", "for", "GetProductInventory" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java#L49-L56
46,627
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java
ProductUrl.getProductUrl
public static MozuUrl getProductUrl(Boolean acceptVariantProductCode, Boolean allowInactive, String productCode, String purchaseLocation, Integer quantity, String responseFields, Boolean skipInventoryCheck, Boolean supressOutOfStock404, String variationProductCode, String variationProductCodeFilter) { UrlFormatter...
java
public static MozuUrl getProductUrl(Boolean acceptVariantProductCode, Boolean allowInactive, String productCode, String purchaseLocation, Integer quantity, String responseFields, Boolean skipInventoryCheck, Boolean supressOutOfStock404, String variationProductCode, String variationProductCodeFilter) { UrlFormatter...
[ "public", "static", "MozuUrl", "getProductUrl", "(", "Boolean", "acceptVariantProductCode", ",", "Boolean", "allowInactive", ",", "String", "productCode", ",", "String", "purchaseLocation", ",", "Integer", "quantity", ",", "String", "responseFields", ",", "Boolean", "...
Get Resource Url for GetProduct @param acceptVariantProductCode Specifies whether to accept a product variant's code as the .When you set this parameter to , you can pass in a product variant's code in the GetProduct call to retrieve the product variant details that are associated with the base product. @param allowIna...
[ "Get", "Resource", "Url", "for", "GetProduct" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java#L72-L86
46,628
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java
ProductUrl.getProductForIndexingUrl
public static MozuUrl getProductForIndexingUrl(DateTime lastModifiedDate, String productCode, Long productVersion, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/indexing/{productCode}?productVersion={productVersion}&lastModifiedDate={lastModifiedDate}...
java
public static MozuUrl getProductForIndexingUrl(DateTime lastModifiedDate, String productCode, Long productVersion, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/indexing/{productCode}?productVersion={productVersion}&lastModifiedDate={lastModifiedDate}...
[ "public", "static", "MozuUrl", "getProductForIndexingUrl", "(", "DateTime", "lastModifiedDate", ",", "String", "productCode", ",", "Long", "productVersion", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/ap...
Get Resource Url for GetProductForIndexing @param lastModifiedDate The date when the product was last updated. @param productCode The unique, user-defined product code of a product, used throughout to reference and associate to a product. @param productVersion The product version. @param responseFields Filtering synta...
[ "Get", "Resource", "Url", "for", "GetProductForIndexing" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java#L96-L104
46,629
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java
ProductUrl.configuredProductUrl
public static MozuUrl configuredProductUrl(Boolean includeOptionDetails, String productCode, String purchaseLocation, Integer quantity, String responseFields, Boolean skipInventoryCheck, String variationProductCodeFilter) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/{produ...
java
public static MozuUrl configuredProductUrl(Boolean includeOptionDetails, String productCode, String purchaseLocation, Integer quantity, String responseFields, Boolean skipInventoryCheck, String variationProductCodeFilter) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/{produ...
[ "public", "static", "MozuUrl", "configuredProductUrl", "(", "Boolean", "includeOptionDetails", ",", "String", "productCode", ",", "String", "purchaseLocation", ",", "Integer", "quantity", ",", "String", "responseFields", ",", "Boolean", "skipInventoryCheck", ",", "Strin...
Get Resource Url for ConfiguredProduct @param includeOptionDetails If true, the response returns details about the product. If false, returns a product summary such as the product name, price, and sale price. @param productCode The unique, user-defined product code of a product, used throughout to reference and associ...
[ "Get", "Resource", "Url", "for", "ConfiguredProduct" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java#L117-L128
46,630
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java
ProductUrl.validateProductUrl
public static MozuUrl validateProductUrl(String productCode, String purchaseLocation, Integer quantity, String responseFields, Boolean skipDefaults, Boolean skipInventoryCheck) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/{productCode}/validate?skipInventoryCheck={skipInve...
java
public static MozuUrl validateProductUrl(String productCode, String purchaseLocation, Integer quantity, String responseFields, Boolean skipDefaults, Boolean skipInventoryCheck) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/{productCode}/validate?skipInventoryCheck={skipInve...
[ "public", "static", "MozuUrl", "validateProductUrl", "(", "String", "productCode", ",", "String", "purchaseLocation", ",", "Integer", "quantity", ",", "String", "responseFields", ",", "Boolean", "skipDefaults", ",", "Boolean", "skipInventoryCheck", ")", "{", "UrlForma...
Get Resource Url for ValidateProduct @param productCode The unique, user-defined product code of a product, used throughout to reference and associate to a product. @param purchaseLocation The location where the order item(s) was purchased. @param quantity The number of cart items in the shopper's active cart. @param ...
[ "Get", "Resource", "Url", "for", "ValidateProduct" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java#L140-L150
46,631
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java
ProductUrl.validateDiscountsUrl
public static MozuUrl validateDiscountsUrl(Boolean allowInactive, Integer customerAccountId, String productCode, String responseFields, Boolean skipInventoryCheck, String variationProductCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/{productCode}/validateDiscounts?var...
java
public static MozuUrl validateDiscountsUrl(Boolean allowInactive, Integer customerAccountId, String productCode, String responseFields, Boolean skipInventoryCheck, String variationProductCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/{productCode}/validateDiscounts?var...
[ "public", "static", "MozuUrl", "validateDiscountsUrl", "(", "Boolean", "allowInactive", ",", "Integer", "customerAccountId", ",", "String", "productCode", ",", "String", "responseFields", ",", "Boolean", "skipInventoryCheck", ",", "String", "variationProductCode", ")", ...
Get Resource Url for ValidateDiscounts @param allowInactive If true, allow inactive categories to be retrieved in the category list response. If false, the categories retrieved will not include ones marked inactive. @param customerAccountId The unique identifier of the customer account for which to retrieve wish lists....
[ "Get", "Resource", "Url", "for", "ValidateDiscounts" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/storefront/ProductUrl.java#L162-L172
46,632
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/LocationInventoryUrl.java
LocationInventoryUrl.getLocationInventoryUrl
public static MozuUrl getLocationInventoryUrl(String locationCode, String productCode, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/locationinventory/{locationCode}/{productCode}?responseFields={responseFields}"); formatter.formatUrl("locationCode", locationCod...
java
public static MozuUrl getLocationInventoryUrl(String locationCode, String productCode, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/locationinventory/{locationCode}/{productCode}?responseFields={responseFields}"); formatter.formatUrl("locationCode", locationCod...
[ "public", "static", "MozuUrl", "getLocationInventoryUrl", "(", "String", "locationCode", ",", "String", "productCode", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/locationinventory/{...
Get Resource Url for GetLocationInventory @param locationCode The unique, user-defined code that identifies a location. @param productCode The unique, user-defined product code of a product, used throughout to reference and associate to a product. @param responseFields Filtering syntax appended to an API call to incre...
[ "Get", "Resource", "Url", "for", "GetLocationInventory" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/LocationInventoryUrl.java#L23-L30
46,633
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/LocationInventoryUrl.java
LocationInventoryUrl.addLocationInventoryUrl
public static MozuUrl addLocationInventoryUrl(String locationCode, Boolean performUpserts) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/locationinventory/{locationCode}?performUpserts={performUpserts}"); formatter.formatUrl("locationCode", locationCode); formatter.formatUrl("perfo...
java
public static MozuUrl addLocationInventoryUrl(String locationCode, Boolean performUpserts) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/locationinventory/{locationCode}?performUpserts={performUpserts}"); formatter.formatUrl("locationCode", locationCode); formatter.formatUrl("perfo...
[ "public", "static", "MozuUrl", "addLocationInventoryUrl", "(", "String", "locationCode", ",", "Boolean", "performUpserts", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/locationinventory/{locationCode}?performUpserts={perfo...
Get Resource Url for AddLocationInventory @param locationCode The unique, user-defined code that identifies a location. @param performUpserts Query string parameter lets the service perform an update for a new or existing record. When run, the update occurs without throwing a conflict exception that the record exists. ...
[ "Get", "Resource", "Url", "for", "AddLocationInventory" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/LocationInventoryUrl.java#L62-L68
46,634
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/LocationInventoryUrl.java
LocationInventoryUrl.deleteLocationInventoryUrl
public static MozuUrl deleteLocationInventoryUrl(String locationCode, String productCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/locationinventory/{locationCode}/{productCode}"); formatter.formatUrl("locationCode", locationCode); formatter.formatUrl("productCode", productCod...
java
public static MozuUrl deleteLocationInventoryUrl(String locationCode, String productCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/locationinventory/{locationCode}/{productCode}"); formatter.formatUrl("locationCode", locationCode); formatter.formatUrl("productCode", productCod...
[ "public", "static", "MozuUrl", "deleteLocationInventoryUrl", "(", "String", "locationCode", ",", "String", "productCode", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/locationinventory/{locationCode}/{productCode}\"", ")...
Get Resource Url for DeleteLocationInventory @param locationCode The unique, user-defined code that identifies a location. @param productCode The unique, user-defined product code of a product, used throughout to reference and associate to a product. @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteLocationInventory" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/LocationInventoryUrl.java#L88-L94
46,635
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/orders/OrderNoteUrl.java
OrderNoteUrl.getOrderNotesUrl
public static MozuUrl getOrderNotesUrl(String orderId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/notes"); formatter.formatUrl("orderId", orderId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl getOrderNotesUrl(String orderId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/notes"); formatter.formatUrl("orderId", orderId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
[ "public", "static", "MozuUrl", "getOrderNotesUrl", "(", "String", "orderId", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/orders/{orderId}/notes\"", ")", ";", "formatter", ".", "formatUrl", "(", "\"orderId\"", ",", "orderId"...
Get Resource Url for GetOrderNotes @param orderId Unique identifier of the order. @return String Resource Url
[ "Get", "Resource", "Url", "for", "GetOrderNotes" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/orders/OrderNoteUrl.java#L21-L26
46,636
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/orders/OrderNoteUrl.java
OrderNoteUrl.getOrderNoteUrl
public static MozuUrl getOrderNoteUrl(String noteId, String orderId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/notes/{noteId}?responseFields={responseFields}"); formatter.formatUrl("noteId", noteId); formatter.formatUrl("orderId", orderId); formatte...
java
public static MozuUrl getOrderNoteUrl(String noteId, String orderId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/notes/{noteId}?responseFields={responseFields}"); formatter.formatUrl("noteId", noteId); formatter.formatUrl("orderId", orderId); formatte...
[ "public", "static", "MozuUrl", "getOrderNoteUrl", "(", "String", "noteId", ",", "String", "orderId", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/orders/{orderId}/notes/{noteId}?responseFields={res...
Get Resource Url for GetOrderNote @param noteId Unique identifier of a particular note to retrieve. @param orderId Unique identifier of the order. @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used t...
[ "Get", "Resource", "Url", "for", "GetOrderNote" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/orders/OrderNoteUrl.java#L35-L42
46,637
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/orders/OrderNoteUrl.java
OrderNoteUrl.deleteOrderNoteUrl
public static MozuUrl deleteOrderNoteUrl(String noteId, String orderId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/notes/{noteId}"); formatter.formatUrl("noteId", noteId); formatter.formatUrl("orderId", orderId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLo...
java
public static MozuUrl deleteOrderNoteUrl(String noteId, String orderId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/notes/{noteId}"); formatter.formatUrl("noteId", noteId); formatter.formatUrl("orderId", orderId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLo...
[ "public", "static", "MozuUrl", "deleteOrderNoteUrl", "(", "String", "noteId", ",", "String", "orderId", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/orders/{orderId}/notes/{noteId}\"", ")", ";", "formatter", ".", "formatUrl", ...
Get Resource Url for DeleteOrderNote @param noteId Unique identifier of a particular note to retrieve. @param orderId Unique identifier of the order. @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteOrderNote" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/orders/OrderNoteUrl.java#L80-L86
46,638
mgm-tp/jfunk
jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/base/ConditionalOptional.java
ConditionalOptional.getContainedIds
@Override public Set<String> getContainedIds() { Set<String> s = super.getContainedIds(); s.addAll(constraint.getContainedIds()); return s; }
java
@Override public Set<String> getContainedIds() { Set<String> s = super.getContainedIds(); s.addAll(constraint.getContainedIds()); return s; }
[ "@", "Override", "public", "Set", "<", "String", ">", "getContainedIds", "(", ")", "{", "Set", "<", "String", ">", "s", "=", "super", ".", "getContainedIds", "(", ")", ";", "s", ".", "addAll", "(", "constraint", ".", "getContainedIds", "(", ")", ")", ...
Returns the set of constained ids. This Set contains all ids of the embedded constraint plus its own if this is set.
[ "Returns", "the", "set", "of", "constained", "ids", ".", "This", "Set", "contains", "all", "ids", "of", "the", "embedded", "constraint", "plus", "its", "own", "if", "this", "is", "set", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/base/ConditionalOptional.java#L124-L129
46,639
EsupPortail/esup-smsu-api
src/main/java/org/esupportail/smsuapi/business/purge/PurgeSms.java
PurgeSms.purgeSmsOlderThan
private void purgeSmsOlderThan(final Date date) { logger.debug("Starting purge of SMS table with parameter : \n" + " - date : " + date); final int nbSmsDeleted = daoService.deleteSmsOlderThan(date); logger.debug("End purge of SMS table, result : \n" + " - number of sms deleted : " + nb...
java
private void purgeSmsOlderThan(final Date date) { logger.debug("Starting purge of SMS table with parameter : \n" + " - date : " + date); final int nbSmsDeleted = daoService.deleteSmsOlderThan(date); logger.debug("End purge of SMS table, result : \n" + " - number of sms deleted : " + nb...
[ "private", "void", "purgeSmsOlderThan", "(", "final", "Date", "date", ")", "{", "logger", ".", "debug", "(", "\"Starting purge of SMS table with parameter : \\n\"", "+", "\" - date : \"", "+", "date", ")", ";", "final", "int", "nbSmsDeleted", "=", "daoService", ".",...
Purge the Sms in db with date older than the specified date. @param date
[ "Purge", "the", "Sms", "in", "db", "with", "date", "older", "than", "the", "specified", "date", "." ]
7b6a4388065adfd84655dbc83f37080874953b20
https://github.com/EsupPortail/esup-smsu-api/blob/7b6a4388065adfd84655dbc83f37080874953b20/src/main/java/org/esupportail/smsuapi/business/purge/PurgeSms.java#L41-L49
46,640
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/carts/ExtendedPropertyUrl.java
ExtendedPropertyUrl.updateExtendedPropertyUrl
public static MozuUrl updateExtendedPropertyUrl(String key, String responseFields, Boolean upsert) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/extendedproperties/{key}?upsert={upsert}&responseFields={responseFields}"); formatter.formatUrl("key", key); formatter.formatUrl("respons...
java
public static MozuUrl updateExtendedPropertyUrl(String key, String responseFields, Boolean upsert) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/extendedproperties/{key}?upsert={upsert}&responseFields={responseFields}"); formatter.formatUrl("key", key); formatter.formatUrl("respons...
[ "public", "static", "MozuUrl", "updateExtendedPropertyUrl", "(", "String", "key", ",", "String", "responseFields", ",", "Boolean", "upsert", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/carts/current/extendedproperties/{key}?upser...
Get Resource Url for UpdateExtendedProperty @param key Key used for metadata defined for objects, including extensible attributes, custom attributes associated with a shipping provider, and search synonyms definitions. This content may be user-defined depending on the object and usage. @param responseFields Filtering s...
[ "Get", "Resource", "Url", "for", "UpdateExtendedProperty" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/carts/ExtendedPropertyUrl.java#L43-L50
46,641
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/carts/ExtendedPropertyUrl.java
ExtendedPropertyUrl.updateExtendedPropertiesUrl
public static MozuUrl updateExtendedPropertiesUrl(Boolean upsert) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/extendedproperties?upsert={upsert}"); formatter.formatUrl("upsert", upsert); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl updateExtendedPropertiesUrl(Boolean upsert) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/extendedproperties?upsert={upsert}"); formatter.formatUrl("upsert", upsert); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
[ "public", "static", "MozuUrl", "updateExtendedPropertiesUrl", "(", "Boolean", "upsert", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/carts/current/extendedproperties?upsert={upsert}\"", ")", ";", "formatter", ".", "formatUrl", "("...
Get Resource Url for UpdateExtendedProperties @param upsert Any set of key value pairs to be stored in the extended properties of a cart. @return String Resource Url
[ "Get", "Resource", "Url", "for", "UpdateExtendedProperties" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/carts/ExtendedPropertyUrl.java#L57-L62
46,642
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/carts/ExtendedPropertyUrl.java
ExtendedPropertyUrl.deleteExtendedPropertiesUrl
public static MozuUrl deleteExtendedPropertiesUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/extendedproperties"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl deleteExtendedPropertiesUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/extendedproperties"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
[ "public", "static", "MozuUrl", "deleteExtendedPropertiesUrl", "(", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/carts/current/extendedproperties\"", ")", ";", "return", "new", "MozuUrl", "(", "formatter", ".", "getResourceUrl", ...
Get Resource Url for DeleteExtendedProperties @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteExtendedProperties" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/carts/ExtendedPropertyUrl.java#L68-L72
46,643
mgm-tp/jfunk
jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/UniqueValues.java
UniqueValues.initValuesImpl
@Override protected String initValuesImpl(final FieldCase ca) { if (ca == FieldCase.NULL || ca == FieldCase.BLANK) { return null; } String s = super.initValuesImpl(ca); int counter = 10000; while (set.contains(s) && counter > 0) { s = super.initValuesImpl(ca); counter--; } if (counter...
java
@Override protected String initValuesImpl(final FieldCase ca) { if (ca == FieldCase.NULL || ca == FieldCase.BLANK) { return null; } String s = super.initValuesImpl(ca); int counter = 10000; while (set.contains(s) && counter > 0) { s = super.initValuesImpl(ca); counter--; } if (counter...
[ "@", "Override", "protected", "String", "initValuesImpl", "(", "final", "FieldCase", "ca", ")", "{", "if", "(", "ca", "==", "FieldCase", ".", "NULL", "||", "ca", "==", "FieldCase", ".", "BLANK", ")", "{", "return", "null", ";", "}", "String", "s", "=",...
Calls initValuesImpl on the super class. If the returned value is already in the list of values initValuesImpl is called again. This happens up to 10000 times. If a new value is found it is stored in the set.
[ "Calls", "initValuesImpl", "on", "the", "super", "class", ".", "If", "the", "returned", "value", "is", "already", "in", "the", "list", "of", "values", "initValuesImpl", "is", "called", "again", ".", "This", "happens", "up", "to", "10000", "times", ".", "If...
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/UniqueValues.java#L60-L76
46,644
mgm-tp/jfunk
jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/Complex.java
Complex.getMaxLength
@Override public int getMaxLength() { int max = -1; for (Constraint c : constraints) { int cM = c.getMaxLength(); if (max < cM) { max = cM; } } return max; }
java
@Override public int getMaxLength() { int max = -1; for (Constraint c : constraints) { int cM = c.getMaxLength(); if (max < cM) { max = cM; } } return max; }
[ "@", "Override", "public", "int", "getMaxLength", "(", ")", "{", "int", "max", "=", "-", "1", ";", "for", "(", "Constraint", "c", ":", "constraints", ")", "{", "int", "cM", "=", "c", ".", "getMaxLength", "(", ")", ";", "if", "(", "max", "<", "cM"...
Returns the maximum of all embedded constraints. @return the maximum of all embedded constraints
[ "Returns", "the", "maximum", "of", "all", "embedded", "constraints", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/Complex.java#L94-L104
46,645
mgm-tp/jfunk
jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/Complex.java
Complex.initValues
@Override public String initValues(final FieldCase ca) { if (ca != null) { /* * If a FieldCase is given all fields will be generated anew, independent of the case * combination. */ for (Constraint c : constraints) { c.resetValues(); } } for (Constraint c : constraints) { c...
java
@Override public String initValues(final FieldCase ca) { if (ca != null) { /* * If a FieldCase is given all fields will be generated anew, independent of the case * combination. */ for (Constraint c : constraints) { c.resetValues(); } } for (Constraint c : constraints) { c...
[ "@", "Override", "public", "String", "initValues", "(", "final", "FieldCase", "ca", ")", "{", "if", "(", "ca", "!=", "null", ")", "{", "/*\r\n\t\t\t * If a FieldCase is given all fields will be generated anew, independent of the case\r\n\t\t\t * combination.\r\n\t\t\t */", "for...
Initializes all subconstraints. @return always {@code null}
[ "Initializes", "all", "subconstraints", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/Complex.java#L119-L134
46,646
mgm-tp/jfunk
jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/Complex.java
Complex.resetValues
@Override public void resetValues() { int length = constraints.size(); for (int i = length - 1; i >= 0; i--) { Constraint c = constraints.get(i); c.resetValues(); if (dependent && c.hasNextCase()) { // reset all constraints below // only if the constraint above still has a case to be proce...
java
@Override public void resetValues() { int length = constraints.size(); for (int i = length - 1; i >= 0; i--) { Constraint c = constraints.get(i); c.resetValues(); if (dependent && c.hasNextCase()) { // reset all constraints below // only if the constraint above still has a case to be proce...
[ "@", "Override", "public", "void", "resetValues", "(", ")", "{", "int", "length", "=", "constraints", ".", "size", "(", ")", ";", "for", "(", "int", "i", "=", "length", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "Constraint", "c", ...
Resets the values of the sub-constraints. To achieve this the list of sub-constraints is passed backwards. If all sub-constraints are independent of each other, simply all sub-constraints will be reset. However, if they are dependent, the case of all constraints in the list below the first constraint which still has to...
[ "Resets", "the", "values", "of", "the", "sub", "-", "constraints", ".", "To", "achieve", "this", "the", "list", "of", "sub", "-", "constraints", "is", "passed", "backwards", ".", "If", "all", "sub", "-", "constraints", "are", "independent", "of", "each", ...
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/Complex.java#L151-L166
46,647
mgm-tp/jfunk
jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/util/Node.java
Node.getCharacters
public char[] getCharacters(final int size, final int bad) { if (size == 0) { return new char[0]; } char[] chars = new char[size]; for (int i = 0; i < chars.length; i++) { chars[i] = field.getAllowedCharacter(); } // remove leading blanks for (int i = 0; i < 10 && Character.isSpaceChar(char...
java
public char[] getCharacters(final int size, final int bad) { if (size == 0) { return new char[0]; } char[] chars = new char[size]; for (int i = 0; i < chars.length; i++) { chars[i] = field.getAllowedCharacter(); } // remove leading blanks for (int i = 0; i < 10 && Character.isSpaceChar(char...
[ "public", "char", "[", "]", "getCharacters", "(", "final", "int", "size", ",", "final", "int", "bad", ")", "{", "if", "(", "size", "==", "0", ")", "{", "return", "new", "char", "[", "0", "]", ";", "}", "char", "[", "]", "chars", "=", "new", "ch...
Returns size characters in an array. If bad is set to true at least half of all the characters will be set to a forbidden character. @param bad 0 equals no bad character, 1 equals 1 - all are bad and 2 equals all are bad @return a character string
[ "Returns", "size", "characters", "in", "an", "array", ".", "If", "bad", "is", "set", "to", "true", "at", "least", "half", "of", "all", "the", "characters", "will", "be", "set", "to", "a", "forbidden", "character", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/util/Node.java#L70-L133
46,648
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/settings/checkout/PaymentSettingsUrl.java
PaymentSettingsUrl.getThirdPartyPaymentWorkflowWithValuesUrl
public static MozuUrl getThirdPartyPaymentWorkflowWithValuesUrl(String fullyQualifiedName, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflow/{fullyQualifiedName}?responseFields={responseFields}"); formatter.formatUrl("fullyQual...
java
public static MozuUrl getThirdPartyPaymentWorkflowWithValuesUrl(String fullyQualifiedName, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflow/{fullyQualifiedName}?responseFields={responseFields}"); formatter.formatUrl("fullyQual...
[ "public", "static", "MozuUrl", "getThirdPartyPaymentWorkflowWithValuesUrl", "(", "String", "fullyQualifiedName", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/settings/checkout/paymentsettings/thirdpartyw...
Get Resource Url for GetThirdPartyPaymentWorkflowWithValues @param fullyQualifiedName Fully qualified name of the attribute for the third-party payment workflow. @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should...
[ "Get", "Resource", "Url", "for", "GetThirdPartyPaymentWorkflowWithValues" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/settings/checkout/PaymentSettingsUrl.java#L22-L28
46,649
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/settings/checkout/PaymentSettingsUrl.java
PaymentSettingsUrl.getThirdPartyPaymentWorkflowsUrl
public static MozuUrl getThirdPartyPaymentWorkflowsUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflows"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl getThirdPartyPaymentWorkflowsUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflows"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
[ "public", "static", "MozuUrl", "getThirdPartyPaymentWorkflowsUrl", "(", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflows\"", ")", ";", "return", "new", "MozuUrl", "(", "formatter", ...
Get Resource Url for GetThirdPartyPaymentWorkflows @return String Resource Url
[ "Get", "Resource", "Url", "for", "GetThirdPartyPaymentWorkflows" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/settings/checkout/PaymentSettingsUrl.java#L34-L38
46,650
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/settings/checkout/PaymentSettingsUrl.java
PaymentSettingsUrl.addThirdPartyPaymentWorkflowUrl
public static MozuUrl addThirdPartyPaymentWorkflowUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflows"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl addThirdPartyPaymentWorkflowUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflows"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
[ "public", "static", "MozuUrl", "addThirdPartyPaymentWorkflowUrl", "(", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflows\"", ")", ";", "return", "new", "MozuUrl", "(", "formatter", ...
Get Resource Url for AddThirdPartyPaymentWorkflow @return String Resource Url
[ "Get", "Resource", "Url", "for", "AddThirdPartyPaymentWorkflow" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/settings/checkout/PaymentSettingsUrl.java#L44-L48
46,651
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/settings/checkout/PaymentSettingsUrl.java
PaymentSettingsUrl.deleteThirdPartyPaymentWorkflowUrl
public static MozuUrl deleteThirdPartyPaymentWorkflowUrl(String fullyQualifiedName) { UrlFormatter formatter = new UrlFormatter("/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflows/{fullyQualifiedName}"); formatter.formatUrl("fullyQualifiedName", fullyQualifiedName); return new MozuUrl(format...
java
public static MozuUrl deleteThirdPartyPaymentWorkflowUrl(String fullyQualifiedName) { UrlFormatter formatter = new UrlFormatter("/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflows/{fullyQualifiedName}"); formatter.formatUrl("fullyQualifiedName", fullyQualifiedName); return new MozuUrl(format...
[ "public", "static", "MozuUrl", "deleteThirdPartyPaymentWorkflowUrl", "(", "String", "fullyQualifiedName", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflows/{fullyQualifiedName}\"", ")", ";"...
Get Resource Url for DeleteThirdPartyPaymentWorkflow @param fullyQualifiedName Fully qualified name of the attribute for the third-party payment workflow. @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteThirdPartyPaymentWorkflow" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/settings/checkout/PaymentSettingsUrl.java#L55-L60
46,652
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/orders/DigitalPackageUrl.java
DigitalPackageUrl.getAvailableDigitalPackageFulfillmentActionsUrl
public static MozuUrl getAvailableDigitalPackageFulfillmentActionsUrl(String digitalPackageId, String orderId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/digitalpackages/{digitalPackageId}/actions"); formatter.formatUrl("digitalPackageId", digitalPackageId); formatter.formatU...
java
public static MozuUrl getAvailableDigitalPackageFulfillmentActionsUrl(String digitalPackageId, String orderId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/digitalpackages/{digitalPackageId}/actions"); formatter.formatUrl("digitalPackageId", digitalPackageId); formatter.formatU...
[ "public", "static", "MozuUrl", "getAvailableDigitalPackageFulfillmentActionsUrl", "(", "String", "digitalPackageId", ",", "String", "orderId", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/orders/{orderId}/digitalpackages/{digitalPackage...
Get Resource Url for GetAvailableDigitalPackageFulfillmentActions @param digitalPackageId This parameter supplies package ID to get fulfillment actions for the digital package. @param orderId Unique identifier of the order. @return String Resource Url
[ "Get", "Resource", "Url", "for", "GetAvailableDigitalPackageFulfillmentActions" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/orders/DigitalPackageUrl.java#L22-L28
46,653
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/orders/DigitalPackageUrl.java
DigitalPackageUrl.getDigitalPackageUrl
public static MozuUrl getDigitalPackageUrl(String digitalPackageId, String orderId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/digitalpackages/{digitalPackageId}?responseFields={responseFields}"); formatter.formatUrl("digitalPackageId", digitalPackageId); ...
java
public static MozuUrl getDigitalPackageUrl(String digitalPackageId, String orderId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/digitalpackages/{digitalPackageId}?responseFields={responseFields}"); formatter.formatUrl("digitalPackageId", digitalPackageId); ...
[ "public", "static", "MozuUrl", "getDigitalPackageUrl", "(", "String", "digitalPackageId", ",", "String", "orderId", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/orders/{orderId}/digitalpackages/{di...
Get Resource Url for GetDigitalPackage @param digitalPackageId This parameter supplies package ID to get fulfillment actions for the digital package. @param orderId Unique identifier of the order. @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a...
[ "Get", "Resource", "Url", "for", "GetDigitalPackage" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/orders/DigitalPackageUrl.java#L37-L44
46,654
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java
ScriptContext.registerReporter
@Cmd public Reporter registerReporter(final Reporter reporter) { injector.injectMembers(reporter); reporters.add(reporter); return reporter; }
java
@Cmd public Reporter registerReporter(final Reporter reporter) { injector.injectMembers(reporter); reporters.add(reporter); return reporter; }
[ "@", "Cmd", "public", "Reporter", "registerReporter", "(", "final", "Reporter", "reporter", ")", "{", "injector", ".", "injectMembers", "(", "reporter", ")", ";", "reporters", ".", "add", "(", "reporter", ")", ";", "return", "reporter", ";", "}" ]
Registers a reporter. @param reporter the reporter
[ "Registers", "a", "reporter", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java#L171-L176
46,655
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java
ScriptContext.chooseFile
@Cmd public File chooseFile(final String fileKey) { log.debug("Opening file chooser dialog"); JFileChooser fileChooser = new JFileChooser(System.getProperty(JFunkConstants.USER_DIR)); fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); fileChooser.setPreferredSize(new Dimension(600, 326)); ...
java
@Cmd public File chooseFile(final String fileKey) { log.debug("Opening file chooser dialog"); JFileChooser fileChooser = new JFileChooser(System.getProperty(JFunkConstants.USER_DIR)); fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); fileChooser.setPreferredSize(new Dimension(600, 326)); ...
[ "@", "Cmd", "public", "File", "chooseFile", "(", "final", "String", "fileKey", ")", "{", "log", ".", "debug", "(", "\"Opening file chooser dialog\"", ")", ";", "JFileChooser", "fileChooser", "=", "new", "JFileChooser", "(", "System", ".", "getProperty", "(", "...
Opens a file chooser dialog which can then be used to choose a file or directory and assign the path of the chosen object to a variable. The name of the variable must be passed as a parameter. @param fileKey the key the selected file path is stored under in the configuration @return the chosen file
[ "Opens", "a", "file", "chooser", "dialog", "which", "can", "then", "be", "used", "to", "choose", "a", "file", "or", "directory", "and", "assign", "the", "path", "of", "the", "chosen", "object", "to", "a", "variable", ".", "The", "name", "of", "the", "v...
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java#L196-L214
46,656
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java
ScriptContext.chooseRandom
@Cmd public String chooseRandom(final String propertyKey, final List<String> randomValues) { Randomizable<String> choice = new RandomCollection<>(random, randomValues); String currentValue = choice.get(); if (log.isDebugEnabled()) { log.debug("Chosen value: " + currentValue); } currentValue = resolvePrope...
java
@Cmd public String chooseRandom(final String propertyKey, final List<String> randomValues) { Randomizable<String> choice = new RandomCollection<>(random, randomValues); String currentValue = choice.get(); if (log.isDebugEnabled()) { log.debug("Chosen value: " + currentValue); } currentValue = resolvePrope...
[ "@", "Cmd", "public", "String", "chooseRandom", "(", "final", "String", "propertyKey", ",", "final", "List", "<", "String", ">", "randomValues", ")", "{", "Randomizable", "<", "String", ">", "choice", "=", "new", "RandomCollection", "<>", "(", "random", ",",...
Randomly selects an item from a list of Strings. List items may contain placeholder tokens. The result is stored in the configuration under the specified key and also returned by this method. @param propertyKey the property key under which to store the result @param randomValues the list of strings @return a randomly ...
[ "Randomly", "selects", "an", "item", "from", "a", "list", "of", "Strings", ".", "List", "items", "may", "contain", "placeholder", "tokens", ".", "The", "result", "is", "stored", "in", "the", "configuration", "under", "the", "specified", "key", "and", "also",...
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java#L227-L240
46,657
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java
ScriptContext.module
@Cmd public void module(final String moduleName, final Map<?, ?> attributes, final Closure<Void> closure) { moduleBuilderProvider.get().invokeMethod("module", newArrayList(moduleName, attributes, closure)); }
java
@Cmd public void module(final String moduleName, final Map<?, ?> attributes, final Closure<Void> closure) { moduleBuilderProvider.get().invokeMethod("module", newArrayList(moduleName, attributes, closure)); }
[ "@", "Cmd", "public", "void", "module", "(", "final", "String", "moduleName", ",", "final", "Map", "<", "?", ",", "?", ">", "attributes", ",", "final", "Closure", "<", "Void", ">", "closure", ")", "{", "moduleBuilderProvider", ".", "get", "(", ")", "."...
Creates and runs a dynamic script module. @param moduleName the name of the module @param attributes a map of module attributes; the only attribute that is evaluated is "dataSetKey" @param closure the Groovy closure containing the logic to be executed within the script module
[ "Creates", "and", "runs", "a", "dynamic", "script", "module", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java#L389-L392
46,658
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java
ScriptContext.onError
@Cmd public void onError(final Closure<Void> closure) { int errorCount = errors.size(); if (errorCount > 0) { log.info(errorCount + " error" + (errorCount == 1 ? "" : "s") + " in list --> executing block"); closure.call(); log.info("Finished OnError block"); } else { log.info("No errors in list --> s...
java
@Cmd public void onError(final Closure<Void> closure) { int errorCount = errors.size(); if (errorCount > 0) { log.info(errorCount + " error" + (errorCount == 1 ? "" : "s") + " in list --> executing block"); closure.call(); log.info("Finished OnError block"); } else { log.info("No errors in list --> s...
[ "@", "Cmd", "public", "void", "onError", "(", "final", "Closure", "<", "Void", ">", "closure", ")", "{", "int", "errorCount", "=", "errors", ".", "size", "(", ")", ";", "if", "(", "errorCount", ">", "0", ")", "{", "log", ".", "info", "(", "errorCou...
Executes the specified closure if at least one exception had previously been recorded in the currently executing script. @param closure the {@link Closure} representing a Groovy block
[ "Executes", "the", "specified", "closure", "if", "at", "least", "one", "exception", "had", "previously", "been", "recorded", "in", "the", "currently", "executing", "script", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java#L401-L411
46,659
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java
ScriptContext.optional
@Cmd public void optional(final Closure<Void> closure) { log.info("Executing optional block ..."); try { closure.call(); } catch (final Exception ex) { log.error("Exception executing optional block: " + ex.getMessage(), ex); errors.add(ex); } catch (AssertionError err) { log.error("Assertion failed...
java
@Cmd public void optional(final Closure<Void> closure) { log.info("Executing optional block ..."); try { closure.call(); } catch (final Exception ex) { log.error("Exception executing optional block: " + ex.getMessage(), ex); errors.add(ex); } catch (AssertionError err) { log.error("Assertion failed...
[ "@", "Cmd", "public", "void", "optional", "(", "final", "Closure", "<", "Void", ">", "closure", ")", "{", "log", ".", "info", "(", "\"Executing optional block ...\"", ")", ";", "try", "{", "closure", ".", "call", "(", ")", ";", "}", "catch", "(", "fina...
Runs the specified closure catching any exception that might occur during execution. @param closure the {@link Closure} representing a Groovy block
[ "Runs", "the", "specified", "closure", "catching", "any", "exception", "that", "might", "occur", "during", "execution", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java#L419-L432
46,660
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java
ScriptContext.processCsvFile
@Cmd public void processCsvFile(final String csvFile, final String delimiter, final char quoteChar, final Charset charset, final Closure<Void> closure) { File f = new File(csvFile); try { config.extractFromArchive(f, true); checkState(f.exists(), "CSV file not found: " + f); Reader reader = Files.newRe...
java
@Cmd public void processCsvFile(final String csvFile, final String delimiter, final char quoteChar, final Charset charset, final Closure<Void> closure) { File f = new File(csvFile); try { config.extractFromArchive(f, true); checkState(f.exists(), "CSV file not found: " + f); Reader reader = Files.newRe...
[ "@", "Cmd", "public", "void", "processCsvFile", "(", "final", "String", "csvFile", ",", "final", "String", "delimiter", ",", "final", "char", "quoteChar", ",", "final", "Charset", "charset", ",", "final", "Closure", "<", "Void", ">", "closure", ")", "{", "...
Processes a CSV file. @param csvFile the file @param delimiter the @param quoteChar the quote character ('\0' for no quoting) @param charset the character set @param closure the {@link Closure} representing a Groovy block
[ "Processes", "a", "CSV", "file", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java#L448-L460
46,661
mgm-tp/jfunk
jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java
ScriptContext.prompt
@Cmd public String prompt(final String configKey, final String message) { System.out.print(resolveProperty(message) + " "); //NOSONAR BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); try { String value = StringUtils.trim(in.readLine()); config.put(configKey, value); return value...
java
@Cmd public String prompt(final String configKey, final String message) { System.out.print(resolveProperty(message) + " "); //NOSONAR BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); try { String value = StringUtils.trim(in.readLine()); config.put(configKey, value); return value...
[ "@", "Cmd", "public", "String", "prompt", "(", "final", "String", "configKey", ",", "final", "String", "message", ")", "{", "System", ".", "out", ".", "print", "(", "resolveProperty", "(", "message", ")", "+", "\" \"", ")", ";", "//NOSONAR", "BufferedReade...
Prompts for closure-line input. the input is stored in the configuration under the specified key. @param configKey the key for storing the input in the configuration @param message the prompt message @return the input
[ "Prompts", "for", "closure", "-", "line", "input", ".", "the", "input", "is", "stored", "in", "the", "configuration", "under", "the", "specified", "key", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-core/src/main/java/com/mgmtp/jfunk/core/scripting/ScriptContext.java#L472-L484
46,662
mgm-tp/jfunk
jfunk-web/src/main/java/com/mgmtp/jfunk/web/util/Rectangle.java
Rectangle.intersection
public Rectangle intersection(Rectangle other) { int left = Math.max(this.left, other.left); int top = Math.max(this.top, other.top); int right = Math.min(this.right, other.right); int bottom = Math.min(this.bottom, other.bottom); if (right >= left && bottom >= top) { int height = bottom - top; int widt...
java
public Rectangle intersection(Rectangle other) { int left = Math.max(this.left, other.left); int top = Math.max(this.top, other.top); int right = Math.min(this.right, other.right); int bottom = Math.min(this.bottom, other.bottom); if (right >= left && bottom >= top) { int height = bottom - top; int widt...
[ "public", "Rectangle", "intersection", "(", "Rectangle", "other", ")", "{", "int", "left", "=", "Math", ".", "max", "(", "this", ".", "left", ",", "other", ".", "left", ")", ";", "int", "top", "=", "Math", ".", "max", "(", "this", ".", "top", ",", ...
Returns the intersection with the other rectangle or null if the two rectangles do not intersect. @param other the other rectangle. @return intersection rectangle or null.
[ "Returns", "the", "intersection", "with", "the", "other", "rectangle", "or", "null", "if", "the", "two", "rectangles", "do", "not", "intersect", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-web/src/main/java/com/mgmtp/jfunk/web/util/Rectangle.java#L53-L65
46,663
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/ChannelUrl.java
ChannelUrl.deleteChannelUrl
public static MozuUrl deleteChannelUrl(String code) { UrlFormatter formatter = new UrlFormatter("/api/commerce/channels/{code}"); formatter.formatUrl("code", code); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl deleteChannelUrl(String code) { UrlFormatter formatter = new UrlFormatter("/api/commerce/channels/{code}"); formatter.formatUrl("code", code); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
[ "public", "static", "MozuUrl", "deleteChannelUrl", "(", "String", "code", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/channels/{code}\"", ")", ";", "formatter", ".", "formatUrl", "(", "\"code\"", ",", "code", ")", ";", ...
Get Resource Url for DeleteChannel @param code User-defined code that uniqely identifies the channel group. @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteChannel" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/ChannelUrl.java#L81-L86
46,664
mgm-tp/jfunk
jfunk-common/src/main/java/com/mgmtp/jfunk/common/util/MemoryInfo.java
MemoryInfo.getMemoryInfo
public static String getMemoryInfo(final Unit unit) { final long[] memory = getMemoryInfo(); for (final Type type : Type.values()) { memory[type.ordinal()] /= unit.getDenominator(); } final StringBuilder sb = new StringBuilder(100); sb.append("Memory (free/total/max): "); sb.append(memory[Type...
java
public static String getMemoryInfo(final Unit unit) { final long[] memory = getMemoryInfo(); for (final Type type : Type.values()) { memory[type.ordinal()] /= unit.getDenominator(); } final StringBuilder sb = new StringBuilder(100); sb.append("Memory (free/total/max): "); sb.append(memory[Type...
[ "public", "static", "String", "getMemoryInfo", "(", "final", "Unit", "unit", ")", "{", "final", "long", "[", "]", "memory", "=", "getMemoryInfo", "(", ")", ";", "for", "(", "final", "Type", "type", ":", "Type", ".", "values", "(", ")", ")", "{", "mem...
Get information about the current memory status of the JVM. @param unit used for formatting. Valid values are: <ul> <li>{@link Unit#BYTES}</li> <li>{@link Unit#KILOBYTES}</li> <li>{@link Unit#KIBIBYTES}</li> <li>{@link Unit#MEGABYTES}</li> <li>{@link Unit#MEBIBYTES}</li> </ul> If no value is given, {@link Unit#BYTES} ...
[ "Get", "information", "about", "the", "current", "memory", "status", "of", "the", "JVM", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-common/src/main/java/com/mgmtp/jfunk/common/util/MemoryInfo.java#L126-L144
46,665
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/content/documentlists/DocumentUrl.java
DocumentUrl.transformDocumentContentUrl
public static MozuUrl transformDocumentContentUrl(String crop, String documentId, String documentListName, Integer height, Integer max, Integer maxHeight, Integer maxWidth, Integer quality, Integer width) { UrlFormatter formatter = new UrlFormatter("/api/content/documentlists/{documentListName}/documents/{document...
java
public static MozuUrl transformDocumentContentUrl(String crop, String documentId, String documentListName, Integer height, Integer max, Integer maxHeight, Integer maxWidth, Integer quality, Integer width) { UrlFormatter formatter = new UrlFormatter("/api/content/documentlists/{documentListName}/documents/{document...
[ "public", "static", "MozuUrl", "transformDocumentContentUrl", "(", "String", "crop", ",", "String", "documentId", ",", "String", "documentListName", ",", "Integer", "height", ",", "Integer", "max", ",", "Integer", "maxHeight", ",", "Integer", "maxWidth", ",", "Int...
Get Resource Url for TransformDocumentContent @param crop Crops the image based on the specified coordinates. The reference point for positive coordinates is the top-left corner of the image, and the reference point for negative coordinates is the bottom-right corner of the image.Usage: Example: removes 10 pixels from...
[ "Get", "Resource", "Url", "for", "TransformDocumentContent" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/content/documentlists/DocumentUrl.java#L43-L56
46,666
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/content/documentlists/DocumentUrl.java
DocumentUrl.getDocumentUrl
public static MozuUrl getDocumentUrl(String documentId, String documentListName, Boolean includeInactive, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/content/documentlists/{documentListName}/documents/{documentId}?includeInactive={includeInactive}&responseFields={responseFields}"); ...
java
public static MozuUrl getDocumentUrl(String documentId, String documentListName, Boolean includeInactive, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/content/documentlists/{documentListName}/documents/{documentId}?includeInactive={includeInactive}&responseFields={responseFields}"); ...
[ "public", "static", "MozuUrl", "getDocumentUrl", "(", "String", "documentId", ",", "String", "documentListName", ",", "Boolean", "includeInactive", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/content...
Get Resource Url for GetDocument @param documentId Unique identifier for a document, used by content and document calls. Document IDs are associated with document types, document type lists, sites, and tenants. @param documentListName Name of content documentListName to delete @param includeInactive Include inactive co...
[ "Get", "Resource", "Url", "for", "GetDocument" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/content/documentlists/DocumentUrl.java#L66-L74
46,667
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/content/documentlists/DocumentUrl.java
DocumentUrl.updateDocumentUrl
public static MozuUrl updateDocumentUrl(String documentId, String documentListName, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/content/documentlists/{documentListName}/documents/{documentId}?responseFields={responseFields}"); formatter.formatUrl("documentId", documentId); format...
java
public static MozuUrl updateDocumentUrl(String documentId, String documentListName, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/content/documentlists/{documentListName}/documents/{documentId}?responseFields={responseFields}"); formatter.formatUrl("documentId", documentId); format...
[ "public", "static", "MozuUrl", "updateDocumentUrl", "(", "String", "documentId", ",", "String", "documentListName", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/content/documentlists/{documentListName}/docu...
Get Resource Url for UpdateDocument @param documentId Unique identifier for a document, used by content and document calls. Document IDs are associated with document types, document type lists, sites, and tenants. @param documentListName Name of content documentListName to delete @param responseFields Filtering syntax ...
[ "Get", "Resource", "Url", "for", "UpdateDocument" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/content/documentlists/DocumentUrl.java#L135-L142
46,668
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/content/documentlists/DocumentUrl.java
DocumentUrl.deleteDocumentUrl
public static MozuUrl deleteDocumentUrl(String documentId, String documentListName) { UrlFormatter formatter = new UrlFormatter("/api/content/documentlists/{documentListName}/documents/{documentId}"); formatter.formatUrl("documentId", documentId); formatter.formatUrl("documentListName", documentListName); ...
java
public static MozuUrl deleteDocumentUrl(String documentId, String documentListName) { UrlFormatter formatter = new UrlFormatter("/api/content/documentlists/{documentListName}/documents/{documentId}"); formatter.formatUrl("documentId", documentId); formatter.formatUrl("documentListName", documentListName); ...
[ "public", "static", "MozuUrl", "deleteDocumentUrl", "(", "String", "documentId", ",", "String", "documentListName", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/content/documentlists/{documentListName}/documents/{documentId}\"", ")", ";", ...
Get Resource Url for DeleteDocument @param documentId Unique identifier for a document, used by content and document calls. Document IDs are associated with document types, document type lists, sites, and tenants. @param documentListName Name of content documentListName to delete @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteDocument" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/content/documentlists/DocumentUrl.java#L150-L156
46,669
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/couponsets/CouponUrl.java
CouponUrl.deleteCouponUrl
public static MozuUrl deleteCouponUrl(String couponCode, String couponSetCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/couponsets/{couponSetCode}/couponcodes/{couponCode}"); formatter.formatUrl("couponCode", couponCode); formatter.formatUrl("couponSetCode", couponSetCode); ...
java
public static MozuUrl deleteCouponUrl(String couponCode, String couponSetCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/couponsets/{couponSetCode}/couponcodes/{couponCode}"); formatter.formatUrl("couponCode", couponCode); formatter.formatUrl("couponSetCode", couponSetCode); ...
[ "public", "static", "MozuUrl", "deleteCouponUrl", "(", "String", "couponCode", ",", "String", "couponSetCode", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/catalog/admin/couponsets/{couponSetCode}/couponcodes/{couponCode}\"", ")", "...
Get Resource Url for DeleteCoupon @param couponCode Code associated with the coupon to remove from the cart. @param couponSetCode The unique identifier of the coupon set that the coupon belongs to. @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteCoupon" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/catalog/admin/couponsets/CouponUrl.java#L88-L94
46,670
sualeh/pointlocation6709
src/main/java/us/fatehi/pointlocation6709/Version.java
Version.about
public static String about() { final StringBuffer about = new StringBuffer(); about.append(getProductName()).append(" ").append(getVersion()) .append("\n").append("\u00A9 2007-2014 Sualeh Fatehi"); //$NON-NLS-2$ return new String(about); }
java
public static String about() { final StringBuffer about = new StringBuffer(); about.append(getProductName()).append(" ").append(getVersion()) .append("\n").append("\u00A9 2007-2014 Sualeh Fatehi"); //$NON-NLS-2$ return new String(about); }
[ "public", "static", "String", "about", "(", ")", "{", "final", "StringBuffer", "about", "=", "new", "StringBuffer", "(", ")", ";", "about", ".", "append", "(", "getProductName", "(", ")", ")", ".", "append", "(", "\" \"", ")", ".", "append", "(", "getV...
Information about this product. @return Information about this product.
[ "Information", "about", "this", "product", "." ]
c0c186c2518f41e3fe174920cacd5c0d082d01a0
https://github.com/sualeh/pointlocation6709/blob/c0c186c2518f41e3fe174920cacd5c0d082d01a0/src/main/java/us/fatehi/pointlocation6709/Version.java#L43-L49
46,671
nmdp-bioinformatics/ngs
align/src/main/java/org/nmdp/ngs/align/HighScoringPair.java
HighScoringPair.valueOf
public static HighScoringPair valueOf(final String value) { checkNotNull(value); List<String> tokens = Splitter.on("\t").trimResults().splitToList(value); if (tokens.size() != 12) { throw new IllegalArgumentException("value must have twelve fields"); } String source =...
java
public static HighScoringPair valueOf(final String value) { checkNotNull(value); List<String> tokens = Splitter.on("\t").trimResults().splitToList(value); if (tokens.size() != 12) { throw new IllegalArgumentException("value must have twelve fields"); } String source =...
[ "public", "static", "HighScoringPair", "valueOf", "(", "final", "String", "value", ")", "{", "checkNotNull", "(", "value", ")", ";", "List", "<", "String", ">", "tokens", "=", "Splitter", ".", "on", "(", "\"\\t\"", ")", ".", "trimResults", "(", ")", ".",...
Return a new high scoring pair parsed from the specified value. @param value value to parse, must not be null @return a new high scoring pair parsed from the specified value @throws IllegalArgumentException if the value is not valid high scoring pair format @throws NumberFormatException if a number valued field cannot...
[ "Return", "a", "new", "high", "scoring", "pair", "parsed", "from", "the", "specified", "value", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/align/src/main/java/org/nmdp/ngs/align/HighScoringPair.java#L241-L261
46,672
mgm-tp/jfunk
jfunk-common/src/main/java/com/mgmtp/jfunk/common/config/StackedScope.java
StackedScope.exitScope
@Override public void exitScope() { Map<Key<?>, Object> scopeMap = scopeStackCache.get().peek(); performDisposal(scopeMap); scopeStackCache.get().pop(); log.debug("Exited scope."); }
java
@Override public void exitScope() { Map<Key<?>, Object> scopeMap = scopeStackCache.get().peek(); performDisposal(scopeMap); scopeStackCache.get().pop(); log.debug("Exited scope."); }
[ "@", "Override", "public", "void", "exitScope", "(", ")", "{", "Map", "<", "Key", "<", "?", ">", ",", "Object", ">", "scopeMap", "=", "scopeStackCache", ".", "get", "(", ")", ".", "peek", "(", ")", ";", "performDisposal", "(", "scopeMap", ")", ";", ...
Exists the scope context of the current thread by popping the context's map off the internal stack.
[ "Exists", "the", "scope", "context", "of", "the", "current", "thread", "by", "popping", "the", "context", "s", "map", "off", "the", "internal", "stack", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-common/src/main/java/com/mgmtp/jfunk/common/config/StackedScope.java#L78-L84
46,673
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/carts/ChangeMessageUrl.java
ChangeMessageUrl.removeAllMessagesUrl
public static MozuUrl removeAllMessagesUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/messages"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl removeAllMessagesUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/messages"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
[ "public", "static", "MozuUrl", "removeAllMessagesUrl", "(", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/carts/current/messages\"", ")", ";", "return", "new", "MozuUrl", "(", "formatter", ".", "getResourceUrl", "(", ")", "...
Get Resource Url for RemoveAllMessages @return String Resource Url
[ "Get", "Resource", "Url", "for", "RemoveAllMessages" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/carts/ChangeMessageUrl.java#L32-L36
46,674
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/carts/ChangeMessageUrl.java
ChangeMessageUrl.removeMessageUrl
public static MozuUrl removeMessageUrl(String messageId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/messages/{messageId}"); formatter.formatUrl("messageId", messageId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl removeMessageUrl(String messageId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/messages/{messageId}"); formatter.formatUrl("messageId", messageId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
[ "public", "static", "MozuUrl", "removeMessageUrl", "(", "String", "messageId", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/carts/current/messages/{messageId}\"", ")", ";", "formatter", ".", "formatUrl", "(", "\"messageId\"", ...
Get Resource Url for RemoveMessage @param messageId Identifier of the message to remove from the cart. @return String Resource Url
[ "Get", "Resource", "Url", "for", "RemoveMessage" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/carts/ChangeMessageUrl.java#L43-L48
46,675
mgm-tp/jfunk
jfunk-common/src/main/java/com/mgmtp/jfunk/common/random/RandomCollection.java
RandomCollection.get
@Override public E get() { if (originalElements.isEmpty()) { return null; } if (!priorityElements.isEmpty()) { return priorityElements.remove(0); } if (currentElements.size() <= originalElements.size()) { currentElements.addAll(originalElements); } int index = random.getInt(currentEle...
java
@Override public E get() { if (originalElements.isEmpty()) { return null; } if (!priorityElements.isEmpty()) { return priorityElements.remove(0); } if (currentElements.size() <= originalElements.size()) { currentElements.addAll(originalElements); } int index = random.getInt(currentEle...
[ "@", "Override", "public", "E", "get", "(", ")", "{", "if", "(", "originalElements", ".", "isEmpty", "(", ")", ")", "{", "return", "null", ";", "}", "if", "(", "!", "priorityElements", ".", "isEmpty", "(", ")", ")", "{", "return", "priorityElements", ...
Returns the next random element. @return if the original list was empty, {@code null} is returned
[ "Returns", "the", "next", "random", "element", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-common/src/main/java/com/mgmtp/jfunk/common/random/RandomCollection.java#L92-L105
46,676
mgm-tp/jfunk
jfunk-common/src/main/java/com/mgmtp/jfunk/common/random/RandomCollection.java
RandomCollection.reset
@Override public void reset() { this.priorityElements = Lists.newArrayList(originalElements); Collections.shuffle(priorityElements); this.currentElements = Lists.newArrayListWithExpectedSize(2 * originalElements.size()); this.currentElements.addAll(originalElements); }
java
@Override public void reset() { this.priorityElements = Lists.newArrayList(originalElements); Collections.shuffle(priorityElements); this.currentElements = Lists.newArrayListWithExpectedSize(2 * originalElements.size()); this.currentElements.addAll(originalElements); }
[ "@", "Override", "public", "void", "reset", "(", ")", "{", "this", ".", "priorityElements", "=", "Lists", ".", "newArrayList", "(", "originalElements", ")", ";", "Collections", ".", "shuffle", "(", "priorityElements", ")", ";", "this", ".", "currentElements", ...
Resets this object so it behaves like a newly constructed instance.
[ "Resets", "this", "object", "so", "it", "behaves", "like", "a", "newly", "constructed", "instance", "." ]
5b9fecac5778b988bb458085ded39ea9a4c7c2ae
https://github.com/mgm-tp/jfunk/blob/5b9fecac5778b988bb458085ded39ea9a4c7c2ae/jfunk-common/src/main/java/com/mgmtp/jfunk/common/random/RandomCollection.java#L118-L124
46,677
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/WishlistUrl.java
WishlistUrl.getWishlistByNameUrl
public static MozuUrl getWishlistByNameUrl(Integer customerAccountId, String responseFields, String wishlistName) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}?responseFields={responseFields}"); formatter.formatUrl("customerAccountId", customer...
java
public static MozuUrl getWishlistByNameUrl(Integer customerAccountId, String responseFields, String wishlistName) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}?responseFields={responseFields}"); formatter.formatUrl("customerAccountId", customer...
[ "public", "static", "MozuUrl", "getWishlistByNameUrl", "(", "Integer", "customerAccountId", ",", "String", "responseFields", ",", "String", "wishlistName", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/wishlists/customers/{customer...
Get Resource Url for GetWishlistByName @param customerAccountId The unique identifier of the customer account for which to retrieve wish lists. @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to r...
[ "Get", "Resource", "Url", "for", "GetWishlistByName" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/WishlistUrl.java#L61-L68
46,678
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/commerce/WishlistUrl.java
WishlistUrl.updateWishlistUrl
public static MozuUrl updateWishlistUrl(String responseFields, String wishlistId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("wishlistId", wishlistId); retur...
java
public static MozuUrl updateWishlistUrl(String responseFields, String wishlistId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("wishlistId", wishlistId); retur...
[ "public", "static", "MozuUrl", "updateWishlistUrl", "(", "String", "responseFields", ",", "String", "wishlistId", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/wishlists/{wishlistId}?responseFields={responseFields}\"", ")", ";", "f...
Get Resource Url for UpdateWishlist @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. @param wishlistId Unique i...
[ "Get", "Resource", "Url", "for", "UpdateWishlist" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/commerce/WishlistUrl.java#L88-L94
46,679
Mozu/mozu-java
mozu-java-core/src/main/java/com/mozu/api/urls/platform/InstalledApplicationsUrl.java
InstalledApplicationsUrl.getApplicationUrl
public static MozuUrl getApplicationUrl(String appId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/platform/applications/{appId}?responseFields={responseFields}"); formatter.formatUrl("appId", appId); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(for...
java
public static MozuUrl getApplicationUrl(String appId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/platform/applications/{appId}?responseFields={responseFields}"); formatter.formatUrl("appId", appId); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(for...
[ "public", "static", "MozuUrl", "getApplicationUrl", "(", "String", "appId", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/platform/applications/{appId}?responseFields={responseFields}\"", ")", ";", "formatte...
Get Resource Url for GetApplication @param appId appId parameter description DOCUMENT_HERE @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this pa...
[ "Get", "Resource", "Url", "for", "GetApplication" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-java-core/src/main/java/com/mozu/api/urls/platform/InstalledApplicationsUrl.java#L22-L28
46,680
thomasjungblut/tjungblut-math
src/de/jungblut/math/dense/DenseDoubleMatrix.java
DenseDoubleMatrix.getColumn
public double[] getColumn(int col) { double[] column = new double[numRows]; int offset = translate(0, col, numRows); for (int i = 0; i < column.length; i++) { column[i] = matrix[offset + i]; } return column; }
java
public double[] getColumn(int col) { double[] column = new double[numRows]; int offset = translate(0, col, numRows); for (int i = 0; i < column.length; i++) { column[i] = matrix[offset + i]; } return column; }
[ "public", "double", "[", "]", "getColumn", "(", "int", "col", ")", "{", "double", "[", "]", "column", "=", "new", "double", "[", "numRows", "]", ";", "int", "offset", "=", "translate", "(", "0", ",", "col", ",", "numRows", ")", ";", "for", "(", "...
Gets a whole column of the matrix as a double array.
[ "Gets", "a", "whole", "column", "of", "the", "matrix", "as", "a", "double", "array", "." ]
4de5aa25f263d982a253be88aaf350b51cf3860d
https://github.com/thomasjungblut/tjungblut-math/blob/4de5aa25f263d982a253be88aaf350b51cf3860d/src/de/jungblut/math/dense/DenseDoubleMatrix.java#L223-L230
46,681
thomasjungblut/tjungblut-math
src/de/jungblut/math/dense/DenseDoubleMatrix.java
DenseDoubleMatrix.getRow
public double[] getRow(int row) { double[] rowArray = new double[getColumnCount()]; for (int i = 0; i < getColumnCount(); i++) { rowArray[i] = get(row, i); } return rowArray; }
java
public double[] getRow(int row) { double[] rowArray = new double[getColumnCount()]; for (int i = 0; i < getColumnCount(); i++) { rowArray[i] = get(row, i); } return rowArray; }
[ "public", "double", "[", "]", "getRow", "(", "int", "row", ")", "{", "double", "[", "]", "rowArray", "=", "new", "double", "[", "getColumnCount", "(", ")", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "getColumnCount", "(", ")", ";"...
Get a single row of the matrix as a double array.
[ "Get", "a", "single", "row", "of", "the", "matrix", "as", "a", "double", "array", "." ]
4de5aa25f263d982a253be88aaf350b51cf3860d
https://github.com/thomasjungblut/tjungblut-math/blob/4de5aa25f263d982a253be88aaf350b51cf3860d/src/de/jungblut/math/dense/DenseDoubleMatrix.java#L257-L263
46,682
thomasjungblut/tjungblut-math
src/de/jungblut/math/dense/DenseDoubleMatrix.java
DenseDoubleMatrix.setRow
public void setRow(int row, double[] value) { for (int i = 0; i < value.length; i++) { this.matrix[translate(row, i, numRows)] = value[i]; } }
java
public void setRow(int row, double[] value) { for (int i = 0; i < value.length; i++) { this.matrix[translate(row, i, numRows)] = value[i]; } }
[ "public", "void", "setRow", "(", "int", "row", ",", "double", "[", "]", "value", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "value", ".", "length", ";", "i", "++", ")", "{", "this", ".", "matrix", "[", "translate", "(", "row", ...
Sets the row to a given double array.
[ "Sets", "the", "row", "to", "a", "given", "double", "array", "." ]
4de5aa25f263d982a253be88aaf350b51cf3860d
https://github.com/thomasjungblut/tjungblut-math/blob/4de5aa25f263d982a253be88aaf350b51cf3860d/src/de/jungblut/math/dense/DenseDoubleMatrix.java#L283-L287
46,683
thomasjungblut/tjungblut-math
src/de/jungblut/math/dense/DenseDoubleMatrix.java
DenseDoubleMatrix.setColumn
public void setColumn(int col, double[] values) { int offset = translate(0, col, numRows); System.arraycopy(values, 0, matrix, offset, values.length); }
java
public void setColumn(int col, double[] values) { int offset = translate(0, col, numRows); System.arraycopy(values, 0, matrix, offset, values.length); }
[ "public", "void", "setColumn", "(", "int", "col", ",", "double", "[", "]", "values", ")", "{", "int", "offset", "=", "translate", "(", "0", ",", "col", ",", "numRows", ")", ";", "System", ".", "arraycopy", "(", "values", ",", "0", ",", "matrix", ",...
Sets the column to a given double array.
[ "Sets", "the", "column", "to", "a", "given", "double", "array", "." ]
4de5aa25f263d982a253be88aaf350b51cf3860d
https://github.com/thomasjungblut/tjungblut-math/blob/4de5aa25f263d982a253be88aaf350b51cf3860d/src/de/jungblut/math/dense/DenseDoubleMatrix.java#L292-L295
46,684
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/CartUrl.java
CartUrl.getCartUrl
public static MozuUrl getCartUrl(String cartId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/{cartId}?responseFields={responseFields}"); formatter.formatUrl("cartId", cartId); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(formatter.get...
java
public static MozuUrl getCartUrl(String cartId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/{cartId}?responseFields={responseFields}"); formatter.formatUrl("cartId", cartId); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(formatter.get...
[ "public", "static", "MozuUrl", "getCartUrl", "(", "String", "cartId", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/carts/{cartId}?responseFields={responseFields}\"", ")", ";", "formatter", ".", ...
Get Resource Url for GetCart @param cartId Identifier of the cart to delete. @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may ca...
[ "Get", "Resource", "Url", "for", "GetCart" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/CartUrl.java#L22-L28
46,685
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/CartUrl.java
CartUrl.getUserCartSummaryUrl
public static MozuUrl getUserCartSummaryUrl(String responseFields, String userId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/user/{userId}/summary?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("userId", userId); return n...
java
public static MozuUrl getUserCartSummaryUrl(String responseFields, String userId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/user/{userId}/summary?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("userId", userId); return n...
[ "public", "static", "MozuUrl", "getUserCartSummaryUrl", "(", "String", "responseFields", ",", "String", "userId", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/carts/user/{userId}/summary?responseFields={responseFields}\"", ")", ";",...
Get Resource Url for GetUserCartSummary @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. @param userId Unique i...
[ "Get", "Resource", "Url", "for", "GetUserCartSummary" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/CartUrl.java#L60-L66
46,686
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/CartUrl.java
CartUrl.rejectSuggestedDiscountUrl
public static MozuUrl rejectSuggestedDiscountUrl(String cartId, Integer discountId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/{cartId}/rejectautodiscount/{discountId}?responseFields={responseFields}"); formatter.formatUrl("cartId", cartId); formatter.formatUrl("d...
java
public static MozuUrl rejectSuggestedDiscountUrl(String cartId, Integer discountId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/{cartId}/rejectautodiscount/{discountId}?responseFields={responseFields}"); formatter.formatUrl("cartId", cartId); formatter.formatUrl("d...
[ "public", "static", "MozuUrl", "rejectSuggestedDiscountUrl", "(", "String", "cartId", ",", "Integer", "discountId", ",", "String", "responseFields", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/carts/{cartId}/rejectautodiscount/{d...
Get Resource Url for RejectSuggestedDiscount @param cartId Identifier of the cart to delete. @param discountId discountId parameter description DOCUMENT_HERE @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should onl...
[ "Get", "Resource", "Url", "for", "RejectSuggestedDiscount" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/CartUrl.java#L89-L96
46,687
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/CartUrl.java
CartUrl.deleteCurrentCartUrl
public static MozuUrl deleteCurrentCartUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl deleteCurrentCartUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
[ "public", "static", "MozuUrl", "deleteCurrentCartUrl", "(", ")", "{", "UrlFormatter", "formatter", "=", "new", "UrlFormatter", "(", "\"/api/commerce/carts/current\"", ")", ";", "return", "new", "MozuUrl", "(", "formatter", ".", "getResourceUrl", "(", ")", ",", "Mo...
Get Resource Url for DeleteCurrentCart @return String Resource Url
[ "Get", "Resource", "Url", "for", "DeleteCurrentCart" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/CartUrl.java#L126-L130
46,688
Mozu/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/urls/content/documentlists/ViewUrl.java
ViewUrl.getViewDocumentsUrl
public static MozuUrl getViewDocumentsUrl(String documentListName, String filter, Boolean includeInactive, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String viewName) { UrlFormatter formatter = new UrlFormatter("/api/content/documentlists/{documentListName}/views/{viewName}/documen...
java
public static MozuUrl getViewDocumentsUrl(String documentListName, String filter, Boolean includeInactive, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String viewName) { UrlFormatter formatter = new UrlFormatter("/api/content/documentlists/{documentListName}/views/{viewName}/documen...
[ "public", "static", "MozuUrl", "getViewDocumentsUrl", "(", "String", "documentListName", ",", "String", "filter", ",", "Boolean", "includeInactive", ",", "Integer", "pageSize", ",", "String", "responseFields", ",", "String", "sortBy", ",", "Integer", "startIndex", "...
Get Resource Url for GetViewDocuments @param documentListName Name of content documentListName to delete @param filter A set of filter expressions representing the search parameters for a query. This parameter is optional. Refer to [Sorting and Filtering](../../../../Developer/api-guides/sorting-filtering.htm) for a li...
[ "Get", "Resource", "Url", "for", "GetViewDocuments" ]
5beadde73601a859f845e3e2fc1077b39c8bea83
https://github.com/Mozu/mozu-java/blob/5beadde73601a859f845e3e2fc1077b39c8bea83/mozu-javaasync-core/src/main/java/com/mozu/api/urls/content/documentlists/ViewUrl.java#L28-L40
46,689
nmdp-bioinformatics/ngs
align/src/main/java/org/nmdp/ngs/align/Alignments.java
Alignments.checkClosedOpen
static void checkClosedOpen(final Range<Long> range) { checkNotNull(range); checkArgument(BoundType.CLOSED == range.lowerBoundType(), "range must be [closed, open), lower bound type was open"); checkArgument(BoundType.OPEN == range.upperBoundType(), "range must be [closed, open), upper bound typ...
java
static void checkClosedOpen(final Range<Long> range) { checkNotNull(range); checkArgument(BoundType.CLOSED == range.lowerBoundType(), "range must be [closed, open), lower bound type was open"); checkArgument(BoundType.OPEN == range.upperBoundType(), "range must be [closed, open), upper bound typ...
[ "static", "void", "checkClosedOpen", "(", "final", "Range", "<", "Long", ">", "range", ")", "{", "checkNotNull", "(", "range", ")", ";", "checkArgument", "(", "BoundType", ".", "CLOSED", "==", "range", ".", "lowerBoundType", "(", ")", ",", "\"range must be [...
Confirm that the specified range is [closed, open). @param range range to check, must not be null
[ "Confirm", "that", "the", "specified", "range", "is", "[", "closed", "open", ")", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/align/src/main/java/org/nmdp/ngs/align/Alignments.java#L69-L73
46,690
nmdp-bioinformatics/ngs
align/src/main/java/org/nmdp/ngs/align/Alignments.java
Alignments.length
public static long length(final Range<Long> range) { checkClosedOpen(range); return Math.max(0L, range.upperEndpoint() - range.lowerEndpoint()); }
java
public static long length(final Range<Long> range) { checkClosedOpen(range); return Math.max(0L, range.upperEndpoint() - range.lowerEndpoint()); }
[ "public", "static", "long", "length", "(", "final", "Range", "<", "Long", ">", "range", ")", "{", "checkClosedOpen", "(", "range", ")", ";", "return", "Math", ".", "max", "(", "0L", ",", "range", ".", "upperEndpoint", "(", ")", "-", "range", ".", "lo...
Return the length of the specified range. @param range range, must not be null and must be [closed, open) @return the length of the specified range
[ "Return", "the", "length", "of", "the", "specified", "range", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/align/src/main/java/org/nmdp/ngs/align/Alignments.java#L81-L84
46,691
nmdp-bioinformatics/ngs
align/src/main/java/org/nmdp/ngs/align/Alignments.java
Alignments.lengths
public static List<Long> lengths(final Iterable<Range<Long>> ranges) { checkNotNull(ranges); List<Long> lengths = new ArrayList<Long>(); for (Range<Long> range : ranges) { lengths.add(length(range)); } return lengths; }
java
public static List<Long> lengths(final Iterable<Range<Long>> ranges) { checkNotNull(ranges); List<Long> lengths = new ArrayList<Long>(); for (Range<Long> range : ranges) { lengths.add(length(range)); } return lengths; }
[ "public", "static", "List", "<", "Long", ">", "lengths", "(", "final", "Iterable", "<", "Range", "<", "Long", ">", ">", "ranges", ")", "{", "checkNotNull", "(", "ranges", ")", ";", "List", "<", "Long", ">", "lengths", "=", "new", "ArrayList", "<", "L...
Return the lengths of the specified ranges. @param ranges ranges, must not be null, must not contain any null ranges, and all ranges must be [closed, open) @return the lengths of the specified ranges
[ "Return", "the", "lengths", "of", "the", "specified", "ranges", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/align/src/main/java/org/nmdp/ngs/align/Alignments.java#L92-L99
46,692
nmdp-bioinformatics/ngs
align/src/main/java/org/nmdp/ngs/align/Alignments.java
Alignments.length
public static long length(final Iterable<Range<Long>> ranges) { checkNotNull(ranges); RangeSet<Long> rangeSet = TreeRangeSet.create(); for (Range<Long> range : ranges) { rangeSet.add(range); } long length = 0L; for (Range<Long> range : rangeSet.asRanges()) { ...
java
public static long length(final Iterable<Range<Long>> ranges) { checkNotNull(ranges); RangeSet<Long> rangeSet = TreeRangeSet.create(); for (Range<Long> range : ranges) { rangeSet.add(range); } long length = 0L; for (Range<Long> range : rangeSet.asRanges()) { ...
[ "public", "static", "long", "length", "(", "final", "Iterable", "<", "Range", "<", "Long", ">", ">", "ranges", ")", "{", "checkNotNull", "(", "ranges", ")", ";", "RangeSet", "<", "Long", ">", "rangeSet", "=", "TreeRangeSet", ".", "create", "(", ")", ";...
Return the sum of lengths of the specified ranges, after merging overlapping ranges. @param ranges ranges, must not be null, must not contain any null ranges, and all ranges must be [closed, open) @return the sum of lengths of the specified ranges, after merging overlapping ranges
[ "Return", "the", "sum", "of", "lengths", "of", "the", "specified", "ranges", "after", "merging", "overlapping", "ranges", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/align/src/main/java/org/nmdp/ngs/align/Alignments.java#L107-L118
46,693
nmdp-bioinformatics/ngs
align/src/main/java/org/nmdp/ngs/align/Alignments.java
Alignments.count
public static int count(final Iterable<Range<Long>> ranges) { int count = 0; for (Range<Long> range : ranges) { checkClosedOpen(range); count++; } return count; }
java
public static int count(final Iterable<Range<Long>> ranges) { int count = 0; for (Range<Long> range : ranges) { checkClosedOpen(range); count++; } return count; }
[ "public", "static", "int", "count", "(", "final", "Iterable", "<", "Range", "<", "Long", ">", ">", "ranges", ")", "{", "int", "count", "=", "0", ";", "for", "(", "Range", "<", "Long", ">", "range", ":", "ranges", ")", "{", "checkClosedOpen", "(", "...
Return the count of the specified ranges. @param ranges ranges, must not be null, must not contain any null ranges, and all ranges must be [closed, open) @return the count of the specified ranges
[ "Return", "the", "count", "of", "the", "specified", "ranges", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/align/src/main/java/org/nmdp/ngs/align/Alignments.java#L140-L147
46,694
nmdp-bioinformatics/ngs
align/src/main/java/org/nmdp/ngs/align/Alignments.java
Alignments.isGapSymbol
static boolean isGapSymbol(final Symbol symbol) { return AlphabetManager.getGapSymbol().equals(symbol) || DNATools.getDNA().getGapSymbol().equals(symbol); }
java
static boolean isGapSymbol(final Symbol symbol) { return AlphabetManager.getGapSymbol().equals(symbol) || DNATools.getDNA().getGapSymbol().equals(symbol); }
[ "static", "boolean", "isGapSymbol", "(", "final", "Symbol", "symbol", ")", "{", "return", "AlphabetManager", ".", "getGapSymbol", "(", ")", ".", "equals", "(", "symbol", ")", "||", "DNATools", ".", "getDNA", "(", ")", ".", "getGapSymbol", "(", ")", ".", ...
Return true if the specified symbol is a gap symbol. @param symbol symbol @return true if the specified symbol is a gap symbol
[ "Return", "true", "if", "the", "specified", "symbol", "is", "a", "gap", "symbol", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/align/src/main/java/org/nmdp/ngs/align/Alignments.java#L185-L188
46,695
nmdp-bioinformatics/ngs
align/src/main/java/org/nmdp/ngs/align/Alignments.java
Alignments.isMatchSymbol
static boolean isMatchSymbol(final Symbol symbol) { if (!(symbol instanceof BasisSymbol)) { return false; } BasisSymbol basisSymbol = (BasisSymbol) symbol; Set<Symbol> uniqueSymbols = new HashSet<Symbol>(); for (Object o : basisSymbol.getSymbols()) { Symbo...
java
static boolean isMatchSymbol(final Symbol symbol) { if (!(symbol instanceof BasisSymbol)) { return false; } BasisSymbol basisSymbol = (BasisSymbol) symbol; Set<Symbol> uniqueSymbols = new HashSet<Symbol>(); for (Object o : basisSymbol.getSymbols()) { Symbo...
[ "static", "boolean", "isMatchSymbol", "(", "final", "Symbol", "symbol", ")", "{", "if", "(", "!", "(", "symbol", "instanceof", "BasisSymbol", ")", ")", "{", "return", "false", ";", "}", "BasisSymbol", "basisSymbol", "=", "(", "BasisSymbol", ")", "symbol", ...
Return true if the specified symbol represents an alignment match. @param symbol symbol @return true if the specified symbol represents an alignment match
[ "Return", "true", "if", "the", "specified", "symbol", "represents", "an", "alignment", "match", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/align/src/main/java/org/nmdp/ngs/align/Alignments.java#L196-L210
46,696
nmdp-bioinformatics/ngs
align/src/main/java/org/nmdp/ngs/align/Alignments.java
Alignments.gaps
public static List<Range<Long>> gaps(final GappedSymbolList gappedSymbols) { checkNotNull(gappedSymbols); List<Range<Long>> gaps = new ArrayList<Range<Long>>(); int gapStart = -1; for (int i = 1, length = gappedSymbols.length() + 1; i < length; i++) { if (isGapSymbol(gappedSy...
java
public static List<Range<Long>> gaps(final GappedSymbolList gappedSymbols) { checkNotNull(gappedSymbols); List<Range<Long>> gaps = new ArrayList<Range<Long>>(); int gapStart = -1; for (int i = 1, length = gappedSymbols.length() + 1; i < length; i++) { if (isGapSymbol(gappedSy...
[ "public", "static", "List", "<", "Range", "<", "Long", ">", ">", "gaps", "(", "final", "GappedSymbolList", "gappedSymbols", ")", "{", "checkNotNull", "(", "gappedSymbols", ")", ";", "List", "<", "Range", "<", "Long", ">", ">", "gaps", "=", "new", "ArrayL...
Return the gaps in the specified gapped symbol list as 0-based [closed, open) ranges. @param gappedSymbols gapped symbol list, must not be null @return the gaps in the specified gapped symbol list as 0-based [closed, open) ranges
[ "Return", "the", "gaps", "in", "the", "specified", "gapped", "symbol", "list", "as", "0", "-", "based", "[", "closed", "open", ")", "ranges", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/align/src/main/java/org/nmdp/ngs/align/Alignments.java#L240-L262
46,697
nmdp-bioinformatics/ngs
align/src/main/java/org/nmdp/ngs/align/Alignments.java
Alignments.matches
public static List<Range<Long>> matches(final AlignmentPair alignmentPair) { checkNotNull(alignmentPair); List<Range<Long>> matches = new ArrayList<Range<Long>>(); int matchStart = -1; for (int i = 1, length = alignmentPair.length() + 1; i < length; i++) { if (isMatchSymbol(a...
java
public static List<Range<Long>> matches(final AlignmentPair alignmentPair) { checkNotNull(alignmentPair); List<Range<Long>> matches = new ArrayList<Range<Long>>(); int matchStart = -1; for (int i = 1, length = alignmentPair.length() + 1; i < length; i++) { if (isMatchSymbol(a...
[ "public", "static", "List", "<", "Range", "<", "Long", ">", ">", "matches", "(", "final", "AlignmentPair", "alignmentPair", ")", "{", "checkNotNull", "(", "alignmentPair", ")", ";", "List", "<", "Range", "<", "Long", ">", ">", "matches", "=", "new", "Arr...
Return the alignment matches in the specified alignment pair as 0-based [closed, open) ranges. @param alignmentPair alignment pair, must not be null @return the alignment matches in the alignment pair as 0-based [closed, open) ranges
[ "Return", "the", "alignment", "matches", "in", "the", "specified", "alignment", "pair", "as", "0", "-", "based", "[", "closed", "open", ")", "ranges", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/align/src/main/java/org/nmdp/ngs/align/Alignments.java#L270-L292
46,698
nmdp-bioinformatics/ngs
align/src/main/java/org/nmdp/ngs/align/Alignments.java
Alignments.mismatches
public static List<Range<Long>> mismatches(final AlignmentPair alignmentPair) { checkNotNull(alignmentPair); List<Range<Long>> mismatches = new ArrayList<Range<Long>>(); int mismatchStart = -1; for (int i = 1, length = alignmentPair.length() + 1; i < length; i++) { if (isMism...
java
public static List<Range<Long>> mismatches(final AlignmentPair alignmentPair) { checkNotNull(alignmentPair); List<Range<Long>> mismatches = new ArrayList<Range<Long>>(); int mismatchStart = -1; for (int i = 1, length = alignmentPair.length() + 1; i < length; i++) { if (isMism...
[ "public", "static", "List", "<", "Range", "<", "Long", ">", ">", "mismatches", "(", "final", "AlignmentPair", "alignmentPair", ")", "{", "checkNotNull", "(", "alignmentPair", ")", ";", "List", "<", "Range", "<", "Long", ">", ">", "mismatches", "=", "new", ...
Return the alignment mismatches in the specified alignment pair as 0-based [closed, open) ranges. @param alignmentPair alignment pair, must not be null @return the alignment mismatches in the alignment pair as 0-based [closed, open) ranges
[ "Return", "the", "alignment", "mismatches", "in", "the", "specified", "alignment", "pair", "as", "0", "-", "based", "[", "closed", "open", ")", "ranges", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/align/src/main/java/org/nmdp/ngs/align/Alignments.java#L300-L322
46,699
nmdp-bioinformatics/ngs
range/src/main/java/org/nmdp/ngs/range/Ranges.java
Ranges.center
public static <C extends Comparable> C center(final Range<C> range) { checkNotNull(range); if (!range.hasLowerBound() && !range.hasUpperBound()) { throw new IllegalStateException("cannot find the center of a range without bounds"); } if (!range.hasLowerBound()) { ...
java
public static <C extends Comparable> C center(final Range<C> range) { checkNotNull(range); if (!range.hasLowerBound() && !range.hasUpperBound()) { throw new IllegalStateException("cannot find the center of a range without bounds"); } if (!range.hasLowerBound()) { ...
[ "public", "static", "<", "C", "extends", "Comparable", ">", "C", "center", "(", "final", "Range", "<", "C", ">", "range", ")", "{", "checkNotNull", "(", "range", ")", ";", "if", "(", "!", "range", ".", "hasLowerBound", "(", ")", "&&", "!", "range", ...
Return the center of the specified range. @param <C> range endpoint type @param range range, must not be null @return the center of the specified range
[ "Return", "the", "center", "of", "the", "specified", "range", "." ]
277627e4311313a80f5dc110b3185b0d7af32bd0
https://github.com/nmdp-bioinformatics/ngs/blob/277627e4311313a80f5dc110b3185b0d7af32bd0/range/src/main/java/org/nmdp/ngs/range/Ranges.java#L53-L86