buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void testMoveResource() throws Exception { /* create common objects */ IProject[] projects = getWorkspace().getRoot().getProjects(); /* create folder and file */ IFolder folder = projects[0].getFolder("folder"); IFile file = folder.getFile("file.txt"); ensureExistsInWorkspace(folder, true); ensureExistsI...
public void testMoveResource() throws Exception { /* create common objects */ IProject[] projects = getWorkspace().getRoot().getProjects(); /* create folder and file */ IFolder folder = projects[0].getFolder("folder"); IFile file = folder.getFile("file.txt"); ensureExistsInWorkspace(folder, true); ensureExistsI...
public int compare(Object oldInfo, Object newInfo) { if (oldInfo == null) { if (newInfo == null) { return CHANGED; } else { return ADDED; } } if (newInfo == null) { if (oldInfo == null) { return CHANGED; } else { return REMOVED; } } return testEquality(oldInfo, newInfo) ? K_...
public int compare(Object oldInfo, Object newInfo) { if (oldInfo == null) { if (newInfo == null) return CHANGED; return ADDED; } if (newInfo == null) return REMOVED; return testEquality(oldInfo, newInfo) ? K_NO_CHANGE : CHANGED; }
public void testRangeSubsetKeys() throws Exception { String request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" + // "<GetCoverage service=\"WCS\" version=\"1.0.0\"" + // " xmlns=\"http://www.opengis.net/wcs\" " + // ...
public void testRangeSubsetKeys() throws Exception { String request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" + // "<GetCoverage service=\"WCS\" version=\"1.0.0\"" + // " xmlns=\"http://www.opengis.net/wcs\" " + // ...
public boolean onOptionsItemSelected(MenuItem item) { if (mOptionsMenuHandler != null && mOptionsMenuHandler.onOptionsItemSelected(item)) { return true; } if (item.getGroupId() != R.id.CONTEXT_MENU) { // menu remains active, so ensure comboview is dis...
public boolean onOptionsItemSelected(MenuItem item) { if (mOptionsMenuHandler != null && mOptionsMenuHandler.onOptionsItemSelected(item)) { return true; } if (item.getGroupId() != R.id.CONTEXT_MENU) { // menu remains active, so ensure comboview is dis...
private void nextFrame(long delta) { if (stopped) { return; } if (frames.size() == 0) { return; } nextChange -= delta; while (nextChange < 0 && (!stopped)) { if (currentFrame == stopAt) { stopped = true; break; } if ((currentFrame == frames.size() - 1) && (!loop)) { break; ...
private void nextFrame(long delta) { if (stopped) { return; } if (frames.size() == 0) { return; } nextChange -= delta; while (nextChange < 0 && (!stopped)) { if (currentFrame == stopAt) { stopped = true; break; } if ((currentFrame == frames.size() - 1) && (!loop)) { ...
TCFNodeExecContext(TCFNode parent, final String id) { super(parent, id); children_exec = new TCFChildrenExecContext(this); children_stack = new TCFChildrenStackTrace(this); children_regs = new TCFChildrenRegisters(this); children_exps = new TCFChildrenExpressions(this); ...
TCFNodeExecContext(TCFNode parent, final String id) { super(parent, id); children_exec = new TCFChildrenExecContext(this); children_stack = new TCFChildrenStackTrace(this); children_regs = new TCFChildrenRegisters(this); children_exps = new TCFChildrenExpressions(this); ...
public void testSaveNewStudy() throws Exception { Integer savedId; { Study study = new Study(); study.setName("New study"); study.addArm(new Arm()); study.getArms().get(0).setName("First Arm"); dao.save(study); savedId = study.g...
public void testSaveNewStudy() throws Exception { Integer savedId; { Study study = new Study(); study.setName("New study"); study.addArm(new Arm()); study.getArms().get(0).setName("First Arm"); dao.save(study); savedId = study.g...
public static Object get(final JsonNode json, final String name) { if (json != null) { JsonNode node = json.get(name); if (node != null) { if (node.isNumber()) { return node.intValue(); } else if (node.isBoolean()) { ...
public static Object get(final JsonNode json, final String name) { if (json != null) { JsonNode node = json.get(name); if (node != null) { if (node.isNumber()) { return node.numberValue(); } else if (node.isBoolean()) { ...
protected void installListeners() { //David: Adding the MouseEventHandler synchronously causes a strange // initialization sequence if the popup owner is a tree/table editor: // // - The editor gets moved to its initial location based on the cell location, // generating a COMPONENT_MOVED ComponentEvent. // - ...
protected void installListeners() { //David: Adding the MouseEventHandler synchronously causes a strange // initialization sequence if the popup owner is a tree/table editor: // // - The editor gets moved to its initial location based on the cell location, // generating a COMPONENT_MOVED ComponentEvent. // - ...
public void onReceive(ProMaSiClient client, String recData) { try{ Object object=new XMLDecoder(new ByteArrayInputStream(recData.getBytes())).readObject(); if(object instanceof GameStartedRequest){ GameStartedRequest request=(GameStartedRequest)object; if(request.getGameModel()==null || request.getDate...
public void onReceive(ProMaSiClient client, String recData) { try{ Object object=new XMLDecoder(new ByteArrayInputStream(recData.getBytes())).readObject(); if(object instanceof GameStartedRequest){ GameStartedRequest request=(GameStartedRequest)object; if(request.getGameModel()==null || request.getDate...
private void initComponents() { Calendar now = Calendar.getInstance(); int year = now.get(Calendar.YEAR); LeftJPanel = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); RICImgLabel = new javax.swing.JLabel(); RightInnerJpanel = new javax.swing.JPanel(); ye...
private void initComponents() { Calendar now = Calendar.getInstance(); int year = now.get(Calendar.YEAR); LeftJPanel = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); RICImgLabel = new javax.swing.JLabel(); RightInnerJpanel = new javax.swing.JPanel(); ye...
public void run() { SafeTokenSequence<JFXTokenId> ts = getTokenSequence(doc, 0); // reformat not used for now Reformat reformat = null; int offsetDiff = 0; try { int offset = (int)(model.getImportsEnd() + 1); if (offset < 0) { offset ...
public void run() { SafeTokenSequence<JFXTokenId> ts = getTokenSequence(doc, 0); // reformat not used for now Reformat reformat = null; int offsetDiff = 0; try { int offset = (int)(model.getImportsEnd() + 1); if (offset < 0) { offset ...
public void startPlatform(String platform){ connector = PlatformSelector.getConnector(platform); connector.launchPlatform(); messenger = PlatformSelector.getMessenger(platform); startAgents(); }
public void startPlatform(String platform){ this.platform = platform; connector = PlatformSelector.getConnector(platform); connector.launchPlatform(); messenger = PlatformSelector.getMessenger(platform); startAgents(); }
public static void main(String args[]) { // Specify (immediately) to the user what the class assumes System.out.println("The CheckForwardAndReverseRateCoefficients class makes the following assumptions:\n" + "\t1) The thermodynamics data for each species (NASA-7 polynomials)...
public static void main(String args[]) { // Specify (immediately) to the user what the class assumes System.out.println("The CheckForwardAndReverseRateCoefficients class makes the following assumptions:\n" + "\t1) The thermodynamics data for each species (NASA-7 polynomials)...
public static void main(String[] args) throws Exception { try { System.out.println("[!] Dehoser - unpacker for HoseDex2Jar packer"); System.out.println("[-] Tim Strazzere, diff@lookout.com"); byte[] file = readFile(args[0]); System.out.println(" [+] Read [ " ...
public static void main(String[] args) throws Exception { try { System.out.println("[!] Dehoser - unpacker for HoseDex2Jar packer"); System.out.println("[-] Tim Strazzere, diff@lookout.com"); byte[] file = readFile(args[0]); System.out.println(" [+] Read [ " ...
public ApplicationInstance( @JsonProperty("state") String state, @JsonProperty("since") double since, @JsonProperty("debug_ip") String debugIp, @JsonProperty("debug_port") Integer debugPort, @JsonProperty("console_ip") String consoleIp, @JsonProperty("console_port") Integer consolePort ) { State s...
public ApplicationInstance( @JsonProperty("state") String state, @JsonProperty("since") double since, @JsonProperty("debug_ip") String debugIp, @JsonProperty("debug_port") Integer debugPort, @JsonProperty("console_ip") String consoleIp, @JsonProperty("console_port") Integer consolePort ) { State s...
public void touchEvent(MotionEvent me, int i) { int pointerId = me.getPointerId(i); float x = me.getX(i); float y = me.getY(i); float vx = 0; float vy = 0; int index = me.findPointerIndex(pointerId); if (points.size() < index+1) { //points.ensureCapacity(index+4); points.add(null); ...
public void touchEvent(MotionEvent me, int i) { int pointerId = me.getPointerId(i); float x = me.getX(i); float y = me.getY(i); float vx = 0; float vy = 0; int index = me.findPointerIndex(pointerId); if (points.size() < index+1) { //points.ensureCapacity(index+4); points.add(null); ...
public static void main(String[] args) throws Exception { new NativeCodeGenerator().generate("src", "bin", "jni", new String[] { "**/AudioTools.java", "**/KissFFT.java", "**/VorbisDecoder.java", "**/Mpg123Decoder.java", "**/SoundTouch.java" }, null); String[] headerDirs = new String...
public static void main(String[] args) throws Exception { new NativeCodeGenerator().generate("src", "bin", "jni", new String[] { "**/AudioTools.java", "**/KissFFT.java", "**/VorbisDecoder.java", "**/Mpg123Decoder.java", "**/SoundTouch.java" }, null); String[] headerDirs = new String...
public CreateLicensePoolResponse createLicensePool( CreateLicensePoolRequest licensepoolRequest) { ServiceResponseType serviceResponseType = new ServiceResponseType(); try { CreateLicensePool createLicensePoolSchemaObj = licensepoolRequest .getCreateLicensePool(); if (logger.isDebugEnabled()) { ...
public CreateLicensePoolResponse createLicensePool( CreateLicensePoolRequest licensepoolRequest) { ServiceResponseType serviceResponseType = new ServiceResponseType(); try { CreateLicensePool createLicensePoolSchemaObj = licensepoolRequest .getCreateLicensePool(); if (logger.isDebugEnabled()) { ...
public static QueryResults doQuery(Context c, QueryArgs args) throws IOException { String querystring = args.getQuery(); QueryResults qr = new QueryResults(); List hitHandles = new ArrayList(); List hitIds = new ArrayList(); List hitTypes = new ArrayList...
public static QueryResults doQuery(Context c, QueryArgs args) throws IOException { String querystring = args.getQuery(); QueryResults qr = new QueryResults(); List hitHandles = new ArrayList(); List hitIds = new ArrayList(); List hitTypes = new ArrayList...
private void moveBall() { boolean play = true; while (play) { // bounce ball off walls and ceiling if (ball.getX() >= APPLET_WIDTH - BALL_DIAMETER) { ballVX = -Math.abs(ballVX); } if (ball.getX() <= 0) { ballVX = Math.abs(ballVX); } if (ball.getY() <= 0) { ballVY = Math.abs(ballVY); ...
private void moveBall() { boolean play = true; while (play) { // bounce ball off walls and ceiling if (ball.getX() >= APPLET_WIDTH - BALL_DIAMETER) { ballVX = -Math.abs(ballVX); } if (ball.getX() <= 0) { ballVX = Math.abs(ballVX); } if (ball.getY() <= 0) { ballVY = Math.abs(ballVY); ...
public void show() { // TODO Auto-generated method stub // float w = Gdx.graphics.getWidth(); // float h = Gdx.graphics.getHeight(); camera = new OrthographicCamera(PixMindGame.w * PixMindGame.WORLD_TO_BOX, PixMindGame.h * PixMindGame.WORLD_TO_BOX); camera.translate(PixMindGame.w / 2 * PixMindGame.W...
public void show() { // TODO Auto-generated method stub // float w = Gdx.graphics.getWidth(); // float h = Gdx.graphics.getHeight(); camera = new OrthographicCamera(PixMindGame.w * PixMindGame.WORLD_TO_BOX, PixMindGame.h * PixMindGame.WORLD_TO_BOX); camera.translate(PixMindGame.w / 2 * PixMindGame.W...
private JMenu getOptionsMenu() { final AtlasConfigEditable ace = gp.getAce(); JMenu optionsMenu = new JMenu(R("MenuBar.OptionsMenu")); final JMenuItem optionsMenuItem = new JMenuItem(new AbstractAction( "Einstellungen") { @Override public void actionPerformed(ActionEvent arg0) { new GpOptionsDial...
private JMenu getOptionsMenu() { final AtlasConfigEditable ace = gp.getAce(); JMenu optionsMenu = new JMenu(R("MenuBar.OptionsMenu")); final JMenuItem optionsMenuItem = new JMenuItem(new AbstractAction(R("GpOptionsDialog.title")) { @Override public void actionPerformed(ActionEvent arg0) { new GpOptio...
private void writeNode(Node node, boolean isroot) { print(";"); if (isroot) { String value; node.setSgfProperty("FF", "4"); node.setSgfProperty("AP", "HexGui:"+Version.id+"."+Version.build); node.setSgfProperty("GM", "11"); Dimension dim = m_gameinfo.getBoardSize(); value...
private void writeNode(Node node, boolean isroot) { print(";"); if (isroot) { String value; node.setSgfProperty("FF", "4"); node.setSgfProperty("AP", "HexGui:"+Version.id); node.setSgfProperty("GM", "11"); Dimension dim = m_gameinfo.getBoardSize(); value = Integer.toStrin...
public static void main( String[] args ) { boolean start = true; File file = new File("bang.txt"); //card holders // String colorOfCard = ""; // String B1 = ""; // String B2 = ""; lastModifiedDate = file.lastModified(); BufferedReader reader = null; try { reader = new Bu...
public static void main( String[] args ) { boolean start = true; File file = new File("bang.txt"); //card holders // String colorOfCard = ""; // String B1 = ""; // String B2 = ""; lastModifiedDate = file.lastModified(); BufferedReader reader = null; try { reader = new Bu...
public static void main(String[] args) { int rows = 10; int cols = 10; double[] sourceLayer = {0.0,100.0,0.0,0.0,0.0,100.0,0.0, 0.0, 0.0,0.0, 0.0, 0.0,0.0,0.0,0.0, 0.0,0.0, 0.0, 0.0,0.0, 0.0, 0.0,0.0,0.0,0.0, 0.0,0.0, 0.0, 0.0,0.0, ...
public static void main(String[] args) { int rows = 10; int cols = 10; double[] sourceLayer = {0.0,100.0,0.0,0.0,0.0,100.0,0.0, 0.0, 0.0,0.0, 0.0, 0.0,0.0,0.0,0.0, 0.0,0.0, 0.0, 0.0,0.0, 0.0, 0.0,0.0,0.0,0.0, 0.0,0.0, 0.0, 0.0,0.0, ...
public static Boolean run(CommandSender sender, String alias, String[] args) { if(PlayerHelper.checkIsPlayer(sender) && !Utils.checkCommandSpam((Player)sender, "urbandictionary") && Permissions.checkPerms((Player)sender, "cex.urbandictionary")) { if(args.length == 1) { String def = null; try { LogHel...
public static Boolean run(CommandSender sender, String alias, String[] args) { if(PlayerHelper.checkIsPlayer(sender) && !Utils.checkCommandSpam((Player)sender, "urbandictionary") && Permissions.checkPerms((Player)sender, "cex.urbandictionary")) { if(args.length == 1) { String def = null; try { LogHel...
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { int prevCount = mAdapter.getCount(); boolean isListAtEnd = mListView.getLastVisiblePosition() == (prevCount - 1); mAdapter.changeCursor(cursor); showRefreshProgressBar(false); int newCount = mAdapter.getCount(...
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { int prevCount = mAdapter.getCount(); boolean isListAtEnd = mListView.getLastVisiblePosition() == (prevCount - 1); mAdapter.changeCursor(cursor); showRefreshProgressBar(false); int newCount = mAdapter.getCount(...
Principal getPrincipal(HttpRequest request) throws Exception { List<String> header = request.getHttpHeaders().getRequestHeader("Authorization"); String auth = null; if (null != header && header.size() > 0) { auth = header.get(0); } if (auth != null && auth.toUpp...
Principal getPrincipal(HttpRequest request) throws Exception { List<String> header = request.getHttpHeaders().getRequestHeader("Authorization"); String auth = null; if (null != header && header.size() > 0) { auth = header.get(0); } if (auth != null && auth.toUpp...
private void createIssue(Message message) throws IssueException { String issueTitle = message.getMessage().substring(5); String issueBody = "This message was generated automatically by " + message.getUser() + " in " + message.getChannel() + ". Once confirmed, please remove `unconfirmed` tag...
private void createIssue(Message message) throws IssueException { String issueTitle = message.getMessage().substring(5); String issueBody = "This message was generated automatically by " + message.getUser() + " in " + message.getChannel() + ". Once confirmed, please remove `unconfirmed` tag...
public void testDefaultAgentRepoAndBundlePoolFromProfileRepo() { File testData = getTestData("0.1", "testData/sdkpatchingtest"); // /p2/org.eclipse.equinox.p2.engine/profileRegistry"); File tempFolder = getTempFolder(); copy("0.2", testData, tempFolder); new SimpleArtifactRepositoryFactory().create(tempFolde...
public void testDefaultAgentRepoAndBundlePoolFromProfileRepo() throws InterruptedException { File testData = getTestData("0.1", "testData/sdkpatchingtest"); // /p2/org.eclipse.equinox.p2.engine/profileRegistry"); File tempFolder = getTempFolder(); copy("0.2", testData, tempFolder); new SimpleArtifactReposito...
public AccelerometerSample readSample() throws IOException { byte data[] = new byte[6]; short sample[] = null; int result = read(data); if(result == data.length) { sample = new short[3]; for(int i = 0; i < sample.length; ++i) { sample[i] = (short)((short)(data[i*2] << 8) + (short)data[i*2 +...
public AccelerometerSample readSample() throws IOException { byte data[] = new byte[6]; short sample[] = null; int result = read(data); if(result == data.length) { sample = new short[3]; for(int i = 0; i < sample.length; ++i) { sample[i] = (short)((short)(data[i*2] << 8) + (short)data[i*2 +...
public final static WebSocketFactory getFactory(final AtmosphereConfig config, final WebSocketProcessor webSocketProcessor) { WebSocketFactory webSocketFactory = new WebSocketFactory(new WebSocketFactory.Acceptor() { public boolean checkOrigin(HttpServletRequest request, String origin) { ...
public final static WebSocketFactory getFactory(final AtmosphereConfig config, final WebSocketProcessor webSocketProcessor) { WebSocketFactory webSocketFactory = new WebSocketFactory(new WebSocketFactory.Acceptor() { public boolean checkOrigin(HttpServletRequest request, String origin) { ...
public void iteration() { UNIT_TYPE[] bestArray; setScore(calculateScore()); bestArray = this.getArrayCopy(); this.temperature = this.getStartTemperature(); for (int i = 0; i < this.cycles; i++) { double curScore; randomize(); curScore = calculateScore(); if (this.shouldMinimize) { if ...
public void iteration() { UNIT_TYPE[] bestArray; setScore(calculateScore()); bestArray = this.getArrayCopy(); this.temperature = this.getStartTemperature(); for (int i = 0; i < this.cycles; i++) { double curScore; randomize(); curScore = calculateScore(); if (!this.shouldMinimize) { if...
public static boolean isValidGrant(String accountName) throws KeyNotFoundException { try { grantDB.getGrantInfo(accountName); return true; } catch (KeyNotFoundException e) { return false; } }
public static boolean isValidGrant(String accountName) { try { grantDB.getGrantInfo(accountName); return true; } catch (KeyNotFoundException e) { return false; } }
public void HangingEvent(HangingBreakByEntityEvent e) { Hanging broken = e.getEntity(); Entity remover = e.getRemover(); if (remover instanceof Player) { Player player = (Player) remover; if (broken instanceof ItemFrame) { Double x = broken.getLocation().getX(); Double y = broken.getLocation().get...
public void HangingEvent(HangingBreakByEntityEvent e) { Hanging broken = e.getEntity(); Entity remover = e.getRemover(); if (remover instanceof Player) { Player player = (Player) remover; if (broken instanceof ItemFrame) { Double x = broken.getLocation().getX(); Double y = broken.getLocation().get...
public static TreeMap<String,String> addTorrent(InputStream torrent, String torrentName, String torrentDescription, String contextPath) throws Exception { Long torrentLength = new Long(0L); Torrent t; TorrentData tData; TorrentFile tFile; // list of files and the...
public static TreeMap<String,String> addTorrent(InputStream torrent, String torrentName, String torrentDescription, String contextPath) throws Exception { Long torrentLength = new Long(0L); Torrent t; TorrentData tData; TorrentFile tFile; // list of files and the...
public void visit(RefLinkNode refLinkNode) { // Since XWiki doesn't support reference links, we generate a standard link instead String label = extractText(refLinkNode.referenceKey); ReferenceNode referenceNode = this.references.get(label); if (referenceNode != null) { ...
public void visit(RefLinkNode refLinkNode) { // Since XWiki doesn't support reference links, we generate a standard link instead // If the reference key is null then the node content is considered to be the key! String label; if (refLinkNode.referenceKey == null) { la...
private static OSUtils os() { if (os == null) { String osName = System.getProperty("os.name"); if (os.equals("Mac OS X")) os = new MacUtils(); else if (os.equals("Windows NT")) os = new WinUtils(); if (...
private static OSUtils os() { if (os == null) { String osName = System.getProperty("os.name"); if (osName.equals("Mac OS X")) os = new MacUtils(); else if (osName.equals("Windows NT")) os = new WinUtils(); ...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ProjectManager.singleton.setBusy(true); try { Properties options = ParsingUtilities.parseUrlParameters(request); long projectID = Project.generate...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ProjectManager.singleton.setBusy(true); try { Properties options = ParsingUtilities.parseUrlParameters(request); long projectID = Project.generate...
public void run() { frame.status.progress(0); frame.status.setStatus(""); File files[] = new File(YAMM.home + "/servers/").listFiles(); for(int i=0;i<files.length;i++) { /* load the config */ try { InputStream in = new FileInputStream(files[i]); props.load(in); i...
public void run() { frame.status.progress(0); frame.status.setStatus(""); File files[] = new File(YAMM.home + "/servers/").listFiles(); for(int i=0;i<files.length;i++) { /* load the config */ try { InputStream in = new FileInputStream(files[i]); props.load(in); i...
protected ListView buildListView(String input) { List results = new ArrayList(); results.add(new CustomResultObject("ryan.gif", "Ryan Sonnek", "ryan@youremail.com")); results.add(new CustomResultObject("billy.gif", "Bill Gates", "bill.gates@microsoft.com")); results.add(new CustomResultObject("janet.gif", "Jan...
protected ListView buildListView(String input) { List results = new ArrayList(); results.add(new CustomResultObject("ryan.gif", "Ryan Sonnek", "ryan@youremail.com")); results.add(new CustomResultObject("billy.gif", "Bill Gates", "bill.gates@microsoft.com")); results.add(new CustomResultObject("janet.gif", "Jan...
public void getDescriptorsFor_DBL_SM_XXXX_AUX_ECMWF__0200() { final String formatName = "DBL_SM_XXXX_AUX_ECMWF__0200"; final BandDescriptors descriptors = BandDescriptorRegistry.getInstance().getDescriptors(formatName); assertEquals(38, descriptors.asList().size()); final BandDescri...
public void getDescriptorsFor_DBL_SM_XXXX_AUX_ECMWF__0200() { final String formatName = "DBL_SM_XXXX_AUX_ECMWF__0200"; final BandDescriptors descriptors = BandDescriptorRegistry.getInstance().getDescriptors(formatName); assertEquals(38, descriptors.asList().size()); final BandDescri...
private void validateTypedElement( FemSqltypedElement element, CwmNamespace cwmNamespace) { final FemAbstractTypedElement abstractElement = element.getModelElement(); SqlDataTypeSpec dataType = (SqlDataTypeSpec) validator.getSqlDefinition(abstractElement); if...
private void validateTypedElement( FemSqltypedElement element, CwmNamespace cwmNamespace) { final FemAbstractTypedElement abstractElement = element.getModelElement(); SqlDataTypeSpec dataType = (SqlDataTypeSpec) validator.getSqlDefinition(abstractElement); if...
public AddDeviceDlg(MicroscopeModel model, DevicesPage devicesPage) { super(); setModal(true); setResizable(false); getContentPane().setLayout(null); setTitle("Add Device"); setBounds(400, 100, 596, 529); devicesPage_ = devicesPage; Device allDevs_[] ...
public AddDeviceDlg(MicroscopeModel model, DevicesPage devicesPage) { super(); setModal(true); setResizable(false); getContentPane().setLayout(null); setTitle("Add Device"); setBounds(400, 100, 596, 529); devicesPage_ = devicesPage; Device allDevs_[] ...
public boolean executeCommand(CommandLine cl){ boolean ret = false; try { ret = super.executeCommand(cl); } catch (Exception e) { System.out.println("Exception executing command"); e.printStackTrace(); } if(!ret){ return false; } if(!(cl.hasOption("newkeyspacefile") || cl.hasOption("newkeysp...
public boolean executeCommand(CommandLine cl){ boolean ret = false; try { ret = super.executeCommand(cl); } catch (Exception e) { System.out.println("Exception executing command"); e.printStackTrace(); } if(!ret){ return false; } if(!(cl.hasOption("newkeyspacefile") || cl.hasOption("newkeysp...
public void generate(Class<?> clazz, File targetJsFolder) throws Exception { StringBuilder b = new StringBuilder(); String prefix = ""; String suffix = ";"; if (clazz.isAnnotationPresent(JavascriptDomainModel.class)) { b.append("function " + clazz.getSimpleName() + "("); for(Field field:clazz.getDeclared...
public void generate(Class<?> clazz, File targetJsFolder) throws Exception { StringBuilder b = new StringBuilder(); String prefix = ""; String suffix = ";"; if (clazz.isAnnotationPresent(JavascriptDomainModel.class)) { b.append("function " + clazz.getSimpleName() + "("); for(Field field:clazz.getDeclared...
public void layoutElements( @Nullable final LayoutPart rootElement, @Nullable final List<LayoutPart> elements) { // make the params any sense? if (rootElement == null || elements == null || elements.size() == 0) { return; } // get the root box int rootBoxX = getRootBoxX(rootEle...
public void layoutElements( @Nullable final LayoutPart rootElement, @Nullable final List<LayoutPart> elements) { // make the params any sense? if (rootElement == null || elements == null || elements.size() == 0) { return; } // get the root box int rootBoxX = getRootBoxX(rootEle...
public void appendFromFile(SequenceList list, File file, DelayCallback delay) throws IOException, SequenceException, FormatException, DelayAbortedException { list.lock(); if(delay != null) delay.begin(); Hashtable hash_genes = new Hashtable(); Hashtable hash_cds = new Hashtable(); // Hash of String(seq...
public void appendFromFile(SequenceList list, File file, DelayCallback delay) throws IOException, SequenceException, FormatException, DelayAbortedException { list.lock(); if(delay != null) delay.begin(); Hashtable hash_genes = new Hashtable(); Hashtable hash_cds = new Hashtable(); // Hash of String(seq...
private byte[] writeWorld(String name, String transformedName, byte[] bytes, ClassReader cr) { String[] names = null; if (CoreLoader.runtimeDeobfEnabled) { names = new String[]{"field_73019_z","field_72986_A","field_73011_w","field_72984_F","field_98181_L"}; } else { names = new String[]{"saveHandle...
private byte[] writeWorld(String name, String transformedName, byte[] bytes, ClassReader cr) { String[] names = null; if (CoreLoader.runtimeDeobfEnabled) { names = new String[]{"field_73019_z","field_72986_A","field_73011_w","field_72984_F","field_98181_L"}; } else { names = new String[]{"saveHandle...
public static void main (String[] args) { // Start the mlt system Factory.init( null ); // Create the producer Producer p = new Producer( args[0], null ); if ( p.is_valid() ) { p.set ("eof", "loop"); // Create the consumer Consumer c = new Consumer("sdl", null); // Turn off the defaul...
public static void main (String[] args) { // Start the mlt system Factory.init( null ); // Create the producer Producer p = new Producer( args[0], null ); if ( p.is_valid() ) { p.set ("eof", "loop"); // Create the consumer Consumer c = new Consumer("sdl", null); // Turn off the defaul...
protected TableCell() { super(); this.setTransient(false); }
public TableCell() { super(); this.setTransient(false); }
public static void Log(LoggerType type, String playerName, HashMap<String, String> data) { config conf = config.Obtain(); if(conf.getBoolean("GiantShop.log.useLogging")) { if(conf.getBoolean("GiantShop.log.log." + type.getName().toLowerCase())) { String json = "{"; int i = 0; for(Map.Entry<String, S...
public static void Log(LoggerType type, String playerName, HashMap<String, String> data) { config conf = config.Obtain(); if(conf.getBoolean("GiantShop.log.useLogging")) { if(conf.getBoolean("GiantShop.log.log." + type.getName().toLowerCase())) { String json = "{"; int i = 0; for(Map.Entry<String, S...
public int executeUpdate() throws SQLException { startTime = System.currentTimeMillis(); Database database = session.getDatabase(); Object sync = database.getMultiThreaded() ? (Object) session : (Object) database; session.waitIfExclusiveModeEnabled(); synchronized (sync) { ...
public int executeUpdate() throws SQLException { startTime = System.currentTimeMillis(); Database database = session.getDatabase(); Object sync = database.getMultiThreaded() ? (Object) session : (Object) database; session.waitIfExclusiveModeEnabled(); synchronized (sync) { ...
TimerGUI() { palette = new Color[7]; palette[BEFORE] = Color.decode(Settings.instance().colorScheme.get("before")); palette[RUNNING] = Color.decode(Settings.instance().colorScheme.get("running")); palette[FROZEN] = Color.decode(Settings.instance().colorScheme.get("frozen")); palette[LEFT5MIN] = Color.decode(...
TimerGUI() { palette = new Color[7]; palette[BEFORE] = Color.decode(Settings.instance().colorScheme.get("before")); palette[RUNNING] = Color.decode(Settings.instance().colorScheme.get("running")); palette[FROZEN] = Color.decode(Settings.instance().colorScheme.get("frozen")); palette[LEFT5MIN] = Color.decode(...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (sender.getName().equals("CONSOLE")) { sender.sendMessage(ChatColor.RED + "You may not use this command from the console!"); return true; } ArrayList<String> allowedDisguises...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { ArrayList<String> allowedDisguises = getAllowedDisguises(sender, "disguiseplayer"); if (allowedDisguises.isEmpty()) { sender.sendMessage(ChatColor.RED + "You are forbidden to use this command."); ...
public boolean sendBlockingLoginRequest() { sendLoginRequest(); long startTime = System.currentTimeMillis(); long timepast = System.currentTimeMillis() - startTime; while (!hasReceivedLoginResponse() && (timepast < TIMEOUT_MILLIS)) { try // TODO Make sure error is handled gracefully { Thread.sleep(...
public boolean sendBlockingLoginRequest() { sendLoginRequest(); long startTime = System.currentTimeMillis(); long timepast = System.currentTimeMillis() - startTime; while (!hasReceivedLoginResponse() && (timepast < TIMEOUT_MILLIS)) { try { Thread.sleep(10); } catch (InterruptedException e) { ...
public void execute(Event<UIPoll> event) throws Exception { UIPoll topicPoll = event.getSource() ; Poll poll = topicPoll.poll_ ; String[] votes ; String[] setUserVote ; String userVote = topicPoll.userId ; List<UIComponent> children = topicPoll.getChildren() ; //User vote and vote number ...
public void execute(Event<UIPoll> event) throws Exception { UIPoll topicPoll = event.getSource() ; Poll poll = topicPoll.poll_ ; String[] votes ; String[] setUserVote ; String userVote = topicPoll.userId ; List<UIComponent> children = topicPoll.getChildren() ; //User vote and vote number ...
public void testGenerateSpring() throws Exception { deleteDirectory("target/appfuse/generated"); HibernateExporterMojo mojo = getHibernateMojo("gen", "annotationconfiguration"); mojo.getProject().getProperties().setProperty("web.framework", "spring"); mojo.execute(); assertT...
public void testGenerateSpring() throws Exception { deleteDirectory("target/appfuse/generated"); HibernateExporterMojo mojo = getHibernateMojo("gen", "annotationconfiguration"); mojo.getProject().getProperties().setProperty("web.framework", "spring"); mojo.execute(); assertT...
public SeanceAdapterView(Context context, CinemaDB entry) { super(context); this.setOrientation(VERTICAL); this.setTag(entry); View v = inflate(context, R.layout.seance_row, null); ImageView cinemaPoster = (ImageView)v.findViewById(R.id.cinema_poster); Bitmap poster = entry.getPosterImg(); if (p...
public SeanceAdapterView(Context context, CinemaDB entry) { super(context); this.setOrientation(VERTICAL); this.setTag(entry); View v = inflate(context, R.layout.seance_row, null); ImageView cinemaPoster = (ImageView)v.findViewById(R.id.cinema_poster); Bitmap poster = entry.getPosterImg(); if (p...
public Graph(League l, Team t) { if (l == null || t == null) return; // Number of team nodes is one less than total number of teams. // The team nodes do not include the team being tested for elimination. int teamTotal = l.getTeams().length; // The r-combination of teamTotal for length 2 is the number of ...
public Graph(League l, Team t) { if (l == null || t == null) return; // Number of team nodes is one less than total number of teams. // The team nodes do not include the team being tested for elimination. int teamTotal = l.getTeams().length; // The r-combination of teamTotal for length 2 is the number of ...
public static void create_vs_tree(HttpServletRequest request, HttpServletResponse response, int view) { response.setContentType("text/html"); PrintWriter out = null; try { out = response.getWriter(); } catch (Exception ex) { ex.printStackTrace(); return; } String mes...
public static void create_vs_tree(HttpServletRequest request, HttpServletResponse response, int view) { response.setContentType("text/html"); PrintWriter out = null; try { out = response.getWriter(); } catch (Exception ex) { ex.printStackTrace(); return; } String mes...
public int getTotalHandValue() { log.debug("Calculating hand value..."); int totalWithAcesLow = 0; int numberOfAces = 0; // Sum up value of all cards. Aces are 1 by default. Allow one ace to be // 11 if it will not cause bust. for (Card card : cards) { int cardValue = card.getCardValue(true); tot...
public int getTotalHandValue() { log.debug("Calculating hand value..."); int totalWithAcesLow = 0; int numberOfAces = 0; // Sum up value of all cards. Aces are 1 by default. Allow one ace to be // 11 if it will not cause bust. for (Card card : cards) { int cardValue = card.getCardValue(true); tot...
private boolean updateWeights(Classifier classifier, ClassifierStatistics classifierStatistics, List<Instance> trainingSet, int numberOfDifferentLabels) { double error = 0; int errorCount = 0; for (Instance trainingInstance : trainingSet) { int ...
private boolean updateWeights(Classifier classifier, ClassifierStatistics classifierStatistics, List<Instance> trainingSet, int numberOfDifferentLabels) { double error = 0; int errorCount = 0; for (Instance trainingInstance : trainingSet) { int ...
public void visitLibraries(final Project project, final Linker linker, final File[] libpath, final FileVisitor visitor) throws BuildException { if (isReference()) { LibrarySet master = ((LibrarySet) getC...
public void visitLibraries(final Project project, final Linker linker, final File[] libpath, final FileVisitor visitor) throws BuildException { if (isReference()) { LibrarySet master = ((LibrarySet) getCheckedR...
public void handleMessage(I2CPMessage message, I2PSessionImpl session) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Handle message " + message); RequestLeaseSetMessage msg = (RequestLeaseSetMessage) message; LeaseSet leaseSet = new LeaseSet(); for (int i = 0; i < msg.getE...
public void handleMessage(I2CPMessage message, I2PSessionImpl session) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Handle message " + message); RequestLeaseSetMessage msg = (RequestLeaseSetMessage) message; LeaseSet leaseSet = new LeaseSet(); for (int i = 0; i < msg.getE...
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { int uriMatch = _uriMatcher.match(uri); if (uriMatch == PODCASTS) { return getContext().getContentResolver().query(PodcastProvider.URI, projection, "subscriptionId = ?", new String[] { ur...
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { int uriMatch = _uriMatcher.match(uri); if (uriMatch == PODCASTS) { return getContext().getContentResolver().query(PodcastProvider.URI, projection, "subscriptionId = ?", new String[] { ur...
public String getUnfolding(String strquery) throws Exception { String sql = ""; List<String> signature; Map<Predicate, List<CQIE>> rulesIndex = questInstance.sigmaRulesIndex; // Check the cache first if the system has processed the query string before if (querycache.containsKey(strquery)) { // Obtain imm...
public String getUnfolding(String strquery) throws Exception { String sql = ""; List<String> signature; Map<Predicate, List<CQIE>> rulesIndex = questInstance.sigmaRulesIndex; // Check the cache first if the system has processed the query string before if (querycache.containsKey(strquery)) { // Obtain imm...
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.menu_memo_help: { Intent myIntent = new Intent(); myIntent.setAction(Intent.ACTION_VIEW); myIntent.addCategory(Intent.CATEGORY_BROWSABLE); ...
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.menu_memo_help: { Intent myIntent = new Intent(); myIntent.setAction(Intent.ACTION_VIEW); myIntent.addCategory(Intent.CATEGORY_BROWSABLE); ...
protected ASTNode nextToken() { try { /** * If the cursor is at the end of the expression, we have nothing more to do: * return null. */ if (cursor >= length) { return null; } else if (!splitAccumulator.is...
protected ASTNode nextToken() { try { /** * If the cursor is at the end of the expression, we have nothing more to do: * return null. */ if (cursor >= length) { return null; } else if (!splitAccumulator.is...
public void doGeneration(World world, Random random, Field worldGeneratorField, WorldGenerator worldGenerator, BiomeGenBase biome, IBOPDecoration bopDecoration, int x, int z) throws Exception { if (biome.theBiomeDecorator.generateLakes) { for (int i = 0; i < 50 + bopDecoration.getWor...
public void doGeneration(World world, Random random, Field worldGeneratorField, WorldGenerator worldGenerator, BiomeGenBase biome, IBOPDecoration bopDecoration, int x, int z) throws Exception { if (biome.theBiomeDecorator.generateLakes) { for (int i = 0; i < 50 + bopDecoration.getWor...
public void setPoints(List<Coord> points) { if (this.points != null) log.warn("overwriting points"); assert points != null : "trying to set null points"; this.points = points; Coord last = null; for (Coord co : points) { if (last != null && last.equals(co)) log.warn("Line " + getName() + " has con...
public void setPoints(List<Coord> points) { if (this.points != null) log.warn("overwriting points"); assert points != null : "trying to set null points"; this.points = points; Coord last = null; for (Coord co : points) { if (last != null && last.equals(co)) log.info("Line " + getName() + " has con...
public void testDays() throws Exception{ Calendar today = Calendar.getInstance(); TaskService taskService = new TaskService(); Task task = new Task(); task.setValue(Task.TITLE, "Jog today"); taskService.quickAdd(task); Date date = new Date(task.getValue(Task.DUE_DATE...
public void testDays() throws Exception{ Calendar today = Calendar.getInstance(); TaskService taskService = new TaskService(); Task task = new Task(); task.setValue(Task.TITLE, "Jog today"); taskService.quickAdd(task); Date date = new Date(task.getValue(Task.DUE_DATE...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String keywords = request.getParameter("keywords"); String fromDate = request.getParameter("fromDate"); String toDate = request.getParameter("toDate"); String...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String keywords = request.getParameter("keywords"); String fromDate = request.getParameter("fromDate"); String toDate = request.getParameter("toDate"); String...
public static Test suite() { TestSuite result = new TestSuite("Tests for org.apache.poi.poifs.storage"); result.addTestSuite(TestBATBlock.class); result.addTestSuite(TestBlockAllocationTableReader.class); result.addTestSuite(TestBlockAllocationTableWriter.class); result.addTe...
public static Test suite() { TestSuite result = new TestSuite(AllPOIFSStorageTests.class.getName()); result.addTestSuite(TestBATBlock.class); result.addTestSuite(TestBlockAllocationTableReader.class); result.addTestSuite(TestBlockAllocationTableWriter.class); result.addTestSuite(TestBlockListImpl.class); r...
private BufferedImage dctDecode( int width, int height, PColorSpace colourSpace, int bitspercomponent, float[] decode) { // BIS's buffer size should be equal to mark() size, and greater than data size (below) InputStream input = getDecodedByteArrayInputStream(); // U...
private BufferedImage dctDecode( int width, int height, PColorSpace colourSpace, int bitspercomponent, float[] decode) { // BIS's buffer size should be equal to mark() size, and greater than data size (below) InputStream input = getDecodedByteArrayInputStream(); // U...
private void configureMapEntryFormatters() { IPreferenceStore debugPrefs = JDIDebugUIPlugin.getDefault().getPreferenceStore(); debugPrefs.setValue("org.eclipse.jdt.debug.ui.show_details","INLINE_FORMATTERS"); String previousPref = debugPrefs.getString("org.eclipse.jdt.debug.ui.detail_formatters"); String ha...
private void configureMapEntryFormatters() { IPreferenceStore debugPrefs = JDIDebugUIPlugin.getDefault().getPreferenceStore(); debugPrefs.setValue("org.eclipse.jdt.debug.ui.show_details","INLINE_FORMATTERS"); String previousPref = debugPrefs.getString("org.eclipse.jdt.debug.ui.detail_formatters"); String ha...
public String getResultHeadingByIndex(int index) { WebElement resultsList = webDriverHelper.findElement(By.id("rso")); List<WebElement> individualResults = resultsList.findElements(By.cssSelector("li")); WebElement firstResult = individualResults.get(index); WebElement resultHeading ...
public String getResultHeadingByIndex(int index) { WebElement resultsList = webDriverHelper.findElement(By.id("rso")); List<WebElement> individualResults = resultsList.findElements(By.cssSelector("li")); WebElement result = individualResults.get(index); WebElement resultHeading = res...
public void createControl(final Composite parent) { Composite comp = new Composite(parent, SWT.NONE); pageControl = comp; GridLayout layout = new GridLayout(); layout.numColumns = 3; comp.setLayout(layout); GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true); comp.setLayoutData(gd); // Label fo...
public void createControl(final Composite parent) { Composite comp = new Composite(parent, SWT.NONE); pageControl = comp; GridLayout layout = new GridLayout(); layout.numColumns = 3; comp.setLayout(layout); GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true); comp.setLayoutData(gd); // Label fo...
public int applyDamage(int damage) { if (this.actualPoints < damage) { setActualPoints(0); return damage - this.actualPoints; } setActualPoints(this.actualPoints - damage); return 0; }
public int applyDamage(int damage) { if (this.actualPoints < damage) { damage -= this.actualPoints; setActualPoints(0); return damage; } setActualPoints(this.actualPoints - damage); return 0; }
public void recieve(Event event) { List<String> IDs = new ArrayList<String>(); JSONArray jos = new JSONArray(); try { jos = filter.outputFilter((JSONArray) event.getData()); } catch (ClassCastException e) { if (logger.isDebugEnabled()) { logger.debug("event.data to JSONObject cast problem. May be del...
public void recieve(Event event) { List<String> IDs = new ArrayList<String>(); JSONArray jos = new JSONArray(); try { jos = filter.outputFilter((JSONArray) event.getData()); } catch (ClassCastException e) { if (logger.isDebugEnabled()) { logger.debug("event.data to JSONArray cast problem. May be dele...
public void processProperties() { getPropertyBag().addStyle("background-color", getPropertyString("backgroundColor")); getPropertyBag().addClass(getPropertyString("cssClass")); getPropertyBag().addClass("space"); getPropertyBag().addStyle("height", getPropertyString("height")); ...
public void processProperties() { getPropertyBag().addStyle("background-color", getPropertyString("backgroundColor")); getPropertyBag().addClass(getPropertyString("cssClass")); getPropertyBag().addClass("space"); getPropertyBag().addStyle("height", getPropertyString("height")+"px");...
public String toString() { TextBuilder builder = TextBuilder.newInstance(); builder.append(xTarget).append(';'); builder.append(yTarget).append(';'); builder.append(zTarget).append(';'); try { return builder.toString(); } finally { TextBuilde...
public String toString() { TextBuilder builder = TextBuilder.newInstance(); builder.append(xTarget).append(';'); builder.append(yTarget).append(';'); builder.append(zTarget); try { return builder.toString(); } finally { TextBuilder.recycle(bu...
public void testBasicAlignment() { String md5 = "c6d95d8ae707e78fefdaa7375f130995"; WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec( "-R " + b36KGReference + " -T Align" + " -I " + validationDataLocation + "NA1287...
public void testBasicAlignment() { String md5 = "34eb4323742999d6d250a0aaa803c6d5"; WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec( "-R /humgen/gsa-scr1/GATK_Data/bwa/human_b36_both.fasta" + " -T Align" + " -I " + valida...
public final Collection<Metric> run(long duration, long metricRecordStart) { if (complete) throw new IllegalStateException("Simulation has already been run"); Event e; //configure simulation duration this.duration = duration; sendEvent(new Event(Simulation.SIMULATION_TERMINATE_EVENT, duration, th...
public final Collection<Metric> run(long duration, long metricRecordStart) { if (complete) throw new IllegalStateException("Simulation has already been run"); Event e; //configure simulation duration this.duration = duration; sendEvent(new Event(Simulation.SIMULATION_TERMINATE_EVENT, duration, th...
public void generateCode() throws SemanticException { if (expressionType.getTypeName().equals("null")) { ICG.GEN(".CODE"); ICG.GEN("PUSH 0", "Apilamos 'null'"); } else if (expressionType.getTypeName().equals("String")) { String label = ICG.generateLabel(); ...
public void generateCode() throws SemanticException { if (expressionType.getTypeName().equals("null")) { ICG.GEN(".CODE"); ICG.GEN("PUSH 0", "Apilamos 'null'"); } else if (expressionType.getTypeName().equals("String")) { String label = ICG.generateLabel(); ...
public J2SEButton(int skinVersion, String name, Shape shape, int keyCode, String keyboardKeys, String keyboardChars, Hashtable inputToChars, boolean modeChange) { this.name = name; this.shape = shape; if (skinVersion >= NAME_RIMARY_SINCE_SKIN_VERSION) { this.functionalName = ButtonName.getButtonName(name);...
public J2SEButton(int skinVersion, String name, Shape shape, int keyCode, String keyboardKeys, String keyboardChars, Hashtable inputToChars, boolean modeChange) { this.name = name; this.shape = shape; if (skinVersion >= NAME_RIMARY_SINCE_SKIN_VERSION) { this.functionalName = ButtonName.getButtonName(name);...
protected void codeComplete(org.eclipse.dltk.compiler.env.ISourceModule cu, int position, CompletionRequestor requestor, WorkingCopyOwner owner) throws ModelException { if (requestor == null) { throw new IllegalArgumentException("Completion requestor cannot be null"); } IBuffer buffer = getBuffer(); ...
protected void codeComplete(org.eclipse.dltk.compiler.env.ISourceModule cu, int position, CompletionRequestor requestor, WorkingCopyOwner owner) throws ModelException { if (requestor == null) { throw new IllegalArgumentException("Completion requestor cannot be null"); } IBuffer buffer = getBuffer(); ...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jTextField1 = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); Path = new javax.swing.JTextField(); Seleccionar_Archivo = new javax.sw...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jTextField1 = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); Path = new javax.swing.JTextField(); Seleccionar_Archivo = new javax.sw...
public Status sendRequest(Request request) { Status result = null; try { if (request.isEntityAvailable()) { Representation entity = request.getEntity(); // These properties can only be used with Java 1.5 and upper // releases ...
public Status sendRequest(Request request) { Status result = null; try { if (request.isEntityAvailable()) { Representation entity = request.getEntity(); // These properties can only be used with Java 1.5 and upper // releases ...
public JumbleResult runJumble(final String className, final List testClassNames) throws Exception { final String cacheFileName = "cache" + System.currentTimeMillis() + ".dat"; initCache(); final int mutationCount = countMutationPoints(className); if (mutationCount == -1) { return new Interfac...
public JumbleResult runJumble(final String className, final List testClassNames) throws Exception { final String cacheFileName = "cache" + System.currentTimeMillis() + ".dat"; initCache(); final int mutationCount = countMutationPoints(className); if (mutationCount == -1) { return new Interfac...
protected FontMappingManager createFontMappingManager( String format, Locale locale ) { // we have max 19 configs String[] configNames = new String[19]; int count = 0; String osgiName = getOSGIOSName( ); String osName = getOSName( ); String language = locale.getLanguage( ); String country = locale.ge...
protected FontMappingManager createFontMappingManager( String format, Locale locale ) { String formatString = format.toLowerCase(); // we have max 19 configs String[] configNames = new String[19]; int count = 0; String osgiName = getOSGIOSName( ); String osName = getOSName( ); String language = local...
public Map<String, String> get_all_titles_with_tags() { Map<String, String> result = new HashMap<>(); String resultString; try { JSONObject jsonobject_request = new JSONObject(); jsonobject_request.put("function", "getAllTitlesWithTags"); JSONObject jso...
public Map<String, String> get_all_titles_with_tags() { Map<String, String> result = new HashMap<>(); String resultString; try { JSONObject jsonobject_request = new JSONObject(); jsonobject_request.put("function", "getAllTitlesWithTags"); JSONObject jso...
public AvailableServiceBinding getAvailableServiceBindingWithName(String name, Database db, boolean readOnly) throws SystemException, Bug { AvailableServiceBinding availableServiceBinding = null; try { System.out.println("\n\n\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); OQLQuery oql = db.getOQLQu...
public AvailableServiceBinding getAvailableServiceBindingWithName(String name, Database db, boolean readOnly) throws SystemException, Bug { AvailableServiceBinding availableServiceBinding = null; try { System.out.println("\n\n\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); OQLQuery oql = db.getOQLQu...
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception { boolean verbose = shellState.isVerbose(); boolean force = false; boolean all = false; long size = -1; final String tableName = OptUtil.getTableOpt(cl, shellState); final Text startRow ...
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception { boolean verbose = shellState.isVerbose(); boolean force = false; boolean all = false; long size = -1; final String tableName = OptUtil.getTableOpt(cl, shellState); final Text startRow ...
public Vector3 vectorTo(Actor3D actor) { return actor.getPosition() .cpy() .sub(getPosition()) .nor(); }
public Vector3 vectorTo(Actor3D actor) { return actor.getPosition() .cpy() .sub(getPosition()) .nor(); }
protected List<T> doInBackground() throws Exception { String resourceKey = getResourceKey(); if (resourceKey == null) { return null; } Sonar sonar = getSonar(); Query<T> query = getQuery(resourceKey); return sonar.findAll(query); }
protected List<T> doInBackground() throws Exception { String resourceKey = getResourceKey(); if (resourceKey == null) { return new ArrayList<T>(); } Sonar sonar = getSonar(); Query<T> query = getQuery(resourceKey); return sonar.findAll(query); }
public static void main(String[] args) { Debug.checkAssertsEnabled(); Settings settings = new Settings(); if (args.length != 0){ Parser parser = new Parser(settings); parser.parse(args[0]); } iterations = settings.getIterations(); particleDiagnosticsIntervall = settings.getParticleDiagnosticsInte...
public static void main(String[] args) { Debug.checkAssertsEnabled(); Settings settings = new Settings(); if (args.length != 0){ Parser parser = new Parser(settings); parser.parse(args[0]); } iterations = settings.getIterations(); particleDiagnosticsIntervall = settings.getParticleDiagnosticsInte...
public void loadFeatureTypes(WaitPageStatus status) throws Exception { status.setCurrentAction("Databaseverbinding maken..."); DataStore store = null; try { store = createDataStore(); status.setProgress(10); status.setCurrentAction("Lijst van tabellen met...
public void loadFeatureTypes(WaitPageStatus status) throws Exception { status.setCurrentAction("Databaseverbinding maken..."); DataStore store = null; try { store = createDataStore(); status.setProgress(10); status.setCurrentAction("Lijst van tabellen met...
public static VacationTracker createVacationTracker(SharedPreferences prefs, String categoryPrefix) { String startDateStr = prefs.getString("startDate",null); String leaveInterval = prefs.getString("leaveInterval", "Daily"); LocalDate startDate = startDateStr == null ? new LocalDate() : ...
public static VacationTracker createVacationTracker(SharedPreferences prefs, String categoryPrefix) { String startDateStr = prefs.getString("startDate",null); String leaveInterval = prefs.getString("leaveInterval", "Daily"); if (leaveInterval.equals("Day")) leaveInterval = "D...