id
stringlengths 36
36
| text
stringlengths 1
1.25M
|
---|---|
dcea76a5-af75-4ca6-91e9-0da2c5a09374 | public java.lang.String getCustomPickList57() {
return this.customPickList57;
} |
42fb4255-f5f5-460e-b894-daf9a9d176ae | public void setCustomCurrency22(crmondemand.xml.contact.query.QueryType customCurrency22) {
this.customCurrency22 = customCurrency22;
} |
ae64d056-476c-4824-89e1-643e07fa33ae | public void setCustomPickList69(crmondemand.xml.contact.query.QueryType customPickList69) {
this.customPickList69 = customPickList69;
} |
cb7c8e9e-8ad7-43ad-ae58-e5715b5266a5 | public void setCustomText34(crmondemand.xml.contact.query.QueryType customText34) {
this.customText34 = customText34;
} |
f988a9fc-28b8-40a3-b11e-bb22895537cf | public crmondemand.xml.opportunity.query.QueryType getCustomNumber20() {
return this.customNumber20;
} |
0ca408b9-6386-4acc-abe8-e021abbb3ae4 | public boolean getTargetsOrganic() {
return targetsOrganic_;
} |
7bb6f082-6310-456c-b9f6-de691c1e06ac | public void setCustomPickList90(crmondemand.xml.contact.query.QueryType customPickList90) {
this.customPickList90 = customPickList90;
} |
3b94dabd-2e82-4f8a-a6b1-4d6ef1a7e834 | public crmondemand.xml.customobject6.query.QueryType getCustomPickList33() {
return this.customPickList33;
} |
d7491a7d-b836-4f7f-b4da-752274a22614 | public void setCustomBoolean11(java.lang.Boolean customBoolean11) {
this.customBoolean11 = customBoolean11;
} |
fe91993b-5814-4492-87a4-124a5202e16c | protected int getElHeight() {
return font.getHeight("y");
} |
ded99f66-77a4-4621-85d9-65f53a22e9db | public crmondemand.xml.opportunity.query.QueryType getCustomText21() {
return this.customText21;
} |
51aa5679-9f8d-4b98-a89d-ba8c086a37e7 | public java.lang.String getProductCategory() {
return this.productCategory;
} |
0777275b-bc5d-492d-9c8f-9fb67ef26555 | public void setCustomPickList142(java.lang.String customPickList142) {
this.customPickList142 = customPickList142;
} |
c95bc32f-77a5-4f6b-983a-004423e3f8c2 | opcode dd_3a = new opcode() { public void handler(){ illegal_1(); }} |
e125a5de-351e-458c-85e3-5863ebbe98ec | public crmondemand.xml.customobject3.query.QueryType getCustomPickList88() {
return this.customPickList88;
} |
3eca8ee8-ebf5-4bed-b67c-41617e51463c | public void setCustomCurrency16(crmondemand.xml.contact.query.QueryType customCurrency16) {
this.customCurrency16 = customCurrency16;
} |
3a2cf79b-6872-4970-96da-c6eef9e935fd | public java.lang.String getCustomText35() {
return this.customText35;
} |
6b944bb0-0f31-41cc-a84e-8c7f9ccebaff | public void setHouseholdSegment(java.lang.String householdSegment) {
this.householdSegment = householdSegment;
} |
0963c012-97d8-4ce6-b987-2d6abe1e9dec | public void setLeadExternalSystemId(crmondemand.xml.customobject3.query.QueryType leadExternalSystemId) {
this.leadExternalSystemId = leadExternalSystemId;
} |
db1140c1-c845-48a1-abfd-e89575f2ddaa | public void setCustomText69(crmondemand.xml.opportunity.query.QueryType customText69) {
this.customText69 = customText69;
} |
aafd733c-4485-4625-b254-e41d24539047 | public java.lang.String getServiceRequestStatus() {
return this.serviceRequestStatus;
} |
52f1c48a-51d0-4638-9464-d1d67427c527 | public java.lang.String getAccountName() {
return this.accountName;
} |
3cb40482-e021-4eae-88d9-25f9dd8dd333 | public void setCustomObject2Type(java.lang.String customObject2Type) {
this.customObject2Type = customObject2Type;
} |
737523bc-2678-4b7a-8b54-0f70dc055a2c | private void setupDefense1_55() {
defense1_55.setOnMouseClicked(new EventHandler<MouseEvent>() {
public void handle(MouseEvent event) {
int i = defense1_55.getSelectionModel().getSelectedIndex();
ch.hockman.model.team.LineUp lineUp = HockmanMain.lineupTeam
.getLineUp();
switch (i) {
case 0:
lineUp.getE55().d11 = null;
break;
case 1:
lineUp.getE55().d12 = null;
break;
default:
assert (i == -1);
}
linesShow();
}
});
defense1_55.setOnDragOver(new EventHandler<DragEvent>() {
public void handle(DragEvent event) {
/* data is dragged over the target */
/*
* accept it only if it is not dragged from the same node and if
* it has a string data
*/
Dragboard db = event.getDragboard();
if (event.getGestureSource() != defense1_55 && db.hasString()) {
ch.hockman.model.team.LineUp lineUp = HockmanMain.lineupTeam
.getLineUp();
String playerStr = db.getString();
// drag&drop does not work on Ubuntu with Oracle VM 7u9
//TODO remove this workaround as soon as the bug is fixed in JVM for Linux
playerStr = dragStringWorkaround;
int i = Integer.parseInt(playerStr);
if (i >= 0) {
Player player = HockmanMain.lineupTeam.getTeamPlayer(i);
boolean accept = (lineUp.getE55().d11 == null || lineUp.getE55().d12 == null)
&& lineUp.getE55().d11 != player
&& lineUp.getE55().d12 != player
&& lineUp.getE55().lw1 != player
&& lineUp.getE55().c1 != player
&& lineUp.getE55().rw1 != player
&& lineUp.getE55().lw2 != player
&& lineUp.getE55().c2 != player
&& lineUp.getE55().rw2 != player
&& lineUp.getE55().lw3 != player
&& lineUp.getE55().c3 != player
&& lineUp.getE55().rw3 != player
&& lineUp.getE55().lw4 != player
&& lineUp.getE55().c4 != player
&& lineUp.getE55().rw4 != player
&& lineUp.getG().goal1 != player
&& lineUp.getG().goal2 != player
&& HockmanMain.lineupTeam.checkForeigners(
player, HockmanMain.game.getLeague()
.getModus().maxNofForeigners());
if (accept) {
/*
* allow for both copying and moving, whatever user
* chooses
*/
event.acceptTransferModes(TransferMode.COPY_OR_MOVE);
}
}
}
event.consume();
}
});
defense1_55.setOnDragDropped(new EventHandler<DragEvent>() {
public void handle(DragEvent event) {
/* data dropped */
/* if there is a string data on dragboard, read it and use it */
Dragboard db = event.getDragboard();
boolean success = false;
if (db.hasString()) {
ch.hockman.model.team.LineUp lineUp = HockmanMain.lineupTeam
.getLineUp();
String playerStr = db.getString();
// drag&drop does not work on Ubuntu with Oracle VM 7u9
//TODO remove this workaround as soon as the bug is fixed in JVM for Linux
playerStr = dragStringWorkaround;
int i = Integer.parseInt(playerStr);
Player player = HockmanMain.lineupTeam.getTeamPlayer(i);
if (lineUp.getE55().d11 == null) {
lineUp.getE55().d11 = player;
} else {
assert (lineUp.getE55().d12 == null); // DragOver allows drop
// only if lineUp
// incomplete
lineUp.getE55().d12 = player;
}
success = true;
}
/*
* let the source know whether the string was successfully
* transferred and used
*/
event.setDropCompleted(success);
event.consume();
linesShow();
}
});
} |
de6519bf-bfcd-49de-925a-c931660f02df | public void setCustomCurrency19(java.math.BigDecimal customCurrency19) {
this.customCurrency19 = customCurrency19;
} |
40224685-c347-424a-b15b-9fa42d6fafc8 | public void setCustomNumber45(crmondemand.xml.contact.query.QueryType customNumber45) {
this.customNumber45 = customNumber45;
} |
a3dcc58d-7277-49ac-b853-2656b38bb69b | private void updateListeners()
{
for (IModelListener m : m_listeners)
{
m.modelChanged("Local");
}
} |
88a05d9c-32a2-4965-90c8-f9175981eae7 | public java.util.Calendar getCustomDate7() {
return this.customDate7;
} |
4cdb1a5b-7d02-4e1c-87e8-fb9ae69a4764 | public void setCustomText77(crmondemand.xml.customobject6.query.QueryType customText77) {
this.customText77 = customText77;
} |
6edf5cac-97a3-4505-aadb-7f369fbbcda9 | public java.lang.String getBusinessPlanExternalSystemId() {
return this.businessPlanExternalSystemId;
} |
38650ba3-5d0f-4f0b-95db-a43304e11848 | public void setCustomCurrency15(crmondemand.xml.opportunity.query.QueryType customCurrency15) {
this.customCurrency15 = customCurrency15;
} |
11ffe71f-693a-4f8d-9330-06b43c721057 | public void setIndexedPick0(java.lang.String indexedPick0) {
this.indexedPick0 = indexedPick0;
} |
322cf018-3151-4504-9142-8feabca00b5e | public java.lang.String getCustomObject6Type() {
return this.customObject6Type;
} |
5d6ec5b7-7a16-4ca1-94cb-6a0a1cd6fa33 | public crmondemand.xml.customobject3.query.QueryType getCustomText69() {
return this.customText69;
} |
96e1769f-e648-4c34-abed-a2cb48069d9b | public void setOwnerUserSignInId(java.lang.String ownerUserSignInId) {
this.ownerUserSignInId = ownerUserSignInId;
} |
c93615d5-6b20-4c4d-8227-4c0c736d4374 | public void setCustomInteger19(java.lang.Integer customInteger19) {
this.customInteger19 = customInteger19;
} |
2bef5513-04ab-448c-8132-609a19772cc3 | public java.lang.String getCustomObject14IntegrationId() {
return this.customObject14IntegrationId;
} |
060d6165-1446-4944-81fd-0ef68849bf62 | public crmondemand.xml.customobject3.query.QueryType getCustomObject8Id() {
return this.customObject8Id;
} |
432e0435-6877-4c98-aa77-d6d8afd7a812 | */
public void normal3i (int x, int y, int z) {
RequestOutputStream o = display.out;
synchronized (o) {
begin_render_request (o, 31, 16);
o.write_int32 (x);
o.write_int32 (y);
o.write_int32 (z);
}
} |
27406f23-1d94-44a8-9f17-a1dc7fcd4497 | public void setCreatedByUserSignInId(crmondemand.xml.customobject6.query.QueryType createdByUserSignInId) {
this.createdByUserSignInId = createdByUserSignInId;
} |
2b6a2c91-f1ee-4cc3-97cf-43c3d73257bf | public void setCustomPickList23(crmondemand.xml.contact.query.QueryType customPickList23) {
this.customPickList23 = customPickList23;
} |
e6c40e8b-b07f-4177-b250-07f02750b20e | public crmondemand.xml.opportunity.query.QueryType getCustomPickList1() {
return this.customPickList1;
} |
7e4aef95-34d9-4746-968a-373574b28ca0 | public static int PySet_Add(Pointer<PyObject > set, Pointer<PyObject > key) {
return PySet_Add(Pointer.getPeer(set), Pointer.getPeer(key));
} |
e50d5860-f118-4fd5-9d54-d2c179b50c74 | public java.lang.String getCreatedByUserSignInId() {
return this.createdByUserSignInId;
} |
c1b04020-c7b6-401f-9790-3931dc7cfe88 | public static void endCompetition(Team team1, Team team2, Event event) {
// creates compeition
Competition comp = new Competition();
comp.event = event;
comp.team1 = team1;
comp.team2 = team2;
// picks winning team puts winner back into queue loser into stack
int winningTeam = pickWinner();
if (winningTeam == 0) {
comp.team1.wins++;
comp.team2.losses++;
teamQueue.enqueue(team1);
loserStack.push(comp.team2);
} else {
comp.team1.losses++;
comp.team2.wins++;
teamQueue.enqueue(team2);
loserStack.push(comp.team1);
}
} |
29b38233-1107-4e4d-a639-60938f99df52 | public crmondemand.xml.contact.query.QueryType getCustomBoolean20() {
return this.customBoolean20;
} |
0e260d29-fea1-4791-bca8-ed6c9f1e2fda | public void setCustomPickList128(java.lang.String customPickList128) {
this.customPickList128 = customPickList128;
} |
80abde2c-ba6e-4531-9e8f-0956ece4bc17 | @Override
public void paint(Graphics g) {
//super.paint(g);
} |
4331d727-c538-4489-9a38-5314b310c2b0 | public crmondemand.xml.contact.query.QueryType getCustomPickList52() {
return this.customPickList52;
} |
f9628f1a-9a3d-4cf0-a5a4-b4db6d82b799 | public java.util.Calendar getCustomDate32() {
return this.customDate32;
} |
21d0423d-dc66-4bbd-a55c-d03c5e6b1fa1 | public void setIndexedPick0(crmondemand.xml.contact.query.QueryType indexedPick0) {
this.indexedPick0 = indexedPick0;
} |
652b922d-2596-4302-8b27-dd54962d7d46 | public void setCustomDate21(java.util.Calendar customDate21) {
this.customDate21 = customDate21;
} |
6eea2df9-77fd-4a45-b685-9af58419c220 | public crmondemand.xml.opportunity.query.QueryType getQuoteCreationDate() {
return this.quoteCreationDate;
} |
ef31bb1c-c1c8-4d43-b7cd-f06fa6466267 | public void setCustomNumber59(crmondemand.xml.contact.query.QueryType customNumber59) {
this.customNumber59 = customNumber59;
} |
beceea49-b09c-42b7-b170-cd23da5894ec | public void setCustomNumber28(crmondemand.xml.contact.query.QueryType customNumber28) {
this.customNumber28 = customNumber28;
} |
c7a5f41c-792c-44f1-a1f9-75cf331b752b | public crmondemand.xml.customobject6.query.QueryType getCustomNumber42() {
return this.customNumber42;
} |
baa857c0-7484-45cf-8bc1-479c1dffe9a7 | public void mouseExited(MouseEvent me) {
jl.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
jl.setForeground(Color.BLACK);
} |
25b8efbb-520f-49b5-9917-20e8ccc5e907 | public void setCustomPickList28(crmondemand.xml.opportunity.query.QueryType customPickList28) {
this.customPickList28 = customPickList28;
} |
4ea2a106-d4ea-4bb6-913c-dedaf1eaf6eb | opcode op_10 = new opcode() { public void handler() /* DJNZ o */
{
Z80.BC.AddH(-1);// _B--;
if(Z80.BC.H !=0)
{
byte arg = (byte)ARG();/* ARG() also increments _PC */
Z80.PC.SetD((Z80.PC.D + arg) & 0xFFFF);/* so don't do _PC += ARG() */
z80_ICount[0] -= 5;
change_pc16(Z80.PC.D);
}
else
{
Z80.PC.AddD(1);//_PC++;
}
}} |
c7d5852c-0eb1-40e4-a64b-a5f03cc72048 | public void setCustomPickList70(java.lang.String customPickList70) {
this.customPickList70 = customPickList70;
} |
d1279713-3f97-4d6c-b8d6-c1a109f52eb1 | public crmondemand.xml.contact.query.QueryType getCustomNumber0() {
return this.customNumber0;
} |
69752b5d-cc88-4c53-98ba-ce432346419f | public crmondemand.xml.opportunity.query.QueryType getCustomNumber36() {
return this.customNumber36;
} |
164ee536-24c1-4314-afad-2fe0ca9a4d27 | public java.lang.String getIndexedPick0() {
return this.indexedPick0;
} |
bf419d9f-5d27-492d-bed2-2818bc616faa | public void setAccountName(crmondemand.xml.customobject6.query.QueryType accountName) {
this.accountName = accountName;
} |
ca13ad8b-adf6-4d3c-adec-82a7e4b47e22 | public crmondemand.xml.contact.query.QueryType getCustomText17() {
return this.customText17;
} |
32aa8752-a110-4d39-8a59-ce3afc0811e7 | public void componentAdded(Component component) {
} |
15417b04-9817-47a8-9b3b-81e00026b5cd | public void setCustomText50(java.lang.String customText50) {
this.customText50 = customText50;
} |
3d739914-1ac8-4d67-af52-8f4963b9e861 | public void setCustomBoolean6(crmondemand.xml.customobject6.query.QueryType customBoolean6) {
this.customBoolean6 = customBoolean6;
} |
453740f5-14a0-4416-8d3b-2b56b82ff20d | public void setCustomNumber29(crmondemand.xml.customobject6.query.QueryType customNumber29) {
this.customNumber29 = customNumber29;
} |
ff809400-359e-4d90-a431-e924db821a2a | public java.lang.String getCustomPickList15() {
return this.customPickList15;
} |
e9e6e06b-ff28-474f-9813-7479b4cc00a0 | public void Loop(int num)
{
//Simple 'Is Clip Playing' check
if (clip.isRunning() != true)
{
//Looping the sound 'num' times. ('-1' is infinitely looping.)
clip.loop(num);
}
} |
ed10c4ee-d0aa-4c06-91f6-fe2b47289102 | public void setCustomInteger3(java.lang.Integer customInteger3) {
this.customInteger3 = customInteger3;
} |
6736bd81-1032-4753-a01e-2766c803b4e8 | public void setCustomPickList72(java.lang.String customPickList72) {
this.customPickList72 = customPickList72;
} |
df8c74b7-449d-4350-844b-4f43bf54bab3 | private void populateFields(Hipster currentHipster)
{
picturePanel.setPictureSource(imageURL);
nameField.setText(currentHipster.getName());
typeField.setText(currentHipster.getHipsterType());
phraseField.setText(currentHipster.getHipsterPhrase());
booksArea.setText("");
for(String temp : currentHipster.getHipsterBooks())
{
booksArea.append(temp + ", ");
}
imageURL = getClass().getResource("/hipster/view/images/" + currentHipster.getName() + ".jpg");
if(imageURL != null)
{
picturePanel.setPictureSource(imageURL);
picturePanel.repaint();
}
else
{
imageURL = getClass().getResource("/hipster/view/images/default.jpg");
picturePanel.setPictureSource(imageURL);
picturePanel.repaint();
JOptionPane.showMessageDialog(this,"Sorry no piture for you :(");
}
} |
26bbbd89-b16f-4197-b3e6-702ce6756126 | public crmondemand.xml.customobject3.query.QueryType getCustomText52() {
return this.customText52;
} |
77bb79cd-9b04-4b33-935c-3559c8a36d3d | public crmondemand.xml.customobject6.query.QueryType getCustomDate2() {
return this.customDate2;
} |
a7cec0da-e4ee-452e-9f34-779365072c41 | public void setCustomDate3(java.util.Calendar customDate3) {
this.customDate3 = customDate3;
} |
41f0b686-9cb7-4045-a041-e0b9eadf49ac | public crmondemand.xml.customobject3.query.QueryType getCustomPhone14() {
return this.customPhone14;
} |
e52e16b0-b39b-4b0d-a452-1a863067b47c | public java.lang.String getCurrencyCode() {
return this.currencyCode;
} |
445d1f26-162c-436a-9750-7d3f2856909c | public void setCustomBoolean12(crmondemand.xml.opportunity.query.QueryType customBoolean12) {
this.customBoolean12 = customBoolean12;
} |
7ed700ff-e906-4a88-823f-6069177a8364 | public crmondemand.xml.opportunity.query.QueryType getTransactionType() {
return this.transactionType;
} |
c0ff74eb-8d78-46c4-919d-e680cc289a1f | public void setRelatedContactExternalId(java.lang.String relatedContactExternalId) {
this.relatedContactExternalId = relatedContactExternalId;
} |
d31b279b-7217-4d23-aef5-ba37e2da2789 | public crmondemand.xml.customobject6.query.QueryType getSolutionPCDAttachmentType() {
return this.solutionPCDAttachmentType;
} |
29f2cecb-63e4-4945-ab58-29906441f5dc | public java.math.BigDecimal getCustomNumber64() {
return this.customNumber64;
} |
e3c9c4dc-811a-497f-ad7d-4b428b37f3e6 | public void actionPerformed(ActionEvent e) {
Open op = new Open();
op.openTxt(textArea);
} |
a5c89190-e2f8-4aa5-89f7-885856e788d0 | public void setCustomDate18(crmondemand.xml.customobject3.query.QueryType customDate18) {
this.customDate18 = customDate18;
} |
8f6a3604-77bb-4d82-a73a-e4d7b8c778d4 | public java.lang.String getCustomPickList24() {
return this.customPickList24;
} |
4e8411f3-d62f-40b0-aca1-2e1e6d91b2bb | public void setBookName(java.lang.String bookName) {
this.bookName = bookName;
} |
e357e382-5be9-4b21-a5b0-eec334d7f254 | public void setCustomPickList82(java.lang.String customPickList82) {
this.customPickList82 = customPickList82;
} |
664ef4c8-c471-4371-a9a5-90658dc270d0 | public void setProductName(java.lang.String productName) {
this.productName = productName;
} |
b9e83ffc-9b60-46b3-9b64-36438f1478e5 | public void setCustomDate28(crmondemand.xml.contact.query.QueryType customDate28) {
this.customDate28 = customDate28;
} |
19e2b86e-daab-48bc-ae7d-71dcc0201c67 | public void setUpdatedByFirstName(crmondemand.xml.contact.query.QueryType updatedByFirstName) {
this.updatedByFirstName = updatedByFirstName;
} |
8543a86b-48d7-463b-98b2-fc1248e0c01e | public void setCustomText68(crmondemand.xml.customobject6.query.QueryType customText68) {
this.customText68 = customText68;
} |
ff905e98-ad59-4e3b-9e37-d842d8b9ffed | public crmondemand.xml.customobject3.query.QueryType getCustomBoolean3() {
return this.customBoolean3;
} |
d9fccb0f-53f7-4f0b-a456-8277522b83ab | public crmondemand.xml.customobject3.query.QueryType getCustomDate16() {
return this.customDate16;
} |
b6e4040d-c89f-4fa0-94d1-c0425a629fe9 | */
public static Pointer<Byte > _Py_hgversion() {
return Pointer.pointerToAddress(_Py_hgversion$2(), Byte.class);
} |
57f66429-220b-4991-aacb-f548f0acd30f | * @param reason an upload summary (defaults to <tt>contents</tt>, use ""
* to not specify one)
* @throws CredentialNotFoundException if not logged in
* @throws CredentialException if (page is protected OR file is on a central
* repository) and we can't upload
* @throws CredentialExpiredException if cookies have expired
* @throws IOException if a network/local filesystem error occurs
* @throws AccountLockedException if user is blocked
* @since 0.21
*/
public synchronized void upload(File file, String filename, String contents, String reason) throws IOException, LoginException
{
// TODO: upload via URL
// the usual stuff
// throttle
long start = System.currentTimeMillis();
// check for log in
if (user == null || !user.isAllowedTo("upload"))
{
CredentialNotFoundException ex = new CredentialNotFoundException("Permission denied: cannot upload files.");
logger.logp(Level.SEVERE, "Wiki", "upload()", "[" + domain + "] Cannot upload - permission denied.", ex);
throw ex;
}
statusCheck();
filename = filename.replaceFirst("^(File|Image|" + namespaceIdentifier(FILE_NAMESPACE) + "):", "");
// protection and token
HashMap<String, Object> info = getPageInfo("File:" + filename);
if (!checkRights(info, "upload"))
{
CredentialException ex = new CredentialException("Permission denied: page is protected.");
logger.logp(Level.WARNING, "Wiki", "upload()", "[" + getDomain() + "] Cannot upload - permission denied.", ex);
throw ex;
}
String wpEditToken = (String)info.get("token");
// chunked upload setup
long filesize = file.length();
long chunks = (filesize >> LOG2_CHUNK_SIZE) + 1;
FileInputStream fi = new FileInputStream(file);
String filekey = "";
// upload the image
for (int i = 0; i < chunks; i++)
{
HashMap<String, Object> params = new HashMap<String, Object>(50);
params.put("filename", filename);
params.put("token", wpEditToken);
params.put("ignorewarnings", "true");
if (chunks == 1)
{
// Chunks disabled due to a small filesize.
// This is just a normal upload.
params.put("text", contents);
if (!reason.isEmpty())
params.put("comment", reason);
byte[] by = new byte[fi.available()];
fi.read(by);
// Why this is necessary?
params.put("file\"; filename=\"" + file.getName(), by);
}
else
{
long offset = i << LOG2_CHUNK_SIZE;
params.put("stash", "1");
params.put("offset", "" + offset);
params.put("filesize", "" + filesize);
if (i != 0)
params.put("filekey", filekey);
// write the actual file
long buffersize = Math.min(1 << LOG2_CHUNK_SIZE, filesize - offset);
byte[] by = new byte[(int)buffersize]; // 32 bit problem. Why must array indices be ints?
fi.read(by);
params.put("chunk\"; filename=\"" + file.getName(), by);
// Each chunk presumably requires a new edit token
wpEditToken = (String)getPageInfo("File:" + filename).get("token");
}
// done
String response = multipartPost(apiUrl + "action=upload", params, "upload");
try
{
// look for filekey
if (chunks > 1)
{
if (response.contains("filekey=\""))
{
filekey = parseAttribute(response, "filekey", 0);
continue;
}
else
throw new IOException("No filekey present! Server response was " + response);
}
// TODO: check for more specific errors here
if (response.contains("error code=\"fileexists-shared-forbidden\""))
{
CredentialException ex = new CredentialException("Cannot overwrite file hosted on central repository.");
logger.logp(Level.WARNING, "Wiki", "upload()", "[" + getDomain() + "] Cannot upload - permission denied.", ex);
throw ex;
}
checkErrors(response, "upload");
}
catch (IOException e)
{
fi.close();
// don't bother retrying - uploading is a pain
logger.logp(Level.SEVERE, "Wiki", "upload()", "[" + domain + "] EXCEPTION: ", e);
throw e;
}
}
fi.close();
// unstash upload if chunked
if (chunks > 1)
{
HashMap<String, Object> params = new HashMap<String, Object>(50);
params.put("filename", filename);
params.put("token", wpEditToken);
params.put("text", contents);
if (!reason.isEmpty())
params.put("comment", reason);
params.put("ignorewarnings", "true");
params.put("filekey", filekey);
String response = multipartPost(apiUrl + "action=upload", params, "upload");
checkErrors(response, "upload");
}
// throttle
try
{
long time = throttle - System.currentTimeMillis() + start;
if (time > 0)
Thread.sleep(time);
}
catch (InterruptedException e)
{
// nobody cares
}
log(Level.INFO, "Successfully uploaded to File:" + filename + ".", "upload");
} |
94ccd9db-8755-46b7-be89-fdfb4840402a | public crmondemand.xml.customobject6.query.QueryType getInvestmentPrimaryGoal() {
return this.investmentPrimaryGoal;
} |
6afd6287-9618-4af6-bbbb-1316c4e3614c | public crmondemand.xml.customobject6.query.QueryType getCustomBoolean21() {
return this.customBoolean21;
} |
e91aa3ea-a37d-469b-b645-cb5f40de006a | public void setCustomText11(java.lang.String customText11) {
this.customText11 = customText11;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.