blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2 values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 131 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 9.45M | extension stringclasses 32 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 313 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e5eb5a73a178bf6c6d56ba7f638db81306dfd95 | 3269b7644bcb303d40d70f76fc795e1a227c2a64 | /SwingDrop.java | 715ab7019bd8340c9056fdaf505c1ba992163d81 | [] | no_license | anchitgupt/java_program | 2ee975850b59ab33acd4d00610e352d2c08dcb1e | a0f3a28ea0e955a81d7b9a49659d8b0a9ea88f3f | refs/heads/master | 2020-07-19T10:31:19.439134 | 2016-09-11T04:33:54 | 2016-09-11T04:33:54 | 67,910,127 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 242 | java | import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class SwingDrop extends JFrame implements ActionListener
{
SwingDrop()
{
}
}
public void actionPerformed(ActionEvent ae)
{
}
public static void main(String[] args) {
} | [
"noreply@github.com"
] | anchitgupt.noreply@github.com |
6a0fac4647100b2c37bff667821ecb27f395d9ed | d7c5121237c705b5847e374974b39f47fae13e10 | /airspan.netspan/src/main/java/Netspan/NBI_16_5/Lte/Lte3RdPartyDeleteResponse.java | 88b6db5366f556aea8de81092602f4af15ce5e44 | [] | no_license | AirspanNetworks/SWITModules | 8ae768e0b864fa57dcb17168d015f6585d4455aa | 7089a4b6456621a3abd601cc4592d4b52a948b57 | refs/heads/master | 2022-11-24T11:20:29.041478 | 2020-08-09T07:20:03 | 2020-08-09T07:20:03 | 184,545,627 | 1 | 0 | null | 2022-11-16T12:35:12 | 2019-05-02T08:21:55 | Java | UTF-8 | Java | false | false | 1,830 | java |
package Netspan.NBI_16_5.Lte;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Lte3rdPartyDeleteResult" type="{http://Airspan.Netspan.WebServices}Lte3rdPartyResponse" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"lte3RdPartyDeleteResult"
})
@XmlRootElement(name = "Lte3rdPartyDeleteResponse")
public class Lte3RdPartyDeleteResponse {
@XmlElement(name = "Lte3rdPartyDeleteResult")
protected Lte3RdPartyResponse lte3RdPartyDeleteResult;
/**
* Gets the value of the lte3RdPartyDeleteResult property.
*
* @return
* possible object is
* {@link Lte3RdPartyResponse }
*
*/
public Lte3RdPartyResponse getLte3RdPartyDeleteResult() {
return lte3RdPartyDeleteResult;
}
/**
* Sets the value of the lte3RdPartyDeleteResult property.
*
* @param value
* allowed object is
* {@link Lte3RdPartyResponse }
*
*/
public void setLte3RdPartyDeleteResult(Lte3RdPartyResponse value) {
this.lte3RdPartyDeleteResult = value;
}
}
| [
"ggrunwald@ASIL-GGRUNWALD.airspan.com"
] | ggrunwald@ASIL-GGRUNWALD.airspan.com |
9a624dfb1e9f60628243db5ff7d28289b438467f | 02a787f7a1315faa4c6ffcf3cbbac5a5f3325388 | /src/main/java/com/fshows/sdk/ele/api/request/ElemeQueryCancelPriceRequest.java | 37c661d0fbfbaa92e38c3dad99db74db2c73c3f8 | [
"Apache-2.0"
] | permissive | wangjianguan/eleme-open-sdk | 1099327bd0d59245c11428b1ff4402ba810eeb43 | 3602051aae4d90569dbfa9b3f1c6cb1ee1530319 | refs/heads/master | 2023-06-16T21:51:11.829576 | 2021-07-15T05:34:40 | 2021-07-15T05:34:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,302 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.fshows.sdk.ele.api.request;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.fshows.sdk.ele.api.ElemeRequest;
import com.fshows.sdk.ele.api.config.ElemeApiUrlConstant;
import com.fshows.sdk.ele.api.response.ElemeQueryCancelPriceResponse;
import lombok.Data;
/**
* 订单预取消接口-入参
*
* @author CoderMa
* @version ElemeQueryCancelPriceRequest.java, v 0.1 2020-04-03 14:25 CoderMa
*/
@Data
public class ElemeQueryCancelPriceRequest extends BaseRequest implements ElemeRequest<ElemeQueryCancelPriceResponse> {
/**
* 蜂鸟这边的订单号
*/
@JSONField(name = "order_no")
private String orderNo;
/**
* 需要先调用getOrderDetail接口拿到这个字段
*/
@JSONField(name = "order_status")
private Integer orderStatus;
/**
* 先调用getOrderDetail接口拿到这个字段
*/
@JSONField(name = "order_reason_code")
private Integer orderReasonCode;
/**
* 用户id
*/
@JSONField(name = "user_id")
private String userId;
/**
* appid
*/
private String appid;
@Override
public String getApiMethodName() {
return ElemeApiUrlConstant.GET_CANCEL_PRICE;
}
@Override
public String getBusinessParam() {
return JSON.toJSONString(this);
}
@Override
public Class<ElemeQueryCancelPriceResponse> getResponseClass() {
return ElemeQueryCancelPriceResponse.class;
}
} | [
"mawm@fshows.com"
] | mawm@fshows.com |
b0e1cdb33af32c51aec07b4fbf8d8cbacad409d5 | 7204c91d6488a40ef9b85dd82334ceb9cb5dc9d8 | /src/main/java/wanzhi/gulu/community/dto/SmsResponse.java | 20d39fc1fe3869bc460f15f41bed8a8be90e18cc | [] | no_license | ZhangHNan/gulu | 29b061419891acddc86f0e82296375aa6bd08712 | 40b27ba46628dac0f94934ff1cf063c3d974fb1a | refs/heads/master | 2022-07-03T05:20:32.154727 | 2020-04-22T11:22:20 | 2020-04-22T11:22:20 | 249,468,309 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 201 | java | package wanzhi.gulu.community.dto;
import lombok.Data;
@Data
public class SmsResponse {
private String Message;
private String RequestId;
private String BizId;
private String Code;
}
| [
"a2857327284@163.com"
] | a2857327284@163.com |
42e75dc704ba45f7d45944915a67fdecfa01b578 | 75b387ac75a8ee256fd14d9aa19d33cc1d77dfc6 | /main/boteco-domain/src/test/java/tools/devnull/boteco/domain/predicates/ExpressionCommandExtractorTest.java | 48f168a2647dff542c3bb4013c5fdffab14c8347 | [
"MIT"
] | permissive | rimolive/boteco | 3617f60fca27ef1bcd2c2bbe20a2dc091ee3d50f | 7aece0b43acf72f470e9a68a1617f10ab44bfccd | refs/heads/master | 2021-01-21T04:03:15.745745 | 2016-03-04T19:19:51 | 2016-03-04T19:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,425 | java | /*
* The MIT License
*
* Copyright (c) 2016 Marcelo "Ataxexe" Guimarães <ataxexe@devnull.tools>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package tools.devnull.boteco.domain.predicates;
import org.junit.Before;
import org.junit.Test;
import tools.devnull.boteco.domain.Command;
import tools.devnull.boteco.domain.CommandExtractor;
import tools.devnull.boteco.domain.extractors.ExpressionCommandExtractor;
import tools.devnull.kodo.TestScenario;
import java.util.List;
import java.util.function.Function;
import java.util.function.Predicate;
import static tools.devnull.kodo.Spec.EMPTY;
import static tools.devnull.kodo.Spec.be;
import static tools.devnull.kodo.Spec.should;
public class ExpressionCommandExtractorTest {
private CommandExtractor extractor;
private Command command;
@Before
public void initialize() {
extractor = new ExpressionCommandExtractor("^command\\s");
command = extractor.extract("command foo arg0 arg1");
}
@Test
public void testCheck() {
TestScenario.given(extractor)
.it(should(accept("command foo")))
.it(should(reject("not a command foo")));
}
@Test
public void testExtraction() {
TestScenario.given(extractor.extract("command foo"))
.the(name, should(be("foo")))
.the(args, should(be(EMPTY)));
TestScenario.given(extractor.extract("command bar"))
.the(name, should(be("bar")))
.the(args, should(be(EMPTY)));
TestScenario.given(command)
.the(name, should(be("foo")))
.the(arg, should(be("arg0 arg1")));
}
@Test
public void testArgumentList() {
TestScenario.given(command.args())
.the(List::size, should(be(2)))
.the(item(0), should(be("arg0")))
.the(item(1), should(be("arg1")));
}
private Function<Command, String> name = command -> command.name();
private Function<Command, List<String>> args = command -> command.args();
private Function<Command, String> arg = command -> command.arg();
private Function<List<String>, Object> item(int index) {
return l -> l.get(index);
}
private Predicate<CommandExtractor> accept(String string) {
return commandExtractor -> commandExtractor.isCommand(string);
}
private Predicate<CommandExtractor> reject(String string) {
return accept(string).negate();
}
}
| [
"ataxexe@devnull.tools"
] | ataxexe@devnull.tools |
246b84779bccac9bbb86bd8c1121c037fb9d3dfa | 1e057f635f99647e6c75a43d9bd5ad8733c46106 | /src/main/java/com/ithinksky/petterns/a03structural/t05bridge/d01/Driver.java | 5f40980251e24f87592afec384873220bbf373be | [
"MIT"
] | permissive | duanshaowei/java-patterns | 8e8682fb1272a6d1fe6ebc415c4f8c3cc83fedf1 | 9f6c7ba23655999895f39a64a8fb83e88f71112e | refs/heads/master | 2022-11-13T06:31:51.210063 | 2020-07-02T18:51:05 | 2020-07-02T18:51:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 143 | java | package com.ithinksky.petterns.a03structural.t05bridge.d01;
/**
* @author tengpeng.gao
*/
public interface Driver {
void executeSQL();
}
| [
"tengpeng.gao@gmail.com"
] | tengpeng.gao@gmail.com |
eef9697c18a39a56e98131a1cfdc2a0313b92946 | 67e2fc52ca6e0f5c9e73f7e41fa2c86e283f28fc | /android/app/src/debug/java/com/bubblepay/ReactNativeFlipper.java | 34b71e977e58bcac3f5f59bf0ac118542cd7b0a0 | [] | no_license | adooylabs/BubblePay | 41d8ee5a036cb63cafb3bba63f62bcc1ad13a9a4 | a58229a3edb3395e67f328ef36dd5477f7495d65 | refs/heads/master | 2022-12-05T18:22:14.582387 | 2020-07-23T12:40:35 | 2020-08-23T02:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,264 | java | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.bubblepay;
import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
import com.facebook.flipper.android.utils.FlipperUtils;
import com.facebook.flipper.core.FlipperClient;
import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
import com.facebook.flipper.plugins.inspector.DescriptorMapping;
import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.modules.network.NetworkingModule;
import okhttp3.OkHttpClient;
public class ReactNativeFlipper {
public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
if (FlipperUtils.shouldEnableFlipper(context)) {
final FlipperClient client = AndroidFlipperClient.getInstance(context);
client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
client.addPlugin(new ReactFlipperPlugin());
client.addPlugin(new DatabasesFlipperPlugin(context));
client.addPlugin(new SharedPreferencesFlipperPlugin(context));
client.addPlugin(CrashReporterPlugin.getInstance());
NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
NetworkingModule.setCustomClientBuilder(
new NetworkingModule.CustomClientBuilder() {
@Override
public void apply(OkHttpClient.Builder builder) {
builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
}
});
client.addPlugin(networkFlipperPlugin);
client.start();
// Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
// Hence we run if after all native modules have been initialized
ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
if (reactContext == null) {
reactInstanceManager.addReactInstanceEventListener(
new ReactInstanceManager.ReactInstanceEventListener() {
@Override
public void onReactContextInitialized(ReactContext reactContext) {
reactInstanceManager.removeReactInstanceEventListener(this);
reactContext.runOnNativeModulesQueueThread(
new Runnable() {
@Override
public void run() {
client.addPlugin(new FrescoFlipperPlugin());
}
});
}
});
} else {
client.addPlugin(new FrescoFlipperPlugin());
}
}
}
}
| [
"ifsnow@gmail.com"
] | ifsnow@gmail.com |
1c01f28a7c6a222024f4fdbaaf3655a1e6976ed4 | ca0d223f5b1847486c890c2af7c400e50e5992a2 | /src/main/java/com/example/springboot/dao/AppVersionDao.java | 356c7239ec2198c42b7540297077ba3b35819813 | [] | no_license | Wen-jh/netctoss | 1fb7acbd37a66deef147bc2faf3401e9ad24c060 | b8fe86ac6f157e815a5734fd8d4bd21e6407375e | refs/heads/master | 2023-01-03T18:07:23.088914 | 2020-10-09T02:08:36 | 2020-10-09T02:08:36 | 302,246,354 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 421 | java | package com.example.springboot.dao;
import com.example.springboot.entity.AppVersion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.Repository;
import java.util.List;
public interface AppVersionDao extends Repository<AppVersion,Long> {
List<AppVersion> findByAppExplainLike(String appExplain);
}
| [
"904137251@qq.com"
] | 904137251@qq.com |
ab51ca99f5bd66774852470ee41d2c7dc889870b | f9a43f2f0ba9b6f27c02e5d2b3010d50462c4c71 | /src/java/filters/EventFilter.java | 4aed4e4d4446124e27c7b4594067676fb4658bb4 | [] | no_license | SimonGrad/HotelManagementSystem | a2703ee053b591907697ebe17105ade86f85b493 | 5f85fbcd12abe81f9c9b59418777bdef4ae1fdc0 | refs/heads/master | 2023-03-19T02:44:45.036211 | 2019-01-09T12:53:10 | 2019-01-09T12:53:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,125 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package filters;
import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
*
* @author Another User
*/
public class EventFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
try {
HttpServletRequest reqt = (HttpServletRequest) request;
HttpServletResponse resp = (HttpServletResponse) response;
HttpSession ses = reqt.getSession(false);
String reqURI = reqt.getRequestURI();
if ((ses != null && ses.getAttribute("urole") != null && !ses.getAttribute("urole").equals("") )){
if(ses.getAttribute("urole").equals("Admin")){
resp.sendRedirect(reqt.getContextPath() + "/admin/welcome.xhtml");
}else if(ses.getAttribute("urole").equals("Manager")){
resp.sendRedirect(reqt.getContextPath() + "/roommanager/welcome.xhtml");
}else{
chain.doFilter(request, response);
}
}
else{
resp.sendRedirect(reqt.getContextPath() + "/login");
}
} catch (Exception e) {
}
}
@Override
public void destroy() {
}
}
| [
"Another User@DESKTOP-UVSNIIH"
] | Another User@DESKTOP-UVSNIIH |
ba3481af6e878ddcddb0d8336949fab66e5c0f66 | 76253f1d285d39338ec7339d0bedf8035b06e292 | /src/main/java/com/jt/msg/bean/Comment.java | a6c6cc20ee3c926fa41ffd6863b758fff39f92b3 | [
"Apache-2.0"
] | permissive | jt120/msg-jsp | 7a7c209f7c22b7c9e4bc9424f2b5c5720f3a1af7 | 32ede22471b7eaa1dd43ea79a4f71739bac02d25 | refs/heads/master | 2016-09-06T16:06:30.165939 | 2015-04-30T13:08:33 | 2015-04-30T13:08:33 | 34,665,682 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,169 | java | package com.jt.msg.bean;
import java.util.Date;
/**
* since 2015/4/30.
*/
public class Comment {
private int id;
private int userId;
private int msgId;
//0正常, 1被屏蔽
private int status;
private String content;
private Date createTime;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
public int getMsgId() {
return msgId;
}
public void setMsgId(int msgId) {
this.msgId = msgId;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}
| [
"jt120lz@gmail.com"
] | jt120lz@gmail.com |
6abebb2b1ff5ca4677bc7fd495c0cb0edad59a79 | 37c73ea47a20e7ad56d1c3063d726827e8fba849 | /presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadataUpdaterProvider.java | 5ce8ddc9f72e68408b204c7687c797b85ce5ed93 | [
"Apache-2.0"
] | permissive | prestodb/presto | 29c7e685d0b99e41bfe72e2a8802ff1614c948bc | 417d3219eee9ac4c4d44f70f43ee432229763406 | refs/heads/master | 2023-09-04T12:50:07.573970 | 2023-09-02T06:31:43 | 2023-09-02T15:25:53 | 5,349,565 | 11,721 | 4,470 | Apache-2.0 | 2023-09-14T21:54:16 | 2012-08-09T01:03:37 | Java | UTF-8 | Java | false | false | 1,920 | java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.facebook.presto.hive;
import com.facebook.airlift.concurrent.BoundedExecutor;
import com.facebook.presto.spi.connector.ConnectorMetadataUpdater;
import com.facebook.presto.spi.connector.ConnectorMetadataUpdaterProvider;
import javax.annotation.PreDestroy;
import javax.inject.Inject;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import static java.util.Objects.requireNonNull;
public class HiveMetadataUpdaterProvider
implements ConnectorMetadataUpdaterProvider
{
private final ExecutorService executorService;
private final Executor boundedExecutor;
@Inject
public HiveMetadataUpdaterProvider(
@ForUpdatingHiveMetadata ExecutorService executorService,
HiveClientConfig hiveClientConfig)
{
this.executorService = requireNonNull(executorService, "executorService is null");
int maxMetadataUpdaterThreads = requireNonNull(hiveClientConfig, "hiveClientConfig is null").getMaxMetadataUpdaterThreads();
this.boundedExecutor = new BoundedExecutor(executorService, maxMetadataUpdaterThreads);
}
@Override
public ConnectorMetadataUpdater getMetadataUpdater()
{
return new HiveMetadataUpdater(boundedExecutor);
}
@PreDestroy
public void stop()
{
executorService.shutdownNow();
}
}
| [
"jamessun@fb.com"
] | jamessun@fb.com |
0222466dfca32331491c534b9a579c72de43743f | fa51687f6aa32d57a9f5f4efc6dcfda2806f244d | /jdk8-src/src/main/java/org/w3c/dom/css/DOMImplementationCSS.java | d9238595642c3b0ffaa92022c1d360a98e5d935b | [] | no_license | yida-lxw/jdk8 | 44bad6ccd2d81099bea11433c8f2a0fc2e589eaa | 9f69e5f33eb5ab32e385301b210db1e49e919aac | refs/heads/master | 2022-12-29T23:56:32.001512 | 2020-04-27T04:14:10 | 2020-04-27T04:14:10 | 258,988,898 | 0 | 1 | null | 2020-10-13T21:32:05 | 2020-04-26T09:21:22 | Java | UTF-8 | Java | false | false | 1,882 | java | /*
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
/*
*
*
*
*
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE.
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
*/
package org.w3c.dom.css;
import org.w3c.dom.DOMException;
import org.w3c.dom.DOMImplementation;
/**
* This interface allows the DOM user to create a <code>CSSStyleSheet</code>
* outside the context of a document. There is no way to associate the new
* <code>CSSStyleSheet</code> with a document in DOM Level 2.
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
*
* @since DOM Level 2
*/
public interface DOMImplementationCSS extends DOMImplementation {
/**
* Creates a new <code>CSSStyleSheet</code>.
*
* @param title The advisory title. See also the section.
* @param media The comma-separated list of media associated with the
* new style sheet. See also the section.
* @return A new CSS style sheet.
* @throws DOMException SYNTAX_ERR: Raised if the specified media string value has a syntax
* error and is unparsable.
*/
public CSSStyleSheet createCSSStyleSheet(String title,
String media)
throws DOMException;
}
| [
"yida@caibeike.com"
] | yida@caibeike.com |
36f9ba51790c68eb0992bf5245bdee3684368d84 | 6a54edde95c6438e74cbd13c553f1b1767d21da4 | /app/src/androidTest/java/com/example/retrofit_naver_test/ExampleInstrumentedTest.java | 59eabca0ca7c8a5504f070c63a1c10537fdeca5a | [] | no_license | wootaeng/retrofit_naver_test | 7d2c46f5521b1e9fb882c9995cde2f0ea2c0ef22 | aedee597169a430e0c3fac040a7e37268b6398fd | refs/heads/master | 2023-08-20T06:55:21.374426 | 2021-10-15T09:48:32 | 2021-10-15T09:48:32 | 417,440,984 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 776 | java | package com.example.retrofit_naver_test;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.retrofit_naver_test", appContext.getPackageName());
}
} | [
"karufuci@gmail.com"
] | karufuci@gmail.com |
2294fa245f5fa1db0ddd8016c07737367b82bd22 | e49ddf6e23535806c59ea175b2f7aa4f1fb7b585 | /tags/release-4.1.2/mipav/src/gov/nih/mipav/view/renderer/WildMagic/Render/VolumeClipEffect.java | cc45778f714b4c154b371c2a6fcf4c0bca615c66 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | svn2github/mipav | ebf07acb6096dff8c7eb4714cdfb7ba1dcace76f | eb76cf7dc633d10f92a62a595e4ba12a5023d922 | refs/heads/master | 2023-09-03T12:21:28.568695 | 2019-01-18T23:13:53 | 2019-01-18T23:13:53 | 130,295,718 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,825 | java | package gov.nih.mipav.view.renderer.WildMagic.Render;
import WildMagic.LibGraphics.Shaders.*;
import WildMagic.LibGraphics.Effects.*;
public abstract class VolumeClipEffect extends ShaderEffect
{
/** Axis-aligned clip plane shader paramter names: */
private final static String[] m_akClip =
new String[]{ "clipXInv", "clipX", "clipYInv", "clipY", "clipZInv", "clipZ" };
public void dispose()
{
m_aafClipData = null;
m_afClipEyeData = null;
m_afClipEyeInvData = null;
m_afClipArbData = null;
}
public void OnLoadPrograms (int iPass, Program pkVProgram, Program pkPProgram)
{
InitClip();
}
/**
* Init the axis-aligned clip planes.
* @param afData, the axis-aligned clip plane default positions.
*/
public void InitClip( )
{
Program pkProgram = GetPProgram(0);
if ( pkProgram.GetUC("DoClip") != null )
{
pkProgram.GetUC("DoClip").SetDataSource(m_afDoClip);
}
for ( int i = 0; i < 6; i++ )
{
if ( pkProgram.GetUC(m_akClip[i]) != null )
{
pkProgram.GetUC(m_akClip[i]).SetDataSource(m_aafClipData[i]);
}
}
}
/**
* Reset the axis-aligned clip planes, eye, inverse-eye and arbitrary clip
* planes to neutral.
*/
public void ResetClip()
{
for ( int i = 0; i < 6; i++ )
{
if ( m_aafClipData[i] != null )
{
SetClip( i, m_aafClipData[i][0] );
}
}
if ( m_afClipEyeData != null )
{
SetClipEye(m_afClipEyeData);
}
if ( m_afClipEyeInvData != null )
{
SetClipEyeInv(m_afClipEyeInvData);
}
if ( m_afClipArbData != null )
{
SetClipArb(m_afClipArbData);
}
}
/**
* Enable and set the axis-aligned clip plane.
* @param iWhich, one of 6 clip-planes to set.
* @param data, the distance to the clip-plane.
*/
public void SetClip(int iWhich, float data)
{
m_aafClipData[iWhich][0] = data;
EnableClip();
Program pkProgram = GetPProgram(0);
if ( pkProgram.GetUC(m_akClip[iWhich]) != null )
{
pkProgram.GetUC(m_akClip[iWhich]).SetDataSource(m_aafClipData[iWhich]);
}
}
/**
* Enable and set the axis-aligned clip plane.
* @param iWhich, one of 6 clip-planes to set.
* @param data, the distance to the clip-plane.
*/
public void SetSecondaryClip(int iWhich, float data)
{
m_aafClipData[iWhich][1] = data;
Program pkProgram = GetPProgram(0);
if ( pkProgram.GetUC(m_akClip[iWhich]) != null )
{
pkProgram.GetUC(m_akClip[iWhich]).SetDataSource(m_aafClipData[iWhich]);
}
}
/**
* Enable clipping.
*/
private void EnableClip()
{
m_afDoClip[0] = 1;
Program pkProgram = GetPProgram(0);
if ( pkProgram.GetUC("DoClip") != null )
{
pkProgram.GetUC("DoClip").SetDataSource(m_afDoClip);
}
}
/**
* Enable clipping.
*/
public void EnableSecondaryClip(boolean bEnable)
{
m_afDoClip[1] = (bEnable) ? 1 : 0;
Program pkProgram = GetPProgram(0);
if ( pkProgram.GetUC("DoClip") != null )
{
pkProgram.GetUC("DoClip").SetDataSource(m_afDoClip);
}
}
/**
* Enable and set the eye clip plane.
* @param afEquation, the clip-plane equation.
*/
public void SetClipEye(float[] afEquation)
{
m_afClipEyeData = afEquation;
EnableClip();
Program pkProgram = GetPProgram(0);
if ( pkProgram.GetUC("clipEye") != null )
{
pkProgram.GetUC("clipEye").SetDataSource(afEquation);
}
}
/**
* Enable and set the inverse-eye clip plane.
* @param afEquation, the clip-plane equation.
*/
public void SetClipEyeInv(float[] afEquation)
{
m_afClipEyeInvData = afEquation;
EnableClip();
Program pkProgram = GetPProgram(0);
if ( pkProgram.GetUC("clipEyeInv") != null )
{
pkProgram.GetUC("clipEyeInv").SetDataSource(afEquation);
}
}
/**
* Enable and set the arbitrary clip plane.
* @param afEquation, the clip-plane equation.
*/
public void SetClipArb(float[] afEquation)
{
m_afClipArbData = afEquation;
EnableClip();
Program pkProgram = GetPProgram(0);
if ( pkProgram.GetUC("clipArb") != null )
{
pkProgram.GetUC("clipArb").SetDataSource(afEquation);
}
}
private float[] m_afDoClip = { 0, 0, 0, 0 };
/** stores the axis-aligned clip plane information: */
private float[][] m_aafClipData = { { 0, 0, 0, 0 },
{ 1, 1, 0, 0 },
{ 0, 0, 0, 0 },
{ 1, 1, 0, 0 },
{ 0, 0, 0, 0 },
{ 1, 1, 0, 0 } };
/** stores the eye clip plane information: */
private float[] m_afClipEyeData = null;
/** stores the inverse-eye clip plane information: */
private float[] m_afClipEyeInvData = null;
/** stores the arbitrary clip plane information: */
private float[] m_afClipArbData = null;
}
| [
"NIH\\mccreedy@ba61647d-9d00-f842-95cd-605cb4296b96"
] | NIH\mccreedy@ba61647d-9d00-f842-95cd-605cb4296b96 |
4a57e8dfbcb5251639590a3b8d2bccc6b26dcf67 | 509131ba1d9487c9f7dd274a39f8f38f7aafe60b | /src/main/java/com/jack/result/SuccessResult.java | c8f8317237feb003b59e63a8f21f142d89cec48f | [] | no_license | ScorpionTeam/server-good-a | fe40f4bf3f50e555848d33c829f75a4ef5d48502 | 89a3daa8fb0a036b8fc2743abe25722b1fe05bca | refs/heads/master | 2021-08-31T04:27:35.838188 | 2017-12-20T10:44:58 | 2017-12-20T10:44:58 | 114,834,892 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 558 | java | package com.jack.result;
/**
* Created on 2017/9/16.
*/
public class SuccessResult extends BaseResult {
private Object data;
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
public SuccessResult(Object object) {
this();
this.data = object;
}
public SuccessResult() {
super(SUCCESS);
}
@Override
public String toString() {
return "SuccessResult{" +
"data=" + data +
'}';
}
}
| [
"1062789415@qq.com"
] | 1062789415@qq.com |
8d246e7cfd04d358a65663bb810508a4f646e79b | 5a44742c1654b6f16be11d1d6e122ee12e869534 | /picture_library/src/main/java/com/luck/picture/lib/config/PictureSelectionConfig.java | d79b46a082aafe12de4b45027ef7492159e125f2 | [] | no_license | weijiaqi/YipinWhenFreshMerchants | 6e403c5b830404874f0ee5af55b3fd8d98ff3f9b | 43e9288bff99c008ac0e16556d1d712211a864ae | refs/heads/master | 2022-12-08T05:34:26.221286 | 2020-08-26T15:38:30 | 2020-08-26T15:38:30 | 290,534,917 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,965 | java | package com.luck.picture.lib.config;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.StyleRes;
import com.luck.picture.lib.R;
import com.luck.picture.lib.entity.LocalMedia;
import com.luck.picture.lib.tools.PictureFileUtils;
import java.util.ArrayList;
import java.util.List;
/**
* author:luck
* project:PictureSelector
* package:com.luck.picture.lib.config
* email:893855882@qq.com
* data:2017/5/24
*/
public final class PictureSelectionConfig implements Parcelable {
public int mimeType;
public boolean camera;
public String outputCameraPath;
public String compressSavePath;
public String suffixType;
@StyleRes
public int themeStyleId;
public int selectionMode;
public int maxSelectNum;
public int minSelectNum;
public int videoQuality;
public int cropCompressQuality;
public int videoMaxSecond;
public int videoMinSecond;
public int recordVideoSecond;
public int minimumCompressSize;
public int imageSpanCount;
public int overrideWidth;
public int overrideHeight;
public int aspect_ratio_x;
public int aspect_ratio_y;
public float sizeMultiplier;
public int cropWidth;
public int cropHeight;
public boolean zoomAnim;
public boolean isCompress;
public boolean isCamera;
public boolean isGif;
public boolean enablePreview;
public boolean enPreviewVideo;
public boolean enablePreviewAudio;
public boolean checkNumMode;
public boolean openClickSound;
public boolean enableCrop;
public boolean freeStyleCropEnabled;
public boolean circleDimmedLayer;
public boolean showCropFrame;
public boolean showCropGrid;
public boolean hideBottomControls;
public boolean rotateEnabled;
public boolean scaleEnabled;
public boolean previewEggs;
public boolean synOrAsy;
public boolean isDragFrame;
public List<LocalMedia> selectionMedias;
private void reset() {
mimeType = PictureConfig.TYPE_IMAGE;
camera = false;
themeStyleId = R.style.picture_default_style;
selectionMode = PictureConfig.MULTIPLE;
maxSelectNum = 9;
minSelectNum = 0;
videoQuality = 1;
cropCompressQuality = 90;
videoMaxSecond = 0;
videoMinSecond = 0;
recordVideoSecond = 15;
minimumCompressSize = PictureConfig.MAX_COMPRESS_SIZE;
imageSpanCount = 4;
overrideWidth = 0;
overrideHeight = 0;
isCompress = false;
aspect_ratio_x = 0;
aspect_ratio_y = 0;
cropWidth = 0;
cropHeight = 0;
isCamera = true;
isGif = false;
enablePreview = true;
enPreviewVideo = true;
enablePreviewAudio = true;
checkNumMode = false;
openClickSound = false;
enableCrop = false;
freeStyleCropEnabled = false;
circleDimmedLayer = false;
showCropFrame = true;
showCropGrid = true;
hideBottomControls = true;
rotateEnabled = true;
scaleEnabled = true;
previewEggs = false;
synOrAsy = true;
zoomAnim = true;
isDragFrame = true;
outputCameraPath = "";
compressSavePath = "";
suffixType = PictureFileUtils.POSTFIX;
sizeMultiplier = 0.5f;
selectionMedias = new ArrayList<>();
}
public static PictureSelectionConfig getInstance() {
return InstanceHolder.INSTANCE;
}
public static PictureSelectionConfig getCleanInstance() {
PictureSelectionConfig selectionSpec = getInstance();
selectionSpec.reset();
return selectionSpec;
}
private static final class InstanceHolder {
private static final PictureSelectionConfig INSTANCE = new PictureSelectionConfig();
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.mimeType);
dest.writeByte(this.camera ? (byte) 1 : (byte) 0);
dest.writeString(this.outputCameraPath);
dest.writeString(this.compressSavePath);
dest.writeString(this.suffixType);
dest.writeInt(this.themeStyleId);
dest.writeInt(this.selectionMode);
dest.writeInt(this.maxSelectNum);
dest.writeInt(this.minSelectNum);
dest.writeInt(this.videoQuality);
dest.writeInt(this.cropCompressQuality);
dest.writeInt(this.videoMaxSecond);
dest.writeInt(this.videoMinSecond);
dest.writeInt(this.recordVideoSecond);
dest.writeInt(this.minimumCompressSize);
dest.writeInt(this.imageSpanCount);
dest.writeInt(this.overrideWidth);
dest.writeInt(this.overrideHeight);
dest.writeInt(this.aspect_ratio_x);
dest.writeInt(this.aspect_ratio_y);
dest.writeFloat(this.sizeMultiplier);
dest.writeInt(this.cropWidth);
dest.writeInt(this.cropHeight);
dest.writeByte(this.zoomAnim ? (byte) 1 : (byte) 0);
dest.writeByte(this.isCompress ? (byte) 1 : (byte) 0);
dest.writeByte(this.isCamera ? (byte) 1 : (byte) 0);
dest.writeByte(this.isGif ? (byte) 1 : (byte) 0);
dest.writeByte(this.enablePreview ? (byte) 1 : (byte) 0);
dest.writeByte(this.enPreviewVideo ? (byte) 1 : (byte) 0);
dest.writeByte(this.enablePreviewAudio ? (byte) 1 : (byte) 0);
dest.writeByte(this.checkNumMode ? (byte) 1 : (byte) 0);
dest.writeByte(this.openClickSound ? (byte) 1 : (byte) 0);
dest.writeByte(this.enableCrop ? (byte) 1 : (byte) 0);
dest.writeByte(this.freeStyleCropEnabled ? (byte) 1 : (byte) 0);
dest.writeByte(this.circleDimmedLayer ? (byte) 1 : (byte) 0);
dest.writeByte(this.showCropFrame ? (byte) 1 : (byte) 0);
dest.writeByte(this.showCropGrid ? (byte) 1 : (byte) 0);
dest.writeByte(this.hideBottomControls ? (byte) 1 : (byte) 0);
dest.writeByte(this.rotateEnabled ? (byte) 1 : (byte) 0);
dest.writeByte(this.scaleEnabled ? (byte) 1 : (byte) 0);
dest.writeByte(this.previewEggs ? (byte) 1 : (byte) 0);
dest.writeByte(this.synOrAsy ? (byte) 1 : (byte) 0);
dest.writeByte(this.isDragFrame ? (byte) 1 : (byte) 0);
dest.writeTypedList(this.selectionMedias);
}
public PictureSelectionConfig() {
}
protected PictureSelectionConfig(Parcel in) {
this.mimeType = in.readInt();
this.camera = in.readByte() != 0;
this.outputCameraPath = in.readString();
this.compressSavePath = in.readString();
this.suffixType = in.readString();
this.themeStyleId = in.readInt();
this.selectionMode = in.readInt();
this.maxSelectNum = in.readInt();
this.minSelectNum = in.readInt();
this.videoQuality = in.readInt();
this.cropCompressQuality = in.readInt();
this.videoMaxSecond = in.readInt();
this.videoMinSecond = in.readInt();
this.recordVideoSecond = in.readInt();
this.minimumCompressSize = in.readInt();
this.imageSpanCount = in.readInt();
this.overrideWidth = in.readInt();
this.overrideHeight = in.readInt();
this.aspect_ratio_x = in.readInt();
this.aspect_ratio_y = in.readInt();
this.sizeMultiplier = in.readFloat();
this.cropWidth = in.readInt();
this.cropHeight = in.readInt();
this.zoomAnim = in.readByte() != 0;
this.isCompress = in.readByte() != 0;
this.isCamera = in.readByte() != 0;
this.isGif = in.readByte() != 0;
this.enablePreview = in.readByte() != 0;
this.enPreviewVideo = in.readByte() != 0;
this.enablePreviewAudio = in.readByte() != 0;
this.checkNumMode = in.readByte() != 0;
this.openClickSound = in.readByte() != 0;
this.enableCrop = in.readByte() != 0;
this.freeStyleCropEnabled = in.readByte() != 0;
this.circleDimmedLayer = in.readByte() != 0;
this.showCropFrame = in.readByte() != 0;
this.showCropGrid = in.readByte() != 0;
this.hideBottomControls = in.readByte() != 0;
this.rotateEnabled = in.readByte() != 0;
this.scaleEnabled = in.readByte() != 0;
this.previewEggs = in.readByte() != 0;
this.synOrAsy = in.readByte() != 0;
this.isDragFrame = in.readByte() != 0;
this.selectionMedias = in.createTypedArrayList(LocalMedia.CREATOR);
}
public static final Parcelable.Creator<PictureSelectionConfig> CREATOR = new Parcelable.Creator<PictureSelectionConfig>() {
@Override
public PictureSelectionConfig createFromParcel(Parcel source) {
return new PictureSelectionConfig(source);
}
@Override
public PictureSelectionConfig[] newArray(int size) {
return new PictureSelectionConfig[size];
}
};
}
| [
"84362113@qq.com"
] | 84362113@qq.com |
66e851d709e3af83de2ce9bf1179e3e26b733502 | 07629f86f35fc8b1333dcecb8f83ef6b673b7d43 | /sparrow-rpc/src/main/java/com/dianping/sparrow/rpc/proxy/ProxyFactory.java | 9a2e208b37aad6482e0f6909453ea9b087fbb895 | [] | no_license | andyyin/sparrow | e8a347a7dfb5f7912b389606bfc6d87c7b821f01 | d1429035bc0dc91ad06c2c9e355ad6818cef1fe1 | refs/heads/master | 2021-01-19T21:20:25.269535 | 2017-05-21T14:15:20 | 2017-05-21T14:15:20 | 88,642,841 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 230 | java | package com.dianping.sparrow.rpc.proxy;
import java.lang.reflect.InvocationHandler;
/**
* Created by andy on 17/5/3.
*/
public interface ProxyFactory {
<T> T getProxy(Class<T> clz, InvocationHandler invocationHandler);
}
| [
"qi.yin@dianping.com"
] | qi.yin@dianping.com |
0cfcd1492fb05524269e8e0f1d140da752b58cb8 | 97fd02f71b45aa235f917e79dd68b61c62b56c1c | /src/main/java/com/tencentcloudapi/trtc/v20190722/models/DescribeRelayUsageRequest.java | 59ffa57560c6c91a4977035b878c61e2d4a7dbc8 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-java | 7df922f7c5826732e35edeab3320035e0cdfba05 | 09fa672d75e5ca33319a23fcd8b9ca3d2afab1ec | refs/heads/master | 2023-09-04T10:51:57.854153 | 2023-09-01T03:21:09 | 2023-09-01T03:21:09 | 129,837,505 | 537 | 317 | Apache-2.0 | 2023-09-13T02:42:03 | 2018-04-17T02:58:16 | Java | UTF-8 | Java | false | false | 4,386 | java | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.trtc.v20190722.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeRelayUsageRequest extends AbstractModel{
/**
* 查询开始时间,格式为YYYY-MM-DD。
*/
@SerializedName("StartTime")
@Expose
private String StartTime;
/**
* 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
*/
@SerializedName("EndTime")
@Expose
private String EndTime;
/**
* TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
@SerializedName("SdkAppId")
@Expose
private Long SdkAppId;
/**
* Get 查询开始时间,格式为YYYY-MM-DD。
* @return StartTime 查询开始时间,格式为YYYY-MM-DD。
*/
public String getStartTime() {
return this.StartTime;
}
/**
* Set 查询开始时间,格式为YYYY-MM-DD。
* @param StartTime 查询开始时间,格式为YYYY-MM-DD。
*/
public void setStartTime(String StartTime) {
this.StartTime = StartTime;
}
/**
* Get 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @return EndTime 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
*/
public String getEndTime() {
return this.EndTime;
}
/**
* Set 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @param EndTime 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
*/
public void setEndTime(String EndTime) {
this.EndTime = EndTime;
}
/**
* Get TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
* @return SdkAppId TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
public Long getSdkAppId() {
return this.SdkAppId;
}
/**
* Set TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
* @param SdkAppId TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
public void setSdkAppId(Long SdkAppId) {
this.SdkAppId = SdkAppId;
}
public DescribeRelayUsageRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public DescribeRelayUsageRequest(DescribeRelayUsageRequest source) {
if (source.StartTime != null) {
this.StartTime = new String(source.StartTime);
}
if (source.EndTime != null) {
this.EndTime = new String(source.EndTime);
}
if (source.SdkAppId != null) {
this.SdkAppId = new Long(source.SdkAppId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "StartTime", this.StartTime);
this.setParamSimple(map, prefix + "EndTime", this.EndTime);
this.setParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
}
}
| [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
ec107867116f8a9e31f202182292811205a3f177 | f92897401756fe3da720d3bc97ab9201da267994 | /src/Ball.java | c671479b5bd1ae40f4aaeee3d550679528e4c8d3 | [] | no_license | brian50208lee/CharmanderSoccer | 052f9e1e176c3e0e3f6efc1a7f06ece0fb66e30c | 129a66c2df6fea20c1bb15662906ee970e716886 | refs/heads/master | 2020-07-06T09:31:39.031335 | 2016-11-17T18:32:34 | 2016-11-17T18:32:34 | 74,048,533 | 0 | 1 | null | null | null | null | BIG5 | Java | false | false | 5,005 | java |
public class Ball {
//固定參數
final double GROUND_LINE = 450;
final double GROUND_SIDE = 640;
final double DOOR_HEIGHT = GROUND_LINE-160;
final double VECTOR = 7;
final double reboundPara = -0.8;
final double strictionPara = -0.05;
final double SIZE_ball=40;
final double SIZE_player=100;
//ball info
double position[] = new double[3];// x,y,size
double vectorX;
double vectorY;
double accelerate;
double size;
int timer = 0;
int win = 0; //no:0 l:1 r:2
int state = 0;
//initial set
Ball(double iniX) {
position[0] = iniX;// initial x
position[1] = GROUND_LINE - SIZE_ball / 2;// initial y
vectorX = 0;
vectorY = 0;
accelerate = 0.2;
}
//根據目前的狀態改變球的位置
public void moveFunction() {
position[0] += vectorX;
position[1] += vectorY;
if(state==0){
vectorY += accelerate;
}
if (position[1] >= GROUND_LINE - SIZE_ball / 2 && vectorX != 0) {
double temp = vectorX;
vectorX += (strictionPara * vectorX);
if(Math.abs(vectorX) < 1){
vectorX = 0;
}else{
vectorX += (4*strictionPara * vectorX);
}
}
borderCheck();
}
//邊界檢查
public void borderCheck() {
if (position[0] - SIZE_ball / 2 < 0) {
if(position[1] >DOOR_HEIGHT){
win = 1;
}else{
position[0] = 0 + SIZE_ball / 2;
vectorX = (-1 * vectorX);
}
}
if (position[0] + SIZE_ball / 2 > GROUND_SIDE) {
if(position[1] >DOOR_HEIGHT){
win = 2;
}else{
position[0] = GROUND_SIDE - SIZE_ball / 2;
vectorX = (-1 * vectorX);
}
}
if (position[1] + SIZE_ball / 2 >= GROUND_LINE) {
position[1] = GROUND_LINE - SIZE_ball / 2;
state=0;
if (vectorY > 1) {
vectorY = (reboundPara * vectorY*0.5);
} else {
vectorY = 0;
}
}
if (position[1] - SIZE_ball / 2 < 0) {
position[1] = 1 + SIZE_ball / 2;
vectorY = (-1 * vectorY);
}
}
//根據玩家跟球的相對位置,和玩家的操作按鍵來踢球
public void kickBall(int p[],boolean c[],double range) {
state=0;
vectorX = 0.8*((position[0] - p[0]) / range * VECTOR);
vectorY = 1.6*((position[1] - p[1]) / range * VECTOR);
position[0] += 0.2*vectorX;
position[1] += 0.2*vectorY;
if(c[4]){
if(c[0]||c[1]){
if(c[2]){
state=1;
vectorX=((position[0] - p[0]) / Math.abs(position[0] - p[0]) *VECTOR*2);
vectorY= -0.8*VECTOR;
}
else if(c[3]){
state=1;
vectorX=((position[0] - p[0]) / Math.abs(position[0] - p[0]) *VECTOR*3);
vectorY= 1.6*VECTOR;
}else{
state=1;
vectorX= ((position[0] - p[0]) / Math.abs(position[0] - p[0]) *VECTOR*2.2);
vectorY= (GROUND_LINE-position[1])/GROUND_SIDE*VECTOR*3;
}
if(c[0]){
vectorX = -1*Math.abs(vectorX);
}else{
vectorX = Math.abs(vectorX);
}
}else if(c[2]){
state=0;
vectorX=((position[0] - p[0]) / Math.abs(position[0] - p[0]) *VECTOR*0.25);
vectorY= -1.9*VECTOR;
}
else if(c[3]){
state=1;
vectorX=((position[0] - p[0]) / Math.abs(position[0] - p[0]) *VECTOR*1.2);
vectorY= 1.7*VECTOR;
}else{
state=0;
vectorX=((position[0] - p[0]) / Math.abs(position[0] - p[0]) *VECTOR*0.3);
vectorY=0;
}
}
if(c[5]){
vectorX = -((position[0] - p[0]) / Math.abs(position[0] - p[0]) *VECTOR*0.15);
vectorY = -0.9*VECTOR;
}
}
//判斷是否有碰到玩家
public boolean hitPlayer(int p[],boolean c[]){
double range = 0;
range = Math.sqrt((p[0] - position[0]) * (p[0] - position[0])
+ (p[1] - position[1]) * (p[1] - position[1]));
if (range <= (SIZE_player + SIZE_ball) / 2) {
//System.out.println(" range : "+range+" size : "+(p[2] + position[2]) / 2+" vxy : "+(Math.sqrt(vectorX*vectorX+vectorY*vectorY)));
kickBall(p, c, range);
return true;
}else if(range <= Math.sqrt(vectorX*vectorX+vectorY*vectorY)){
double tempX = position[0] + vectorX;
double tempY = position[1] + vectorY;
double tempO = 0;
double tempA = tempY-position[1];
double tempB = tempX-position[0];
tempO = tempA*tempX-tempY*tempB;
double tempR = 0;
tempR = Math.abs((tempA*p[0]-tempB*p[1]-tempO)/(Math.sqrt(tempA*tempA+tempB*tempB)));
//System.out.println("tempR : "+tempR+" s : "+ position[2]);
if(tempR<=SIZE_ball){
System.out.println("yes");
kickBall(p, c, range);
return true;
}
}
return false;
}
//設定當下兩名玩家的狀態
public void setData(int p1[],int p2[],boolean p1C[],boolean p2C[]){
if(timer%2==0){
hitPlayer(p1,p1C);
hitPlayer(p2,p2C);
}else{
hitPlayer(p2,p2C);
hitPlayer(p1,p1C);
}
moveFunction();
timer++;
}
//獲得球的位置
public int[] getBallPosition() {
int ballPosition[]=new int[3];
ballPosition[0]=(int)position[0];
ballPosition[1]=(int)position[1];
ballPosition[2]=(int)position[2];
return ballPosition;
}
//判定得分
public int getWin(){
return win;
}
}
| [
"brian50208lee@gmail.com"
] | brian50208lee@gmail.com |
2412aa35ecfcd2688c01ed4a245660874928704f | c885ef92397be9d54b87741f01557f61d3f794f3 | /tests-without-trycatch/Cli-33/org.apache.commons.cli.HelpFormatter/BBC-F0-opt-50/8/org/apache/commons/cli/HelpFormatter_ESTest.java | 07a1fbbd3067ce8605665d5a6ce5867f53084ce2 | [
"CC-BY-4.0",
"MIT"
] | permissive | pderakhshanfar/EMSE-BBC-experiment | f60ac5f7664dd9a85f755a00a57ec12c7551e8c6 | fea1a92c2e7ba7080b8529e2052259c9b697bbda | refs/heads/main | 2022-11-25T00:39:58.983828 | 2022-04-12T16:04:26 | 2022-04-12T16:04:26 | 309,335,889 | 0 | 1 | null | 2021-11-05T11:18:43 | 2020-11-02T10:30:38 | null | UTF-8 | Java | false | false | 428,607 | java | /*
* This file was automatically generated by EvoSuite
* Wed Oct 13 14:48:08 GMT 2021
*/
package org.apache.commons.cli;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;
import java.util.Collection;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.OptionGroup;
import org.apache.commons.cli.Options;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.evosuite.runtime.mock.java.io.MockFile;
import org.evosuite.runtime.mock.java.io.MockFileOutputStream;
import org.evosuite.runtime.mock.java.io.MockPrintStream;
import org.evosuite.runtime.mock.java.io.MockPrintWriter;
import org.evosuite.runtime.mock.java.net.MockURI;
import org.evosuite.runtime.testdata.EvoSuiteFile;
import org.evosuite.runtime.testdata.FileSystemHandling;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true)
public class HelpFormatter_ESTest extends HelpFormatter_ESTest_scaffolding {
@Test(timeout = 4000)
public void test000() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
int int0 = 0;
Options options0 = new Options();
assertNotNull(options0);
// Undeclared exception!
helpFormatter0.printHelp(0, "&y8e-QY", "&y8e-QY", options0, "J@G6n=&rKg1Wt ");
}
@Test(timeout = 4000)
public void test001() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption("arg", true, "-");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter("--");
assertNotNull(mockPrintWriter0);
mockPrintWriter0.print("\n");
StringWriter stringWriter0 = new StringWriter(3);
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringWriter stringWriter1 = stringWriter0.append((CharSequence) "usage: ");
assertNotNull(stringWriter1);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertEquals("usage: ", stringWriter0.toString());
assertEquals("usage: ", stringWriter1.toString());
StringBuffer stringBuffer0 = stringWriter1.getBuffer();
assertNotNull(stringBuffer0);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertEquals("usage: ", stringWriter0.toString());
assertEquals("usage: ", stringWriter1.toString());
assertEquals("usage: ", stringBuffer0.toString());
assertEquals(7, stringBuffer0.length());
StringBuffer stringBuffer1 = helpFormatter0.renderOptions(stringBuffer0, 192, options1, 192, 34);
assertNotNull(stringBuffer1);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertSame(options0, options1);
assertSame(options1, options0);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(43, stringBuffer0.length());
assertEquals(43, stringBuffer1.length());
OptionGroup optionGroup0 = new OptionGroup();
assertNotNull(optionGroup0);
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
Option option0 = new Option("", "");
assertNotNull(option0);
assertEquals((-1), Option.UNINITIALIZED);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertFalse(option0.hasLongOpt());
assertFalse(option0.hasOptionalArg());
assertNull(option0.getValue());
assertFalse(option0.hasArg());
assertFalse(option0.hasArgs());
assertNull(option0.getArgName());
assertNull(option0.getLongOpt());
assertEquals('\u0000', option0.getValueSeparator());
assertEquals("", option0.getDescription());
assertEquals((-1), option0.getArgs());
assertFalse(option0.hasArgName());
assertFalse(option0.isRequired());
assertEquals("", option0.getOpt());
assertFalse(option0.hasValueSeparator());
OptionGroup optionGroup1 = optionGroup0.addOption(option0);
assertNotNull(optionGroup1);
assertEquals((-1), Option.UNINITIALIZED);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertSame(optionGroup0, optionGroup1);
assertSame(optionGroup1, optionGroup0);
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
assertFalse(option0.hasLongOpt());
assertFalse(option0.hasOptionalArg());
assertNull(option0.getValue());
assertFalse(option0.hasArg());
assertFalse(option0.hasArgs());
assertNull(option0.getArgName());
assertNull(option0.getLongOpt());
assertEquals('\u0000', option0.getValueSeparator());
assertEquals("", option0.getDescription());
assertEquals((-1), option0.getArgs());
assertFalse(option0.hasArgName());
assertFalse(option0.isRequired());
assertEquals("", option0.getOpt());
assertFalse(option0.hasValueSeparator());
assertNull(optionGroup1.getSelected());
assertFalse(optionGroup1.isRequired());
Options options2 = options0.addOptionGroup(optionGroup1);
assertNotNull(options2);
assertEquals((-1), Option.UNINITIALIZED);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertSame(options0, options2);
assertSame(options0, options1);
assertSame(optionGroup0, optionGroup1);
assertSame(optionGroup1, optionGroup0);
assertSame(options2, options1);
assertSame(options2, options0);
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
assertFalse(option0.hasLongOpt());
assertFalse(option0.hasOptionalArg());
assertNull(option0.getValue());
assertFalse(option0.hasArg());
assertFalse(option0.hasArgs());
assertNull(option0.getArgName());
assertNull(option0.getLongOpt());
assertEquals('\u0000', option0.getValueSeparator());
assertEquals("", option0.getDescription());
assertEquals((-1), option0.getArgs());
assertFalse(option0.hasArgName());
assertFalse(option0.isRequired());
assertEquals("", option0.getOpt());
assertFalse(option0.hasValueSeparator());
assertNull(optionGroup1.getSelected());
assertFalse(optionGroup1.isRequired());
StringBuffer stringBuffer2 = helpFormatter0.renderOptions(stringBuffer1, 34, options2, 34, 1705);
assertNotNull(stringBuffer2);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals((-1), Option.UNINITIALIZED);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertSame(options0, options2);
assertSame(options0, options1);
assertSame(options1, options2);
assertSame(options1, options0);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertSame(stringBuffer0, stringBuffer2);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertSame(stringBuffer1, stringBuffer2);
assertSame(optionGroup0, optionGroup1);
assertSame(optionGroup1, optionGroup0);
assertSame(options2, options1);
assertSame(options2, options0);
assertSame(stringBuffer2, stringBuffer0);
assertSame(stringBuffer2, stringBuffer1);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(115, stringBuffer0.length());
assertEquals(115, stringBuffer1.length());
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
assertFalse(option0.hasLongOpt());
assertFalse(option0.hasOptionalArg());
assertNull(option0.getValue());
assertFalse(option0.hasArg());
assertFalse(option0.hasArgs());
assertNull(option0.getArgName());
assertNull(option0.getLongOpt());
assertEquals('\u0000', option0.getValueSeparator());
assertEquals("", option0.getDescription());
assertEquals((-1), option0.getArgs());
assertFalse(option0.hasArgName());
assertFalse(option0.isRequired());
assertEquals("", option0.getOpt());
assertFalse(option0.hasValueSeparator());
assertNull(optionGroup1.getSelected());
assertFalse(optionGroup1.isRequired());
assertEquals(115, stringBuffer2.length());
// Undeclared exception!
// try {
helpFormatter0.printUsage((PrintWriter) mockPrintWriter0, (-3768), "-", options0);
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test002() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
helpFormatter0.setArgName("");
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
String string0 = helpFormatter0.getArgName();
assertEquals("", string0);
assertNotNull(string0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
}
@Test(timeout = 4000)
public void test003() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
helpFormatter0.setWidth(1);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
// Undeclared exception!
helpFormatter0.printHelp("arg", "-", options0, " ", false);
}
@Test(timeout = 4000)
public void test004() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
int int0 = 1896;
helpFormatter0.defaultDescPad = 1896;
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(1896, helpFormatter0.getDescPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
// Undeclared exception!
// try {
helpFormatter0.printHelp(3270, "0OLEV^~@r", "", (Options) null, ";x|<we");
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test005() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
// Undeclared exception!
// try {
helpFormatter0.printHelp("org.apache.commons.cli.AlreadySelectedException", "org.apache.commons.cli.AlreadySelectedException", (Options) null, "");
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test006() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption("arg", false, "-");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter("--");
assertNotNull(mockPrintWriter0);
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
StringBuffer stringBuffer0 = new StringBuffer(27);
assertNotNull(stringBuffer0);
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
// Undeclared exception!
// try {
helpFormatter0.renderOptions(stringBuffer0, (-524), options0, 27, 1);
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test007() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringWriter stringWriter1 = stringWriter0.append((CharSequence) "\n");
assertNotNull(stringWriter1);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertEquals("\n", stringWriter0.toString());
assertEquals("\n", stringWriter1.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter1, true);
assertNotNull(mockPrintWriter0);
// Undeclared exception!
// try {
helpFormatter0.printWrapped((PrintWriter) mockPrintWriter0, (-1958), 28, "<1b1Ks_WS");
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test008() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
String string0 = null;
helpFormatter0.setSyntaxPrefix((String) null);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertNull(helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
int int0 = helpFormatter0.getLeftPadding();
assertEquals(1, int0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertNull(helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
String string1 = helpFormatter0.getSyntaxPrefix();
assertNull(string1);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertNull(helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
String string2 = helpFormatter0.rtrim((String) null);
assertNull(string2);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertNull(helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
String string3 = "D;tC)Wtt";
StringBuffer stringBuffer0 = new StringBuffer("D;tC)Wtt");
assertNotNull(stringBuffer0);
assertEquals("D;tC)Wtt", stringBuffer0.toString());
assertEquals(8, stringBuffer0.length());
// Undeclared exception!
// try {
helpFormatter0.renderWrappedText(stringBuffer0, (-29), (-29), (String) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test009() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
helpFormatter0.defaultNewLine = "";
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
String string0 = helpFormatter0.getNewLine();
assertEquals("", string0);
assertNotNull(string0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
}
@Test(timeout = 4000)
public void test010() throws Throwable {
EvoSuiteFile evoSuiteFile0 = null;
boolean boolean0 = false;
boolean boolean1 = FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);
assertFalse(boolean1);
assertTrue(boolean1 == boolean0);
boolean boolean2 = FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);
assertFalse(boolean2);
assertTrue(boolean2 == boolean0);
assertTrue(boolean2 == boolean1);
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
int int0 = 3;
helpFormatter0.setDescPadding(3);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
helpFormatter0.setOptPrefix("org.apache.commons.cli.HelpFormatter$1");
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("org.apache.commons.cli.HelpFormatter$1", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
helpFormatter0.defaultWidth = (-526);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("org.apache.commons.cli.HelpFormatter$1", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals((-526), helpFormatter0.getWidth());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
int int1 = helpFormatter0.getWidth();
assertEquals((-526), int1);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals((-526), helpFormatter0.defaultWidth);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("org.apache.commons.cli.HelpFormatter$1", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals((-526), helpFormatter0.getWidth());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertFalse(int1 == int0);
StringWriter stringWriter0 = null;
// try {
stringWriter0 = new StringWriter((-526));
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // Negative buffer size
// //
// verifyException("java.io.StringWriter", e);
// }
}
@Test(timeout = 4000)
public void test011() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
StringBuffer stringBuffer0 = new StringBuffer();
assertNotNull(stringBuffer0);
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
int int0 = helpFormatter0.findWrapPos("org.apache.commons.cli.ParseException", 0, 0);
assertEquals(0, int0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
}
@Test(timeout = 4000)
public void test012() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
Options options0 = new Options();
assertNotNull(options0);
OptionGroup optionGroup0 = new OptionGroup();
assertNotNull(optionGroup0);
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
Options options1 = options0.addOptionGroup(optionGroup0);
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
Options options2 = options1.addOption("", "", false, "-");
assertNotNull(options2);
assertSame(options0, options2);
assertSame(options0, options1);
assertSame(options1, options2);
assertSame(options1, options0);
assertSame(options2, options0);
assertSame(options2, options1);
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
Option option0 = new Option("T", "has already been selected: '", false, "-");
assertNotNull(option0);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertEquals((-1), Option.UNINITIALIZED);
assertFalse(option0.hasValueSeparator());
assertNull(option0.getArgName());
assertFalse(option0.isRequired());
assertEquals('\u0000', option0.getValueSeparator());
assertEquals((-1), option0.getArgs());
assertFalse(option0.hasOptionalArg());
assertEquals("has already been selected: '", option0.getLongOpt());
assertEquals("-", option0.getDescription());
assertTrue(option0.hasLongOpt());
assertEquals("T", option0.getOpt());
assertFalse(option0.hasArgName());
assertNull(option0.getValue());
assertFalse(option0.hasArg());
assertEquals(84, option0.getId());
assertFalse(option0.hasArgs());
Options options3 = options2.addOption(option0);
assertNotNull(options3);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertEquals((-1), Option.UNINITIALIZED);
assertSame(options0, options2);
assertSame(options0, options3);
assertSame(options0, options1);
assertSame(options1, options3);
assertSame(options1, options2);
assertSame(options1, options0);
assertSame(options2, options3);
assertSame(options2, options0);
assertSame(options2, options1);
assertSame(options3, options2);
assertSame(options3, options1);
assertSame(options3, options0);
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
assertFalse(option0.hasValueSeparator());
assertNull(option0.getArgName());
assertFalse(option0.isRequired());
assertEquals('\u0000', option0.getValueSeparator());
assertEquals((-1), option0.getArgs());
assertFalse(option0.hasOptionalArg());
assertEquals("has already been selected: '", option0.getLongOpt());
assertEquals("-", option0.getDescription());
assertTrue(option0.hasLongOpt());
assertEquals("T", option0.getOpt());
assertFalse(option0.hasArgName());
assertNull(option0.getValue());
assertFalse(option0.hasArg());
assertEquals(84, option0.getId());
assertFalse(option0.hasArgs());
helpFormatter0.printHelp("has already been selected: '", "", options3, " | ", true);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertEquals((-1), Option.UNINITIALIZED);
assertSame(options0, options2);
assertSame(options0, options3);
assertSame(options0, options1);
assertSame(options1, options3);
assertSame(options1, options2);
assertSame(options1, options0);
assertSame(options2, options3);
assertSame(options2, options0);
assertSame(options2, options1);
assertSame(options3, options2);
assertSame(options3, options1);
assertSame(options3, options0);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
assertFalse(option0.hasValueSeparator());
assertNull(option0.getArgName());
assertFalse(option0.isRequired());
assertEquals('\u0000', option0.getValueSeparator());
assertEquals((-1), option0.getArgs());
assertFalse(option0.hasOptionalArg());
assertEquals("has already been selected: '", option0.getLongOpt());
assertEquals("-", option0.getDescription());
assertTrue(option0.hasLongOpt());
assertEquals("T", option0.getOpt());
assertFalse(option0.hasArgName());
assertNull(option0.getValue());
assertFalse(option0.hasArg());
assertEquals(84, option0.getId());
assertFalse(option0.hasArgs());
helpFormatter0.printHelp((-1), "rYSF", "(pbkV>rh6qk76d5^", options0, "", false);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(options0, options2);
assertSame(options0, options3);
assertSame(options0, options1);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
}
@Test(timeout = 4000)
public void test013() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
MockFile mockFile0 = new MockFile((String) null, "]RI 5Z(y'Ii_W:92");
assertNotNull(mockFile0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockFile0);
assertNotNull(mockPrintWriter0);
Options options0 = new Options();
assertNotNull(options0);
helpFormatter0.printHelp("MLF(;K\u0003x1nG%l:zq^&", options0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Locale locale0 = Locale.JAPAN;
assertNotNull(locale0);
assertEquals("", locale0.getVariant());
assertEquals("JP", locale0.getCountry());
assertEquals("JPN", locale0.getISO3Country());
assertEquals("ja", locale0.getLanguage());
assertEquals("jpn", locale0.getISO3Language());
assertEquals("ja_JP", locale0.toString());
Object[] objectArray0 = new Object[4];
objectArray0[0] = (Object) locale0;
objectArray0[1] = (Object) helpFormatter0;
objectArray0[2] = (Object) mockPrintWriter0;
objectArray0[3] = (Object) null;
PrintWriter printWriter0 = mockPrintWriter0.printf(locale0, "--", objectArray0);
assertNotNull(printWriter0);
assertEquals(4, objectArray0.length);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertTrue(mockFile0.canWrite());
assertTrue(mockFile0.isFile());
assertTrue(mockFile0.canRead());
assertFalse(mockFile0.isDirectory());
assertEquals(0L, mockFile0.length());
assertEquals("]RI 5Z(y'Ii_W:92", mockFile0.toString());
assertTrue(mockFile0.canExecute());
assertFalse(mockFile0.isAbsolute());
assertEquals(1392409281320L, mockFile0.lastModified());
assertNull(mockFile0.getParent());
assertEquals(0L, mockFile0.getTotalSpace());
assertTrue(mockFile0.exists());
assertEquals(0L, mockFile0.getFreeSpace());
assertEquals("]RI 5Z(y'Ii_W:92", mockFile0.getName());
assertFalse(mockFile0.isHidden());
assertEquals(0L, mockFile0.getUsableSpace());
assertEquals("", locale0.getVariant());
assertEquals("JP", locale0.getCountry());
assertEquals("JPN", locale0.getISO3Country());
assertEquals("ja", locale0.getLanguage());
assertEquals("jpn", locale0.getISO3Language());
assertEquals("ja_JP", locale0.toString());
MockPrintWriter mockPrintWriter1 = new MockPrintWriter(printWriter0, true);
assertNotNull(mockPrintWriter1);
assertEquals(4, objectArray0.length);
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
assertFalse(mockPrintWriter1.equals((Object)printWriter0));
PrintWriter printWriter1 = mockPrintWriter1.format("usage: ", objectArray0);
assertNotNull(printWriter1);
assertEquals(4, objectArray0.length);
assertNotSame(mockPrintWriter0, printWriter1);
assertSame(mockPrintWriter0, printWriter0);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertNotSame(printWriter0, printWriter1);
assertSame(printWriter0, mockPrintWriter0);
assertNotSame(printWriter0, mockPrintWriter1);
assertNotSame(mockPrintWriter1, mockPrintWriter0);
assertSame(mockPrintWriter1, printWriter1);
assertNotSame(mockPrintWriter1, printWriter0);
assertSame(printWriter1, mockPrintWriter1);
assertNotSame(printWriter1, printWriter0);
assertNotSame(printWriter1, mockPrintWriter0);
assertEquals(9L, mockFile0.length());
assertTrue(mockFile0.canWrite());
assertTrue(mockFile0.isFile());
assertTrue(mockFile0.canRead());
assertFalse(mockFile0.isDirectory());
assertEquals("]RI 5Z(y'Ii_W:92", mockFile0.toString());
assertTrue(mockFile0.canExecute());
assertFalse(mockFile0.isAbsolute());
assertEquals(1392409281320L, mockFile0.lastModified());
assertNull(mockFile0.getParent());
assertEquals(0L, mockFile0.getTotalSpace());
assertTrue(mockFile0.exists());
assertEquals(0L, mockFile0.getFreeSpace());
assertEquals("]RI 5Z(y'Ii_W:92", mockFile0.getName());
assertFalse(mockFile0.isHidden());
assertEquals(0L, mockFile0.getUsableSpace());
assertEquals("", locale0.getVariant());
assertEquals("JP", locale0.getCountry());
assertEquals("JPN", locale0.getISO3Country());
assertEquals("ja", locale0.getLanguage());
assertEquals("jpn", locale0.getISO3Language());
assertEquals("ja_JP", locale0.toString());
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
assertFalse(printWriter0.equals((Object)mockPrintWriter1));
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
assertFalse(mockPrintWriter1.equals((Object)printWriter0));
assertFalse(printWriter1.equals((Object)printWriter0));
assertFalse(printWriter1.equals((Object)mockPrintWriter0));
// Undeclared exception!
// try {
helpFormatter0.printWrapped(printWriter1, (-148), (-1166), (String) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test014() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
boolean boolean0 = FileSystemHandling.createFolder((EvoSuiteFile) null);
assertFalse(boolean0);
helpFormatter0.defaultSyntaxPrefix = "";
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
Comparator comparator0 = helpFormatter0.getOptionComparator();
assertNotNull(comparator0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
String string0 = helpFormatter0.getSyntaxPrefix();
assertEquals("", string0);
assertNotNull(string0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
String string1 = helpFormatter0.getSyntaxPrefix();
assertEquals("", string1);
assertNotNull(string1);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
String string2 = helpFormatter0.rtrim("|B<(0#<7;$g`t}*`*s");
assertEquals("|B<(0#<7;$g`t}*`*s", string2);
assertNotNull(string2);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertFalse(string2.equals((Object)string1));
assertFalse(string2.equals((Object)string0));
String string3 = "[";
MockFile mockFile0 = new MockFile("-", "[");
assertNotNull(mockFile0);
MockPrintWriter mockPrintWriter0 = null;
// try {
mockPrintWriter0 = new MockPrintWriter(mockFile0, "<wS:YLV/1;>W8h<D");
// fail("Expecting exception: UnsupportedEncodingException");
// } catch(Throwable e) {
// //
// // <wS:YLV/1;>W8h<D
// //
// verifyException("org.evosuite.runtime.mock.java.io.MockPrintWriter", e);
// }
}
@Test(timeout = 4000)
public void test015() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(" ", stringBuffer0.toString());
assertEquals(1, stringBuffer0.length());
Options options0 = new Options();
assertNotNull(options0);
OptionGroup optionGroup0 = new OptionGroup();
assertNotNull(optionGroup0);
assertNull(optionGroup0.getSelected());
assertFalse(optionGroup0.isRequired());
Options options1 = options0.addOptionGroup(optionGroup0);
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
assertNull(optionGroup0.getSelected());
assertFalse(optionGroup0.isRequired());
Options options2 = options1.addOption("", false, (String) null);
assertNotNull(options2);
assertSame(options0, options1);
assertSame(options0, options2);
assertSame(options1, options0);
assertSame(options1, options2);
assertSame(options2, options1);
assertSame(options2, options0);
assertNull(optionGroup0.getSelected());
assertFalse(optionGroup0.isRequired());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
helpFormatter1.printHelp("){~fW", "usage: ", options2, "usage: ", true);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertSame(options0, options1);
assertSame(options0, options2);
assertSame(options1, options0);
assertSame(options1, options2);
assertSame(options2, options1);
assertSame(options2, options0);
assertNotSame(helpFormatter1, helpFormatter0);
assertNull(optionGroup0.getSelected());
assertFalse(optionGroup0.isRequired());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
String string0 = helpFormatter1.createPadding(383);
assertEquals(" ", string0);
assertNotNull(string0);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertNotSame(helpFormatter1, helpFormatter0);
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
}
@Test(timeout = 4000)
public void test016() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(1, stringBuffer0.length());
assertEquals(" ", stringBuffer0.toString());
StringBuffer stringBuffer1 = new StringBuffer();
assertNotNull(stringBuffer1);
assertEquals(0, stringBuffer1.length());
assertEquals("", stringBuffer1.toString());
assertFalse(stringBuffer1.equals((Object)stringBuffer0));
int int0 = 3674;
// Undeclared exception!
// try {
helpFormatter0.renderOptions(stringBuffer1, 3674, (Options) null, 3674, 3674);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test017() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
Option option0 = new Option((String) null, true, "-");
assertNotNull(option0);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertEquals((-1), Option.UNINITIALIZED);
assertNull(option0.getValue());
assertEquals('\u0000', option0.getValueSeparator());
assertFalse(option0.isRequired());
assertNull(option0.getOpt());
assertTrue(option0.hasArg());
assertNull(option0.getArgName());
assertEquals("-", option0.getDescription());
assertFalse(option0.hasArgs());
assertNull(option0.getLongOpt());
assertFalse(option0.hasArgName());
assertFalse(option0.hasLongOpt());
assertEquals(1, option0.getArgs());
assertFalse(option0.hasOptionalArg());
assertFalse(option0.hasValueSeparator());
// Undeclared exception!
// try {
helpFormatter0.findWrapPos((String) null, (-1), (-2));
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test018() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(74, helpFormatter1.getWidth());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
Options options0 = new Options();
assertNotNull(options0);
String string0 = "";
Options options1 = options0.addOption("", true, "");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
// Undeclared exception!
// try {
helpFormatter0.printOptions((PrintWriter) null, 3, options1, (-3195), 74);
// fail("Expecting exception: NegativeArraySizeException");
// } catch(NegativeArraySizeException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test019() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("\n", helpFormatter1.getNewLine());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringBuffer stringBuffer0 = stringWriter0.getBuffer();
assertNotNull(stringBuffer0);
assertEquals("", stringWriter0.toString());
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption((String) null, true, "-");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
helpFormatter0.printHelp("UDJ", "-", options1, "\n", true);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertNotSame(helpFormatter0, helpFormatter1);
assertSame(options0, options1);
assertSame(options1, options0);
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertFalse(helpFormatter0.equals((Object)helpFormatter1));
helpFormatter1.printHelp(2, "\n", "<", options0, "\n", true);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, helpFormatter1.defaultDescPad);
assertNotSame(helpFormatter1, helpFormatter0);
assertSame(options0, options1);
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("\n", helpFormatter1.getNewLine());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
}
@Test(timeout = 4000)
public void test020() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
StringBuffer stringBuffer0 = new StringBuffer();
assertNotNull(stringBuffer0);
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
StringBuffer stringBuffer1 = helpFormatter0.renderWrappedText(stringBuffer0, 0, 0, "");
assertNotNull(stringBuffer1);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
assertEquals("", stringBuffer1.toString());
assertEquals(0, stringBuffer1.length());
// Undeclared exception!
// try {
helpFormatter0.printHelp(",xraC#dKN_pI", (Options) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test021() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
String string0 = helpFormatter0.rtrim((String) null);
assertNull(string0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter("--");
assertNotNull(mockPrintWriter0);
MockPrintWriter mockPrintWriter1 = new MockPrintWriter(mockPrintWriter0);
assertNotNull(mockPrintWriter1);
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
mockPrintWriter1.println(false);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertNotSame(mockPrintWriter1, mockPrintWriter0);
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
helpFormatter0.printHelp((PrintWriter) mockPrintWriter0, 251, "mWO^?`", (String) null, options0, 116, 2, "ZFYBch!'");
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
// Undeclared exception!
// try {
helpFormatter0.printHelp((PrintWriter) mockPrintWriter1, 251, "mWO^?`", (String) null, (Options) null, 116, 2, "mWO^?`", false);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test022() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
Options options0 = new Options();
assertNotNull(options0);
String string0 = helpFormatter0.rtrim(" ");
assertEquals("", string0);
assertNotNull(string0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter("--");
assertNotNull(mockPrintWriter0);
MockPrintWriter mockPrintWriter1 = new MockPrintWriter(mockPrintWriter0);
assertNotNull(mockPrintWriter1);
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
mockPrintWriter1.println(false);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertNotSame(mockPrintWriter1, mockPrintWriter0);
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
helpFormatter0.printHelp((PrintWriter) mockPrintWriter0, 251, "mWO^?`", "", options0, 116, 2, "ZFYBch!'");
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
// Undeclared exception!
// try {
helpFormatter0.printHelp((PrintWriter) mockPrintWriter1, 251, "mWO^?`", "", (Options) null, 116, 2, "mWO^?`", false);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test023() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
int int0 = helpFormatter0.getWidth();
assertEquals(74, int0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
StringBuffer stringBuffer0 = new StringBuffer(3);
assertNotNull(stringBuffer0);
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
int int1 = 842;
helpFormatter0.defaultOptPrefix = "";
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
helpFormatter0.defaultOptPrefix = null;
assertEquals(1, helpFormatter0.getLeftPadding());
assertNull(helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
boolean boolean0 = FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);
assertFalse(boolean0);
StringBuffer stringBuffer1 = helpFormatter0.renderWrappedText(stringBuffer0, 74, 842, "");
assertNotNull(stringBuffer1);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(1, helpFormatter0.getLeftPadding());
assertNull(helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
assertEquals("", stringBuffer1.toString());
assertEquals(0, stringBuffer1.length());
String string0 = helpFormatter0.getLongOptSeparator();
assertEquals(" ", string0);
assertNotNull(string0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertNull(helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
helpFormatter0.setLongOptPrefix(" ");
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertNull(helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
String string1 = helpFormatter0.getLongOptPrefix();
assertEquals(" ", string1);
assertNotNull(string1);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertNull(helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertTrue(string1.equals((Object)string0));
String string2 = helpFormatter0.getOptPrefix();
assertNull(string2);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertNull(helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption((String) null, false, (String) null);
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
OptionGroup optionGroup0 = new OptionGroup();
assertNotNull(optionGroup0);
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
Option option0 = null;
// try {
option0 = new Option("R*B%:P tX0?b$", "", true, " ");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // The option 'R*B%:P tX0?b$' contains an illegal character : '*'
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test024() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
Options options0 = new Options();
assertNotNull(options0);
// Undeclared exception!
// try {
helpFormatter0.printHelp((PrintWriter) null, 16, (String) null, "NO_ARGS_ALLOWED", (Options) null, 168, 3, (String) null, false);
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test025() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(3, helpFormatter1.getDescPadding());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringBuffer stringBuffer0 = stringWriter0.getBuffer();
assertNotNull(stringBuffer0);
assertEquals("", stringWriter0.toString());
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter0);
assertNotNull(mockPrintWriter0);
// Undeclared exception!
helpFormatter0.printHelp((PrintWriter) mockPrintWriter0, 1, "-", "--", (Options) null, 3, 523, "vy$gkfe+s*`zMlGLi8");
}
@Test(timeout = 4000)
public void test026() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
Options options0 = new Options();
assertNotNull(options0);
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("arg", helpFormatter1.getArgName());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
HelpFormatter helpFormatter2 = new HelpFormatter();
assertNotNull(helpFormatter2);
assertEquals(3, helpFormatter2.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter2.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter2.defaultWidth);
assertEquals("--", helpFormatter2.getLongOptPrefix());
assertEquals(74, helpFormatter2.getWidth());
assertEquals("-", helpFormatter2.getOptPrefix());
assertEquals("arg", helpFormatter2.getArgName());
assertEquals(" ", helpFormatter2.getLongOptSeparator());
assertEquals("usage: ", helpFormatter2.getSyntaxPrefix());
assertEquals("\n", helpFormatter2.getNewLine());
assertEquals(1, helpFormatter2.getLeftPadding());
assertEquals(3, helpFormatter2.getDescPadding());
assertFalse(helpFormatter2.equals((Object)helpFormatter0));
assertFalse(helpFormatter2.equals((Object)helpFormatter1));
// Undeclared exception!
// try {
helpFormatter2.printHelp((PrintWriter) null, 74, " ]", "has already been selected: '", options0, (-1), 75, "vJ 5kX7F-y`");
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test027() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
Options options0 = new Options();
assertNotNull(options0);
String string0 = helpFormatter0.rtrim(" ");
assertEquals("", string0);
assertNotNull(string0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter("--");
assertNotNull(mockPrintWriter0);
MockPrintWriter mockPrintWriter1 = new MockPrintWriter(mockPrintWriter0);
assertNotNull(mockPrintWriter1);
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
// Undeclared exception!
// try {
helpFormatter0.printHelp((PrintWriter) mockPrintWriter1, 251, "mWO^?`", "", (Options) null, 116, 2, "mWO^?`", false);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test028() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(1, stringBuffer0.length());
assertEquals(" ", stringBuffer0.toString());
StringBuffer stringBuffer1 = stringBuffer0.append('<');
assertNotNull(stringBuffer1);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(2, stringBuffer0.length());
assertEquals(" <", stringBuffer0.toString());
assertEquals(" <", stringBuffer1.toString());
assertEquals(2, stringBuffer1.length());
StringBuffer stringBuffer2 = helpFormatter0.renderWrappedText(stringBuffer0, 1, 0, "\n");
assertNotNull(stringBuffer2);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer0, stringBuffer2);
assertSame(stringBuffer2, stringBuffer0);
assertSame(stringBuffer2, stringBuffer1);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, stringBuffer0.length());
assertEquals(" <\n", stringBuffer0.toString());
assertEquals(3, stringBuffer2.length());
assertEquals(" <\n", stringBuffer2.toString());
StringWriter stringWriter0 = new StringWriter(74);
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter0, false);
assertNotNull(mockPrintWriter0);
MockPrintWriter mockPrintWriter1 = new MockPrintWriter(mockPrintWriter0);
assertNotNull(mockPrintWriter1);
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
mockPrintWriter1.println((long) 1);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertNotSame(mockPrintWriter1, mockPrintWriter0);
assertEquals("1\n", stringWriter0.toString());
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
Object object0 = new Object();
assertNotNull(object0);
Locale locale0 = Locale.GERMAN;
assertNotNull(locale0);
assertEquals("de", locale0.getLanguage());
assertEquals("", locale0.getCountry());
assertEquals("deu", locale0.getISO3Language());
assertEquals("", locale0.getVariant());
assertEquals("", locale0.getISO3Country());
assertEquals("de", locale0.toString());
Object[] objectArray0 = new Object[1];
objectArray0[0] = (Object) stringBuffer2;
PrintWriter printWriter0 = mockPrintWriter0.format(locale0, "CJ", objectArray0);
assertNotNull(printWriter0);
assertEquals(1, objectArray0.length);
assertSame(mockPrintWriter0, printWriter0);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertNotSame(printWriter0, mockPrintWriter1);
assertSame(printWriter0, mockPrintWriter0);
assertEquals("1\nCJ", stringWriter0.toString());
assertEquals("de", locale0.getLanguage());
assertEquals("", locale0.getCountry());
assertEquals("deu", locale0.getISO3Language());
assertEquals("", locale0.getVariant());
assertEquals("", locale0.getISO3Country());
assertEquals("de", locale0.toString());
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
assertFalse(printWriter0.equals((Object)mockPrintWriter1));
Options options0 = new Options();
assertNotNull(options0);
// Undeclared exception!
helpFormatter0.printHelp(printWriter0, 0, "--", "usage: ", options0, 11, 12, "org.apache.commons.cli.AlreadySelectedException", false);
}
@Test(timeout = 4000)
public void test029() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
int int0 = (-2871);
helpFormatter0.setLeftPadding((-2871));
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals((-2871), helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals((-2871), helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
MockFile mockFile0 = new MockFile("-", "-");
assertNotNull(mockFile0);
MockFileOutputStream mockFileOutputStream0 = new MockFileOutputStream(mockFile0, false);
assertNotNull(mockFileOutputStream0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockFileOutputStream0);
assertNotNull(mockPrintWriter0);
String string0 = "Y\\MBP";
PrintWriter printWriter0 = mockPrintWriter0.format("YMBP", (Object[]) null);
assertNotNull(printWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertTrue(mockFile0.canRead());
assertTrue(mockFile0.isAbsolute());
assertTrue(mockFile0.canWrite());
assertTrue(mockFile0.isFile());
assertFalse(mockFile0.isHidden());
assertEquals("/experiment/-", mockFile0.getParent());
assertEquals(0L, mockFile0.getUsableSpace());
assertEquals("/experiment/-/-", mockFile0.toString());
assertFalse(mockFile0.isDirectory());
assertTrue(mockFile0.exists());
assertEquals(0L, mockFile0.getFreeSpace());
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals(0L, mockFile0.getTotalSpace());
assertEquals(0L, mockFile0.length());
assertEquals("-", mockFile0.getName());
assertTrue(mockFile0.canExecute());
mockPrintWriter0.println((float) 3);
assertSame(mockPrintWriter0, printWriter0);
assertTrue(mockFile0.canRead());
assertTrue(mockFile0.isAbsolute());
assertTrue(mockFile0.canWrite());
assertTrue(mockFile0.isFile());
assertFalse(mockFile0.isHidden());
assertEquals("/experiment/-", mockFile0.getParent());
assertEquals(0L, mockFile0.getUsableSpace());
assertEquals("/experiment/-/-", mockFile0.toString());
assertFalse(mockFile0.isDirectory());
assertTrue(mockFile0.exists());
assertEquals(0L, mockFile0.getFreeSpace());
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals(0L, mockFile0.getTotalSpace());
assertEquals(0L, mockFile0.length());
assertEquals("-", mockFile0.getName());
assertTrue(mockFile0.canExecute());
mockFileOutputStream0.flush();
assertTrue(mockFile0.canRead());
assertTrue(mockFile0.isAbsolute());
assertTrue(mockFile0.canWrite());
assertTrue(mockFile0.isFile());
assertFalse(mockFile0.isHidden());
assertEquals("/experiment/-", mockFile0.getParent());
assertEquals(0L, mockFile0.getUsableSpace());
assertEquals("/experiment/-/-", mockFile0.toString());
assertFalse(mockFile0.isDirectory());
assertTrue(mockFile0.exists());
assertEquals(0L, mockFile0.getFreeSpace());
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals(0L, mockFile0.getTotalSpace());
assertEquals(0L, mockFile0.length());
assertEquals("-", mockFile0.getName());
assertTrue(mockFile0.canExecute());
PrintWriter printWriter1 = mockPrintWriter0.format("arg", (Object[]) null);
assertNotNull(printWriter1);
assertSame(mockPrintWriter0, printWriter0);
assertSame(mockPrintWriter0, printWriter1);
assertSame(printWriter1, mockPrintWriter0);
assertSame(printWriter1, printWriter0);
assertTrue(mockFile0.canRead());
assertTrue(mockFile0.isAbsolute());
assertTrue(mockFile0.canWrite());
assertTrue(mockFile0.isFile());
assertFalse(mockFile0.isHidden());
assertEquals("/experiment/-", mockFile0.getParent());
assertEquals(0L, mockFile0.getUsableSpace());
assertEquals("/experiment/-/-", mockFile0.toString());
assertFalse(mockFile0.isDirectory());
assertTrue(mockFile0.exists());
assertEquals(0L, mockFile0.getFreeSpace());
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals(0L, mockFile0.getTotalSpace());
assertEquals(0L, mockFile0.length());
assertEquals("-", mockFile0.getName());
assertTrue(mockFile0.canExecute());
Options options0 = null;
// Undeclared exception!
// try {
helpFormatter0.printUsage(printWriter0, (-2), "YMBP", (Options) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test030() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(1, stringBuffer0.length());
assertEquals(" ", stringBuffer0.toString());
StringBuffer stringBuffer1 = stringBuffer0.append('<');
assertNotNull(stringBuffer1);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(" <", stringBuffer0.toString());
assertEquals(2, stringBuffer0.length());
assertEquals(2, stringBuffer1.length());
assertEquals(" <", stringBuffer1.toString());
StringBuffer stringBuffer2 = helpFormatter0.renderWrappedText(stringBuffer0, 1, 0, "\n");
assertNotNull(stringBuffer2);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer0, stringBuffer2);
assertSame(stringBuffer2, stringBuffer0);
assertSame(stringBuffer2, stringBuffer1);
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(" <\n", stringBuffer0.toString());
assertEquals(3, stringBuffer0.length());
assertEquals(" <\n", stringBuffer2.toString());
assertEquals(3, stringBuffer2.length());
StringWriter stringWriter0 = new StringWriter(74);
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter0, false);
assertNotNull(mockPrintWriter0);
MockPrintWriter mockPrintWriter1 = new MockPrintWriter(mockPrintWriter0);
assertNotNull(mockPrintWriter1);
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
mockPrintWriter1.println((long) 1);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertNotSame(mockPrintWriter1, mockPrintWriter0);
assertEquals("1\n", stringWriter0.toString());
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
Object object0 = new Object();
assertNotNull(object0);
Locale locale0 = Locale.GERMAN;
assertNotNull(locale0);
assertEquals("", locale0.getVariant());
assertEquals("", locale0.getCountry());
assertEquals("deu", locale0.getISO3Language());
assertEquals("de", locale0.getLanguage());
assertEquals("", locale0.getISO3Country());
assertEquals("de", locale0.toString());
Object[] objectArray0 = new Object[1];
objectArray0[0] = (Object) stringBuffer2;
PrintWriter printWriter0 = mockPrintWriter0.format(locale0, "'", objectArray0);
assertNotNull(printWriter0);
assertEquals(1, objectArray0.length);
assertSame(mockPrintWriter0, printWriter0);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertSame(printWriter0, mockPrintWriter0);
assertNotSame(printWriter0, mockPrintWriter1);
assertEquals("1\n'", stringWriter0.toString());
assertEquals("", locale0.getVariant());
assertEquals("", locale0.getCountry());
assertEquals("deu", locale0.getISO3Language());
assertEquals("de", locale0.getLanguage());
assertEquals("", locale0.getISO3Country());
assertEquals("de", locale0.toString());
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
assertFalse(printWriter0.equals((Object)mockPrintWriter1));
Options options0 = new Options();
assertNotNull(options0);
helpFormatter0.printHelp(printWriter0, 11, "%", "usage: ", options0, 74, 3, "org.apache.commons.cli.HelpFormatter", false);
assertEquals(1, objectArray0.length);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(mockPrintWriter0, printWriter0);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertSame(printWriter0, mockPrintWriter0);
assertNotSame(printWriter0, mockPrintWriter1);
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("1\n'usage: %\nusage:\n\norg.apache.\ncommons.cli\n.HelpFormat\nter\n", stringWriter0.toString());
assertEquals("", locale0.getVariant());
assertEquals("", locale0.getCountry());
assertEquals("deu", locale0.getISO3Language());
assertEquals("de", locale0.getLanguage());
assertEquals("", locale0.getISO3Country());
assertEquals("de", locale0.toString());
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
assertFalse(printWriter0.equals((Object)mockPrintWriter1));
}
@Test(timeout = 4000)
public void test031() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
StringBuffer stringBuffer0 = new StringBuffer(3);
assertNotNull(stringBuffer0);
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
StringBuffer stringBuffer1 = helpFormatter0.renderWrappedText(stringBuffer0, 1167, 1167, "mvj!|");
assertNotNull(stringBuffer1);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(5, stringBuffer0.length());
assertEquals("mvj!|", stringBuffer0.toString());
assertEquals(5, stringBuffer1.length());
assertEquals("mvj!|", stringBuffer1.toString());
String string0 = helpFormatter0.rtrim("mvj!|");
assertEquals("mvj!|", string0);
assertNotNull(string0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringWriter stringWriter1 = stringWriter0.append((CharSequence) "mvj!|");
assertNotNull(stringWriter1);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertEquals("mvj!|", stringWriter0.toString());
assertEquals("mvj!|", stringWriter1.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter1, true);
assertNotNull(mockPrintWriter0);
helpFormatter0.printHelp("aga", "w#", options0, "org.apache.commons.cli.OptionGroup", true);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Option option0 = new Option("", "aga");
assertNotNull(option0);
assertEquals((-1), Option.UNINITIALIZED);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertFalse(option0.hasLongOpt());
assertEquals("aga", option0.getDescription());
assertNull(option0.getLongOpt());
assertFalse(option0.isRequired());
assertFalse(option0.hasArg());
assertEquals("", option0.getOpt());
assertNull(option0.getValue());
assertEquals((-1), option0.getArgs());
assertEquals('\u0000', option0.getValueSeparator());
assertFalse(option0.hasArgs());
assertFalse(option0.hasValueSeparator());
assertNull(option0.getArgName());
assertFalse(option0.hasArgName());
assertFalse(option0.hasOptionalArg());
Options options1 = options0.addOption(option0);
assertNotNull(options1);
assertEquals((-1), Option.UNINITIALIZED);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertSame(options0, options1);
assertSame(options1, options0);
assertFalse(option0.hasLongOpt());
assertEquals("aga", option0.getDescription());
assertNull(option0.getLongOpt());
assertFalse(option0.isRequired());
assertFalse(option0.hasArg());
assertEquals("", option0.getOpt());
assertNull(option0.getValue());
assertEquals((-1), option0.getArgs());
assertEquals('\u0000', option0.getValueSeparator());
assertFalse(option0.hasArgs());
assertFalse(option0.hasValueSeparator());
assertNull(option0.getArgName());
assertFalse(option0.hasArgName());
assertFalse(option0.hasOptionalArg());
helpFormatter0.printHelp(1167, "org.apache.commons.cli.OptionGroup", (String) null, options1, "mvj!|", false);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals((-1), Option.UNINITIALIZED);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertSame(options0, options1);
assertSame(options1, options0);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertFalse(option0.hasLongOpt());
assertEquals("aga", option0.getDescription());
assertNull(option0.getLongOpt());
assertFalse(option0.isRequired());
assertFalse(option0.hasArg());
assertEquals("", option0.getOpt());
assertNull(option0.getValue());
assertEquals((-1), option0.getArgs());
assertEquals('\u0000', option0.getValueSeparator());
assertFalse(option0.hasArgs());
assertFalse(option0.hasValueSeparator());
assertNull(option0.getArgName());
assertFalse(option0.hasArgName());
assertFalse(option0.hasOptionalArg());
int int0 = helpFormatter0.getLeftPadding();
assertEquals(1, int0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
// Undeclared exception!
// try {
helpFormatter0.printHelp((PrintWriter) mockPrintWriter0, (-1), "mvj!|", "'", options0, 1167, (-2), (String) null, false);
// fail("Expecting exception: NegativeArraySizeException");
// } catch(NegativeArraySizeException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test032() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(1, stringBuffer0.length());
assertEquals(" ", stringBuffer0.toString());
StringBuffer stringBuffer1 = stringBuffer0.append('<');
assertNotNull(stringBuffer1);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(2, stringBuffer0.length());
assertEquals(" <", stringBuffer0.toString());
assertEquals(2, stringBuffer1.length());
assertEquals(" <", stringBuffer1.toString());
StringBuffer stringBuffer2 = helpFormatter0.renderWrappedText(stringBuffer0, 1, 0, "\n");
assertNotNull(stringBuffer2);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer0, stringBuffer2);
assertSame(stringBuffer2, stringBuffer0);
assertSame(stringBuffer2, stringBuffer1);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(3, stringBuffer0.length());
assertEquals(" <\n", stringBuffer0.toString());
assertEquals(" <\n", stringBuffer2.toString());
assertEquals(3, stringBuffer2.length());
StringWriter stringWriter0 = new StringWriter(74);
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
boolean boolean0 = false;
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter0, false);
assertNotNull(mockPrintWriter0);
MockPrintWriter mockPrintWriter1 = new MockPrintWriter(mockPrintWriter0);
assertNotNull(mockPrintWriter1);
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
mockPrintWriter1.println((long) 1);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertNotSame(mockPrintWriter1, mockPrintWriter0);
assertEquals("1\n", stringWriter0.toString());
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
Object object0 = new Object();
assertNotNull(object0);
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
Options options0 = null;
// Undeclared exception!
// try {
helpFormatter1.printHelp("-", "aga", (Options) null, "usage: ", false);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test033() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
Options options0 = new Options();
assertNotNull(options0);
List list0 = options0.getMatchingOptions("[");
assertNotNull(list0);
assertEquals(0, list0.size());
assertTrue(list0.isEmpty());
StringBuffer stringBuffer0 = new StringBuffer(3);
assertNotNull(stringBuffer0);
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
StringBuffer stringBuffer1 = helpFormatter0.renderWrappedText(stringBuffer0, 1167, 1167, "mvj!|");
assertNotNull(stringBuffer1);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(5, stringBuffer0.length());
assertEquals("mvj!|", stringBuffer0.toString());
assertEquals(5, stringBuffer1.length());
assertEquals("mvj!|", stringBuffer1.toString());
String string0 = helpFormatter0.rtrim("mvj!|");
assertEquals("mvj!|", string0);
assertNotNull(string0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringWriter stringWriter1 = stringWriter0.append((CharSequence) "mvj!|");
assertNotNull(stringWriter1);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertEquals("mvj!|", stringWriter0.toString());
assertEquals("mvj!|", stringWriter1.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter1, true);
assertNotNull(mockPrintWriter0);
Object[] objectArray0 = new Object[9];
mockPrintWriter0.println((long) 1);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertEquals("mvj!|1\n", stringWriter0.toString());
assertEquals("mvj!|1\n", stringWriter1.toString());
Object object0 = new Object();
assertNotNull(object0);
PrintWriter printWriter0 = mockPrintWriter0.format((Locale) null, "8Vk", objectArray0);
assertNotNull(printWriter0);
assertEquals(9, objectArray0.length);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertEquals("mvj!|1\n8Vk", stringWriter0.toString());
assertEquals("mvj!|1\n8Vk", stringWriter1.toString());
helpFormatter0.printHelp((PrintWriter) mockPrintWriter0, 1167, "Ww}@_#eG`vU(M", "8Vk", options0, 12, 63, "", false);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("mvj!|1\n8Vkusage: Ww}@_#eG`vU(M\n8Vk\n\n", stringWriter0.toString());
assertEquals("mvj!|1\n8Vkusage: Ww}@_#eG`vU(M\n8Vk\n\n", stringWriter1.toString());
int int0 = helpFormatter0.getLeftPadding();
assertEquals(1, int0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
}
@Test(timeout = 4000)
public void test034() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
String string0 = "MiY)b>?hs_{t1g";
Options options0 = new Options();
assertNotNull(options0);
boolean boolean0 = options0.hasOption("--");
assertFalse(boolean0);
String string1 = ")O9<YPtORc-Xe>@3s";
List list0 = options0.getMatchingOptions(")O9<YPtORc-Xe>@3s");
assertNotNull(list0);
assertEquals(0, list0.size());
assertTrue(list0.isEmpty());
helpFormatter0.setLongOptPrefix(")O9<YPtORc-Xe>@3s");
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(")O9<YPtORc-Xe>@3s", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
boolean boolean1 = false;
Options options1 = options0.addOption("", false, "\n");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
String string2 = options1.toString();
assertNotNull(string2);
assertSame(options0, options1);
assertSame(options1, options0);
assertFalse(string2.equals((Object)string1));
assertFalse(string2.equals((Object)string0));
helpFormatter0.defaultSyntaxPrefix = null;
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(")O9<YPtORc-Xe>@3s", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("\n", helpFormatter0.getNewLine());
assertNull(helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
Collection collection0 = options1.getOptionGroups();
assertNotNull(collection0);
assertSame(options0, options1);
assertSame(options1, options0);
String string3 = "Sg2zOR";
Option option0 = options1.getOption("Sg2zOR");
assertNull(option0);
assertSame(options0, options1);
assertSame(options1, options0);
boolean boolean2 = false;
List list1 = options1.helpOptions();
assertNotNull(list1);
assertSame(options0, options1);
assertSame(options1, options0);
assertNotSame(list1, list0);
assertEquals(1, list1.size());
assertFalse(list1.isEmpty());
assertFalse(list1.equals((Object)list0));
// Undeclared exception!
// try {
helpFormatter0.printHelp("MiY)b>?hs_{t1g", options1, false);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test035() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
StringBuffer stringBuffer0 = new StringBuffer();
assertNotNull(stringBuffer0);
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
Options options0 = new Options();
assertNotNull(options0);
Options options1 = new Options();
assertNotNull(options1);
assertFalse(options1.equals((Object)options0));
Options options2 = options0.addOption("", "org.apache.commons.cli.HelpFormatter$OptionComparator", true, "M5sEe,'*\"z8]");
assertNotNull(options2);
assertSame(options0, options2);
assertNotSame(options0, options1);
assertNotSame(options2, options1);
assertSame(options2, options0);
assertFalse(options0.equals((Object)options1));
assertFalse(options2.equals((Object)options1));
Comparator<Option> comparator0 = (Comparator<Option>) mock(Comparator.class, new ViolatedAssumptionAnswer());
doReturn((String) null, (String) null).when(comparator0).toString();
helpFormatter0.setOptionComparator(comparator0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
List list0 = options0.getMatchingOptions("[");
assertNotNull(list0);
assertSame(options0, options2);
assertNotSame(options0, options1);
assertTrue(list0.isEmpty());
assertEquals(0, list0.size());
assertFalse(options0.equals((Object)options1));
helpFormatter0.printHelp("usage: ", "", options0, "{P`KcORk(~yC", true);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(options0, options2);
assertNotSame(options0, options1);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertFalse(options0.equals((Object)options1));
}
@Test(timeout = 4000)
public void test036() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption("psHG", "hzL,W<)*{:", true, " ");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
helpFormatter0.printHelp("?W", "", options1, "i", true);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(options0, options1);
assertSame(options1, options0);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
}
@Test(timeout = 4000)
public void test037() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) "--");
assertNotNull(stringBuffer0);
assertEquals(2, stringBuffer0.length());
assertEquals("--", stringBuffer0.toString());
String string0 = null;
// Undeclared exception!
// try {
helpFormatter0.renderWrappedText(stringBuffer0, (-1560), 32, (String) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test038() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
Options options0 = new Options();
assertNotNull(options0);
StringBuffer stringBuffer0 = new StringBuffer(3);
assertNotNull(stringBuffer0);
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
StringBuffer stringBuffer1 = helpFormatter0.renderWrappedText(stringBuffer0, 1167, 1167, "mvj!|");
assertNotNull(stringBuffer1);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("mvj!|", stringBuffer0.toString());
assertEquals(5, stringBuffer0.length());
assertEquals("mvj!|", stringBuffer1.toString());
assertEquals(5, stringBuffer1.length());
String string0 = helpFormatter0.rtrim("mvj!|");
assertEquals("mvj!|", string0);
assertNotNull(string0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringWriter stringWriter1 = stringWriter0.append((CharSequence) "mvj!|");
assertNotNull(stringWriter1);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertEquals("mvj!|", stringWriter0.toString());
assertEquals("mvj!|", stringWriter1.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter1, true);
assertNotNull(mockPrintWriter0);
helpFormatter0.defaultLeftPad = (-1267);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals((-1267), helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
Object[] objectArray0 = new Object[9];
objectArray0[0] = (Object) stringBuffer1;
objectArray0[1] = (Object) stringWriter1;
objectArray0[2] = (Object) "mvj!|";
objectArray0[3] = (Object) stringBuffer1;
objectArray0[4] = (Object) stringBuffer1;
objectArray0[5] = (Object) "mvj!|";
objectArray0[6] = (Object) stringBuffer0;
// Undeclared exception!
// try {
helpFormatter0.printHelp("mvj!|", "org.apache.commons.cli.HelpFormatter", options0, "", true);
// fail("Expecting exception: NegativeArraySizeException");
// } catch(NegativeArraySizeException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test039() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringBuffer stringBuffer0 = stringWriter0.getBuffer();
assertNotNull(stringBuffer0);
assertEquals("", stringWriter0.toString());
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
StringBuffer stringBuffer1 = helpFormatter1.renderWrappedText(stringBuffer0, 1, 1, "\n");
assertNotNull(stringBuffer1);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertNotSame(helpFormatter1, helpFormatter0);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("\n ", stringWriter0.toString());
assertEquals(2, stringBuffer0.length());
assertEquals("\n ", stringBuffer0.toString());
assertEquals("\n ", stringBuffer1.toString());
assertEquals(2, stringBuffer1.length());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
Options options0 = new Options();
assertNotNull(options0);
Collection collection0 = options0.getOptions();
assertNotNull(collection0);
Options options1 = options0.addOption("", false, "");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
List list0 = options1.getMatchingOptions("");
assertNotNull(list0);
assertSame(options0, options1);
assertSame(options1, options0);
assertTrue(list0.isEmpty());
assertEquals(0, list0.size());
helpFormatter1.printHelp("arg", "'", options0, "Slz#", true);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertNotSame(helpFormatter1, helpFormatter0);
assertSame(options0, options1);
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
// Undeclared exception!
helpFormatter1.renderOptions(stringBuffer0, 1, options0, 48, 74);
}
@Test(timeout = 4000)
public void test040() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(" ", stringBuffer0.toString());
assertEquals(1, stringBuffer0.length());
StringBuffer stringBuffer1 = stringBuffer0.append('<');
assertNotNull(stringBuffer1);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(" <", stringBuffer0.toString());
assertEquals(2, stringBuffer0.length());
assertEquals(2, stringBuffer1.length());
assertEquals(" <", stringBuffer1.toString());
StringBuffer stringBuffer2 = helpFormatter0.renderWrappedText(stringBuffer0, 1, 0, "\n");
assertNotNull(stringBuffer2);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer0, stringBuffer2);
assertSame(stringBuffer2, stringBuffer1);
assertSame(stringBuffer2, stringBuffer0);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(3, stringBuffer0.length());
assertEquals(" <\n", stringBuffer0.toString());
assertEquals(3, stringBuffer2.length());
assertEquals(" <\n", stringBuffer2.toString());
Options options0 = new Options();
assertNotNull(options0);
MockFile mockFile0 = new MockFile((File) null, "[");
assertNotNull(mockFile0);
MockPrintStream mockPrintStream0 = new MockPrintStream(mockFile0);
assertNotNull(mockPrintStream0);
BufferedOutputStream bufferedOutputStream0 = new BufferedOutputStream(mockPrintStream0, 32);
assertNotNull(bufferedOutputStream0);
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals(0L, mockFile0.getTotalSpace());
assertNull(mockFile0.getParent());
assertTrue(mockFile0.exists());
assertEquals(0L, mockFile0.getFreeSpace());
assertEquals("[", mockFile0.getName());
assertFalse(mockFile0.isAbsolute());
assertEquals(0L, mockFile0.length());
assertFalse(mockFile0.isDirectory());
assertTrue(mockFile0.canWrite());
assertEquals("[", mockFile0.toString());
assertFalse(mockFile0.isHidden());
assertEquals(0L, mockFile0.getUsableSpace());
assertTrue(mockFile0.canExecute());
assertTrue(mockFile0.canRead());
assertTrue(mockFile0.isFile());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(bufferedOutputStream0, false);
assertNotNull(mockPrintWriter0);
mockPrintWriter0.println((-1345L));
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals(0L, mockFile0.getTotalSpace());
assertNull(mockFile0.getParent());
assertTrue(mockFile0.exists());
assertEquals(0L, mockFile0.getFreeSpace());
assertEquals("[", mockFile0.getName());
assertFalse(mockFile0.isAbsolute());
assertEquals(0L, mockFile0.length());
assertFalse(mockFile0.isDirectory());
assertTrue(mockFile0.canWrite());
assertEquals("[", mockFile0.toString());
assertFalse(mockFile0.isHidden());
assertEquals(0L, mockFile0.getUsableSpace());
assertTrue(mockFile0.canExecute());
assertTrue(mockFile0.canRead());
assertTrue(mockFile0.isFile());
Object object0 = new Object();
assertNotNull(object0);
Locale locale0 = Locale.FRANCE;
assertNotNull(locale0);
assertEquals("FRA", locale0.getISO3Country());
assertEquals("fr_FR", locale0.toString());
assertEquals("fra", locale0.getISO3Language());
assertEquals("fr", locale0.getLanguage());
assertEquals("FR", locale0.getCountry());
assertEquals("", locale0.getVariant());
Locale locale1 = locale0.stripExtensions();
assertNotNull(locale1);
assertSame(locale0, locale1);
assertSame(locale1, locale0);
assertEquals("FRA", locale0.getISO3Country());
assertEquals("fr_FR", locale0.toString());
assertEquals("fra", locale0.getISO3Language());
assertEquals("fr", locale0.getLanguage());
assertEquals("FR", locale0.getCountry());
assertEquals("", locale0.getVariant());
assertEquals("FRA", locale1.getISO3Country());
assertEquals("FR", locale1.getCountry());
assertEquals("", locale1.getVariant());
assertEquals("fr", locale1.getLanguage());
assertEquals("fra", locale1.getISO3Language());
assertEquals("fr_FR", locale1.toString());
Object[] objectArray0 = new Object[8];
objectArray0[0] = (Object) stringBuffer1;
objectArray0[1] = (Object) helpFormatter0;
objectArray0[2] = (Object) helpFormatter0;
objectArray0[3] = (Object) stringBuffer2;
objectArray0[4] = (Object) mockFile0;
objectArray0[5] = (Object) mockFile0;
objectArray0[6] = (Object) bufferedOutputStream0;
objectArray0[7] = (Object) locale1;
PrintWriter printWriter0 = mockPrintWriter0.format(locale1, "arg", objectArray0);
assertNotNull(printWriter0);
assertEquals(8, objectArray0.length);
assertSame(printWriter0, mockPrintWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertSame(locale0, locale1);
assertSame(locale1, locale0);
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals(0L, mockFile0.getTotalSpace());
assertNull(mockFile0.getParent());
assertTrue(mockFile0.exists());
assertEquals(0L, mockFile0.getFreeSpace());
assertEquals("[", mockFile0.getName());
assertFalse(mockFile0.isAbsolute());
assertEquals(0L, mockFile0.length());
assertFalse(mockFile0.isDirectory());
assertTrue(mockFile0.canWrite());
assertEquals("[", mockFile0.toString());
assertFalse(mockFile0.isHidden());
assertEquals(0L, mockFile0.getUsableSpace());
assertTrue(mockFile0.canExecute());
assertTrue(mockFile0.canRead());
assertTrue(mockFile0.isFile());
assertEquals("FRA", locale0.getISO3Country());
assertEquals("fr_FR", locale0.toString());
assertEquals("fra", locale0.getISO3Language());
assertEquals("fr", locale0.getLanguage());
assertEquals("FR", locale0.getCountry());
assertEquals("", locale0.getVariant());
assertEquals("FRA", locale1.getISO3Country());
assertEquals("FR", locale1.getCountry());
assertEquals("", locale1.getVariant());
assertEquals("fr", locale1.getLanguage());
assertEquals("fra", locale1.getISO3Language());
assertEquals("fr_FR", locale1.toString());
String string0 = "'$";
// Undeclared exception!
// try {
helpFormatter0.printHelp(printWriter0, 9, "", "'$", options0, 9, 12, "", false);
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test041() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
StringBuffer stringBuffer0 = new StringBuffer();
assertNotNull(stringBuffer0);
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption("arg", true, "");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
Options options2 = new Options();
assertNotNull(options2);
assertFalse(options2.equals((Object)options0));
assertFalse(options2.equals((Object)options1));
MockPrintWriter mockPrintWriter0 = new MockPrintWriter("arg");
assertNotNull(mockPrintWriter0);
mockPrintWriter0.println(1487L);
Object object0 = new Object();
assertNotNull(object0);
Locale locale0 = Locale.FRENCH;
assertNotNull(locale0);
assertEquals("", locale0.getISO3Country());
assertEquals("fr", locale0.getLanguage());
assertEquals("", locale0.getCountry());
assertEquals("fr", locale0.toString());
assertEquals("", locale0.getVariant());
assertEquals("fra", locale0.getISO3Language());
Object[] objectArray0 = new Object[8];
objectArray0[0] = (Object) "";
Object object1 = new Object();
assertNotNull(object1);
assertFalse(object1.equals((Object)object0));
objectArray0[1] = object1;
objectArray0[2] = (Object) options2;
objectArray0[3] = (Object) options0;
objectArray0[4] = (Object) mockPrintWriter0;
objectArray0[5] = (Object) mockPrintWriter0;
objectArray0[6] = (Object) mockPrintWriter0;
objectArray0[7] = (Object) options0;
PrintWriter printWriter0 = mockPrintWriter0.format(locale0, "usage: ", objectArray0);
assertNotNull(printWriter0);
assertEquals(8, objectArray0.length);
assertSame(printWriter0, mockPrintWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertEquals("", locale0.getISO3Country());
assertEquals("fr", locale0.getLanguage());
assertEquals("", locale0.getCountry());
assertEquals("fr", locale0.toString());
assertEquals("", locale0.getVariant());
assertEquals("fra", locale0.getISO3Language());
helpFormatter0.printHelp(printWriter0, 12, "[", "", options1, 5, 1, (String) null, false);
assertEquals(8, objectArray0.length);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertNotSame(options0, options2);
assertSame(options0, options1);
assertSame(printWriter0, mockPrintWriter0);
assertNotSame(options1, options2);
assertSame(options1, options0);
assertSame(mockPrintWriter0, printWriter0);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("", locale0.getISO3Country());
assertEquals("fr", locale0.getLanguage());
assertEquals("", locale0.getCountry());
assertEquals("fr", locale0.toString());
assertEquals("", locale0.getVariant());
assertEquals("fra", locale0.getISO3Language());
assertFalse(options0.equals((Object)options2));
assertFalse(options1.equals((Object)options2));
// Undeclared exception!
// try {
helpFormatter0.renderOptions(stringBuffer0, 31, options2, 1, (-5484));
// fail("Expecting exception: NegativeArraySizeException");
// } catch(NegativeArraySizeException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test042() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(" ", stringBuffer0.toString());
assertEquals(1, stringBuffer0.length());
Options options0 = new Options();
assertNotNull(options0);
helpFormatter0.printHelp("?W", "org.apache.commons.cli.Options", options0, "8|a9gd|i06je[7Hzo", false);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
MockFile mockFile0 = new MockFile("WIcv");
assertNotNull(mockFile0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockFile0);
assertNotNull(mockPrintWriter0);
PrintWriter printWriter0 = mockPrintWriter0.append('~');
assertNotNull(printWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertFalse(mockFile0.isDirectory());
assertEquals(0L, mockFile0.getFreeSpace());
assertTrue(mockFile0.exists());
assertEquals("WIcv", mockFile0.toString());
assertEquals(0L, mockFile0.getTotalSpace());
assertNull(mockFile0.getParent());
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals("WIcv", mockFile0.getName());
assertTrue(mockFile0.isFile());
assertTrue(mockFile0.canWrite());
assertTrue(mockFile0.canRead());
assertEquals(0L, mockFile0.getUsableSpace());
assertFalse(mockFile0.isHidden());
assertTrue(mockFile0.canExecute());
assertFalse(mockFile0.isAbsolute());
assertEquals(0L, mockFile0.length());
// Undeclared exception!
helpFormatter0.printUsage(printWriter0, 0, "WIcv");
}
@Test(timeout = 4000)
public void test043() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
StringBuffer stringBuffer0 = helpFormatter0.renderOptions((StringBuffer) null, 9, options0, 9, 10);
assertNull(stringBuffer0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Collection collection0 = options0.getOptions();
assertNotNull(collection0);
// Undeclared exception!
// try {
helpFormatter0.renderOptions((StringBuffer) null, (-1107), options0, (-1178), (-1491));
// fail("Expecting exception: NegativeArraySizeException");
// } catch(NegativeArraySizeException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test044() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
StringBuffer stringBuffer0 = new StringBuffer();
assertNotNull(stringBuffer0);
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
String string0 = helpFormatter0.createPadding(0);
assertEquals("", string0);
assertNotNull(string0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
Options options1 = new Options();
assertNotNull(options1);
assertFalse(options1.equals((Object)options0));
// Undeclared exception!
helpFormatter1.printHelp(1, "org.apache.commons.cli.HelpFormatter$OptionComparator", "--", options1, "", true);
}
@Test(timeout = 4000)
public void test045() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
File file0 = null;
String string0 = ">gTf>[|k!";
ByteArrayOutputStream byteArrayOutputStream0 = new ByteArrayOutputStream(3);
assertNotNull(byteArrayOutputStream0);
assertEquals(0, byteArrayOutputStream0.size());
assertEquals("", byteArrayOutputStream0.toString());
MockPrintStream mockPrintStream0 = new MockPrintStream(byteArrayOutputStream0);
assertNotNull(mockPrintStream0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockPrintStream0, true);
assertNotNull(mockPrintWriter0);
Locale locale0 = Locale.GERMAN;
assertNotNull(locale0);
assertEquals("", locale0.getISO3Country());
assertEquals("de", locale0.toString());
assertEquals("de", locale0.getLanguage());
assertEquals("deu", locale0.getISO3Language());
assertEquals("", locale0.getCountry());
assertEquals("", locale0.getVariant());
Object[] objectArray0 = new Object[6];
objectArray0[0] = (Object) byteArrayOutputStream0;
objectArray0[1] = (Object) locale0;
objectArray0[2] = (Object) byteArrayOutputStream0;
objectArray0[3] = (Object) ">gTf>[|k!";
objectArray0[4] = (Object) helpFormatter0;
objectArray0[5] = (Object) locale0;
PrintWriter printWriter0 = mockPrintWriter0.format(locale0, "t?)", objectArray0);
assertNotNull(printWriter0);
assertEquals(6, objectArray0.length);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertEquals(3, byteArrayOutputStream0.size());
assertEquals("t?)", byteArrayOutputStream0.toString());
assertEquals("", locale0.getISO3Country());
assertEquals("de", locale0.toString());
assertEquals("de", locale0.getLanguage());
assertEquals("deu", locale0.getISO3Language());
assertEquals("", locale0.getCountry());
assertEquals("", locale0.getVariant());
Options options0 = new Options();
assertNotNull(options0);
OptionGroup optionGroup0 = new OptionGroup();
assertNotNull(optionGroup0);
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
Options options1 = options0.addOptionGroup(optionGroup0);
assertNotNull(options1);
assertSame(options1, options0);
assertSame(options0, options1);
assertFalse(optionGroup0.isRequired());
assertNull(optionGroup0.getSelected());
// Undeclared exception!
// try {
helpFormatter0.printHelp(printWriter0, (-1008), "t9p(bb&P98", "", options1, 1722, 1722, "", true);
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test046() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
StringBuffer stringBuffer0 = new StringBuffer();
assertNotNull(stringBuffer0);
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
Options options0 = new Options();
assertNotNull(options0);
String string0 = "/]9%zC#y4uU`Uy5";
int int0 = helpFormatter0.findWrapPos("/]9%zC#y4uU`Uy5", 5, 0);
assertEquals(5, int0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
String string1 = helpFormatter0.getSyntaxPrefix();
assertEquals("usage: ", string1);
assertNotNull(string1);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertFalse(string1.equals((Object)string0));
boolean boolean0 = true;
int int1 = 8;
String string2 = "K}k;<";
// Undeclared exception!
// try {
options0.addOption("--", "-", true, "usage: ");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // The option '--' contains an illegal character : '-'
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test047() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
StringBuffer stringBuffer0 = new StringBuffer();
assertNotNull(stringBuffer0);
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
Options options0 = new Options();
assertNotNull(options0);
Option option0 = options0.getOption("jB\"RtIg|");
assertNull(option0);
Options options1 = options0.addOption("arg", true, "");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
Options options2 = new Options();
assertNotNull(options2);
assertFalse(options2.equals((Object)options0));
assertFalse(options2.equals((Object)options1));
List list0 = options0.getMatchingOptions("[");
assertNotNull(list0);
assertNotSame(options0, options2);
assertSame(options0, options1);
assertEquals(0, list0.size());
assertTrue(list0.isEmpty());
assertFalse(options0.equals((Object)options2));
// Undeclared exception!
// try {
helpFormatter0.printUsage((PrintWriter) null, (-2621), (String) null, options0);
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test048() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
// Undeclared exception!
// try {
helpFormatter0.createPadding((-990));
// fail("Expecting exception: NegativeArraySizeException");
// } catch(NegativeArraySizeException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test049() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
Options options0 = new Options();
assertNotNull(options0);
StringBuffer stringBuffer0 = new StringBuffer(3);
assertNotNull(stringBuffer0);
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
StringBuffer stringBuffer1 = helpFormatter0.renderWrappedText(stringBuffer0, 1167, 1167, "mvj!|");
assertNotNull(stringBuffer1);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(5, stringBuffer0.length());
assertEquals("mvj!|", stringBuffer0.toString());
assertEquals(5, stringBuffer1.length());
assertEquals("mvj!|", stringBuffer1.toString());
String string0 = helpFormatter0.rtrim("mvj!|");
assertEquals("mvj!|", string0);
assertNotNull(string0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringWriter stringWriter1 = stringWriter0.append((CharSequence) "mvj!|");
assertNotNull(stringWriter1);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertEquals("mvj!|", stringWriter0.toString());
assertEquals("mvj!|", stringWriter1.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter1, true);
assertNotNull(mockPrintWriter0);
Object[] objectArray0 = new Object[9];
objectArray0[0] = (Object) stringBuffer1;
objectArray0[1] = (Object) stringWriter1;
objectArray0[2] = (Object) "mvj!|";
objectArray0[3] = (Object) stringBuffer1;
objectArray0[4] = (Object) stringBuffer1;
objectArray0[5] = (Object) "mvj!|";
objectArray0[6] = (Object) stringBuffer0;
objectArray0[7] = (Object) options0;
mockPrintWriter0.println(0L);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertEquals("mvj!|0\n", stringWriter0.toString());
assertEquals("mvj!|0\n", stringWriter1.toString());
Object object0 = new Object();
assertNotNull(object0);
objectArray0[8] = object0;
PrintWriter printWriter0 = mockPrintWriter0.format((Locale) null, "", objectArray0);
assertNotNull(printWriter0);
assertEquals(9, objectArray0.length);
assertSame(printWriter0, mockPrintWriter0);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertEquals("mvj!|0\n", stringWriter0.toString());
assertEquals("mvj!|0\n", stringWriter1.toString());
helpFormatter0.printHelp(printWriter0, 1167, "mvj!|", "", options0, 1167, 12, "", false);
assertEquals(9, objectArray0.length);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertSame(printWriter0, mockPrintWriter0);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("mvj!|0\nusage: mvj!|\n\n", stringWriter0.toString());
assertEquals("mvj!|0\nusage: mvj!|\n\n", stringWriter1.toString());
}
@Test(timeout = 4000)
public void test050() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
Options options0 = new Options();
assertNotNull(options0);
helpFormatter0.printHelp("[", (String) null, options0, (String) null, true);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
String string0 = helpFormatter0.defaultSyntaxPrefix;
assertEquals("usage: ", string0);
assertNotNull(string0);
MockFile mockFile0 = new MockFile("--", "");
assertNotNull(mockFile0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockFile0);
assertNotNull(mockPrintWriter0);
PrintWriter printWriter0 = mockPrintWriter0.append((CharSequence) "usage: ");
assertNotNull(printWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertTrue(mockFile0.isAbsolute());
assertEquals("/experiment", mockFile0.getParent());
assertTrue(mockFile0.canExecute());
assertTrue(mockFile0.exists());
assertEquals(0L, mockFile0.length());
assertTrue(mockFile0.isFile());
assertTrue(mockFile0.canRead());
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals(0L, mockFile0.getTotalSpace());
assertFalse(mockFile0.isDirectory());
assertFalse(mockFile0.isHidden());
assertEquals(0L, mockFile0.getFreeSpace());
assertEquals("/experiment/--", mockFile0.toString());
assertEquals(0L, mockFile0.getUsableSpace());
assertTrue(mockFile0.canWrite());
assertEquals("--", mockFile0.getName());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals("-", helpFormatter1.getOptPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
// Undeclared exception!
helpFormatter1.printUsage((PrintWriter) mockPrintWriter0, 1, "usage: ", options0);
}
@Test(timeout = 4000)
public void test051() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
String string0 = null;
String string1 = helpFormatter0.rtrim((String) null);
assertNull(string1);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
MockPrintWriter mockPrintWriter0 = null;
// try {
mockPrintWriter0 = new MockPrintWriter((String) null, (String) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // charsetName
// //
// verifyException("org.evosuite.runtime.mock.java.io.MockPrintWriter", e);
// }
}
@Test(timeout = 4000)
public void test052() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
Options options0 = new Options();
assertNotNull(options0);
Collection collection0 = options0.getOptions();
assertNotNull(collection0);
int int0 = helpFormatter0.findWrapPos("-", (-37), 3);
assertEquals((-34), int0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
String string0 = helpFormatter0.getSyntaxPrefix();
assertEquals("usage: ", string0);
assertNotNull(string0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
// Undeclared exception!
// try {
helpFormatter0.printHelp((-37), "usage: ", "", options0, "", false);
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test053() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
String string0 = "-";
Options options0 = new Options();
assertNotNull(options0);
boolean boolean0 = false;
// Undeclared exception!
// try {
helpFormatter0.printHelp((PrintWriter) null, 168, (String) null, (String) null, options0, (-1916), 20, (String) null);
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test054() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) "--");
assertNotNull(stringBuffer0);
assertEquals("--", stringBuffer0.toString());
assertEquals(2, stringBuffer0.length());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
// Undeclared exception!
// try {
helpFormatter1.renderWrappedText(stringBuffer0, 1, (-2), "arg");
// fail("Expecting exception: NegativeArraySizeException");
// } catch(NegativeArraySizeException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test055() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
Options options0 = new Options();
assertNotNull(options0);
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
helpFormatter1.printHelp("'^fe+*Go$I2K", "usage: ", options0, "arg", false);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertNotSame(helpFormatter1, helpFormatter0);
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
HelpFormatter helpFormatter2 = new HelpFormatter();
assertNotNull(helpFormatter2);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter2.defaultLeftPad);
assertEquals(3, helpFormatter2.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter2.defaultWidth);
assertEquals(74, helpFormatter2.getWidth());
assertEquals("--", helpFormatter2.getLongOptPrefix());
assertEquals(1, helpFormatter2.getLeftPadding());
assertEquals("arg", helpFormatter2.getArgName());
assertEquals("\n", helpFormatter2.getNewLine());
assertEquals("-", helpFormatter2.getOptPrefix());
assertEquals(" ", helpFormatter2.getLongOptSeparator());
assertEquals(3, helpFormatter2.getDescPadding());
assertEquals("usage: ", helpFormatter2.getSyntaxPrefix());
assertFalse(helpFormatter2.equals((Object)helpFormatter0));
assertFalse(helpFormatter2.equals((Object)helpFormatter1));
String string0 = helpFormatter2.getLongOptPrefix();
assertEquals("--", string0);
assertNotNull(string0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter2.defaultLeftPad);
assertEquals(3, helpFormatter2.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter2.defaultWidth);
assertNotSame(helpFormatter2, helpFormatter0);
assertNotSame(helpFormatter2, helpFormatter1);
assertEquals(74, helpFormatter2.getWidth());
assertEquals("--", helpFormatter2.getLongOptPrefix());
assertEquals(1, helpFormatter2.getLeftPadding());
assertEquals("arg", helpFormatter2.getArgName());
assertEquals("\n", helpFormatter2.getNewLine());
assertEquals("-", helpFormatter2.getOptPrefix());
assertEquals(" ", helpFormatter2.getLongOptSeparator());
assertEquals(3, helpFormatter2.getDescPadding());
assertEquals("usage: ", helpFormatter2.getSyntaxPrefix());
assertFalse(helpFormatter2.equals((Object)helpFormatter0));
assertFalse(helpFormatter2.equals((Object)helpFormatter1));
MockFile mockFile0 = new MockFile("WzL~V1a:S!", "\n");
assertNotNull(mockFile0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockFile0);
assertNotNull(mockPrintWriter0);
PrintWriter printWriter0 = mockPrintWriter0.append((CharSequence) " ");
assertNotNull(printWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals(0L, mockFile0.getTotalSpace());
assertEquals(0L, mockFile0.length());
assertTrue(mockFile0.isAbsolute());
assertEquals("\n", mockFile0.getName());
assertFalse(mockFile0.isDirectory());
assertEquals(0L, mockFile0.getFreeSpace());
assertTrue(mockFile0.canWrite());
assertEquals("/experiment/WzL~V1a:S!", mockFile0.getParent());
assertEquals(0L, mockFile0.getUsableSpace());
assertFalse(mockFile0.isHidden());
assertTrue(mockFile0.canExecute());
assertEquals("/experiment/WzL~V1a:S!/\n", mockFile0.toString());
assertTrue(mockFile0.exists());
assertTrue(mockFile0.canRead());
assertTrue(mockFile0.isFile());
helpFormatter0.printUsage(printWriter0, 3, "", options0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertNotSame(helpFormatter0, helpFormatter2);
assertNotSame(helpFormatter0, helpFormatter1);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals(0L, mockFile0.getTotalSpace());
assertEquals(0L, mockFile0.length());
assertTrue(mockFile0.isAbsolute());
assertEquals("\n", mockFile0.getName());
assertFalse(mockFile0.isDirectory());
assertEquals(0L, mockFile0.getFreeSpace());
assertTrue(mockFile0.canWrite());
assertEquals("/experiment/WzL~V1a:S!", mockFile0.getParent());
assertEquals(0L, mockFile0.getUsableSpace());
assertFalse(mockFile0.isHidden());
assertTrue(mockFile0.canExecute());
assertEquals("/experiment/WzL~V1a:S!/\n", mockFile0.toString());
assertTrue(mockFile0.exists());
assertTrue(mockFile0.canRead());
assertTrue(mockFile0.isFile());
assertFalse(helpFormatter0.equals((Object)helpFormatter2));
assertFalse(helpFormatter0.equals((Object)helpFormatter1));
}
@Test(timeout = 4000)
public void test056() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
String string0 = helpFormatter0.createPadding(63);
assertEquals(" ", string0);
assertNotNull(string0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
Options options0 = new Options();
assertNotNull(options0);
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
Options options1 = new Options();
assertNotNull(options1);
assertFalse(options1.equals((Object)options0));
// Undeclared exception!
helpFormatter1.printHelp(1, "--", "", options1, "usage: ", true);
}
@Test(timeout = 4000)
public void test057() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
Options options0 = new Options();
assertNotNull(options0);
String string0 = "";
// Undeclared exception!
// try {
helpFormatter0.printHelp("", "", options0, "&(t-vH;&)&s");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test058() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
Comparator<Integer> comparator0 = (Comparator<Integer>) mock(Comparator.class, new ViolatedAssumptionAnswer());
doReturn("", "usage: ", (String) null, (String) null).when(comparator0).toString();
helpFormatter0.setOptionComparator(comparator0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
Options options0 = new Options();
assertNotNull(options0);
String string0 = options0.toString();
assertNotNull(string0);
helpFormatter0.printHelp("org.apache.commons.cli.HelpFormatter", "org.apache.commons.cli.HelpFormatter", options0, ":9 eV4Z!_,s", false);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
helpFormatter0.printHelp(2, "The option '", "org.apache.commons.cli.HelpFormatter", options0, "org.apache.commons.cli.HelpFormatter", true);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
helpFormatter0.printHelp("[ Options: [ short java.util.HashMap@0000000004 ] [ long {} ]", (String) null, options0, (String) null);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
}
@Test(timeout = 4000)
public void test059() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
Options options0 = new Options();
assertNotNull(options0);
// Undeclared exception!
// try {
helpFormatter0.printHelp((String) null, options0, false);
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test060() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
boolean boolean0 = FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);
assertFalse(boolean0);
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(1, stringBuffer0.length());
assertEquals(" ", stringBuffer0.toString());
Options options0 = new Options();
assertNotNull(options0);
String string0 = options0.toString();
assertNotNull(string0);
Options options1 = options0.addOption("arg", "", false, "");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
Options options2 = options1.addOption("", true, "HJe:]8.~yJ)pK$^^`");
assertNotNull(options2);
assertSame(options0, options1);
assertSame(options0, options2);
assertSame(options1, options2);
assertSame(options1, options0);
assertSame(options2, options0);
assertSame(options2, options1);
helpFormatter0.printHelp("wrDV1XI_uX|9qI'ZH", "[ Options: [ short java.util.HashMap@0000000004 ] [ long {} ]", options1, "", false);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(options0, options1);
assertSame(options0, options2);
assertSame(options1, options2);
assertSame(options1, options0);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
// Undeclared exception!
// try {
helpFormatter0.renderOptions(stringBuffer0, 764, options2, 764, (-593));
// fail("Expecting exception: NegativeArraySizeException");
// } catch(NegativeArraySizeException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test061() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringBuffer stringBuffer0 = stringWriter0.getBuffer();
assertNotNull(stringBuffer0);
assertEquals("", stringWriter0.toString());
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption((String) null, false, "");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
helpFormatter0.printHelp("n[", "RJ}aYwE", options1, ">", true);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertNotSame(helpFormatter0, helpFormatter1);
assertSame(options0, options1);
assertSame(options1, options0);
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertFalse(helpFormatter0.equals((Object)helpFormatter1));
}
@Test(timeout = 4000)
public void test062() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(1, stringBuffer0.length());
assertEquals(" ", stringBuffer0.toString());
Options options0 = new Options();
assertNotNull(options0);
String string0 = options0.toString();
assertNotNull(string0);
Options options1 = options0.addOption("arg", "", false, "");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
helpFormatter0.printHelp(":9 eV4Z!_,s", "[ Options: [ short java.util.HashMap@0000000004 ] [ long {} ]", options0, "", true);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(options0, options1);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
// Undeclared exception!
// try {
helpFormatter0.printHelp(2, "", "", options0, (String) null, true);
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test063() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringBuffer stringBuffer0 = stringWriter0.getBuffer();
assertNotNull(stringBuffer0);
assertEquals("", stringWriter0.toString());
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
StringBuffer stringBuffer1 = helpFormatter1.renderWrappedText(stringBuffer0, 1, 1, "\n");
assertNotNull(stringBuffer1);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertNotSame(helpFormatter1, helpFormatter0);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals("\n ", stringWriter0.toString());
assertEquals(2, stringBuffer0.length());
assertEquals("\n ", stringBuffer0.toString());
assertEquals(2, stringBuffer1.length());
assertEquals("\n ", stringBuffer1.toString());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption("", false, "");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
List list0 = options1.getMatchingOptions("");
assertNotNull(list0);
assertSame(options0, options1);
assertSame(options1, options0);
assertEquals(0, list0.size());
assertTrue(list0.isEmpty());
helpFormatter1.printHelp("arg", "'", options0, "Slz#", true);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertNotSame(helpFormatter1, helpFormatter0);
assertSame(options0, options1);
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
}
@Test(timeout = 4000)
public void test064() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
int int0 = helpFormatter0.getWidth();
assertEquals(74, int0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
String string0 = helpFormatter0.getLongOptSeparator();
assertEquals(" ", string0);
assertNotNull(string0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
String string1 = helpFormatter0.getNewLine();
assertEquals("\n", string1);
assertNotNull(string1);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertFalse(string1.equals((Object)string0));
String string2 = helpFormatter0.getLongOptSeparator();
assertEquals(" ", string2);
assertNotNull(string2);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertFalse(string2.equals((Object)string1));
String string3 = helpFormatter0.createPadding(74);
assertEquals(" ", string3);
assertNotNull(string3);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertFalse(string3.equals((Object)string2));
assertFalse(string3.equals((Object)string1));
assertFalse(string3.equals((Object)string0));
File file0 = MockFile.createTempFile(" ", "");
assertNotNull(file0);
assertTrue(file0.isAbsolute());
assertTrue(file0.canRead());
assertTrue(file0.isFile());
assertTrue(file0.canExecute());
assertFalse(file0.isHidden());
assertEquals(1392409281320L, file0.lastModified());
assertEquals(" 0", file0.getName());
assertEquals(0L, file0.getUsableSpace());
assertTrue(file0.exists());
assertEquals("/tmp", file0.getParent());
assertEquals(0L, file0.getTotalSpace());
assertEquals(0L, file0.getFreeSpace());
assertTrue(file0.canWrite());
assertFalse(file0.isDirectory());
assertEquals(0L, file0.length());
assertEquals("/tmp/ 0", file0.toString());
MockFileOutputStream mockFileOutputStream0 = new MockFileOutputStream(file0, false);
assertNotNull(mockFileOutputStream0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockFileOutputStream0, false);
assertNotNull(mockPrintWriter0);
PrintWriter printWriter0 = mockPrintWriter0.append((CharSequence) "arg");
assertNotNull(printWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertTrue(file0.isAbsolute());
assertTrue(file0.canRead());
assertTrue(file0.isFile());
assertTrue(file0.canExecute());
assertFalse(file0.isHidden());
assertEquals(1392409281320L, file0.lastModified());
assertEquals(" 0", file0.getName());
assertEquals(0L, file0.getUsableSpace());
assertTrue(file0.exists());
assertEquals("/tmp", file0.getParent());
assertEquals(0L, file0.getTotalSpace());
assertEquals(0L, file0.getFreeSpace());
assertTrue(file0.canWrite());
assertFalse(file0.isDirectory());
assertEquals(0L, file0.length());
assertEquals("/tmp/ 0", file0.toString());
MockPrintWriter mockPrintWriter1 = new MockPrintWriter(printWriter0);
assertNotNull(mockPrintWriter1);
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
assertFalse(mockPrintWriter1.equals((Object)printWriter0));
helpFormatter0.printUsage((PrintWriter) mockPrintWriter1, 74, " ");
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertSame(mockPrintWriter0, printWriter0);
assertNotSame(mockPrintWriter0, mockPrintWriter1);
assertSame(printWriter0, mockPrintWriter0);
assertNotSame(printWriter0, mockPrintWriter1);
assertNotSame(mockPrintWriter1, mockPrintWriter0);
assertNotSame(mockPrintWriter1, printWriter0);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertTrue(file0.isAbsolute());
assertTrue(file0.canRead());
assertTrue(file0.isFile());
assertTrue(file0.canExecute());
assertFalse(file0.isHidden());
assertEquals(1392409281320L, file0.lastModified());
assertEquals(" 0", file0.getName());
assertEquals(0L, file0.getUsableSpace());
assertTrue(file0.exists());
assertEquals("/tmp", file0.getParent());
assertEquals(0L, file0.getTotalSpace());
assertEquals(0L, file0.getFreeSpace());
assertTrue(file0.canWrite());
assertFalse(file0.isDirectory());
assertEquals(0L, file0.length());
assertEquals("/tmp/ 0", file0.toString());
assertFalse(mockPrintWriter0.equals((Object)mockPrintWriter1));
assertFalse(printWriter0.equals((Object)mockPrintWriter1));
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
assertFalse(mockPrintWriter1.equals((Object)printWriter0));
int int1 = helpFormatter0.findWrapPos("A CloneNotSupportedException was thrown: ", 74, 74);
assertEquals((-1), int1);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertFalse(int1 == int0);
String string4 = "";
String string5 = "arg";
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption("arg", "IMPqH]", true, " ");
assertNotNull(options1);
assertSame(options1, options0);
assertSame(options0, options1);
// Undeclared exception!
// try {
options1.addOption("usage: ", false, "--");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // The option 'usage: ' contains an illegal character : ':'
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test065() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
StringBuffer stringBuffer0 = new StringBuffer();
assertNotNull(stringBuffer0);
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
Options options0 = new Options();
assertNotNull(options0);
int int0 = (-1916);
StringWriter stringWriter0 = new StringWriter(74);
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringWriter stringWriter1 = stringWriter0.append((CharSequence) "-");
assertNotNull(stringWriter1);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertEquals("-", stringWriter0.toString());
assertEquals("-", stringWriter1.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter1);
assertNotNull(mockPrintWriter0);
PrintWriter printWriter0 = mockPrintWriter0.append('+');
assertNotNull(printWriter0);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertEquals("-+", stringWriter0.toString());
assertEquals("-+", stringWriter1.toString());
// Undeclared exception!
// try {
helpFormatter0.printHelp(printWriter0, (-580), "\n", "\n", options0, (-1916), (-580), "\n");
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test066() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
StringBuffer stringBuffer0 = new StringBuffer(1);
assertNotNull(stringBuffer0);
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(74, helpFormatter1.getWidth());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
// Undeclared exception!
// try {
helpFormatter1.renderWrappedText(stringBuffer0, (-1826), 1, "\n");
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test067() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(" ", stringBuffer0.toString());
assertEquals(1, stringBuffer0.length());
StringBuffer stringBuffer1 = stringBuffer0.insert(1, (-1952L));
assertNotNull(stringBuffer1);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(6, stringBuffer0.length());
assertEquals(" -1952", stringBuffer0.toString());
assertEquals(6, stringBuffer1.length());
assertEquals(" -1952", stringBuffer1.toString());
StringBuffer stringBuffer2 = helpFormatter0.renderWrappedText(stringBuffer0, 1, 0, "\n");
assertNotNull(stringBuffer2);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer0, stringBuffer2);
assertSame(stringBuffer2, stringBuffer1);
assertSame(stringBuffer2, stringBuffer0);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(" -1952\n", stringBuffer0.toString());
assertEquals(7, stringBuffer0.length());
assertEquals(7, stringBuffer2.length());
assertEquals(" -1952\n", stringBuffer2.toString());
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption("arg", true, "");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
Options options2 = new Options();
assertNotNull(options2);
assertFalse(options2.equals((Object)options0));
assertFalse(options2.equals((Object)options1));
Option option0 = options1.getOption("-");
assertNull(option0);
assertSame(options0, options1);
assertNotSame(options0, options2);
assertNotSame(options1, options2);
assertSame(options1, options0);
assertFalse(options0.equals((Object)options2));
assertFalse(options1.equals((Object)options2));
List list0 = options0.getMatchingOptions("[");
assertNotNull(list0);
assertSame(options0, options1);
assertNotSame(options0, options2);
assertEquals(0, list0.size());
assertTrue(list0.isEmpty());
assertFalse(options0.equals((Object)options2));
helpFormatter0.printHelp("hkR^j5", "{P`KcORk(~yC", options1, "{P`KcORk(~yC", true);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(options0, options1);
assertNotSame(options0, options2);
assertNotSame(options1, options2);
assertSame(options1, options0);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertFalse(options0.equals((Object)options2));
assertFalse(options1.equals((Object)options2));
StringBuffer stringBuffer3 = helpFormatter0.renderOptions(stringBuffer2, 4486, options0, 1654, 1654);
assertNotNull(stringBuffer3);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(stringBuffer0, stringBuffer3);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer0, stringBuffer2);
assertSame(stringBuffer2, stringBuffer3);
assertSame(stringBuffer2, stringBuffer1);
assertSame(stringBuffer2, stringBuffer0);
assertSame(options0, options1);
assertNotSame(options0, options2);
assertSame(stringBuffer3, stringBuffer0);
assertSame(stringBuffer3, stringBuffer1);
assertSame(stringBuffer3, stringBuffer2);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(40, stringBuffer0.length());
assertEquals(40, stringBuffer2.length());
assertEquals(40, stringBuffer3.length());
assertFalse(options0.equals((Object)options2));
MockPrintWriter mockPrintWriter0 = new MockPrintWriter("usage: ");
assertNotNull(mockPrintWriter0);
helpFormatter0.printWrapped((PrintWriter) mockPrintWriter0, 47, "");
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
}
@Test(timeout = 4000)
public void test068() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals(74, helpFormatter1.getWidth());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(" ", stringBuffer0.toString());
assertEquals(1, stringBuffer0.length());
StringBuffer stringBuffer1 = helpFormatter1.renderWrappedText(stringBuffer0, 1, 0, "");
assertNotNull(stringBuffer1);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertNotSame(helpFormatter1, helpFormatter0);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals(74, helpFormatter1.getWidth());
assertEquals(" ", stringBuffer0.toString());
assertEquals(1, stringBuffer0.length());
assertEquals(1, stringBuffer1.length());
assertEquals(" ", stringBuffer1.toString());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption("arg", true, "");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
Options options2 = new Options();
assertNotNull(options2);
assertFalse(options2.equals((Object)options1));
assertFalse(options2.equals((Object)options0));
String string0 = helpFormatter1.getSyntaxPrefix();
assertEquals("usage: ", string0);
assertNotNull(string0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertNotSame(helpFormatter1, helpFormatter0);
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals(74, helpFormatter1.getWidth());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
Options options3 = options1.addOption((String) null, true, "\n");
assertNotNull(options3);
assertSame(options0, options1);
assertNotSame(options0, options2);
assertSame(options0, options3);
assertSame(options1, options3);
assertSame(options1, options0);
assertNotSame(options1, options2);
assertSame(options3, options0);
assertSame(options3, options1);
assertNotSame(options3, options2);
assertFalse(options0.equals((Object)options2));
assertFalse(options1.equals((Object)options2));
assertFalse(options3.equals((Object)options2));
// Undeclared exception!
// try {
helpFormatter1.printHelp(10, "-", "bN", options3, "arg", true);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// }
}
@Test(timeout = 4000)
public void test069() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
Options options0 = new Options();
assertNotNull(options0);
StringBuffer stringBuffer0 = new StringBuffer(32);
assertNotNull(stringBuffer0);
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
StringBuffer stringBuffer1 = helpFormatter0.renderWrappedText(stringBuffer0, 1167, 1167, "");
assertNotNull(stringBuffer1);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
assertEquals("", stringBuffer1.toString());
assertEquals(0, stringBuffer1.length());
Options options1 = options0.addOption("arg", true, "-");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
String string0 = options0.toString();
assertNotNull(string0);
assertSame(options0, options1);
LinkedList<Integer> linkedList0 = new LinkedList<Integer>();
assertFalse(linkedList0.contains(32));
assertNotNull(linkedList0);
assertEquals(0, linkedList0.size());
Collection collection0 = options1.getOptionGroups();
assertNotNull(collection0);
assertSame(options0, options1);
assertSame(options1, options0);
Option option0 = options0.getOption("org.apache.commons.cli.HelpFormatter$OptionComparator");
assertNull(option0);
assertSame(options0, options1);
helpFormatter0.printHelp("<X0%Z*Nlt}<0-ko{;_", options0, false);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertSame(options0, options1);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
Options options2 = new Options();
assertNotNull(options2);
assertFalse(options2.equals((Object)options0));
assertFalse(options2.equals((Object)options1));
List list0 = options1.getMatchingOptions((String) null);
assertNotNull(list0);
assertSame(options0, options1);
assertNotSame(options0, options2);
assertSame(options1, options0);
assertNotSame(options1, options2);
assertTrue(list0.isEmpty());
assertEquals(0, list0.size());
assertFalse(options0.equals((Object)options2));
assertFalse(options1.equals((Object)options2));
helpFormatter0.printHelp("KW5IXPl2y", "tX`gJPk", options2, "", true);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertNotSame(options2, options0);
assertNotSame(options2, options1);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertFalse(options2.equals((Object)options0));
assertFalse(options2.equals((Object)options1));
helpFormatter0.printHelp((-1), "<X0%Z*Nlt}<0-ko{;_", "", options1, (String) null);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertSame(options0, options1);
assertNotSame(options0, options2);
assertSame(options1, options0);
assertNotSame(options1, options2);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertFalse(options0.equals((Object)options2));
assertFalse(options1.equals((Object)options2));
String string1 = helpFormatter0.getOptPrefix();
assertEquals("-", string1);
assertNotNull(string1);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertFalse(string1.equals((Object)string0));
}
@Test(timeout = 4000)
public void test070() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
Options options0 = new Options();
assertNotNull(options0);
boolean boolean0 = options0.hasOption("--");
assertFalse(boolean0);
List list0 = options0.getMatchingOptions(")O9<YPtORc-Xe>@3s");
assertNotNull(list0);
assertTrue(list0.isEmpty());
assertEquals(0, list0.size());
helpFormatter0.setLongOptPrefix(")O9<YPtORc-Xe>@3s");
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(")O9<YPtORc-Xe>@3s", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
Comparator<Integer> comparator0 = (Comparator<Integer>) mock(Comparator.class, new ViolatedAssumptionAnswer());
helpFormatter0.setOptionComparator(comparator0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(")O9<YPtORc-Xe>@3s", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
boolean boolean1 = FileSystemHandling.shouldAllThrowIOExceptions();
assertTrue(boolean1);
assertFalse(boolean1 == boolean0);
String string0 = ">";
String string1 = helpFormatter0.getSyntaxPrefix();
assertEquals("usage: ", string1);
assertNotNull(string1);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(")O9<YPtORc-Xe>@3s", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertFalse(string1.equals((Object)string0));
int int0 = (-4316);
helpFormatter0.setDescPadding((-4316));
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals((-4316), helpFormatter0.defaultDescPad);
assertEquals(")O9<YPtORc-Xe>@3s", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals((-4316), helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
Options options1 = new Options();
assertNotNull(options1);
assertFalse(options1.equals((Object)options0));
// Undeclared exception!
// try {
helpFormatter0.printHelp(34, "[ option: ", "--", options1, "MiY)b>?hs_{t1g", false);
// fail("Expecting exception: NegativeArraySizeException");
// } catch(NegativeArraySizeException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test071() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
Options options0 = new Options();
assertNotNull(options0);
StringBuffer stringBuffer0 = new StringBuffer(32);
assertNotNull(stringBuffer0);
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
StringBuffer stringBuffer1 = helpFormatter0.renderWrappedText(stringBuffer0, 1167, 1167, "");
assertNotNull(stringBuffer1);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("", stringBuffer0.toString());
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer1.toString());
assertEquals(0, stringBuffer1.length());
Comparator<Integer> comparator0 = (Comparator<Integer>) mock(Comparator.class, new ViolatedAssumptionAnswer());
doReturn("ghHB.!C6%`fXr6vwR", "_s\"E@X").when(comparator0).toString();
helpFormatter0.setOptionComparator(comparator0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
boolean boolean0 = FileSystemHandling.shouldAllThrowIOExceptions();
assertTrue(boolean0);
int int0 = helpFormatter0.findWrapPos("", 14, 1);
assertEquals((-1), int0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
String string0 = helpFormatter0.getSyntaxPrefix();
assertEquals("usage: ", string0);
assertNotNull(string0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
helpFormatter0.printHelp(14, "[ option: ", "org.apache.commons.cli.Options", options0, "", true);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
}
@Test(timeout = 4000)
public void test072() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
Options options0 = new Options();
assertNotNull(options0);
MockPrintStream mockPrintStream0 = new MockPrintStream("org.apache.commons.cli.AlreadySelectedException");
assertNotNull(mockPrintStream0);
PrintStream printStream0 = mockPrintStream0.printf("\n", (Object[]) null);
assertNotNull(printStream0);
assertSame(mockPrintStream0, printStream0);
assertSame(printStream0, mockPrintStream0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(printStream0, false);
assertNotNull(mockPrintWriter0);
MockPrintWriter mockPrintWriter1 = new MockPrintWriter(" ");
assertNotNull(mockPrintWriter1);
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
helpFormatter0.printOptions(mockPrintWriter1, 13, options0, 2499, 13);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertNotSame(mockPrintWriter1, mockPrintWriter0);
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
}
@Test(timeout = 4000)
public void test073() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter0, false);
assertNotNull(mockPrintWriter0);
Object object0 = new Object();
assertNotNull(object0);
Object object1 = new Object();
assertNotNull(object1);
assertFalse(object1.equals((Object)object0));
Object[] objectArray0 = new Object[2];
boolean boolean0 = FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);
assertFalse(boolean0);
int int0 = helpFormatter0.findWrapPos(")d'@}l\"q", 16, 2944);
assertEquals((-1), int0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
helpFormatter0.printWrapped((PrintWriter) mockPrintWriter0, 16, 2944, ")d'@}l\"q");
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(")d'@}l\"q\n", stringWriter0.toString());
}
@Test(timeout = 4000)
public void test074() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
Options options0 = new Options();
assertNotNull(options0);
boolean boolean0 = options0.hasLongOption((String) null);
assertFalse(boolean0);
Object object0 = new Object();
assertNotNull(object0);
Object object1 = new Object();
assertNotNull(object1);
assertFalse(object1.equals((Object)object0));
Options options1 = new Options();
assertNotNull(options1);
assertFalse(options1.equals((Object)options0));
List list0 = options1.getMatchingOptions("arg");
assertNotNull(list0);
assertNotSame(options1, options0);
assertTrue(list0.isEmpty());
assertEquals(0, list0.size());
assertFalse(options1.equals((Object)options0));
// Undeclared exception!
// try {
helpFormatter0.printHelp((String) null, ";}~MxU'zP<!", options0, "arg", true);
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test075() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(" ", stringBuffer0.toString());
assertEquals(1, stringBuffer0.length());
StringBuffer stringBuffer1 = stringBuffer0.append('<');
assertNotNull(stringBuffer1);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(2, stringBuffer0.length());
assertEquals(" <", stringBuffer0.toString());
assertEquals(" <", stringBuffer1.toString());
assertEquals(2, stringBuffer1.length());
StringBuffer stringBuffer2 = helpFormatter0.renderWrappedText(stringBuffer0, 1, 0, "\n");
assertNotNull(stringBuffer2);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(stringBuffer0, stringBuffer2);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer2, stringBuffer0);
assertSame(stringBuffer2, stringBuffer1);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, stringBuffer0.length());
assertEquals(" <\n", stringBuffer0.toString());
assertEquals(" <\n", stringBuffer2.toString());
assertEquals(3, stringBuffer2.length());
Options options0 = new Options();
assertNotNull(options0);
String string0 = "";
// Undeclared exception!
helpFormatter0.renderWrappedText(stringBuffer1, 0, 0, "@O|XChTU8M^M#");
}
@Test(timeout = 4000)
public void test076() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
Options options0 = new Options();
assertNotNull(options0);
boolean boolean0 = options0.hasOption("--");
assertFalse(boolean0);
List list0 = options0.getMatchingOptions(")O9<YPtORc-Xe>@3s");
assertNotNull(list0);
assertTrue(list0.isEmpty());
assertEquals(0, list0.size());
helpFormatter0.setLongOptPrefix(")O9<YPtORc-Xe>@3s");
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(")O9<YPtORc-Xe>@3s", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
Options options1 = options0.addOption("", false, "\n");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
LinkedList<Integer> linkedList0 = new LinkedList<Integer>();
assertNotNull(linkedList0);
assertEquals(0, linkedList0.size());
Collection collection0 = options1.getOptionGroups();
assertNotNull(collection0);
assertSame(options0, options1);
assertSame(options1, options0);
Option option0 = options1.getOption("Sg2zOR");
assertNull(option0);
assertSame(options0, options1);
assertSame(options1, options0);
helpFormatter0.printHelp("MiY)b>?hs_{t1g", options1, false);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertSame(options0, options1);
assertSame(options1, options0);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(")O9<YPtORc-Xe>@3s", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
Options options2 = new Options();
assertNotNull(options2);
assertFalse(options2.equals((Object)options0));
assertFalse(options2.equals((Object)options1));
List list1 = options1.getMatchingOptions("");
assertNotNull(list1);
assertNotSame(options0, options2);
assertSame(options0, options1);
assertSame(options1, options0);
assertNotSame(options1, options2);
assertNotSame(list1, list0);
assertTrue(list1.isEmpty());
assertEquals(0, list1.size());
assertFalse(options0.equals((Object)options2));
assertFalse(options1.equals((Object)options2));
assertTrue(list1.equals((Object)list0));
// Undeclared exception!
// try {
helpFormatter0.findWrapPos("MiY)b>?hs_{t1g", 231, (-1992));
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test077() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(" ", stringBuffer0.toString());
assertEquals(1, stringBuffer0.length());
StringBuffer stringBuffer1 = helpFormatter0.renderWrappedText(stringBuffer0, 1, 0, "\n");
assertNotNull(stringBuffer1);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(2, stringBuffer0.length());
assertEquals(" \n", stringBuffer0.toString());
assertEquals(" \n", stringBuffer1.toString());
assertEquals(2, stringBuffer1.length());
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption("arg", true, "");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
Options options2 = new Options();
assertNotNull(options2);
assertFalse(options2.equals((Object)options0));
assertFalse(options2.equals((Object)options1));
List list0 = options0.getMatchingOptions("[");
assertNotNull(list0);
assertSame(options0, options1);
assertNotSame(options0, options2);
assertEquals(0, list0.size());
assertTrue(list0.isEmpty());
assertFalse(options0.equals((Object)options2));
helpFormatter0.printHelp("usage: ", "", options1, "{P`KcORk(~yC", true);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertSame(options0, options1);
assertNotSame(options0, options2);
assertNotSame(options1, options2);
assertSame(options1, options0);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertFalse(options0.equals((Object)options2));
assertFalse(options1.equals((Object)options2));
}
@Test(timeout = 4000)
public void test078() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
HelpFormatter helpFormatter1 = new HelpFormatter();
assertNotNull(helpFormatter1);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(3, helpFormatter1.getDescPadding());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
assertNotNull(stringBuffer0);
assertEquals(" ", stringBuffer0.toString());
assertEquals(1, stringBuffer0.length());
StringBuffer stringBuffer1 = helpFormatter1.renderWrappedText(stringBuffer0, 2604, 0, "--");
assertNotNull(stringBuffer1);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter1.defaultLeftPad);
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter1.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertNotSame(helpFormatter1, helpFormatter0);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals("-", helpFormatter1.getOptPrefix());
assertEquals("--", helpFormatter1.getLongOptPrefix());
assertEquals(1, helpFormatter1.getLeftPadding());
assertEquals(74, helpFormatter1.getWidth());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals("\n", helpFormatter1.getNewLine());
assertEquals(" ", helpFormatter1.getLongOptSeparator());
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals(3, helpFormatter1.getDescPadding());
assertEquals(3, stringBuffer0.length());
assertEquals(" --", stringBuffer0.toString());
assertEquals(" --", stringBuffer1.toString());
assertEquals(3, stringBuffer1.length());
assertFalse(helpFormatter1.equals((Object)helpFormatter0));
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption("arg", true, "\n");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
Options options2 = new Options();
assertNotNull(options2);
assertFalse(options2.equals((Object)options1));
assertFalse(options2.equals((Object)options0));
String string0 = "";
Option option0 = new Option("", true, (String) null);
assertNotNull(option0);
assertEquals((-1), Option.UNINITIALIZED);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertFalse(option0.hasArgs());
assertFalse(option0.hasValueSeparator());
assertNull(option0.getArgName());
assertNull(option0.getDescription());
assertNull(option0.getValue());
assertEquals(1, option0.getArgs());
assertEquals("", option0.getOpt());
assertFalse(option0.isRequired());
assertNull(option0.getLongOpt());
assertFalse(option0.hasArgName());
assertFalse(option0.hasOptionalArg());
assertTrue(option0.hasArg());
assertEquals('\u0000', option0.getValueSeparator());
assertFalse(option0.hasLongOpt());
Object object0 = new Object();
assertNotNull(object0);
option0.setType("");
assertEquals((-1), Option.UNINITIALIZED);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertFalse(option0.hasArgs());
assertFalse(option0.hasValueSeparator());
assertNull(option0.getArgName());
assertNull(option0.getDescription());
assertNull(option0.getValue());
assertEquals(1, option0.getArgs());
assertEquals("", option0.getOpt());
assertFalse(option0.isRequired());
assertNull(option0.getLongOpt());
assertFalse(option0.hasArgName());
assertFalse(option0.hasOptionalArg());
assertTrue(option0.hasArg());
assertEquals('\u0000', option0.getValueSeparator());
assertFalse(option0.hasLongOpt());
StringBuffer stringBuffer2 = new StringBuffer((CharSequence) "\n");
assertNotNull(stringBuffer2);
assertEquals(1, stringBuffer2.length());
assertEquals("\n", stringBuffer2.toString());
assertFalse(stringBuffer2.equals((Object)stringBuffer1));
assertFalse(stringBuffer2.equals((Object)stringBuffer0));
StringBuffer stringBuffer3 = new StringBuffer(stringBuffer2);
assertNotNull(stringBuffer3);
assertEquals(1, stringBuffer2.length());
assertEquals("\n", stringBuffer2.toString());
assertEquals("\n", stringBuffer3.toString());
assertEquals(1, stringBuffer3.length());
assertFalse(stringBuffer2.equals((Object)stringBuffer1));
assertFalse(stringBuffer2.equals((Object)stringBuffer0));
assertFalse(stringBuffer3.equals((Object)stringBuffer1));
assertFalse(stringBuffer3.equals((Object)stringBuffer0));
assertFalse(stringBuffer3.equals((Object)stringBuffer2));
// Undeclared exception!
helpFormatter1.renderWrappedText(stringBuffer1, 1, 1, "8o?-Y 9D3C KaaQ5bt");
}
@Test(timeout = 4000)
public void test079() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
helpFormatter0.printHelp("?W", "-", options0, " ", false);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
helpFormatter0.printHelp(" ", options0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
}
@Test(timeout = 4000)
public void test080() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
StringBuffer stringBuffer0 = new StringBuffer(32);
assertNotNull(stringBuffer0);
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
StringBuffer stringBuffer1 = helpFormatter0.renderWrappedText(stringBuffer0, 1167, 1167, "");
assertNotNull(stringBuffer1);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
assertEquals("", stringBuffer1.toString());
assertEquals(0, stringBuffer1.length());
Comparator<Integer> comparator0 = (Comparator<Integer>) mock(Comparator.class, new ViolatedAssumptionAnswer());
doReturn((String) null, (String) null).when(comparator0).toString();
helpFormatter0.setOptionComparator(comparator0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
boolean boolean0 = FileSystemHandling.shouldAllThrowIOExceptions();
assertTrue(boolean0);
int int0 = helpFormatter0.findWrapPos("", 14, 1);
assertEquals((-1), int0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
String string0 = helpFormatter0.getSyntaxPrefix();
assertEquals("usage: ", string0);
assertNotNull(string0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
helpFormatter0.printHelp((-1), "[ option: ", "", options0, "[", true);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
}
@Test(timeout = 4000)
public void test081() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
Options options1 = options0.addOption("", true, (String) null);
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
String string0 = "usage: ";
// Undeclared exception!
// try {
helpFormatter0.printHelp((-3554), "d4tu#>X%(}D5];$/", "", options1, "usage: ");
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test082() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
StringBuffer stringBuffer0 = new StringBuffer(3);
assertNotNull(stringBuffer0);
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
Options options0 = new Options();
assertNotNull(options0);
StringBuffer stringBuffer1 = helpFormatter0.renderOptions(stringBuffer0, 9, options0, 11, 11);
assertNotNull(stringBuffer1);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertSame(stringBuffer0, stringBuffer1);
assertSame(stringBuffer1, stringBuffer0);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(0, stringBuffer0.length());
assertEquals("", stringBuffer0.toString());
assertEquals("", stringBuffer1.toString());
assertEquals(0, stringBuffer1.length());
// Undeclared exception!
// try {
helpFormatter0.renderOptions(stringBuffer1, (-3227), options0, (-2), 9);
// fail("Expecting exception: NegativeArraySizeException");
// } catch(NegativeArraySizeException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test083() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
// Undeclared exception!
// try {
helpFormatter0.printHelp(1429, "", "(8:89c}m", options0, "Zp9bQtSgd)y", false);
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test084() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
Comparator<Integer> comparator0 = (Comparator<Integer>) mock(Comparator.class, new ViolatedAssumptionAnswer());
doReturn((String) null).when(comparator0).toString();
helpFormatter0.setOptionComparator(comparator0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
Options options0 = new Options();
assertNotNull(options0);
String string0 = options0.toString();
assertNotNull(string0);
helpFormatter0.printHelp("org.apache.commons.cli.HelpFormatter", "org.apache.commons.cli.HelpFormatter", options0, ":9 eV4Z!_,s", false);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
String string1 = helpFormatter0.getLongOptPrefix();
assertEquals("--", string1);
assertNotNull(string1);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertFalse(string1.equals((Object)string0));
}
@Test(timeout = 4000)
public void test085() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
Options options0 = new Options();
assertNotNull(options0);
helpFormatter0.printHelp("-", "-", options0, "-", false);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
String string0 = helpFormatter0.getLongOptPrefix();
assertEquals("--", string0);
assertNotNull(string0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
MockFile mockFile0 = new MockFile("SGcLH<", "");
assertNotNull(mockFile0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockFile0);
assertNotNull(mockPrintWriter0);
PrintWriter printWriter0 = mockPrintWriter0.append((CharSequence) "-");
assertNotNull(printWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertEquals(1392409281320L, mockFile0.lastModified());
assertEquals(0L, mockFile0.length());
assertEquals(0L, mockFile0.getFreeSpace());
assertEquals(0L, mockFile0.getTotalSpace());
assertEquals("/experiment", mockFile0.getParent());
assertTrue(mockFile0.isAbsolute());
assertFalse(mockFile0.isDirectory());
assertTrue(mockFile0.canWrite());
assertEquals(0L, mockFile0.getUsableSpace());
assertFalse(mockFile0.isHidden());
assertTrue(mockFile0.canExecute());
assertEquals("SGcLH<", mockFile0.getName());
assertEquals("/experiment/SGcLH<", mockFile0.toString());
assertTrue(mockFile0.isFile());
assertTrue(mockFile0.exists());
assertTrue(mockFile0.canRead());
// Undeclared exception!
// try {
helpFormatter0.printUsage(printWriter0, (-2621), "", options0);
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test086() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
Options options0 = new Options();
assertNotNull(options0);
helpFormatter0.printHelp("=", "-", options0, "}", true);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
}
@Test(timeout = 4000)
public void test087() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
int int0 = 1765;
Options options0 = new Options();
assertNotNull(options0);
boolean boolean0 = FileSystemHandling.createFolder((EvoSuiteFile) null);
assertFalse(boolean0);
Comparator comparator0 = helpFormatter0.getOptionComparator();
assertNotNull(comparator0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
Options options1 = options0.addOption("arg", true, " ");
assertNotNull(options1);
assertSame(options0, options1);
assertSame(options1, options0);
// Undeclared exception!
// try {
helpFormatter0.printHelp(1765, "", "", options1, "");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test088() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
Options options0 = new Options();
assertNotNull(options0);
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
StringWriter stringWriter1 = stringWriter0.append('s');
assertNotNull(stringWriter1);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertEquals("s", stringWriter0.toString());
assertEquals("s", stringWriter1.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter1);
assertNotNull(mockPrintWriter0);
Locale locale0 = Locale.CANADA;
assertNotNull(locale0);
assertEquals("en", locale0.getLanguage());
assertEquals("", locale0.getVariant());
assertEquals("CAN", locale0.getISO3Country());
assertEquals("eng", locale0.getISO3Language());
assertEquals("en_CA", locale0.toString());
assertEquals("CA", locale0.getCountry());
Object[] objectArray0 = new Object[7];
objectArray0[0] = (Object) stringWriter1;
objectArray0[1] = (Object) helpFormatter0;
objectArray0[2] = (Object) locale0;
objectArray0[3] = (Object) "-";
objectArray0[4] = (Object) options0;
objectArray0[5] = (Object) helpFormatter0;
objectArray0[6] = (Object) "&2H,B+AVHZ8M";
PrintWriter printWriter0 = mockPrintWriter0.format(locale0, "&2H,B+AVHZ8M", objectArray0);
assertNotNull(printWriter0);
assertEquals(7, objectArray0.length);
assertSame(stringWriter0, stringWriter1);
assertSame(stringWriter1, stringWriter0);
assertSame(mockPrintWriter0, printWriter0);
assertSame(printWriter0, mockPrintWriter0);
assertEquals("s&2H,B+AVHZ8M", stringWriter0.toString());
assertEquals("s&2H,B+AVHZ8M", stringWriter1.toString());
assertEquals("en", locale0.getLanguage());
assertEquals("", locale0.getVariant());
assertEquals("CAN", locale0.getISO3Country());
assertEquals("eng", locale0.getISO3Language());
assertEquals("en_CA", locale0.toString());
assertEquals("CA", locale0.getCountry());
// Undeclared exception!
// try {
helpFormatter0.printUsage(printWriter0, (-2), (String) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test089() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter0, false);
assertNotNull(mockPrintWriter0);
Object object0 = new Object();
assertNotNull(object0);
Object object1 = new Object();
assertNotNull(object1);
assertFalse(object1.equals((Object)object0));
Object[] objectArray0 = new Object[2];
objectArray0[0] = object0;
Options options0 = new Options();
assertNotNull(options0);
List list0 = options0.getMatchingOptions(";}~MxU'zP<!");
assertNotNull(list0);
assertEquals(0, list0.size());
assertTrue(list0.isEmpty());
helpFormatter0.printHelp("arg", "", options0, "Zy", false);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals("--", helpFormatter0.getLongOptPrefix());
}
@Test(timeout = 4000)
public void test090() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
boolean boolean0 = false;
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter0, false);
assertNotNull(mockPrintWriter0);
String string0 = helpFormatter0.createPadding(555);
assertEquals(" ", string0);
assertNotNull(string0);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
Options options0 = new Options();
assertNotNull(options0);
// Undeclared exception!
// try {
options0.addOption((Option) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.Options", e);
// }
}
@Test(timeout = 4000)
public void test091() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
StringWriter stringWriter0 = new StringWriter();
assertNotNull(stringWriter0);
assertEquals("", stringWriter0.toString());
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter0, false);
assertNotNull(mockPrintWriter0);
Object object0 = new Object();
assertNotNull(object0);
MockFile mockFile0 = new MockFile("-");
assertNotNull(mockFile0);
MockFile mockFile1 = new MockFile(mockFile0, "Q5E");
assertNotNull(mockFile1);
assertFalse(mockFile1.equals((Object)mockFile0));
MockPrintWriter mockPrintWriter1 = new MockPrintWriter(mockFile1);
assertNotNull(mockPrintWriter1);
assertFalse(mockFile0.equals((Object)mockFile1));
assertFalse(mockFile1.equals((Object)mockFile0));
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
Object[] objectArray0 = new Object[0];
PrintWriter printWriter0 = mockPrintWriter1.format((Locale) null, "-", objectArray0);
assertNotNull(printWriter0);
assertEquals(0, objectArray0.length);
assertNotSame(mockFile0, mockFile1);
assertNotSame(mockFile1, mockFile0);
assertSame(mockPrintWriter1, printWriter0);
assertNotSame(mockPrintWriter1, mockPrintWriter0);
assertNotSame(printWriter0, mockPrintWriter0);
assertSame(printWriter0, mockPrintWriter1);
assertEquals("-", mockFile0.getName());
assertEquals(0L, mockFile0.getUsableSpace());
assertEquals(0L, mockFile0.length());
assertEquals(0L, mockFile0.getFreeSpace());
assertTrue(mockFile0.isDirectory());
assertFalse(mockFile0.isHidden());
assertNull(mockFile0.getParent());
assertTrue(mockFile0.canWrite());
assertFalse(mockFile0.isAbsolute());
assertFalse(mockFile0.isFile());
assertTrue(mockFile0.canExecute());
assertEquals(0L, mockFile0.getTotalSpace());
assertEquals("-", mockFile0.toString());
assertEquals(1392409281320L, mockFile0.lastModified());
assertTrue(mockFile0.exists());
assertTrue(mockFile0.canRead());
assertFalse(mockFile1.isDirectory());
assertTrue(mockFile1.exists());
assertFalse(mockFile1.isHidden());
assertEquals(0L, mockFile1.getUsableSpace());
assertEquals("/experiment/-", mockFile1.getParent());
assertEquals("Q5E", mockFile1.getName());
assertTrue(mockFile1.canExecute());
assertTrue(mockFile1.canWrite());
assertTrue(mockFile1.isFile());
assertTrue(mockFile1.canRead());
assertTrue(mockFile1.isAbsolute());
assertEquals(1392409281320L, mockFile1.lastModified());
assertEquals(0L, mockFile1.getTotalSpace());
assertEquals(0L, mockFile1.getFreeSpace());
assertEquals("/experiment/-/Q5E", mockFile1.toString());
assertEquals(0L, mockFile1.length());
assertFalse(mockFile0.equals((Object)mockFile1));
assertFalse(mockFile1.equals((Object)mockFile0));
assertFalse(mockPrintWriter1.equals((Object)mockPrintWriter0));
assertFalse(printWriter0.equals((Object)mockPrintWriter0));
// Undeclared exception!
// try {
helpFormatter0.printUsage((PrintWriter) mockPrintWriter0, (-2), " \"");
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test092() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
String string0 = helpFormatter0.rtrim("");
assertEquals("", string0);
assertNotNull(string0);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
// Undeclared exception!
// try {
MockFile.createTempFile("", "");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // Prefix string too short
// //
// verifyException("org.evosuite.runtime.vfs.VirtualFileSystem", e);
// }
}
@Test(timeout = 4000)
public void test093() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
String string0 = "d8PJTAbFkFjk+TGd7S";
helpFormatter0.setOptPrefix("d8PJTAbFkFjk+TGd7S");
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("d8PJTAbFkFjk+TGd7S", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
String string1 = helpFormatter0.rtrim(" ]");
assertEquals(" ]", string1);
assertNotNull(string1);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("d8PJTAbFkFjk+TGd7S", helpFormatter0.getOptPrefix());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertFalse(string1.equals((Object)string0));
MockPrintWriter mockPrintWriter0 = null;
// try {
mockPrintWriter0 = new MockPrintWriter((String) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("java.io.File", e);
// }
}
@Test(timeout = 4000)
public void test094() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
helpFormatter0.defaultLeftPad = 2003;
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals(2003, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
Options options0 = new Options();
assertNotNull(options0);
String string0 = null;
boolean boolean0 = options0.hasLongOption((String) null);
assertFalse(boolean0);
Option option0 = new Option("", "-");
assertNotNull(option0);
assertEquals((-1), Option.UNINITIALIZED);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertFalse(option0.hasLongOpt());
assertEquals("-", option0.getDescription());
assertFalse(option0.isRequired());
assertFalse(option0.hasArg());
assertNull(option0.getLongOpt());
assertEquals("", option0.getOpt());
assertNull(option0.getValue());
assertEquals('\u0000', option0.getValueSeparator());
assertEquals((-1), option0.getArgs());
assertFalse(option0.hasArgs());
assertFalse(option0.hasValueSeparator());
assertNull(option0.getArgName());
assertFalse(option0.hasArgName());
assertFalse(option0.hasOptionalArg());
Options options1 = options0.addOption(option0);
assertNotNull(options1);
assertEquals((-1), Option.UNINITIALIZED);
assertEquals((-2), Option.UNLIMITED_VALUES);
assertSame(options0, options1);
assertSame(options1, options0);
assertFalse(option0.hasLongOpt());
assertEquals("-", option0.getDescription());
assertFalse(option0.isRequired());
assertFalse(option0.hasArg());
assertNull(option0.getLongOpt());
assertEquals("", option0.getOpt());
assertNull(option0.getValue());
assertEquals('\u0000', option0.getValueSeparator());
assertEquals((-1), option0.getArgs());
assertFalse(option0.hasArgs());
assertFalse(option0.hasValueSeparator());
assertNull(option0.getArgName());
assertFalse(option0.hasArgName());
assertFalse(option0.hasOptionalArg());
Collection collection0 = options0.getOptionGroups();
assertNotNull(collection0);
assertSame(options0, options1);
// Undeclared exception!
// try {
helpFormatter0.printHelp("", options0);
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test095() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
assertNotNull(helpFormatter0);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals(74, helpFormatter0.getWidth());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
helpFormatter0.setWidth(93);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(1, HelpFormatter.DEFAULT_LEFT_PAD);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals(93, helpFormatter0.defaultWidth);
assertEquals(74, HelpFormatter.DEFAULT_WIDTH);
assertEquals(3, HelpFormatter.DEFAULT_DESC_PAD);
assertEquals(3, helpFormatter0.getDescPadding());
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("--", helpFormatter0.getLongOptPrefix());
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals("\n", helpFormatter0.getNewLine());
assertEquals(1, helpFormatter0.getLeftPadding());
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(93, helpFormatter0.getWidth());
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
boolean boolean0 = FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);
assertFalse(boolean0);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter("usage: ");
assertNotNull(mockPrintWriter0);
String string0 = "org.apache.commons.cli.HelpFormatter";
// Undeclared exception!
// try {
helpFormatter0.printWrapped((PrintWriter) mockPrintWriter0, (-647), "org.apache.commons.cli.HelpFormatter");
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test096() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
helpFormatter0.setWidth(32);
helpFormatter0.setArgName("");
Comparator<Object> comparator0 = (Comparator<Object>) mock(Comparator.class, new ViolatedAssumptionAnswer());
helpFormatter0.setOptionComparator(comparator0);
helpFormatter0.setSyntaxPrefix("");
helpFormatter0.setLongOptPrefix("");
helpFormatter0.setNewLine("");
helpFormatter0.getWidth();
MockFileOutputStream mockFileOutputStream0 = new MockFileOutputStream("usage: ");
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockFileOutputStream0, true);
Object[] objectArray0 = new Object[5];
objectArray0[0] = (Object) "";
objectArray0[1] = (Object) mockPrintWriter0;
objectArray0[2] = (Object) mockFileOutputStream0;
objectArray0[3] = (Object) "";
objectArray0[4] = (Object) helpFormatter0;
PrintWriter printWriter0 = mockPrintWriter0.format("-", objectArray0);
MockPrintWriter mockPrintWriter1 = new MockPrintWriter(printWriter0, false);
// Undeclared exception!
// try {
helpFormatter0.printWrapped((PrintWriter) mockPrintWriter1, (-1659), ":-/\"Y'@3VI?^Rj");
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test097() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
Options options0 = new Options();
StringBuffer stringBuffer0 = new StringBuffer();
options0.getOption("Wt%c$>+1&V");
helpFormatter0.setArgName("Wt%c$>+1&V");
helpFormatter0.printHelp("\"", "\"", options0, "\"", true);
String string0 = helpFormatter0.getNewLine();
assertEquals("-", helpFormatter0.getOptPrefix());
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals("\n", string0);
}
@Test(timeout = 4000)
public void test098() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
helpFormatter0.getWidth();
String string0 = "";
MockFile mockFile0 = new MockFile("arg", "-");
File file0 = MockFile.createTempFile("Dmur.:}@K#+", "", (File) mockFile0);
MockPrintWriter mockPrintWriter0 = null;
// try {
mockPrintWriter0 = new MockPrintWriter(file0, " ");
// fail("Expecting exception: UnsupportedEncodingException");
// } catch(Throwable e) {
// //
// //
// //
// verifyException("org.evosuite.runtime.mock.java.io.MockPrintWriter", e);
// }
}
@Test(timeout = 4000)
public void test099() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
HelpFormatter helpFormatter1 = new HelpFormatter();
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
StringBuffer stringBuffer1 = helpFormatter1.renderWrappedText(stringBuffer0, 1, 0, "");
assertEquals(" ", stringBuffer1.toString());
Options options0 = new Options();
Options options1 = options0.addOption("arg", true, "");
Options options2 = new Options();
options0.getMatchingOptions("[");
helpFormatter1.printHelp("usage: ", "", options1, "{P`KcORk(~yC", true);
assertEquals("usage: ", helpFormatter1.getSyntaxPrefix());
assertEquals("arg", helpFormatter1.getArgName());
assertEquals(3, helpFormatter1.defaultDescPad);
assertEquals(74, helpFormatter1.defaultWidth);
}
@Test(timeout = 4000)
public void test100() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
StringWriter stringWriter0 = new StringWriter();
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter0, true);
Object object0 = new Object();
Object object1 = new Object();
Object[] objectArray0 = new Object[3];
Object object2 = new Object();
objectArray0[0] = object2;
objectArray0[1] = (Object) "";
objectArray0[2] = object0;
PrintWriter printWriter0 = mockPrintWriter0.format((Locale) null, "--", objectArray0);
helpFormatter0.printUsage(printWriter0, 32, "");
assertEquals("--usage:\n", stringWriter0.toString());
assertEquals("arg", helpFormatter0.getArgName());
}
@Test(timeout = 4000)
public void test101() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
String string0 = helpFormatter0.createPadding(63);
assertEquals(" ", string0);
FileSystemHandling.appendLineToFile((EvoSuiteFile) null, ":+![W%kZN.");
Options options0 = new Options();
HelpFormatter helpFormatter1 = new HelpFormatter();
Options options1 = new Options();
Options options2 = new Options();
Option option0 = new Option((String) null, "n`Z: ");
Options options3 = options2.addOption(option0);
helpFormatter1.printHelp("-", "\n", options3, "~Fl", false);
options0.getOptions();
helpFormatter0.printHelp(13, "' contains an illegal character : '", "~Fl", options0, "--", false);
assertEquals(" ", helpFormatter0.getLongOptSeparator());
}
@Test(timeout = 4000)
public void test102() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
String string0 = "MiY)b>?hs_{t1g";
Options options0 = new Options();
options0.hasOption("--");
String string1 = ")O9<YPtORc-Xe>@3s";
options0.getMatchingOptions(")O9<YPtORc-Xe>@3s");
helpFormatter0.setLongOptPrefix(")O9<YPtORc-Xe>@3s");
boolean boolean0 = false;
Options options1 = options0.addOption("", false, "\n");
options1.toString();
options1.getOptionGroups();
options1.getOptionGroups();
String string2 = "Sg2zOR";
options1.getOption("Sg2zOR");
boolean boolean1 = false;
options1.helpOptions();
helpFormatter0.printHelp("MiY)b>?hs_{t1g", options1, false);
PrintWriter printWriter0 = null;
int int0 = (-2658);
// Undeclared exception!
// try {
options0.addOption("--", false, "");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // The option '--' contains an illegal character : '-'
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test103() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
String string0 = "MiY)b>?hs_{t1g";
Options options0 = new Options();
options0.hasOption("--");
String string1 = "";
String string2 = ")O9<YPtORc-Xe>@3s";
options0.getMatchingOptions(")O9<YPtORc-Xe>@3s");
helpFormatter0.setLongOptPrefix(")O9<YPtORc-Xe>@3s");
boolean boolean0 = false;
Options options1 = options0.addOption("", false, "\n");
options1.toString();
options1.getOptionGroups();
options1.getOptionGroups();
options1.getOption("Sg2zOR");
boolean boolean1 = false;
helpFormatter0.printHelp("MiY)b>?hs_{t1g", options1, false);
PrintWriter printWriter0 = null;
int int0 = (-2658);
// Undeclared exception!
// try {
options0.addOption("--", false, "");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // The option '--' contains an illegal character : '-'
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test104() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
helpFormatter0.getArgName();
Options options0 = new Options();
options0.addOption("Zv1vL", true, (String) null);
OptionGroup optionGroup0 = new OptionGroup();
boolean boolean0 = false;
Option option0 = new Option((String) null, "org.apache.commons.cli.HelpFormatter");
optionGroup0.addOption(option0);
Option option1 = null;
// try {
option1 = new Option("\n", false, "arg");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // Illegal option name '
// // '
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test105() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
String string0 = "NMBx;rR_iDn|*N";
helpFormatter0.setSyntaxPrefix("NMBx;rR_iDn|*N");
int int0 = (-1);
helpFormatter0.setWidth((-1));
PrintWriter printWriter0 = null;
Options options0 = new Options();
String string1 = "dx[";
// Undeclared exception!
// try {
options0.addOption("-", "dx[", false, "-");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // Illegal option name '-'
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test106() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
MockPrintWriter mockPrintWriter0 = new MockPrintWriter("usage: ");
Object[] objectArray0 = new Object[0];
mockPrintWriter0.format("usage: ", objectArray0);
// Undeclared exception!
// try {
helpFormatter0.printWrapped((PrintWriter) mockPrintWriter0, 13, (String) null);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test107() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
helpFormatter0.setLongOptPrefix("j`bC[pLO%#gT>NTL|2h");
helpFormatter0.defaultWidth = (-1236);
String string0 = "-";
int int0 = 0;
StringWriter stringWriter0 = new StringWriter(0);
StringWriter stringWriter1 = stringWriter0.append('o');
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter1, false);
Locale locale0 = Locale.ROOT;
Object[] objectArray0 = new Object[2];
objectArray0[0] = (Object) "j`bC[pLO%#gT>NTL|2h";
objectArray0[1] = (Object) helpFormatter0;
// Undeclared exception!
// try {
stringWriter0.write((String) null, (-956), 0);
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("java.io.StringWriter", e);
// }
}
@Test(timeout = 4000)
public void test108() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
helpFormatter0.getDescPadding();
MockFile mockFile0 = new MockFile("arg");
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockFile0);
String string0 = "org.apache.commons.cli.Options";
Object[] objectArray0 = new Object[2];
objectArray0[0] = (Object) mockFile0;
String string1 = null;
String string2 = "ZS#xvd|`-oNkW7`<cE1";
Options options0 = new Options();
// Undeclared exception!
// try {
options0.addOption(";\"E", false, "kG(9{1'.$Pu0]*v(Z");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // The option ';\"E' contains an illegal character : ';'
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test109() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
StringBuffer stringBuffer0 = new StringBuffer();
String string0 = "\"%tL3Uu%O]6y0";
// Undeclared exception!
// try {
helpFormatter0.renderWrappedText(stringBuffer0, (-293), (-1), "\"%tL3Uu%O]6y0");
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test110() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
int int0 = (-321);
helpFormatter0.setDescPadding((-321));
String string0 = "3s_NbN0F'bD_U(Wi!AB";
String string1 = null;
Options options0 = new Options();
helpFormatter0.setWidth(1323);
Option option0 = null;
// try {
option0 = new Option("org.apache.commons.cli.OptionGroup", (String) null);
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // The option 'org.apache.commons.cli.OptionGroup' contains an illegal character : '.'
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test111() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
Options options0 = new Options();
String string0 = null;
helpFormatter0.defaultNewLine = "";
helpFormatter0.defaultSyntaxPrefix = "";
helpFormatter0.defaultOptPrefix = "--";
boolean boolean0 = true;
// Undeclared exception!
// try {
helpFormatter0.printHelp("", "", options0, (String) null, true);
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test112() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
helpFormatter0.getLeftPadding();
helpFormatter0.getNewLine();
helpFormatter0.setLongOptSeparator("\n");
MockFile mockFile0 = new MockFile("usage: ");
boolean boolean0 = true;
MockFileOutputStream mockFileOutputStream0 = new MockFileOutputStream(mockFile0, true);
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockFileOutputStream0);
Options options0 = new Options();
OptionGroup optionGroup0 = new OptionGroup();
Options options1 = options0.addOptionGroup(optionGroup0);
Options options2 = options1.addOption("arg", true, "-");
String string0 = "\\>8!IJnU@";
options2.addOption("arg", ">8!IJnU@", true, "-");
Option option0 = new Option("", "\n");
optionGroup0.addOption(option0);
Option option1 = null;
// try {
option1 = new Option("usage: ", "--");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // The option 'usage: ' contains an illegal character : ':'
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test113() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
Options options0 = new Options();
StringBuffer stringBuffer0 = new StringBuffer(32);
HelpFormatter helpFormatter1 = new HelpFormatter();
helpFormatter1.renderWrappedText(stringBuffer0, 3, 16, "arg");
assertEquals(3, stringBuffer0.length());
helpFormatter1.setOptionComparator((Comparator) null);
FileSystemHandling.shouldAllThrowIOExceptions();
helpFormatter1.findWrapPos(">FB`r0", (-2386), 14);
options0.hasShortOption("arg");
helpFormatter1.getSyntaxPrefix();
helpFormatter0.printHelp(1644, "arg", "org.apache.commons.cli.Options", options0, (String) null, true);
assertEquals(74, helpFormatter0.getWidth());
}
@Test(timeout = 4000)
public void test114() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
Options options0 = new Options();
int int0 = helpFormatter0.findWrapPos("-", 5, 3);
assertEquals((-1), int0);
String string0 = helpFormatter0.getSyntaxPrefix();
assertEquals("usage: ", string0);
helpFormatter0.printHelp(5, "usage: ", "", options0, "", true);
assertEquals("usage: ", helpFormatter0.getSyntaxPrefix());
}
@Test(timeout = 4000)
public void test115() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
StringWriter stringWriter0 = new StringWriter();
StringBuffer stringBuffer0 = stringWriter0.getBuffer();
helpFormatter0.defaultLongOptPrefix = "eQ#c:>IX%";
StringBuffer stringBuffer1 = helpFormatter0.renderWrappedText(stringBuffer0, 32, 1168, "");
assertEquals(0, stringBuffer1.length());
Comparator<Integer> comparator0 = (Comparator<Integer>) mock(Comparator.class, new ViolatedAssumptionAnswer());
helpFormatter0.setOptionComparator(comparator0);
helpFormatter0.findWrapPos("", 1168, (-1));
assertEquals(" ", helpFormatter0.getLongOptSeparator());
assertEquals(74, helpFormatter0.defaultWidth);
assertEquals(1, helpFormatter0.defaultLeftPad);
assertEquals(3, helpFormatter0.defaultDescPad);
assertEquals("arg", helpFormatter0.getArgName());
assertEquals("-", helpFormatter0.getOptPrefix());
}
@Test(timeout = 4000)
public void test116() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
String string0 = "1JX10(7]t";
helpFormatter0.setNewLine("1JX10(7]t");
helpFormatter0.getSyntaxPrefix();
int int0 = 0;
Options options0 = new Options();
Options options1 = options0.addOption("arg", true, "--");
String string1 = "+~mSRat[VxOG\\`'-d";
// Undeclared exception!
// try {
options1.addOption("-", "", true, "+~mSRat[VxOG`'-d");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // Illegal option name '-'
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test117() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
StringWriter stringWriter0 = new StringWriter();
MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter0, false);
Object[] objectArray0 = new Object[4];
objectArray0[0] = (Object) "";
objectArray0[1] = (Object) mockPrintWriter0;
Object object0 = new Object();
objectArray0[2] = object0;
Object object1 = new Object();
objectArray0[3] = object1;
PrintWriter printWriter0 = mockPrintWriter0.format((Locale) null, "", objectArray0);
// Undeclared exception!
// try {
helpFormatter0.printUsage(printWriter0, (-2), "");
// fail("Expecting exception: StringIndexOutOfBoundsException");
// } catch(StringIndexOutOfBoundsException e) {
// }
}
@Test(timeout = 4000)
public void test118() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
HelpFormatter helpFormatter1 = new HelpFormatter();
StringBuffer stringBuffer0 = new StringBuffer((CharSequence) " ");
helpFormatter1.renderWrappedText(stringBuffer0, 1, 0, "");
int int0 = 0;
Options options0 = new Options();
boolean boolean0 = true;
// Undeclared exception!
// try {
options0.addOption("[ option: ", true, "");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // The option '[ option: ' contains an illegal character : '['
// //
// verifyException("org.apache.commons.cli.OptionValidator", e);
// }
}
@Test(timeout = 4000)
public void test119() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
String string0 = "";
Options options0 = new Options();
Options options1 = options0.addOption("arg", true, " ");
// Undeclared exception!
// try {
helpFormatter0.printHelp(1765, "", "", options1, "");
// fail("Expecting exception: IllegalArgumentException");
// } catch(IllegalArgumentException e) {
// //
// // cmdLineSyntax not provided
// //
// verifyException("org.apache.commons.cli.HelpFormatter", e);
// }
}
@Test(timeout = 4000)
public void test120() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
helpFormatter0.setLeftPadding(652);
String string0 = "Mw";
// try {
MockURI.URI("usage: ", "<", "-", (-1510), " ", "Mw", "--");
// fail("Expecting exception: URISyntaxException");
// } catch(URISyntaxException e) {
// //
// // Relative path in absolute URI: usage: ://%3C@-:-1510%20%20%20?Mw#--
// //
// verifyException("java.net.URI", e);
// }
}
@Test(timeout = 4000)
public void test121() throws Throwable {
HelpFormatter helpFormatter0 = new HelpFormatter();
String string0 = "U,.d!bxRW=9";
MockPrintStream mockPrintStream0 = null;
// try {
mockPrintStream0 = new MockPrintStream(" ", "U,.d!bxRW=9");
// fail("Expecting exception: UnsupportedEncodingException");
// } catch(Throwable e) {
// //
// // U,.d!bxRW=9
// //
// verifyException("java.io.PrintStream", e);
// }
}
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
f86e57040fe03097a39e3cb05febac6be3f2ec27 | f4c22a8f1fb3abc4eaf8744dfe3a1fdbcd6f4242 | /Hatena_Android/src/com/mofumofu3n/hatena/knowledge/KnowledgeFragment.java | 67822db1a8256b37d81e0e237914bfeaae1bcc56 | [] | no_license | mofumofu3n/Hatena | a8f9eddf5bdc900abb3a76fef86f726ae98dd44d | 6454814d6274631d2e9a7fb4e1c4f896726b0924 | refs/heads/master | 2021-01-15T21:07:34.870575 | 2014-02-12T23:04:48 | 2014-02-12T23:04:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 578 | java | package com.mofumofu3n.hatena.knowledge;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.mofumofu3n.hatena.R;
public class KnowledgeFragment extends Fragment {
public KnowledgeFragment() {
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_main_dummy,
container, false);
return rootView;
}
}
| [
"mofumofu3n@gmail.com"
] | mofumofu3n@gmail.com |
098de79310dfcdedd28a782a8f51a6ef0a9861bb | 866f342f5af3775873e30fcf6c93dc2b3ac6c000 | /app/src/main/java/com/example/mdazmal/travel/WeatherActivity.java | 207599ab1bff88b70a97d692cbea81731d5e6901 | [] | no_license | sayeedazmal/Travel-Apps | 1defe0b0e9699ab9c4cae0e952effcfb3df1af62 | e98c1b8b649b3800929abde8042b448f3b88437a | refs/heads/master | 2020-04-09T10:44:16.884565 | 2019-03-09T18:28:08 | 2019-03-09T18:28:08 | 160,281,394 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,909 | java | package com.example.mdazmal.travel;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.location.Location;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.widget.SearchView;
import android.widget.Toast;
import com.google.android.gms.location.FusedLocationProviderClient;
import com.google.android.gms.location.LocationServices;
import com.google.android.gms.tasks.OnSuccessListener;
public class WeatherActivity extends AppCompatActivity {
private TabLayout tabLayout;
private ViewPager viewPager;
private SearchView citySearchView;
private FusedLocationProviderClient providerClient;
private FragmentCurrentWeather currentWeatherPage;
private FragmentFiveDayForecast fragmentFiveDayForecast;
private final int MY_REQUEST_CODE = 999;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_weather);
providerClient =
LocationServices.getFusedLocationProviderClient(this);
tabLayout = findViewById(R.id.weatherTabLayout);
viewPager = findViewById(R.id.weatherViewPager);
citySearchView = findViewById(R.id.cityWeatherSeachView);
currentWeatherPage = new FragmentCurrentWeather();
fragmentFiveDayForecast = new FragmentFiveDayForecast();
tabLayout.addTab(tabLayout.newTab().setText("Current"));
tabLayout.addTab(tabLayout.newTab().setText("5 Day Forecast"));
tabLayout.setSelectedTabIndicatorColor(Color.rgb(255,255,255));
tabLayout.setTabTextColors(Color.rgb(255,255,255),Color.rgb(255,255,255));
final MyPagerAdapter adapter = new MyPagerAdapter(getSupportFragmentManager());
viewPager.setAdapter(adapter);
viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));
tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
@Override
public void onTabSelected(TabLayout.Tab tab) {
viewPager.setCurrentItem(tab.getPosition());
}
@Override
public void onTabUnselected(TabLayout.Tab tab) {
}
@Override
public void onTabReselected(TabLayout.Tab tab) {
}
});
citySearchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String query) {
currentWeatherPage.updateWeatherByCityName(query);
fragmentFiveDayForecast.updateWeatherByCityName(query);
return false;
}
@Override
public boolean onQueryTextChange(String newText) {
return false;
}
});
}
private class MyPagerAdapter extends FragmentPagerAdapter {
public MyPagerAdapter(FragmentManager fm ) {
super(fm);
}
@Override
public Fragment getItem(int position) {
switch (position){
case 0:
currentWeatherPage.updateWeatherByCityName("dhaka");
return currentWeatherPage;
case 1:
fragmentFiveDayForecast.updateWeatherByCityName("dhaka");
return fragmentFiveDayForecast;
}
return null;
}
@Override
public int getCount() {
return 2;
}
}
private boolean checkLocationPermission() {
if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(this,
new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION,android.Manifest.permission.ACCESS_COARSE_LOCATION},
MY_REQUEST_CODE);
return false;
}
return true;
}
@Override
public void onRequestPermissionsResult(int requestCode,
String permissions[], int[] grantResults) {
if (requestCode == MY_REQUEST_CODE && grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {
if(checkLocationPermission()){
getUserLocation();
}
} else {
Toast.makeText(this, "Permission Denied", Toast.LENGTH_SHORT).show();
}
return;
}
private void getUserLocation(){
if(checkLocationPermission()) {
providerClient.getLastLocation()
.addOnSuccessListener(this, new OnSuccessListener<Location>() {
@Override
public void onSuccess(Location location) {
if(location != null){
Toast.makeText(WeatherActivity.this, "Location is found" , Toast.LENGTH_SHORT).show();
currentWeatherPage.updateWeatherByLocation(location);
fragmentFiveDayForecast.updateWeatherByLocation(location);
}
}
});
}
}
@Override
protected void onResume() {
super.onResume();
if(checkLocationPermission()){
getUserLocation();
}
}
}
| [
"sayeedazmal01@gmail.com"
] | sayeedazmal01@gmail.com |
803528e00b764d4cfe84d681df7e4781c5755e3b | 4c2c3d5a1b7873861b7cf436089feebf41ca1b0e | /Expr/src/parser/Main.java | 3750d5ba4ddc385a64e1a9de8f556e128e5c9eb5 | [] | no_license | danecek/bie-pjv-2016-winter | 146482def8626f75c8d76b091c847db05a3811c1 | 15e266d4977ee43c2b47a623cb6ad465a7d19c88 | refs/heads/master | 2020-05-29T08:41:50.763658 | 2016-12-14T18:12:28 | 2016-12-14T18:12:28 | 70,082,598 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 544 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package parser;
import java.io.IOException;
import java.io.StringReader;
/**
*
* @author danecek
*/
public class Main {
public static void main(String[] args) throws IOException, Exception {
Scanner s = new Scanner(new StringReader("+ + /*-"));
while (!s.isEof()) {
System.out.println(s.nextToken());
}
}
}
| [
"danecek@fit.cvut.cz"
] | danecek@fit.cvut.cz |
20b3236f66fbbf52fb75a3e670e0f1317551ac27 | bbbe7dd04731e751efe4219f0e12afa63d3ce352 | /src/edu/stonybrook/middleboxes/NatTests.java | b04815be959a142698ddbe37c84c449f24f610ba | [] | no_license | pravsalam/middlebox-detector-android | 17f2d7ee664021a5e8f13b2f603966198190e6ae | 699bc30ad8b50673ce77a203ef907ddf9b5270f5 | refs/heads/master | 2016-09-02T03:13:09.247082 | 2015-05-20T14:54:12 | 2015-05-20T14:54:12 | 32,974,421 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,120 | java | package edu.stonybrook.middleboxes;
import android.content.Context;
import android.os.AsyncTask;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.format.Formatter;
import android.util.Log;
import android.view.View;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.net.URL;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by praveenkumaralam on 3/26/15.
*/
public class NatTests extends AsyncTask<Object, Void, Map>{
final String USER_AGENT = "TEST";
private String local_ip="";
private String publicIp="";
private String public_ip_port80="";
private int publicPort=0;
private int NAT_PROXY_YES = 1;
private int NAT_PROXY_NO = 2;
@Override
protected Map doInBackground(Object... params) {
View view = (View)params[0];
String server = (String)params[1];
Context context = view.getContext();
String androidID = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);
TelephonyManager manager = (TelephonyManager) context.getSystemService(context.TELEPHONY_SERVICE);
String networkOperator = manager.getNetworkOperatorName().replaceAll("\\s","");
try {
for (Enumeration<NetworkInterface>
en = NetworkInterface.getNetworkInterfaces();
en.hasMoreElements();)
{
NetworkInterface intf = en.nextElement();
for (Enumeration<InetAddress>
enumIpAddr = intf.getInetAddresses();enumIpAddr.hasMoreElements();) {
InetAddress inetAddress = enumIpAddr.nextElement();
if (!inetAddress.isLoopbackAddress())
{
String someString = inetAddress.getHostAddress().toString();
if(!inetAddress.isLinkLocalAddress())
{
local_ip = someString;
}
}
}
}
}
catch (SocketException ex)
{
Log.e("ServerActivity", ex.toString());
}
String url = "http://";
url += server + ":8080/?" + "unique_id=" + androidID + "&network_operator=" + networkOperator;
url +="&local_ip="+local_ip;
Log.i("INFO", url);
int natProxy = runNatTest(url);
String url_port80 = "http://"+server+":80";
int flipTestResult = runIpFlipTest(url_port80);
Map testResults = new HashMap();
if(natProxy == NAT_PROXY_YES )
{
testResults.put("NATProxy","Yes");
testResults.put("Device_local_IP",local_ip);
testResults.put("Device_public_IP",publicIp);
}
else if(natProxy == NAT_PROXY_NO)
{
testResults.put("NATProxy","No");
}
else
testResults.put("NATProxy","Internal Error");
if(flipTestResult == ErrorConstants.SUCCESS)
{
if(publicIp.equals(public_ip_port80))
{
testResults.put("IpFlipping","No");
}
else
testResults.put("IpFlipping","Yes");
}
else{
testResults.put("IpFlipping ", "Internal Error");
}
return testResults;
}
private int runNatTest(String url) {
try {
URL urlObj = new URL(url);
HttpURLConnection httpCon = (HttpURLConnection) urlObj.openConnection();
httpCon.setRequestMethod("GET");
httpCon.setRequestProperty("User-Agent", USER_AGENT);
httpCon.setRequestProperty("Accept", "*/*");
httpCon.setRequestProperty("Test-Type", "NatTest");
httpCon.setConnectTimeout(1500);
int responseCode = httpCon.getResponseCode();
Integer code = responseCode;
Log.i("INFO", code.toString());
BufferedReader in = new BufferedReader(
new InputStreamReader(httpCon.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
Map<String, List<String>> map = httpCon.getHeaderFields();
for (Map.Entry<String, List<String>> entry : map.entrySet()) {
Log.i("INFO", entry.getKey() + " : " + entry.getValue());
}
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
httpCon.disconnect();
Log.i("INFO", response.toString());
try {
JSONObject parentJsonObj = new JSONObject(response.toString());
JSONObject childJsonObj = (JSONObject) parentJsonObj.get("NatProxy");
if (((String) childJsonObj.get("NatPresent")).equals("Yes")) {
publicIp = (String) childJsonObj.get("clientIp");
publicPort = (Integer)childJsonObj.get("clientPort");
return NAT_PROXY_YES;
} else
return NAT_PROXY_NO;
} catch (Exception e) {
e.printStackTrace();
return ErrorConstants.INTERNAL_ERROR;
}
} catch (IOException e) {
//malformed URL do nothing
Log.i("INFO", e.getLocalizedMessage());
return ErrorConstants.INTERNAL_ERROR;
}
}
private int runIpFlipTest(String url) {
try {
URL urlObj = new URL(url);
HttpURLConnection httpCon = (HttpURLConnection) urlObj.openConnection();
httpCon.setRequestMethod("GET");
httpCon.setRequestProperty("User-Agent", USER_AGENT);
httpCon.setRequestProperty("Accept", "*/*");
httpCon.setConnectTimeout(2400);
int responseCode = httpCon.getResponseCode();
Integer code = responseCode;
Log.i("INFO", code.toString());
BufferedReader in = new BufferedReader(
new InputStreamReader(httpCon.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
Map<String, List<String>> map = httpCon.getHeaderFields();
for (Map.Entry<String, List<String>> entry : map.entrySet()) {
Log.i("INFO", entry.getKey() + " : " + entry.getValue());
}
if ((inputLine = in.readLine()) != null) {
public_ip_port80 = inputLine;
}
in.close();
httpCon.disconnect();
return ErrorConstants.SUCCESS;
} catch (IOException e) {
//malformed URL do nothing
Log.i("INFO", "Error"+e.getLocalizedMessage());
return ErrorConstants.INTERNAL_ERROR;
}
}
}
| [
"praveen.alam@gmail.com"
] | praveen.alam@gmail.com |
93b45e25eab4b1c0517d24d2af0bcbdbbb953bd7 | 3b96062cf8aaf3e1164b9df543fb4f7c8173b47b | /AStarConnect/src/swing/ButtonPanel.java | add8d67ef94ffc959b97f967af3f0cfd67ab4cf3 | [] | no_license | rmkamaleev/SummerPractice | f75462de79a9151975c8de3624d4ea066c6f4a91 | fdc79edd521847e377c11bc770e7689512539b31 | refs/heads/master | 2021-09-18T06:38:57.229518 | 2018-07-10T23:27:46 | 2018-07-10T23:27:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 33,941 | java | package swing;
import algorithm.AStar;
import datastructures.Graph;
import org.graphstream.graph.Edge;
import org.graphstream.graph.Node;
import scala.App;
import javax.swing.*;
import javax.swing.border.TitledBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseListener;
import java.io.*;
import java.util.*;
import java.util.List;
public class ButtonPanel extends JPanel implements ActionListener
{
public final JButton startButton = createButton("Start", 10, 50);
public final JButton stepButton = createButton("Step", 170, 50);
public final JButton fileButton = createButton("Upload from file", 10, 15);
public final JButton restartButton = createButton("Restart", 170, 15);
public static boolean isGraphicGH = true;
public static boolean isFileGH = true;
public static boolean isFile = false;
private AppLauncher appLauncher = null;
AStar<String> astar = new AStar<>();
private Graph<String> graph;
private String resultPath = "";
private File file = null;
int a = 0; int b = 0;
int line = 0;
public ButtonPanel(AppLauncher appLauncher) {
super(null);
this.appLauncher = appLauncher;
startButton.addActionListener(this);
stepButton.addActionListener(this);
fileButton.addActionListener(this);
restartButton.addActionListener(this);
add(startButton);
add(stepButton);
add(fileButton);
add(restartButton);
}
private JButton createButton(String text, int x, int y) {
JButton createdButton = new JButton(text);
createdButton.setBounds(x, y, 150, 30);
createdButton.setFocusPainted(false);
createdButton.setBorderPainted(true);
return createdButton;
}
public void addStartButtonListener(MouseListener listener) {
startButton.addMouseListener(listener);
}
public void addFileButtonListener(MouseListener listener) {
fileButton.addMouseListener(listener);
}
public void addStepButtonListener(MouseListener listener) {
stepButton.addMouseListener(listener);
}
public void addRestartListener(MouseListener listener) {
restartButton.addMouseListener(listener);
}
public void actionPerformed(ActionEvent ae)
{
if (ae.getSource().equals(startButton))
{
a = 0; b = 0;
if(isFile){
if (!(file == null))
{
readFileAndStartAlgorithm();
AppLauncher.infoBlock.setText("");
AppLauncher.infoBlock.append(graph.comments);
AppLauncher.infoBlock.append("The minimum path is: " + resultPath);
}
else
{
AppLauncher.infoBlock.setText("");
AppLauncher.infoBlock.append("Graph was not initialized");
}
} else {
AppLauncher.graph.clear();
AppLauncher.graph.addAttribute("ui.label");
AppLauncher.graph.addAttribute("ui.stylesheet",
"graph{ fill-color: white; } " +
"node{ size: 30px, 30px;" +
"fill-color: gray;" +
"text-size: 24px;" +
"text-color: black;" +
"text-style: bold;" +
"shape: circle;" +
"size-mode: fit; }" +
"edge{ text-size: 24px;" +
"text-color: black;" +
"text-style: bold; }");
readGraphicsandStartAlgorithm();
AppLauncher.infoBlock.setText("");
AppLauncher.infoBlock.append(graph.comments);
AppLauncher.infoBlock.append("The minimum path is: " + resultPath);
}
line = 0;
}
else if (ae.getSource().equals(stepButton))
{
if(isFile) {
if (!(file == null)) {
if(a == 0)
{
Scanner scanner = null;
try {
scanner = new Scanner(file);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
List<Graph.Edge<String>> edges = new ArrayList<>();
Set<Graph.Vertex<String>> vertices = new HashSet<>();
String start = scanner.next();
String goal = scanner.next();
while(!scanner.hasNext("heuristic:")){
String from = scanner.next();
String to = scanner.next();
int weight = scanner.nextInt();
Graph.Vertex<String> v1 = new Graph.Vertex(from);
Graph.Vertex<String> v2 = new Graph.Vertex(to);
edges.add(new Graph.Edge<>(weight,v1,v2));
if (!vertices.contains(v1)){
vertices.add(v1);
}
if (!vertices.contains(v2)){
vertices.add(v2);
}
}
for (Graph.Vertex<String> v: vertices){
for(Graph.Edge<String> e: edges){
if(v.getValue().equals(e.getFromVertex().getValue())){
if(!v.getEdges().contains(e))v.addEdge(e);
}
}
}
for (Graph.Edge<String> e: edges){
for (Graph.Vertex<String> v: vertices){
if(e.getToVertex().getValue().equals(v.getValue())){
if(!e.getToVertex().equals(v)) e.setTo(v);
}
if(e.getFromVertex().getValue().equals(v.getValue())){
if(!e.getFromVertex().equals(v)) e.setFrom(v);
}
}
}
graph = new Graph<>(vertices,edges);
resultPath = "";
List<Graph.Edge<String>> path = new ArrayList<>();
if (!isFileGH){
Map<String,Integer> hScore = new HashMap<>();
String value;
Integer heuristic;
value = scanner.next();
while(scanner.hasNext()){
value = scanner.next();
heuristic = scanner.nextInt();
hScore.put(value,heuristic);
}
astar.setH(false);
astar.sethScore(hScore);
}else astar.setH(true);
try {
astar.aStar(graph,graph.findVertex(start),graph.findVertex(goal));
graph.comments = "";
path = astar.calculate(false);
a++;
}
catch(NullPointerException e)
{
//System.out.println("File contains incorrect data!");
JOptionPane.showMessageDialog(null, "File contains incorrect data");
System.exit(1);
} catch (IOException e) {
e.printStackTrace();
}
//if(path == null) {
// //System.out.println("Path from <"+ start + "> to <" + goal + "> doesn't exist");
// JOptionPane.showMessageDialog(null, "Path from <"+ start + "> to <" + goal + "> doesn't exist");
//}
if(path != null) {
for (Graph.Edge<String> v : path) {
if (v.getFromVertex().getValue().equals(start)) {
resultPath += start;
resultPath += v.getToVertex().getValue();
continue;
}
resultPath += v.getToVertex().getValue();
}
}
}
else {
Scanner scanner = null;
try {
scanner = new Scanner(file);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
List<Graph.Edge<String>> edges = new ArrayList<>();
Set<Graph.Vertex<String>> vertices = new HashSet<>();
String start = scanner.next();
String goal = scanner.next();
List<Graph.Edge<String>> path = new ArrayList<>();
try{
path = astar.calculate(false);
}
catch(NullPointerException e)
{
//System.out.println("File contains incorrect data!");
JOptionPane.showMessageDialog(null, "File contains incorrect data");
System.exit(1);
}
//if(path == null) {
// System.out.println("Path from <"+ start + "> to <" + goal + "> doesn't exist");
// JOptionPane.showMessageDialog(null, "Path from <"+ start + "> to <" + goal + "> doesn't exist");
//}
if(path != null)
{
for (Graph.Edge<String> v : path) {
if (v.getFromVertex().getValue().equals(start)) {
resultPath += start;
resultPath += v.getToVertex().getValue();
continue;
}
resultPath += v.getToVertex().getValue();
}
}
}
if (line == 0) {
AppLauncher.infoBlock.setText("");
}
if (line == graph.comments.split("\n\n").length) {
AppLauncher.infoBlock.append("The minimum path is: " + resultPath);
line++;
} else if (line < graph.comments.split("\n\n").length) {
AppLauncher.infoBlock.append(graph.comments.split("\n\n")[line] + "\n\n");
//for (int j = 0; j <= graph.comments.split("\n")[line].split(" ")[graph.comments.split("\n").length - 1].split(" , ").length; j += 2)
//{
//AppLauncher.graph.getNode(graph.comments.split("\n")[line].split(" ")[graph.comments.split("\n").length - 1].split(" , ")[j].charAt(1)).addAttribute("ui.style", "fill-color: yellow;");
//System.out.println(graph.comments.split("\n")[line].split(" ")[graph.comments.split("\n").length - 1].split(" , ")[j].charAt(1));
//}
line++;
}
} else {
AppLauncher.infoBlock.setText("");
AppLauncher.infoBlock.append("Graph was not initialized");
}
}else{
resultPath = "";
if (b == 0)
{
List<Graph.Edge<String>> edges = DrawPanel.takeEdges();
Set<Graph.Vertex<String>> vertices = DrawPanel.takeVertices();
for (Graph.Vertex<String> v: vertices){
for(Graph.Edge<String> e: edges){
if(v.getValue().equals(e.getFromVertex().getValue())){
if(!v.getEdges().contains(e))v.addEdge(e);
}
}
}
for (Graph.Edge<String> e: edges){
for (Graph.Vertex<String> v: vertices){
if(e.getToVertex().getValue().equals(v.getValue())){
if(!e.getToVertex().equals(v)) e.setTo(v);
}
if(e.getFromVertex().getValue().equals(v.getValue())){
if(!e.getFromVertex().equals(v)) e.setFrom(v);
}
}
}
graph = new Graph<>(vertices,edges);
AStar<String> astar = new AStar<>();
List<Graph.Edge<String>> path = new ArrayList<>();
String start = DrawPanel.getStartNode();
String goal = DrawPanel.getGoalNode();
// TODO
AppLauncher.graph.clear();
AppLauncher.graph.addAttribute("ui.label");
AppLauncher.graph.addAttribute("ui.stylesheet",
"graph{ fill-color: white; } " +
"node{ size: 30px, 30px;" +
"fill-color: gray;" +
"text-size: 24px;" +
"text-color: black;" +
"text-style: bold;" +
"shape: circle;" +
"size-mode: fit; }" +
"edge{ text-size: 24px;" +
"text-color: black;" +
"text-style: bold; }");
AppLauncher.graph = graph.getVisualization();
AppLauncher.viewer = AppLauncher.graph.display();
AppLauncher.viewer.enableAutoLayout();
AppLauncher.view = AppLauncher.viewer.addDefaultView(false);
AppLauncher.view.setBorder(new TitledBorder("Graph Image"));
AppLauncher.leftPanel.removeAll();
AppLauncher.leftPanel.add(Box.createRigidArea(new Dimension(500, 10)));
AppLauncher.leftPanel.add(AppLauncher.view);
AppLauncher.leftPanel.add(Box.createRigidArea(new Dimension(500, 10)));
AppLauncher.leftPanel.add(Box.createRigidArea(new Dimension(500, 40)));
AppLauncher.leftPanel.updateUI();
if(isGraphicGH){
astar.setH(true);
DrawPanel.setInputHeuristic(false);
}
else {
Map<String,Integer> hScore = DrawPanel.takeHScore();
DrawPanel.setInputHeuristic(true);
astar.setH(false);
astar.sethScore(hScore);
}
try {
astar.aStar(graph,graph.findVertex(start),graph.findVertex(goal));
graph.comments = "";
path = astar.calculate(false);
b++;
}
catch(NullPointerException e)
{
// System.out.println("File contains incorrect data!");
JOptionPane.showMessageDialog(null, "File contains incorrect data");
System.exit(1);
} catch (IOException e) {
e.printStackTrace();
}
//if(path == null) {
// //System.out.println("Path from <"+ start + "> to <" + goal + "> doesn't exist");
// JOptionPane.showMessageDialog(null, "Path from <"+ start + "> to <" + goal + "> doesn't exist");
//}
if(path != null) {
for (Graph.Edge<String> v : path) {
if (v.getFromVertex().getValue().equals(start)) {
resultPath += start;
resultPath += v.getToVertex().getValue();
continue;
}
resultPath += v.getToVertex().getValue();
}
}
}
else {
List<Graph.Edge<String>> edges = DrawPanel.takeEdges();
Set<Graph.Vertex<String>> vertices = DrawPanel.takeVertices();
for (Graph.Vertex<String> v: vertices){
for(Graph.Edge<String> e: edges){
if(v.getValue().equals(e.getFromVertex().getValue())){
if(!v.getEdges().contains(e))v.addEdge(e);
}
}
}
for (Graph.Edge<String> e: edges){
for (Graph.Vertex<String> v: vertices){
if(e.getToVertex().getValue().equals(v.getValue())){
if(!e.getToVertex().equals(v)) e.setTo(v);
}
if(e.getFromVertex().getValue().equals(v.getValue())){
if(!e.getFromVertex().equals(v)) e.setFrom(v);
}
}
}
graph = new Graph<>(vertices,edges);
AStar<String> astar = new AStar<>();
List<Graph.Edge<String>> path = new ArrayList<>();
String start = DrawPanel.getStartNode();
String goal = DrawPanel.getGoalNode();
try {
path = astar.calculate(false);
}
catch(NullPointerException e)
{
// System.out.println("File contains incorrect data!");
JOptionPane.showMessageDialog(null, "File contains incorrect data");
System.exit(1);
}
//if(path == null) {
// //System.out.println("Path from <"+ start + "> to <" + goal + "> doesn't exist");
// JOptionPane.showMessageDialog(null, "Path from <"+ start + "> to <" + goal + "> doesn't exist");
//}
if (path != null) {
for (Graph.Edge<String> v : path) {
if (v.getFromVertex().getValue().equals(start)) {
resultPath += start;
resultPath += v.getToVertex().getValue();
continue;
}
resultPath += v.getToVertex().getValue();
}
}
}
if (line == 0) {
AppLauncher.infoBlock.setText("");
}
if (line == graph.comments.split("\n\n").length) {
AppLauncher.infoBlock.append("The minimum path is: " + resultPath);
line++;
} else if (line < graph.comments.split("\n\n").length) {
AppLauncher.infoBlock.append(graph.comments.split("\n\n")[line] + "\n\n");
//for (int j = 0; j <= graph.comments.split("\n")[line].split(" ")[graph.comments.split("\n").length - 1].split(" , ").length; j += 2)
//{
//AppLauncher.graph.getNode(graph.comments.split("\n")[line].split(" ")[graph.comments.split("\n").length - 1].split(" , ")[j].charAt(1)).addAttribute("ui.style", "fill-color: yellow;");
//System.out.println(graph.comments.split("\n")[line].split(" ")[graph.comments.split("\n").length - 1].split(" , ")[j].charAt(1));
//}
line++;
}
}
}
else if (ae.getSource().equals(fileButton))
{
a = 0; b = 0;
AppLauncher.viewer.disableAutoLayout();
isFile = true;
ActionListener buttonlistener = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
JFileChooser file_chooser = new JFileChooser();
file_chooser.setDialogTitle("Choose File");
file_chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
int result = file_chooser.showOpenDialog(null);
if (result == JFileChooser.APPROVE_OPTION)
{
file = file_chooser.getSelectedFile();
FileReader file_reader = null;
AppLauncher.graph.clear();
AppLauncher.graph.addAttribute("ui.label");
AppLauncher.graph.addAttribute("ui.stylesheet",
"graph{ fill-color: white; } " +
"node{ size: 30px, 30px;" +
"fill-color: gray;" +
"text-size: 24px;" +
"text-color: black;" +
"text-style: bold;" +
"shape: circle;" +
"size-mode: fit; }" +
"edge{ text-size: 24px;" +
"text-color: black;" +
"text-style: bold; }");
try
{
file_reader = new FileReader(file);
BufferedReader br = new BufferedReader(file_reader);
String line = br.readLine();
String start = line.split(" ")[0];
String goal = line.split(" ")[1];
line = br.readLine();
while(!(line.equals("heuristic:")))
{
AppLauncher.graph.addEdge(line.replace(" ", ""), line.split(" ")[0], line.split(" ")[1], true);
AppLauncher.graph.getNode(line.split(" ")[0]).addAttribute("ui.label", line.split(" ")[0]);
AppLauncher.graph.getNode(line.split(" ")[1]).addAttribute("ui.label", line.split(" ")[1]);
AppLauncher.graph.getEdge(line.replace(" ", "")).addAttribute("ui.label", line.split(" ")[2]);
line = br.readLine();
}
AppLauncher.graph.getNode(start).addAttribute("ui.style", "fill-color: green;");
AppLauncher.graph.getNode(goal).addAttribute("ui.style", "fill-color: red;");
}
catch (FileNotFoundException s)
{
s.printStackTrace();
}
catch (IOException m)
{
m.printStackTrace();
}
AppLauncher.viewer.enableAutoLayout();
AppLauncher.view = AppLauncher.viewer.addDefaultView(false);
AppLauncher.view.setBorder(new TitledBorder("Graph Image"));
AppLauncher.leftPanel.removeAll();
AppLauncher.leftPanel.add(Box.createRigidArea(new Dimension(500, 10)));
AppLauncher.leftPanel.add(AppLauncher.view);
AppLauncher.leftPanel.add(Box.createRigidArea(new Dimension(500, 10)));
AppLauncher.leftPanel.add(Box.createRigidArea(new Dimension(500, 40)));
AppLauncher.leftPanel.updateUI();
line = 0;
AppLauncher.infoBlock.setText("");
}
}
};
ActionListener h1listener = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
isFileGH = true;
}
};
ActionListener h2listener = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
isFileGH = false;
}
};
RadioButtonJFrame rad = new RadioButtonJFrame(buttonlistener,h1listener,h2listener);
rad.setVisible(true);
}
else if (ae.getSource().equals(restartButton)) {
appLauncher.drawPanel.clearAll();
appLauncher.clearInfoBlock();
appLauncher.getContentPane().removeAll();
appLauncher.initRootPanel();
}
}
private void readFileAndStartAlgorithm(){
Scanner scanner = null;
try {
scanner = new Scanner(file);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
List<Graph.Edge<String>> edges = new ArrayList<>();
Set<Graph.Vertex<String>> vertices = new HashSet<>();
String start = scanner.next();
String goal = scanner.next();
while(!scanner.hasNext("heuristic:")){
String from = scanner.next();
String to = scanner.next();
int weight = scanner.nextInt();
Graph.Vertex<String> v1 = new Graph.Vertex(from);
Graph.Vertex<String> v2 = new Graph.Vertex(to);
edges.add(new Graph.Edge<>(weight,v1,v2));
if (!vertices.contains(v1)){
vertices.add(v1);
}
if (!vertices.contains(v2)){
vertices.add(v2);
}
}
for (Graph.Vertex<String> v: vertices){
for(Graph.Edge<String> e: edges){
if(v.getValue().equals(e.getFromVertex().getValue())){
if(!v.getEdges().contains(e))v.addEdge(e);
}
}
}
for (Graph.Edge<String> e: edges){
for (Graph.Vertex<String> v: vertices){
if(e.getToVertex().getValue().equals(v.getValue())){
if(!e.getToVertex().equals(v)) e.setTo(v);
}
if(e.getFromVertex().getValue().equals(v.getValue())){
if(!e.getFromVertex().equals(v)) e.setFrom(v);
}
}
}
graph = new Graph<>(vertices,edges);
resultPath = "";
AStar<String> astar = new AStar<>();
List<Graph.Edge<String>> path = new ArrayList<>();
if (!isFileGH){
Map<String,Integer> hScore = new HashMap<>();
String value;
Integer heuristic;
value = scanner.next();
while(scanner.hasNext()){
value = scanner.next();
heuristic = scanner.nextInt();
hScore.put(value,heuristic);
}
astar.setH(false);
astar.sethScore(hScore);
}else astar.setH(true);
try {
astar.aStar(graph,graph.findVertex(start),graph.findVertex(goal));
path = astar.calculate(true);
}
catch(NullPointerException e)
{
//System.out.println("File contains incorrect data!");
JOptionPane.showMessageDialog(null, "File contains incorrect data");
System.exit(1);
} catch (IOException e) {
e.printStackTrace();
}
if(path == null) {
//System.out.println("Path from <"+ start + "> to <" + goal + "> doesn't exist");
JOptionPane.showMessageDialog(null, "Path from <"+ start + "> to <" + goal + "> doesn't exist");
}
else {
for (Graph.Edge<String> v : path) {
if (v.getFromVertex().getValue().equals(start)) {
resultPath += start;
resultPath += v.getToVertex().getValue();
continue;
}
resultPath += v.getToVertex().getValue();
}
}
}
private void readGraphicsandStartAlgorithm(){
List<Graph.Edge<String>> edges = DrawPanel.takeEdges();
Set<Graph.Vertex<String>> vertices = DrawPanel.takeVertices();
for (Graph.Vertex<String> v: vertices){
for(Graph.Edge<String> e: edges){
if(v.getValue().equals(e.getFromVertex().getValue())){
if(!v.getEdges().contains(e))v.addEdge(e);
}
}
}
for (Graph.Edge<String> e: edges){
for (Graph.Vertex<String> v: vertices){
if(e.getToVertex().getValue().equals(v.getValue())){
if(!e.getToVertex().equals(v)) e.setTo(v);
}
if(e.getFromVertex().getValue().equals(v.getValue())){
if(!e.getFromVertex().equals(v)) e.setFrom(v);
}
}
}
graph = new Graph<>(vertices,edges);
AStar<String> astar = new AStar<>();
List<Graph.Edge<String>> path = new ArrayList<>();
String start = DrawPanel.getStartNode();
String goal = DrawPanel.getGoalNode();
// TODO
AppLauncher.graph.clear();
AppLauncher.graph.addAttribute("ui.label");
AppLauncher.graph.addAttribute("ui.stylesheet",
"graph{ fill-color: white; } " +
"node{ size: 30px, 30px;" +
"fill-color: gray;" +
"text-size: 24px;" +
"text-color: black;" +
"text-style: bold;" +
"shape: circle;" +
"size-mode: fit; }" +
"edge{ text-size: 24px;" +
"text-color: black;" +
"text-style: bold; }");
AppLauncher.graph = graph.getVisualization();
AppLauncher.viewer = AppLauncher.graph.display();
AppLauncher.viewer.enableAutoLayout();
AppLauncher.view = AppLauncher.viewer.addDefaultView(false);
AppLauncher.view.setBorder(new TitledBorder("Graph Image"));
AppLauncher.leftPanel.removeAll();
AppLauncher.leftPanel.add(Box.createRigidArea(new Dimension(500, 10)));
AppLauncher.leftPanel.add(AppLauncher.view);
AppLauncher.leftPanel.add(Box.createRigidArea(new Dimension(500, 10)));
AppLauncher.leftPanel.add(Box.createRigidArea(new Dimension(500, 40)));
AppLauncher.leftPanel.updateUI();
if(isGraphicGH){
astar.setH(true);
DrawPanel.setInputHeuristic(false);
}
else {
Map<String,Integer> hScore = DrawPanel.takeHScore();
DrawPanel.setInputHeuristic(true);
astar.setH(false);
astar.sethScore(hScore);
}
try {
astar.aStar(graph,graph.findVertex(start),graph.findVertex(goal));
path = astar.calculate(true);
}
catch(NullPointerException e)
{
// System.out.println("File contains incorrect data!");
JOptionPane.showMessageDialog(null, "File contains incorrect data");
System.exit(1);
} catch (IOException e) {
e.printStackTrace();
}
if(path == null) {
//System.out.println("Path from <"+ start + "> to <" + goal + "> doesn't exist");
JOptionPane.showMessageDialog(null, "Path from <"+ start + "> to <" + goal + "> doesn't exist");
}
else {
for (Graph.Edge<String> v : path) {
if (v.getFromVertex().getValue().equals(start)) {
resultPath += start;
resultPath += v.getToVertex().getValue();
continue;
}
resultPath += v.getToVertex().getValue();
}
}
}
}
| [
"noreply@github.com"
] | rmkamaleev.noreply@github.com |
3fac93e23e56f5f74cd06c7e4186b692bb57907d | 13d2bd5bd118098063d3fc71cbd8f6d4fda17d8d | /fileupload/src/main/java/com/douzone/fileupload/controller/FileUploadController.java | a63a67baa6b9ed10589f50e4663cb7c2cdac52f3 | [] | no_license | Kim-woo-gyeong/spring-practices | 528babb7e4c236ce1ef2c9c12e516d0c5ae9e284 | f8cd167b89c9f94ab9bbba6bef17eb2636702083 | refs/heads/master | 2022-12-22T11:54:55.520606 | 2020-03-27T00:06:01 | 2020-03-27T00:06:01 | 241,781,826 | 0 | 0 | null | 2022-12-16T09:50:37 | 2020-02-20T03:13:18 | Java | UTF-8 | Java | false | false | 1,094 | java | package com.douzone.fileupload.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.douzone.fileupload.service.FileUploadService;
@Controller
public class FileUploadController {
@Autowired
private FileUploadService fileUploadService;
@RequestMapping({"","/form"})
public String form() {
return "form";
}
@RequestMapping(value = "/upload", method = RequestMethod.POST)
public String upload(
@RequestParam(value = "email", required = true, defaultValue = "") String email,
@RequestParam(value = "file") MultipartFile multipartFile,
Model model) {
System.out.println("email : " + email);
String url = fileUploadService.restore(multipartFile);
model.addAttribute("url", url);
return "result";
}
}
| [
"lovelykwg@naver.com"
] | lovelykwg@naver.com |
f5783ac89ad58de084d26db0dec09bf5d73a604a | f8b5b5ccb31836f7a43854ab4d46437680f72f6e | /src/main/java/com/aspigrow/persistence/entities/BaseObject.java | 09dab2e17b72827036d79a344efd756e3f8c5339 | [] | no_license | Ramkavanan/Aspigrow_persistence | d3a8f0be08eca024bae8d73f05a6bf699690ece4 | 894f6160e48a9b8e7bc4000b9c9b02f3bf7a5a5f | refs/heads/master | 2020-09-26T21:26:03.608032 | 2016-09-25T13:23:37 | 2016-09-25T13:23:37 | 67,472,717 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 807 | java | package com.aspigrow.persistence.entities;
import java.io.Serializable;
public abstract class BaseObject implements Serializable {
/**
* Returns a multi-line String with key=value pairs.
*
* @return a String representation of this class.
*/
public abstract String toString();
/**
* Compares object equality. When using Hibernate, the primary key should
* not be a part of this comparison.
*
* @param o object to compare to
* @return true/false based on equality tests
*/
public abstract boolean equals(Object o);
/**
* When you override equals, you should override hashCode. See "Why are
* equals() and hashCode() importation" for more information:
*
* @return hashCode
*/
public abstract int hashCode();
}
| [
"ramakavanan@gmail.com"
] | ramakavanan@gmail.com |
d63afb82e33ee278bdbdf0a88578c2e4981c3257 | 4b6dfc0d0094d3dc7a13fd1cb5dbecc2a34b9dd9 | /stdlib/observability/src/main/java/org/ballerinalang/observe/nativeimpl/StartSpan.java | 0605e9c7a1e8e4f81b67809288fbeaf998a27055 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-mit-old-style",
"MPL-2.0",
"LicenseRef-scancode-unicode",
"MIT"
] | permissive | stephengroat/ballerina-lang | dde34163c513a66dc4b4b1e73c53edfb92df9b17 | 22ef309ed3369ebd5c48b4d16c87b942f6c64c0a | refs/heads/master | 2022-07-13T09:20:34.582921 | 2018-12-18T08:44:43 | 2018-12-18T08:44:43 | 162,328,652 | 0 | 0 | Apache-2.0 | 2022-07-01T22:18:38 | 2018-12-18T18:15:25 | Java | UTF-8 | Java | false | false | 2,600 | java | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.ballerinalang.observe.nativeimpl;
import org.ballerinalang.bre.Context;
import org.ballerinalang.bre.bvm.BlockingNativeCallableUnit;
import org.ballerinalang.model.types.TypeKind;
import org.ballerinalang.model.values.BInteger;
import org.ballerinalang.model.values.BMap;
import org.ballerinalang.natives.annotations.Argument;
import org.ballerinalang.natives.annotations.BallerinaFunction;
import org.ballerinalang.natives.annotations.ReturnType;
/**
* This function which implements the startSpan method for observe.
*/
@BallerinaFunction(
orgName = "ballerina",
packageName = "observe",
functionName = "startSpan",
args = {
@Argument(name = "spanName", type = TypeKind.STRING),
@Argument(name = "tags", type = TypeKind.MAP),
@Argument(name = "parentSpanId", type = TypeKind.INT),
},
returnType = @ReturnType(type = TypeKind.INT),
isPublic = true
)
public class StartSpan extends BlockingNativeCallableUnit {
@Override
public void execute(Context context) {
String spanName = context.getStringArgument(0);
BMap tags = (BMap) context.getNullableRefArgument(0);
int parentSpanId = (int) context.getIntArgument(0);
if (parentSpanId < -1) {
context.setReturnValues(Utils
.createError(context, "The given parent span ID " + parentSpanId + " is invalid."));
} else {
int spanId = OpenTracerBallerinaWrapper.getInstance()
.startSpan(spanName, Utils.toStringMap(tags), parentSpanId, context);
if (spanId == -1) {
context.setReturnValues(Utils.createError(context,
"No parent span for ID " + parentSpanId + " found. Please recheck the parent span Id"));
}
context.setReturnValues(new BInteger(spanId));
}
}
}
| [
"anoukh.ashley@gmail.com"
] | anoukh.ashley@gmail.com |
3d247f62f9c2b23bd14142d5cd9665d09766d7c0 | 0084758366454d1890565e45235fa8ccf46ead6e | /src/com/mine/rd/controllers/appVersion/AppVersionController.java | caa371d2cffdca97e0845cae4a52337a41be1ab5 | [
"Apache-2.0"
] | permissive | hardcore2code/RD_2nd_server | 3fdfed2930884bd3236b0fc5903ee7d457fd4ad2 | 0ffacb42fc3bf8ea6921edd25bf048c3807107f2 | refs/heads/master | 2021-07-22T16:16:15.042471 | 2020-05-06T03:37:14 | 2020-05-06T03:37:14 | 159,008,438 | 1 | 2 | null | null | null | null | UTF-8 | Java | false | false | 992 | java | package com.mine.rd.controllers.appVersion;
import org.apache.log4j.Logger;
import com.jfinal.aop.Clear;
import com.mine.pub.controller.BaseController;
import com.mine.pub.service.Service;
import com.mine.rd.interceptors.CheckSessionInterceptor;
import com.mine.rd.services.appVersion.service.AppVersionService;
@Clear(CheckSessionInterceptor.class)
public class AppVersionController extends BaseController {
private Logger logger = Logger.getLogger(AppVersionController.class);
/**
* @author ouyangxu
* @date 20170906
* 方法:检查app是否有更新
*/
public void checkAppVersion(){
logger.info("检查app是否有更新");
Service service = new AppVersionService(this);
try {
service.doService();
} catch (Exception e) {
logger.error("检查app是否有更新异常===>" + e.getMessage());
this.setAttr("msg", "系统异常!");
this.setAttr("resFlag", "1");
e.printStackTrace();
}
renderJsonForCors();
}
}
| [
"woodyhello@qq.com"
] | woodyhello@qq.com |
d1fda7181c6b21bb929cfd369510967c45f0b64a | dae0d47fec9c182db5923fa65abca36b576eeea1 | /src/main/java/org/wx/jiu/service/CarouselService.java | 926f6ce4db9746dd0bda5efff285fbf48d3d940d | [] | no_license | Xpz9523/myTest | 38e6f1e07a50b1bb9125e5dc4c9ab0dcc8645ac5 | 25ab879879f45a45722e9e36796643d91257a6bb | refs/heads/master | 2022-06-24T10:53:58.428201 | 2019-06-04T14:59:58 | 2019-06-04T14:59:58 | 190,027,972 | 0 | 0 | null | 2022-06-21T01:13:17 | 2019-06-03T15:02:53 | JavaScript | UTF-8 | Java | false | false | 518 | java | package org.wx.jiu.service;
import java.util.List;
import org.wx.jiu.common.BaseService;
import org.wx.jiu.domain.Carousel;
import com.github.pagehelper.PageInfo;
public interface CarouselService extends BaseService<Carousel> {
/*分頁显示所有轮播*/
public PageInfo<Carousel> findAllCarouselForPage(Integer pageNum, Integer pageSize);
public Carousel selectByCarouselId(Integer pkCarouselId);
//查询轮播图带上IsDelete = 0
public List<Carousel> queryCarouselAllList();
}
| [
"Xpz951623"
] | Xpz951623 |
b2f031ba12f3272a063c529a613b19fd900271a3 | 9eda34b22fdedc64336bdcfc285f761dc91199cb | /portlets/timecard/src/main/java/com/aimluck/eip/timecard/TimecardFormData.java | 38420da83ddd10672e3015b895c4dd199dea9576 | [] | no_license | YokoyamaAkira/aipo | 23ffbc85b9b11edc2c23635061685ab7ae56bea0 | f9f5ed74e0888b09446d80367775b7e67a8edac7 | refs/heads/master | 2020-04-15T04:14:07.265255 | 2019-02-06T03:33:28 | 2019-02-06T03:33:28 | 164,375,528 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 15,360 | java | /*
* Aipo is a groupware program developed by Aimluck,Inc.
* Copyright (C) 2004-2011 Aimluck,Inc.
* http://www.aipo.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.aimluck.eip.timecard;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import org.apache.cayenne.exp.Expression;
import org.apache.cayenne.exp.ExpressionFactory;
import org.apache.jetspeed.services.logging.JetspeedLogFactoryService;
import org.apache.jetspeed.services.logging.JetspeedLogger;
import org.apache.turbine.util.RunData;
import org.apache.velocity.context.Context;
import com.aimluck.commons.field.ALDateField;
import com.aimluck.commons.field.ALDateTimeField;
import com.aimluck.commons.field.ALNumberField;
import com.aimluck.commons.field.ALStringField;
import com.aimluck.eip.cayenne.om.portlet.EipTTimecard;
import com.aimluck.eip.common.ALAbstractFormData;
import com.aimluck.eip.common.ALDBErrorException;
import com.aimluck.eip.common.ALEipConstants;
import com.aimluck.eip.common.ALPageNotFoundException;
import com.aimluck.eip.modules.actions.common.ALAction;
import com.aimluck.eip.orm.Database;
import com.aimluck.eip.orm.query.SelectQuery;
import com.aimluck.eip.services.accessctl.ALAccessControlConstants;
import com.aimluck.eip.services.eventlog.ALEventlogConstants;
import com.aimluck.eip.services.eventlog.ALEventlogFactoryService;
import com.aimluck.eip.timecard.util.TimecardUtils;
import com.aimluck.eip.util.ALEipUtils;
/**
* タイムカードのフォームデータを管理するクラスです。
*
*/
public class TimecardFormData extends ALAbstractFormData {
/** logger */
private static final JetspeedLogger logger = JetspeedLogFactoryService
.getLogger(TimecardFormData.class.getName());
private ALNumberField timecard_id;
private ALNumberField user_id;
private ALStringField work_flag;
private ALDateTimeField work_date;
private ALStringField reason;
private ALDateField create_date;
private ALDateField update_date;
private int entity_id;
private int login_uid;
/**
*
* @param action
* @param rundata
* @param context
* @throws ALPageNotFoundException
* @throws ALDBErrorException
*/
@Override
public void init(ALAction action, RunData rundata, Context context)
throws ALPageNotFoundException, ALDBErrorException {
super.init(action, rundata, context);
login_uid = ALEipUtils.getUserId(rundata);
}
/**
* 各フィールドを初期化します。
*
*/
@Override
public void initField() {
timecard_id = new ALNumberField();
user_id = new ALNumberField();
work_flag = new ALStringField();
work_flag.setValue("0");
work_date = new ALDateTimeField();
work_date.setValue(new Date());
work_date.setFieldName("勤怠時間");
reason = new ALStringField();
reason.setFieldName("修正理由");
create_date = new ALDateField();
create_date.setValue(new Date());
update_date = new ALDateField();
update_date.setValue(new Date());
}
/**
* タイムカードの各フィールドに対する制約条件を設定します。
*
*/
@Override
protected void setValidator() {
reason.setNotNull(true);
reason.limitMaxLength(1000);
work_date.setNotNull(true);
}
/**
* タイムカードのフォームに入力されたデータの妥当性検証を行います。
*
* @param msgList
* @return TRUE 成功 FALSE 失敗
*/
@Override
protected boolean validate(List<String> msgList) {
try {
if (getMode() == ALEipConstants.MODE_INSERT) {
SelectQuery<EipTTimecard> workflg_query =
Database.query(EipTTimecard.class);
Expression workflg_exp =
ExpressionFactory.matchExp(EipTTimecard.USER_ID_PROPERTY, Integer
.valueOf(login_uid));
workflg_query.setQualifier(workflg_exp);
workflg_query.orderDesending(EipTTimecard.WORK_DATE_PROPERTY);
List<EipTTimecard> workflg_list = workflg_query.fetchList();
if (workflg_list != null && workflg_list.size() > 0) {
EipTTimecard record = workflg_list.get(0);
if (record.getWorkFlag().equals(work_flag.getValue())) {
return false;
} else {
return true;
}
} else {
return true;
}
}
Calendar cal = Calendar.getInstance();
if (cal.getTime().before(work_date.getValue())) {
// 未来時刻へは変更不可とする
msgList
.add("『 <span class='em'>勤怠時間</span> 』は『 <span class='em'>現在の時刻</span> 』以前で指定してください。");
return false;
}
cal.setTime(work_date.getValue());
cal.set(Calendar.DAY_OF_MONTH, 1);
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.MILLISECOND, 0);
SelectQuery<EipTTimecard> query = Database.query(EipTTimecard.class);
Expression exp11 =
ExpressionFactory.greaterOrEqualExp(
EipTTimecard.WORK_DATE_PROPERTY,
cal.getTime());
cal.add(Calendar.MONTH, +1);
Expression exp12 =
ExpressionFactory.lessExp(EipTTimecard.WORK_DATE_PROPERTY, cal
.getTime());
query.setQualifier(exp11.andExp(exp12));
Expression exp21 =
ExpressionFactory.matchExp(EipTTimecard.USER_ID_PROPERTY, Integer
.valueOf(login_uid));
query.andQualifier(exp21);
query.orderAscending(EipTTimecard.WORK_DATE_PROPERTY);
List<EipTTimecard> list = query.fetchList();
if (list == null || list.size() <= 0) {
} else {
EipTTimecard timecard0 = getNearlyAboveRecord(list, entity_id);
EipTTimecard timecard1 = getNearlyBelowRecord(list, entity_id);
// int id0 = 0;
// int id1 = 0;
// if (timecard0 != null) {
// id0 = timecard0.getTimecardId().intValue();
// }
// if (timecard1 != null) {
// id1 = timecard1.getTimecardId().intValue();
// }
if (timecard1 != null) {
if (compareToDate(timecard1.getWorkDate(), work_date.getValue()) == 2) {
if (timecard0 != null) {
if (compareToDate(timecard0.getWorkDate(), work_date.getValue()) == 1) {
} else {
msgList
.add("『 <span class='em'>勤怠時間</span> 』は『 <span class='em'>前の勤怠時間</span> 』以降で指定してください。");
}
}
} else {
msgList
.add("『 <span class='em'>勤怠時間</span> 』は『 <span class='em'>後の勤怠時間</span> 』以前で指定してください。");
}
} else {
if (timecard0 != null) {
if (compareToDate(timecard0.getWorkDate(), work_date.getValue()) == 1) {
} else {
msgList
.add("『 <span class='em'>勤怠時間</span> 』は『 <span class='em'>前の勤怠時間</span> 』以降で指定してください。");
}
}
}
}
} catch (Exception ex) {
logger.error("Exception", ex);
return false;
}
reason.validate(msgList);
work_date.validate(msgList);
return (msgList.size() == 0);
}
private EipTTimecard getNearlyAboveRecord(List<EipTTimecard> list,
int timecard_id) {
EipTTimecard result = null;
EipTTimecard record = null;
int size = list.size();
for (int i = 0; i < size; i++) {
record = list.get(i);
if (record.getTimecardId().intValue() >= timecard_id) {
return result;
} else {
result = record;
}
}
return null;
}
private EipTTimecard getNearlyBelowRecord(List<EipTTimecard> list,
int timecard_id) {
EipTTimecard record = null;
int size = list.size();
for (int i = 0; i < size; i++) {
record = list.get(i);
if (record.getTimecardId().intValue() > timecard_id) {
return record;
}
}
return null;
}
@Override
protected boolean setFormData(RunData rundata, Context context,
List<String> msgList) throws ALPageNotFoundException, ALDBErrorException {
boolean res = super.setFormData(rundata, context, msgList);
if (res) {
if (getMode() == ALEipConstants.MODE_UPDATE) {
try {
entity_id =
Integer.parseInt(ALEipUtils.getTemp(
rundata,
context,
ALEipConstants.ENTITY_ID));
} catch (Exception e) {
}
}
}
return res;
}
/**
* タイムカードをデータベースから読み出します。
*
* @param rundata
* @param context
* @param msgList
* @return TRUE 成功 FALSE 失敗
*/
@Override
protected boolean loadFormData(RunData rundata, Context context,
List<String> msgList) {
try {
// オブジェクトモデルを取得
EipTTimecard timecard = TimecardUtils.getEipTTimecard(rundata, context);
if (timecard == null) {
return false;
}
timecard_id.setValue(timecard.getTimecardId().longValue());
user_id.setValue(timecard.getUserId().intValue());
work_flag.setValue(timecard.getWorkFlag());
work_date.setValue(timecard.getWorkDate());
reason.setValue(timecard.getReason());
create_date.setValue(timecard.getCreateDate());
update_date.setValue(timecard.getUpdateDate());
} catch (Exception ex) {
logger.error("Exception", ex);
return false;
}
return true;
}
/**
* タイムカードをデータベースから削除します。
*
* @param rundata
* @param context
* @param msgList
* @return TRUE 成功 FALSE 失敗
*/
@Override
protected boolean deleteFormData(RunData rundata, Context context,
List<String> msgList) {
try {
// オブジェクトモデルを取得
EipTTimecard timecard = TimecardUtils.getEipTTimecard(rundata, context);
if (timecard == null) {
return false;
}
// 打刻情報を削除
Database.delete(timecard);
// イベントログに保存
ALEventlogFactoryService.getInstance().getEventlogHandler().log(
timecard.getTimecardId(),
ALEventlogConstants.PORTLET_TYPE_TIMECARD,
reason.getValue());
} catch (Exception ex) {
Database.rollback();
logger.error("Exception", ex);
return false;
}
return true;
}
/**
* タイムカードをデータベースに格納します。
*
* @param rundata
* @param context
* @param msgList
* @return TRUE 成功 FALSE 失敗
*/
@Override
protected boolean insertFormData(RunData rundata, Context context,
List<String> msgList) {
try {
// 新規オブジェクトモデル
EipTTimecard timecard = Database.create(EipTTimecard.class);
// ユーザーID
timecard.setUserId(Integer.valueOf(ALEipUtils.getUserId(rundata)));
timecard.setWorkFlag(work_flag.getValue());
timecard.setWorkDate(Calendar.getInstance().getTime());
timecard.setReason(reason.getValue());
// 作成日
timecard.setCreateDate(Calendar.getInstance().getTime());
// 更新日
timecard.setUpdateDate(Calendar.getInstance().getTime());
// タイムカードを登録
Database.commit();
// イベントログに保存
ALEventlogFactoryService.getInstance().getEventlogHandler().log(
timecard.getTimecardId(),
ALEventlogConstants.PORTLET_TYPE_TIMECARD,
null);
} catch (Exception ex) {
Database.rollback();
logger.error("Exception", ex);
return false;
}
return true;
}
/**
* データベースに格納されているタイムカードを更新します。
*
* @param rundata
* @param context
* @param msgList
* @return TRUE 成功 FALSE 失敗
*/
@Override
protected boolean updateFormData(RunData rundata, Context context,
List<String> msgList) {
try {
// オブジェクトモデルを取得
EipTTimecard timecard = TimecardUtils.getEipTTimecard(rundata, context);
if (timecard == null) {
return false;
}
timecard.setWorkDate(work_date.getValue());
timecard.setReason(reason.getValue());
// 更新日
timecard.setUpdateDate(Calendar.getInstance().getTime());
// タイムカードを更新
Database.commit();
// イベントログに保存
ALEventlogFactoryService.getInstance().getEventlogHandler().log(
timecard.getTimecardId(),
ALEventlogConstants.PORTLET_TYPE_TIMECARD,
reason.getValue());
} catch (Exception ex) {
Database.rollback();
logger.error("Exception", ex);
return false;
}
return true;
}
/**
*
* @return
*/
public void setWorkFlag(String str) {
work_flag.setValue(str);
}
public ALDateTimeField getWorkDate() {
return work_date;
}
public ALStringField getReason() {
return reason;
}
/**
* 指定した2つの日付を比較する.
*
* @param date1
* @param date2
* @param checkTime
* 時間まで比較する場合,true.
* @return 等しい場合,0. date1>date2の場合, 1. date1 <date2の場合, 2.
*/
private int compareToDate(Date date1, Date date2) {
Calendar cal1 = Calendar.getInstance();
Calendar cal2 = Calendar.getInstance();
cal1.setTime(date1);
cal2.setTime(date2);
int date1Year = cal1.get(Calendar.YEAR);
int date1Month = cal1.get(Calendar.MONTH) + 1;
int date1Day = cal1.get(Calendar.DATE);
int date1Hour = cal1.get(Calendar.HOUR);
int date1Minute = cal1.get(Calendar.MINUTE);
int date1Second = cal1.get(Calendar.SECOND);
int date2Year = cal2.get(Calendar.YEAR);
int date2Month = cal2.get(Calendar.MONTH) + 1;
int date2Day = cal2.get(Calendar.DATE);
int date2Hour = cal2.get(Calendar.HOUR);
int date2Minute = cal2.get(Calendar.MINUTE);
int date2Second = cal2.get(Calendar.SECOND);
if (date1Year == date2Year
&& date1Month == date2Month
&& date1Day == date2Day
&& date1Hour == date2Hour
&& date1Minute == date2Minute
&& date1Second == date2Second) {
return 0;
}
if (cal1.after(cal2)) {
return 2;
} else {
return 1;
}
}
/**
* アクセス権限チェック用メソッド。 アクセス権限の機能名を返します。
*
* @return
*/
@Override
public String getAclPortletFeature() {
return ALAccessControlConstants.POERTLET_FEATURE_TIMECARD_TIMECARD_SELF;
}
}
| [
"washin@Washin-SoumuPC1"
] | washin@Washin-SoumuPC1 |
5860cd80ced18dfa5c7d2dd16fe4dce25100dd5c | d6f293197a51dd900d46ce60f53f989b670203cb | /GeneticAlgorithms/KnapSackGA.java | 23331c95af25df6045696c1acffb337cb8c6c449 | [] | no_license | prateekt/tandonexperimental | a039ff727b8cbd464eadaf07a6422ea20d4998bf | d6811fa56b832fb33960a03d84fe54435f8d5302 | refs/heads/master | 2020-05-19T17:57:23.821970 | 2015-03-27T16:47:21 | 2015-03-27T16:47:21 | 32,997,386 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,447 | java | import java.util.*;
import java.io.*;
public class KnapSackGA {
private List<KnapSackObject> objects;
private Map<KnapSackObject, Integer> objectToIndex;
private List<String> population;
private static final double MUTATION_PROBABILITY = 0.3;
public static void main(String[] args) {
KnapSackGA ga = new KnapSackGA();
for(int x=0; x < 50; x++) {
System.out.println("Generation " + x + ": ");
System.out.println(ga);
pause();
ga.doNextGeneration();
}
}
public static void pause() {
try {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
r.readLine();
}
catch(Exception e) {
e.printStackTrace();
}
}
public KnapSackGA() {
objects = new ArrayList<KnapSackObject>();
objectToIndex = new HashMap<KnapSackObject, Integer>();
population = new ArrayList<String>();
int index = 0;
//get objects
try {
BufferedReader r = new BufferedReader(new FileReader("in.txt"));
String line="";
while((line=r.readLine())!=null) {
String[] toks = line.split(" ");
int weight = Integer.parseInt(toks[0]);
int value = Integer.parseInt(toks[1]);
KnapSackObject o = new KnapSackObject(value, weight);
objects.add(o);
objectToIndex.put(o, index);
index++;
}
r.close();
}
catch(Exception e) {
e.printStackTrace();
}
//initial population
for(int y=0; y < 6; y++) {
String str = "";
for(int x=0; x < objects.size(); x++) {
int rand = (int) Math.rint(Math.random());
str = str + rand;
}
population.add(str);
}
}
public void doNextGeneration() {
//kill dead wood
List<String> toDelete = new ArrayList<String>();
for(String str : population) {
if(stringToKnapsack(str).getWeight() < 0)
toDelete.add(str);
}
for(String str : toDelete) {
population.remove(str);
}
//keep the 10 best individuals
List<KnapSack> knapsacks = new ArrayList<KnapSack>();
for(int x=0; x < population.size(); x++) {
knapsacks.add(stringToKnapsack(population.get(x)));
}
Collections.sort(knapsacks);
List<String> survivingPopulation = new ArrayList<String>();
for(int x=0; x < knapsacks.size() && x < 10; x++) {
KnapSack k = knapsacks.get(x);
survivingPopulation.add(knapsackToString(k));
}
population = survivingPopulation;
//breed the living
List<String> toAdd = new ArrayList<String>();
for(String p1 : population) {
for(String p2 : population) {
if(p1==p2)
continue;
String child = getChild(p1, p2);
toAdd.add(child);
}
}
population.addAll(toAdd);
}
public String knapsackToString(KnapSack k) {
String rtn = "";
for(int x=0; x < objects.size(); x++) {
KnapSackObject o = objects.get(x);
if(k.contains(o))
rtn += "1";
else
rtn += "0";
}
return rtn;
}
public KnapSack stringToKnapsack(String str) {
KnapSack rtn = new KnapSack();
for(int x=0; x < str.length(); x++) {
if(rtn.getWeight() < 0)
break;
char c = str.charAt(x);
if(c=='1') {
rtn.putObject(objects.get(x));
}
if(c=='0') {
continue;
}
}
return rtn;
}
public String getChild(String p1, String p2) {
int crossoverPoint =(int) ((p1.length()-1)*Math.random());
String child = p1.substring(0, crossoverPoint) + p2.substring(crossoverPoint, p2.length());
//mutation
double mutProb = Math.random();
if(mutProb <= MUTATION_PROBABILITY) {
System.out.println("MUTATION OCCURED");
//find place of mutation
int mutationPoint =(int) ((child.length()-1)*Math.random());
//switch mutation code
char mutCode = '0';
if(child.charAt(mutationPoint)=='0')
mutCode = '1';
child = child.substring(0, mutationPoint) + mutCode + child.substring(mutationPoint+1, child.length());
}
return child;
}
public String toString() {
StringBuffer rtn = new StringBuffer();
for(String str: population) {
KnapSack ks = stringToKnapsack(str);
rtn.append(str + " Value: " + ks.getValue() + " Weight: " + ks.getWeight() + "\n");
}
rtn.append("\n");
return rtn.toString();
}
}
class KnapSack implements Comparable<KnapSack> {
private List<KnapSackObject> objects;
private int weight;
private int value;
private static final int KNAPSACK_WEIGHT_CONSTRAINT = 2000;
public KnapSack() {
objects = new ArrayList<KnapSackObject>();
weight = 0;
value = 0;
}
public boolean putObject(KnapSackObject o) {
if(weight + o.getWeight() > KNAPSACK_WEIGHT_CONSTRAINT) {
weight = -100;
return false;
}
else {
objects.add(o);
weight += o.getWeight();
value += o .getValue();
}
return true;
}
public List<KnapSackObject> getObjects() {
return objects;
}
public int getValue() {
return value;
}
public int getWeight() {
return weight;
}
public boolean contains(KnapSackObject o) {
return objects.contains(o);
}
public int compareTo(KnapSack k) {
return (int) Math.rint((0.5) * (k.getValue() - getValue()) + (0.5) * (getWeight() - k.getWeight()));
}
}
class KnapSackObject {
private int value;
private int weight;
public KnapSackObject(int value, int weight) {
this.value = value;
this.weight= weight;
}
public int getWeight() {
return weight;
}
public int getValue() {
return value;
}
} | [
"prateekcodemule@bd490e71-6452-0410-8e28-fdb76e5aa503"
] | prateekcodemule@bd490e71-6452-0410-8e28-fdb76e5aa503 |
6460cf662147739397865bad19c8bede8e12a050 | bbf526bca24e395fcc87ef627f6c196d30a1844f | /shortest-distance-to-target-string-in-a-circular-array/Solution.java | 8aae11d43dde35449900698bbdbab8f83371bf36 | [] | no_license | charles-wangkai/leetcode | 864e39505b230ec056e9b4fed3bb5bcb62c84f0f | 778c16f6cbd69c0ef6ccab9780c102b40731aaf8 | refs/heads/master | 2023-08-31T14:44:52.850805 | 2023-08-31T03:04:02 | 2023-08-31T03:04:02 | 25,644,039 | 52 | 18 | null | 2021-06-05T00:02:50 | 2014-10-23T15:29:44 | Java | UTF-8 | Java | false | false | 376 | java | import java.util.stream.IntStream;
class Solution {
public int closetTarget(String[] words, String target, int startIndex) {
return IntStream.range(0, words.length)
.filter(i -> words[i].equals(target))
.flatMap(
i -> IntStream.of(Math.abs(i - startIndex), words.length - Math.abs(i - startIndex)))
.min()
.orElse(-1);
}
}
| [
"charles.wangkai@gmail.com"
] | charles.wangkai@gmail.com |
33f51c3bffac705eb2d08039b09d351f04d44626 | 7521deb7cebb7cbe5eed6db7fbe74e7ca0cdb317 | /App/src/main/java/com/android/practice/CollectionUtils.java | 602b8daed42da89fcf8ba201bd10fd7ea51c4d27 | [] | no_license | leaderliang/AndroidPractice | fde105d113774499ea228154f519a7868461d945 | 95fc86abf46e0ab2235ae4710ca8095ebdb644c2 | refs/heads/master | 2022-09-16T09:31:33.877135 | 2022-09-11T07:56:40 | 2022-09-11T07:56:40 | 231,757,491 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 720 | java | package com.android.practice;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
/**
*
* @author liang
* @date 2015/6/10
*/
public class CollectionUtils {
public static boolean isEmpty(Collection<?> collection){
return collection == null || collection.isEmpty();
}
public static String join(List<?> list, String separator){
StringBuilder sb = new StringBuilder();
for(Object obj : list){
sb.append(obj.toString()).append(separator);
}
return sb.substring(0, sb.length() - 1);
}
public static <E> ArrayList<E> asList(E ...e){
return new ArrayList<>(Arrays.asList(e));
}
}
| [
"dev.liang@outlook.com"
] | dev.liang@outlook.com |
35fa7b16a64d57f7ae4b2a244ac11f652e06a8bd | 2da786be591423ec37fa2856ac1300f6053cd34d | /src/test/java/com/lemon/day01/section01/BastTester.java | 48bdfcbc7b9243e9e2ce30905ddfec451dfd6620 | [] | no_license | shishanju/MavenTester | 0a21541df331e97e353c827d58777eb5358beec7 | 695fb1e2d7c51271b02571cd2bfaeea605f1c44e | refs/heads/master | 2022-08-02T19:48:30.696002 | 2020-05-26T05:55:38 | 2020-05-26T05:55:38 | 266,955,785 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,199 | java | package com.lemon.day01.section01;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Parameters;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.annotations.AfterSuite;
public class BastTester {
public static WebDriver driver;
@BeforeSuite
@Parameters(value= {"browserType","driverPath"})
public void beforeSuite(String browserType, String driverPath) {
driver = SeleniumUtil.getWebDriver(browserType, driverPath);
}
@AfterSuite
public void afterSuite() throws InterruptedException {
Thread.sleep(3000);
driver.quit();
}
public WebElement getElement(long timeOutInSeconds, final By by) {
WebDriverWait wait = new WebDriverWait(driver, 3);
wait.until(new ExpectedCondition<WebElement>() {
public WebElement apply(WebDriver driver) {
// TODO Auto-generated method stub
return driver.findElement(by);
}
});
return null;
}
public WebElement getElement(final By by) {
return getElement(5, by);
}
}
| [
"15901387723@163.com"
] | 15901387723@163.com |
3ece1e9fabf7d8b4cb1d876b1924640df0239b75 | 84e00b08d02460b5a9601010c6b743a23b383338 | /src/main/java/ru/sberbank/kuzin19190813/crudwithkafka/services/impl/ShopServiceImpl.java | 2c9c448bc57a74cd166749614eb236bd106f0583 | [] | no_license | evgenykuzin/crud-with-kafka | 39e1c1c9e834ddad5b7f58fa8183fc9ac0fed70a | 7906c044306ac49e69f00a694894ff817e55ddc2 | refs/heads/master | 2023-06-06T22:19:09.577721 | 2021-06-30T16:40:09 | 2021-06-30T16:40:09 | 381,117,705 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,601 | java | package ru.sberbank.kuzin19190813.crudwithkafka.services.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ru.sberbank.kuzin19190813.crudwithkafka.dto.ProductDTO;
import ru.sberbank.kuzin19190813.crudwithkafka.dto.ShopDTO;
import ru.sberbank.kuzin19190813.crudwithkafka.entities.Product;
import ru.sberbank.kuzin19190813.crudwithkafka.entities.Shop;
import ru.sberbank.kuzin19190813.crudwithkafka.repositories.ShopRepository;
import ru.sberbank.kuzin19190813.crudwithkafka.services.CreatorService;
import ru.sberbank.kuzin19190813.crudwithkafka.services.ShopService;
import java.util.List;
import java.util.stream.Collectors;
@Service
public class ShopServiceImpl extends CreatorService<ShopDTO, Shop, ShopRepository> implements ShopService {
@Autowired
public ShopServiceImpl(ShopRepository shopRepository) {
super(shopRepository);
}
@Override
protected Shop getNew(String name) {
return new Shop(name);
}
@Override
public Long createProduct(Long shopId, ProductDTO productDTO) {
Shop shop = repository.getById(shopId);
Product product = superMapper.toEntity(productDTO);
shop.getProducts().add(product);
save(shop);
return product.getId();
}
@Override
public List<ProductDTO> getProducts(Long shopId) {
return getById(shopId)
.getProducts()
.stream()
.map(product -> (ProductDTO) superMapper.toDto(product))
.collect(Collectors.toList());
}
}
| [
"EIKuzin@sberbank.ru"
] | EIKuzin@sberbank.ru |
4b04bdcae93331b0c1095dfb949b19eef5532f3b | d5bb9b8871018a719e0cbdd5e25cc8ee71d96fb0 | /tags/ASM_2_2/asm/src/org/objectweb/asm/commons/AdviceAdapter.java | bb7c6ea11cffd95de5f77f57ce25b0d7f324695e | [
"BSD-3-Clause"
] | permissive | tempbottle/ASM | 04b3e01cba7a933994d0a674ec17c5527644ba39 | 1100dab0b30114410ac88c9478e21cb1b666d730 | refs/heads/master | 2020-04-03T10:06:23.469409 | 2015-01-17T08:23:15 | 2015-01-17T08:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 19,399 | java | /***
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2005 INRIA, France Telecom
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holders nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.objectweb.asm.commons;
import java.util.ArrayList;
import java.util.HashMap;
import org.objectweb.asm.Label;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
/**
* A <code>MethodAdapter</code> to dispatch method body instruction
* <p>
* The behavior is like this:
* <ol>
*
* <li>as long as the INVOKESPECIAL for the object initialization has not been
* reached, every bytecode instruction is dispatched in the ctor code visitor</li>
*
* <li>when this one is reached, it is only added in the ctor code visitor and
* a JP invoke is added</li>
* <li>after that, only the other code visitor receives the instructions</li>
*
* </ol>
*
* @author Eugene Kuleshov
* @author Eric Bruneton
*/
public abstract class AdviceAdapter extends GeneratorAdapter implements Opcodes {
private static final Object THIS = new Object();
private static final Object OTHER = new Object();
protected int methodAccess;
protected String methodDesc;
private boolean constructor;
private boolean superInitialized;
private ArrayList stackFrame;
private HashMap branches;
/**
* Creates a new {@link AdviceAdapter}.
*
* @param mv the method visitor to which this adapter delegates calls.
* @param access the method's access flags (see {@link Opcodes}).
* @param name the method's name.
* @param desc the method's descriptor (see {@link Type Type}).
*/
public AdviceAdapter(MethodVisitor mv, int access, String name, String desc) {
super(mv, access, name, desc);
methodAccess = access;
methodDesc = desc;
constructor = "<init>".equals(name);
if (!constructor) {
superInitialized = true;
onMethodEnter();
} else {
stackFrame = new ArrayList();
branches = new HashMap();
}
}
public void visitLabel(Label label) {
mv.visitLabel(label);
if (constructor && branches != null) {
ArrayList frame = (ArrayList) branches.get(label);
if (frame != null) {
stackFrame = frame;
branches.remove(label);
}
}
}
public void visitInsn(int opcode) {
if (constructor) {
switch (opcode) {
case RETURN: // empty stack
onMethodExit(opcode);
break;
case IRETURN: // 1 before n/a after
case FRETURN: // 1 before n/a after
case ARETURN: // 1 before n/a after
case ATHROW: // 1 before n/a after
popValue();
popValue();
onMethodExit(opcode);
break;
case LRETURN: // 2 before n/a after
case DRETURN: // 2 before n/a after
popValue();
popValue();
onMethodExit(opcode);
break;
case NOP:
case LALOAD: // remove 2 add 2
case DALOAD: // remove 2 add 2
case LNEG:
case DNEG:
case FNEG:
case INEG:
case L2D:
case D2L:
case F2I:
case I2B:
case I2C:
case I2S:
case I2F:
case Opcodes.ARRAYLENGTH:
break;
case ACONST_NULL:
case ICONST_M1:
case ICONST_0:
case ICONST_1:
case ICONST_2:
case ICONST_3:
case ICONST_4:
case ICONST_5:
case FCONST_0:
case FCONST_1:
case FCONST_2:
case F2L: // 1 before 2 after
case F2D:
case I2L:
case I2D:
pushValue(OTHER);
break;
case LCONST_0:
case LCONST_1:
case DCONST_0:
case DCONST_1:
pushValue(OTHER);
pushValue(OTHER);
break;
case IALOAD: // remove 2 add 1
case FALOAD: // remove 2 add 1
case AALOAD: // remove 2 add 1
case BALOAD: // remove 2 add 1
case CALOAD: // remove 2 add 1
case SALOAD: // remove 2 add 1
case POP:
case IADD:
case FADD:
case ISUB:
case LSHL: // 3 before 2 after
case LSHR: // 3 before 2 after
case LUSHR: // 3 before 2 after
case L2I: // 2 before 1 after
case L2F: // 2 before 1 after
case D2I: // 2 before 1 after
case D2F: // 2 before 1 after
case FSUB:
case FMUL:
case FDIV:
case FREM:
case FCMPL: // 2 before 1 after
case FCMPG: // 2 before 1 after
case IMUL:
case IDIV:
case IREM:
case ISHL:
case ISHR:
case IUSHR:
case IAND:
case IOR:
case IXOR:
case MONITORENTER:
case MONITOREXIT:
popValue();
break;
case POP2:
case LSUB:
case LMUL:
case LDIV:
case LREM:
case LADD:
case LAND:
case LOR:
case LXOR:
case DADD:
case DMUL:
case DSUB:
case DDIV:
case DREM:
popValue();
popValue();
break;
case IASTORE:
case FASTORE:
case AASTORE:
case BASTORE:
case CASTORE:
case SASTORE:
case LCMP: // 4 before 1 after
case DCMPL:
case DCMPG:
popValue();
popValue();
popValue();
break;
case LASTORE:
case DASTORE:
popValue();
popValue();
popValue();
popValue();
break;
case DUP:
pushValue(peekValue());
break;
case DUP_X1:
// TODO optimize this
{
Object o1 = popValue();
Object o2 = popValue();
pushValue(o1);
pushValue(o2);
pushValue(o1);
}
break;
case DUP_X2:
// TODO optimize this
{
Object o1 = popValue();
Object o2 = popValue();
Object o3 = popValue();
pushValue(o1);
pushValue(o3);
pushValue(o2);
pushValue(o1);
}
break;
case DUP2:
// TODO optimize this
{
Object o1 = popValue();
Object o2 = popValue();
pushValue(o2);
pushValue(o1);
pushValue(o2);
pushValue(o1);
}
break;
case DUP2_X1:
// TODO optimize this
{
Object o1 = popValue();
Object o2 = popValue();
Object o3 = popValue();
pushValue(o2);
pushValue(o1);
pushValue(o3);
pushValue(o2);
pushValue(o1);
}
break;
case DUP2_X2:
// TODO optimize this
{
Object o1 = popValue();
Object o2 = popValue();
Object o3 = popValue();
Object o4 = popValue();
pushValue(o2);
pushValue(o1);
pushValue(o4);
pushValue(o3);
pushValue(o2);
pushValue(o1);
}
break;
case SWAP: {
Object o1 = popValue();
Object o2 = popValue();
pushValue(o1);
pushValue(o2);
}
break;
}
} else {
switch (opcode) {
case RETURN:
case IRETURN:
case FRETURN:
case ARETURN:
case LRETURN:
case DRETURN:
case ATHROW:
onMethodExit(opcode);
break;
}
}
mv.visitInsn(opcode);
}
public void visitVarInsn(int opcode, int var) {
super.visitVarInsn(opcode, var);
if (constructor) {
switch (opcode) {
case ILOAD:
case FLOAD:
pushValue(OTHER);
break;
case LLOAD:
case DLOAD:
pushValue(OTHER);
pushValue(OTHER);
break;
case ALOAD:
pushValue(var == 0 ? THIS : OTHER);
break;
case ASTORE:
case ISTORE:
case FSTORE:
popValue();
break;
case LSTORE:
case DSTORE:
popValue();
popValue();
break;
}
}
}
public void visitFieldInsn(
int opcode,
String owner,
String name,
String desc)
{
mv.visitFieldInsn(opcode, owner, name, desc);
if (constructor) {
char c = desc.charAt(0);
boolean longOrDouble = c == 'J' || c == 'D';
switch (opcode) {
case GETSTATIC:
pushValue(OTHER);
if (longOrDouble) {
pushValue(OTHER);
}
break;
case PUTSTATIC:
popValue();
if(longOrDouble) {
popValue();
}
break;
case PUTFIELD:
popValue();
if(longOrDouble) {
popValue();
popValue();
}
break;
// case GETFIELD:
default:
if (longOrDouble) {
pushValue(OTHER);
}
}
}
}
public void visitIntInsn(int opcode, int operand) {
mv.visitIntInsn(opcode, operand);
if (constructor) {
switch (opcode) {
case BIPUSH:
case SIPUSH:
pushValue(OTHER);
}
}
}
public void visitLdcInsn(Object cst) {
mv.visitLdcInsn(cst);
if (constructor) {
pushValue(OTHER);
if (cst instanceof Double || cst instanceof Long) {
pushValue(OTHER);
}
}
}
public void visitMultiANewArrayInsn(String desc, int dims) {
mv.visitMultiANewArrayInsn(desc, dims);
if (constructor) {
for (int i = 0; i < dims; i++) {
popValue();
}
pushValue(OTHER);
}
}
public void visitTypeInsn(int opcode, String name) {
mv.visitTypeInsn(opcode, name);
// ANEWARRAY, CHECKCAST or INSTANCEOF don't change stack
if (constructor && opcode == NEW) {
pushValue(OTHER);
}
}
public void visitMethodInsn(
int opcode,
String owner,
String name,
String desc)
{
mv.visitMethodInsn(opcode, owner, name, desc);
if (constructor) {
Type[] types = Type.getArgumentTypes(desc);
for (int i = 0; i < types.length; i++) {
popValue();
if (types[i].getSize() == 2) {
popValue();
}
}
switch (opcode) {
// case INVOKESTATIC:
// break;
case INVOKEINTERFACE:
case INVOKEVIRTUAL:
popValue(); // objectref
break;
case INVOKESPECIAL:
Object type = popValue(); // objectref
if (type == THIS && !superInitialized) {
onMethodEnter();
superInitialized = true;
// once super has been initialized it is no longer
// necessary to keep track of stack state
constructor = false;
}
break;
}
Type returnType = Type.getReturnType(desc);
if (returnType != Type.VOID_TYPE) {
pushValue(OTHER);
if (returnType.getSize() == 2) {
pushValue(OTHER);
}
}
}
}
public void visitJumpInsn(int opcode, Label label) {
mv.visitJumpInsn(opcode, label);
if (constructor) {
switch (opcode) {
case IFEQ:
case IFNE:
case IFLT:
case IFGE:
case IFGT:
case IFLE:
case IFNULL:
case IFNONNULL:
popValue();
break;
case IF_ICMPEQ:
case IF_ICMPNE:
case IF_ICMPLT:
case IF_ICMPGE:
case IF_ICMPGT:
case IF_ICMPLE:
case IF_ACMPEQ:
case IF_ACMPNE:
popValue();
popValue();
break;
case JSR:
pushValue(OTHER);
break;
}
addBranch(label);
}
}
public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) {
mv.visitLookupSwitchInsn(dflt, keys, labels);
if (constructor) {
popValue();
addBranches(dflt, labels);
}
}
public void visitTableSwitchInsn(
int min,
int max,
Label dflt,
Label[] labels)
{
mv.visitTableSwitchInsn(min, max, dflt, labels);
if (constructor) {
popValue();
addBranches(dflt, labels);
}
}
private void addBranches(Label dflt, Label[] labels) {
addBranch(dflt);
for (int i = 0; i < labels.length; i++) {
addBranch(labels[i]);
}
}
private void addBranch(Label label) {
if (branches.containsKey(label)) {
return;
}
ArrayList frame = new ArrayList();
frame.addAll(stackFrame);
branches.put(label, frame);
}
private Object popValue() {
return stackFrame.remove(stackFrame.size()-1);
}
private Object peekValue() {
return stackFrame.get(stackFrame.size()-1);
}
private void pushValue(Object o) {
stackFrame.add(o);
}
/**
* Called at the beginning of the method or after super
* class class call in the constructor.
* <br><br>
*
* <i>Custom code can use or change all the local variables,
* but should not change state of the stack.</i>
*/
protected abstract void onMethodEnter();
/**
* Called before explicit exit from the method using either
* return or throw. Top element on the stack contains the
* return value or exception instance. For example:
*
* <pre>
* public void onMethodExit(int opcode) {
* if(opcode==RETURN) {
* visitInsn(ACONST_NULL);
* } else if(opcode==ARETURN || opcode==ATHROW) {
* dup();
* } else {
* if(opcode==LRETURN || opcode==DRETURN) {
* dup2();
* } else {
* dup();
* }
* box(Type.getReturnType(this.methodDesc));
* }
* visitMethodInsn(INVOKESTATIC, owner, "onExit", "(ILjava/lang/Object;)V");
* }
*
* // an actual call back method
* public static void onExit(int opcode, Object param) {
* ...
* </pre>
*
* <br><br>
*
* <i>Custom code can use or change all the local variables,
* but should not change state of the stack.</i>
*
* @param opcode one of the RETURN, IRETURN, FRETURN,
* ARETURN, LRETURN, DRETURN or ATHROW
*
*/
protected abstract void onMethodExit(int opcode);
// TODO onException, onMethodCall
}
| [
"(no author)@271bd773-ee82-43a6-9b2b-1890ed8ce7f9"
] | (no author)@271bd773-ee82-43a6-9b2b-1890ed8ce7f9 |
d3411bbd3617ba76632aa07c1bd8438846724188 | 6f0126351c32c9f8980a0c6ffbaf4c81aa432147 | /src/main/java/com/zephyr/parser/ContentParser.java | 30b7f7f7ba96cbec8eb2d2d304afebb9f26b3e2e | [] | no_license | zephyr520/zephyr-business-log | 30b853e7d78ea3148b7db3b65d3d77354bc7c2b9 | c40db68f6f76ae22a5fb3654bb54094e4d3cbb58 | refs/heads/master | 2020-05-20T11:31:00.094725 | 2019-05-08T07:17:00 | 2019-05-08T07:17:00 | 185,551,856 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 386 | java | package com.zephyr.parser;
import java.util.Map;
import com.zephyr.annotation.BusinessLog;
public interface ContentParser {
/**
* @description 获取信息返回查询出的对象
* @param feildValues 查询条件的参数值
* @param businessLog 注解
* @return
*/
public Object getResult(Map<String, Object> feildValues, BusinessLog businessLog);
}
| [
"zephyr_520@163.com"
] | zephyr_520@163.com |
81a03e6c8bb9c370c44506da46890f7f14702720 | 31b7d2067274728a252574b2452e617e45a1c8fb | /jpa-connector-beehive-bdk/com/oracle/beehive/InvitationSeriesICalUidPredicate.java | c3a2f54740162294ff11777185eb83fdc8f395d7 | [] | no_license | ericschan/open-icom | c83ae2fa11dafb92c3210a32184deb5e110a5305 | c4b15a2246d1b672a8225cbb21b75fdec7f66f22 | refs/heads/master | 2020-12-30T12:22:48.783144 | 2017-05-28T00:51:44 | 2017-05-28T00:51:44 | 91,422,338 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,905 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.3-hudson-jaxb-ri-2.2.3-3-
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011.11.08 at 05:31:42 PM PST
//
package com.oracle.beehive;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for invitationSeriesICalUidPredicate complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="invitationSeriesICalUidPredicate">
* <complexContent>
* <extension base="{http://www.oracle.com/beehive}invitationSeriesPredicate">
* <sequence>
* <element name="ICalUid" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "invitationSeriesICalUidPredicate", propOrder = {
"iCalUid"
})
public class InvitationSeriesICalUidPredicate
extends InvitationSeriesPredicate
{
@XmlElement(name = "ICalUid")
protected String iCalUid;
/**
* Gets the value of the iCalUid property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getICalUid() {
return iCalUid;
}
/**
* Sets the value of the iCalUid property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setICalUid(String value) {
this.iCalUid = value;
}
}
| [
"eric.sn.chan@gmail.com"
] | eric.sn.chan@gmail.com |
a6b477869ae45195169bc7c1e576f65def1897d2 | 8af1164bac943cef64e41bae312223c3c0e38114 | /results-java/serge-rider--dbeaver/197869bde88d7cd038ebf3b7251f351582402035/before/FolderList.java | 6bfec2136beb748d45d14b305897fceee4c2f775 | [] | no_license | fracz/refactor-extractor | 3ae45c97cc63f26d5cb8b92003b12f74cc9973a9 | dd5e82bfcc376e74a99e18c2bf54c95676914272 | refs/heads/master | 2021-01-19T06:50:08.211003 | 2018-11-30T13:00:57 | 2018-11-30T13:00:57 | 87,353,478 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 37,000 | java | /*******************************************************************************
* Copyright (c) 2001, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Mariot Chauvin <mariot.chauvin@obeo.fr> - bug 259553
* Amit Joglekar <joglekar@us.ibm.com> - Support for dynamic images (bug 385795)
*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2016 Serge Rieder (serge@jkiss.org)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (version 2)
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package org.jkiss.dbeaver.ui.controls.folders;
import org.eclipse.jface.resource.ColorRegistry;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.text.source.ISharedTextColors;
import org.eclipse.swt.SWT;
import org.eclipse.swt.accessibility.*;
import org.eclipse.swt.events.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.*;
import org.eclipse.ui.PlatformUI;
import org.jkiss.dbeaver.core.DBeaverUI;
import org.jkiss.dbeaver.ui.DBeaverIcons;
import org.jkiss.dbeaver.ui.UIUtils;
import java.util.IdentityHashMap;
import java.util.Map;
/**
* Shows the list of tabs in the tabbed property sheet page.
*
* @author Anthony Hunter
* @author Serge Rieder
*/
public class FolderList extends Composite {
private static final ListElement[] ELEMENTS_EMPTY = new ListElement[0];
protected static final int NONE = -1;
protected static final int INDENT_LEFT = 7;
protected static final int INDENT_RIGHT = 10;
public static final String LABEL_NA = "N/A";
public static final int SECTION_DIV_HEIGHT = 7;
private final boolean section;
private boolean focus = false;
private ListElement[] elements;
private int selectedElementIndex = NONE;
private int topVisibleIndex = NONE;
private int bottomVisibleIndex = NONE;
private TopNavigationElement topNavigationElement;
private BottomNavigationElement bottomNavigationElement;
private int widestLabelIndex = NONE;
private int tabsThatFitInComposite = NONE;
Color widgetForeground;
Color widgetBackground;
Color widgetNormalShadow;
Color widgetDarkShadow;
private Color listBackground;
private Color hoverGradientStart;
private Color hoverGradientEnd;
private Color elementBackground;
private Color indentedDefaultBackground;
private Color indentedHoverBackground;
private Color navigationElementShadowStroke;
private Color bottomNavigationElementShadowStroke1;
private Color bottomNavigationElementShadowStroke2;
private final Map<Image, Image> grayedImages = new IdentityHashMap<>();
/**
* One of the tabs in the tabbed property list.
*/
public class ListElement extends Canvas {
private FolderInfo tab;
private int index;
private boolean selected;
private boolean hover;
/**
* Constructor for ListElement.
*
* @param parent the parent Composite.
* @param tab the tab item for the element.
* @param index the index in the list.
*/
public ListElement(Composite parent, final FolderInfo tab, int index) {
super(parent, SWT.NO_FOCUS);
this.tab = tab;
hover = false;
selected = false;
this.index = index;
addPaintListener(new PaintListener() {
public void paintControl(PaintEvent e) {
paint(e);
}
});
addMouseListener(new MouseAdapter() {
public void mouseUp(MouseEvent e) {
if (!selected) {
select(getIndex(ListElement.this));
/*
* We set focus to the tabbed property composite so that
* focus is moved to the appropriate widget in the
* section.
*/
Composite tabbedPropertyComposite = getParent();
tabbedPropertyComposite.setFocus();
}
}
});
addMouseMoveListener(new MouseMoveListener() {
public void mouseMove(MouseEvent e) {
String tooltip = tab.getTooltip();
if (tooltip != null) {
setToolTipText(tooltip);
}
if (!hover) {
hover = true;
redraw();
}
}
});
addMouseTrackListener(new MouseTrackAdapter() {
public void mouseExit(MouseEvent e) {
hover = false;
redraw();
}
});
}
/**
* Set selected value for this element.
*
* @param selected the selected value.
*/
public void setSelected(boolean selected) {
this.selected = selected;
redraw();
}
/**
* Paint the element.
*
* @param e the paint event.
*/
private void paint(PaintEvent e) {
/*
* draw the top two lines of the tab, same for selected, hover and
* default
*/
Rectangle bounds = getBounds();
e.gc.setForeground(widgetNormalShadow);
e.gc.drawLine(0, 0, bounds.width - 1, 0);
e.gc.setForeground(listBackground);
e.gc.drawLine(0, 1, bounds.width - 1, 1);
/* draw the fill in the tab */
if (selected) {
e.gc.setBackground(listBackground);
e.gc.fillRectangle(0, 2, bounds.width, bounds.height - 1);
} else if (hover && tab.isIndented()) {
e.gc.setBackground(indentedHoverBackground);
e.gc.fillRectangle(0, 2, bounds.width - 1, bounds.height - 1);
} else if (hover) {
e.gc.setForeground(hoverGradientStart);
e.gc.setBackground(hoverGradientEnd);
e.gc.fillGradientRectangle(0, 2, bounds.width - 1, bounds.height - 1, true);
} else if (tab.isIndented()) {
e.gc.setBackground(indentedDefaultBackground);
e.gc.fillRectangle(0, 2, bounds.width - 1, bounds.height - 1);
} else {
e.gc.setBackground(elementBackground);
e.gc.fillRectangle(0, 2, bounds.width - 1, bounds.height - 1);
//e.gc.setBackground(defaultGradientEnd);
//e.gc.fillGradientRectangle(0, 2, bounds.width - 1, bounds.height - 1, true);
}
if (!selected) {
e.gc.setForeground(widgetNormalShadow);
e.gc.drawLine(bounds.width - 1, 1, bounds.width - 1,
bounds.height + 1);
}
/*
* Add INDENT_LEFT pixels to the left as a margin.
*/
int textIndent = INDENT_LEFT;
FontMetrics fm = e.gc.getFontMetrics();
int height = fm.getHeight();
int textMiddle = (bounds.height - height) / 2;
if (tab.getImage() != null) {
/* draw the icon for the selected tab */
if (tab.isIndented()) {
textIndent = textIndent + INDENT_LEFT;
} else {
textIndent = textIndent - 3;
}
Image image = DBeaverIcons.getImage(tab.getImage());
if (selected || hover) {
e.gc.drawImage(image, textIndent, textMiddle - 1);
} else {
e.gc.drawImage(getGrayedImage(image), textIndent, textMiddle - 1);
}
textIndent = textIndent + image.getBounds().width + 4;
} else if (tab.isIndented()) {
textIndent = textIndent + INDENT_LEFT;
}
/* draw the text */
e.gc.setForeground(widgetForeground);
if (selected) {
/* selected tab is bold font */
e.gc.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT));
}
e.gc.drawText(tab.getText(), textIndent, textMiddle, true);
if (((FolderList) getParent()).focus && selected) {
/* draw a line if the tab has focus */
Point point = e.gc.textExtent(tab.getText());
e.gc.drawLine(textIndent, bounds.height - 4, textIndent + point.x, bounds.height - 4);
}
/* draw the bottom line on the tab for selected and default */
if (!hover) {
e.gc.setForeground(listBackground);
e.gc.drawLine(0, bounds.height - 1, bounds.width - 2, bounds.height - 1);
}
}
/**
* Get the tab item.
*
* @return the tab item.
*/
public FolderInfo getInfo() {
return tab;
}
public String toString() {
return tab.getText();
}
}
private Image getGrayedImage(Image image) {
Image disabledImage = grayedImages.get(image);
if (disabledImage == null) {
disabledImage = new Image(image.getDevice(), image, SWT.IMAGE_GRAY);
grayedImages.put(image, disabledImage);
}
return disabledImage;
}
/**
* The top navigation element in the tabbed property list. It looks like a
* scroll button when scrolling is needed or is just a spacer when no
* scrolling is required.
*/
public class TopNavigationElement extends Canvas {
/**
* Constructor for TopNavigationElement.
*
* @param parent the parent Composite.
*/
public TopNavigationElement(Composite parent) {
super(parent, SWT.NO_FOCUS);
addPaintListener(new PaintListener() {
public void paintControl(PaintEvent e) {
paint(e);
}
});
addMouseListener(new MouseAdapter() {
public void mouseUp(MouseEvent e) {
if (isUpScrollRequired()) {
bottomVisibleIndex--;
if (topVisibleIndex != 0) {
topVisibleIndex--;
}
layoutTabs();
topNavigationElement.redraw();
bottomNavigationElement.redraw();
}
}
});
}
/**
* Paint the element.
*
* @param e the paint event.
*/
private void paint(PaintEvent e) {
e.gc.setBackground(widgetBackground);
e.gc.setForeground(widgetForeground);
Rectangle bounds = getBounds();
if (elements.length != 0) {
e.gc.fillRectangle(0, 0, bounds.width, bounds.height);
e.gc.setForeground(widgetNormalShadow);
e.gc.drawLine(bounds.width - 1, 0, bounds.width - 1,
bounds.height - 1);
} else {
e.gc.setBackground(listBackground);
e.gc.fillRectangle(0, 0, bounds.width, bounds.height);
int textIndent = INDENT_LEFT;
FontMetrics fm = e.gc.getFontMetrics();
int height = fm.getHeight();
int textMiddle = (bounds.height - height) / 2;
e.gc.setForeground(widgetForeground);
e.gc.drawText(LABEL_NA, textIndent, textMiddle);
}
if (isUpScrollRequired()) {
e.gc.setForeground(widgetDarkShadow);
int middle = bounds.width / 2;
e.gc.drawLine(middle + 1, 3, middle + 5, 7);
e.gc.drawLine(middle, 3, middle - 4, 7);
e.gc.drawLine(middle - 3, 7, middle + 4, 7);
e.gc.setForeground(listBackground);
e.gc.drawLine(middle, 4, middle + 1, 4);
e.gc.drawLine(middle - 1, 5, middle + 2, 5);
e.gc.drawLine(middle - 2, 6, middle + 3, 6);
e.gc.setForeground(widgetNormalShadow);
e.gc.drawLine(0, 0, bounds.width - 2, 0);
e.gc.setForeground(navigationElementShadowStroke);
e.gc.drawLine(0, 1, bounds.width - 2, 1);
e.gc.drawLine(0, bounds.height - 1, bounds.width - 2,
bounds.height - 1);
}
}
}
/**
* The top navigation element in the tabbed property list. It looks like a
* scroll button when scrolling is needed or is just a spacer when no
* scrolling is required.
*/
public class BottomNavigationElement extends Canvas {
/**
* Constructor for BottomNavigationElement.
*
* @param parent the parent Composite.
*/
public BottomNavigationElement(Composite parent) {
super(parent, SWT.NO_FOCUS);
addPaintListener(new PaintListener() {
public void paintControl(PaintEvent e) {
paint(e);
}
});
addMouseListener(new MouseAdapter() {
public void mouseUp(MouseEvent e) {
if (isDownScrollRequired()) {
topVisibleIndex++;
if (bottomVisibleIndex != elements.length - 1) {
bottomVisibleIndex++;
}
layoutTabs();
topNavigationElement.redraw();
bottomNavigationElement.redraw();
}
}
});
}
/**
* Paint the element.
*
* @param e the paint event.
*/
private void paint(PaintEvent e) {
e.gc.setBackground(widgetBackground);
e.gc.setForeground(widgetForeground);
Rectangle bounds = getBounds();
if (elements.length != 0) {
e.gc.fillRectangle(0, 0, bounds.width, bounds.height);
e.gc.setForeground(widgetNormalShadow);
if (!section || isDownScrollRequired()) {
e.gc.drawLine(bounds.width - 1, 0, bounds.width - 1, bounds.height - 1);
} else {
e.gc.drawLine(bounds.width - 1, 0, bounds.width - 1, bounds.height - SECTION_DIV_HEIGHT);
e.gc.drawPoint(bounds.width - 1, bounds.height - 1);
}
e.gc.drawLine(0, 0, bounds.width - 1, 0);
e.gc.setForeground(bottomNavigationElementShadowStroke1);
e.gc.drawLine(0, 1, bounds.width - 2, 1);
e.gc.setForeground(bottomNavigationElementShadowStroke2);
e.gc.drawLine(0, 2, bounds.width - 2, 2);
} else {
e.gc.setBackground(listBackground);
e.gc.fillRectangle(0, 0, bounds.width, bounds.height);
}
if (isDownScrollRequired()) {
e.gc.setForeground(widgetDarkShadow);
int middle = bounds.width / 2;
int bottom = bounds.height - 3;
e.gc.drawLine(middle + 1, bottom, middle + 5, bottom - 4);
e.gc.drawLine(middle, bottom, middle - 4, bottom - 4);
e.gc.drawLine(middle - 3, bottom - 4, middle + 4, bottom - 4);
e.gc.setForeground(listBackground);
e.gc.drawLine(middle, bottom - 1, middle + 1, bottom - 1);
e.gc.drawLine(middle - 1, bottom - 2, middle + 2, bottom - 2);
e.gc.drawLine(middle - 2, bottom - 3, middle + 3, bottom - 3);
e.gc.setForeground(widgetNormalShadow);
e.gc.drawLine(0, bottom - 7, bounds.width - 2, bottom - 7);
e.gc.setForeground(navigationElementShadowStroke);
e.gc.drawLine(0, bottom + 2, bounds.width - 2, bottom + 2);
e.gc.drawLine(0, bottom - 6, bounds.width - 2, bottom - 6);
}
}
}
public FolderList(Composite parent, boolean section) {
super(parent, SWT.NO_FOCUS);
this.section = section;
removeAll();
setLayout(new FormLayout());
initColours();
initAccessible();
topNavigationElement = new TopNavigationElement(this);
bottomNavigationElement = new BottomNavigationElement(this);
this.addFocusListener(new FocusListener() {
public void focusGained(FocusEvent e) {
focus = true;
int i = getSelectionIndex();
if (i >= 0) {
elements[i].redraw();
}
}
public void focusLost(FocusEvent e) {
focus = false;
int i = getSelectionIndex();
if (i >= 0) {
elements[i].redraw();
}
}
});
this.addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e) {
computeTopAndBottomTab();
}
});
this.addTraverseListener(new TraverseListener() {
public void keyTraversed(TraverseEvent e) {
if (e.detail == SWT.TRAVERSE_ARROW_PREVIOUS
|| e.detail == SWT.TRAVERSE_ARROW_NEXT) {
int nMax = elements.length - 1;
int nCurrent = getSelectionIndex();
if (e.detail == SWT.TRAVERSE_ARROW_PREVIOUS) {
nCurrent -= 1;
nCurrent = Math.max(0, nCurrent);
} else {
nCurrent += 1;
nCurrent = Math.min(nCurrent, nMax);
}
select(nCurrent);
redraw();
} else {
e.doit = true;
}
}
});
addDisposeListener(new DisposeListener() {
@Override
public void widgetDisposed(DisposeEvent e) {
for (Image di : grayedImages.values()) {
UIUtils.dispose(di);
}
grayedImages.clear();
}
});
}
/**
* Calculate the number of tabs that will fit in the tab list composite.
*/
protected void computeTabsThatFitInComposite() {
tabsThatFitInComposite = Math
.round((getSize().y - 22) / getTabHeight());
if (tabsThatFitInComposite <= 0) {
tabsThatFitInComposite = 1;
}
}
/**
* Returns the number of elements in this list viewer.
*
* @return number of elements
*/
public int getNumberOfElements() {
return elements.length;
}
/**
* Returns the element with the given index from this list viewer. Returns
* <code>null</code> if the index is out of range.
*
* @param index the zero-based index
* @return the element at the given index, or <code>null</code> if the
* index is out of range
*/
public ListElement getElementAt(int index) {
if (index >= 0 && index < elements.length) {
return elements[index];
}
return null;
}
public FolderInfo[] getElements() {
FolderInfo[] tabs = new FolderInfo[elements.length];
for (int i = 0; i < elements.length; i++) {
tabs[i] = elements[i].getInfo();
}
return tabs;
}
/**
* Returns the zero-relative index of the item which is currently selected
* in the receiver, or -1 if no item is selected.
*
* @return the index of the selected item
*/
public int getSelectionIndex() {
return selectedElementIndex;
}
/**
* Removes all elements from this list.
*/
public void removeAll() {
if (elements != null) {
for (ListElement element : elements) {
element.dispose();
}
}
elements = ELEMENTS_EMPTY;
selectedElementIndex = NONE;
widestLabelIndex = NONE;
topVisibleIndex = NONE;
bottomVisibleIndex = NONE;
}
/**
* Sets the new list elements.
*/
public void setFolders(FolderInfo[] children) {
if (elements != ELEMENTS_EMPTY) {
removeAll();
}
elements = new ListElement[children.length];
if (children.length == 0) {
widestLabelIndex = NONE;
} else {
widestLabelIndex = 0;
for (int i = 0; i < children.length; i++) {
elements[i] = new ListElement(this, children[i], i);
elements[i].setVisible(false);
elements[i].setLayoutData(null);
if (i != widestLabelIndex) {
int width = getTabWidth(children[i]);
if (width > getTabWidth(children[widestLabelIndex])) {
widestLabelIndex = i;
}
}
}
}
int maxTabWidth = getTabWidth(children[widestLabelIndex]);
Object layoutData = getLayoutData();
if (layoutData instanceof GridData) {
((GridData) layoutData).widthHint = maxTabWidth + INDENT_LEFT + INDENT_RIGHT;
}
computeTopAndBottomTab();
}
private int getTabWidth(FolderInfo folderInfo) {
int width = getTextDimension(folderInfo.getText()).x;
/*
* To anticipate for the icon placement we should always keep the
* space available after the label. So when the active tab includes
* an icon the width of the tab doesn't change.
*/
if (folderInfo.getImage() != null) {
Image image = DBeaverIcons.getImage(folderInfo.getImage());
if (image != null) {
width = width + image.getBounds().width + 4;
}
}
if (folderInfo.isIndented()) {
width = width + INDENT_LEFT;
}
return width;
}
/**
* Selects one of the elements in the list.
*
* @param index the index of the element to select.
*/
public void select(int index) {
if (index >= 0 && index < elements.length) {
int lastSelected = getSelectionIndex();
if (index == lastSelected) {
return;
}
elements[index].setSelected(true);
selectedElementIndex = index;
if (lastSelected != NONE) {
elements[lastSelected].setSelected(false);
if (getSelectionIndex() != elements.length - 1) {
/*
* redraw the next tab to fix the border by calling
* setSelected()
*/
elements[getSelectionIndex() + 1].setSelected(false);
}
}
topNavigationElement.redraw();
bottomNavigationElement.redraw();
if (selectedElementIndex < topVisibleIndex
|| selectedElementIndex > bottomVisibleIndex) {
computeTopAndBottomTab();
}
}
notifyListeners(SWT.Selection, new Event());
}
/**
* Deselects all the elements in the list.
*/
public void deselectAll() {
if (getSelectionIndex() != NONE) {
elements[getSelectionIndex()].setSelected(false);
selectedElementIndex = NONE;
}
}
private int getIndex(ListElement element) {
return element.index;
}
public Point computeSize(int wHint, int hHint, boolean changed) {
Point result = super.computeSize(hHint, wHint, changed);
Object layoutData = getLayoutData();
if (layoutData instanceof GridData && ((GridData) layoutData).widthHint != -1) {
result.x = ((GridData) layoutData).widthHint;
} else if (widestLabelIndex == -1) {
result.x = getTextDimension(LABEL_NA).x + INDENT_LEFT;
} else {
/*
* Add INDENT_LEFT pixels to the left of the longest tab as a margin.
*/
int width = getTabWidth(elements[widestLabelIndex].getInfo()) + INDENT_LEFT;
/*
* Add INDENT_RIGHT pixels to the right of the longest tab as a margin.
*/
result.x = width + INDENT_RIGHT;
}
return result;
}
/**
* Get the dimensions of the provided string.
*
* @param text the string.
* @return the dimensions of the provided string.
*/
private Point getTextDimension(String text) {
GC gc = new GC(this);
gc.setFont(JFaceResources.getFontRegistry().getBold(
JFaceResources.DEFAULT_FONT));
Point point = gc.textExtent(text);
point.x++;
gc.dispose();
return point;
}
/**
* Initialize the colours used in the list.
*/
private void initColours() {
Display display = Display.getCurrent();
ISharedTextColors sharedColors = DBeaverUI.getSharedTextColors();
ColorRegistry colorRegistry = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme().getColorRegistry();
listBackground = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
widgetBackground = display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);
widgetDarkShadow = display.getSystemColor(SWT.COLOR_WIDGET_DARK_SHADOW);
widgetForeground = display.getSystemColor(SWT.COLOR_WIDGET_FOREGROUND);
widgetNormalShadow = display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW);
RGB infoBackground = display.getSystemColor(SWT.COLOR_INFO_BACKGROUND).getRGB();
RGB white = display.getSystemColor(SWT.COLOR_WHITE).getRGB();
RGB black = display.getSystemColor(SWT.COLOR_BLACK).getRGB();
/*
* gradient in the default tab: start colour WIDGET_NORMAL_SHADOW 100% +
* white 20% + INFO_BACKGROUND 60% end colour WIDGET_NORMAL_SHADOW 100% +
* INFO_BACKGROUND 40%
*/
/*
defaultGradientStart = sharedColors.getColor(
UIUtils.blend(infoBackground,
UIUtils.blend(white, widgetNormalShadow.getRGB(), 20), 60)
);
defaultGradientEnd = sharedColors.getColor(UIUtils.blend(infoBackground, widgetNormalShadow.getRGB(), 40));
*/
if (widgetNormalShadow.hashCode() < widgetBackground.hashCode()) {
// Foreground darker than background - make element background darker
elementBackground = sharedColors.getColor(UIUtils.blend(black, widgetBackground.getRGB(), 15));
} else {
// Make element background lighter
elementBackground = sharedColors.getColor(UIUtils.blend(white, widgetBackground.getRGB(), 15));
}
navigationElementShadowStroke = sharedColors.getColor(UIUtils.blend(white, widgetNormalShadow.getRGB(), 55));
bottomNavigationElementShadowStroke1 = sharedColors.getColor(UIUtils.blend(black, widgetBackground.getRGB(), 10));
bottomNavigationElementShadowStroke2 = sharedColors.getColor(UIUtils.blend(black, widgetBackground.getRGB(), 5));
/*
* gradient in the hover tab: start colour WIDGET_BACKGROUND 100% +
* white 20% end colour WIDGET_BACKGROUND 100% + WIDGET_NORMAL_SHADOW
* 10%
*/
hoverGradientStart = sharedColors.getColor(UIUtils.blend(white, widgetBackground.getRGB(), 20));
hoverGradientEnd = sharedColors.getColor(UIUtils.blend(widgetNormalShadow.getRGB(), widgetBackground.getRGB(), 10));
indentedDefaultBackground = sharedColors.getColor(UIUtils.blend(white, widgetBackground.getRGB(), 10));
indentedHoverBackground = sharedColors.getColor(UIUtils.blend(white, widgetBackground.getRGB(), 75));
}
@Override
public void setBackground(Color color) {
super.setBackground(color);
getDisplay().asyncExec(new Runnable() {
@Override
public void run() {
initColours();
for (ListElement e : elements) {
e.redraw();
}
topNavigationElement.redraw();
bottomNavigationElement.redraw();
}
});
}
/**
* Get the height of a tab. The height of the tab is the height of the text
* plus buffer.
*
* @return the height of a tab.
*/
private int getTabHeight() {
int tabHeight = getTextDimension("").y + INDENT_LEFT; //$NON-NLS-1$
if (tabsThatFitInComposite == 1) {
/*
* if only one tab will fix, reduce the size of the tab height so
* that the navigation elements fit.
*/
int ret = getBounds().height - 20;
return (ret > tabHeight) ? tabHeight
: (ret < 5) ? 5
: ret;
}
return tabHeight;
}
/**
* Determine if a downward scrolling is required.
*
* @return true if downward scrolling is required.
*/
private boolean isDownScrollRequired() {
return elements.length > tabsThatFitInComposite
&& bottomVisibleIndex != elements.length - 1;
}
/**
* Determine if an upward scrolling is required.
*
* @return true if upward scrolling is required.
*/
private boolean isUpScrollRequired() {
return elements.length > tabsThatFitInComposite && topVisibleIndex != 0;
}
/**
* Based on available space, figure out the top and bottom tabs in the list.
*/
private void computeTopAndBottomTab() {
computeTabsThatFitInComposite();
if (elements.length == 0) {
/*
* no tabs to display.
*/
topVisibleIndex = 0;
bottomVisibleIndex = 0;
} else if (tabsThatFitInComposite >= elements.length) {
/*
* all the tabs fit.
*/
topVisibleIndex = 0;
bottomVisibleIndex = elements.length - 1;
} else if (getSelectionIndex() == NONE) {
/*
* there is no selected tab yet, assume that tab one would
* be selected for now.
*/
topVisibleIndex = 0;
bottomVisibleIndex = tabsThatFitInComposite - 1;
} else if (getSelectionIndex() + tabsThatFitInComposite > elements.length) {
/*
* the selected tab is near the bottom.
*/
bottomVisibleIndex = elements.length - 1;
topVisibleIndex = bottomVisibleIndex - tabsThatFitInComposite + 1;
} else {
/*
* the selected tab is near the top.
*/
topVisibleIndex = selectedElementIndex;
bottomVisibleIndex = selectedElementIndex + tabsThatFitInComposite
- 1;
}
layoutTabs();
}
/**
* Layout the tabs.
*/
private void layoutTabs() {
if (tabsThatFitInComposite == NONE || elements.length == 0) {
FormData formData = new FormData();
formData.left = new FormAttachment(0, 0);
formData.right = new FormAttachment(100, 0);
formData.top = new FormAttachment(0, 0);
formData.height = getTabHeight();
topNavigationElement.setLayoutData(formData);
formData = new FormData();
formData.left = new FormAttachment(0, 0);
formData.right = new FormAttachment(100, 0);
formData.top = new FormAttachment(topNavigationElement, 0);
formData.bottom = new FormAttachment(100, 0);
bottomNavigationElement.setLayoutData(formData);
} else {
FormData formData = new FormData();
formData.left = new FormAttachment(0, 0);
formData.right = new FormAttachment(100, 0);
formData.top = new FormAttachment(0, 0);
formData.height = 10;
topNavigationElement.setLayoutData(formData);
/*
* use nextElement to attach the layout to the previous canvas
* widget in the list.
*/
Canvas nextElement = topNavigationElement;
for (int i = 0; i < elements.length; i++) {
if (i < topVisibleIndex || i > bottomVisibleIndex) {
/*
* this tab is not visible
*/
elements[i].setLayoutData(null);
elements[i].setVisible(false);
} else {
/*
* this tab is visible.
*/
formData = new FormData();
formData.height = getTabHeight();
formData.left = new FormAttachment(0, 0);
formData.right = new FormAttachment(100, 0);
formData.top = new FormAttachment(nextElement, 0);
nextElement = elements[i];
elements[i].setLayoutData(formData);
elements[i].setVisible(true);
}
}
formData = new FormData();
formData.left = new FormAttachment(0, 0);
formData.right = new FormAttachment(100, 0);
formData.top = new FormAttachment(nextElement, 0);
formData.bottom = new FormAttachment(100, 0);
formData.height = 10;
bottomNavigationElement.setLayoutData(formData);
}
// layout so that we have enough space for the new labels
Composite grandparent = getParent().getParent();
grandparent.layout(true);
layout(true);
}
/**
* Initialize the accessibility adapter.
*/
private void initAccessible() {
final Accessible accessible = getAccessible();
accessible.addAccessibleListener(new AccessibleAdapter() {
public void getName(AccessibleEvent e) {
if (getSelectionIndex() != NONE) {
e.result = elements[getSelectionIndex()].getInfo().getText();
}
}
public void getHelp(AccessibleEvent e) {
if (getSelectionIndex() != NONE) {
e.result = elements[getSelectionIndex()].getInfo().getText();
}
}
});
accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
public void getChildAtPoint(AccessibleControlEvent e) {
Point pt = toControl(new Point(e.x, e.y));
e.childID = (getBounds().contains(pt)) ? ACC.CHILDID_SELF : ACC.CHILDID_NONE;
}
public void getLocation(AccessibleControlEvent e) {
if (getSelectionIndex() != NONE) {
Rectangle location = elements[getSelectionIndex()].getBounds();
Point pt = toDisplay(new Point(location.x, location.y));
e.x = pt.x;
e.y = pt.y;
e.width = location.width;
e.height = location.height;
}
}
public void getChildCount(AccessibleControlEvent e) {
e.detail = 0;
}
public void getRole(AccessibleControlEvent e) {
e.detail = ACC.ROLE_TABITEM;
}
public void getState(AccessibleControlEvent e) {
e.detail = ACC.STATE_SELECTABLE | ACC.STATE_SELECTED | ACC.STATE_FOCUSED | ACC.STATE_FOCUSABLE;
}
});
addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
if (isFocusControl()) {
accessible.setFocus(ACC.CHILDID_SELF);
}
}
});
addListener(SWT.FocusIn, new Listener() {
public void handleEvent(Event event) {
accessible.setFocus(ACC.CHILDID_SELF);
}
});
}
public void addSelectionListener(SelectionListener listener) {
checkWidget ();
TypedListener typedListener = new TypedListener (listener);
addListener (SWT.Selection,typedListener);
addListener (SWT.DefaultSelection,typedListener);
}
} | [
"fraczwojciech@gmail.com"
] | fraczwojciech@gmail.com |
cd6e054bcf89ce3b744b15468f085cd77e8074ba | 139960e2d7d55e71c15e6a63acb6609e142a2ace | /mobile_app1/module1183/src/main/java/module1183packageJava0/Foo1912.java | fa678e6ffe26c607629f956896990aba28a86457 | [
"Apache-2.0"
] | permissive | uber-common/android-build-eval | 448bfe141b6911ad8a99268378c75217d431766f | 7723bfd0b9b1056892cef1fef02314b435b086f2 | refs/heads/master | 2023-02-18T22:25:15.121902 | 2023-02-06T19:35:34 | 2023-02-06T19:35:34 | 294,831,672 | 83 | 7 | Apache-2.0 | 2021-09-24T08:55:30 | 2020-09-11T23:27:37 | Java | UTF-8 | Java | false | false | 378 | java | package module1183packageJava0;
import java.lang.Integer;
public class Foo1912 {
Integer int0;
public void foo0() {
new module1183packageJava0.Foo1911().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
}
| [
"oliviern@uber.com"
] | oliviern@uber.com |
55e4da05aef159b749bb7cb98ddef1fd4c58675b | 198a3e2f564da68d4213da46d3c3b44650b87d6d | /src/test/java/com/redkix/automation/utils/BaseAction.java | 298e85ccd83b9639124c54b93d096a8034f0b4d7 | [] | no_license | atevsum/Redkix_QATestLabDemo | ac05ed7c13889241c3376a3e3df1f78f25d5d0fc | 86502480b26a6dd9617d3ec011697ba48fca51b5 | refs/heads/master | 2021-01-11T13:56:43.088060 | 2017-06-27T14:38:12 | 2017-06-27T14:38:12 | 94,904,903 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 261 | java | package com.redkix.automation.utils;
import com.redkix.automation.pages.PageCollection;
public abstract class BaseAction {
protected PageCollection pages;
public BaseAction(PageCollection pageCollection){
this.pages = pageCollection;
}
}
| [
"svetlana.dudarenko@qa-testlab.com"
] | svetlana.dudarenko@qa-testlab.com |
eecff2061d72c37f76915336f9178687c5588527 | b008da72b5309649611670cdb1cd92a90ad1aa21 | /android/app/src/main/java/com/tvtest/MainApplication.java | 61b82e3c205d5e7cf91dc565e76118d43d1d0bca | [
"MIT"
] | permissive | camrun91/react-native-on-tvos | d9431a38457b042326ca4887ce40843cb653c967 | 1da64352472f69e64e5760807098301e3b70b2bc | refs/heads/master | 2021-09-05T10:11:47.803469 | 2018-01-26T09:25:27 | 2018-01-26T09:25:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,042 | java | package com.tvtest;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import java.util.Arrays;
import java.util.List;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage()
);
}
@Override
protected String getJSMainModuleName() {
return "index";
}
};
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
}
}
| [
"neilkimmett@gmail.com"
] | neilkimmett@gmail.com |
9c60d1921ee6c56e21ad637a84c99ad353b6f8d9 | e54bc7a11367861c4ad8b5a8897375dfe3184997 | /maptwo.java | a226582e6897f32251ae0b380b884bfe66699e7e | [] | no_license | prudevibe/java_campus_interview_practice_with-notes- | 35eb2499b7b48ef08bac02c27f48f26bb4b7b4ce | 280f8c8e0b92c7a53745e91b9bb988c8f971cfda | refs/heads/master | 2022-12-26T23:13:32.083291 | 2020-10-15T17:54:05 | 2020-10-15T17:54:05 | 303,578,170 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 811 | java | //to crete phonebook
//difference between hashmap and hashtable.
/*entery is an interface inside map
Set <Map.Entry<String,String>> values = phonebook.entrySet();
for(Map.Entry<String,String> e:values)
{
System.out.println(e.getkey() +": "+e.getvalue);
}
*/
import java.util.*;
public class maptwo{
public static void main(String[] args)
{
Map<String,String> phonebook = new HashMap<>();
phonebook.put("abhi" , "8319");
phonebook.put("abhin" , "8329");
phonebook.put("abhina" , "8339");
phonebook.put("abhinav" , "8349");
phonebook.put("abh" , "8359");
Set<String> keys =phonebook.keySet();
for(String i :keys)
{
System.out.println(i +": " +phonebook.get(i));
}
}
} | [
"noreply@github.com"
] | prudevibe.noreply@github.com |
d755fcccda5d9174d97323c3a36036990b145336 | a99e3dcc3fbff2e39e90fd0df21fac85a1132e64 | /contrib/extensions/replication/core/src/main/java/org/apache/sling/replication/serialization/ReplicationPackageBuilderProvider.java | 735d58c36b3e8093781d7646f19553c455ffc9bd | [
"JSON",
"Apache-2.0"
] | permissive | MRivas-XumaK/slingBuild | 246f10ccdd17ace79696d760f0801aec188a38fc | c153c22d893cd55c805606041b1292e628d5461e | refs/heads/master | 2023-01-09T22:49:01.251652 | 2014-05-08T15:46:12 | 2014-05-08T15:46:12 | 19,578,020 | 3 | 3 | Apache-2.0 | 2022-12-21T18:50:52 | 2014-05-08T15:13:56 | Java | UTF-8 | Java | false | false | 1,647 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sling.replication.serialization;
import java.util.Collection;
/**
* A provider for {@link ReplicationPackageBuilder}s
*/
public interface ReplicationPackageBuilderProvider {
/**
* get all the available {@link ReplicationPackageBuilder}s in the system
*
* @return a {@link Collection} of {@link ReplicationPackageBuilder}
*/
Collection<ReplicationPackageBuilder> getAvailableReplicationPackageBuilders();
/**
* get the {@link ReplicationPackageBuilder} with the specified name
*
* @param name the name of the {@link ReplicationPackageBuilder} as a <code>String</code>
* @return the {@link ReplicationPackageBuilder} with the given name, if it exists, <code>null</code> otherwise
*/
ReplicationPackageBuilder getReplicationPackageBuilder(String name);
}
| [
"marito.rivas@hotmail.com"
] | marito.rivas@hotmail.com |
5ceea49fc2ddb6718637de927d537478919263cf | baef43340156fec7a6556fd47eed74ecb88f3d5b | /gen/no/glv/sunshine/R.java | cbdb0d402e6cb8113887ff18aa9e9898d2675677 | [] | no_license | vollsate/Sunshine | a2b3b554832c8deee5ae5d9bf6f4167edbdd0e8d | 56947527066c33da2ab1088982b64cc3d6a64f50 | refs/heads/master | 2021-01-02T08:47:54.157533 | 2014-12-26T10:42:11 | 2014-12-26T10:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 348,174 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package no.glv.sunshine;
public final class R {
public static final class anim {
public static final int abc_fade_in=0x7f040000;
public static final int abc_fade_out=0x7f040001;
public static final int abc_slide_in_bottom=0x7f040002;
public static final int abc_slide_in_top=0x7f040003;
public static final int abc_slide_out_bottom=0x7f040004;
public static final int abc_slide_out_top=0x7f040005;
}
public static final class attr {
/** Custom divider drawable to use for elements in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarDivider=0x7f010015;
/** Custom item state list drawable background for action bar items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarItemBackground=0x7f010016;
/** Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarPopupTheme=0x7f01000f;
/** Size of the Action Bar, including the contextual
bar used to present Action Modes.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>May be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>wrap_content</code></td><td>0</td><td></td></tr>
</table>
*/
public static final int actionBarSize=0x7f010014;
/** Reference to a style for the split Action Bar. This style
controls the split component that holds the menu/action
buttons. actionBarStyle is still used for the primary
bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarSplitStyle=0x7f010011;
/** Reference to a style for the Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarStyle=0x7f010010;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabBarStyle=0x7f01000b;
/** Default style for tabs within an action bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabStyle=0x7f01000a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabTextStyle=0x7f01000c;
/** Reference to a theme that should be used to inflate the
action bar. This will be inherited by any widget inflated
into the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTheme=0x7f010012;
/** Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarWidgetTheme=0x7f010013;
/** Default action button style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionButtonStyle=0x7f01002d;
/** Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionDropDownStyle=0x7f010028;
/** An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionLayout=0x7f010072;
/** TextAppearance style that will be applied to text that
appears within action menu items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionMenuTextAppearance=0x7f010017;
/** Color for text that appears within action menu items.
Color for text that appears within action menu items.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int actionMenuTextColor=0x7f010018;
/** Background drawable to use for action mode UI
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeBackground=0x7f01001b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseButtonStyle=0x7f01001a;
/** Drawable to use for the close action mode button
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseDrawable=0x7f01001d;
/** Drawable to use for the Copy action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCopyDrawable=0x7f01001f;
/** Drawable to use for the Cut action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCutDrawable=0x7f01001e;
/** Drawable to use for the Find action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeFindDrawable=0x7f010023;
/** Drawable to use for the Paste action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePasteDrawable=0x7f010020;
/** PopupWindow style to use for action modes when showing as a window overlay.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePopupWindowStyle=0x7f010025;
/** Drawable to use for the Select all action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSelectAllDrawable=0x7f010021;
/** Drawable to use for the Share action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeShareDrawable=0x7f010022;
/** Background drawable to use for action mode UI in the lower split bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSplitBackground=0x7f01001c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeStyle=0x7f010019;
/** Drawable to use for the Web Search action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeWebSearchDrawable=0x7f010024;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowButtonStyle=0x7f01000d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowMenuStyle=0x7f01000e;
/** The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionProviderClass=0x7f010074;
/** The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionViewClass=0x7f010073;
/** Default ActivityChooserView style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int activityChooserViewStyle=0x7f010034;
/** Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int background=0x7f01005d;
/** Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundSplit=0x7f01005f;
/** Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundStacked=0x7f01005e;
/** The size of the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int barSize=0x7f01009f;
/** A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarButtonStyle=0x7f01002f;
/** A style that may be applied to horizontal LinearLayouts
to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarStyle=0x7f01002e;
/** Close button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int closeIcon=0x7f01007c;
/** Specifies a layout to use for the "close" item at the starting edge.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int closeItemLayout=0x7f01006d;
/** Text to set as the content description for the collapse button.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int collapseContentDescription=0x7f010094;
/** Icon drawable to use for the collapse button.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int collapseIcon=0x7f010093;
/** The drawing color for the bars
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int color=0x7f010099;
/** Bright complement to the primary branding color. By default, this is the color applied
to framework controls (via colorControlActivated).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorAccent=0x7f01004f;
/** The color applied to framework buttons in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorButtonNormal=0x7f010053;
/** The color applied to framework controls in their activated (ex. checked) state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlActivated=0x7f010051;
/** The color applied to framework control highlights (ex. ripples, list selectors).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlHighlight=0x7f010052;
/** The color applied to framework controls in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorControlNormal=0x7f010050;
/** The primary branding color for the app. By default, this is the color applied to the
action bar background.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorPrimary=0x7f01004d;
/** Dark variant of the primary branding color. By default, this is the color applied to
the status bar (via statusBarColor) and navigation bar (via navigationBarColor).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorPrimaryDark=0x7f01004e;
/** The color applied to framework switch thumbs in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int colorSwitchThumbNormal=0x7f010054;
/** Commit icon shown in the query suggestion row
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int commitIcon=0x7f010080;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetEnd=0x7f010068;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetLeft=0x7f010069;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetRight=0x7f01006a;
/** Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int contentInsetStart=0x7f010067;
/** Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int customNavigationLayout=0x7f010060;
/** Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int disableChildrenWhenDisabled=0x7f010078;
/** Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
*/
public static final int displayOptions=0x7f010056;
/** Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int divider=0x7f01005c;
/** A drawable that may be used as a horizontal divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerHorizontal=0x7f010033;
/** Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dividerPadding=0x7f010089;
/** A drawable that may be used as a vertical divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerVertical=0x7f010032;
/** The total size of the drawable
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int drawableSize=0x7f01009b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int drawerArrowStyle=0x7f0100a1;
/** ListPopupWindow compatibility
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dropDownListViewStyle=0x7f010045;
/** The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dropdownListPreferredItemHeight=0x7f010029;
/** EditText background drawable.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int editTextBackground=0x7f01003a;
/** EditText text foreground color.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int editTextColor=0x7f010039;
/** Elevation for the action bar itself
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int elevation=0x7f01006b;
/** The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int expandActivityOverflowButtonDrawable=0x7f010085;
/** The max gap between the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int gapBetweenBars=0x7f01009c;
/** Go button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int goIcon=0x7f01007d;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int height=0x7f010001;
/** Set true to hide the action bar on a vertical nested scroll of content.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int hideOnContentScroll=0x7f010066;
/** Specifies a drawable to use for the 'home as up' indicator.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeAsUpIndicator=0x7f01002c;
/** Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeLayout=0x7f010061;
/** Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int icon=0x7f01005a;
/** The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int iconifiedByDefault=0x7f01007a;
/** Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int indeterminateProgressStyle=0x7f010063;
/** The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int initialActivityCount=0x7f010084;
/** Specifies whether the theme is light, otherwise it is dark.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int isLightTheme=0x7f010002;
/** Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int itemPadding=0x7f010065;
/** The layout to use for the search view.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int layout=0x7f010079;
/** Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listChoiceBackgroundIndicator=0x7f01004c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listPopupWindowStyle=0x7f010046;
/** The preferred list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeight=0x7f010040;
/** A larger, more robust list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightLarge=0x7f010042;
/** A smaller, sleeker list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightSmall=0x7f010041;
/** The preferred padding along the left edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingLeft=0x7f010043;
/** The preferred padding along the right edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingRight=0x7f010044;
/** Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int logo=0x7f01005b;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int maxButtonHeight=0x7f010091;
/** When set to true, all children with a weight will be considered having
the minimum size of the largest child. If false, all children are
measured normally.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int measureWithLargestChild=0x7f010087;
/** The size of the middle bar when top and bottom bars merge into middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int middleBarArrowSize=0x7f01009e;
/** Text to set as the content description for the navigation button
located at the start of the toolbar.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int navigationContentDescription=0x7f010096;
/** Icon drawable to use for the navigation button located at
the start of the toolbar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int navigationIcon=0x7f010095;
/** The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
*/
public static final int navigationMode=0x7f010055;
/** Whether the popup window should overlap its anchor view.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int overlapAnchor=0x7f010098;
/** Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingEnd=0x7f01006f;
/** Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingStart=0x7f01006e;
/** The background of a panel when it is inset from the left and right edges of the screen.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int panelBackground=0x7f010049;
/** Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int panelMenuListTheme=0x7f01004b;
/** Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int panelMenuListWidth=0x7f01004a;
/** Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupMenuStyle=0x7f010037;
/** Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupPromptView=0x7f010077;
/** Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupTheme=0x7f01006c;
/** Default PopupWindow style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupWindowStyle=0x7f010038;
/** Whether space should be reserved in layout when an icon is missing.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int preserveIconSpacing=0x7f010070;
/** Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int progressBarPadding=0x7f010064;
/** Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int progressBarStyle=0x7f010062;
/** The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int prompt=0x7f010075;
/** Background for the section containing the search query
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int queryBackground=0x7f010082;
/** An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int queryHint=0x7f01007b;
/** Search icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchIcon=0x7f01007e;
/** Style for the search query widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewStyle=0x7f01003f;
/** A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int selectableItemBackground=0x7f010030;
/** Background drawable for borderless standalone items that need focus/pressed states.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int selectableItemBackgroundBorderless=0x7f010031;
/** How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
*/
public static final int showAsAction=0x7f010071;
/** Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
*/
public static final int showDividers=0x7f010088;
/** Whether to draw on/off text.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int showText=0x7f0100a8;
/** Whether bars should rotate or not during transition
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int spinBars=0x7f01009a;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerDropDownItemStyle=0x7f01002b;
/** Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
*/
public static final int spinnerMode=0x7f010076;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerStyle=0x7f01002a;
/** Whether to split the track and leave a gap for the thumb drawable.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int splitTrack=0x7f0100a7;
/** State identifier indicating the popup will be above the anchor.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int state_above_anchor=0x7f010097;
/** Background for the section containing the action (e.g. voice search)
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int submitBackground=0x7f010083;
/** Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int subtitle=0x7f010057;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int subtitleTextAppearance=0x7f01008b;
/** Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int subtitleTextStyle=0x7f010059;
/** Layout for query suggestion rows
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int suggestionRowLayout=0x7f010081;
/** Minimum width for the switch component
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int switchMinWidth=0x7f0100a5;
/** Minimum space between the switch and caption text
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int switchPadding=0x7f0100a6;
/** Default style for the Switch widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int switchStyle=0x7f01003b;
/** TextAppearance style for text displayed on the switch thumb.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int switchTextAppearance=0x7f0100a4;
/** Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
*/
public static final int textAllCaps=0x7f010086;
/** Text color, typeface, size, and style for the text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceLargePopupMenu=0x7f010026;
/** The preferred TextAppearance for the primary text of list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItem=0x7f010047;
/** The preferred TextAppearance for the primary text of small list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItemSmall=0x7f010048;
/** Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultSubtitle=0x7f01003d;
/** Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultTitle=0x7f01003c;
/** Text color, typeface, size, and style for small text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSmallPopupMenu=0x7f010027;
/** Text color for urls in search suggestions, used by things like global search
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int textColorSearchUrl=0x7f01003e;
/** Specifies a theme override for a view. When a theme override is set, the
view will be inflated using a {@link android.content.Context} themed with
the specified resource. During XML inflation, any child views under the
view with a theme override will inherit the themed context.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int theme=0x7f010092;
/** The thickness (stroke size) for the bar paint
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int thickness=0x7f0100a0;
/** Amount of padding on either side of text within the switch thumb.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int thumbTextPadding=0x7f0100a3;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int title=0x7f010000;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginBottom=0x7f010090;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginEnd=0x7f01008e;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginStart=0x7f01008d;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMarginTop=0x7f01008f;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int titleMargins=0x7f01008c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int titleTextAppearance=0x7f01008a;
/** Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int titleTextStyle=0x7f010058;
/** Default Toolar NavigationButtonStyle
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int toolbarNavigationButtonStyle=0x7f010036;
/** Default Toolbar style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int toolbarStyle=0x7f010035;
/** The size of the top and bottom bars when they merge to the middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int topBottomBarArrowSize=0x7f01009d;
/** Drawable to use as the "track" that the switch thumb slides within.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int track=0x7f0100a2;
/** Voice button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int voiceIcon=0x7f01007f;
/** Flag indicating whether this window should have an Action Bar
in place of the usual title bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBar=0x7f010003;
/** Flag indicating whether this window's Action Bar should overlay
application content. Does nothing if the window would not
have an Action Bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBarOverlay=0x7f010004;
/** Flag indicating whether action modes should overlay window content
when there is not reserved space for their UI (such as an Action Bar).
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionModeOverlay=0x7f010005;
/** A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMajor=0x7f010009;
/** A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMinor=0x7f010007;
/** A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMajor=0x7f010006;
/** A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMinor=0x7f010008;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs=0x7f050000;
public static final int abc_action_bar_embed_tabs_pre_jb=0x7f050001;
public static final int abc_action_bar_expanded_action_views_exclusive=0x7f050002;
/** Whether action menu items should be displayed in ALLCAPS or not.
Defaults to true. If this is not appropriate for specific locales
it should be disabled in that locale's resources.
*/
public static final int abc_config_actionMenuItemAllCaps=0x7f050005;
/** Whether action menu items should obey the "withText" showAsAction
flag. This may be set to false for situations where space is
extremely limited.
Whether action menu items should obey the "withText" showAsAction.
This may be set to false for situations where space is
extremely limited.
*/
public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f050004;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f050003;
}
public static final class color {
public static final int abc_background_cache_hint_selector_material_dark=0x7f060031;
public static final int abc_background_cache_hint_selector_material_light=0x7f060032;
public static final int abc_input_method_navigation_guard=0x7f060003;
public static final int abc_primary_text_disable_only_material_dark=0x7f060033;
public static final int abc_primary_text_disable_only_material_light=0x7f060034;
public static final int abc_primary_text_material_dark=0x7f060035;
public static final int abc_primary_text_material_light=0x7f060036;
public static final int abc_search_url_text=0x7f060037;
public static final int abc_search_url_text_normal=0x7f060000;
public static final int abc_search_url_text_pressed=0x7f060002;
public static final int abc_search_url_text_selected=0x7f060001;
public static final int abc_secondary_text_material_dark=0x7f060038;
public static final int abc_secondary_text_material_light=0x7f060039;
public static final int accent_material_dark=0x7f06000f;
public static final int accent_material_light=0x7f06000e;
public static final int background_floating_material_dark=0x7f060006;
public static final int background_floating_material_light=0x7f060007;
public static final int background_material_dark=0x7f060004;
public static final int background_material_light=0x7f060005;
/** White 50%
*/
public static final int bright_foreground_disabled_material_dark=0x7f060016;
/** Black 50%
*/
public static final int bright_foreground_disabled_material_light=0x7f060017;
public static final int bright_foreground_inverse_material_dark=0x7f060018;
public static final int bright_foreground_inverse_material_light=0x7f060019;
public static final int bright_foreground_material_dark=0x7f060014;
public static final int bright_foreground_material_light=0x7f060015;
public static final int button_material_dark=0x7f060010;
public static final int button_material_light=0x7f060011;
public static final int dim_foreground_disabled_material_dark=0x7f06001c;
public static final int dim_foreground_disabled_material_light=0x7f06001d;
public static final int dim_foreground_material_dark=0x7f06001a;
public static final int dim_foreground_material_light=0x7f06001b;
/** TODO: This is 40% alpha on the default accent color.
*/
public static final int highlighted_text_material_dark=0x7f060020;
/** TODO: This is 40% alpha on the default accent color.
*/
public static final int highlighted_text_material_light=0x7f060021;
public static final int hint_foreground_material_dark=0x7f06001e;
public static final int hint_foreground_material_light=0x7f06001f;
public static final int link_text_material_dark=0x7f060022;
public static final int link_text_material_light=0x7f060023;
public static final int material_blue_grey_800=0x7f06002e;
public static final int material_blue_grey_900=0x7f06002f;
public static final int material_blue_grey_950=0x7f060030;
public static final int material_deep_teal_200=0x7f06002c;
public static final int material_deep_teal_500=0x7f06002d;
public static final int primary_dark_material_dark=0x7f06000a;
public static final int primary_dark_material_light=0x7f06000b;
public static final int primary_material_dark=0x7f060008;
public static final int primary_material_light=0x7f060009;
public static final int primary_text_default_material_dark=0x7f060026;
public static final int primary_text_default_material_light=0x7f060024;
/** 30% of default values
*/
public static final int primary_text_disabled_material_dark=0x7f06002a;
/** 26% of default values
*/
public static final int primary_text_disabled_material_light=0x7f060028;
public static final int ripple_material_dark=0x7f06000c;
public static final int ripple_material_light=0x7f06000d;
public static final int secondary_text_default_material_dark=0x7f060027;
public static final int secondary_text_default_material_light=0x7f060025;
public static final int secondary_text_disabled_material_dark=0x7f06002b;
public static final int secondary_text_disabled_material_light=0x7f060029;
public static final int switch_thumb_normal_material_dark=0x7f060012;
public static final int switch_thumb_normal_material_light=0x7f060013;
}
public static final class dimen {
/** Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
*/
public static final int abc_action_bar_default_height_material=0x7f070014;
/** Default padding of an action bar.
Default padding of an action bar.
Default padding of an action bar.
*/
public static final int abc_action_bar_default_padding_material=0x7f070015;
/** Vertical padding around action bar icons.
*/
public static final int abc_action_bar_icon_vertical_padding_material=0x7f070016;
/** Size of the indeterminate Progress Bar
Size of the indeterminate Progress Bar
*/
public static final int abc_action_bar_progress_bar_size=0x7f070005;
/** Maximum height for a stacked tab bar as part of an action bar
*/
public static final int abc_action_bar_stacked_max_height=0x7f070004;
/** Maximum width for a stacked action bar tab. This prevents
action bar tabs from becoming too wide on a wide screen when only
a few are present.
*/
public static final int abc_action_bar_stacked_tab_max_width=0x7f070003;
/** Bottom margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_bottom_margin_material=0x7f070018;
/** Top margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_top_margin_material=0x7f070017;
public static final int abc_action_button_min_height_material=0x7f07001b;
public static final int abc_action_button_min_width_material=0x7f07001a;
public static final int abc_action_button_min_width_overflow_material=0x7f070019;
/** The maximum width we would prefer dialogs to be. 0 if there is no
maximum (let them grow as large as the screen). Actual values are
specified for -large and -xlarge configurations.
see comment in values/config.xml
see comment in values/config.xml
*/
public static final int abc_config_prefDialogWidth=0x7f070002;
/** Default insets (outer padding) around controls
*/
public static final int abc_control_inset_material=0x7f070010;
/** Default inner padding within controls
*/
public static final int abc_control_padding_material=0x7f070011;
/** Width of the icon in a dropdown list
*/
public static final int abc_dropdownitem_icon_width=0x7f07000b;
/** Text padding for dropdown items
*/
public static final int abc_dropdownitem_text_padding_left=0x7f070009;
public static final int abc_dropdownitem_text_padding_right=0x7f07000a;
public static final int abc_panel_menu_list_width=0x7f070006;
/** Preferred width of the search view.
*/
public static final int abc_search_view_preferred_width=0x7f070008;
/** Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
*/
public static final int abc_search_view_text_min_width=0x7f070007;
public static final int abc_text_size_body_1_material=0x7f070025;
public static final int abc_text_size_body_2_material=0x7f070024;
public static final int abc_text_size_button_material=0x7f070027;
public static final int abc_text_size_caption_material=0x7f070026;
public static final int abc_text_size_display_1_material=0x7f07001f;
public static final int abc_text_size_display_2_material=0x7f07001e;
public static final int abc_text_size_display_3_material=0x7f07001d;
public static final int abc_text_size_display_4_material=0x7f07001c;
public static final int abc_text_size_headline_material=0x7f070020;
public static final int abc_text_size_large_material=0x7f070028;
public static final int abc_text_size_medium_material=0x7f070029;
public static final int abc_text_size_menu_material=0x7f070023;
public static final int abc_text_size_small_material=0x7f07002a;
public static final int abc_text_size_subhead_material=0x7f070022;
/** Use the default subtitle sizes on tablets.
Default text size for action bar subtitle.
*/
public static final int abc_text_size_subtitle_material_toolbar=0x7f070013;
public static final int abc_text_size_title_material=0x7f070021;
/** Use the default title sizes on tablets.
Default text size for action bar title.
*/
public static final int abc_text_size_title_material_toolbar=0x7f070012;
/** Default screen margins, per the Android Design guidelines.
Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively).
*/
public static final int activity_horizontal_margin=0x7f07002b;
public static final int activity_vertical_margin=0x7f07002c;
/** The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_major=0x7f07000e;
/** The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_minor=0x7f07000f;
/** The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_major=0x7f07000c;
/** The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_minor=0x7f07000d;
public static final int disabled_alpha_material_dark=0x7f070001;
public static final int disabled_alpha_material_light=0x7f070000;
}
public static final class drawable {
public static final int abc_ab_share_pack_holo_dark=0x7f020000;
public static final int abc_ab_share_pack_holo_light=0x7f020001;
public static final int abc_btn_check_material=0x7f020002;
public static final int abc_btn_check_to_on_mtrl_000=0x7f020003;
public static final int abc_btn_check_to_on_mtrl_015=0x7f020004;
public static final int abc_btn_radio_material=0x7f020005;
public static final int abc_btn_radio_to_on_mtrl_000=0x7f020006;
public static final int abc_btn_radio_to_on_mtrl_015=0x7f020007;
public static final int abc_btn_switch_to_on_mtrl_00001=0x7f020008;
public static final int abc_btn_switch_to_on_mtrl_00012=0x7f020009;
public static final int abc_cab_background_internal_bg=0x7f02000a;
public static final int abc_cab_background_top_material=0x7f02000b;
public static final int abc_cab_background_top_mtrl_alpha=0x7f02000c;
public static final int abc_edit_text_material=0x7f02000d;
public static final int abc_ic_ab_back_mtrl_am_alpha=0x7f02000e;
public static final int abc_ic_clear_mtrl_alpha=0x7f02000f;
public static final int abc_ic_commit_search_api_mtrl_alpha=0x7f020010;
public static final int abc_ic_go_search_api_mtrl_alpha=0x7f020011;
public static final int abc_ic_menu_copy_mtrl_am_alpha=0x7f020012;
public static final int abc_ic_menu_cut_mtrl_alpha=0x7f020013;
public static final int abc_ic_menu_moreoverflow_mtrl_alpha=0x7f020014;
public static final int abc_ic_menu_paste_mtrl_am_alpha=0x7f020015;
public static final int abc_ic_menu_selectall_mtrl_alpha=0x7f020016;
public static final int abc_ic_menu_share_mtrl_alpha=0x7f020017;
public static final int abc_ic_search_api_mtrl_alpha=0x7f020018;
public static final int abc_ic_voice_search_api_mtrl_alpha=0x7f020019;
public static final int abc_item_background_holo_dark=0x7f02001a;
public static final int abc_item_background_holo_light=0x7f02001b;
public static final int abc_list_divider_mtrl_alpha=0x7f02001c;
public static final int abc_list_focused_holo=0x7f02001d;
public static final int abc_list_longpressed_holo=0x7f02001e;
public static final int abc_list_pressed_holo_dark=0x7f02001f;
public static final int abc_list_pressed_holo_light=0x7f020020;
public static final int abc_list_selector_background_transition_holo_dark=0x7f020021;
public static final int abc_list_selector_background_transition_holo_light=0x7f020022;
public static final int abc_list_selector_disabled_holo_dark=0x7f020023;
public static final int abc_list_selector_disabled_holo_light=0x7f020024;
public static final int abc_list_selector_holo_dark=0x7f020025;
public static final int abc_list_selector_holo_light=0x7f020026;
public static final int abc_menu_hardkey_panel_mtrl_mult=0x7f020027;
public static final int abc_popup_background_mtrl_mult=0x7f020028;
public static final int abc_spinner_mtrl_am_alpha=0x7f020029;
public static final int abc_switch_thumb_material=0x7f02002a;
public static final int abc_switch_track_mtrl_alpha=0x7f02002b;
public static final int abc_tab_indicator_material=0x7f02002c;
public static final int abc_tab_indicator_mtrl_alpha=0x7f02002d;
public static final int abc_textfield_activated_mtrl_alpha=0x7f02002e;
public static final int abc_textfield_default_mtrl_alpha=0x7f02002f;
public static final int abc_textfield_search_activated_mtrl_alpha=0x7f020030;
public static final int abc_textfield_search_default_mtrl_alpha=0x7f020031;
public static final int abc_textfield_search_material=0x7f020032;
public static final int ic_launcher=0x7f020033;
public static final int sun=0x7f020034;
}
public static final class id {
public static final int action_bar=0x7f090031;
public static final int action_bar_activity_content=0x7f090003;
public static final int action_bar_container=0x7f090030;
public static final int action_bar_root=0x7f09002c;
public static final int action_bar_spinner=0x7f090002;
public static final int action_bar_subtitle=0x7f09001f;
public static final int action_bar_title=0x7f09001e;
public static final int action_context_bar=0x7f090032;
public static final int action_exit=0x7f090049;
public static final int action_menu_divider=0x7f090005;
public static final int action_menu_presenter=0x7f090006;
public static final int action_mode_bar=0x7f09002e;
public static final int action_mode_bar_stub=0x7f09002d;
public static final int action_mode_close_button=0x7f090020;
public static final int action_refresh=0x7f090047;
public static final int action_settings=0x7f090048;
public static final int activity_chooser_view_content=0x7f090021;
public static final int always=0x7f090014;
public static final int beginning=0x7f09001b;
public static final int button_updatesettings=0x7f090045;
public static final int checkbox=0x7f090029;
public static final int collapseActionView=0x7f090015;
public static final int container=0x7f09003f;
public static final int decor_content_parent=0x7f09002f;
public static final int default_activity_button=0x7f090024;
public static final int dialog=0x7f090019;
public static final int disableHome=0x7f09000d;
public static final int dropdown=0x7f09001a;
public static final int editText_days=0x7f090044;
public static final int edit_query=0x7f090033;
public static final int edittext_cityID=0x7f090042;
public static final int end=0x7f09001c;
public static final int expand_activities_button=0x7f090022;
public static final int expanded_menu=0x7f090028;
public static final int home=0x7f090000;
public static final int homeAsUp=0x7f09000e;
public static final int icon=0x7f090026;
public static final int ifRoom=0x7f090016;
public static final int image=0x7f090023;
public static final int listMode=0x7f09000a;
public static final int list_item=0x7f090025;
public static final int list_item_forecast_textview=0x7f090046;
public static final int listview_forecast=0x7f090040;
public static final int middle=0x7f09001d;
public static final int never=0x7f090017;
public static final int none=0x7f09000f;
public static final int normal=0x7f09000b;
public static final int progress_circular=0x7f090007;
public static final int progress_horizontal=0x7f090008;
public static final int radio=0x7f09002b;
public static final int search_badge=0x7f090035;
public static final int search_bar=0x7f090034;
public static final int search_button=0x7f090036;
public static final int search_close_btn=0x7f09003b;
public static final int search_edit_frame=0x7f090037;
public static final int search_go_btn=0x7f09003d;
public static final int search_mag_icon=0x7f090038;
public static final int search_plate=0x7f090039;
public static final int search_src_text=0x7f09003a;
public static final int search_voice_btn=0x7f09003e;
public static final int shortcut=0x7f09002a;
public static final int showCustom=0x7f090010;
public static final int showHome=0x7f090011;
public static final int showTitle=0x7f090012;
public static final int split_action_bar=0x7f090004;
public static final int submit_area=0x7f09003c;
public static final int tabMode=0x7f09000c;
public static final int textView_cityID=0x7f090041;
public static final int textView_days=0x7f090043;
public static final int title=0x7f090027;
public static final int up=0x7f090001;
public static final int useLogo=0x7f090013;
public static final int withText=0x7f090018;
public static final int wrap_content=0x7f090009;
}
public static final class integer {
/** The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
*/
public static final int abc_max_action_buttons=0x7f080000;
}
public static final class layout {
public static final int abc_action_bar_title_item=0x7f030000;
public static final int abc_action_bar_up_container=0x7f030001;
public static final int abc_action_bar_view_list_nav_layout=0x7f030002;
public static final int abc_action_menu_item_layout=0x7f030003;
public static final int abc_action_menu_layout=0x7f030004;
public static final int abc_action_mode_bar=0x7f030005;
public static final int abc_action_mode_close_item_material=0x7f030006;
public static final int abc_activity_chooser_view=0x7f030007;
public static final int abc_activity_chooser_view_include=0x7f030008;
public static final int abc_activity_chooser_view_list_item=0x7f030009;
public static final int abc_expanded_menu_layout=0x7f03000a;
public static final int abc_list_menu_item_checkbox=0x7f03000b;
public static final int abc_list_menu_item_icon=0x7f03000c;
public static final int abc_list_menu_item_layout=0x7f03000d;
public static final int abc_list_menu_item_radio=0x7f03000e;
public static final int abc_popup_menu_item_layout=0x7f03000f;
public static final int abc_screen_content_include=0x7f030010;
public static final int abc_screen_simple=0x7f030011;
public static final int abc_screen_simple_overlay_action_mode=0x7f030012;
public static final int abc_screen_toolbar=0x7f030013;
public static final int abc_search_dropdown_item_icons_2line=0x7f030014;
public static final int abc_search_view=0x7f030015;
public static final int abc_simple_dropdown_hint=0x7f030016;
public static final int activity_main=0x7f030017;
public static final int activity_settings_acticity=0x7f030018;
public static final int fragment_main=0x7f030019;
public static final int fragment_settings_acticity=0x7f03001a;
public static final int list_item_forecast=0x7f03001b;
public static final int support_simple_spinner_dropdown_item=0x7f03001c;
}
public static final class menu {
public static final int forecastfragment=0x7f0c0000;
public static final int main=0x7f0c0001;
public static final int settings_acticity=0x7f0c0002;
}
public static final class string {
/** Content description for the action bar "home" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_home_description=0x7f0a0001;
/** Formatting string for describing the action bar's title/home/up affordance.
This is a single tappable "button" that includes the app icon, the Up indicator
(usually a "<" chevron) and the window title text.
%1$s is the title. %2$s is the description of what tapping/clicking the whole
thing is going to do.
*/
public static final int abc_action_bar_home_description_format=0x7f0a0005;
/** Just like action_bar_home_description_format, but this one will be used
if the window is also providing subtitle text.
%1$s is the title. %2$s is the subtitle. %3$s is the description of what
tapping/clicking the whole thing is going to do.
*/
public static final int abc_action_bar_home_subtitle_description_format=0x7f0a0006;
/** Content description for the action bar "up" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_up_description=0x7f0a0002;
/** Content description for the action menu overflow button. [CHAR LIMIT=NONE]
*/
public static final int abc_action_menu_overflow_description=0x7f0a0003;
/** Label for the "Done" button on the far left of action mode toolbars.
*/
public static final int abc_action_mode_done=0x7f0a0000;
/** Title for a button to expand the list of activities in ActivityChooserView [CHAR LIMIT=25]
*/
public static final int abc_activity_chooser_view_see_all=0x7f0a000d;
/** ActivityChooserView - accessibility support
Description of the shwoing of a popup window with activities to choose from. [CHAR LIMIT=NONE]
*/
public static final int abc_activitychooserview_choose_application=0x7f0a000c;
/** SearchView accessibility description for clear button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_clear=0x7f0a0009;
/** SearchView accessibility description for search text field [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_query=0x7f0a0008;
/** SearchView accessibility description for search button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_search=0x7f0a0007;
/** SearchView accessibility description for submit button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_submit=0x7f0a000a;
/** SearchView accessibility description for voice button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_voice=0x7f0a000b;
/** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with=0x7f0a000f;
/** Description of a share target (both in the list of such or the default share button) in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with_application=0x7f0a000e;
/** Content description for the Toolbar icon used to collapse an expanded action mode. [CHAR LIMIT=NONE]
*/
public static final int abc_toolbar_collapse_description=0x7f0a0004;
public static final int action_exit=0x7f0a0016;
public static final int action_refresh=0x7f0a0013;
public static final int action_settings=0x7f0a0012;
public static final int app_name=0x7f0a0010;
public static final int button_updatesetting=0x7f0a0017;
public static final int hello_world=0x7f0a0011;
public static final int textview_cityID=0x7f0a0014;
public static final int textview_days=0x7f0a0015;
public static final int title_activity_settings_acticity=0x7f0a0018;
}
public static final class style {
/**
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
API 11 theme customizations can go here.
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
API 14 theme customizations can go here.
*/
public static final int AppBaseTheme=0x7f0b00eb;
/** Application theme.
All customizations that are NOT specific to a particular API-level can go here.
*/
public static final int AppTheme=0x7f0b00ec;
public static final int Base_TextAppearance_AppCompat=0x7f0b0098;
public static final int Base_TextAppearance_AppCompat_Body1=0x7f0b00a3;
public static final int Base_TextAppearance_AppCompat_Body2=0x7f0b00a2;
public static final int Base_TextAppearance_AppCompat_Button=0x7f0b00a6;
public static final int Base_TextAppearance_AppCompat_Caption=0x7f0b00a4;
public static final int Base_TextAppearance_AppCompat_Display1=0x7f0b009c;
public static final int Base_TextAppearance_AppCompat_Display2=0x7f0b009b;
public static final int Base_TextAppearance_AppCompat_Display3=0x7f0b009a;
public static final int Base_TextAppearance_AppCompat_Display4=0x7f0b0099;
public static final int Base_TextAppearance_AppCompat_Headline=0x7f0b009d;
/** Deprecated text styles
Deprecated text styles
Now deprecated styles
*/
public static final int Base_TextAppearance_AppCompat_Inverse=0x7f0b00a7;
public static final int Base_TextAppearance_AppCompat_Large=0x7f0b00a8;
public static final int Base_TextAppearance_AppCompat_Large_Inverse=0x7f0b00a9;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b0085;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b0086;
public static final int Base_TextAppearance_AppCompat_Medium=0x7f0b00aa;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f0b00ab;
public static final int Base_TextAppearance_AppCompat_Menu=0x7f0b00a5;
public static final int Base_TextAppearance_AppCompat_SearchResult=0x7f0b0087;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b0089;
/** Search View result styles
*/
public static final int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f0b0088;
public static final int Base_TextAppearance_AppCompat_Small=0x7f0b00ac;
public static final int Base_TextAppearance_AppCompat_Small_Inverse=0x7f0b00ad;
public static final int Base_TextAppearance_AppCompat_Subhead=0x7f0b00a0;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f0b00a1;
public static final int Base_TextAppearance_AppCompat_Title=0x7f0b009e;
public static final int Base_TextAppearance_AppCompat_Title_Inverse=0x7f0b009f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b0070;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b0072;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b0074;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b0071;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b0073;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b006f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b006e;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b007b;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b0083;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b0084;
public static final int Base_TextAppearance_AppCompat_Widget_Switch=0x7f0b0097;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b007c;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0b0092;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0b0091;
public static final int Base_Theme_AppCompat=0x7f0b00cf;
/** Menu/item attributes
*/
public static final int Base_Theme_AppCompat_CompactMenu=0x7f0b00d2;
public static final int Base_Theme_AppCompat_Dialog=0x7f0b00d4;
public static final int Base_Theme_AppCompat_Dialog_FixedSize=0x7f0b00d6;
/** We're not large, so redirect to Theme.AppCompat
*/
public static final int Base_Theme_AppCompat_DialogWhenLarge=0x7f0b00d8;
public static final int Base_Theme_AppCompat_Light=0x7f0b00d0;
public static final int Base_Theme_AppCompat_Light_DarkActionBar=0x7f0b00d1;
public static final int Base_Theme_AppCompat_Light_Dialog=0x7f0b00d5;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f0b00d7;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f0b00d9;
/** Overlay themes
*/
public static final int Base_ThemeOverlay_AppCompat=0x7f0b00da;
public static final int Base_ThemeOverlay_AppCompat_ActionBar=0x7f0b00dd;
public static final int Base_ThemeOverlay_AppCompat_Dark=0x7f0b00dc;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0b00de;
public static final int Base_ThemeOverlay_AppCompat_Light=0x7f0b00db;
public static final int Base_V11_Theme_AppCompat=0x7f0b00df;
public static final int Base_V11_Theme_AppCompat_Dialog=0x7f0b00e1;
public static final int Base_V11_Theme_AppCompat_Light=0x7f0b00e0;
public static final int Base_V11_Theme_AppCompat_Light_Dialog=0x7f0b00e2;
public static final int Base_V14_Theme_AppCompat=0x7f0b00e3;
public static final int Base_V14_Theme_AppCompat_Dialog=0x7f0b00e5;
public static final int Base_V14_Theme_AppCompat_Light=0x7f0b00e4;
public static final int Base_V14_Theme_AppCompat_Light_Dialog=0x7f0b00e6;
public static final int Base_V21_Theme_AppCompat=0x7f0b00e7;
public static final int Base_V21_Theme_AppCompat_Dialog=0x7f0b00e9;
public static final int Base_V21_Theme_AppCompat_Light=0x7f0b00e8;
public static final int Base_V21_Theme_AppCompat_Light_Dialog=0x7f0b00ea;
/** Base platform-dependent theme providing an action bar in a dark-themed activity.
*/
public static final int Base_V7_Theme_AppCompat=0x7f0b00cd;
public static final int Base_V7_Theme_AppCompat_Dialog=0x7f0b00d3;
/** Base platform-dependent theme providing an action bar in a light-themed activity.
*/
public static final int Base_V7_Theme_AppCompat_Light=0x7f0b00ce;
public static final int Base_Widget_AppCompat_ActionBar=0x7f0b005f;
public static final int Base_Widget_AppCompat_ActionBar_Solid=0x7f0b0061;
public static final int Base_Widget_AppCompat_ActionBar_TabBar=0x7f0b0066;
public static final int Base_Widget_AppCompat_ActionBar_TabText=0x7f0b006a;
public static final int Base_Widget_AppCompat_ActionBar_TabView=0x7f0b0068;
/** Action Button Styles
*/
public static final int Base_Widget_AppCompat_ActionButton=0x7f0b0063;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f0b0064;
public static final int Base_Widget_AppCompat_ActionButton_Overflow=0x7f0b0065;
public static final int Base_Widget_AppCompat_ActionMode=0x7f0b006d;
/** TODO. Needs updating for Material
*/
public static final int Base_Widget_AppCompat_ActivityChooserView=0x7f0b008c;
public static final int Base_Widget_AppCompat_AutoCompleteTextView=0x7f0b008a;
public static final int Base_Widget_AppCompat_CompoundButton_Switch=0x7f0b0096;
public static final int Base_Widget_AppCompat_DrawerArrowToggle=0x7f0b0095;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f0b0079;
public static final int Base_Widget_AppCompat_EditText=0x7f0b0094;
public static final int Base_Widget_AppCompat_Light_ActionBar=0x7f0b0060;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f0b0062;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b0067;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f0b006b;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b006c;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f0b0069;
public static final int Base_Widget_AppCompat_Light_ActivityChooserView=0x7f0b008d;
public static final int Base_Widget_AppCompat_Light_AutoCompleteTextView=0x7f0b008b;
public static final int Base_Widget_AppCompat_Light_PopupMenu=0x7f0b0082;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0b0080;
/** Popup Menu
*/
public static final int Base_Widget_AppCompat_ListPopupWindow=0x7f0b007e;
/** Spinner Widgets
*/
public static final int Base_Widget_AppCompat_ListView_DropDown=0x7f0b007a;
public static final int Base_Widget_AppCompat_ListView_Menu=0x7f0b007d;
public static final int Base_Widget_AppCompat_PopupMenu=0x7f0b0081;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f0b007f;
public static final int Base_Widget_AppCompat_PopupWindow=0x7f0b008e;
public static final int Base_Widget_AppCompat_ProgressBar=0x7f0b0076;
/** Progress Bar
Progress Bar
*/
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0075;
public static final int Base_Widget_AppCompat_SearchView=0x7f0b0093;
/** Spinner Widgets
*/
public static final int Base_Widget_AppCompat_Spinner=0x7f0b0077;
public static final int Base_Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0b0078;
public static final int Base_Widget_AppCompat_Toolbar=0x7f0b008f;
/**
Widget.AppCompat.Toolbar style is purposely ommitted. This is because the support
Toolbar implementation is used on ALL platforms and relies on the unbundled attrs.
The supporting Toolbar styles below only use basic attrs so work fine.
*/
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f0b0090;
public static final int Platform_AppCompat=0x7f0b00c9;
public static final int Platform_AppCompat_Dialog=0x7f0b00cb;
public static final int Platform_AppCompat_Light=0x7f0b00ca;
public static final int Platform_AppCompat_Light_Dialog=0x7f0b00cc;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f0b00b4;
public static final int RtlOverlay_Widget_AppCompat_ActionButton_CloseMode=0x7f0b00b5;
public static final int RtlOverlay_Widget_AppCompat_ActionButton_Overflow=0x7f0b00b6;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f0b00b7;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f0b00b8;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f0b00b9;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f0b00af;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f0b00b1;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f0b00b2;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f0b00b0;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f0b00b3;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f0b00ae;
/** Text styles
*/
public static final int TextAppearance_AppCompat=0x7f0b0038;
public static final int TextAppearance_AppCompat_Body1=0x7f0b0043;
public static final int TextAppearance_AppCompat_Body2=0x7f0b0042;
public static final int TextAppearance_AppCompat_Button=0x7f0b004d;
public static final int TextAppearance_AppCompat_Caption=0x7f0b0044;
public static final int TextAppearance_AppCompat_Display1=0x7f0b003c;
public static final int TextAppearance_AppCompat_Display2=0x7f0b003b;
public static final int TextAppearance_AppCompat_Display3=0x7f0b003a;
public static final int TextAppearance_AppCompat_Display4=0x7f0b0039;
public static final int TextAppearance_AppCompat_Headline=0x7f0b003d;
public static final int TextAppearance_AppCompat_Inverse=0x7f0b0046;
public static final int TextAppearance_AppCompat_Large=0x7f0b0047;
public static final int TextAppearance_AppCompat_Large_Inverse=0x7f0b0048;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0b0053;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0b0052;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b0029;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b002a;
public static final int TextAppearance_AppCompat_Medium=0x7f0b0049;
public static final int TextAppearance_AppCompat_Medium_Inverse=0x7f0b004a;
public static final int TextAppearance_AppCompat_Menu=0x7f0b0045;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b002c;
public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0b002b;
public static final int TextAppearance_AppCompat_Small=0x7f0b004b;
public static final int TextAppearance_AppCompat_Small_Inverse=0x7f0b004c;
public static final int TextAppearance_AppCompat_Subhead=0x7f0b0040;
public static final int TextAppearance_AppCompat_Subhead_Inverse=0x7f0b0041;
public static final int TextAppearance_AppCompat_Title=0x7f0b003e;
public static final int TextAppearance_AppCompat_Title_Inverse=0x7f0b003f;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b0015;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b0005;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b0007;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b0004;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b0006;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b0018;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0b0056;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b0017;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0b0055;
public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b0019;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b0027;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b0028;
public static final int TextAppearance_AppCompat_Widget_Switch=0x7f0b004e;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b001f;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0b0037;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0b0036;
/** Themes in the "Theme.AppCompat" family will contain an action bar by default.
If Holo themes are available on the current platform version they will be used.
A limited Holo-styled action bar will be provided on platform versions older
than 3.0. (API 11)
These theme declarations contain any version-independent specification. Items
that need to vary based on platform version should be defined in the corresponding
"Theme.Base" theme.
Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat=0x7f0b00ba;
/** Menu/item attributes
*/
public static final int Theme_AppCompat_CompactMenu=0x7f0b00c3;
public static final int Theme_AppCompat_Dialog=0x7f0b00c1;
public static final int Theme_AppCompat_DialogWhenLarge=0x7f0b00bf;
/** Platform-independent theme providing an action bar in a light-themed activity.
*/
public static final int Theme_AppCompat_Light=0x7f0b00bb;
/** Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0b00bc;
public static final int Theme_AppCompat_Light_Dialog=0x7f0b00c2;
public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0b00c0;
public static final int Theme_AppCompat_Light_NoActionBar=0x7f0b00be;
public static final int Theme_AppCompat_NoActionBar=0x7f0b00bd;
public static final int ThemeOverlay_AppCompat=0x7f0b00c4;
/** Theme overlay that replaces the normal control color, which by default is the same as the
secondary text color, with the primary text color.
*/
public static final int ThemeOverlay_AppCompat_ActionBar=0x7f0b00c7;
/** Theme overlay that replaces colors with their dark versions but preserves
the value of colorAccent, colorPrimary and its variants.
*/
public static final int ThemeOverlay_AppCompat_Dark=0x7f0b00c6;
/** Theme overlay that replaces colors with their dark versions and replaces the normal
control color, which by default is the same as the secondary text color, with the primary
text color.
*/
public static final int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0b00c8;
/** Theme overlay that replaces colors with their light versions but preserves
the value of colorAccent, colorPrimary and its variants.
*/
public static final int ThemeOverlay_AppCompat_Light=0x7f0b00c5;
/** Styles in here can be extended for customisation in your application. Each utilises
one of the.styles. If Holo themes are available on the current platform version
they will be used instead of the compat styles.
*/
public static final int Widget_AppCompat_ActionBar=0x7f0b0000;
public static final int Widget_AppCompat_ActionBar_Solid=0x7f0b0002;
public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0b000d;
public static final int Widget_AppCompat_ActionBar_TabText=0x7f0b0011;
public static final int Widget_AppCompat_ActionBar_TabView=0x7f0b000f;
public static final int Widget_AppCompat_ActionButton=0x7f0b000a;
/** This style has an extra indirection to properly set RTL attributes. See styles_rtl.xml
*/
public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0b000b;
public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0b000c;
public static final int Widget_AppCompat_ActionMode=0x7f0b0016;
public static final int Widget_AppCompat_ActivityChooserView=0x7f0b002f;
public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0b002d;
public static final int Widget_AppCompat_CompoundButton_Switch=0x7f0b0033;
public static final int Widget_AppCompat_DrawerArrowToggle=0x7f0b0012;
/** This style has an extra indirection to properly set RTL attributes. See styles_rtl.xml
*/
public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0b001d;
public static final int Widget_AppCompat_EditText=0x7f0b0032;
public static final int Widget_AppCompat_Light_ActionBar=0x7f0b0001;
public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0b0003;
/**
The following themes are deprecated.
*/
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0b004f;
public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b000e;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0b0050;
public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0b0013;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b0014;
public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0b0010;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0b0051;
public static final int Widget_AppCompat_Light_ActionButton=0x7f0b0059;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0b005b;
public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0b005a;
public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0b0054;
public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0b0030;
public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0b002e;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0b0057;
public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0b005e;
public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0b005d;
public static final int Widget_AppCompat_Light_PopupMenu=0x7f0b0024;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0b0022;
public static final int Widget_AppCompat_Light_SearchView=0x7f0b0058;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0b005c;
public static final int Widget_AppCompat_ListPopupWindow=0x7f0b0020;
public static final int Widget_AppCompat_ListView_DropDown=0x7f0b001e;
public static final int Widget_AppCompat_ListView_Menu=0x7f0b0025;
public static final int Widget_AppCompat_PopupMenu=0x7f0b0023;
public static final int Widget_AppCompat_PopupMenu_Overflow=0x7f0b0021;
public static final int Widget_AppCompat_PopupWindow=0x7f0b0026;
public static final int Widget_AppCompat_ProgressBar=0x7f0b0009;
public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0008;
public static final int Widget_AppCompat_SearchView=0x7f0b0031;
public static final int Widget_AppCompat_Spinner=0x7f0b001a;
public static final int Widget_AppCompat_Spinner_DropDown=0x7f0b001b;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0b001c;
/** Toolbar
*/
public static final int Widget_AppCompat_Toolbar=0x7f0b0034;
public static final int Widget_AppCompat_Toolbar_Button_Navigation=0x7f0b0035;
}
public static final class styleable {
/** ============================================
Attributes used to style the Action Bar.
These should be set on your theme; the default actionBarStyle will
propagate them to the correct elements as needed.
Please Note: when overriding attributes for an ActionBar style
you must specify each attribute twice: once with the "android:"
namespace prefix and once without.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBar_background no.glv.sunshine:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit no.glv.sunshine:backgroundSplit}</code></td><td> Specifies a background drawable for the bottom component of a split action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundStacked no.glv.sunshine:backgroundStacked}</code></td><td> Specifies a background drawable for a second stacked row of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetEnd no.glv.sunshine:contentInsetEnd}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetLeft no.glv.sunshine:contentInsetLeft}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetRight no.glv.sunshine:contentInsetRight}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_contentInsetStart no.glv.sunshine:contentInsetStart}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #ActionBar_customNavigationLayout no.glv.sunshine:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr>
<tr><td><code>{@link #ActionBar_displayOptions no.glv.sunshine:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr>
<tr><td><code>{@link #ActionBar_divider no.glv.sunshine:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr>
<tr><td><code>{@link #ActionBar_elevation no.glv.sunshine:elevation}</code></td><td> Elevation for the action bar itself </td></tr>
<tr><td><code>{@link #ActionBar_height no.glv.sunshine:height}</code></td><td> Specifies a fixed height.</td></tr>
<tr><td><code>{@link #ActionBar_hideOnContentScroll no.glv.sunshine:hideOnContentScroll}</code></td><td> Set true to hide the action bar on a vertical nested scroll of content.</td></tr>
<tr><td><code>{@link #ActionBar_homeAsUpIndicator no.glv.sunshine:homeAsUpIndicator}</code></td><td> Up navigation glyph </td></tr>
<tr><td><code>{@link #ActionBar_homeLayout no.glv.sunshine:homeLayout}</code></td><td> Specifies a layout to use for the "home" section of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_icon no.glv.sunshine:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle no.glv.sunshine:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr>
<tr><td><code>{@link #ActionBar_itemPadding no.glv.sunshine:itemPadding}</code></td><td> Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.</td></tr>
<tr><td><code>{@link #ActionBar_logo no.glv.sunshine:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr>
<tr><td><code>{@link #ActionBar_navigationMode no.glv.sunshine:navigationMode}</code></td><td> The type of navigation to use.</td></tr>
<tr><td><code>{@link #ActionBar_popupTheme no.glv.sunshine:popupTheme}</code></td><td> Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding no.glv.sunshine:progressBarPadding}</code></td><td> Specifies the horizontal padding on either end for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarStyle no.glv.sunshine:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_subtitle no.glv.sunshine:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle no.glv.sunshine:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionBar_title no.glv.sunshine:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle no.glv.sunshine:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionBar_background
@see #ActionBar_backgroundSplit
@see #ActionBar_backgroundStacked
@see #ActionBar_contentInsetEnd
@see #ActionBar_contentInsetLeft
@see #ActionBar_contentInsetRight
@see #ActionBar_contentInsetStart
@see #ActionBar_customNavigationLayout
@see #ActionBar_displayOptions
@see #ActionBar_divider
@see #ActionBar_elevation
@see #ActionBar_height
@see #ActionBar_hideOnContentScroll
@see #ActionBar_homeAsUpIndicator
@see #ActionBar_homeLayout
@see #ActionBar_icon
@see #ActionBar_indeterminateProgressStyle
@see #ActionBar_itemPadding
@see #ActionBar_logo
@see #ActionBar_navigationMode
@see #ActionBar_popupTheme
@see #ActionBar_progressBarPadding
@see #ActionBar_progressBarStyle
@see #ActionBar_subtitle
@see #ActionBar_subtitleTextStyle
@see #ActionBar_title
@see #ActionBar_titleTextStyle
*/
public static final int[] ActionBar = {
0x7f010000, 0x7f010001, 0x7f01002c, 0x7f010055,
0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059,
0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d,
0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061,
0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065,
0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069,
0x7f01006a, 0x7f01006b, 0x7f01006c
};
/**
<p>
@attr description
Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:background
*/
public static final int ActionBar_background = 11;
/**
<p>
@attr description
Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:backgroundSplit
*/
public static final int ActionBar_backgroundSplit = 13;
/**
<p>
@attr description
Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:backgroundStacked
*/
public static final int ActionBar_backgroundStacked = 12;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:contentInsetEnd
*/
public static final int ActionBar_contentInsetEnd = 22;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:contentInsetLeft
*/
public static final int ActionBar_contentInsetLeft = 23;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:contentInsetRight
*/
public static final int ActionBar_contentInsetRight = 24;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:contentInsetStart
*/
public static final int ActionBar_contentInsetStart = 21;
/**
<p>
@attr description
Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:customNavigationLayout
*/
public static final int ActionBar_customNavigationLayout = 14;
/**
<p>
@attr description
Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name no.glv.sunshine:displayOptions
*/
public static final int ActionBar_displayOptions = 4;
/**
<p>
@attr description
Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:divider
*/
public static final int ActionBar_divider = 10;
/**
<p>
@attr description
Elevation for the action bar itself
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:elevation
*/
public static final int ActionBar_elevation = 25;
/**
<p>
@attr description
Specifies a fixed height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:height
*/
public static final int ActionBar_height = 1;
/**
<p>
@attr description
Set true to hide the action bar on a vertical nested scroll of content.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:hideOnContentScroll
*/
public static final int ActionBar_hideOnContentScroll = 20;
/**
<p>
@attr description
Up navigation glyph
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:homeAsUpIndicator
*/
public static final int ActionBar_homeAsUpIndicator = 2;
/**
<p>
@attr description
Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:homeLayout
*/
public static final int ActionBar_homeLayout = 15;
/**
<p>
@attr description
Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:icon
*/
public static final int ActionBar_icon = 8;
/**
<p>
@attr description
Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:indeterminateProgressStyle
*/
public static final int ActionBar_indeterminateProgressStyle = 17;
/**
<p>
@attr description
Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:itemPadding
*/
public static final int ActionBar_itemPadding = 19;
/**
<p>
@attr description
Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:logo
*/
public static final int ActionBar_logo = 9;
/**
<p>
@attr description
The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
<p>This is a private symbol.
@attr name no.glv.sunshine:navigationMode
*/
public static final int ActionBar_navigationMode = 3;
/**
<p>
@attr description
Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:popupTheme
*/
public static final int ActionBar_popupTheme = 26;
/**
<p>
@attr description
Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:progressBarPadding
*/
public static final int ActionBar_progressBarPadding = 18;
/**
<p>
@attr description
Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:progressBarStyle
*/
public static final int ActionBar_progressBarStyle = 16;
/**
<p>
@attr description
Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:subtitle
*/
public static final int ActionBar_subtitle = 5;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:subtitleTextStyle
*/
public static final int ActionBar_subtitleTextStyle = 7;
/**
<p>
@attr description
Specifies title text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:title
*/
public static final int ActionBar_title = 0;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:titleTextStyle
*/
public static final int ActionBar_titleTextStyle = 6;
/** Valid LayoutParams for views placed in the action bar as custom views.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBarLayout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
</table>
@see #ActionBarLayout_android_layout_gravity
*/
public static final int[] ActionBarLayout = {
0x010100b3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #ActionBarLayout} array.
@attr name android:layout_gravity
*/
public static final int ActionBarLayout_android_layout_gravity = 0;
/** Attributes that can be used with a ActionMenuItemView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr>
</table>
@see #ActionMenuItemView_android_minWidth
*/
public static final int[] ActionMenuItemView = {
0x0101013f
};
/**
<p>This symbol is the offset where the {@link android.R.attr#minWidth}
attribute's value can be found in the {@link #ActionMenuItemView} array.
@attr name android:minWidth
*/
public static final int ActionMenuItemView_android_minWidth = 0;
/** Size of padding on either end of a divider.
*/
public static final int[] ActionMenuView = {
};
/** Attributes that can be used with a ActionMode.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMode_background no.glv.sunshine:background}</code></td><td> Specifies a background for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit no.glv.sunshine:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_closeItemLayout no.glv.sunshine:closeItemLayout}</code></td><td> Specifies a layout to use for the "close" item at the starting edge.</td></tr>
<tr><td><code>{@link #ActionMode_height no.glv.sunshine:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle no.glv.sunshine:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle no.glv.sunshine:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionMode_background
@see #ActionMode_backgroundSplit
@see #ActionMode_closeItemLayout
@see #ActionMode_height
@see #ActionMode_subtitleTextStyle
@see #ActionMode_titleTextStyle
*/
public static final int[] ActionMode = {
0x7f010001, 0x7f010058, 0x7f010059, 0x7f01005d,
0x7f01005f, 0x7f01006d
};
/**
<p>
@attr description
Specifies a background for the action mode bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:background
*/
public static final int ActionMode_background = 3;
/**
<p>
@attr description
Specifies a background for the split action mode bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:backgroundSplit
*/
public static final int ActionMode_backgroundSplit = 4;
/**
<p>
@attr description
Specifies a layout to use for the "close" item at the starting edge.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:closeItemLayout
*/
public static final int ActionMode_closeItemLayout = 5;
/**
<p>
@attr description
Specifies a fixed height for the action mode bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:height
*/
public static final int ActionMode_height = 0;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:subtitleTextStyle
*/
public static final int ActionMode_subtitleTextStyle = 2;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:titleTextStyle
*/
public static final int ActionMode_titleTextStyle = 1;
/** Attrbitutes for a ActivityChooserView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable no.glv.sunshine:expandActivityOverflowButtonDrawable}</code></td><td> The drawable to show in the button for expanding the activities overflow popup.</td></tr>
<tr><td><code>{@link #ActivityChooserView_initialActivityCount no.glv.sunshine:initialActivityCount}</code></td><td> The maximal number of items initially shown in the activity list.</td></tr>
</table>
@see #ActivityChooserView_expandActivityOverflowButtonDrawable
@see #ActivityChooserView_initialActivityCount
*/
public static final int[] ActivityChooserView = {
0x7f010084, 0x7f010085
};
/**
<p>
@attr description
The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:expandActivityOverflowButtonDrawable
*/
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
/**
<p>
@attr description
The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:initialActivityCount
*/
public static final int ActivityChooserView_initialActivityCount = 0;
/** Attributes that can be used with a CompatTextView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #CompatTextView_textAllCaps no.glv.sunshine:textAllCaps}</code></td><td> Present the text in ALL CAPS.</td></tr>
</table>
@see #CompatTextView_textAllCaps
*/
public static final int[] CompatTextView = {
0x7f010086
};
/**
<p>
@attr description
Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:textAllCaps
*/
public static final int CompatTextView_textAllCaps = 0;
/** Attributes that can be used with a DrawerArrowToggle.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #DrawerArrowToggle_barSize no.glv.sunshine:barSize}</code></td><td> The size of the bars when they are parallel to each other </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_color no.glv.sunshine:color}</code></td><td> The drawing color for the bars </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_drawableSize no.glv.sunshine:drawableSize}</code></td><td> The total size of the drawable </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars no.glv.sunshine:gapBetweenBars}</code></td><td> The max gap between the bars when they are parallel to each other </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_middleBarArrowSize no.glv.sunshine:middleBarArrowSize}</code></td><td> The size of the middle bar when top and bottom bars merge into middle bar to form an arrow </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_spinBars no.glv.sunshine:spinBars}</code></td><td> Whether bars should rotate or not during transition </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_thickness no.glv.sunshine:thickness}</code></td><td> The thickness (stroke size) for the bar paint </td></tr>
<tr><td><code>{@link #DrawerArrowToggle_topBottomBarArrowSize no.glv.sunshine:topBottomBarArrowSize}</code></td><td> The size of the top and bottom bars when they merge to the middle bar to form an arrow </td></tr>
</table>
@see #DrawerArrowToggle_barSize
@see #DrawerArrowToggle_color
@see #DrawerArrowToggle_drawableSize
@see #DrawerArrowToggle_gapBetweenBars
@see #DrawerArrowToggle_middleBarArrowSize
@see #DrawerArrowToggle_spinBars
@see #DrawerArrowToggle_thickness
@see #DrawerArrowToggle_topBottomBarArrowSize
*/
public static final int[] DrawerArrowToggle = {
0x7f010099, 0x7f01009a, 0x7f01009b, 0x7f01009c,
0x7f01009d, 0x7f01009e, 0x7f01009f, 0x7f0100a0
};
/**
<p>
@attr description
The size of the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:barSize
*/
public static final int DrawerArrowToggle_barSize = 6;
/**
<p>
@attr description
The drawing color for the bars
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:color
*/
public static final int DrawerArrowToggle_color = 0;
/**
<p>
@attr description
The total size of the drawable
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:drawableSize
*/
public static final int DrawerArrowToggle_drawableSize = 2;
/**
<p>
@attr description
The max gap between the bars when they are parallel to each other
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:gapBetweenBars
*/
public static final int DrawerArrowToggle_gapBetweenBars = 3;
/**
<p>
@attr description
The size of the middle bar when top and bottom bars merge into middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:middleBarArrowSize
*/
public static final int DrawerArrowToggle_middleBarArrowSize = 5;
/**
<p>
@attr description
Whether bars should rotate or not during transition
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:spinBars
*/
public static final int DrawerArrowToggle_spinBars = 1;
/**
<p>
@attr description
The thickness (stroke size) for the bar paint
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:thickness
*/
public static final int DrawerArrowToggle_thickness = 7;
/**
<p>
@attr description
The size of the top and bottom bars when they merge to the middle bar to form an arrow
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:topBottomBarArrowSize
*/
public static final int DrawerArrowToggle_topBottomBarArrowSize = 4;
/** Attributes that can be used with a LinearLayoutCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_baselineAligned android:baselineAligned}</code></td><td> When set to false, prevents the layout from aligning its children's
baselines.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_baselineAlignedChildIndex android:baselineAlignedChildIndex}</code></td><td> When a linear layout is part of another layout that is baseline
aligned, it can specify which of its children to baseline align to
(that is, which child TextView).</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_gravity android:gravity}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_orientation android:orientation}</code></td><td> Should the layout be a column or a row? Use "horizontal"
for a row, "vertical" for a column.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_weightSum android:weightSum}</code></td><td> Defines the maximum weight sum.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_divider no.glv.sunshine:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_dividerPadding no.glv.sunshine:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild no.glv.sunshine:measureWithLargestChild}</code></td><td> When set to true, all children with a weight will be considered having
the minimum size of the largest child.</td></tr>
<tr><td><code>{@link #LinearLayoutCompat_showDividers no.glv.sunshine:showDividers}</code></td><td> Setting for which dividers to show.</td></tr>
</table>
@see #LinearLayoutCompat_android_baselineAligned
@see #LinearLayoutCompat_android_baselineAlignedChildIndex
@see #LinearLayoutCompat_android_gravity
@see #LinearLayoutCompat_android_orientation
@see #LinearLayoutCompat_android_weightSum
@see #LinearLayoutCompat_divider
@see #LinearLayoutCompat_dividerPadding
@see #LinearLayoutCompat_measureWithLargestChild
@see #LinearLayoutCompat_showDividers
*/
public static final int[] LinearLayoutCompat = {
0x010100af, 0x010100c4, 0x01010126, 0x01010127,
0x01010128, 0x7f01005c, 0x7f010087, 0x7f010088,
0x7f010089
};
/**
<p>
@attr description
When set to false, prevents the layout from aligning its children's
baselines. This attribute is particularly useful when the children
use different values for gravity. The default value is true.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#baselineAligned}.
@attr name android:baselineAligned
*/
public static final int LinearLayoutCompat_android_baselineAligned = 2;
/**
<p>
@attr description
When a linear layout is part of another layout that is baseline
aligned, it can specify which of its children to baseline align to
(that is, which child TextView).
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#baselineAlignedChildIndex}.
@attr name android:baselineAlignedChildIndex
*/
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:gravity
*/
public static final int LinearLayoutCompat_android_gravity = 0;
/**
<p>
@attr description
Should the layout be a column or a row? Use "horizontal"
for a row, "vertical" for a column. The default is
horizontal.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orientation}.
@attr name android:orientation
*/
public static final int LinearLayoutCompat_android_orientation = 1;
/**
<p>
@attr description
Defines the maximum weight sum. If unspecified, the sum is computed
by adding the layout_weight of all of the children. This can be
used for instance to give a single child 50% of the total available
space by giving it a layout_weight of 0.5 and setting the weightSum
to 1.0.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#weightSum}.
@attr name android:weightSum
*/
public static final int LinearLayoutCompat_android_weightSum = 4;
/**
<p>
@attr description
Drawable to use as a vertical divider between buttons.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:divider
*/
public static final int LinearLayoutCompat_divider = 5;
/**
<p>
@attr description
Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:dividerPadding
*/
public static final int LinearLayoutCompat_dividerPadding = 8;
/**
<p>
@attr description
When set to true, all children with a weight will be considered having
the minimum size of the largest child. If false, all children are
measured normally.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:measureWithLargestChild
*/
public static final int LinearLayoutCompat_measureWithLargestChild = 6;
/**
<p>
@attr description
Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name no.glv.sunshine:showDividers
*/
public static final int LinearLayoutCompat_showDividers = 7;
/** Attributes that can be used with a LinearLayoutCompat_Layout.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_height android:layout_height}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_weight android:layout_weight}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_width android:layout_width}</code></td><td></td></tr>
</table>
@see #LinearLayoutCompat_Layout_android_layout_gravity
@see #LinearLayoutCompat_Layout_android_layout_height
@see #LinearLayoutCompat_Layout_android_layout_weight
@see #LinearLayoutCompat_Layout_android_layout_width
*/
public static final int[] LinearLayoutCompat_Layout = {
0x010100b3, 0x010100f4, 0x010100f5, 0x01010181
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_gravity
*/
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_height}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_height
*/
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_weight}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_weight
*/
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_width}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_width
*/
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
/** Attributes that can be used with a ListPopupWindow.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ListPopupWindow_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td> Amount of pixels by which the drop down should be offset horizontally.</td></tr>
<tr><td><code>{@link #ListPopupWindow_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td> Amount of pixels by which the drop down should be offset vertically.</td></tr>
</table>
@see #ListPopupWindow_android_dropDownHorizontalOffset
@see #ListPopupWindow_android_dropDownVerticalOffset
*/
public static final int[] ListPopupWindow = {
0x010102ac, 0x010102ad
};
/**
<p>
@attr description
Amount of pixels by which the drop down should be offset horizontally.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownHorizontalOffset}.
@attr name android:dropDownHorizontalOffset
*/
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
/**
<p>
@attr description
Amount of pixels by which the drop down should be offset vertically.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownVerticalOffset}.
@attr name android:dropDownVerticalOffset
*/
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
/** Base attributes that are available to all groups.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuGroup_android_checkableBehavior android:checkableBehavior}</code></td><td> Whether the items are capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td> Whether the items are enabled.</td></tr>
<tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td> The ID of the group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td> The category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td> Whether the items are shown/visible.</td></tr>
</table>
@see #MenuGroup_android_checkableBehavior
@see #MenuGroup_android_enabled
@see #MenuGroup_android_id
@see #MenuGroup_android_menuCategory
@see #MenuGroup_android_orderInCategory
@see #MenuGroup_android_visible
*/
public static final int[] MenuGroup = {
0x0101000e, 0x010100d0, 0x01010194, 0x010101de,
0x010101df, 0x010101e0
};
/**
<p>
@attr description
Whether the items are capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkableBehavior}.
@attr name android:checkableBehavior
*/
public static final int MenuGroup_android_checkableBehavior = 5;
/**
<p>
@attr description
Whether the items are enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuGroup_android_enabled = 0;
/**
<p>
@attr description
The ID of the group.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuGroup_android_id = 1;
/**
<p>
@attr description
The category applied to all items within this group.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuGroup_android_menuCategory = 3;
/**
<p>
@attr description
The order within the category applied to all items within this group.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuGroup_android_orderInCategory = 4;
/**
<p>
@attr description
Whether the items are shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuGroup_android_visible = 2;
/** Base attributes that are available to all Item objects.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuItem_actionLayout no.glv.sunshine:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass no.glv.sunshine:actionProviderClass}</code></td><td> The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.</td></tr>
<tr><td><code>{@link #MenuItem_actionViewClass no.glv.sunshine:actionViewClass}</code></td><td> The name of an optional View class to instantiate and use as an
action view.</td></tr>
<tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td> The alphabetic shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td> Whether the item is capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td> Whether the item is checked.</td></tr>
<tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td> Whether the item is enabled.</td></tr>
<tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td> The icon associated with this item.</td></tr>
<tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td> The ID of the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td> The category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td> The numeric shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td> Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.</td></tr>
<tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td> The title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td> The condensed title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td> Whether the item is shown/visible.</td></tr>
<tr><td><code>{@link #MenuItem_showAsAction no.glv.sunshine:showAsAction}</code></td><td> How this item should display in the Action Bar, if present.</td></tr>
</table>
@see #MenuItem_actionLayout
@see #MenuItem_actionProviderClass
@see #MenuItem_actionViewClass
@see #MenuItem_android_alphabeticShortcut
@see #MenuItem_android_checkable
@see #MenuItem_android_checked
@see #MenuItem_android_enabled
@see #MenuItem_android_icon
@see #MenuItem_android_id
@see #MenuItem_android_menuCategory
@see #MenuItem_android_numericShortcut
@see #MenuItem_android_onClick
@see #MenuItem_android_orderInCategory
@see #MenuItem_android_title
@see #MenuItem_android_titleCondensed
@see #MenuItem_android_visible
@see #MenuItem_showAsAction
*/
public static final int[] MenuItem = {
0x01010002, 0x0101000e, 0x010100d0, 0x01010106,
0x01010194, 0x010101de, 0x010101df, 0x010101e1,
0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5,
0x0101026f, 0x7f010071, 0x7f010072, 0x7f010073,
0x7f010074
};
/**
<p>
@attr description
An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionLayout
*/
public static final int MenuItem_actionLayout = 14;
/**
<p>
@attr description
The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:actionProviderClass
*/
public static final int MenuItem_actionProviderClass = 16;
/**
<p>
@attr description
The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:actionViewClass
*/
public static final int MenuItem_actionViewClass = 15;
/**
<p>
@attr description
The alphabetic shortcut key. This is the shortcut when using a keyboard
with alphabetic keys.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#alphabeticShortcut}.
@attr name android:alphabeticShortcut
*/
public static final int MenuItem_android_alphabeticShortcut = 9;
/**
<p>
@attr description
Whether the item is capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkable}.
@attr name android:checkable
*/
public static final int MenuItem_android_checkable = 11;
/**
<p>
@attr description
Whether the item is checked. Note that you must first have enabled checking with
the checkable attribute or else the check mark will not appear.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checked}.
@attr name android:checked
*/
public static final int MenuItem_android_checked = 3;
/**
<p>
@attr description
Whether the item is enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuItem_android_enabled = 1;
/**
<p>
@attr description
The icon associated with this item. This icon will not always be shown, so
the title should be sufficient in describing this item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#icon}.
@attr name android:icon
*/
public static final int MenuItem_android_icon = 0;
/**
<p>
@attr description
The ID of the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuItem_android_id = 2;
/**
<p>
@attr description
The category applied to the item.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuItem_android_menuCategory = 5;
/**
<p>
@attr description
The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
keyboard.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#numericShortcut}.
@attr name android:numericShortcut
*/
public static final int MenuItem_android_numericShortcut = 10;
/**
<p>
@attr description
Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#onClick}.
@attr name android:onClick
*/
public static final int MenuItem_android_onClick = 12;
/**
<p>
@attr description
The order within the category applied to the item.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuItem_android_orderInCategory = 6;
/**
<p>
@attr description
The title associated with the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#title}.
@attr name android:title
*/
public static final int MenuItem_android_title = 7;
/**
<p>
@attr description
The condensed title associated with the item. This is used in situations where the
normal title may be too long to be displayed.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#titleCondensed}.
@attr name android:titleCondensed
*/
public static final int MenuItem_android_titleCondensed = 8;
/**
<p>
@attr description
Whether the item is shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuItem_android_visible = 4;
/**
<p>
@attr description
How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
<p>This is a private symbol.
@attr name no.glv.sunshine:showAsAction
*/
public static final int MenuItem_showAsAction = 13;
/** Attributes that can be used with a MenuView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td> Default background for the menu header.</td></tr>
<tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td> Default horizontal divider between rows of menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td> Default background for each menu item.</td></tr>
<tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td> Default disabled icon alpha for each menu item that shows an icon.</td></tr>
<tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td> Default appearance of menu item text.</td></tr>
<tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td> Default vertical divider between menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td> Default animations for the menu.</td></tr>
<tr><td><code>{@link #MenuView_preserveIconSpacing no.glv.sunshine:preserveIconSpacing}</code></td><td> Whether space should be reserved in layout when an icon is missing.</td></tr>
</table>
@see #MenuView_android_headerBackground
@see #MenuView_android_horizontalDivider
@see #MenuView_android_itemBackground
@see #MenuView_android_itemIconDisabledAlpha
@see #MenuView_android_itemTextAppearance
@see #MenuView_android_verticalDivider
@see #MenuView_android_windowAnimationStyle
@see #MenuView_preserveIconSpacing
*/
public static final int[] MenuView = {
0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e,
0x0101012f, 0x01010130, 0x01010131, 0x7f010070
};
/**
<p>
@attr description
Default background for the menu header.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#headerBackground}.
@attr name android:headerBackground
*/
public static final int MenuView_android_headerBackground = 4;
/**
<p>
@attr description
Default horizontal divider between rows of menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#horizontalDivider}.
@attr name android:horizontalDivider
*/
public static final int MenuView_android_horizontalDivider = 2;
/**
<p>
@attr description
Default background for each menu item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemBackground}.
@attr name android:itemBackground
*/
public static final int MenuView_android_itemBackground = 5;
/**
<p>
@attr description
Default disabled icon alpha for each menu item that shows an icon.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemIconDisabledAlpha}.
@attr name android:itemIconDisabledAlpha
*/
public static final int MenuView_android_itemIconDisabledAlpha = 6;
/**
<p>
@attr description
Default appearance of menu item text.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemTextAppearance}.
@attr name android:itemTextAppearance
*/
public static final int MenuView_android_itemTextAppearance = 1;
/**
<p>
@attr description
Default vertical divider between menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#verticalDivider}.
@attr name android:verticalDivider
*/
public static final int MenuView_android_verticalDivider = 3;
/**
<p>
@attr description
Default animations for the menu.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#windowAnimationStyle}.
@attr name android:windowAnimationStyle
*/
public static final int MenuView_android_windowAnimationStyle = 0;
/**
<p>
@attr description
Whether space should be reserved in layout when an icon is missing.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:preserveIconSpacing
*/
public static final int MenuView_preserveIconSpacing = 7;
/** Attributes that can be used with a PopupWindow.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #PopupWindow_android_popupBackground android:popupBackground}</code></td><td></td></tr>
<tr><td><code>{@link #PopupWindow_overlapAnchor no.glv.sunshine:overlapAnchor}</code></td><td> Whether the popup window should overlap its anchor view.</td></tr>
</table>
@see #PopupWindow_android_popupBackground
@see #PopupWindow_overlapAnchor
*/
public static final int[] PopupWindow = {
0x01010176, 0x7f010098
};
/**
<p>This symbol is the offset where the {@link android.R.attr#popupBackground}
attribute's value can be found in the {@link #PopupWindow} array.
@attr name android:popupBackground
*/
public static final int PopupWindow_android_popupBackground = 0;
/**
<p>
@attr description
Whether the popup window should overlap its anchor view.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:overlapAnchor
*/
public static final int PopupWindow_overlapAnchor = 1;
/** Attributes that can be used with a PopupWindowBackgroundState.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #PopupWindowBackgroundState_state_above_anchor no.glv.sunshine:state_above_anchor}</code></td><td> State identifier indicating the popup will be above the anchor.</td></tr>
</table>
@see #PopupWindowBackgroundState_state_above_anchor
*/
public static final int[] PopupWindowBackgroundState = {
0x7f010097
};
/**
<p>
@attr description
State identifier indicating the popup will be above the anchor.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:state_above_anchor
*/
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
/** Attributes that can be used with a SearchView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SearchView_android_focusable android:focusable}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td> The IME options to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td> The input type to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td> An optional maximum width of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_closeIcon no.glv.sunshine:closeIcon}</code></td><td> Close button icon </td></tr>
<tr><td><code>{@link #SearchView_commitIcon no.glv.sunshine:commitIcon}</code></td><td> Commit icon shown in the query suggestion row </td></tr>
<tr><td><code>{@link #SearchView_goIcon no.glv.sunshine:goIcon}</code></td><td> Go button icon </td></tr>
<tr><td><code>{@link #SearchView_iconifiedByDefault no.glv.sunshine:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_layout no.glv.sunshine:layout}</code></td><td> The layout to use for the search view.</td></tr>
<tr><td><code>{@link #SearchView_queryBackground no.glv.sunshine:queryBackground}</code></td><td> Background for the section containing the search query </td></tr>
<tr><td><code>{@link #SearchView_queryHint no.glv.sunshine:queryHint}</code></td><td> An optional query hint string to be displayed in the empty query field.</td></tr>
<tr><td><code>{@link #SearchView_searchIcon no.glv.sunshine:searchIcon}</code></td><td> Search icon </td></tr>
<tr><td><code>{@link #SearchView_submitBackground no.glv.sunshine:submitBackground}</code></td><td> Background for the section containing the action (e.</td></tr>
<tr><td><code>{@link #SearchView_suggestionRowLayout no.glv.sunshine:suggestionRowLayout}</code></td><td> Layout for query suggestion rows </td></tr>
<tr><td><code>{@link #SearchView_voiceIcon no.glv.sunshine:voiceIcon}</code></td><td> Voice button icon </td></tr>
</table>
@see #SearchView_android_focusable
@see #SearchView_android_imeOptions
@see #SearchView_android_inputType
@see #SearchView_android_maxWidth
@see #SearchView_closeIcon
@see #SearchView_commitIcon
@see #SearchView_goIcon
@see #SearchView_iconifiedByDefault
@see #SearchView_layout
@see #SearchView_queryBackground
@see #SearchView_queryHint
@see #SearchView_searchIcon
@see #SearchView_submitBackground
@see #SearchView_suggestionRowLayout
@see #SearchView_voiceIcon
*/
public static final int[] SearchView = {
0x010100da, 0x0101011f, 0x01010220, 0x01010264,
0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c,
0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080,
0x7f010081, 0x7f010082, 0x7f010083
};
/**
<p>This symbol is the offset where the {@link android.R.attr#focusable}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:focusable
*/
public static final int SearchView_android_focusable = 0;
/**
<p>
@attr description
The IME options to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#imeOptions}.
@attr name android:imeOptions
*/
public static final int SearchView_android_imeOptions = 3;
/**
<p>
@attr description
The input type to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#inputType}.
@attr name android:inputType
*/
public static final int SearchView_android_inputType = 2;
/**
<p>
@attr description
An optional maximum width of the SearchView.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#maxWidth}.
@attr name android:maxWidth
*/
public static final int SearchView_android_maxWidth = 1;
/**
<p>
@attr description
Close button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:closeIcon
*/
public static final int SearchView_closeIcon = 7;
/**
<p>
@attr description
Commit icon shown in the query suggestion row
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:commitIcon
*/
public static final int SearchView_commitIcon = 11;
/**
<p>
@attr description
Go button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:goIcon
*/
public static final int SearchView_goIcon = 8;
/**
<p>
@attr description
The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:iconifiedByDefault
*/
public static final int SearchView_iconifiedByDefault = 5;
/**
<p>
@attr description
The layout to use for the search view.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:layout
*/
public static final int SearchView_layout = 4;
/**
<p>
@attr description
Background for the section containing the search query
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:queryBackground
*/
public static final int SearchView_queryBackground = 13;
/**
<p>
@attr description
An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:queryHint
*/
public static final int SearchView_queryHint = 6;
/**
<p>
@attr description
Search icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:searchIcon
*/
public static final int SearchView_searchIcon = 9;
/**
<p>
@attr description
Background for the section containing the action (e.g. voice search)
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:submitBackground
*/
public static final int SearchView_submitBackground = 14;
/**
<p>
@attr description
Layout for query suggestion rows
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:suggestionRowLayout
*/
public static final int SearchView_suggestionRowLayout = 12;
/**
<p>
@attr description
Voice button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:voiceIcon
*/
public static final int SearchView_voiceIcon = 10;
/** Attributes that can be used with a Spinner.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Spinner_android_background android:background}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td> Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownSelector android:dropDownSelector}</code></td><td> List selector to use for spinnerMode="dropdown" display.</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td> Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownWidth android:dropDownWidth}</code></td><td> Width of the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_gravity android:gravity}</code></td><td> Gravity setting for positioning the currently selected item.</td></tr>
<tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td> Background drawable to use for the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_disableChildrenWhenDisabled no.glv.sunshine:disableChildrenWhenDisabled}</code></td><td> Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.</td></tr>
<tr><td><code>{@link #Spinner_popupPromptView no.glv.sunshine:popupPromptView}</code></td><td> Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_prompt no.glv.sunshine:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr>
<tr><td><code>{@link #Spinner_spinnerMode no.glv.sunshine:spinnerMode}</code></td><td> Display mode for spinner options.</td></tr>
</table>
@see #Spinner_android_background
@see #Spinner_android_dropDownHorizontalOffset
@see #Spinner_android_dropDownSelector
@see #Spinner_android_dropDownVerticalOffset
@see #Spinner_android_dropDownWidth
@see #Spinner_android_gravity
@see #Spinner_android_popupBackground
@see #Spinner_disableChildrenWhenDisabled
@see #Spinner_popupPromptView
@see #Spinner_prompt
@see #Spinner_spinnerMode
*/
public static final int[] Spinner = {
0x010100af, 0x010100d4, 0x01010175, 0x01010176,
0x01010262, 0x010102ac, 0x010102ad, 0x7f010075,
0x7f010076, 0x7f010077, 0x7f010078
};
/**
<p>This symbol is the offset where the {@link android.R.attr#background}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:background
*/
public static final int Spinner_android_background = 1;
/**
<p>
@attr description
Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownHorizontalOffset}.
@attr name android:dropDownHorizontalOffset
*/
public static final int Spinner_android_dropDownHorizontalOffset = 5;
/**
<p>
@attr description
List selector to use for spinnerMode="dropdown" display.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownSelector}.
@attr name android:dropDownSelector
*/
public static final int Spinner_android_dropDownSelector = 2;
/**
<p>
@attr description
Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownVerticalOffset}.
@attr name android:dropDownVerticalOffset
*/
public static final int Spinner_android_dropDownVerticalOffset = 6;
/**
<p>
@attr description
Width of the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownWidth}.
@attr name android:dropDownWidth
*/
public static final int Spinner_android_dropDownWidth = 4;
/**
<p>
@attr description
Gravity setting for positioning the currently selected item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#gravity}.
@attr name android:gravity
*/
public static final int Spinner_android_gravity = 0;
/**
<p>
@attr description
Background drawable to use for the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#popupBackground}.
@attr name android:popupBackground
*/
public static final int Spinner_android_popupBackground = 3;
/**
<p>
@attr description
Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:disableChildrenWhenDisabled
*/
public static final int Spinner_disableChildrenWhenDisabled = 10;
/**
<p>
@attr description
Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:popupPromptView
*/
public static final int Spinner_popupPromptView = 9;
/**
<p>
@attr description
The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:prompt
*/
public static final int Spinner_prompt = 7;
/**
<p>
@attr description
Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
<p>This is a private symbol.
@attr name no.glv.sunshine:spinnerMode
*/
public static final int Spinner_spinnerMode = 8;
/** Attributes that can be used with a SwitchCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SwitchCompat_android_textOff android:textOff}</code></td><td> Text to use when the switch is in the unchecked/"off" state.</td></tr>
<tr><td><code>{@link #SwitchCompat_android_textOn android:textOn}</code></td><td> Text to use when the switch is in the checked/"on" state.</td></tr>
<tr><td><code>{@link #SwitchCompat_android_thumb android:thumb}</code></td><td> Drawable to use as the "thumb" that switches back and forth.</td></tr>
<tr><td><code>{@link #SwitchCompat_showText no.glv.sunshine:showText}</code></td><td> Whether to draw on/off text.</td></tr>
<tr><td><code>{@link #SwitchCompat_splitTrack no.glv.sunshine:splitTrack}</code></td><td> Whether to split the track and leave a gap for the thumb drawable.</td></tr>
<tr><td><code>{@link #SwitchCompat_switchMinWidth no.glv.sunshine:switchMinWidth}</code></td><td> Minimum width for the switch component </td></tr>
<tr><td><code>{@link #SwitchCompat_switchPadding no.glv.sunshine:switchPadding}</code></td><td> Minimum space between the switch and caption text </td></tr>
<tr><td><code>{@link #SwitchCompat_switchTextAppearance no.glv.sunshine:switchTextAppearance}</code></td><td> TextAppearance style for text displayed on the switch thumb.</td></tr>
<tr><td><code>{@link #SwitchCompat_thumbTextPadding no.glv.sunshine:thumbTextPadding}</code></td><td> Amount of padding on either side of text within the switch thumb.</td></tr>
<tr><td><code>{@link #SwitchCompat_track no.glv.sunshine:track}</code></td><td> Drawable to use as the "track" that the switch thumb slides within.</td></tr>
</table>
@see #SwitchCompat_android_textOff
@see #SwitchCompat_android_textOn
@see #SwitchCompat_android_thumb
@see #SwitchCompat_showText
@see #SwitchCompat_splitTrack
@see #SwitchCompat_switchMinWidth
@see #SwitchCompat_switchPadding
@see #SwitchCompat_switchTextAppearance
@see #SwitchCompat_thumbTextPadding
@see #SwitchCompat_track
*/
public static final int[] SwitchCompat = {
0x01010124, 0x01010125, 0x01010142, 0x7f0100a2,
0x7f0100a3, 0x7f0100a4, 0x7f0100a5, 0x7f0100a6,
0x7f0100a7, 0x7f0100a8
};
/**
<p>
@attr description
Text to use when the switch is in the unchecked/"off" state.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#textOff}.
@attr name android:textOff
*/
public static final int SwitchCompat_android_textOff = 1;
/**
<p>
@attr description
Text to use when the switch is in the checked/"on" state.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#textOn}.
@attr name android:textOn
*/
public static final int SwitchCompat_android_textOn = 0;
/**
<p>
@attr description
Drawable to use as the "thumb" that switches back and forth.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#thumb}.
@attr name android:thumb
*/
public static final int SwitchCompat_android_thumb = 2;
/**
<p>
@attr description
Whether to draw on/off text.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:showText
*/
public static final int SwitchCompat_showText = 9;
/**
<p>
@attr description
Whether to split the track and leave a gap for the thumb drawable.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:splitTrack
*/
public static final int SwitchCompat_splitTrack = 8;
/**
<p>
@attr description
Minimum width for the switch component
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:switchMinWidth
*/
public static final int SwitchCompat_switchMinWidth = 6;
/**
<p>
@attr description
Minimum space between the switch and caption text
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:switchPadding
*/
public static final int SwitchCompat_switchPadding = 7;
/**
<p>
@attr description
TextAppearance style for text displayed on the switch thumb.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:switchTextAppearance
*/
public static final int SwitchCompat_switchTextAppearance = 5;
/**
<p>
@attr description
Amount of padding on either side of text within the switch thumb.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:thumbTextPadding
*/
public static final int SwitchCompat_thumbTextPadding = 4;
/**
<p>
@attr description
Drawable to use as the "track" that the switch thumb slides within.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:track
*/
public static final int SwitchCompat_track = 3;
/** These are the standard attributes that make up a complete theme.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Theme_actionBarDivider no.glv.sunshine:actionBarDivider}</code></td><td> Custom divider drawable to use for elements in the action bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarItemBackground no.glv.sunshine:actionBarItemBackground}</code></td><td> Custom item state list drawable background for action bar items.</td></tr>
<tr><td><code>{@link #Theme_actionBarPopupTheme no.glv.sunshine:actionBarPopupTheme}</code></td><td> Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarSize no.glv.sunshine:actionBarSize}</code></td><td> Size of the Action Bar, including the contextual
bar used to present Action Modes.</td></tr>
<tr><td><code>{@link #Theme_actionBarSplitStyle no.glv.sunshine:actionBarSplitStyle}</code></td><td> Reference to a style for the split Action Bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarStyle no.glv.sunshine:actionBarStyle}</code></td><td> Reference to a style for the Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionBarTabBarStyle no.glv.sunshine:actionBarTabBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTabStyle no.glv.sunshine:actionBarTabStyle}</code></td><td> Default style for tabs within an action bar </td></tr>
<tr><td><code>{@link #Theme_actionBarTabTextStyle no.glv.sunshine:actionBarTabTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTheme no.glv.sunshine:actionBarTheme}</code></td><td> Reference to a theme that should be used to inflate the
action bar.</td></tr>
<tr><td><code>{@link #Theme_actionBarWidgetTheme no.glv.sunshine:actionBarWidgetTheme}</code></td><td> Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar.</td></tr>
<tr><td><code>{@link #Theme_actionButtonStyle no.glv.sunshine:actionButtonStyle}</code></td><td> Default action button style.</td></tr>
<tr><td><code>{@link #Theme_actionDropDownStyle no.glv.sunshine:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr>
<tr><td><code>{@link #Theme_actionMenuTextAppearance no.glv.sunshine:actionMenuTextAppearance}</code></td><td> TextAppearance style that will be applied to text that
appears within action menu items.</td></tr>
<tr><td><code>{@link #Theme_actionMenuTextColor no.glv.sunshine:actionMenuTextColor}</code></td><td> Color for text that appears within action menu items.</td></tr>
<tr><td><code>{@link #Theme_actionModeBackground no.glv.sunshine:actionModeBackground}</code></td><td> Background drawable to use for action mode UI </td></tr>
<tr><td><code>{@link #Theme_actionModeCloseButtonStyle no.glv.sunshine:actionModeCloseButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeCloseDrawable no.glv.sunshine:actionModeCloseDrawable}</code></td><td> Drawable to use for the close action mode button </td></tr>
<tr><td><code>{@link #Theme_actionModeCopyDrawable no.glv.sunshine:actionModeCopyDrawable}</code></td><td> Drawable to use for the Copy action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModeCutDrawable no.glv.sunshine:actionModeCutDrawable}</code></td><td> Drawable to use for the Cut action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModeFindDrawable no.glv.sunshine:actionModeFindDrawable}</code></td><td> Drawable to use for the Find action button in WebView selection action modes </td></tr>
<tr><td><code>{@link #Theme_actionModePasteDrawable no.glv.sunshine:actionModePasteDrawable}</code></td><td> Drawable to use for the Paste action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModePopupWindowStyle no.glv.sunshine:actionModePopupWindowStyle}</code></td><td> PopupWindow style to use for action modes when showing as a window overlay.</td></tr>
<tr><td><code>{@link #Theme_actionModeSelectAllDrawable no.glv.sunshine:actionModeSelectAllDrawable}</code></td><td> Drawable to use for the Select all action button in Contextual Action Bar </td></tr>
<tr><td><code>{@link #Theme_actionModeShareDrawable no.glv.sunshine:actionModeShareDrawable}</code></td><td> Drawable to use for the Share action button in WebView selection action modes </td></tr>
<tr><td><code>{@link #Theme_actionModeSplitBackground no.glv.sunshine:actionModeSplitBackground}</code></td><td> Background drawable to use for action mode UI in the lower split bar </td></tr>
<tr><td><code>{@link #Theme_actionModeStyle no.glv.sunshine:actionModeStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeWebSearchDrawable no.glv.sunshine:actionModeWebSearchDrawable}</code></td><td> Drawable to use for the Web Search action button in WebView selection action modes </td></tr>
<tr><td><code>{@link #Theme_actionOverflowButtonStyle no.glv.sunshine:actionOverflowButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionOverflowMenuStyle no.glv.sunshine:actionOverflowMenuStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_activityChooserViewStyle no.glv.sunshine:activityChooserViewStyle}</code></td><td> Default ActivityChooserView style.</td></tr>
<tr><td><code>{@link #Theme_android_windowIsFloating android:windowIsFloating}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_buttonBarButtonStyle no.glv.sunshine:buttonBarButtonStyle}</code></td><td> A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.</td></tr>
<tr><td><code>{@link #Theme_buttonBarStyle no.glv.sunshine:buttonBarStyle}</code></td><td> A style that may be applied to horizontal LinearLayouts
to form a button bar.</td></tr>
<tr><td><code>{@link #Theme_colorAccent no.glv.sunshine:colorAccent}</code></td><td> Bright complement to the primary branding color.</td></tr>
<tr><td><code>{@link #Theme_colorButtonNormal no.glv.sunshine:colorButtonNormal}</code></td><td> The color applied to framework buttons in their normal state.</td></tr>
<tr><td><code>{@link #Theme_colorControlActivated no.glv.sunshine:colorControlActivated}</code></td><td> The color applied to framework controls in their activated (ex.</td></tr>
<tr><td><code>{@link #Theme_colorControlHighlight no.glv.sunshine:colorControlHighlight}</code></td><td> The color applied to framework control highlights (ex.</td></tr>
<tr><td><code>{@link #Theme_colorControlNormal no.glv.sunshine:colorControlNormal}</code></td><td> The color applied to framework controls in their normal state.</td></tr>
<tr><td><code>{@link #Theme_colorPrimary no.glv.sunshine:colorPrimary}</code></td><td> The primary branding color for the app.</td></tr>
<tr><td><code>{@link #Theme_colorPrimaryDark no.glv.sunshine:colorPrimaryDark}</code></td><td> Dark variant of the primary branding color.</td></tr>
<tr><td><code>{@link #Theme_colorSwitchThumbNormal no.glv.sunshine:colorSwitchThumbNormal}</code></td><td> The color applied to framework switch thumbs in their normal state.</td></tr>
<tr><td><code>{@link #Theme_dividerHorizontal no.glv.sunshine:dividerHorizontal}</code></td><td> A drawable that may be used as a horizontal divider between visual elements.</td></tr>
<tr><td><code>{@link #Theme_dividerVertical no.glv.sunshine:dividerVertical}</code></td><td> A drawable that may be used as a vertical divider between visual elements.</td></tr>
<tr><td><code>{@link #Theme_dropDownListViewStyle no.glv.sunshine:dropDownListViewStyle}</code></td><td> ListPopupWindow compatibility </td></tr>
<tr><td><code>{@link #Theme_dropdownListPreferredItemHeight no.glv.sunshine:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr>
<tr><td><code>{@link #Theme_editTextBackground no.glv.sunshine:editTextBackground}</code></td><td> EditText background drawable.</td></tr>
<tr><td><code>{@link #Theme_editTextColor no.glv.sunshine:editTextColor}</code></td><td> EditText text foreground color.</td></tr>
<tr><td><code>{@link #Theme_homeAsUpIndicator no.glv.sunshine:homeAsUpIndicator}</code></td><td> Specifies a drawable to use for the 'home as up' indicator.</td></tr>
<tr><td><code>{@link #Theme_listChoiceBackgroundIndicator no.glv.sunshine:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr>
<tr><td><code>{@link #Theme_listPopupWindowStyle no.glv.sunshine:listPopupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeight no.glv.sunshine:listPreferredItemHeight}</code></td><td> The preferred list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeightLarge no.glv.sunshine:listPreferredItemHeightLarge}</code></td><td> A larger, more robust list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeightSmall no.glv.sunshine:listPreferredItemHeightSmall}</code></td><td> A smaller, sleeker list item height.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemPaddingLeft no.glv.sunshine:listPreferredItemPaddingLeft}</code></td><td> The preferred padding along the left edge of list items.</td></tr>
<tr><td><code>{@link #Theme_listPreferredItemPaddingRight no.glv.sunshine:listPreferredItemPaddingRight}</code></td><td> The preferred padding along the right edge of list items.</td></tr>
<tr><td><code>{@link #Theme_panelBackground no.glv.sunshine:panelBackground}</code></td><td> The background of a panel when it is inset from the left and right edges of the screen.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListTheme no.glv.sunshine:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListWidth no.glv.sunshine:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr>
<tr><td><code>{@link #Theme_popupMenuStyle no.glv.sunshine:popupMenuStyle}</code></td><td> Default PopupMenu style.</td></tr>
<tr><td><code>{@link #Theme_popupWindowStyle no.glv.sunshine:popupWindowStyle}</code></td><td> Default PopupWindow style.</td></tr>
<tr><td><code>{@link #Theme_searchViewStyle no.glv.sunshine:searchViewStyle}</code></td><td> Style for the search query widget.</td></tr>
<tr><td><code>{@link #Theme_selectableItemBackground no.glv.sunshine:selectableItemBackground}</code></td><td> A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.</td></tr>
<tr><td><code>{@link #Theme_selectableItemBackgroundBorderless no.glv.sunshine:selectableItemBackgroundBorderless}</code></td><td> Background drawable for borderless standalone items that need focus/pressed states.</td></tr>
<tr><td><code>{@link #Theme_spinnerDropDownItemStyle no.glv.sunshine:spinnerDropDownItemStyle}</code></td><td> Default Spinner style.</td></tr>
<tr><td><code>{@link #Theme_spinnerStyle no.glv.sunshine:spinnerStyle}</code></td><td> Default Spinner style.</td></tr>
<tr><td><code>{@link #Theme_switchStyle no.glv.sunshine:switchStyle}</code></td><td> Default style for the Switch widget.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceLargePopupMenu no.glv.sunshine:textAppearanceLargePopupMenu}</code></td><td> Text color, typeface, size, and style for the text inside of a popup menu.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceListItem no.glv.sunshine:textAppearanceListItem}</code></td><td> The preferred TextAppearance for the primary text of list items.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceListItemSmall no.glv.sunshine:textAppearanceListItemSmall}</code></td><td> The preferred TextAppearance for the primary text of small list items.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSearchResultSubtitle no.glv.sunshine:textAppearanceSearchResultSubtitle}</code></td><td> Text color, typeface, size, and style for system search result subtitle.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSearchResultTitle no.glv.sunshine:textAppearanceSearchResultTitle}</code></td><td> Text color, typeface, size, and style for system search result title.</td></tr>
<tr><td><code>{@link #Theme_textAppearanceSmallPopupMenu no.glv.sunshine:textAppearanceSmallPopupMenu}</code></td><td> Text color, typeface, size, and style for small text inside of a popup menu.</td></tr>
<tr><td><code>{@link #Theme_textColorSearchUrl no.glv.sunshine:textColorSearchUrl}</code></td><td> Text color for urls in search suggestions, used by things like global search </td></tr>
<tr><td><code>{@link #Theme_toolbarNavigationButtonStyle no.glv.sunshine:toolbarNavigationButtonStyle}</code></td><td> Default Toolar NavigationButtonStyle </td></tr>
<tr><td><code>{@link #Theme_toolbarStyle no.glv.sunshine:toolbarStyle}</code></td><td> Default Toolbar style.</td></tr>
<tr><td><code>{@link #Theme_windowActionBar no.glv.sunshine:windowActionBar}</code></td><td> Flag indicating whether this window should have an Action Bar
in place of the usual title bar.</td></tr>
<tr><td><code>{@link #Theme_windowActionBarOverlay no.glv.sunshine:windowActionBarOverlay}</code></td><td> Flag indicating whether this window's Action Bar should overlay
application content.</td></tr>
<tr><td><code>{@link #Theme_windowActionModeOverlay no.glv.sunshine:windowActionModeOverlay}</code></td><td> Flag indicating whether action modes should overlay window content
when there is not reserved space for their UI (such as an Action Bar).</td></tr>
<tr><td><code>{@link #Theme_windowFixedHeightMajor no.glv.sunshine:windowFixedHeightMajor}</code></td><td> A fixed height for the window along the major axis of the screen,
that is, when in portrait.</td></tr>
<tr><td><code>{@link #Theme_windowFixedHeightMinor no.glv.sunshine:windowFixedHeightMinor}</code></td><td> A fixed height for the window along the minor axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #Theme_windowFixedWidthMajor no.glv.sunshine:windowFixedWidthMajor}</code></td><td> A fixed width for the window along the major axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #Theme_windowFixedWidthMinor no.glv.sunshine:windowFixedWidthMinor}</code></td><td> A fixed width for the window along the minor axis of the screen,
that is, when in portrait.</td></tr>
</table>
@see #Theme_actionBarDivider
@see #Theme_actionBarItemBackground
@see #Theme_actionBarPopupTheme
@see #Theme_actionBarSize
@see #Theme_actionBarSplitStyle
@see #Theme_actionBarStyle
@see #Theme_actionBarTabBarStyle
@see #Theme_actionBarTabStyle
@see #Theme_actionBarTabTextStyle
@see #Theme_actionBarTheme
@see #Theme_actionBarWidgetTheme
@see #Theme_actionButtonStyle
@see #Theme_actionDropDownStyle
@see #Theme_actionMenuTextAppearance
@see #Theme_actionMenuTextColor
@see #Theme_actionModeBackground
@see #Theme_actionModeCloseButtonStyle
@see #Theme_actionModeCloseDrawable
@see #Theme_actionModeCopyDrawable
@see #Theme_actionModeCutDrawable
@see #Theme_actionModeFindDrawable
@see #Theme_actionModePasteDrawable
@see #Theme_actionModePopupWindowStyle
@see #Theme_actionModeSelectAllDrawable
@see #Theme_actionModeShareDrawable
@see #Theme_actionModeSplitBackground
@see #Theme_actionModeStyle
@see #Theme_actionModeWebSearchDrawable
@see #Theme_actionOverflowButtonStyle
@see #Theme_actionOverflowMenuStyle
@see #Theme_activityChooserViewStyle
@see #Theme_android_windowIsFloating
@see #Theme_buttonBarButtonStyle
@see #Theme_buttonBarStyle
@see #Theme_colorAccent
@see #Theme_colorButtonNormal
@see #Theme_colorControlActivated
@see #Theme_colorControlHighlight
@see #Theme_colorControlNormal
@see #Theme_colorPrimary
@see #Theme_colorPrimaryDark
@see #Theme_colorSwitchThumbNormal
@see #Theme_dividerHorizontal
@see #Theme_dividerVertical
@see #Theme_dropDownListViewStyle
@see #Theme_dropdownListPreferredItemHeight
@see #Theme_editTextBackground
@see #Theme_editTextColor
@see #Theme_homeAsUpIndicator
@see #Theme_listChoiceBackgroundIndicator
@see #Theme_listPopupWindowStyle
@see #Theme_listPreferredItemHeight
@see #Theme_listPreferredItemHeightLarge
@see #Theme_listPreferredItemHeightSmall
@see #Theme_listPreferredItemPaddingLeft
@see #Theme_listPreferredItemPaddingRight
@see #Theme_panelBackground
@see #Theme_panelMenuListTheme
@see #Theme_panelMenuListWidth
@see #Theme_popupMenuStyle
@see #Theme_popupWindowStyle
@see #Theme_searchViewStyle
@see #Theme_selectableItemBackground
@see #Theme_selectableItemBackgroundBorderless
@see #Theme_spinnerDropDownItemStyle
@see #Theme_spinnerStyle
@see #Theme_switchStyle
@see #Theme_textAppearanceLargePopupMenu
@see #Theme_textAppearanceListItem
@see #Theme_textAppearanceListItemSmall
@see #Theme_textAppearanceSearchResultSubtitle
@see #Theme_textAppearanceSearchResultTitle
@see #Theme_textAppearanceSmallPopupMenu
@see #Theme_textColorSearchUrl
@see #Theme_toolbarNavigationButtonStyle
@see #Theme_toolbarStyle
@see #Theme_windowActionBar
@see #Theme_windowActionBarOverlay
@see #Theme_windowActionModeOverlay
@see #Theme_windowFixedHeightMajor
@see #Theme_windowFixedHeightMinor
@see #Theme_windowFixedWidthMajor
@see #Theme_windowFixedWidthMinor
*/
public static final int[] Theme = {
0x01010057, 0x7f010003, 0x7f010004, 0x7f010005,
0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009,
0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d,
0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011,
0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015,
0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019,
0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d,
0x7f01001e, 0x7f01001f, 0x7f010020, 0x7f010021,
0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025,
0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029,
0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d,
0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031,
0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035,
0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039,
0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d,
0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041,
0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045,
0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049,
0x7f01004a, 0x7f01004b, 0x7f01004c, 0x7f01004d,
0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051,
0x7f010052, 0x7f010053, 0x7f010054
};
/**
<p>
@attr description
Custom divider drawable to use for elements in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionBarDivider
*/
public static final int Theme_actionBarDivider = 19;
/**
<p>
@attr description
Custom item state list drawable background for action bar items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionBarItemBackground
*/
public static final int Theme_actionBarItemBackground = 20;
/**
<p>
@attr description
Reference to a theme that should be used to inflate popups
shown by widgets in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionBarPopupTheme
*/
public static final int Theme_actionBarPopupTheme = 13;
/**
<p>
@attr description
Size of the Action Bar, including the contextual
bar used to present Action Modes.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>May be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>wrap_content</code></td><td>0</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name no.glv.sunshine:actionBarSize
*/
public static final int Theme_actionBarSize = 18;
/**
<p>
@attr description
Reference to a style for the split Action Bar. This style
controls the split component that holds the menu/action
buttons. actionBarStyle is still used for the primary
bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionBarSplitStyle
*/
public static final int Theme_actionBarSplitStyle = 15;
/**
<p>
@attr description
Reference to a style for the Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionBarStyle
*/
public static final int Theme_actionBarStyle = 14;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#actionBarTabBarStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name no.glv.sunshine:actionBarTabBarStyle
*/
public static final int Theme_actionBarTabBarStyle = 9;
/**
<p>
@attr description
Default style for tabs within an action bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionBarTabStyle
*/
public static final int Theme_actionBarTabStyle = 8;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#actionBarTabTextStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name no.glv.sunshine:actionBarTabTextStyle
*/
public static final int Theme_actionBarTabTextStyle = 10;
/**
<p>
@attr description
Reference to a theme that should be used to inflate the
action bar. This will be inherited by any widget inflated
into the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionBarTheme
*/
public static final int Theme_actionBarTheme = 16;
/**
<p>
@attr description
Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionBarWidgetTheme
*/
public static final int Theme_actionBarWidgetTheme = 17;
/**
<p>
@attr description
Default action button style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionButtonStyle
*/
public static final int Theme_actionButtonStyle = 43;
/**
<p>
@attr description
Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionDropDownStyle
*/
public static final int Theme_actionDropDownStyle = 38;
/**
<p>
@attr description
TextAppearance style that will be applied to text that
appears within action menu items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionMenuTextAppearance
*/
public static final int Theme_actionMenuTextAppearance = 21;
/**
<p>
@attr description
Color for text that appears within action menu items.
Color for text that appears within action menu items.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionMenuTextColor
*/
public static final int Theme_actionMenuTextColor = 22;
/**
<p>
@attr description
Background drawable to use for action mode UI
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionModeBackground
*/
public static final int Theme_actionModeBackground = 25;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#actionModeCloseButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name no.glv.sunshine:actionModeCloseButtonStyle
*/
public static final int Theme_actionModeCloseButtonStyle = 24;
/**
<p>
@attr description
Drawable to use for the close action mode button
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionModeCloseDrawable
*/
public static final int Theme_actionModeCloseDrawable = 27;
/**
<p>
@attr description
Drawable to use for the Copy action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionModeCopyDrawable
*/
public static final int Theme_actionModeCopyDrawable = 29;
/**
<p>
@attr description
Drawable to use for the Cut action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionModeCutDrawable
*/
public static final int Theme_actionModeCutDrawable = 28;
/**
<p>
@attr description
Drawable to use for the Find action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionModeFindDrawable
*/
public static final int Theme_actionModeFindDrawable = 33;
/**
<p>
@attr description
Drawable to use for the Paste action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionModePasteDrawable
*/
public static final int Theme_actionModePasteDrawable = 30;
/**
<p>
@attr description
PopupWindow style to use for action modes when showing as a window overlay.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionModePopupWindowStyle
*/
public static final int Theme_actionModePopupWindowStyle = 35;
/**
<p>
@attr description
Drawable to use for the Select all action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionModeSelectAllDrawable
*/
public static final int Theme_actionModeSelectAllDrawable = 31;
/**
<p>
@attr description
Drawable to use for the Share action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionModeShareDrawable
*/
public static final int Theme_actionModeShareDrawable = 32;
/**
<p>
@attr description
Background drawable to use for action mode UI in the lower split bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionModeSplitBackground
*/
public static final int Theme_actionModeSplitBackground = 26;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#actionModeStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name no.glv.sunshine:actionModeStyle
*/
public static final int Theme_actionModeStyle = 23;
/**
<p>
@attr description
Drawable to use for the Web Search action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:actionModeWebSearchDrawable
*/
public static final int Theme_actionModeWebSearchDrawable = 34;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#actionOverflowButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name no.glv.sunshine:actionOverflowButtonStyle
*/
public static final int Theme_actionOverflowButtonStyle = 11;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#actionOverflowMenuStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name no.glv.sunshine:actionOverflowMenuStyle
*/
public static final int Theme_actionOverflowMenuStyle = 12;
/**
<p>
@attr description
Default ActivityChooserView style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:activityChooserViewStyle
*/
public static final int Theme_activityChooserViewStyle = 50;
/**
<p>This symbol is the offset where the {@link android.R.attr#windowIsFloating}
attribute's value can be found in the {@link #Theme} array.
@attr name android:windowIsFloating
*/
public static final int Theme_android_windowIsFloating = 0;
/**
<p>
@attr description
A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:buttonBarButtonStyle
*/
public static final int Theme_buttonBarButtonStyle = 45;
/**
<p>
@attr description
A style that may be applied to horizontal LinearLayouts
to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:buttonBarStyle
*/
public static final int Theme_buttonBarStyle = 44;
/**
<p>
@attr description
Bright complement to the primary branding color. By default, this is the color applied
to framework controls (via colorControlActivated).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:colorAccent
*/
public static final int Theme_colorAccent = 77;
/**
<p>
@attr description
The color applied to framework buttons in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:colorButtonNormal
*/
public static final int Theme_colorButtonNormal = 81;
/**
<p>
@attr description
The color applied to framework controls in their activated (ex. checked) state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:colorControlActivated
*/
public static final int Theme_colorControlActivated = 79;
/**
<p>
@attr description
The color applied to framework control highlights (ex. ripples, list selectors).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:colorControlHighlight
*/
public static final int Theme_colorControlHighlight = 80;
/**
<p>
@attr description
The color applied to framework controls in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:colorControlNormal
*/
public static final int Theme_colorControlNormal = 78;
/**
<p>
@attr description
The primary branding color for the app. By default, this is the color applied to the
action bar background.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:colorPrimary
*/
public static final int Theme_colorPrimary = 75;
/**
<p>
@attr description
Dark variant of the primary branding color. By default, this is the color applied to
the status bar (via statusBarColor) and navigation bar (via navigationBarColor).
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:colorPrimaryDark
*/
public static final int Theme_colorPrimaryDark = 76;
/**
<p>
@attr description
The color applied to framework switch thumbs in their normal state.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:colorSwitchThumbNormal
*/
public static final int Theme_colorSwitchThumbNormal = 82;
/**
<p>
@attr description
A drawable that may be used as a horizontal divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:dividerHorizontal
*/
public static final int Theme_dividerHorizontal = 49;
/**
<p>
@attr description
A drawable that may be used as a vertical divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:dividerVertical
*/
public static final int Theme_dividerVertical = 48;
/**
<p>
@attr description
ListPopupWindow compatibility
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:dropDownListViewStyle
*/
public static final int Theme_dropDownListViewStyle = 67;
/**
<p>
@attr description
The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:dropdownListPreferredItemHeight
*/
public static final int Theme_dropdownListPreferredItemHeight = 39;
/**
<p>
@attr description
EditText background drawable.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:editTextBackground
*/
public static final int Theme_editTextBackground = 56;
/**
<p>
@attr description
EditText text foreground color.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:editTextColor
*/
public static final int Theme_editTextColor = 55;
/**
<p>
@attr description
Specifies a drawable to use for the 'home as up' indicator.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:homeAsUpIndicator
*/
public static final int Theme_homeAsUpIndicator = 42;
/**
<p>
@attr description
Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:listChoiceBackgroundIndicator
*/
public static final int Theme_listChoiceBackgroundIndicator = 74;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#listPopupWindowStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name no.glv.sunshine:listPopupWindowStyle
*/
public static final int Theme_listPopupWindowStyle = 68;
/**
<p>
@attr description
The preferred list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:listPreferredItemHeight
*/
public static final int Theme_listPreferredItemHeight = 62;
/**
<p>
@attr description
A larger, more robust list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:listPreferredItemHeightLarge
*/
public static final int Theme_listPreferredItemHeightLarge = 64;
/**
<p>
@attr description
A smaller, sleeker list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:listPreferredItemHeightSmall
*/
public static final int Theme_listPreferredItemHeightSmall = 63;
/**
<p>
@attr description
The preferred padding along the left edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:listPreferredItemPaddingLeft
*/
public static final int Theme_listPreferredItemPaddingLeft = 65;
/**
<p>
@attr description
The preferred padding along the right edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:listPreferredItemPaddingRight
*/
public static final int Theme_listPreferredItemPaddingRight = 66;
/**
<p>
@attr description
The background of a panel when it is inset from the left and right edges of the screen.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:panelBackground
*/
public static final int Theme_panelBackground = 71;
/**
<p>
@attr description
Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:panelMenuListTheme
*/
public static final int Theme_panelMenuListTheme = 73;
/**
<p>
@attr description
Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:panelMenuListWidth
*/
public static final int Theme_panelMenuListWidth = 72;
/**
<p>
@attr description
Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:popupMenuStyle
*/
public static final int Theme_popupMenuStyle = 53;
/**
<p>
@attr description
Default PopupWindow style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:popupWindowStyle
*/
public static final int Theme_popupWindowStyle = 54;
/**
<p>
@attr description
Style for the search query widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:searchViewStyle
*/
public static final int Theme_searchViewStyle = 61;
/**
<p>
@attr description
A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:selectableItemBackground
*/
public static final int Theme_selectableItemBackground = 46;
/**
<p>
@attr description
Background drawable for borderless standalone items that need focus/pressed states.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:selectableItemBackgroundBorderless
*/
public static final int Theme_selectableItemBackgroundBorderless = 47;
/**
<p>
@attr description
Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:spinnerDropDownItemStyle
*/
public static final int Theme_spinnerDropDownItemStyle = 41;
/**
<p>
@attr description
Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:spinnerStyle
*/
public static final int Theme_spinnerStyle = 40;
/**
<p>
@attr description
Default style for the Switch widget.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:switchStyle
*/
public static final int Theme_switchStyle = 57;
/**
<p>
@attr description
Text color, typeface, size, and style for the text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:textAppearanceLargePopupMenu
*/
public static final int Theme_textAppearanceLargePopupMenu = 36;
/**
<p>
@attr description
The preferred TextAppearance for the primary text of list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:textAppearanceListItem
*/
public static final int Theme_textAppearanceListItem = 69;
/**
<p>
@attr description
The preferred TextAppearance for the primary text of small list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:textAppearanceListItemSmall
*/
public static final int Theme_textAppearanceListItemSmall = 70;
/**
<p>
@attr description
Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:textAppearanceSearchResultSubtitle
*/
public static final int Theme_textAppearanceSearchResultSubtitle = 59;
/**
<p>
@attr description
Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:textAppearanceSearchResultTitle
*/
public static final int Theme_textAppearanceSearchResultTitle = 58;
/**
<p>
@attr description
Text color, typeface, size, and style for small text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:textAppearanceSmallPopupMenu
*/
public static final int Theme_textAppearanceSmallPopupMenu = 37;
/**
<p>
@attr description
Text color for urls in search suggestions, used by things like global search
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:textColorSearchUrl
*/
public static final int Theme_textColorSearchUrl = 60;
/**
<p>
@attr description
Default Toolar NavigationButtonStyle
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:toolbarNavigationButtonStyle
*/
public static final int Theme_toolbarNavigationButtonStyle = 52;
/**
<p>
@attr description
Default Toolbar style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:toolbarStyle
*/
public static final int Theme_toolbarStyle = 51;
/**
<p>
@attr description
Flag indicating whether this window should have an Action Bar
in place of the usual title bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:windowActionBar
*/
public static final int Theme_windowActionBar = 1;
/**
<p>
@attr description
Flag indicating whether this window's Action Bar should overlay
application content. Does nothing if the window would not
have an Action Bar.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:windowActionBarOverlay
*/
public static final int Theme_windowActionBarOverlay = 2;
/**
<p>
@attr description
Flag indicating whether action modes should overlay window content
when there is not reserved space for their UI (such as an Action Bar).
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:windowActionModeOverlay
*/
public static final int Theme_windowActionModeOverlay = 3;
/**
<p>
@attr description
A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:windowFixedHeightMajor
*/
public static final int Theme_windowFixedHeightMajor = 7;
/**
<p>
@attr description
A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:windowFixedHeightMinor
*/
public static final int Theme_windowFixedHeightMinor = 5;
/**
<p>
@attr description
A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:windowFixedWidthMajor
*/
public static final int Theme_windowFixedWidthMajor = 4;
/**
<p>
@attr description
A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:windowFixedWidthMinor
*/
public static final int Theme_windowFixedWidthMinor = 6;
/** Attributes that can be used with a Toolbar.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Toolbar_android_gravity android:gravity}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_android_minHeight android:minHeight}</code></td><td> Allows us to read in the minHeight attr pre-v16 </td></tr>
<tr><td><code>{@link #Toolbar_collapseContentDescription no.glv.sunshine:collapseContentDescription}</code></td><td> Text to set as the content description for the collapse button.</td></tr>
<tr><td><code>{@link #Toolbar_collapseIcon no.glv.sunshine:collapseIcon}</code></td><td> Icon drawable to use for the collapse button.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetEnd no.glv.sunshine:contentInsetEnd}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetLeft no.glv.sunshine:contentInsetLeft}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetRight no.glv.sunshine:contentInsetRight}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_contentInsetStart no.glv.sunshine:contentInsetStart}</code></td><td> Minimum inset for content views within a bar.</td></tr>
<tr><td><code>{@link #Toolbar_maxButtonHeight no.glv.sunshine:maxButtonHeight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_navigationContentDescription no.glv.sunshine:navigationContentDescription}</code></td><td> Text to set as the content description for the navigation button
located at the start of the toolbar.</td></tr>
<tr><td><code>{@link #Toolbar_navigationIcon no.glv.sunshine:navigationIcon}</code></td><td> Icon drawable to use for the navigation button located at
the start of the toolbar.</td></tr>
<tr><td><code>{@link #Toolbar_popupTheme no.glv.sunshine:popupTheme}</code></td><td> Reference to a theme that should be used to inflate popups
shown by widgets in the toolbar.</td></tr>
<tr><td><code>{@link #Toolbar_subtitle no.glv.sunshine:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #Toolbar_subtitleTextAppearance no.glv.sunshine:subtitleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_theme no.glv.sunshine:theme}</code></td><td> Specifies a theme override for a view.</td></tr>
<tr><td><code>{@link #Toolbar_title no.glv.sunshine:title}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginBottom no.glv.sunshine:titleMarginBottom}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginEnd no.glv.sunshine:titleMarginEnd}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginStart no.glv.sunshine:titleMarginStart}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginTop no.glv.sunshine:titleMarginTop}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMargins no.glv.sunshine:titleMargins}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleTextAppearance no.glv.sunshine:titleTextAppearance}</code></td><td></td></tr>
</table>
@see #Toolbar_android_gravity
@see #Toolbar_android_minHeight
@see #Toolbar_collapseContentDescription
@see #Toolbar_collapseIcon
@see #Toolbar_contentInsetEnd
@see #Toolbar_contentInsetLeft
@see #Toolbar_contentInsetRight
@see #Toolbar_contentInsetStart
@see #Toolbar_maxButtonHeight
@see #Toolbar_navigationContentDescription
@see #Toolbar_navigationIcon
@see #Toolbar_popupTheme
@see #Toolbar_subtitle
@see #Toolbar_subtitleTextAppearance
@see #Toolbar_theme
@see #Toolbar_title
@see #Toolbar_titleMarginBottom
@see #Toolbar_titleMarginEnd
@see #Toolbar_titleMarginStart
@see #Toolbar_titleMarginTop
@see #Toolbar_titleMargins
@see #Toolbar_titleTextAppearance
*/
public static final int[] Toolbar = {
0x010100af, 0x01010140, 0x7f010000, 0x7f010057,
0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a,
0x7f01006c, 0x7f01008a, 0x7f01008b, 0x7f01008c,
0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090,
0x7f010091, 0x7f010092, 0x7f010093, 0x7f010094,
0x7f010095, 0x7f010096
};
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #Toolbar} array.
@attr name android:gravity
*/
public static final int Toolbar_android_gravity = 0;
/**
<p>
@attr description
Allows us to read in the minHeight attr pre-v16
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#minHeight}.
@attr name android:minHeight
*/
public static final int Toolbar_android_minHeight = 1;
/**
<p>
@attr description
Text to set as the content description for the collapse button.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:collapseContentDescription
*/
public static final int Toolbar_collapseContentDescription = 19;
/**
<p>
@attr description
Icon drawable to use for the collapse button.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:collapseIcon
*/
public static final int Toolbar_collapseIcon = 18;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:contentInsetEnd
*/
public static final int Toolbar_contentInsetEnd = 5;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:contentInsetLeft
*/
public static final int Toolbar_contentInsetLeft = 6;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:contentInsetRight
*/
public static final int Toolbar_contentInsetRight = 7;
/**
<p>
@attr description
Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:contentInsetStart
*/
public static final int Toolbar_contentInsetStart = 4;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#maxButtonHeight}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name no.glv.sunshine:maxButtonHeight
*/
public static final int Toolbar_maxButtonHeight = 16;
/**
<p>
@attr description
Text to set as the content description for the navigation button
located at the start of the toolbar.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:navigationContentDescription
*/
public static final int Toolbar_navigationContentDescription = 21;
/**
<p>
@attr description
Icon drawable to use for the navigation button located at
the start of the toolbar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:navigationIcon
*/
public static final int Toolbar_navigationIcon = 20;
/**
<p>
@attr description
Reference to a theme that should be used to inflate popups
shown by widgets in the toolbar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:popupTheme
*/
public static final int Toolbar_popupTheme = 8;
/**
<p>
@attr description
Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:subtitle
*/
public static final int Toolbar_subtitle = 3;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#subtitleTextAppearance}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name no.glv.sunshine:subtitleTextAppearance
*/
public static final int Toolbar_subtitleTextAppearance = 10;
/**
<p>
@attr description
Specifies a theme override for a view. When a theme override is set, the
view will be inflated using a {@link android.content.Context} themed with
the specified resource. During XML inflation, any child views under the
view with a theme override will inherit the themed context.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name no.glv.sunshine:theme
*/
public static final int Toolbar_theme = 17;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#title}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name no.glv.sunshine:title
*/
public static final int Toolbar_title = 2;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#titleMarginBottom}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name no.glv.sunshine:titleMarginBottom
*/
public static final int Toolbar_titleMarginBottom = 15;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#titleMarginEnd}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name no.glv.sunshine:titleMarginEnd
*/
public static final int Toolbar_titleMarginEnd = 13;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#titleMarginStart}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name no.glv.sunshine:titleMarginStart
*/
public static final int Toolbar_titleMarginStart = 12;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#titleMarginTop}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name no.glv.sunshine:titleMarginTop
*/
public static final int Toolbar_titleMarginTop = 14;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#titleMargins}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name no.glv.sunshine:titleMargins
*/
public static final int Toolbar_titleMargins = 11;
/**
<p>This symbol is the offset where the {@link no.glv.sunshine.R.attr#titleTextAppearance}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name no.glv.sunshine:titleTextAppearance
*/
public static final int Toolbar_titleTextAppearance = 9;
/** Attributes that can be used with a View.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td> Boolean that controls whether a view can take focus.</td></tr>
<tr><td><code>{@link #View_paddingEnd no.glv.sunshine:paddingEnd}</code></td><td> Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.</td></tr>
<tr><td><code>{@link #View_paddingStart no.glv.sunshine:paddingStart}</code></td><td> Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.</td></tr>
</table>
@see #View_android_focusable
@see #View_paddingEnd
@see #View_paddingStart
*/
public static final int[] View = {
0x010100da, 0x7f01006e, 0x7f01006f
};
/**
<p>
@attr description
Boolean that controls whether a view can take focus. By default the user can not
move focus to a view; by setting this attribute to true the view is
allowed to take focus. This value does not impact the behavior of
directly calling {@link android.view.View#requestFocus}, which will
always request focus regardless of this view. It only impacts where
focus navigation will try to move focus.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#focusable}.
@attr name android:focusable
*/
public static final int View_android_focusable = 0;
/**
<p>
@attr description
Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:paddingEnd
*/
public static final int View_paddingEnd = 2;
/**
<p>
@attr description
Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name no.glv.sunshine:paddingStart
*/
public static final int View_paddingStart = 1;
/** Attributes that can be used with a ViewStubCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ViewStubCompat_android_id android:id}</code></td><td></td></tr>
<tr><td><code>{@link #ViewStubCompat_android_inflatedId android:inflatedId}</code></td><td> Overrides the id of the inflated View with this value.</td></tr>
<tr><td><code>{@link #ViewStubCompat_android_layout android:layout}</code></td><td> Supply an identifier for the layout resource to inflate when the ViewStub
becomes visible or when forced to do so.</td></tr>
</table>
@see #ViewStubCompat_android_id
@see #ViewStubCompat_android_inflatedId
@see #ViewStubCompat_android_layout
*/
public static final int[] ViewStubCompat = {
0x010100d0, 0x010100f2, 0x010100f3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#id}
attribute's value can be found in the {@link #ViewStubCompat} array.
@attr name android:id
*/
public static final int ViewStubCompat_android_id = 0;
/**
<p>
@attr description
Overrides the id of the inflated View with this value.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#inflatedId}.
@attr name android:inflatedId
*/
public static final int ViewStubCompat_android_inflatedId = 2;
/**
<p>
@attr description
Supply an identifier for the layout resource to inflate when the ViewStub
becomes visible or when forced to do so. The layout resource must be a
valid reference to a layout.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#layout}.
@attr name android:layout
*/
public static final int ViewStubCompat_android_layout = 1;
};
}
| [
"vollsate@gmail.com"
] | vollsate@gmail.com |
5aaf2bc4d3e9af0b98fa3340e7fd334df9c8cc13 | da4498cf227d46af529e5fbc489538d5c4dad409 | /src/main/java/ml/ikslib/gateway/callback/IDeliveryReportCallback.java | ed8030095a5459ef0dd0b4312713371e31590ab7 | [] | no_license | daoudabeye/gsmmodem | e58d2211f533636ed66da57694d21d662853faa8 | acb75fc72cdbc6bb30e8f45017c8d3a30962f3ed | refs/heads/master | 2022-01-01T05:13:08.107253 | 2020-06-06T14:51:08 | 2020-06-06T14:51:08 | 215,912,701 | 1 | 0 | null | 2021-12-14T21:34:37 | 2019-10-18T00:57:43 | Java | UTF-8 | Java | false | false | 214 | java |
package ml.ikslib.gateway.callback;
import ml.ikslib.gateway.callback.events.DeliveryReportCallbackEvent;
public interface IDeliveryReportCallback
{
public boolean process(DeliveryReportCallbackEvent event);
}
| [
"daouda.beye@gmail.com"
] | daouda.beye@gmail.com |
cf6441f752ee3a0a34331f07e7b7ddca7659a380 | 1fca88457037d9c0f3de171beb9cc6d3f3e8ef2d | /app/src/main/java/com/oncreate/ariadna/UI/Quiz/MultipleChoiceQuiz.java | 603bc0fbdfc8d87acef8f9aaabad3ebb32951f34 | [] | no_license | andresbelt/Ariadna | 73c394e5baf2380993b30211c5ec8cf55e14b9a6 | dfe37c870a4eef89d62fcace53eaf34aae45b256 | refs/heads/master | 2021-06-02T16:43:30.582445 | 2016-09-13T06:23:22 | 2016-09-13T06:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,677 | java | package com.oncreate.ariadna.UI.Quiz;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.util.SparseBooleanArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import com.oncreate.ariadna.ModelsVO.Answer;
import com.oncreate.ariadna.ModelsVO.Quiz;
import com.oncreate.ariadna.R;
import java.util.ArrayList;
import java.util.List;
public class MultipleChoiceQuiz extends LoadingQuizView {
protected int correctAnswerCount;
protected AbsListView listView;
protected List<Answer> shuffledAnswers;
public MultipleChoiceQuiz(Context context) {
super(context);
}
protected final View onCreateQuiz(LayoutInflater inflater, ViewGroup parent, Quiz quiz) {
int i;
View rootView = inflater.inflate(getLayout(), parent, false);
this.shuffledAnswers = getShuffledAnswers();
this.correctAnswerCount = 0;
ArrayList<String> answers = new ArrayList();
for (Answer answer : this.shuffledAnswers) {
answers.add(answer.getText());
if (answer.isCorrect()) {
this.correctAnswerCount++;
}
}
this.listView = (AbsListView) rootView.findViewById(R.id.list_view);
this.listView.setAdapter(createAdapter(quiz, answers));
AbsListView absListView = this.listView;
if (this.correctAnswerCount > 1) {
i = 2;
} else {
i = 1;
}
absListView.setChoiceMode(i);
onPostCreateQuiz(rootView);
return rootView;
}
protected void onPostCreateQuiz(View view) {
}
@LayoutRes
protected int getLayout() {
return R.layout.quiz_multiple_choice;
}
@LayoutRes
protected int getItemLayout() {
return this.correctAnswerCount > 1 ? R.layout.quiz_multiple_choice_item : R.layout.quiz_single_choice_item;
}
protected ListAdapter createAdapter(Quiz quiz, List<String> answers) {
return new ArrayAdapter(getContext(), getItemLayout(), answers);
}
protected SparseBooleanArray getCheckedItemPositions() {
return this.listView.getCheckedItemPositions();
}
public void check() {
SparseBooleanArray checked = getCheckedItemPositions();
boolean isCorrect = true;
int checkedCount = 0;
if (checked != null) {
for (int i = 0; i < checked.size(); i++) {
if (checked.valueAt(i)) {
checkedCount++;
if (!(this.shuffledAnswers.get(checked.keyAt(i))).isCorrect()) {
isCorrect = false;
break;
}
}
}
if (isCorrect && this.correctAnswerCount == checkedCount) {
isCorrect = true;
} else {
isCorrect = false;
}
} else {
isCorrect = this.correctAnswerCount == 0;
}
setResult(isCorrect);
}
public void unlock() {
for (int i = 0; i < this.shuffledAnswers.size(); i++) {
this.listView.setItemChecked(i, ((Answer) this.shuffledAnswers.get(i)).isCorrect());
}
check();
}
protected String getTip() {
String quizTip = this.quiz.getTip();
if (quizTip != null) {
return quizTip;
}
if (this.correctAnswerCount > 1) {
return getResources().getString(R.string.quiz_multiple_choice_tip);
}
return null;
}
}
| [
"andresbeltranpiloto@hotmail.com"
] | andresbeltranpiloto@hotmail.com |
cb8830faa50acf2690dceba70fb6c0d684131c24 | 2a63c3b638958bd32fcc1b8a93641ca41de37697 | /src/main/java/com/food/chicken/exceptions/advice/ControllerAdvice.java | a77b7a0f9b9f56ff2cbb95f4d5931ea9e9f095b2 | [] | no_license | Intraveler/chicken | 4ac367ed12232c7e0395ca852f4507339df7524f | 8ac2df6c4eb9c15a4bd5619da31f79cc27afcbe7 | refs/heads/master | 2022-12-11T17:05:26.622035 | 2019-07-03T14:59:33 | 2019-07-03T14:59:33 | 194,697,887 | 0 | 0 | null | 2022-12-10T21:18:22 | 2019-07-01T15:21:07 | Java | UTF-8 | Java | false | false | 2,000 | java | package com.food.chicken.exceptions.advice;
import com.food.chicken.common.ExceptionType;
import com.food.chicken.exceptions.ExternalException;
import com.food.chicken.exceptions.InternalException;
import com.food.chicken.exceptions.UnknownException;
import com.food.chicken.exceptions.model.ErrorMessage;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
@org.springframework.web.bind.annotation.ControllerAdvice
public class ControllerAdvice {
@ExceptionHandler(value = ExternalException.class)
@ResponseBody
protected ResponseEntity handleExternalException(RuntimeException exception) {
ErrorMessage errorMessage = new ErrorMessage();
errorMessage.setStatus(ExceptionType.EXTERNAL_ERROR);
errorMessage.setMessage(exception.getMessage());
return ResponseEntity
.status(HttpStatus.BAD_GATEWAY)
.body(errorMessage);
}
@ExceptionHandler(value = UnknownException.class)
@ResponseBody
protected ResponseEntity handleUnknownException(RuntimeException exception) {
ErrorMessage errorMessage = new ErrorMessage();
errorMessage.setStatus(ExceptionType.UNKNOWN_ERROR);
errorMessage.setMessage(exception.getMessage());
return ResponseEntity
.status(HttpStatus.INTERNAL_SERVER_ERROR)
.body(errorMessage);
}
@ExceptionHandler(value = InternalException.class)
@ResponseBody
protected ResponseEntity handleInternalException(RuntimeException exception) {
ErrorMessage errorMessage = new ErrorMessage();
errorMessage.setStatus(ExceptionType.INTERNAL_ERROR);
errorMessage.setMessage(exception.getMessage());
return ResponseEntity
.status(HttpStatus.INTERNAL_SERVER_ERROR)
.body(errorMessage);
}
} | [
"inpyo.developer@gmail.com"
] | inpyo.developer@gmail.com |
455135ace09df3d42bdc76461d443d4f132fbd79 | 888e7a56d333fe13d02e5421cc029711384356fd | /src/main/java/com/xpay/pay/notify/INotifyHandler.java | 615a27b7837d7f7054d458c702c02238265e4dbe | [] | no_license | futurecoming/xpay2018 | 8f61a6fc20541fcd1aaacc9b176a5cfde67e509b | 0756e7d9fc9cce6913917d16ccc5b9571bf8a6de | refs/heads/master | 2020-03-15T04:33:33.197841 | 2018-05-11T08:38:02 | 2018-05-11T08:38:02 | 131,968,444 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 327 | java | package com.xpay.pay.notify;
import com.xpay.pay.controller.PayNotifyServlet.NotifyResponse;
public interface INotifyHandler {
NotifyResponse handleNotification(String url, String content);
boolean validateSignature(String content);
String getContentType();
String getCharacterEncoding();
boolean isRedrect();
}
| [
"zaiping.ma@blackboard.com"
] | zaiping.ma@blackboard.com |
f3d81d8db294ba22026f1c99c89af1132ad1874f | 6afdfb4afd85215acee1d1c439afc33f3865bba0 | /Java How to Program/ch03/AccountTester.java | 1f3a9e01e7af8b8008744859420935e6f801c578 | [] | no_license | ionixftw/miscellaneous | f9571b9ef775b08ff91943dacbd9d792362f15ef | ef38e46b131c252ec07cbb1b0970664cd2035e1c | refs/heads/master | 2020-03-27T19:58:41.874817 | 2018-09-12T17:25:22 | 2018-09-12T17:25:22 | 147,027,217 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,001 | java | import javax.swing.JOptionPane;
public class AccountTester {
public static void main(String[] args) {
Account user1 = new Account("Steve Rogers");
displayInfo(user1);
Account user2 = new Account("Bob Marley");
displayInfo(user2);
user1.deposit(3.33);
displayInfo(user1);
user2.deposit(5.66);
displayInfo(user2);
user1.withdraw(7.00);
displayInfo(user1);
user1.withdraw(2.13);
displayInfo(user1);
user1.deposit(599.99);
displayInfo(user1);
user1.withdraw(392.97);
displayInfo(user1);
double depositAmount = Double.valueOf(JOptionPane.showInputDialog("Insert deposit amount for user1:"));
user1.deposit(depositAmount);
displayInfo(user1);
}
public static void displayInfo(Account user) {
String message = String.format("%s's account balance: %.2f%n%n", user.getName(), user.getBalance());
System.out.print(message);
}
} | [
"ionixftw@hotmail.com"
] | ionixftw@hotmail.com |
1074b7668f04e22bdc67d093ec5702072a4964cb | 8277ef71b62776b45132cc330b81527c79e24f18 | /src/main/java/prizm/UnconfirmedTransaction.java | 432575532a3fcdc772b0323180ff918b11edb5aa | [] | no_license | konZakon/PrizmCore | 5fe154601760302a327f398a5d2102839509d4c4 | 05ed86391bfd5f75f6283c3c62532099c3e6832c | refs/heads/master | 2020-03-27T01:33:32.767976 | 2018-07-29T17:05:49 | 2018-07-29T17:05:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,752 | java | /******************************************************************************
* Copyright © 2013-2016 The Nxt Core Developers. *
* *
* See the AUTHORS.txt, DEVELOPER-AGREEMENT.txt and LICENSE.txt files at *
* the top-level directory of this distribution for the individual copyright *
* holder information and the developer policies on copyright and licensing. *
* *
* Unless otherwise agreed in a custom licensing agreement, no part of the *
* Nxt software, including this file, may be copied, modified, propagated, *
* or distributed except according to the terms contained in the LICENSE.txt *
* file. *
* *
* Removal or modification of this copyright notice is prohibited. *
* *
******************************************************************************/
package prizm;
import prizm.db.DbKey;
import prizm.util.Filter;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.List;
class UnconfirmedTransaction implements Transaction {
private final TransactionImpl transaction;
private final long arrivalTimestamp;
private final long feePerByte;
UnconfirmedTransaction(TransactionImpl transaction, long arrivalTimestamp) {
this.transaction = transaction;
this.arrivalTimestamp = arrivalTimestamp;
this.feePerByte = transaction.getFeeNQT() / transaction.getFullSize();
}
UnconfirmedTransaction(ResultSet rs) throws SQLException {
try {
byte[] transactionBytes = rs.getBytes("transaction_bytes");
JSONObject prunableAttachments = null;
String prunableJSON = rs.getString("prunable_json");
if (prunableJSON != null) {
prunableAttachments = (JSONObject) JSONValue.parse(prunableJSON);
}
TransactionImpl.BuilderImpl builder = TransactionImpl.newTransactionBuilder(transactionBytes, prunableAttachments);
this.transaction = builder.build();
this.transaction.setHeight(rs.getInt("transaction_height"));
this.arrivalTimestamp = rs.getLong("arrival_timestamp");
this.feePerByte = rs.getLong("fee_per_byte");
} catch (PrizmException.ValidationException e) {
throw new RuntimeException(e.toString(), e);
}
}
void save(Connection con) throws SQLException {
try (PreparedStatement pstmt = con.prepareStatement("INSERT INTO unconfirmed_transaction (id, transaction_height, "
+ "fee_per_byte, expiration, transaction_bytes, prunable_json, arrival_timestamp, height) "
+ "VALUES (?, ?, ?, ?, ?, ?, ?, ?)")) {
int i = 0;
pstmt.setLong(++i, transaction.getId());
pstmt.setInt(++i, transaction.getHeight());
pstmt.setLong(++i, feePerByte);
pstmt.setInt(++i, transaction.getExpiration());
pstmt.setBytes(++i, transaction.bytes());
JSONObject prunableJSON = transaction.getPrunableAttachmentJSON();
if (prunableJSON != null) {
pstmt.setString(++i, prunableJSON.toJSONString());
} else {
pstmt.setNull(++i, Types.VARCHAR);
}
pstmt.setLong(++i, arrivalTimestamp);
pstmt.setInt(++i, Prizm.getBlockchain().getHeight());
pstmt.executeUpdate();
}
}
TransactionImpl getTransaction() {
return transaction;
}
long getArrivalTimestamp() {
return arrivalTimestamp;
}
long getFeePerByte() {
return feePerByte;
}
@Override
public boolean equals(Object o) {
return o instanceof UnconfirmedTransaction && transaction.equals(((UnconfirmedTransaction)o).getTransaction());
}
@Override
public int hashCode() {
return transaction.hashCode();
}
@Override
public long getId() {
return transaction.getId();
}
DbKey getDbKey() {
return transaction.getDbKey();
}
@Override
public String getStringId() {
return transaction.getStringId();
}
@Override
public long getSenderId() {
return transaction.getSenderId();
}
@Override
public byte[] getSenderPublicKey() {
return transaction.getSenderPublicKey();
}
@Override
public long getRecipientId() {
return transaction.getRecipientId();
}
@Override
public int getHeight() {
return transaction.getHeight();
}
@Override
public long getBlockId() {
return transaction.getBlockId();
}
@Override
public Block getBlock() {
return transaction.getBlock();
}
@Override
public int getTimestamp() {
return transaction.getTimestamp();
}
@Override
public int getBlockTimestamp() {
return transaction.getBlockTimestamp();
}
@Override
public short getDeadline() {
return transaction.getDeadline();
}
@Override
public int getExpiration() {
return transaction.getExpiration();
}
@Override
public long getAmountNQT() {
return transaction.getAmountNQT();
}
@Override
public long getFeeNQT() {
return transaction.getFeeNQT();
}
@Override
public String getReferencedTransactionFullHash() {
return transaction.getReferencedTransactionFullHash();
}
@Override
public byte[] getSignature() {
return transaction.getSignature();
}
@Override
public String getFullHash() {
return transaction.getFullHash();
}
@Override
public TransactionType getType() {
return transaction.getType();
}
@Override
public Attachment getAttachment() {
return transaction.getAttachment();
}
@Override
public boolean verifySignature() {
return transaction.verifySignature();
}
@Override
public void validate() throws PrizmException.ValidationException {
transaction.validate();
}
@Override
public byte[] getBytes() {
return transaction.getBytes();
}
@Override
public byte[] getUnsignedBytes() {
return transaction.getUnsignedBytes();
}
@Override
public JSONObject getJSONObject() {
return transaction.getJSONObject();
}
@Override
public JSONObject getPrunableAttachmentJSON() {
return transaction.getPrunableAttachmentJSON();
}
@Override
public byte getVersion() {
return transaction.getVersion();
}
@Override
public int getFullSize() {
return transaction.getFullSize();
}
@Override
public Appendix.Message getMessage() {
return transaction.getMessage();
}
@Override
public Appendix.PrunablePlainMessage getPrunablePlainMessage() {
return transaction.getPrunablePlainMessage();
}
@Override
public Appendix.EncryptedMessage getEncryptedMessage() {
return transaction.getEncryptedMessage();
}
@Override
public Appendix.PrunableEncryptedMessage getPrunableEncryptedMessage() {
return transaction.getPrunableEncryptedMessage();
}
public Appendix.EncryptToSelfMessage getEncryptToSelfMessage() {
return transaction.getEncryptToSelfMessage();
}
@Override
public Appendix.Phasing getPhasing() {
return transaction.getPhasing();
}
@Override
public List<? extends Appendix> getAppendages() {
return transaction.getAppendages();
}
@Override
public List<? extends Appendix> getAppendages(boolean includeExpiredPrunable) {
return transaction.getAppendages(includeExpiredPrunable);
}
@Override
public List<? extends Appendix> getAppendages(Filter<Appendix> filter, boolean includeExpiredPrunable) {
return transaction.getAppendages(filter, includeExpiredPrunable);
}
@Override
public int getECBlockHeight() {
return transaction.getECBlockHeight();
}
@Override
public long getECBlockId() {
return transaction.getECBlockId();
}
@Override
public short getIndex() {
return transaction.getIndex();
}
}
| [
"zoi@node1.prizm.space"
] | zoi@node1.prizm.space |
67413c47969263c5c33fd13b0aaf8e0bfd474e42 | b0546b01ebe1d6527d8d58ffac5bfd27f1919603 | /history/rpg/src/engine/script/operation/Divide.java | dbadbe4a3ac1703a5a119a8c1610c007d1536f49 | [] | no_license | heroyuy/systar | b71da2e44a7a3733c53a45bd5d9dd84e4a13f039 | ebce6ef8b95ee969244dcce76ebd79d7f0353aca | refs/heads/master | 2021-01-10T10:42:59.250335 | 2012-10-15T14:46:36 | 2012-10-15T14:46:36 | 47,677,163 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 337 | java | package engine.script.operation;
import engine.script.VarList;
/**
*
* 除 /
*/
public class Divide implements OperationInterface {
public String operate(String operand1, String operand2) {
return Integer.parseInt(se.getVarList().getValue(operand1)) / Integer.parseInt(se.getVarList().getValue(operand2)) + "";
}
}
| [
"hustg4@gmail.com"
] | hustg4@gmail.com |
3a0053c2e28050ae41eced9bcac2d46b44e7218f | a87130e7fd90ee89736a2e08ece81dbe1d3833d4 | /HardDiskRunner.java | 9f238ec6545e7e10bd3dbfd40c9fb9da347abe94 | [] | no_license | Avila-BS/javaTraining | 0736c54907a04267df0f16be9f690250a318c1cf | fdb9123ce9e6558dc758bcb4f4980757b621fb77 | refs/heads/master | 2023-08-19T06:16:21.533977 | 2021-10-22T02:07:37 | 2021-10-22T02:07:37 | 412,305,656 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 134 | java | class HardDiskRunner{
public static void main(String[] res)
{
HardDisk hard=new HardDisk();
System.out.println("copy executed");
}
} | [
"avila.xworkz@gmail.com"
] | avila.xworkz@gmail.com |
df37d4e11d21eb970e2960cbd5a571960b495bdc | c5ef11efb59a13df79c9f22b9e20df2a95c00d71 | /android/app/src/main/java/com/test_18427/MainActivity.java | 803b3f5c3728c8781307265bb90d6028ae5c5f8c | [] | no_license | crowdbotics-apps/test-18427 | 2b883ddcdc56021d05a59af23af30bf0c1cb9e6d | 2898c2a07b5cf483ad4b5d37d4f7ef0d8a1e21da | refs/heads/master | 2022-11-14T11:08:00.774149 | 2020-06-26T04:39:39 | 2020-06-26T04:39:39 | 275,074,421 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 365 | java | package com.test_18427;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "test_18427";
}
}
| [
"team@crowdbotics.com"
] | team@crowdbotics.com |
df9406d532557aa358792f8b0c5d6a007e23fd88 | 121967428155f8b6a37128c4c6d744f4412062db | /workspaces/spring-basic/04.spring-ioc-c/src/main/java/com/springexample/ioc/App.java | 59e40712a39b68d04099c720eea2b71dca9488c3 | [] | no_license | skwpp/kdigital-busan | c97bd3d0554b3a28dee85c5fd896c9b8e44b0072 | 1012c9f138821de13c83b20da4f4aa9b02053c7b | refs/heads/main | 2023-08-24T20:46:00.838511 | 2021-10-22T05:30:56 | 2021-10-22T05:30:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,058 | java | package com.springexample.ioc;
import java.lang.reflect.Constructor;
import java.util.Scanner;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
public class App {
public static void main(String[] args) {
// 1. 다른 클래스와 메서드를 사용하는 방법 1 -> 참조변수와 인스턴스 생성에서 클래스 이름 직접 사용
// MyServiceConsumer consumer1 = new MyServiceConsumer();
// consumer1.doSomething();
// 2. 다른 클래스와 메서드를 사용하는 방법 2 -> 참종에는 인터페이스 사용, 인스턴스 생성에는 클래스 사용
// ServiceConsumer consumer2 = new MyServiceConsumer();
// consumer2.doSomething();
// 3. 다른 클래스와 메서드를 사용하는 방법 3 -> 참종에는 인터페이스 사용, 인스턴스 생성은 리플렉션 사용
// try {
// Scanner scanner = new Scanner(System.in);
// System.out.println("생성할 클래스 이름 ( 예 : package.name.ClassName ) : ");
// String className = scanner.nextLine();
// Class claz = Class.forName(className); // Class.forName : 클래스 정보를 객체 만들기
// Constructor<?> ctor = claz.getConstructor(null); // 클래스 정보 객체로부터 생성자 메서드 관리 객체 만들기
// ServiceConsumer consumer3 = (ServiceConsumer)ctor.newInstance(); // 생성자 관리 객체로부터 인스턴스 만들기 ( new 대신 사용 )
// consumer3.doSomething();
// } catch (Exception ex) {
// ex.printStackTrace();
// }
// 4. 다른 클래스와 메서드를 사용하는 방법 4 -> 스프링 IoC 컨테이너를 사용해서 객체 생성 및 사용
AnnotationConfigApplicationContext appContext =
new AnnotationConfigApplicationContext(AppContext.class);
ServiceConsumer serviceConsumer = appContext.getBean("serviceConsumer", ServiceConsumer.class); // id가 serviceConsumer인 클래스의 인스턴를 요청
serviceConsumer.doSomething();
}
}
| [
"shared.repo.z@gmail.com"
] | shared.repo.z@gmail.com |
66fd74b0e41ecc74002b947ccfe7f950f540b924 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /java/java-tests/testData/codeInsight/completion/keywords/defaultInAnno.java | c07be64c037f06dd7b82defc8411fb9cfda661f7 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Java | false | false | 44 | java | @interface Foo {
String foo() def<caret>
} | [
"peter.gromov@jetbrains.com"
] | peter.gromov@jetbrains.com |
0e5a22da20889280ead0d13865872edb7a52ee37 | 4b7d5e0cb1789ee581a2f8151446687b049c6c43 | /src/main/java/cn/miaosha/App.java | 292fc22aef6563d8bb501153d8bf16e4cb1169a6 | [] | no_license | mask-fish/miaosha | b3e7781dadcf3aaa71c1e77d36763051143d03d9 | d0cafcff9fc5cd6efdbecb8c891f6917286de0e0 | refs/heads/master | 2022-07-10T14:44:55.549850 | 2019-05-31T09:31:08 | 2019-05-31T09:31:08 | 187,465,476 | 0 | 0 | null | 2021-06-04T22:00:59 | 2019-05-19T11:00:29 | JavaScript | UTF-8 | Java | false | false | 1,223 | java | package cn.miaosha;
import cn.miaosha.dao.UserDOMapper;
import cn.miaosha.dataobject.UserDO;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* Hello world!
*/
//@EnableAutoConfiguration //springboot自动提供一个内置的tomcat并加载默认的配置
@SpringBootApplication(scanBasePackages = {"cn.miaosha"})
@RestController
@MapperScan("cn.miaosha.dao")
public class App {
@Autowired
private UserDOMapper userDOMapper;
@RequestMapping("/")
public String home() {
UserDO userDO = userDOMapper.selectByPrimaryKey(1);
if (userDO == null) {
return "用户不存在";
} else {
return userDO.getName();
}
}
public static void main(String[] args) {
System.out.println("Hello World!");
SpringApplication.run(App.class, args);
}
}
| [
"fanluheng826@163.com"
] | fanluheng826@163.com |
b49f834eb666bf44d2d55d59f881544414bb1a07 | e4af84dcc86b7eb620a5da0e9ba9b54d6c86fa95 | /Call-of-Taco-master/Call-of-Taco-master/Taco.java | 1266f1b9d3ee9b4f23ac1439cbc987f2ec9d88ca | [] | no_license | Shatbai/Call-of-Taco | 751bb8bde038f52ce8a0a207726106f45571dcad | 565d73c48fce7f9fa89526e37553bae4a167ac14 | refs/heads/master | 2020-05-16T12:29:19.277201 | 2019-04-12T16:28:11 | 2019-04-12T16:28:11 | 183,046,804 | 0 | 0 | null | 2019-04-23T15:42:28 | 2019-04-23T15:42:27 | null | UTF-8 | Java | false | false | 2,674 | java | import java.util.Scanner;
public abstract class Taco extends Personaje{
private AtaqueEspecial[] especiales;
private Condimento[] morral;
private int golpeF;
private int numVidas=3;
public Taco(String tipo, int hp, int energia, int ataque, int defensa, int golpeF){
super(tipo, hp, energia, ataque, defensa);
morral= new Condimento[10];
this.golpeF=golpeF;
}
public AtaqueEspecial[] getespeciales(){
return especiales;
}
public void setAtaqueEspecial(AtaqueEspecial[] especiales){
this.especiales=especiales;
}
public Condimento[] getMorral(){
return morral;
}
public void addCondimentotoMorral(Condimento c, int index){
morral[index]=c;
}
public void removeCondimentoToMorral(int index){
morral[index]=null;
}
public String dameInventario(){
String resultado="Morral: [";
for(int i=0; i<morral.length; i++){
if(morral[i]!=null){
resultado=resultado+" Condimento: "+morral[i].getNombre()+" puntos: "+morral[i].getPuntos()+",";
}
else{
resultado=resultado+"Vacío, ";
}
}
resultado=resultado+"]";
return resultado;
}
public String verMiAtaqueEspecial(){
String resultado="Ataques Especiales: [";
for(int i=0;i<especiales.length;i++){
resultado= resultado+" Ataque Especial: "
+especiales[i].getNombre()
+" puntos: "+ especiales[i].getPuntosEspeciales()+",";
}
resultado= resultado+"]";
return resultado;
}
public void atacar(Personaje enemigo){
System.out.println("1)GOLPE NOMAL 2)GOLPE FUERTE");
Scanner sc= new Scanner(System.in);
int golpe=sc.nextInt();
switch(golpe){
case 1:
super.atacar(enemigo);
break;
case 2:
enemigo.setHp(enemigo.getHp()-(golpeF-enemigo.getDefensa()));
setEnergia(getEnergia()-5);
}
}
public void atacar(Personaje enemigo, Condimento condimento,int index){
if(getEnergia()>=condimento.getGastoE()){
if(condimento.getClass()==Arma.class){
enemigo.setHp(enemigo.getHp()-(condimento.getPuntos()+getAtaque()-enemigo.getDefensa()));
setEnergia(getEnergia()-condimento.getGastoE());
removeCondimentoToMorral(index);
}else{
setHp(getHp()+enemigo.getAtaque()-getDefensa());
enemigo.setHp(enemigo.getHp()-(enemigo.getAtaque()));
setEnergia(getEnergia()-condimento.getGastoE());
removeCondimentoToMorral(index);
}
}else{
System.out.println("UPS, no tienes suficiente energía, pierdes tú turno");
}
}
public void atacar(Personaje enemigo, AtaqueEspecial AE){
enemigo.setHp(enemigo.getHp()-(AE.getPuntosEspeciales()-enemigo.getDefensa()));
}
public int getNumVidas(){
return numVidas;
}
public void setNumVidas(int numVidas){
this.numVidas=numVidas;
}
}
| [
"noreply@github.com"
] | Shatbai.noreply@github.com |
95e875343c739f306d3e6dbfb73560051cfbdd4f | 6a0e49483ff114efcaa6f80f93cf1869d04ee9b9 | /src/pkg12u/assignment1/A1Q7.java | 6782228357f4514a062c0bc553f0b32960fa1955 | [] | no_license | dreagavris/12U-Assignment1 | e905cd78927209a4558772cc1207e186e8f425f7 | 7ca095fc2b73236e58276b623a1719781b3e29a3 | refs/heads/master | 2021-06-30T06:26:24.916558 | 2017-09-18T13:26:43 | 2017-09-18T13:26:43 | 103,943,167 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 876 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pkg12u.assignment1;
/**
*
* @author andreeagavris
*/
public class A1Q7 {
public static void main(String[] args) {
//integer creater for the number of years (1999)
int years = 1999;
// double created for the max population of 10 billion
double maxP = 10;
//double for population in 1999 6 billion
double population = 6;
// double for the growing rate
double rate = 0.014;
for(double i = population; i < maxP; i += (i * rate)) {
years++;
}
System.out.println("The world population will exceed 10 billion in " +years+ "years (1999).");
}
}
| [
"andreeagavris@172.21.66.180"
] | andreeagavris@172.21.66.180 |
fd25d49183b1f0d101f92def9117c6f5a252a12e | 0ab923d4f00a2fc28f2a64db3eccfd3432727a33 | /flipkart/src/programs/linkedList.java | ef46e3caabaee10990f0eb926eb0cf12ac754d1b | [] | no_license | Nikitas945/TestNgCode | cf927b664adc3df01556c64ad71860113286262f | 829bc90f3f79509ee65f9088e75544679d393eb2 | refs/heads/master | 2016-09-06T05:45:04.279478 | 2014-07-22T17:27:10 | 2014-07-22T17:27:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 778 | java | package programs;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Set;
import org.apache.xml.dtm.ref.DTMDefaultBaseIterators.DescendantIterator;
import org.testng.collections.Sets;
public class linkedList {
public static void main(String[] args) {
LinkedList<String > list=new LinkedList<>();
list.add("nikita");
list.add("abhi");
list.add("peter");
System.out.println(list.get(2));
list.set(2, "roy");
list.addFirst("williams");
System.out.println(list.clone());
System.out.println(list.size());
Iterator<String > it=list.iterator();
while(list.descendingIterator().hasNext())
{
System.out.println(it.next());
}
// for(Object obj :list)
// {
// System.out.println(obj);
// }
//
}
}
| [
"nikitas945@gmail.com"
] | nikitas945@gmail.com |
9601e677a2f222190143ba82ca62e1405fee690c | a68d88d1919040f8f354a3519f13ca0295b1cb2d | /src/ga_solver/Population.java | ff764eac805cefc30ef5c0b3714b3b9ac1c657cf | [] | no_license | bbobox/genetic-algorithm | 6501a651986773ac6bed515d845549f89c16e9af | 6d7e6d2656730bad520e5005d19e116aad9f8d87 | refs/heads/master | 2020-03-28T13:22:21.736810 | 2019-02-19T09:59:58 | 2019-02-19T09:59:58 | 148,389,354 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,051 | java | package ga_solver;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Random;
import operators.MutationBitFlip;
import operators.MutationNFilps;
import operators.Operator;
import operators.OperatorMutation;
import operators.Operators;
/**
* Cette classe represente le solveur du l'algorithme genetique et
* ses composantes
* @author boka
*
*/
public interface Population<T> {
/**
* Modification du nombre total de population/iles (population voisines+1)
* @param nb
*/
public void setNbPop(int nb);
public int getPopulationSize();
/**
* @param nbParents : le nombre d'individus à selectionnés
* à l'initialization
*/
public void initialization();
/**
* Definition d el'ile d'appartenance de l'ensemble des individus de la population
*/
public void assignIndividualsToPopulation(int i);
/**
* Recupere de la population actuelle
* @return
*/
public ArrayList<Individual> getCurrentPopulation();
/**
* Affichage d'un sensemble d 'individus
*/
public void printSetOfIndividuals( ArrayList<Individual> set);
/**
* Verifie les critrère de l'algortithme et renvoie
* 'true" si l'objectif est atteint
*/
public boolean hasBestIndividual();
/**
* Selection des deux meilleurs parents
*/
public void bestSelection();
/**
* Selection des individus par tournoi
* @param T : nombre d 'individus selectionnés T € [2,populationSize]
*/
public void tournamentSelection(int T);
/**
* Selection aleatoire de deux parents
*/
public void randomSelection();
/**
* Retourne le meilleure fitness de la population
*/
public T bestFitness();
/**
* Affiche du meilleur fitness en fonction du nombre d'iterations
*/
public void printPerformance();
/**
* Lancement de la recherche de solution (Steady State)
*/
public T[] run(int selection, int crossover, int mutation, int insertion);
/**
* Recherche de solution avec gestion automatique du choix de l'opérateur de mutation: Roulette Adaptative
*/
public T[] runByAdaptativeWheel(int selection, int crossover, int insertion);
/**
* Effectue un choix aleatoire en fonction d'une proabilite
* donnée
* @param probalility : probabilite du choix
* @return
*/
public boolean probableChoice(double probalility);
/**
* Choix aleatoire d'un entier correspondant à l'indice
* d'un bit dans la representation
* @return
*/
public int randomChoice();
/**
* Application d'une methode de selection
* @param type
*/
public void selectionApplication(int type);
/**
* Application d'un methode de croisement
* @param type
*/
public void crossoverApplication(int type);
/**
* Application d'une methode par selection adaptative
* @param type
*/
public void adaptiveWheelMutationApplication(int type);
/**
* Application d'une methode de mutation
* @param type
*/
public void mutationApplication(int type);
/**
* Application d'une methode d'insertion
* @param type
*/
public void insertionApplication(int type);
/*
* Compte le nombre de bit à 1
*/
int onesCounter(int[] rep);
/**
* Calcule de la moyenne des resultats obtenus lors des exécutions
* @param executions : ensemble des resultats d'executions
* @param iterMax : nombre maximum d'iterations
* @return
*/
//double[] average(ArrayList<int[]> executions, int iterMax);
/**
* Affichage des valeurs d'un tableau répresentatif des exécutions
* @param array
*/
// printArray(double[] array);
/**
* Evolutation de la population lors en seul itération
*/
public void evolution(int selection, int crossover, int mutation, int insertion);
/**
* Recherche d'un individu de meilleur qualité
*/
public Individual getBestIndividual();
/**
* Ajout d'un individu dans la population
* @param id
*/
public void addIndividual(Individual id);
/**
* Suppression d'un individu de la population
* @param ind : indice/position de l'individu
*/
public void removeIndividual(int position);
/**
* Suppression d'un individu de la population
* @param id : Individu
*/
public void removeIndividual(Individual id);
public double[][] getChoiceProba();
//void printDataInFile(String outputFile, double[] data) throws IOException;
/**
* Calcul de la moyenne des probas d'un opérateurs sur l'ensemble des exécutions
* @param choicesProba : Ensemble des données recoltés sur l'ensemble des exécutions
* @param operatorID : Id de l'opérateur
* @param iter : nombre max d'itérations
* @return
*/
// double[] operatorAverageProba(ArrayList<double[][]> choicesProba, int operatorID, int iter);
//void outPutAllAverage(ArrayList<double[][]> choicesProba , int iter, int n) throws IOException;
/**
* Application de l'operateur de mutation sur l'ensemble des individus
* @param type: opératteur de mutation à utiliser
*/
public void overallMutationApplication(int type);
public void islandEvolution(int selection, int crossover, int mutation, int insertion, int generation);
/**
* Mise à jour et recupération des fitness et des population d'origine
* Avavant l'application de l'evolutuion
*/
public void updateFitnessBeforeEvolution();
/**
* Mise à jour et recupération des fitness et des population d'origine
* Avavant l'application de l'evolutuion
*/
public void updateFitnessAfterEvolution();
/**
* Met à jour l'etat d'amelioration des individus
*/
public void improvedIndividual();/*{
}*/
/**
* Mise à jour de l'ensemble des populations présente
*/
public void updateOriginOfIndividuals();
/**
* Calcul de l'ensemble des amélorations des individus provenants de chaque iles
*/
public void computeImprovements();
/**
* Recuperation de la liste des
* @return
*/
public double[] getAverageImprovements();
public void initArray(double[] t);
}
| [
"gboka@yahoo.fr"
] | gboka@yahoo.fr |
7bfb55eab6a11f34acb6f59f1d500809cf136172 | 447561a8b8dbb73f13366f2f2469e826e016fe5b | /lab7/optional/src/game/Game.java | 2ffce6ef5a379a3e90f68db73cf94dca6e6d3abe | [] | no_license | TomaFlorinUngureanu/FII-JAVA | d46dc2df09ef392b404172998b3313ca6b4ae045 | 3b058394a9d63d981e486d3368b39c61183bc822 | refs/heads/master | 2022-03-26T23:09:48.555664 | 2020-01-22T04:32:34 | 2020-01-22T04:32:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,917 | java | package game;
import player.Player;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
/**
* @author Toma-Florin Ungureanu
*/
public abstract class Game
{
private Board board;
private Player winner;
private static final TimeKeeper timeKeeper = new TimeKeeper();
private final LinkedList<Player> players = new LinkedList<>();
/**
* Method to add a player to the game
* @param player to be added
*/
public void addPlayer(Player player)
{
players.add(player);
player.setGame(this);
}
public void setEndGame(boolean val)
{
timeKeeper.setEndGame(val);
}
public void setWinner(Player player)
{
this.winner = player;
}
public Board getBoard()
{
return board;
}
public TimeKeeper getTimeKeeper()
{
return timeKeeper;
}
public void setBoard(Board board)
{
this.board = board;
}
/**
* Method to start the task of each player to extract one edge at a time
*/
public void start()
{
//This is with Array of threads
// List<Thread> threads = new ArrayList<>();
// List<Runnable> runnables = new ArrayList<>();
// for (int player = 0; player < players.size(); player++)
// {
// runnables.add(players.get(player));
// threads.add(new Thread(runnables.get(player)));
// threads.get(player).start();
// }
//This is with thread pool
ThreadPoolExecutor tpe = (ThreadPoolExecutor) Executors.newFixedThreadPool(players.size() + 1);
Thread daemon = new Thread(timeKeeper);
daemon.setDaemon(true);
daemon.start();
for (Player player : players)
{
tpe.execute(player);
}
tpe.shutdown();
}
}
| [
"toma.florin.ungureanu@gmail.com"
] | toma.florin.ungureanu@gmail.com |
a43ea6e0715f8e88e99328541c53daf762d921ed | 2fd9d77d529e9b90fd077d0aa5ed2889525129e3 | /DecompiledViberSrc/app/src/main/java/com/viber/voip/messages/orm/entity/json/action/MessageOpenUrlAction.java | 2ddca4ec7eef6772a2c2c7721b6735f398d60f62 | [] | no_license | cga2351/code | 703f5d49dc3be45eafc4521e931f8d9d270e8a92 | 4e35fb567d359c252c2feca1e21b3a2a386f2bdb | refs/heads/master | 2021-07-08T15:11:06.299852 | 2021-05-06T13:22:21 | 2021-05-06T13:22:21 | 60,314,071 | 1 | 3 | null | null | null | null | UTF-8 | Java | false | false | 3,487 | java | package com.viber.voip.messages.orm.entity.json.action;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.viber.voip.util.links.MessageOpenUrlSpec;
import com.viber.voip.util.links.SimpleOpenUrlSpec;
public class MessageOpenUrlAction extends OpenUrlAction
{
public static final Parcelable.Creator<MessageOpenUrlAction> CREATOR = new Parcelable.Creator()
{
public MessageOpenUrlAction createFromParcel(Parcel paramAnonymousParcel)
{
return new MessageOpenUrlAction(paramAnonymousParcel);
}
public MessageOpenUrlAction[] newArray(int paramAnonymousInt)
{
return new MessageOpenUrlAction[paramAnonymousInt];
}
};
private long mConversationId;
private int mConversationType;
private boolean mIsSecret;
MessageOpenUrlAction(Parcel paramParcel)
{
super(paramParcel);
this.mConversationId = paramParcel.readLong();
this.mConversationType = paramParcel.readInt();
if (paramParcel.readByte() != 0);
for (boolean bool = true; ; bool = false)
{
this.mIsSecret = bool;
return;
}
}
private MessageOpenUrlAction(MessageOpenUrlAction paramMessageOpenUrlAction)
{
super(paramMessageOpenUrlAction);
this.mConversationId = paramMessageOpenUrlAction.mConversationId;
this.mConversationType = paramMessageOpenUrlAction.mConversationType;
this.mIsSecret = paramMessageOpenUrlAction.mIsSecret;
}
private MessageOpenUrlAction(OpenUrlAction paramOpenUrlAction)
{
super(paramOpenUrlAction);
}
public MessageOpenUrlAction(String paramString)
{
super(paramString);
}
public static MessageOpenUrlAction from(MessageOpenUrlAction paramMessageOpenUrlAction)
{
return new MessageOpenUrlAction(paramMessageOpenUrlAction);
}
public static MessageOpenUrlAction from(OpenUrlAction paramOpenUrlAction)
{
return new MessageOpenUrlAction(paramOpenUrlAction);
}
protected SimpleOpenUrlSpec createUrlSpec()
{
return new MessageOpenUrlSpec(this.mUrl, this.mConversationId, this.mConversationType, this.mIsSecret, this.mExternal, true);
}
public long getConversationId()
{
return this.mConversationId;
}
public int getConversationType()
{
return this.mConversationType;
}
public void setConversationId(long paramLong)
{
this.mConversationId = paramLong;
invalidateUrlSpec();
}
public void setConversationType(int paramInt)
{
this.mConversationType = paramInt;
invalidateUrlSpec();
}
public void setIsSecret(boolean paramBoolean)
{
this.mIsSecret = paramBoolean;
invalidateUrlSpec();
}
public String toString()
{
return "MessageOpenUrlAction{mConversationId=" + this.mConversationId + "mConversationType=" + this.mConversationType + ", mIsSecret=" + this.mIsSecret + '}';
}
public void writeToParcel(Parcel paramParcel, int paramInt)
{
super.writeToParcel(paramParcel, paramInt);
paramParcel.writeLong(this.mConversationId);
paramParcel.writeInt(this.mConversationType);
if (this.mIsSecret);
for (int i = 1; ; i = 0)
{
paramParcel.writeByte((byte)i);
return;
}
}
}
/* Location: E:\Study\Tools\apktool2_2\dex2jar-0.0.9.15\classes_viber_3_dex2jar.jar
* Qualified Name: com.viber.voip.messages.orm.entity.json.action.MessageOpenUrlAction
* JD-Core Version: 0.6.2
*/ | [
"yu.liang@navercorp.com"
] | yu.liang@navercorp.com |
13a33a53dc3e34ae6e7f87d1c34825ef258d3c83 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/2/2_af381857b759f605e8a317b8484ec8840144fe87/WarMapper/2_af381857b759f605e8a317b8484ec8840144fe87_WarMapper_t.java | fb00720b5fbf006f04709031db0007e8d70e17d8 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 10,093 | java | package com.tommytony.war.mappers;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.logging.Level;
import org.bukkit.block.BlockFace;
import org.bukkit.inventory.ItemStack;
import bukkit.tommytony.war.War;
import com.tommytony.war.TeamSpawnStyles;
import com.tommytony.war.WarHub;
import com.tommytony.war.Warzone;
import com.tommytony.war.jobs.RestoreWarhubJob;
import com.tommytony.war.jobs.RestoreWarzonesJob;
/**
*
* @author tommytony
*
*/
public class WarMapper {
public static void load(War war) {
// war.getLogger().info("Loading war config...");
(war.getDataFolder()).mkdir();
(new File(war.getDataFolder().getPath() + "/dat")).mkdir();
PropertiesFile warConfig = new PropertiesFile(war.getDataFolder().getPath() + "/war.txt");
try {
warConfig.load();
} catch (IOException e) {
war.log("Failed to load war.txt file.", Level.WARNING);
e.printStackTrace();
}
// Create file if need be
boolean newWar = false;
if (!warConfig.containsKey("warzones")) {
newWar = true;
WarMapper.save(war);
war.log("war.txt settings file created.", Level.INFO);
try {
warConfig.load();
} catch (IOException e) {
war.log("Failed to reload war.txt file after creating it.", Level.WARNING);
e.printStackTrace();
}
}
// warzones
String warzonesStr = warConfig.getString("warzones");
RestoreWarzonesJob restoreWarzones = new RestoreWarzonesJob(war, warzonesStr, newWar);
if (war.getServer().getScheduler().scheduleSyncDelayedTask(war, restoreWarzones) == -1) {
war.log("Failed to schedule warzone-restore job. No warzone was loaded.", Level.WARNING);
}
// zone makers
String[] makers = warConfig.getString("zoneMakers").split(",");
war.getZoneMakerNames().clear();
for (String makerName : makers) {
if (makerName != null && !makerName.equals("")) {
war.getZoneMakerNames().add(makerName);
}
}
// command whitelist
String[] whitelist = warConfig.getString("commandWhitelist").split(",");
war.getCommandWhitelist().clear();
for (String command : whitelist) {
if (command != null && !command.equals("")) {
war.getCommandWhitelist().add(command);
}
}
// defaultLoadout
String defaultLoadoutStr = warConfig.getString("defaultLoadout");
String[] defaultLoadoutSplit = defaultLoadoutStr.split(";");
war.getDefaultLoadout().clear();
for (String itemStr : defaultLoadoutSplit) {
if (itemStr != null && !itemStr.equals("")) {
String[] itemStrSplit = itemStr.split(",");
ItemStack item = new ItemStack(Integer.parseInt(itemStrSplit[0]), Integer.parseInt(itemStrSplit[1]));
war.getDefaultLoadout().put(Integer.parseInt(itemStrSplit[2]), item);
}
}
// defaultLifePool
war.setDefaultLifepool(warConfig.getInt("defaultLifePool"));
// defaultMonumentHeal
war.setDefaultMonumentHeal(warConfig.getInt("defaultMonumentHeal"));
// defaultFriendlyFire
war.setDefaultFriendlyFire(warConfig.getBoolean("defaultFriendlyFire"));
// defaultAutoAssignOnly
war.setDefaultAutoAssignOnly(warConfig.getBoolean("defaultAutoAssignOnly"));
// defaultTeamCap
war.setDefaultTeamCap(warConfig.getInt("defaultTeamCap"));
// defaultScoreCap
war.setDefaultScoreCap(warConfig.getInt("defaultScoreCap"));
// pvpInZonesOnly
war.setPvpInZonesOnly(warConfig.getBoolean("pvpInZonesOnly"));
// defaultBlockHeads
war.setDefaultBlockHeads(warConfig.getBoolean("defaultBlockHeads"));
// buildInZonesOnly
war.setBuildInZonesOnly(warConfig.getBoolean("buildInZonesOnly"));
// disablePVPMessage
war.setDisablePvpMessage(warConfig.getBoolean("disablePvpMessage"));
// defaultSpawnStyle
String spawnStyle = warConfig.getString("defaultspawnStyle");
if (spawnStyle != null && !spawnStyle.equals("")) {
spawnStyle = spawnStyle.toLowerCase();
if (spawnStyle.equals(TeamSpawnStyles.SMALL)) {
war.setDefaultSpawnStyle(spawnStyle);
} else if (spawnStyle.equals(TeamSpawnStyles.FLAT)) {
war.setDefaultSpawnStyle(spawnStyle);
} else if (spawnStyle.equals(TeamSpawnStyles.INVISIBLE)) {
war.setDefaultSpawnStyle(spawnStyle);
}
// default is already initialized to BIG (see Warzone)
}
// defaultReward
String defaultRewardStr = warConfig.getString("defaultReward");
if (defaultRewardStr != null && !defaultRewardStr.equals("")) {
String[] defaultRewardStrSplit = defaultRewardStr.split(";");
war.getDefaultReward().clear();
for (String itemStr : defaultRewardStrSplit) {
if (itemStr != null && !itemStr.equals("")) {
String[] itemStrSplit = itemStr.split(",");
ItemStack item = new ItemStack(Integer.parseInt(itemStrSplit[0]), Integer.parseInt(itemStrSplit[1]));
war.getDefaultReward().put(Integer.parseInt(itemStrSplit[2]), item);
}
}
}
// defaultUnbreakableZoneBlocks
war.setDefaultUnbreakableZoneBlocks(warConfig.getBoolean("defaultUnbreakableZoneBlocks"));
// defaultNoCreatures
war.setDefaultNoCreatures(warConfig.getBoolean("defaultNoCreatures"));
// defaultDropLootOnDeath
// war.setDefaultDropLootOnDeath(warConfig.getBoolean("defaultDropLootOnDeath"));
// defaultResetOnEmpty
war.setDefaultResetOnEmpty(warConfig.getBoolean("defaultResetOnEmpty"));
// defaultResetOnLoad
war.setDefaultResetOnLoad(warConfig.getBoolean("defaultResetOnLoad"));
// defaultResetOnUnload
war.setDefaultResetOnUnload(warConfig.getBoolean("defaultResetOnUnload"));
// warhub
String hubStr = warConfig.getString("warhub");
if (hubStr != null && !hubStr.equals("")) {
RestoreWarhubJob restoreWarhub = new RestoreWarhubJob(war, hubStr);
if (war.getServer().getScheduler().scheduleSyncDelayedTask(war, restoreWarhub) == -1) {
war.log("Failed to schedule warhub-restore job. War hub was not loaded.", Level.WARNING);
}
}
warConfig.close();
}
public static void save(War war) {
PropertiesFile warConfig = new PropertiesFile(war.getDataFolder().getPath() + "/war.txt");
String warzonesStr = "";
// warzones
for (Warzone zone : war.getWarzones()) {
warzonesStr += zone.getName() + ",";
}
warConfig.setString("warzones", warzonesStr);
// zone makers: default is none and it means everyone can use /setzone
String makersStr = ""; // everyone
for (String name : war.getZoneMakerNames()) {
makersStr += name + ",";
}
warConfig.setString("zoneMakers", makersStr);
// whitelisted commands during a game
String commandWhitelistStr = ""; // everyone
for (String command : war.getCommandWhitelist()) {
commandWhitelistStr += command + ",";
}
warConfig.setString("commandWhitelist", commandWhitelistStr);
// defaultLoadout
String defaultLoadoutStr = "";
HashMap<Integer, ItemStack> items = war.getDefaultLoadout();
for (Integer slot : items.keySet()) {
ItemStack item = items.get(slot);
if (item != null) {
defaultLoadoutStr += item.getTypeId() + "," + item.getAmount() + "," + slot + ";";
}
}
warConfig.setString("defaultLoadout", defaultLoadoutStr);
// defaultLifepool
warConfig.setInt("defaultLifePool", war.getDefaultLifepool());
// defaultMonumentHeal
warConfig.setInt("defaultMonumentHeal", war.getDefaultMonumentHeal());
// defaultFriendlyFire
warConfig.setBoolean("defaultFriendlyFire", war.getDefaultFriendlyFire());
// defaultAutoAssignOnly
warConfig.setBoolean("defaultAutoAssignOnly", war.getDefaultAutoAssignOnly());
// defaultTeamCap
warConfig.setInt("defaultTeamCap", war.getDefaultTeamCap());
// defaultScoreCap
warConfig.setInt("defaultScoreCap", war.getDefaultScoreCap());
// pvpInZonesOnly
warConfig.setBoolean("pvpInZonesOnly", war.isPvpInZonesOnly());
// defaultBlockHeads
warConfig.setBoolean("defaultBlockHeads", war.isDefaultBlockHeads());
// buildInZonesOnly
warConfig.setBoolean("buildInZonesOnly", war.isBuildInZonesOnly());
// disablePVPMessage
warConfig.setBoolean("disablePvpMessage", war.isDisablePvpMessage());
// spawnStyle
warConfig.setString("spawnStyle", war.getDefaultSpawnStyle());
// defaultReward
String defaultRewardStr = "";
HashMap<Integer, ItemStack> rewardItems = war.getDefaultReward();
for (Integer slot : rewardItems.keySet()) {
ItemStack item = items.get(slot);
if (item != null) {
defaultRewardStr += item.getTypeId() + "," + item.getAmount() + "," + slot + ";";
}
}
warConfig.setString("defaultReward", defaultRewardStr);
// defaultUnbreakableZoneBlocks
warConfig.setBoolean("defaultUnbreakableZoneBlocks", war.isDefaultUnbreakableZoneBlocks());
// defaultNoCreatures
warConfig.setBoolean("defaultNoCreatures", war.isDefaultNoCreatures());
// defaultResetOnEmpty
warConfig.setBoolean("defaultResetOnEmpty", war.isDefaultResetOnEmpty());
// defaultResetOnLoad
warConfig.setBoolean("defaultResetOnLoad", war.isDefaultResetOnLoad());
// defaultResetOnUnload
warConfig.setBoolean("defaultResetOnUnload", war.isDefaultResetOnUnload());
// defaultDropLootOnDeath
// warConfig.setBoolean("defaultDropLootOnDeath", war.isDefaultDropLootOnDeath());
// warhub
String hubStr = "";
WarHub hub = war.getWarHub();
if (hub != null) {
String orientationStr = "";
if (BlockFace.SOUTH == hub.getOrientation()) {
orientationStr = "south";
} else if (BlockFace.EAST == hub.getOrientation()) {
orientationStr = "east";
} else if (BlockFace.NORTH == hub.getOrientation()) {
orientationStr = "north";
} else {
orientationStr = "west";
}
hubStr = hub.getLocation().getBlockX() + "," + hub.getLocation().getBlockY() + "," + hub.getLocation().getBlockZ() + ","
+ hub.getLocation().getWorld().getName() + "," + orientationStr;
VolumeMapper.save(hub.getVolume(), "", war);
}
warConfig.setString("warhub", hubStr);
warConfig.save();
warConfig.close();
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
3f2b9062f0fb04333224e8c9a4d2ce9a6892a9e0 | 2bffe8f247408133418749eab6205f5a97c8b400 | /data-capture-service/src/main/java/com/data/service/IJwtService.java | 7ccd86e5e1635ab0846e59297da9bdce6a084fb2 | [] | no_license | wzqTarro/dataCapture | 9681ca4c8d5a9a5947ff24c4469814511894cbc1 | e22ea1a3181463c1c9c10114a519302ddc79d948 | refs/heads/master | 2020-03-26T14:45:43.145705 | 2019-02-03T05:39:06 | 2019-02-03T05:39:06 | 145,003,464 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 411 | java | package com.data.service;
import java.util.Map;
import com.data.utils.ResultUtil;
/**
* jwt服务接口
* @author Administrator
*
*/
public interface IJwtService {
/**
* 生成token令牌
* @param params
* @return
*/
ResultUtil createToken(Map<String, Object> params);
/**
* 校验token
* @param token
* @return
*/
ResultUtil checkToken(String token);
}
| [
"1109504613@qq.com"
] | 1109504613@qq.com |
89df1736011d818667fbbd3bb6d34b01f6f12250 | 55938a11967490f163ab9969cf4d13c02d2d0a3a | /1.10.2/src/main/java/Aarron/WallpaperCraft/blocks/dotted/DottedBlue.java | 80ec2b16de064d60b086cfc3ebe4054f87e4fbfb | [
"MIT"
] | permissive | immortalcatz/WallpaperCraft | fb30d726b6a7c53926d810312fe178dd80c860c4 | 2a6cd9ca50f09c84178e688ed98c931d9882877e | refs/heads/master | 2021-01-02T09:41:27.635527 | 2017-01-19T22:06:46 | 2017-01-19T22:06:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 784 | java | package Aarron.WallpaperCraft.blocks.dotted;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyEnum;
import Aarron.WallpaperCraft.blockStates.BlockStates;
import Aarron.WallpaperCraft.blockStates.BlockTypes;
import Aarron.WallpaperCraft.blocks.IMetaBlock;
public class DottedBlue extends IMetaBlock<BlockTypes> {
public DottedBlue() {
super(Material.WOOD, "dottedblue");
this.setSoundType(SoundType.WOOD);
}
@Override
protected BlockTypes getDefaultStateVariant() {
return BlockTypes.Zero;
}
@Override
protected BlockTypes fromMeta(int meta) {
return BlockTypes.fromMeta(meta);
}
@Override
protected PropertyEnum<BlockTypes> getVariantEnum() {
return BlockStates.WPblocks;
}
} | [
"aarronkmcdonald@gmail.com"
] | aarronkmcdonald@gmail.com |
1a74e5184742af985405664ec17551d21c00d6ec | fcc158bc9427d5aa494eb3dac742c2997ee32563 | /app/src/main/java/com/example/adam/criminalintent/CrimeActivity.java | 96a26f4be40dcc216b8e8a0e4cfbd1c223989bcb | [] | no_license | timeshipadam/AndroidBigNerdCriminal | eaae9ae90d27e5892f7271ed11b981e7249bbaf8 | 4f51a99d6964c208dd60e4bcdfb59fd11fb47631 | refs/heads/master | 2020-12-24T19:13:01.664625 | 2016-05-05T15:04:25 | 2016-05-05T15:04:25 | 58,139,259 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 860 | java | package com.example.adam.criminalintent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
public class CrimeActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_crime);
FragmentManager fm = getSupportFragmentManager();
Fragment fragment = fm.findFragmentById(R.id.fragment_container);
if(fragment == null){
fragment = new CrimeFragment();
fm.beginTransaction()
.add(R.id.fragment_container, fragment)
.commit();
}
}
}
| [
"adam.boyle@hotmail.com"
] | adam.boyle@hotmail.com |
6322066e16e705c60049d402d62a88ad97d69bc6 | 8aea4bea67e092033dd8c94964cc0cf3741e57b3 | /library/src/main/java/com/novoda/storagepathfinder/DeviceStorageRoot.java | 777cbb6ca3ccedd6ca5073e1b276d817c375a94c | [
"Apache-2.0"
] | permissive | novoda/storage-path-finder | 3623784442999f25cdf63cbbfc3d17f81372edd4 | 604f828fac2f6ce2f1e59d68d734326b5efa813e | refs/heads/master | 2022-02-20T13:36:26.106104 | 2022-02-11T01:28:45 | 2022-02-11T01:28:45 | 137,759,424 | 4 | 0 | Apache-2.0 | 2022-02-11T01:28:03 | 2018-06-18T14:06:29 | Java | UTF-8 | Java | false | false | 1,886 | java | package com.novoda.storagepathfinder;
import java.io.File;
/**
* Wrapper around a string for a Storage root.
*/
public class DeviceStorageRoot {
public enum Type {
PRIMARY,
SECONDARY
}
private final String basePath;
private final String absolutePath;
private final Type type;
DeviceStorageRoot(String basePath, String absolutePath, Type type) {
this.basePath = basePath;
this.absolutePath = absolutePath;
this.type = type;
}
public String getBasePath() {
return basePath;
}
public String getAbsolutePath() {
return absolutePath;
}
public Type getType() {
return type;
}
public File asFile() {
return new File(absolutePath);
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeviceStorageRoot that = (DeviceStorageRoot) o;
if (basePath != null ? !basePath.equals(that.basePath) : that.basePath != null) {
return false;
}
if (absolutePath != null ? !absolutePath.equals(that.absolutePath) : that.absolutePath != null) {
return false;
}
return type == that.type;
}
@Override
public int hashCode() {
int result = basePath != null ? basePath.hashCode() : 0;
result = 31 * result + (absolutePath != null ? absolutePath.hashCode() : 0);
result = 31 * result + (type != null ? type.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "DeviceStorageRoot{"
+ "basePath='" + basePath + '\''
+ ", absolutePath='" + absolutePath + '\''
+ ", type=" + type
+ '}';
}
}
| [
"ryan.feline@novoda.com"
] | ryan.feline@novoda.com |
52c4ba21d0d340b6c4206ffd9b65f657179b8e14 | 377405a1eafa3aa5252c48527158a69ee177752f | /src/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory$BoundField.java | 11f435615b447f79c7e8a9e6131f3a47b8a710d5 | [] | no_license | apptology/AltFuelFinder | 39c15448857b6472ee72c607649ae4de949beb0a | 5851be78af47d1d6fcf07f9a4ad7f9a5c4675197 | refs/heads/master | 2016-08-12T04:00:46.440301 | 2015-10-25T18:25:16 | 2015-10-25T18:25:16 | 44,921,258 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 926 | java | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.google.gson.internal.bind;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
// Referenced classes of package com.google.gson.internal.bind:
// ReflectiveTypeAdapterFactory
static abstract class deserialized
{
final boolean deserialized;
final String name;
final boolean serialized;
abstract void read(JsonReader jsonreader, Object obj)
throws IOException, IllegalAccessException;
abstract void write(JsonWriter jsonwriter, Object obj)
throws IOException, IllegalAccessException;
protected (String s, boolean flag, boolean flag1)
{
name = s;
serialized = flag;
deserialized = flag1;
}
}
| [
"rich.foreman@apptology.com"
] | rich.foreman@apptology.com |
6e869bb129bedbd374b29cad9e0a2923e7c527d3 | 6e2e518e684008103ef76050654a1b7c1114e672 | /base/src/main/java/stock/base/util/RequestUtil.java | 8097186935cce67386dd9ea2f58bbc0727356a5a | [] | no_license | acuteMouse/chinaStock | e7c803d0b432c6d89bfc311d3b4151c297948fcb | c49f8edfb137121d0dd4a7a8b49ba198c4341806 | refs/heads/master | 2020-04-07T17:18:09.110474 | 2018-11-21T14:54:41 | 2018-11-21T14:54:41 | 158,562,425 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,903 | java | package stock.base.util;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
/**
* @author cgl
* @CreateTime 2018/1/5
* @Update
*/
public class RequestUtil {
static final String POST = "POST";
static final int CONNECTIONTOMEOUT = 1000;
/**
* @param url
* @param data 要发送的格式。如:&a=?&b=?
* @return
*/
public static String post(String url, String data) {
StringBuilder result = new StringBuilder(200);
BufferedReader reader = null;
try {
URL realUrl = new URL(url);
HttpURLConnection connection = (HttpURLConnection) realUrl.openConnection();
connection.setConnectTimeout(CONNECTIONTOMEOUT);//1s连接超时
connection.setReadTimeout(CONNECTIONTOMEOUT);//设置读取超时时间
connection.setRequestMethod(POST);
connection.setDoOutput(true);
OutputStream outputStream = connection.getOutputStream();
if (data != null) {
outputStream.write(data.getBytes());
}
outputStream.flush();
reader = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF-8"));
String line;
while ((line = reader.readLine()) != null) {
result.append(line);
}
} catch (Exception e) {
System.out.println(e.getMessage());
} finally {
try {
if (reader != null) {
reader.close();
}
} catch (IOException e) {
}
}
return result.toString();
}
public static String get(String url) {
StringBuilder result = new StringBuilder(200);
BufferedReader in = null;
try {
URL realUrl = new URL(url);
// 打开和URL之间的连接
URLConnection connection = realUrl.openConnection();
connection.setConnectTimeout(CONNECTIONTOMEOUT);
connection.setReadTimeout(CONNECTIONTOMEOUT);
// 建立实际的连接
connection.connect();
in = new BufferedReader(new InputStreamReader(connection.getInputStream(), "GBK"));
String line;
while ((line = in.readLine()) != null) {
result.append(line);
}
} catch (Exception e) {
e.printStackTrace();
System.out.println(e.getMessage());
}
finally {
try {
if (in != null) {
in.close();
}
} catch (Exception e2) {
e2.printStackTrace();
}
}
return result.toString();
}
}
| [
"a123654"
] | a123654 |
bf90f90dcaa0c8b7b65112bddac3767104c116ab | 34ebb45ade9fb83c6831e00ef51b85c0afdc5661 | /helper/src/main/java/com/mcxiaoke/packer/helper/PackerNg.java | b178b49cd6e74f99713c2ed9093a8145a9fcfebb | [
"Apache-2.0"
] | permissive | zbl704/packer-ng-plugin | a56b724e3607e54083620029e8576a697b22be1b | ca997b6913222be2e0be48468b2371ef7b7e0704 | refs/heads/master | 2021-01-17T22:13:39.860435 | 2016-08-04T03:28:40 | 2016-08-04T03:35:15 | 64,978,477 | 1 | 0 | null | 2016-08-05T01:25:05 | 2016-08-05T01:25:03 | null | UTF-8 | Java | false | false | 15,349 | java | package com.mcxiaoke.packer.helper;
import java.io.BufferedReader;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.channels.FileChannel.MapMode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* User: mcxiaoke
* Date: 15/11/23
* Time: 13:12
*/
public final class PackerNg {
private static final String TAG = PackerNg.class.getSimpleName();
private static final String EMPTY_STRING = "";
private static String sCachedMarket;
public static String getMarket(final Object context) {
return getMarket(context, EMPTY_STRING);
}
public static synchronized String getMarket(final Object context, final String defaultValue) {
if (sCachedMarket == null) {
sCachedMarket = getMarketInternal(context, defaultValue).market;
}
return sCachedMarket;
}
public static MarketInfo getMarketInfo(final Object context) {
return getMarketInfo(context, EMPTY_STRING);
}
public static synchronized MarketInfo getMarketInfo(final Object context, final String defaultValue) {
return getMarketInternal(context, defaultValue);
}
private static MarketInfo getMarketInternal(final Object context, final String defaultValue) {
String market;
Exception error;
try {
final String sourceDir = Helper.getSourceDir(context);
market = Helper.readMarket(new File(sourceDir));
error = null;
} catch (Exception e) {
market = null;
error = e;
}
return new MarketInfo(market == null ? defaultValue : market, error);
}
public static class MarketInfo {
public final String market;
public final Exception error;
public MarketInfo(final String market, final Exception error) {
this.market = market;
this.error = error;
}
@Override
public String toString() {
return "MarketInfo{" +
"market='" + market + '\'' +
", error=" + error +
'}';
}
}
public static class Helper {
static final String UTF_8 = "UTF-8";
static final int ZIP_COMMENT_MAX_LENGTH = 65535;
static final int SHORT_LENGTH = 2;
static final byte[] MAGIC = new byte[]{0x21, 0x5a, 0x58, 0x4b, 0x21}; //!ZXK!
// for android code
private static String getSourceDir(final Object context)
throws ClassNotFoundException,
InvocationTargetException,
IllegalAccessException,
NoSuchFieldException,
NoSuchMethodException {
final Class<?> contextClass = Class.forName("android.content.Context");
final Class<?> applicationInfoClass = Class.forName("android.content.pm.ApplicationInfo");
final Method getApplicationInfoMethod = contextClass.getMethod("getApplicationInfo");
final Object appInfo = getApplicationInfoMethod.invoke(context);
// try ApplicationInfo.publicSourceDir
final Field publicSourceDirField = applicationInfoClass.getField("publicSourceDir");
String sourceDir = (String) publicSourceDirField.get(appInfo);
if (sourceDir == null) {
// try ApplicationInfo.sourceDir
final Field sourceDirField = applicationInfoClass.getField("sourceDir");
sourceDir = (String) sourceDirField.get(appInfo);
}
if (sourceDir == null) {
// try Context.getPackageCodePath()
final Method getPackageCodePathMethod = contextClass.getMethod("getPackageCodePath");
sourceDir = (String) getPackageCodePathMethod.invoke(context);
}
return sourceDir;
}
private static boolean isMagicMatched(byte[] buffer) {
if (buffer.length != MAGIC.length) {
return false;
}
for (int i = 0; i < MAGIC.length; ++i) {
if (buffer[i] != MAGIC[i]) {
return false;
}
}
return true;
}
private static void writeBytes(byte[] data, DataOutput out) throws IOException {
out.write(data);
}
private static void writeShort(int i, DataOutput out) throws IOException {
ByteBuffer bb = ByteBuffer.allocate(SHORT_LENGTH).order(ByteOrder.LITTLE_ENDIAN);
bb.putShort((short) i);
out.write(bb.array());
}
private static short readShort(DataInput input) throws IOException {
byte[] buf = new byte[SHORT_LENGTH];
input.readFully(buf);
ByteBuffer bb = ByteBuffer.wrap(buf).order(ByteOrder.LITTLE_ENDIAN);
return bb.getShort(0);
}
public static void writeZipComment(File file, String comment) throws IOException {
if (hasZipCommentMagic(file)) {
throw new IllegalStateException("zip comment already exists, ignore.");
}
// {@see java.util.zip.ZipOutputStream.writeEND}
byte[] data = comment.getBytes(UTF_8);
final RandomAccessFile raf = new RandomAccessFile(file, "rw");
raf.seek(file.length() - SHORT_LENGTH);
// write zip comment length
// (content field length + length field length + magic field length)
writeShort(data.length + SHORT_LENGTH + MAGIC.length, raf);
// write content
writeBytes(data, raf);
// write content length
writeShort(data.length, raf);
// write magic bytes
writeBytes(MAGIC, raf);
raf.close();
}
public static boolean hasZipCommentMagic(File file) throws IOException {
RandomAccessFile raf = null;
try {
raf = new RandomAccessFile(file, "r");
long index = raf.length();
byte[] buffer = new byte[MAGIC.length];
index -= MAGIC.length;
// read magic bytes
raf.seek(index);
raf.readFully(buffer);
// check magic bytes matched
return isMagicMatched(buffer);
} finally {
if (raf != null) {
raf.close();
}
}
}
public static String readZipComment(File file) throws IOException {
RandomAccessFile raf = null;
try {
raf = new RandomAccessFile(file, "r");
long index = raf.length();
byte[] buffer = new byte[MAGIC.length];
index -= MAGIC.length;
// read magic bytes
raf.seek(index);
raf.readFully(buffer);
// if magic bytes matched
if (isMagicMatched(buffer)) {
index -= SHORT_LENGTH;
raf.seek(index);
// read content length field
int length = readShort(raf);
if (length > 0) {
index -= length;
raf.seek(index);
// read content bytes
byte[] bytesComment = new byte[length];
raf.readFully(bytesComment);
return new String(bytesComment, UTF_8);
} else {
throw new IOException("zip comment content not found");
}
} else {
throw new IOException("zip comment magic bytes not found");
}
} finally {
if (raf != null) {
raf.close();
}
}
}
private static String readZipCommentMmp(File file) throws IOException {
final int mappedSize = 10240;
final long fz = file.length();
RandomAccessFile raf = null;
MappedByteBuffer map = null;
try {
raf = new RandomAccessFile(file, "r");
map = raf.getChannel().map(MapMode.READ_ONLY, fz - mappedSize, mappedSize);
map.order(ByteOrder.LITTLE_ENDIAN);
int index = mappedSize;
byte[] buffer = new byte[MAGIC.length];
index -= MAGIC.length;
// read magic bytes
map.position(index);
map.get(buffer);
// if magic bytes matched
if (isMagicMatched(buffer)) {
index -= SHORT_LENGTH;
map.position(index);
// read content length field
int length = map.getShort();
if (length > 0) {
index -= length;
map.position(index);
// read content bytes
byte[] bytesComment = new byte[length];
map.get(bytesComment);
return new String(bytesComment, UTF_8);
}
}
} finally {
if (map != null) {
map.clear();
}
if (raf != null) {
raf.close();
}
}
return null;
}
public static void writeMarket(final File file, final String market) throws IOException {
writeZipComment(file, market);
}
public static String readMarket(final File file) throws IOException {
return readZipComment(file);
}
public static boolean verifyMarket(final File file, final String market) throws IOException {
return market.equals(readMarket(file));
}
public static void println(String msg) {
System.out.println(TAG + ": " + msg);
}
public static List<String> parseMarkets(final File file) throws IOException {
final List<String> markets = new ArrayList<String>();
FileReader fr = new FileReader(file);
BufferedReader br = new BufferedReader(fr);
String line = null;
int lineNo = 1;
while ((line = br.readLine()) != null) {
String parts[] = line.split("#");
if (parts.length > 0) {
final String market = parts[0].trim();
if (market.length() > 0) {
markets.add(market);
} else {
println("skip invalid market line " + lineNo + ":'" + line + "'");
}
} else {
println("skip invalid market line" + lineNo + ":'" + line + "'");
}
++lineNo;
}
br.close();
fr.close();
return markets;
}
public static void copyFile(File src, File dest) throws IOException {
if (!dest.exists()) {
dest.createNewFile();
}
FileChannel source = null;
FileChannel destination = null;
try {
source = new FileInputStream(src).getChannel();
destination = new FileOutputStream(dest).getChannel();
destination.transferFrom(source, 0, source.size());
} finally {
if (source != null) {
source.close();
}
if (destination != null) {
destination.close();
}
}
}
public static boolean deleteDir(File dir) {
File[] files = dir.listFiles();
if (files == null || files.length == 0) {
return false;
}
for (File file : files) {
if (file.isDirectory()) {
deleteDir(file);
} else {
file.delete();
}
}
return true;
}
public static String getExtension(final String fileName) {
int dot = fileName.lastIndexOf(".");
if (dot > 0) {
return fileName.substring(dot + 1);
} else {
return null;
}
}
public static String getBaseName(final String fileName) {
int dot = fileName.lastIndexOf(".");
if (dot > 0) {
return fileName.substring(0, dot);
} else {
return fileName;
}
}
}
public static void main(String[] args) throws Exception {
if (args.length < 2) {
Helper.println("Usage: java -jar packer-ng-x.x.x.jar your_apk_file market_file");
System.exit(1);
}
Helper.println("command args: " + Arrays.toString(args));
File apkFile = new File(args[0]);
final File marketFile = new File(args[1]);
if (!apkFile.exists()) {
Helper.println("apk file:" + apkFile + " not exists or not readable");
System.exit(1);
return;
}
if (!marketFile.exists()) {
Helper.println("markets file:" + marketFile + " not exists or not readable");
System.exit(1);
return;
}
Helper.println("apk file: " + apkFile);
Helper.println("market file: " + marketFile);
List<String> markets = Helper.parseMarkets(marketFile);
if (markets == null || markets.isEmpty()) {
Helper.println("not markets found.");
System.exit(1);
return;
}
Helper.println("markets: " + markets);
final String baseName = Helper.getBaseName(apkFile.getName());
final String extName = Helper.getExtension(apkFile.getName());
final File outputDir = new File("apks");
if (!outputDir.exists()) {
outputDir.mkdirs();
} else {
Helper.deleteDir(outputDir);
}
int processed = 0;
for (final String market : markets) {
final String apkName = baseName + "-" + market + "." + extName;
File destFile = new File(outputDir, apkName);
Helper.copyFile(apkFile, destFile);
Helper.writeMarket(destFile, market);
if (Helper.verifyMarket(destFile, market)) {
++processed;
Helper.println("processed apk " + apkName);
} else {
destFile.delete();
Helper.println("failed to process " + apkName);
}
}
Helper.println("all " + processed + " processed apks saved to " + outputDir);
}
}
| [
"mcxiaoke@gmail.com"
] | mcxiaoke@gmail.com |
ad521256fe25a069a4cc238b2530fbad267b8ac8 | 701eb586c5712ae32c99cc4c0fff2b83e0d7a1f1 | /AliyunEditor/editor_demo/src/main/java/com/aliyun/svideo/editor/widget/BaseAliyunPasterView.java | 502d6d423ec0843d466d495b7bc619044e221b40 | [] | no_license | ljw124/ZhaoYuNet | cdf00f5aca2a6241f20fd9d88ac9501ac9708ce9 | 66867c1c60f205ebcdb7cc045ea6d5f6a3a64fa7 | refs/heads/master | 2020-06-12T04:37:33.359999 | 2019-06-28T06:06:58 | 2019-06-28T06:06:58 | 194,196,241 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,410 | java | /*
* Copyright (C) 2010-2017 Alibaba Group Holding Limited.
*/
package com.aliyun.svideo.editor.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Matrix;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import com.aliyun.svideo.editor.R;
import com.aliyun.svideo.editor.util.MatrixUtil;
public abstract class BaseAliyunPasterView extends ViewGroup {
public interface OnChangeListener {
void onChange(BaseAliyunPasterView overlay);
}
/**
* normalized 2d coordinates: x y: (0, 0) right bottom: (1, 1) object
* coordinates: (0, 0) (1, 1)
*/
public static final int MODE_NORMALIZED = 1;
/**
* device coordinates: x y: (- CanvasWidth / 2, - CanvasHeight / 2)
* right bottom: (+ CanvasWidth / 2, + CanvasHeight / 2) object coordinates:
* (- ContentWidth / 2, - ContentHeight / 2) (+ ContentWidth / 2, +
* ContentHeight / 2)
*/
public static final int MODE_DEVICE = 2;
/**
* viewport coordinates: x y: (- ViewportWidth / 2, - ViewportHeight /
* 2) right bottom: (+ ViewportWidth / 2, + ViewportWidth / 2) object
* coordinates: (- ContentWidth / 2, - ContentHeight / 2) (+ ContentWidth /
* 2, + ContentHeight / 2)
*/
public static final int MODE_VIEWPORT = 3;
public static class LayoutParams extends MarginLayoutParams {
public LayoutParams(Context c, AttributeSet attrs) {
super(c, attrs);
TypedArray ta = c.obtainStyledAttributes(attrs,
R.styleable.EditOverlay_Layout);
gravity = ta.getInteger(
R.styleable.EditOverlay_Layout_android_layout_gravity,
Gravity.LEFT | Gravity.TOP);
ta.recycle();
}
public LayoutParams(int width, int height) {
super(width, height);
}
public int gravity;
}
private static final String TAG = "EditOverlay";
public BaseAliyunPasterView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
post(new Runnable() {
@Override
public void run() {
ViewGroup parent = (ViewGroup) getParent();
if (parent != null ){
width = parent.getWidth();
height = parent.getHeight();
}
}
});
}
public BaseAliyunPasterView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public BaseAliyunPasterView(Context context) {
this(context, null);
}
private int mViewportWidth = 640;
private int mViewportHeight = 640;
private int width;
private int height;
private boolean isMirror;
public int getLayoutWidth(){
return width;
}
public int getLayoutHeight(){
return height;
}
public void setViewport(int w, int h) {
mViewportWidth = w;
mViewportHeight = h;
}
public boolean isMirror() {
return isMirror;
}
public void setMirror(boolean mirror) {
isMirror = mirror;
}
private OnChangeListener mListener;
public void setOnChangeListener(OnChangeListener listener) {
mListener = listener;
}
public float[] getScale(){
float[] scale = new float[2];
scale[0] = mMatrixUtil.scaleX;
scale[1] = mMatrixUtil.scaleY;
return scale;
}
public MatrixUtil getMatrixUtil() {
return mMatrixUtil;
}
@Override
public float getRotation(){
return mMatrixUtil.getRotation();
}
public abstract int getContentWidth();
public abstract int getContentHeight();
public abstract void setContentWidth(int width);
public abstract void setContentHeight(int height);
public abstract View getContentView();
public boolean isCouldShowLabel(){
return false;
}
public void setShowTextLabel(boolean isShow){
}
public View getTextLabel(){
return null;
}
public void setEditCompleted(boolean isEditCompleted){
}
protected void validateTransform() {
Log.d("TRANSFORM", "before validateTransform : " + mTransform.toString() + "mode : " + mTransformMode);
if(getContentWidth() == 0 || getContentHeight() == 0){
return;
}
switch (mTransformMode) {
case MODE_DEVICE:
return;
case MODE_NORMALIZED:
mTransform.preTranslate(0.5f, 0.5f);
Log.d("VALIDATE", "content_width : " + getContentWidth() + " content_height : " + getContentHeight());
mTransform.preScale(1.0f / getContentWidth(), 1.0f / getContentHeight());
mTransform.postTranslate(-0.5f, -0.5f);
//Log.d("VALIDATE", "getWidth : " + getWidth() + " getHeight : " + getHeight());
mTransform.postScale(getWidth(), getHeight());
break;
case MODE_VIEWPORT:
mTransform.postScale((float) getWidth() / mViewportWidth,
(float) getHeight() / mViewportHeight);
break;
default:
break;
}
Log.d("TRANSFORM", "after validateTransform : " + mTransform.toString() + "mode : " + mTransformMode);
mTransformMode = MODE_DEVICE;
}
@Override
protected void onFinishInflate() {
super.onFinishInflate();
}
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
validateTransform();
onLayoutContent();
float hw, hh;
int baseX;
int baseY;
hw = getContentWidth() / 2;
hh = getContentHeight() / 2;
// lt, rt, lb, rb
POINT_LIST[0] = -hw;
POINT_LIST[1] = -hh;
POINT_LIST[2] = hw;
POINT_LIST[3] = -hh;
POINT_LIST[4] = -hw;
POINT_LIST[5] = hh;
POINT_LIST[6] = hw;
POINT_LIST[7] = hh;
baseX = getWidth() / 2;
baseY = getHeight() / 2;
Matrix together = converge();
together.mapPoints(POINT_LIST);
for (int i = 0, count = getChildCount(); i < count; i++) {
View child = getChildAt(i);
if (child == getContentView()) {
continue;
}
int gravity = ((LayoutParams) child.getLayoutParams()).gravity;
int ix = getPointFromMatrix(gravity);
int centerX = (int) POINT_LIST[ix];
int centerY = (int) POINT_LIST[ix + 1];
int left = baseX + centerX;
int top = baseY + centerY;
int right = baseX + centerX;
int bottom = baseY + centerY;
int halfW = child.getMeasuredWidth() / 2;
int halfH = child.getMeasuredHeight() / 2;
int childLeft = left - halfW;
int childTop = top - halfH;
int childRight = right + halfW;
int childBottom = bottom + halfH;
Log.d("DIY_FRAME", "child_left : " + childLeft + " child_top : " + childTop +
" child_right : " + childRight + " child_bottom : " + childBottom);
child.layout(childLeft, childTop, childRight, childBottom);
}
}
private int getPointFromMatrix(int gravity){
int x = 0, y = 0;
switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) {
case Gravity.TOP:
y = 0;
break;
case Gravity.BOTTOM:
y = 1;
break;
default:
break;
}
switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) {
case Gravity.LEFT:
x = 0;
break;
case Gravity.RIGHT:
x = 1;
break;
default:
break;
}
return (x + y * 2) * 2;
}
@Override
public LayoutParams generateLayoutParams(AttributeSet attrs) {
return new LayoutParams(getContext(), attrs);
}
/**
* bitmap to editor
*/
protected final Matrix mTransform = new Matrix();
private int mTransformMode = MODE_DEVICE;
private final Matrix mInverseTransform = new Matrix();
private boolean mInverseTransformInvalidated = false;
private void invalidateTransform() {
mInverseTransformInvalidated = true;
validateTransform();
requestLayout();
}
private void onLayoutContent() {
mMatrixUtil.decomposeTSR(mTransform);
Log.d("EDIT", "Content " + mMatrixUtil.toString());
float hw = mMatrixUtil.scaleX * getContentWidth() / 2;
float hh = mMatrixUtil.scaleY * getContentHeight() / 2;
float[] center = getCenter();
float cx = center[0];
float cy = center[1];
getContentView().setRotation(mMatrixUtil.getRotationDeg());
getContentView().layout((int) (cx - hw), (int) (cy - hh), (int) (cx + hw),
(int) (cy + hh));
}
public float[] getCenter(){
int w = getWidth();
int h = getHeight();
if(w == 0 || h == 0){
return null;
}
float[] center = new float[2];
center[0] = getWidth() / 2 + mMatrixUtil.translateX;
center[1] = getHeight() / 2 + mMatrixUtil.translateY;
return center;
}
public void reset() {
mTransform.reset();
mTransformMode = MODE_DEVICE;
invalidateTransform();
}
private void commit() {
if (mListener != null) {
mListener.onChange(BaseAliyunPasterView.this);
}
}
public boolean contentContains(float x, float y) {
fromEditorToContent(x, y);
float ix = POINT_LIST[0];
float iy = POINT_LIST[1];
boolean isContains;
isContains = Math.abs(ix) <= getContentWidth() / 2
&& Math.abs(iy) <= getContentHeight() / 2;
return isContains;
}
private Matrix converge(){
return mTransform;
}
/**
* from Editor coordinates (lt as (0, 0)) to Content coordinates (center as
* (0, 0))
*/
protected final void fromEditorToContent(float x, float y) {
if (mInverseTransformInvalidated) {
Matrix together = converge();
together.invert(mInverseTransform);
mInverseTransformInvalidated = false;
}
POINT_LIST[2] = x - width / 2;
POINT_LIST[3] = y - height / 2;
mInverseTransform.mapPoints(POINT_LIST, 0, POINT_LIST, 2, 1);
}
protected final void fromContentToEditor(float x, float y) {
POINT_LIST[2] = x;
POINT_LIST[3] = y;
mTransform.mapPoints(POINT_LIST, 0, POINT_LIST, 2, 1);
POINT_LIST[0] += width / 2;
POINT_LIST[1] += height / 2;
}
// shared, ui thread only
protected final MatrixUtil mMatrixUtil = new MatrixUtil();
private static final float[] POINT_LIST = new float[8];
public void moveContent(float dx, float dy) {
mTransform.postTranslate(dx, dy);
invalidateTransform();
}
public void scaleContent(float sx, float sy){
Matrix m = new Matrix();
m.set(mTransform);
m.preScale(sx, sy);
mMatrixUtil.decomposeTSR(m);
int width = (int) (mMatrixUtil.scaleX * getContentWidth());
int height = (int) (mMatrixUtil.scaleY * getContentHeight());
float thold = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, getResources().getDisplayMetrics());
float minScale = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 15, getResources().getDisplayMetrics());
if((width >= getWidth() + thold || height >= getHeight() + thold)
&& sx > 1){
}else if((width <= minScale || height <= minScale) && sx < 1){
}else{
mTransform.set(m);
}
invalidateTransform();
}
public void rotateContent(float rot){
mTransform.postRotate((float) Math.toDegrees(rot));
mMatrixUtil.decomposeTSR(mTransform);
invalidateTransform();
}
}
| [
"929377025@qq.com"
] | 929377025@qq.com |
a8655cd5939c5feb02172d87dbf0611687853420 | 5f8dfb9de28b9f79b1617be7602bb0372362afb6 | /src/main/java/org/opennebula/client/document/DocumentPool.java | 6b92b3e2c1174d2d32e6145b325dc003c64e87d4 | [] | no_license | jaferreiro/OCA | 94a9adb767c1ba0153f75163395f9e0f0f470b3f | be46ee05a88c6126ee35423ccb1d9d2a9ac684f6 | refs/heads/master | 2016-09-05T20:45:04.052472 | 2015-05-08T22:49:53 | 2015-05-08T22:49:53 | 35,305,565 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,809 | java | /*******************************************************************************
* Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package org.opennebula.client.document;
import org.opennebula.client.Client;
import org.opennebula.client.OneResponse;
import org.opennebula.client.Pool;
/**
* <p>
* This class represents an OpenNebula Document pool.
* </p>
* Documents are generic objects. You can dynamically create new Pools in
* OpenNebula, creating subclasses with different TYPE values.
* <br/>
* TYPE must be the same for the corresponding pool element, see {@link Document}
* <br/>
* For example:
* <pre>
* <code>
* public class GenericObjAPool extends DocumentPool implements Iterable{@code <GenericObjA> }
* {
* private static final int TYPE = 200;
*
* protected int type()
* {
* return TYPE;
* }
*
* public GenericObjAPool(Client client)
* {
* super(client);
* }
*
* public GenericObjAPool(Client client, int filter)
* {
* super(client, filter);
* }
*
* public GenericObjA factory(Node node)
* {
* return new GenericObjA(node, client);
* }
*
* {@code public Iterator<GenericObjA> iterator()}
* {
* {@code AbstractList<GenericObjA> ab = new AbstractList<GenericObjA>()}
* {
* public int size()
* {
* return getLength();
* }
*
* public GenericObjA get(int index)
* {
* return (GenericObjA) item(index);
* }
* };
*
* return ab.iterator();
* }
* }
* </code>
* </pre>
*/
public abstract class DocumentPool extends Pool
{
private static final String ELEMENT_NAME = "DOCUMENT";
private static final String INFO_METHOD = "documentpool.info";
private final int filter;
protected abstract int type();
/**
* Creates a new Document pool with the default filter flag value
* set to {@link Pool#MINE_GROUP} (Document belonging to the connected user,
* and the ones in his group)
*
* @param client XML-RPC Client.
*
* @see DocumentPool#DocumentPool(Client, int)
*/
public DocumentPool(Client client)
{
super(ELEMENT_NAME, client, INFO_METHOD);
this.filter = MINE_GROUP;
}
/**
* Creates a new Document pool.
*
* @param client XML-RPC Client.
* @param filter Filter flag to use by default in the method
* {@link DocumentPool#info()}. Possible values:
* <ul>
* <li>{@link Pool#ALL}: All Documents</li>
* <li>{@link Pool#MINE}: Connected user's Documents</li>
* <li>{@link Pool#MINE_GROUP}: Connected user's Documents, and the ones in
* his group</li>
* <li>>= 0: UID User's Documents</li>
* </ul>
*/
public DocumentPool(Client client, int filter)
{
super(ELEMENT_NAME, client, INFO_METHOD);
this.filter = filter;
}
/**
* Loads the xml representation of all or part of the
* Documents in the pool. The filter used is the one set in
* the constructor.
*
* @see DocumentPool#info
*
* @return If successful the message contains the string
* with the information returned by OpenNebula.
*/
public OneResponse info()
{
OneResponse response =
xmlrpcInfo(client, infoMethod, filter, -1, -1, type());
processInfo(response);
return response;
}
/**
* Loads the xml representation of all the Documents in the pool.
*
* @return If successful the message contains the string
* with the information returned by OpenNebula.
*/
public OneResponse infoAll()
{
OneResponse response =
xmlrpcInfo(client, infoMethod, ALL, -1, -1, type());
processInfo(response);
return response;
}
/**
* Loads the xml representation of all the connected user's Documents.
*
* @return If successful the message contains the string
* with the information returned by OpenNebula.
*/
public OneResponse infoMine()
{
OneResponse response =
xmlrpcInfo(client, infoMethod, MINE, -1, -1, type());
processInfo(response);
return response;
}
/**
* Loads the xml representation of all the connected user's Documents and
* the ones in his group.
*
* @return If successful the message contains the string
* with the information returned by OpenNebula.
*/
public OneResponse infoGroup()
{
OneResponse response =
xmlrpcInfo(client, infoMethod, MINE_GROUP, -1, -1, type());
processInfo(response);
return response;
}
/**
* Retrieves all or part of the Documents in the pool. The Documents to retrieve
* can be also filtered by Id, specifying the first and last Id to include.
*
* @param filter Filter flag to use. Possible values:
* <ul>
* <li>{@link Pool#ALL}: All Documents</li>
* <li>{@link Pool#MINE}: Connected user's Documents</li>
* <li>{@link Pool#MINE_GROUP}: Connected user's Documents, and the ones in
* his group</li>
* <li>>= 0: UID User's Documents</li>
* </ul>
* @param startId Lowest Id to retrieve
* @param endId Biggest Id to retrieve
* @return If successful the message contains the string
* with the information returned by OpenNebula.
*/
public OneResponse info(int filter, int startId, int endId)
{
OneResponse response =
xmlrpcInfo(client, infoMethod, filter, startId, endId, type());
processInfo(response);
return response;
}
/**
* Returns the Document with the given Id from the pool. If it is not found,
* then returns null. The method {@link #info()} must be called before.
*
* @param id of the ACl rule to retrieve
* @return The Document with the given Id, or null if it was not found.
*/
public Document getById(int id)
{
return (Document) super.getById(id);
}
}
| [
"anishikawa@01b10b89-4895-334c-a4a2-fda98f01737a"
] | anishikawa@01b10b89-4895-334c-a4a2-fda98f01737a |
82f8c3e95a6c7389f4abcf75169bd175ee1aa7c1 | 271526cb3fd229f5e4421a67b8b742bd3346845f | /src/Consumer.java | 0595ae4515d6279ac9c9f13ac0fe7add22031775 | [] | no_license | serenalau272/synchronous-circular-buffer | 7a7605524b856caf3600dee59c756575fc212fbd | 3e7f3f2334d2b74ce5c696987c7787834f0f5af7 | refs/heads/main | 2023-08-03T15:35:10.023528 | 2021-09-12T11:20:21 | 2021-09-12T11:20:21 | 405,620,269 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 474 | java | public class Consumer extends applicationThread {
public Consumer(CircularBuffer buffer, int waitTime) {
super(buffer, waitTime);
}
public void run() {
for (int i = 1; i <= 10; i++) {
try {
Thread.sleep(waitTime);
buffer.pull();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
System.out.println("Terminating Consumer.");
}
}
| [
"noreply@github.com"
] | serenalau272.noreply@github.com |
ebdee0e56a1892d022c278b349dc003cab490726 | 82c5f1739478cd946cde5a2a6e84c3cb7a774102 | /Arithmetic/Demo16.java | e9fa57cca04792497114c9af33fdc19fd660ab50 | [] | no_license | JusticeCao/Algorithm | 35127a4ff4b598a633ebaf05f4febc377d7f4ae3 | 3d5d57b2aa78e30c7e4d09ee3a93dd5ce858ecff | refs/heads/master | 2022-09-16T08:59:55.834245 | 2020-05-31T05:15:37 | 2020-05-31T05:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 245 | java | public class Demo16{
public static void main(String[] args){
for(int i =1;i <=5;i++){
for(int j = i;j<=5;j++){
System.out.println(" ");
}
for(int k = 1;k<=i;k++){
System.out.print("* ");
}
System.out.println();
}
}
} | [
"2435368142@qq.com"
] | 2435368142@qq.com |
f010bf28d93bace02f67f4a0ceb4576da4093a1e | 5a7db0aa6859f2538ccb6b139c3519798e81164f | /src/com/company/Main.java | 4236a3b2b2722e321a49219d11ca451c4d6c42ac | [] | no_license | Sergey635/HarryPotterHome | eff41e3cc8a7ef980fa1c4ed44ee41015cb1f884 | ed736a4cfbbc7c535b2447c30a006610ec450eca | refs/heads/master | 2022-11-25T04:30:00.326648 | 2020-07-18T17:18:02 | 2020-07-18T17:18:02 | 280,703,882 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 20,548 | java | package com.company;
public class Main {
public static void main(String[] args) {
String harryPotter ="Mr. and Mrs. Dursley, of number four, Privet Drive, were proud to say that they were perfectly normal, thank you very much. They were the last people you'd expect to be involved in anything strange or mysterious, because they just didn't hold with such nonsense. \n" +
"\n" +
"Mr. Dursley was the director of a firm called Grunnings, which made drills. He was a big, beefy man with hardly any neck, although he did have a very large mustache. Mrs. Dursley was thin and blonde and had nearly twice the usual amount of neck, which came in very useful as she spent so much of her time craning over garden fences, spying on the neighbors. The Dursleys had a small son called Dudley and in their opinion there was no finer boy anywhere. \n" +
"\n" +
"The Dursleys had everything they wanted, but they also had a secret, and their greatest fear was that somebody would discover it. They didn't think they could bear it if anyone found out about the Potters. Mrs. Potter was Mrs. Dursley's sister, but they hadn't met for several years; in fact, Mrs. Dursley pretended she didn't have a sister, because her sister and her good-for-nothing husband were as unDursleyish as it was possible to be. The Dursleys shuddered to think what the neighbors would say if the Potters arrived in the street. The Dursleys knew that the Potters had a small son, too, but they had never even seen him. This boy was another good reason for keeping the Potters away; they didn't want Dudley mixing with a child like that. \n" +
"\n" +
"When Mr. and Mrs. Dursley woke up on the dull, gray Tuesday our story starts, there was nothing about the cloudy sky outside to suggest that strange and mysterious things would soon be happening all over the country. Mr. Dursley hummed as he picked out his most boring tie for work, and Mrs. Dursley gossiped away happily as she wrestled a screaming Dudley into his high chair. \n" +
"\n" +
"None of them noticed a large, tawny owl flutter past the window. \n" +
"\n" +
"At half past eight, Mr. Dursley picked up his briefcase, pecked Mrs. Dursley on the cheek, and tried to kiss Dudley good-bye but missed, because Dudley was now having a tantrum and throwing his cereal at the walls. \"Little tyke,\" chortled Mr. Dursley as he left the house. He got into his car and backed out of number four's drive. \n" +
"\n" +
"It was on the corner of the street that he noticed the first sign of something peculiar -- a cat reading a map. For a second, Mr. Dursley didn't realize what he had seen -- then he jerked his head around to look again. There was a tabby cat standing on the corner of Privet Drive, but there wasn't a map in sight. What could he have been thinking of? It must have been a trick of the light. Mr. Dursley blinked and stared at the cat. It stared back. As Mr. Dursley drove around the corner and up the road, he watched the cat in his mirror. It was now reading the sign that said Privet Drive -- no, looking at the sign; cats couldn't read maps or signs. Mr. Dursley gave himself a little shake and put the cat out of his mind. As he drove toward town he thought of nothing except a large order of drills he was hoping to get that day. \n" +
"\n" +
"But on the edge of town, drills were driven out of his mind by something else. As he sat in the usual morning traffic jam, he couldn't help noticing that there seemed to be a lot of strangely dressed people about. People in cloaks. Mr. Dursley couldn't bear people who dressed in funny clothes -- the getups you saw on young people! He supposed this was some stupid new fashion. He drummed his fingers on the steering wheel and his eyes fell on a huddle of these weirdos standing quite close by. They were whispering excitedly together. Mr. Dursley was enraged to see that a couple of them weren't young at all; why, that man had to be older than he was, and wearing an emerald-green cloak! The nerve of him! But then it struck Mr. Dursley that this was probably some silly stunt -- these people were obviously collecting for something... \n" +
"\n" +
"yes, that would be it. The traffic moved on and a few minutes later, Mr. Dursley arrived in the Grunnings parking lot, his mind back on drills. \n" +
"\n" +
"Mr. Dursley always sat with his back to the window in his office on the ninth floor. If he hadn't, he might have found it harder to concentrate on drills that morning. He didn't see the owls swoop ing past in broad daylight, though people down in the street did; they pointed and gazed open- mouthed as owl after owl sped overhead. Most of them had never seen an owl even at nighttime. Mr. Dursley, however, had a perfectly normal, owl-free morning. He yelled at five different people. He made several important telephone calls and shouted a bit more. He was in a very good mood until lunchtime, when he thought he'd stretch his legs and walk across the road to buy himself a bun from the bakery. \n" +
"\n" +
"He'd forgotten all about the people in cloaks until he passed a group of them next to the baker's. He eyed them angrily as he passed. He didn't know why, but they made him uneasy. This bunch were whispering excitedly, too, and he couldn't see a single collecting tin. It was on his way back past them, clutching a large doughnut in a bag, that he caught a few words of what they were saying. \n" +
"\n" +
"\"The Potters, that's right, that's what I heard yes, their son, Harry\" \n" +
"\n" +
"Mr. Dursley stopped dead. Fear flooded him. He looked back at the whisperers as if he wanted to say something to them, but thought better of it. \n" +
"\n" +
"He dashed back across the road, hurried up to his office, snapped at his secretary not to disturb him, seized his telephone, and had almost finished dialing his home number when he changed his mind. He put the receiver back down and stroked his mustache, thinking... no, he was being stupid. Potter wasn't such an unusual name. He was sure there were lots of people called Potter who had a son called Harry. Come to think of it, he wasn't even sure his nephew was called Harry. He'd never even seen the boy. It might have been Harvey. Or Harold. There was no point in worrying Mrs. Dursley; she always got so upset at any mention of her sister. He didn't blame her -- if he'd had a sister like that... but all the same, those people in cloaks... \n" +
"\n" +
"He found it a lot harder to concentrate on drills that afternoon and when he left the building at five o'clock, he was still so worried that he walked straight into someone just outside the door. \n" +
"\n" +
"\"Sorry,\" he grunted, as the tiny old man stumbled and almost fell. It was a few seconds before Mr. Dursley realized that the man was wearing a violet cloak. He didn't seem at all upset at being almost knocked to the ground. On the contrary, his face split into a wide smile and he said in a squeaky voice that made passersby stare, \"Don't be sorry, my dear sir, for nothing could upset me today! Rejoice, for You-Know-Who has gone at last! Even Muggles like yourself should be celebrating, this happy, happy day!\" \n" +
"\n" +
"And the old man hugged Mr. Dursley around the middle and walked off. \n" +
"\n" +
"Mr. Dursley stood rooted to the spot. He had been hugged by a complete stranger. He also thought he had been called a Muggle, whatever that was. He was rattled. He hurried to his car and set off for home, hoping he was imagining things, which he had never hoped before, because he didn't approve of imagination. \n" +
"\n" +
"As he pulled into the driveway of number four, the first thing he saw -- and it didn't improve his mood -- was the tabby cat he'd spotted that morning. It was now sitting on his garden wall. He was sure it was the same one; it had the same markings around its eyes. \n" +
"\n" +
"\"Shoo!\" said Mr. Dursley loudly. The cat didn't move. It just gave him a stern look. Was this normal cat behavior? Mr. Dursley wondered. Trying to pull himself together, he let himself into the house. He was still determined not to mention anything to his wife. \n" +
"\n" +
"Mrs. Dursley had had a nice, normal day. She told him over dinner all about Mrs. Next Door's problems with her daughter and how Dudley had learned a new word (\"Won't!\"). Mr. Dursley tried to act normally. When Dudley had been put to bed, he went into the living room in time to catch the last report on the evening news: \"And finally, bird-watchers everywhere have reported that the nation's owls have been behaving very unusually today. Although owls normally hunt at night and are hardly ever seen in daylight, there have been hundreds of sightings of these birds flying in every direction since sunrise. Experts are unable to explain why the owls have suddenly changed their sleeping pattern.\" The newscaster allowed himself a grin. \n" +
"\n" +
"\"Most mysterious. And now, over to Jim McGuffin with the weather. Going to be any more showers of owls tonight, Jim?\" \n" +
"\n" +
"\"Well, Ted,\" said the weatherman, \"I don't know about that, but it's not only the owls that have been acting oddly today. Viewers as far apart as Kent, Yorkshire, and Dundee have been phoning in to tell me that instead of the rain I promised yesterday, they've had a downpour of shooting stars! Perhaps people have been celebrating Bonfire Night early -- it's not until next week, folks! But I can promise a wet night tonight.\" \n" +
"\n" +
"Mr. Dursley sat frozen in his armchair. Shooting stars all over Britain? Owls flying by daylight? Mysterious people in cloaks all over the place? And a whisper, a whisper about the Potters... \n" +
"\n" +
"Mrs. Dursley came into the living room carrying two cups of tea. It was no good. He'd have to say something to her. He cleared his throat nervously. \"Er -- Petunia, dear -- you haven't heard from your sister lately, have you?\" \n" +
"\n" +
"As he had expected, Mrs. Dursley looked shocked and angry. After all, they normally pretended she didn't have a sister. \n" +
"\n" +
"\"No,\" she said sharply. \"Why?\" \n" +
"\n" +
"\"Funny stuff on the news,\" Mr. Dursley mumbled. \"Owls... shooting stars... and there were a lot of funny-looking people in town today...\" \n" +
"\n" +
"\"So?\" snapped Mrs. Dursley. \n" +
"\n" +
"\"Well, I just thought... maybe... it was something to do with... you know... her crowd.\" \n" +
"\n" +
"Mrs. Dursley sipped her tea through pursed lips. Mr. Dursley wondered whether he dared tell her he'd heard the name \"Potter.\" He decided he didn't dare. Instead he said, as casually as he could, \"Their son -- he'd be about Dudley's age now, wouldn't he?\" \n" +
"\n" +
"\"I suppose so,\" said Mrs. Dursley stiffly. \n" +
"\n" +
"\"What's his name again? Howard, isn't it?\" \n" +
"\n" +
"\"Harry. Nasty, common name, if you ask me.\" \n" +
"\n" +
"\"Oh, yes,\" said Mr. Dursley, his heart sinking horribly. \"Yes, I quite agree.\" \n" +
"\n" +
"He didn't say another word on the subject as they went upstairs to bed. \n" +
"\n" +
"While Mrs. Dursley was in the bathroom, Mr. Dursley crept to the bedroom window and peered down into the front garden. The cat was still there. \n" +
"\n" +
"It was staring down Privet Drive as though it were waiting for something. \n" +
"\n" +
"Was he imagining things? Could all this have anything to do with the Potters? If it did... if it got out that they were related to a pair of -- well, he didn't think he could bear it. \n" +
"\n" +
"The Dursleys got into bed. Mrs. Dursley fell asleep quickly but Mr. Dursley lay awake, turning it all over in his mind. His last, comforting thought before he fell asleep was that even if the Potters were involved, there was no reason for them to come near him and Mrs. Dursley. The Potters knew very well what he and Petunia thought about them and their kind.... He couldn't see how he and Petunia could get mixed up in anything that might be going on -- he yawned and turned over -- it couldn't affect them.... \n" +
"\n" +
"How very wrong he was. \n" +
"\n" +
"Mr. Dursley might have been drifting into an uneasy sleep, but the cat on the wall outside was showing no sign of sleepiness. It was sitting as still as a statue, its eyes fixed unblinkingly on the far corner of Privet Drive. It didn't so much as quiver when a car door slammed on the next street, nor when two owls swooped overhead. In fact, it was nearly midnight before the cat moved at all. \n" +
"\n" +
"A man appeared on the corner the cat had been watching, appeared so suddenly and silently you'd have thought he'd just popped out of the ground. The cat's tail twitched and its eyes narrowed. \n" +
"\n" +
"Nothing like this man had ever been seen on Privet Drive. He was tall, thin, and very old, judging by the silver of his hair and beard, which were both long enough to tuck into his belt. He was wearing long robes, a purple cloak that swept the ground, and high-heeled, buckled boots. \n" +
"\n" +
"His blue eyes were light, bright, and sparkling behind half-moon spectacles and his nose was very long and crooked, as though it had been broken at least twice. This man's name was Albus Dumbledore. \n" +
"\n" +
"Albus Dumbledore didn't seem to realize that he had just arrived in a street where everything from his name to his boots was unwelcome. He was busy rummaging in his cloak, looking for something. But he did seem to realize he was being watched, because he looked up suddenly at the cat, which was still staring at him from the other end of the street. For some reason, the sight of the cat seemed to amuse him. He chuckled and muttered, \"I should have known.\" \n" +
"\n" +
"He found what he was looking for in his inside pocket. It seemed to be a silver cigarette lighter. He flicked it open, held it up in the air, and clicked it. The nearest street lamp went out with a little pop. He clicked it again -- the next lamp flickered into darkness. Twelve times he clicked the Put-Outer, until the only lights left on the whole street were two tiny pinpricks in the distance, which were the eyes of the cat watching him. If anyone looked out of their window now, even beady-eyed Mrs. Dursley, they wouldn't be able to see anything that was happening down on the pavement. Dumbledore slipped the Put-Outer back inside his cloak and set off down the street toward number four, where he sat down on the wall next to the cat. He didn't look at it, but after a moment he spoke to it. \n" +
"\n" +
"\"Fancy seeing you here, Professor McGonagall.\" \n" +
"\n" +
"He turned to smile at the tabby, but it had gone. Instead he was smiling at a rather severe-looking woman who was wearing square glasses exactly the shape of the markings the cat had had around its eyes. She, too, was wearing a cloak, an emerald one. Her black hair was drawn into a tight bun. She looked distinctly ruffled. \n" +
"\n" +
"\"How did you know it was me?\" she asked. \n" +
"\n" +
"\"My dear Professor, I 've never seen a cat sit so stiffly.\" \n" +
"\n" +
"\"You'd be stiff if you'd been sitting on a brick wall all day,\" said Professor McGonagall. \n" +
"\n" +
"\"All day? When you could have been celebrating? I must have passed a dozen feasts and parties on my way here.\" \n" +
"\n" +
"Professor McGonagall sniffed angrily. \n" +
"\n" +
"\"Oh yes, everyone's celebrating, all right,\" she said impatiently. \n" +
"\n" +
"\"You'd think they'd be a bit more careful, but no -- even the Muggles have noticed something's going on. It was on their news.\" She jerked her head back at the Dursleys' dark living-room window. \"I heard it. Flocks of owls... shooting stars.... Well, they're not completely stupid. They were bound to notice something. Shooting stars down in Kent -- I'll bet that was Dedalus Diggle. He never had much sense.\" \n" +
"\n" +
"\"You can't blame them,\" said Dumbledore gently. \"We've had precious little to celebrate for eleven years.\" \n" +
"\n" +
"\"I know that,\" said Professor McGonagall irritably. \"But that's no reason to lose our heads. People are being downright careless, out on the streets in broad daylight, not even dressed in Muggle clothes, swapping rumors.\" \n" +
"\n" +
"She threw a sharp, sideways glance at Dumbledore here, as though hoping he was going to tell her something, but he didn't, so she went on. \"A fine thing it would be if, on the very day YouKnow-Who seems to have disappeared at last, the Muggles found out about us all. I suppose he really has gone, Dumbledore?\" \n" +
"\n" +
"\"It certainly seems so,\" said Dumbledore. \"We have much to be thankful for. Would you care for a lemon drop?\" \n" +
"\n" +
"\"A what?\" \n" +
"\n" +
"\"A lemon drop. They're a kind of Muggle sweet I'm rather fond of\" \n" +
"\n" +
"\"No, thank you,\" said Professor McGonagall coldly, as though she didn't think this was the moment for lemon drops. \"As I say, even if You-Know-Who has gone -\" \n" +
"\n" +
"\"My dear Professor, surely a sensible person like yourself can call him by his name? All this 'You- Know-Who' nonsense -- for eleven years I have been trying to persuade people to call him by his proper name: Voldemort.\" Professor McGonagall flinched, but Dumbledore, who was unsticking two lemon drops, seemed not to notice. \"It all gets so confusing if we keep saying 'You-Know-Who.' I have never seen any reason to be frightened of saying Voldemort's name. \n" +
"\n" +
"\"I know you haven 't, said Professor McGonagall, sounding half exasperated, half admiring. \"But you're different. Everyone knows you're the only one You-Know- oh, all right, Voldemort, was frightened of.\" \n" +
"\n" +
"\"You flatter me,\" said Dumbledore calmly. \"Voldemort had powers I will never have.\" \n" +
"\n" +
"\"Only because you're too -- well -- noble to use them.\" ";
harryPotter = harryPotter.replaceAll(",", "");
harryPotter = harryPotter.replaceAll("\\.", "");
harryPotter = harryPotter.replaceAll("\\?", "");
harryPotter = harryPotter.replaceAll("-", "");
harryPotter = harryPotter.replaceAll("'", "");
harryPotter = harryPotter.replaceAll("\n", "");
harryPotter = harryPotter.replaceAll("\"", "");
harryPotter = harryPotter.replaceAll(":", "");
harryPotter = harryPotter.replaceAll("", "");
String[] words = harryPotter.split(" ");
for (int i = 0; i <words.length; i++) {
System.out.println(i + ". " +words[i]);
}
}
}
| [
"sergo231993@gmail.com"
] | sergo231993@gmail.com |
bab947f827caf2e30b851015de98f95f2d63b4b7 | bf7964769d780ad1b729be0434ac6d5108fba3d0 | /src/main/com/orangelabs/rcs/protocol/msrp/MsrpClientConnection.java | a76e8f33ee7d9288f376decc37ad42d6c532c957 | [
"Apache-2.0"
] | permissive | hl4/rcscore | 4100cbf3a63a4d8c49cac68245a8c8c70cb63834 | b4e2896fe65f26defc272aa5b394aa9441bcab78 | refs/heads/master | 2021-01-20T17:26:48.029669 | 2016-04-19T13:02:39 | 2016-04-19T13:02:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,008 | java | /*******************************************************************************
* Software Name : RCS IMS Stack
*
* Copyright (C) 2010 France Telecom S.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package com.orangelabs.rcs.protocol.msrp;
import java.io.IOException;
import com.orangelabs.rcs.platform.network.NetworkFactory;
import com.orangelabs.rcs.platform.network.SocketConnection;
import com.orangelabs.rcs.utils.logger.Logger;
/**
* MSRP client connection
*
* @author jexa7410
*/
public class MsrpClientConnection extends MsrpConnection {
/**
* Remote IP address
*/
private String remoteAddress;
/**
* Remote TCP port number
*/
private int remotePort;
/**
* Secured connection
*/
private boolean secured = false;
// Changed by Deutsche Telekom
/**
* Secured connection
*/
private String announcedFingerprint = null;
/**
* The logger
*/
private Logger logger = Logger.getLogger(this.getClass().getName());
/**
* Constructor
*
* @param session MSRP session
* @param remoteAddress Remote IP address
* @param remotePort Remote port number
*/
public MsrpClientConnection(MsrpSession session, String remoteAddress, int remotePort) {
super(session);
this.remoteAddress = remoteAddress;
this.remotePort = remotePort;
}
/**
* Constructor
*
* @param session MSRP session
* @param remoteAddress Remote IP address
* @param remotePort Remote port number
* @param secured Secured media flag
*/
public MsrpClientConnection(MsrpSession session, String remoteAddress, int remotePort, boolean secured) {
this(session, remoteAddress, remotePort);
this.secured = secured;
}
// Changed by Deutsche Telekom
/**
* Constructor
*
* @param session MSRP session
* @param remoteAddress Remote IP address
* @param remotePort Remote port number
* @param secured Secured media flag
* @param fingerprint fingerprint announced in SDP
*/
public MsrpClientConnection(MsrpSession session, String remoteAddress, int remotePort, boolean secured, String fingerprint) {
this(session, remoteAddress, remotePort);
this.secured = secured;
this.announcedFingerprint = fingerprint;
}
/**
* Is secured connection
*
* @return Boolean
*/
public boolean isSecured() {
return secured;
}
/**
* Returns the socket connection
*
* @return Socket
* @throws IOException
*/
public SocketConnection getSocketConnection() throws IOException {
if (logger.isActivated()) {
logger.debug("Open client socket to " + remoteAddress + ":" + remotePort);
}
SocketConnection socket;
if (secured) {
// Changed by Deutsche Telekom
if (this.announcedFingerprint != null) {
// follow RFC 4572
// use self-signed certificates
socket = NetworkFactory.getFactory().createSimpleSecureSocketClientConnection(this.announcedFingerprint);
} else {
socket = NetworkFactory.getFactory().createSecureSocketClientConnection();
}
} else {
socket = NetworkFactory.getFactory().createSocketClientConnection();
}
socket.open(remoteAddress, remotePort);
if (logger.isActivated()) {
logger.debug("Socket connected to " + socket.getRemoteAddress() + ":" + socket.getRemotePort());
}
return socket;
}
}
| [
"ah@lilizhendeMacBook.local"
] | ah@lilizhendeMacBook.local |
d5d50ff8f77fe23dc2e64bc91399803e86d35502 | 8d7fea6b4a2557fb9526d687b5a1e3f54e291924 | /Back End/MasterService/src/main/java/com/brycen/hrm/masterservice/ms001002Init/MS001002InitRoleResponse.java | 7db470ea47e98f3ef4fa53f0cac736c08eba9684 | [] | no_license | PBO-Training/vd_phi | 69cd73af50bf02d1a7d80f07a430c2fb8f6ffcc5 | b89ee935feff35494f31b360aaa999a7247b15ec | refs/heads/main | 2023-03-09T04:03:40.129757 | 2021-02-26T02:00:47 | 2021-02-26T02:00:47 | 326,868,891 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 684 | java | package com.brycen.hrm.masterservice.ms001002Init;
import com.brycen.hrm.entity.RoleEntity;
public class MS001002InitRoleResponse {
/**
* role id
*/
private long roleID;
/**
* role name
*/
private String roleName;
public MS001002InitRoleResponse() {
super();
}
public MS001002InitRoleResponse(RoleEntity roleEntity) {
super();
this.roleID = roleEntity.getRoleID();
this.roleName = roleEntity.getRoleName();
}
public long getRoleID() {
return roleID;
}
public void setRoleID(long roleID) {
this.roleID = roleID;
}
public String getRoleName() {
return roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
}
| [
"vodinhphi1234567@gmail.com"
] | vodinhphi1234567@gmail.com |
a9ec692ee97f8eec2e73db3edb513b321dc4e558 | 4f7f3b448b90d6ecbb23d48ea4ffbd74fa56a633 | /app/src/main/java/com/dssk/jerzy/motiondetect/filters/NoneFilter.java | a5a07b5f04b2a2c5a006813745634439d7de21d3 | [] | no_license | chrisvwn/MotionDetect | ed523d2075a3780891916fbfac57e5a09b09b74e | eb6e05b43d8e0a765af9a41ed0100f4b1023d7fe | refs/heads/master | 2020-05-21T08:53:36.281475 | 2016-10-06T11:10:35 | 2016-10-06T11:10:35 | 69,657,649 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 376 | java | package com.dssk.jerzy.motiondetect.filters;
import com.dssk.jerzy.motiondetect.filters.Filter;
import org.opencv.core.Mat;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* Created by chris on 8/8/16.
*/
public class NoneFilter implements Filter {
public void apply(final Mat src, final Mat dst, AtomicBoolean doesNothing)
{
//Do nothing.
}
}
| [
"chris.njuguna@gmail.com"
] | chris.njuguna@gmail.com |
15fdf944f21133f2b2b7d7a6b8cf91d20220027a | 5a212fb25e2ebf6a930428fb0864bd4979ea5a67 | /pdslsmsAPI/src/java/com/pdsl/sms/PDSLSMS.java | b45dad75f30975e48cbc8f534debac50a704fb55 | [] | no_license | toynesh/netbeans | 7b904965fdf46e39985d466576454dc289f217bb | 22e6edf011cb0491d16c602e76fec94f20b2d4e7 | refs/heads/master | 2020-12-28T15:11:29.098687 | 2020-01-26T18:18:05 | 2020-01-26T18:18:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,667 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.pdsl.sms;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import metro_sdp.Metro_sdp;
/**
*
* @author coolie
*/
@WebService(serviceName = "PDSLSMS")
public class PDSLSMS {
/**
* This is a sample web service operation
*/
@WebMethod(operationName = "sendSMS")
public String sendSMS(@WebParam(name = "ServiceID") String serviceid, @WebParam(name = "msisdn") String msisdn, @WebParam(name = "CustomerName") String customer, @WebParam(name = "message") String message, @WebParam(name = "correlator") String correlator) {
Metro_sdp sdp = new Metro_sdp();
DataStore data = new DataStore();
String response = "Error";
if (serviceid == null || serviceid.isEmpty() || serviceid.equals("?")) {
response = "EmptyServiceID";
} else if (msisdn == null || msisdn.isEmpty() || msisdn.equals("?")) {
response = "EmptyMsisdn";
} else if (customer == null || customer.isEmpty() || customer.equals("?")) {
response = "EmptyCustomerName";
} else if (message == null || message.isEmpty() || message.equals("?")) {
response = "EmptyMessage";
} else if (correlator == null || correlator.isEmpty() || correlator.equals("?")) {
response = " EmptyCorrelator";
} else if (!data.checkCorr(correlator).equals("none")) {
response = "DuplicateCorrelator";
} else {
if ((serviceid.equals("6014702000147264")) || (serviceid.equals("APEX"))) {
try {
List<String> safprefix = new ArrayList<>();
Connection con = data.prefixconnect();
String query2 = "SELECT DISTINCT prefix FROM safaricom";
Statement st2 = con.createStatement();
ResultSet rs2 = st2.executeQuery(query2);
while (rs2.next()) {
//System.out.println("Saving All: " + rs2.getString(1));
safprefix.add(rs2.getString(1));
}
System.out.println("Safprefix Array Size: " + safprefix.size());
con.close();
msisdn = msisdn.replace("+", "");
String msisdnprefix = msisdn.substring(0, 6);
Logger.getLogger(PDSLSMS.class.getName()).log(Level.INFO, "Prefix is: " + msisdnprefix.substring(3));
if (safprefix.contains(msisdnprefix.substring(3))) {
Connection conn = data.connect();
PreparedStatement prep = null;
String values = "insert into transactions(msisdn,customer,message,serviceid,correlator,prsp) values (?,?,?,?,?,?)";
prep = conn.prepareStatement(values);
prep.setString(1, msisdn);
prep.setString(2, customer);
prep.setString(3, message);
prep.setString(4, serviceid);
prep.setString(5, correlator);
prep.setString(6, "safaricom");
prep.execute();
prep.close();
conn.close();
sdp.sendSdpSms(msisdn, message, correlator, "704308", "http://197.248.9.106:8081/pdslsmsAPIdlrnotification/SmsNotificationService");
} else {
Connection conn = data.connect();
PreparedStatement prep = null;
String values = "insert into transactions(msisdn,customer,message,serviceid,correlator,prsp) values (?,?,?,?,?,?)";
prep = conn.prepareStatement(values);
prep.setString(1, msisdn);
prep.setString(2, customer);
prep.setString(3, message);
prep.setString(4, serviceid);
prep.setString(5, correlator);
prep.setString(6, "others");
prep.execute();
prep.close();
conn.close();
EquitelSMS esdp = new EquitelSMS("172.27.116.22", "EQUITELRX", "pdsl219", "pdsl219", msisdn, message, "22225");
esdp.submitMessage();
String insert = "insert into dlr_status (msisdn,correlator,status) values ('" + msisdn + "','" + correlator + "','DeliveredToTerminal')";
data.bbinsert(insert);
}
Logger.getLogger(PDSLSMS.class.getName()).log(Level.INFO, "PDSLSMSAPI SMS SENT!!");
safprefix.clear();
response = "Success";
} catch (SQLException ex) {
Logger.getLogger(PDSLSMS.class.getName()).log(Level.SEVERE, null, ex);
}
} else {
response = "InvalidServiceID";
}
}
Logger.getLogger(PDSLSMS.class.getName()).log(Level.INFO, "PDSLSMSAPI SEND SMS RESPONSE!! " + response);
return response;
}
@WebMethod(operationName = "checkSMSDelivery")
public String checkSMSDelivery(@WebParam(name = "ServiceID") String serviceid, @WebParam(name = "correlator") String correlator) {
DataStore data = new DataStore();
String response = "SMSNotDeliveredToTerminal";
if (serviceid == null || serviceid.isEmpty() || serviceid.equals("?")) {
response = "EmptyServiceID";
} else if (correlator == null || correlator.isEmpty() || correlator.equals("?")) {
response = " EmptyCorrelator";
} else {
if ((serviceid.equals("6014702000147264")) || (serviceid.equals("APEX"))) {
if (data.getDlrStatus(correlator).equals("DeliveredToTerminal")) {
response = "SMSDeliveredToTerminal";
} else if (data.getDlrStatus(correlator).equals("notfound")) {
response = "InvalidCorrelator";
} else {
response = "SMSNotDeliveredToTerminal";
}
} else {
response = "InvalidServiceID";
}
}
return response;
}
}
| [
"kariukijulius63@gmail.com"
] | kariukijulius63@gmail.com |
1049add0ae25f1e120db846c1d8239cb844ace72 | 5af831c6c5f0101c62f01feb6f2132a6de32a842 | /project1backend/src/main/java/com/niit/model/BillingAddress.java | 6482dea3b6776b0724de86b2f3d02ef9c8467a6a | [] | no_license | koradiyavivek/onlineshopping | bed2d2e20e10eece7b1e6fdbafbaf57018bb4c97 | 9779629c3b143114ee412e546ad396f4af11b264 | refs/heads/master | 2020-03-17T20:21:04.331074 | 2018-05-30T07:30:01 | 2018-05-30T07:30:01 | 133,905,146 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,443 | java | package com.niit.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class BillingAddress {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private int id;
private String apartmentnumber;
private String streetname;
private String city;
private String state;
private String country;
private String zipcode;
public BillingAddress(){
System.out.println("BillingAddress object is created");
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getApartmentnumber() {
return apartmentnumber;
}
public void setApartmentnumber(String apartmentnumber) {
this.apartmentnumber = apartmentnumber;
}
public String getStreetname() {
return streetname;
}
public void setStreetname(String streetname) {
this.streetname = streetname;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getZipcode() {
return zipcode;
}
public void setZipcode(String zipcode) {
this.zipcode = zipcode;
}
}
| [
"koradiya.vivek@gmail.com"
] | koradiya.vivek@gmail.com |
0042fd293cd5ad1f645da5b16650f4a40d86ae46 | 139960e2d7d55e71c15e6a63acb6609e142a2ace | /mobile_app1/module345/src/main/java/module345packageJava0/Foo121.java | 55007ca790c974622ab7fdfe986b80bdd3515f58 | [
"Apache-2.0"
] | permissive | uber-common/android-build-eval | 448bfe141b6911ad8a99268378c75217d431766f | 7723bfd0b9b1056892cef1fef02314b435b086f2 | refs/heads/master | 2023-02-18T22:25:15.121902 | 2023-02-06T19:35:34 | 2023-02-06T19:35:34 | 294,831,672 | 83 | 7 | Apache-2.0 | 2021-09-24T08:55:30 | 2020-09-11T23:27:37 | Java | UTF-8 | Java | false | false | 374 | java | package module345packageJava0;
import java.lang.Integer;
public class Foo121 {
Integer int0;
public void foo0() {
new module345packageJava0.Foo120().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
}
| [
"oliviern@uber.com"
] | oliviern@uber.com |
fb9f9c1ba12a4c24c7ea8a29edf83118a9e12212 | 7ba4d30f9ae9c3a9f2624349321ad707b5e2c80e | /src/Java0107/KotlinStudent.java | 47ec796d269abda2c4779922100a6798e612f35d | [] | no_license | jacob8730/JavaProject | b1bc2b0e63ff6c414d14cb83062e91e713961067 | 8f84ec2968814b7f97419a1f0df1457fc37e6047 | refs/heads/master | 2023-02-23T03:20:26.109794 | 2021-01-29T07:16:19 | 2021-01-29T07:16:19 | 334,063,036 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 652 | java | package Java0107;
public class KotlinStudent {
public static void main(String[] args) {
Student hic1 = new Student();
kotlin hic2 = new kotlin();
System.out.println("이름 : " + hic2.name);
hic2.name = "jacob";
System.out.println("이름 : " + hic2.name);
System.out.println("소속 : " + hic2.academy);
// (1) null //(2) ICIA
hic2.academy = "Google";
System.out.println("6걔월 후 소속 :" + hic2.academy);
hic2.age = 10;
// System.out.println(hic2.addAge1());
System.out.println(hic2.addAge());
System.out.println(hic2.age);
hic1.setName("jacob");
// hic1.name = "jacob";
}
}
| [
"27@DESKTOP-7QNT9JD"
] | 27@DESKTOP-7QNT9JD |
964925df2bde5a55d2519627364d3bd04a7b9517 | d05ac0e945576eb8e51cb38dcf7350296bacdba1 | /jbossws-core/src/org/jboss/ws/core/WSTimeoutException.java | 16c80bd6107ac5fb03849cd1b6b30eb124857d62 | [] | no_license | Arckman/CBPM | 9b6a125ea2bebe44749c09cfc37f89fdc15d69b7 | 10663b40abf151c90d0b20878f8f7f20c8077b30 | refs/heads/master | 2016-09-06T09:02:15.819806 | 2014-05-22T02:40:16 | 2014-05-22T02:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,450 | java | /*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.ws.core;
/**
* A RuntimeException that that indicates client timeout
*
* @author Thomas.Diesler@jboss.org
* @since 06-Jan-2006
*/
public class WSTimeoutException extends RuntimeException
{
private long timeout;
public WSTimeoutException(String message, long timeout)
{
super(message);
this.timeout = timeout;
}
public long getTimeout()
{
return timeout;
}
}
| [
"fengrj1989@gmail.com"
] | fengrj1989@gmail.com |
8d1a84204f5ee784cd761a2a936dc4f20e015008 | 7f7762abae984c0ed9d112c4687c1ad0bd894e0b | /src/dao/impl/ShijuanitemDaoImpl.java | c9d6f0686e0f0de2e450a3d363792276b860f9f8 | [] | no_license | CNFisherman/test-by-js | 20f47ec83c71774ba87ef6a0e1217dfb68ea263e | e0f3480a971afcce8aea801daddf1f4d143f4a75 | refs/heads/master | 2023-08-29T10:41:10.927769 | 2021-11-05T11:06:34 | 2021-11-05T11:06:34 | 424,917,476 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,622 | java | package dao.impl;
import java.sql.SQLException;
import java.util.List;
import model.Shijuanitem;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateCallback;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import dao.ShijuanitemDao;
public class ShijuanitemDaoImpl extends HibernateDaoSupport implements ShijuanitemDao{
public void deleteBean(Shijuanitem bean) {
this.getHibernateTemplate().delete(bean);
}
public void insertBean(Shijuanitem bean) {
this.getHibernateTemplate().save(bean);
}
@SuppressWarnings("unchecked")
public Shijuanitem selectBean(String where) {
List<Shijuanitem> list = this.getHibernateTemplate().find("from Shijuanitem " +where);
if(list.size()==0){
return null;
}
return list.get(0);
}
public int selectBeanCount(String where) {
long count = (Long)this.getHibernateTemplate().find("select count(*) from Shijuanitem "+where).get(0);
return (int)count;
}
@SuppressWarnings("unchecked")
public List<Shijuanitem> selectBeanList(final int start,final int limit,final String where) {
return (List<Shijuanitem>)this.getHibernateTemplate().executeFind(new HibernateCallback() {
public Object doInHibernate(final Session session)throws HibernateException, SQLException {
List<Shijuanitem> list = session.createQuery("from Shijuanitem "+where)
.setFirstResult(start)
.setMaxResults(limit)
.list();
return list;
}
});
}
public void updateBean(Shijuanitem bean) {
this.getHibernateTemplate().update(bean);
}
}
| [
"1114211629@qq.com"
] | 1114211629@qq.com |
00d57f743669c6d228e9084c2e646722e553dcc5 | 1544664dd69ab1a6e482337c00fb615e3710ce40 | /xchange-core/src/main/java/org/knowm/xchange/utils/Assert.java | 2202a49ec6ce20bb96e3f544b7ec2a6bcda8700e | [
"MIT"
] | permissive | bbkbarbar/XChange_modified | ef5d3e27421d44bc0e72417d592a3702484ad03c | 868e001dc63a952ab18185053e89cdd6a62612d5 | refs/heads/master | 2021-01-20T01:27:58.543608 | 2017-08-25T04:20:16 | 2017-08-25T04:20:16 | 101,289,532 | 1 | 3 | null | null | null | null | UTF-8 | Java | false | false | 1,692 | java | package org.knowm.xchange.utils;
import java.util.Collection;
/**
* <p>
* Abstract class to provide the following to framework:
* </p>
* <ul>
* <li>Provision of useful assertions to trap programmer errors early</li>
* </ul>
*/
public abstract class Assert {
/**
* <p>
* Asserts that a condition is true
* </p>
*
* @param condition The condition under test
* @param message The message for any exception
*/
public static void isTrue(boolean condition, String message) {
if (!condition) {
throw new IllegalArgumentException(message);
}
}
/**
* <p>
* Asserts that an object is not null
* </p>
*
* @param object The object under test
* @param message The message for any exception
*/
public static void notNull(Object object, String message) {
if (object == null) {
throw new IllegalArgumentException(message);
}
}
/**
* Asserts that a String is not null and of a certain length
*
* @param input The input under test
* @param message The message for any exception
*/
public static void hasLength(String input, int length, String message) {
notNull(input, message);
if (input.trim().length() != length) {
throw new IllegalArgumentException(message);
}
}
/**
* Asserts that a Collection is not null and of a certain size
*
* @param input The input under test
* @param message The message for any exception
*/
public static void hasSize(@SuppressWarnings("rawtypes") Collection input, int length, String message) {
notNull(input, message);
if (input.size() != length) {
throw new IllegalArgumentException(message);
}
}
}
| [
"bbk.barbar@gmail.com"
] | bbk.barbar@gmail.com |
5384fe699cc55552024aa67e640e313cf6e377af | ed8e0592bfe9a8a20536b6eef25d7c5ead7f41ae | /SoftwareEngineeringBackend/src/main/java/com/example/softwareengineeringbackend/utils/CsvHelper.java | b069b6b1bdbd0d550a99cb569a88f7bcaac603b2 | [] | no_license | TomTruyenPXL/Software_Engineering_PE_PXL | 097c2df71b0d6d0c9421bfaa37bba7fc90c1dc4f | fdbbdc00a4d4944120dc46e8c0895d65e5a07b09 | refs/heads/main | 2023-08-13T20:19:17.515066 | 2021-10-12T07:27:25 | 2021-10-12T07:27:25 | 411,749,269 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,299 | java | package com.example.softwareengineeringbackend.utils;
import com.example.softwareengineeringbackend.domain.Student;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
import org.springframework.web.multipart.MultipartFile;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class CsvHelper {
public static String TYPE = "text/csv";
public enum CsvHeaders {
NUMBER(0),
GENDER(1),
GIVEN_NAME(2),
SURNAME(3),
EMAIL(4),
GUID(5);
private final int index;
CsvHeaders(int index) { this.index = index; }
public int getIndex() { return index; }
}
static String[] HEADERS = {"Number", "Gender", "GivenName", "Surname", "EmailAddress", "GUID"};
public static boolean hasCSVFormat(MultipartFile file) {
return TYPE.equals(file.getContentType());
}
public static List<Student> csvToStudents(InputStream is) {
List<Student> students = new ArrayList<>();
try(BufferedReader fileReader = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8));
CSVParser csvParser = new CSVParser(fileReader, CSVFormat.DEFAULT.withFirstRecordAsHeader().withIgnoreHeaderCase().withTrim());) {
Iterable<CSVRecord> csvRecords = csvParser.getRecords();
for(CSVRecord csvRecord: csvRecords) {
Student student = new Student(
csvRecord.get(CsvHeaders.GUID.getIndex()),
Integer.parseInt(csvRecord.get(CsvHeaders.NUMBER.getIndex())),
csvRecord.get(CsvHeaders.GENDER.getIndex()),
csvRecord.get(CsvHeaders.GIVEN_NAME.getIndex()),
csvRecord.get(CsvHeaders.SURNAME.getIndex()),
csvRecord.get(CsvHeaders.EMAIL.getIndex())
);
students.add(student);
}
} catch (IOException e) {
System.out.println("Failed to parse CSV File");
}
return students;
}
}
| [
"11900339@student.pxl.be"
] | 11900339@student.pxl.be |
2cd7ec0f5fffdfd3b64b03980df68d2f2978ce06 | dca3555b1aa226065228aa2fa7158764a4e8dd7f | /src/main/java/com/expedia/model/DisplayLocation.java | 57a8b3004ecbe01748bd9b6b0d8159120ca22959 | [] | no_license | dvaid/Expedia-Weather-APP | 3632aa9a43f1800b92ce642e2e971c522d77eeba | d131fb8ccb883b705bd570553d895a615cf90b16 | refs/heads/master | 2021-01-23T11:40:16.266569 | 2013-06-20T08:10:39 | 2013-06-20T08:10:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,294 | java | /**
* DisplayLocation.java
*
* Created by Di007Va
* Created on Jun 12, 2013
*
*
* Copyright (c) 2013 Symbiont Softwares
* All rights reserved.
*
* This software is the confidential and proprietary information of
* Symbiont Softwares. You shall use it only in accordance with the terms
* of the license agreement you entered into with Symbiont Softwares.
*
*/
package com.expedia.model;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
* @author Di007Va
*
*/
@XStreamAlias("display_location")
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class DisplayLocation {
private String full;
private String city;
private String state;
@XStreamAlias("state_name")
@JsonProperty("state_name")
private String stateName;
private String country;
@JsonProperty("country_iso3166")
@XStreamAlias("country_iso3166")
private String countryISO;
private String zip;
private String latitude;
private String longitude;
private String elevation;
/**
* @return the full
*/
public String getFull() {
return full;
}
/**
* @param full
* the full to set
*/
public void setFull(String full) {
this.full = full;
}
/**
* @return the city
*/
public String getCity() {
return city;
}
/**
* @param city
* the city to set
*/
public void setCity(String city) {
this.city = city;
}
/**
* @return the state
*/
public String getState() {
return state;
}
/**
* @param state
* the state to set
*/
public void setState(String state) {
this.state = state;
}
/**
* @return the stateName
*/
public String getStateName() {
return stateName;
}
/**
* @param stateName
* the stateName to set
*/
public void setStateName(String stateName) {
this.stateName = stateName;
}
/**
* @return the country
*/
public String getCountry() {
return country;
}
/**
* @param country
* the country to set
*/
public void setCountry(String country) {
this.country = country;
}
/**
* @return the countryISO
*/
public String getCountryISO() {
return countryISO;
}
/**
* @param countryISO
* the countryISO to set
*/
public void setCountryISO(String countryISO) {
this.countryISO = countryISO;
}
/**
* @return the zip
*/
public String getZip() {
return zip;
}
/**
* @param zip
* the zip to set
*/
public void setZip(String zip) {
this.zip = zip;
}
/**
* @return the latitude
*/
public String getLatitude() {
return latitude;
}
/**
* @param latitude
* the latitude to set
*/
public void setLatitude(String latitude) {
this.latitude = latitude;
}
/**
* @return the longitude
*/
public String getLongitude() {
return longitude;
}
/**
* @param longitude
* the longitude to set
*/
public void setLongitude(String longitude) {
this.longitude = longitude;
}
/**
* @return the elevation
*/
public String getElevation() {
return elevation;
}
/**
* @param elevation
* the elevation to set
*/
public void setElevation(String elevation) {
this.elevation = elevation;
}
}
| [
"itecnic@gmail.com"
] | itecnic@gmail.com |
eef8761f79701b580f0aad21d1b2a81bba7c1f77 | be423dfb3af4497506560a975afea79e5ef305fe | /src/domain/MyException.java | 3cc41da4ff06214fd8a26c7f06170c02ce9f43d3 | [] | no_license | tudorbutiri/FootballSportsComplex | 59dcb7f6bb816b575419ec7a26f27c84601f6738 | fd58949e692aacc2125b8d44f25af63fbc4b813e | refs/heads/master | 2021-01-10T02:24:24.945346 | 2016-03-04T14:35:35 | 2016-03-04T14:35:35 | 53,141,258 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 353 | java | package domain;
public class MyException extends Exception{
/**
*
*/
private static final long serialVersionUID = 1L;
public MyException() {
super();
// TODO Auto-generated constructor stub
}
public MyException(String arg0) {
super(arg0);
// TODO Auto-generated constructor stub
}
/**
*
*/
}
| [
"tudor.butiri@evozon.com"
] | tudor.butiri@evozon.com |
a0e80379efc7e0c7674421458a791d01f313df3c | db34de9bb0379bdcf10a945251a8be70946b7ee3 | /src/NotePast/Note.java | b7aa84a87b613964fbb4728b36aa602dab9a07e3 | [] | no_license | MiraiRT/NotePast | 02e800fb08e87195fad1971e6d85f5fc47db4201 | 17ace73100923756a1a87c7db7fdcbb7f24e3291 | refs/heads/master | 2021-07-19T08:18:07.808898 | 2020-05-05T17:26:13 | 2020-05-05T17:26:13 | 156,444,482 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,662 | java | package NotePast;
import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
@Entity
public class Note implements Serializable {
// EntityDiary : ObjectDB //
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id_Note;
public int getId() {
return id_Note;
}
// EntityDiary : ObjectDB //
private String dayStr;
private String timeStr;
private String noteText;
public Note(String dayStr, String timeStr, String noteText) {
this.dayStr = dayStr;
this.timeStr = timeStr;
this.noteText = noteText;
}
public String getDayStr() {
return dayStr;
}
public void setDayStr(String dayStr) {
this.dayStr = dayStr;
}
public String getTimeStr() {
return timeStr;
}
public void setTimeStr(String timeStr) {
this.timeStr = timeStr;
}
public String getNoteText() {
return noteText;
}
public void setNoteText(String noteText) {
this.noteText = noteText;
}
// Add New Note to Today Story //
public static Note addNote(EntityDiary entity, Diary diary, String noteText, String timeStr) {
int diaryID = diary.getId();
int dayID = diary.getToday().getId();
String dayStr = diary.getToday().getDayStr();
Note newNote = entity.addNote(diaryID, dayID, dayStr, timeStr, noteText);
Note.detectTag(entity, diary, newNote);
System.out.println("NoteID " + newNote.getId() + " >> Added" + "\n");
return newNote;
}
// Edit Note in Today Story //
public static void editNote(EntityDiary entity, Diary diary, int noteID, String time, String noteText) {
DayStory today = diary.getToday();
int index = 0;
for (Note i : today.getListOfNote()) {
if (i.getId() == noteID) {
break;
}
index++;
}
Note note = today.getListOfNote().get(index);
note.setTimeStr(time);
note.setNoteText(noteText);
Note.detectTag(entity,diary,note);
entity.editNote(note.getId(), time, noteText);
System.out.println("NoteID " + noteID + " >> Edited\n");
}
// Delete Note in Today Story //
public static void deleteNote(EntityDiary entity, DayStory dayStory, int noteID) {
int index = 0;
for (Note i : dayStory.getListOfNote()) {
if (i.getId() == noteID) {
break;
}
index++;
}
dayStory.getListOfNote().remove(index);
entity.deleteNote(dayStory.getId(), noteID);
System.out.println("NoteID " + noteID + " >> Deleted\n");
}
// Detect Tag (@,#) in new Note //
public static void detectTag(EntityDiary entity, Diary diary, Note newNote) {
String[] tag = newNote.getNoteText().split(" ");
for (int i = 0; i < tag.length; i++) {
if (tag[i].substring(0, 1).equals("@") || tag[i].substring(0, 1).equals("#")) {
String type;
if (tag[i].substring(0, 1).equals("@")) {
type = "Location";
} else {
type = "People";
}
String name = tag[i].substring(1);
Tag.addNoteToTag(entity, diary, newNote.getId(), name, type);
}
}
}
public String toString() {
return "\n\t\t=> Note\n\t\t"
+ "Day: " + this.dayStr + " Time: " + this.timeStr + "\n\t\t"
+ "ID: " + this.id_Note + "\n\t\t"
+ "Text: " + this.noteText + "\n\t";
}
}
| [
"59011114@kmitl.ac.th"
] | 59011114@kmitl.ac.th |
3d3a3a8154aceace6471288b67e748971dd11aaf | acafbb02471197387bbdec4e749f32521543af4d | /gift/src/com/web/UserServlet.java | 1294f1e66e49734e992e41aee8b05e3a78981348 | [] | no_license | beginner-controller/Blog | c27f2deed5de6b9a3642f58f8f0c4afc39adc870 | ce984be63f4b18d1dd360c655bbc0f2ea68d28ab | refs/heads/master | 2023-01-22T07:08:25.272625 | 2020-12-02T16:02:27 | 2020-12-02T16:02:27 | 303,038,435 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,853 | java | package com.web;
import com.model.User;
import com.service.UserService;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet(name = "UserServlet",urlPatterns = "/user")
public class UserServlet extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request,response);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding("utf-8");
String method = request.getParameter("method");
if ("login".equals(method)){
login(request,response);
}else if ("register".equals(method)){
register(request,response);
}
}
protected void login(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// 保证传值不乱码
request.setCharacterEncoding("utf-8");
// 将数据传到model层
User user = new User();
// 获取数据
user.setName(request.getParameter("username"));
user.setPassword(request.getParameter("password"));
// 调用service逻辑层
UserService userService = new UserService();
boolean bool = false;
try {
bool = userService.login(user);
} catch (Exception e) {
e.printStackTrace();
}
if (bool == true){
response.sendRedirect(request.getContextPath() + "/Home.jsp");
}else {
response.setContentType("text/html;charset=UTF-8");
response.getWriter().write("登录失败");
}
}
protected void register(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// 传进来的字符集不乱码
request.setCharacterEncoding("utf-8");
// 将数据传到model层
User user = new User();
// 获取数据
user.setName(request.getParameter("username"));
user.setPassword(request.getParameter("password"));
user.setEmail(request.getParameter("email"));
user.setPhone(request.getParameter("phone"));
user.setQQ(request.getParameter("QQ"));
UserService userService = new UserService();
boolean register = userService.register(user);
if (register) {
response.sendRedirect(request.getContextPath() + "/index.jsp");
} else {
response.setContentType("text/html;charset=UTF-8");
response.getWriter().write("注册失败");
}
}
}
| [
"1010638827@qq.com"
] | 1010638827@qq.com |
037074e46c175a07995b486afb8a6bb3420b17ec | 6aadcce4035ff42df55546acfd0e4b255c6e4cc0 | /ac.york.vml/src/vml/impl/ChartElementImpl.java | db1aaea3ce3844be156c765a42d194c1980885c7 | [] | no_license | MuteebAlsh/ac.york.vml | 45fdfc97bcbf06f860547e327b0884c0f531d9dd | 67861c096a530bed985e2afb34408c691fecf44d | refs/heads/master | 2021-09-23T14:35:51.093524 | 2018-09-24T17:51:05 | 2018-09-24T17:51:05 | 135,911,708 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,118 | java | /**
*/
package vml.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import vml.ChartElement;
import vml.VmlPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Chart Element</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link vml.impl.ChartElementImpl#getID <em>ID</em>}</li>
* <li>{@link vml.impl.ChartElementImpl#getXValue <em>XValue</em>}</li>
* <li>{@link vml.impl.ChartElementImpl#getYValue <em>YValue</em>}</li>
* </ul>
*
* @generated
*/
public class ChartElementImpl extends DiagramElementImpl implements ChartElement {
/**
* The default value of the '{@link #getID() <em>ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getID()
* @generated
* @ordered
*/
protected static final Integer ID_EDEFAULT = null;
/**
* The cached value of the '{@link #getID() <em>ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getID()
* @generated
* @ordered
*/
protected Integer id = ID_EDEFAULT;
/**
* The default value of the '{@link #getXValue() <em>XValue</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getXValue()
* @generated
* @ordered
*/
protected static final String XVALUE_EDEFAULT = null;
/**
* The cached value of the '{@link #getXValue() <em>XValue</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getXValue()
* @generated
* @ordered
*/
protected String xValue = XVALUE_EDEFAULT;
/**
* The default value of the '{@link #getYValue() <em>YValue</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getYValue()
* @generated
* @ordered
*/
protected static final Double YVALUE_EDEFAULT = null;
/**
* The cached value of the '{@link #getYValue() <em>YValue</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getYValue()
* @generated
* @ordered
*/
protected Double yValue = YVALUE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ChartElementImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return VmlPackage.Literals.CHART_ELEMENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Integer getID() {
return id;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setID(Integer newID) {
Integer oldID = id;
id = newID;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, VmlPackage.CHART_ELEMENT__ID, oldID, id));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getXValue() {
return xValue;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setXValue(String newXValue) {
String oldXValue = xValue;
xValue = newXValue;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, VmlPackage.CHART_ELEMENT__XVALUE, oldXValue, xValue));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Double getYValue() {
return yValue;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setYValue(Double newYValue) {
Double oldYValue = yValue;
yValue = newYValue;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, VmlPackage.CHART_ELEMENT__YVALUE, oldYValue, yValue));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case VmlPackage.CHART_ELEMENT__ID:
return getID();
case VmlPackage.CHART_ELEMENT__XVALUE:
return getXValue();
case VmlPackage.CHART_ELEMENT__YVALUE:
return getYValue();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case VmlPackage.CHART_ELEMENT__ID:
setID((Integer)newValue);
return;
case VmlPackage.CHART_ELEMENT__XVALUE:
setXValue((String)newValue);
return;
case VmlPackage.CHART_ELEMENT__YVALUE:
setYValue((Double)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case VmlPackage.CHART_ELEMENT__ID:
setID(ID_EDEFAULT);
return;
case VmlPackage.CHART_ELEMENT__XVALUE:
setXValue(XVALUE_EDEFAULT);
return;
case VmlPackage.CHART_ELEMENT__YVALUE:
setYValue(YVALUE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case VmlPackage.CHART_ELEMENT__ID:
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
case VmlPackage.CHART_ELEMENT__XVALUE:
return XVALUE_EDEFAULT == null ? xValue != null : !XVALUE_EDEFAULT.equals(xValue);
case VmlPackage.CHART_ELEMENT__YVALUE:
return YVALUE_EDEFAULT == null ? yValue != null : !YVALUE_EDEFAULT.equals(yValue);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (ID: ");
result.append(id);
result.append(", xValue: ");
result.append(xValue);
result.append(", yValue: ");
result.append(yValue);
result.append(')');
return result.toString();
}
} //ChartElementImpl
| [
"t3obi.4u@gmail.com"
] | t3obi.4u@gmail.com |
599bb1c107cb7fad4ab07d5d04ac72f49b614315 | bcf70e68651e6fc844b1fc91543a123b26a1c81d | /src/main/persons/RakiaMaker.java | d3c097ea379f4c55792a3c2befe624340ee52f74 | [] | no_license | hhristov1980/RakiaFactory | 42b71ab6c6d368c428e251b43f9080e40ca71cd7 | df04be71d71c0304f93684b47220d5e87c06a785 | refs/heads/master | 2023-03-05T00:42:43.828055 | 2021-02-20T19:23:13 | 2021-02-20T19:23:13 | 340,400,848 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,221 | java | package main.persons;
import main.boiler.Boiler;
import main.products.Fruit;
import main.products.Product;
import main.products.Rakia;
import main.rakiaFactory.RakiaFactory;
import main.util.Randomizer;
import java.util.Map;
import java.util.concurrent.BlockingQueue;
public class RakiaMaker extends Person{
int littersProduced;
public RakiaMaker(String name, int age, Product.ProductType typeToProduce, RakiaFactory rakiaFactory) {
super(name, age, typeToProduce, rakiaFactory);
}
@Override
public int getTimeInMillis() {
return 1000;
}
@Override
public void run() {
while (true){
for(Map.Entry<Product.ProductType, BlockingQueue<Rakia>> e:rakiaFactory.getRakiaStore().entrySet()){
if(e.getValue().size()>=30){
return;
}
}
boolean produced = false;
produced = rakiaFactory.addRakia(typeToProduce);
if(produced){
littersProduced++;
}
try {
Thread.sleep(getTimeInMillis());
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}
| [
"admin@MacBook-Pro.local"
] | admin@MacBook-Pro.local |
b102c59eb3f86be27c7ae5c477206aa3de38d17c | 84daf19073e34bd72dbad758b99efe8fba1387ed | /muck-parent/muck-third-monitor/src/main/java/com/muck/socket/LocationServer.java | fd9198d5b4b4794f7f0b7a7d3376ab41efcfb3cf | [] | no_license | gk1996TZ/gk1996TZ.github.io | 359f0328474cb8a6e783d03967c03aaac6302900 | 3739e38e18159bf6fb8f780d162c68178a330d57 | refs/heads/master | 2020-04-01T17:20:08.275143 | 2018-11-01T08:34:34 | 2018-11-01T08:35:00 | 153,423,909 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,575 | java | package com.muck.socket;
import java.net.InetSocketAddress;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.muck.jt809.JT809Server;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.logging.LogLevel;
import io.netty.handler.logging.LoggingHandler;
public class LocationServer {
static Logger logger = LoggerFactory.getLogger(LocationServer.class);
private static int port=8899;
public static void run(){
EventLoopGroup bossGroup = new NioEventLoopGroup();
EventLoopGroup wokerGroup = new NioEventLoopGroup();
try{
ServerBootstrap serverBootstrap = new ServerBootstrap();
serverBootstrap.group(bossGroup,wokerGroup).channel(NioServerSocketChannel.class)
.handler(new LoggingHandler(LogLevel.INFO))
.childHandler(new WebSocketChannelInitializer());
logger.info("netty websocket 启动 端口号"+port);
ChannelFuture channelFuture = serverBootstrap.bind(new InetSocketAddress(port)).sync();
channelFuture.channel().closeFuture().sync();
logger.info("netty websocket 关闭"+port);
} catch (InterruptedException e) {
//e.printStackTrace();
logger.error("netty websocket", e);
}finally {
bossGroup.shutdownGracefully();
wokerGroup.shutdownGracefully();
}
}
}
| [
"gk1996dd@163.com"
] | gk1996dd@163.com |
d594fcfc4c57c336a2da9501bd0c1042e95c0d81 | 0091b8582f3885d6cde3845a99d46ed452a88b3f | /code-forest-standalone/src/br/usp/each/saeg/code/forest/metaphor/data/TreeData.java | ee4e47b1dfc32e48f38671512ef340ceb43ae767 | [
"Apache-2.0"
] | permissive | saeg/code-forest | e95055e26c6dbe61b885a7080df566c9414c9cc9 | d6d3f89f475df9dcd9781592bba4cf61a1ffaaf0 | refs/heads/master | 2020-04-06T16:13:13.046677 | 2014-11-18T12:28:54 | 2014-11-18T12:28:54 | 18,781,428 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,317 | java | package br.usp.each.saeg.code.forest.metaphor.data;
import java.util.*;
public class TreeData implements Comparable<TreeData> {
private List<String> lines = new ArrayList<String>();
private String value;
private float score;
private int loc;
private List<BranchData> branchData = new ArrayList<BranchData>();
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public float getScore() {
return score;
}
public void setScore(float score) {
this.score = score;
}
public int getLoc() {
return loc;
}
public void setLoc(int loc) {
this.loc = loc;
}
public List<String> getLines() {
return lines;
}
public void setLines(List<String> lines) {
this.lines = lines;
}
public List<BranchData> getBranchData() {
return branchData;
}
public void setBranchData(List<BranchData> branchData) {
if (null != branchData) {
this.branchData = branchData;
}
}
private int leftSide() {
return (int) Math.ceil((double) (getNotEmptyBranchesCollectionSize())/2);
}
private int rightSide() {
return Math.max(getNotEmptyBranchesCollectionSize() - leftSide(), 0);
}
public int getHeight() {
return Math.max(leftSide(), rightSide());
}
public int getNotEmptyBranchesCollectionSize() {
int result = 0;
for (BranchData branch : branchData) {
if (!branch.getLeafData().isEmpty()) {
result++;
}
}
return result;
}
public List<BranchData> getNotEmptyBranches() {
List<BranchData> result = new ArrayList<BranchData>();
for (BranchData desc : branchData) {
if (!desc.getLeafData().isEmpty()) {
result.add(desc);
}
}
return result;
}
public boolean isScoreBetween(float min, float max) {
return Float.compare(score, max) <= 0 && Float.compare(score, min) >= 0;
}
@Override
public int compareTo(TreeData o) {
return Float.compare(score, o.getScore());
}
}
| [
"dmutti@gmail.com"
] | dmutti@gmail.com |
ed4c4b0223965f4e3f0ab9d2d00181151ce79ffd | bff4c21e70a3e90de603dcb31cf2886427fd9c8a | /src/_442_Find_All_Duplicates_in_an_Array.java | ef00defaebe93ec49f9065913a823d46a6b1fb29 | [] | no_license | Mushi-X/Leetcode | 44afde542e884f4fb6b02d569eaa9f20955dd4d3 | 3f59120b52f21f4f8c4517af94017d97cb276c60 | refs/heads/master | 2020-05-07T22:53:57.338546 | 2019-04-17T14:19:49 | 2019-04-17T14:19:49 | 180,965,814 | 5 | 0 | null | null | null | null | UTF-8 | Java | false | false | 981 | java | import java.util.ArrayList;
import java.util.List;
/**
* 442. Find All Duplicates in an Array
*
* Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
*
* Find all the elements that appear twice in this array.
*
* Could you do it without extra space and in O(n) runtime?
*
* Example:
* Input:
* [4,3,2,7,8,2,3,1]
*
* Output:
* [2,3]
*/
public class _442_Find_All_Duplicates_in_an_Array {
public List<Integer> findDuplicates(int[] nums) {
List<Integer> result = new ArrayList<>();
for (int i = 0, length = nums.length; i < length; i++) {
int realVal = nums[i];
if (realVal > length) {
realVal = realVal - length;
}
if (nums[realVal - 1] > length) {
result.add(realVal);
} else {
nums[realVal - 1] = realVal + length;
}
}
return result;
}
}
| [
"w13538952441@gmail.com"
] | w13538952441@gmail.com |
8449e067e681938f78ed9137c7c91a8664d3df93 | 0fa2af3e05826a29a638a813ae626c328bb062f1 | /huaqi-web/src/main/java/com/huaqi/web/service/impl/BmPositionServiceImpl.java | 2dcd132b8137fe83b040d2c82d80622ba8522879 | [] | no_license | ZFCC/hq | 8c53aa17ab1d6b6764d92c315f6acfbe2de1d159 | 6c38522fb926a3ad5717cf216139a22c83455df2 | refs/heads/master | 2022-09-25T09:30:05.614177 | 2020-01-02T09:49:43 | 2020-01-02T09:49:43 | 231,374,009 | 0 | 0 | null | 2022-09-01T23:18:20 | 2020-01-02T12:05:47 | Java | UTF-8 | Java | false | false | 637 | java | package com.huaqi.web.service.impl;
import com.huaqi.base.entity.BmPosition;
import com.huaqi.base.service.BmPositionService;
import com.huaqi.web.dao.BmPositionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("bmPositionService")
public class BmPositionServiceImpl implements BmPositionService {
@Autowired
private BmPositionMapper bmPositionMapper;
@Override
public BmPosition getPositionByCode(String code) {
BmPosition bmPosition = bmPositionMapper.selectByPrimaryKey(Integer.valueOf(code));
return bmPosition;
}
}
| [
"874718507@qq.com"
] | 874718507@qq.com |
448d3fa577ca4c2a4f4f34c4aba9b1f1d95eeece | 14225d6d2e734332e141e1578e5e5464d257f7a9 | /defintive_guide/src/main/java/org/maple/ch7/demo02/MsgPackEncoder.java | fa9426d76ea51dc4683b4eca9425986620bb9ce2 | [] | no_license | mapleinsss/mapleins-netty-demo | 2857a355637d7df6c3f0cbd8f022db3db9ed63e0 | 98bfeb5edadc90831a1789fa0e7faa236cb792e0 | refs/heads/master | 2023-04-08T19:40:45.810239 | 2021-04-28T02:43:17 | 2021-04-28T02:43:17 | 352,917,319 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 595 | java | package org.maple.ch7.demo02;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import org.msgpack.MessagePack;
/**
* 将 object 对象转换为 msgpack 装入 ByteBuf
*/
public class MsgPackEncoder extends MessageToByteEncoder<Object> {
@Override
protected void encode(ChannelHandlerContext channelHandlerContext, Object o, ByteBuf byteBuf) throws Exception {
MessagePack messagePack = new MessagePack();
byte[] bytes = messagePack.write(o);
byteBuf.writeBytes(bytes);
}
}
| [
"mapleins@aliyun.com"
] | mapleins@aliyun.com |
5855d8bcc013db6762f2393393ef9bbd5b88908a | fa3a79c232184f5fcfda3be47f5341c793cb03d0 | /yanolja/src/com/jkb/yanolja/util/Script.java | cbab6b0a5b43b82db6128e2baeb73d6eb4cd3adb | [] | no_license | skjin20800/JSP-YanoljaProject | f8c2fd7ea4c89c1e2fd41e8972f7f7ceeeb391d9 | 25644cdc9770c99a784709fd5fe1c852264d24ac | refs/heads/master | 2023-02-28T10:19:29.215822 | 2021-02-02T12:53:09 | 2021-02-02T12:53:09 | 333,383,542 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,023 | java | package com.jkb.yanolja.util;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Script {
public static void back(HttpServletResponse response, String msg) {
PrintWriter out;
try {
out = response.getWriter();
out.println("<script>");
out.println("alert('" + msg + "');");
out.println("history.back();"); //이전에 저장된 페이지로 돌아간다(뒤로가기)
out.println("</script>");
out.flush(); // 버퍼 비우기
} catch (IOException e) {
e.printStackTrace();
}
}
public static void responseData(HttpServletResponse response, String jsonData) {
PrintWriter out;
try {
response.setContentType("text/html; charset=utf-8");
out = response.getWriter();
out.print(jsonData);
out.flush(); // 버퍼 비우기
} catch (IOException e) {
e.printStackTrace();
}
}
}
| [
"skjin20800@naver.com"
] | skjin20800@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.