id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
4624158_0 | public SuccessResponse acknowledgeAlert(String identifier, String identifierType, AcknowledgeAlertRequest body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'identifier' is set
if (identifier == null) {
throw new ApiException(400, "Missing the required parameter 'iden... |
4624158_1 | public SuccessResponse addDetails(String identifier, AddAlertDetailsRequest body, String identifierType) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'identifier' is set
if (identifier == null) {
throw new ApiException(400, "Missing the required parameter 'identifier'... |
4624158_2 | public SuccessResponse addNote(String identifier, AddAlertNoteRequest body, String identifierType) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'identifier' is set
if (identifier == null) {
throw new ApiException(400, "Missing the required parameter 'identifier' when ... |
4624158_3 | public AddSavedSearchResponse addSavedSearches(AddSavedSearchRequest body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling addSavedSearches");
}
// creat... |
4624158_4 | public SuccessResponse addTags(String identifier, AddAlertTagsRequest body, String identifierType) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'identifier' is set
if (identifier == null) {
throw new ApiException(400, "Missing the required parameter 'identifier' when ... |
4624158_5 | public SuccessResponse addTeam(String identifier, AddAlertTeamRequest body, String identifierType) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'identifier' is set
if (identifier == null) {
throw new ApiException(400, "Missing the required parameter 'identifier' when ... |
4624158_6 | public SuccessResponse assignAlert(String identifier, AssignAlertRequest body, String identifierType) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'identifier' is set
if (identifier == null) {
throw new ApiException(400, "Missing the required parameter 'identifier' wh... |
4624158_7 | public SuccessResponse closeAlert(String identifier, String identifierType, CloseAlertRequest body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'identifier' is set
if (identifier == null) {
throw new ApiException(400, "Missing the required parameter 'identifier' when... |
4624158_8 | public SuccessResponse createAlert(CreateAlertRequest body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling createAlert");
}
// create path and map varia... |
4624158_9 | public SuccessResponse deleteAlert(DeleteAlertRequest params) throws ApiException {
String identifier = params.getIdentifier();
String identifierType = params.getIdentifierType().getValue();
String source = params.getSource();
String user = params.getUser();
Object localVarPostBody = null;
// verify the req... |
4643211_0 | public CountTimestampSamplesWritable(long count, long epochMilliseconds, List<Long> samples) {
this.countTimestampWritable = new CountTimestampWritable(count, epochMilliseconds);
this.samples = samples;
} |
4643211_1 | public CountTimestampWritable(long count, long epochMilliseconds) {
this.count = count;
this.epochMilliseconds = epochMilliseconds;
} |
4646950_0 | public SauceSession start() throws MalformedURLException
{
capabilities = getCapabilities();
webDriver = remoteDriverManager.getRemoteWebDriver(sauceSeleniumServer, capabilities);
sessionId = ((RemoteWebDriver) webDriver).getSessionId().toString();
test = new SauceApi(webDriver);
api ... |
4646950_1 | public SauceSession withChrome()
{
chromeOptions = new ChromeOptions();
chromeOptions.setExperimentalOption("w3c", true);
browserName = "Chrome";
return this;
} |
4646950_2 | public RemoteDriverInterface getDriverManager() {
return remoteDriverManager;
} |
4646950_3 | public SauceSession start() throws MalformedURLException
{
capabilities = getCapabilities();
webDriver = remoteDriverManager.getRemoteWebDriver(sauceSeleniumServer, capabilities);
sessionId = ((RemoteWebDriver) webDriver).getSessionId().toString();
test = new SauceApi(webDriver);
api ... |
4646950_4 | public MutableCapabilities getCapabilities() {
sauceOptions = getSauceOptions();
setBrowserOptions(browserName);
capabilities.setCapability(sauceOptionsTag, sauceOptions);
capabilities.setCapability(CapabilityType.BROWSER_NAME, browserName);
capabilities.setCapability(CapabilityType.PLATFORM_NAME, o... |
4646950_5 | public SauceSession start() throws MalformedURLException
{
capabilities = getCapabilities();
webDriver = remoteDriverManager.getRemoteWebDriver(sauceSeleniumServer, capabilities);
sessionId = ((RemoteWebDriver) webDriver).getSessionId().toString();
test = new SauceApi(webDriver);
api ... |
4646950_6 | public SauceSession start() throws MalformedURLException
{
capabilities = getCapabilities();
webDriver = remoteDriverManager.getRemoteWebDriver(sauceSeleniumServer, capabilities);
sessionId = ((RemoteWebDriver) webDriver).getSessionId().toString();
test = new SauceApi(webDriver);
api ... |
4646950_7 | public MutableCapabilities getCapabilities() {
sauceOptions = getSauceOptions();
setBrowserOptions(browserName);
capabilities.setCapability(sauceOptionsTag, sauceOptions);
capabilities.setCapability(CapabilityType.BROWSER_NAME, browserName);
capabilities.setCapability(CapabilityType.PLATFORM_NAME, o... |
4646950_8 | public MutableCapabilities getCapabilities() {
sauceOptions = getSauceOptions();
setBrowserOptions(browserName);
capabilities.setCapability(sauceOptionsTag, sauceOptions);
capabilities.setCapability(CapabilityType.BROWSER_NAME, browserName);
capabilities.setCapability(CapabilityType.PLATFORM_NAME, o... |
4646950_9 | public MutableCapabilities getCapabilities() {
sauceOptions = getSauceOptions();
setBrowserOptions(browserName);
capabilities.setCapability(sauceOptionsTag, sauceOptions);
capabilities.setCapability(CapabilityType.BROWSER_NAME, browserName);
capabilities.setCapability(CapabilityType.PLATFORM_NAME, o... |
4653065_0 | public static byte[] getMessageWithUdhInBytes(String s, byte dataCoding) {
final int udhLength = ((byte)s.charAt(0))+1;
final byte[] udh = s.substring(0, udhLength).getBytes();
final byte[] content = DataCodingSpecification.getMessageInBytes(s.substring(udhLength), dataCoding);
final byte[] contentWithU... |
4653065_1 | public static byte[] getMessageWithUdhInBytes(String s, byte dataCoding) {
final int udhLength = ((byte)s.charAt(0))+1;
final byte[] udh = s.substring(0, udhLength).getBytes();
final byte[] content = DataCodingSpecification.getMessageInBytes(s.substring(udhLength), dataCoding);
final byte[] contentWithU... |
4653065_2 | public static int getMaxCharacters(byte dataCoding) {
switch (dataCoding) {
case 0:case 1: return 160; // these are 7bit, return full length
// JP and KR are suppose to use multi-byte character. This is probably needed to be tested once we get more
// people using those charset so they can m... |
4653065_3 | public static String getCharsetName(byte dataCoding) {
switch (dataCoding) {
case 1: return US_ASCII;
case 3: return ISO_8859_1;
case 6: return ISO_8859_5;
case 7: return ISO_8859_8;
case 8: return UTF_16;
case 14: return EUC_KR;
case 5: case 10: case 13: retu... |
4653065_4 | public Map<String, Object> toHeaders(Message source) {
HashMap<String, Object> map = new HashMap<String, Object>();
Address src = source.getSrc();
if (src != null) {
map.put("src", src);
}
Address dest = source.getDest();
if (dest != null) {
map.put("dest", dest);
}
map.put(OOB_HEADER, source.isFlagSet(Flag... |
4653065_5 | public Map<String, Object> toHeaders(Message source) {
HashMap<String, Object> map = new HashMap<String, Object>();
Address src = source.getSrc();
if (src != null) {
map.put("src", src);
}
Address dest = source.getDest();
if (dest != null) {
map.put("dest", dest);
}
map.put(OOB_HEADER, source.isFlagSet(Flag... |
4653065_6 | public void setResource(Resource resource) {
this.resource = resource;
} |
4653065_7 | public void setProtocolStackConfigurator(ProtocolStackConfigurator protocolStackConfigurator) {
this.protocolStackConfigurator = protocolStackConfigurator;
} |
4664478_0 | public static Proxy selectProxy(final Settings settings, final String serverUrl)
throws MalformedURLException
{
return selectProxy(settings, serverUrl, false);
} |
4664478_1 | public static Proxy selectProxy(final Settings settings, final String serverUrl)
throws MalformedURLException
{
return selectProxy(settings, serverUrl, false);
} |
4664478_2 | public static Proxy selectProxy(final Settings settings, final String serverUrl)
throws MalformedURLException
{
return selectProxy(settings, serverUrl, false);
} |
4664478_3 | public static Proxy selectProxy(final Settings settings, final String serverUrl)
throws MalformedURLException
{
return selectProxy(settings, serverUrl, false);
} |
4664478_4 | public static Proxy selectProxy(final Settings settings, final String serverUrl)
throws MalformedURLException
{
return selectProxy(settings, serverUrl, false);
} |
4664478_5 | public static Proxy selectProxy(final Settings settings, final String serverUrl)
throws MalformedURLException
{
return selectProxy(settings, serverUrl, false);
} |
4664478_6 | public String getMessageForAction(final StagingAction action) {
checkNotNull(action);
if (!Strings.isNullOrEmpty(stagingDescription)) {
return stagingDescription;
}
if (stagingDescriptions.containsKey(action)) {
return stagingDescriptions.get(action);
}
return defaultDescription;
} |
4664478_7 | public String getMessageForAction(final StagingAction action) {
checkNotNull(action);
if (!Strings.isNullOrEmpty(stagingDescription)) {
return stagingDescription;
}
if (stagingDescriptions.containsKey(action)) {
return stagingDescriptions.get(action);
}
return defaultDescription;
} |
4664478_8 | public String getMessageForAction(final StagingAction action) {
checkNotNull(action);
if (!Strings.isNullOrEmpty(stagingDescription)) {
return stagingDescription;
}
if (stagingDescriptions.containsKey(action)) {
return stagingDescriptions.get(action);
}
return defaultDescription;
} |
4664478_9 | public void afterProjectsRead(final MavenSession session)
throws MavenExecutionException
{
try {
final int totalModules = session.getProjects().size();
logger.info("Inspecting build with total of " + totalModules + " modules...");
int stagingGoalsFoundInModules = 0;
// check do we need to do anyth... |
4665987_0 | @Override
public DataSource createDataSource(Properties props) throws SQLException {
MysqlDataSource ds = new MysqlDataSource();
setProperties(ds, props);
return ds;
} |
4665987_1 | @SuppressWarnings("rawtypes")
public Dictionary<String, Object> resolve(final Dictionary config) {
Dictionary<String, Object> loadedConfig = new Hashtable<>();
for (Enumeration e = config.keys(); e.hasMoreElements();) {
final String key = (String) e.nextElement();
String value = String.valueOf(c... |
4665987_2 | @SuppressWarnings("rawtypes")
public Dictionary<String, Object> resolve(final Dictionary config) {
Dictionary<String, Object> loadedConfig = new Hashtable<>();
for (Enumeration e = config.keys(); e.hasMoreElements();) {
final String key = (String) e.nextElement();
String value = String.valueOf(c... |
4665987_3 | @SuppressWarnings("rawtypes")
public Dictionary<String, Object> resolve(final Dictionary config) {
Dictionary<String, Object> loadedConfig = new Hashtable<>();
for (Enumeration e = config.keys(); e.hasMoreElements();) {
final String key = (String) e.nextElement();
String value = String.valueOf(c... |
4665987_4 | @SuppressWarnings("rawtypes")
public Dictionary<String, Object> resolve(final Dictionary config) {
Dictionary<String, Object> loadedConfig = new Hashtable<>();
for (Enumeration e = config.keys(); e.hasMoreElements();) {
final String key = (String) e.nextElement();
String value = String.valueOf(c... |
4665987_5 | @Override
public void close() {
if (serviceReg != null) {
serviceReg.unregister();
}
safeClose(dataSource);
} |
4665987_6 | @Override
public void close() {
if (serviceReg != null) {
serviceReg.unregister();
}
safeClose(dataSource);
} |
4665987_7 | public Dictionary<String, Object> decrypt(final Dictionary<String, Object> config) {
if (decryptor == null) {
return config;
}
Dictionary<String, Object> decryptedConfig = new Hashtable<>();
for (Enumeration<String> e = config.keys(); e.hasMoreElements();) {
final String key = e.nextElem... |
4665987_8 | public Dictionary<String, Object> decrypt(final Dictionary<String, Object> config) {
if (decryptor == null) {
return config;
}
Dictionary<String, Object> decryptedConfig = new Hashtable<>();
for (Enumeration<String> e = config.keys(); e.hasMoreElements();) {
final String key = e.nextElem... |
4665987_9 | public Dictionary<String, Object> decrypt(final Dictionary<String, Object> config) {
if (decryptor == null) {
return config;
}
Dictionary<String, Object> decryptedConfig = new Hashtable<>();
for (Enumeration<String> e = config.keys(); e.hasMoreElements();) {
final String key = e.nextElem... |
4668183_0 | @Nonnull
public T get(String id) throws IllegalArgumentException {
T t = map.get(id);
if (t == null) {
throw new IllegalArgumentException("Unknown id <" + id + ">");
}
return t;
} |
4668183_1 | @Nonnull
public T get(String id) throws IllegalArgumentException {
T t = map.get(id);
if (t == null) {
throw new IllegalArgumentException("Unknown id <" + id + ">");
}
return t;
} |
4668183_2 | @Nonnull
public static Module getModuleForModuleNamesString(@Nullable String moduleNames) {
if (moduleNames != null) {
return new ReflectiveModuleInstantiationModule(
Lists.newArrayList(moduleNames.split(",")));
}
// otherwise, no op module
return new AbstractModule() {
@Over... |
4668183_3 | @Nonnull
public static Module getModuleForModuleNamesString(@Nullable String moduleNames) {
if (moduleNames != null) {
return new ReflectiveModuleInstantiationModule(
Lists.newArrayList(moduleNames.split(",")));
}
// otherwise, no op module
return new AbstractModule() {
@Over... |
4668183_4 | @Nonnull
public static Module getModuleForModuleNamesString(@Nullable String moduleNames) {
if (moduleNames != null) {
return new ReflectiveModuleInstantiationModule(
Lists.newArrayList(moduleNames.split(",")));
}
// otherwise, no op module
return new AbstractModule() {
@Over... |
4668183_5 | public synchronized void advertiseAvailability() {
checkInitialized();
logger.info("Advertising availability at <" + listenAddress + ":" + listenPort + ">");
try {
serviceDiscovery.registerService(getServiceInstance());
} catch (Exception e) {
throw new RuntimeException(e);
}
} |
4668183_6 | public synchronized void deAdvertiseAvailability() {
checkInitialized();
logger.info("Deadvertising availability at <" + listenAddress + ":" + listenPort + ">");
try {
serviceDiscovery.unregisterService(getServiceInstance());
} catch (Exception e) {
throw new RuntimeException(e);
}
} |
4673630_0 | public Map<String, LdapContextFactory> getContextFactories() {
if (contextFactories == null) {
// Use linked hash map to preserve order
contextFactories = new LinkedHashMap<>();
String[] serverKeys = settings.getStringArray(LDAP_SERVERS_PROPERTY);
if (serverKeys.length > 0) {
initMultiLdapConfig... |
4673630_1 | public Map<String, LdapContextFactory> getContextFactories() {
if (contextFactories == null) {
// Use linked hash map to preserve order
contextFactories = new LinkedHashMap<>();
String[] serverKeys = settings.getStringArray(LDAP_SERVERS_PROPERTY);
if (serverKeys.length > 0) {
initMultiLdapConfig... |
4673630_2 | public Map<String, LdapContextFactory> getContextFactories() {
if (contextFactories == null) {
// Use linked hash map to preserve order
contextFactories = new LinkedHashMap<>();
String[] serverKeys = settings.getStringArray(LDAP_SERVERS_PROPERTY);
if (serverKeys.length > 0) {
initMultiLdapConfig... |
4673630_3 | public Map<String, LdapContextFactory> getContextFactories() {
if (contextFactories == null) {
// Use linked hash map to preserve order
contextFactories = new LinkedHashMap<>();
String[] serverKeys = settings.getStringArray(LDAP_SERVERS_PROPERTY);
if (serverKeys.length > 0) {
initMultiLdapConfig... |
4673630_4 | public Map<String, LdapContextFactory> getContextFactories() {
if (contextFactories == null) {
// Use linked hash map to preserve order
contextFactories = new LinkedHashMap<>();
String[] serverKeys = settings.getStringArray(LDAP_SERVERS_PROPERTY);
if (serverKeys.length > 0) {
initMultiLdapConfig... |
4673630_5 | public Map<String, LdapContextFactory> getContextFactories() {
if (contextFactories == null) {
// Use linked hash map to preserve order
contextFactories = new LinkedHashMap<>();
String[] serverKeys = settings.getStringArray(LDAP_SERVERS_PROPERTY);
if (serverKeys.length > 0) {
initMultiLdapConfig... |
4673630_6 | public Map<String, LdapUserMapping> getUserMappings() {
if (userMappings == null) {
// Use linked hash map to preserve order
userMappings = new LinkedHashMap<>();
String[] serverKeys = settings.getStringArray(LDAP_SERVERS_PROPERTY);
if (serverKeys.length > 0) {
for (String serverKey : serverKeys... |
4673630_7 | public Map<String, LdapGroupMapping> getGroupMappings() {
if (groupMappings == null) {
// Use linked hash map to preserve order
groupMappings = new LinkedHashMap<>();
String[] serverKeys = settings.getStringArray(LDAP_SERVERS_PROPERTY);
if (serverKeys.length > 0) {
for (String serverKey : server... |
4673630_8 | public Map<String, LdapContextFactory> getContextFactories() {
if (contextFactories == null) {
// Use linked hash map to preserve order
contextFactories = new LinkedHashMap<>();
String[] serverKeys = settings.getStringArray(LDAP_SERVERS_PROPERTY);
if (serverKeys.length > 0) {
initMultiLdapConfig... |
4673630_9 | public String getRequest() {
return request;
} |
4676768_0 | public static OtaBuildHtmlGenerator getInstance() {
return getInstance(null);
} |
4676768_1 | public static OtaBuildHtmlGenerator getInstance() {
return getInstance(null);
} |
4676768_2 | public static OtaBuildHtmlGenerator getInstance() {
return getInstance(null);
} |
4676768_3 | public static OtaBuildHtmlGenerator getInstance() {
return getInstance(null);
} |
4676768_4 | public static OtaBuildHtmlGenerator getInstance() {
return getInstance(null);
} |
4676768_5 | public static OtaBuildHtmlGenerator getInstance() {
return getInstance(null);
} |
4676768_6 | public static OtaBuildHtmlGenerator getInstance() {
return getInstance(null);
} |
4676768_7 | public static OtaBuildHtmlGenerator getInstance() {
return getInstance(null);
} |
4676768_8 | public static OtaBuildHtmlGenerator getInstance() {
return getInstance(null);
} |
4676768_9 | public static OtaHtmlGenerator getInstance()
{
return getInstance(null);
} |
4678495_0 | public static List<Range> parse(String rangeSpec)
throws IllegalArgumentException {
if (rangeSpec.length() == 0) {
return Collections.emptyList();
}
List<Range> ranges = new ArrayList<Range>();
String[] specs = rangeSpec.split(",");
for (String spec : specs) {
String[] split = spec.split("-");
... |
4678495_1 | public static List<Range> parse(String rangeSpec)
throws IllegalArgumentException {
if (rangeSpec.length() == 0) {
return Collections.emptyList();
}
List<Range> ranges = new ArrayList<Range>();
String[] specs = rangeSpec.split(",");
for (String spec : specs) {
String[] split = spec.split("-");
... |
4678495_2 | public static List<Range> parse(String rangeSpec)
throws IllegalArgumentException {
if (rangeSpec.length() == 0) {
return Collections.emptyList();
}
List<Range> ranges = new ArrayList<Range>();
String[] specs = rangeSpec.split(",");
for (String spec : specs) {
String[] split = spec.split("-");
... |
4678495_3 | public static List<Range> parse(String rangeSpec)
throws IllegalArgumentException {
if (rangeSpec.length() == 0) {
return Collections.emptyList();
}
List<Range> ranges = new ArrayList<Range>();
String[] specs = rangeSpec.split(",");
for (String spec : specs) {
String[] split = spec.split("-");
... |
4678495_4 | @Override
public Boolean exec(Tuple tuple) throws IOException {
if (tuple == null || tuple.size() == 0) {
return false;
}
try {
Object object = tuple.get(0);
if (object == null) {
return false;
}
int i = (Integer) object;
return i == 0 || i == 1 || i == 4 || i == 5 || i == 9;
} cat... |
4678495_5 | @Override
public Boolean exec(Tuple tuple) throws IOException {
if (tuple == null || tuple.size() == 0) {
return false;
}
try {
Object object = tuple.get(0);
if (object == null) {
return false;
}
int i = (Integer) object;
return i == 0 || i == 1 || i == 4 || i == 5 || i == 9;
} cat... |
4678495_6 | @Override
public Boolean exec(Tuple tuple) throws IOException {
if (tuple == null || tuple.size() == 0) {
return false;
}
try {
Object object = tuple.get(0);
if (object == null) {
return false;
}
int i = (Integer) object;
return i == 0 || i == 1 || i == 4 || i == 5 || i == 9;
} cat... |
4678495_7 | @Override
public Boolean exec(Tuple tuple) throws IOException {
if (tuple == null || tuple.size() == 0) {
return false;
}
try {
Object object = tuple.get(0);
if (object == null) {
return false;
}
int i = (Integer) object;
return i == 0 || i == 1 || i == 4 || i == 5 || i == 9;
} cat... |
4678495_8 | @Override
public Boolean exec(Tuple tuple) throws IOException {
if (tuple == null || tuple.size() == 0) {
return false;
}
try {
Object object = tuple.get(0);
if (object == null) {
return false;
}
int i = (Integer) object;
return i == 0 || i == 1 || i == 4 || i == 5 || i == 9;
} cat... |
4678495_9 | public static void main(String[] args) throws Exception {
String uri = args[0];
Configuration conf = new Configuration();
FileSystem fs = FileSystem.get(URI.create(uri), conf);
Path inputPath = new Path(uri);
CompressionCodecFactory factory = new CompressionCodecFactory(conf);
CompressionCodec codec = fa... |
4685138_0 | public void greet() {
System.out.println("Hello, I am Java!");
new HelloClojure().hello("Java");
new HelloFrege().hello("Java");
new HelloGosu().hello("Java");
new HelloGroovy().hello("Java");
new HelloJava().hello("Java");
new HelloKotlin().hello("Java");
new HelloPython().hello("Java");
new HelloRuby().hello... |
4694994_0 | boolean syncAccounts(OpacClient app, AccountDataSource data, SharedPreferences sp,
ReminderHelper helper) {
boolean failed = false;
List<Account> accounts = data.getAccountsWithPassword();
if (!sp.contains("update_151_clear_cache")) {
data.invalidateCachedData();
sp.edit().putBoolean... |
4694994_1 | public void generateAlarms() {
generateAlarms(-1, null);
} |
4694994_2 | public void generateAlarms() {
generateAlarms(-1, null);
} |
4694994_3 | public void generateAlarms() {
generateAlarms(-1, null);
} |
4694994_4 | public void generateAlarms() {
generateAlarms(-1, null);
} |
4694994_5 | public void generateAlarms() {
generateAlarms(-1, null);
} |
4694994_6 | public void generateAlarms() {
generateAlarms(-1, null);
} |
4694994_7 | static int parseTotalResults(final String navigation) {
final Matcher matcher = Pattern.compile("(von|of) (\\d+)|(\\d+) sonu\\u00e7tan")
.matcher(navigation);
if (matcher.find()) {
final String num1 = matcher.group(2);
return Integer.parseInt(num1 != null ? num1 : matcher.group(3));
... |
4694994_8 | static LocalDate parseCopyReturn(String str) {
if (str == null)
return null;
DateTimeFormatter fmt =
DateTimeFormat.forPattern("dd.MM.yyyy").withLocale(Locale.GERMAN);
final Matcher matcher = Pattern.compile("[0-9.-]{4,}").matcher(str);
if (matcher.find()) {
return fmt.parseL... |
4694994_9 | <I extends AccountItem> void loadPages(List<I> media, Document doc,
ParseAccountListFunction<I> func) throws IOException {
HashSet<Integer> pagesLoaded = new HashSet<>();
pagesLoaded.add(1);
loadPages(media, doc, pagesLoaded, func);
} |
4695543_0 | public static String toTableName(String className) {
return camelCaseToLowerUnderscore(className);
} |
4695543_1 | public static String camelCaseToLowerUnderscore(String s) {
if (s.toUpperCase().equals(s) && isLettersAndDigits(s)) {
return s.toLowerCase();
}
StringBuilder b = new StringBuilder();
b.append(s.charAt(0));
boolean underscoreAdded = false;
boolean lastCharacterUppercase = false;
for (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.