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/java/gadgets/src/main/java/org/apache/shindig/gadgets/SigningFetcherFactory.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/SigningFetcherFactory.java index 5444e0fcf..49097978e 100644 --- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/SigningFetcherFactory.java +++ b/java/gadgets/src...
true
true
public SigningFetcherFactory(HttpCache cache, @Named("shindig.signing.key-name") String keyName, @Named("shindig.signing.key-file") String keyFile) { this.cache = cache; if (keyName == null || keyName.length() == 0) { this.keyName = null; ...
public SigningFetcherFactory(HttpCache cache, @Named("shindig.signing.key-name") String keyName, @Named("shindig.signing.key-file") String keyFile) { this.cache = cache; if (keyName == null || keyName.length() == 0) { this.keyName = null; ...
diff --git a/server/src/main/java/nz/ac/vuw/ecs/rprofs/server/Workers.java b/server/src/main/java/nz/ac/vuw/ecs/rprofs/server/Workers.java index e621304..1a9a38f 100644 --- a/server/src/main/java/nz/ac/vuw/ecs/rprofs/server/Workers.java +++ b/server/src/main/java/nz/ac/vuw/ecs/rprofs/server/Workers.java @@ -1,141 +1,14...
true
true
protected synchronized void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { final Continuation continuation = ContinuationSupport.getContinuation(req); byte[] data = (byte[]) req.getAttribute("Data"); RequestId request = (RequestId) req.getAttribute("RequestId"); ...
protected synchronized void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { final Continuation continuation = ContinuationSupport.getContinuation(req); byte[] data = (byte[]) req.getAttribute("Data"); RequestId request = (RequestId) req.getAttribute("RequestId"); ...
diff --git a/src/main/java/com/g414/st9/proto/service/ImportExportResource.java b/src/main/java/com/g414/st9/proto/service/ImportExportResource.java index 01688a5..dc627b3 100644 --- a/src/main/java/com/g414/st9/proto/service/ImportExportResource.java +++ b/src/main/java/com/g414/st9/proto/service/ImportExportResource....
true
true
public Response importAll(String value) throws Exception { this.store.clearRequested(false); String[] values = value.split("\n"); List<String> success = new ArrayList<String>(); List<String> skipped = new ArrayList<String>(); List<String> failed = new ArrayList<String>(); ...
public Response importAll(String value) throws Exception { this.store.clearRequested(false); String[] values = value.split("\n"); List<String> success = new ArrayList<String>(); List<String> skipped = new ArrayList<String>(); List<String> failed = new ArrayList<String>(); ...
diff --git a/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/wizards/ConnectorDescriptorToolTip.java b/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/wizards/ConnectorDescriptorToolTip.java index 81182a80..e37c5ada 100644 --- a/org.eclipse.mylyn.discovery.ui/src/or...
true
true
protected Composite createToolTipArea(Event event, final Composite parent) { GridLayoutFactory.fillDefaults().applyTo(parent); Composite container = new Composite(parent, SWT.NULL | SWT.NO_BACKGROUND); GridDataFactory.fillDefaults().grab(true, true).hint(/*347*/650, SWT.DEFAULT).applyTo(container); GridLayo...
protected Composite createToolTipArea(Event event, final Composite parent) { GridLayoutFactory.fillDefaults().applyTo(parent); Composite container = new Composite(parent, SWT.NULL); container.setBackground(null); GridDataFactory.fillDefaults().grab(true, true).hint(/*347*/650, SWT.DEFAULT).applyTo(container)...
diff --git a/src/main/java/com/appmetr/hercules/batch/iterator/RangeBatchIterator.java b/src/main/java/com/appmetr/hercules/batch/iterator/RangeBatchIterator.java index 761a172..65cba2e 100644 --- a/src/main/java/com/appmetr/hercules/batch/iterator/RangeBatchIterator.java +++ b/src/main/java/com/appmetr/hercules/batch/...
true
true
@Override public List<E> next() { List<E> batch = getRange(from, to, batchSize + 1); List<E> result = new ArrayList<E>(); if (batch.size() == 0) { hasNext = false; } else if (batch.size() < batchSize + 1) { result = batch; hasNext = false; ...
@Override public List<E> next() { List<E> batch = getRange(lastKey, to, batchSize + 1); List<E> result = new ArrayList<E>(); if (batch.size() == 0) { hasNext = false; } else if (batch.size() < batchSize + 1) { result = batch; hasNext = false; ...
diff --git a/CubicEx/src/nl/sodeso/cubicex/command/StoreCookiePresent.java b/CubicEx/src/nl/sodeso/cubicex/command/StoreCookiePresent.java index b2235da..08d1dee 100644 --- a/CubicEx/src/nl/sodeso/cubicex/command/StoreCookiePresent.java +++ b/CubicEx/src/nl/sodeso/cubicex/command/StoreCookiePresent.java @@ -1,57 +1,57 ...
true
true
public void executeTest(final Map<String, String> arguments, final IElementContext context, final Selenium selenium) throws Exception { // Retrieve the parameters. final String _variable = getArgVariable(); final String _name = getArgName(); if (log.isInfoEnabled()) { log.info("StoreCookiePresent: variab...
public void executeTest(final Map<String, String> arguments, final IElementContext context, final Selenium selenium) throws Exception { // Retrieve the parameters. final String _variable = getArgVariable(); final String _name = getArgName(); if (log.isInfoEnabled()) { log.info("StoreCookiePresent: variab...
diff --git a/src/group5/yatzy/GameActivity.java b/src/group5/yatzy/GameActivity.java index f775ccf..885afde 100644 --- a/src/group5/yatzy/GameActivity.java +++ b/src/group5/yatzy/GameActivity.java @@ -1,725 +1,725 @@ package group5.yatzy; import java.util.ArrayList; import android.app.Activity; import android.a...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.game); Bundle extras = getIntent().getExtras(); highscores = (int[]) extras.get("Highscores"); gameText = (TextView) findViewById(R.id.headText); playerName = (TextView) findViewById(R.id.pl...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.game); Bundle extras = getIntent().getExtras(); highscores = (int[]) extras.get("Highscores"); gameText = (TextView) findViewById(R.id.headText); playerName = (TextView) findViewById(R.id.pl...
diff --git a/org.caleydo.view.linearizedpathway/src/org/caleydo/view/linearizedpathway/mappeddataview/ColumnCaptionRenderer.java b/org.caleydo.view.linearizedpathway/src/org/caleydo/view/linearizedpathway/mappeddataview/ColumnCaptionRenderer.java index ce0414f2d..f86e871e1 100644 --- a/org.caleydo.view.linearizedpathwa...
true
true
private void registerPickingListener() { groupPickingListener = new APickingListener() { @Override public void clicked(Pick pick) { parent.sampleGroupSelectionManager .clearSelection(SelectionType.SELECTION); parent.sampleGroupSelectionManager.addToType(SelectionType.SELECTION, pick.getObj...
private void registerPickingListener() { groupPickingListener = new APickingListener() { @Override public void clicked(Pick pick) { parent.sampleGroupSelectionManager .clearSelection(SelectionType.SELECTION); parent.sampleGroupSelectionManager.addToType(SelectionType.SELECTION, pick.getObj...
diff --git a/source/com/game/world/WorldMap.java b/source/com/game/world/WorldMap.java index 4eaeb02..b8ab49a 100644 --- a/source/com/game/world/WorldMap.java +++ b/source/com/game/world/WorldMap.java @@ -1,75 +1,75 @@ package com.game.world; import com.game.entity.Entity; public class WorldMap { public stati...
true
true
public void addNewCollumns(int cap, Collumn[] newCollumns, Entity[] entities) { Collumn[] newList = new Collumn[list.length - (cap - scroll) + newCollumns.length]; for(int i = 0; i < newList.length; i++) { if(i < list.length - (cap - scroll)) { newList[i] = list[i + (cap - scroll)]; } else ...
public void addNewCollumns(int cap, Collumn[] newCollumns, Entity[] entities) { Collumn[] newList = new Collumn[list.length - (cap - scroll) + newCollumns.length]; for(int i = 0; i < newList.length; i++) { if(i < list.length - (cap - scroll)) { newList[i] = list[i + (cap - scroll)]; } else ...
diff --git a/loci/visbio/util/OutputConsole.java b/loci/visbio/util/OutputConsole.java index 994cff43d..de0c6d160 100644 --- a/loci/visbio/util/OutputConsole.java +++ b/loci/visbio/util/OutputConsole.java @@ -1,150 +1,157 @@ // // OutputConsole.java // /* VisBio application for visualization of multidimensional ...
false
true
public OutputConsole(String title, String logFile) { super(); log = logFile; if (log != null) { // clear log file content try { new FileWriter(log).close(); } catch (IOException exc) { } } frame = new JFrame(title); JPanel pane = new JPanel(); pane.setLayout(new BorderLa...
public OutputConsole(String title, String logFile) { super(); log = logFile; if (log != null && new File(log).exists()) { // clear log file content File f = new File(log); if (f.exists()) { try { f.delete(); } catch (SecurityException exc) { // delete access is ...
diff --git a/lorian/graph/function/Term.java b/lorian/graph/function/Term.java index a4a6f13..a6b9a80 100644 --- a/lorian/graph/function/Term.java +++ b/lorian/graph/function/Term.java @@ -1,639 +1,639 @@ package lorian.graph.function; import java.util.ArrayList; import java.util.List; public class Term { ...
true
true
private List<String> SplitIntoFactors(String s) { List<String> factors = new ArrayList<String>(); char ch; String newfactor = ""; boolean ignoreminplus = true; boolean inexponent = false; boolean division = false; while(index < s.length()) { ch = s.charAt(index); if(!((ch >= '0' && ch <= '9') ...
private List<String> SplitIntoFactors(String s) { List<String> factors = new ArrayList<String>(); char ch; String newfactor = ""; boolean ignoreminplus = true; boolean inexponent = false; boolean division = false; while(index < s.length()) { ch = s.charAt(index); if(!((ch >= '0' && ch <= '9') ...
diff --git a/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java b/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java index b7250024..4b87bdc9 100644 --- a/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java +++ b/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java @@ -1,124 +1,...
true
true
public boolean dispatchTouchEvent(MotionEvent event) { if (!onFilterTouchEventForSecurity(event)) return false; int action = event.getAction(); if (!isEnabled()) return false; double x = (double) event.getX(); double y = (double) event.getY(); int height = getHeight...
public boolean dispatchTouchEvent(MotionEvent event) { if (!onFilterTouchEventForSecurity(event)) return false; int action = event.getAction(); if (!isEnabled()) return false; double x = (double) event.getX(); double y = (double) event.getY(); int height = getHeight...
diff --git a/src/main/java/com/thoughtworks/green/JsCoverageReportMojo.java b/src/main/java/com/thoughtworks/green/JsCoverageReportMojo.java index 4656c96..abb2b0e 100644 --- a/src/main/java/com/thoughtworks/green/JsCoverageReportMojo.java +++ b/src/main/java/com/thoughtworks/green/JsCoverageReportMojo.java @@ -1,81 +1...
true
true
public void execute() throws MojoExecutionException { String outPutFile; try { System.out.print("JsCoverageReport maven execute:."); outPutFile = outputDirectory + File.pathSeparator + fileName; CoveageReportAnalysis coveageReportAnalysis = new CoveageReportAnalysis( new DefaultFileHelper()); cov...
public void execute() throws MojoExecutionException { String outPutFile; try { System.out.print("JsCoverageReport maven execute:."); outPutFile = new File(outputDirectory, fileName).getAbsolutePath(); CoveageReportAnalysis coveageReportAnalysis = new CoveageReportAnalysis( new DefaultFileHelper()); ...
diff --git a/src/Tests/functionalTests/activeobject/miscellaneous/fifocrash/Test.java b/src/Tests/functionalTests/activeobject/miscellaneous/fifocrash/Test.java index 8495ed17c..4138f577d 100644 --- a/src/Tests/functionalTests/activeobject/miscellaneous/fifocrash/Test.java +++ b/src/Tests/functionalTests/activeobject/m...
true
true
public void action() throws Exception { Node node = super.getANode(); AOCrash2 ao2 = (AOCrash2) PAActiveObject.newActive(AOCrash2.class.getName(), new Object[] {}, node); AOCrash1 ao1 = (AOCrash1) PAActiveObject.newActive(AOCrash1.class.getName(), new Object[] { ao2 }, node);...
public void action() throws Exception { Node node = super.getANode(); AOCrash2 ao2 = (AOCrash2) PAActiveObject.newActive(AOCrash2.class.getName(), new Object[] {}, node); AOCrash1 ao1 = (AOCrash1) PAActiveObject.newActive(AOCrash1.class.getName(), new Object[] { ao2 }, node);...
diff --git a/src/Extensions/org/objectweb/proactive/extensions/gcmdeployment/PathElement.java b/src/Extensions/org/objectweb/proactive/extensions/gcmdeployment/PathElement.java index fac8c4ff0..e4593fe14 100644 --- a/src/Extensions/org/objectweb/proactive/extensions/gcmdeployment/PathElement.java +++ b/src/Extensions/o...
true
true
static public String appendPath(final String s1, final String s2, final HostInfo hostInfo) { StringBuilder sb = new StringBuilder(); sb.append(s1); // If s1 ends with fp remove it if (sb.length() > 0) { char lastChar = sb.charAt(sb.length() - 1); if (lastChar...
static public String appendPath(final String s1, final String s2, final HostInfo hostInfo) { StringBuilder sb = new StringBuilder(); sb.append(s1); // If s1 ends with fp remove it if (sb.length() > 0) { char lastChar = sb.charAt(sb.length() - 1); if (lastChar...
diff --git a/src/beads_main/net/beadsproject/beads/ugens/WaveShaper.java b/src/beads_main/net/beadsproject/beads/ugens/WaveShaper.java index ee9fd89..5c38ca4 100644 --- a/src/beads_main/net/beadsproject/beads/ugens/WaveShaper.java +++ b/src/beads_main/net/beadsproject/beads/ugens/WaveShaper.java @@ -1,534 +1,534 @@ pa...
false
true
public void calculateBuffer() { float[] bi = bufIn[0]; float[] bo = bufOut[0]; preGainUGen.update(); postGainUGen.update(); limitUGen.update(); wetMixUGen.update(); for (int currsample = 0; currsample < bufferSize; currsample++) { preGain = preGainUGen.getValue(0, currsample); postGain = postGain...
public void calculateBuffer() { float[] bi = bufIn[0]; float[] bo = bufOut[0]; preGainUGen.update(); postGainUGen.update(); limitUGen.update(); wetMixUGen.update(); for (int currsample = 0; currsample < bufferSize; currsample++) { preGain = preGainUGen.getValue(0, currsample); postGain = postGain...
diff --git a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java index 2587e890..39e85687 100644 --- a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java +++ b/software/ncitbrowser/...
true
true
public String searchAction() { HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance() .getExternalContext().getRequest(); System.out.println("(*******************) SearchAction"); boolean mapping_search = false; String single_mapping_search = (Str...
public String searchAction() { HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance() .getExternalContext().getRequest(); System.out.println("(*******************) SearchAction"); boolean mapping_search = false; String single_mapping_search = (Str...
diff --git a/src/com/pokebros/android/pokemononline/NetworkService.java b/src/com/pokebros/android/pokemononline/NetworkService.java index f98d0b8c..97a739a8 100644 --- a/src/com/pokebros/android/pokemononline/NetworkService.java +++ b/src/com/pokebros/android/pokemononline/NetworkService.java @@ -1,849 +1,849 @@ pack...
true
true
public void handleMsg(Bais msg) { byte i = msg.readByte(); Command c = Command.values()[i]; Log.d(TAG, "Received: " + c); switch (c) { case ChannelPlayers: case JoinChannel: case LeaveChannel:{ Channel ch = channels.get(msg.readInt()); if(ch != null) ch.handleChannelMsg(c, msg); else Lo...
public void handleMsg(Bais msg) { byte i = msg.readByte(); Command c = Command.values()[i]; Log.d(TAG, "Received: " + c); switch (c) { case ChannelPlayers: case JoinChannel: case LeaveChannel:{ Channel ch = channels.get(msg.readInt()); if(ch != null) ch.handleChannelMsg(c, msg); else Lo...
diff --git a/src/main/java/com/happyelements/hive/web/api/PostQuery.java b/src/main/java/com/happyelements/hive/web/api/PostQuery.java index 90fc4b4..d985379 100755 --- a/src/main/java/com/happyelements/hive/web/api/PostQuery.java +++ b/src/main/java/com/happyelements/hive/web/api/PostQuery.java @@ -1,151 +1,144 @@ /*...
true
true
public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // check method if (!"POST".equals(request.getMethod())) { response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, "do not supoort http method except for POST"); return; } //...
public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // check method if (!"POST".equals(request.getMethod())) { response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, "do not supoort http method except for POST"); return; } //...
diff --git a/hazelcast/src/main/java/com/hazelcast/impl/BlockingQueueManager.java b/hazelcast/src/main/java/com/hazelcast/impl/BlockingQueueManager.java index 30b475e8..543d2e45 100644 --- a/hazelcast/src/main/java/com/hazelcast/impl/BlockingQueueManager.java +++ b/hazelcast/src/main/java/com/hazelcast/impl/BlockingQue...
true
true
public Iterator iterate(final String name) { MasterOp op = new MasterOp(ClusterOperation.BLOCKING_ITERATE, name, 0); op.initOp(); Keys keys = (Keys) op.getResultAsObject(); final Collection<Data> dataKeys = keys.getKeys(); final Collection allKeys = new ArrayList(dataKeys); ...
public Iterator iterate(final String name) { MasterOp op = new MasterOp(ClusterOperation.BLOCKING_ITERATE, name, 0); op.initOp(); Keys keys = (Keys) op.getResultAsObject(false); final Collection<Data> dataKeys = keys.getKeys(); final Collection allKeys = new ArrayList(dataKey...
diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/GitOverHttpServlet.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/GitOverHttpServlet.java index 546ac71c7..dad9b8057 100644 --- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/GitOverHttpServlet.java +++ b/gerrit-httpd/src/main/java/com/goo...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { boolean isGet = "GET".equalsIgnoreCase(((HttpServletRequest) request).getMethod()); ReceiveCommits rc = (ReceiveCommits) request.getAttribute(ATT_RC); R...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { boolean isGet = "GET".equalsIgnoreCase(((HttpServletRequest) request).getMethod()); ReceiveCommits rc = (ReceiveCommits) request.getAttribute(ATT_RC); R...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/TagAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/TagAction.java index 99f8a5c76..f27850c03 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/T...
true
true
protected ITagOperation configureOperation() { IPreferenceStore store = CVSUIPlugin.getPlugin().getPreferenceStore(); ITagOperation operation = createTagOperation(); TagAsVersionDialog dialog = new TagAsVersionDialog(getShell(), Policy.bind("TagAction.tagResources"), //$NON-NLS-1$ operation...
protected ITagOperation configureOperation() { IPreferenceStore store = CVSUIPlugin.getPlugin().getPreferenceStore(); ITagOperation operation = createTagOperation(); TagAsVersionDialog dialog = new TagAsVersionDialog(getShell(), Policy.bind("TagAction.tagResources"), //$NON-NLS-1$ operation...
diff --git a/HBaseAdapter/src/main/java/com/nearinfinity/hbaseclient/ValueEncoder.java b/HBaseAdapter/src/main/java/com/nearinfinity/hbaseclient/ValueEncoder.java index 0f5497e0..35ba493c 100644 --- a/HBaseAdapter/src/main/java/com/nearinfinity/hbaseclient/ValueEncoder.java +++ b/HBaseAdapter/src/main/java/com/nearinfi...
true
true
private static Map<String, byte[]> convertToCorrectOrder(final TableInfo info, final Map<String, byte[]> values, final Set<String> nullSearchColumns, Function<byte[], ColumnType, Integer, byte[]> convert) { ImmutableMap.Builder<String, byte[]> result = ImmutableMap.builder(); for (String columnName ...
private static Map<String, byte[]> convertToCorrectOrder(final TableInfo info, final Map<String, byte[]> values, final Set<String> nullSearchColumns, Function<byte[], ColumnType, Integer, byte[]> convert) { ImmutableMap.Builder<String, byte[]> result = ImmutableMap.builder(); for (String columnName ...
diff --git a/kernel/src/main/org/jboss/beans/metadata/plugins/AbstractTypeMetaData.java b/kernel/src/main/org/jboss/beans/metadata/plugins/AbstractTypeMetaData.java index f6c9ba6b..86931c72 100644 --- a/kernel/src/main/org/jboss/beans/metadata/plugins/AbstractTypeMetaData.java +++ b/kernel/src/main/org/jboss/beans/meta...
true
true
protected <T> T preinstantiatedLookup(ClassLoader cl, Class<T> expected) { if (propertyName != null && beanName != null) { Object result = null; try { Controller controller = context.getController(); ControllerContext context = controller.getContext(b...
protected <T> T preinstantiatedLookup(ClassLoader cl, Class<T> expected) { if (propertyName != null && beanName != null) { Object result = null; try { Controller controller = context.getController(); ControllerContext context = controller.getContext(b...
diff --git a/src/main/java/com/gitblit/wicket/pages/ActivityPage.java b/src/main/java/com/gitblit/wicket/pages/ActivityPage.java index 7e347e18..99992eae 100644 --- a/src/main/java/com/gitblit/wicket/pages/ActivityPage.java +++ b/src/main/java/com/gitblit/wicket/pages/ActivityPage.java @@ -1,228 +1,229 @@ /* * Copyr...
true
true
public ActivityPage(PageParameters params) { super(params); setupPage("", ""); // parameters int daysBack = WicketUtils.getDaysBack(params); if (daysBack < 1) { daysBack = GitBlit.getInteger(Keys.web.activityDuration, 7); } String objectId = WicketUtils.getObject(params); // determine repositories...
public ActivityPage(PageParameters params) { super(params); setupPage("", ""); // parameters int daysBack = WicketUtils.getDaysBack(params); if (daysBack < 1) { daysBack = GitBlit.getInteger(Keys.web.activityDuration, 7); } String objectId = WicketUtils.getObject(params); // determine repositories...
diff --git a/db/src/main/java/com/psddev/dari/db/State.java b/db/src/main/java/com/psddev/dari/db/State.java index 67d937aa..9682bf53 100644 --- a/db/src/main/java/com/psddev/dari/db/State.java +++ b/db/src/main/java/com/psddev/dari/db/State.java @@ -1,1948 +1,1949 @@ package com.psddev.dari.db; import java.lang.re...
true
true
public Object getByPath(String path) { if (path == null) { return null; } Object value = this; KEY: for (String key; path != null; ) { int slashAt = path.indexOf('/'); if (slashAt > -1) { key = path.substring(0, slashAt); ...
public Object getByPath(String path) { if (path == null) { return null; } Object value = this; KEY: for (String key; path != null; ) { int slashAt = path.indexOf('/'); if (slashAt > -1) { key = path.substring(0, slashAt); ...
diff --git a/plugin-manager/src/main/java/org/orbisgis/pluginManager/ui/SaveFilePanel.java b/plugin-manager/src/main/java/org/orbisgis/pluginManager/ui/SaveFilePanel.java index 03debbedf..78b4c7237 100644 --- a/plugin-manager/src/main/java/org/orbisgis/pluginManager/ui/SaveFilePanel.java +++ b/plugin-manager/src/main/j...
true
true
public File getSelectedFile() { File ret; JFileChooser fc = getFileChooser(); FileChooserUI ui = fc.getUI(); if (ui instanceof BasicFileChooserUI) { BasicFileChooserUI basicUI = (BasicFileChooserUI) ui; String fileName = basicUI.getFileName(); if ((fileName == null) || (fileName.length() == 0)) { ...
public File getSelectedFile() { File ret; JFileChooser fc = getFileChooser(); FileChooserUI ui = fc.getUI(); if (ui instanceof BasicFileChooserUI) { BasicFileChooserUI basicUI = (BasicFileChooserUI) ui; String fileName = basicUI.getFileName(); if ((fileName == null) || (fileName.length() == 0)) { ...
diff --git a/src/bin/PCObject.java b/src/bin/PCObject.java index e1c647f..c00c455 100644 --- a/src/bin/PCObject.java +++ b/src/bin/PCObject.java @@ -1,88 +1,89 @@ import java.io.Serializable; import java.util.HashMap; import java.util.Iterator; import java.util.Map; public class PCObject implements Serializable ...
true
true
public boolean equals(PCObject other) { //first let's check if these are primitives if(_props.containsKey(_base)){ if(_props.get(_base) instanceof Double){ return this.<Double>getBase() == other.<Double>getBase(); } else if (_props.get(_base) insta...
public boolean equals(PCObject other) { //first let's check if these are primitives if(_props.containsKey(_base)){ if(_props.get(_base) instanceof Double){ double EPSILON = 0.0000001; return Math.abs(this.<Double>getBase() - other.<Double>getBase()) <= EPS...
diff --git a/swag-webapp/src/main/java/at/ac/tuwien/swag/webapp/in/map/GameMap.java b/swag-webapp/src/main/java/at/ac/tuwien/swag/webapp/in/map/GameMap.java index 8fbd14a..08b143e 100644 --- a/swag-webapp/src/main/java/at/ac/tuwien/swag/webapp/in/map/GameMap.java +++ b/swag-webapp/src/main/java/at/ac/tuwien/swag/webapp...
false
true
private void setupGameMapView() { gameMaplistView = new ListView<List<Square>>("gameMap", gameMapList) { private static final long serialVersionUID = 7083713778515545799L; @Override protected void populateItem(ListItem<List<Square>> row) { List<Square> r...
private void setupGameMapView() { gameMaplistView = new ListView<List<Square>>("gameMap", gameMapList) { private static final long serialVersionUID = 7083713778515545799L; @Override protected void populateItem(ListItem<List<Square>> row) { List<Square> r...
diff --git a/src/com/mitsugaru/Karmiconomy/DatabaseHandler.java b/src/com/mitsugaru/Karmiconomy/DatabaseHandler.java index 41aecff..f487380 100644 --- a/src/com/mitsugaru/Karmiconomy/DatabaseHandler.java +++ b/src/com/mitsugaru/Karmiconomy/DatabaseHandler.java @@ -1,954 +1,954 @@ package com.mitsugaru.Karmiconomy; ...
false
true
public int getData(Field field, String name, Item item, String command) { boolean validId = false; int data = -1; int id = getPlayerId(name); if (id == -1) { plugin.getLogger().warning( "Player '" + name + "' not found in master database!"); addPlayer(name); id = getPlayerId(name); if (id !...
public int getData(Field field, String name, Item item, String command) { boolean validId = false; int data = -1; int id = getPlayerId(name); if (id == -1) { plugin.getLogger().warning( "Player '" + name + "' not found in master database!"); addPlayer(name); id = getPlayerId(name); if (id !...
diff --git a/src/org/geometerplus/zlibrary/ui/android/view/BitmapManager.java b/src/org/geometerplus/zlibrary/ui/android/view/BitmapManager.java index 60b0dbe1..60614bfd 100644 --- a/src/org/geometerplus/zlibrary/ui/android/view/BitmapManager.java +++ b/src/org/geometerplus/zlibrary/ui/android/view/BitmapManager.java @...
true
true
Bitmap getBitmap(ZLView.PageIndex index) { for (int i = 0; i < SIZE; ++i) { if (index == myIndexes[i]) { return myBitmaps[i]; } } final int iIndex = getInternalIndex(index); myIndexes[iIndex] = index; if (myBitmaps[iIndex] == null) { myBitmaps[iIndex] = Bitmap.createBitmap(myWidth, myHeight, Bit...
Bitmap getBitmap(ZLView.PageIndex index) { for (int i = 0; i < SIZE; ++i) { if (index == myIndexes[i]) { return myBitmaps[i]; } } final int iIndex = getInternalIndex(index); myIndexes[iIndex] = index; if (myBitmaps[iIndex] == null) { try { myBitmaps[iIndex] = Bitmap.createBitmap(myWidth, myH...
diff --git a/src/main/java/org/basex/core/CommandParser.java b/src/main/java/org/basex/core/CommandParser.java index fdb4799e9..01a943e26 100644 --- a/src/main/java/org/basex/core/CommandParser.java +++ b/src/main/java/org/basex/core/CommandParser.java @@ -1,584 +1,584 @@ package org.basex.core; import static org.b...
true
true
private Command parse(final Cmd cmd, final boolean s) throws QueryException { switch(cmd) { case CREATE: switch(consume(CmdCreate.class, cmd)) { case BACKUP: return new CreateBackup(glob(cmd)); case DATABASE: case DB: return new CreateDB(name(cmd), s ? rem...
private Command parse(final Cmd cmd, final boolean s) throws QueryException { switch(cmd) { case CREATE: switch(consume(CmdCreate.class, cmd)) { case BACKUP: return new CreateBackup(glob(cmd)); case DATABASE: case DB: return new CreateDB(name(cmd), s ? rem...
diff --git a/uk.ac.diamond.scisoft.analysis.test/src/uk/ac/diamond/scisoft/analysis/roi/ROISliceTest.java b/uk.ac.diamond.scisoft.analysis.test/src/uk/ac/diamond/scisoft/analysis/roi/ROISliceTest.java index ed381c04b..1a68d3fda 100644 --- a/uk.ac.diamond.scisoft.analysis.test/src/uk/ac/diamond/scisoft/analysis/roi/ROIS...
false
true
public void getAxisDatasetTrapzSumTestNDSlices() { //TODO test different dimensions //Create ND array and axes AbstractDataset input = AbstractDataset.ones(new int[] {10,20,30,40}, AbstractDataset.FLOAT32); // AbstractDataset axis0 = DatasetUtils.linSpace(0, 9, 10, AbstractDataset.FLOAT32); // AbstractDataset ...
public void getAxisDatasetTrapzSumTestNDSlices() { //TODO test different dimensions //Create ND array and axes AbstractDataset input = AbstractDataset.ones(new int[] {10,20,30,40}, AbstractDataset.FLOAT32); // AbstractDataset axis0 = DatasetUtils.linSpace(0, 9, 10, AbstractDataset.FLOAT32); // AbstractDataset ...
diff --git a/src/main/java/org/tweet/meta/service/TweetMetaLiveService.java b/src/main/java/org/tweet/meta/service/TweetMetaLiveService.java index ca226599..3459bb6a 100644 --- a/src/main/java/org/tweet/meta/service/TweetMetaLiveService.java +++ b/src/main/java/org/tweet/meta/service/TweetMetaLiveService.java @@ -1,466...
true
true
protected final boolean tryTweetOne(final String fullTweet, final String noUrl, final String twitterAccount, final Map<String, Object> customDetails) { final long tweetId = (long) customDetails.get("tweetId"); final String hashtag = (String) customDetails.get("hashtag"); final Tweet potentia...
protected final boolean tryTweetOne(final String fullTweet, final String noUrl, final String twitterAccount, final Map<String, Object> customDetails) { final long tweetId = (long) customDetails.get("tweetId"); final String hashtag = (String) customDetails.get("hashtag"); final Tweet potentia...
diff --git a/src/main/java/net/aufdemrand/denizen/objects/Element.java b/src/main/java/net/aufdemrand/denizen/objects/Element.java index 804a903a9..8f711deb8 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/Element.java +++ b/src/main/java/net/aufdemrand/denizen/objects/Element.java @@ -1,656 +1,664 @@ packag...
false
true
public String getAttribute(Attribute attribute) { if (attribute == null) return null; ///////////////////// // CONVERSION ATTRIBUTES ///////////////// // <--[tag] // @attribute <element.as_boolean> // @returns Element(Boolean) // @description ...
public String getAttribute(Attribute attribute) { if (attribute == null) return null; ///////////////////// // CONVERSION ATTRIBUTES ///////////////// // <--[tag] // @attribute <element.as_boolean> // @returns Element(Boolean) // @description ...
diff --git a/org.dawb.gda.extensions/src/org/dawb/gda/extensions/util/DatasetTitleUtils.java b/org.dawb.gda.extensions/src/org/dawb/gda/extensions/util/DatasetTitleUtils.java index 7e7ec42c..54885a2c 100644 --- a/org.dawb.gda.extensions/src/org/dawb/gda/extensions/util/DatasetTitleUtils.java +++ b/org.dawb.gda.extensio...
false
true
public static String getTitle(final AbstractDataset xIn, final List<AbstractDataset> ysIn, final boolean isFileName, final String rootName) { final AbstractDataset x; final List<AbstractDataset> ys; if (ysIn==null) { ys = n...
public static String getTitle(final AbstractDataset xIn, final List<AbstractDataset> ysIn, final boolean isFileName, final String rootName) { final AbstractDataset x; final List<AbstractDataset> ys; if (ysIn==null) { ys = n...
diff --git a/errai-config/src/main/java/org/jboss/errai/config/rebind/EnvUtil.java b/errai-config/src/main/java/org/jboss/errai/config/rebind/EnvUtil.java index cba3f852a..1ab38ff18 100644 --- a/errai-config/src/main/java/org/jboss/errai/config/rebind/EnvUtil.java +++ b/errai-config/src/main/java/org/jboss/errai/config...
false
true
private static EnviromentConfig loadConfiguredPortableTypes() { MetaDataScanner scanner = ScannerSingleton.getOrCreateInstance(); final Map<String, String> frameworkProps = new HashMap<String, String>(); final Map<String, String> mappingAliases = new HashMap<String, String>(); final Set<MetaClass> exp...
private static EnviromentConfig loadConfiguredPortableTypes() { MetaDataScanner scanner = ScannerSingleton.getOrCreateInstance(); final Map<String, String> frameworkProps = new HashMap<String, String>(); final Map<String, String> mappingAliases = new HashMap<String, String>(); final Set<MetaClass> exp...
diff --git a/src/org/biojavax/bio/seq/io/GenbankLocationParser.java b/src/org/biojavax/bio/seq/io/GenbankLocationParser.java index 3e521e049..a9caecc4f 100644 --- a/src/org/biojavax/bio/seq/io/GenbankLocationParser.java +++ b/src/org/biojavax/bio/seq/io/GenbankLocationParser.java @@ -1,297 +1,306 @@ /* * ...
true
true
private static RichLocation parseLocString(Namespace featureNS, String featureAccession, CrossRef parentXref, Strand parentStrand, String locStr) throws ParseException { Matcher gm = gp.matcher(locStr); if (!gm.matches()) throw new ParseException("Bad location string found: "+locStr); String...
private static RichLocation parseLocString(Namespace featureNS, String featureAccession, CrossRef parentXref, Strand parentStrand, String locStr) throws ParseException { Matcher gm = gp.matcher(locStr); if (!gm.matches()) throw new ParseException("Bad location string found: "+locStr); String...
diff --git a/bennu-core/src/myorg/_development/PropertiesManager.java b/bennu-core/src/myorg/_development/PropertiesManager.java index f131f618..a1a39464 100755 --- a/bennu-core/src/myorg/_development/PropertiesManager.java +++ b/bennu-core/src/myorg/_development/PropertiesManager.java @@ -1,116 +1,117 @@ /* * @(#)P...
true
true
public static Config getFenixFrameworkConfig(final String[] domainModels) { final Map<String, CasConfig> casConfigMap = new HashMap<String, CasConfig>(); for (final Object key : properties.keySet()) { final String property = (String) key; int i = property.indexOf(".cas.enable"); if (i >= 0) { fin...
public static Config getFenixFrameworkConfig(final String[] domainModels) { final Map<String, CasConfig> casConfigMap = new HashMap<String, CasConfig>(); for (final Object key : properties.keySet()) { final String property = (String) key; int i = property.indexOf(".cas.enable"); if (i >= 0) { fin...
diff --git a/src/com/android/contacts/ViewContactActivity.java b/src/com/android/contacts/ViewContactActivity.java index 9dfa551c2..ec4669072 100644 --- a/src/com/android/contacts/ViewContactActivity.java +++ b/src/com/android/contacts/ViewContactActivity.java @@ -1,1110 +1,1110 @@ /* * Copyright (C) 2007 The Androi...
false
true
private final void buildEntries(Cursor aggCursor) { // Clear out the old entries final int numSections = mSections.size(); for (int i = 0; i < numSections; i++) { mSections.get(i).clear(); } mRawContactIds.clear(); // Build up method entries if (...
private final void buildEntries(Cursor aggCursor) { // Clear out the old entries final int numSections = mSections.size(); for (int i = 0; i < numSections; i++) { mSections.get(i).clear(); } mRawContactIds.clear(); // Build up method entries if (...
diff --git a/src/au/edu/uts/eng/remotelabs/rigclient/server/pages/LogsPage.java b/src/au/edu/uts/eng/remotelabs/rigclient/server/pages/LogsPage.java index 71d2b62..ef368f1 100644 --- a/src/au/edu/uts/eng/remotelabs/rigclient/server/pages/LogsPage.java +++ b/src/au/edu/uts/eng/remotelabs/rigclient/server/pages/LogsPage....
false
true
private void indexPage(String logs[]) { /* Add the list of logs. */ if (logs.length == 0) { this.println("<div class='ui-state ui-state-highlight errdialog ui-corner-all'>"); this.println(" <p>"); this.println(" <span class='erricon ui-icon ui-ic...
private void indexPage(String logs[]) { /* Add the list of logs. */ if (logs.length == 0) { this.println("<div class='ui-state ui-state-highlight errdialog ui-corner-all'>"); this.println(" <p>"); this.println(" <span class='erricon ui-icon ui-ic...
diff --git a/esmska/src/esmska/integration/IntegrationAdapter.java b/esmska/src/esmska/integration/IntegrationAdapter.java index 741f2744..4f71d20f 100644 --- a/esmska/src/esmska/integration/IntegrationAdapter.java +++ b/esmska/src/esmska/integration/IntegrationAdapter.java @@ -1,92 +1,92 @@ /* * @(#) IntegrationAda...
true
true
public static IntegrationAdapter getInstance() { if (instance != null) { return instance; } switch (OSType.detect()) { case MAC_OS_X: try { instance = (IntegrationAdapter) Class.forName( "esmska.utils.ma...
public static IntegrationAdapter getInstance() { if (instance != null) { return instance; } switch (OSType.detect()) { case MAC_OS_X: try { instance = (IntegrationAdapter) Class.forName( "esmska.integrat...
diff --git a/ChutePhotoPicker+/src/com/chute/android/photopickerplus/ui/adapter/AssetAccountAdapter.java b/ChutePhotoPicker+/src/com/chute/android/photopickerplus/ui/adapter/AssetAccountAdapter.java index f5cf60b..853fbb8 100755 --- a/ChutePhotoPicker+/src/com/chute/android/photopickerplus/ui/adapter/AssetAccountAdapte...
true
true
public View getView(final int position, View convertView, final ViewGroup parent) { ViewHolder holder; int type = getItemViewType(position); if (convertView == null) { convertView = inflater.inflate(R.layout.adapter_assets, null); holder = new ViewHolder(); holder.imageViewThumb = (Image...
public View getView(final int position, View convertView, final ViewGroup parent) { ViewHolder holder; int type = getItemViewType(position); if (convertView == null) { convertView = inflater.inflate(R.layout.adapter_assets, null); holder = new ViewHolder(); holder.imageViewThumb = (Image...
diff --git a/tools/makedict/src/com/android/inputmethod/latin/DictionaryMaker.java b/tools/makedict/src/com/android/inputmethod/latin/DictionaryMaker.java index 1ba01075e..afd602308 100644 --- a/tools/makedict/src/com/android/inputmethod/latin/DictionaryMaker.java +++ b/tools/makedict/src/com/android/inputmethod/latin/...
false
true
public Arguments(String[] argsArray) { final LinkedList<String> args = new LinkedList<String>(Arrays.asList(argsArray)); if (args.isEmpty()) { displayHelp(); } String inputBinary = null; String inputUnigramXml = null; String...
public Arguments(String[] argsArray) { final LinkedList<String> args = new LinkedList<String>(Arrays.asList(argsArray)); if (args.isEmpty()) { displayHelp(); } String inputBinary = null; String inputUnigramXml = null; String...
diff --git a/ghana-national-web/src/test/java/org/motechproject/ghana/national/web/OutgoingCallControllerTest.java b/ghana-national-web/src/test/java/org/motechproject/ghana/national/web/OutgoingCallControllerTest.java index ad6c34dd..cd38743f 100644 --- a/ghana-national-web/src/test/java/org/motechproject/ghana/nation...
true
true
public void shouldPickMessagesFromUrlAndPlayThem_GivenMotechIdAndLanguage() { String motechId = "1234567"; String language = "EN"; MockHttpServletRequest mockHttpServletRequest = new MockHttpServletRequest(); mockHttpServletRequest.setParameter("motechId", motechId); mockHttp...
public void shouldPickMessagesFromUrlAndPlayThem_GivenMotechIdAndLanguage() { String motechId = "1234567"; String language = "EN"; MockHttpServletRequest mockHttpServletRequest = new MockHttpServletRequest(); mockHttpServletRequest.setParameter("motechId", motechId); mockHttp...
diff --git a/src/semanticMarkup/ling/learn/knowledge/Constant.java b/src/semanticMarkup/ling/learn/knowledge/Constant.java index ee7343a..0a20e33 100644 --- a/src/semanticMarkup/ling/learn/knowledge/Constant.java +++ b/src/semanticMarkup/ling/learn/knowledge/Constant.java @@ -1,113 +1,113 @@ package semanticMarkup.lin...
false
true
public Constant() { Set<String> characterWordsTemp = new HashSet<String>(); characterWordsTemp.addAll(Arrays.asList(Constant.CHARACTER.split("|"))); this.characterWords = Collections.unmodifiableSet(characterWordsTemp); Set<String> clusterStringWordsTemp = new HashSet<String>(); clusterStringWordsTemp.add...
public Constant() { Set<String> characterWordsTemp = new HashSet<String>(); characterWordsTemp.addAll(Arrays.asList(Constant.CHARACTER.split("\\|"))); this.characterWords = Collections.unmodifiableSet(characterWordsTemp); Set<String> clusterStringWordsTemp = new HashSet<String>(); clusterStringWordsTemp.a...
diff --git a/EclipseProject/src/weatherOracle/activity/NotificationActivity.java b/EclipseProject/src/weatherOracle/activity/NotificationActivity.java index 2c8915e..846905a 100644 --- a/EclipseProject/src/weatherOracle/activity/NotificationActivity.java +++ b/EclipseProject/src/weatherOracle/activity/NotificationActiv...
true
true
private void displayNotifications() { for (int i = 0;i<notificationList.size();i++) { boolean firstIteration = false; boolean lastIteration = false; if(i == 0){ firstIteration = true; } if(i == notificationList.size() - 1){ lastIteration = true; } // parentll represents an en...
private void displayNotifications() { for (int i = 0;i<notificationList.size();i++) { boolean firstIteration = false; boolean lastIteration = false; if(i == 0){ firstIteration = true; } if(i == notificationList.size() - 1){ lastIteration = true; } // parentll represents an en...
diff --git a/src/main/java/com/github/kpacha/jkata/potter/Potter.java b/src/main/java/com/github/kpacha/jkata/potter/Potter.java index 2fe15e7..a7b596d 100644 --- a/src/main/java/com/github/kpacha/jkata/potter/Potter.java +++ b/src/main/java/com/github/kpacha/jkata/potter/Potter.java @@ -1,8 +1,10 @@ package com.githu...
true
true
public static int priceFor(int items) { return 0; }
public static int priceFor(int items) { if (items == 1) return 8; return 0; }
diff --git a/src/main/java/de/ailis/usb4java/libusb/SSEndpointCompanionDescriptor.java b/src/main/java/de/ailis/usb4java/libusb/SSEndpointCompanionDescriptor.java index a4ae414..55b295c 100644 --- a/src/main/java/de/ailis/usb4java/libusb/SSEndpointCompanionDescriptor.java +++ b/src/main/java/de/ailis/usb4java/libusb/SS...
true
true
public String dump() { return String.format("Device Descriptor:%n" + " bLength %18d%n" + " bDescriptorType %10d%n" + " bMaxBurst %16s%n" + " bmAttributes %13d %s%n" + " wBytesPerInterval %8d%n", bLength() & 0xff, bD...
public String dump() { return String.format("Device Descriptor:%n" + " bLength %18d%n" + " bDescriptorType %10d%n" + " bMaxBurst %16s%n" + " bmAttributes %13d%n" + " wBytesPerInterval %8d%n", bLength() & 0xff, bDesc...
diff --git a/src/test/java/MainForJsTest.java b/src/test/java/MainForJsTest.java index 2e7f7f4b..309a8dec 100644 --- a/src/test/java/MainForJsTest.java +++ b/src/test/java/MainForJsTest.java @@ -1,119 +1,119 @@ import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io....
true
true
public static void main(String[] args) throws Exception { Options opts = Options.parse(new ArrayList<String>(Arrays.asList( "-rep", "build/runtime", "-out", "build/test/modules", "-module"))); final RepositoryManager repoman = CeylonUtils.repoManager() ...
public static void main(String[] args) throws Exception { Options opts = Options.parse(new ArrayList<String>(Arrays.asList( "-rep", "build/runtime", "-out", "build/test/modules", "-module"))); final RepositoryManager repoman = CeylonUtils.repoManager() ...
diff --git a/src/test/java/SomeTest.java b/src/test/java/SomeTest.java index 1528517..7ac8b6e 100644 --- a/src/test/java/SomeTest.java +++ b/src/test/java/SomeTest.java @@ -1,22 +1,22 @@ import junit.framework.TestCase; public class SomeTest extends TestCase { public void testOne() throws Exception { -//...
true
true
public void testOne() throws Exception { //.. new ThisShouldCompile(); fail("one"); }
public void testOne() throws Exception { new ThisShouldCompile(); // fail("one"); }
diff --git a/src/iTheming/social.java b/src/iTheming/social.java index 49b0167..18db605 100755 --- a/src/iTheming/social.java +++ b/src/iTheming/social.java @@ -1,32 +1,32 @@ package iTheming; import de.itheming.app.R; import android.app.Activity; import android.content.Context; import android.content.Intent; i...
true
true
public void facebook (final View view) { try { Intent facebookIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb://page/187629521290702")); startActivity(facebookIntent); } catch (Exception e) { Intent twitterIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://fa...
public void facebook (final View view) { try { Intent facebookIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb://page/187629521290702")); startActivity(facebookIntent); } catch (Exception e) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://fa...
diff --git a/src/com/philiptorchinsky/TimeAppe/MainActivity.java b/src/com/philiptorchinsky/TimeAppe/MainActivity.java index c3b932d..158d7be 100644 --- a/src/com/philiptorchinsky/TimeAppe/MainActivity.java +++ b/src/com/philiptorchinsky/TimeAppe/MainActivity.java @@ -1,93 +1,93 @@ package com.philiptorchinsky.TimeApp...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); dh = new DBAdapter (this); dh.open(); // dh.destroy(); // dh.close(); // // dh = new DBAdapter (this); dh.insert("TeamCity training", "inactive", 0,0); dh.insert("Androi...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); dh = new DBAdapter (this); dh.open(); // dh.destroy(); // dh.close(); // // dh = new DBAdapter (this); dh.insert("TeamCity training", "inactive", 0,0); dh.insert("Androi...
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/commands/hierarchical/NodeConfiguratorHRM.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/commands/hierarchical/NodeConfiguratorHRM.java index 95e3bbe7..f862b3a7 100644 --- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/commands/hierarch...
true
true
public void configure(String pName, AutonomousSystem pAS, Node pNode) { Simulation tCurSimulation = pAS.getSimulation(); if(sLastSimulation == null){ sLastSimulation = tCurSimulation; }else{ if(!tCurSimulation.equals(sLastSimulation)){ Logging.log(this, "####################### Detected simulation ...
public void configure(String pName, AutonomousSystem pAS, Node pNode) { Simulation tCurSimulation = pAS.getSimulation(); if(sLastSimulation == null){ sLastSimulation = tCurSimulation; }else{ if(!tCurSimulation.equals(sLastSimulation)){ Logging.log(this, "####################### Detected simulation ...
diff --git a/clients/android/NewsBlur/src/com/newsblur/activity/FeedItemsList.java b/clients/android/NewsBlur/src/com/newsblur/activity/FeedItemsList.java index 30940899c..1debab447 100644 --- a/clients/android/NewsBlur/src/com/newsblur/activity/FeedItemsList.java +++ b/clients/android/NewsBlur/src/com/newsblur/activit...
true
true
protected void onCreate(Bundle bundle) { super.onCreate(bundle); apiManager = new APIManager(this); feedId = getIntent().getStringExtra(EXTRA_FEED); feedTitle = getIntent().getStringExtra(EXTRA_FEED_TITLE); folderName = getIntent().getStringExtra(EXTRA_FOLDER_NAME); final Uri feedUri =...
protected void onCreate(Bundle bundle) { super.onCreate(bundle); apiManager = new APIManager(this); feedId = getIntent().getStringExtra(EXTRA_FEED); feedTitle = getIntent().getStringExtra(EXTRA_FEED_TITLE); folderName = getIntent().getStringExtra(EXTRA_FOLDER_NAME); final Uri feedUri =...
diff --git a/commons/src/main/java/org/archive/util/ObjectIdentityMemCache.java b/commons/src/main/java/org/archive/util/ObjectIdentityMemCache.java index 07545dbf..deaa7393 100644 --- a/commons/src/main/java/org/archive/util/ObjectIdentityMemCache.java +++ b/commons/src/main/java/org/archive/util/ObjectIdentityMemCach...
false
true
public V getOrUse(String key, Supplier<V> supplierOrNull) { V val = map.get(key); if (val != null) { val.setIdentityCache(this); } else if (supplierOrNull!=null) { val = supplierOrNull.get(); V prevVal = map.putIfAbsent(key, val); if(prevVal...
public V getOrUse(String key, Supplier<V> supplierOrNull) { V val = map.get(key); if (val==null && supplierOrNull!=null) { val = supplierOrNull.get(); V prevVal = map.putIfAbsent(key, val); if(prevVal!=null) { val = prevVal; } ...
diff --git a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/ProximityEObjectMatcher.java b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/ProximityEObjectMatcher.java index d5cc7616f..6708ba079 100644 --- a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare...
true
true
public void createMatches(Comparison comparison, Iterator<? extends EObject> leftEObjects, Iterator<? extends EObject> rightEObjects, Iterator<? extends EObject> originEObjects, Monitor monitor) { // FIXME: how to create an EMF submonitor Monitor subMonitor = new BasicMonitor(); subMonitor.beginTask("inde...
public void createMatches(Comparison comparison, Iterator<? extends EObject> leftEObjects, Iterator<? extends EObject> rightEObjects, Iterator<? extends EObject> originEObjects, Monitor monitor) { // FIXME: how to create an EMF submonitor Monitor subMonitor = new BasicMonitor(); subMonitor.beginTask("inde...
diff --git a/src/mjc/JVMMain.java b/src/mjc/JVMMain.java index 08bf0db..7f28fa6 100644 --- a/src/mjc/JVMMain.java +++ b/src/mjc/JVMMain.java @@ -1,155 +1,155 @@ package mjc; import basic_tree.Start; import error.ErrorMsg; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; imp...
true
true
public boolean begin(String file, String output_dir) { try { String basename = new File(file).getName(); Reader r = new FileReader(file); System.out.println("Building from "+file); Start basicTree = parse(r); abstractTree = new AbstractTree(basicT...
public boolean begin(String file, String output_dir) { try { String basename = new File(file).getName(); Reader r = new FileReader(file); System.out.println("Building from "+file); Start basicTree = parse(r); abstractTree = new AbstractTree(basicT...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISPrefsCommands.java b/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISPrefsCommands.java index fe2105003..ab90b02a7 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISPrefsCommands.java +++ b/src/main/java/me/eccentric_nz/TARDIS/commands/...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } // If the player typed /tardisprefs then do the following... // check there is the right nu...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } // If the player typed /tardisprefs then do the following... // check there is the right nu...
diff --git a/src/main/java/net/rcarz/jiraclient/Comment.java b/src/main/java/net/rcarz/jiraclient/Comment.java index 1971ccc..3d19564 100644 --- a/src/main/java/net/rcarz/jiraclient/Comment.java +++ b/src/main/java/net/rcarz/jiraclient/Comment.java @@ -1,113 +1,113 @@ /** * jira-client - a simple JIRA REST client ...
true
true
public static Comment get(RestClient restclient, String issue, String id) throws JiraException { JSONObject result = null; try { result = restclient.get(RESOURCE_URI + issue + "/comment/" + id); } catch (Exception ex) { throw new JiraException("Failed to ret...
public static Comment get(RestClient restclient, String issue, String id) throws JiraException { JSONObject result = null; try { result = restclient.get(RESOURCE_URI + "issue/" + issue + "/comment/" + id); } catch (Exception ex) { throw new JiraException("Fa...
diff --git a/marid/src/java/com/ifountain/opsgenie/client/marid/alert/AlertActionUtils.java b/marid/src/java/com/ifountain/opsgenie/client/marid/alert/AlertActionUtils.java index dfb017b..553d820 100644 --- a/marid/src/java/com/ifountain/opsgenie/client/marid/alert/AlertActionUtils.java +++ b/marid/src/java/com/ifounta...
true
true
public static AlertActionBean createAlertAction(String action, Object alert, Object source) throws Exception { if(action == null){ throw new IllegalArgumentException("No action specified."); } if(alert == null){ throw new IllegalArgumentExcepti...
public static AlertActionBean createAlertAction(String action, Object alert, Object source) throws Exception { if(action == null){ throw new IllegalArgumentException("No action specified."); } if(alert == null){ throw new IllegalArgumentExcepti...
diff --git a/JSynthLib/synthdrivers/YamahaTX81z/YamahaTX81zSingleEditor.java b/JSynthLib/synthdrivers/YamahaTX81z/YamahaTX81zSingleEditor.java index c027679..6522aba 100644 --- a/JSynthLib/synthdrivers/YamahaTX81z/YamahaTX81zSingleEditor.java +++ b/JSynthLib/synthdrivers/YamahaTX81z/YamahaTX81zSingleEditor.java @@ -1,1...
true
true
public YamahaTX81zSingleEditor(Patch patch) { super ("Yamaha TX81z Single Editor",patch); algoIcon[0]=new ImageIcon("synthdrivers/YamahaTX81z/1.gif"); algoIcon[1]=new ImageIcon("synthdrivers/YamahaTX81z/2.gif"); algoIcon[2]=new ImageIcon("synthdrivers/YamahaTX81z/3.gif"); algoIcon[3]=new ImageIcon("synt...
public YamahaTX81zSingleEditor(Patch patch) { super ("Yamaha TX81z Single Editor",patch); algoIcon[0]=new ImageIcon(getClass().getResource("1.gif")); algoIcon[1]=new ImageIcon(getClass().getResource("2.gif")); algoIcon[2]=new ImageIcon(getClass().getResource("3.gif")); algoIcon[3]=new ImageIcon(getClass...
diff --git a/source/net/sourceforge/texlipse/spelling/SpellChecker.java b/source/net/sourceforge/texlipse/spelling/SpellChecker.java index ed4bb2e..bedcb33 100644 --- a/source/net/sourceforge/texlipse/spelling/SpellChecker.java +++ b/source/net/sourceforge/texlipse/spelling/SpellChecker.java @@ -1,714 +1,717 @@ /* *...
true
true
private void checkLineSpelling(String line, int offset, int lineNumber, IFile file) { // check that there is text for the checker if (line == null || line.length() == 0) { return; } if (line.trim().length() == 0) { return; } ...
private void checkLineSpelling(String line, int offset, int lineNumber, IFile file) { // check that there is text for the checker if (line == null || line.length() == 0) { return; } if (line.trim().length() == 0) { return; } ...
diff --git a/source/ch/cyberduck/core/Host.java b/source/ch/cyberduck/core/Host.java index 6c326876f..703d7b10e 100644 --- a/source/ch/cyberduck/core/Host.java +++ b/source/ch/cyberduck/core/Host.java @@ -1,610 +1,610 @@ package ch.cyberduck.core; /* * Copyright (c) 2005 David Kocher. All rights reserved. * h...
false
true
public static Host parse(String input) throws MalformedURLException { if(null == input || input.length() == 0) throw new MalformedURLException("No hostname given"); int begin = 0; int cut = 0; if(input.indexOf("://", begin) == -1 && input.indexOf('@', begin) == -1) { ...
public static Host parse(String input) throws MalformedURLException { if(null == input || input.length() == 0) throw new MalformedURLException("No hostname given"); int begin = 0; int cut = 0; if(input.indexOf("://", begin) == -1 && input.indexOf('@', begin) == -1) { ...
diff --git a/products/j2eeagents/agentsdk/source/com/sun/identity/agents/filter/CDSSOURLPolicyTaskHandler.java b/products/j2eeagents/agentsdk/source/com/sun/identity/agents/filter/CDSSOURLPolicyTaskHandler.java index 154bbef23..3c5df88e2 100644 --- a/products/j2eeagents/agentsdk/source/com/sun/identity/agents/filter/CD...
true
true
public AmFilterResult getRedirectResult(AmFilterRequestContext ctx, AmWebPolicyResult policyResult) throws AgentException { if (isLogMessageEnabled()) { logMessage("CDSSOURLPolicyTaskHandler: insufficient credentials - " ...
public AmFilterResult getServeDataResult(AmFilterRequestContext ctx, AmWebPolicyResult policyResult) throws AgentException { if (isLogMessageEnabled()) { logMessage("CDSSOURLPolicyTaskHandler: insufficient credentials - " ...
diff --git a/src/com/tactfactory/mda/test/project/ProjectInitTest.java b/src/com/tactfactory/mda/test/project/ProjectInitTest.java index 8c148047..e6d797ef 100644 --- a/src/com/tactfactory/mda/test/project/ProjectInitTest.java +++ b/src/com/tactfactory/mda/test/project/ProjectInitTest.java @@ -1,114 +1,114 @@ /** * ...
true
true
public void initAndroid() { System.out.println("Test Project init Android"); System.out.println("###############################################################################"); this.harmony.findAndExecute(ProjectCommand.INIT_ANDROID, null, null); this.isFindFile("android/AndroidManifest.xml"); this....
public void initAndroid() { System.out.println("Test Project init Android"); System.out.println("###############################################################################"); this.harmony.findAndExecute(ProjectCommand.INIT_ANDROID, null, null); this.isFindFile("android/AndroidManifest.xml"); this....
diff --git a/src/com/tw/pkg/deb/main/Main.java b/src/com/tw/pkg/deb/main/Main.java index 4d608b6..4f0988b 100755 --- a/src/com/tw/pkg/deb/main/Main.java +++ b/src/com/tw/pkg/deb/main/Main.java @@ -1,34 +1,34 @@ package com.tw.pkg.deb.main; import com.tw.pkg.deb.repo.DebianPackage; import com.tw.pkg.deb.repo.Debian...
true
true
public static void main(String[] args) throws Exception { if (args.length < 2) { System.out.println("usage: java -jar db-repo-query <uri> <package-name> [<package-spec>] [<architecture>]"); System.out.println("sample: java -jar db-repo-query http://in.archive.ubuntu.com/ubuntu/dists/...
public static void main(String[] args) throws Exception { if (args.length < 2) { System.out.println("usage: java -jar db-repo-query <uri> [<package-spec>] [<architecture>]"); System.out.println("sample: java -jar db-repo-query http://in.archive.ubuntu.com/ubuntu/dists/hardy/main/bina...
diff --git a/src/org/bouncycastle/asn1/cms/EnvelopedData.java b/src/org/bouncycastle/asn1/cms/EnvelopedData.java index 0ce469c2..ae16e826 100644 --- a/src/org/bouncycastle/asn1/cms/EnvelopedData.java +++ b/src/org/bouncycastle/asn1/cms/EnvelopedData.java @@ -1,188 +1,188 @@ package org.bouncycastle.asn1.cms; import...
true
true
public static int calculateVersion(OriginatorInfo originatorInfo, ASN1Set recipientInfos, ASN1Set unprotectedAttrs) { int version; if (originatorInfo != null || unprotectedAttrs != null) { version = 2; } else { version = 0; En...
public static int calculateVersion(OriginatorInfo originatorInfo, ASN1Set recipientInfos, ASN1Set unprotectedAttrs) { int version; if (originatorInfo != null || unprotectedAttrs != null) { version = 2; } else { version = 0; En...
diff --git a/src/Items/Boulder.java b/src/Items/Boulder.java index 439f667..e089f4c 100644 --- a/src/Items/Boulder.java +++ b/src/Items/Boulder.java @@ -1,47 +1,50 @@ package Items; import java.awt.Graphics; import java.awt.image.BufferedImage; import javax.swing.JLabel; import javax.swing.JOptionPane; impo...
false
true
public void playerConsume(Player p) { int r = JOptionPane.showConfirmDialog(null, new JLabel("Game Over!\n Play Again?"), "Game Over!", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE); if (r == 0){ //New Game GUI.canvas.removeAll(); Player.sobriety = Player.MAX_SOBRIETY; Player.score = ...
public void playerConsume(Player p) { int r = JOptionPane.showConfirmDialog(null, new JLabel("Game Over!\n Play Again?"), "Game Over!", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE); if (r == 0){ //New Game GUI.canvas.removeAll(); GUI.canvas.getGUI().dispose(); Player.sobriety = Playe...
diff --git a/Annis-Service/src/main/java/annis/service/AnnisServiceExceptionHandler.java b/Annis-Service/src/main/java/annis/service/AnnisServiceExceptionHandler.java index 1404e3390..862acfb20 100644 --- a/Annis-Service/src/main/java/annis/service/AnnisServiceExceptionHandler.java +++ b/Annis-Service/src/main/java/ann...
true
true
public void convertException(Exception e) throws AnnisServiceException { StringWriter stackTrace = new StringWriter(); throw new AnnisServiceException(e.getLocalizedMessage(), e); }
public void convertException(Exception e) throws AnnisServiceException { throw new AnnisServiceException(e.getLocalizedMessage()); }
diff --git a/src/main/java/midcontainers/local/LocalContainer.java b/src/main/java/midcontainers/local/LocalContainer.java index 7edd83a..33ef82b 100644 --- a/src/main/java/midcontainers/local/LocalContainer.java +++ b/src/main/java/midcontainers/local/LocalContainer.java @@ -1,214 +1,214 @@ package midcontainers.loca...
false
true
public <T> T obtainReference(Class<T> interfaceClass, String qualifier) { Binding bind = this.bindings.get(new Binding.Key(interfaceClass, qualifier)); if (bind == null) { throw new ContainerException(); } else { T res = null; Class<?> implClass = bind.ge...
public <T> T obtainReference(Class<T> interfaceClass, String qualifier) { Binding bind = this.bindings.get(new Binding.Key(interfaceClass, qualifier)); if (bind == null) { throw new ContainerException(); } else { T res = null; Class<?> implClass = bind.ge...
diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java index 72f2e728..8476aca2 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/Wor...
true
true
private void handleBlockRightClick(PlayerInteractEvent event) { if (event.isCancelled()) { return; } Block block = event.getClickedBlock(); World world = block.getWorld(); Material type = block.getType(); Player player = event.getPlayer(); ItemSta...
private void handleBlockRightClick(PlayerInteractEvent event) { if (event.isCancelled()) { return; } Block block = event.getClickedBlock(); World world = block.getWorld(); Material type = block.getType(); Player player = event.getPlayer(); ItemSta...
diff --git a/src/cs/c301/project/LoginView.java b/src/cs/c301/project/LoginView.java index c2fca87..2830aef 100644 --- a/src/cs/c301/project/LoginView.java +++ b/src/cs/c301/project/LoginView.java @@ -1,79 +1,79 @@ package cs.c301.project; import android.app.Activity; import android.content.Intent; import android...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.login); final EditText usernameField = (EditText) findViewById(R.id.usernameField); final EditText passwordField = (EditText) findViewById(R.id....
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.login); final EditText usernameField = (EditText) findViewById(R.id.usernameField); final EditText passwordField = (EditText) findViewById(R.id....
diff --git a/src/com/maneulyori/sdattr/SDAttrActivity.java b/src/com/maneulyori/sdattr/SDAttrActivity.java index b93e2f4..bc68f81 100644 --- a/src/com/maneulyori/sdattr/SDAttrActivity.java +++ b/src/com/maneulyori/sdattr/SDAttrActivity.java @@ -1,76 +1,74 @@ package com.maneulyori.sdattr; import java.io.*; import ...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); resources = getResources(); try{ InputStream fileTest = new FileInputStream("/data/data/com.maneulyori.sdattr/fatattr"); fileTest.close(); } catch (IOException e) ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); resources = getResources(); try{ InputStream fileTest = new FileInputStream("/data/data/com.maneulyori.sdattr/fatattr"); fileTest.close(); } catch (IOException e) ...
diff --git a/src/main/java/burrito/BurritoRouter.java b/src/main/java/burrito/BurritoRouter.java index a32260b..eea6f0f 100644 --- a/src/main/java/burrito/BurritoRouter.java +++ b/src/main/java/burrito/BurritoRouter.java @@ -1,64 +1,64 @@ package burrito; import taco.Router; import burrito.controller.AddFeedsSubsc...
true
true
public void init() { BackgroundTaskProtector btProtector = new BackgroundTaskProtector(); route("/burrito/admin").through(AdminController.class).renderedBy("/Admin.jsp").protect(Configurator.getAdminProtector()); route("/burrito/crudmessages.js").through(MessagesController.class).renderedBy(new MessagesRender...
public void init() { BackgroundTaskProtector btProtector = new BackgroundTaskProtector(); route("/burrito/admin").through(AdminController.class).renderedBy("/Admin.jsp").protect(Configurator.getAdminProtector()); route("/burrito/crudmessages.js").through(MessagesController.class).renderedBy(new MessagesRender...
diff --git a/tutorial/java/src/JavaServer.java b/tutorial/java/src/JavaServer.java index 14440eb7..da84c321 100644 --- a/tutorial/java/src/JavaServer.java +++ b/tutorial/java/src/JavaServer.java @@ -1,119 +1,119 @@ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreem...
false
true
public int calculate(int logid, Work work) throws InvalidOperation { System.out.println("calculate(" + logid + ", {" + work.op + "," + work.num1 + "," + work.num2 + "})"); int val = 0; switch (work.op) { case Operation.ADD: val = work.num1 + work.num2; break; case Opera...
public int calculate(int logid, Work work) throws InvalidOperation { System.out.println("calculate(" + logid + ", {" + work.op + "," + work.num1 + "," + work.num2 + "})"); int val = 0; switch (work.op) { case ADD: val = work.num1 + work.num2; break; case SUBTRACT: ...
diff --git a/BetterVillages.java b/BetterVillages.java index 333c863..c7178a7 100644 --- a/BetterVillages.java +++ b/BetterVillages.java @@ -1,280 +1,280 @@ package bettervillages; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; import net.minecraft.block.B...
false
true
public void onPopulating(net.minecraftforge.event.terraingen.PopulateChunkEvent.Post event){ if(event.hasVillageGenerated){ int i = event.chunkX*16; int k = event.chunkZ*16; BiomeGenBase biome = event.world.getBiomeGenForCoords(i, k); int borderId = biome==BiomeGenBase.desert?Block.sandStone.blockID:Bloc...
public void onPopulating(net.minecraftforge.event.terraingen.PopulateChunkEvent.Post event){ if(event.hasVillageGenerated){ int i = event.chunkX*16; int k = event.chunkZ*16; BiomeGenBase biome = event.world.getBiomeGenForCoords(i, k); int borderId = biome==BiomeGenBase.desert?Block.sandStone.blockID:Bloc...
diff --git a/src/com/wolvencraft/prison/mines/cmd/EditCommand.java b/src/com/wolvencraft/prison/mines/cmd/EditCommand.java index 5b73594..d2f77ae 100644 --- a/src/com/wolvencraft/prison/mines/cmd/EditCommand.java +++ b/src/com/wolvencraft/prison/mines/cmd/EditCommand.java @@ -1,359 +1,359 @@ package com.wolvencraft.pr...
true
true
public boolean run(String[] args) { if(args.length == 1 && !args[0].equalsIgnoreCase("none") && !args[0].equalsIgnoreCase("delete") && !args[0].equalsIgnoreCase("generator") && !args[0].equalsIgnoreCase("silent")) { getHelp(); return true; } Language language = PrisonMine.getLanguage();...
public boolean run(String[] args) { if(args.length == 1 && !args[0].equalsIgnoreCase("none") && !args[0].equalsIgnoreCase("delete") && !args[0].equalsIgnoreCase("generator") && !args[0].equalsIgnoreCase("silent")) { getHelp(); return true; } Language language = PrisonMine.getLanguage();...
diff --git a/src/main/java/com/zenred/cosmos/controller/json/CreateSystemController2.java b/src/main/java/com/zenred/cosmos/controller/json/CreateSystemController2.java index 89c9a56..350c0b5 100644 --- a/src/main/java/com/zenred/cosmos/controller/json/CreateSystemController2.java +++ b/src/main/java/com/zenred/cosmos/...
true
true
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { String udim = request.getParameter("udim"); String vdim = request.getParameter("vdim"); boolean result = generateOneSystem.doesSystemAllReadyExist(udim, vdim); SystemPlusSomeDetails systemPlusSomeD...
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { String udim = request.getParameter("udim"); String vdim = request.getParameter("vdim"); boolean result = generateOneSystem.doesSystemAllReadyExist(udim, vdim); SystemPlusSomeDetails systemPlusSomeD...
diff --git a/src/main/java/org/freecompany/redline/payload/Contents.java b/src/main/java/org/freecompany/redline/payload/Contents.java index 3d02867..f09c8f3 100644 --- a/src/main/java/org/freecompany/redline/payload/Contents.java +++ b/src/main/java/org/freecompany/redline/payload/Contents.java @@ -1,678 +1,677 @@ pa...
false
true
public synchronized void addFile( final String path, final File source, final int permissions, final Directive directive, final String uname, final String gname, final int dirmode) throws FileNotFoundException { if ( files.contains( path)) return; addParents( new File( path), dirmode, uname, gname); files.add( ...
public synchronized void addFile( final String path, final File source, final int permissions, final Directive directive, final String uname, final String gname, final int dirmode) throws FileNotFoundException { if ( files.contains( path)) return; addParents( new File( path), dirmode, uname, gname); files.add( ...
diff --git a/src/com/aokp/romcontrol/fragments/performance/CPUSettings.java b/src/com/aokp/romcontrol/fragments/performance/CPUSettings.java index 2444703..7b84e84 100644 --- a/src/com/aokp/romcontrol/fragments/performance/CPUSettings.java +++ b/src/com/aokp/romcontrol/fragments/performance/CPUSettings.java @@ -1,305 +...
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup root, Bundle savedInstanceState) { mActivity = getActivity(); View view = inflater.inflate(R.layout.cpu_settings, root, false); preferences = PreferenceManager.getDefaultSharedPreferences(mActivity); availableF...
public View onCreateView(LayoutInflater inflater, ViewGroup root, Bundle savedInstanceState) { mActivity = getActivity(); View view = inflater.inflate(R.layout.cpu_settings, root, false); preferences = PreferenceManager.getDefaultSharedPreferences(mActivity); availableF...
diff --git a/src/com/seawolfsanctuary/tmt/database/Journey.java b/src/com/seawolfsanctuary/tmt/database/Journey.java index e713616..f4fd84e 100644 --- a/src/com/seawolfsanctuary/tmt/database/Journey.java +++ b/src/com/seawolfsanctuary/tmt/database/Journey.java @@ -1,403 +1,403 @@ package com.seawolfsanctuary.tmt.datab...
false
true
public Boolean exportToCSV() { boolean mExternalStorageWritable = false; String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { // We can read and write the media mExternalStorageWritable = true; } else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) ...
public Boolean exportToCSV() { boolean mExternalStorageWritable = false; String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { // We can read and write the media mExternalStorageWritable = true; } else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) ...
diff --git a/tds/src/main/java/thredds/servlet/HtmlWriter.java b/tds/src/main/java/thredds/servlet/HtmlWriter.java index 941cb9d17..c9cab3cf8 100644 --- a/tds/src/main/java/thredds/servlet/HtmlWriter.java +++ b/tds/src/main/java/thredds/servlet/HtmlWriter.java @@ -1,773 +1,773 @@ package thredds.servlet; import thr...
false
true
private boolean doDatasets( InvCatalogImpl cat, List datasets, StringBuffer sb, boolean shade, int level, boolean isLocalCatalog ) { URI catURI = cat.getBaseURI(); String catHtml; if ( !isLocalCatalog ) { // Setup HREF url to link to HTML dataset page (more below). catHtml = contextPath ...
private boolean doDatasets( InvCatalogImpl cat, List datasets, StringBuffer sb, boolean shade, int level, boolean isLocalCatalog ) { URI catURI = cat.getBaseURI(); String catHtml; if ( !isLocalCatalog ) { // Setup HREF url to link to HTML dataset page (more below). catHtml = contextPath ...
diff --git a/src/main/java/edu/northwestern/bioinformatics/studycalendar/service/SubjectCoordinatorDashboardService.java b/src/main/java/edu/northwestern/bioinformatics/studycalendar/service/SubjectCoordinatorDashboardService.java index c6b11aef6..1e9e575b2 100644 --- a/src/main/java/edu/northwestern/bioinformatics/stu...
false
true
public Map<String, Object> getMapOfCurrentEventsForSpecificActivity( List<StudySubjectAssignment> studySubjectAssignments, int initialShiftDate, Map<ActivityType, Boolean> activities) { Date startDate = new Date(); Collection<ScheduledActivity> collectionOfEvents; SortedMap<Strin...
public Map<String, Object> getMapOfCurrentEventsForSpecificActivity( List<StudySubjectAssignment> studySubjectAssignments, int initialShiftDate, Map<ActivityType, Boolean> activities) { Date startDate = new Date(); Collection<ScheduledActivity> collectionOfEvents; SortedMap<String, O...
diff --git a/main/src/cgeo/geocaching/cgeogpxes.java b/main/src/cgeo/geocaching/cgeogpxes.java index f19287d73..471404965 100644 --- a/main/src/cgeo/geocaching/cgeogpxes.java +++ b/main/src/cgeo/geocaching/cgeogpxes.java @@ -1,190 +1,190 @@ package cgeo.geocaching; import cgeo.geocaching.files.FileList; import cge...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Bundle extras = getIntent().getExtras(); if (extras != null) { listId = extras.getInt(EXTRAS_LIST_ID); } if (listId <= 0) { listId = cgList.STANDARD_LIST_ID; ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Bundle extras = getIntent().getExtras(); if (extras != null) { listId = extras.getInt(EXTRAS_LIST_ID); } if (listId <= 0) { listId = cgList.STANDARD_LIST_ID; ...
diff --git a/src/test/java/org/cloudfoundry/identity/uaa/login/RemoteUaaAuthenticationManagerTests.java b/src/test/java/org/cloudfoundry/identity/uaa/login/RemoteUaaAuthenticationManagerTests.java index 4695856..13b90c8 100644 --- a/src/test/java/org/cloudfoundry/identity/uaa/login/RemoteUaaAuthenticationManagerTests.j...
false
true
public void testAuthenticate() throws Exception { responseHeaders.setLocation(new URI("https://uaa.cloudfoundry.com/")); Map<String,String> response = new HashMap<String, String>(); response.put("username", "marissa"); when(restTemplate.exchange(endsWith("/authenticate"), eq(HttpMethod.POST), any(HttpEntity.cl...
public void testAuthenticate() throws Exception { responseHeaders.setLocation(new URI("https://uaa.cloudfoundry.com/")); Map<String,String> response = new HashMap<String, String>(); response.put("username", "marissa"); @SuppressWarnings("rawtypes") ResponseEntity<Map> expectedResponse = new ResponseEntity<Ma...
diff --git a/src/main/java/IntegerToRoman.java b/src/main/java/IntegerToRoman.java index 5a57a72..01f0a75 100755 --- a/src/main/java/IntegerToRoman.java +++ b/src/main/java/IntegerToRoman.java @@ -1,61 +1,61 @@ import java.util.HashMap; import java.util.Map; public class IntegerToRoman { public String intTo...
true
true
public String intToRoman(int num) { Map<Integer, Character> mappings = new HashMap<Integer, Character>(); mappings.put(1, 'I'); mappings.put(5, 'V'); mappings.put(10, 'X'); mappings.put(50, 'L'); mappings.put(100, 'C'); mappings.put(500, 'D'); mappings.put(1000, 'M'); StringBuilder sb = new St...
public String intToRoman(int num) { Map<Integer, Character> mappings = new HashMap<Integer, Character>(); mappings.put(1, 'I'); mappings.put(5, 'V'); mappings.put(10, 'X'); mappings.put(50, 'L'); mappings.put(100, 'C'); mappings.put(500, 'D'); mappings.put(1000, 'M'); StringBuilder sb = new St...
diff --git a/modules/foundation/hud/src/classes/org/jdesktop/wonderland/modules/hud/client/ControlArbHUD.java b/modules/foundation/hud/src/classes/org/jdesktop/wonderland/modules/hud/client/ControlArbHUD.java index 3dd23d1a4..1f6b0ddb1 100644 --- a/modules/foundation/hud/src/classes/org/jdesktop/wonderland/modules/hud/...
true
true
public void releaseControl() { // Remove focus from the app // Fix issue 796 // - don't allow shift-click to release control of HUD windows //inputManager.removeKeyMouseFocus(new Entity[]{app.getFocusEntity()}); }
public void releaseControl() { // Remove focus from the app // Fix issue 534 // - don't allow shift-click to release control of HUD windows //inputManager.removeKeyMouseFocus(new Entity[]{app.getFocusEntity()}); }
diff --git a/src/net/sf/freecol/client/gui/panel/ReportColonyPanel.java b/src/net/sf/freecol/client/gui/panel/ReportColonyPanel.java index db09f43d9..4bab56e93 100644 --- a/src/net/sf/freecol/client/gui/panel/ReportColonyPanel.java +++ b/src/net/sf/freecol/client/gui/panel/ReportColonyPanel.java @@ -1,186 +1,192 @@ pa...
true
true
public void initialize() { Player player = getCanvas().getClient().getMyPlayer(); colonies = player.getColonies(); // Display Panel int widths[] = new int[] {0}; int heights[] = new int[colonies.size() * 2 - 1]; for (int i = 1; i < heights.length; i += 2) { ...
public void initialize() { Player player = getCanvas().getClient().getMyPlayer(); colonies = player.getColonies(); // Display Panel int widths[] = new int[] {0}; // If no colonies are defined, show an empty panel. int heights[] = null; if (colonies.s...
diff --git a/runwaysdk-server/src/main/java/com/runwaysdk/dataaccess/InstallerCP.java b/runwaysdk-server/src/main/java/com/runwaysdk/dataaccess/InstallerCP.java index 3632856af..2b914f3b2 100644 --- a/runwaysdk-server/src/main/java/com/runwaysdk/dataaccess/InstallerCP.java +++ b/runwaysdk-server/src/main/java/com/runwa...
true
true
public static ArrayList<String> getClassNamesFromPackage(String packageName) throws IOException{ ClassLoader classLoader = InstallerCP.class.getClassLoader(); Enumeration<URL> packageURLs; ArrayList<String> names = new ArrayList<String>();; packageName = packageName.replace(".", "/"); packageURLs...
public static ArrayList<String> getClassNamesFromPackage(String packageName) throws IOException{ ClassLoader classLoader = InstallerCP.class.getClassLoader(); Enumeration<URL> packageURLs; ArrayList<String> names = new ArrayList<String>();; packageName = packageName.replace(".", "/"); packageURLs...
diff --git a/src/com/jetbrains/crucible/actions/AddCommentAction.java b/src/com/jetbrains/crucible/actions/AddCommentAction.java index 693500d..ce11ec8 100644 --- a/src/com/jetbrains/crucible/actions/AddCommentAction.java +++ b/src/com/jetbrains/crucible/actions/AddCommentAction.java @@ -1,176 +1,176 @@ package com.je...
true
true
private void addVersionedComment(@NotNull final Project project) { if (myEditor == null || myFilePath == null) return; final CommentBalloonBuilder builder = new CommentBalloonBuilder(); final CommentForm commentForm = new CommentForm(project, false, myIsReply, myFilePath); commentForm.setReview(myRevi...
private void addVersionedComment(@NotNull final Project project) { if (myEditor == null || myFilePath == null) return; final CommentBalloonBuilder builder = new CommentBalloonBuilder(); final CommentForm commentForm = new CommentForm(project, false, myIsReply, myFilePath); commentForm.setReview(myRevi...
diff --git a/game/Level.java b/game/Level.java index 89e641e..c9873ac 100644 --- a/game/Level.java +++ b/game/Level.java @@ -1,198 +1,198 @@ package game; import util.*; import java.util.*; import serialization.*; public class Level implements Iterable<GameThing> { private final GameWorld world; private ...
false
true
public Location nextTo(final Location where, final game.things.Player who){ if(where.equals(this)) return this; Find.Node<Location> cur = Find.dijkstra(this, where, new Find.Nextator<Location>(){ public Iterable<Find.Node<Location>> next(Find.Node<Location> n){ List<Find.Node<Location>> out = new L...
public Location nextTo(final Location where, final game.things.Player who){ if(where.equals(this)) return this; Find.Node<Location> cur = Find.dijkstra(this, where, new Find.Nextator<Location>(){ public Iterable<Find.Node<Location>> next(Find.Node<Location> n){ List<Find.Node<Location>> out = new L...
diff --git a/src/com/vloxlands/net/Server.java b/src/com/vloxlands/net/Server.java index 2474a1e..d8a9304 100644 --- a/src/com/vloxlands/net/Server.java +++ b/src/com/vloxlands/net/Server.java @@ -1,215 +1,216 @@ package com.vloxlands.net; import java.io.IOException; import java.net.BindException; import java.net...
true
true
private void parsePacket(byte[] data, InetAddress address, int port) { String message = new String(data).trim(); PacketTypes type = Packet.lookupPacket(message.substring(0, 2)); switch (type) { default: case INVALID: { break; } case CONNECT: { Packet00Connect packet = new Packet00Con...
private void parsePacket(byte[] data, InetAddress address, int port) { String message = new String(data).trim(); PacketTypes type = Packet.lookupPacket(message.substring(0, 2)); switch (type) { default: case INVALID: { break; } case CONNECT: { Packet00Connect packet = new Packet00Con...
diff --git a/USBTest/src/LibUSBTest.java b/USBTest/src/LibUSBTest.java index f0b7b5c..ec24e49 100644 --- a/USBTest/src/LibUSBTest.java +++ b/USBTest/src/LibUSBTest.java @@ -1,232 +1,234 @@ package src; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.IntBuffer; import java.util.concurrent.a...
false
true
public void run() { while (!fermati.get()) { retrieveSTM(); if (STM != null) { DeviceHandle STMhandle = new DeviceHandle(); //LibUsb.open(STM, STMhandle); System.out.println(LibUsb.errorName(LibUsb.open(STM, STMhandle))); System.out.println(STMhandle); ByteBuffer data = ByteBuffer.allocate...
public void run() { while (!fermati.get()) { retrieveSTM(); if (STM != null) { DeviceHandle STMhandle = new DeviceHandle(); //LibUsb.open(STM, STMhandle); System.out.println(LibUsb.errorName(LibUsb.open(STM, STMhandle))); System.out.println(STMhandle); ByteBuffer data = ByteBuffer.allocate...
diff --git a/runtime/src/com/sun/xml/bind/v2/schemagen/XmlSchemaGenerator.java b/runtime/src/com/sun/xml/bind/v2/schemagen/XmlSchemaGenerator.java index 8252aee5..d7c629c6 100644 --- a/runtime/src/com/sun/xml/bind/v2/schemagen/XmlSchemaGenerator.java +++ b/runtime/src/com/sun/xml/bind/v2/schemagen/XmlSchemaGenerator.ja...
false
true
private void writeClass(ClassInfo<T,C> c, TypeHost parent) { // special handling for value properties if (containsValueProp(c)) { if (c.getProperties().size() == 1) { // [RESULT 2 - simpleType if the value prop is the only prop] // ...
private void writeClass(ClassInfo<T,C> c, TypeHost parent) { // special handling for value properties if (containsValueProp(c)) { if (c.getProperties().size() == 1) { // [RESULT 2 - simpleType if the value prop is the only prop] // ...
diff --git a/src/main/java/pl/psnc/dl/wf4ever/portal/services/RoEvoService.java b/src/main/java/pl/psnc/dl/wf4ever/portal/services/RoEvoService.java index b80354b..3358bca 100644 --- a/src/main/java/pl/psnc/dl/wf4ever/portal/services/RoEvoService.java +++ b/src/main/java/pl/psnc/dl/wf4ever/portal/services/RoEvoService....
true
true
public static Collection<RoEvoNode> describeRO(URI sparqlEndpointURI, URI researchObjectURI) throws IOException, URISyntaxException { OntModel model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM); QueryExecution x = QueryExecutionFactory.sparqlService(sparqlEndpointURI.toS...
public static Collection<RoEvoNode> describeRO(URI sparqlEndpointURI, URI researchObjectURI) throws IOException, URISyntaxException { OntModel model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM); QueryExecution x = QueryExecutionFactory.sparqlService(sparqlEndpointURI.toS...
diff --git a/src/main/java/org/infoscoop/request/filter/URLReplaceFilter.java b/src/main/java/org/infoscoop/request/filter/URLReplaceFilter.java index 048d8933..f393f72b 100644 --- a/src/main/java/org/infoscoop/request/filter/URLReplaceFilter.java +++ b/src/main/java/org/infoscoop/request/filter/URLReplaceFilter.java @...
true
true
protected InputStream postProcess(ProxyRequest request, InputStream responseStream) throws IOException { //if( !ProxyHtmlUtil.getInstance().isHtml(method.getResponseHeaders())) // return 500; ProxyHtmlUtil.headerProcess( request ); request.putResponseHeader("Pragma", "no-cache"); request.putResponseHeade...
protected InputStream postProcess(ProxyRequest request, InputStream responseStream) throws IOException { //if( !ProxyHtmlUtil.getInstance().isHtml(method.getResponseHeaders())) // return 500; ProxyHtmlUtil.headerProcess( request ); request.putResponseHeader("Pragma", "no-cache"); request.putResponseHeade...
diff --git a/src/flow/netbeans/markdown/typinghooks/OrderedListReorderer.java b/src/flow/netbeans/markdown/typinghooks/OrderedListReorderer.java index 322f2ff..2444389 100644 --- a/src/flow/netbeans/markdown/typinghooks/OrderedListReorderer.java +++ b/src/flow/netbeans/markdown/typinghooks/OrderedListReorderer.java @@ ...
false
true
private Map<Integer, Integer> getOrderedListMap(boolean isInserted) { // get token sequence TokenSequence<MarkdownTokenId> ts = MarkdownDocUtil.getTokenSequence(document); if (ts == null) { return Collections.emptyMap(); } // getindent string String inden...
private Map<Integer, Integer> getOrderedListMap(boolean isInserted) { // get token sequence TokenSequence<MarkdownTokenId> ts = MarkdownDocUtil.getTokenSequence(document); if (ts == null) { return Collections.emptyMap(); } // getindent string String inden...
diff --git a/library/src/com/actionbarsherlock/internal/widget/ActionBarView.java b/library/src/com/actionbarsherlock/internal/widget/ActionBarView.java index ae60358..4e2c090 100644 --- a/library/src/com/actionbarsherlock/internal/widget/ActionBarView.java +++ b/library/src/com/actionbarsherlock/internal/widget/Action...
false
true
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { final int childCount = getChildCount(); if (mIsCollapsable) { int visibleChildren = 0; for (int i = 0; i < childCount; i++) { final View child = getChildAt(i); if (child.ge...
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { final int childCount = getChildCount(); if (mIsCollapsable) { int visibleChildren = 0; for (int i = 0; i < childCount; i++) { final View child = getChildAt(i); if (child.ge...
diff --git a/src/tehtros/bukkit/SignSpy/SignSpy.java b/src/tehtros/bukkit/SignSpy/SignSpy.java index bd72a4d..6a35f31 100644 --- a/src/tehtros/bukkit/SignSpy/SignSpy.java +++ b/src/tehtros/bukkit/SignSpy/SignSpy.java @@ -1,86 +1,92 @@ package tehtros.bukkit.SignSpy; import java.io.IOException; import java.util.Has...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if(cmd.getName().equalsIgnoreCase("signspy")) { if(sender.hasPermission("signspy.spy")) { if(args.length != 1) { sender.sendMessage("Incorrect usage. Please use /signspy [on|off] to enable or disable sign logging t...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if(cmd.getName().equalsIgnoreCase("signspy")) { if(sender.hasPermission("signspy.spy")) { if(args.length != 1) { sender.sendMessage("Incorrect usage. Please use /signspy [on|off] to enable or disable sign logging t...