rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (notEmptyPtr) { | if (patterns != null) { | List<Pattern[]> compileQueries(final Reader reader) { CSVReader r = new CSVReader(reader);//Parsing rules for queries are always default List<String[]> list; try { list = r.readAll(); } catch (IOException e) { throw new CsvProviderException("Unable to read CSV query... |
try { index = Integer.valueOf(name); } catch (NumberFormatException e) { ExceptionUtils.ignoreThrowable(e); } | index = Integer.valueOf(name); | public Integer find(String name) { if (name == null) { throw new IllegalArgumentException("Parameter name cannot be null"); } Integer index = map == null ? null : map.get(name); //If name is not a column name and is integer if (index == null && StringUtils.isDecimalInt(... |
inputWordSet.add(inputWordField.getText()); addInputWordSet(inputWordSet); | if (0 < inputWordField.getText().length()) { inputWordSet.add(inputWordField.getText()); addInputWordSet(inputWordSet); } | public void actionPerformed(ActionEvent e) { JList wordJList = null; Set<InputWordModel> wordModelSet = null; if (wordListTabbedPane.getSelectedIndex() == 0) { wordJList = perfectMatchedWordJList; wordModelSet = perfectMatchedWordModelSet; ... |
documentArea = new JTextArea(); | documentArea = new JEditorPane("text/html", ""); | public DisambiguationPanel(ConstructClassPanel tp, ConstructPropertyPanel pp, DODDLEProject p) { project = p; constructClassPanel = tp; constructPropertyPanel = pp; inputModule = new InputModule(project); wordCorrespondConceptSetMap = new HashMap<String, Set<Concept>>(); co... |
documentArea.setLineWrap(true); | public DisambiguationPanel(ConstructClassPanel tp, ConstructPropertyPanel pp, DODDLEProject p) { project = p; constructClassPanel = tp; constructPropertyPanel = pp; inputModule = new InputModule(project); wordCorrespondConceptSetMap = new HashMap<String, Set<Concept>>(); co... | |
viewHilightCheckBox = new JCheckBox(Translator.getString("DisambiguationPanel.HighlightInputWords"), false); | hilightInputWordCheckBox = new JCheckBox(Translator.getString("DisambiguationPanel.HighlightInputWords"), false); hilightInputWordCheckBox.addActionListener(this); | public DisambiguationPanel(ConstructClassPanel tp, ConstructPropertyPanel pp, DODDLEProject p) { project = p; constructClassPanel = tp; constructPropertyPanel = pp; inputModule = new InputModule(project); wordCorrespondConceptSetMap = new HashMap<String, Set<Concept>>(); co... |
documentPanel.add(viewHilightCheckBox, BorderLayout.SOUTH); | documentPanel.add(hilightInputWordCheckBox, BorderLayout.SOUTH); | public DisambiguationPanel(ConstructClassPanel tp, ConstructPropertyPanel pp, DODDLEProject p) { project = p; constructClassPanel = tp; constructPropertyPanel = pp; inputModule = new InputModule(project); wordCorrespondConceptSetMap = new HashMap<String, Set<Concept>>(); co... |
} else if (e.getSource() == hilightInputWordCheckBox) { hilightInputWord(); } else if (e.getSource() == showAroundConceptTreeCheckBox) { showAroundConceptTree(); | public void actionPerformed(ActionEvent e) { if (e.getSource() == perfectMatchedWordJList || e.getSource() == partialMatchedWordJList) { perfectMatchedWordJList.repaint(); partialMatchedWordJList.repaint(); } else if (e.getSource() == addAsSameConceptRadioButton) { sav... | |
clearPanel(); | public void addInputWordSet(Set<String> ws) { if (wordSet == null) { wordSet = new HashSet<String>(); } wordSet.addAll(ws); if (DODDLE.IS_USING_DB) { inputModule.initDataWithDB(wordSet); } else { inputModule.initDataWithMem(wordSet); } ... | |
JPanel perfectMatchedWordListPanel = getPerfectMatchedWordListPanel(); JPanel partialMatchedWordListPanel = getPartialMatchedWordListPanel(); | perfectMatchedWordListPanel = getPerfectMatchedWordListPanel(); partialMatchedWordListPanel = getPartialMatchedWordListPanel(); | private JPanel getWordListPanel() { JPanel perfectMatchedWordListPanel = getPerfectMatchedWordListPanel(); JPanel partialMatchedWordListPanel = getPartialMatchedWordListPanel(); wordListTabbedPane = new JTabbedPane(); wordListTabbedPane.add(Translator.getString("DisambiguationPanel.Perfe... |
hilightSelectedWord(orgWord); | hilightInputWord(); | private void selectAmbiguousConcept(JList wordJList) { if (!wordJList.isSelectionEmpty()) { String orgWord = ((InputWordModel) wordJList.getSelectedValue()).getWord(); String selectedWord = ((InputWordModel) wordJList.getSelectedValue()).getMatchedWord(); Set<Concept> concept... |
if (showAroundConceptTreeCheckBox.isSelected()) { Object[] ecs = conceptSetJList.getSelectedValues(); Set<List<Concept>> pathToRootSet = new HashSet<List<Concept>>(); for (int i = 0; i < ecs.length; i++) { EvalConcept ec = (EvalConcept) ecs[i]; if (ec.getConcept().getPrefix().equals("edr")) { pathToRootSet.addAll(EDRTr... | showAroundConceptTree(); | private void selectCorrectConcept(JList wordJList) { if (!wordJList.isSelectionEmpty() && !conceptSetJList.isSelectionEmpty()) { InputWordModel iwModel = (InputWordModel) wordJList.getSelectedValue(); Object[] evalConcepts = conceptSetJList.getSelectedValues(); String word = ... |
enWordList.setListData(new Object[0]); jpWordList.setListData(new Object[0]); enExplanationArea.setText(""); jpExplanationArea.setText(""); addAsSameConceptRadioButton.setEnabled(false); addAsSubConceptRadioButton.setEnabled(false); | clearConceptInfoPanel(); | public void selectTopList() { if (perfectMatchedWordJList.getModel().getSize() != 0) { perfectMatchedWordJList.setSelectedIndex(0); } else { enWordList.setListData(new Object[0]); jpWordList.setListData(new Object[0]); enExplanationArea.setText(""); ... |
DODDLE.getLogger().log(Level.DEBUG, "階層関係が定義されていない概念: " + c); | public Set<List<Concept>> getPathToRootSet(String id) { Concept c = null; if (isSpecial) { c = EDRDic.getEDRTConcept(id); } else { c = EDRDic.getEDRConcept(id); } Set<TreeNode> nodeSet = idNodeSetMap.get(id); Set<List<Concept>> pathToRootSet = new Hash... | |
cancelButton.setVisible(true); | public void initNormal(int max) { if (!isLock) { maxValue = max; progressBar.setIndeterminate(false); progressBar.setMinimum(0); progressBar.setMaximum(maxValue); progressBar.setValue(0); currentValue = 0; progressBar.setVisible(tru... | |
public void addValue() { if (!isLock) { addProjectValue(); | public void addValue(String message) { currentValue++; if (maxValue < 10) { setValue(message); } else if (currentValue % (maxValue / 10) == 0) { setValue(message); | public void addValue() { if (!isLock) { addProjectValue(); } } |
cancelButton.setVisible(false); | public void hideProgressBar() { if (!isLock) { progressBar.setVisible(false); timer = null; } } | |
return !inputWord.equals(matchedInputWord); | return !inputWord.equals(matchedInputWord) && 1 < wordList.size(); | public boolean isPartialMatchWord() { return !inputWord.equals(matchedInputWord); } |
public ConstructTreeOption(Concept c, String opt) { | public ConstructTreeOption(Concept c) { | public ConstructTreeOption(Concept c, String opt) { this.c = c; option = opt; } |
option = opt; | if (OptionDialog.isComplexWordSetSameConcept()) { option = "SAME"; } else { option = "SUB"; } | public ConstructTreeOption(Concept c, String opt) { this.c = c; option = opt; } |
rafis = new InputStream() { public int read() throws IOException { try { return raf.readByte(); } catch (EOFException e) { return -1; } } public long skip(long n) throws IOException { raf.seek(raf.getFilePointer() + n); return n; } public void close() throws IOException { raf.close(); } public int read(byte b[]) thr... | LocalFileRandomAccessContent(final File localFile, final RandomAccessMode mode) throws FileSystemException { super(mode); StringBuffer modes = new StringBuffer(2); if (mode.requestRead()) { modes.append('r'); } if (mode.requestWrite()) { mode... | |
return points.length / (3 * (numSegments + 1)); | return numSegments * (points.length / (3 * (numSegments + 1))); | public int getNumPrimitives() { return points.length / (3 * (numSegments + 1)); } |
if (line == 0) return; | public void intersectPrimitive(Ray r, int primID, IntersectionState state) { int hair = primID / numSegments; int line = primID % numSegments; int vRoot = hair * 3 * (numSegments + 1); int v0 = vRoot + line * 3; int v1 = v0 + 3; float vx = points[v1 + 0] - points[v0 + 0]; ... | |
state.getNormal().set(-r.dx, -r.dy, -r.dz); state.getGeoNormal().set(-r.dx, -r.dy, -r.dz); state.setShader(i.getShader(0)); | Shader s = i.getShader(0); state.setShader(s != null ? s : this); | public void prepareShadingState(ShadingState state) { state.init(); Instance i = state.getInstance(); state.getRay().getPoint(state.getPoint()); Ray r = state.getRay(); state.getNormal().set(-r.dx, -r.dy, -r.dz); state.getGeoNormal().set(-r.dx, -r.dy, -r.dz); state.s... |
int v1 = v0 + 3; float vx = points[v1 + 0] - points[v0 + 0]; float vy = points[v1 + 1] - points[v0 + 1]; float vz = points[v1 + 2] - points[v0 + 2]; Vector3 v = new Vector3(vx, vy, vz); | Vector3 v = getTangent(line, v0, state.getV()); | public void prepareShadingState(ShadingState state) { state.init(); Instance i = state.getInstance(); state.getRay().getPoint(state.getPoint()); Ray r = state.getRay(); state.getNormal().set(-r.dx, -r.dy, -r.dz); state.getGeoNormal().set(-r.dx, -r.dy, -r.dz); state.s... |
state.setBasis(OrthoNormalBasis.makeFromWV(state.getNormal(), v)); | state.setBasis(OrthoNormalBasis.makeFromWV(v, new Vector3(-r.dx, -r.dy, -r.dz))); state.getBasis().swapVW(); state.getNormal().set(0, 0, 1); state.getBasis().transform(state.getNormal()); state.getGeoNormal().set(state.getNormal()); | public void prepareShadingState(ShadingState state) { state.init(); Instance i = state.getInstance(); state.getRay().getPoint(state.getPoint()); Ray r = state.getRay(); state.getNormal().set(-r.dx, -r.dy, -r.dz); state.getGeoNormal().set(-r.dx, -r.dy, -r.dz); state.s... |
if (b.isEmpty()) return new BoundingBox(); | public final BoundingBox transform(BoundingBox b) { // special case extreme corners BoundingBox rb = new BoundingBox(transformP(b.getMinimum())); rb.include(transformP(b.getMaximum())); // do internal corners for (int i = 1; i < 7; i++) rb.include(transformP(b.getCorner... | |
final String message = REZ.getString( "create-folder.error", getName() ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider.ftp/create-folder.error", getName() ); | protected void doCreateFolder() throws Exception { if ( !ftpFs.getClient().makeDirectory( getName().getPath() ) ) { final String message = REZ.getString( "create-folder.error", getName() ); throw new FileSystemException( message ); } } |
final String message = REZ.getString( "delete-file.error", getName() ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider.ftp/delete-file.error", getName() ); | protected void doDelete() throws Exception { final FTPClient ftpClient = ftpFs.getClient(); boolean ok; if ( fileInfo.isDirectory() ) { ok = ftpClient.removeDirectory( getName().getPath() ); } else { ok = ftpClient.deleteFile( getName().getPa... |
final String message = REZ.getString( "finish-get.error", getName() ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider.ftp/finish-get.error", getName() ); | protected void doEndInput() throws Exception { if ( !ftpFs.getClient().completePendingCommand() ) { final String message = REZ.getString( "finish-get.error", getName() ); throw new FileSystemException( message ); } } |
final String message = REZ.getString( "finish-put.error", getName() ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider.ftp/finish-put.error", getName() ); | protected void doEndOutput() throws Exception { if ( !ftpFs.getClient().completePendingCommand() ) { final String message = REZ.getString( "finish-put.error", getName() ); throw new FileSystemException( message ); } } |
final String message = REZ.getString( "get-type.error", getName() ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider.ftp/get-type.error", getName() ); | protected FileType doGetType() throws Exception { if ( fileInfo == null ) { // Does not exist return null; } if ( fileInfo.isDirectory() ) { return FileType.FOLDER; } if ( fileInfo.isFile() ) { return FileT... |
final String msg = Messages.getString("vfs.impl/skipping-provider.warn", | final String msg = Messages.getString("vfs.impl/skipping-provider.debug", | private void addProvider(final Element providerDef, final boolean isDefault) throws FileSystemException { final String classname = providerDef.getAttribute("class-name"); // Make sure all required classes are in classpath final String[] requiredClasses = getRequiredClasses(providerDef... |
getLog().warn(msg); | getLog().debug(msg); | private void addProvider(final Element providerDef, final boolean isDefault) throws FileSystemException { final String classname = providerDef.getAttribute("class-name"); // Make sure all required classes are in classpath final String[] requiredClasses = getRequiredClasses(providerDef... |
public static String getString(final String code, final Object[] params) | public static String getString(final String code) | public static String getString(final String code, final Object[] params) { try { if (code == null) { return null; } final MessageFormat msg = findMessage(code); return msg.format(params); } catch (final MissingResou... |
try { if (code == null) { return null; } final MessageFormat msg = findMessage(code); return msg.format(params); } catch (final MissingResourceException mre) { return "Unknown message with code \"" + code + "\"."; } | return getString(code, new Object[0]); | public static String getString(final String code, final Object[] params) { try { if (code == null) { return null; } final MessageFormat msg = findMessage(code); return msg.format(params); } catch (final MissingResou... |
FileObject resolveFile(String name) throws FileSystemException; | FileObject resolveFile(FileName name) throws FileSystemException; | FileObject resolveFile(String name) throws FileSystemException; |
giEngine(new InstantGI(90, 1, 0.00002f, 0)); | parameter("gi.engine", "igi"); parameter("gi.igi.samples", 90); parameter("gi.igi.c", 0.00002f); options(DEFAULT_OPTIONS); | private void buildCornellBox() { // camera parameter("eye", new Point3(0, 0, -600)); parameter("target", new Point3(0, 0, 0)); parameter("up", new Vector3(0, 1, 0)); parameter("fov", 45.0f); String name = getUniqueName("camera"); camera(name, new PinholeLens()); ... |
public final void parameter(String name, int value) { parameterList.addInteger(name, value); | public final void parameter(String name, String value) { parameterList.addString(name, value); | public final void parameter(String name, int value) { parameterList.addInteger(name, value); } |
public Color(float r, float g, float b) { this.r = r; this.g = g; this.b = b; | public Color() { | public Color(float r, float g, float b) { this.r = r; this.g = g; this.b = b; } |
public InstantGI(int numPhotons, int numSets, float c, int numBias) { this.numPhotons = numPhotons; this.numSets = numSets; this.c = c; this.numBias = numBias; | public InstantGI(Options options) { numPhotons = options.getInt("gi.igi.samples", 64); numSets = options.getInt("gi.igi.sets", 1); c = options.getFloat("gi.igi.c", 0.00003f); numBias = options.getInt("gi.igi.bias_samples", 0); | public InstantGI(int numPhotons, int numSets, float c, int numBias) { this.numPhotons = numPhotons; this.numSets = numSets; this.c = c; this.numBias = numBias; virtualLights = null; } |
setIconImage(Utils.getImageIcon("doddle_splash.png").getImage()); | public DODDLE() { EDRDic.init(); rootPane = getRootPane(); desktop = new JDesktopPane(); optionDialog = new OptionDialog(this); STATUS_BAR = new StatusBarPanel(); Container contentPane = getContentPane(); makeActions(); makeMenuBar(); contentPane.add(ge... | |
add(progressBar, BorderLayout.EAST); | add(progressBarPanel, BorderLayout.EAST); | public StatusBarPanel() { progressBar = new JProgressBar(JProgressBar.HORIZONTAL); progressBar.setStringPainted(false); progressBar.setVisible(false); statusField = new JTextField(); statusField.setBackground(STATUS_BAR_COLOR); statusField.setEditable(false); setLayo... |
public void saveWordInfoTable(File saveFile) { if (wordInfoMap == null) { return; } try { BufferedWriter writer = new BufferedWriter(new FileWriter(saveFile)); writer.write("docNum=" + docNum + "\n"); for (Iterator i = wordInfoMap.values().iterator(); i.hasNext();) { WordInfo info = (WordInfo) i.next(); writer.write(in... | public void saveWordInfoTable() { JFileChooser chooser = new JFileChooser("."); int retval = chooser.showSaveDialog(DODDLE.rootPane); if (retval == JFileChooser.APPROVE_OPTION) { File file = chooser.getSelectedFile(); saveWordInfoTable(file); | public void saveWordInfoTable(File saveFile) { if (wordInfoMap == null) { return; } try { BufferedWriter writer = new BufferedWriter(new FileWriter(saveFile)); writer.write("docNum=" + docNum + "\n"); for (Iterator i = wordInfoMap.values().iterator(); i.hasNext();) { ... |
final String message = REZ.getString( "missing-double-slashes.error", uri ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider/missing-double-slashes.error", uri ); | protected void extractToPath( final String uri, final StringBuffer name, final ParsedUri parsedUri ) throws FileSystemException { // Extract the scheme final String scheme = extractScheme( uri, name ); parsedUri.setSche... |
final String message = REZ.getString( "missing-hostname.error", uri ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider/missing-hostname.error", uri ); | protected void extractToPath( final String uri, final StringBuffer name, final ParsedUri parsedUri ) throws FileSystemException { // Extract the scheme final String scheme = extractScheme( uri, name ); parsedUri.setSche... |
final String message = REZ.getString( "missing-port.error", uri ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider/missing-port.error", uri ); | protected void extractToPath( final String uri, final StringBuffer name, final ParsedUri parsedUri ) throws FileSystemException { // Extract the scheme final String scheme = extractScheme( uri, name ); parsedUri.setSche... |
final String message = REZ.getString( "missing-hostname-path-sep.error", uri ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider/missing-hostname-path-sep.error", uri ); | protected void extractToPath( final String uri, final StringBuffer name, final ParsedUri parsedUri ) throws FileSystemException { // Extract the scheme final String scheme = extractScheme( uri, name ); parsedUri.setSche... |
final String message = REZ.getString( "invalid-relative-path.error" ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider/invalid-relative-path.error" ); | public void normalisePath( final StringBuffer path ) throws FileSystemException { if ( path.length() == 0 ) { return; } // Adjust separators fixSeparators( path ); // Determine the start of the first element int startFirstElem = 0; if ( pa... |
UI.printWarning(Module.GEOM, "Shader \"%s\" was not declared yet - ignoring", shaders[i]); | UI.printWarning(Module.GEOM, "Shader \"%s\" was not declared yet - ignoring", shaderNames[i]); | public boolean update(ParameterList pl, SunflowAPI api) { String geometryName = pl.getString("geometry", null); if (geometry == null || geometryName != null) { if (geometryName == null) { UI.printError(Module.GEOM, "geometry parameter missing - unable to create instance"); ... |
UI.printError(Module.GEOM, "Unable to compute transform inverse"); | UI.printError(Module.GEOM, "Unable to compute transform inverse - determinant is: %g", o2w.determinant()); | public boolean update(ParameterList pl, SunflowAPI api) { String geometryName = pl.getString("geometry", null); if (geometry == null || geometryName != null) { if (geometryName == null) { UI.printError(Module.GEOM, "geometry parameter missing - unable to create instance"); ... |
final String port, | final int port, | protected GenericFileName( final String scheme, final String hostName, final String port, final String userInfo, final String path ) { super( scheme, path ); this.hostName = hostN... |
this.port = port; | if ( port > 0 ) { this.port = port; } else { this.port = getDefaultPort(); } | protected GenericFileName( final String scheme, final String hostName, final String port, final String userInfo, final String path ) { super( scheme, path ); this.hostName = hostN... |
public String getPort() | public int getPort() | public String getPort() { return port; } |
public abstract String getDefaultPort(); | public abstract int getDefaultPort(); | public abstract String getDefaultPort(); |
this.hierarchy.add(parent); | this.hierarchy.add(0, parent); | private void traverse(PageItem pi) { PageItem parent = pi.getParent(); if (parent != null) { this.hierarchy.add(parent); traverse(parent); } } |
publishService(target, mergeServiceProperties(beanName)); | publishService(target, mergeServiceProperties(targetBeanName)); | public void afterPropertiesSet() throws Exception { Assert.notNull(beanFactory, "required property 'beanFactory' has not been set"); Assert.notNull(bundleContext, "required property 'bundleContext' has not been set"); Assert.notNull(resolver, "required property 'resolver' was set to a null value"); Assert.notNull(... |
Properties p = resolver.getServiceProperties(); | Properties p = resolver.getServiceProperties(beanName); | private Properties mergeServiceProperties(String beanName) { Properties p = resolver.getServiceProperties(); if (serviceProperties != null) { p.putAll(serviceProperties); } return p; } |
Properties getServiceProperties(); | Properties getServiceProperties(String beanName); | Properties getServiceProperties(); |
boundedPrimitives = new ArrayList<BoundedPrimitive>(); | instanceList = new InstanceList(); | public Scene() { lightServer = new LightServer(this); boundedPrimitives = new ArrayList<BoundedPrimitive>(); primitives = new ArrayList<Primitive>(); intAccel = new UniformGrid(); camera = null; imageWidth = 640; imageHeight = 480; filter = null; thread... |
UI.printInfo("[SCN] * Primitives: %d", boundedPrimitives.size()); | UI.printInfo("[SCN] * Instances: %d", instanceList.getNumPrimitives()); | public void render(ImageSampler sampler, Display display) { if (display == null) display = new FrameDisplay(); if (camera == null) { UI.printError("[SCN] No camera found"); return; } // limit resolution to 16k imageWidth = MathUtils.clamp(imageWidt... |
if (!intAccel.build(boundedPrimitives)) | instanceList.trim(); if (!intAccel.build(instanceList)) | public void render(ImageSampler sampler, Display display) { if (display == null) display = new FrameDisplay(); if (camera == null) { UI.printError("[SCN] No camera found"); return; } // limit resolution to 16k imageWidth = MathUtils.clamp(imageWidt... |
public void setIntersectionAccelerator(IntersectionAccelerator accel) { | public void setIntersectionAccelerator(AccelerationStructure accel) { | public void setIntersectionAccelerator(IntersectionAccelerator accel) { intAccel = accel; changedGeometry = true; } |
state.current = null; | void trace(Ray r, IntersectionState state) { // reset object state.object = null; for (Primitive p : primitives) p.intersect(r, state); intAccel.intersect(r, state); } | |
public boolean build(AggregateTraceable primitives); | public boolean build(PrimitiveList primitives); | public boolean build(AggregateTraceable primitives); |
giEngine = GIEngineFactory.create(options); String caustics = options.getString("caustics", null); if (caustics == null || caustics.equals("none")) causticPhotonMap = null; if (caustics != null && caustics.equals("kd")) causticPhotonMap = new CausticPhotonMap(options); else { UI.printWarning(Module.LIGHT, "Unrecognized... | boolean build(Options options) { // read options maxDiffuseDepth = options.getInt("depths.diffuse", maxDiffuseDepth); maxReflectionDepth = options.getInt("depths.reflection", maxReflectionDepth); maxRefractionDepth = options.getInt("depths.refraction", maxRefractionDepth); // vali... | |
public void intersect(Ray r, Instance parent, IntersectionState istate); | public void intersect(Ray r, IntersectionState istate); | public void intersect(Ray r, Instance parent, IntersectionState istate); |
public static ProActiveDescriptor getProactiveDescriptor( String xmlDescriptorUrl) throws ProActiveException { return getProactiveDescriptor(xmlDescriptorUrl, false); | public static ProActiveDescriptor getProactiveDescriptor() throws ProActiveException, IOException { String padURL = System.getProperty("proactive.pad"); if (padURL == null) { return null; } else { return getProactiveDescriptor(padURL, true); } | public static ProActiveDescriptor getProactiveDescriptor( String xmlDescriptorUrl) throws ProActiveException { return getProactiveDescriptor(xmlDescriptorUrl, false); } |
public OsgiServiceInterceptor(HotSwappableTargetSource targetSource, Class serviceType) { | public OsgiServiceInterceptor(HotSwappableTargetSource targetSource, Class serviceType, Object unavailableService) { | public OsgiServiceInterceptor(HotSwappableTargetSource targetSource, Class serviceType) { this.targetSource = targetSource; this.serviceType = serviceType; } |
this.unavailableService = unavailableService; | public OsgiServiceInterceptor(HotSwappableTargetSource targetSource, Class serviceType) { this.targetSource = targetSource; this.serviceType = serviceType; } | |
while (targetSource.getTarget() == null && (numAttempts++ < this.maxRetries)) { | while (targetSource.getTarget() == unavailableService && (numAttempts++ < this.maxRetries)) { | public synchronized void before(Method method, Object[] args, Object target) throws Throwable { int numAttempts = 0; while (targetSource.getTarget() == null && (numAttempts++ < this.maxRetries)) { Thread.sleep(this.retryIntervalMillis); } if (targetSource.getTarget() == null) { ... |
if (targetSource.getTarget() == null) { | if (targetSource.getTarget() == unavailableService) { | public synchronized void before(Method method, Object[] args, Object target) throws Throwable { int numAttempts = 0; while (targetSource.getTarget() == null && (numAttempts++ < this.maxRetries)) { Thread.sleep(this.retryIntervalMillis); } if (targetSource.getTarget() == null) { ... |
FeatureHolder parent, | FeatureFilter filter, FeatureHolder parent, | public ProjectedFeatureHolder(FeatureHolder fh, FeatureHolder parent, int translation, boolean oppositeStrand) { this.wrapped = fh; this.parent = parent; this.translate = translation; this.opposit... |
this.wrapped = fh; this.parent = parent; this.translate = translation; this.oppositeStrand = oppositeStrand; this.topLevelFeatures = new ProjectionSet(wrapped); underlyingFeaturesChange = new ChangeListener() { public void preChange(ChangeEvent e) throws ChangeVetoException { if (hasListeners()) { getChangeSupport(Fe... | this(new LazyFilterFeatureHolder(fh, filter), parent, translation, oppositeStrand); | public ProjectedFeatureHolder(FeatureHolder fh, FeatureHolder parent, int translation, boolean oppositeStrand) { this.wrapped = fh; this.parent = parent; this.translate = translation; this.opposit... |
JLabel versionInfoLabel = new JLabel("Version: " + DODDLE.VERSION); versionInfoLabel.setBorder(BorderFactory.createLineBorder(Color.black)); versionInfoLabel.setFont(versionInfoLabel.getFont().deriveFont(Font.PLAIN, 18)); getContentPane().add(versionInfoLabel, BorderLayout.SOUTH); | JLabel versionInfoLabel = new JLabel("β Version: " + DODDLE.VERSION); versionInfoLabel.setFont(versionInfoLabel.getFont().deriveFont(Font.PLAIN, 14)); JLabel copyRightLabel = new JLabel("Copyright (C) 2004-2006 MMM Project"); copyRightLabel.setFont(versionInfoLabel.getFont().deriveFont(Font.PLAIN, 14)); JLabel urlLabel... | public SplashWindow() { ImageIcon logo = Utils.getImageIcon("doddle_splash.png"); JLabel logoLabel = new JLabel(logo); getContentPane().add(logoLabel, BorderLayout.CENTER); JLabel versionInfoLabel = new JLabel("Version: " + DODDLE.VERSION); versionInfoLabel.setBorder(BorderFactory... |
public static SymbolList complement(SymbolList list) throws IllegalAlphabetException { return SymbolListViews.translate(list, complementTable()); | static public Symbol complement(Symbol sym) throws IllegalSymbolException { if(sym == a) { return t; } else if(sym == g) { return c; } else if(sym == c) { return g; } else if(sym == t) { return a; } Symbol s = (Symbol) symbolToComplement.get(sym); if(s != null) { return s; } else { getDNA().validate(sym); throw new Bio... | public static SymbolList complement(SymbolList list) throws IllegalAlphabetException { return SymbolListViews.translate(list, complementTable()); } |
public FileObject createFileSystem(FileObject file) | public FileObject createFileSystem(String provider, FileObject file) | public FileObject createFileSystem(FileObject file) throws FileSystemException; |
if ( name.charAt( 0 ) == separatorChar ) | if ( name.charAt( 0 ) == SEPARATOR_CHAR ) | public static String extractFirstElement( final StringBuffer name ) { final int len = name.length(); if ( len < 1 ) { return null; } int startPos = 0; if ( name.charAt( 0 ) == separatorChar ) { startPos = 1; } for ( int pos = st... |
if ( name.charAt( pos ) == separatorChar ) | if ( name.charAt( pos ) == SEPARATOR_CHAR ) | public static String extractFirstElement( final StringBuffer name ) { final int len = name.length(); if ( len < 1 ) { return null; } int startPos = 0; if ( name.charAt( 0 ) == separatorChar ) { startPos = 1; } for ( int pos = st... |
public static String extractScheme( final String uri, final StringBuffer buffer ) | public static String extractScheme( final String uri ) | public static String extractScheme( final String uri, final StringBuffer buffer ) { if ( buffer != null ) { buffer.setLength( 0 ); buffer.append( uri ); } final int maxPos = uri.length(); for ( int pos = 0; pos < maxP... |
if ( buffer != null ) { buffer.setLength( 0 ); buffer.append( uri ); } final int maxPos = uri.length(); for ( int pos = 0; pos < maxPos; pos++ ) { final char ch = uri.charAt( pos ); if ( ch == ':' ) { final String scheme = uri.substring( 0, pos ); if ( buffer != null ) { buffer.delete( 0, pos + 1 ); } return scheme;... | return extractScheme( uri, null ); | public static String extractScheme( final String uri, final StringBuffer buffer ) { if ( buffer != null ) { buffer.setLength( 0 ); buffer.append( uri ); } final int maxPos = uri.length(); for ( int pos = 0; pos < maxP... |
name.setCharAt( i, separatorChar ); | name.setCharAt( i, SEPARATOR_CHAR ); | public static boolean fixSeparators( final StringBuffer name ) { if ( separators.length == 0 ) { // Only one valid separator, so don't need to do anything return false; } boolean changed = false; final int maxlen = name.length(); for ( int i = 0; i ... |
if ( path.charAt( 0 ) == separatorChar ) | if ( path.charAt( 0 ) == SEPARATOR_CHAR ) | public static void normalisePath( final StringBuffer path ) throws FileSystemException { if ( path.length() == 0 ) { return; } // Adjust separators fixSeparators( path ); // Determine the start of the first element int startFirstElem = 0; ... |
for ( ; endElem < maxlen && path.charAt( endElem ) != separatorChar; endElem++ ) | for ( ; endElem < maxlen && path.charAt( endElem ) != SEPARATOR_CHAR; endElem++ ) | public static void normalisePath( final StringBuffer path ) throws FileSystemException { if ( path.length() == 0 ) { return; } // Adjust separators fixSeparators( path ); // Determine the start of the first element int startFirstElem = 0; ... |
for ( ; pos >= 0 && path.charAt( pos ) != separatorChar; pos-- ) | for ( ; pos >= 0 && path.charAt( pos ) != SEPARATOR_CHAR; pos-- ) | public static void normalisePath( final StringBuffer path ) throws FileSystemException { if ( path.length() == 0 ) { return; } // Adjust separators fixSeparators( path ); // Determine the start of the first element int startFirstElem = 0; ... |
if ( maxlen > 0 && path.charAt( maxlen - 1 ) == separatorChar && maxlen > 1 ) | if ( maxlen > 0 && path.charAt( maxlen - 1 ) == SEPARATOR_CHAR && maxlen > 1 ) | public static void normalisePath( final StringBuffer path ) throws FileSystemException { if ( path.length() == 0 ) { return; } // Adjust separators fixSeparators( path ); // Determine the start of the first element int startFirstElem = 0; ... |
Logging.configure(h); | public static void main(final String args[]) { boolean failed = false; List<File> files = new ArrayList<File>(); ConsoleProgressIndicator indicator = new ConsoleProgressIndicator("Scripts execution"); for (String arg : args) { if (arg.startsWith("-h")) { printUs... | |
System.out.println("Usage java " + ScriptsRunner.class.getName() + " [-options] [<file 1> ... <file N>]"); System.out.println("where options include:"); System.out.println(" -h displays help "); | System.out.println("scriptella [-options] [<file 1> ... <file N>]"); System.out.println("Options:"); System.out.println(" -help, -h displays help "); System.out.println(" -debug, -d print debugging information"); System.out.println(" -quiet, -q be extra quiet"); | private static void printUsage() { System.out.println("Usage java " + ScriptsRunner.class.getName() + " [-options] [<file 1> ... <file N>]"); System.out.println("where options include:"); System.out.println(" -h displays help "); } |
final String s = f.format(args, sb, null).toString(); | f.format(args, sb, null).toString(); final Throwable err = record.getThrown(); if (err!=null) { sb.append('\n'); sb.append(err.getMessage()); } final String s = sb.toString(); | public static void configure() { final Logger l = Logger.getLogger(Logging.class.getPackage().getName()); l.setLevel(Level.INFO); l.setUseParentHandlers(false); final ConsoleHandler h = new ConsoleHandler(); final MessageFormat f = new MessageFormat("{0,date} {0,time} <{1}> {2}");... |
sb.append(" Succesfully executed ").append(ei.okCount) | sb.append(" Successfully executed ").append(ei.okCount) | public String toString() { StringBuilder sb = new StringBuilder(1024); sb.append("Executed "); final Set<Map.Entry<String, CategoryInfo>> entries = categories.entrySet(); for (Iterator<Map.Entry<String, CategoryInfo>> it = entries.iterator(); it.hasNext();) { Map.E... |
public void setExternalProperties(final Map<?, ?> externalProperties) { | public void setExternalProperties(final Map<String, String> externalProperties) { | public void setExternalProperties(final Map<?, ?> externalProperties) { this.externalProperties = new LinkedHashMap<String, String>((Map<String, String>) externalProperties); } |
return new SftpFileObject( name, this, getContext().getTemporaryFileStore() ); | return new SftpFileObject( name, this ); | protected FileObject createFile( final FileName name ) throws FileSystemException { return new SftpFileObject( name, this, getContext().getTemporaryFileStore() ); } |
if ( session == null ) | try | protected ChannelSftp getChannel() throws IOException { // Create the session if ( session == null ) { try { final GenericFileName rootName = (GenericFileName)getRootName(); session = jSch.getSession( rootName.getUserName(), ... |
try | if ( session == null ) | protected ChannelSftp getChannel() throws IOException { // Create the session if ( session == null ) { try { final GenericFileName rootName = (GenericFileName)getRootName(); session = jSch.getSession( rootName.getUserName(), ... |
catch ( final JSchException e ) | final ChannelSftp channel; if ( idleChannel != null ) | protected ChannelSftp getChannel() throws IOException { // Create the session if ( session == null ) { try { final GenericFileName rootName = (GenericFileName)getRootName(); session = jSch.getSession( rootName.getUserName(), ... |
throw new FileSystemException( "vfs.provider.sftp/connect.error", getRootName(), e ); | channel = idleChannel; idleChannel = null; | protected ChannelSftp getChannel() throws IOException { // Create the session if ( session == null ) { try { final GenericFileName rootName = (GenericFileName)getRootName(); session = jSch.getSession( rootName.getUserName(), ... |
final ChannelSftp channel; if ( idleChannel != null ) | catch ( final JSchException e ) | protected ChannelSftp getChannel() throws IOException { // Create the session if ( session == null ) { try { final GenericFileName rootName = (GenericFileName)getRootName(); session = jSch.getSession( rootName.getUserName(), ... |
channel = idleChannel; idleChannel = null; | throw new FileSystemException( "vfs.provider.sftp/connect.error", getRootName(), e ); | protected ChannelSftp getChannel() throws IOException { // Create the session if ( session == null ) { try { final GenericFileName rootName = (GenericFileName)getRootName(); session = jSch.getSession( rootName.getUserName(), ... |
else { channel = (ChannelSftp)session.openChannel( "sftp" ); channel.connect(); } return channel; | protected ChannelSftp getChannel() throws IOException { // Create the session if ( session == null ) { try { final GenericFileName rootName = (GenericFileName)getRootName(); session = jSch.getSession( rootName.getUserName(), ... | |
final WebdavResource resource = new WebdavResource(url, WebdavResource.NOACTION, 1); | WebdavResource resource = null; FileSystemOptions fso = getFileSystemOptions(); if (fso != null) { String proxyHost = WebdavFileSystemConfigBuilder.getInstance().getProxyHost(fso); int proxyPort = WebdavFileSystemConfigBuilder.getInstance().getProxyPort(fso); if (proxyHost != null && proxyPort > 0) { resource = new W... | protected HttpClient getClient() throws FileSystemException { if (client == null) { // Create an Http client try { final GenericFileName rootName = (GenericFileName) getRootName(); final HttpURL url = new HttpURL(rootName.getUserName(),... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.