id
stringlengths 36
36
| text
stringlengths 1
1.25M
|
---|---|
67f33f9b-92af-4913-a359-749f570b20af | public void setCustomDate16(java.util.Calendar customDate16) {
this.customDate16 = customDate16;
} |
9ba0e291-af6f-475c-82a1-603a16868abb | * @param axis Axis over which to sort
* @return The indices that would sort the array.
*/
public static PyMultiarray argSort(final PyObject o, final int axis) {
// We depend on 'a' being 'vanilla' below.
// There's a probable extra copy here though.
final PyMultiarray a = PyMultiarray.array(PyMultiarray.swapAxes(
PyMultiarray.asarray(o),
axis,
-1));
if (a._typecode == 'F' || a._typecode == 'D' || a._typecode == 'O') { throw Py
.ValueError("unsortable array type"); }
// 'data' holds the argsorted indices.
final int stride = a.dimensions[a.dimensions.length - 1];
final int size = Array.getLength(a.data);
final int data[] = new int[size];
// Create an array of Numbers tagged with indices
class IndexedArray {
Number item;
int index;
}
final IndexedArray ia[] = new IndexedArray[stride];
for (int j = 0; j < stride; j++) {
ia[j] = new IndexedArray();
}
// Create a comparator that sorts an IndexArray
final Comparator<IndexedArray> comp = new Comparator<IndexedArray>() {
public int compare(final IndexedArray o1, final IndexedArray o2) {
if (o1.item.equals(o2.item)) {
return 0;
}
final double d1 = o1.item.doubleValue();
final double d2 = o2.item.doubleValue();
if (d1 > d2) {
return 1;
}
return -1;
}
};
// Loop over all indices except the last.
for (int i = 0; i < size; i += stride) {
for (int j = 0; j < stride; j++) {
ia[j].item = (Number) Array.get(a.data, i + j);
ia[j].index = j;
}
// sort 'ia'
java.util.Arrays.sort(ia, comp);
// Load 'a' with the indices from 'ia' and change its type.
for (int j = 0; j < stride; j++) {
data[i + j] = ia[j].index;
}
}
a._typecode = 'i';
a.data = data;
return PyMultiarray.swapAxes(a, axis, -1);
} |
b6b65d08-5b0f-47ad-bf81-d989b2b0163e | public String toString(){
StringBuilder rtn = new StringBuilder();
for(int i = size()-1; i >= 0; i--)
rtn.append(get(i));
return rtn.toString();
} |
459c10a2-305d-4b17-b993-3a70fbdb7e54 | public crmondemand.xml.customobject6.query.QueryType getSampleLotId() {
return this.sampleLotId;
} |
ac48b331-2de6-410e-bb53-b0424a759266 | protected AppletStub getAppletStub() {
return appletStub;
} |
f4171e34-9e6a-45ca-a07e-94de841e5512 | public crmondemand.xml.contact.query.QueryType getCustomDate32() {
return this.customDate32;
} |
0f6e20d8-f7fd-409f-9315-1ad530b5f7d7 | public void setCustomNumber27(crmondemand.xml.contact.query.QueryType customNumber27) {
this.customNumber27 = customNumber27;
} |
b4833e39-f49d-41f0-930b-59f09df0894e | public boolean canSetBillRate() {
return this.flexibleBilling;
} |
37b47e58-e066-4f2b-b172-4c29989f8821 | public void setCustomPickList94(java.lang.String customPickList94) {
this.customPickList94 = customPickList94;
} |
0b77c4b4-c62c-42ae-b773-91f0215ad79b | public Page(final String aURL, final String aContent) {
mURL = aURL;
mContent = aContent;
} |
3a3066da-25ff-44e2-94d4-0cbae7c6af04 | public void setCustomText46(java.lang.String customText46) {
this.customText46 = customText46;
} |
47a0eccc-0d08-4f69-ba91-4dd3e097df97 | public void setRawScrollPane(JScrollPane rawScrollPane) {
this.rawScrollPane = rawScrollPane;
} |
39fd767c-f9cd-4370-87cd-15af29e2b09b | public Builder clearPublicDependency() {
publicDependency_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
} |
ffa9a8ab-5307-48bb-a140-7167eb629af2 | public void increOwnershipSize(Author author) {
Iterator<Author> itr = ownerships.keySet().iterator();
Author existAuthor;
while(itr.hasNext()) {
existAuthor = (Author) itr.next();
if(existAuthor.getEmailAddr().equals(author.getEmailAddr())) {
ownerships.put(existAuthor, ownerships.get(existAuthor) + 1);
return;
}
}
adjustOwnership(author, 1);
} |
a18fa2f4-a644-4b53-95ec-3b195708984a | public void setOpportunityModifiedDateExt(crmondemand.xml.contact.query.QueryType opportunityModifiedDateExt) {
this.opportunityModifiedDateExt = opportunityModifiedDateExt;
} |
2c775a92-6c01-4b93-af42-464cdd053208 | public void setAccreditationName(crmondemand.xml.customobject3.query.QueryType accreditationName) {
this.accreditationName = accreditationName;
} |
50231dc4-886a-4b47-a2c8-4a8870a79e2d | public crmondemand.xml.opportunity.query.QueryType getCustomDate43() {
return this.customDate43;
} |
0f80e202-89ab-410a-881c-2022eb3fd06a | public List<String> validate() {
List<String> errorMessages = new ArrayList<String>();
if (hostNameOrIpAddress.length() == 0) {
errorMessages.add(DefaultFactory.getFactory().getMessages().getInvalidHostMessage());
}
if (port <= 0) {
errorMessages.add(DefaultFactory.getFactory().getMessages().getInvalidPortMessage());
}
return errorMessages;
} |
9ad439f1-ff56-4f5d-a8ed-80fb4663787d | public crmondemand.xml.contact.query.QueryType getCustomText32() {
return this.customText32;
} |
e6aa3470-7068-4328-99c4-57bc4311e656 | public void logicActivity() {
} |
0ce27a92-e401-4482-b23f-c0f3723f57bb | public java.math.BigDecimal getCustomNumber32() {
return this.customNumber32;
} |
549399a0-7600-4f71-9b4e-e6ac24eb6a54 | public void setCustomText77(crmondemand.xml.opportunity.query.QueryType customText77) {
this.customText77 = customText77;
} |
eb70e82a-0ca4-46a1-9737-778397a9d1f7 | public void setCustomPickList90(crmondemand.xml.customobject6.query.QueryType customPickList90) {
this.customPickList90 = customPickList90;
} |
216ccdef-e544-45f0-aa24-2f2762b85e7b | public TerminalNode Identifier() { return getToken(Java7Parser.Identifier, 0); } |
e754267f-08e7-455d-970b-1e52043b26f9 | public double getBuyPrice() {
return buyPrice;
} |
7bf68ec0-147c-4174-aa2b-5262f3084992 | public void setCustomCurrency3(java.math.BigDecimal customCurrency3) {
this.customCurrency3 = customCurrency3;
} |
051d41d9-0262-4882-a499-068ef1b16ff9 | @Override
public void keyReleased(KeyEvent arg0) {
} |
330e6f8c-26d8-425c-9967-a1bb7841c249 | public java.math.BigDecimal getCustomCurrency6() {
return this.customCurrency6;
} |
7188b2c8-a166-4f43-beac-aa43a6fefb1d | public void setCustomObject11Name(crmondemand.xml.contact.query.QueryType customObject11Name) {
this.customObject11Name = customObject11Name;
} |
4548a4d7-d00c-4c66-ab78-f522f81f51b6 | public crmondemand.xml.customobject6.query.QueryType getCustomObject10Name() {
return this.customObject10Name;
} |
cfc65530-69c4-4b25-9c93-dc2753fee3ec | public crmondemand.xml.contact.query.QueryType getCustomText45() {
return this.customText45;
} |
8d55892a-dcaa-4a60-9435-cc95a326827d | public crmondemand.xml.customobject6.query.QueryType getCustomText81() {
return this.customText81;
} |
355cd4a6-c710-4aba-9e27-ad3a1dfe0063 | public crmondemand.xml.contact.query.QueryType getCustomPickList50() {
return this.customPickList50;
} |
3b00eb37-4d3a-46e6-8890-1479568c2adc | public crmondemand.xml.customobject6.query.QueryType getCustomObject7Name() {
return this.customObject7Name;
} |
4ae8bbf0-6bf7-4603-af70-a71e02d9bef5 | opcode xxcb_51 = new opcode() { public void handler(){ xxcb_56.handler(); }} |
01d58cd9-6506-490f-9431-850f30e595af | public void setCustomInteger24(crmondemand.xml.opportunity.query.QueryType customInteger24) {
this.customInteger24 = customInteger24;
} |
41b06941-4ac0-428d-bc3f-94cd48c8b21f | public void setCustomInteger24(java.lang.Integer customInteger24) {
this.customInteger24 = customInteger24;
} |
824f845b-be1a-4200-a7e7-8039dfae384d | public void setCustomDate1(crmondemand.xml.customobject3.query.QueryType customDate1) {
this.customDate1 = customDate1;
} |
2e06372a-cfcb-44bb-8c5b-2fd99a644096 | @Override
public void windowActivated(WindowEvent e) {
} |
c425e85a-1ba7-434d-a1e0-39643c0a0049 | public void setCustomInteger24(java.lang.Integer customInteger24) {
this.customInteger24 = customInteger24;
} |
b637bfd4-5c2e-4037-811b-dead6fb4aeaf | @Override
protected void doReceive() {
doSend();
} |
e048d6bb-670a-4b1a-94bc-098ae4cc7026 | public Polynomial clearDegree( BigInteger k ) {
Set< BigInteger > dgrs = createDegreesCollection();
dgrs.addAll( this.degrees );
dgrs.remove( k );
return new Polynomial( dgrs );
} |
62a16015-34bd-4b04-b187-012581fd3573 | public crmondemand.xml.opportunity.query.QueryType getCustomDate26() {
return this.customDate26;
} |
8fceb4e1-c52c-48c5-a7f8-de29007075ad | public void setSampleLotStartDate(java.util.Calendar sampleLotStartDate) {
this.sampleLotStartDate = sampleLotStartDate;
} |
707636f2-c9d4-4143-be4f-3aa5367db5ef | public java.math.BigDecimal getCustomCurrency173() {
return this.customCurrency173;
} |
2c1c6c1c-eb45-4e10-bd41-41bcc599e93e | public void setCustomDate31(crmondemand.xml.contact.query.QueryType customDate31) {
this.customDate31 = customDate31;
} |
b0cb901c-4c47-4573-aaa6-84faf486d557 | public void setCustomNumber26(crmondemand.xml.contact.query.QueryType customNumber26) {
this.customNumber26 = customNumber26;
} |
6979f803-58d5-49e7-a951-8e4ec3268ef9 | public void setCustomPickList74(crmondemand.xml.contact.query.QueryType customPickList74) {
this.customPickList74 = customPickList74;
} |
42ed2510-2e44-4e97-aa64-ca5916b81db7 | public void handler() {
long d_dst = get_DX();
long src = m68ki_read_16(EA_DI());
long dst = d_dst;
long res = MASK_OUT_ABOVE_16(src + dst);
set_DX(MASK_OUT_BELOW_16(d_dst) | res);
m68k_cpu.n_flag = GET_MSB_16(res);
m68k_cpu.not_z_flag = res;
m68k_cpu.v_flag = VFLAG_ADD_16(src, dst, res);
m68k_cpu.x_flag = CFLAG_ADD_16(src, dst, res);
m68k_cpu.c_flag = CFLAG_ADD_16(src, dst, res);
USE_CLKS(4 + 8);
if (m68klog != null) {
fprintf(m68klog, "add_er_di_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);
}
} |
d2ccf190-cb7f-4830-b14a-488e55ad33fc | public crmondemand.xml.contact.query.QueryType getCustomNumber8() {
return this.customNumber8;
} |
a5d54429-c02b-4f58-aad6-06e288f0d829 | public java.lang.String getCustomText48() {
return this.customText48;
} |
757da4f9-ab47-44bd-a444-ea4c538e91f0 | public java.lang.Integer getCustomInteger25() {
return this.customInteger25;
} |
5877a7ff-355f-4e0c-aa5a-8fc9cdad4d28 | public void setCustomText2(java.lang.String customText2) {
this.customText2 = customText2;
} |
db5e624a-e452-4cc3-bcf9-ddbba3b31262 | public void moverAdelante() throws InterruptedException{
if(this.equipo.emisferioDeOrigen() == "Norte"){
this.moverAdelanteDesdeNorte();
}
if(this.equipo.emisferioDeOrigen() == "Sur"){
this.moverAdelanteDesdeSur();
}
} |
9f314a91-afda-4607-b1b3-17cdbd2cff82 | public crmondemand.xml.customobject3.query.QueryType getCustomBoolean26() {
return this.customBoolean26;
} |
b51855c8-673e-4f3e-a73c-7c4430caf959 | public java.math.BigDecimal getCustomNumber58() {
return this.customNumber58;
} |
70613c5d-3294-4f70-9002-b9cb264441c0 | public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
} |
bc1462fc-d9d6-475c-a0b5-5f651e0a1299 | public void test_withOffsetSameLocal_noChange() {
OffsetTime base = OffsetTime.of(11, 30, 59, OFFSET_PONE);
OffsetTime test = base.withOffsetSameLocal(OFFSET_PONE);
assertEquals(test, base);
}
@Test(expectedExceptions = NullPointerException.class, groups = { "tck" } |
7b7ef7cd-44fb-45db-8179-52c5ef9792a0 | public void setExchangeDate(crmondemand.xml.customobject6.query.QueryType exchangeDate) {
this.exchangeDate = exchangeDate;
} |
dcca2b1f-e6aa-43ef-92fe-21b07befa78f | public int getNewstate() {
return newstate;
} |
46384b26-895f-4eed-aa46-4d9488c9cc01 | public crmondemand.xml.customobject3.query.QueryType getCustomNumber4() {
return this.customNumber4;
} |
bfc52e2b-03ed-4fcd-b806-5eb680875894 | public java.util.Calendar getSampleLotExpirationDate() {
return this.sampleLotExpirationDate;
} |
3a6d4ccb-b81b-41d6-b39f-2ceff60d96ac | public void removeItem(int id, int quantity) {
MapleInventoryManipulator.removeById(client, GameConstants.getInventoryType(id), id, -quantity, true, false);
client.getSession().write(InfoPacket.getShowItemGain(id, (short) quantity, true));
} |
55afef06-c039-49fa-a686-dab0b94b09eb | public void setCurrencyCode(crmondemand.xml.contact.query.QueryType currencyCode) {
this.currencyCode = currencyCode;
} |
494ec951-fe49-44da-8902-09ac4d80e6eb | public void setFundRequestId(java.lang.String fundRequestId) {
this.fundRequestId = fundRequestId;
} |
beaff3c3-9ec6-4c2a-97ad-38285fdbfc7b | public int compareTo(getCounters_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
getCounters_args typedOther = (getCounters_args) other;
return 0;
} |
ccdee414-e61b-456e-ab95-80f81f03784c | public void setCustomCurrency133(crmondemand.xml.customobject6.query.QueryType customCurrency133) {
this.customCurrency133 = customCurrency133;
} |
9288d3be-59d4-4a6b-8730-0ec8e6a75b2c | public java.math.BigDecimal getCustomNumber19() {
return this.customNumber19;
} |
f26c501c-ce75-4768-9f44-4d9cb9ba8086 | public crmondemand.xml.opportunity.query.QueryType getDealerExternalSystemId() {
return this.dealerExternalSystemId;
} |
7aa41559-0570-43ec-b063-332cd9365915 | public void setCustomCurrency16(crmondemand.xml.contact.query.QueryType customCurrency16) {
this.customCurrency16 = customCurrency16;
} |
dd9b6ad9-109e-45fa-9d2c-55971cd91424 | public void setCreatedByAlias(java.lang.String createdByAlias) {
this.createdByAlias = createdByAlias;
} |
cdea4776-20de-484f-a75f-06293064dbb5 | public static void setRuleCombination(Keyword k) {
Logic.$RULE_COMBINATION$ = k;
} |
835c4a5d-0550-4d25-b814-0f2f1e98acad | public void setAccountPriority(crmondemand.xml.opportunity.query.QueryType accountPriority) {
this.accountPriority = accountPriority;
} |
612e8259-3391-4c7f-8e5a-5d608654af92 | public java.lang.String getCustomPickList22() {
return this.customPickList22;
} |
26f2326b-8e17-4cbf-a050-4c9744cd6ee8 | public void setCustomPickList42(crmondemand.xml.contact.query.QueryType customPickList42) {
this.customPickList42 = customPickList42;
} |
a350b674-52c5-4124-b567-54d513ae1a1e | public crmondemand.xml.customobject3.query.QueryType getCustomBoolean34() {
return this.customBoolean34;
} |
423c963a-6a2c-44dc-8dd7-7515a47b8592 | public crmondemand.xml.customobject6.query.QueryType getCustomObject2Type() {
return this.customObject2Type;
} |
39f5ef0d-8103-4025-992c-283a9c181af9 | public void setCustomText79(java.lang.String customText79) {
this.customText79 = customText79;
} |
574dd017-42fd-4834-a100-93d9ec103f4a | @Override
public String getDescription() {
return "Armor: " + armor + "\nLevel: " + lvlReq + "\nValue: " + value + "\n" + desc;
} |
b4fd931a-b7e8-4523-8ca2-8670d30a3635 | public crmondemand.xml.contact.query.QueryType getCustomPickList25() {
return this.customPickList25;
} |
193b9f1f-a13d-4ea1-aaf0-04279a83c6cb | private boolean jj_3R_176() {
if (jj_3R_48()) return true;
return false;
} |
a85a4b11-7ec8-4370-a838-3c55508e0ce7 | public crmondemand.xml.customobject6.query.QueryType getCustomPickList26() {
return this.customPickList26;
} |
733029ba-1234-4e31-96ff-6cd884c93ad6 | public crmondemand.xml.customobject6.query.QueryType getCustomObject15IntegrationId() {
return this.customObject15IntegrationId;
} |
198c0483-1701-4bb5-a33b-86a2204b17e6 | public void setCustomText44(crmondemand.xml.contact.query.QueryType customText44) {
this.customText44 = customText44;
} |
becc468c-de08-45ac-8a01-165d8272d6dc | public java.math.BigDecimal getCustomNumber1() {
return this.customNumber1;
} |
286df545-65f6-46b5-8863-d56f5f6eccee | public void setCustomObject7IntegrationId(java.lang.String customObject7IntegrationId) {
this.customObject7IntegrationId = customObject7IntegrationId;
} |
29fafbe9-0ff7-4913-b21e-dc7bc48511eb | private static int getDayOfYear(int yh, int mh, int dh){
int counter = dh;
for (int i = 1; i < mh; i++) {
counter += getMonthLength(yh, i);
}
return counter;
} |
499b4e76-cd85-4641-af94-b151b193680e | @Override
public boolean postChangeAllFactions(MOB mob, MOB victim, int amount, boolean quiet)
{
if((mob==null))
return false;
final CMMsg msg=CMClass.getMsg(mob,victim,null,CMMsg.MASK_ALWAYS|CMMsg.TYP_FACTIONCHANGE,null,CMMsg.NO_EFFECT,null,CMMsg.NO_EFFECT,""+quiet);
msg.setValue(amount);
if(mob.location()!=null)
{
if(mob.location().okMessage(mob,msg))
mob.location().send(mob,msg);
else
return false;
}
return true;
} |
0fd112e1-7641-414b-8575-b134b333ba49 | public java.lang.String getCustomObject2IntegrationId() {
return this.customObject2IntegrationId;
} |
26fdd6a1-9684-4595-bc15-5a7cea1a730c | public java.lang.String getCustomText6() {
return this.customText6;
} |
52c9b5cb-9496-4c40-aef9-f6db08d87fd6 | public java.lang.String getCustomText28() {
return this.customText28;
} |
1fe98ea8-7694-4259-af56-586d2559f77c | public crmondemand.xml.customobject6.query.QueryType getCustomCurrency158() {
return this.customCurrency158;
} |
097e3570-cf6b-45fd-8a71-27461a1fff47 | public void setCustomCurrency4(crmondemand.xml.contact.query.QueryType customCurrency4) {
this.customCurrency4 = customCurrency4;
} |
27cb8f80-d41d-4bcc-92a7-89190443538d | public static void loopLowHP()
{
stopMusic();
lowHP.loop();
b1.loopLowHealthTone=true;
} |
89fa3236-4ffd-4719-b4b7-6a000c403288 | public boolean hasHaltDistance() {
return ((bitField1_ & 0x00000080) == 0x00000080);
} |
d2bf8f61-feae-45b1-bf44-873c04a53b77 | @Override
public void brengTerug(Product product, boolean beschadigd) {
if(beschadigd)
product.setStaat(new BeschadigdState());
else
product.setStaat(new UitleenbaarState());
} |
c3ccd96a-b009-4367-9873-a93eeb346fbe | public crmondemand.xml.contact.query.QueryType getCustomPickList86() {
return this.customPickList86;
} |
a03a0054-67cd-47cd-a152-db67b659dd07 | public java.lang.String getCustomText29() {
return this.customText29;
} |
5cd895bb-2fea-45e7-ad7d-f8d526bf2708 | public String accountName()
{
return accountName; // return account name
} |
d530cce2-0fd7-4ede-a6c2-34bbf91862da | public crmondemand.xml.contact.query.QueryType getCustomPhone8() {
return this.customPhone8;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.