id
stringlengths 36
36
| text
stringlengths 1
1.25M
|
---|---|
a6248fc9-25d7-43e3-a8cd-7dc0c397d3d8
|
public VariableDeclaratorsContext variableDeclarators() {
return getRuleContext(VariableDeclaratorsContext.class,0);
}
|
932c78db-9ddd-4007-aafa-58db913ef506
|
public void setUpdatedByExternalSystemId(java.lang.String updatedByExternalSystemId) {
this.updatedByExternalSystemId = updatedByExternalSystemId;
}
|
6212836e-d81e-4bd2-9d57-964274983bbf
|
public java.lang.String getCustomPickList89() {
return this.customPickList89;
}
|
87c78992-2b58-4af5-a55d-55adf7e2a9aa
|
public void setCustomObject11IntegrationId(crmondemand.xml.opportunity.query.QueryType customObject11IntegrationId) {
this.customObject11IntegrationId = customObject11IntegrationId;
}
|
8fb63fcf-d84d-4cd0-ab8f-e6370e24e914
|
public crmondemand.xml.contact.query.QueryType getCustomDate7() {
return this.customDate7;
}
|
985c34cc-055c-42d8-bd52-3dc92534e4e1
|
public void setCustomText8(crmondemand.xml.contact.query.QueryType customText8) {
this.customText8 = customText8;
}
|
9bcf3d6c-70e3-45c8-a31a-555e2643eb96
|
public Paint getPaint() {
return texturePaint;
}
|
209eef88-7edb-4558-97a9-e255ab11e960
|
public java.util.Calendar getCustomDate22() {
return this.customDate22;
}
|
ddfdfad3-b1b5-4320-82eb-2fd76f0ddc4a
|
public crmondemand.xml.opportunity.query.QueryType getDealerIntegrationId() {
return this.dealerIntegrationId;
}
|
be163135-a0f9-47d8-a5cd-16dd09e0d5fb
|
public void setVehicleExternalSystemId(java.lang.String vehicleExternalSystemId) {
this.vehicleExternalSystemId = vehicleExternalSystemId;
}
|
2bcdd839-e908-4dc5-9db3-b99ab952d136
|
public void info() {
String message = "----------------------------------------------------" +
"\n\n" +
"About" +
"\n\n" +
"An Ambient Intelligence Learning System developed as part of an MSc Advanced Computer Science, " +
"University of Sussex (2014)." +
"\n\n" +
"The project seeks to explore the efficiency of workplace activity, captured through qualities employees display each day in their positions as to enhance performance as a collective team.";
System.out.println(message);
// until the user has pressed ENTER
pauseApplication();
AmISystemMenu ami = new AmISystemMenu();
ami.input();
}
|
09854307-3910-4a9a-b081-b108c74a69b6
|
public void setCustomPhone15(crmondemand.xml.contact.query.QueryType customPhone15) {
this.customPhone15 = customPhone15;
}
|
88e25a66-43d1-472d-8344-ccce6850d2ef
|
public crmondemand.xml.customobject6.query.QueryType getZCustomText8() {
return this.zCustomText8;
}
|
d2709cb6-d31a-4402-a391-9cd33c6c989d
|
public void setOrderExternalSystemId(java.lang.String orderExternalSystemId) {
this.orderExternalSystemId = orderExternalSystemId;
}
|
35db8e1a-126b-4ffb-a4a6-b48b14aa65c2
|
public java.lang.String getPolicyNumber() {
return this.policyNumber;
}
|
c3a5b097-2d99-4b2f-8f83-3580a2f2df29
|
public void setCustomText39(java.lang.String customText39) {
this.customText39 = customText39;
}
|
326f106e-8478-418c-8b2b-4d891f6c6ed9
|
public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder() {
return getMessageTypeFieldBuilder().addBuilder(
com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance());
}
|
b8f10bc8-ace6-47ae-9889-1c5f4f6a6cd3
|
public void setCustomDate31(java.util.Calendar customDate31) {
this.customDate31 = customDate31;
}
|
07549cb1-73c4-4136-a7f9-515d7b7452e5
|
public crmondemand.xml.customobject3.query.QueryType getCustomDate6() {
return this.customDate6;
}
|
1cd96464-b7d3-4171-a1ef-0d811bfc2292
|
public void setCustomPickList31(java.lang.String customPickList31) {
this.customPickList31 = customPickList31;
}
|
759314b4-a6c4-4824-bfca-17b1f8c5f9ea
|
public void setContactId(java.lang.String contactId) {
this.contactId = contactId;
}
|
0fca1749-d33e-4299-a2ce-98a242c8786d
|
public static Context ccEvaluatorWrapper(Cons arguments) {
return (Stella.cc(arguments));
}
|
df5f9f76-5914-444c-9e73-f722153a3e07
|
public java.lang.String getCustomObject12Type() {
return this.customObject12Type;
}
|
4b953365-beec-44de-93ef-2ec29de995ff
|
public void setCustomCurrency12(crmondemand.xml.customobject3.query.QueryType customCurrency12) {
this.customCurrency12 = customCurrency12;
}
|
97dda673-fa1f-48b1-8b66-db11a56bd624
|
public crmondemand.xml.opportunity.query.QueryType getContactType() {
return this.contactType;
}
|
6766f6da-ffa9-407b-8af5-524a0a3de213
|
public crmondemand.xml.customobject6.query.QueryType getAccreditationName() {
return this.accreditationName;
}
|
d9f3e5f7-0ad2-4a91-821b-32a73741b8a2
|
public java.math.BigDecimal getCustomCurrency6() {
return this.customCurrency6;
}
|
7f5abf97-50ad-4c8c-b1d9-5d35d21087e2
|
public crmondemand.xml.contact.query.QueryType getContactHolderContactFullName() {
return this.contactHolderContactFullName;
}
|
84ac4206-13b6-4b2e-a030-4b4f6392985f
|
public crmondemand.xml.customobject6.query.QueryType getCustomNumber58() {
return this.customNumber58;
}
|
5393269c-f17d-4b95-8ad0-2bd80ad79d9b
|
public void setUpdatedByEMailAddr(java.lang.String updatedByEMailAddr) {
this.updatedByEMailAddr = updatedByEMailAddr;
}
|
f1b22577-2382-4da6-9cf1-a4d9816be8c6
|
public void setCustomObject11Name(java.lang.String customObject11Name) {
this.customObject11Name = customObject11Name;
}
|
da96b2d8-bd06-41d5-83d2-c9e3588b2200
|
public RectangleVisual(double width, double height) {
setDimension(width,height);
this.glMode = GL11.GL_QUADS;
}
|
dddae1e7-1c40-473e-ac0d-42804927615e
|
public java.lang.String getFinancialAccountType() {
return this.financialAccountType;
}
|
f30ec7f7-02ec-488f-a416-039eac943baa
|
public void setCustomNumber8(java.math.BigDecimal customNumber8) {
this.customNumber8 = customNumber8;
}
|
c0edbc74-18b9-4363-b832-01245fc23a7c
|
public void setCustomPickList66(java.lang.String customPickList66) {
this.customPickList66 = customPickList66;
}
|
c1a37c84-2f68-4fad-9df5-ef4c3b3d9865
|
public void setCustomPickList42(java.lang.String customPickList42) {
this.customPickList42 = customPickList42;
}
|
e0ee7c4f-87dd-421e-aba1-29665b6b4a12
|
public void setDealRegistrationId(crmondemand.xml.customobject6.query.QueryType dealRegistrationId) {
this.dealRegistrationId = dealRegistrationId;
}
|
cae9e9a9-ec10-43d4-9279-8e3bbe4e8be6
|
public java.lang.String getCustomPickList97() {
return this.customPickList97;
}
|
e8ddf73d-bc2e-44d7-88bb-8a43d1add1e0
|
public Object open() {
createContents();
shell.open();
shell.layout();
Display display = getParent().getDisplay();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
return result;
}
|
4f4b9390-d04e-423c-94b9-ca544f24a7bc
|
public java.lang.Integer getCustomInteger10() {
return this.customInteger10;
}
|
d1092228-66ea-43c2-9799-bc39e8e58e7a
|
public java.math.BigDecimal getCustomNumber0() {
return this.customNumber0;
}
|
fbc0c1d6-a87a-4ddb-864f-955d0ff104b9
|
public ActionState(Core core) {
super(core);
}
|
95a25081-1de5-4f69-a68f-290653bbe803
|
public void setCustomNumber46(java.math.BigDecimal customNumber46) {
this.customNumber46 = customNumber46;
}
|
56e98b04-1958-46b7-a460-b06f46b6f47a
|
public void setCustomText69(java.lang.String customText69) {
this.customText69 = customText69;
}
|
f669a2b5-361f-41ab-b3d2-05a06cfb90d5
|
public crmondemand.xml.opportunity.query.QueryType getCustomPhone9() {
return this.customPhone9;
}
|
06464094-826e-41a8-8c5b-b674ec5ae1cd
|
*/
public static Pointer<PyObject > _PyObject_LookupSpecial(Pointer<PyObject > PyObjectPtr1, Pointer<Byte > charPtr1, Pointer<Pointer<PyObject > > PyObjectPtrPtr1) {
return Pointer.pointerToAddress(_PyObject_LookupSpecial(Pointer.getPeer(PyObjectPtr1), Pointer.getPeer(charPtr1), Pointer.getPeer(PyObjectPtrPtr1)), PyObject.class);
}
|
2f5aa3da-b72e-43d4-9882-7b5ceb9f6252
|
public void setCustomCurrency22(crmondemand.xml.customobject3.query.QueryType customCurrency22) {
this.customCurrency22 = customCurrency22;
}
|
e7f27f42-62c8-400a-9527-9dfe0aea69a5
|
public void handler() {
BRANCH( ((NXORV()!=0) || ((m6800.cc&0x04)!=0)) );
}
|
1d530331-4273-495a-9ca1-44be0cc46387
|
public void setCustomCurrency22(crmondemand.xml.customobject6.query.QueryType customCurrency22) {
this.customCurrency22 = customCurrency22;
}
|
c4afdf99-54b0-416e-ae16-cd755a28da1d
|
public void setAttachFileName(java.lang.String attachFileName)
{
this.attachFileName = attachFileName;
}
|
8069e515-2563-4f6f-95ed-d5f04280bf04
|
public crmondemand.xml.customobject6.query.QueryType getAccreditationName() {
return this.accreditationName;
}
|
aaf4b85f-c387-4c1d-9c60-ffa06f536e95
|
public java.math.BigDecimal getCustomNumber61() {
return this.customNumber61;
}
|
f68db8c0-d2c0-453f-855d-39ca2116ec16
|
public void setOpportunityModifiedDateExt(java.util.Calendar opportunityModifiedDateExt) {
this.opportunityModifiedDateExt = opportunityModifiedDateExt;
}
|
e95673dd-c28b-4215-a6be-9c9ecdb8f84a
|
public void render(){
GL11.glPushMatrix();
GL11.glColor3f(255,255,255);
GL11.glBegin(GL11.GL_TRIANGLES);
for(int x = 0;x<triangles.size();x++){
GL11.glVertex3f((float)(vertexes.get((int)triangles.get(x).x-1).x * 0.25), (float)(vertexes.get((int)triangles.get(x).x-1).y * 0.25), (float)(vertexes.get((int)triangles.get(x).x-1).z * 0.25));
GL11.glVertex3f((float)(vertexes.get((int)triangles.get(x).y-1).x * 0.25), (float)(vertexes.get((int)triangles.get(x).y-1).y * 0.25), (float)(vertexes.get((int)triangles.get(x).y-1).z * 0.25));
GL11.glVertex3f((float)(vertexes.get((int)triangles.get(x).z-1).x * 0.25), (float)(vertexes.get((int)triangles.get(x).z-1).y * 0.25), (float)(vertexes.get((int)triangles.get(x).z-1).z * 0.25));
}
GL11.glEnd();
GL11.glPopMatrix();
}
|
3d15b44e-7101-4643-b28a-07598ab0a25e
|
public void setFundRequestId(crmondemand.xml.customobject3.query.QueryType fundRequestId) {
this.fundRequestId = fundRequestId;
}
|
09ef9c50-90dc-4877-ab20-d650b7dc5631
|
@Override
public void focusGained(FocusEvent arg0) {
int index = skillList.getSelectedIndex();
if (index != -1) {
Skill skill = skillList.getModel().getElementAt(index);
loadSkill(skill);
}
}
|
017f921c-a032-4f2a-b394-4a2ff2b68037
|
public crmondemand.xml.opportunity.query.QueryType getCustomText75() {
return this.customText75;
}
|
819f1ab9-c345-4fa5-89f7-102269bf6e8f
|
public java.lang.String getCustomPickList98() {
return this.customPickList98;
}
|
55925c8d-364a-470d-ba5b-67d423ea8bf6
|
public final void setValue(final double VALUE) {
if (isInteractive()) return;
if (null == value) {
_oldValue = _value;
_value = clamp(_minValue, _maxValue, VALUE);
} else {
_oldValue = value.get();
value.set(clamp(getMinValue(), getMaxValue(), VALUE));
}
}
|
3104cea4-5b53-4dbe-bdb7-40faf395ec46
|
public void setIndexedDate0(crmondemand.xml.customobject6.query.QueryType indexedDate0) {
this.indexedDate0 = indexedDate0;
}
|
e506a50b-98e9-4d24-9c02-36a1ac036fca
|
public abstract void plan();
|
4572c6bd-9146-4b73-9dda-3e87edd09f93
|
public java.lang.Boolean getCustomBoolean18() {
return this.customBoolean18;
}
|
a1081a79-785d-4c54-8a97-7d880f8874dc
|
public void setCustomDate4(crmondemand.xml.customobject6.query.QueryType customDate4) {
this.customDate4 = customDate4;
}
|
01165b93-3e6e-4bc8-937d-2e4b7c5f10ba
|
private void jBXMeusVencimentos1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBXMeusVencimentos1ActionPerformed
txtDataSO.setForeground(Color.orange);
}
|
ab6f2ac3-63a4-4ba7-8d11-2bf6deedb422
|
public java.lang.String getCustomPickList9() {
return this.customPickList9;
}
|
c429f648-7f6c-41d6-b215-204af51ccfa8
|
public java.lang.String getSubType() {
return this.subType;
}
|
6209acc9-aafd-4271-b984-be70784b956b
|
public void setCustomBoolean33(java.lang.Boolean customBoolean33) {
this.customBoolean33 = customBoolean33;
}
|
e7fed696-33fd-4a20-90f8-389deb9d73b7
|
private void initFields() {
}
|
192ef34b-bf8b-4295-b728-6b40f3e1d21e
|
public void setCustomPhone1(java.lang.String customPhone1) {
this.customPhone1 = customPhone1;
}
|
23df994e-5ecd-4434-9f49-19f94d0ed7dd
|
public void setCustomPickList6(java.lang.String customPickList6) {
this.customPickList6 = customPickList6;
}
|
5482a670-1314-49d7-a9a9-f3cf4014e4c7
|
public void setHouseholdExternalSystemId(java.lang.String householdExternalSystemId) {
this.householdExternalSystemId = householdExternalSystemId;
}
|
3b2529cd-533b-4265-9582-b6382e3300d3
|
public void setCustomDate5(crmondemand.xml.contact.query.QueryType customDate5) {
this.customDate5 = customDate5;
}
|
7717faba-c271-4160-bd1f-eae3a998c2a3
|
public crmondemand.xml.contact.query.QueryType getPolicyFaceAmount() {
return this.policyFaceAmount;
}
|
cc91f36e-39ab-4525-bdbc-45c5d0b3cb76
|
public void setCustomText63(java.lang.String customText63) {
this.customText63 = customText63;
}
|
6572ba72-07be-442f-a28c-e7c1495e8388
|
public void setCustomBoolean15(crmondemand.xml.contact.query.QueryType customBoolean15) {
this.customBoolean15 = customBoolean15;
}
|
f2610c37-bf57-4a91-9c1f-1d014fb1c8af
|
public void setCustomPickList12(crmondemand.xml.customobject3.query.QueryType customPickList12) {
this.customPickList12 = customPickList12;
}
|
85deb177-3372-4e02-8e4c-49fead9f4daa
|
public void setCustomNumber36(crmondemand.xml.customobject3.query.QueryType customNumber36) {
this.customNumber36 = customNumber36;
}
|
410edb4c-4fe6-4ed4-b9d8-cada70c75dc6
|
public void setCustomObject15ExternalSystemId(java.lang.String customObject15ExternalSystemId) {
this.customObject15ExternalSystemId = customObject15ExternalSystemId;
}
|
8f9b6c27-7dba-4017-8347-f672287b820b
|
public java.lang.String getCustomPickList61() {
return this.customPickList61;
}
|
2ae1e701-a059-4423-ab48-864c2ed3c297
|
public java.lang.String getCustomPickList39() {
return this.customPickList39;
}
|
f0af36e4-0ac9-447d-b3ba-eb2340fb00f1
|
private static void queryListGCal(List<GregorianCalendar> list) {
long total = 0;
long start = System.nanoTime();
for (GregorianCalendar gcal : list) {
total += gcal.get(Calendar.YEAR);
total += gcal.get(Calendar.MONTH + 1);
total += gcal.get(Calendar.DAY_OF_MONTH);
total += gcal.get(Calendar.HOUR_OF_DAY);
total += gcal.get(Calendar.MINUTE);
total += gcal.get(Calendar.SECOND);
total += gcal.get(Calendar.SECOND);
}
long end = System.nanoTime();
System.out.println("GCalendar: Query: " + NF.format(end - start) + " ns" + " " + total);
result("GregCal-Q", end - start);
}
|
e73ac751-9ec0-499e-a6c0-8e5528646b55
|
public crmondemand.xml.opportunity.query.QueryType getCustomPickList37() {
return this.customPickList37;
}
|
3cf583b3-fab3-4528-8298-57765db728b6
|
public java.lang.String getCustomText70() {
return this.customText70;
}
|
3d28773d-db20-414b-be39-2b081cd7a336
|
public void setCustomText55(crmondemand.xml.customobject6.query.QueryType customText55) {
this.customText55 = customText55;
}
|
c8352bb5-e2d0-4def-92af-6b97da82a42f
|
public int getOrderTimer() {
return orderTimer_;
}
|
bbd65a9a-112e-4a73-86f3-ce734521776c
|
public java.lang.String getCustomPickList63() {
return this.customPickList63;
}
|
1e87af93-3c0e-48fb-ac80-e8dc0f693db3
|
public java.util.Calendar getCustomDate54() {
return this.customDate54;
}
|
d6e0c5bd-b070-4d16-a1f7-472077f155e1
|
public void setCustomObject3ExternalSystemId(java.lang.String customObject3ExternalSystemId) {
this.customObject3ExternalSystemId = customObject3ExternalSystemId;
}
|
25f0f3a6-8319-4b16-90e8-a2220b07d4c9
|
public Python27Library _PySys_TraceFunc(Pointer<PyObject > _PySys_TraceFunc) {
try {
{
BridJ.getNativeLibrary("python27").getSymbolPointer("_PySys_TraceFunc").as(DefaultParameterizedType.paramType(Pointer.class, PyObject.class)).set(_PySys_TraceFunc);
return this;
}
}catch (Throwable $ex$) {
throw new RuntimeException($ex$);
}
}
|
9be77ce9-19af-441a-a314-159075b4d8bc
|
@Override
public String displayText(MOB viewerMob)
{
if ((displayText.length() == 0)
|| (!name(viewerMob).equals(Name()))
|| (!titledName().equals(Name()))
|| (CMLib.flags().isSleeping(this))
|| (CMLib.flags().isSitting(this))
|| (riding() != null)
|| ((amFollowing() != null) && (amFollowing().fetchFollowerOrder(this) > 0))
|| ((this instanceof Rideable)
&& (((Rideable) this).numRiders() > 0)
&& CMLib.flags().isWithSeenContents(this))
|| (isInCombat()))
{
StringBuffer sendBack = null;
if (!name(viewerMob).equals(Name()))
sendBack = new StringBuffer(name(viewerMob));
else
sendBack = new StringBuffer(titledName());
sendBack.append(" ");
sendBack.append(L(CMLib.flags().getPresentDispositionVerb(this, CMFlagLibrary.ComingOrGoing.IS)+" here"));
if (riding() != null)
{
sendBack.append(" " + riding().stateString(this) + " ");
if (riding() == viewerMob)
sendBack.append(L("YOU"));
else
if (!CMLib.flags().canBeSeenBy(riding(), viewerMob))
{
if (riding() instanceof Item)
sendBack.append(L("something"));
else
sendBack.append(L("someone"));
}
else
sendBack.append(riding().name());
}
else
if ((this instanceof Rideable)
&& (((Rideable) this).numRiders() > 0)
&& (((Rideable) this).stateStringSubject(((Rideable) this).fetchRider(0)).length() > 0))
{
final Rideable me = (Rideable) this.me;
final String first = me.stateStringSubject(me.fetchRider(0));
sendBack.append(" " + first + " ");
for (int r = 0; r < me.numRiders(); r++)
{
final Rider rider = me.fetchRider(r);
if ((rider != null) && (me.stateStringSubject(rider).equals(first)))
{
if (r > 0)
{
sendBack.append(", ");
if (r == me.numRiders() - 1)
sendBack.append("and ");
}
if (rider == viewerMob)
sendBack.append("you");
else
if (!CMLib.flags().canBeSeenBy(riding(), viewerMob))
{
if (riding() instanceof Item)
sendBack.append(L("something"));
else
sendBack.append(L("someone"));
}
else
sendBack.append(rider.name());
}
}
}
if ((isInCombat()) && (CMLib.flags().canMove(this)) && (!CMLib.flags().isSleeping(this)))
{
if (getVictim() == viewerMob)
sendBack.append(L(" fighting YOU"));
else
if (!CMLib.flags().canBeSeenBy(getVictim(), viewerMob))
sendBack.append(L(" fighting someone"));
else
sendBack.append(L(" fighting @x1",getVictim().name()));
}
if ((amFollowing() != null) && (amFollowing().fetchFollowerOrder(this) > 0))
{
final List<MOB> whoseAhead = CMLib.combat().getFormationFollowed(this);
if ((whoseAhead != null) && (!whoseAhead.isEmpty()))
{
sendBack.append(L(", behind "));
for (int v = 0; v < whoseAhead.size(); v++)
{
final MOB ahead = whoseAhead.get(v);
if (v > 0)
{
sendBack.append(", ");
if (v == whoseAhead.size() - 1)
sendBack.append(L("and "));
}
if (ahead == viewerMob)
sendBack.append(L("you"));
else
if (!CMLib.flags().canBeSeenBy(ahead, viewerMob))
sendBack.append(L("someone"));
else
sendBack.append(ahead.name());
}
}
}
sendBack.append(".");
return sendBack.toString();
}
return displayText;
}
|
eff49d82-f02e-4f3d-9017-1dea88c6ec89
|
public void setCustomPickList46(java.lang.String customPickList46) {
this.customPickList46 = customPickList46;
}
|
85d1d9c9-80da-4c3e-974c-a824e3e70568
|
public void setProdutosLivraria(HashSet<Produto> produtosLivraria) {
this.produtosLivraria = produtosLivraria;
}
|
e6fab2d7-843d-49d8-90e2-a765a9f9e7e2
|
public void setCustomPhone9(java.lang.String customPhone9) {
this.customPhone9 = customPhone9;
}
|
d64df87a-62b1-408b-b862-dd3346401249
|
public final boolean isInitialized() {
if (!hasType()) {
return false;
}
return true;
}
|
35b9cb91-77e9-4a6f-9d62-6595f13ce774
|
public java.lang.String getOpportunityId() {
return this.opportunityId;
}
|
cc508ccb-ac0c-4fbe-b776-34f1a000c38c
|
public java.util.Calendar getCreatedDate() {
return this.createdDate;
}
|
bcb2b7ee-28b4-4ab5-b768-9e011e604135
|
* @param maskImage image mask to be applied to base image.
*/
private static BufferedImage applyExplicitMask(BufferedImage baseImage, BufferedImage maskImage) {
// check to see if we need to scale the mask to match the size of the
// base image.
int baseWidth = baseImage.getWidth();
int baseHeight = baseImage.getHeight();
final int maskWidth = maskImage.getWidth();
final int maskHeight = maskImage.getHeight();
// we're going for quality over memory foot print here, for most
// masks its better to scale the base image up to the mask size.
if (baseWidth != maskWidth || baseHeight != maskHeight) {
// calculate scale factors.
double scaleX = maskWidth / (double) baseWidth;
double scaleY = maskHeight / (double) baseHeight;
// 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 sbim = op.filter(baseImage, null);
baseImage.flush();
baseImage = sbim;
}
// apply the mask by simply painting white to the base image where
// the mask specified no colour.
// todo: need to apply alpha instead of white, but requires a new CM.
for (int y = 0; y < maskHeight; y++) {
for (int x = 0; x < maskWidth; x++) {
// apply masking/smaksing logic.
int maskPixel = maskImage.getRGB(x, y);
if (maskPixel == -1 || maskPixel == 0xffffff || maskPixel == 0) {
baseImage.setRGB(x, y, Color.WHITE.getRGB());
}
}
}
return baseImage;
}
|
4d4439a6-8403-46eb-b3dc-81de20f50c1b
|
public final void spawnReactorOnGroundBelow(final MapleReactor mob, final Point pos) {
mob.setPosition(pos); //reactors dont need FH lol
mob.setCustom(true);
spawnReactor(mob);
}
|
5446a6d8-94cd-4928-91ac-8a2390435f6b
|
public void setCustomInteger27(crmondemand.xml.customobject3.query.QueryType customInteger27) {
this.customInteger27 = customInteger27;
}
|
18f1c563-cd4a-4a44-9211-8ee9e823bd49
|
public static void main(String[] args) throws NoSuchFileException, IllegalArgumentException {
if (args.length >= 5) {
Draft.checkHash( args[0] );
Draft.checkRange(args[1], 4, 15);
Draft.checkRange(args[2], 1, 50);
Draft.checkRange(args[3], 0., 1.);
for(int j=4; j < args.length; j++)
Draft.checkPath( args[j] );
String[] files = new String[args.length - 4];
for(int j=4; j<args.length; j++)
files[j-4]=args[j];
exec(files, Integer.parseInt(args[2]), Integer.parseInt(args[1]), args[0],
Double.parseDouble(args[3]));
} else if (args.length == 0) {
String hash = GetInput.askHash("Hash function");
String[] urls = GetInput.askPathSet("Paths to the files");
int b = GetInput.askParameterInRange("Parameter b", 4, 15);
int k = GetInput.askParameterInRange("Parameter k", 1, 50);
double threshold = GetInput.askParameterInRange("Threshold", 0., 1.);
exec(urls, k, b, hash, threshold);
} else
throw new IllegalArgumentException("Wrong number of arguments (5 or more expected)");
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.