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/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java index 180a5df07..c797fe98b 100644 --- a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java +++ ...
false
true
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Itinerary itinerary = makeEmptyItinerary(path); Leg leg = null; CoordinateArrayListSequence coordinates = new CoordinateArrayListSequence(); double previousElevation = Double.MAX_VALUE; int ...
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Itinerary itinerary = makeEmptyItinerary(path); Leg leg = null; CoordinateArrayListSequence coordinates = new CoordinateArrayListSequence(); double previousElevation = Double.MAX_VALUE; int ...
diff --git a/src/de/todesbaum/jsite/main/Main.java b/src/de/todesbaum/jsite/main/Main.java index 80e0dd0..a654c49 100644 --- a/src/de/todesbaum/jsite/main/Main.java +++ b/src/de/todesbaum/jsite/main/Main.java @@ -1,711 +1,717 @@ /* * jSite - a tool for uploading websites into Freenet * Copyright (C) 2006-2009 Davi...
false
true
public void wizardNextPressed(TWizard wizard) { String pageName = wizard.getPage().getName(); if ("page.node-manager".equals(pageName)) { showPage(PageType.PAGE_PROJECTS); } else if ("page.project".equals(pageName)) { ProjectPage projectPage = (ProjectPage) wizard.getPage(); Project project = projectPag...
public void wizardNextPressed(TWizard wizard) { String pageName = wizard.getPage().getName(); if ("page.node-manager".equals(pageName)) { showPage(PageType.PAGE_PROJECTS); } else if ("page.project".equals(pageName)) { ProjectPage projectPage = (ProjectPage) wizard.getPage(); Project project = projectPag...
diff --git a/SearchAndFind/src/main/java/de/haas/searchandfind/frontend/QueryHandler.java b/SearchAndFind/src/main/java/de/haas/searchandfind/frontend/QueryHandler.java index 7cfbd6c..fcb2f27 100644 --- a/SearchAndFind/src/main/java/de/haas/searchandfind/frontend/QueryHandler.java +++ b/SearchAndFind/src/main/java/de/h...
true
true
public List<QueryResult> handleQuery(String tokenInFileName, String tokenInContent) throws IOException, ParseException { ArrayList<QueryResult> res = new ArrayList<QueryResult>(); StringBuffer queryStringBuffer = new StringBuffer(); if (tokenInFileName != null && !tokenInFileName.isEmpty()...
public List<QueryResult> handleQuery(String tokenInFileName, String tokenInContent) throws IOException, ParseException { ArrayList<QueryResult> res = new ArrayList<QueryResult>(); StringBuffer queryStringBuffer = new StringBuffer(); if (tokenInFileName != null && !tokenInFileName.isEmpty()...
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestExpressions.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestExpressions.java index 022ae8419..6612b136a 100644 --- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debu...
true
true
private void runTest() { if (bp_id == null) { bp.set(null, new IBreakpoints.DoneCommand() { public void doneCommand(IToken token, Exception error) { if (error != null) { exit(error); } else { ...
private void runTest() { if (bp_id == null) { bp.set(null, new IBreakpoints.DoneCommand() { public void doneCommand(IToken token, Exception error) { if (error != null) { exit(error); } else { ...
diff --git a/draw5/PolygonShapeTool.java b/draw5/PolygonShapeTool.java index ebc69f4..223586c 100644 --- a/draw5/PolygonShapeTool.java +++ b/draw5/PolygonShapeTool.java @@ -1,51 +1,57 @@ package draw5; import java.awt.Color; import java.awt.Graphics; import java.awt.Point; import java.util.ArrayList; import s...
true
true
public void endArray(Point p){ //close the polygon Graphics g = canvas.getGraphics(); curPolygon.drawOutline(g, xy.get(0).x, xy.get(0).y, xy.get(index - 1).x, xy.get(index - 1).y); g.setXORMode(Color.darkGray); g.setColor(Color.lightGray); curPolygon.setColor(canvas.getCurColor()); curPolygon.setX(x); ...
public void endArray(Point p){ //close the polygon Graphics g = canvas.getGraphics(); curPolygon.drawOutline(g, xy.get(0).x, xy.get(0).y, xy.get(index - 1).x, xy.get(index - 1).y); g.setXORMode(Color.darkGray); g.setColor(Color.lightGray); curPolygon.setColor(canvas.getCurColor()); x = new int[index - 1]...
diff --git a/src/View/EditorToolBar.java b/src/View/EditorToolBar.java index b7f41c5..3f61182 100644 --- a/src/View/EditorToolBar.java +++ b/src/View/EditorToolBar.java @@ -1,386 +1,386 @@ /** * Project : TowerDefense * By Aurélie Beauprez, Thomas Demenat, Keven Akyurek and Cecilia Lejeune * Copyright IMAC 2013 ...
true
true
private void jButtonSavePerformed(ActionEvent evt) { if (editorScene.getPlayerBaseCount()==4){ //Ask the name of the newly created map String fileName = JOptionPane.showInputDialog("How would you like to name your map ?"); if (fileName == null) return; while(fileName.length()<1){...
private void jButtonSavePerformed(ActionEvent evt) { if (editorScene.getPlayerBaseCount()==4){ //Ask the name of the newly created map String fileName = JOptionPane.showInputDialog("How would you like to name your map ?"); if (fileName == null) return; while(fileName.length()<1){...
diff --git a/junit/com/jme/util/LightStateTest.java b/junit/com/jme/util/LightStateTest.java index 15bb39855..10728562e 100755 --- a/junit/com/jme/util/LightStateTest.java +++ b/junit/com/jme/util/LightStateTest.java @@ -1,81 +1,81 @@ package com.jme.util; import com.jme.bounding.BoundingSphere; import com.jme.lig...
false
true
public void testQuickSort() { LightStateCreator lightStateCreator = new LightStateCreator(); // create nine lights SpotLight a = new SpotLight(); lightStateCreator.addLight( a ); SpotLight b = new SpotLight(); lightStateCreator.addLight( b ); SpotLight c = ne...
public void testQuickSort() { LightStateCreator lightStateCreator = new LightStateCreator(); // create nine lights SpotLight a = new SpotLight(); lightStateCreator.addLight( a ); SpotLight b = new SpotLight(); lightStateCreator.addLight( b ); SpotLight c = ne...
diff --git a/src/main/java/uk/ac/ebi/fgpt/sampletab/MageTabToSampleTab.java b/src/main/java/uk/ac/ebi/fgpt/sampletab/MageTabToSampleTab.java index a7fc196b..aadc7400 100644 --- a/src/main/java/uk/ac/ebi/fgpt/sampletab/MageTabToSampleTab.java +++ b/src/main/java/uk/ac/ebi/fgpt/sampletab/MageTabToSampleTab.java @@ -1,343...
false
true
public SampleData convert(MAGETABInvestigation mt) throws ParseException { SampleData st = new SampleData(); st.msi.submissionTitle = mt.IDF.investigationTitle; st.msi.submissionDescription = mt.IDF.experimentDescription; if (mt.IDF.publicReleaseDate != null && !mt.IDF.publicReleaseDate.trim().equals("")) ...
public SampleData convert(MAGETABInvestigation mt) throws ParseException { SampleData st = new SampleData(); st.msi.submissionTitle = mt.IDF.investigationTitle; st.msi.submissionDescription = mt.IDF.experimentDescription; if (mt.IDF.publicReleaseDate != null && !mt.IDF.publicReleaseDate.trim().equals("")) ...
diff --git a/errai-cdi/weld-integration/src/main/java/org/jboss/errai/cdi/server/SenderBean.java b/errai-cdi/weld-integration/src/main/java/org/jboss/errai/cdi/server/SenderBean.java index 2da453111..aa4a14e45 100644 --- a/errai-cdi/weld-integration/src/main/java/org/jboss/errai/cdi/server/SenderBean.java +++ b/errai-c...
true
true
public Object create(CreationalContext creationalContext) { InjectionPoint injectionPoint = Container.instance().services().get(CurrentInjectionPoint.class).peek(); Set<Annotation> qualifiers = injectionPoint.getQualifiers(); ParameterizedType injectionPointType = (ParameterizedType) injectionPoint.g...
public Object create(CreationalContext creationalContext) { InjectionPoint injectionPoint = Container.instance().services().get(CurrentInjectionPoint.class).peek(); Set<Annotation> qualifiers = injectionPoint.getQualifiers(); ParameterizedType injectionPointType = (ParameterizedType) injectionPoint.g...
diff --git a/waterken/remote/src/org/waterken/remote/http/Caller.java b/waterken/remote/src/org/waterken/remote/http/Caller.java index 91580e75..0d9d07ce 100755 --- a/waterken/remote/src/org/waterken/remote/http/Caller.java +++ b/waterken/remote/src/org/waterken/remote/http/Caller.java @@ -1,354 +1,354 @@ // Copyright...
true
true
private Object post(final String URL, final Object proxy, final Method method, final Object... arg) { // calculate the return pipeline web-key final String m = exports.mid(); final Class<?> R = Typedef.raw( Typedef.bound(method.getGenericReturnType(), proxy....
private Object post(final String URL, final Object proxy, final Method method, final Object... arg) { // calculate the return pipeline web-key final String m = exports.mid(); final Class<?> R = Typedef.raw( Typedef.bound(method.getGenericReturnType(), proxy....
diff --git a/htroot/BlogComments.java b/htroot/BlogComments.java index d66f6f86e..f15d3aa5f 100644 --- a/htroot/BlogComments.java +++ b/htroot/BlogComments.java @@ -1,391 +1,391 @@ // Blog.java // ----------------------- // part of YACY // (C) by Michael Peter Christen; mc@anomic.de // first published on http://ww...
false
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { plasmaSwitchboard switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); blogBoard.entry page = null; boolean hasRights = switchboard.verifyAuthentication(header, ...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { plasmaSwitchboard switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); blogBoard.entry page = null; boolean hasRights = switchboard.verifyAuthentication(header, ...
diff --git a/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceDaemon.java b/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceDaemon.java index d3251bb75..da8efd5f6 100644 --- a/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceDaemon....
true
true
public void start() throws ServiceException { synchronized (this) { if (!stop) return; stop = false; try { // serverSocket = new ServerSocket(port, 20, InetAddress.getByName(ip)); serverSocket = new ServerSocket(port, 20);...
public void start() throws ServiceException { synchronized (this) { if (!stop) return; stop = false; try { InetAddress address = InetAddress.getByName(ip); serverSocket = new ServerSocket(port, 20, address); // ...
diff --git a/src/com/wickedspiral/jacss/parser/Parser.java b/src/com/wickedspiral/jacss/parser/Parser.java index e52cb8b..70523ce 100644 --- a/src/com/wickedspiral/jacss/parser/Parser.java +++ b/src/com/wickedspiral/jacss/parser/Parser.java @@ -1,558 +1,558 @@ package com.wickedspiral.jacss.parser; import com.wicke...
true
true
public void token(Token token, String value) { if (debug) System.err.printf("Token: %s, value: %s\n", token, value); if (rgb) { if (NUMBER == token) { String h = Integer.toHexString(Integer.parseInt(value)).toLowerCase(); if (h.len...
public void token(Token token, String value) { if (debug) System.err.printf("Token: %s, value: %s\n", token, value); if (rgb) { if (NUMBER == token) { String h = Integer.toHexString(Integer.parseInt(value)).toLowerCase(); if (h.len...
diff --git a/extras-swt/src/main/java/com/metsci/glimpse/swt/canvas/SwtBridgeGlimpseCanvas.java b/extras-swt/src/main/java/com/metsci/glimpse/swt/canvas/SwtBridgeGlimpseCanvas.java index 1bb3b1ba..1de0201e 100644 --- a/extras-swt/src/main/java/com/metsci/glimpse/swt/canvas/SwtBridgeGlimpseCanvas.java +++ b/extras-swt/s...
true
true
protected void addFocusListener( ) { glCanvas.addMouseListener( new MouseAdapter( ) { public void requestFocus( ) { final Display display = Display.getDefault( ); // we want the glCanvas to have AWT focus and this Composite...
protected void addFocusListener( ) { glCanvas.addMouseListener( new MouseAdapter( ) { public void requestFocus( ) { final Display display = Display.getDefault( ); // we want the glCanvas to have AWT focus and this Composite...
diff --git a/src/au/com/addstar/birthdaygift/Database.java b/src/au/com/addstar/birthdaygift/Database.java index 9148b55..690c8af 100644 --- a/src/au/com/addstar/birthdaygift/Database.java +++ b/src/au/com/addstar/birthdaygift/Database.java @@ -1,252 +1,257 @@ package au.com.addstar.birthdaygift; /* * BirthdayGift ...
true
true
public boolean OpenDatabase() { try { Class.forName("org.sqlite.JDBC"); Conn = DriverManager.getConnection("jdbc:sqlite:plugins/" + plugin.getName() + "/" + DBFilename); IsConnected = true; if (TableExists(Conn, "birthdaygift")) { // Check/update existing table if (!ColumnExists(Conn, "birthd...
public boolean OpenDatabase() { try { Class.forName("org.sqlite.JDBC"); Conn = DriverManager.getConnection("jdbc:sqlite:plugins/" + plugin.getName() + "/" + DBFilename); IsConnected = true; if (TableExists(Conn, "birthdaygift")) { // Check/update existing table if (!ColumnExists(Conn, "birthd...
diff --git a/src/edu/osu/cse/mmxi/asm/InstructionFormat.java b/src/edu/osu/cse/mmxi/asm/InstructionFormat.java index 048a32e..c72e338 100644 --- a/src/edu/osu/cse/mmxi/asm/InstructionFormat.java +++ b/src/edu/osu/cse/mmxi/asm/InstructionFormat.java @@ -1,428 +1,427 @@ package edu.osu.cse.mmxi.asm; import java.util....
true
true
private static IFRecord interpretTextIFRecord(final String[] inst) { final IFRecord r = new IFRecord(); if (inst[0].contains("*")) r.special = true; r.name = inst[0].replace("*", ""); // name contains the opcode name r.signature = inst[1]; // signature contains a string w...
private static IFRecord interpretTextIFRecord(final String[] inst) { final IFRecord r = new IFRecord(); if (inst[0].contains("*")) r.special = true; r.name = inst[0].replace("*", ""); // name contains the opcode name r.signature = inst[1]; // signature contains a string w...
diff --git a/src/com/cs408/supersweeper/LevelSelectPanel.java b/src/com/cs408/supersweeper/LevelSelectPanel.java index 463b8e6..2fdd3b9 100644 --- a/src/com/cs408/supersweeper/LevelSelectPanel.java +++ b/src/com/cs408/supersweeper/LevelSelectPanel.java @@ -1,181 +1,181 @@ package com.cs408.supersweeper; import java...
false
true
public void mouseReleased(MouseEvent e) { GridUnit gridUnit = getGridUnit(e); if (gridUnit == null) { if (_previouslyPressedGridUnit != null) { _previouslyPressedGridUnit.setImage(_previousImage); } repaint(); return; } ...
public void mouseReleased(MouseEvent e) { GridUnit gridUnit = getGridUnit(e); if (gridUnit == null) { if (_previouslyPressedGridUnit != null) { _previouslyPressedGridUnit.setImage(_previousImage); } repaint(); return; } ...
diff --git a/src/main/java/com/ning/metrics/collector/binder/FileSystemProvider.java b/src/main/java/com/ning/metrics/collector/binder/FileSystemProvider.java index 1b7f19f..8897fd5 100644 --- a/src/main/java/com/ning/metrics/collector/binder/FileSystemProvider.java +++ b/src/main/java/com/ning/metrics/collector/binder...
true
true
public FileSystemProvider(CollectorConfig collectorConfig) throws IOException { String hfsHost = collectorConfig.getHfsHost(); Configuration hadoopConfig = new Configuration(); if (hfsHost.isEmpty()) { // Local filesystem, for testing hadoopConfig.set("fs.default...
public FileSystemProvider(CollectorConfig collectorConfig) throws IOException { String hfsHost = collectorConfig.getHfsHost(); Configuration hadoopConfig = new Configuration(); if (hfsHost.isEmpty()) { // Local filesystem, for testing hadoopConfig.set("fs.default...
diff --git a/src/test/java/org/elasticsearch/test/rest/section/MatchAssertion.java b/src/test/java/org/elasticsearch/test/rest/section/MatchAssertion.java index f7015ff949e..eeffdcfac01 100644 --- a/src/test/java/org/elasticsearch/test/rest/section/MatchAssertion.java +++ b/src/test/java/org/elasticsearch/test/rest/sec...
false
true
protected void doAssert(Object actualValue, Object expectedValue) { assertThat(errorMessage(), actualValue, notNullValue()); logger.trace("assert that [{}] matches [{}]", actualValue, expectedValue); if (!actualValue.getClass().equals(expectedValue.getClass())) { if (actualValue ...
protected void doAssert(Object actualValue, Object expectedValue) { assertThat(errorMessage(), actualValue, notNullValue()); logger.trace("assert that [{}] matches [{}]", actualValue, expectedValue); if (!actualValue.getClass().equals(expectedValue.getClass())) { if (actualValue ...
diff --git a/src/main/java/net/sourceforge/cilib/pso/positionupdatestrategies/MutationPositionUpdateStrategy.java b/src/main/java/net/sourceforge/cilib/pso/positionupdatestrategies/MutationPositionUpdateStrategy.java index ae66a79a..2f954387 100644 --- a/src/main/java/net/sourceforge/cilib/pso/positionupdatestrategies/...
true
true
private void mutate(Particle particle) { PSO p = (PSO) Algorithm.get(); Vector position = (Vector) particle.getPosition(); double tempLower = 0.0; double tempUpper = 0.0; for (int i = 0; i < position.getDimension(); ++i) { // Mutation double number = Math.pow((1.0 - (double) p.getIterations()/(maxi...
private void mutate(Particle particle) { PSO p = (PSO) Algorithm.get(); Vector position = (Vector) particle.getPosition(); double tempLower = 0.0; double tempUpper = 0.0; for (int i = 0; i < position.getDimension(); ++i) { // Mutation double number = Math.pow((1.0 - (double) p.getIterations()/(maxi...
diff --git a/src/java/net/sf/jabref/gui/AutoCompleteListener.java b/src/java/net/sf/jabref/gui/AutoCompleteListener.java index 5f0148cac..7d581d751 100644 --- a/src/java/net/sf/jabref/gui/AutoCompleteListener.java +++ b/src/java/net/sf/jabref/gui/AutoCompleteListener.java @@ -1,460 +1,471 @@ /* Copyright (C) 2003-201...
true
true
public void keyTyped(KeyEvent e) { char ch = e.getKeyChar(); if (ch == '\n') // this case is handled at keyPressed(e) return; if ((e.getModifiers() | KeyEvent.SHIFT_MASK) == KeyEvent.SHIFT_MASK) { // plain key or SHIFT + key is pressed, no handling of CTRL+ke...
public void keyTyped(KeyEvent e) { char ch = e.getKeyChar(); if (ch == '\n') // this case is handled at keyPressed(e) return; if ((e.getModifiers() | KeyEvent.SHIFT_MASK) == KeyEvent.SHIFT_MASK) { // plain key or SHIFT + key is pressed, no handling of CTRL+ke...
diff --git a/src/mitzi/MitziBrain.java b/src/mitzi/MitziBrain.java index edcdf07..93c5e0a 100644 --- a/src/mitzi/MitziBrain.java +++ b/src/mitzi/MitziBrain.java @@ -1,301 +1,307 @@ package mitzi; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Timer; import java...
false
true
private AnalysisResult evalBoard(IPosition position, int total_depth, int depth, int alpha, int beta) { int alpha_old = alpha; // Cache lookup AnalysisResult entry = ResultCache.getResult(position); if (entry != null && entry.plys_to_eval0 >= depth) { table_counter++; if (entry.flag == Flag.EXACT) ...
private AnalysisResult evalBoard(IPosition position, int total_depth, int depth, int alpha, int beta) { int alpha_old = alpha; // Cache lookup AnalysisResult entry = ResultCache.getResult(position); if (entry != null && entry.plys_to_eval0 >= depth) { table_counter++; if (entry.flag == Flag.EXACT) ...
diff --git a/src/java/org/apache/cassandra/locator/PropertyFileSnitch.java b/src/java/org/apache/cassandra/locator/PropertyFileSnitch.java index 7083b5e6a..da440af5a 100644 --- a/src/java/org/apache/cassandra/locator/PropertyFileSnitch.java +++ b/src/java/org/apache/cassandra/locator/PropertyFileSnitch.java @@ -1,202 +...
true
true
public void reloadConfiguration() throws ConfigurationException { HashMap<InetAddress, String[]> reloadedMap = new HashMap<InetAddress, String[]>(); Properties properties = new Properties(); InputStream stream = null; try { stream = getClass().getClassLoader(...
public void reloadConfiguration() throws ConfigurationException { HashMap<InetAddress, String[]> reloadedMap = new HashMap<InetAddress, String[]>(); Properties properties = new Properties(); InputStream stream = null; try { stream = getClass().getClassLoader(...
diff --git a/com.palantir.typescript/src/com/palantir/typescript/text/ClassifierScanner.java b/com.palantir.typescript/src/com/palantir/typescript/text/ClassifierScanner.java index 2773a41..c190757 100644 --- a/com.palantir.typescript/src/com/palantir/typescript/text/ClassifierScanner.java +++ b/com.palantir.typescript...
true
true
public void setRange(IDocument document, int offset, int length) { checkNotNull(document); checkArgument(offset >= 0); checkArgument(length >= 0); // reset the state this.infos = Lists.newArrayList(); this.currentIndex = -1; // get the document text in the s...
public void setRange(IDocument document, int offset, int length) { checkNotNull(document); checkArgument(offset >= 0); checkArgument(length >= 0); // reset the state this.infos = Lists.newArrayList(); this.currentIndex = -1; // get the document text in the s...
diff --git a/twitter4j-core/src/main/java/twitter4j/internal/json/AccountSettingsJSONImpl.java b/twitter4j-core/src/main/java/twitter4j/internal/json/AccountSettingsJSONImpl.java index 153b88fb..6f5de1a8 100644 --- a/twitter4j-core/src/main/java/twitter4j/internal/json/AccountSettingsJSONImpl.java +++ b/twitter4j-core/...
true
true
private AccountSettingsJSONImpl(HttpResponse res, JSONObject json) throws TwitterException { super(res); try { JSONObject sleepTime = json.getJSONObject("sleep_time"); SLEEP_TIME_ENABLED = getBoolean("enabled", sleepTime); SLEEP_START_TIME = sleepTime.getString("s...
private AccountSettingsJSONImpl(HttpResponse res, JSONObject json) throws TwitterException { super(res); try { JSONObject sleepTime = json.getJSONObject("sleep_time"); SLEEP_TIME_ENABLED = getBoolean("enabled", sleepTime); SLEEP_START_TIME = sleepTime.getString("s...
diff --git a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/rest/services/URLPolicyServiceImpl.java b/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/rest/services/URLPolicyServiceImpl.java index 7285e84e..01ad38da 100644 --- a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platf...
true
true
public void appendParametersToRequest(FacesContext facesContext, String pattern) { // try to get doc view from custom mapping DocumentView docView = null; ExpressionFactory ef = facesContext.getApplication().getExpressionFactory(); ELContext context = facesContext.getELCo...
public void appendParametersToRequest(FacesContext facesContext, String pattern) { // try to get doc view from custom mapping DocumentView docView = null; ExpressionFactory ef = facesContext.getApplication().getExpressionFactory(); ELContext context = facesContext.getELCo...
diff --git a/com.ibm.wala.core/src/com/ibm/wala/ipa/cha/ClassHierarchyStats.java b/com.ibm.wala.core/src/com/ibm/wala/ipa/cha/ClassHierarchyStats.java index 59341a20b..176beab64 100644 --- a/com.ibm.wala.core/src/com/ibm/wala/ipa/cha/ClassHierarchyStats.java +++ b/com.ibm.wala.core/src/com/ibm/wala/ipa/cha/ClassHierarc...
true
true
public static void printStats(ClassHierarchy cha) throws IllegalArgumentException { if (cha == null) { throw new IllegalArgumentException("cha cannot be null"); } IClassLoader[] loaders = cha.getLoaders(); for (int i = 0; i < loaders.length; i++) { System.out.println("loader: " + loaders[i...
public static void printStats(IClassHierarchy cha) throws IllegalArgumentException { if (cha == null) { throw new IllegalArgumentException("cha cannot be null"); } IClassLoader[] loaders = cha.getLoaders(); for (int i = 0; i < loaders.length; i++) { System.out.println("loader: " + loaders[...
diff --git a/core/src/test/java/com/datasalt/pangool/tuplemr/mapred/lib/output/TestNullableCSVTokenizer.java b/core/src/test/java/com/datasalt/pangool/tuplemr/mapred/lib/output/TestNullableCSVTokenizer.java index cb120b57..bb60e3cc 100644 --- a/core/src/test/java/com/datasalt/pangool/tuplemr/mapred/lib/output/TestNulla...
false
true
public void testNulls() throws IOException { String[] fields = getCSVParser("\"Hello\",,\\N,3", ',', '"', '\\', false, "").readNext(); assertEquals("Hello", fields[0]); assertEquals(null, fields[1]); assertEquals("N", fields[2]); assertEquals("3", fields[3]); // Strict quoting fields = getCSVParser("\...
public void testNulls() throws IOException { String[] fields = getCSVParser("\"Hello\",,\\N,3", ',', '"', '\\', false, "").readNext(); assertEquals("Hello", fields[0]); assertEquals(null, fields[1]); // Important: escape only works with quotes! assertEquals("\\N", fields[2]); assertEquals("3", fields[3]); ...
diff --git a/src/main/java/de/minestar/moneypit/database/DatabaseManager.java b/src/main/java/de/minestar/moneypit/database/DatabaseManager.java index b3d9fab..c93b28a 100644 --- a/src/main/java/de/minestar/moneypit/database/DatabaseManager.java +++ b/src/main/java/de/minestar/moneypit/database/DatabaseManager.java @@ ...
true
true
private void loadAllProtections() { try { ResultSet results = this.loadAllProtections.executeQuery(); int count = 0; int noProtectionCount = 0; while (results.next()) { BlockVector vector = new BlockVector(results.getString("blockWorld"), resul...
private void loadAllProtections() { try { ResultSet results = this.loadAllProtections.executeQuery(); int count = 0; int noProtectionCount = 0; while (results.next()) { BlockVector vector = new BlockVector(results.getString("blockWorld"), resul...
diff --git a/src/java/org/apache/nutch/fetcher/Fetcher.java b/src/java/org/apache/nutch/fetcher/Fetcher.java index df152ecc..06c4a2c7 100644 --- a/src/java/org/apache/nutch/fetcher/Fetcher.java +++ b/src/java/org/apache/nutch/fetcher/Fetcher.java @@ -1,404 +1,405 @@ /** * Copyright 2005 The Apache Software Foundatio...
false
true
public void run() { synchronized (Fetcher.this) {activeThreads++;} // count threads try { UTF8 key = new UTF8(); CrawlDatum datum = new CrawlDatum(); while (true) { if (LogFormatter.hasLoggedSevere()) // something bad happened break; ...
public void run() { synchronized (Fetcher.this) {activeThreads++;} // count threads try { UTF8 key = new UTF8(); CrawlDatum datum = new CrawlDatum(); while (true) { if (LogFormatter.hasLoggedSevere()) // something bad happened break; ...
diff --git a/trunk/src/om/tnavigator/reports/std/MonthlyUsageReport.java b/trunk/src/om/tnavigator/reports/std/MonthlyUsageReport.java index ad6629d..1c48919 100644 --- a/trunk/src/om/tnavigator/reports/std/MonthlyUsageReport.java +++ b/trunk/src/om/tnavigator/reports/std/MonthlyUsageReport.java @@ -1,153 +1,153 @@ /*...
false
true
public void generateReport(TabularReportWriter reportWriter) { DatabaseAccess.Transaction dat; try { dat = ns.getDatabaseAccess().newTransaction(); } catch (SQLException e) { throw new OmUnexpectedException("Error connecting to the database.", e); } try { ResultSet rs = ns.getOmQueries().qu...
public void generateReport(TabularReportWriter reportWriter) { DatabaseAccess.Transaction dat; try { dat = ns.getDatabaseAccess().newTransaction(); } catch (SQLException e) { throw new OmUnexpectedException("Error connecting to the database.", e); } try { ResultSet rs = ns.getOmQueries().qu...
diff --git a/HyPeerWeb/src/Main.java b/HyPeerWeb/src/Main.java index 37a6a06..86313f0 100644 --- a/HyPeerWeb/src/Main.java +++ b/HyPeerWeb/src/Main.java @@ -1,194 +1,194 @@ import java.util.*; /** * Dummy class for testing out your code */ public class Main { public static void main(String[] args){ int to...
true
true
private static int testAddNode1(Database db){ System.out.println("---- BEGIN testAddNode1 ----"); int errs = 0; try{ //fill Node with attributes db.clearDB(); Node node = new Node(5); node.setHeight(1); ...
private static int testAddNode1(Database db){ System.out.println("---- BEGIN testAddNode1 ----"); int errs = 0; try{ //fill Node with attributes db.clearDB(); Node node = new Node(5); node.setHeight(1); ...
diff --git a/src/main/java/uk/ac/shef/dcs/oak/musicview/view/ActionLine.java b/src/main/java/uk/ac/shef/dcs/oak/musicview/view/ActionLine.java index c1bc50c..00cea76 100644 --- a/src/main/java/uk/ac/shef/dcs/oak/musicview/view/ActionLine.java +++ b/src/main/java/uk/ac/shef/dcs/oak/musicview/view/ActionLine.java @@ -1,1...
false
true
public final void paint(final Graphics g) { super.paint(g); if (model != null) { // Do some housekeeping double pixelPerSecond = (this.getWidth() - LEFT_MARGIN * 2) / model.getTotalLength(); // Plot the events for (Event ev : model.getEvents()) i...
public final void paint(final Graphics g) { super.paint(g); if (model != null) { // Do some housekeeping double pixelPerSecond = (this.getWidth() - LEFT_MARGIN * 2) / model.getTotalLength(); // Plot the events for (Event ev : model.getEvents()) i...
diff --git a/common/logisticspipes/transport/PipeTransportLogistics.java b/common/logisticspipes/transport/PipeTransportLogistics.java index 4867deaa..035d274e 100644 --- a/common/logisticspipes/transport/PipeTransportLogistics.java +++ b/common/logisticspipes/transport/PipeTransportLogistics.java @@ -1,427 +1,433 @@ ...
false
true
private void handleTileReached(EntityData data, TileEntity tile) { if(SimpleServiceLocator.specialtileconnection.needsInformationTransition(tile)) { SimpleServiceLocator.specialtileconnection.transmit(tile, data); } if (tile instanceof IPipeEntry) ((IPipeEntry) tile).entityEntering(data.item, data.output);...
private void handleTileReached(EntityData data, TileEntity tile) { boolean isSpecialConnectionInformationTransition = false; if (!CoreProxy.proxy.isRenderWorld(worldObj)) { if(SimpleServiceLocator.specialtileconnection.needsInformationTransition(tile)) { isSpecialConnectionInformationTransition = true; ...
diff --git a/izpack-src/trunk/src/lib/com/izforge/izpack/util/Housekeeper.java b/izpack-src/trunk/src/lib/com/izforge/izpack/util/Housekeeper.java index 10ed091d..6f4f1f90 100644 --- a/izpack-src/trunk/src/lib/com/izforge/izpack/util/Housekeeper.java +++ b/izpack-src/trunk/src/lib/com/izforge/izpack/util/Housekeeper.ja...
true
true
public void shutDown(int exitCode) { // IZPACK-276 // Do the cleanup of the last registered client at the fist time (first in last out) for (int i = cleanupClients.size() - 1; i > 0; i--) { try { (cleanupClients.elementAt(i)).cleanUp(); ...
public void shutDown(int exitCode) { // IZPACK-276 // Do the cleanup of the last registered client at the fist time (first in last out) for (int i = cleanupClients.size() - 1; i >= 0; i--) { try { (cleanupClients.elementAt(i)).cleanUp(); ...
diff --git a/Abraham.java b/Abraham.java index e3b41929..4e49b015 100644 --- a/Abraham.java +++ b/Abraham.java @@ -1,162 +1,167 @@ //////////////////////////////////////////////////////////////////////////////// // // RMG - Reaction Mechanism Generator // // Copyright (c) 2002-2009 Prof. William H. Green (whgreen@...
true
true
public static void main(String[] args) { initializeSystemProperties(); LinkedHashSet speciesSet = new LinkedHashSet(); String abraham_output = ""; // double c=0; // double a=0; // double b=0; // double l=0; // double s=0; // double es=0; // String solvent=""; try { FileReader in ...
public static void main(String[] args) { initializeSystemProperties(); LinkedHashSet speciesSet = new LinkedHashSet(); String abraham_output = ""; // double c=0; // double a=0; // double b=0; // double l=0; // double s=0; // double es=0; // String solvent=""; try { FileReader in ...
diff --git a/plugins/org.xwiki.eclipse.ui/src/main/java/org/xwiki/eclipse/ui/adapters/XWikiEclipseObjectSummaryAdapter.java b/plugins/org.xwiki.eclipse.ui/src/main/java/org/xwiki/eclipse/ui/adapters/XWikiEclipseObjectSummaryAdapter.java index fa5113b..95a6075 100644 --- a/plugins/org.xwiki.eclipse.ui/src/main/java/org/...
false
true
public String getLabel(Object object) { if (object instanceof XWikiEclipseObjectSummary) { XWikiEclipseObjectSummary objectSummary = (XWikiEclipseObjectSummary) object; int number = objectSummary.getNumber(); /* * display the property name and value, the...
public String getLabel(Object object) { if (object instanceof XWikiEclipseObjectSummary) { XWikiEclipseObjectSummary objectSummary = (XWikiEclipseObjectSummary) object; int number = objectSummary.getNumber(); /* * display the property name and value, the...
diff --git a/NoItem/src/net/worldoftomorrow/nala/ni/Config.java b/NoItem/src/net/worldoftomorrow/nala/ni/Config.java index 57c48c7..6086a69 100644 --- a/NoItem/src/net/worldoftomorrow/nala/ni/Config.java +++ b/NoItem/src/net/worldoftomorrow/nala/ni/Config.java @@ -1,462 +1,462 @@ package net.worldoftomorrow.nala.ni; ...
false
true
private void writeConfig() { try { out = new PrintWriter(this.confFile, "UTF-8"); out.println("# Notify Message Variables:"); out.println("# %n = Player name"); out.println("# %i = Item/Recipe"); out.println("# %x = X location"); out.pr...
private void writeConfig() { try { out = new PrintWriter(this.confFile, "UTF-8"); out.println("# Notify Message Variables:"); out.println("# %n = Player name"); out.println("# %i = Item/Recipe"); out.println("# %x = X location"); out.pr...
diff --git a/org.eclipse.gmf.runtime.diagram.ui.render/src/org/eclipse/gmf/runtime/diagram/ui/render/util/PartPositionInfoGenerator.java b/org.eclipse.gmf.runtime.diagram.ui.render/src/org/eclipse/gmf/runtime/diagram/ui/render/util/PartPositionInfoGenerator.java index 5e5541e1..14b78bf9 100644 --- a/org.eclipse.gmf.run...
true
true
public static final List<PartPositionInfo> getDiagramPartInfo( DiagramEditPart diagramEditPart, Map<String, Object> options) { List<PartPositionInfo> result = new ArrayList<PartPositionInfo>(); List<IGraphicalEditPart> editParts = new ArrayList<IGraphicalEditPart>(); List<IGraphicalEditPart> children = (List...
public static final List<PartPositionInfo> getDiagramPartInfo( DiagramEditPart diagramEditPart, Map<String, Object> options) { List<PartPositionInfo> result = new ArrayList<PartPositionInfo>(); List<IGraphicalEditPart> editParts = new ArrayList<IGraphicalEditPart>(); List<IGraphicalEditPart> children = (List...
diff --git a/02_RunningKey/src/task2/RunningKey.java b/02_RunningKey/src/task2/RunningKey.java index e0ad70a..16b9a45 100644 --- a/02_RunningKey/src/task2/RunningKey.java +++ b/02_RunningKey/src/task2/RunningKey.java @@ -1,394 +1,393 @@ /* * jCrypt - Programmierumgebung für das Kryptologie-Praktikum * Studienarbei...
true
true
public void breakCipher(BufferedReader inbuf, BufferedWriter outbuf) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String ciphertext; { // read ciphertext into a string String tmp; StringBuilder tmp2 = new StringBuilder(); while ((tmp = inbuf.readLin...
public void breakCipher(BufferedReader inbuf, BufferedWriter outbuf) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String ciphertext; { // read ciphertext into a string String tmp; StringBuilder tmp2 = new StringBuilder(); while ((tmp = inbuf.readLin...
diff --git a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java b/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java index c37a53fcd..6f6053c77 100644 --- a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/e...
true
true
protected void doEditing(SWTBotEditor editor, String... path) { SWTBotSection section = bot.section(editor.bot(),getSectionTitle()); editTextProperty(editor, section.bot(), "Ok Method:", "okMethod", "method"); editTextProperty(editor, section.bot(), "Exception Method:", "exceptionMethod", "method"); section = ...
protected void doEditing(SWTBotEditor editor, String... path) { SWTBotSection section = bot.section(editor.bot(),getSectionTitle()); editTextProperty(editor, section.bot(), "Ok Method:", "okMethod", "method"); editTextProperty(editor, section.bot(), "Exception Method:", "exceptionMethod", "method"); section = ...
diff --git a/tests/com/google/bitcoin/discovery/IrcDiscoveryTest.java b/tests/com/google/bitcoin/discovery/IrcDiscoveryTest.java index 14da9a5..422cd81 100644 --- a/tests/com/google/bitcoin/discovery/IrcDiscoveryTest.java +++ b/tests/com/google/bitcoin/discovery/IrcDiscoveryTest.java @@ -1,50 +1,51 @@ /** * Copyrigh...
true
true
public void testParseUserList() throws UnknownHostException { // Test some random addresses grabbed from the channel. String[] userList = new String[]{ "x201500200","u4stwEBjT6FYyVV", "u5BKEqDApa8SbA7"}; ArrayList<InetSocketAddress> addresses = IrcDiscovery.parseUserList(userList); ...
public void testParseUserList() throws UnknownHostException { // Test some random addresses grabbed from the channel. String[] userList = new String[]{ "x201500200","u4stwEBjT6FYyVV", "u5BKEqDApa8SbA7"}; ArrayList<InetSocketAddress> addresses = IrcDiscovery.parseUserList(userList); ...
diff --git a/src/main/java/pl/agh/enrollme/service/PassResetService.java b/src/main/java/pl/agh/enrollme/service/PassResetService.java index 080d6a1..96a6d99 100644 --- a/src/main/java/pl/agh/enrollme/service/PassResetService.java +++ b/src/main/java/pl/agh/enrollme/service/PassResetService.java @@ -1,61 +1,61 @@ pack...
true
true
public void resetPassword(PassResetController controller) { Person person = personService.getCurrentUser(); PasswordEncoder encoder = new ShaPasswordEncoder(256); String encodedPassword = encoder.encodePassword(controller.getOldPass(), null); if (!encodedPassword.equals(person.getPa...
public void resetPassword(PassResetController controller) { Person person = personService.getCurrentUser(); PasswordEncoder encoder = new ShaPasswordEncoder(256); String encodedPassword = encoder.encodePassword(controller.getOldPass(), null); if (!encodedPassword.equals(person.getPa...
diff --git a/src/raytracer/Light.java b/src/raytracer/Light.java index 00dcb56..b8243d8 100644 --- a/src/raytracer/Light.java +++ b/src/raytracer/Light.java @@ -1,59 +1,59 @@ package raytracer; import java.awt.Color; public class Light { public final Point location; protected final Color color; final float...
false
true
public Color getColor(RayHit hit, Ray lightRay) { double distance = lightRay.origin.distanceTo(location); Log.debug(" distance = " + distance); float attenuationFactor = getAttenuationFactor(distance); Log.debug(" attenuation = " + attenuationFactor); // diffuse Log.debug(" normal vector = " + h...
public Color getColor(RayHit hit, Ray lightRay) { double distance = lightRay.origin.distanceTo(location); Log.debug(" distance = " + distance); float attenuationFactor = getAttenuationFactor(distance); Log.debug(" attenuation = " + attenuationFactor); // diffuse Log.debug(" normal vector = " + h...
diff --git a/src/org/odk/collect/android/UploaderTask.java b/src/org/odk/collect/android/UploaderTask.java index 4d71405..cced9d5 100644 --- a/src/org/odk/collect/android/UploaderTask.java +++ b/src/org/odk/collect/android/UploaderTask.java @@ -1,136 +1,136 @@ /* * Copyright (C) 2009 Google Inc. * * Licensed un...
false
true
protected Void doInBackground(String... values) { for (int i = 0; i < values.length; i++) { this.publishProgress(i+1, values.length); DefaultHttpClient httpclient = new DefaultHttpClient(); //this should get set in a preferences window or something. HttpPost...
protected Void doInBackground(String... values) { for (int i = 0; i < values.length; i++) { this.publishProgress(i+1, values.length); DefaultHttpClient httpclient = new DefaultHttpClient(); //this should get set in a preferences window or something. HttpPost...
diff --git a/betamax-core/src/main/java/co/freeside/betamax/Recorder.java b/betamax-core/src/main/java/co/freeside/betamax/Recorder.java index b6f580e..8bcff75 100644 --- a/betamax-core/src/main/java/co/freeside/betamax/Recorder.java +++ b/betamax-core/src/main/java/co/freeside/betamax/Recorder.java @@ -1,247 +1,247 @@...
true
true
public Statement apply(final Statement statement, Description description) { final Betamax annotation = description.getAnnotation(Betamax.class); if (annotation != null) { log.fine("found @Betamax annotation on '" + description.getDisplayName() + "'"); return new Statement() ...
public Statement apply(final Statement statement, Description description) { final Betamax annotation = description.getAnnotation(Betamax.class); if (annotation != null) { log.fine("found @Betamax annotation on '" + description.getDisplayName() + "'"); return new Statement() ...
diff --git a/src/org/linphone/compatibility/ApiEightPlus.java b/src/org/linphone/compatibility/ApiEightPlus.java index dd298bd..90b7e48 100644 --- a/src/org/linphone/compatibility/ApiEightPlus.java +++ b/src/org/linphone/compatibility/ApiEightPlus.java @@ -1,69 +1,70 @@ package org.linphone.compatibility; import or...
false
true
public static void initPushNotificationService(Context context) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); // Starting the push notification service GCMRegistrar.checkDevice(context); GCMRegistrar.checkManifest(context); final String regId = GCMRegistrar.getRegistr...
public static void initPushNotificationService(Context context) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); // Starting the push notification service GCMRegistrar.checkDevice(context); GCMRegistrar.checkManifest(context); final String regId = GCMRegistrar.getRegistr...
diff --git a/bagit/trunk/src/main/java/gov/loc/repository/bagit/driver/CommandLineBagDriver.java b/bagit/trunk/src/main/java/gov/loc/repository/bagit/driver/CommandLineBagDriver.java index 83f00810..53998459 100644 --- a/bagit/trunk/src/main/java/gov/loc/repository/bagit/driver/CommandLineBagDriver.java +++ b/bagit/tru...
false
true
public static int main2(String[] args) throws Exception { Parameter sourceParam = new UnflaggedOption(OPTION_SOURCE, JSAP.STRING_PARSER, null, JSAP.REQUIRED, JSAP.NOT_GREEDY, "The location of the source bag."); Parameter destParam = new FlaggedOption(OPTION_DESTINATION, JSAP.STRING_PARSER, null, JSAP.NOT_REQUIRED,...
public static int main2(String[] args) throws Exception { Parameter sourceParam = new UnflaggedOption(OPTION_SOURCE, JSAP.STRING_PARSER, null, JSAP.REQUIRED, JSAP.NOT_GREEDY, "The location of the source bag."); Parameter destParam = new FlaggedOption(OPTION_DESTINATION, JSAP.STRING_PARSER, null, JSAP.NOT_REQUIRED,...
diff --git a/source/de/tuclausthal/submissioninterface/servlets/view/TaskManagerView.java b/source/de/tuclausthal/submissioninterface/servlets/view/TaskManagerView.java index c80857f..f36e607 100644 --- a/source/de/tuclausthal/submissioninterface/servlets/view/TaskManagerView.java +++ b/source/de/tuclausthal/submission...
true
true
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Template template = TemplateFactory.getTemplate(request, response); PrintWriter out = response.getWriter(); Task task = (Task) request.getAttribute("task"); Lecture lecture = task.getTaskGroup()...
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Template template = TemplateFactory.getTemplate(request, response); PrintWriter out = response.getWriter(); Task task = (Task) request.getAttribute("task"); Lecture lecture = task.getTaskGroup()...
diff --git a/odcleanstore/conflictresolution/src/main/java/cz/cuni/mff/odcleanstore/conflictresolution/confidence/impl/DecidingConflictConfidenceCalculator.java b/odcleanstore/conflictresolution/src/main/java/cz/cuni/mff/odcleanstore/conflictresolution/confidence/impl/DecidingConflictConfidenceCalculator.java index 6af...
false
true
public double getConfidence(Value value, Collection<Statement> conflictingStatements, Collection<Resource> sources, CRContext context) { double confidence = super.getConfidence(value, conflictingStatements, sources, context); // Increase score if multiple sources agree on the result value ...
public double getConfidence(Value value, Collection<Statement> conflictingStatements, Collection<Resource> sources, CRContext context) { double confidence = super.getConfidence(value, conflictingStatements, sources, context); // Increase score if multiple sources agree on the result value ...
diff --git a/test-src/com/redhat/ceylon/compiler/java/test/model/ModelLoaderTest.java b/test-src/com/redhat/ceylon/compiler/java/test/model/ModelLoaderTest.java index 9e3519116..452f3e186 100755 --- a/test-src/com/redhat/ceylon/compiler/java/test/model/ModelLoaderTest.java +++ b/test-src/com/redhat/ceylon/compiler/java...
true
true
protected void verifyClassLoading(String ceylon){ // now compile the ceylon decl file CeyloncTaskImpl task = getCompilerTask(ceylon); // get the context to grab the phased units Context context = task.getContext(); Boolean success = task.call(); Assert.asser...
protected void verifyClassLoading(String ceylon){ // now compile the ceylon decl file CeyloncTaskImpl task = getCompilerTask(ceylon); // get the context to grab the phased units Context context = task.getContext(); Boolean success = task.call(); Assert.asser...
diff --git a/src/main/java/org/mvel/ParserContext.java b/src/main/java/org/mvel/ParserContext.java index 1ae0b538..29e8e71a 100644 --- a/src/main/java/org/mvel/ParserContext.java +++ b/src/main/java/org/mvel/ParserContext.java @@ -1,366 +1,367 @@ package org.mvel; import org.mvel.ast.LineLabel; import org.mvel.int...
true
true
private boolean checkForDynamicImport(String className) { if (packageImports == null) return false; int found = 0; Class cls = null; for (String pkg : packageImports) { try { cls = Class.forName(pkg + "." + className); found++; ...
private boolean checkForDynamicImport(String className) { if (packageImports == null) return false; int found = 0; Class cls = null; for (String pkg : packageImports) { try { cls = Class.forName(pkg + "." + className); found++; ...
diff --git a/src/bwa_picard_gatk_pipeline/CommandLineClass.java b/src/bwa_picard_gatk_pipeline/CommandLineClass.java index 496f6aa..de818ce 100644 --- a/src/bwa_picard_gatk_pipeline/CommandLineClass.java +++ b/src/bwa_picard_gatk_pipeline/CommandLineClass.java @@ -1,233 +1,233 @@ /* * To change this template, choose...
true
true
public static void main(String[] args) { //Define all options Options options = new Options(); //general options options.addOption("i", "input", true, "the Json config file describing the samples, read groups, tags and files to process. "); options.addOption("o", "ou...
public static void main(String[] args) { //Define all options Options options = new Options(); //general options options.addOption("i", "input", true, "the Json config file describing the samples, read groups, tags and files to process. "); options.addOption("o", "ou...
diff --git a/org/lateralgm/subframes/FontFrame.java b/org/lateralgm/subframes/FontFrame.java index c7acc7b8..ed77d705 100644 --- a/org/lateralgm/subframes/FontFrame.java +++ b/org/lateralgm/subframes/FontFrame.java @@ -1,293 +1,293 @@ /* * Copyright (C) 2007 Clam <clamisgood@gmail.com> * Copyright (C) 2008 IsmAvat...
true
true
public FontFrame(Font res, ResNode node) { super(res,node); res.properties.updateSource.addListener(fpl); setResizable(false); setMaximizable(false); GroupLayout layout = new GroupLayout(getContentPane()); layout.setAutoCreateGaps(true); layout.setAutoCreateContainerGaps(true); setLayout(layout); ...
public FontFrame(Font res, ResNode node) { super(res,node); res.properties.updateSource.addListener(fpl); setResizable(false); setMaximizable(false); GroupLayout layout = new GroupLayout(getContentPane()); layout.setAutoCreateGaps(true); layout.setAutoCreateContainerGaps(true); setLayout(layout); ...
diff --git a/teeda/teeda-core/src/main/java/org/seasar/teeda/core/render/html/support/UrlBuilder.java b/teeda/teeda-core/src/main/java/org/seasar/teeda/core/render/html/support/UrlBuilder.java index aea07877f..b5b942318 100644 --- a/teeda/teeda-core/src/main/java/org/seasar/teeda/core/render/html/support/UrlBuilder.jav...
false
true
public String build() { final StringBuffer sb = new StringBuffer(100); final URI uri = URI.create(base); if (uri.getScheme() != null) { sb.append(uri.getScheme()); sb.append(":"); if (-1 < uri.getPort()) { sb.append(uri.getPort()); ...
public String build() { final StringBuffer sb = new StringBuffer(100); final URI uri = URI.create(base); if (uri.getScheme() != null) { sb.append(uri.getScheme()); sb.append("://"); } if (uri.getHost() != null) { sb.append(uri.getHost()); ...
diff --git a/tool/src/java/org/sakaiproject/assignment2/tool/beans/Assignment2Bean.java b/tool/src/java/org/sakaiproject/assignment2/tool/beans/Assignment2Bean.java index d3d785b6..3d491cf1 100644 --- a/tool/src/java/org/sakaiproject/assignment2/tool/beans/Assignment2Bean.java +++ b/tool/src/java/org/sakaiproject/assig...
false
true
private String internalProcessPost(Assignment2 assignment, String key){ Boolean errorFound = false; assignment.setDraft(Boolean.FALSE); if (this.requireAcceptUntil == null || this.requireAcceptUntil == Boolean.FALSE) { assignment.setAcceptUntilTime(null); } if (this.requireDueDate == null || this...
private String internalProcessPost(Assignment2 assignment, String key){ Boolean errorFound = false; assignment.setDraft(Boolean.FALSE); if (this.requireAcceptUntil == null || this.requireAcceptUntil == Boolean.FALSE) { assignment.setAcceptUntilTime(null); } if (this.requireDueDate == null || this...
diff --git a/gems/core/src/main/java/org/torquebox/core/gem/MSCServiceListener.java b/gems/core/src/main/java/org/torquebox/core/gem/MSCServiceListener.java index 6d3cb8d1f..45f351c06 100644 --- a/gems/core/src/main/java/org/torquebox/core/gem/MSCServiceListener.java +++ b/gems/core/src/main/java/org/torquebox/core/gem...
true
true
public void transition(ServiceController<? extends Object> controller, Transition transition) { if (transition.getAfter() == Substate.UP || (transition.getAfter() != Substate.START_REQUESTED && transition.getAfter() != Substate.START_INITIATING && transition.getAfter() ...
public void transition(ServiceController<? extends Object> controller, Transition transition) { Substate after = transition.getAfter(); if (after == Substate.UP || after == Substate.CANCELLED || after == Substate.WONT_START || after == Substate.PROBLEM || ...
diff --git a/hbl/src/main/java/com/inadco/hbl/model/UTF8CharDimension.java b/hbl/src/main/java/com/inadco/hbl/model/UTF8CharDimension.java index 80d09c6..7141d59 100644 --- a/hbl/src/main/java/com/inadco/hbl/model/UTF8CharDimension.java +++ b/hbl/src/main/java/com/inadco/hbl/model/UTF8CharDimension.java @@ -1,124 +1,12...
true
true
public void getKey(Object member, byte[] buff, int offset) { if (member == null) { member = nullkey; } if (member instanceof CharSequence) { CharSequence cs = (CharSequence) member; ByteBuffer bb = utf8.encode(cs.toString()); int mlen = bb.r...
public void getKey(Object member, byte[] buff, int offset) { if (member == null) { member = nullkey; } if (member instanceof CharSequence) { CharSequence cs = (CharSequence) member; ByteBuffer bb = utf8.encode(cs.toString()); int mlen = bb.r...
diff --git a/components/bio-formats/src/loci/formats/out/TiffWriter.java b/components/bio-formats/src/loci/formats/out/TiffWriter.java index 59cab4335..f7691eaf0 100644 --- a/components/bio-formats/src/loci/formats/out/TiffWriter.java +++ b/components/bio-formats/src/loci/formats/out/TiffWriter.java @@ -1,210 +1,211 @@...
true
true
public void saveImage(Image image, Hashtable ifd, int series, boolean lastInSeries, boolean last) throws IOException, FormatException { MetadataRetrieve retrieve = getMetadataRetrieve(); boolean littleEndian = retrieve == null ? false : !retrieve.getPixelsBigEndian(series, 0).booleanValue(); ...
public void saveImage(Image image, Hashtable ifd, int series, boolean lastInSeries, boolean last) throws IOException, FormatException { MetadataRetrieve retrieve = getMetadataRetrieve(); Boolean bigEndian = retrieve.getPixelsBigEndian(series, 0); boolean littleEndian = bigEndian == null ? fals...
diff --git a/solr/src/java/org/apache/solr/core/SolrConfig.java b/solr/src/java/org/apache/solr/core/SolrConfig.java index f84219457..e0cee0ccb 100644 --- a/solr/src/java/org/apache/solr/core/SolrConfig.java +++ b/solr/src/java/org/apache/solr/core/SolrConfig.java @@ -1,437 +1,437 @@ /** * Licensed to the Apache Sof...
true
true
SolrConfig(SolrResourceLoader loader, String name, InputStream is) throws ParserConfigurationException, IOException, SAXException { super(loader, name, is, "/config/"); initLibs(); defaultIndexConfig = new SolrIndexConfig(this, null, null); mainIndexConfig = new SolrIndexConfig(this, "mainIndex", de...
SolrConfig(SolrResourceLoader loader, String name, InputStream is) throws ParserConfigurationException, IOException, SAXException { super(loader, name, is, "/config/"); initLibs(); defaultIndexConfig = new SolrIndexConfig(this, null, null); mainIndexConfig = new SolrIndexConfig(this, "mainIndex", de...
diff --git a/user-agent/user-action-monitor/src/main/java/org/societies/useragent/monitoring/UserActionMonitor.java b/user-agent/user-action-monitor/src/main/java/org/societies/useragent/monitoring/UserActionMonitor.java index 242c583a8..09a1d1456 100644 --- a/user-agent/user-action-monitor/src/main/java/org/societies/...
true
true
public void monitor(String userId, IAction action) { // TODO Auto-generated method stub //blah }
public void monitor(String userId, IAction action) { // TODO Auto-generated method stub }
diff --git a/src/main/java/org/mvnsearch/snippet/web/actions/snippet/SnippetAction.java b/src/main/java/org/mvnsearch/snippet/web/actions/snippet/SnippetAction.java index 3c1903b..26d8dcc 100644 --- a/src/main/java/org/mvnsearch/snippet/web/actions/snippet/SnippetAction.java +++ b/src/main/java/org/mvnsearch/snippet/we...
true
true
public String showPart() { String part = request.getParameter("part"); String result = "plain_text"; String content = ""; if ("code".equals(part)) { content = snippet.getCode(); result = "code_part"; } else if ("example".equals(part)) { con...
public String showPart() { String part = request.getParameter("part"); String result = "plain_text"; String content = ""; if (snippet != null) { if ("code".equals(part)) { content = snippet.getCode(); result = "code_part"; } els...
diff --git a/widgets/src/main/java/org/jboss/ballroom/client/widgets/window/DefaultWindow.java b/widgets/src/main/java/org/jboss/ballroom/client/widgets/window/DefaultWindow.java index 44c52ef..4e509d0 100644 --- a/widgets/src/main/java/org/jboss/ballroom/client/widgets/window/DefaultWindow.java +++ b/widgets/src/main/...
true
true
public DefaultWindow(String title) { layout = new DockLayoutPanel(Style.Unit.PX) ; setStyleName("default-window"); final WindowHeader header = new WindowHeader(title, this); layout.getElement().setAttribute(Aria.ROLE, Aria.DIALOG); layout.getElement().setAttribute(Aria.LABE...
public DefaultWindow(String title) { layout = new DockLayoutPanel(Style.Unit.PX) ; setStyleName("default-window"); final WindowHeader header = new WindowHeader(title, this); layout.getElement().setAttribute(Aria.ROLE, Aria.DIALOG); layout.getElement().setAttribute(Aria.LABE...
diff --git a/compiler/src/gen/visitor/IntegerConstructorDefinition.java b/compiler/src/gen/visitor/IntegerConstructorDefinition.java index cc6cba6..634ad71 100644 --- a/compiler/src/gen/visitor/IntegerConstructorDefinition.java +++ b/compiler/src/gen/visitor/IntegerConstructorDefinition.java @@ -1,152 +1,152 @@ packag...
true
true
public Object visit(ASTSignedNumber node, Object data) { builder.append(2, ""); if (null != typeName) { builder.append(typeName).append("."); } if (isMinSize) { appendMinValue(node.getNumber(), true); isMinSize = false; } else { appendMinValue(node.g...
public Object visit(ASTSignedNumber node, Object data) { builder.append(2, ""); if (null != typeName) { builder.append(typeName).append("."); } if (isMinSize) { appendMinValue(node.getNumber(), true); isMinSize = false; } else { appendMaxValue(node.g...
diff --git a/src/main/us/exultant/ahs/log/Logger.java b/src/main/us/exultant/ahs/log/Logger.java index 077b47f..316978e 100644 --- a/src/main/us/exultant/ahs/log/Logger.java +++ b/src/main/us/exultant/ahs/log/Logger.java @@ -1,429 +1,429 @@ /* * Copyright 2010, 2011 Eric Myhre <http://exultant.us> * * This file...
false
true
public void log(int $level, String $category, String $message, Throwable $e) { StringBuilder $sb = new StringBuilder(256); // i'd love to allocate this per class instead of per call, but I think i'd have to strengthen the admonishments against multithreaded use of loggers quite a bit if i were to do that. as it s...
public void log(int $level, String $category, String $message, Throwable $e) { StringBuilder $sb = new StringBuilder(256); // i'd love to allocate this per class instead of per call, but I think i'd have to strengthen the admonishments against multithreaded use of loggers quite a bit if i were to do that. as it s...
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Revision.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Revision.java index eb10427670..fd1fba7263 100644 --- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Revision.java +++ b/oak-core/src/main/ja...
true
true
public void add(Revision r, Revision seenAt) { int clusterId = r.getClusterId(); while (true) { List<RevisionRange> list = map.get(clusterId); List<RevisionRange> newList; if (list == null) { newList = new ArrayList<Revi...
public void add(Revision r, Revision seenAt) { int clusterId = r.getClusterId(); while (true) { List<RevisionRange> list = map.get(clusterId); List<RevisionRange> newList; if (list == null) { newList = new ArrayList<Revi...
diff --git a/org.caleydo.data.importer/src/org/caleydo/data/importer/tcga/TCGADataSetBuilder.java b/org.caleydo.data.importer/src/org/caleydo/data/importer/tcga/TCGADataSetBuilder.java index 88932e35a..c2f54d73a 100644 --- a/org.caleydo.data.importer/src/org/caleydo/data/importer/tcga/TCGADataSetBuilder.java +++ b/org....
true
true
private DataSetDescription setUpClusteredMatrixData(EDataSetType type, IDSpecification rowIDSpecification, IDSpecification columnIDSpecification, Pair<TCGAFileInfo, Boolean> pair) { if (pair == null || pair.getFirst() == null) return null; TCGAFileInfo fileInfo = pair.getFirst(); final File matrixFile = fi...
private DataSetDescription setUpClusteredMatrixData(EDataSetType type, IDSpecification rowIDSpecification, IDSpecification columnIDSpecification, Pair<TCGAFileInfo, Boolean> pair) { if (pair == null || pair.getFirst() == null) return null; TCGAFileInfo fileInfo = pair.getFirst(); final File matrixFile = fi...
diff --git a/src/me/libraryaddict/Hungergames/Types/PlayerJoinThread.java b/src/me/libraryaddict/Hungergames/Types/PlayerJoinThread.java index 25a1348..32b3b0c 100644 --- a/src/me/libraryaddict/Hungergames/Types/PlayerJoinThread.java +++ b/src/me/libraryaddict/Hungergames/Types/PlayerJoinThread.java @@ -1,109 +1,112 @@...
false
true
public void run() { if (!Extender.mysql.enabled) return; SQLconnect(); while (true) { if (pm.loadGamer.peek() != null) { Gamer gamer = pm.loadGamer.poll(); try { Statement stmt = con.createStatement(); ...
public void run() { if (!Extender.mysql.enabled) return; SQLconnect(); while (true) { if (pm.loadGamer.peek() != null) { Gamer gamer = pm.loadGamer.poll(); try { Statement stmt = con.createStatement(); ...
diff --git a/AMBroSIA/src/game/Progression.java b/AMBroSIA/src/game/Progression.java index d6e5656..6795dbe 100644 --- a/AMBroSIA/src/game/Progression.java +++ b/AMBroSIA/src/game/Progression.java @@ -1,164 +1,164 @@ package game; import gui.MenuGUI; import org.apache.log4j.Logger; /** * The * <code>Progres...
true
true
private void checkGameProgress() { //single player if (!istwoPlayer) { if (isPlayerDead()) { gameState.setPlayer1Score(gameState.getCurrentScore()); gameState.setPlayer1Level(gameState.getLevel()); Logic.stopTimer(); Logic.d...
private void checkGameProgress() { //single player if (!istwoPlayer) { if (isPlayerDead()) { gameState.setPlayer1Score(gameState.getCurrentScore()); gameState.setPlayer1Level(gameState.getLevel()); Logic.stopTimer(); Logic.d...
diff --git a/plugins/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtMath.java b/plugins/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtMath.java index 785ee1ee1..50cfd9811 100644 --- a/plugins/org.eclipse.birt.core.script.function/src/org...
true
true
BirtMath( String functionName ) throws BirtException { if( "add".equals( functionName )) this.executor = new Function_Add(); else if( "subtract".equals( functionName )) this.executor = new Function_Subtract( ); else if( "multiple".equals( functionName )) this.executor = new Function_Multiple( ); else...
BirtMath( String functionName ) throws BirtException { if( "add".equals( functionName )) this.executor = new Function_Add(); else if( "subtract".equals( functionName )) this.executor = new Function_Subtract( ); else if( "multiple".equals( functionName ) ||"multiply".equals( functionName )) this.exe...
diff --git a/src/main/java/com/euroit/militaryshop/MainPage.java b/src/main/java/com/euroit/militaryshop/MainPage.java index 0b4229e..ed8e48d 100644 --- a/src/main/java/com/euroit/militaryshop/MainPage.java +++ b/src/main/java/com/euroit/militaryshop/MainPage.java @@ -1,59 +1,59 @@ package com.euroit.militaryshop; ...
true
true
public void putFirstProductInTrolleyAndCheck() { WebElement firstProductThumb = driver.findElement(By.className("thumbnail")); Actions builder = new Actions(driver); builder.moveToElement(firstProductThumb).perform(); final WebElement toTrooleyButton = driver.findElement(By.cssSelector(".product-overl...
public void putFirstProductInTrolleyAndCheck() { WebElement firstProductThumb = driver.findElement(By.className("thumbnail")); Actions builder = new Actions(driver); builder.moveToElement(firstProductThumb).perform(); final WebElement toTrooleyButton = driver.findElement(By.cssSelector(".product-overl...
diff --git a/src/net/sf/freecol/client/gui/sound/SoundLibrary.java b/src/net/sf/freecol/client/gui/sound/SoundLibrary.java index 27ddba16a..baa1481eb 100644 --- a/src/net/sf/freecol/client/gui/sound/SoundLibrary.java +++ b/src/net/sf/freecol/client/gui/sound/SoundLibrary.java @@ -1,171 +1,173 @@ /** * Copyright (C)...
true
true
public SoundLibrary(File file) throws FreeColException { if (!file.isDirectory()) throw new FreeColException("The file \"" + file.getName() + "\" is not a directory."); HashMap<Integer, Playlist> playlists = new HashMap<Integer, Playlist>(); int greatestNumber = -1; Str...
public SoundLibrary(File file) throws FreeColException { if (!file.isDirectory()) throw new FreeColException("The file \"" + file.getName() + "\" is not a directory."); HashMap<Integer, Playlist> playlists = new HashMap<Integer, Playlist>(); int greatestNumber = -1; Str...
diff --git a/projects/security-manager/source/javatests/com/google/enterprise/saml/server/MockIdentityProvider.java b/projects/security-manager/source/javatests/com/google/enterprise/saml/server/MockIdentityProvider.java index 2385018d..d823bc1e 100644 --- a/projects/security-manager/source/javatests/com/google/enterpr...
true
true
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { HttpSession session = req.getSession(); SAMLMessageContext<AuthnRequest, Response, NameID> context = getMessageContext(session, SSO_SAML_CONTEXT); if (context == null) { logger.l...
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { HttpSession session = req.getSession(); SAMLMessageContext<AuthnRequest, Response, NameID> context = getMessageContext(session, SSO_SAML_CONTEXT); if (context == null) { logger.l...
diff --git a/src/com/android/camera/EffectsRecorder.java b/src/com/android/camera/EffectsRecorder.java index 301f2a2e..f177387d 100644 --- a/src/com/android/camera/EffectsRecorder.java +++ b/src/com/android/camera/EffectsRecorder.java @@ -1,635 +1,636 @@ /* * Copyright (C) 2011 The Android Open Source Project * ...
true
true
private synchronized void initializeEffect(boolean forceReset) { if (forceReset || mCurrentEffect != mEffect || mCurrentEffect == EFFECT_BACKDROPPER) { if (mLogVerbose) { Log.v(TAG, "Effect initializing. Preview size " + mPreviewWidt...
private synchronized void initializeEffect(boolean forceReset) { if (forceReset || mCurrentEffect != mEffect || mCurrentEffect == EFFECT_BACKDROPPER) { if (mLogVerbose) { Log.v(TAG, "Effect initializing. Preview size " + mPreviewWidt...
diff --git a/03_IDEA/src/task3/IDEA.java b/03_IDEA/src/task3/IDEA.java index 794ea79..5fff1a5 100755 --- a/03_IDEA/src/task3/IDEA.java +++ b/03_IDEA/src/task3/IDEA.java @@ -1,198 +1,197 @@ /* * jCrypt - Programmierumgebung für das Kryptologie-Praktikum * Studienarbeit am Institut für Theoretische Informatik der ...
true
true
public void makeKey() { BufferedReader standardInput = launcher.openStandardInput(); keyString = new String(); char keyCharArray[] = new char[16]; // Auswahl eingeben oder generieren: int choice = 0; try { Logger("[0] Möchtest du einen eigenen Schlüssel eingeben\n[1] oder einen Schl...
public void makeKey() { BufferedReader standardInput = launcher.openStandardInput(); keyString = new String(); char keyCharArray[] = new char[16]; // Auswahl eingeben oder generieren: int choice = 0; try { Logger("[0] Möchtest du einen eigenen Schlüssel eingeben\n[1] oder einen Schl...
diff --git a/src/main/java/com/mashape/client/authentication/HeaderAuthentication.java b/src/main/java/com/mashape/client/authentication/HeaderAuthentication.java index 6ce4c13..87c326e 100644 --- a/src/main/java/com/mashape/client/authentication/HeaderAuthentication.java +++ b/src/main/java/com/mashape/client/authenti...
true
true
public void addHeader(AuthenticationParameter ... headers) { for (AuthenticationParameter header : headers) { super.headers.add(new BasicHeader(header.getName(), header.getValue())); } }
public HeaderAuthentication(AuthenticationParameter ... headers) { for (AuthenticationParameter header : headers) { super.headers.add(new BasicHeader(header.getName(), header.getValue())); } }
diff --git a/net.sf.redmine_mylyn.core/src/net/sf/redmine_mylyn/core/RedmineTaskDataHandler.java b/net.sf.redmine_mylyn.core/src/net/sf/redmine_mylyn/core/RedmineTaskDataHandler.java index 3c0c36b..a3a2afb 100644 --- a/net.sf.redmine_mylyn.core/src/net/sf/redmine_mylyn/core/RedmineTaskDataHandler.java +++ b/net.sf.redm...
true
true
private static void createDefaultAttributes(TaskData data, Issue issue , Configuration cfg) throws RedmineStatusException { boolean existingTask = issue.getId()>0; Project project = cfg.getProjects().getById(issue.getProjectId()); if (project==null || cfg.getSettings()==null) { IStatus status = new Status(IS...
private static void createDefaultAttributes(TaskData data, Issue issue , Configuration cfg) throws RedmineStatusException { boolean existingTask = issue.getId()>0; Project project = cfg.getProjects().getById(issue.getProjectId()); if (project==null || cfg.getSettings()==null) { IStatus status = new Status(IS...
diff --git a/src/main/java/org/jpacman/framework/ui/MainUI.java b/src/main/java/org/jpacman/framework/ui/MainUI.java index e2eb6db..05aa078 100644 --- a/src/main/java/org/jpacman/framework/ui/MainUI.java +++ b/src/main/java/org/jpacman/framework/ui/MainUI.java @@ -1,337 +1,338 @@ package org.jpacman.framework.ui; i...
true
true
public MainUI createUI() throws FactoryException { assert getGame() != null; assert ghostController != null; boardView = createBoardView(); animator = new Animator(boardView); if (pi == null) { pi = new PacmanInteraction(); } pi.withDisposable(this) .with...
public MainUI createUI() throws FactoryException { assert getGame() != null; assert ghostController != null; boardView = createBoardView(); animator = new Animator(boardView); if (pi == null) { pi = new PacmanInteraction(); } pi.withDisposable(this) .with...
diff --git a/src/main/java/net/praqma/hudson/scm/PucmScm.java b/src/main/java/net/praqma/hudson/scm/PucmScm.java index e2af37d..0d13151 100644 --- a/src/main/java/net/praqma/hudson/scm/PucmScm.java +++ b/src/main/java/net/praqma/hudson/scm/PucmScm.java @@ -1,736 +1,736 @@ package net.praqma.hudson.scm; import hudso...
true
true
public boolean checkout( AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile ) throws IOException, InterruptedException { logger = PraqmaLogger.getLogger(); File rdir = build.getRootDir(); File pdir = build.getProject().getRootDir(); logger.setLocalLog( new F...
public boolean checkout( AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile ) throws IOException, InterruptedException { logger = PraqmaLogger.getLogger(); File rdir = build.getRootDir(); File pdir = build.getProject().getRootDir(); logger.setLocalLog( new F...
diff --git a/io/plugins/eu.esdihumboldt.hale.io.gml/src/eu/esdihumboldt/hale/io/gml/writer/internal/TypeIndex.java b/io/plugins/eu.esdihumboldt.hale.io.gml/src/eu/esdihumboldt/hale/io/gml/writer/internal/TypeIndex.java index a4a00c346..f0ed09929 100644 --- a/io/plugins/eu.esdihumboldt.hale.io.gml/src/eu/esdihumboldt/ha...
true
true
public void addType(TypeDefinition type) { index.put(type.getFeatureType().getName(), type); }
public void addType(TypeDefinition type) { FeatureType ft = type.getFeatureType(); if (ft != null) { index.put(ft.getName(), type); } }
diff --git a/test/controllers/ApplicationTest.java b/test/controllers/ApplicationTest.java index 59e25a46..47d02b3d 100644 --- a/test/controllers/ApplicationTest.java +++ b/test/controllers/ApplicationTest.java @@ -1,28 +1,28 @@ package controllers; import org.junit.Test; import play.mvc.Result; import static o...
true
true
public void callIndex() { running(fakeApplication(), new Runnable() { @Override public void run() { Result result = callAction(controllers.routes.ref.Application.index()); assertThat(status(result)).isEqualTo(OK); assertThat(contentType(result)).isEqualTo("text/html...
public void callIndex() { running(fakeApplication(), new Runnable() { @Override public void run() { Result result = callAction(controllers.routes.ref.Application.index()); assertThat(status(result)).isEqualTo(OK); assertThat(contentType(result)).isEqualTo("text/html...
diff --git a/src/org/romaframework/aspect/persistence/QueryByFilter.java b/src/org/romaframework/aspect/persistence/QueryByFilter.java index 3573eaf..bd9962f 100644 --- a/src/org/romaframework/aspect/persistence/QueryByFilter.java +++ b/src/org/romaframework/aspect/persistence/QueryByFilter.java @@ -1,229 +1,230 @@ /*...
false
true
protected boolean checkReverse(QueryByFilterItem item) { if (item instanceof QueryByFilterItemReverse) { QueryByFilterItemReverse curRev = (QueryByFilterItemReverse) item; QueryByFilterItemReverse rev = reverse.get(curRev.getField()); if (rev == null) { reverse.put(curRev.getField(), curRev); } else ...
protected boolean checkReverse(QueryByFilterItem item) { if (item instanceof QueryByFilterItemReverse) { QueryByFilterItemReverse curRev = (QueryByFilterItemReverse) item; String key = curRev.getQueryByFilter().getCandidateClass().getSimpleName() + "." + curRev.getField(); QueryByFilterItemReverse rev = rev...
diff --git a/src/powercrystals/minefactoryreloaded/MineFactoryReloadedCore.java b/src/powercrystals/minefactoryreloaded/MineFactoryReloadedCore.java index 163869d1..2ade61b3 100644 --- a/src/powercrystals/minefactoryreloaded/MineFactoryReloadedCore.java +++ b/src/powercrystals/minefactoryreloaded/MineFactoryReloadedCor...
true
true
private void registerRecipes() { OreDictionary.registerOre("itemRubber", rubberBarItem); OreDictionary.registerOre("woodRubber", rubberWoodBlock); FurnaceRecipes.smelting().addSmelting(rawRubberItem.shiftedIndex, 0, new ItemStack(rubberBarItem), 0.1F); FurnaceRecipes.smelting().addSmelting(rubberWoodBlock....
private void registerRecipes() { OreDictionary.registerOre("itemRubber", rubberBarItem); OreDictionary.registerOre("woodRubber", rubberWoodBlock); FurnaceRecipes.smelting().addSmelting(rawRubberItem.shiftedIndex, 0, new ItemStack(rubberBarItem), 0.1F); FurnaceRecipes.smelting().addSmelting(rubberWoodBlock....
diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/RepositoryAwareJacksonModule.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/RepositoryAwareJacksonModule.java index a184961f..8a7f97a3 100644 --- a/spring-data-rest-webmvc/src/main/java/o...
false
true
@Override public Object deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { Object entity = BeanUtils.instantiateClass(getValueClass()); f...
@Override public Object deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { Object entity = BeanUtils.instantiateClass(getValueClass()); f...
diff --git a/android-prototyping-tools-server/src/main/java/ru/altruix/androidprototyping/server/services/AbstractService.java b/android-prototyping-tools-server/src/main/java/ru/altruix/androidprototyping/server/services/AbstractService.java index 39d000c..a77bb9e 100644 --- a/android-prototyping-tools-server/src/main...
true
true
public String processRequest(final String aRequestAsText) { final ObjectMapper mapper = new ObjectMapper(); ResponseClass response = null; try { response = (ResponseClass) responseClass.newInstance(); response.setRequestProcessedSuccessfully(false); } catch (final InstantiationException exception...
public String processRequest(final String aRequestAsText) { final ObjectMapper mapper = new ObjectMapper(); ResponseClass response = null; try { response = (ResponseClass) responseClass.newInstance(); response.setRequestProcessedSuccessfully(false); } catch (final IllegalAccessException exception...
diff --git a/edu/umn/cs/spatialHadoop/CommandLineArguments.java b/edu/umn/cs/spatialHadoop/CommandLineArguments.java index 4c4a9145..079eb436 100644 --- a/edu/umn/cs/spatialHadoop/CommandLineArguments.java +++ b/edu/umn/cs/spatialHadoop/CommandLineArguments.java @@ -1,376 +1,373 @@ package edu.umn.cs.spatialHadoop; ...
false
true
public Shape getShape(boolean autodetect) { final Text shapeType = new Text(); for (String arg : args) { if (arg.startsWith("shape:")) { byte[] temp = arg.substring(arg.indexOf(':')+1).toLowerCase().getBytes(); shapeType.set(temp); } } if (autodetect && shapeType.getLe...
public Shape getShape(boolean autodetect) { String shapeTypeStr = get("shape"); final Text shapeType = new Text(); if (shapeTypeStr != null) shapeType.set(shapeTypeStr.toLowerCase().getBytes()); if (autodetect && shapeType.getLength() == 0 && getPath() != null) { // Shape type not fou...
diff --git a/ecologylab/xml/NodeToJavaOptimizations.java b/ecologylab/xml/NodeToJavaOptimizations.java index a46fc872..f6775f04 100644 --- a/ecologylab/xml/NodeToJavaOptimizations.java +++ b/ecologylab/xml/NodeToJavaOptimizations.java @@ -1,1015 +1,1016 @@ package ecologylab.xml; import java.lang.reflect.Field; im...
true
true
NodeToJavaOptimizations(TranslationSpace translationSpace, Optimizations optimizations, ElementState context, String tag, boolean isAttribute) { super(); this.tag = tag; this.translationSpace = translationSpace; this.optimizations = optimizations; Class contextClass = context.getClass(); int colo...
NodeToJavaOptimizations(TranslationSpace translationSpace, Optimizations optimizations, ElementState context, String tag, boolean isAttribute) { super(); this.tag = tag; this.translationSpace = translationSpace; this.optimizations = optimizations; Class contextClass = context.getClass(); int colo...
diff --git a/src/main/java/org/rulemaker/engine/expressions/OgnlExpressionSolver.java b/src/main/java/org/rulemaker/engine/expressions/OgnlExpressionSolver.java index 806f945..ff1b03e 100644 --- a/src/main/java/org/rulemaker/engine/expressions/OgnlExpressionSolver.java +++ b/src/main/java/org/rulemaker/engine/expressio...
false
true
public Object eval(Map<String, Object> contextMap, String expression) throws InvalidExpressionException { try { // Normalize variables to camel case notation List<String> variableNamesToBeChanged = new ArrayList<String>(); for (String variableName : contextMap.keySet()) { String firstChar = variableN...
public Object eval(Map<String, Object> contextMap, String expression) throws InvalidExpressionException { try { String normalizedExpression = expression; // Normalize variables to camel case notation List<String> variableNamesToBeChanged = new ArrayList<String>(); for (String variableName : contextMap...
diff --git a/src/org/openmrs/module/remoteformentry/RemoteFormEntryPendingProcessor.java b/src/org/openmrs/module/remoteformentry/RemoteFormEntryPendingProcessor.java index 5fd12a4..e79d79d 100644 --- a/src/org/openmrs/module/remoteformentry/RemoteFormEntryPendingProcessor.java +++ b/src/org/openmrs/module/remoteformen...
true
true
public void processRemoteFormEntryPendingQueue(RemoteFormEntryPendingQueue pendingQueue) { log.debug("Transforming form entry queue"); RemoteFormEntryService remoteFormEntryService = (RemoteFormEntryService)Context.getService(RemoteFormEntryService.class); PatientService patientService = Context.getPatientSer...
public void processRemoteFormEntryPendingQueue(RemoteFormEntryPendingQueue pendingQueue) { log.debug("Transforming form entry queue"); RemoteFormEntryService remoteFormEntryService = (RemoteFormEntryService)Context.getService(RemoteFormEntryService.class); PatientService patientService = Context.getPatientSer...
diff --git a/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputDialog.java b/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputDialog.java index 50f6cdd9..040df45f 100644 --- a/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputDialog.java +++ b/src/be/ibridge/kettle/trans/step/textfileinpu...
true
true
private void addContentTab() { ////////////////////////// // START OF CONTENT TAB/// /// wContentTab=new CTabItem(wTabFolder, SWT.NONE); wContentTab.setText(Messages.getString("TextFileInputDialog.ContentTab.TabTitle")); FormLayout contentLayout = new FormLayout ...
private void addContentTab() { ////////////////////////// // START OF CONTENT TAB/// /// wContentTab=new CTabItem(wTabFolder, SWT.NONE); wContentTab.setText(Messages.getString("TextFileInputDialog.ContentTab.TabTitle")); FormLayout contentLayout = new FormLayout ...
diff --git a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java b/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java index 153bfafb..921ffae3 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java @@ -1,863 +1,864 @@ /* ...
true
true
public BufferedImage convertToImage(int imageType, int resolution) throws IOException { PDRectangle cropBox = findCropBox(); float widthPt = cropBox.getWidth(); float heightPt = cropBox.getHeight(); float scaling = resolution / (float)DEFAULT_USER_SPACE_UNIT_DPI; int widt...
public BufferedImage convertToImage(int imageType, int resolution) throws IOException { PDRectangle cropBox = findCropBox(); float widthPt = cropBox.getWidth(); float heightPt = cropBox.getHeight(); float scaling = resolution / (float)DEFAULT_USER_SPACE_UNIT_DPI; int widt...
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/launching/AbstractOprofileLaunchConfigurationDelegate.java b/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/launching/AbstractOprofileLaunchConfigurationD...
true
true
public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { this.config = config; LaunchOptions options = new LaunchOptions(); //default options created in the constructor options.loadConfiguration(config); IPath exePath = verifyProgramPath( co...
public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { this.config = config; LaunchOptions options = new LaunchOptions(); //default options created in the constructor options.loadConfiguration(config); IPath exePath = CDebugUtils.verifyPro...
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOut.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOut.java index 1b0e3b935..31d5dec8e 100644 --- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tc...
true
true
private void runAction() { if (state == null) { rc.addListener(this); state = getContextState(); if (state == null) { exit(new Exception("Invalid context ID")); return; } } if (!state.validate(this)) return; ...
private void runAction() { if (state == null) { rc.addListener(this); state = getContextState(); if (state == null) { exit(new Exception("Invalid context ID")); return; } } if (!state.validate(this)) return; ...
diff --git a/src/com/eteks/sweethome3d/viewcontroller/PlanController.java b/src/com/eteks/sweethome3d/viewcontroller/PlanController.java index ebec3a42..087ea56f 100644 --- a/src/com/eteks/sweethome3d/viewcontroller/PlanController.java +++ b/src/com/eteks/sweethome3d/viewcontroller/PlanController.java @@ -1,9574 +1,957...
true
true
private Wall adjustPieceOfFurnitureOnWallAt(HomePieceOfFurniture piece, float x, float y, boolean forceOrientation) { Level selectedLevel = this.home.getSelectedLevel(); float [][] piecePoints = piece.getPoints(); Area pieceArea = new Area(getPath(piecePoints...
private Wall adjustPieceOfFurnitureOnWallAt(HomePieceOfFurniture piece, float x, float y, boolean forceOrientation) { Level selectedLevel = this.home.getSelectedLevel(); float [][] piecePoints = piece.getPoints(); Area pieceArea = new Area(getPath(piecePoints...
diff --git a/htroot/Crawler_p.java b/htroot/Crawler_p.java index 1f5f48877..03b205727 100644 --- a/htroot/Crawler_p.java +++ b/htroot/Crawler_p.java @@ -1,550 +1,556 @@ // Crawler_p.java // (C) 2006 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany // first published 18.12.2006 on http://www.anomic.de...
true
true
public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { // return variable that accumulates replacements final Switchboard sb = (Switchboard) env; // inital values for AJAX Elements (without JavaScript) final serverObjects ...
public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { // return variable that accumulates replacements final Switchboard sb = (Switchboard) env; // inital values for AJAX Elements (without JavaScript) final serverObjects ...
diff --git a/deskshare/applet/src/main/java/org/bigbluebutton/deskshare/client/DeskshareSystemTray.java b/deskshare/applet/src/main/java/org/bigbluebutton/deskshare/client/DeskshareSystemTray.java index c3b4dd643f..368a65139b 100755 --- a/deskshare/applet/src/main/java/org/bigbluebutton/deskshare/client/DeskshareSystem...
false
true
public void displayIconOnSystemTray(final Image image, final boolean enableActions) { Runnable runner = new Runnable() { public void run() { if (SystemTray.isSupported()) { tray = SystemTray.getSystemTray(); PopupMenu popup = new PopupMenu(); trayIcon = new TrayIcon(image, "Sharing...
public void displayIconOnSystemTray(final Image image, final boolean enableActions) { Runnable runner = new Runnable() { public void run() { if (SystemTray.isSupported()) { tray = SystemTray.getSystemTray(); PopupMenu popup = new PopupMenu(); trayIcon = new TrayIcon(image, "Sharing...
diff --git a/org.kompiro.jamcircle.kanban.ui/src/org/kompiro/jamcircle/kanban/ui/internal/editpart/BoardDragTracker.java b/org.kompiro.jamcircle.kanban.ui/src/org/kompiro/jamcircle/kanban/ui/internal/editpart/BoardDragTracker.java index 9a829d2d..4c70d86c 100644 --- a/org.kompiro.jamcircle.kanban.ui/src/org/kompiro/jam...
true
true
protected boolean handleButtonUp(int button) { if(button == RIGHT_CLICK){ Dimension difference = getDifference(); if(difference.getArea() <= 4){ getCurrentViewer().getControl().getMenu().setVisible(true); } if (stateTransition(STATE_DRAG_IN_PROGRESS, STATE_TERMINAL)) { } dragModeOff(); handl...
protected boolean handleButtonUp(int button) { if(button == RIGHT_CLICK){ Dimension difference = getDifference(); int area = difference.getArea(); if(Math.abs(area) <= 4){ getCurrentViewer().getControl().getMenu().setVisible(true); } if (stateTransition(STATE_DRAG_IN_PROGRESS, STATE_TERMINAL)) { ...
diff --git a/src/com/dedaulus/cinematty/framework/tools/CinemaComparator.java b/src/com/dedaulus/cinematty/framework/tools/CinemaComparator.java index 4fbe507..1d8dbd1 100644 --- a/src/com/dedaulus/cinematty/framework/tools/CinemaComparator.java +++ b/src/com/dedaulus/cinematty/framework/tools/CinemaComparator.java @@ ...
true
true
public int compare(Cinema o1, Cinema o2) { switch (sortOrder) { case BY_CAPTION: return o1.getName().compareTo(o2.getName()); case BY_FAVOURITE: if (o1.getFavourite() == o2.getFavourite()) return 0; return (o1.getFavourite() < o2.getFavourite()) ? 1 : -1;...
public int compare(Cinema o1, Cinema o2) { switch (sortOrder) { case BY_CAPTION: return o1.getName().compareTo(o2.getName()); case BY_FAVOURITE: if (o1.getFavourite() == o2.getFavourite()) return 0; return (o1.getFavourite() < o2.getFavourite()) ? 1 : -1;...
diff --git a/function-schoolmaster2/java/function-schoolmaster2/src/main/com/nbcedu/function/schoolmaster2/action/UploadAction.java b/function-schoolmaster2/java/function-schoolmaster2/src/main/com/nbcedu/function/schoolmaster2/action/UploadAction.java index 59ce980..849c5ae 100644 --- a/function-schoolmaster2/java/fun...
false
true
public String upload() { request = this.getRequest(); String savePath = (request.getSession().getServletContext().getRealPath("/") + Constants.COMMON_UPLOAD + "/"); String saveUrl = request.getContextPath() + "/" + Constants.COMMON_UPLOAD + "/"; // 定义允许上传的文件扩展名 Map<String, String> extMap = new HashMap<Strin...
public String upload() { String savePath = (getRequest().getSession().getServletContext().getRealPath("/") + Constants.COMMON_UPLOAD + "/"); String saveUrl = getRequest().getContextPath() + "/" + Constants.COMMON_UPLOAD + "/"; // 定义允许上传的文件扩展名 Map<String, String> extMap = new HashMap<String, String>(){{ put...
diff --git a/src/edu/agh/tunev/model/cellular/Model.java b/src/edu/agh/tunev/model/cellular/Model.java index 1a4d024..a181b99 100644 --- a/src/edu/agh/tunev/model/cellular/Model.java +++ b/src/edu/agh/tunev/model/cellular/Model.java @@ -1,134 +1,136 @@ package edu.agh.tunev.model.cellular; import java.util.Vector; ...
true
true
public void simulate(double duration, Vector<PersonProfile> profiles, ProgressCallback progressCallback, AddCallback addCallback) { // pokaż info o inicjalizacji w ui, bo trwa zanim zacznie iterować i nie // wiadomo ocb :b int num = (int) Math.round(Math.ceil(world.getDuration() / DT)); progressCallback.upd...
public void simulate(double duration, Vector<PersonProfile> profiles, ProgressCallback progressCallback, AddCallback addCallback) { // pokaż info o inicjalizacji w ui, bo trwa zanim zacznie iterować i nie // wiadomo ocb :b int num = (int) Math.round(Math.ceil(world.getDuration() / DT)); progressCallback.upd...