rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); } | DODDLE.getLogger().log(Level.INFO, "完全照合 単語数: " + disambiguationPanel.getPerfectMatchedWordCnt()); DODDLE.getLogger().log(Level.INFO, "システムが追加した完全照合 単語数: " + disambiguationPanel.getSystemAddedPerfectMatchedWordCnt()); DODDLE.getLogger().log(Level.INFO, "部分照合 単語数: " + disambiguationPanel.getPartialMatchedWordCnt()); DOD... | public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ... |
private boolean isEnglish(String iw) { return iw.matches("(\\w|\\s)*"); } | for (int i = 0; i < undefinedWordListPanel.getModel().getSize(); i++) { undefinedWordListModel.addElement(undefinedWordListPanel.getModel().getElementAt(i)); } | public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ... |
private void addComplexWordNode(int len, InputWordModel iwModel, TreeNode node) { if (len == iwModel.getComplexWordLength()) { return; } List wordList = iwModel.getWordList(); StringBuilder buf = new StringBuilder(); boolean isEnglish = isEnglish(iwModel.getWord()); for (int i = wordList.size() - len - 1; i < wordList.... | DODDLE.STATUS_BAR.addValue(); if (OptionDialog.isNounAndVerbConceptHierarchyConstructionMode()) { ConceptDefinition conceptDefinition = ConceptDefinition.getInstance(); Set<Concept> inputVerbConceptSet = conceptDefinition.getVerbConceptSet(inputConceptSet); Set<Concept> inputNounConceptSet = new HashSet<Concept>(inputC... | public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ... |
((DefaultMutableTreeNode) node).add(childNode); addComplexWordNode(len + 1, iwModel, childNode); } } else { addComplexWordNode(len + 1, iwModel, node); } } | DODDLE.getLogger().log(Level.INFO, "入力名詞的概念数: " + inputNounConceptSet.size()); DODDLE.STATUS_BAR.addValue(); constructClassPanel.setConceptTreeModel(makeClassTreeModel(inputNounConceptSet)); DODDLE.STATUS_BAR.addValue(); DODDLE.getLogger().log(Level.INFO, "入力動詞的概念数: " + inputVerbConceptSet.size()); constructPropertyPan... | public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ... |
private boolean hasONEComplexWordChild(TreeNode node) { int complexWordChildNum = 0; for (int i = 0; i < node.getChildCount(); i++) { DefaultMutableTreeNode childNode = (DefaultMutableTreeNode) node.getChildAt(i); if (childNode.getUserObject() instanceof String) { complexWordChildNum += 1; if (1 < complexWordChildNum) ... | constructClassPanel.expandTree(); DODDLE.STATUS_BAR.addValue(); constructPropertyPanel.expandTree(); DODDLE.STATUS_BAR.addValue(); constructClassPanel.setVisibleConceptTree(true); constructPropertyPanel.setVisibleConceptTree(true); DODDLE.setSelectedIndex(DODDLE.TAXONOMIC_PANEL); DODDLE.STATUS_BAR.addValue(); DODDLE.ST... | public void constructTree() { new Thread() { private boolean isExistNode(TreeNode node, TreeNode childNode, String word, Concept ic) { return childNode.toString().equals(word) || (node.getParent() == null && childNode.toString().equals(ic.getIdentity())); ... |
exeWordSpace(); | SwingWorker worker = new SwingWorker<String, String>() { public String doInBackground() { exeWordSpace(); return "done"; } }; DODDLE.STATUS_BAR.setSwingWorker(worker); worker.execute(); | public void actionPerformed(ActionEvent e) { if (e.getSource() == exeWordSpaceButton) { exeWordSpace(); } else if (e.getSource() == exeAprioriButton) { exeApriori(); } } |
exeApriori(); | SwingWorker worker = new SwingWorker<String, String>() { public String doInBackground() { exeApriori(); return "done"; } }; DODDLE.STATUS_BAR.setSwingWorker(worker); worker.execute(); | public void actionPerformed(ActionEvent e) { if (e.getSource() == exeWordSpaceButton) { exeWordSpace(); } else if (e.getSource() == exeAprioriButton) { exeApriori(); } } |
new Thread() { public void run() { try { DODDLE.STATUS_BAR.setLastMessage(Translator.getString("StatusBar.Message.OpenProjectDone")); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(2 * aprioriSet.size()); DODDLE.STATUS_BAR.lock(); docAprioriResultMap.clear(); double minSupport = getMinSupport(); double min... | try { DODDLE.STATUS_BAR.setLastMessage(Translator.getString("StatusBar.Message.OpenProjectDone")); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(2 * aprioriSet.size()); DODDLE.STATUS_BAR.lock(); docAprioriResultMap.clear(); double minSupport = getMinSupport(); double minConfidence = getMinConfidence(); fo... | public void exeApriori() { new Thread() { public void run() { try { DODDLE.STATUS_BAR.setLastMessage(Translator.getString("StatusBar.Message.OpenProjectDone")); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(2 * a... |
}.start(); | if (0 < inputConceptJList.getModel().getSize()) { inputConceptJList.setSelectedIndex(0); } } catch (Exception e) { e.printStackTrace(); } finally { DODDLE.STATUS_BAR.unLock(); DODDLE.STATUS_BAR.hideProgressBar(); } | public void exeApriori() { new Thread() { public void run() { try { DODDLE.STATUS_BAR.setLastMessage(Translator.getString("StatusBar.Message.OpenProjectDone")); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(2 * a... |
new Thread() { public void run() { try { DODDLE.STATUS_BAR.setLastMessage(Translator.getString("StatusBar.Message.OpenProjectDone")); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(4 * wordSpaceSet.size()); DODDLE.STATUS_BAR.lock(); docWSResultMap.clear(); WordSpaceData wsData = getWordSpaceData(); for (Wo... | try { DODDLE.STATUS_BAR.setLastMessage(Translator.getString("StatusBar.Message.OpenProjectDone")); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(4 * wordSpaceSet.size()); DODDLE.STATUS_BAR.lock(); docWSResultMap.clear(); WordSpaceData wsData = getWordSpaceData(); for (WordSpace ws : wordSpaceSet) { if (ws... | public void exeWordSpace() { new Thread() { public void run() { try { DODDLE.STATUS_BAR.setLastMessage(Translator.getString("StatusBar.Message.OpenProjectDone")); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(4 *... |
}.start(); | if (0 < inputConceptJList.getModel().getSize()) { inputConceptJList.setSelectedIndex(0); } } catch (Exception e) { e.printStackTrace(); } finally { DODDLE.STATUS_BAR.unLock(); DODDLE.STATUS_BAR.hideProgressBar(); } | public void exeWordSpace() { new Thread() { public void run() { try { DODDLE.STATUS_BAR.setLastMessage(Translator.getString("StatusBar.Message.OpenProjectDone")); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(4 *... |
Set inputWordSet = new HashSet(Arrays.asList(inputWords)); | Set<String> inputWordSet = new HashSet<String>(Arrays.asList(inputWords)); | private void addInputWordSet() { DODDLE.STATUS_BAR.setLastMessage("入力単語リストの読み込み完了"); String[] inputWords = inputWordArea.getText().split("\n"); Set inputWordSet = new HashSet(Arrays.asList(inputWords)); disambiguationPanel.addInputWordSet(inputWordSet); DODDLE.setSelectedIndex(DOD... |
Set inputWordSet = new HashSet(Arrays.asList(inputWords)); | Set<String> inputWordSet = new HashSet<String>(Arrays.asList(inputWords)); | private void setInputWordSet() { DODDLE.STATUS_BAR.setLastMessage("入力単語リストの読み込み完了"); String[] inputWords = inputWordArea.getText().split("\n"); Set inputWordSet = new HashSet(Arrays.asList(inputWords)); disambiguationPanel.loadInputWordSet(inputWordSet); DODDLE.setSelectedIndex(DO... |
if (o != null) { log(o.toString(), Project.MSG_VERBOSE); | if (o != null) { log(o.toString(), Project.MSG_INFO); } | protected void println(final Object o) { if (o != null) { log(o.toString(), Project.MSG_VERBOSE); } } |
} | protected void println(final Object o) { if (o != null) { log(o.toString(), Project.MSG_VERBOSE); } } | |
return new LocalFile(this, name); | return new LocalFile(this, rootFile, name); | protected FileObject createFile(final FileName name) throws FileSystemException { // Create the file return new LocalFile(this, name); } |
final String message = REZ.getString( "missing-share-name.error", uri ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider.local/missing-share-name.error", uri ); | private String extractUNCPrefix( final String uri, final StringBuffer name ) throws FileSystemException { // Looking for <name> '/' <name> ( '/' | <end> ) // Look for first separator int maxpos = name.length(); int pos = 0; for ( ; pos... |
final String message = REZ.getString( "not-absolute-file-name.error", uri ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider.local/not-absolute-file-name.error", uri ); | private String extractWindowsRootPrefix( final String uri, final StringBuffer name ) throws FileSystemException { // Looking for: // ('/'){0, 3} <letter> ':' '/' // ['/'] '//' <name> '/' <name> ( '/' | <end> ) // Skip over first 3 lea... |
public ConceptInformationPanel(JTree tree, DefaultTreeCellRenderer renderer, EDRConceptDefinitionPanel ecdp, ConceptDriftManagementPanel cdmp) { edrConceptDefinitionPanel = ecdp; | public ConceptInformationPanel(JTree tree, DefaultTreeCellRenderer renderer, ConceptDriftManagementPanel cdmp) { | public ConceptInformationPanel(JTree tree, DefaultTreeCellRenderer renderer, EDRConceptDefinitionPanel ecdp, ConceptDriftManagementPanel cdmp) { edrConceptDefinitionPanel = ecdp; init(tree, renderer); conceptDriftManagementPanel = cdmp; } |
if (jpWordList.getSelectedIndices().length == 1) { | if (jpWordList.getSelectedIndices().length == 1 && 0 < jpWordField.getText().length()) { | public void actionPerformed(ActionEvent e) { if (!(conceptTree.getSelectionCount() == 1)) { return; } // DefaultTreeModel treeModel = (DefaultTreeModel) // conceptTree.getModel(); TreePath path = conceptTree.getSelectionPath(); ConceptTreeNode conceptTreeNode = (ConceptTreeNode) p... |
if (enWordList.getSelectedIndices().length == 1) { | if (enWordList.getSelectedIndices().length == 1 && 0 < enWordField.getText().length()) { | public void actionPerformed(ActionEvent e) { if (!(conceptTree.getSelectionCount() == 1)) { return; } // DefaultTreeModel treeModel = (DefaultTreeModel) // conceptTree.getModel(); TreePath path = conceptTree.getSelectionPath(); ConceptTreeNode conceptTreeNode = (ConceptTreeNode) p... |
public void traAction(ConceptTreeNode traNode) { if (traNode.getParent() == null) { trimmedNodeTree.setModel(new DefaultTreeModel(null)); return; } Concept trimmedTreeRootConcept = ((ConceptTreeNode) traNode.getParent()).getConcept(); TreeModel trimmedTreeModel = getTrimmedTreeModel(trimmedTreeRootConcept, traNode.getT... | private void traAction() { if (traList != null && !traList.isEmpty()) { int index = traJList.getSelectedIndex(); if (index == -1) { return; } ConceptTreeNode traNode = traList.get(index); if (DODDLE.doddlePlugin != null) { List set = new ArrayList(); set.add(traNode); if (traNode.getParent() != null) { set.add(traNode.... | public void traAction(ConceptTreeNode traNode) { if (traNode.getParent() == null) { trimmedNodeTree.setModel(new DefaultTreeModel(null)); return; } Concept trimmedTreeRootConcept = ((ConceptTreeNode) traNode.getParent()).getConcept(); TreeModel trimmedTreeModel = ge... |
localMavenArtifact("org.knopflerfish.bundles", "commons-logging_all", "2.0.0"), | localMavenArtifact("org.knopflerfish.bundles", "log_all", "2.0.0"), | protected String[] getBundleLocations() { return new String[] { localMavenArtifact("org.springframework.osgi", "aopalliance.osgi", "1.0-SNAPSHOT"), localMavenArtifact("org.springframework.osgi", "commons-collections.osgi", "3.2-SNAPSHOT"), localMavenArtifact("org.springframework.osgi", "spring-aop", "2.1-SNAPSH... |
context.getServiceReferences(serviceClass.getCanonicalName(),filter); | context.getServiceReferences(serviceClass.getName(),filter); | public static ServiceReference getService(BundleContext context, Class serviceClass, String filter) throws NoSuchServiceException, AmbiguousServiceReferenceException, IllegalArgumentException { Assert.notNull(context, "context cannot be null"); Assert.notNull(serviceClass, "serviceClass cannot be null")... |
throw new IllegalArgumentException(ex.getMessage(),ex); | throw (IllegalArgumentException)new IllegalArgumentException(ex.getMessage()).initCause(ex); | public static ServiceReference getService(BundleContext context, Class serviceClass, String filter) throws NoSuchServiceException, AmbiguousServiceReferenceException, IllegalArgumentException { Assert.notNull(context, "context cannot be null"); Assert.notNull(serviceClass, "serviceClass cannot be null")... |
public void addChangeListener(ChangeListener cl, ChangeType ct) { getChangeSupport(ct).addChangeListener(cl, ct); | public void addChangeListener(ChangeListener cl) { getChangeSupport(null).addChangeListener(cl); | public void addChangeListener(ChangeListener cl, ChangeType ct) { getChangeSupport(ct).addChangeListener(cl, ct); } |
extension = baseName.substring( 0, pos ); | extension = baseName.substring( pos+1 ); | public String getExtension() { if ( extension == null ) { getBaseName(); final int pos = baseName.lastIndexOf( '.' ); if ( ( pos == -1 ) || ( pos == baseName.length() - 1 ) ) { // No extension extension = ""; } ... |
backLogItem = backLogItemDAO.get(backLogId); | fillable = backLogItemDAO.get(backLogId); | public String store(){ if (backLogItem == null){ super.addActionError(super.getText("backLogItem.missingForm")); return Action.INPUT; } sprint = sprintDAO.get(sprintId); if (sprint == null){ super.addActionError(super.getText("backLogItem.sprintNotFound")); return Action.INPUT; } BackLogItem fil... |
InstanceList(Instance[] instances) { this.instances = instances; bounds = new BoundingBox(); for (Instance i : instances) bounds.include(i.getBounds()); | InstanceList() { clear(); | InstanceList(Instance[] instances) { this.instances = instances; bounds = new BoundingBox(); for (Instance i : instances) bounds.include(i.getBounds()); } |
public BoundingBox getWorldBounds(Matrix4 o2w) { assert o2w == null; | public final BoundingBox getWorldBounds(Matrix4 o2w) { BoundingBox bounds = new BoundingBox(); for (Instance i : instances) bounds.include(i.getBounds()); | public BoundingBox getWorldBounds(Matrix4 o2w) { assert o2w == null; return bounds; } |
public void intersectPrimitive(Ray r, Instance parent, int primID, IntersectionState state) { assert parent == null; | public final void intersectPrimitive(Ray r, int primID, IntersectionState state) { | public void intersectPrimitive(Ray r, Instance parent, int primID, IntersectionState state) { assert parent == null; instances[primID].intersect(r, state); } |
public void prepareShadingState(Instance parent, int primID, ShadingState state) { assert parent == null; instances[primID].prepareShadingState(state); | public final void prepareShadingState(ShadingState state) { Instance instance = (Instance) state.getIntersectionState().object; instance.prepareShadingState(state); | public void prepareShadingState(Instance parent, int primID, ShadingState state) { assert parent == null; instances[primID].prepareShadingState(state); } |
add(searchPanel, BorderLayout.NORTH); | public InputWordSelectionPanel(DisambiguationPanel ui) { System.setProperty("sen.home", DODDLE.DODDLE_DIC + "sen-1.2.1"); disambiguationPanel = ui; wordInfoTable = new JTable(); JScrollPane wordInfoTableScroll = new JScrollPane(wordInfoTable); setWordInfoTableModel(null, 0); ... | |
} else if (e.getSource() == searchWordField) { if (searchWordField.getText().length() == 0) { rowSorter.setRowFilter(RowFilter.regexFilter(".*", new int[] {0})); } else { rowSorter.setRowFilter(RowFilter.regexFilter(searchWordField.getText(), new int[] {0})); } } else if (e.getSource() == searchPOSField) { if (searchPO... | public void actionPerformed(ActionEvent e) { if (e.getSource() == setInputWordSetButton) { setInputWordSet(); } else if (e.getSource() == addInputWordSetButton) { addInputWordSet(); } else if (e.getSource() == addInputWordButton) { addInputWords(); } else... | |
DefaultTableModel model = (DefaultTableModel) wordInfoTableModel.getTableModel(); for (int i = 0; i < model.getRowCount(); i++) { String word = (String) model.getValueAt(i, 0); | for (int i = 0; i < wordInfoTableModel.getRowCount(); i++) { String word = (String) wordInfoTableModel.getValueAt(i, 0); | private void deleteTableItems() { int[] rows = wordInfoTable.getSelectedRows(); Set<String> deleteWordSet = new HashSet<String>(); for (int i = 0; i < rows.length; i++) { String deleteWord = (String) wordInfoTable.getValueAt(rows[i], 0); deleteWordSet.add(deleteWord); ... |
model.removeRow(i); | wordInfoTableModel.removeRow(i); | private void deleteTableItems() { int[] rows = wordInfoTable.getSelectedRows(); Set<String> deleteWordSet = new HashSet<String>(); for (int i = 0; i < rows.length; i++) { String deleteWord = (String) wordInfoTable.getValueAt(rows[i], 0); deleteWordSet.add(deleteWord); ... |
Object[] titles = new Object[] { WORD, POS, "TF", "IDF", "TFIDF", DOCUMENT, INPUT_DOCUMENT, UPPER_CONCEPT}; wordInfoTableModel = new TableSorter(new DefaultTableModel(null, titles)); wordInfoTableModel.setTableHeader(wordInfoTable.getTableHeader()); | Object[] titles = new Object[] { WORD, POS, "TF", "IDF", "TF-IDF", DOCUMENT, INPUT_DOCUMENT, UPPER_CONCEPT}; wordInfoTableModel = new WordInfoTableModel(null, titles); wordInfoTableModel.getColumnClass(0); rowSorter = new TableRowSorter<TableModel>(wordInfoTableModel); rowSorter.setMaxSortKeys(5); wordInfoTable.setRo... | public void setWordInfoTableModel(Map wiMap, int dn) { docNum = dn; String WORD = Translator.getString("InputWordSelectionPanel.Word"); String POS = Translator.getString("InputWordSelectionPanel.POS"); String DOCUMENT = Translator.getString("InputWordSelectionPanel.Document"); Str... |
Collection wordInfoSet = wordInfoMap.values(); for (Iterator i = wordInfoSet.iterator(); i.hasNext();) { WordInfo info = (WordInfo) i.next(); DefaultTableModel model = (DefaultTableModel) wordInfoTableModel.getTableModel(); model.addRow(info.getRowData()); | Collection<WordInfo> wordInfoSet = wordInfoMap.values(); for (WordInfo info : wordInfoSet) { wordInfoTableModel.addRow(info.getRowData()); | public void setWordInfoTableModel(Map wiMap, int dn) { docNum = dn; String WORD = Translator.getString("InputWordSelectionPanel.Word"); String POS = Translator.getString("InputWordSelectionPanel.POS"); String DOCUMENT = Translator.getString("InputWordSelectionPanel.Document"); Str... |
if (JANINO_NOT_FOUND!=null) { throw new JaninoProviderException("Janino not found on the class path. " + "Check if connection classpath attribute points to janino.jar", JANINO_NOT_FOUND); } | public Connection connect(ConnectionParameters connectionParameters) { return new JaninoConnection(connectionParameters); } | |
return Math.min(points[v0 + axis] - getWidth(vn), points[v1 + axis] - getWidth(vn + 1)); | return Math.min(points[v0 + axis] - 0.5f * getWidth(vn), points[v1 + axis] - 0.5f * getWidth(vn + 1)); | public float getPrimitiveBound(int primID, int i) { int hair = primID / numSegments; int line = primID % numSegments; int vn = hair * (numSegments + 1) + line; int vRoot = hair * 3 * (numSegments + 1); int v0 = vRoot + line * 3; int v1 = v0 + 3; int axis = i >>> 1; ... |
return Math.max(points[v0 + axis] + getWidth(vn), points[v1 + axis] - getWidth(vn + 1)); | return Math.max(points[v0 + axis] + 0.5f * getWidth(vn), points[v1 + axis] + 0.5f * getWidth(vn + 1)); | public float getPrimitiveBound(int primID, int i) { int hair = primID / numSegments; int line = primID % numSegments; int vn = hair * (numSegments + 1) + line; int vRoot = hair * 3 * (numSegments + 1); int v0 = vRoot + line * 3; int v1 = v0 + 3; int axis = i >>> 1; ... |
float w = getWidth(j); | float w = 0.5f * getWidth(j); | public BoundingBox getWorldBounds(Matrix4 o2w) { BoundingBox bounds = new BoundingBox(); for (int i = 0, j = 0; i < points.length; i += 3, j++) { float w = getWidth(j); bounds.include(points[i] - w, points[i + 1] - w, points[i + 2] - w); bounds.include(points[i] + w, p... |
double s = Math.pow((w.x * w.y * w.z) / np, 1 / 3.0); | double s = Math.pow((w.x * w.y * w.z) / (np / 10), 1 / 3.0); | DLAParticleGrid(BoundingBox bounds, int np, float radius) { this.bounds = bounds; bounds.enlargeUlps(); Vector3 w = bounds.getExtents(); double s = Math.pow((w.x * w.y * w.z) / np, 1 / 3.0); nx = MathUtils.clamp((int) ((w.x / s) + 0.5), 1, 256); ... |
pbounds = new BoundingBox(); | DLAParticleGrid(BoundingBox bounds, int np, float radius) { this.bounds = bounds; bounds.enlargeUlps(); Vector3 w = bounds.getExtents(); double s = Math.pow((w.x * w.y * w.z) / np, 1 / 3.0); nx = MathUtils.clamp((int) ((w.x / s) + 0.5), 1, 256); ... | |
voxels[idx] = new IntArray(4); | voxels[idx] = new IntArray(); | void addParticle(float x, float y, float z) { // add particle to list int pid = particles.getSize() / 3; particles.add(x); particles.add(y); particles.add(z); // add particle to grid int[] imin = new int[3]; int[] imax = new... |
t1 = (bounds.getMinimum().x - orgX) * invDirX; t2 = (bounds.getMaximum().x - orgX) * invDirX; | t1 = (minx - orgX) * invDirX; t2 = (maxx - orgX) * invDirX; | public float intersect(Ray r) { float intervalMin = r.getMin(); float intervalMax = r.getMax(); float orgX = r.ox; float dirX = r.dx, invDirX = 1 / dirX; float t1, t2; t1 = (bounds.getMinimum().x - orgX) * invDirX; t2 = (bounds.getMaxi... |
t1 = (bounds.getMinimum().y - orgY) * invDirY; t2 = (bounds.getMaximum().y - orgY) * invDirY; | t1 = (miny - orgY) * invDirY; t2 = (maxy - orgY) * invDirY; | public float intersect(Ray r) { float intervalMin = r.getMin(); float intervalMax = r.getMax(); float orgX = r.ox; float dirX = r.dx, invDirX = 1 / dirX; float t1, t2; t1 = (bounds.getMinimum().x - orgX) * invDirX; t2 = (bounds.getMaxi... |
t1 = (bounds.getMinimum().z - orgZ) * invDirZ; t2 = (bounds.getMaximum().z - orgZ) * invDirZ; | t1 = (minz - orgZ) * invDirZ; t2 = (maxz - orgZ) * invDirZ; | public float intersect(Ray r) { float intervalMin = r.getMin(); float intervalMax = r.getMax(); float orgX = r.ox; float dirX = r.dx, invDirX = 1 / dirX; float t1, t2; t1 = (bounds.getMinimum().x - orgX) * invDirX; t2 = (bounds.getMaxi... |
final float radius = 0.03f; | final float radius = 0.015f; | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... |
int delta = 100; | int delta = 10; | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... |
double rx = Math.random(); double ry = Math.random(); int side = (int) (rx * 6); rx = rx * 6 - side; float ox, oy, oz; switch (side) { case 0: ox = -size; oy = (float) (2 * size * rx - size); oz = (float) (2 * size * ry - size); break; case 1: ox = +size; oy = (float) (2 * size * rx - size); oz = (float) (2 * size * ry... | double s, a; double ox, oy, oz; do { ox = -1 + 2 * random(); oy = -1 + 2 * random(); s = (ox) * (ox) + (oy) * (oy); } while (s > 1.0); oz = -1 + 2 * s; a = 2 * Math.sqrt(1 - s); ox *= a; oy *= a; ox *= size; oy *= size; oz *= size; | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... |
double s, a; | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... | |
dx = -1 + 2 * Math.random(); dy = -1 + 2 * Math.random(); | dx = -1 + 2 * random(); dy = -1 + 2 * random(); | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... |
Ray r = new Ray(ox, oy, oz, (float) dx, (float) dy, (float) dz); | Ray r = new Ray((float) ox, (float) oy, (float) oz, (float) dx, (float) dy, (float) dz); | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... |
FileOutputStream file = new FileOutputStream("/home/ckulla/Desktop/particles.dla"); DataOutputStream stream = new DataOutputStream(file); | FileOutputStream file = new FileOutputStream("particles.dla"); DataOutputStream stream = new DataOutputStream(new BufferedOutputStream(file)); | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... |
file.close(); | stream.flush(); stream.close(); | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... |
UI.printInfo(Module.USER, "Writing particles to file done."); | timer.end(); UI.printInfo(Module.USER, "Writing particles to file took: %s", timer); System.exit(0); | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... |
api.parameter("eye", new Point3(0, 0, -size * 2)); | api.parameter("eye", new Point3(0, 0, -size * 4)); | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... |
api.parameter("fov", 90.0f); | api.parameter("fov", 30f); | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... |
api.parameter("aa.max", 2); api.filter("mitchell"); | api.parameter("aa.max", 1); api.filter("gaussian"); | public static void main(String[] args) { SunflowAPI api = SunflowAPI.create(null); api.shader("ao", new AmbientOcclusionShader()); final float size = 5; final float radius = 0.03f; final int numFrames = 24 * 16; Display display = null; if (args.length == 0) { ... |
return conceptTree.getModel().getRoot().toString().equals("名詞的概念"); | String rootLabel = conceptTree.getModel().getRoot().toString(); return rootLabel.equals("名詞的概念") || rootLabel.equals("Root Class"); | private boolean isClass() { return conceptTree.getModel().getRoot().toString().equals("名詞的概念"); } |
final String message = REZ.getString( "create-folder.error", file ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider.local/create-folder.error", file ); | protected void doCreateFolder() throws Exception { if ( !file.mkdir() ) { final String message = REZ.getString( "create-folder.error", file ); throw new FileSystemException( message ); } } |
final String message = REZ.getString( "delete-file.error", file ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider.local/delete-file.error", file ); | protected void doDelete() throws Exception { if ( !file.delete() ) { final String message = REZ.getString( "delete-file.error", file ); throw new FileSystemException( message ); } } |
final String message = REZ.getString( "get-type.error", file ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider.local/get-type.error", file ); | protected FileType doGetType() throws Exception { if ( !file.exists() ) { return null; } if ( file.isDirectory() ) { return FileType.FOLDER; } if ( file.isFile() ) { return FileType.FILE; } final String ... |
if (LOG.isLoggable(Level.FINE)) { LOG.fine("Query "+getLocation()+" process completed"); } | public void execute(final DynamicContext ctx) { final Connection c = ctx.getConnection(); final ContentEl content = getContent(c.getDialectIdentifier()); if (content == ContentEl.NULL_CONTENT) { //skip queries without content return; } final QueryCtxDecorator... | |
if (LOG.isLoggable(Level.FINE)) { LOG.fine("Processing row for query "+getLocation()); } | public void processRow(final ParametersCallback params) { ctxDecorator.setParams(params); for (ExecutableElement exec : nestedElements) { exec.execute(ctxDecorator); } } | |
state.faceforward(); | public Color getRadiance(ShadingState state) { return state.getGlobalRadiance(); } | |
for (Node node = element.getElement().getFirstChild();node != null;node = node.getNextSibling()) { | setLocation(element); for (Node node = element.getElement().getFirstChild(); node != null; node = node.getNextSibling()) { | public void configure(final XmlElement element) { for (Node node = element.getElement().getFirstChild();node != null;node = node.getNextSibling()) { Resource resource = asResource(element, node); if (resource!=null) { content.add(resource); } } } |
return "ContentEl{" + "content=" + content + "}"; | Location loc = getLocation(); return loc != null ? loc.toString() : ("ContentEl{" + "content=" + content + '}'); | public String toString() { return "ContentEl{" + "content=" + content + "}"; } |
return null; | return name; | public Object getParameter(final String name) { return null; } |
throw new UnsupportedOperationException(); | return null; | public Object getParameter(final String name) { throw new UnsupportedOperationException(); } |
return map.get(name); } | throw new UnsupportedOperationException(); } | public Object getParameter(final String name) { return map.get(name); } |
final FileObject baseFolder = providerConfig.getBaseTestFolder( manager ); | baseFolder = providerConfig.getBaseTestFolder( manager ); | protected void setUp() throws Exception { // Locate the temp directory, and clean it up tempDir = getTestDirectory( "temp" ); checkTempDir( "Temp dir not empty before test" ); // Create the file system manager manager = new DefaultFileSystemManager(); manager.addProvider... |
UserAuthenticatorUtils.toString(UserAuthenticatorUtils.getData(authData, UserAuthenticationData.USERNAME, UserAuthenticatorUtils.toChar(rootName.getPassword()))), | UserAuthenticatorUtils.toString(UserAuthenticatorUtils.getData(authData, UserAuthenticationData.PASSWORD, UserAuthenticatorUtils.toChar(rootName.getPassword()))), | protected FileSystem doCreateFileSystem(final FileName name, final FileSystemOptions fileSystemOptions) throws FileSystemException { // Create the file system final GenericFileName rootName = (GenericFileName) name; UserAuthenticationData authData = null; HttpClient httpClient; try { a... |
public int available() throws IOException { long available = raf.length() - raf.getFilePointer(); if (available > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } return (int) available; } | SmbFileRandomAccessContent(final SmbFile smbFile, final RandomAccessMode mode) throws FileSystemException { super(mode); StringBuffer modes = new StringBuffer(2); if (mode.requestRead()) { modes.append('r'); } if (mode.requestWrite()) { modes... | |
UserAuthenticationData.USERNAME, | UserAuthenticationData.PASSWORD, | private SmbFile createSmbFile(FileName fileName) throws MalformedURLException, SmbException, FileSystemException { SmbFileName smbFileName = (SmbFileName) fileName; String path = smbFileName.getUriWithoutAuth(); UserAuthenticationData authData = null; SmbFile file; NtlmPasswordAuthentication aut... |
* とりあえず,移動と行為概念の下位概念については,動詞的概念とみなす.ほとんどの概念は, * この2つの概念の下位概念のため.それ以外の概念について概念記述を参照してしまうと, | * とりあえず,「移動」と「行為」概念の下位概念については,動詞的概念とみなす.ほとんどの動詞的概念は, * 上記概念の下位概念のため.それ以外の概念について概念記述を参照してしまうと, | public Set<Concept> getVerbIDSet(Set<Concept> inputConceptSet) { Set<Concept> verbConceptSet = new HashSet<Concept>(); Set<String> allVerbIDSet = new HashSet<String>(); // for (Iterator i = inputIDSet.iterator(); i.hasNext();) { // String id = (String) i.next(); // // agent... |
File configFile = new File("./config.txt"); | String configPath = getExecPath(); File configFile = new File(configPath + "config.txt"); | public static void setPath() { File configFile = new File("./config.txt"); if (configFile.exists()) { try { Properties properties = new Properties(); properties.load(new FileInputStream("./config.txt")); SEN_HOME = properties.getProperty("SEN_HOM... |
properties.load(new FileInputStream("./config.txt")); | properties.load(new FileInputStream(configPath + "config.txt")); | public static void setPath() { File configFile = new File("./config.txt"); if (configFile.exists()) { try { Properties properties = new Properties(); properties.load(new FileInputStream("./config.txt")); SEN_HOME = properties.getProperty("SEN_HOM... |
DODDLE.LANG=properties.getProperty("LANG"); | if (properties.getProperty("USING_DB").equals("true")) { IS_USING_DB = true; } DODDLE.LANG = properties.getProperty("LANG"); | public static void setPath() { File configFile = new File("./config.txt"); if (configFile.exists()) { try { Properties properties = new Properties(); properties.load(new FileInputStream("./config.txt")); SEN_HOME = properties.getProperty("SEN_HOM... |
} else { if (LOG.isLoggable(Level.FINE)) { LOG.fine("if=\""+expression.getExpression()+"\" is false, element body is skipped."); } | public void execute(final DynamicContext ctx) { boolean ok = false; try { final Object res = expression.evaluate(ctx); if (res != null) { if (res instanceof Boolean) { ok = (Boolean) res; } else if (trueStrs.contains(String.valueOf... | |
api.parameter("fov", 80); | api.parameter("fov", 80f); | public boolean parse(String filename, SunflowAPI api) { try { UI.printInfo(Module.USER, "RA2 - Reading geometry: \"%s\" ...", filename); File file = new File(filename); FileInputStream stream = new FileInputStream(filename); MappedByteBuffer map = stream.getChannel... |
api.parameter("camera", name); | public boolean parse(String filename, SunflowAPI api) { try { UI.printInfo(Module.USER, "RA2 - Reading geometry: \"%s\" ...", filename); File file = new File(filename); FileInputStream stream = new FileInputStream(filename); MappedByteBuffer map = stream.getChannel... | |
DocumentSelectionPanel.Japanese_Morphological_Analyzer = properties.getProperty("Japanese_Morphological_Analyzer"); | public static void setPath() { String configPath = getExecPath(); File configFile = new File(configPath + "config.txt"); if (configFile.exists()) { try { Properties properties = new Properties(); properties.load(new FileInputStream(configPath + "config.t... | |
ConnectionParameters params = new ConnectionParameters(null, "jdbc:hsqldb:file:D:/tools/hsqldb/data/dbm", "sa", "", null, null); | ConnectionParameters params = new ConnectionParameters(null, "jdbc:hsqldb:file:D:/tools/hsqldb/data/dbm", "sa", "", null, null, null); | public static void main(final String args[]) { //Currently this class is just a sample of how to create a migration script //Rewite it ConnectionParameters params = new ConnectionParameters(null, "jdbc:hsqldb:file:D:/tools/hsqldb/data/dbm", "sa", "", null, null); ScriptellaJDBCDriver jdb... |
o.append("<sql-scripts version=\"1\">\n" + | o.append("<scripts>\n" + | public static void main(final String args[]) { //Currently this class is just a sample of how to create a migration script //Rewite it ConnectionParameters params = new ConnectionParameters(null, "jdbc:hsqldb:file:D:/tools/hsqldb/data/dbm", "sa", "", null, null); ScriptellaJDBCDriver jdb... |
o.append(" <query id=\"").append("in.").append(t) .append("\" type=\"sql\" connection-id=\"in\">\n") | o.append(" <query connection-id=\"in\">\n") | public static void main(final String args[]) { //Currently this class is just a sample of how to create a migration script //Rewite it ConnectionParameters params = new ConnectionParameters(null, "jdbc:hsqldb:file:D:/tools/hsqldb/data/dbm", "sa", "", null, null); ScriptellaJDBCDriver jdb... |
appendColumnNames(con, params, t, o).append(" from ").append(t) .append("\n </datasource>\n"); | appendColumnNames(con, params, t, o).append(" from ").append(t); | public static void main(final String args[]) { //Currently this class is just a sample of how to create a migration script //Rewite it ConnectionParameters params = new ConnectionParameters(null, "jdbc:hsqldb:file:D:/tools/hsqldb/data/dbm", "sa", "", null, null); ScriptellaJDBCDriver jdb... |
o.append(" <script query-id=\"").append("in.").append(t) .append("\" type=\"sql\" connection-id=\"out\">\n") .append(" insert into ").append(t).append("("); | o.append(" <script connection-id=\"out\">\n") .append(" insert into ").append(t).append("("); | public static void main(final String args[]) { //Currently this class is just a sample of how to create a migration script //Rewite it ConnectionParameters params = new ConnectionParameters(null, "jdbc:hsqldb:file:D:/tools/hsqldb/data/dbm", "sa", "", null, null); ScriptellaJDBCDriver jdb... |
appendColumnNames(con, params, t, o, ", ", "$").append(")") .append("\n </script>\n"); | appendColumnNames(con, params, t, o, ", ", "?").append(")") .append("\n </script>\n"). append("\n </query>\n"); | public static void main(final String args[]) { //Currently this class is just a sample of how to create a migration script //Rewite it ConnectionParameters params = new ConnectionParameters(null, "jdbc:hsqldb:file:D:/tools/hsqldb/data/dbm", "sa", "", null, null); ScriptellaJDBCDriver jdb... |
o.append("</sql-scripts>\n"); | o.append("</scripts>\n"); | public static void main(final String args[]) { //Currently this class is just a sample of how to create a migration script //Rewite it ConnectionParameters params = new ConnectionParameters(null, "jdbc:hsqldb:file:D:/tools/hsqldb/data/dbm", "sa", "", null, null); ScriptellaJDBCDriver jdb... |
names = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); | namesMap = new TreeMap<String, Integer>(String.CASE_INSENSITIVE_ORDER); | public ResultSetAdapter(ResultSet resultSet, ParametersCallback parametersCallback) { this.params = parametersCallback; this.resultSet = resultSet; names = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); try { final ResultSetMetaData m = resultSe... |
names.add(m.getColumnName(i)); | String columnName = m.getColumnName(i); if (!ThisParameter.NAME.equalsIgnoreCase(columnName)) { namesMap.put(columnName, i); } | public ResultSetAdapter(ResultSet resultSet, ParametersCallback parametersCallback) { this.params = parametersCallback; this.resultSet = resultSet; names = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); try { final ResultSetMetaData m = resultSe... |
throw new JDBCException("Unable to process result set ", e); | public ResultSetAdapter(ResultSet resultSet, ParametersCallback parametersCallback) { this.params = parametersCallback; this.resultSet = resultSet; names = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); try { final ResultSetMetaData m = resultSe... | |
row = null; | public void close() { if (resultSet != null) { JDBCUtils.closeSilent(resultSet); resultSet = null; } } | |
if (ThisParameter.NAME.equals(name)) { return ThisParameter.get(params); } else if (ROWNUM.equalsIgnoreCase(name)) { | if (ROWNUM.equalsIgnoreCase(name)) { | public Object getParameter(final String name) { if (ThisParameter.NAME.equals(name)) { //this could not be overriden return ThisParameter.get(params); } else if (ROWNUM.equalsIgnoreCase(name)) { //return current row number return rowNum; } try { if (!name... |
if (!names.contains(name)) { if (NUM_PTR.matcher(name).matches()) { | Integer index = namesMap.get(name); if (index == null) { if (ThisParameter.NAME.equalsIgnoreCase(name)) { return ThisParameter.get(params); } else if (NUM_PTR.matcher(name).matches()) { | public Object getParameter(final String name) { if (ThisParameter.NAME.equals(name)) { //this could not be overriden return ThisParameter.get(params); } else if (ROWNUM.equalsIgnoreCase(name)) { //return current row number return rowNum; } try { if (!name... |
int index = Integer.parseInt(name); return resultSet.getObject(index); | index = Integer.valueOf(name); | public Object getParameter(final String name) { if (ThisParameter.NAME.equals(name)) { //this could not be overriden return ThisParameter.get(params); } else if (ROWNUM.equalsIgnoreCase(name)) { //return current row number return rowNum; } try { if (!name... |
} else { return params.getParameter(name); | public Object getParameter(final String name) { if (ThisParameter.NAME.equals(name)) { //this could not be overriden return ThisParameter.get(params); } else if (ROWNUM.equalsIgnoreCase(name)) { //return current row number return rowNum; } try { if (!name... | |
return resultSet.getObject(name); | public Object getParameter(final String name) { if (ThisParameter.NAME.equals(name)) { //this could not be overriden return ThisParameter.get(params); } else if (ROWNUM.equalsIgnoreCase(name)) { //return current row number return rowNum; } try { if (!name... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.