id
stringlengths 36
36
| text
stringlengths 1
1.25M
|
---|---|
610445ae-5f22-40c2-aa86-95d4384fb573 | @Override
public long getStartTime()
{
return startTime;
} |
e4c51134-6dd9-4c80-ba37-d6b11f538132 | public static void main(String[] args) {
// TODO Auto-generated method stub
Account [] account = new Account[10];
Depositor [] deposit = new Depositor[10];
Withdrawer [] withdraw = new Withdrawer[10];
// The birth of 10 accounts
account[0] = new Account(1234,"Mike",1000);
account[1] = new Account(2345,"Adam",2000);
account[2] = new Account(3456,"Linda",3000);
account[3] = new Account(4567,"John",4000);
account[4] = new Account(5678,"Rami",5000);
account[5] = new Account(6789,"Lee",6000);
account[6] = new Account(7890,"Tom",7000);
account[7] = new Account(8901,"Lisa",8000);
account[8] = new Account(9012,"Sam",9000);
account[9] = new Account(4321,"Ted",10000);
// The birth of 10 depositors
deposit[0] = new Depositor(account[0]);
deposit[1] = new Depositor(account[1]);
deposit[2] = new Depositor(account[2]);
deposit[3] = new Depositor(account[3]);
deposit[4] = new Depositor(account[4]);
deposit[5] = new Depositor(account[5]);
deposit[6] = new Depositor(account[6]);
deposit[7] = new Depositor(account[7]);
deposit[8] = new Depositor(account[8]);
deposit[9] = new Depositor(account[9]);
// The birth of 10 withdraws
withdraw[0] = new Withdrawer(account[0]);
withdraw[1] = new Withdrawer(account[1]);
withdraw[2] = new Withdrawer(account[2]);
withdraw[3] = new Withdrawer(account[3]);
withdraw[4] = new Withdrawer(account[4]);
withdraw[5] = new Withdrawer(account[5]);
withdraw[6] = new Withdrawer(account[6]);
withdraw[7] = new Withdrawer(account[7]);
withdraw[8] = new Withdrawer(account[8]);
withdraw[9] = new Withdrawer(account[9]);
System.out.println("Print initial account balances");
// Print initial account balances
for(int i=0;i<10;i++)
System.out.println(account[i]);
// Get start time in milliseconds
long start = System.currentTimeMillis();
System.out.println("Depositor and Withdrawal threads have been created");
/*
* Interleave all threads
*/
for(int i=0; i<10; i++){
deposit[i].start();
withdraw[i].start();
}
for(int i=0; i<10; i++){
try {
deposit[i].join();
withdraw[i].join();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
// Get elapsed time in milliseconds
long elapsedTimeMillis = System.currentTimeMillis()-start;
System.out.println("Print final account balances after all the child thread terminated...");
// Print final account balances after all the child thread terminated...
for(int i=0;i<10;i++)
System.out.println(account[i]);
// Get elapsed time in seconds
float elapsedTimeSec = elapsedTimeMillis/1000F;
System.out.println("Elapsed time in milliseconds "+elapsedTimeMillis);
System.out.println("Elapsed time in seconds is "+elapsedTimeSec);
/*
// Get elapsed time in minutes
float elapsedTimeMin = elapsedTimeMillis/(60*1000F);
// Get elapsed time in hours
float elapsedTimeHour = elapsedTimeMillis/(60*60*1000F);
// Get elapsed time in days
float elapsedTimeDay = elapsedTimeMillis/(24*60*60*1000F);
*/
System.out.println("TASK 3");
} |
2226df60-c938-469b-902d-5bd47695d551 | public void setContactLastName(crmondemand.xml.customobject6.query.QueryType contactLastName) {
this.contactLastName = contactLastName;
} |
0fd434dd-f27c-4cb0-8c2b-eaced5acc529 | public void setCustomBoolean24(java.lang.Boolean customBoolean24) {
this.customBoolean24 = customBoolean24;
} |
69866396-1bc5-4577-8fa0-cfe605af890d | public void setCustomObject14ExternalSystemId(crmondemand.xml.customobject3.query.QueryType customObject14ExternalSystemId) {
this.customObject14ExternalSystemId = customObject14ExternalSystemId;
} |
7d24cddb-a80d-46da-a56d-567fc4e47bce | public crmondemand.xml.contact.query.QueryType getCustomPickList7() {
return this.customPickList7;
} |
215e65a8-b3ff-4119-adbd-76f7bc5e2868 | private ByteBuffer verifyDataPassing(TCPChannel svrChan) throws Exception {
ByteBuffer b = ByteBuffer.allocate(10);
helper.putString(b, "de");
helper.doneFillingBuffer(b);
int expectedWrote = b.remaining();
log.fine("***********************************************");
int actualWrite = client1.oldWrite(b);
assertEquals(expectedWrote, actualWrite);
CalledMethod m = mockServer.expect(MockNIOServer.INCOMING_DATA);
TCPChannel actualChannel = (TCPChannel)m.getAllParams()[0];
Class c = Class.forName(getChannelImplName());
assertEquals("should be correct type of channel", c, actualChannel.getClass());
ByteBuffer actualBuf = (ByteBuffer)m.getAllParams()[1];
String result = helper.readString(actualBuf, actualBuf.remaining());
assertEquals("de", result);
b.rewind();
svrChan.oldWrite(b);
m = mockHandler.expect(MockDataHandler.INCOMING_DATA);
actualBuf = (ByteBuffer)m.getAllParams()[1];
result = helper.readString(actualBuf, actualBuf.remaining());
assertEquals("de", result);
return b;
} |
d85e74e0-64d7-4334-94cb-806bedff7b47 | public java.lang.String getPartnerMainPhone() {
return this.partnerMainPhone;
} |
145ce805-d72e-4e49-8a63-583674754d8d | public void setCustomObject9Id(crmondemand.xml.contact.query.QueryType customObject9Id) {
this.customObject9Id = customObject9Id;
} |
c0a22187-7757-443a-9480-1c5d55af0ee6 | public void setInvtPeriodExternalSystemId(java.lang.String invtPeriodExternalSystemId) {
this.invtPeriodExternalSystemId = invtPeriodExternalSystemId;
} |
88d8acdf-916f-49b9-8c40-f8cd947b2541 | public void setCustomText67(java.lang.String customText67) {
this.customText67 = customText67;
} |
5d339217-a5df-4ef0-8201-68cc853dc9bc | public int getCy() {
return cy;
} |
06f6d68a-cd10-4c2f-9c9d-5074dbcd4ee6 | public static Cons javaTranslateWhenTree(Cons tree) {
{ Stella_Object test = Stella_Object.javaTranslateATree(tree.rest.value);
Cons body = Cons.javaTranslateListOfTrees(tree.rest.rest);
tree.rest.rest = Stella.NIL;
return (Cons.list$(Cons.cons(Stella.SYM_STELLA_JAVA_WHEN, Cons.cons(test, Cons.cons(Cons.cons(Cons.cons(Stella.SYM_STELLA_JAVA_STATEMENTS, body.concatenate(Stella.NIL, Stella.NIL)), Stella.NIL), Stella.NIL)))));
}
} |
5ad4b117-d150-4d98-9c18-04883c6fdba8 | public java.lang.String getAccountId() {
return this.accountId;
} |
1a477f9f-42a6-44fd-ba82-f9b99cec1811 | public void setCustomText47(crmondemand.xml.customobject3.query.QueryType customText47) {
this.customText47 = customText47;
} |
9a82044a-506b-4d7b-8701-4365f716b113 | public static byte[] removeDoor(int oid, boolean animation) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.REMOVE_DOOR.getValue());
mplew.write(animation ? 0 : 1);
mplew.writeInt(oid);
return mplew.getPacket();
} |
bad0f63b-fe6d-407e-b416-36b15ef39cd6 | public String zwrocnazwe() {
return nazwa;
} |
a27e5707-373f-41a0-86bd-dd9e44a5da0f | public void setCustomText62(java.lang.String customText62) {
this.customText62 = customText62;
} |
76af5b33-2a5c-4285-ab18-18819d67bf6b | public crmondemand.xml.contact.query.QueryType getCustomPickList47() {
return this.customPickList47;
} |
7c282fb2-a72d-4256-a5ca-7e318c9a4d3f | public java.lang.Integer getCustomInteger17() {
return this.customInteger17;
} |
e2cc3c42-1f36-478d-b57c-a856145e3cef | public java.util.Calendar getCustomDate50() {
return this.customDate50;
} |
917eea67-c681-469c-9239-3ef949697755 | private void run() {
while(running) {
if(derpMode) {
table.setBackground(new Color(rng.nextInt(256),rng.nextInt(256),rng.nextInt(256)));
}
if(filterString != null) {
if(searchBar != null) {
try {
Thread.sleep(10);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (searchBar.getText()!=null && !filterString.equals(searchBar.getText().toLowerCase())) {
filterString = searchBar.getText().toLowerCase();
updateTable();
}
}
} else {
System.out.println("Da heck is this?");
}
}
destroy();
} |
e30c8ec5-d370-48c3-84e6-b3e176dc36a6 | public crmondemand.xml.opportunity.query.QueryType getCustomText16() {
return this.customText16;
} |
6c55fe38-7100-4a0a-9424-7b7c37a60f78 | public Object visit(Rule_cmdAddIntLit8 rule)
{
if (!terminal) System.out.println();
System.out.print("<cmdAddIntLit8>");
terminal = false;
visitRules(rule.rules);
if (!terminal) System.out.println();
System.out.print("</cmdAddIntLit8>");
terminal = false;
return null;
} |
f4bfd3aa-e579-4054-91e2-3f7b7918f43d | public long getStartTime() {
return startTime;
} |
6c29325e-111a-4256-bcc5-f8394c54e2a6 | public crmondemand.xml.customobject6.query.QueryType getIndexedPick3() {
return this.indexedPick3;
} |
b03ee2da-9355-4e4e-acb3-4855f6714e1b | public java.lang.Integer getCustomInteger16() {
return this.customInteger16;
} |
542c846d-69ab-4b0e-97aa-612e3e2f5404 | public java.lang.String getPartnerName() {
return this.partnerName;
} |
a2ab3e5e-68f5-46e5-9b46-834270d4077d | public java.util.Calendar getCustomDate19() {
return this.customDate19;
} |
fab69ecb-60cf-4b07-a046-318e8c76ff25 | public java.lang.String getAccountExternalSystemId() {
return this.accountExternalSystemId;
} |
c88e7bd6-3f8b-41d1-abd2-ad14c2af1fe4 | public void setCreatedDate(java.util.Calendar createdDate) {
this.createdDate = createdDate;
} |
c8bda4a3-429e-4d62-841e-d30b30c1a871 | public static Stella_Object signalParsingError(Cons message) {
{ Symbol streamvar = Stella.localGensym("STREAM");
message = Cons.formatMessageArguments(message, false);
return (Cons.list$(Cons.cons(Logic.SYM_STELLA_LET, Cons.cons(Cons.cons(Cons.cons(streamvar, Cons.cons(Cons.list$(Cons.cons(Logic.SYM_STELLA_NEW, Cons.cons(Logic.SYM_STELLA_OUTPUT_STRING_STREAM, Cons.cons(Stella.NIL, Stella.NIL)))), Stella.NIL)), Stella.NIL), Cons.cons(Cons.list$(Cons.cons(Logic.SYM_STELLA_SPECIAL, Cons.cons(Cons.cons(Cons.list$(Cons.cons(Logic.SYM_STELLA_$PRINTREADABLYp$, Cons.cons(Logic.SYM_STELLA_TRUE, Cons.cons(Stella.NIL, Stella.NIL)))), Stella.NIL), Cons.cons(Cons.list$(Cons.cons(Logic.SYM_STELLA_PRINT_STREAM, Cons.cons(streamvar, Cons.cons(Cons.cons(StringWrapper.wrapString("PARSING ERROR: "), message.concatenate(Cons.list$(Cons.cons(StringWrapper.wrapString("."), Cons.cons(Logic.SYM_STELLA_EOL, Cons.cons(Stella.NIL, Stella.NIL)))), Stella.NIL)), Stella.NIL)))), Cons.cons(Cons.list$(Cons.cons(Logic.SYM_LOGIC_HELP_SIGNAL_PROPOSITION_ERROR, Cons.cons(streamvar, Cons.cons(Cons.cons(Logic.KWD_ERROR, Stella.NIL), Stella.NIL)))), Cons.cons(Stella.NIL, Stella.NIL)))))), Cons.cons(Cons.list$(Cons.cons(Logic.SYM_STELLA_SIGNAL_EXCEPTION, Cons.cons(Cons.list$(Cons.cons(Logic.SYM_STELLA_NEW, Cons.cons(Logic.SYM_LOGIC_PARSING_ERROR, Cons.cons(Logic.KWD_MESSAGE, Cons.cons(Cons.list$(Cons.cons(Logic.SYM_STELLA_THE_STRING, Cons.cons(streamvar, Cons.cons(Stella.NIL, Stella.NIL)))), Cons.cons(Stella.NIL, Stella.NIL)))))), Cons.cons(Stella.NIL, Stella.NIL)))), Cons.cons(Stella.NIL, Stella.NIL)))))));
}
} |
d85f3afb-c9c1-4125-8bb7-bed26cba7196 | public java.util.Calendar getCustomDate32() {
return this.customDate32;
} |
82b6db95-cb1f-4703-99eb-38b6c8b58357 | public void setCustomNumber46(crmondemand.xml.customobject3.query.QueryType customNumber46) {
this.customNumber46 = customNumber46;
} |
e225c48f-687e-464a-9447-0157f92e3f57 | public boolean isRelated(int uid1, int uid2){
boolean related = false;
try {
rStat.acquire();
if(userRelations[(memberIdxs.get(uid1))] != null){
HashMap<Integer, String> rels = userRelations[memberIdxs.get(uid1)];
if(rels.containsKey(uid2)){
related= true;
}else
related = false;
}else
related = false;
if(userRelations[memberIdxs.get(uid2)] != null){
HashMap<Integer, String> rels = userRelations[memberIdxs.get(uid2)];
if(rels.containsKey(uid1)){
related = true;
}else
related = false;
}else
related = false;
rStat.release();
} catch (Exception e) {
System.out.println("Error in Rels");
e.printStackTrace(System.out);
System.exit(-1);
}
return related;
} |
4c87ab57-18bd-4eb9-b114-f7c0abb56a7c | public crmondemand.xml.contact.data.ListOfCustomObject7Data getListOfCustomObject7() {
return this.listOfCustomObject7;
} |
6fb0550b-5de5-4588-b399-58f395e32097 | public void setCustomPhone19(java.lang.String customPhone19) {
this.customPhone19 = customPhone19;
} |
3c9503e2-1b6a-4f16-b1cf-15481ebd19f1 | @Override
public void delAllEffects(boolean unInvoke)
{
for (int a = numEffects() - 1; a >= 0; a--)
{
final Ability A = fetchEffect(a);
if (A != null)
{
if (unInvoke)
A.unInvoke();
A.setAffectedOne(null);
}
}
affects.clear();
} |
0d4002a0-7d88-41cb-b4d5-e2649b04bc52 | public java.lang.String getCustomPhone2() {
return this.customPhone2;
} |
535de46e-470d-4686-b865-ec99c70d3672 | private void cancelPlayerBuffs(List<MapleBuffStat> buffstats, boolean overwrite) {
boolean write = client != null && client.getChannelServer() != null && client.getChannelServer().getPlayerStorage().getCharacterById(getId()) != null;
if (buffstats.contains(MapleBuffStat.HOMING_BEACON)) {
client.getSession().write(BuffPacket.cancelHoming());
} else {
if (overwrite) {
List<MapleBuffStat> z = new ArrayList<>();
for (MapleBuffStat s : buffstats) {
if (s.canStack()) {
z.add(s);
}
}
if (z.size() > 0) {
buffstats = z;
} else {
return; //don't write anything
}
} else if (write) {
stats.recalcLocalStats(this);
}
client.getSession().write(BuffPacket.cancelBuff(buffstats));
map.broadcastMessage(this, BuffPacket.cancelForeignBuff(getId(), buffstats), false);
}
} |
35b53227-9ccd-47ff-8536-b8a469301994 | public java.lang.String getCustomObject2Name() {
return this.customObject2Name;
} |
5448094a-7b22-4609-9b77-c62e7c891caf | public boolean isFill() {
return fill;
} |
1dce1b6c-1125-4343-b892-e3eb506d8f7e | public java.lang.String getCustomPickList25() {
return this.customPickList25;
} |
0667c1f6-d978-44e9-8713-bdd087932d88 | public void setCustomDate31(java.util.Calendar customDate31) {
this.customDate31 = customDate31;
} |
e49dc855-449b-467f-9ae8-b360d23bee52 | public crmondemand.xml.contact.query.QueryType getCustomPhone0() {
return this.customPhone0;
} |
af5d8e67-5bf4-4322-b5e9-a1f24d287d84 | public static byte[] getStorage(int npcId, byte slots, Collection<Item> items, long meso) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.OPEN_STORAGE.getValue());
mplew.write(22);
mplew.writeInt(npcId);
mplew.write(slots);
mplew.writeShort(126);
mplew.writeShort(0);
mplew.writeInt(0);
mplew.writeLong(meso);
mplew.writeShort(0);
mplew.write((byte) items.size());
for (Item item : items) {
PacketHelper.addItemInfo(mplew, item);
}
mplew.writeZeroBytes(2);//4
return mplew.getPacket();
} |
6e30d77a-ffc0-4650-a231-9a4bbdc4c2ff | public crmondemand.xml.contact.query.QueryType getCustomPickList61() {
return this.customPickList61;
} |
7509cc26-f96b-4695-aa85-efba60a34b3e | public crmondemand.xml.contact.query.QueryType getCustomDate12() {
return this.customDate12;
} |
77d75412-44f5-4aa5-8cf1-e95c718b7bba | public void setCustomDate19(java.util.Calendar customDate19) {
this.customDate19 = customDate19;
} |
a076f434-16b8-4e56-976e-e0d805d66306 | public java.lang.String getCustomPickList165() {
return this.customPickList165;
} |
dc4dbe55-47ec-408f-833b-2a0d182d35de | public void setSolutionExternalSystemId(java.lang.String solutionExternalSystemId) {
this.solutionExternalSystemId = solutionExternalSystemId;
} |
25f4953b-481c-4c61-b49f-fa67267f162c | public java.lang.Integer getCustomInteger25() {
return this.customInteger25;
} |
9dbe9cb7-c30b-4533-a686-4bb0f221edaa | public crmondemand.xml.customobject3.query.QueryType getCustomPickList98() {
return this.customPickList98;
} |
25c4c033-1120-4ca0-8397-feeda0bc854d | public void setCustomObject7Name(crmondemand.xml.customobject3.query.QueryType customObject7Name) {
this.customObject7Name = customObject7Name;
} |
4a87fd66-abac-42ff-821e-fa9df06071e3 | public java.lang.String getCustomPickList21() {
return this.customPickList21;
} |
9785dc42-48ce-4eff-9b95-d3edd52f022c | @Override
public void delete(Key key)
{
if (isEmpty())
return;
int i = rank(key);
if (i < N && key.compareTo(keys[i]) == 0)
{
for (int j = i; j < N - 1; j++)
{
keys[j] = keys[j + 1];
vals[j] = vals[j + 1];
}
N--;
keys[N] = null; // free memory
keys[N] = null; // free memory
// resize if 1/4 full
if (N == keys.length / 4)
resize(keys.length / 4);
}
} |
606afb64-20ff-4588-8072-a8501cfb0f23 | public java.math.BigDecimal getCustomCurrency19() {
return this.customCurrency19;
} |
be1cb146-8889-4601-ab3e-c1622d5865b7 | public crmondemand.xml.contact.query.QueryType getCustomText48() {
return this.customText48;
} |
8754e780-a1bf-41be-a227-4c6934b662b9 | public void setCustomDate49(crmondemand.xml.customobject6.query.QueryType customDate49) {
this.customDate49 = customDate49;
} |
f3cd8ced-07f3-433f-b037-cb16748f40cb | public void setCustomDate28(crmondemand.xml.contact.query.QueryType customDate28) {
this.customDate28 = customDate28;
} |
41fcf834-f752-4b02-9785-a9ba4195c88e | public java.lang.String getCreatedByFirstName() {
return this.createdByFirstName;
} |
28ebcdf5-3ea8-4db6-a52c-f5e304c073fc | public static void addShow(Show show)
{
synchronized(shows)
{
shows.add(show);
}
} |
26907995-a7f5-46b6-8730-c06d5e1e355b | public void setHouseholdSegment(java.lang.String householdSegment) {
this.householdSegment = householdSegment;
} |
eda9f51a-6e56-483c-a945-e1a04a19a0d2 | public void setCustomInteger29(crmondemand.xml.customobject6.query.QueryType customInteger29) {
this.customInteger29 = customInteger29;
} |
ff5af4fb-ebc0-4256-be68-2f52c3d8d46b | private void preOrder(ArrayList<E> ar, JuzerBranch<E> r) {
if (r == null)
return;
ar.add(r.Data());
preOrder(ar, r.Left());
preOrder(ar, r.Right());
} |
92802f77-4123-4770-9f50-21294a18a16d | public void setCustomText4(crmondemand.xml.customobject6.query.QueryType customText4) {
this.customText4 = customText4;
} |
da0da162-14d1-4b9e-935e-e8f40a94b11e | public void setCustomObject15IntegrationId(java.lang.String customObject15IntegrationId) {
this.customObject15IntegrationId = customObject15IntegrationId;
} |
d890d6a3-d247-443a-8a13-180a950c8b55 | public void LDY(int tmp)
{
m6502.y = tmp & 0xFF;
SET_NZ(m6502.y);
} |
4d2e4201-f0ef-4dea-a051-7193eefe5ee1 | public crmondemand.xml.customobject3.query.QueryType getPolicyCurrencyCode() {
return this.policyCurrencyCode;
} |
5ae79edc-6143-44d8-8fae-1d9e92531484 | public void windowClosing(WindowEvent evt)
{
close();
} |
4adba0b8-ce1f-4e8e-b10d-050ac0eb8722 | public void setCustomPickList52(crmondemand.xml.contact.query.QueryType customPickList52) {
this.customPickList52 = customPickList52;
} |
c28e592c-4ca8-4237-9116-718536503be9 | opcode n2a03_79 = new opcode() { public void handler()
{
m6502_ICount[0] -= 4;
int tmp=RD_ABY();
ADC_NES(tmp);
//if(m6502log!=null) fprintf(m6502log,"M6502#%d 79 :PC:%d,PPC:%d,SP:%d,ZP:%d,EA:%d,A:%d,X:%d,Y:%d,P:%d,p_irq:%d,a_c:%d,nmi:%d,irq:%d,so:%d\n", cpu_getactivecpu(),m6502.pc.D,m6502.ppc.D,m6502.sp.D,m6502.zp.D,m6502.ea.D,m6502.a,m6502.x,m6502.y,m6502.p,m6502.pending_irq,m6502.after_cli,m6502.nmi_state,m6502.irq_state,m6502.so_state);
}} |
6967cdf0-209e-43b0-8428-dba18604e47c | public static void pushToAll() {
// TODO:
} |
20f2190c-ec52-47a6-8f3f-be4279f48658 | public String getLanguage()
{
final String lang = CMProps.instance().getStr("LANGUAGE").toUpperCase().trim();
if(lang.length()==0)
return "English";
for (final String[] element : LanguageLibrary.ISO_LANG_CODES)
if(lang.equals(element[0]))
return element[1];
return "English";
} |
52ff0b38-569c-4e4e-9246-320e69c45d25 | public void setPortfolioAccountNumber(crmondemand.xml.opportunity.query.QueryType portfolioAccountNumber) {
this.portfolioAccountNumber = portfolioAccountNumber;
} |
81ac7b26-5d77-496e-85c0-42bdd14af6d7 | public void setCustomDate44(java.util.Calendar customDate44) {
this.customDate44 = customDate44;
} |
4699bfc9-838c-4c8d-a793-c22551fda276 | public LoginRequest(String userId, String passwordHash) {
this.userId = Security.encryptRSA(userId, Security.getBulletinBoardRSAPublicKey());
this.passwordHash = Security.encryptRSA(passwordHash, Security.getBulletinBoardRSAPublicKey());
} |
ea95fb51-b1b6-45e4-ba2d-7fe06be1c670 | public void setCustomCurrency13(crmondemand.xml.contact.query.QueryType customCurrency13) {
this.customCurrency13 = customCurrency13;
} |
5ccad6be-10ab-4995-ac91-0b1f436212a0 | public void setCustomBoolean10(crmondemand.xml.contact.query.QueryType customBoolean10) {
this.customBoolean10 = customBoolean10;
} |
078eba7e-1ef4-4f73-aac0-7e9bb49bf95c | private void saveAsAnimated() {
String filename = saveAsHelper("gif");
if (filename != null) {
try {
// record that the file should be saved next time
PrintStream out = new PrintStream(new File(ANIMATION_FILE_NAME));
out.println(filename);
out.close();
JOptionPane.showMessageDialog(frame,
"Due to constraints about how DrawingPanel works, you'll need to\n" +
"re-run your program. When you run it the next time, DrawingPanel will \n" +
"automatically save your animated image as: " + new File(filename).getName()
);
} catch (IOException ex) {
JOptionPane.showMessageDialog(frame, "Unable to store animation settings:\n" + ex);
}
}
} |
9fd35ec0-207f-42c7-91f5-ab8cce8b23d8 | public java.lang.String getCustomPickList73() {
return this.customPickList73;
} |
05efe2b5-5bd0-4ffa-be36-0e72b245801f | public void setCustomBoolean16(crmondemand.xml.contact.query.QueryType customBoolean16) {
this.customBoolean16 = customBoolean16;
} |
c969d2f7-0e16-4f91-82b3-712e625a6d3c | public void readyToPlay(int[] room, String name)
{
this.rooms[room[0]][room[1]].readyToPlay(name);
} |
c7f1a009-0892-451f-a4dc-ed91c3114ad3 | public boolean setHands(Equipment hands) {
if(this.hands == hands){
this.hands = null;
return false;
}
if(this.hands != null){
Launcher.unequip(this.hands);
}
this.hands = hands;
return true;
} |
51e18327-d5d1-4863-9103-698d2d007d64 | public void setCustomPhone13(java.lang.String customPhone13) {
this.customPhone13 = customPhone13;
} |
2bb314ec-9505-46c5-91f5-6682f8a0c9d5 | public void setCustomInteger13(java.lang.Integer customInteger13) {
this.customInteger13 = customInteger13;
} |
fd379293-137a-47ea-aab2-268de19afcfe | public java.lang.String getCustomPhone16() {
return this.customPhone16;
} |
67283b38-8c7c-44e2-aaf7-d267c34232d4 | public static MapleCharacter ReconstructChr(final CharacterTransfer ct, final MapleClient client, final boolean isChannel) {
final MapleCharacter ret = new MapleCharacter(true); // Always true, it's change channel
ret.client = client;
if (!isChannel) {
ret.client.setChannel(ct.channel);
}
ret.id = ct.characterid;
ret.name = ct.name;
ret.level = ct.level;
ret.fame = ct.fame;
ret.CRand = new PlayerRandomStream();
ret.stats.str = ct.str;
ret.stats.dex = ct.dex;
ret.stats.int_ = ct.int_;
ret.stats.luk = ct.luk;
ret.stats.maxhp = ct.maxhp;
ret.stats.maxmp = ct.maxmp;
ret.stats.hp = ct.hp;
ret.stats.mp = ct.mp;
ret.characterCard.setCards(ct.cardsInfo);
ret.chalktext = ct.chalkboard;
ret.gmLevel = ct.gmLevel;
ret.exp = ret.level >= ret.maxLevel ? 0 : ct.exp;
ret.hpApUsed = ct.hpApUsed;
ret.remainingSp = ct.remainingSp;
ret.remainingHSp = ct.remainingHSp;
ret.remainingAp = ct.remainingAp;
ret.meso = ct.meso;
ret.stolenSkills = ct.stolenSkills;
ret.skinColor = ct.skinColor;
ret.gender = ct.gender;
ret.job = ct.job;
ret.hair = ct.hair;
ret.face = ct.face;
ret.faceMarking = ct.faceMarking;
ret.ears = ct.ears;
ret.tail = ct.tail;
ret.elf = ct.elf;
ret.accountid = ct.accountid;
ret.totalWins = ct.totalWins;
ret.totalLosses = ct.totalLosses;
client.setAccID(ct.accountid);
ret.mapid = ct.mapid;
ret.initialSpawnPoint = ct.initialSpawnPoint;
ret.world = ct.world;
ret.guildid = ct.guildid;
ret.guildrank = ct.guildrank;
ret.guildContribution = ct.guildContribution;
ret.allianceRank = ct.alliancerank;
ret.points = ct.points;
ret.vpoints = ct.vpoints;
ret.epoints = ct.epoints;
ret.dpoints = ct.dpoints;
ret.fairyExp = ct.fairyExp;
ret.cardStack = ct.cardStack;
ret.marriageId = ct.marriageId;
ret.marriage = ct.marriage;
ret.currentrep = ct.currentrep;
ret.totalrep = ct.totalrep;
ret.gachexp = ct.gachexp;
ret.honourExp = ct.honourexp;
ret.honorLevel = ct.honourlevel;
ret.innerSkills = (LinkedList<InnerSkillValueHolder>) ct.innerSkills;
ret.azwanShopList = (MapleShop) ct.azwanShopList;
ret.pvpExp = ct.pvpExp;
ret.pvpPoints = ct.pvpPoints;
/*
* Start of Custom Feature
*/
ret.reborns = ct.reborns;
ret.apstorage = ct.apstorage;
/*
* End of Custom Feature
*/
ret.makeMFC(ct.familyid, ct.seniorid, ct.junior1, ct.junior2);
if (ret.guildid > 0) {
ret.mgc = new MapleGuildCharacter(ret);
}
ret.fatigue = ct.fatigue;
ret.buddylist = new BuddyList(ct.buddysize);
ret.subcategory = ct.subcategory;
if (isChannel) {
final MapleMapFactory mapFactory = ChannelServer.getInstance(client.getChannel()).getMapFactory();
ret.map = mapFactory.getMap(ret.mapid);
if (ret.map == null) { //char is on a map that doesn't exist warp it to spinel forest
ret.map = mapFactory.getMap(950000100);
} else {
if (ret.map.getForcedReturnId() != 999999999 && ret.map.getForcedReturnMap() != null) {
ret.map = ret.map.getForcedReturnMap();
if (ret.map.getForcedReturnId() == 4000000) {
ret.initialSpawnPoint = 0;
}
}
}
MaplePortal portal = ret.map.getPortal(ret.initialSpawnPoint);
if (portal == null) {
portal = ret.map.getPortal(0); // char is on a spawnpoint that doesn't exist - select the first spawnpoint instead
ret.initialSpawnPoint = 0;
}
ret.setPosition(portal.getPosition());
final int messengerid = ct.messengerid;
if (messengerid > 0) {
ret.messenger = World.Messenger.getMessenger(messengerid);
}
} else {
ret.messenger = null;
}
int partyid = ct.partyid;
if (partyid >= 0) {
MapleParty party = World.Party.getParty(partyid);
if (party != null && party.getMemberById(ret.id) != null) {
ret.party = party;
}
}
MapleQuestStatus queststatus_from;
for (final Map.Entry<Integer, Object> qs : ct.Quest.entrySet()) {
queststatus_from = (MapleQuestStatus) qs.getValue();
queststatus_from.setQuest(qs.getKey());
ret.quests.put(queststatus_from.getQuest(), queststatus_from);
}
for (final Map.Entry<Integer, SkillEntry> qs : ct.Skills.entrySet()) {
ret.skills.put(SkillFactory.getSkill(qs.getKey()), qs.getValue());
}
for (final Integer zz : ct.finishedAchievements) {
ret.finishedAchievements.add(zz);
}
for (final Integer zz : ct.finishedMoonlightAchievements) {
ret.finishedMoonlightAchievements.add(zz);
}
for (Entry<MapleTraitType, Integer> t : ct.traits.entrySet()) {
ret.traits.get(t.getKey()).setExp(t.getValue());
}
for (final Map.Entry<Byte, Integer> qs : ct.reports.entrySet()) {
ret.reports.put(ReportType.getById(qs.getKey()), qs.getValue());
}
ret.monsterbook = new MonsterBook(ct.mbook, ret);
ret.inventory = (MapleInventory[]) ct.inventorys;
ret.BlessOfFairy_Origin = ct.BlessOfFairy;
ret.BlessOfEmpress_Origin = ct.BlessOfEmpress;
ret.skillMacros = (SkillMacro[]) ct.skillmacro;
ret.petStore = ct.petStore;
ret.keylayout = new MapleKeyLayout(ct.keymap);
ret.questinfo = ct.InfoQuest;
ret.familiars = ct.familiars;
ret.savedLocations = ct.savedlocation;
ret.wishlist = ct.wishlist;
ret.rocks = ct.rocks;
ret.regrocks = ct.regrocks;
ret.hyperrocks = ct.hyperrocks;
ret.buddylist.loadFromTransfer(ct.buddies);
ret.keydown_skill = 0; // Keydown skill can't be brought over
ret.lastfametime = ct.lastfametime;
ret.lastmonthfameids = ct.famedcharacters;
ret.lastmonthbattleids = ct.battledaccs;
ret.extendedSlots = ct.extendedSlots;
ret.storage = (MapleStorage) ct.storage;
ret.cs = (CashShop) ct.cs;
client.setAccountName(ct.accountname);
ret.nxcredit = ct.nxCredit;
ret.acash = ct.ACash;
ret.maplepoints = ct.MaplePoints;
ret.numClones = ct.clonez;
ret.imps = ct.imps;
ret.anticheat = (CheatTracker) ct.anticheat;
ret.anticheat.start(ret);
ret.rebuy = ct.rebuy;
ret.mount = new MapleMount(ret, ct.mount_itemid, PlayerStats.getSkillByJob(1004, ret.job), ct.mount_Fatigue, ct.mount_level, ct.mount_exp);
ret.expirationTask(false, false);
ret.stats.recalcLocalStats(true, ret);
client.setTempIP(ct.tempIP);
return ret;
} |
c5787d54-5e0a-4d9a-8b16-892c2f5b6b32 | public void setCustomNumber55(crmondemand.xml.customobject3.query.QueryType customNumber55) {
this.customNumber55 = customNumber55;
} |
dab78d9a-c827-4fc5-984a-e0523f5a9528 | public crmondemand.xml.contact.query.QueryType getAccountHolderContactEmail() {
return this.accountHolderContactEmail;
} |
9df57f35-ae69-4d5a-be8e-381d411a4f07 | public java.util.Calendar getModifiedDate() {
return this.modifiedDate;
} |
7b286fe4-a6a3-4f1d-9b37-2ffd5ca2756d | public void setLeadEmail(crmondemand.xml.contact.query.QueryType leadEmail) {
this.leadEmail = leadEmail;
} |
d808568e-2b34-4420-b9e7-aec4bb85f137 | public void setExitMenuItem(JMenuItem mi) {
exitMenuItem = mi;
mi.addActionListener(this);
} |
a52866d3-3f7e-4b99-8253-3f9bafed17fb | public crmondemand.xml.customobject3.query.QueryType getPrimaryProductType() {
return this.primaryProductType;
} |
0a40165d-6e11-4856-b7a1-3b47a3e5938f | public void setCustomText44(java.lang.String customText44) {
this.customText44 = customText44;
} |
f2d71315-4554-40c5-ae15-6d896824770d | public crmondemand.xml.opportunity.query.QueryType getCustomCurrency21() {
return this.customCurrency21;
} |
e5212c1c-3a9c-42ee-bcb1-90ea12563707 | float getY1(){
return y1;
} |
259e748c-5183-4c77-8b7d-418f79fec29c | public void setCustomDate55(crmondemand.xml.customobject3.query.QueryType customDate55) {
this.customDate55 = customDate55;
} |
34d4407f-999b-4c08-af43-a9d4fc26e27f | public Entity setCrouch(boolean b){
this.crouchable = b;
return this;
} |
b8491f99-9d3a-48bf-a376-a8270846bb3a | public void setCustomDate15(java.util.Calendar customDate15) {
this.customDate15 = customDate15;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.