id
stringlengths 36
36
| text
stringlengths 1
1.25M
|
---|---|
eeb2c635-6033-403b-82e8-bc9fba83a1a6 | @Override
public void resolve() {
if (controller.isHuman()) {
payManaDuringAbilityResolve(sb.toString(), upkeepCost, paidCommand, unpaidCommand);
} else //computer
{
if (ComputerUtil.canPayCost(aiPaid)
&& controller.predictDamage(upkeepDamage, c, false) > 0)
ComputerUtil.playNoStack(aiPaid);
else
controller.addDamage(upkeepDamage, c);
}
} |
1a67e391-d605-49dd-9376-fd8d9f99f0a0 | public void dispose_NoLock() {
if (disposed || em == null) {
return;
}
final String emN = em.getName();
try {
disposed = true;
for (MapleCharacter chr : chars) {
chr.setEventInstance(null);
}
chars.clear();
chars = null;
if (mobs.size() >= 1) {
for (MapleMonster mob : mobs) {
if (mob != null) {
mob.setEventInstance(null);
}
}
}
mobs.clear();
mobs = null;
killCount.clear();
killCount = null;
dced.clear();
dced = null;
timeStarted = 0;
eventTime = 0;
props.clear();
props = null;
for (int i = 0; i < mapIds.size(); i++) {
if (isInstanced.get(i)) {
this.getMapFactory().removeInstanceMap(mapIds.get(i));
}
}
mapIds.clear();
mapIds = null;
isInstanced.clear();
isInstanced = null;
em.disposeInstance(name);
} catch (Exception e) {
System.out.println("Caused by : " + emN + " instance name: " + name + " method: dispose:");
FileoutputUtil.outputFileError(FileoutputUtil.ScriptEx_Log, e);
}
} |
b013abae-9952-4efb-9814-95e2e2141dc1 | @Override
public void keyPressed(KeyEvent e) {
int key = e.getKeyCode();
if (key == KeyEvent.VK_ESCAPE)
actionPerformed(new ActionEvent(backButton, ActionEvent.ACTION_PERFORMED, null));
} |
22cd4c40-d86e-4910-b91a-5916585fe33a | public boolean canPlay() {
for (int i = 0; i < AllZone.getStack().size(); i++) {
if (AllZone.getStack().peekInstance(i).getSourceCard().equals(sourceCard)) return false;
}
if (AllZoneUtil.isCardInPlay(sourceCard)
&& !sourceCard.hasSickness()
&& !sourceCard.isTapped()
&& super.canPlay()) return true;
else return false;
} |
3260669f-d7f7-4395-be6a-4be35e34a4e4 | public TooManyItemsFoundException() {
super(" Cannot Add item to cart . More than one Item found for item Description. Use Search ");
} |
43554f8c-b489-4e78-b33a-904a13621a1d | public void setCustomPickList17(java.lang.String customPickList17) {
this.customPickList17 = customPickList17;
} |
c3bbff43-352d-49b1-abf4-8894ad3a6038 | public void setZCustomText94(crmondemand.xml.customobject6.query.QueryType zCustomText94) {
this.zCustomText94 = zCustomText94;
} |
cfde1908-8474-4804-8b48-7457ca6d4985 | public void setCustomText24(crmondemand.xml.customobject6.query.QueryType customText24) {
this.customText24 = customText24;
} |
a6dd031b-fd18-4a1f-b38e-3febf89e04e2 | public void setCreatedDateExt(crmondemand.xml.contact.query.QueryType createdDateExt) {
this.createdDateExt = createdDateExt;
} |
f097f325-09ac-4c32-b021-b8825644bac1 | public java.util.Calendar getCustomDate18() {
return this.customDate18;
} |
51bb9c0d-3d78-4516-a885-29fe5c09fe1c | public void setCustomText81(crmondemand.xml.contact.query.QueryType customText81) {
this.customText81 = customText81;
} |
5a03b00b-df54-451a-b091-e00105cba869 | private void setHead(Link<E> h) {
head = h;
} |
0d201910-ec52-4842-ac36-bf3747721080 | public crmondemand.xml.customobject6.query.QueryType getCustomObject13IntegrationId() {
return this.customObject13IntegrationId;
} |
4a38e33e-ebfd-409d-842b-388f975de18c | public crmondemand.xml.customobject6.query.QueryType getCustomDate59() {
return this.customDate59;
} |
00e9741e-28f4-4630-8d55-fd7e6b1f6366 | public String getNome() {
return nome;
} |
64bd51fa-2259-4908-a9a7-88b502e527ca | public void decreaseBattleshipHP() {
this.battleshipHP--;
} |
a8e40e4c-370f-420c-833b-b49ab34eb042 | public void setCustomDate3(java.util.Calendar customDate3) {
this.customDate3 = customDate3;
} |
d977160f-c526-4a95-a1ac-4f7f349515f0 | public IniFile(String nameFile) {
this.p = new Properties();
this.nameFile = nameFile;
this.setNameFile(this.nameFile);
} |
e4841c89-1a12-4b42-b1f4-4033aee1b2d2 | public crmondemand.xml.customobject6.query.QueryType getCustomInteger21() {
return this.customInteger21;
} |
7d1e88ce-e044-4403-911a-dcbdd830d0ad | private Register SelectFloatingRegister() {
Register FRselected;
switch (getRF().Index) {
case 0:
FRselected = getFR0();
break;
case 1:
FRselected = getFR1();
break;
default:
FRselected = null;
break;
}
return FRselected;
} |
0e95017d-850a-4dae-9182-468ddf108333 | public void setCustomObject5Name(java.lang.String customObject5Name) {
this.customObject5Name = customObject5Name;
} |
042f9fea-b982-40b7-b77b-2f0bf601073d | public void handler() {
if (m68klog != null) {
fclose(m68klog);
}
throw new UnsupportedOperationException("Unimplemented");
} |
c6ec096b-8e02-4ee7-b7f5-7ff4cbcb8088 | public void setCustomObject11Type(crmondemand.xml.customobject6.query.QueryType customObject11Type) {
this.customObject11Type = customObject11Type;
} |
38790492-1f4c-4814-ad81-483bf85f8c1f | public void setCustomInteger27(java.lang.Integer customInteger27) {
this.customInteger27 = customInteger27;
} |
966b2dcb-abd4-43f6-abca-a512c9003116 | public void setZCustomDate3(java.util.Calendar zCustomDate3) {
this.zCustomDate3 = zCustomDate3;
} |
11abdb8c-05c7-41a3-a611-01872891f0e8 | public crmondemand.xml.customobject3.query.QueryType getCustomText39() {
return this.customText39;
} |
d6713897-076a-4a0d-a039-60290ba92b0e | public void setCustomNumber53(java.math.BigDecimal customNumber53) {
this.customNumber53 = customNumber53;
} |
b7973ac7-8454-47f6-b1e0-29485a277625 | public crmondemand.xml.contact.query.QueryType getCustomPhone12() {
return this.customPhone12;
} |
38d0c571-7441-4b32-8578-4d50129cc29d | public crmondemand.xml.customobject6.query.QueryType getCustomText55() {
return this.customText55;
} |
1bdbfb92-82b5-488c-90bc-74e4f393f305 | @Override
public Faction.Align getAlignEnum(String str)
{
final Faction.Align A=(Faction.Align)CMath.s_valueOf(Faction.Align.class, str.toUpperCase().trim());
if(A!=null)
return A;
return Faction.Align.INDIFF;
} |
42766d56-8401-44c3-aa2a-baf7ff4cb783 | public crmondemand.xml.opportunity.query.QueryType getCustomObject9ExternalSystemId() {
return this.customObject9ExternalSystemId;
} |
7ec27177-6bcd-4eba-a6b9-b954d226fc5f | public void handler() {
konami.d = 0;
CLR_NZVC();
SEZ();
if (konamilog != null) {
fprintf(konamilog, "konami#%d clrd :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\n", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);
}
} |
621d5993-e42b-4453-b8de-ba759e79371c | public java.lang.String getCustomPhone11() {
return this.customPhone11;
} |
b6f8f1ee-77f0-417d-84c2-162e9f5b18dd | public java.math.BigDecimal getCustomNumber63() {
return this.customNumber63;
} |
50464b42-58d8-4e40-bf7a-7aec82179f17 | public void setCustomDate3(crmondemand.xml.customobject3.query.QueryType customDate3) {
this.customDate3 = customDate3;
} |
c4c25c6e-3b66-46f5-8455-5cd31721d876 | public void setCustomObject9Id(crmondemand.xml.customobject6.query.QueryType customObject9Id) {
this.customObject9Id = customObject9Id;
} |
d56f8399-5a7e-471a-a27b-81f84b05b631 | public void handler() {
USE_CLKS(4);
} |
31bf2a94-fb45-4dd7-917d-a2d5ed5d3c23 | @Override
public void setVar(String baseName, String key, String val)
{
final DVector V=getScriptVarSet(baseName,key);
for(int v=0;v<V.size();v++)
{
final String name=(String)V.elementAt(v,1);
key=((String)V.elementAt(v,2)).toUpperCase();
Hashtable<String,String> H=(Hashtable)resources._getResource("SCRIPTVAR-"+name);
if((H==null)&&(defaultQuestName!=null)&&(defaultQuestName.length()>0))
{
final MOB M=CMLib.players().getPlayer(name);
if(M!=null)
{
for(final Enumeration<ScriptingEngine> e=M.scripts();e.hasMoreElements();)
{
final ScriptingEngine SE=e.nextElement();
if((SE!=null)
&&(SE!=this)
&&(defaultQuestName.equalsIgnoreCase(SE.defaultQuestName()))
&&(SE.isVar(name,key)))
{
SE.setVar(name,key,val);
return;
}
}
}
}
if(H==null)
{
if(val.length()==0)
continue;
H=new Hashtable<String,String>();
resources._submitResource("SCRIPTVAR-"+name,H);
}
if(val.equals("++"))
{
String num=H.get(key);
if(num==null)
num="0";
val=Integer.toString(CMath.s_int(num.trim())+1);
}
else
if(val.equals("--"))
{
String num=H.get(key);
if(num==null)
num="0";
val=Integer.toString(CMath.s_int(num.trim())-1);
}
else
if(val.startsWith("+"))
{
// add via +number form
val=val.substring(1);
final int amount=CMath.s_int(val.trim());
String num=H.get(key);
if(num==null)
num="0";
val=Integer.toString(CMath.s_int(num.trim())+amount);
}
else
if(val.startsWith("-"))
{
// subtract -number form
val=val.substring(1);
final int amount=CMath.s_int(val.trim());
String num=H.get(key);
if(num==null)
num="0";
val=Integer.toString(CMath.s_int(num.trim())-amount);
}
else
if(val.startsWith("*"))
{
// multiply via *number form
val=val.substring(1);
final int amount=CMath.s_int(val.trim());
String num=H.get(key);
if(num==null)
num="0";
val=Integer.toString(CMath.s_int(num.trim())*amount);
}
else
if(val.startsWith("/"))
{
// divide /number form
val=val.substring(1);
final int amount=CMath.s_int(val.trim());
String num=H.get(key);
if(num==null)
num="0";
if(amount==0)
Log.errOut("Scripting","Scripting SetVar error: Division by 0: "+name+"/"+key+"="+val);
else
val=Integer.toString(CMath.s_int(num.trim())/amount);
}
if(H.containsKey(key))
H.remove(key);
if(val.trim().length()>0)
H.put(key,val);
if(H.size()==0)
resources._removeResource("SCRIPTVAR-"+name);
}
} |
fe21f3ee-e0cf-4e0a-b7cf-1fec9750170d | public static void main(String args[]) {
ClientInfo ci = new ClientInfo();
JFileChooser jfc = new JFileChooser();
jfc.showOpenDialog(null);
Torrent t = new Torrent(jfc.getSelectedFile(), ci);
Torrent.initializeFile(t.fileName(), ((Long) t.fileLength()).intValue());
Executor tPool = Executors.newFixedThreadPool(10);
System.out.println("Peers:");
System.out.println(t.getPeers());
System.out.println("Pieces:");
System.out.println(t.getPieces());
while (!t.getPieces().isEmpty()) {
tPool.execute(new DownloadThread(t.getPieces().poll(), t, t.getPeers().poll()));
}
/*
* InetSocketAddress address = new InetSocketAddress(host, port); SocketChannel channel = null; try { System.out.println("Attempting to connect to " + host); channel = SocketChannel.open(address); while (!channel.isConnected()) { Thread.sleep(10); }
*
* System.out.println("Connected. Time to send handshake."); } catch (Exception e) { e.printStackTrace(); }
*/
} |
d408068e-a6ff-4320-9e24-a82ff4a208ea | Screen(String s, ArrayList<Image> images) {
this.images = images;
this.id = s;
File xmlfile = new File(s);
DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder dBuilder = null;
Document doc = null;
this.tiles = new ArrayList<ArrayList<Tile>>();
this.monsters = new ArrayList<Monster>();
this.nodes = new ArrayList<Node>();
this.props = new ArrayList<Prop>();
try{
// Document builder...? Parser for XML
dBuilder = dbFactory.newDocumentBuilder();
// This is the XML doc we need
doc = dBuilder.parse(xmlfile);
//`doc.getDocumentElement().normalize();
if (DEBUG) {
System.out.println(s + "XML loaded! \n");
}
// Loads the list containing Grid
final NodeList GRID_NODE_LIST = doc.getElementsByTagName("Grid");
// Loads Grid
final org.w3c.dom.Node GRID_NODE = GRID_NODE_LIST.item(0);
if (DEBUG) {
System.out.println(GRID_NODE.getNodeName() + " loaded!");
}
// Loads the list containing Nodelist
final NodeList NODELIST_NODE_LIST = doc.getElementsByTagName("Nodelist");
// Loads Nodelist
final org.w3c.dom.Node NODELIST_NODE = NODELIST_NODE_LIST.item(0);
if (DEBUG) {
System.out.println(NODELIST_NODE.getNodeName() + " loaded!");
}
// Loads the list containg Monsterlist
final NodeList MONSTER_NODE_LIST = doc.getElementsByTagName("Monsterlist");
// Loads Monsterlist
final org.w3c.dom.Node MONSTERLIST_NODE = MONSTER_NODE_LIST.item(0);
if (DEBUG) {
System.out.println(MONSTERLIST_NODE.getNodeName() + " loaded!");
}
if (DEBUG) {
// Finding the children of GRID
System.out.println("\nFinding children of GRID");
System.out.println("Children found? - " + GRID_NODE.hasChildNodes());
// Finding the children of NODELIST
System.out.println("\nFinding children of NODELIST");
System.out.println("Children found? - " + NODELIST_NODE.hasChildNodes());
// Finding the children of MONSTERLIST
System.out.println("\nFinding children of MONSTERLIST");
System.out.println("Children found? - " + MONSTERLIST_NODE.hasChildNodes());
}
// Creating the Grid from GRID_NODE
final NodeList GRID_CHILDREN = GRID_NODE.getChildNodes();
if (DEBUG) {
System.out.println("\nGetting Grid children...");
System.out.println("Children initated! Length: " + GRID_CHILDREN.getLength());
}
ArrayList<Tile> tmpList = new ArrayList<Tile>();
for (int i = 0; i < GRID_CHILDREN.getLength(); i++) {
org.w3c.dom.Node A_GRID_NODE = GRID_CHILDREN.item(i);
String NODE_NAME = A_GRID_NODE.getNodeName();
if (!(NODE_NAME.equals("#text"))) {
final NamedNodeMap NODE_ATTRIBUTES = A_GRID_NODE.getAttributes();
String value = NODE_ATTRIBUTES.getNamedItem("value").getNodeValue();
if (DEBUG) {
System.out.println("\nThis node name: " + A_GRID_NODE.getNodeName());
System.out.println(value);
}
int valueVal = Integer.parseInt(value);
tmpList.add(new Tile(valueVal));
}
}
if (DEBUG) {
System.out.println("Added all tiles temporarily!");
}
// Puts the tiles in a 2-dimensional array
for (int y = 0; y < GRIDHEIGHT; y++) {
ArrayList<Tile> row = new ArrayList<Tile>();
for (int x = 0; x < GRIDWIDTH; x++) {
if (DEBUG) {
System.out.println("Current row: " + y);
System.out.println("Current column: " + x);
System.out.println(x + y*GRIDWIDTH);
}
row.add(tmpList.get(x + y*GRIDWIDTH));
}
this.tiles.add(row);
}
// Creating the Nodes from NODELIST_NODE
final NodeList NODELIST_CHILDREN = NODELIST_NODE.getChildNodes();
if (DEBUG) {
System.out.println("\nGetting Nodelist children...");
System.out.println("Children initated! Length: " + NODELIST_CHILDREN.getLength());
}
for (int i = 0; i < NODELIST_CHILDREN.getLength(); i++) {
org.w3c.dom.Node NODE_NODE = NODELIST_CHILDREN.item(i);
String NODE_NAME = NODE_NODE.getNodeName();
if (!(NODE_NAME.equals("#text"))) {
final NamedNodeMap NODE_ATTRIBUTES = NODE_NODE.getAttributes();
String type = NODE_ATTRIBUTES.getNamedItem("type").getNodeValue();
String x = NODE_ATTRIBUTES.getNamedItem("x").getNodeValue();
String y = NODE_ATTRIBUTES.getNamedItem("y").getNodeValue();
if (DEBUG) {
System.out.println("\nThis node name: " + NODE_NODE.getNodeName());
System.out.println(x);
System.out.println(y);
System.out.println(type);
}
int typeVal = Integer.parseInt(type);
int xVal = Integer.parseInt(x);
int yVal = Integer.parseInt(y);
this.nodes.add(new Node(typeVal, xVal*40, yVal*40));
}
}
// Creating the Monsters from MONSTERLIST_NODE
final NodeList MONSTERLIST_CHILDREN = MONSTERLIST_NODE.getChildNodes();
if (DEBUG) {
System.out.println("\nGetting Monster children...");
System.out.println("Children initated! Length: " + MONSTERLIST_CHILDREN.getLength());
}
for (int i = 0; i < MONSTERLIST_CHILDREN.getLength(); i++) {
org.w3c.dom.Node MONSTER_NODE = MONSTERLIST_CHILDREN.item(i);
if (!(MONSTER_NODE.getNodeName().equals("#text"))) {
final NamedNodeMap MONSTER_ATTRIBUTES = MONSTER_NODE.getAttributes();
String type = MONSTER_ATTRIBUTES.getNamedItem("type").getNodeValue();
String x = MONSTER_ATTRIBUTES.getNamedItem("x").getNodeValue();
String y = MONSTER_ATTRIBUTES.getNamedItem("y").getNodeValue();
if (DEBUG) {
System.out.println("\nThis node name: " + MONSTER_NODE.getNodeName());
System.out.println(x);
System.out.println(y);
System.out.println(type);
}
String typeVal = type;
int xVal = Integer.parseInt(x);
int yVal = Integer.parseInt(y);
this.monsters.add(Monster.makeMonster(typeVal, xVal*40, yVal*40));
}
}
} catch (Exception e){
System.out.println("Error loading screen xml");
}
} |
0a632022-6222-48df-83ff-78ffb766c428 | public java.math.BigDecimal getCustomNumber4() {
return this.customNumber4;
} |
a21cfa7b-347d-48e0-bfd9-5155ecc3e5c4 | public void setCustomPhone7(java.lang.String customPhone7) {
this.customPhone7 = customPhone7;
} |
68aba376-0f42-4ea2-8c9a-d23e8c620683 | public String getFormattedDateCreated() {
return formattedDateCreated;
} |
ce751f97-4f82-4f82-8b85-eaeb686de223 | public void setFundId(java.lang.String fundId) {
this.fundId = fundId;
} |
c2beea79-d7f2-470f-a55b-798b3fbe5633 | public crmondemand.xml.contact.query.QueryType getCustomDate27() {
return this.customDate27;
} |
06cf6413-1f49-4499-9b99-8cd67e9738fb | public PacketBuilder set(final String name, final Object data) {
try {
ReflectionUtils.setPrivateField(packet, name, data);
} catch (final Exception e) {
Bukkit.getLogger().warning("Editing packet field failure");
}
return builder;
} |
ced57dbe-5094-4a30-be83-cd5ba4398174 | public void setCustomObject2ExternalSystemId(crmondemand.xml.customobject3.query.QueryType customObject2ExternalSystemId) {
this.customObject2ExternalSystemId = customObject2ExternalSystemId;
} |
39759394-12fe-41ab-8953-27ed33fd6b44 | public void handler() {
long res = m68ki_read_32(EA_IX());
long ea_dst = get_AX() + MAKE_INT_16(m68ki_read_imm_16());
m68ki_write_32(ea_dst, res);
m68k_cpu.n_flag = GET_MSB_32(res);
m68k_cpu.not_z_flag = res;
m68k_cpu.v_flag = 0;
m68k_cpu.c_flag = 0;
USE_CLKS(16 + 14);
if (m68klog != null) {
fprintf(m68klog, "move_di_ix_32 :PC:%d,PPC:%d,mode:%d,dr0:%d,dr1:%d,dr2:%d,dr3:%d,dr4:%d,dr5:%d,dr6:%d,dr7:%d,ar0:%d,ar1:%d,ar2:%d,ar3:%d,ar4:%d,ar5:%d,ar6:%d,ar7:%d,sp0:%d,sp1:%d,sp2:%d,sp3:%d,vbr:%d,sfc:%d,dfc:%d,cacr:%d,caar:%d,ir:%d,t1:%d,t0:%d,s:%d,m:%d,x:%d,n:%d,nz:%d,v:%d,c:%d,intm:%d,ints:%d,stop:%d,halt:%d,intc:%d,prefa:%d,prefd:%d\n", m68k_cpu.pc, m68k_cpu.ppc, m68k_cpu.mode, m68k_cpu.dr[0], m68k_cpu.dr[1], m68k_cpu.dr[2], m68k_cpu.dr[3], m68k_cpu.dr[4], m68k_cpu.dr[5], m68k_cpu.dr[6], m68k_cpu.dr[7], m68k_cpu.ar[0], m68k_cpu.ar[1], m68k_cpu.ar[2], m68k_cpu.ar[3], m68k_cpu.ar[4], m68k_cpu.ar[5], m68k_cpu.ar[6], m68k_cpu.ar[7], m68k_cpu.sp[0], m68k_cpu.sp[1], m68k_cpu.sp[2], m68k_cpu.sp[3], m68k_cpu.vbr, m68k_cpu.sfc, m68k_cpu.dfc, m68k_cpu.cacr, m68k_cpu.caar, m68k_cpu.ir, m68k_cpu.t1_flag, m68k_cpu.t0_flag, m68k_cpu.s_flag, m68k_cpu.m_flag, m68k_cpu.x_flag, m68k_cpu.n_flag, m68k_cpu.not_z_flag, m68k_cpu.v_flag, m68k_cpu.c_flag, m68k_cpu.int_mask, m68k_cpu.int_state, m68k_cpu.stopped, m68k_cpu.halted, m68k_cpu.int_cycles, m68k_cpu.pref_addr, m68k_cpu.pref_data);
}
} |
c6bfdd79-68fb-4038-9344-7f49d43d19a5 | public void setCustomBoolean18(crmondemand.xml.opportunity.query.QueryType customBoolean18) {
this.customBoolean18 = customBoolean18;
} |
dac3cb5e-9e86-48ee-bda1-c719de3d2ddf | public void setCustomObject6ExternalSystemId(crmondemand.xml.customobject6.query.QueryType customObject6ExternalSystemId) {
this.customObject6ExternalSystemId = customObject6ExternalSystemId;
} |
27942928-f44c-4c3b-b2a0-770c7c447bd0 | public void setCustomBoolean33(crmondemand.xml.customobject3.query.QueryType customBoolean33) {
this.customBoolean33 = customBoolean33;
} |
8d221235-894b-42ec-b2c6-6f78bc95c30d | public void setCustomText9(crmondemand.xml.customobject6.query.QueryType customText9) {
this.customText9 = customText9;
} |
46472060-dbea-4ee1-82bb-2728f9a3c4a1 | public java.lang.String getPrimaryProductExternalSystemId() {
return this.primaryProductExternalSystemId;
} |
2d86754e-9256-4add-a90f-bf469f7ddd50 | public crmondemand.xml.contact.query.QueryType getCustomText62() {
return this.customText62;
} |
04963d2a-06e0-48af-99f6-1e4d0d114798 | public void setCustomText75(java.lang.String customText75) {
this.customText75 = customText75;
} |
2dd8f01a-f721-496b-9387-8296c8159bdf | @Test
public void testPairVsPair3() {
FiveCardPokerHand pair1 = new FiveCardPokerHand();
assertTrue(pair1.addCard(new Card(Suit.SPADE, Rank.ACE)));
assertTrue(pair1.addCard(new Card(Suit.HEART, Rank.QUEEN)));
assertTrue(pair1.addCard(new Card(Suit.DIAMOND, Rank.QUEEN)));
assertTrue(pair1.addCard(new Card(Suit.DIAMOND, Rank.SEVEN)));
assertTrue(pair1.addCard(new Card(Suit.SPADE, Rank.NINE)));
FiveCardPokerHand pair2 = new FiveCardPokerHand();
assertTrue(pair2.addCard(new Card(Suit.CLUB, Rank.ACE)));
assertTrue(pair2.addCard(new Card(Suit.SPADE, Rank.QUEEN)));
assertTrue(pair2.addCard(new Card(Suit.CLUB, Rank.QUEEN)));
assertTrue(pair2.addCard(new Card(Suit.DIAMOND, Rank.SIX)));
assertTrue(pair2.addCard(new Card(Suit.CLUB, Rank.KING)));
assertTrue("Hand " + pair2 + " doesn't beat hand " + pair1,
comparator.compare(pair1, pair2) > 0);
} |
46987fcf-0c9a-4787-930a-21e9a95c1a05 | public void setCustomDate45(java.util.Calendar customDate45) {
this.customDate45 = customDate45;
} |
9f4e40dc-1792-471d-9983-1855ab3772f2 | public Builder setMapFilenameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
mapFilename_ = value;
onChanged();
return this;
} |
c13ef47f-5e9a-43f9-b546-b04a3f739b5f | public java.lang.String getCustomPickList28() {
return this.customPickList28;
} |
b0a50d53-aabf-4dae-80d6-d5a164731dc1 | public void setCustomPhone17(crmondemand.xml.contact.query.QueryType customPhone17) {
this.customPhone17 = customPhone17;
} |
9933fcdc-a276-45f4-88dc-8566462c3fd8 | public void setSampleLotExpirationDate(crmondemand.xml.customobject6.query.QueryType sampleLotExpirationDate) {
this.sampleLotExpirationDate = sampleLotExpirationDate;
} |
c6cc715c-6be0-4d8d-9434-08f9bf0fe193 | public void enableShowToolTip(boolean enable); |
8f614321-c4d4-4096-9b16-dc7366e21e86 | public synchronized void cleanDeadBullets(){
bullets.removeAll(deadBullets);
deadBullets = new HashSet<Bullet>();
} |
1a88a4e8-7323-4260-ae9c-0e5ea9eb6817 | public boolean isClassMember(); |
594d1dd7-b326-43e4-8993-83b3dbde646d | * @return char
*/
public static char characterCapitalize(char ch) {
return (Character.toTitleCase(ch));
} |
6041e1d3-d043-4fd3-89a4-a590be5e69f4 | public crmondemand.xml.customobject6.query.QueryType getDealerStatus() {
return this.dealerStatus;
} |
397cca88-ce17-48c9-9dc1-ab2e8c433511 | public void setCustomBoolean23(java.lang.Boolean customBoolean23) {
this.customBoolean23 = customBoolean23;
} |
f791f93d-9386-4e98-9dce-1e3803696529 | public void setContactFullName(crmondemand.xml.contact.query.QueryType contactFullName) {
this.contactFullName = contactFullName;
} |
880ef817-f756-45b0-bafc-98cf6e892f9a | public crmondemand.xml.customobject6.query.QueryType getCustomInteger23() {
return this.customInteger23;
} |
f682dcd9-2eca-4f3e-bc03-c44c62c458a6 | public void setCustomPickList62(crmondemand.xml.customobject6.query.QueryType customPickList62) {
this.customPickList62 = customPickList62;
} |
e6b21362-6c8e-483b-9f30-b2babf539ce4 | public int getNumber() {
return number;
} |
c63ba7cc-d7f2-40c2-91c0-e3d75e27d8c2 | public void setZCustomInteger17(java.lang.Integer zCustomInteger17) {
this.zCustomInteger17 = zCustomInteger17;
} |
6465cc1f-0c52-43a9-8b62-33cef1848029 | public crmondemand.xml.customobject6.query.QueryType getCustomMultiSelectPickList3() {
return this.customMultiSelectPickList3;
} |
c1e9f695-03ab-4631-8946-89d3a648c13c | public crmondemand.xml.opportunity.query.QueryType getPartnerLocation() {
return this.partnerLocation;
} |
2ee7352a-2534-4610-b4f7-c7ceff399ee3 | public void setCustomObject12ExternalSystemId(crmondemand.xml.opportunity.query.QueryType customObject12ExternalSystemId) {
this.customObject12ExternalSystemId = customObject12ExternalSystemId;
} |
cb642a4c-1a10-4cb4-b11a-cb024bcc7320 | public void setCustomObject12Name(java.lang.String customObject12Name) {
this.customObject12Name = customObject12Name;
} |
93e89e0e-8d0c-40d3-ba8d-a91e0e8c832b | public crmondemand.xml.opportunity.query.QueryType getObjectiveExternalSystemId() {
return this.objectiveExternalSystemId;
} |
288bb852-c859-47c0-9413-bf601bde703f | public void setCustomInteger6(java.lang.Integer customInteger6) {
this.customInteger6 = customInteger6;
} |
097b9b10-1411-44fe-83a7-b38539d85cda | public java.util.List<org.bwapi.proxy.messages.GameMessages.UnitTypeIntPair.Builder>
getDeadUnitCountBuilderList() {
return getDeadUnitCountFieldBuilder().getBuilderList();
} |
3d8da039-a60e-436f-b199-c2ea152fd399 | public void setPlanItemRelationId(java.lang.String planItemRelationId) {
this.planItemRelationId = planItemRelationId;
} |
c8db203f-053b-43f4-b547-10bc00f10c60 | public void setCustomPickList37(java.lang.String customPickList37) {
this.customPickList37 = customPickList37;
} |
ed824e13-d6e7-4a0f-b8b0-2878d68d2ad1 | public void setCustomNumber31(crmondemand.xml.contact.query.QueryType customNumber31) {
this.customNumber31 = customNumber31;
} |
89ee7a1c-c681-45b5-a061-27130d16153c | public void setPolicyCurrencyCode(java.lang.String policyCurrencyCode) {
this.policyCurrencyCode = policyCurrencyCode;
} |
4fb4d8bd-58a5-489b-b1ab-e0e1c982b0f8 | public java.lang.String getCustomText67() {
return this.customText67;
} |
afa4a83e-d30b-4890-8311-0ba427e6746a | public java.lang.String getCustomObject4ExternalSystemId() {
return this.customObject4ExternalSystemId;
} |
2bfebeb3-3f52-43ad-bc40-179e9e65f6e6 | public Terreno() {
this.nome = "Terreno No Declarado";
this.id = 0;
this.piso = false;
this.fisico = false;
this.estatico = false;
// Adicionar AG
} |
9158ad5b-9ae2-4626-a63d-293ec6acf36a | public void setCustomBoolean4(java.lang.Boolean customBoolean4) {
this.customBoolean4 = customBoolean4;
} |
667bbdec-52ce-4ab7-bc9b-c89b7eeecc2a | public void setCustomText58(java.lang.String customText58) {
this.customText58 = customText58;
} |
0757f51f-8760-4a28-a3cc-9e63ec0fc32c | public java.lang.String getVehicleId() {
return this.vehicleId;
} |
5708a1ef-81b3-43f6-927e-31712de3ffea | public void setCustomDate49(crmondemand.xml.opportunity.query.QueryType customDate49) {
this.customDate49 = customDate49;
} |
8bb3916c-50e5-49b9-93f8-a040f392cda6 | public void setCustomNumber18(crmondemand.xml.customobject6.query.QueryType customNumber18) {
this.customNumber18 = customNumber18;
} |
9ef21a84-27d1-4737-a0ca-62f8ab305781 | public void removePropertyChangeListener(PropertyChangeListener listener) {
this.pcs.removePropertyChangeListener(listener);
} |
c071ad2e-da81-4607-b7b2-b77dd90c7d8b | public com.sforce.soap.enterprise.QueryResult getContractsSigned() {
return ContractsSigned;
} |
bd13bc1e-4a16-4668-be2f-e7b2d4b3790d | public void setObjectiveType(crmondemand.xml.customobject3.query.QueryType objectiveType) {
this.objectiveType = objectiveType;
} |
3ceb31c5-1deb-47a7-a516-0a69aedf77e7 | public void setCampaignId(crmondemand.xml.customobject6.query.QueryType campaignId) {
this.campaignId = campaignId;
} |
08bffe12-57ae-4a34-8290-b2791909557b | public java.lang.String getCustomPickList18() {
return this.customPickList18;
} |
0412487e-31d7-4eac-a921-7f41c6c316cf | public void setCustomPickList22(crmondemand.xml.opportunity.query.QueryType customPickList22) {
this.customPickList22 = customPickList22;
} |
5297db17-2038-4407-a5b1-9152e7344830 | @DataProvider(name = "plusDays")
Object[][] data_plusDays() {
return new Object[][] {
// normal
{ dateTime(2008, 6, 30, 23, 30, 59, 0, OFFSET_0100, ZONE_0100), 0,
dateTime(2008, 6, 30, 23, 30, 59, 0, OFFSET_0100, ZONE_0100) },
{ dateTime(2008, 6, 30, 23, 30, 59, 0, OFFSET_0100, ZONE_0100), 1,
dateTime(2008, 7, 1, 23, 30, 59, 0, OFFSET_0100, ZONE_0100) },
{ dateTime(2008, 6, 30, 23, 30, 59, 0, OFFSET_0100, ZONE_0100), -1,
dateTime(2008, 6, 29, 23, 30, 59, 0, OFFSET_0100, ZONE_0100) },
// skip over gap
{ dateTime(2008, 3, 30, 1, 30, 0, 0, OFFSET_0100, ZONE_PARIS), 1,
dateTime(2008, 3, 31, 1, 30, 0, 0, OFFSET_0200, ZONE_PARIS) },
{ dateTime(2008, 3, 30, 3, 30, 0, 0, OFFSET_0200, ZONE_PARIS), -1,
dateTime(2008, 3, 29, 3, 30, 0, 0, OFFSET_0100, ZONE_PARIS) },
// land in gap
{ dateTime(2008, 3, 29, 2, 30, 0, 0, OFFSET_0100, ZONE_PARIS), 1,
dateTime(2008, 3, 30, 3, 30, 0, 0, OFFSET_0200, ZONE_PARIS) },
{ dateTime(2008, 3, 31, 2, 30, 0, 0, OFFSET_0200, ZONE_PARIS), -1,
dateTime(2008, 3, 30, 3, 30, 0, 0, OFFSET_0200, ZONE_PARIS) },
// skip over overlap
{ dateTime(2008, 10, 26, 1, 30, 0, 0, OFFSET_0200, ZONE_PARIS), 1,
dateTime(2008, 10, 27, 1, 30, 0, 0, OFFSET_0100, ZONE_PARIS) },
{ dateTime(2008, 10, 25, 3, 30, 0, 0, OFFSET_0200, ZONE_PARIS), 1,
dateTime(2008, 10, 26, 3, 30, 0, 0, OFFSET_0100, ZONE_PARIS) },
// land in overlap
{ dateTime(2008, 10, 25, 2, 30, 0, 0, OFFSET_0200, ZONE_PARIS), 1,
dateTime(2008, 10, 26, 2, 30, 0, 0, OFFSET_0200, ZONE_PARIS) },
{ dateTime(2008, 10, 27, 2, 30, 0, 0, OFFSET_0100, ZONE_PARIS), -1,
dateTime(2008, 10, 26, 2, 30, 0, 0, OFFSET_0100, ZONE_PARIS) }, };
} |
e564ebcb-8841-4719-b0aa-df6aaa87d3f6 | public void setCustomPickList18(crmondemand.xml.customobject6.query.QueryType customPickList18) {
this.customPickList18 = customPickList18;
} |
693623f8-b46c-4394-af10-44e1a82428d5 | public void setCustomText33(crmondemand.xml.contact.query.QueryType customText33) {
this.customText33 = customText33;
} |