Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/egyptians/Dude.java b/src/egyptians/Dude.java index 5bfcf78..469a61e 100644 --- a/src/egyptians/Dude.java +++ b/src/egyptians/Dude.java @@ -1,85 +1,85 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package egyptians; import java.util.loggi...
true
true
@Override public void render(Graphics g) { if (GameState.hailTimeLeft > 0) col = Color.cyan; else col = Color.white; if(entityImage != null) entityImage.draw(pos.x, pos.y, col); if(quote != null) quote.draw(...
@Override public void render(Graphics g) { if (GameState.hailTimeLeft > 0) col = Color.cyan; else col = Color.white; if(entityImage != null) entityImage.draw(pos.x, pos.y, col); if(quote != null) quote.draw(...
diff --git a/modules/cpr/src/main/java/org/atmosphere/interceptor/BroadcastOnPostAtmosphereInterceptor.java b/modules/cpr/src/main/java/org/atmosphere/interceptor/BroadcastOnPostAtmosphereInterceptor.java index ccf41834d..0cb3d71fe 100644 --- a/modules/cpr/src/main/java/org/atmosphere/interceptor/BroadcastOnPostAtmosph...
true
true
public void postInspect(AtmosphereResource r) { if (r.getRequest().getMethod().equalsIgnoreCase("POST")) { StringBuilder stringBuilder = new StringBuilder(); BufferedReader bufferedReader = null; try { InputStream inputStream = r.getRequest().getInputStrea...
public void postInspect(AtmosphereResource r) { if (r.getRequest().getMethod().equalsIgnoreCase("POST")) { StringBuilder stringBuilder = new StringBuilder(); BufferedReader bufferedReader = null; try { InputStream inputStream = r.getRequest().getInputStrea...
diff --git a/sonar-update-center-common/src/main/java/org/sonar/updatecenter/common/UpdateCenterSerializer.java b/sonar-update-center-common/src/main/java/org/sonar/updatecenter/common/UpdateCenterSerializer.java index 04de817..15793c4 100644 --- a/sonar-update-center-common/src/main/java/org/sonar/updatecenter/common/...
true
true
public static Properties toProperties(UpdateCenter center) { Properties p = new Properties(); set(p, "date", FormatUtils.toString(center.getDate(), false)); set(p, "sonar.versions", center.getSonar().getVersions()); for (Release sonarRelease : center.getSonar().getReleases()) { set(p, "sonar." +...
public static Properties toProperties(UpdateCenter center) { Properties p = new Properties(); set(p, "date", FormatUtils.toString(center.getDate(), true)); set(p, "sonar.versions", center.getSonar().getVersions()); for (Release sonarRelease : center.getSonar().getReleases()) { set(p, "sonar." + ...
diff --git a/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv/JSFProjectResourceBundles.java b/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv/JSFProjectResourceBundles.java index 2c466387b..2f3413c4c 100644 --- a/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv/JSFProje...
true
true
protected Iterator<XModelObject> getRoots() { List<XModelObject> list = new ArrayList<XModelObject>(); FileSystemsImpl fs = (FileSystemsImpl)FileSystemsHelper.getFileSystems(getModel()); new FileSystemsLoader().updateSrcs(fs); XModelObject[] cs = FileSystemsHelper.getFileSystems(getModel()).getChildren("FileSy...
protected Iterator<XModelObject> getRoots() { List<XModelObject> list = new ArrayList<XModelObject>(); FileSystemsImpl fs = (FileSystemsImpl)FileSystemsHelper.getFileSystems(getModel()); new FileSystemsLoader().updateSrcs(fs); XModelObject[] cs = FileSystemsHelper.getFileSystems(getModel()).getChildren("FileSy...
diff --git a/src/main/java/com/randude14/hungergames/Files.java b/src/main/java/com/randude14/hungergames/Files.java index 2105723..bfa2ca0 100644 --- a/src/main/java/com/randude14/hungergames/Files.java +++ b/src/main/java/com/randude14/hungergames/Files.java @@ -1,108 +1,101 @@ package com.randude14.hungergames; ...
true
true
public void load() { File file = getFile(); try { if (!file.exists()) { Logging.debug("File %s does not exist. Creating.", path); if (hasDefault) { if (!file.exists()) HungerGames.getInstance().saveResource(path, false); } else { file.createNewFile(); } } if (type == FileType...
public void load() { File file = getFile(); try { if (!file.exists()) { Logging.debug("File %s does not exist. Creating.", path); if (hasDefault) { if (!file.exists()) HungerGames.getInstance().saveResource(path, false); } else { file.createNewFile(); } } if (type == FileType...
diff --git a/SheetMusic.java b/SheetMusic.java index fe9ccd0..a91692e 100644 --- a/SheetMusic.java +++ b/SheetMusic.java @@ -1,158 +1,159 @@ package crescendo.sheetmusic; import java.awt.Adjustable; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.event.AdjustmentEvent; import java.awt.e...
false
true
public void loadSong(SongModel model, int activeTrack){ SongModel selectedSongModel = model; // Initialize meta-things boolean careAboutPitch=true; boolean careAboutDynamic=false; HeuristicsModel heuristics=new HeuristicsModel(careAboutPitch,careAboutDynamic); //Hook up song processor pieces Even...
public void loadSong(SongModel model, int activeTrack){ SongModel selectedSongModel = model; // Initialize meta-things boolean careAboutPitch=true; boolean careAboutDynamic=true; HeuristicsModel heuristics=new HeuristicsModel(careAboutPitch,careAboutDynamic); //Hook up song processor pieces Event...
diff --git a/forge-scaffold-spring/src/main/java/org/jboss/forge/spec/spring/mvc/impl/SpringPlugin.java b/forge-scaffold-spring/src/main/java/org/jboss/forge/spec/spring/mvc/impl/SpringPlugin.java index 2a1cc26..f2c0d7e 100644 --- a/forge-scaffold-spring/src/main/java/org/jboss/forge/spec/spring/mvc/impl/SpringPlugin.j...
false
true
protected void generateMVCContext(String mvcContextFilename, String mvcPackage) { WebResourceFacet web = project.getFacet(WebResourceFacet.class); Node beans; if (!web.getWebResource(mvcContextFilename).exists()) { beans = new Node("beans"); } else { ...
protected void generateMVCContext(String mvcContextFilename, String mvcPackage) { WebResourceFacet web = project.getFacet(WebResourceFacet.class); Node beans; if (!web.getWebResource(mvcContextFilename).exists()) { beans = new Node("beans"); } else { ...
diff --git a/src/wsc_application/OrderVerify.java b/src/wsc_application/OrderVerify.java index 457253d..a443635 100644 --- a/src/wsc_application/OrderVerify.java +++ b/src/wsc_application/OrderVerify.java @@ -1,342 +1,343 @@ /* * To change this template, choose Tools | Templates * and open the template in the edit...
false
true
public static OrderVerify insertOrUpdateOV(OrderVerify ov){ OrderVerify thisOV = null; ResultSet rs; MysqlConn mysql = new MysqlConn(); try { mysql.stmt = mysql.conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE); String query = "INSE...
public static OrderVerify insertOrUpdateOV(OrderVerify ov){ OrderVerify thisOV = null; ResultSet rs; MysqlConn mysql = new MysqlConn(); try { mysql.stmt = mysql.conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE); String query = "INSE...
diff --git a/gdms/src/test/java/org/gdms/sql/function/spatial/geometry/properties/ST_XYMinMaxTest.java b/gdms/src/test/java/org/gdms/sql/function/spatial/geometry/properties/ST_XYMinMaxTest.java index c78e4acd2..e2a056491 100644 --- a/gdms/src/test/java/org/gdms/sql/function/spatial/geometry/properties/ST_XYMinMaxTest....
true
true
public void testMinMaxValid() throws FunctionException { GeometryFactory gf = new GeometryFactory(); // Functions Function xMin = new ST_XMin(); Function xMax = new ST_XMax(); Function yMin = new ST_YMin(); Function yMax = new ST_YMax(); Function zMin = new ST...
public void testMinMaxValid() throws FunctionException { GeometryFactory gf = new GeometryFactory(); // Functions Function xMin = new ST_XMin(); Function xMax = new ST_XMax(); Function yMin = new ST_YMin(); Function yMax = new ST_YMax(); Function zMin = new ST...
diff --git a/main/src/com/google/refine/commands/project/ExportRowsCommand.java b/main/src/com/google/refine/commands/project/ExportRowsCommand.java index 9a257738..c2fb1c55 100644 --- a/main/src/com/google/refine/commands/project/ExportRowsCommand.java +++ b/main/src/com/google/refine/commands/project/ExportRowsComman...
false
true
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ProjectManager.singleton.setBusy(true); try { Project project = getProject(request); Engine engine = getEngine(request, project); Strin...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ProjectManager.singleton.setBusy(true); try { Project project = getProject(request); Engine engine = getEngine(request, project); Strin...
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java index 4ddcb314b..b20de06cc 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/ecl...
false
true
public ITask readTask(Node node, TaskList taskList, AbstractTaskContainer category, ITask parent) throws TaskExternalizationException { Element element = (Element) node; String handle; String label; if (element.hasAttribute(KEY_HANDLE)) { handle = element.getAttribute(KEY_HANDLE); } else { throw new...
public ITask readTask(Node node, TaskList taskList, AbstractTaskContainer category, ITask parent) throws TaskExternalizationException { Element element = (Element) node; String handle; String label; if (element.hasAttribute(KEY_HANDLE)) { handle = element.getAttribute(KEY_HANDLE); } else { throw new...
diff --git a/src/main/java/nl/tudelft/cloud_computing_project/Monitor.java b/src/main/java/nl/tudelft/cloud_computing_project/Monitor.java index c488215..bc589ba 100644 --- a/src/main/java/nl/tudelft/cloud_computing_project/Monitor.java +++ b/src/main/java/nl/tudelft/cloud_computing_project/Monitor.java @@ -1,236 +1,23...
true
true
public Set<String> getAvailableInstancesId() { Set<String> availableInstancesId = new TreeSet<String>(); try { //Retrieve instances status DescribeInstanceStatusResult describeInstanceResult = ec2.describeInstanceStatus(new DescribeInstanceStatusRequest()); List<InstanceStatus> state = describeInstanceRe...
public Set<String> getAvailableInstancesId() { Set<String> availableInstancesId = new TreeSet<String>(); try { //Retrieve instances status DescribeInstanceStatusResult describeInstanceResult = ec2.describeInstanceStatus(new DescribeInstanceStatusRequest()); List<InstanceStatus> state = describeInstanceRe...
diff --git a/src/test/java/org/nuxeo/ecm/platform/template/tests/TestEditableTemplate.java b/src/test/java/org/nuxeo/ecm/platform/template/tests/TestEditableTemplate.java index 12c9f9d..60352f9 100644 --- a/src/test/java/org/nuxeo/ecm/platform/template/tests/TestEditableTemplate.java +++ b/src/test/java/org/nuxeo/ecm/p...
true
true
public void testEdiableTemplate() throws Exception { TemplateBasedDocument adapter = setupTestDocs(); DocumentModel doc = adapter.getAdaptedDoc(); TemplateSourceDocument source = adapter.getSourceTemplate(TEMPLATE_NAME); assertNotNull(adapter); // check that the template has...
public void testEdiableTemplate() throws Exception { TemplateBasedDocument adapter = setupTestDocs(); DocumentModel doc = adapter.getAdaptedDoc(); TemplateSourceDocument source = adapter.getSourceTemplate(TEMPLATE_NAME); assertNotNull(adapter); // check that the template has...
diff --git a/src/main/java/org/gsoft/openserv/buslogic/amortization/LoanTermCalculator.java b/src/main/java/org/gsoft/openserv/buslogic/amortization/LoanTermCalculator.java index d685d324..4c95f791 100644 --- a/src/main/java/org/gsoft/openserv/buslogic/amortization/LoanTermCalculator.java +++ b/src/main/java/org/gsoft/...
false
true
public static int calculateRemainingLoanTermAsOf(Loan loan, Date asOfDate){ int remainingTerm = 0; if(loan.getCurrentAmortizationSchedule() != null){ int term = loan.getCurrentAmortizationSchedule().getTotalNumberOfPayment(); int used = Months.monthsBetween(new DateTime(loan.getCurrentAmortizationSchedule()....
public static int calculateRemainingLoanTermAsOf(Loan loan, Date asOfDate){ int used = 0; if(loan.getRepaymentStartDate() != null){ used = Months.monthsBetween(new DateTime(loan.getRepaymentStartDate()),new DateTime(asOfDate)).getMonths(); } return loan.getEffectiveLoanTypeProfile().getMaximumLoanTerm() - ...
diff --git a/src/replicatorg/plugin/toolpath/ToolpathGeneratorFactory.java b/src/replicatorg/plugin/toolpath/ToolpathGeneratorFactory.java index e225bddc..44bdad75 100644 --- a/src/replicatorg/plugin/toolpath/ToolpathGeneratorFactory.java +++ b/src/replicatorg/plugin/toolpath/ToolpathGeneratorFactory.java @@ -1,87 +1,8...
false
true
static private Vector<ToolpathGeneratorDescriptor> buildGeneratorList() { Vector<ToolpathGeneratorDescriptor> list = new Vector<ToolpathGeneratorDescriptor>(); class Skeinforge6 extends SkeinforgeGenerator { public File getDefaultSkeinforgeDir() { return Base.getApplicationFile("skein_engines/skeinforge-...
static private Vector<ToolpathGeneratorDescriptor> buildGeneratorList() { Vector<ToolpathGeneratorDescriptor> list = new Vector<ToolpathGeneratorDescriptor>(); class Skeinforge6 extends SkeinforgeGenerator { public File getDefaultSkeinforgeDir() { return Base.getApplicationFile("skein_engines/skeinforge-...
diff --git a/src/org/cyberiantiger/minecraft/instances/command/SetSpawn.java b/src/org/cyberiantiger/minecraft/instances/command/SetSpawn.java index 051b86e..985cd65 100644 --- a/src/org/cyberiantiger/minecraft/instances/command/SetSpawn.java +++ b/src/org/cyberiantiger/minecraft/instances/command/SetSpawn.java @@ -1,4...
true
true
public List<String> execute(Instances instances, Player player, String[] args) { if (args.length != 0 && args.length != 1) { return null; } if (args.length == 1 && !"none".equals(args[1])) { return null; } if (args.length == 1) { instances....
public List<String> execute(Instances instances, Player player, String[] args) { if (args.length != 0 && args.length != 1) { return null; } if (args.length == 1 && !"none".equals(args[0])) { return null; } if (args.length == 1) { instances....
diff --git a/src/main/java/com/sorcix/sirc/Channel.java b/src/main/java/com/sorcix/sirc/Channel.java index 0fe6f67..87ebf96 100644 --- a/src/main/java/com/sorcix/sirc/Channel.java +++ b/src/main/java/com/sorcix/sirc/Channel.java @@ -1,517 +1,517 @@ /* * Channel.java * * This file is part of the Sorcix Java IRC ...
false
true
public void ban(final User user, final boolean kick, final String reason) { if (user.getHostName() != null) { this.setMode("+b *!*@*" + user.getHostName()); } else { this.setMode("+b " + user.getNick() + "!*@*"); } if (kick) { if (reason == null) { this.kick(user, "Banned"); } else { ...
public void ban(final User user, final boolean kick, final String reason) { if (user.getHostName() != null) { this.setMode("+b *!*@*" + user.getHostName()); } else { this.setMode("+b " + user.getNick() + "!*@*"); } if (kick) { if (reason == null) { this.kick(user, "Banned"); } else { thi...
diff --git a/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/JBIDE2512bTest.java b/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/JBIDE2512bTest.java index f161ecad2..c2db0e05f 100644 --- a/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/...
true
true
public void testJBIDE2512b() throws Exception { IModuleArtifact[] earArtifacts = ServerPlugin.getModuleArtifacts(workspaceProject[0]); assertNotNull(earArtifacts); assertEquals(1, earArtifacts.length); assertNotNull(earArtifacts[0]); IModule earModule = earArtifacts[0].getModule(); IModuleArtifact[] ejbAr...
public void testJBIDE2512b() throws Exception { IModuleArtifact[] earArtifacts = ServerPlugin.getModuleArtifacts(workspaceProject[0]); assertNotNull(earArtifacts); assertEquals(1, earArtifacts.length); assertNotNull(earArtifacts[0]); IModule earModule = earArtifacts[0].getModule(); IModuleArtifact[] ejbAr...
diff --git a/src/com/wolvencraft/prison/mines/cmd/TriggerCommand.java b/src/com/wolvencraft/prison/mines/cmd/TriggerCommand.java index 8a33f35..3ab4557 100644 --- a/src/com/wolvencraft/prison/mines/cmd/TriggerCommand.java +++ b/src/com/wolvencraft/prison/mines/cmd/TriggerCommand.java @@ -1,97 +1,97 @@ package com.wolv...
true
true
public boolean run(String[] args) { if(args.length == 1) { getHelp(); return true; } if(args.length != 3) { Message.sendError(PrisonMine.getLanguage().ERROR_ARGUMENTS); return false; } Mine curMine = PrisonMine.getCurMine(); if(curMine == null) { Message.sendError(PrisonMine.getLang...
public boolean run(String[] args) { if(args.length == 1) { getHelp(); return true; } if(args.length != 3) { Message.sendError(PrisonMine.getLanguage().ERROR_ARGUMENTS); return false; } Mine curMine = PrisonMine.getCurMine(); if(curMine == null) { Message.sendError(PrisonMine.getLang...
diff --git a/org.caleydo.view.subgraph/src/org/caleydo/view/subgraph/GLPathwayBackground.java b/org.caleydo.view.subgraph/src/org/caleydo/view/subgraph/GLPathwayBackground.java index fa03933fc..c14253df4 100644 --- a/org.caleydo.view.subgraph/src/org/caleydo/view/subgraph/GLPathwayBackground.java +++ b/org.caleydo.view...
true
true
protected void renderImpl(GLGraphics g, float w, float h) { super.renderImpl(g, w, h); if (hovered) g.color(0, 0, 0, 1).drawRoundecRect(0, 0, w, h, 10); }
protected void renderImpl(GLGraphics g, float w, float h) { super.renderImpl(g, w, h); if (hovered) g.color(0, 0, 0, 1).drawRoundedRect(0, 0, w, h, 10); }
diff --git a/src/Servlets/SolveServlet.java b/src/Servlets/SolveServlet.java index a4a8892..704e50f 100644 --- a/src/Servlets/SolveServlet.java +++ b/src/Servlets/SolveServlet.java @@ -1,103 +1,103 @@ package Servlets; import java.io.IOException; import java.io.PrintWriter; import java.sql.SQLException; import j...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(true); String quizID = (String) session.getAttribute("quizID"); //means the cart hasnt been initialized if(session.getAttribute("quiz_"+quizI...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(true); String quizID = (String) session.getAttribute("quizID"); //means the cart hasnt been initialized if(session.getAttribute("quiz_"+quizI...
diff --git a/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java b/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java index c70f9f03..cc478cd0 100644 --- a/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java +++ b/src/web/org/openmrs/web/filter/initialization...
false
true
protected void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException, ServletException { String page = httpRequest.getParameter("page"); Map<String, Object> referenceMap = new HashMap<St...
protected void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException, ServletException { String page = httpRequest.getParameter("page"); Map<String, Object> referenceMap = new HashMap<St...
diff --git a/src/Java/domderrien/build/TMXConverter.java b/src/Java/domderrien/build/TMXConverter.java index f906742..558918a 100644 --- a/src/Java/domderrien/build/TMXConverter.java +++ b/src/Java/domderrien/build/TMXConverter.java @@ -1,712 +1,712 @@ package domderrien.build; import java.io.BufferedInputStream; ...
false
true
protected void convert(String locale, InputStream sourceIS, OutputStream jsOS, OutputStream javaOS) throws IOException { Document doc = getDocument(sourceIS); NodeList nl = getNodeList(doc, "/tmx/body/tu"); //$NON-NLS-1$ jsOS.write(JS_FILE_START.getBytes()); Pattern bracesPattern ...
protected void convert(String locale, InputStream sourceIS, OutputStream jsOS, OutputStream javaOS) throws IOException { Document doc = getDocument(sourceIS); NodeList nl = getNodeList(doc, "/tmx/body/tu"); //$NON-NLS-1$ jsOS.write(JS_FILE_START.getBytes()); Pattern bracesPattern ...
diff --git a/src/Daemon/com/dumbear/dumboj/submitter/LiveArchiveSubmitter.java b/src/Daemon/com/dumbear/dumboj/submitter/LiveArchiveSubmitter.java index 7a11649..71e36da 100644 --- a/src/Daemon/com/dumbear/dumboj/submitter/LiveArchiveSubmitter.java +++ b/src/Daemon/com/dumbear/dumboj/submitter/LiveArchiveSubmitter.java...
true
true
private void fetchResult(int lastId) throws Exception { String regex = "<td>(\\d+)</td>\\s*" + "<td align=\"right\">[\\s\\S]*?</td>\\s*" + "<td>[\\s\\S]*?</td>\\s*" + "<td>([\\s\\S]*?)</td>\\s*" + "<td>[\\s\\S]*?</td...
private void fetchResult(int lastId) throws Exception { String regex = "<td>(\\d+)</td>\\s*" + "<td align=\"right\">[\\s\\S]*?</td>\\s*" + "<td>[\\s\\S]*?</td>\\s*" + "<td>([\\s\\S]*?)</td>\\s*" + "<td>[\\s\\S]*?</td...
diff --git a/src/main/java/net/robbytu/banjoserver/bungee/warns/WarnsCommand.java b/src/main/java/net/robbytu/banjoserver/bungee/warns/WarnsCommand.java index 958fd40..a398ce6 100644 --- a/src/main/java/net/robbytu/banjoserver/bungee/warns/WarnsCommand.java +++ b/src/main/java/net/robbytu/banjoserver/bungee/warns/Warns...
true
true
public void execute(CommandSender sender, String[] args) { if(args.length == 0 || args.length == 1) { // Show user's warns String user = sender.getName(); if(args.length == 1) user = args[1]; Warn[] warns = Warns.getUserWarns(user); Ban[] bans = B...
public void execute(CommandSender sender, String[] args) { if(args.length == 0 || args.length == 1) { // Show user's warns String user = sender.getName(); if(args.length == 1) user = args[1]; Warn[] warns = Warns.getUserWarns(user); Ban[] bans = B...
diff --git a/user-agent/user-action-monitor/src/main/java/org/societies/useragent/monitoring/ContextCommunicator.java b/user-agent/user-action-monitor/src/main/java/org/societies/useragent/monitoring/ContextCommunicator.java index 5e87148fe..c7d9f5c1c 100644 --- a/user-agent/user-action-monitor/src/main/java/org/societ...
true
true
public void updateHistory(IIdentity owner, IAction action){ //check cache first for ctxAttrIdentifier to update String key = action.getServiceID()+"|"+action.getparameterName(); if(mappings.containsKey(key)){ //already has service attribute //confirm snapshot -> check that it is complete, if not then update ...
public void updateHistory(IIdentity owner, IAction action){ //check cache first for ctxAttrIdentifier to update String key = action.getServiceID()+"|"+action.getparameterName(); if(mappings.containsKey(key)){ //already has service attribute //confirm snapshot -> check that it is complete, if not then update ...
diff --git a/GnuBackgammon-desktop/src/it/alcacoop/gnubackgammon/Main.java b/GnuBackgammon-desktop/src/it/alcacoop/gnubackgammon/Main.java index 200e3b5..5bdc076 100644 --- a/GnuBackgammon-desktop/src/it/alcacoop/gnubackgammon/Main.java +++ b/GnuBackgammon-desktop/src/it/alcacoop/gnubackgammon/Main.java @@ -1,24 +1,24 ...
true
true
public static void main(String[] args) { LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.title = "GnuBackgammon"; cfg.width = 480; cfg.height = 320; new LwjglApplication(new GnuBackgammon(), cfg); new SharedLibraryLoader("libs/gnubg.jar").load("gnubg"); ...
public static void main(String[] args) { LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.title = "GnuBackgammon"; cfg.width = 800; cfg.height = 480; new LwjglApplication(new GnuBackgammon(), cfg); new SharedLibraryLoader("libs/gnubg.jar").load("gnubg"); ...
diff --git a/src/main/java/controllers/SettingsController.java b/src/main/java/controllers/SettingsController.java index e768463..7e8c7f4 100644 --- a/src/main/java/controllers/SettingsController.java +++ b/src/main/java/controllers/SettingsController.java @@ -1,60 +1,60 @@ package controllers; import models.Organi...
true
true
public void actionPerformed(ActionEvent arg0) { Organizer o = Organizer.getInstance(); UserProfile logged = o.getCurrentUser().getUserProfile(); /** * Saves up-to-date data from Settings view after OK to current user profile */ logged.setPath(ref.getPath()); logged.setVelocity(ref.getVeloci...
public void actionPerformed(ActionEvent arg0) { Organizer o = Organizer.getInstance(); UserProfile logged = o.getCurrentUser().getUserProfile(); /** * Saves up-to-date data from Settings view after OK to current user profile */ logged.setPath(ref.getPath()); logged.setVelocity(ref.getVeloci...
diff --git a/taskflows/fileTransfer/server/src/de/zib/gndms/taskflows/filetransfer/server/network/NonblockingClientFactory.java b/taskflows/fileTransfer/server/src/de/zib/gndms/taskflows/filetransfer/server/network/NonblockingClientFactory.java index a3aae1a1..10f55781 100644 --- a/taskflows/fileTransfer/server/src/de/...
false
true
public GridFTPClient createClient( String host, int port, CredentialProvider cp ) throws TimeoutException, ServerException, IOException { final QueuedExecutor exec; synchronized( hostExecutors ) { if( hostExecutors.containsKey( host ) ) { log.debug( "Returning executor f...
public GridFTPClient createClient( String host, int port, CredentialProvider cp ) throws TimeoutException, ServerException, IOException { final QueuedExecutor exec; synchronized( hostExecutors ) { if( hostExecutors.containsKey( host ) ) { log.debug( "Returning executor f...
diff --git a/src/nu/dll/duper/Duper.java b/src/nu/dll/duper/Duper.java index 239b72c..2cdfe26 100755 --- a/src/nu/dll/duper/Duper.java +++ b/src/nu/dll/duper/Duper.java @@ -1,586 +1,587 @@ package nu.dll.duper; import java.util.*; import java.util.regex.*; import java.io.*; import java.security.*; import java.n...
true
true
public void processRoots() throws IOException { startTime = System.currentTimeMillis(); endTime = 0; if (listener != null) listener.scanStart(); if (saveChecksums) { try { if (diskCacheFile.exists()) { if (debug) dprintln("Loading MD5 cache from " + diskCacheFile); if (listener !=...
public void processRoots() throws IOException { startTime = System.currentTimeMillis(); endTime = 0; if (listener != null) listener.scanStart(); if (saveChecksums) { try { if (diskCacheFile.exists()) { if (debug) dprintln("Loading MD5 cache from " + diskCacheFile); if (listener !=...
diff --git a/kendzi.josm.plugin3d/src/kendzi/josm/kendzi3d/Kendzi3DPlugin.java b/kendzi.josm.plugin3d/src/kendzi/josm/kendzi3d/Kendzi3DPlugin.java index d30c528..c812723 100644 --- a/kendzi.josm.plugin3d/src/kendzi/josm/kendzi3d/Kendzi3DPlugin.java +++ b/kendzi.josm.plugin3d/src/kendzi/josm/kendzi3d/Kendzi3DPlugin.java...
true
true
public void refreshMenu(final Injector injector) { MainMenu menu = Main.main.menu; System.err.println("3d test"); if (this.view3dJMenu == null) { this.view3dJMenu = menu.addMenu("3D", KeyEvent.VK_D, menu.defaultMenuPos, ht("/Plugin/WMS")); } else { this.view3...
public void refreshMenu(final Injector injector) { MainMenu menu = Main.main.menu; System.err.println("3d test"); if (this.view3dJMenu == null) { this.view3dJMenu = menu.addMenu("3D", KeyEvent.VK_D, menu.getDefaultMenuPos(), ht("/Plugin/WMS")); } else { this....
diff --git a/src/test/java/com/wikia/webdriver/Common/DriverProvider/DriverProvider.java b/src/test/java/com/wikia/webdriver/Common/DriverProvider/DriverProvider.java index f4e95b8..85f926f 100644 --- a/src/test/java/com/wikia/webdriver/Common/DriverProvider/DriverProvider.java +++ b/src/test/java/com/wikia/webdriver/C...
true
true
public static DriverProvider getInstance() { PageObjectLogging listener = new PageObjectLogging(); Global.JS_ERROR_ENABLED = false; if (Global.BROWSER.equals("IE")) { setIEProperties(); driver = new EventFiringWebDriver( new Intern...
public static DriverProvider getInstance() { PageObjectLogging listener = new PageObjectLogging(); Global.JS_ERROR_ENABLED = false; if (Global.BROWSER.equals("IE")) { setIEProperties(); driver = new EventFiringWebDriver( new Intern...
diff --git a/Model/test/java/fr/cg95/cvq/service/document/DocumentServiceTest.java b/Model/test/java/fr/cg95/cvq/service/document/DocumentServiceTest.java index 80f1c6635..07550becb 100644 --- a/Model/test/java/fr/cg95/cvq/service/document/DocumentServiceTest.java +++ b/Model/test/java/fr/cg95/cvq/service/document/Docu...
false
true
public void testAll() throws CvqException, java.io.IOException, java.io.FileNotFoundException { SecurityContext.setCurrentSite(localAuthorityName, SecurityContext.FRONT_OFFICE_CONTEXT); // ensure document digitalization is enabled assertTrue(SecurityContext.getCurrentSite().isDocum...
public void testAll() throws CvqException, java.io.IOException, java.io.FileNotFoundException { SecurityContext.setCurrentSite(localAuthorityName, SecurityContext.FRONT_OFFICE_CONTEXT); // ensure document digitalization is enabled assertTrue(SecurityContext.getCurrentSite().isDocum...
diff --git a/src/com/fsck/k9/activity/AccountList.java b/src/com/fsck/k9/activity/AccountList.java index d4f1f14c2..10ef10e7e 100644 --- a/src/com/fsck/k9/activity/AccountList.java +++ b/src/com/fsck/k9/activity/AccountList.java @@ -1,185 +1,184 @@ package com.fsck.k9.activity; import java.util.ArrayList; import j...
true
true
public View getView(int position, View convertView, ViewGroup parent) { final BaseAccount account = getItem(position); final View view; if (convertView != null) { view = convertView; } else { view = getLayoutInflater().inflate(R.la...
public View getView(int position, View convertView, ViewGroup parent) { final BaseAccount account = getItem(position); final View view; if (convertView != null) { view = convertView; } else { view = getLayoutInflater().inflate(R.la...
diff --git a/Code/JavaWrappers/gmwrapper/src-test/org/RDKit/AlignTests.java b/Code/JavaWrappers/gmwrapper/src-test/org/RDKit/AlignTests.java index ec8b2c12..1511380e 100644 --- a/Code/JavaWrappers/gmwrapper/src-test/org/RDKit/AlignTests.java +++ b/Code/JavaWrappers/gmwrapper/src-test/org/RDKit/AlignTests.java @@ -1,61 ...
true
true
public void testO3ABasic () { String fname = new File(getRdBase(), "Code/GraphMol/MolAlign/test_data/ref_e2_O3A.sdf").getPath(); SDMolSupplier sdsup = new SDMolSupplier(fname); ROMol m1 = sdsup.next(); ROMol m2 = sdsup.next(); ...
public void testO3ABasic () { String fname = new File(getRdBase(), "Code/GraphMol/MolAlign/test_data/ref_e2.sdf").getPath(); SDMolSupplier sdsup = new SDMolSupplier(fname); ROMol m1 = sdsup.next(); ROMol m2 = sdsup.next(); ...
diff --git a/nexus/nexus-rest-api/src/main/java/org/sonatype/nexus/rest/feeds/sources/AuthcAuthzFeedSource.java b/nexus/nexus-rest-api/src/main/java/org/sonatype/nexus/rest/feeds/sources/AuthcAuthzFeedSource.java index bf56e592a..eb12493fd 100644 --- a/nexus/nexus-rest-api/src/main/java/org/sonatype/nexus/rest/feeds/so...
true
true
public SyndFeed getFeed( Integer from, Integer count, Map<String, String> params ) throws IOException { List<AuthcAuthzEvent> items = getNexus().getAuthcAuthzEvents( from, count ); SyndFeedImpl feed = new SyndFeedImpl(); feed.setTitle( getTitle() ); feed.setDescription...
public SyndFeed getFeed( Integer from, Integer count, Map<String, String> params ) throws IOException { List<AuthcAuthzEvent> items = getNexus().getAuthcAuthzEvents( from, count ); SyndFeedImpl feed = new SyndFeedImpl(); feed.setTitle( getTitle() ); feed.setDescription...
diff --git a/api/src/java/org/sakaiproject/coursearchive/model/CourseArchiveAttachment.java b/api/src/java/org/sakaiproject/coursearchive/model/CourseArchiveAttachment.java index cca0d9d..b378416 100644 --- a/api/src/java/org/sakaiproject/coursearchive/model/CourseArchiveAttachment.java +++ b/api/src/java/org/sakaiproj...
true
true
public CourseArchiveAttachment(CourseArchiveSyllabus item, String name, String type, String resourceId, String resourceURL) { this.syllabus = syllabus; this.name = name; this.type = type; this.resourceId = resourceId; this.resourceURL = resourceURL; }
public CourseArchiveAttachment(CourseArchiveSyllabus syllabus, String name, String type, String resourceId, String resourceURL) { this.syllabus = syllabus; this.name = name; this.type = type; this.resourceId = resourceId; this.resourceURL = resourceURL; }
diff --git a/src/soot/jimple/toolkits/invoke/SiteInliner.java b/src/soot/jimple/toolkits/invoke/SiteInliner.java index b62c4d83..d0a1f3df 100644 --- a/src/soot/jimple/toolkits/invoke/SiteInliner.java +++ b/src/soot/jimple/toolkits/invoke/SiteInliner.java @@ -1,337 +1,342 @@ /* Soot - a J*va Optimization Framework * ...
false
true
public static void inlineSite(SootMethod inlinee, Stmt toInline, SootMethod container, Map options) { boolean enableNullPointerCheckInsertion = PhaseOptions.getBoolean(options, "insert-null-checks"); boolean enableRedundantCastInsertion = PhaseOptions.getBoo...
public static void inlineSite(SootMethod inlinee, Stmt toInline, SootMethod container, Map options) { boolean enableNullPointerCheckInsertion = PhaseOptions.getBoolean(options, "insert-null-checks"); boolean enableRedundantCastInsertion = PhaseOptions.getBoo...
diff --git a/common/src/main/java/cz/incad/kramerius/virtualcollections/VirtualCollectionsManager.java b/common/src/main/java/cz/incad/kramerius/virtualcollections/VirtualCollectionsManager.java index 6f1fd296f..7b9105109 100644 --- a/common/src/main/java/cz/incad/kramerius/virtualcollections/VirtualCollectionsManager....
false
true
public static List<VirtualCollection> getVirtualCollections(FedoraAccess fedoraAccess, String[] langs) { try { IResourceIndex g = ResourceIndexService.getResourceIndexImpl(); Document doc = g.getFedoraObjectsFromModelExt("collection", 1000, 0, "title", ""); NodeList node...
public static List<VirtualCollection> getVirtualCollections(FedoraAccess fedoraAccess, String[] langs) { try { IResourceIndex g = ResourceIndexService.getResourceIndexImpl(); Document doc = g.getFedoraObjectsFromModelExt("collection", 1000, 0, "title", ""); NodeList node...
diff --git a/src/edu/nus/tp/web/fetch/FetchTweet.java b/src/edu/nus/tp/web/fetch/FetchTweet.java index 81b8dc2..8aa3dc0 100644 --- a/src/edu/nus/tp/web/fetch/FetchTweet.java +++ b/src/edu/nus/tp/web/fetch/FetchTweet.java @@ -1,103 +1,103 @@ package edu.nus.tp.web.fetch; import java.io.BufferedReader; import java.i...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub // Fetching tweets from twitter String searchTopic = request.getParameter("topic"); if (!searchTopic.equals("null") && searchTopic != null) { request....
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub // Fetching tweets from twitter String searchTopic = request.getParameter("topic"); if (!searchTopic.equals("null") && searchTopic != null) { request....
diff --git a/tests/src/org/jboss/messaging/tests/integration/journal/JournalCleanupIntegrationTest.java b/tests/src/org/jboss/messaging/tests/integration/journal/JournalCleanupIntegrationTest.java index e3891841f..9c804ef5b 100644 --- a/tests/src/org/jboss/messaging/tests/integration/journal/JournalCleanupIntegrationTe...
false
true
public void testAutoCleanup() throws Exception { ClientSession clientSession = sessionFactory.createSession(false, true, true); ClientSession sessionConsumer = sessionFactory.createSession(null, null, false, true, true, false, 0); int NUMBER_OF_MESSAGES = 1000; CountDownLatch latch = ne...
public void testAutoCleanup() throws Exception { ClientSession clientSession = sessionFactory.createSession(false, true, true); ClientSession sessionConsumer = sessionFactory.createSession(null, null, false, true, true, false, 0); int NUMBER_OF_MESSAGES = 3000; CountDownLatch latch = ne...
diff --git a/loci/formats/FormatHandler.java b/loci/formats/FormatHandler.java index 20ae24c65..5d2376e1f 100644 --- a/loci/formats/FormatHandler.java +++ b/loci/formats/FormatHandler.java @@ -1,185 +1,185 @@ // // FormatHandler.java // /* LOCI Bio-Formats package for reading and converting biological file forma...
true
true
public boolean isThisType(String name) { String lname = name.toLowerCase(); for (int i=0; i<suffixes.length; i++) { String s = "." + suffixes[i]; if (lname.endsWith(s)) return true; for (int i=0; i<COMPRESSION_SUFFIXES.length; i++) { if (lname.endsWith(s + "." + COMPRESSION_SUFFIXES[...
public boolean isThisType(String name) { String lname = name.toLowerCase(); for (int i=0; i<suffixes.length; i++) { String s = "." + suffixes[i]; if (lname.endsWith(s)) return true; for (int j=0; j<COMPRESSION_SUFFIXES.length; j++) { if (lname.endsWith(s + "." + COMPRESSION_SUFFIXES[...
diff --git a/android/src/com/phonegap/demo/AudioHandler.java b/android/src/com/phonegap/demo/AudioHandler.java index 50e2cb6..16bd7e0 100644 --- a/android/src/com/phonegap/demo/AudioHandler.java +++ b/android/src/com/phonegap/demo/AudioHandler.java @@ -1,303 +1,305 @@ package com.phonegap.demo; import java.io.File;...
true
true
protected void startPlaying(String file) { if ( !mPlayers_file.containsKey(file) ) { try { // if (curPlaying != null) { // Log.d("Audio startPlaying", "New file to play, stopping " + curPlaying); // stopPlaying(); // } AssetFileDescriptor fileAsset = getAssetFileDesc(file); MediaPlayer ...
protected void startPlaying(String file) { if ( !mPlayers_file.containsKey(file) ) { try { // if (curPlaying != null) { // Log.d("Audio startPlaying", "New file to play, stopping " + curPlaying); // stopPlaying(); // } AssetFileDescriptor fileAsset = getAssetFileDesc(file); MediaPlayer ...
diff --git a/AndroidJass/src/com/zuehlke/jhp/bucamp/android/jass/MainActivity.java b/AndroidJass/src/com/zuehlke/jhp/bucamp/android/jass/MainActivity.java index bcd9b29..c846589 100644 --- a/AndroidJass/src/com/zuehlke/jhp/bucamp/android/jass/MainActivity.java +++ b/AndroidJass/src/com/zuehlke/jhp/bucamp/android/jass/M...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); SharedPreferences sharedPrefs = PreferenceManager .getDefaultSharedPreferences(this); JassSettings settings = SettingsCreator .createFromPreferences(sharedPrefs); if (savedI...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); SharedPreferences sharedPrefs = PreferenceManager .getDefaultSharedPreferences(this); JassSettings settings = SettingsCreator .createFromPreferences(sharedPrefs); if (savedI...
diff --git a/src/main/java/ai/ilikeplaces/logic/sits9/SubscriberNotifications.java b/src/main/java/ai/ilikeplaces/logic/sits9/SubscriberNotifications.java index 2661f260..7749944b 100644 --- a/src/main/java/ai/ilikeplaces/logic/sits9/SubscriberNotifications.java +++ b/src/main/java/ai/ilikeplaces/logic/sits9/Subscriber...
true
true
synchronized public void timeout(final Timer timer) throws IOException, SAXException, TransformerException, JSONException, SQLException { final CSVReader reader = new CSVReader(new FileReader("/opt/java/db/db-derby-10.5.3.0-bin/bin/Location.sql")); String[] nextLine; while ((nextLine = read...
synchronized public void timeout(final Timer timer) throws IOException, SAXException, TransformerException, JSONException, SQLException { final CSVReader reader = new CSVReader(new FileReader("/opt/java/db/db-derby-10.5.3.0-bin/bin/Location.sql")); String[] nextLine; while ((nextLine = read...
diff --git a/src/main/java/me/captainbern/animationlib/utils/refs/PacketRef.java b/src/main/java/me/captainbern/animationlib/utils/refs/PacketRef.java index bfc94f9..4b036f7 100644 --- a/src/main/java/me/captainbern/animationlib/utils/refs/PacketRef.java +++ b/src/main/java/me/captainbern/animationlib/utils/refs/Packet...
true
true
public static BiMap getServerPacketRegistry(){ return (BiMap) protocol.getField("h").get(protocol.newInstance()); }
public static BiMap getServerPacketRegistry(){ return (BiMap) protocol.getMethod("a").invoke(protocol.newInstance()); }
diff --git a/src/org/eclipse/viatra2/emf/incquery/runtime/internal/CoreEMFManipulationListener.java b/src/org/eclipse/viatra2/emf/incquery/runtime/internal/CoreEMFManipulationListener.java index 18f63cea..11f850e5 100644 --- a/src/org/eclipse/viatra2/emf/incquery/runtime/internal/CoreEMFManipulationListener.java +++ b/...
true
true
private void handleRegularNotification(final Object oFeature, final Object oldValue, final Object newValue, final EObject notifier, final int eventType) { switch(eventType) { case Notification.ADD: featureUpdate(Direction.INSERT, oFeature, newValue, notifier); break; case Notification.ADD_MANY: ...
private void handleRegularNotification(final Object oFeature, final Object oldValue, final Object newValue, final EObject notifier, final int eventType) { switch(eventType) { case Notification.ADD: featureUpdate(Direction.INSERT, oFeature, newValue, notifier); break; case Notification.ADD_MANY: ...
diff --git a/src/main/java/hex/gbm/DSharedHistogram.java b/src/main/java/hex/gbm/DSharedHistogram.java index c6f6b9304..d6e295808 100644 --- a/src/main/java/hex/gbm/DSharedHistogram.java +++ b/src/main/java/hex/gbm/DSharedHistogram.java @@ -1,369 +1,371 @@ package hex.gbm; import java.util.Arrays; import java.util...
true
true
public DTree.Split scoreMSE( int col ) { final int nbins = nbins(); assert nbins > 1; // Compute mean/var for cumulative bins from 0 to nbins inclusive. double sums0[] = MemoryManager.malloc8d(nbins+1); double ssqs0[] = MemoryManager.malloc8d(nbins+1); long ns0[] = MemoryManager.malloc8 (...
public DTree.Split scoreMSE( int col ) { final int nbins = nbins(); assert nbins > 1; // Compute mean/var for cumulative bins from 0 to nbins inclusive. double sums0[] = MemoryManager.malloc8d(nbins+1); double ssqs0[] = MemoryManager.malloc8d(nbins+1); long ns0[] = MemoryManager.malloc8 (...
diff --git a/WEB-INF/src/edu/wustl/catissuecore/action/CreateSpecimenAction.java b/WEB-INF/src/edu/wustl/catissuecore/action/CreateSpecimenAction.java index 5360970dd..24e56aaa6 100644 --- a/WEB-INF/src/edu/wustl/catissuecore/action/CreateSpecimenAction.java +++ b/WEB-INF/src/edu/wustl/catissuecore/action/CreateSpecime...
true
true
public ActionForward executeSecureAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { CreateSpecimenForm createForm = (CreateSpecimenForm) form; //List of keys used in map of ActionForm List key = new ArrayList...
public ActionForward executeSecureAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { CreateSpecimenForm createForm = (CreateSpecimenForm) form; //List of keys used in map of ActionForm List key = new ArrayList...
diff --git a/app/src/com/halcyonwaves/apps/meinemediathek/loaders/SearchLoader.java b/app/src/com/halcyonwaves/apps/meinemediathek/loaders/SearchLoader.java index 6c16d88..857bbb9 100644 --- a/app/src/com/halcyonwaves/apps/meinemediathek/loaders/SearchLoader.java +++ b/app/src/com/halcyonwaves/apps/meinemediathek/loade...
true
true
public List< SearchResultEntry > loadInBackground() { // just write the search keyword into the logfile Log.v( SearchLoader.TAG, "Starting to load data for the following search query: " + this.searchFor ); // be sure that the search keyword is well-formed String preparedSearchKeyword = ""; try { prepared...
public List< SearchResultEntry > loadInBackground() { // just write the search keyword into the logfile Log.v( SearchLoader.TAG, "Starting to load data for the following search query: " + this.searchFor ); // be sure that the search keyword is well-formed String preparedSearchKeyword = ""; try { prepared...
diff --git a/src/fitnesse/responders/editing/SymbolicLinkResponder.java b/src/fitnesse/responders/editing/SymbolicLinkResponder.java index 9e4af9e7d..5d3fd94c0 100644 --- a/src/fitnesse/responders/editing/SymbolicLinkResponder.java +++ b/src/fitnesse/responders/editing/SymbolicLinkResponder.java @@ -1,126 +1,126 @@ //...
true
true
private void addSymbolicLink(Request request, WikiPage page) throws Exception { String linkName = (String) request.getInput("linkName"); String linkPath = (String) request.getInput("linkPath"); if(isFilePath(linkPath) && !isValidDirectoryPath(linkPath)) { String message = "Cannot create link to the file s...
private void addSymbolicLink(Request request, WikiPage page) throws Exception { String linkName = (String) request.getInput("linkName"); String linkPath = (String) request.getInput("linkPath"); if(isFilePath(linkPath) && !isValidDirectoryPath(linkPath)) { String message = "Cannot create link to the file s...
diff --git a/src/org/e2k/GW.java b/src/org/e2k/GW.java index f87ac9f..a4a04bc 100644 --- a/src/org/e2k/GW.java +++ b/src/org/e2k/GW.java @@ -1,567 +1,569 @@ // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Soft...
true
true
private void processGWData () { // Turn the data into a string String sData=dataBitSet.extractSectionFromStart(0,bitCount); // Possible channel free marker if (bitCount>144) { // Hunt for 0x38A3 or 0011100010100011 int pos=sData.indexOf("0011100010100011"); if (pos<8) return; pos=pos-8; List<Int...
private void processGWData () { // Turn the data into a string String sData=dataBitSet.extractSectionFromStart(0,bitCount); // Possible channel free marker if (bitCount>144) { // Hunt for 0x38A3 or 0011100010100011 int pos=sData.indexOf("0011100010100011"); if (pos<8) return; pos=pos-8; List<Int...
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/url/Urls.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/url/Urls.java index 64457a36..af9dcdc4 100644 --- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/url/Urls.java +++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/url/Urls.java @@ -1,108 +1,108 @@ /** * OSM2...
true
true
public void addPhone(Entity w) { if (w.getPhone() == null ) return; if (w.getPhone().trim().length() == 0){ return; } // set phone attribute as url Url mn =new Url(w, w.getPhone()); if (urls1.containsKey(mn.getUrl())){ // System.out.println("url for phone already there:" + mn); Url mnNext=new Ur...
public void addPhone(Entity w) { if (w.getPhone() == null ) return; if (w.getPhone().trim().length() == 0){ return; } // set phone attribute as url Url mn =new Url(w, w.getPhone()); if (urls1.containsKey(mn.getUrl())){ // System.out.println("url for phone already there:" + mn); Url mnNext=new Ur...
diff --git a/src/main/java/li/chee/vertx/reststorage/RestStorageHandler.java b/src/main/java/li/chee/vertx/reststorage/RestStorageHandler.java index f691376..6312f84 100644 --- a/src/main/java/li/chee/vertx/reststorage/RestStorageHandler.java +++ b/src/main/java/li/chee/vertx/reststorage/RestStorageHandler.java @@ -1,3...
false
true
public RestStorageHandler(final Storage storage, final EtagStore etagStore, final String prefix, JsonObject editorConfig) { if(editorConfig != null) { for( Entry<String, Object> entry: editorConfig.toMap().entrySet()) { editors.put(entry.getKey(), entry.getValue().toString()); ...
public RestStorageHandler(final Storage storage, final EtagStore etagStore, final String prefix, JsonObject editorConfig) { if(editorConfig != null) { for( Entry<String, Object> entry: editorConfig.toMap().entrySet()) { editors.put(entry.getKey(), entry.getValue().toString()); ...
diff --git a/framework/core/src/main/java/net/sf/okapi/common/pipeline/annotations/StepIntrospector.java b/framework/core/src/main/java/net/sf/okapi/common/pipeline/annotations/StepIntrospector.java index de048c743..ed5431d17 100644 --- a/framework/core/src/main/java/net/sf/okapi/common/pipeline/annotations/StepIntrosp...
false
true
public static List<String> getStepEventHandlers(IPipelineStep step) { List<String> eventHandlers = new LinkedList<String>(); Method[] methods = step.getClass().getDeclaredMethods(); for (Method m : methods) { // only look at methods with a single Event // parameter and return type if (m.getName().starts...
public static List<String> getStepEventHandlers(IPipelineStep step) { List<String> eventHandlers = new LinkedList<String>(); Method[] methods = step.getClass().getDeclaredMethods(); for (Method m : methods) { // only look at methods with a single Event // parameter and return type if (m.getName().starts...
diff --git a/src/java/org/infoglue/deliver/applications/actions/ViewApplicationStateAction.java b/src/java/org/infoglue/deliver/applications/actions/ViewApplicationStateAction.java index 4ff352a54..ff3eb28ee 100755 --- a/src/java/org/infoglue/deliver/applications/actions/ViewApplicationStateAction.java +++ b/src/java/o...
true
true
public String doExecute() throws Exception { long start = System.currentTimeMillis(); if(!ServerNodeController.getController().getIsIPAllowed(this.getRequest())) { logger.error("A user from an IP(" + this.getRequest().getRemoteAddr() + ") which is not allowed tried to call doReC...
public String doExecute() throws Exception { long start = System.currentTimeMillis(); if(!ServerNodeController.getController().getIsIPAllowed(this.getRequest())) { logger.error("A user from an IP(" + this.getRequest().getRemoteAddr() + ") which is not allowed tried to call doReC...
diff --git a/src/main/java/com/almuramc/aqualock/bukkit/util/LockUtil.java b/src/main/java/com/almuramc/aqualock/bukkit/util/LockUtil.java index 6c341ea..15d07f3 100644 --- a/src/main/java/com/almuramc/aqualock/bukkit/util/LockUtil.java +++ b/src/main/java/com/almuramc/aqualock/bukkit/util/LockUtil.java @@ -1,401 +1,39...
false
true
public static boolean performAction(Player player, String passcode, Location location, String action) { final World world = location.getWorld(); final UUID worldIdentifier = world.getUID(); final int x = location.getBlockX(); final int y = location.getBlockY(); final int z = location.getBlockZ(); final Loc...
public static boolean performAction(Player player, String passcode, Location location, String action) { final World world = location.getWorld(); final UUID worldIdentifier = world.getUID(); final int x = location.getBlockX(); final int y = location.getBlockY(); final int z = location.getBlockZ(); final Loc...
diff --git a/com.dubture.composer.test/src/com/dubture/composer/test/ReverseNamespaceResolverTest.java b/com.dubture.composer.test/src/com/dubture/composer/test/ReverseNamespaceResolverTest.java index ea13015..a9d9b43 100644 --- a/com.dubture.composer.test/src/com/dubture/composer/test/ReverseNamespaceResolverTest.java...
true
true
public void testNamespaceResolver() throws CoreException, IOException { IScriptProject scriptProject = setUpScriptProject("testproject1"); assertNotNull(scriptProject); IProjectDescription desc = scriptProject.getProject().getDescription(); desc.setNatureIds(new String[] { PHPNature.ID }); scriptProject.g...
public void testNamespaceResolver() throws CoreException, IOException { IScriptProject scriptProject = setUpScriptProject("testproject2"); assertNotNull(scriptProject); IProjectDescription desc = scriptProject.getProject().getDescription(); desc.setNatureIds(new String[] { PHPNature.ID }); scriptProject.g...
diff --git a/src/com/orange/groupbuy/parser/DianpingParser.java b/src/com/orange/groupbuy/parser/DianpingParser.java index 3064baf..f1f77c6 100644 --- a/src/com/orange/groupbuy/parser/DianpingParser.java +++ b/src/com/orange/groupbuy/parser/DianpingParser.java @@ -1,16 +1,16 @@ package com.orange.groupbuy.parser; p...
true
true
public String generateWapLoc(String loc,String imageURL) { final String prefixWapURL = "http://m.t.dianping.com/deal/"; final String suffixWapURL = "?cityid=*&agent=*&version=*&screen=*&token=*&tag=deal"; String id = getIDFromWeb("deal/", null, loc); if(id == null) return null; else return prefixWa...
public String generateWapLoc(String loc,String imageURL) { final String prefixWapURL = "http://m.t.dianping.com/deal/"; final String suffixWapURL = ""; //"?cityid=*&agent=*&version=*&screen=*&token=*&tag=deal"; String id = getIDFromWeb("deal/", null, loc); if(id == null) return null; else return pr...
diff --git a/commons/src/main/java/org/wikimedia/commons/contributions/ContributionsSyncAdapter.java b/commons/src/main/java/org/wikimedia/commons/contributions/ContributionsSyncAdapter.java index 6ad7d33e..aa7f3717 100644 --- a/commons/src/main/java/org/wikimedia/commons/contributions/ContributionsSyncAdapter.java +++...
true
true
public void onPerformSync(Account account, Bundle bundle, String s, ContentProviderClient contentProviderClient, SyncResult syncResult) { // This code is fraught with possibilities of race conditions, but lalalalala I can't hear you! String user = account.name; MWApi api = CommonsApplication...
public void onPerformSync(Account account, Bundle bundle, String s, ContentProviderClient contentProviderClient, SyncResult syncResult) { // This code is fraught with possibilities of race conditions, but lalalalala I can't hear you! String user = account.name; MWApi api = CommonsApplication...
diff --git a/src/com/greylock/RenderActivity.java b/src/com/greylock/RenderActivity.java index c900475..7b73900 100644 --- a/src/com/greylock/RenderActivity.java +++ b/src/com/greylock/RenderActivity.java @@ -1,99 +1,99 @@ package com.greylock; import java.util.Date; import java.util.Iterator; import java.util.Li...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_cards); final String deviceId = ((TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); System.out.println("Oncreate activity!"); ParseQuery<ParseObject> query =...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_cards); final String deviceId = ((TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); System.out.println("Oncreate activity!"); ParseQuery<ParseObject> query =...
diff --git a/src/carnero/me/data/EducationTUL.java b/src/carnero/me/data/EducationTUL.java index 331f0aa..a282f1d 100644 --- a/src/carnero/me/data/EducationTUL.java +++ b/src/carnero/me/data/EducationTUL.java @@ -1,17 +1,17 @@ package carnero.me.data; import carnero.me.model.Education; import carnero.me.model.Entr...
true
true
public EducationTUL() { year = 2006; month = 8; name = "Technical University of Liberec"; description = "EIŘS,\u00A0Bachelor's\u00A0degree"; tapAction = EntryIntent.getWebIntent("http://www.fm.tul.cz/en"); }
public EducationTUL() { year = 2006; month = 8; name = "Technical University of Liberec"; description = "EIŘS,\u00A0bachelor's\u00A0degree"; tapAction = EntryIntent.getWebIntent("http://www.fm.tul.cz/en"); }
diff --git a/src/org/apache/xalan/xsltc/dom/NthIterator.java b/src/org/apache/xalan/xsltc/dom/NthIterator.java index 98bc707c..a74e7274 100644 --- a/src/org/apache/xalan/xsltc/dom/NthIterator.java +++ b/src/org/apache/xalan/xsltc/dom/NthIterator.java @@ -1,144 +1,141 @@ /* * @(#)$Id$ * * The Apache Software Lice...
false
true
public NodeIterator setStartNode(final int node) { _source.setStartNode(node); /* // Make sure we count backwards if the iterator is reverse if (_source.isReverse()) { int last = _source.getLast(); _position = (last - _n) + 1; if (_position < 1) _position = 1; } else { _position = _n; } ...
public NodeIterator setStartNode(final int node) { _source.setStartNode(node); // Make sure we count backwards if the iterator is reverse if ((_source instanceof FilterIterator) && (_source.isReverse())) { int last = _source.getLast(); _position = (last - _n) + 1; if (_position < 1) _position = 1;...
diff --git a/src/scratchpad/src/org/apache/poi/hsmf/parsers/POIFSChunkParser.java b/src/scratchpad/src/org/apache/poi/hsmf/parsers/POIFSChunkParser.java index 656078c4c..6f542c5ed 100644 --- a/src/scratchpad/src/org/apache/poi/hsmf/parsers/POIFSChunkParser.java +++ b/src/scratchpad/src/org/apache/poi/hsmf/parsers/POIFS...
true
true
protected static void process(Entry entry, ChunkGroup grouping) { String entryName = entry.getName(); if(entryName.length() < 9) { // Name in the wrong format return; } if(entryName.indexOf('_') == -1) { // Name in the wrong format return; } ...
protected static void process(Entry entry, ChunkGroup grouping) { String entryName = entry.getName(); if(entryName.length() < 9) { // Name in the wrong format return; } if(entryName.indexOf('_') == -1) { // Name in the wrong format return; } ...
diff --git a/sonar-gsoc-cpd-plugin/src/main/java/org/sonar/plugins/cpd/DBCloneIndex.java b/sonar-gsoc-cpd-plugin/src/main/java/org/sonar/plugins/cpd/DBCloneIndex.java index 93e6372..1c75be3 100644 --- a/sonar-gsoc-cpd-plugin/src/main/java/org/sonar/plugins/cpd/DBCloneIndex.java +++ b/sonar-gsoc-cpd-plugin/src/main/java...
true
true
public Collection<Block> getByResourceId(String resourceId) { String hql = "SELECT d FROM IndexBlock d WHERE resource_id=:resource_id"; hql += " ORDER_BY index_in_file ASC"; List<IndexBlock> list = session.createQuery(hql) .setParameter("resource_id", resourceId) .getResultList(); List...
public Collection<Block> getByResourceId(String resourceId) { String hql = "SELECT d FROM IndexBlock d WHERE resource_id=:resource_id"; hql += " ORDER BY index_in_file ASC"; List<IndexBlock> list = session.createQuery(hql) .setParameter("resource_id", resourceId) .getResultList(); List...
diff --git a/provisioning/src/main/java/com/github/nethad/clustermeister/provisioning/CommandLineHandle.java b/provisioning/src/main/java/com/github/nethad/clustermeister/provisioning/CommandLineHandle.java index 7e55ceb..d3e778b 100644 --- a/provisioning/src/main/java/com/github/nethad/clustermeister/provisioning/Comm...
true
true
public void expectedArguments(String[] argumentNames) { StringBuilder arguments = new StringBuilder(); for (String argument : argumentNames) { arguments.append("[").append(argument).append("] "); } print(String.format("Expected {} arguments: {}", argumentNames.length, arg...
public void expectedArguments(String[] argumentNames) { StringBuilder arguments = new StringBuilder(); for (String argument : argumentNames) { arguments.append("[").append(argument).append("] "); } print(String.format("Expected %d arguments: %s", argumentNames.length, arg...
diff --git a/DataLaboratoryAPI/src/org/gephi/datalab/impl/AttributeColumnsControllerImpl.java b/DataLaboratoryAPI/src/org/gephi/datalab/impl/AttributeColumnsControllerImpl.java index a96e6846d..60ed66d81 100644 --- a/DataLaboratoryAPI/src/org/gephi/datalab/impl/AttributeColumnsControllerImpl.java +++ b/DataLaboratoryAP...
true
true
public void importCSVToEdgesTable(File file, Character separator, Charset charset, String[] columnNames, AttributeType[] columnTypes, boolean createNewNodes) { if (columnNames == null || columnNames.length == 0) { return; } if (columnTypes == null || columnNames.length != column...
public void importCSVToEdgesTable(File file, Character separator, Charset charset, String[] columnNames, AttributeType[] columnTypes, boolean createNewNodes) { if (columnNames == null || columnNames.length == 0) { return; } if (columnTypes == null || columnNames.length != column...
diff --git a/gdx/src/com/badlogic/gdx/scenes/scene2d/actions/RotateBy.java b/gdx/src/com/badlogic/gdx/scenes/scene2d/actions/RotateBy.java index bb767be66..a12f8b283 100644 --- a/gdx/src/com/badlogic/gdx/scenes/scene2d/actions/RotateBy.java +++ b/gdx/src/com/badlogic/gdx/scenes/scene2d/actions/RotateBy.java @@ -1,66 +1...
true
true
@Override public void act (float delta) { float alpha = createInterpolatedAlpha(delta); if (done) { target.rotation = rotation; } else { target.rotation = startRotation + deltaRotation * alpha; } }
@Override public void act (float delta) { float alpha = createInterpolatedAlpha(delta); if (done) { target.rotation = startRotation + rotation; } else { target.rotation = startRotation + deltaRotation * alpha; } }
diff --git a/src/minecraft/tutorial/generic/Generic.java b/src/minecraft/tutorial/generic/Generic.java index 70ffc24..856ac2f 100644 --- a/src/minecraft/tutorial/generic/Generic.java +++ b/src/minecraft/tutorial/generic/Generic.java @@ -1,318 +1,318 @@ package tutorial.generic; // This Import list will grow longer ...
true
true
public void load(FMLInitializationEvent event) { proxy.registerServerTickHandler(); proxy.registerRenderThings(); OreDictionary.registerOre("ingotCopper", new ItemStack(genericItem)); OreDictionary.registerOre("oreCopper", new ItemStack(genericOre)); // OreDictionary s...
public void load(FMLInitializationEvent event) { proxy.registerServerTickHandler(); proxy.registerRenderThings(); OreDictionary.registerOre("ingotCopper", new ItemStack(genericItem)); OreDictionary.registerOre("oreCopper", new ItemStack(genericOre)); // OreDictionary s...
diff --git a/src/management/src/main/java/vdi/management/storage/DAO/TagsDAO.java b/src/management/src/main/java/vdi/management/storage/DAO/TagsDAO.java index 47cc567..66ef9fa 100644 --- a/src/management/src/main/java/vdi/management/storage/DAO/TagsDAO.java +++ b/src/management/src/main/java/vdi/management/storage/DAO/...
true
true
public static List<Tag> getAllTags() { try { Session session = HibernateUtil.getSessionFactory() .getCurrentSession(); session.beginTransaction(); @SuppressWarnings("unchecked") List<Tag> list = session.createCriteria(Tag.class).list(); session.getTransaction().commit(); return list; } ca...
public static List<Tag> getAllTags() { try { Session session = HibernateUtil.getSessionFactory() .getCurrentSession(); session.beginTransaction(); @SuppressWarnings("unchecked") List<Tag> list = session.createQuery("from Tag").list(); session.getTransaction().commit(); return list; } catc...
diff --git a/controls/mgcp/src/main/java/org/mobicents/media/server/mgcp/pkg/au/PlayCollect.java b/controls/mgcp/src/main/java/org/mobicents/media/server/mgcp/pkg/au/PlayCollect.java index 486d526c2..bc67658d2 100644 --- a/controls/mgcp/src/main/java/org/mobicents/media/server/mgcp/pkg/au/PlayCollect.java +++ b/control...
true
true
public long perform() { if(!active.get()) return 0; int ttlValue=ttl.get(); int overallTtlValue=overallTtl.get(); if(ttlValue!=0 && overallTtlValue!=0) { if(ttlValue>0) ttl.set(ttlValue-1); if(ove...
public long perform() { if(!active.get()) return 0; int ttlValue=ttl.get(); int overallTtlValue=overallTtl.get(); if(ttlValue!=0 && overallTtlValue!=0) { if(ttlValue>0) ttl.set(ttlValue-1); if(ove...
diff --git a/src/com/csipsimple/ui/incall/InCallCard.java b/src/com/csipsimple/ui/incall/InCallCard.java index 65fd6658..38650091 100644 --- a/src/com/csipsimple/ui/incall/InCallCard.java +++ b/src/com/csipsimple/ui/incall/InCallCard.java @@ -1,680 +1,681 @@ /** * Copyright (C) 2010-2012 Regis Montoya (aka r3gis - w...
false
true
private void updateQuickActions() { // Useless to process that if (cachedInvState == callInfo.getCallState() && cachedMediaState == callInfo.getMediaStatus() && cachedIsRecording == callInfo.isRecording() && cachedCanRecord == callInfo.canReco...
private void updateQuickActions() { // Useless to process that if (cachedInvState == callInfo.getCallState() && cachedMediaState == callInfo.getMediaStatus() && cachedIsRecording == callInfo.isRecording() && cachedCanRecord == callInfo.canReco...
diff --git a/plugins/org.integratedmodelling.thinklab.corescience/src/org/integratedmodelling/corescience/implementations/observations/Measurement.java b/plugins/org.integratedmodelling.thinklab.corescience/src/org/integratedmodelling/corescience/implementations/observations/Measurement.java index a5c21522..055587b5 10...
true
true
public void initialize(IInstance i) throws ThinklabException { // lookup defs - either unit and value or textual definition of both IValue v = i.get(CoreScience.HAS_VALUE); if (v != null) { String s = v.toString(); int idx = s.indexOf(' '); if (idx >= 0) { valueSpecs = s.substring(0, idx...
public void initialize(IInstance i) throws ThinklabException { // lookup defs - either unit and value or textual definition of both IValue v = i.get(CoreScience.HAS_VALUE); if (v != null) { String s = v.toString(); int idx = s.indexOf(' '); if (idx >= 0) { valueSpecs = s.substring(0, idx...
diff --git a/loci/formats/in/PCIReader.java b/loci/formats/in/PCIReader.java index 883bfeceb..1b97e519f 100644 --- a/loci/formats/in/PCIReader.java +++ b/loci/formats/in/PCIReader.java @@ -1,373 +1,372 @@ // // PCIReader.java // /* LOCI Bio-Formats package for reading and converting biological file formats. Cop...
true
true
private void parseDir(int depth, Object dir) throws IOException, FormatException, ReflectException { r.setVar("dir", dir); r.exec("dirName = dir.getName()"); r.setVar("depth", depth); r.exec("iter = dir.getEntries()"); Iterator iter = (Iterator) r.getVar("iter"); while (iter.hasNext()) {...
private void parseDir(int depth, Object dir) throws IOException, FormatException, ReflectException { r.setVar("dir", dir); r.exec("dirName = dir.getName()"); r.setVar("depth", depth); r.exec("iter = dir.getEntries()"); Iterator iter = (Iterator) r.getVar("iter"); while (iter.hasNext()) {...
diff --git a/src/main/java/mobisocial/socialkit/musubi/Musubi.java b/src/main/java/mobisocial/socialkit/musubi/Musubi.java index bfbeeb2..d1800de 100644 --- a/src/main/java/mobisocial/socialkit/musubi/Musubi.java +++ b/src/main/java/mobisocial/socialkit/musubi/Musubi.java @@ -1,512 +1,512 @@ /* * Copyright (C) 2011 ...
true
true
public DbObj objForCursor(Cursor cursor) { try { long localId = -1; String appId = null; String type = null; JSONObject json = null; long senderId = -1; long hash = -1; String name = null; long seqNum = -1; ...
public DbObj objForCursor(Cursor cursor) { try { long localId = -1; String appId = null; String type = null; JSONObject json = null; long senderId = -1; long hash = -1; String name = null; long seqNum = -1; ...
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/WorldBorder/ConfigWorldBorder.java b/src/FE_SRC_COMMON/com/ForgeEssentials/WorldBorder/ConfigWorldBorder.java index d265d866c..318e03d4d 100644 --- a/src/FE_SRC_COMMON/com/ForgeEssentials/WorldBorder/ConfigWorldBorder.java +++ b/src/FE_SRC_COMMON/com/ForgeEssentials/Wo...
true
true
public static void penaltiesConfig(Configuration config) { String penaltyBasePackage = ForgeEssentials.class.getPackage().getName() + "."; config.addCustomCategoryComment("Penalties", "This is what will happen to the player if he passes the world boder."); String[] stages = {"Stage1"}; stages = config.get(...
public static void penaltiesConfig(Configuration config) { String penaltyBasePackage = IEffect.class.getPackage().getName() + "."; config.addCustomCategoryComment("Penalties", "This is what will happen to the player if he passes the world boder."); String[] stages = {"Stage1"}; stages = config.get("Penalti...
diff --git a/src/services/PlayerService.java b/src/services/PlayerService.java index 791e2056..dd4c90a7 100644 --- a/src/services/PlayerService.java +++ b/src/services/PlayerService.java @@ -1,634 +1,636 @@ /******************************************************************************* * Copyright (c) 2013 <Project...
true
true
public void giveExperience(CreatureObject creature, int experience) { DatatableVisitor experienceTable; PlayerObject player = (PlayerObject) creature.getSlottedObject("ghost"); //synchronized(objectMutex) { try { experienceTable = ClientFileManager.loadFile("datatables/player/player_level.iff", Datatab...
public void giveExperience(CreatureObject creature, int experience) { DatatableVisitor experienceTable; PlayerObject player = (PlayerObject) creature.getSlottedObject("ghost"); //synchronized(objectMutex) { try { experienceTable = ClientFileManager.loadFile("datatables/player/player_level.iff", Datatab...
diff --git a/src/main/java/org/basex/BaseX.java b/src/main/java/org/basex/BaseX.java index 23993642d..34855b7d6 100644 --- a/src/main/java/org/basex/BaseX.java +++ b/src/main/java/org/basex/BaseX.java @@ -1,242 +1,243 @@ package org.basex; import static org.basex.core.Text.*; import java.io.*; import org.base...
true
true
public BaseX(final String... args) throws IOException { super(args); // create session to show optional login request session(); final StringBuilder serial = new StringBuilder(); final StringBuilder bind = new StringBuilder(); boolean v = false, qi = false, qp = false; console = true; ...
public BaseX(final String... args) throws IOException { super(args); // create session to show optional login request session(); final StringBuilder serial = new StringBuilder(); final StringBuilder bind = new StringBuilder(); boolean v = false, qi = false, qp = false; console = true; ...
diff --git a/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZKLeaderManager.java b/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZKLeaderManager.java index d55d27b58..016457ea6 100644 --- a/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZKLeaderManager.java +++ b/src/test/java/org/apache/hadoop/hbase/zo...
false
true
public void testLeaderSelection() throws Exception { MockLeader currentLeader = getCurrentLeader(); // one leader should have been found assertNotNull("Leader should exist", currentLeader); LOG.debug("Current leader index is "+currentLeader.getIndex()); byte[] znodeData = ZKUtil.getData(CANDIDATE...
public void testLeaderSelection() throws Exception { MockLeader currentLeader = getCurrentLeader(); // one leader should have been found assertNotNull("Leader should exist", currentLeader); LOG.debug("Current leader index is "+currentLeader.getIndex()); byte[] znodeData = ZKUtil.getData(currentLe...
diff --git a/ScrabbleSuggester.java b/ScrabbleSuggester.java index d5a93b9..acbb94c 100644 --- a/ScrabbleSuggester.java +++ b/ScrabbleSuggester.java @@ -1,77 +1,77 @@ import java.util.*; import java.io.*; import java.lang.String; public class ScrabbleSuggester { public static boolean isStringInString( String ...
true
true
public static int computeScrabbleScore(String word) { int sum = 0; for ( char c : word.toUpperCase().toCharArray() ) { int letterVal = 0; switch( c ) { case 'A': case 'E': case 'I': case 'L': case 'N': case '...
public static int computeScrabbleScore(String word) { int sum = 0; for ( char c : word.toUpperCase().toCharArray() ) { int letterVal = 0; switch( c ) { case 'A': case 'E': case 'I': case 'L': case 'N': case '...
diff --git a/src/org/red5/server/stream/PlaylistSubscriberStream.java b/src/org/red5/server/stream/PlaylistSubscriberStream.java index 4b35e3cd..13531349 100644 --- a/src/org/red5/server/stream/PlaylistSubscriberStream.java +++ b/src/org/red5/server/stream/PlaylistSubscriberStream.java @@ -1,1600 +1,1605 @@ package or...
false
true
public synchronized void play(IPlayItem item) throws StreamNotFoundException, IllegalStateException, IOException { // Can't play if state is stopped if (state != State.STOPPED) { throw new IllegalStateException(); } int type = (int) (item.getStart() / 1000); // see if it...
public synchronized void play(IPlayItem item) throws StreamNotFoundException, IllegalStateException, IOException { // Can't play if state is stopped if (state != State.STOPPED) { throw new IllegalStateException(); } int type = (int) (item.getStart() / 1000); // see if it...
diff --git a/plugins/org.bonitasoft.studio.migration/src/org/bonitasoft/studio/migration/custom/migration/UpdateConfigurationId.java b/plugins/org.bonitasoft.studio.migration/src/org/bonitasoft/studio/migration/custom/migration/UpdateConfigurationId.java index 139d532131..d9ef6aa854 100644 --- a/plugins/org.bonitasoft....
true
true
public void migrateAfter(Model model, Metamodel metamodel) throws MigrationException { for(Instance mainProc : model.getAllInstances("process.MainProcess")){ final MainProcess diagram = ProcessFactory.eINSTANCE.createMainProcess(); diagram.setName((String) mainProc.get("name")); diagram.setVersion((Strin...
public void migrateAfter(Model model, Metamodel metamodel) throws MigrationException { for(Instance mainProc : model.getAllInstances("process.MainProcess")){ final MainProcess diagram = ProcessFactory.eINSTANCE.createMainProcess(); diagram.setName((String) mainProc.get("name")); diagram.setVersion((Strin...
diff --git a/ini/trakem2/display/Patch.java b/ini/trakem2/display/Patch.java index 0d7b4a07..971ea9df 100644 --- a/ini/trakem2/display/Patch.java +++ b/ini/trakem2/display/Patch.java @@ -1,1769 +1,1767 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2005-2009 Albert Cardona and Rodney Douglas. This program i...
false
true
public void keyPressed(KeyEvent ke) { Object source = ke.getSource(); if (! (source instanceof DisplayCanvas)) return; DisplayCanvas dc = (DisplayCanvas)source; final Layer la = dc.getDisplay().getLayer(); final Roi roi = dc.getFakeImagePlus().getRoi(); switch (ke.getKeyCode()) { case KeyEvent.VK_C: ...
public void keyPressed(KeyEvent ke) { Object source = ke.getSource(); if (! (source instanceof DisplayCanvas)) return; DisplayCanvas dc = (DisplayCanvas)source; final Roi roi = dc.getFakeImagePlus().getRoi(); switch (ke.getKeyCode()) { case KeyEvent.VK_C: // copy into ImageJ clipboard int mod = k...
diff --git a/web/src/main/java/si/mazi/coinstory/OrderBookDownloader.java b/web/src/main/java/si/mazi/coinstory/OrderBookDownloader.java index 6d3b4b0..cb79973 100644 --- a/web/src/main/java/si/mazi/coinstory/OrderBookDownloader.java +++ b/web/src/main/java/si/mazi/coinstory/OrderBookDownloader.java @@ -1,68 +1,70 @@ ...
false
true
public Future<Boolean> readData(PollingMarketDataService exchange, String currency, String service, Date time) { OrderBook orderBook; Ticker tck; log.info("Connecting to {} for {}...", service, currency); try { tck = exchange.getTicker("BTC", currency); // Wai...
public Future<Boolean> readData(PollingMarketDataService exchange, String currency, String service, Date time) { OrderBook orderBook; Ticker tck; log.info("Connecting to {} for {}...", service, currency); String what = "ticker"; try { tck = exchange.getTicker("BTC...
diff --git a/Server/src/com/abstractedsheep/ShuttleTrackerServer/JSONSender.java b/Server/src/com/abstractedsheep/ShuttleTrackerServer/JSONSender.java index 0632a66..8ecd795 100644 --- a/Server/src/com/abstractedsheep/ShuttleTrackerServer/JSONSender.java +++ b/Server/src/com/abstractedsheep/ShuttleTrackerServer/JSONSen...
false
true
public static void saveToFileAsJSON(ArrayList<Shuttle> shuttleList) { try { JsonFactory f = new JsonFactory(); JsonGenerator gen = f.createJsonGenerator(new FileWriter(new File("shuttleOutputData.txt"))); HashMap<String, Integer> map = null; //gen.writeArrayFieldStart("ShuttleETA"); gen.writeStart...
public static void saveToFileAsJSON(ArrayList<Shuttle> shuttleList) { try { JsonFactory f = new JsonFactory(); JsonGenerator gen = f.createJsonGenerator(new FileWriter(new File("shuttleOutputData.txt"))); HashMap<String, Integer> map = null; //gen.writeArrayFieldStart("ShuttleETA"); gen.writeStart...
diff --git a/com.amd.aparapi/src/java/com/amd/aparapi/KernelRunner.java b/com.amd.aparapi/src/java/com/amd/aparapi/KernelRunner.java index 93fd87a..8091cf5 100644 --- a/com.amd.aparapi/src/java/com/amd/aparapi/KernelRunner.java +++ b/com.amd.aparapi/src/java/com/amd/aparapi/KernelRunner.java @@ -1,1725 +1,1727 @@ /* ...
false
true
synchronized Kernel execute(String _entrypointName, final Range _range, final int _passes) { long executeStartTime = System.currentTimeMillis(); if (_range == null) { throw new IllegalStateException("range can't be null"); } /* for backward compatibility reasons we sti...
synchronized Kernel execute(String _entrypointName, final Range _range, final int _passes) { long executeStartTime = System.currentTimeMillis(); if (_range == null) { throw new IllegalStateException("range can't be null"); } /* for backward compatibility reasons we sti...
diff --git a/test-modules/functional-tests/src/main/java/org/openlmis/pageobjects/DeleteFacilityPage.java b/test-modules/functional-tests/src/main/java/org/openlmis/pageobjects/DeleteFacilityPage.java index cdda3b8fcd..ea929f25af 100644 --- a/test-modules/functional-tests/src/main/java/org/openlmis/pageobjects/DeleteFa...
true
true
public HomePage editAndVerifyFacility(String facilityNameValue) throws IOException { String catchmentPopulationValue = "600000"; String latitudeValue = "955.5555"; String longitudeValue = "644.4444"; String altitudeValue = "6545.4545"; testWebDriver.waitForElementToAppear(facilityList); facil...
public HomePage editAndVerifyFacility(String facilityNameValue) throws IOException { String catchmentPopulationValue = "600000"; String latitudeValue = "955.5555"; String longitudeValue = "644.4444"; String altitudeValue = "6545.4545"; testWebDriver.waitForElementToAppear(facilityList); facil...
diff --git a/bundles/GUI/src/org/paxle/gui/impl/servlets/QueueView.java b/bundles/GUI/src/org/paxle/gui/impl/servlets/QueueView.java index c63be51a..24faa8be 100644 --- a/bundles/GUI/src/org/paxle/gui/impl/servlets/QueueView.java +++ b/bundles/GUI/src/org/paxle/gui/impl/servlets/QueueView.java @@ -1,50 +1,50 @@ packag...
true
true
public Template handleRequest( HttpServletRequest request, HttpServletResponse response, Context context ) { Template template = null; try { if (request.getParameter("queue") != null) { String qu...
public Template handleRequest( HttpServletRequest request, HttpServletResponse response, Context context ) { Template template = null; try { if (request.getParameter("queue") != null) { String qu...
diff --git a/GameOfLifeTest/src/jp/gr/java_conf/konkonlab/game_of_life/models/test/LifePatternTest.java b/GameOfLifeTest/src/jp/gr/java_conf/konkonlab/game_of_life/models/test/LifePatternTest.java index 2e6cdad..6dd0662 100644 --- a/GameOfLifeTest/src/jp/gr/java_conf/konkonlab/game_of_life/models/test/LifePatternTest.j...
true
true
public void testBlock() throws Exception { String name = new String("Block"); int type = LifePattern.TYPE_STILL_LIFE; int numCellX = 2; int numCellY = 2; int[][] pairs = { {0,0}, {0,1}, {1,0}, {1,1} }; List<Pair<Integer, Integer>> cells = createCellList(pairs); LifePattern life = new LifePatt...
public void testBlock() throws Exception { String name = new String("Block"); int type = LifePattern.TYPE_STILL_LIFE; int numCellX = 2; int numCellY = 2; int[][] pairs = { {0,0}, {0,1}, {1,0}, {1,1} }; List<Pair<Integer, Integer>> cells = createCellList(pairs); LifePattern life = new LifePatt...
diff --git a/project/src/main/java/org/springframework/roo/project/GAV.java b/project/src/main/java/org/springframework/roo/project/GAV.java index 5fee86c7a..32ee38b0c 100644 --- a/project/src/main/java/org/springframework/roo/project/GAV.java +++ b/project/src/main/java/org/springframework/roo/project/GAV.java @@ -1,1...
true
true
public GAV(final String groupId, final String artifactId, final String version) { // Check Validate.isTrue(MavenUtils.isValidMavenId(groupId), "Invalid groupId '" + groupId + "'"); Validate.isTrue(MavenUtils.isValidMavenId(artifactId), "Invalid art...
public GAV(final String groupId, final String artifactId, final String version) { // Check Validate.isTrue(MavenUtils.isValidMavenId(groupId), "Invalid groupId '" + groupId + "'"); Validate.isTrue(MavenUtils.isValidMavenId(artifactId), "Invalid art...
diff --git a/src/main/java/org/molgenis/genotype/plink/writers/MapFileWriter.java b/src/main/java/org/molgenis/genotype/plink/writers/MapFileWriter.java index dfcc67a..5994553 100644 --- a/src/main/java/org/molgenis/genotype/plink/writers/MapFileWriter.java +++ b/src/main/java/org/molgenis/genotype/plink/writers/MapFil...
true
true
public void write(MapEntry map) throws IOException { writer.write(map.getChromosome()); writer.write(separator); writer.write(map.getSNP()); writer.write(separator); writer.write(Double.toString(map.getcM())); writer.write(separator); writer.write(Long.toString(map.getBpPos())); writer.write(LINE_SEPA...
public void write(MapEntry map) throws IOException { writer.write(map.getChromosome()); writer.write(separator); writer.write(map.getSNP()); writer.write(separator); if (map.getcM() == 0d) { writer.write("0"); } else { writer.write(Double.toString(map.getcM())); } writer.write(separator); ...
diff --git a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/UnifiedTree.java b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/UnifiedTree.java index bfbd1b194..0e96b0ae3 100644 --- a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/Uni...
true
true
protected void addChildren(UnifiedTreeNode node) throws CoreException { IResource parent = node.getResource(); /* is there a possibility to have children? */ if (parent.getType() == IResource.FILE && node.isFile()) return; /* get the list of resources in the file system */ String parentLocalLocation = node.get...
protected void addChildren(UnifiedTreeNode node) throws CoreException { IResource parent = node.getResource(); /* is there a possibility to have children? */ if (parent.getType() == IResource.FILE && node.isFile()) return; /* get the list of resources in the file system */ String parentLocalLocation = node.get...
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common.ui/src/org/eclipse/jst/jsf/common/ui/internal/utils/WorkspaceUtil.java b/jsf/plugins/org.eclipse.jst.jsf.common.ui/src/org/eclipse/jst/jsf/common/ui/internal/utils/WorkspaceUtil.java index ecb9939dc..4611b1791 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.common.ui/src...
true
true
public static IProject getProjectFor(IPath path) { String[] segs = path.segments(); String projectPath = new String(); IProject[] projects = ResourcesPlugin.getWorkspace().getRoot() .getProjects(); IProject project = null; for (int p = 0; p < projects.length; p++) { if (projects[p].isOpen()) { for...
public static IProject getProjectFor(IPath path) { String[] segs = path.segments(); String projectPath = new String(); IProject[] projects = ResourcesPlugin.getWorkspace().getRoot() .getProjects(); IProject project = null; for (int p = 0; p < projects.length; p++) { if (projects[p].isOpen()) { for...
diff --git a/core/src/test/java/edu/northwestern/bioinformatics/studycalendar/dao/SourceDaoTest.java b/core/src/test/java/edu/northwestern/bioinformatics/studycalendar/dao/SourceDaoTest.java index 03ec7527a..e29f656b2 100644 --- a/core/src/test/java/edu/northwestern/bioinformatics/studycalendar/dao/SourceDaoTest.java +...
true
true
public void testCount() throws Exception { assertEquals("Should be two sources to start", 2, dao.getCount()); Source newSource = new Source(); newSource.setName("newSource"); dao.save(newSource); interruptSession(); assertEquals("Should be three sources after saving"...
public void testCount() throws Exception { assertEquals("Should be two sources to start", 2, dao.getCount()); Source newSource = new Source(); newSource.setName("newSource"); dao.save(newSource); interruptSession(); assertEquals("Should be three sources after saving"...
diff --git a/src/com/powersurgepub/psdatalib/template/Template.java b/src/com/powersurgepub/psdatalib/template/Template.java index f17e855..082f8bc 100644 --- a/src/com/powersurgepub/psdatalib/template/Template.java +++ b/src/com/powersurgepub/psdatalib/template/Template.java @@ -1,596 +1,600 @@ /* * Copyright 1999 ...
false
true
public boolean generateOutput () throws IOException { if ((! templateUtil.isTemplateFileOK()) // || (! dataFileOK) ) { return false; } recLines = new ArrayList<TemplateLine>(); outerLinesBefore = new ArrayList<TemplateLine>(); outerLinesAfter = new ArrayList<Tem...
public boolean generateOutput () throws IOException { if ((! templateUtil.isTemplateFileOK()) // || (! dataFileOK) ) { return false; } recLines = new ArrayList<TemplateLine>(); outerLinesBefore = new ArrayList<TemplateLine>(); outerLinesAfter = new ArrayList<Tem...
diff --git a/ldbc_socialnet_dbgen/src/main/java/ldbc/socialnet/dbgen/generator/GroupGenerator.java b/ldbc_socialnet_dbgen/src/main/java/ldbc/socialnet/dbgen/generator/GroupGenerator.java index 39cdeaa..c5561b1 100644 --- a/ldbc_socialnet_dbgen/src/main/java/ldbc/socialnet/dbgen/generator/GroupGenerator.java +++ b/ldbc_...
true
true
public Group createGroup(ReducedUserProfile user){ Group group = new Group(); forumId = forumId + 2; groupId++; group.setGroupId(groupId); group.setModeratorId(user.getAccountId()); group.setCreatedDate(dateGenerator.randomGroupCreatedDate(user)); group.setForumWallId(forumId); group.setForumStatus...
public Group createGroup(ReducedUserProfile user){ Group group = new Group(); forumId = forumId + 2; groupId++; group.setGroupId(groupId); group.setModeratorId(user.getAccountId()); group.setCreatedDate(dateGenerator.randomGroupCreatedDate(user)); group.setForumWallId(forumId); group.setForumStatus...
diff --git a/EFTEMj/src/drift/DriftDetectionPlugin.java b/EFTEMj/src/drift/DriftDetectionPlugin.java index f34aea2..af805e7 100644 --- a/EFTEMj/src/drift/DriftDetectionPlugin.java +++ b/EFTEMj/src/drift/DriftDetectionPlugin.java @@ -1,430 +1,430 @@ /** * EFTEMj - Processing of Energy Filtering TEM images with ImageJ...
true
true
public int showDialog(ImagePlus imp, String command, PlugInFilterRunner pfr) { // Check if imp is a stack. if (imp.getStackSize() <= 1) { // ExtendedStackToImage is a plugin new ExtendedStackToImage().convertImagesToStack(); if (IJ.getImage().getStackSize() <= 1) { canceled(); return NO_CHANGES...
public int showDialog(ImagePlus imp, String command, PlugInFilterRunner pfr) { // Check if imp is a stack. if (imp.getStackSize() <= 1) { // ExtendedStackToImage is a plugin new ExtendedStackToImage().convertImagesToStack(); if (IJ.getImage().getStackSize() <= 1) { canceled(); return NO_CHANGES...
diff --git a/src/com/shade/score/RemoteHighScoreWriter.java b/src/com/shade/score/RemoteHighScoreWriter.java index 06b2978..bac6d8b 100644 --- a/src/com/shade/score/RemoteHighScoreWriter.java +++ b/src/com/shade/score/RemoteHighScoreWriter.java @@ -1,43 +1,43 @@ package com.shade.score; import java.io.BufferedReade...
true
true
public boolean write(String name, int score) throws SlickException { try { String content = "name=" + URLEncoder.encode(name, "UTF-8"); content += "&score=" + score; URL url = new URL(base); URLConnection c = url.openConnection(); c.setDoOutput(tru...
public boolean write(String name, int score) throws SlickException { try { String content = "name=" + URLEncoder.encode(name, "UTF-8"); content += "&score=" + score; URL url = new URL(base); URLConnection c = url.openConnection(); c.setDoOutput(tru...
diff --git a/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/configuration/ProjectBuilderConfigurer.java b/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/configuration/ProjectBuilderConfigurer.java index 1b56333d..1abcc569 100644 --- a/plugins/org.jboss.tools.ws.jaxrs.co...
false
true
public final void configure() throws CoreException { if (project == null) { return; } // project nature installation triggers the project builder installation, by configuration/association in the plugin.xml file. if (ProjectBuilderUtils.installProjectBuilder(project, ProjectBuilderUtils.JAXRS_BUILDER_ID)) {...
public final void configure() throws CoreException { if (project == null) { return; } // project nature installation triggers the project builder installation, by configuration/association in the plugin.xml file. if (ProjectBuilderUtils.installProjectBuilder(project, ProjectBuilderUtils.JAXRS_BUILDER_ID)) {...
diff --git a/core/src/main/java/org/jboss/as/jpa/processor/JPADependencyProcessor.java b/core/src/main/java/org/jboss/as/jpa/processor/JPADependencyProcessor.java index 7b1ec60..71588fd 100644 --- a/core/src/main/java/org/jboss/as/jpa/processor/JPADependencyProcessor.java +++ b/core/src/main/java/org/jboss/as/jpa/proce...
true
true
private int loadPersistenceUnits(final ModuleLoader moduleLoader, final DeploymentUnit deploymentUnit, final Set<String> moduleDependencies, final PersistenceUnitMetadataHolder holder) throws DeploymentUnitProcessingException { int defaultProviderCount = 0; if (holder != null) { for (Per...
private int loadPersistenceUnits(final ModuleLoader moduleLoader, final DeploymentUnit deploymentUnit, final Set<String> moduleDependencies, final PersistenceUnitMetadataHolder holder) throws DeploymentUnitProcessingException { int defaultProviderCount = 0; if (holder != null) { for (Per...