rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
btnAgree.setMnemonic(resM.getString("Agree").charAt(0)); btnAgree.setText(res.getString("AGREE")); | btnAgree.setMnemonic('a'); btnAgree.setText(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/Resource").getString("AGREE")); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; pnlDialog = new javax.swing.JPanel(); pnlButtons = new javax.swing.JPanel(); btnNoAgree = new javax.swing.JButton(); btnAgree = new javax.swing.JButton(); pnlInstructio... |
lblLicenseAgreement.setText("License Agreement"); | lblLicenseAgreement.setText(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/Resource").getString("LICENSE_AGREEMENT")); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; pnlDialog = new javax.swing.JPanel(); pnlButtons = new javax.swing.JPanel(); btnNoAgree = new javax.swing.JButton(); btnAgree = new javax.swing.JButton(); pnlInstructio... |
lblInstructions1.setText("Please read the following License Agreement before continuing."); | lblInstructions1.setText(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/Resource").getString("READ_LICENCE")); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; pnlDialog = new javax.swing.JPanel(); pnlButtons = new javax.swing.JPanel(); btnNoAgree = new javax.swing.JButton(); btnAgree = new javax.swing.JButton(); pnlInstructio... |
lblInstructions2.setText("Use the scroll bar to view the rest of the agreement."); | lblInstructions2.setText(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/Resource").getString("USE_SCROLL")); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; pnlDialog = new javax.swing.JPanel(); pnlButtons = new javax.swing.JPanel(); btnNoAgree = new javax.swing.JButton(); btnAgree = new javax.swing.JButton(); pnlInstructio... |
lblAgreeQuestion.setText("Do you agree to the terms of the preceding License Agreement?"); | lblAgreeQuestion.setText(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/Resource").getString("DO_YOU_AGREE")); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; pnlDialog = new javax.swing.JPanel(); pnlButtons = new javax.swing.JPanel(); btnNoAgree = new javax.swing.JButton(); btnAgree = new javax.swing.JButton(); pnlInstructio... |
lblDoNotAgreeDef.setText("If you choose \"I Do Not Agree\" the program will close."); | lblDoNotAgreeDef.setText(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/Resource").getString("IF_DONT_AGREE")); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; pnlDialog = new javax.swing.JPanel(); pnlButtons = new javax.swing.JPanel(); btnNoAgree = new javax.swing.JButton(); btnAgree = new javax.swing.JButton(); pnlInstructio... |
lblAgreeDef.setText("To use this program, you must choose \"I Agree.\""); | lblAgreeDef.setText(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/Resource").getString("TO_USE")); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; pnlDialog = new javax.swing.JPanel(); pnlButtons = new javax.swing.JPanel(); btnNoAgree = new javax.swing.JButton(); btnAgree = new javax.swing.JButton(); pnlInstructio... |
double arcWidth = 10.0f; double arcHeight = 10.0f; | protected void renderBead(final Graphics2D g, final Feature f, final SequenceRenderContext context) { Location loc = f.getLocation(); int min = loc.getMin(); int max = loc.getMax(); int dif = max - min; Shape shape; double arcWidth = 10.0f; double arcHeight = 10.0f; if (... | |
double posXW = min; | double posXW = context.sequenceToGraphics(min); | protected void renderBead(final Graphics2D g, final Feature f, final SequenceRenderContext context) { Location loc = f.getLocation(); int min = loc.getMin(); int max = loc.getMax(); int dif = max - min; Shape shape; double arcWidth = 10.0f; double arcHeight = 10.0f; if (... |
if (JComponent.class.isInstance(context)) { Rectangle visible = ((JComponent) context).getVisibleRect(); AffineTransform t = g.getTransform(); t.translate(visible.getX(), visible.getY()); try { if (! t.createInverse().createTransformedShape(visible) .intersects(posXW, posYN, width, height)) return; } catch (Non... | protected void renderBead(final Graphics2D g, final Feature f, final SequenceRenderContext context) { Location loc = f.getLocation(); int min = loc.getMin(); int max = loc.getMax(); int dif = max - min; Shape shape; double arcWidth = 10.0f; double arcHeight = 10.0f; if (... | |
width, height, | Math.floor(width), Math.floor(height), | protected void renderBead(final Graphics2D g, final Feature f, final SequenceRenderContext context) { Location loc = f.getLocation(); int min = loc.getMin(); int max = loc.getMax(); int dif = max - min; Shape shape; double arcWidth = 10.0f; double arcHeight = 10.0f; if (... |
double posYN = min; | double posYN = context.sequenceToGraphics(min); | protected void renderBead(final Graphics2D g, final Feature f, final SequenceRenderContext context) { Location loc = f.getLocation(); int min = loc.getMin(); int max = loc.getMax(); int dif = max - min; Shape shape; double arcWidth = 10.0f; double arcHeight = 10.0f; if (... |
ArgumentsMatchBuilder method( Constraint nameConstraint ); | ArgumentsMatchBuilder method( String name ); | ArgumentsMatchBuilder method( Constraint nameConstraint ); |
public static final void init(DataAccessDriver implementation) | public static void init(DataAccessDriver implementation) | public static final void init(DataAccessDriver implementation) { driver = implementation; } |
StructureModelDump dump = new StructureModelDump(System.out); | public boolean run(String[] args) { errorFound = false; if (!parseArguments(args)) { return false; } Log.setVerbose(options.verbose); KjcEnvironment environment = createEnvironment(options); setSourceVersion(environment.getSourceVersion()); ... | |
dump.print(asmManager); | StructureModelDump dump = new StructureModelDump(System.out, asmManager); dump.print(); | public boolean run(String[] args) { errorFound = false; if (!parseArguments(args)) { return false; } Log.setVerbose(options.verbose); KjcEnvironment environment = createEnvironment(options); setSourceVersion(environment.getSourceVersion()); ... |
new CCompilationUnitContext(compiler, environment, export); | new CCompilationUnitContext(compiler, environment, this); | public void adjustSuperTypes(CompilerBase compiler) throws PositionedError { CCompilationUnitContext context = new CCompilationUnitContext(compiler, environment, export); for (int i = 0; i < typeDeclarations.length; i++) { typeDeclarations[i].adjustSuperType(context); ... |
context = new CCompilationUnitContext(compiler, environment, export); | context = new CCompilationUnitContext(compiler, environment, this); | public void checkDependentTypes(CompilerBase compiler) throws PositionedError { CCompilationUnitContext context; context = new CCompilationUnitContext(compiler, environment, export); for (int i = 0; i < typeDeclarations.length; i++) { typeDeclarations[i].checkDependentTypes(context);... |
context = new CCompilationUnitContext(compiler, environment, export); | context = new CCompilationUnitContext(compiler, environment, this); | public void checkVirtualClassMethodSignatures(CompilerBase compiler) throws PositionedError { CCompilationUnitContext context; context = new CCompilationUnitContext(compiler, environment, export); for (int i = 0; i < typeDeclarations.length; i++) { typeDeclarations[i].checkVirtualCla... |
context = new CCompilationUnitContext(compiler, environment, export); | context = new CCompilationUnitContext(compiler, environment, this); | public void completeCClassInterfaces(CompilerBase compiler) throws PositionedError { CCompilationUnitContext context; context = new CCompilationUnitContext(compiler, environment, export); for (int i = 0; i < typeDeclarations.length; i++) { typeDeclarations[i].completeCClassInterfaces... |
new CCompilationUnitContext(compiler, environment, export); | new CCompilationUnitContext(compiler, environment, this); | public void createImplicitCaesarTypes(CompilerBase compiler) throws PositionedError { CCompilationUnitContext context = new CCompilationUnitContext(compiler, environment, export); for (int i = 0; i < typeDeclarations.length; i++) { typeDeclarations[i].createImplicitCaesar... |
} else { cu.setCollaboration(collabDecl); | public void joinAll(JCompilationUnit[] tree) { buildIndex(tree); for (int i = 0; i < tree.length; i++) { JCompilationUnit cu = tree[i]; if (!cu.getPackageName().isCollaboration()) { continue; } String collabName = cu.getPackageName().g... | |
if(!clazz.isMixinInterface() && clazz.isImplicit()) { if( clazz.isAbstract() || (clazz.isNested() && clazz.getOwner().isAbstract()) ) { continue; } | if (!clazz.isMixinInterface() && clazz.isImplicit() && clazz.isAbstract()) { continue; | public void genCode(TypeFactory factory, JCompilationUnit cus[]) { ArrayList<CSourceClass> classes = new ArrayList<CSourceClass>(100); for (JCompilationUnit cu : cus) { classes.addAll(cu.getContext().getAndCleanSourceClasses()); } BytecodeOptimizer optimizer... |
unwovenClasses = new ArrayList(); | unwovenClasses = new ArrayList<UnwovenClassFile>(); | public CaesarWeaver(String destination) { unwovenClasses = new ArrayList(); this.destination = destination; } |
JLocalVariable.DES_GENERATED, | private JStatement createVarDec(CBodyContext context) { //consider deploy(null), otherwise compilation error if (aspectExpression instanceof JNullLiteral) { return new JEmptyStatement(getTokenReference(), null); } TokenReference where = getTokenReference(); JExpression prefix = new JTypeN... | |
CaesarBcelWorld.createInstance(options.classpath); CaesarBcelWorld world = CaesarBcelWorld.getInstance(); | CaesarBcelWorld world = CaesarBcelWorld.createInstance(options.classpath); | protected void initialize(KjcEnvironment environment) { super.initialize(environment); messageHandler = new CaesarMessageHandler(this); // create static instance of bcel world CaesarBcelWorld.createInstance(options.classpath); CaesarBcelWorld world = CaesarBcelWorl... |
CaesarBcelWorld.getInstance().getWorld().setModel(model); | protected void initialize(KjcEnvironment environment) { super.initialize(environment); messageHandler = new CaesarMessageHandler(this); // create static instance of bcel world CaesarBcelWorld.createInstance(options.classpath); CaesarBcelWorld world = CaesarBcelWorl... | |
CaesarAsmBuilder.build(cu[i], model); | CaesarAsmBuilder.build(cu[i], asmManager); | protected void preWeaveProcessing(JCompilationUnit[] cu) { // redefine in subclass if(Main.buildAsm){ for (int i = 0; i < cu.length; i++) { // note: AsmBuilder.build() starts the Visitor-part of AsmBuilder // iterating over the compilationunits and adding appropriate Nodes to ... |
if(Main.buildAsm){ if (model == null) { model = CaesarAsmBuilder.createHierarchy(); } CaesarAsmBuilder.preBuild(model); } | public boolean run(String[] args) { // If we should build the asm, create a new model and start the build if(Main.buildAsm){ // Make sure we have an instance of the structure model if (model == null) { model = CaesarAsmBuilder.createHierarchy(); } CaesarAsmBuilder.p... | |
CaesarAsmBuilder.postBuild(model); | CaesarAsmBuilder.postBuild(asmManager); | public boolean run(String[] args) { // If we should build the asm, create a new model and start the build if(Main.buildAsm){ // Make sure we have an instance of the structure model if (model == null) { model = CaesarAsmBuilder.createHierarchy(); } CaesarAsmBuilder.p... |
dump.print("", model.getRoot()); | dump.print(asmManager); | public boolean run(String[] args) { // If we should build the asm, create a new model and start the build if(Main.buildAsm){ // Make sure we have an instance of the structure model if (model == null) { model = CaesarAsmBuilder.createHierarchy(); } CaesarAsmBuilder.p... |
CaesarBcelWorld.createInstance(); CaesarBcelWorld bcelWorld = CaesarBcelWorld.getInstance(); | CaesarBcelWorld bcelWorld = CaesarBcelWorld.createInstance(); if (asmManager != null) { bcelWorld.getWorld().setModel(asmManager.getHierarchy()); } | protected void weaveClasses() { /* Reset the world for the weaver, so that it does not see source files */ CaesarBcelWorld.createInstance(); CaesarBcelWorld bcelWorld = CaesarBcelWorld.getInstance(); //tells the weaver whether it should inline the around advices in the calling code, //l... |
} else if (moveDirection == -1 && distanceRemaining > 1) { | } else if (moveDirection == -1 && distanceRemaining > 0) { | public void updateMovement() { if (distanceRemaining == 0 && velocity == 0) { return; } lastX = x; lastY = y; if (!slowingDown) { // Set moveDir and slow down for move(0) if (moveDirection == 0) { // On move(0), we're always slowing down. slowingDown = true; // Pretend we were moving in the di... |
oldBulletState = BULLET_STATE_SHOT; | lastBulletState = BULLET_STATE_SHOT; | public BulletPeer(RobotPeer owner, Battle battle) { super(); this.owner = owner; this.battle = battle; this.battleField = battle.getBattleField(); bullet = new Bullet(this); bulletState = BULLET_STATE_SHOT; oldBulletState = BULLET_STATE_SHOT; } |
active = newActive; | isActive = newActive; | public synchronized void setActive(boolean newActive) { active = newActive; } |
for (Condition c : customEvents) { | for (int i = 0; i < customEvents.size(); i++) { c = customEvents.elementAt(i); | public void processEvents() { // Process custom events if (customEvents != null) { for (Condition c : customEvents) { robotPeer.setTestingCondition(true); boolean conditionSatisfied = c.test(); robotPeer.setTestingCondition(false); if (conditionSatisfied) { eventQueue.add(new CustomEvent(c)); } ... |
boolean conditionSatisfied = c.test(); | conditionSatisfied = c.test(); | public void processEvents() { // Process custom events if (customEvents != null) { for (Condition c : customEvents) { robotPeer.setTestingCondition(true); boolean conditionSatisfied = c.test(); robotPeer.setTestingCondition(false); if (conditionSatisfied) { eventQueue.add(new CustomEvent(c)); } ... |
public int addNew(Forum forum) throws Exception { | public int addNew(Forum forum) { | public int addNew(Forum forum) throws Exception { // TODO Auto-generated method stub return 0; } |
public List checkUnreadTopics(int forumId, long lastVisit) throws Exception | public List checkUnreadTopics(int forumId, long lastVisit) | public List checkUnreadTopics(int forumId, long lastVisit) throws Exception { // TODO Auto-generated method stub return null; } |
public void decrementTotalTopics(int forumId, int count) throws Exception { | public void decrementTotalTopics(int forumId, int count) { | public void decrementTotalTopics(int forumId, int count) throws Exception { // TODO Auto-generated method stub } |
public void delete(int forumId) throws Exception { | public void delete(int forumId) { | public void delete(int forumId) throws Exception { // TODO Auto-generated method stub } |
public ForumStats getBoardStatus() throws Exception | public ForumStats getBoardStatus() | public ForumStats getBoardStatus() throws Exception { // TODO Auto-generated method stub return null; } |
public LastPostInfo getLastPostInfo(int forumId) throws Exception { | public LastPostInfo getLastPostInfo(int forumId) { | public LastPostInfo getLastPostInfo(int forumId) throws Exception { // TODO Auto-generated method stub return null; } |
public int getMaxPostId(int forumId) throws Exception { | public int getMaxPostId(int forumId) { | public int getMaxPostId(int forumId) throws Exception { // TODO Auto-generated method stub return 0; } |
public List getModeratorList(int forumId) throws Exception | public List getModeratorList(int forumId) | public List getModeratorList(int forumId) throws Exception { // TODO Auto-generated method stub return null; } |
public int getTotalMessages() throws Exception { | public int getTotalMessages() { | public int getTotalMessages() throws Exception { // TODO Auto-generated method stub return 0; } |
public int getTotalTopics(int forumId) throws Exception { | public int getTotalTopics(int forumId) { | public int getTotalTopics(int forumId) throws Exception { // TODO Auto-generated method stub return 0; } |
public void incrementTotalTopics(int forumId, int count) throws Exception { | public void incrementTotalTopics(int forumId, int count) { | public void incrementTotalTopics(int forumId, int count) throws Exception { // TODO Auto-generated method stub } |
public boolean isUserSubscribed(int forumId, int userId) throws Exception { | public boolean isUserSubscribed(int forumId, int userId) { | public boolean isUserSubscribed(int forumId, int userId) throws Exception { // TODO Auto-generated method stub return false; } |
public void moveTopics(String[] topics, int fromForumId, int toForumId) throws Exception { | public void moveTopics(String[] topics, int fromForumId, int toForumId) { | public void moveTopics(String[] topics, int fromForumId, int toForumId) throws Exception { // TODO Auto-generated method stub } |
public List notifyUsers(Forum forum) throws Exception { | public List notifyUsers(Forum forum) { | public List notifyUsers(Forum forum) throws Exception { // TODO Auto-generated method stub return null; } |
public void removeSubscription(int forumId, int userId) throws Exception { | public void removeSubscription(int forumId, int userId) { | public void removeSubscription(int forumId, int userId) throws Exception { // TODO Auto-generated method stub } |
public void removeSubscriptionByForum(int forumId) throws Exception { | public void removeSubscriptionByForum(int forumId) { | public void removeSubscriptionByForum(int forumId) throws Exception { // TODO Auto-generated method stub } |
public List selectAll() throws Exception { | public List selectAll() { | public List selectAll() throws Exception { // TODO Auto-generated method stub return null; } |
public Forum selectById(int forumId) throws Exception { | public Forum selectById(int forumId) { | public Forum selectById(int forumId) throws Exception { // TODO Auto-generated method stub return null; } |
public void setLastPost(int forumId, int postId) throws Exception { | public void setLastPost(int forumId, int postId) { | public void setLastPost(int forumId, int postId) throws Exception { // TODO Auto-generated method stub } |
public void setModerated(int categoryId, boolean status) throws Exception | public void setModerated(int categoryId, boolean status) | public void setModerated(int categoryId, boolean status) throws Exception { // TODO Auto-generated method stub } |
public Forum setOrderDown(Forum f, Forum r) throws Exception { | public Forum setOrderDown(Forum f, Forum r) { | public Forum setOrderDown(Forum f, Forum r) throws Exception { // TODO Auto-generated method stub return null; } |
public Forum setOrderUp(Forum f, Forum r) throws Exception { | public Forum setOrderUp(Forum f, Forum r) { | public Forum setOrderUp(Forum f, Forum r) throws Exception { // TODO Auto-generated method stub return null; } |
public void subscribeUser(int forumId, int userId) throws Exception { | public void subscribeUser(int forumId, int userId) { | public void subscribeUser(int forumId, int userId) throws Exception { // TODO Auto-generated method stub } |
public void update(Forum forum) throws Exception { | public void update(Forum forum) { | public void update(Forum forum) throws Exception { // TODO Auto-generated method stub } |
public OutputStreamMonitor(InputStream stream) { | public OutputStreamMonitor(InputStream stream, SocketExceptionHandler listener) { | public OutputStreamMonitor(InputStream stream) { fStream = new BufferedInputStream(stream, 8192); fContents= new StringBuffer(); } |
fExceptionListener = listener; | public OutputStreamMonitor(InputStream stream) { fStream = new BufferedInputStream(stream, 8192); fContents= new StringBuffer(); } | |
DebugPlugin.log(ioe); | private void read() { lastSleep = System.currentTimeMillis(); long currentTime = lastSleep; byte[] bytes= new byte[BUFFER_SIZE]; int read = 0; while (read >= 0) { try { if (fKilled) { break; } read= fStream... | |
setFault(e); | recordFault(e); | public void execute() { assertNotCompleted(); try { getTheFactory().deleteConnection(connectionIndex); } catch (RuntimeException e) { setFault(e); } completed(); } |
HJBConnection.class.getName(), new Integer(getConnectionIndex())); | new Integer(getConnectionIndex()), HJBConnection.class.getName()); | public String getDescription() { return strings().getString(HJBStrings.DESCRIPTION_OF_DELETE_COMMANDS, HJBConnection.class.getName(), new Integer(getConnectionIndex())); } |
multi.addBodyPart(part, Integer.MAX_VALUE); | public void onSend(SubEthaMessage msg, SendFilterContext ctx) throws IgnoreException, MessagingException { if (log.isDebugEnabled()) log.debug("AppendFooterFilter: onSend()"); try { String footerContent = (String) ctx.getArgument(ARG_FOOTER); // Add a link to the message in the archive into the context. ... | |
int count = multi.getCount(); multi.addBodyPart(part, count+1); | public void onSend(SubEthaMessage msg, SendFilterContext ctx) throws IgnoreException, MessagingException { if (log.isDebugEnabled()) log.debug("AppendFooterFilter: onSend()"); try { String footerContent = (String) ctx.getArgument(ARG_FOOTER); // Add a link to the message in the archive into the context. ... | |
entryPoints = new int [alfaSize]; | entryPoints = new int [fa.nodeCount()]; | ArrayStateMachine(String name, FiniteAutomaton fa, boolean greedy) { this.name = name; alfa = fa.getAlphabet(); int alfaSize = alfa.size(); entryPoints = new int [alfaSize]; transitions = new byte [alfaSize * fa.nodeCount()]; this.greedy =... |
transitions[entryPoints[Math.abs(currTransition.getSource().getID()) + symIdx]] | transitions[entryPoints[Math.abs(currTransition.getSource().getID())] + symIdx] | private void convert(FiniteAutomaton fa) { try { AlphabetIndex alfaIdx = AlphabetManager.getAlphabetIndex(alfa); int idx = 0; int alfaSize = alfa.size(); // initialise pointer array for (int i = 0; i < e... |
void setListener(PatternListener listener) | public void setListener(PatternListener listener) | void setListener(PatternListener listener) { this.listener = listener; } |
outerThis.setGenerated(); | public void addOuterThis(CContext context) throws PositionedError { try { if (outerThis == null) { sourceClass.setHasOuterThis(true); CType ownerType = //getOwner().getAbstractType(); new CClassNameType(getOwner(... | |
} else if (context instanceof CBlockContext){ env = ((CBlockContext)context).getEnvironment(); ectx = new CExpressionContext( (CBlockContext)context, env ); | } else if (context instanceof CBodyContext){ env = ((CBodyContext)context).getEnvironment(); ectx = new CExpressionContext( (CBodyContext)context, env ); | public CType checkType(CTypeContext context) throws UnpositionedError { // IVICA: try to lookup the path first JExpression expr = convertToExpression(); if (expr == null){ throw new UnpositionedError(KjcMessages.TYPE_UNKNOWN, qualifiedName); } CContext ctx = (CContext)context; ... |
parameters, | public CSourceMethod checkInterface(CClassContext context) throws PositionedError { CMethodContext self = new CMethodContext( context, context.getEnvironment(), this ); // in a mixin a method may not be package-visible if(context.getCClass().isMixin()) { check... | |
oAttQName.setQName("metadata"); | oAttQName.setQName("metaData"); | private void parseSummaryLine(String poLine) throws SAXException { //Also remember in header add query attribute and database type? //Should split this out into different implementations //according to program and version oSummaryLineHelper.parse(poLine,oMap,oVersion); aoKeys = (String[])(oMap.keySet().toArray(aoAr... |
public void deliver(String from, String recipient, byte[] data) { | public void deliver(String from, String recipient, InputStream data) throws IOException { | public void deliver(String from, String recipient, byte[] data) { for (MessageListener messageListener : listeners) { if (messageListener.accept(from, recipient)) { messageListener.deliver(from, recipient, data); } } } |
public void deliver(String from, String recipient, byte[] data); | public void deliver(String from, String recipient, InputStream data) throws TooMuchDataException, IOException; | public void deliver(String from, String recipient, byte[] data); |
final String dirPerms = getRepository().getPermissions().getDirectoryMode(); | String dirPerms = getRepository().getPermissions().getDirectoryMode(); | public void put( File source, String resourceName ) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException { String basedir = getRepository().getBasedir(); resourceName = StringUtils.replace( resourceName, "\\", "/" ); String dir = PathUtils.dirname( res... |
executeCommand( umaskCmd ); | public void put( File source, String resourceName ) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException { String basedir = getRepository().getBasedir(); resourceName = StringUtils.replace( resourceName, "\\", "/" ); String dir = PathUtils.dirname( res... | |
String mkdirCmd = umaskCmd + "mkdir -p -m " + getRepository().getPermissions().getDirectoryMode() + " " + basedir + "/" + dir + "\n"; | String mkdirCmd = umaskCmd + "mkdir -p -m " + basedir + "/" + dir + "\n"; | public void put( File source, String resourceName ) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException { String basedir = getRepository().getBasedir(); resourceName = StringUtils.replace( resourceName, "\\", "/" ); String dir = PathUtils.dirname( res... |
IPSTemplateSlot slot, Map<String, Object> params) throws Throwable | String slotName, Map<String, Object> params) throws Throwable | public List<IPSAssemblyItem> getSlotContents(IPSAssemblyItem item, IPSTemplateSlot slot, Map<String, Object> params) throws Throwable { try { if (slot == null) { throw new IllegalArgumentException( "slot may not be null, check template's slot reference"... |
"slot may not be null, check template's slot reference"); | "slot not found, check template's slot reference"); | public List<IPSAssemblyItem> getSlotContents(IPSAssemblyItem item, IPSTemplateSlot slot, Map<String, Object> params) throws Throwable { try { if (slot == null) { throw new IllegalArgumentException( "slot may not be null, check template's slot reference"... |
IPSAssemblyService asm = PSAssemblyServiceLocator.getAssemblyService(); | public List<IPSAssemblyItem> getSlotContents(IPSAssemblyItem item, IPSTemplateSlot slot, Map<String, Object> params) throws Throwable { try { if (slot == null) { throw new IllegalArgumentException( "slot may not be null, check template's slot reference"... | |
public void deliver(String from, String recipient, byte[] data) | public void deliver(String from, String recipient, InputStream input) throws TooMuchDataException, IOException | public void deliver(String from, String recipient, byte[] data) { try { if (!this.injector.inject(from, recipient, data)) throw new RuntimeException("Data no longer wanted"); } catch (MessagingException ex) { // Problem parsing the data throw new RuntimeException(ex); } } |
if (!this.injector.inject(from, recipient, data)) | if (!this.injector.inject(from, recipient, input)) | public void deliver(String from, String recipient, byte[] data) { try { if (!this.injector.inject(from, recipient, data)) throw new RuntimeException("Data no longer wanted"); } catch (MessagingException ex) { // Problem parsing the data throw new RuntimeException(ex); } } |
catch (LimitExceededException ex) { throw new TooMuchDataException(); } | public void deliver(String from, String recipient, byte[] data) { try { if (!this.injector.inject(from, recipient, data)) throw new RuntimeException("Data no longer wanted"); } catch (MessagingException ex) { // Problem parsing the data throw new RuntimeException(ex); } } | |
+ "/testProvider/testFactory/connection-10/session-0/subscriber-0[source=mockTopic,nolocal?=false]" | + "/testProvider/testFactory/connection-10/session-0/subscriber-0[(source mockTopic) (nolocal? false)]" | protected String createSomeSessionObjects() { testConnection.createSession(true, Session.AUTO_ACKNOWLEDGE); addDefaultTestConsumer(); addDefaultTestProducer(); addDefaultTestSubscriber(); addDefaultTestBrowser(); String expectedOutput = "/testProvider/testFactory/connection... |
+ "/testProvider/testFactory/connection-10/session-0/producer-0[P(-4),target=supplied-by-sender]" | + "/testProvider/testFactory/connection-10/session-0/producer-0[(target supplied-by-sender) (priority -4)]" | protected String createSomeSessionObjects() { testConnection.createSession(true, Session.AUTO_ACKNOWLEDGE); addDefaultTestConsumer(); addDefaultTestProducer(); addDefaultTestSubscriber(); addDefaultTestBrowser(); String expectedOutput = "/testProvider/testFactory/connection... |
+ "/testProvider/testFactory/connection-10/session-0/browser-0[source=mockQueue]"; | + "/testProvider/testFactory/connection-10/session-0/browser-0[(source mockQueue)]"; | protected String createSomeSessionObjects() { testConnection.createSession(true, Session.AUTO_ACKNOWLEDGE); addDefaultTestConsumer(); addDefaultTestProducer(); addDefaultTestSubscriber(); addDefaultTestBrowser(); String expectedOutput = "/testProvider/testFactory/connection... |
+ "/testProvider/testFactory/connection-10/session-0/subscriber-0[source=mockTopic,nolocal?=false]" | + "/testProvider/testFactory/connection-10/session-0/subscriber-0[(source mockTopic) (nolocal? false)]" | public void testRecurseListingAddsSessionListings() { StringWriter sw = new StringWriter(); createSomeSessionObjects(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + "message-selector=testSelector" ... |
+ "/testProvider/testFactory/connection-10/session-0/producer-0[P(-4),target=supplied-by-sender]" | + "/testProvider/testFactory/connection-10/session-0/producer-0[(target supplied-by-sender) (priority -4)]" | public void testRecurseListingAddsSessionListings() { StringWriter sw = new StringWriter(); createSomeSessionObjects(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + "message-selector=testSelector" ... |
+ "/testProvider/testFactory/connection-10/session-0/browser-0[source=mockQueue]" | + "/testProvider/testFactory/connection-10/session-0/browser-0[(source mockQueue)]" | public void testRecurseListingAddsSessionListings() { StringWriter sw = new StringWriter(); createSomeSessionObjects(); String expectedOutput = "/testProvider/testFactory/connection-10/session-0/consumer-0" + CR + "message-selector=testSelector" ... |
SimpleHash context) throws Exception | SimpleHash context) | public Template process(ActionServletRequest request, HttpServletResponse response, SimpleHash context) throws Exception { new AdminAction().checkAdmin(); return super.process(request, response, context); } |
Set allSymbols = getAllSymbols(alpha); | Set allSymbols = new HashSet(); for (Iterator i = alpha.iterator(); i.hasNext(); ) { allSymbols.add(i.next()); } | public static Symbol getAllAmbiguitySymbol(FiniteAlphabet alpha) { Set allSymbols = getAllSymbols(alpha); try { return alpha.getAmbiguity(allSymbols); } catch (IllegalSymbolException ex) { throw new BioError(ex, "Assertion failure: coudn't recover all-ambiguity symbol"); } } |
code.closeScope(); | public void genCode(GenerationContext context) { CodeSequence code = context.getCodeSequence(); setLineNumber(code); code.pushContext(this); if (cond.isConstant() && cond.booleanValue()) { // while (true) code.plantLabel(getContinueLabel()); // body: body.genCode(context); // BODY CO... | |
int swap = qStart; | int swap = sStart; | private SeqSimilaritySearchSubHit makeSubHit() throws BioException { // BLASTP output has the strands implied to be POSITIVE Strand qStrand = StrandedFeature.POSITIVE; Strand sStrand = StrandedFeature.POSITIVE; // Override where an explicit strand is given (FASTA DNA, // FASTA ... |
ev = Double.parseDouble((String) subHitData.get("expectValue")); | { String val = (String) subHitData.get("expectValue"); if (val.startsWith("e")) ev = Double.parseDouble("1" + val); else ev = Double.parseDouble(val); } | private SeqSimilaritySearchSubHit makeSubHit() throws BioException { // BLASTP output has the strands implied to be POSITIVE Strand qStrand = StrandedFeature.POSITIVE; Strand sStrand = StrandedFeature.POSITIVE; // Override where an explicit strand is given (FASTA DNA, // FASTA ... |
if (tokenParser == null) { String identifier; if (subHitData.containsKey("hitSequenceType")) identifier = (String) subHitData.get("hitSequenceType"); else if (resultPreAnnotation.containsKey("program")) identifier = (String) resultPreAnnotation.get("program"); else throw new BioException("Failed to determine sequen... | private SeqSimilaritySearchSubHit makeSubHit() throws BioException { // BLASTP output has the strands implied to be POSITIVE Strand qStrand = StrandedFeature.POSITIVE; Strand sStrand = StrandedFeature.POSITIVE; // Override where an explicit strand is given (FASTA DNA, // FASTA ... | |
.method(methodName) .with(not(eq(keyName))) .will(throwException(new JMSException("thrown as a test"))); | .method("getString") .with(eq(keyName)) .will(returnValue("" + methodResult)); if ("getString".equals(methodName)) { mockJMSMessage.stubs() .method(methodName) .with(not(eq(keyName))) .will(returnValue("" + Boolean.TRUE)); } else { mockJMSMessage.stubs() .method(methodName) .with(not(eq(keyName))) .will(throwException(... | public void testCopyToHJBMessageCopiesMapValuesOK() throws Exception { Mock mockJMSMessage = mock(MapMessage.class); attributeInvoker.stubAllPropertyGettersFor(mockJMSMessage); Map expectedValues = new HashMap(); for (int i = 0; i < ORDERED_MAP_MESSAGE_METHODS.length; i++) { S... |
if ("".equals(line.trim())) continue; | public Map asMap(String mapAsText) throws HJBException { try { LineNumberReader lines = new LineNumberReader(new StringReader(mapAsText)); Map result = new HashMap(); for (String line = lines.readLine(); null != line; line = lines.readLine()) { int equalsPositi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.