id
stringlengths
36
36
text
stringlengths
1
1.25M
351490bd-a91a-4870-8fde-ba6e8d373391
public void setCustomDate28(java.util.Calendar customDate28) { this.customDate28 = customDate28; }
b508a1d3-b42a-42b1-b198-ba26d06b8ae0
public java.lang.String getCustomText42() { return this.customText42; }
1bba2085-a56a-453f-ad2a-0d3cb1ed24d8
public crmondemand.xml.customobject3.query.QueryType getCustomObject13Id() { return this.customObject13Id; }
ae03c42a-a90e-497e-84fe-9cf1002b3686
protected void runLoop() { while (!wantToShutDown) { listener.selectorFired(); } }
64808c65-b887-4016-a1ba-231d1780c6d3
public crmondemand.xml.customobject3.query.QueryType getCustomText33() { return this.customText33; }
ec39061a-b9d2-4c81-8330-5a690f992da5
public java.math.BigDecimal getCustomCurrency15() { return this.customCurrency15; }
61638dd5-3b42-41fc-82d1-ceddee16d5ee
public Color getColor() { return color; }
e2a0c8ac-2a06-4315-83bd-46905d38c13a
public java.lang.Boolean getCustomBoolean14() { return this.customBoolean14; }
5e83ba27-a6bb-47d6-ac27-e7c810e83eaa
public void setCustomObject11IntegrationId(crmondemand.xml.customobject3.query.QueryType customObject11IntegrationId) { this.customObject11IntegrationId = customObject11IntegrationId; }
4d9df4c7-3485-4a79-8119-60ef9788c9ef
public crmondemand.xml.contact.query.QueryType getContactType() { return this.contactType; }
0a8cd00c-3fa1-436e-95ec-a3651a1e4f2d
public java.lang.String getCustomObject2Name() { return this.customObject2Name; }
899303a4-55d3-487d-a805-8d4c7e9f9dc5
public static WriteHandlerPtr galaga_interrupt_enable_1_w = new WriteHandlerPtr() { public void handler(int offset, int data) { interrupt_enable_1 = (char)((data & 1)&0xFF); } }
8ee03b6d-e416-44df-b2fe-fea4276292d8
public void setCustomText21(crmondemand.xml.contact.query.QueryType customText21) { this.customText21 = customText21; }
52559ea5-3cb8-42f3-a6cd-888db04d8938
public void setContactAccountName(java.lang.String contactAccountName) { this.contactAccountName = contactAccountName; }
5864e517-8a92-405e-ab9b-72914ad26e5b
public void setCustomObject7IntegrationId(java.lang.String customObject7IntegrationId) { this.customObject7IntegrationId = customObject7IntegrationId; }
75d98696-6d2e-4b33-b2f4-40df3bab3222
opcode dd_23 = new opcode() { public void handler(){ Z80.IX.AddD(1); }}
6f42255c-a0bf-47bb-947d-38b2b0ed4183
public void setCustomDate14(java.util.Calendar customDate14) { this.customDate14 = customDate14; }
cce8ef2c-ab8d-42e2-bd27-43c2cf0c5c82
public crmondemand.xml.customobject6.query.QueryType getCustomPickList20() { return this.customPickList20; }
dd40277f-5457-4ef7-aeae-29062fb1adb0
public crmondemand.xml.customobject3.query.QueryType getCustomText76() { return this.customText76; }
ccd5ed06-3ecc-4d7f-b3e1-d7937f1a5746
public crmondemand.xml.opportunity.query.QueryType getCreatedDate() { return this.createdDate; }
ba0c109b-9413-4997-81d2-d1ffbd06e360
public java.util.Calendar getCustomDate27() { return this.customDate27; }
bf541218-0328-4437-85fe-b7735de245f7
public crmondemand.xml.contact.query.QueryType getOpportunityStatus() { return this.opportunityStatus; }
0c5a7e24-b1a7-4800-a070-7cd12f17d610
public java.lang.Boolean getCustomBoolean3() { return this.customBoolean3; }
d700062f-88eb-4dc6-8188-ff5dba5a5b8f
public java.math.BigDecimal getCustomCurrency21() { return this.customCurrency21; }
76c8cf48-5a95-40c3-8692-ded341fbf6f4
public crmondemand.xml.customobject3.query.QueryType getCustomPickList0() { return this.customPickList0; }
2e868b29-4c71-4e89-96f2-56c492737fdf
public void setMDFRequestRequestName(java.lang.String mDFRequestRequestName) { this.mDFRequestRequestName = mDFRequestRequestName; }
fe28a88b-0308-46ec-a5d1-594f92c8227d
void setName(String name){ this.name = name; }
64353931-cdf4-498c-a18e-ba3ac0ce9d59
public crmondemand.xml.customobject3.query.QueryType getCustomInteger3() { return this.customInteger3; }
b93f0e71-c8ad-4a43-9455-644d12acb7cb
public static void instantiateUndefinedSurrogates(Proposition self) { { Keyword testValue000 = self.kind; if ((testValue000 == Logic.KWD_AND) || ((testValue000 == Logic.KWD_OR) || ((testValue000 == Logic.KWD_NOT) || (testValue000 == Logic.KWD_EXISTS)))) { { Stella_Object arg = null; Vector vector000 = self.arguments; int index000 = 0; int length000 = vector000.length(); for (;index000 < length000; index000 = index000 + 1) { arg = (vector000.theArray)[index000]; Proposition.instantiateUndefinedSurrogates(((Proposition)(arg))); } } } else if ((testValue000 == Logic.KWD_PREDICATE) || ((testValue000 == Logic.KWD_FUNCTION) || (testValue000 == Logic.KWD_ISA))) { { Stella_Object arg = null; Vector vector001 = self.arguments; int index001 = 0; int length001 = vector001.length(); for (;index001 < length001; index001 = index001 + 1) { arg = (vector001.theArray)[index001]; if (Surrogate.subtypeOfSurrogateP(Stella_Object.safePrimaryType(arg))) { { Surrogate arg000 = ((Surrogate)(arg)); if (arg000.surrogateValue == null) { Logic.createLogicInstance(arg000, null); } } } else { } } } } else { } } }
a263be70-06e9-4db6-85d9-78d5e183a4ea
public java.lang.String getCustomText76() { return this.customText76; }
07e45904-e000-4845-a8a6-7f128b38467b
public java.lang.String getCustomText15() { return this.customText15; }
bdca9674-fba6-4528-bc69-10c7066bb098
opcode xxcb_35 = new opcode() { public void handler(){ throw new UnsupportedOperationException("unimplemented");}}
e186fa22-27fd-49ad-ad8c-fe2b10267fbf
public static Cons topLevelExistentialVariables(Description self) { { List quantifiedvariables = List.newList(); List beenthere = List.newList(); List collection = List.newList(); { PatternVariable v = null; Vector vector000 = self.ioVariables; int index000 = 0; int length000 = vector000.length(); for (;index000 < length000; index000 = index000 + 1) { v = ((PatternVariable)((vector000.theArray)[index000])); quantifiedvariables.insert(v); } } if (((Vector)(KeyValueList.dynamicSlotValue(self.dynamicSlots, Logic.SYM_LOGIC_EXTERNAL_VARIABLES, null))) != null) { { PatternVariable v = null; Vector vector001 = ((Vector)(KeyValueList.dynamicSlotValue(self.dynamicSlots, Logic.SYM_LOGIC_EXTERNAL_VARIABLES, null))); int index001 = 0; int length001 = vector001.length(); for (;index001 < length001; index001 = index001 + 1) { v = ((PatternVariable)((vector001.theArray)[index001])); quantifiedvariables.insert(v); } } } if (self.proposition == null) { return (quantifiedvariables.theConsList); } Logic.collectFreeVariables(self.proposition, collection, quantifiedvariables, beenthere); quantifiedvariables.free(); beenthere.free(); return (collection.theConsList); } }
a82fdf09-054b-48c2-b043-c0af8631465a
public boolean replaceItem(int slot, int invType, Object statsSel, int offset, String type) { return replaceItem(slot, invType, statsSel, offset, type, false); }
76befb87-1c9e-4dfd-b0f6-b326dd0241cc
public void setCustomText69(java.lang.String customText69) { this.customText69 = customText69; }
f2f87fe3-d529-47a2-89da-19caa12c059d
public void setCustomText30(java.lang.String customText30) { this.customText30 = customText30; }
1fa7018c-01a1-4564-8515-580efc1ae490
public void setCustomPickList44(java.lang.String customPickList44) { this.customPickList44 = customPickList44; }
5cc10131-71c0-45ed-95c4-de42c2216e38
public crmondemand.xml.opportunity.query.QueryType getCustomNumber11() { return this.customNumber11; }
59b24437-3b4c-49c0-950c-8943f982c1c8
public void setCustomText88(java.lang.String customText88) { this.customText88 = customText88; }
c498d50e-1eb4-48f7-95e9-75f953d2044a
public boolean hasDeprecated() { return ((bitField0_ & 0x00000008) == 0x00000008); }
62b964ee-f2d7-4cfa-960b-06e276b36f8e
public void setParentTxn(java.lang.String parentTxn) { this.parentTxn = parentTxn; }
96fefb2e-76f8-401d-a104-ecdf7314c0f0
public void setCustomNumber1(crmondemand.xml.customobject6.query.QueryType customNumber1) { this.customNumber1 = customNumber1; }
c9c37980-5594-477f-a9d4-bb9e765bf71f
public void setCustomPickList10(crmondemand.xml.opportunity.query.QueryType customPickList10) { this.customPickList10 = customPickList10; }
d4ddb851-edad-407f-9b90-5f3799c5cc64
public void setCustomText36(java.lang.String customText36) { this.customText36 = customText36; }
66b71e22-3d1c-4d69-bda2-b88acafd914c
public crmondemand.xml.opportunity.query.QueryType getQuickSearch2() { return this.quickSearch2; }
1f26e319-4935-45de-bc5c-d8c945a9f7d1
public java.math.BigDecimal getCustomNumber10() { return this.customNumber10; }
54514ed2-fa2f-4420-a584-85b6d2fdc3e5
public void setOpportunityIntegrationId(crmondemand.xml.opportunity.query.QueryType opportunityIntegrationId) { this.opportunityIntegrationId = opportunityIntegrationId; }
bde4f81f-b8a1-4727-bb01-c2db9b0c2a44
public java.lang.String getFundStatus() { return this.fundStatus; }
571a9660-c7f9-4340-a0ae-24d6dd3c245a
public static void runUpdateEquivalencePropositionDemon(Proposition proposition, Keyword updatemode) { { Stella_Object term1 = (proposition.arguments.theArray)[0]; Stella_Object term2 = (proposition.arguments.theArray)[1]; NamedDescription description = (Logic.functionOutputSkolemP(term1) ? Logic.getDescription(((Surrogate)(((Skolem)(term1)).definingProposition.operator))) : ((Logic.functionOutputSkolemP(term2) ? Logic.getDescription(((Surrogate)(((Skolem)(term2)).definingProposition.operator))) : ((NamedDescription)(null))))); Stella_Object demoncomputation = ((description != null) ? Logic.accessBinaryValue(description, Logic.SGT_PL_KERNEL_KB_UPDATE_PROPOSITION_DEMON) : ((Stella_Object)(null))); if (demoncomputation != null) { { java.lang.reflect.Method functioncode = ComputedProcedure.functionCodeFromProcedure(((ComputedProcedure)(demoncomputation))); if (functioncode != null) { edu.isi.stella.javalib.Native.funcall(functioncode, null, new java.lang.Object [] {proposition, updatemode}); } } } } }
8152453c-0820-4722-888c-6f08dd5ce5d4
public void setCertficationId(java.lang.String certficationId) { this.certficationId = certficationId; }
b618efd7-9032-4545-bdf5-9b95309cabc7
private void jTextField2KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField2KeyReleased // TODO add your handling code here: if(this.jTextField2.getText().length() <= 30){ validacionVentanas.validarLetras_y_Espacios(jTextField2); }else{ JOptionPane.showMessageDialog(null,"Nombre demasiado largo\n solo se permiten 30 caracteres"); this.jTextField2.setText(this.jTextField2.getText().substring(0, 30)); } }//GEN-LAST:event_jTextField2KeyReleased
1ee5f52e-16e5-473a-a456-589c179b474f
private void btnLoginMouseClicked(MouseEvent evt) { String user = txtUserId.getText().trim(); String password = jPasswordField1.getText().trim(); if(user.equals("") || password.equals("")) //in case username or password is blank { jOptionPane1.showMessageDialog(null, "Please enter User Name and Password"); txtUserId.requestFocus(); } else { if (agentDB.verifyLogin(user, password))//call DB to verify login { JavaWorkshop jw = new JavaWorkshop(); jw.setVisible(true); dispose(); } else //invalid login { jOptionPane1.showMessageDialog(null, "Invalid User Name or Password"); txtUserId.requestFocus(); } } }
873f57b4-b534-4108-8ccd-6fc6a1604ef0
public void setCustomPickList90(crmondemand.xml.customobject6.query.QueryType customPickList90) { this.customPickList90 = customPickList90; }
56046098-2786-4cab-831c-3ef4bb9f8652
public crmondemand.xml.customobject6.query.QueryType getCustomText63() { return this.customText63; }
b654ae55-e194-4975-ab67-fd70d8b76b6d
public void setCustomObject11ExternalSystemId(java.lang.String customObject11ExternalSystemId) { this.customObject11ExternalSystemId = customObject11ExternalSystemId; }
6093cc24-55db-4cdf-a8fc-938e28f5d06c
public void setBrokerProfileExternalSystemId(crmondemand.xml.customobject6.query.QueryType brokerProfileExternalSystemId) { this.brokerProfileExternalSystemId = brokerProfileExternalSystemId; }
c9709594-4ab2-48be-8332-ddcb8c8d5c66
public crmondemand.xml.customobject6.query.QueryType getCustomPhone14() { return this.customPhone14; }
950b7be7-ee6e-478e-a162-4d206fb7616c
public void handler() { m6800.x = (m6800.x + RM(m6800.s + 1)) & 0xFFFF; }
40a68aab-b932-45b7-82fb-3013adc50034
public void setCustomPickList52(java.lang.String customPickList52) { this.customPickList52 = customPickList52; }
8e3ff44d-2f8d-4190-86b9-e8768b3d603f
public crmondemand.xml.customobject6.query.ListOfServiceRequestQuery getListOfServiceRequest() { return this.listOfServiceRequest; }
b7a7ef98-3ca5-4937-a0af-31cc1f43ad0b
public java.lang.String getContactIntegrationId() { return this.contactIntegrationId; }
23918662-935e-4290-a162-879cc16ef990
public void setType(java.lang.String type) { this.type = type; }
aaf9f0be-8f47-46df-b974-de54a1619a61
public void setCustomText40(crmondemand.xml.contact.query.QueryType customText40) { this.customText40 = customText40; }
16e42940-1f40-4b9d-b22e-184b7974138d
public void setCustomDate57(crmondemand.xml.opportunity.query.QueryType customDate57) { this.customDate57 = customDate57; }
44d31a2a-a986-44d4-bf63-1306bf345a05
public void setOpportunityName(java.lang.String opportunityName) { this.opportunityName = opportunityName; }
85fea42d-0e38-4c67-8dca-94490a4f185e
public crmondemand.xml.customobject3.query.QueryType getCreatedByFullName() { return this.createdByFullName; }
3ae717ba-ead3-45cb-961f-e79c38c62863
public java.math.BigDecimal getCustomNumber24() { return this.customNumber24; }
2444375d-1455-4084-ac9e-3d50a71fbdcd
@Override public void handlePacket(Remote r, Packet p, boolean in) { if(in) { if(p instanceof PacketHello) { r.leave(""); ping = (int) (System.currentTimeMillis() - start); } } }
3b25c357-0222-4885-9ee1-034d8a91e523
public java.lang.Integer getModId() { return this.modId; }
18a88d73-26e6-4c23-90d2-735eb279c10e
public void setCustomPickList48(java.lang.String customPickList48) { this.customPickList48 = customPickList48; }
a8cacfb4-9c65-411b-b56b-dc0c0b55a242
public void setOpportunityExternalSystemId(java.lang.String opportunityExternalSystemId) { this.opportunityExternalSystemId = opportunityExternalSystemId; }
b2ea7346-44e3-4cb6-b8e2-21be9064f718
public void setCustomText52(crmondemand.xml.contact.query.QueryType customText52) { this.customText52 = customText52; }
60b75cf1-494f-4a12-85af-431b7e703488
private static void prepareYourself() { DRAWED_EMPIRE.setSize(empireDimension); DRAWED_EMPIRE.setPreferredSize(empireDimension); }
7eca7d1f-15be-4313-b6d9-ff716723215d
public java.lang.String getOwner() { return this.owner; }
62b07ad8-8216-445c-9409-98ebba6ad78e
public java.util.Calendar getCustomDate39() { return this.customDate39; }
09f8d976-b733-4803-886a-cf72de5cb564
public static main.Messages.ExecutionStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); }
437c08f9-e4db-433b-938a-d53571f1f7e3
public crmondemand.xml.contact.query.QueryType getServiceRequestIntegrationId() { return this.serviceRequestIntegrationId; }
1747af2b-bc79-4a37-8e5c-3b6c2a7ef428
public java.lang.String getCourseIdentifier() { return this.courseIdentifier; }
9998967f-9d74-47e7-bfd7-dc87ad992870
public java.lang.Integer getCustomInteger14() { return this.customInteger14; }
c08048b2-a91e-4e13-af0d-cf54d05dc0df
public void setLeadSource(java.lang.String leadSource) { this.leadSource = leadSource; }
3dbc04ee-7af8-4a22-9a7b-21658ede8feb
public crmondemand.xml.customobject6.query.QueryType getCustomText34() { return this.customText34; }
eb3e0bc4-a618-437f-adea-f9ed89539087
public void handler() { long ea = EA_PI_16(); long src = get_DX(); long dst = m68ki_read_16(ea); long res = MASK_OUT_ABOVE_16(dst - src); m68ki_write_16(ea, res); m68k_cpu.n_flag = GET_MSB_16(res); m68k_cpu.not_z_flag = res; m68k_cpu.x_flag = m68k_cpu.c_flag = CFLAG_SUB_16(src, dst, res); m68k_cpu.v_flag = VFLAG_SUB_16(src, dst, res); USE_CLKS(8 + 4); if (m68klog != null) { fprintf(m68klog, "sub_re_pi_16 :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); } }
6f26c1e4-8eea-4f6e-8134-c7327568c748
public void setCustomNumber56(java.math.BigDecimal customNumber56) { this.customNumber56 = customNumber56; }
e4582fc7-dfc2-4a52-8056-4f1880658c2f
private int readTotal(byte[] buffer, int offset, int length, int total) throws IOException { int num; while((num = super.read(buffer, offset, length)) < length) { if(num < 0) return num; else return readTotal(buffer, offset + num, length - num, total + num); } return total + num; }
5937582b-604b-4723-905d-800716316421
public boolean isBefore(final Ticket right) { return this.endDate.isBefore(right.startDate.plus(1)); }
3cd758a8-1189-49d3-88a3-4a48f0239706
public void setExternalSource(crmondemand.xml.contact.query.QueryType externalSource) { this.externalSource = externalSource; }
2e6124f6-9135-4948-8db3-eb5722e14201
public java.math.BigDecimal getCustomCurrency21() { return this.customCurrency21; }
5e17f887-525b-4a73-bd50-db7d9b649245
public void setCustomNumber58(java.math.BigDecimal customNumber58) { this.customNumber58 = customNumber58; }
91f0fd35-f69d-46e1-8aa0-e7b3dac6b82c
public void setCustomText52(java.lang.String customText52) { this.customText52 = customText52; }
56156eda-79e9-487c-9660-5acfaac4cc75
public java.lang.String getCustomText18() { return this.customText18; }
20f5b04d-81b8-4627-9ccc-d6e944d78ad0
public void setCustomText82(java.lang.String customText82) { this.customText82 = customText82; }
28863b24-5317-48e8-b35a-8a3627fe5af6
public void setCustomDate10(java.util.Calendar customDate10) { this.customDate10 = customDate10; }
02c8acfc-f450-4f1c-a9c2-975cc697fed7
@Override public void processingInstruction(String arg0, String arg1) throws SAXException { // TODO Auto-generated method stub }
0ca8d761-397b-485c-815e-687fb2ebf4d9
public void handler() { ROM_REGION(0x030000, REGION_CPU1);/* 68000 code */ // Custom cpu 317-0027 ROM_LOAD_EVEN("epr10970.43", 0x000000, 0x8000, 0xb8fa4a2c); ROM_LOAD_ODD("epr10968.26", 0x000000, 0x8000, 0xa3f97793); ROM_LOAD_EVEN("epr10971.42", 0x010000, 0x8000, 0xc44a0328); ROM_LOAD_ODD("epr10969.25", 0x010000, 0x8000, 0x455d15bd); ROM_LOAD_EVEN("epr10755.41", 0x020000, 0x8000, 0x405e3969); ROM_LOAD_ODD("epr10752.24", 0x020000, 0x8000, 0x77453740); ROM_REGION(0x30000, REGION_GFX1 | REGIONFLAG_DISPOSE);/* tiles */ ROM_LOAD("epr10756.95", 0x00000, 0x10000, 0x44d8a506); ROM_LOAD("epr10757.94", 0x10000, 0x10000, 0x497e1740); ROM_LOAD("epr10758.93", 0x20000, 0x10000, 0x61d61486); ROM_REGION(0x060000 * 2, REGION_GFX2);/* sprites */ ROM_LOAD("b1.rom", 0x000000, 0x010000, 0x30e2c50a); ROM_LOAD("b5.rom", 0x010000, 0x010000, 0x794e3e8b); ROM_LOAD("b2.rom", 0x020000, 0x010000, 0x6a8b3fd0); ROM_LOAD("b6.rom", 0x030000, 0x010000, 0x602da5d5); ROM_LOAD("b3.rom", 0x040000, 0x010000, 0xb9de3aeb); ROM_LOAD("b7.rom", 0x050000, 0x010000, 0x0a73a057); ROM_REGION(0x10000, REGION_CPU2);/* sound CPU */ ROM_LOAD("epr10759.12", 0x0000, 0x8000, 0xd7f9649f); ROM_END(); }
10ecb53d-ed48-40f6-8fb0-c029fb2069f2
public void setAssetExternalSystemId(java.lang.String assetExternalSystemId) { this.assetExternalSystemId = assetExternalSystemId; }
ff5e8b9c-cd76-4d56-8ca3-f0f4c66a753e
private static BufferedImage alterBufferedImage(BufferedImage bi, BufferedImage smaskImage, BufferedImage maskImage, int[] maskMinRGB, int[] maskMaxRGB) { Raster smaskRaster = null; int smaskWidth = 0; int smaskHeight = 0; int width = bi.getWidth(); int height = bi.getHeight(); if (smaskImage != null) { smaskRaster = smaskImage.getRaster(); smaskWidth = smaskRaster.getWidth(); smaskHeight = smaskRaster.getHeight(); // scale the image to match the image mask. if (width < smaskWidth || height < smaskHeight) { // calculate scale factors. double scaleX = smaskWidth / (double) width; double scaleY = smaskHeight / (double) height; // scale the mask to match the base image. AffineTransform tx = new AffineTransform(); tx.scale(scaleX, scaleY); AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_NEAREST_NEIGHBOR); BufferedImage bim = op.filter(bi, null); bi.flush(); bi = bim; } width = bi.getWidth(); height = bi.getHeight(); } Raster maskRaster = null; int maskWidth = 0; int maskHeight = 0; if (maskImage != null) { maskRaster = maskImage.getRaster(); maskWidth = maskRaster.getWidth(); maskHeight = maskRaster.getHeight(); } int maskMinRed = 0xFF; int maskMinGreen = 0xFF; int maskMinBlue = 0xFF; int maskMaxRed = 0x00; int maskMaxGreen = 0x00; int maskMaxBlue = 0x00; if (maskMinRGB != null && maskMaxRGB != null) { maskMinRed = maskMinRGB[0]; maskMinGreen = maskMinRGB[1]; maskMinBlue = maskMinRGB[2]; maskMaxRed = maskMaxRGB[0]; maskMaxGreen = maskMaxRGB[1]; maskMaxBlue = maskMaxRGB[2]; } if (smaskRaster == null && maskRaster == null && (maskMinRGB == null || maskMaxRGB == null)){ return null; } for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { boolean gotARBG = false; int argb = 0; int alpha = 0xFF; if (y < smaskHeight && x < smaskWidth && smaskRaster != null) { // Alpha equals greyscale value of smask alpha = (smaskRaster.getSample(x, y, 0) & 0xFF); } else if (y < maskHeight && x < maskWidth && maskRaster != null) { // When making an ImageMask, the alpha channnel is setup so that // it both works correctly for the ImageMask being painted, // and also for when it's used here, to determine the alpha // of an image that it's masking alpha = (maskImage.getRGB(x, y) >>> 24) & 0xFF; // Extract Alpha from ARGB } else { gotARBG = true; argb = bi.getRGB(x, y); int red = ((argb >> 16) & 0xFF); int green = ((argb >> 8) & 0xFF); int blue = (argb & 0xFF); if (blue >= maskMinBlue && blue <= maskMaxBlue && green >= maskMinGreen && green <= maskMaxGreen && red >= maskMinRed && red <= maskMaxRed) { alpha = 0x00; } } if (alpha != 0xFF) { if (!gotARBG) argb = bi.getRGB(x, y); argb &= 0x00FFFFFF; argb |= ((alpha << 24) & 0xFF000000); bi.setRGB(x, y, argb); } } } // apply the soft mask. BufferedImage tmpImage = bi; if (smaskImage != null) { BufferedImage argbImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); int[] srcBand = new int[width]; int[] sMaskBand = new int[width]; // iterate over each band to apply the mask for (int i = 0; i < height; i++) { tmpImage.getRGB(0, i, width, 1, srcBand, 0, width); smaskImage.getRGB(0, i, width, 1, sMaskBand, 0, width); // apply the soft mask blending for (int j = 0; j < width; j++) { sMaskBand[j] = ((sMaskBand[j] & 0xff) << 24) | (srcBand[j] & ~0xff000000); } argbImage.setRGB(0, i, width, 1, sMaskBand, 0, width); } tmpImage.flush(); tmpImage = argbImage; } return tmpImage; }
6f495cb6-111c-4443-bfe9-b63802e5bc7b
public java.lang.String getCustomObject4IntegrationId() { return this.customObject4IntegrationId; }
3df52c84-b851-49a0-b0a6-1124017a4b32
public void setInvtPeriodExternalSystemId(crmondemand.xml.customobject3.query.QueryType invtPeriodExternalSystemId) { this.invtPeriodExternalSystemId = invtPeriodExternalSystemId; }
b1152f4a-dff6-4f7b-8298-ec142141bc77
public void setCustomNumber17(crmondemand.xml.customobject6.query.QueryType customNumber17) { this.customNumber17 = customNumber17; }
ce2aeb40-56cd-469c-9d6f-3ebbe9ff7cb3
public GodswordListener(Skeptermod plugin) { plugin.getServer().getPluginManager().registerEvents(this, plugin); }