rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
}
private double iBinarySumDevSqr(int start, int finish, double mean) { if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += (iSeries[i]-mean)*(iSeries[i]-mean); } return val; } else { int middle = (start + finish) / 2; return iBinar...
int[] testSeries = new int[10]; testSeries[0] = 13; testSeries[1] = 8; testSeries[2] = 15; testSeries[3] = 4; testSeries[4] = 4; testSeries[5] = 12; testSeries[6] = 11; testSeries[7] = 7; testSeries[8] = 14; testSeries[9] = 12; Statistics s = new Statistics(testSeries); System.out.println("Mean = "+s.mean()); System.ou...
int[] testSeries = new int[10]; testSeries[0] = 13; testSeries[1] = 8; testSeries[2] = 15; testSeries[3] = 4; testSeries[4] = 4; testSeries[5] = 12; testSeries[6] = 11; testSeries[7] = 7; testSeries[8] = 14; testSeries[9] = 12; Statistics s = new Statistics(testSeries); System.out.println("Mean = "+s.mean()); System.ou...
public static void main(String[] args) { int[] testSeries = new int[10]; testSeries[0] = 13; testSeries[1] = 8; testSeries[2] = 15; testSeries[3] = 4; testSeries[4] = 4; testSeries[5] = 12; testSeries[6] = 11; testSeries[7] = 7; testSeries[8] = 14; testSeries[9] = 12; Statistics ...
double[] testPACF = s.pacf(5); for (int i=0; i<testPACF.length; i++) { System.out.println("pacf "+i+" = "+testPACF[i]); } }
public static void main(String[] args) { int[] testSeries = new int[10]; testSeries[0] = 13; testSeries[1] = 8; testSeries[2] = 15; testSeries[3] = 4; testSeries[4] = 4; testSeries[5] = 12; testSeries[6] = 11; testSeries[7] = 7; testSeries[8] = 14; testSeries[9] = 12; Statistics ...
double[] pacfVals = pacf(maxlag); double conf = pacf95conf(maxlag); double[] out = new double[pacfVals.length]; for (int i=0; i<pacfVals.length; i++) { out[i] = 1.96* Math.abs(pacfVals[i]) / conf;
double[] pacfVals = pacf(maxlag); double conf = pacf95conf(maxlag); double[] out = new double[pacfVals.length]; for (int i=0; i<pacfVals.length; i++) { out[i] = 1.96* Math.abs(pacfVals[i]) / conf; } return out;
public double[] pacfTRatio(int maxlag) { double[] pacfVals = pacf(maxlag); double conf = pacf95conf(maxlag); double[] out = new double[pacfVals.length]; for (int i=0; i<pacfVals.length; i++) { out[i] = 1.96* Math.abs(pacfVals[i]) / conf; } return out; }
return out; }
public double[] pacfTRatio(int maxlag) { double[] pacfVals = pacf(maxlag); double conf = pacf95conf(maxlag); double[] out = new double[pacfVals.length]; for (int i=0; i<pacfVals.length; i++) { out[i] = 1.96* Math.abs(pacfVals[i]) / conf; } return out; }
if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += i * sSeries[i];
if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += i * sSeries[i]; } return val; } else { int middle = (start + finish) / 2; return sBinaryIndexSum(start, middle) + sBinaryIndexSum(middle, finish);
private double sBinaryIndexSum(int start, int finish) { if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += i * sSeries[i]; } return val; } else { int middle = (start + finish) / 2; return sBinarySum(start, middle) + sBinar...
return val; } else { int middle = (start + finish) / 2; return sBinarySum(start, middle) + sBinarySum(middle, finish);
private double sBinaryIndexSum(int start, int finish) { if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += i * sSeries[i]; } return val; } else { int middle = (start + finish) / 2; return sBinarySum(start, middle) + sBinar...
}
private double sBinaryIndexSum(int start, int finish) { if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += i * sSeries[i]; } return val; } else { int middle = (start + finish) / 2; return sBinarySum(start, middle) + sBinar...
if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += sSeries[i];
if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += sSeries[i]; } return val; } else { int middle = (start + finish) / 2; return sBinarySum(start, middle) + sBinarySum(middle, finish);
private double sBinarySum(int start, int finish) { if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += sSeries[i]; } return val; } else { int middle = (start + finish) / 2; return sBinarySum(start, middle) + sBinarySum(midd...
return val; } else { int middle = (start + finish) / 2; return sBinarySum(start, middle) + sBinarySum(middle, finish);
private double sBinarySum(int start, int finish) { if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += sSeries[i]; } return val; } else { int middle = (start + finish) / 2; return sBinarySum(start, middle) + sBinarySum(midd...
}
private double sBinarySum(int start, int finish) { if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += sSeries[i]; } return val; } else { int middle = (start + finish) / 2; return sBinarySum(start, middle) + sBinarySum(midd...
double mean, int lag) { if (finish-start < lag+8) { double val = 0; for (int i=start; i< finish && i<getLength()-lag; i++) { val += (sSeries[i]-mean)*(sSeries[i+lag]-mean);
double mean, int lag) { if (finish-start < lag+8) { double val = 0; for (int i=start; i< finish && i<getLength()-lag; i++) { val += (sSeries[i]-mean)*(sSeries[i+lag]-mean); } return val; } else { int middle = (start + finish) / 2; return sBinarySumDevLag(start, middle, mean, lag) + sBinarySumDevLag(middle, finish, mean...
private double sBinarySumDevLag(int start, int finish, double mean, int lag) { if (finish-start < lag+8) { double val = 0; for (int i=start; i< finish && i<getLength()-lag; i++) { val += (sSeries[i]-mean)*(sSeries[i+lag]-mean); } return val; } else { ...
return val; } else { int middle = (start + finish) / 2; return sBinarySumDevLag(start, middle, mean, lag) + sBinarySumDevLag(middle, finish, mean, lag);
private double sBinarySumDevLag(int start, int finish, double mean, int lag) { if (finish-start < lag+8) { double val = 0; for (int i=start; i< finish && i<getLength()-lag; i++) { val += (sSeries[i]-mean)*(sSeries[i+lag]-mean); } return val; } else { ...
}
private double sBinarySumDevLag(int start, int finish, double mean, int lag) { if (finish-start < lag+8) { double val = 0; for (int i=start; i< finish && i<getLength()-lag; i++) { val += (sSeries[i]-mean)*(sSeries[i+lag]-mean); } return val; } else { ...
if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += (sSeries[i]-mean)*(sSeries[i]-mean);
if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += (sSeries[i]-mean)*(sSeries[i]-mean); } return val; } else { int middle = (start + finish) / 2; return sBinarySumDevSqr(start, middle, mean) + sBinarySumDevSqr(middle, finish, mean);
private double sBinarySumDevSqr(int start, int finish, double mean) { if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += (sSeries[i]-mean)*(sSeries[i]-mean); } return val; } else { int middle = (start + finish) / 2; return sBinar...
return val; } else { int middle = (start + finish) / 2; return sBinarySumDevSqr(start, middle, mean) + sBinarySumDevSqr(middle, finish, mean);
private double sBinarySumDevSqr(int start, int finish, double mean) { if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += (sSeries[i]-mean)*(sSeries[i]-mean); } return val; } else { int middle = (start + finish) / 2; return sBinar...
}
private double sBinarySumDevSqr(int start, int finish, double mean) { if (finish-start < 8) { double val = 0; for (int i=start; i< finish; i++) { val += (sSeries[i]-mean)*(sSeries[i]-mean); } return val; } else { int middle = (start + finish) / 2; return sBinar...
CalEnv env = new CalEnv(envPrefix, debug);
CalEnvI env = CalEnvFactory.getEnv(envPrefix, debug);
public void init(WebdavServlet servlet, HttpServletRequest req, Properties props, boolean debug) throws WebdavIntfException { super.init(servlet, req, props, debug); try { HttpSession session = req.getSession(); ServletContext sc = session.getServl...
setCaretPosition(0);
private void setPageHelperMethod(URL url) { try { super.setPage(url); setCaretPosition(0); } catch (Throwable t) { showError(t); } }
public void addSubscription(BwPreferences p, BwUser user, BwCalendar cal, boolean toplevel) throws Throwable {
private void addSubscription(BwPreferences p, BwView view, BwUser user, BwCalendar cal, boolean display, boolean freeBusy, boolean publicCalendar) throws Throwable {
public void addSubscription(BwPreferences p, BwUser user, BwCalendar cal, boolean toplevel) throws Throwable { globals.subscriptions++; BwSubscription sub = BwSubscription.makeSubscription(cal, cal.getName(), true, false, false); sub.setOwner(user); p.addSubscription(sub); ...
BwSubscription sub = BwSubscription.makeSubscription(cal, cal.getName(), true, false, false);
BwSubscription sub = BwSubscription.makeSubscription(cal, cal.getName(), display, freeBusy, false);
public void addSubscription(BwPreferences p, BwUser user, BwCalendar cal, boolean toplevel) throws Throwable { globals.subscriptions++; BwSubscription sub = BwSubscription.makeSubscription(cal, cal.getName(), true, false, false); sub.setOwner(user); p.addSubscription(sub); ...
if (curView == null) { curView = new BwView(); curView.setName(cal.getName()); curView.setOwner(user); curView.addSubscription(sub); p.addView(curView); curView = null; } else { curView.addSubscription(sub);
if (view != null) { view.addSubscription(sub); } if (publicCalendar) { BwView v = new BwView(); v.setName(cal.getName()); v.setOwner(user); v.addSubscription(sub); p.addView(v);
public void addSubscription(BwPreferences p, BwUser user, BwCalendar cal, boolean toplevel) throws Throwable { globals.subscriptions++; BwSubscription sub = BwSubscription.makeSubscription(cal, cal.getName(), true, false, false); sub.setOwner(user); p.addSubscription(sub); ...
addSubscription(prefs, globals.publicUser, cal, true);
addSubscription(prefs, curView, o, cal, true, false, true);
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences prefs = new BwPrefere...
BwSubscription defSub = BwSubscription.makeSubscription(cal, cal.getName(), true, true, false); defSub.setOwner(o); prefs.addSubscription(defSub);
addSubscription(prefs, curView, o, cal, true, true, false);
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences prefs = new BwPrefere...
BwSubscription sub = BwSubscription.makeSubscription(cal, cal.getName(), false, false, false); sub.setOwner(o); prefs.addSubscription(sub); curView = new BwView(); curView.setName(globals.syspars.getDefaultUserViewName()); curView.addSubscription(defSub); curView.setOwner(o); prefs.addView(curView);
addSubscription(prefs, null, o, cal, false, false, false);
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences prefs = new BwPrefere...
Integer calid = (Integer)subit.next(); cal = (BwCalendar)globals.filterToCal.get(calid); addSubscription(prefs, o, cal, true);
cal = (BwCalendar)globals.filterToCal.get((Integer)subit.next()); addSubscription(prefs, curView, o, cal, true, false, false);
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences prefs = new BwPrefere...
} else if (argpar("-fixOwner", args, i)) { i++; globals.fixOwnerAccount = args[i];
boolean processArgs(String[] args) throws Throwable { if (args == null) { return true; } for (int i = 0; i < args.length; i++) { if (args[i].equals("")) { // null arg generated by ant } else if (args[i].equals("-debug")) { globals.debug = true; } else if (args[i].equals("-nd...
forwardFocusInWindow();
requestFocusInWindow(); component.requestFocusInWindow();
public void addTab(IPanel panel) { if (panel == null) { return; } int index = getTabCount(); String title = panel.getTitle(); Icon icon = panel.getIcon(); Component component = panel.getPanelInstance(); if (title == null || title.length() == 0) { title = Messages.getString("TabBar.UNTITLED"); //$NON-NLS...
try { return CalEnv.getProperty(name); } catch (Throwable t) { throw new CalFacadeException(t); }
return env.getProperty(name);
public String getEnvProperty(String name) throws CalFacadeException { try { return CalEnv.getProperty(name); } catch (Throwable t) { throw new CalFacadeException(t); } }
return getCal().getSyspars();
return getCal().getSyspars(systemName);
public BwSystem getSyspars() throws CalFacadeException { return getCal().getSyspars(); }
env = new CalEnv(pars.getEnvPrefix(), debug);
public void init(CalSvcIPars parsParam) throws CalFacadeException { pars = (CalSvcIPars)parsParam.clone(); debug = pars.getDebug(); //if (userAuth != null) { // userAuth.reinitialise(getUserAuthCallBack()); //} if (userGroups != null) { userGroups.init(getGroupsCallBack()); } if (adminGr...
LogFile logFile = new LogFile( fileChooser.getSelectedFile(), dataDictionary );
LogFile logFile = new LogFile( fileChooser.getSelectedFile(), null );
public void propertyChange(PropertyChangeEvent evt) { if( !evt.getPropertyName().equals(JFileChooser.SELECTED_FILE_CHANGED_PROPERTY) ) return; File file = fileChooser.getSelectedFile(); if( file == null || file.isDirectory() ) return; try { LogFile logFile = new LogFile( fileChooser.getSelectedFile(), data...
public void changeAccess(Object o, Collection aces) throws CalFacadeException {
public void changeAccess(BwShareableDbentity ent, Collection aces) throws CalFacadeException {
public void changeAccess(Object o, Collection aces) throws CalFacadeException { checkOpen(); access.changeAccess(o, aces); sess.saveOrUpdate(o); }
access.changeAccess(o, aces); sess.saveOrUpdate(o);
access.changeAccess(ent, aces); sess.saveOrUpdate(ent);
public void changeAccess(Object o, Collection aces) throws CalFacadeException { checkOpen(); access.changeAccess(o, aces); sess.saveOrUpdate(o); }
public Collection getAces(Object o) throws CalFacadeException {
public Collection getAces(BwShareableDbentity ent) throws CalFacadeException {
public Collection getAces(Object o) throws CalFacadeException { checkOpen(); return access.getAces(o); }
return access.getAces(o);
return access.getAces(ent);
public Collection getAces(Object o) throws CalFacadeException { checkOpen(); return access.getAces(o); }
private void emitAce(Ace ace, boolean denials) throws Throwable {
private boolean emitAce(Ace ace, boolean denials, boolean aceOpen) throws Throwable {
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p...
boolean emittedWho = false;
boolean tagOpen = false;
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p...
if (!emittedWho) {
if (!aceOpen) { xml.openTag(WebdavTags.ace);
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p...
emittedWho = true;
aceOpen = true;
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p...
xml.openTag(tag);
if (!tagOpen) { xml.openTag(tag); tagOpen = true; }
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p...
xml.closeTag(tag);
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p...
if (emittedWho) { xml.closeTag(WebdavTags.ace);
if (tagOpen) { xml.closeTag(tag);
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p...
return aceOpen;
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p...
xml.openTag(WebdavTags.ace);
private void emitAceWho(Ace ace) throws Throwable { xml.openTag(WebdavTags.ace); boolean invert = ace.getNotWho(); if (ace.getWhoType() == Ace.whoTypeOther) { invert = !invert; } if (invert) { xml.openTag(WebdavTags.invert); } xml.openTag(WebdavTags.principal); int whoType = ace.getW...
emitAce(ace, true); emitAce(ace, false);
boolean aceOpen = emitAce(ace, true, false); if (emitAce(ace, false, aceOpen)) { aceOpen = true; } if (aceOpen) { xml.closeTag(WebdavTags.ace); }
public void emitAces(Collection aces) throws CalFacadeException { try { xml.openTag(WebdavTags.acl); if (aces != null) { Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); emitAce(ace, true); emitAce(ace, false); } } x...
rightClickMenu.addSeparator(); rightClickMenu.add(shiftUp); rightClickMenu.add(shiftDown);
public TablePanel() { super(new GridLayout(1, 0)); table.getColumnModel().getColumn(0).setPreferredWidth(150); table.getColumnModel().getColumn(1).setPreferredWidth(150); table.getColumnModel().getColumn(2).setPreferredWidth(10); table.getColumnModel().getColumn(3).setPreferredWidth(150); table.getColumnM...
JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = 0; i < selected.length; i++) { tablePanel.getModel().swap(selected[i]-1, selected[i]); } table.setRowSelectionInterval(selected[0] - 1, selected[selected.length-1] - 1);
tablePanel.shiftSelectedUp();
public JPanel getButtonPanel() { JPanel p = new JPanel(new GridLayout(0, 3)); JButton remove = new JButton(Messages.getString("ModuleConfigurationPanel.REMOVE")); //$NON-NLS-1$ remove.setToolTipText(Messages.getString("ModuleConfigurationPanel.REMOVE_TOOLTIP")); //$NON-NLS-1$ remove.addActionListener(new ActionLis...
JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = selected.length - 1; i >= 0; i--) { tablePanel.getModel().swap(selected[i], selected[i]+1); } table.setRowSelectionInterval(selected[0] + 1, selected[selected.length-1] + 1);
tablePanel.shiftSelectedDown();
public JPanel getButtonPanel() { JPanel p = new JPanel(new GridLayout(0, 3)); JButton remove = new JButton(Messages.getString("ModuleConfigurationPanel.REMOVE")); //$NON-NLS-1$ remove.setToolTipText(Messages.getString("ModuleConfigurationPanel.REMOVE_TOOLTIP")); //$NON-NLS-1$ remove.addActionListener(new ActionLis...
JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = 0; i < selected.length; i++) { tablePanel.getModel().swap(selected[i]-1, selected[i]); } table.setRowSelectionInterval(selected[0] - 1, selected[selected.length-1] - 1);
tablePanel.shiftSelectedUp();
public void actionPerformed(ActionEvent e) { JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = 0; i < selected.length; i++) { tablePanel.getModel().swap(selected[i]-1, selected[i]); } table.setRowSelectionInterval(selected[0] - 1, selected[selected....
JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = selected.length - 1; i >= 0; i--) { tablePanel.getModel().swap(selected[i], selected[i]+1); } table.setRowSelectionInterval(selected[0] + 1, selected[selected.length-1] + 1);
tablePanel.shiftSelectedDown();
public void actionPerformed(ActionEvent e) { JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = selected.length - 1; i >= 0; i--) { tablePanel.getModel().swap(selected[i], selected[i]+1); } table.setRowSelectionInterval(selected[0] + 1, selected[sele...
form.getMsg().emit("org.bedework.pubevents.message.category.added");
form.getMsg().emit("org.bedework.client.message.category.added");
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); if (reqpar != null)...
form.getMsg().emit("org.bedework.pubevents.message.category.updated");
form.getMsg().emit("org.bedework.client.message.category.updated");
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); if (reqpar != null)...
vn = getEnv().getAppOptProperty("app.default.view");
vn = getEnv().getAppOptProperty("default.view");
public TimeView getCurTimeView() { /* We might be called before any time is set. Set a week view by default */ try { if (curTimeView == null) { /** Figure out the default from the properties */ String vn; try { vn = getEnv().getAppOptProperty("app.default.v...
System.out.println("item = " + item); System.out.println("basket = " + basket);
public void removeItem(BasketItem item) { System.out.println("item = " + item); System.out.println("basket = " + basket); if (item == null || basket == null) { return; } if (basket.containsKey(item.getItemID())) { basket.remove(item.getItemID()); } }
for (int i = 2; i < sysLen; i++) { vars[i][0] = keys[i]; vars[i][1] = sysProps.getProperty(keys[i]);
for (int i = 0; i < sysLen; i++) { vars[i+2][0] = keys[i]; vars[i+2][1] = sysProps.getProperty(keys[i]);
private JPanel createMemoryPanel() { Properties sysProps = System.getProperties(); Enumeration sysKeys = sysProps.keys(); int sysLen = sysProps.size(); String[] keys = new String[sysLen]; for (int i = 0; i < sysLen && sysKeys.hasMoreElements(); i++) { keys[i] = (String)sysKeys.nextElement(); } Arrays.sort(k...
int tmpPrmValueWidth = (tmpPrmValue != null) ? calculateTextFieldWidthForString(tmpPrmLabel) : prmValueWidth;
int tmpPrmValueWidth = (tmpPrmValue != null) ? calculateTextFieldWidthForString(tmpPrmValue) : prmValueWidth;
private void generateLayoutAndAddParameters(IWContext iwc, boolean isMethodInvocation) throws IOException, JRException { int columnWidth = 120; int prmLableWidth = 95; int prmValueWidth = 55; DynamicReportDesign designTemplate = new DynamicReportDesign("GeneratedReport"); if (_dynamicFields != null && _dynamicFie...
org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout();
GridLayout layoutThis = new GridLayout();
public ReferencedMetaclassFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); ...
this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.gray);
this.setLineStyle(Graphics.LINE_SOLID); this.setForegroundColor(ColorConstants.gray);
public ReferencedMetaclassFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); ...
org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa...
referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
referencedMetaclassFigure_FixedLabelPane0.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa...
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintRefe...
GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = GridLayoutData.CENTER;
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa...
org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout();
CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new CenterLayout();
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa...
org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel();
WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new WrapLabel();
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa...
org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure referencedMetaclassFigure_LabelPane0 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa...
referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
referencedMetaclassFigure_LabelPane0.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa...
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMeta...
GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = GridLayoutData.CENTER;
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa...
org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout();
CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new CenterLayout();
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa...
org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel();
WrapLabel referencedMetaclassFigure_className1 = new WrapLabel();
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa...
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureReferencedMetaclassFigure_className() {
public WrapLabel getFigureReferencedMetaclassFigure_className() {
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureReferencedMetaclassFigure_className() { return fReferencedMetaclassFigure_className; }
private void setFigureReferencedMetaclassFigure_className(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) {
private void setFigureReferencedMetaclassFigure_className(WrapLabel fig) {
private void setFigureReferencedMetaclassFigure_className(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { fReferencedMetaclassFigure_className = fig; }
setForegroundColor(hasActualMetaclassImport ? org.eclipse.draw2d.ColorConstants.gray : org.eclipse.draw2d.ColorConstants.red);
setForegroundColor(hasActualMetaclassImport ? ColorConstants.gray : ColorConstants.red);
public void setHasActualMetaclassImport(boolean hasActualMetaclassImport) { setForegroundColor(hasActualMetaclassImport ? org.eclipse.draw2d.ColorConstants.gray : org.eclipse.draw2d.ColorConstants.red); }
hasMetaclass = imported instanceof org.eclipse.uml2.uml.Class && ((org.eclipse.uml2.uml.Class) imported).isMetaclass();
hasMetaclass = imported instanceof Class && ((Class) imported).isMetaclass();
private void refreshHasImportedMetaclass(ReferencedMetaclassFigure figure) { ElementImport elementImport = (ElementImport) resolveSemanticElement(); //OCL here (#161545) boolean hasMetaclass = false; if (elementImport != null) { PackageableElement imported = elementImport.getImportedElement(); hasMetaclass = i...
}else{ logger.debug("using default url of " + getURL());
public static void loadDbProperties(Properties sysProperties, Properties dbProperties) { if(dbProperties.containsKey(DB_SERVER_PORT)) { if(dbProperties.containsKey(DBURL_KEY)) { logger.error("-hsql properties and SOD properties are both specify...
form.getErr().emit("org.bedework.pubevents.error.nosuchsponsor", id);
form.getErr().emit("org.bedework.client.error.nosuchsponsor", id);
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** User requested a sponsor from the list. Retrieve it, embed it in ...
fw.write("def x := 1; \n self.x");
fw.write("def x := 1; \n def y := /.tmp; \n ~.x");
public void setUp() { try { boolean success; at_ = new File("/tmp/at"); success = at_.mkdir(); at_test_ = new File("/tmp/at/test"); success &= at_test_.mkdir(); at_test_testfile_at = new File("/tmp/at/test/testfile.at"); success &= at_test_testfile_at.createNewFile(); if (!success) { fail("could no...
NATNamespace root = new NATNamespace("", "/tmp", OBJDynamicRoot._INSTANCE_);
public void testNamespaces() { // create a 'root' namespace pointing to /tmp NATNamespace root = new NATNamespace("", "/tmp", OBJDynamicRoot._INSTANCE_); // now, try to select the 'at' slot try { ATObject at = root.meta_select(root, AGSymbol.alloc("at")); // the at slot should equal a namespace object assert...
assertTrue(test.meta_respondsTo(AGSymbol.alloc("testfile")).asNativeBoolean().javaValue); assertEquals(test, test.meta_select(test, AGSymbol.alloc("~"))); assertEquals(at, test.meta_select(test, AGSymbol.alloc("^")));
public void testNamespaces() { // create a 'root' namespace pointing to /tmp NATNamespace root = new NATNamespace("", "/tmp", OBJDynamicRoot._INSTANCE_); // now, try to select the 'at' slot try { ATObject at = root.meta_select(root, AGSymbol.alloc("at")); // the at slot should equal a namespace object assert...
EventPeriod(DateTime start, DateTime end) {
EventPeriod(DateTime start, DateTime end, int type) {
EventPeriod(DateTime start, DateTime end) { this.start = start; this.end = end; }
this.type = type;
EventPeriod(DateTime start, DateTime end) { this.start = start; this.end = end; }
if (type < that.type) { return -1; } if (type > that.type) { return 1; }
public int compareTo(Object o) { if (!(o instanceof EventPeriod)) { return -1; } EventPeriod that = (EventPeriod)o; int res = start.compareTo(that.start); if (res != 0) { return res; } return end.compareTo(that.end); }
Calintf getCal() throws CalFacadeException { if (cali != null) { return cali; } try { cali = (Calintf)CalEnv.getGlobalObject("calintfclass", Calintf.class); } catch (Throwable t) { throw new CalFacadeException(t); } try { cali.open(); cali.beginTransaction(); boolean userCreated = cali.init(pars.getAuthUser(), pars....
Calintf getCal(BwSubscription sub) throws CalFacadeException { return getCal();
Calintf getCal() throws CalFacadeException { if (cali != null) { return cali; } try { cali = (Calintf)CalEnv.getGlobalObject("calintfclass", Calintf.class); } catch (Throwable t) { throw new CalFacadeException(t); } try { cali.open(); // Just for the user interactions cali.b...
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who,
public BwFreeBusy getFreeBusy(Collection subs, BwCalendar cal, BwPrincipal who,
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne...
Collection subs; if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) {
if (subs != null) { } else if (cal != null) {
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne...
eventPeriods.add(new EventPeriod(psdt, pedt));
int type = BwFreeBusyComponent.typeBusy; if (BwEvent.statusTentative.equals(ev.getStatus())) { type = BwFreeBusyComponent.typeBusyTentative; } eventPeriods.add(new EventPeriod(psdt, pedt, type));
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne...
} else if (ep.start.after(p.getEnd())) {
lastType = ep.type; } else if ((lastType != ep.type) || ep.start.after(p.getEnd())) {
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne...
if (fbc == null) {
if ((fbc == null) || (lastType != fbc.getType())) {
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne...
if (fbc != null) { fb.addTime(fbc); }
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne...
if (debug) { error(t); }
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne...
msgSendMirror.meta_assignField(AGSymbol.alloc("receiver"), closures);
msgSendMirror.meta_assignField(AGSymbol.alloc("receiver"), NATMirrorFactory._INSTANCE_.base_createMirror(closures));
public void testJavaMirrorFieldAccess() { try { AGMessageSend msgSend = new AGMessageSend( success, new AGMethodInvocationCreation( AGSymbol.alloc("at"), new NATTable(new ATObject[] { closures.base_getLength() }))); ATObject msgSendMirror = NATMirrorFactory._INSTANCE_. base_createMirror...
"msgSendMirror.receiver := closures;",
"msgSendMirror.receiver := at.mirrors.Factory.createMirror(closures);",
public void testMirrorFieldAccess() { try { evaluateInput( "def msgSendMirror := at.mirrors.Factory.createMirror(" + " `(success.at(3)));" + "def receiver := msgSendMirror.receiver;" + "msgSendMirror.receiver := closures;", new NATContext(lexicalRoot, lexicalRoot, NATNil._INSTANCE_)); }...
"def responds := trueMirror.respondsTo( symbol(\"ifTrue:\") );" + "responds.getBase().ifTrue: success ifFalse: fail",
"def responds := trueMirror.respondsTo( symIfTrue );" + "def base := responds.base;" + "base.ifTrue: success ifFalse: fail",
public void testMirrorInvocation() { try { evaluateInput( "def trueMirror := at.mirrors.Factory.createMirror(true);" + "def responds := trueMirror.respondsTo( symbol(\"ifTrue:\") );" + "responds.getBase().ifTrue: success ifFalse: fail", new NATContext(lexicalRoot, lexicalRoot, NATNil._INSTANCE_)...
this.setLayoutManager(new org.eclipse.gmf.internal.codegen.draw2d.GridLayout());
org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis);
public InstanceNodeFigure() { this.setLayoutManager(new org.eclipse.gmf.internal.codegen.draw2d.GridLayout()); this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); createContents()...
eventInfo = new EventInfo(editEvent);
public BwEvent getEditEvent() { if (editEvent == null) { editEvent = new BwEventObj(); } return editEvent; }
if (val != null) {
if (val == null) { getEventDates().setNewEvent(val, fetchSvci().getTimezones()); } else {
public void setEditEvent(BwEvent val) { try { editEvent = val; if (val != null) { getEventDates().setFromEvent(val, fetchSvci().getTimezones()); } } catch (Throwable t) { err.emit(t); } }
semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.StereotypeConstraintsEditPart.VISUAL_ID);
semanticHint = UMLVisualIDRegistry.getType(StereotypeConstraintsEditPart.VISUAL_ID);
protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.StereotypeConstraintsEditPart.VISUAL_ID); view.setType(sema...
if (!random) { playNext(); } else { playRandom();
if (isPlayAll()) { if (!isRandom()) { playNext(); } else { playRandom(); }
protected PlayerListener getConfigPlayerListener() { return new PlayerListener() { public void playbackStarted() { } public void playbackStopped() { } public void playbackCompleted() { if (!random) { playNext(); } else { playRandom(); } } }; }
if (!random) { playNext(); } else { playRandom();
if (isPlayAll()) { if (!isRandom()) { playNext(); } else { playRandom(); }
public void playbackCompleted() { if (!random) { playNext(); } else { playRandom(); } }
player.stop(); player = null;
if (player != null) { player.stop(); player = null; }
public synchronized void stop() { player.stop(); player = null; }
return access.getDefaultPublicAccess().toCharArray();
return Access.getDefaultPublicAccess().toCharArray();
private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();...