rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
Set<List<Concept>> pathToRootSet = EDRTree.getEDRTree().getPathToRootSet(id); List<Concept> pathList = (List<Concept>) pathToRootSet.toArray()[0]; if (pathList.size() == 1) { continue; }
private void setEDRConceptSet(String subIW, Set<Concept> conceptSet) { if (!project.getOntologySelectionPanel().isEDREnable()) { return; } Set<String> idSet = null; if (DODDLE.IS_USING_DB) { idSet = EDRDic.getEDRDBManager().getEDRIDSet(subIW); } else { idSet = EDRDi...
Set<List<Concept>> pathToRootSet = EDRTree.getEDRTTree().getPathToRootSet(id); List<Concept> pathList = (List<Concept>) pathToRootSet.toArray()[0]; if (pathList.size() == 1) { continue; }
private void setEDRTConceptSet(String subIW, Set<Concept> conceptSet) { if (!project.getOntologySelectionPanel().isEDRTEnable()) { return; } Set<String> idSet = null; if (DODDLE.IS_USING_DB) { idSet = EDRDic.getEDRTDBManager().getEDRIDSet(subIW); } else { idSet = ED...
float orgX = r.ox; float dirX = r.dx, invDirX = 1 / dirX; float orgY = r.oy; float dirY = r.dy, invDirY = 1 / dirY; float orgZ = r.oz; float dirZ = r.dz, invDirZ = 1 / dirZ;
float orgX = r.ox, invDirX = 1 / r.dx; float orgY = r.oy, invDirY = 1 / r.dy; float orgZ = r.oz, invDirZ = 1 / r.dz;
public void intersectPrimitive(Ray r, int primID, IntersectionState state) { // ray patch intersection final float[] stack = state.getRobustStack(); { // init patch float[] patch = patches[primID]; for (int i = 0; i < 4 * 4 * 3; i++) stack[i] = pa...
stackpos -= 53;
stackpos -= STACKSIZE;
public void intersectPrimitive(Ray r, int primID, IntersectionState state) { // ray patch intersection final float[] stack = state.getRobustStack(); { // init patch float[] patch = patches[primID]; for (int i = 0; i < 4 * 4 * 3; i++) stack[i] = pa...
stack[stackpos + 53 + (i * 4 + 0) * 3 + axis] = r0; stack[stackpos + 53 + (i * 4 + 1) * 3 + axis] = r1; stack[stackpos + 53 + (i * 4 + 2) * 3 + axis] = r2; stack[stackpos + 53 + (i * 4 + 3) * 3 + axis] = r3;
stack[stackpos + STACKSIZE + (i * 4 + 0) * 3 + axis] = r0; stack[stackpos + STACKSIZE + (i * 4 + 1) * 3 + axis] = r1; stack[stackpos + STACKSIZE + (i * 4 + 2) * 3 + axis] = r2; stack[stackpos + STACKSIZE + (i * 4 + 3) * 3 + axis] = r3;
public void intersectPrimitive(Ray r, int primID, IntersectionState state) { // ray patch intersection final float[] stack = state.getRobustStack(); { // init patch float[] patch = patches[primID]; for (int i = 0; i < 4 * 4 * 3; i++) stack[i] = pa...
stack[stackpos + 48] = stack[stackpos + 53 + 48] = size;
stack[stackpos + 48] = stack[stackpos + STACKSIZE + 48] = size;
public void intersectPrimitive(Ray r, int primID, IntersectionState state) { // ray patch intersection final float[] stack = state.getRobustStack(); { // init patch float[] patch = patches[primID]; for (int i = 0; i < 4 * 4 * 3; i++) stack[i] = pa...
stack[stackpos + 53 + 50] = stack[stackpos + 50]; stack[stackpos + 51] = stack[stackpos + 53 + 49] = (umin + umax) * 0.5f; stack[stackpos + 53 + 51] = umax; stack[stackpos + 53 + 52] = stack[stackpos + 52];
stack[stackpos + STACKSIZE + 50] = stack[stackpos + 50]; stack[stackpos + 51] = stack[stackpos + STACKSIZE + 49] = (umin + umax) * 0.5f; stack[stackpos + STACKSIZE + 51] = umax; stack[stackpos + STACKSIZE + 52] = stack[stackpos + 52];
public void intersectPrimitive(Ray r, int primID, IntersectionState state) { // ray patch intersection final float[] stack = state.getRobustStack(); { // init patch float[] patch = patches[primID]; for (int i = 0; i < 4 * 4 * 3; i++) stack[i] = pa...
stack[stackpos + 53 + (0 * 4 + i) * 3 + axis] = r0; stack[stackpos + 53 + (1 * 4 + i) * 3 + axis] = r1; stack[stackpos + 53 + (2 * 4 + i) * 3 + axis] = r2; stack[stackpos + 53 + (3 * 4 + i) * 3 + axis] = r3;
stack[stackpos + STACKSIZE + (0 * 4 + i) * 3 + axis] = r0; stack[stackpos + STACKSIZE + (1 * 4 + i) * 3 + axis] = r1; stack[stackpos + STACKSIZE + (2 * 4 + i) * 3 + axis] = r2; stack[stackpos + STACKSIZE + (3 * 4 + i) * 3 + axis] = r3;
public void intersectPrimitive(Ray r, int primID, IntersectionState state) { // ray patch intersection final float[] stack = state.getRobustStack(); { // init patch float[] patch = patches[primID]; for (int i = 0; i < 4 * 4 * 3; i++) stack[i] = pa...
stack[stackpos + 53 + 49] = stack[stackpos + 49];
stack[stackpos + STACKSIZE + 49] = stack[stackpos + 49];
public void intersectPrimitive(Ray r, int primID, IntersectionState state) { // ray patch intersection final float[] stack = state.getRobustStack(); { // init patch float[] patch = patches[primID]; for (int i = 0; i < 4 * 4 * 3; i++) stack[i] = pa...
stack[stackpos + 52] = stack[stackpos + 53 + 50] = (vmin + vmax) * 0.5f; stack[stackpos + 53 + 51] = stack[stackpos + 51]; stack[stackpos + 53 + 52] = vmax; } stackpos += 53;
stack[stackpos + 52] = stack[stackpos + STACKSIZE + 50] = (vmin + vmax) * 0.5f; stack[stackpos + STACKSIZE + 51] = stack[stackpos + 51]; stack[stackpos + STACKSIZE + 52] = vmax; } stackpos += STACKSIZE;
public void intersectPrimitive(Ray r, int primID, IntersectionState state) { // ray patch intersection final float[] stack = state.getRobustStack(); { // init patch float[] patch = patches[primID]; for (int i = 0; i < 4 * 4 * 3; i++) stack[i] = pa...
if (index != null && index > 0 && index <= row.length) {
if (index != null && index > 0 && index <= columnsCount) {
public Object getParameter(final String name) { try { Integer index = columnsMap.find(name); if (index != null && index > 0 && index <= row.length) { //if index found and in range int ind = index - 1; if (row[ind] == null) { //cache miss ...
if (row[ind] == null) { row[ind] = converter.getObject(resultSet, ind + 1); } return row[ind];
return converter.getObject(resultSet, ind + 1);
public Object getParameter(final String name) { try { Integer index = columnsMap.find(name); if (index != null && index > 0 && index <= row.length) { //if index found and in range int ind = index - 1; if (row[ind] == null) { //cache miss ...
conceptTreePanel.checkAllMultipleInheritanceNode(model);
public TreeModel getTreeModel(Set<Concept> conceptSet) { Set pathSet = treeMaker.getPathList(conceptSet); trimmedConceptNum = 0; TreeModel model = treeMaker.getTrimmedTreeModel(pathSet, project, ConceptTreeMaker.DODDLE_CLASS_ROOT_ID); trimmedConceptNum = treeMaker.getTrimmedConceptNu...
return null;
return properties.getProperty(key);
public String getProperty(String key) { return null; }
buf.append("入力単語数: " + disambiguationPanel.getInputWordModelSet().size() + "\n");
buf.append("入力単語数: " + disambiguationPanel.getInputWordCnt() + "\n");
public void saveProjectInfo(DODDLEProject currentProject, File file) { OntologySelectionPanel ontSelectionPanel = currentProject.getOntologySelectionPanel(); DisambiguationPanel disambiguationPanel = currentProject.getDisambiguationPanel(); ConstructClassPanel constructClassPanel = currentProje...
buf.append("システムが追加した完全照合単語数: " + disambiguationPanel.getSystemAddedPerfectMatchedWordCnt() + "\n");
public void saveProjectInfo(DODDLEProject currentProject, File file) { OntologySelectionPanel ontSelectionPanel = currentProject.getOntologySelectionPanel(); DisambiguationPanel disambiguationPanel = currentProject.getDisambiguationPanel(); ConstructClassPanel constructClassPanel = currentProje...
alignment = "bgrleft";
alignment = "left";
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
alignment = "bgrcenter";
alignment = "center";
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
alignment = "bgrright";
alignment = "right";
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
String startRow = "<TR>"; String endRow = "</TR>";
String startRow = "<tr>"; String endRow = "</tr>";
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
String startColEmpty = "<TD>"; String startColStartNbr = "<TD CLASS=" + alignment + " WIDTH=50>"; String startColPlaceNbr = "<TD CLASS=" + alignment + " WIDTH=50>"; String startColLicense = "<TD CLASS=bgrleft WIDTH=110>"; String startColName = "<TD CLASS=bgrleft WIDTH=160>"; String startColClub = "<TD CLASS=bgrleft WID...
String startColEmpty = "<td>"; String startColStartNbr = "<td style=\"text-align:" + alignment + "\">"; String startColPlaceNbr = "<td style=\"text-align:" + alignment + "\">"; String startColLicense = "<td>"; String startColName = "<td>"; String startColClub = "<td>";
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
startColResult = "<TD CLASS=" + alignment + " WIDTH=50>";
startColResult = "<td style=\"text-align:" + alignment + "\">"; resultColWidth = "50px";
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
startColResult = "<TD CLASS=" + alignment + " WIDTH=28>";
startColResult = "<td style=\"text-align:" + alignment + "\">"; resultColWidth = "28px";
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
String startColSum = "<TD CLASS=" + alignment + " WIDTH=30>"; String endCol = "</TD>";
String startColSum = "<td style=\"text-align:" + alignment + "\">"; String endCol = "</td>";
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("<HTML>");
bufferOut.write("<!DOCTYPE HTML PUBLIC \"-
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("<HEAD>");
bufferOut.write("<html lang=\"sv\">");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("<STYLE ID=\"Bangolftvlingar\"><!--table "+ " .bgrleft{font-size:10.0pt;text-align:left;vertical-align:super;white-space:nowrap;}"+ " .bgrcenter{font-size:10.0pt;text-align:center;vertical-align:super;white-space:nowrap;}"+ " .bgrright{font-size:10.0pt;text-align:right;vertical-align:super;white-space:n...
bufferOut.write("<head>");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("<TITLE>" + header + "</TITLE>");
bufferOut.write("<title>" + header + "</title>");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("</HEAD>");
bufferOut.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=WINDOWS-1252\">");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("<BODY BGCOLOR=\"white\">");
bufferOut.write("<style type=\"text/css\">" + "body {font-family: arial} " + "td {font-size: 10.0pt; vertical-align: super; white-space: nowrap} " + "</style>");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("<FONT FACE=\"arial\">");
bufferOut.write("</head>");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("<H1 STYLE='font-size:14.0pt;font-weight:800;font-style:normal'>" + header + "</H1>");
bufferOut.write("<body style=\"background-color:white\">"); bufferOut.newLine(); bufferOut.write("<h1 style=\"font-size: 14.0pt\">" + header + "</h1>");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("<TABLE CELLPADDING=1 CELLSPACING=1>");
bufferOut.write("<table cellpadding=\"1\" cellspacing=\"1\">");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
boldStart = "<B>"; boldStop = "</B>";
boldStart = "<b>"; boldStop = "</b>";
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
boldStart = "<B style='font-size:12.0pt'>"; boldStop = "</B>";
boldStart = "<b style=\"font-size:12.0pt\">"; boldStop = "</b>";
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write(startCol + boldStart + "<FONT COLOR=\""+outputStyle[i][j]+"\">"+ output[i][j] +"</FONT>" + boldStop + endCol);
if (! boldStart.equals("")) startCol = addStyle(startCol, "width", colWidth); if (! outputStyle[i][j].equals("black")) startCol = addStyle(startCol, "color", outputStyle[i][j]); bufferOut.write(startCol + boldStart + output[i][j] + boldStop + endCol);
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("<TR><TD HEIGHT=15> </TD></TR>");
bufferOut.write("<tr><td style=\"height:15px\"> </td></tr>");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("</TABLE>");
bufferOut.write("</table>");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("<P><BR>");
bufferOut.write("<p><br>");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("<FONT SIZE=-2>Denna sida r skapad av <A HREF=\"http: + "BangolfResultat</A></FONT>");
bufferOut.write("<div style=\"font-size:7.5pt\">Denna sida r skapad av <a href=\"http: + "BangolfResultat</a></div>");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("</FONT>");
bufferOut.write("</body>");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
bufferOut.write("</BODY>"); bufferOut.newLine(); bufferOut.write("</HTML>");
bufferOut.write("</html>");
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
String identity = name + club;
public void addResult(int startNbr, String name, String club, String idNbr, int[] results, int rounds, String klass , int prio, int nbrRoundsFinished, int personID) { nbrRounds = rounds; String identity = name + club; Integer pID = new Integer(personID); if(IDMap.containsKey(pID)) { PersonResult pr = (PersonRe...
if (Math.abs(det) <= 1e-9f)
if (Math.abs(det) < 1e-12f)
public final Matrix4 inverse() { float A0 = m00 * m11 - m01 * m10; float A1 = m00 * m12 - m02 * m10; float A2 = m00 * m13 - m03 * m10; float A3 = m01 * m12 - m02 * m11; float A4 = m01 * m13 - m03 * m11; float A5 = m02 * m13 - m03 * m12; float B0 = m20 * m31 - m21 * m...
caps.add( Capability.LAST_MODIFIED );
caps.add( Capability.GET_LAST_MODIFIED );
protected void addCapabilities( final Collection caps ) { caps.add( Capability.LAST_MODIFIED ); caps.add( Capability.GET_TYPE ); caps.add( Capability.LIST_CHILDREN ); caps.add( Capability.READ_CONTENT ); caps.add( Capability.URI ); }
return new VelocityConnection(u);
return new VelocityConnection(u, null, MockConnectionParameters.NULL);
static VelocityConnection createConnection(final OutputStream out) { try { URL u =new URL("mem","",0,"memfile",new URLStreamHandler() { protected URLConnection openConnection(URL u) { return new URLConnection(u) { public void connect() { ...
JaninoQuery q = compiler.compileQuery(queryContent);
JaninoQuery q = null; q = compiler.compileQuery(queryContent);
public synchronized void executeQuery(Resource queryContent, ParametersCallback parametersCallback, QueryCallback queryCallback) throws ProviderException { JaninoQuery q = compiler.compileQuery(queryContent); q.setParametersCallback(parametersCallback); q.setQueryCallback(queryCallback); ...
private JaninoProviderException guessErrorStatement(JaninoProviderException e, Resource content, Class scriptClass) {
private static JaninoProviderException guessErrorStatement(JaninoProviderException e, Resource content, Class scriptClass) {
private JaninoProviderException guessErrorStatement(JaninoProviderException e, Resource content, Class scriptClass) { Throwable ex = e.getCause(); StackTraceElement[] trace = ex.getStackTrace(); final String scriptClassName = scriptClass.getName(); for (StackTraceElement el : trace) { //...
String st = getLine(content, el.getLineNumber());
String st = CodeCompiler.getLine(content, el.getLineNumber());
private JaninoProviderException guessErrorStatement(JaninoProviderException e, Resource content, Class scriptClass) { Throwable ex = e.getCause(); StackTraceElement[] trace = ex.getStackTrace(); final String scriptClassName = scriptClass.getName(); for (StackTraceElement el : trace) { //...
protected boolean removeEldestEntry(Map.Entry<String, PreparedStatement> eldest) {
protected boolean removeEldestEntry(Map.Entry<String, StatementWrapper.Prepared> eldest) {
protected boolean removeEldestEntry(Map.Entry<String, PreparedStatement> eldest) { boolean remove = size() > size; if (remove) { releasedStatements.add(eldest.getValue()); } return remove; }
releasedStatements.add(eldest.getValue());
disposeQueue.add(eldest.getValue());
protected boolean removeEldestEntry(Map.Entry<String, PreparedStatement> eldest) { boolean remove = size() > size; if (remove) { releasedStatements.add(eldest.getValue()); } return remove; }
};
public int available() throws IOException { long available = raf.length() - raf.getFilePointer(); if (available > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } return (int) available; } };
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...
if (username == null) { return null; }
private String extractDomain(String username) { for (int i = 0; i < username.length(); i++) { if (username.charAt(i) == '\\') { return username.substring(0, i); } } return null; }
public Feature createFeature(Feature f, Feature.Template templ)
public Feature createFeature(Feature.Template templ)
public Feature createFeature(Feature f, Feature.Template templ) throws ChangeVetoException { throw new ChangeVetoException("Can't create features in this projection"); }
public FeatureHolder getParent(Feature f) { FeatureHolder oldP = f.getParent(); if (oldP instanceof Feature) { if (wrapped.containsFeature(f)) { return parent; } else { return projectFeature((Feature) oldP); } } else { return parent; } }
public FeatureHolder getParent() { return parent; }
public FeatureHolder getParent(Feature f) { FeatureHolder oldP = f.getParent(); if (oldP instanceof Feature) { if (wrapped.containsFeature(f)) { return parent; } else { return projectFeature((Feature) oldP); ...
void close() throws FileSystemException;
public void close() throws FileSystemException;
void close() throws FileSystemException;
void copyFrom(FileObject srcFile, FileSelector selector)
public void copyFrom(FileObject srcFile, FileSelector selector)
void copyFrom(FileObject srcFile, FileSelector selector) throws FileSystemException;
void createFile() throws FileSystemException;
public void createFile() throws FileSystemException;
void createFile() throws FileSystemException;
void createFolder() throws FileSystemException;
public void createFolder() throws FileSystemException;
void createFolder() throws FileSystemException;
boolean delete() throws FileSystemException;
public boolean delete() throws FileSystemException;
boolean delete() throws FileSystemException;
boolean exists() throws FileSystemException;
public boolean exists() throws FileSystemException;
boolean exists() throws FileSystemException;
FileObject[] findFiles(FileSelector selector) throws FileSystemException;
public FileObject[] findFiles(FileSelector selector) throws FileSystemException;
FileObject[] findFiles(FileSelector selector) throws FileSystemException;
FileObject getChild(String name) throws FileSystemException;
public FileObject getChild(String name) throws FileSystemException;
FileObject getChild(String name) throws FileSystemException;
FileObject[] getChildren() throws FileSystemException;
public FileObject[] getChildren() throws FileSystemException;
FileObject[] getChildren() throws FileSystemException;
FileContent getContent() throws FileSystemException;
public FileContent getContent() throws FileSystemException;
FileContent getContent() throws FileSystemException;
FileSystem getFileSystem();
public FileSystem getFileSystem();
FileSystem getFileSystem();
FileName getName();
public FileName getName();
FileName getName();
FileObject getParent() throws FileSystemException;
public FileObject getParent() throws FileSystemException;
FileObject getParent() throws FileSystemException;
FileType getType() throws FileSystemException;
public FileType getType() throws FileSystemException;
FileType getType() throws FileSystemException;
URL getURL() throws FileSystemException;
public URL getURL() throws FileSystemException;
URL getURL() throws FileSystemException;
boolean isHidden() throws FileSystemException;
public boolean isHidden() throws FileSystemException;
boolean isHidden() throws FileSystemException;
boolean isReadable() throws FileSystemException;
public boolean isReadable() throws FileSystemException;
boolean isReadable() throws FileSystemException;
boolean isWriteable() throws FileSystemException;
public boolean isWriteable() throws FileSystemException;
boolean isWriteable() throws FileSystemException;
void moveTo(FileObject destFile)
public void moveTo(FileObject destFile)
void moveTo(FileObject destFile) throws FileSystemException;
FileObject resolveFile(String name, NameScope scope)
public FileObject resolveFile(String name, NameScope scope)
FileObject resolveFile(String name, NameScope scope) throws FileSystemException;
System.out.println("e = " + e);
public void test() throws EtlExecutorException { EtlExecutor etlExecutor = newEtlExecutor(); Connection c = getConnection("cancelTest"); final Thread etlThread = Thread.currentThread(); interrupted = false; new Thread() { public void run() { try { ...
if (api != null) { String currentFolder = new File(filename).getAbsoluteFile().getParentFile().getAbsolutePath(); api.includeSearchPath.addSearchPath(currentFolder); api.textureSearchPath.addSearchPath(currentFolder); }
public static SunflowAPI create(String filename) { if (filename == null) return new SunflowAPI(); SunflowAPI api = null; if (filename.endsWith(".java")) { Timer t = new Timer(); UI.printInfo(Module.API, "Compiling \"" + filename + "\" ..."); t.start()...
URL base = new URL("file:/var/script.xml");
URL base = new URL("file:/var/etl.xml");
public void testUnix() throws MalformedURLException { URL base = new URL("file:/var/script.xml"); String s = "1.jar: lib/second.jar :third.jar:;http://5.jar; ::; "; UrlPathTokenizer tok = new UrlPathTokenizer(base); URL[] actual = tok.split(s); String[] expected = new String[] {...
URL base = new URL("file:/c:/docs/script.xml");
URL base = new URL("file:/c:/docs/etl.xml");
public void testWin() throws MalformedURLException { URL base = new URL("file:/c:/docs/script.xml"); String s = " 1.jar;;;:::: lib/second.jar ;../third.jar:http://5.jar; file:/file name ; "; UrlPathTokenizer tok = new UrlPathTokenizer(base); URL[] actual = tok.split(s); Stri...
final String message = REZ.getString( "get-attribute-not-supported.error" ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/get-attribute-not-supported.error" );
public Object getAttribute( String attrName ) throws FileSystemException { final String message = REZ.getString( "get-attribute-not-supported.error" ); throw new FileSystemException( message ); }
final String message = REZ.getString( "set-attribute-not-supported.error" ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider/set-attribute-not-supported.error" );
public void setAttribute( String attrName, Object value ) throws FileSystemException { final String message = REZ.getString( "set-attribute-not-supported.error" ); throw new FileSystemException( message ); }
if (fo.getType().equals(FileType.FOLDER))
if (fo.getType().hasChildren())
void toRamFileObject(FileObject fo, FileObject root) throws FileSystemException { RamFileObject memFo = (RamFileObject) this.resolveFile(fo.getName() .getPath().substring(root.getName().getPath().length())); if (fo.getType().equals(FileType.FOLDER)) { // Create Folder memFo.createFolder(); // Import recu...
if (auth == null) { return null; } return auth.requestAuthentication(authenticatorTypes);
return authenticate(auth, authenticatorTypes);
public static UserAuthenticationData authenticate(FileSystemOptions opts, UserAuthenticationData.Type[] authenticatorTypes) { UserAuthenticator auth = DefaultFileSystemConfigBuilder.getInstance().getUserAuthenticator(opts); if (auth == null) { return null; } return auth.requestAuthentication(authenticatorTypes)...
public XYZColor(float X, float Y, float Z) { this.X = X; this.Y = Y; this.Z = Z;
public XYZColor() {
public XYZColor(float X, float Y, float Z) { this.X = X; this.Y = Y; this.Z = Z; }
return new ByteArrayInputStream("f1,f2,f3\n1,2,3\n4,5,6\n7,8,9".getBytes());
return new ByteArrayInputStream("f1,f2,f3\n1,2,3\nCol4,5,6\n7,8,9".getBytes());
public void test() throws ScriptsExecutorException { final ByteArrayOutputStream out = new ByteArrayOutputStream(); testURLHandler = new TestURLHandler() { public InputStream getInputStream(final URL u) { return new ByteArrayInputStream("f1,f2,f3\n1,2,3\n4,5,6\n7,8,9".getByte...
expected.add("1 2 3");expected.add("4 5 6");expected.add("7 8 9"); expected.add("q1"); expected.add("q4");
expected.add("1 2 3");expected.add("Col4 5 6");expected.add("7 8 9"); expected.add("q1"); expected.add("qCol4");
public void test() throws ScriptsExecutorException { final ByteArrayOutputStream out = new ByteArrayOutputStream(); testURLHandler = new TestURLHandler() { public InputStream getInputStream(final URL u) { return new ByteArrayInputStream("f1,f2,f3\n1,2,3\n4,5,6\n7,8,9".getByte...
assertTrue("Expected row(s) were not selected: "+expected, expected.isEmpty());
public void test() throws ScriptsExecutorException { final ByteArrayOutputStream out = new ByteArrayOutputStream(); testURLHandler = new TestURLHandler() { public InputStream getInputStream(final URL u) { return new ByteArrayInputStream("f1,f2,f3\n1,2,3\n4,5,6\n7,8,9".getByte...
return new ByteArrayInputStream("f1,f2,f3\n1,2,3\n4,5,6\n7,8,9".getBytes());
return new ByteArrayInputStream("f1,f2,f3\n1,2,3\nCol4,5,6\n7,8,9".getBytes());
public InputStream getInputStream(final URL u) { return new ByteArrayInputStream("f1,f2,f3\n1,2,3\n4,5,6\n7,8,9".getBytes()); }
str[1] = relationValue.toString();
str[1] = String.format("%.3f", Double.parseDouble(relationValue.toString()));
public String[] getTableData() { String[] str = new String[2]; str[0] = toConcept; str[1] = relationValue.toString(); return str; }
removeSameNode(rootNode); conceptDriftManagement(treeModel);
removeSameNode(rootNode);
public TreeModel getTrimmedTreeModel(Set pathSet, DODDLEProject project, String type) { TreeModel treeModel = getDefaultConceptTreeModel(pathSet, project, type); beforeTrimmingConceptNum = Utils.getAllConcept(treeModel).size(); ConceptTreeNode rootNode = (ConceptTreeNode) treeModel.getRoot(); ...
String identity = name + ", " + club;
private void handleResultInput() { boolean good = true; boolean goodValues = true; boolean startNbrAdded = false; int nbrRoundsToRead = 0; int nbrReadableInputs = 0; int prioNr = Integer.MAX_VALUE; int startNr = -1; String licenseNr = "null"; int[] results = new int[nbrRounds]; StringTokenizer str = new Stri...
public void setup(CompareFile compareFile) { this.compareFile = compareFile; this.cols = 3; board.removeAll(); label = new JLabel[65][cols]; setLabelLayout(label); board.repaint(); if(compareFile.size() != 0) { updateMean(true); }
public void setup(ResultList result) { this.cols = result.getNbrCols(); board.removeAll(); label = new JLabel[65][cols]; this.result = result; this.compareFile = null; board.setLayout(gridbag); c.weightx = 1.0; c.weighty = 1.0; c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.CENTER; gridbag....
public void setup(CompareFile compareFile) { this.compareFile = compareFile; this.cols = 3; board.removeAll(); label = new JLabel[65][cols]; setLabelLayout(label); board.repaint(); if(compareFile.size() != 0) { updateMean(true); } }
String newIdentity = newName + newClub;
public void changeNameAndClub(Integer personID, String newName, String newClub) { String newIdentity = newName + newClub; if(IDMap.containsKey(personID)) { PersonResult pr = (PersonResult) IDMap.get(personID); pr.changeNameAndClub(newName, newClub); } }
return;
throw new IllegalStateException("node overlap changed");
private void subdivide(int left, int right, IntArray tempTree, int[] indices, float[] gridBox, float[] nodeBox, int nodeIndex, int depth, BuildStats stats) { if ((right - left + 1) <= maxPrims || depth >= 64) { // write leaf node stats.updateLeaf(depth, right - left + 1); cre...
tempTree.set(nodeIndex + 2, Float.floatToRawIntBits(nodeBox[2 * prevAxis + 1]));
tempTree.set(nodeIndex + 2, Float.floatToRawIntBits(nodeBox[2 * prevAxis + 0]));
private void subdivide(int left, int right, IntArray tempTree, int[] indices, float[] gridBox, float[] nodeBox, int nodeIndex, int depth, BuildStats stats) { if ((right - left + 1) <= maxPrims || depth >= 64) { // write leaf node stats.updateLeaf(depth, right - left + 1); cre...
stats.updateLeaf(depth + 1, 0);
depth++; stats.updateLeaf(depth, 0);
private void subdivide(int left, int right, IntArray tempTree, int[] indices, float[] gridBox, float[] nodeBox, int nodeIndex, int depth, BuildStats stats) { if ((right - left + 1) <= maxPrims || depth >= 64) { // write leaf node stats.updateLeaf(depth, right - left + 1); cre...
public final Color set(Color c) { r = c.r; g = c.g; b = c.b;
public final Color set(float r, float g, float b) { this.r = r; this.g = g; this.b = b;
public final Color set(Color c) { r = c.r; g = c.g; b = c.b; return this; }
} else if (p.peekNextToken("dlasurface")) { String name; if (p.peekNextToken("name")) name = p.getNextToken(); else name = api.getUniqueName("dlasurface"); p.checkNextToken("filename"); String filename = p.getNextToken(); UI.printInfo(Module.USER, "Loading particle file: %s", filename); File file = new File(filename); ...
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
resolver.getServiceProperties();
resolver.getServiceProperties(beanName);
public void tstPublish() throws Exception { this.exporter.setBeanFactory(this.beanFactory); this.exporter.setBundleContext(this.bundleContext); MockControl mc = MockControl.createControl(OsgiServicePropertiesResolver.class); OsgiServicePropertiesResolver resolver = (OsgiServicePropertiesResolver) mc.getMock(); th...
int a = 3 * quads[quad + 0]; int b = 3 * quads[quad + 1]; int c = 3 * quads[quad + 2]; int d = 3 * quads[quad + 3]; intersectTriangleKensler(r, 2 * primID + 0, a, b, c, state); intersectTriangleKensler(r, 2 * primID + 1, a, c, d, state);
int p0 = 3 * quads[quad + 0]; int p1 = 3 * quads[quad + 1]; int p2 = 3 * quads[quad + 2]; int p3 = 3 * quads[quad + 3]; final float A[] = { points[p2 + 0] - points[p3 + 0] - points[p1 + 0] + points[p0 + 0], points[p2 + 1] - points[p3 + 1] - points[p1 + 1] + points[p0 + 1], points[p2 + 2] - points[p3 + 2] - points[p1 +...
public void intersectPrimitive(Ray r, int primID, IntersectionState state) { int quad = 4 * primID; int a = 3 * quads[quad + 0]; int b = 3 * quads[quad + 1]; int c = 3 * quads[quad + 2]; int d = 3 * quads[quad + 3]; intersectTriangleKensler(r, 2 * primID + 0, a, b, c, state...