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/Homework7_Reflection/tests/implementor/ClassImplementorTest.java b/Homework7_Reflection/tests/implementor/ClassImplementorTest.java index 023dfe2..4cb242d 100644 --- a/Homework7_Reflection/tests/implementor/ClassImplementorTest.java +++ b/Homework7_Reflection/tests/implementor/ClassImplementorTest.java @@ ...
true
true
public void testImplement() throws Exception { Class c = Class.forName("implementor.TestClassGeneric"); String strImplementation = new ClassImplementor(c, "TestClassImpl", c.getPackage()).implement(); System.out.println(strImplementation); }
public void testImplement() throws Exception { Class c = Class.forName("implementor.TestClass"); String strImplementation = new ClassImplementor(c, "TestClassImpl", c.getPackage()).implement(); System.out.println(strImplementation); }
diff --git a/framework/src/play/classloading/enhancers/ControllersEnhancer.java b/framework/src/play/classloading/enhancers/ControllersEnhancer.java index 29e851a7..e973102e 100644 --- a/framework/src/play/classloading/enhancers/ControllersEnhancer.java +++ b/framework/src/play/classloading/enhancers/ControllersEnhance...
true
true
public void enhanceThisClass(ApplicationClass applicationClass) throws Exception { CtClass ctClass = makeClass(applicationClass); if(!ctClass.subtypeOf(classPool.get(Controller.class.getName()))) { return; } for (final CtMethod ctMethod : ctClass.getDeclaredMeth...
public void enhanceThisClass(ApplicationClass applicationClass) throws Exception { CtClass ctClass = makeClass(applicationClass); if(!ctClass.subtypeOf(classPool.get(Controller.class.getName()))) { return; } for (final CtMethod ctMethod : ctClass.getDeclaredMeth...
diff --git a/gorfx/src/de/zib/gndms/GORFX/service/TaskFlowServiceImpl.java b/gorfx/src/de/zib/gndms/GORFX/service/TaskFlowServiceImpl.java index c47eb516..4627b1da 100644 --- a/gorfx/src/de/zib/gndms/GORFX/service/TaskFlowServiceImpl.java +++ b/gorfx/src/de/zib/gndms/GORFX/service/TaskFlowServiceImpl.java @@ -1,548 +1,...
true
true
public ResponseEntity<List<Specifier<Quote>>> getQuotes( @PathVariable String type, @PathVariable String id, @RequestHeader( "DN" ) String dn, @RequestHeader( "WId" ) String wid ) { WidA...
public ResponseEntity<List<Specifier<Quote>>> getQuotes( @PathVariable String type, @PathVariable String id, @RequestHeader( "DN" ) String dn, @RequestHeader( "WId" ) String wid ) { WidA...
diff --git a/src/main/java/water/Boot.java b/src/main/java/water/Boot.java index b28b13c06..5b9c9010e 100644 --- a/src/main/java/water/Boot.java +++ b/src/main/java/water/Boot.java @@ -1,344 +1,344 @@ package water; import java.io.*; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Met...
true
true
public void boot2( String[] args ) throws Exception { // Catch some log setup stuff before anything else can happen. for (int i = 0; i < args.length; i++) { String arg = args[i]; Log.POST(110, arg == null ? "(arg is null)" : "arg is: " + arg); if ((arg != null) && arg.equals ("-inherit_log4j...
public void boot2( String[] args ) throws Exception { // Catch some log setup stuff before anything else can happen. for (int i = 0; i < args.length; i++) { String arg = args[i]; Log.POST(110, arg == null ? "(arg is null)" : "arg is: " + arg); if ((arg != null) && arg.equals ("-inherit_log4j...
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index d12708db..24d599eb 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1,2354 +1,2354 @@ /* * Copyright (C) 2008 ...
true
true
public void pickSuggestionManually(int index, CharSequence suggestion) { mComposingStateManager.onFinishComposingText(); SuggestedWords suggestions = mSuggestionsView.getSuggestions(); mVoiceProxy.flushAndLogAllTextModificationCounters(index, suggestion, mSettingsValues.mWord...
public void pickSuggestionManually(int index, CharSequence suggestion) { mComposingStateManager.onFinishComposingText(); SuggestedWords suggestions = mSuggestionsView.getSuggestions(); mVoiceProxy.flushAndLogAllTextModificationCounters(index, suggestion, mSettingsValues.mWord...
diff --git a/src/VASSAL/tools/filechooser/FileChooser.java b/src/VASSAL/tools/filechooser/FileChooser.java index 2e53b2f1..f803b99b 100644 --- a/src/VASSAL/tools/filechooser/FileChooser.java +++ b/src/VASSAL/tools/filechooser/FileChooser.java @@ -1,391 +1,400 @@ /* * $Id$ * * Copyright (c) 2006-2008 by Joel Ucke...
false
true
protected FileDialog awt_file_dialog_init(Component parent) { final FileDialog fd; if (parent == null) { fd = new FileDialog((Frame) null, title); } else { final Dialog d = (Dialog) SwingUtilities.getAncestorOfClass(Dialog.class, parent); if (d != null) { ...
protected FileDialog awt_file_dialog_init(Component parent) { final FileDialog fd; if (parent == null) { // FIXME: this will throw an IllegalArgumentException with Java 1.5 // Probably we should disallow null parents anyway? fd = new FileDialog((Frame) null, title); } ...
diff --git a/src/tesseract/menuitems/TesseractMenuItem.java b/src/tesseract/menuitems/TesseractMenuItem.java index 724b988..e4529e9 100644 --- a/src/tesseract/menuitems/TesseractMenuItem.java +++ b/src/tesseract/menuitems/TesseractMenuItem.java @@ -1,57 +1,57 @@ package tesseract.menuitems; import java.awt.event.Ac...
true
true
protected Vector3f parseVector(final String input) { String[] split = input.split(","); float x = Float.parseFloat(split[0]); float y = Float.parseFloat(split[0]); float z = Float.parseFloat(split[0]); return new Vector3f(x, y, z); }
protected Vector3f parseVector(final String input) { String[] split = input.split(","); float x = Float.parseFloat(split[0]); float y = Float.parseFloat(split[1]); float z = Float.parseFloat(split[2]); return new Vector3f(x, y, z); }
diff --git a/src/main/java/org/colomoto/logicalmodel/io/rawfunctions/RawFunctionExport.java b/src/main/java/org/colomoto/logicalmodel/io/rawfunctions/RawFunctionExport.java index 3aa80a1..a4481b8 100644 --- a/src/main/java/org/colomoto/logicalmodel/io/rawfunctions/RawFunctionExport.java +++ b/src/main/java/org/colomoto...
true
true
public void export(LogicalModel model, OutputStream out) throws IOException { MDDManager ddmanager = model.getMDDManager(); MDDVariable[] variables = ddmanager.getAllVariables(); PathSearcher searcher = new PathSearcher(ddmanager); Writer writer = new OutputStreamWriter(out); int[] functions = model.getLo...
public void export(LogicalModel model, OutputStream out) throws IOException { MDDManager ddmanager = model.getMDDManager(); MDDVariable[] variables = ddmanager.getAllVariables(); PathSearcher searcher = new PathSearcher(ddmanager); Writer writer = new OutputStreamWriter(out); int[] functions = model.getLo...
diff --git a/src/com/hyperactivity/android_app/network/NetworkAsyncTask.java b/src/com/hyperactivity/android_app/network/NetworkAsyncTask.java index ee9fa1a..5f21c1f 100644 --- a/src/com/hyperactivity/android_app/network/NetworkAsyncTask.java +++ b/src/com/hyperactivity/android_app/network/NetworkAsyncTask.java @@ -1,1...
true
true
protected JSONRPC2Response doInBackground(Object... jsonrpc2Requests) { if(networkCallback instanceof TestNetworkCallback) { return ((TestNetworkCallback)networkCallback).getResponse(); } JSONRPC2Request jsonrpc2Request = (JSONRPC2Request) jsonrpc2Requests[0]; int id = (...
protected JSONRPC2Response doInBackground(Object... jsonrpc2Requests) { if(networkCallback instanceof TestNetworkCallback) { return ((TestNetworkCallback)networkCallback).getResponse(); } JSONRPC2Request jsonrpc2Request = (JSONRPC2Request) jsonrpc2Requests[0]; int id = (...
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index 6b4d3f4a..d9017dab 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,1244 +1,1239 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
false
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/scheduler/src/com/njtransit/JumpDialog.java b/scheduler/src/com/njtransit/JumpDialog.java index f0a5eb2..11051e7 100644 --- a/scheduler/src/com/njtransit/JumpDialog.java +++ b/scheduler/src/com/njtransit/JumpDialog.java @@ -1,119 +1,116 @@ package com.njtransit; import android.app.Dialog; import andro...
false
true
public void onAttachedToWindow() { LinearLayout linearLayout = (LinearLayout) findViewById(R.id.jumper_root); for (int i = 0; i < linearLayout.getChildCount(); i++) { LinearLayout row = (LinearLayout) linearLayout.getChildAt(i); for (int j = 0; j < row.getChildCount(); j++) { final TextView text = (TextV...
public void onAttachedToWindow() { LinearLayout linearLayout = (LinearLayout) findViewById(R.id.jumper_root); for (int i = 0; i < linearLayout.getChildCount(); i++) { LinearLayout row = (LinearLayout) linearLayout.getChildAt(i); for (int j = 0; j < row.getChildCount(); j++) { final TextView text = (TextV...
diff --git a/jupload2/src/wjhk/jupload2/upload/DefaultFileUploadThread.java b/jupload2/src/wjhk/jupload2/upload/DefaultFileUploadThread.java index 8ad7b84..8cf5124 100644 --- a/jupload2/src/wjhk/jupload2/upload/DefaultFileUploadThread.java +++ b/jupload2/src/wjhk/jupload2/upload/DefaultFileUploadThread.java @@ -1,570 +...
true
true
final private void doChunkedUpload(final long totalContentLength, final long totalFileLength) throws JUploadException { boolean bLastChunk = false; int chunkPart = 0; long contentLength = 0; long thisChunkSize = 0; // No more than one file, when in chunk mode. ...
final private void doChunkedUpload(final long totalContentLength, final long totalFileLength) throws JUploadException { boolean bLastChunk = false; int chunkPart = 0; long contentLength = 0; long thisChunkSize = 0; // No more than one file, when in chunk mode. ...
diff --git a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/commons/ui/ControlListItem.java b/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/commons/ui/ControlListItem.java index 3bd081f9..b2a67fa0 100644 --- a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/commons/ui/ControlListI...
true
true
private MouseTrackAdapter doCreateMouseTrackListener() { return new MouseTrackAdapter() { private int enterCount; @Override public void mouseEnter(MouseEvent e) { enterCount++; updateHotState(); } @Override public void mouseExit(MouseEvent e) { enterCount--; getDisplay().asyncExec...
private MouseTrackAdapter doCreateMouseTrackListener() { return new MouseTrackAdapter() { private int enterCount; @Override public void mouseEnter(MouseEvent e) { enterCount++; updateHotState(); } @Override public void mouseExit(MouseEvent e) { enterCount--; getDisplay().asyncExec...
diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/TagSettingsActivity.java b/astrid/plugin-src/com/todoroo/astrid/actfm/TagSettingsActivity.java index 2346be316..66f484920 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/TagSettingsActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/TagSettingsA...
true
true
private void saveSettings() { setResult(RESULT_OK); String oldName = tagData.getValue(TagData.NAME); String newName = tagName.getText().toString(); if (TextUtils.isEmpty(newName)) { return; } boolean nameChanged = !oldName.equals(newName); TagSer...
private void saveSettings() { setResult(RESULT_OK); String oldName = tagData.getValue(TagData.NAME); String newName = tagName.getText().toString(); if (TextUtils.isEmpty(newName)) { return; } boolean nameChanged = !oldName.equals(newName); TagSer...
diff --git a/src/test/java/AbstractPETest.java b/src/test/java/AbstractPETest.java index 26a3651..254353a 100644 --- a/src/test/java/AbstractPETest.java +++ b/src/test/java/AbstractPETest.java @@ -1,73 +1,73 @@ import commands.CommandScheduler; import commands.entities.ExecutionResult; import commands.service.Buffer...
true
true
public void testCommands() throws SQLException { ExecutorService updaterPool = Executors.newSingleThreadExecutor(); updaterPool.execute(bufferedUpdater); updaterPool.shutdown(); for (int i = 0; i < 10; i++) { schedulerPool.execute((CommandScheduler)applicationContext.getB...
public void testCommands() throws SQLException { ExecutorService updaterPool = Executors.newSingleThreadExecutor(); updaterPool.execute(bufferedUpdater); updaterPool.shutdown(); for (int i = 0; i < 100; i++) { schedulerPool.execute((CommandScheduler)applicationContext.get...
diff --git a/core/src/processing/core/PGraphics.java b/core/src/processing/core/PGraphics.java index 7b6767d50..a908e175f 100644 --- a/core/src/processing/core/PGraphics.java +++ b/core/src/processing/core/PGraphics.java @@ -1,7551 +1,7551 @@ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* ...
true
true
public void text(char[] chars, int start, int stop, float x, float y) { // If multiple lines, sum the height of the additional lines float high = 0; //-textAscent(); for (int i = start; i < stop; i++) { if (chars[i] == '\n') { high += textLeading; } } if (textAlignY == CENTER) ...
public void text(char[] chars, int start, int stop, float x, float y) { // If multiple lines, sum the height of the additional lines float high = 0; //-textAscent(); for (int i = start; i < stop; i++) { if (chars[i] == '\n') { high += textLeading; } } if (textAlignY == CENTER) ...
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/TriangulateRelations.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/TriangulateRelations.java index 85216ae0..94a5cfc3 100644 --- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/TriangulateRelations.java +++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/TriangulateRelations.java @@ -1,183...
true
true
private void convertAreasToTriangles() { HashMap<Long, Way> wayHashMap = parser.getWayHashMap(); ArrayList<Way> removeWays = new ArrayList<Way>(); Way firstWay = null; Iterator<Relation> i = parser.getRelations().iterator(); rel: while (i.hasNext()) { firstWay = null; Relation r = i.next(); // System...
private void convertAreasToTriangles() { HashMap<Long, Way> wayHashMap = parser.getWayHashMap(); ArrayList<Way> removeWays = new ArrayList<Way>(); Way firstWay = null; Iterator<Relation> i = parser.getRelations().iterator(); rel: while (i.hasNext()) { firstWay = null; Relation r = i.next(); // System...
diff --git a/src/main/Main.java b/src/main/Main.java index be2cf34..53468f7 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -1,32 +1,50 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package main; import logic.*; import cli.*; import java.uti...
false
true
public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Hello Player, what is your name?"); String pName = in.nextLine(); System.out.println("Hello " + pName + ", what will your dragon be named?"); String dName = in.nextLine(); ...
public static void main(String[] args) { File file = new File("./intro"); Scanner in = new Scanner(System.in); Scanner out = new Scanner(file); while (out.hasNext()) { System.out.println(out.nextLine()); } String pName = in.nextLine(); Syst...
diff --git a/izpack-installer/src/main/java/com/izforge/izpack/installer/console/ConsoleInstaller.java b/izpack-installer/src/main/java/com/izforge/izpack/installer/console/ConsoleInstaller.java index d2c8b00e1..086c3802d 100644 --- a/izpack-installer/src/main/java/com/izforge/izpack/installer/console/ConsoleInstaller....
false
true
protected void iterateAndPerformAction(String strAction) throws Exception { VariableSubstitutor subst = new VariableSubstitutorImpl(this.installdata.getVariables()); // Get dynamic variables immediately for being able to use them as // variable condition in installerrequirements ...
protected void iterateAndPerformAction(String strAction) throws Exception { VariableSubstitutor subst = new VariableSubstitutorImpl(this.installdata.getVariables()); // Get dynamic variables immediately for being able to use them as // variable condition in installerrequirements ...
diff --git a/src/com/koushikdutta/desktopsms/MainActivity.java b/src/com/koushikdutta/desktopsms/MainActivity.java index 73798cf..8eca0a4 100644 --- a/src/com/koushikdutta/desktopsms/MainActivity.java +++ b/src/com/koushikdutta/desktopsms/MainActivity.java @@ -1,399 +1,399 @@ package com.koushikdutta.desktopsms; im...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String account = mSettings.getString("account"); if (mSettings.getLong("last_missed_call", 0) == 0) { mSettings.setLong("last_missed_call", System.currentTimeMillis()); } ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String account = mSettings.getString("account"); if (mSettings.getLong("last_missed_call", 0) == 0) { mSettings.setLong("last_missed_call", System.currentTimeMillis()); } ...
diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 13880cb..49b592a 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -1,1438 +1,1439 @@ /* * DavMail POP/IMAP/SMTP/CalDav/LDAP Exchange Gateway * Copyright ...
false
true
public void run() { String line; String commandId = null; IMAPTokenizer tokens; try { ExchangeSessionFactory.checkConfig(); sendClient("* OK [CAPABILITY IMAP4REV1 AUTH=LOGIN] IMAP4rev1 DavMail server ready"); for (; ;) { line = read...
public void run() { String line; String commandId = null; IMAPTokenizer tokens; try { ExchangeSessionFactory.checkConfig(); sendClient("* OK [CAPABILITY IMAP4REV1 AUTH=LOGIN] IMAP4rev1 DavMail server ready"); for (; ;) { line = read...
diff --git a/syncronizer/src/org/sync/GitImporter.java b/syncronizer/src/org/sync/GitImporter.java index 86c04bf..757dfe5 100644 --- a/syncronizer/src/org/sync/GitImporter.java +++ b/syncronizer/src/org/sync/GitImporter.java @@ -1,378 +1,378 @@ /*************************************************************************...
true
true
public void generateFastImportStream(View view, long vcTime, String folderPath, String domain) { // http://techpubs.borland.com/starteam/2009/en/sdk_documentation/api/com/starbase/starteam/CheckoutManager.html // said old version (passed in /opt/StarTeamCP_2005r2/lib/starteam80.jar) "Deprecated. Use View.createChe...
public void generateFastImportStream(View view, long vcTime, String folderPath, String domain) { // http://techpubs.borland.com/starteam/2009/en/sdk_documentation/api/com/starbase/starteam/CheckoutManager.html // said old version (passed in /opt/StarTeamCP_2005r2/lib/starteam80.jar) "Deprecated. Use View.createChe...
diff --git a/operator/vectorbinarize/src/main/java/jaitools/media/jai/vectorbinarize/VectorBinarizeRIF.java b/operator/vectorbinarize/src/main/java/jaitools/media/jai/vectorbinarize/VectorBinarizeRIF.java index 0936433c..a70d3fe6 100644 --- a/operator/vectorbinarize/src/main/java/jaitools/media/jai/vectorbinarize/Vecto...
true
true
public RenderedImage create(ParameterBlock paramBlock, RenderingHints renderHints) { int minx = paramBlock.getIntParameter(VectorBinarizeDescriptor.MINX_ARG); int miny = paramBlock.getIntParameter(VectorBinarizeDescriptor.MINY_ARG); int width = paramBlock.getIntParameter...
public RenderedImage create(ParameterBlock paramBlock, RenderingHints renderHints) { int minx = paramBlock.getIntParameter(VectorBinarizeDescriptor.MINX_ARG); int miny = paramBlock.getIntParameter(VectorBinarizeDescriptor.MINY_ARG); int width = paramBlock.getIntParameter...
diff --git a/Courseworks/201112/Two/Rows.java b/Courseworks/201112/Two/Rows.java index 3fd4749..59b7bee 100644 --- a/Courseworks/201112/Two/Rows.java +++ b/Courseworks/201112/Two/Rows.java @@ -1,103 +1,103 @@ // Oliver Kullmann, 21.11.2011 (Swansea) class Rows { public static int[][][] list_rows(final int k, f...
false
true
public static int[][][] list_rows(final int k, final int m, final int n, final int r) { assert(k >= 2); assert(m >= 1); assert(n >= 1); assert(k <= m || k <= n); assert(r >= 1); int[][][] rows = new int[r][][]; int row_index = 0; // horizontal rows: for (int i = 0; i < m; ++i) ...
public static int[][][] list_rows(final int k, final int m, final int n, final int r) { assert(k >= 2); assert(m >= 1); assert(n >= 1); assert(k <= m || k <= n); assert(r >= 1); int[][][] rows = new int[r][][]; int row_index = 0; // horizontal rows: for (int i = 0; i < m; ++i) ...
diff --git a/fake-starteam/src/com/starbase/starteam/Folder.java b/fake-starteam/src/com/starbase/starteam/Folder.java index 3ad9b9d..76fe051 100644 --- a/fake-starteam/src/com/starbase/starteam/Folder.java +++ b/fake-starteam/src/com/starbase/starteam/Folder.java @@ -1,219 +1,219 @@ /*********************************...
true
true
protected void loadFolderProperties() { FileInputStream fin = null; try { File folderProperty = new File(holdingPlace.getCanonicalPath() + File.separator + FOLDER_PROPERTIES); if(folderProperty.exists()) { fin = new FileInputStream(folderProperty); itemProperties.load(fin); int id = Integer.parse...
protected void loadFolderProperties() { FileInputStream fin = null; try { File folderProperty = new File(holdingPlace.getCanonicalPath() + File.separator + FOLDER_PROPERTIES); if(folderProperty.exists()) { fin = new FileInputStream(folderProperty); itemProperties.load(fin); int id = Integer.parse...
diff --git a/ScoreKeeper/src/net/erickelly/score/DatabaseHelper.java b/ScoreKeeper/src/net/erickelly/score/DatabaseHelper.java index 5b5a8d4..57eda6b 100644 --- a/ScoreKeeper/src/net/erickelly/score/DatabaseHelper.java +++ b/ScoreKeeper/src/net/erickelly/score/DatabaseHelper.java @@ -1,33 +1,33 @@ package net.erickell...
true
true
public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE " + TABLE_NAME + " (" + _ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " + NAME + " STRING," + SCORE + " INTEGER);"); }
public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE " + TABLE_NAME + " (" + _ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " + NAME + " TEXT," + SCORE + " INTEGER);"); }
diff --git a/org.jcryptool.visual.extendedrsa/src/org/jcryptool/visual/extendedrsa/ExtendedRSA_Visual.java b/org.jcryptool.visual.extendedrsa/src/org/jcryptool/visual/extendedrsa/ExtendedRSA_Visual.java index 914b324..87d0828 100644 --- a/org.jcryptool.visual.extendedrsa/src/org/jcryptool/visual/extendedrsa/ExtendedRSA...
true
true
public void createPartControl(Composite parent) { //make the composite scrollable sc = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); composite = new Composite(sc, SWT.NONE); sc.setContent(composite); sc.setExpandHorizontal(true); sc.setExpandVertical(true); sc.setMinSize(compo...
public void createPartControl(Composite parent) { //make the composite scrollable sc = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); composite = new Composite(sc, SWT.NONE); sc.setContent(composite); sc.setExpandHorizontal(true); sc.setExpandVertical(true); sc.setMinSize(compo...
diff --git a/extend/src/ar/com/ergio/model/LAR_Callouts.java b/extend/src/ar/com/ergio/model/LAR_Callouts.java index 40ecbfa..fdac969 100644 --- a/extend/src/ar/com/ergio/model/LAR_Callouts.java +++ b/extend/src/ar/com/ergio/model/LAR_Callouts.java @@ -1,132 +1,132 @@ /*************************************************...
true
true
public String copyLines(final Properties ctx, final int windowNo, final GridTab mTab, final GridField mField, Object value) throws AdempiereSystemError { int Source_Invoice_ID = (Integer) mTab.getValue("Source_Invoice_ID"); if (Source_Invoice_ID == 0) return ""; ...
public String copyLines(final Properties ctx, final int windowNo, final GridTab mTab, final GridField mField, Object value) throws AdempiereSystemError { Integer Source_Invoice_ID = (Integer)value; if (Source_Invoice_ID == null || Source_Invoice_ID.intValue() == 0) return...
diff --git a/de.blizzy.documentr/src/test/java/de/blizzy/documentr/markdown/macro/impl/TwitterMacroTest.java b/de.blizzy.documentr/src/test/java/de/blizzy/documentr/markdown/macro/impl/TwitterMacroTest.java index a6c882f..234e5b7 100644 --- a/de.blizzy.documentr/src/test/java/de/blizzy/documentr/markdown/macro/impl/Twi...
true
true
public void getHtml() { when(context.getParameters()).thenReturn("\"searchParams\""); //$NON-NLS-1$ String html = runnable.getHtml(context); @SuppressWarnings("nls") String expectedHtml = "<script charset=\"UTF-8\" src=\"http://widgets.twimg.com/j/2/widget.js\"></script>\n" + "<script>\n" + "new TWTR.Wi...
public void getHtml() { when(context.getParameters()).thenReturn("\"searchParams\""); //$NON-NLS-1$ String html = runnable.getHtml(context); @SuppressWarnings("nls") String expectedHtml = "<script charset=\"UTF-8\" src=\"http://widgets.twimg.com/j/2/widget.js\"></script>\n" + "<script>\n" + "new TWTR.Wi...
diff --git a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/data/crossfold/CrossfoldCommand.java b/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/data/crossfold/CrossfoldCommand.java index 4ad45f01b..d72edccef 100644 --- a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/data/crossfold/CrossfoldComma...
true
true
protected void createTTFiles(DataAccessObject dao, Holdout mode, Long2IntMap splits) throws CommandException { File[] trainFiles = getFiles(trainFilePattern); File[] testFiles = getFiles(testFilePattern); TableWriter[] trainWriters = new TableWriter[partitionCount]; TableWriter[] tes...
protected void createTTFiles(DataAccessObject dao, Holdout mode, Long2IntMap splits) throws CommandException { File[] trainFiles = getFiles(getTestPattern()); File[] testFiles = getFiles(getTestPattern()); TableWriter[] trainWriters = new TableWriter[partitionCount]; TableWriter[] te...
diff --git a/source/photon/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/actions/CancelReplaceOrderActionDelegate.java b/source/photon/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/actions/CancelReplaceOrderActionDelegate.java index 5f90073c3..6b60613cf 100644 --- a/sourc...
true
true
public void runWithEvent(IAction arg0, Event arg1) { Object item = selection.getFirstElement(); Message oldMessage = null; if (item instanceof Message) { oldMessage = (Message) item; } else if (item instanceof ReportHolder) { ReportHolder holder = (ReportHolder) item; oldMessage = holder.getMessag...
public void runWithEvent(IAction arg0, Event arg1) { Object item = selection.getFirstElement(); Message oldMessage = null; if (item instanceof Message) { oldMessage = (Message) item; } else if (item instanceof ReportHolder) { ReportHolder holder = (ReportHolder) item; oldMessage = holder.getMessag...
diff --git a/src/test/java/com/github/rnewson/couchdb/lucene/LuceneGatewayTest.java b/src/test/java/com/github/rnewson/couchdb/lucene/LuceneGatewayTest.java index 44fc560..a4fe3f2 100644 --- a/src/test/java/com/github/rnewson/couchdb/lucene/LuceneGatewayTest.java +++ b/src/test/java/com/github/rnewson/couchdb/lucene/Lu...
true
true
private void search(final boolean realtime, final int expectedCount) throws IOException { gateway = new LuceneGateway(dir, realtime); gateway.withWriter(sig, new WriterCallback<Void>() { @Override public Void callback(final IndexWriter writer) throws IOException { ...
private void search(final boolean realtime, final int expectedCount) throws IOException { gateway = new LuceneGateway(dir, realtime); gateway.withWriter(sig, new WriterCallback<Void>() { @Override public Void callback(final IndexWriter writer) throws IOException { ...
diff --git a/dspace-api/src/main/java/org/dspace/browse/BrowseIndex.java b/dspace-api/src/main/java/org/dspace/browse/BrowseIndex.java index f8ca19b8e..a90db7af6 100644 --- a/dspace-api/src/main/java/org/dspace/browse/BrowseIndex.java +++ b/dspace-api/src/main/java/org/dspace/browse/BrowseIndex.java @@ -1,790 +1,790 @@...
false
true
private BrowseIndex(String definition, int number) throws BrowseException { boolean valid = true; this.number = number; String rx = "(\\w+):(\\w+):([\\w\\.\\*]+):?(\\w*)"; Pattern pattern = Pattern.compile(rx); Matcher matcher = pattern.matcher(definition); ...
private BrowseIndex(String definition, int number) throws BrowseException { boolean valid = true; this.number = number; String rx = "(\\w+):(\\w+):([\\w\\.\\*]+):?(\\w*)"; Pattern pattern = Pattern.compile(rx); Matcher matcher = pattern.matcher(definition); ...
diff --git a/spoon/src/main/java/com/squareup/spoon/ExecutionSummary.java b/spoon/src/main/java/com/squareup/spoon/ExecutionSummary.java index 5bcf32c..487898f 100644 --- a/spoon/src/main/java/com/squareup/spoon/ExecutionSummary.java +++ b/spoon/src/main/java/com/squareup/spoon/ExecutionSummary.java @@ -1,287 +1,284 @@...
false
true
public void writeHtml() { for (String asset : ASSETS) { copyResourceToOutput(asset, output); } DefaultMustacheFactory mustacheFactory = new DefaultMustacheFactory(); Mustache summary = mustacheFactory.compile("index.html"); Mustache device = mustacheFactory.compile("index-device.html"); ...
public void writeHtml() { for (String asset : ASSETS) { copyResourceToOutput(asset, output); } DefaultMustacheFactory mustacheFactory = new DefaultMustacheFactory(); Mustache summary = mustacheFactory.compile("index.html"); Mustache device = mustacheFactory.compile("index-device.html"); ...
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index ab52c4eea..9e43dd81b 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -1,4298 +1,4298 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Licens...
true
true
public void onDrop(final DragObject d) { mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, mDragViewVisualCenter); CellLayout dropTargetLayout = mDropToLayout; // We want the point to be mapped to the dragTarget. if (dropTar...
public void onDrop(final DragObject d) { mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, mDragViewVisualCenter); CellLayout dropTargetLayout = mDropToLayout; // We want the point to be mapped to the dragTarget. if (dropTar...
diff --git a/src/main/java/org/spout/api/plugin/PluginDescriptionFile.java b/src/main/java/org/spout/api/plugin/PluginDescriptionFile.java index 8d7994f2c..f2c96645b 100644 --- a/src/main/java/org/spout/api/plugin/PluginDescriptionFile.java +++ b/src/main/java/org/spout/api/plugin/PluginDescriptionFile.java @@ -1,316 +...
true
true
private void load(Map<String, Object> map) throws InvalidDescriptionFileException { try { this.name = (String) map.get("name"); if (!this.name.matches("^[A-Za-z0-9 _.-]+$")) { throw new InvalidDescriptionFileException("The field 'name' in plugin.yml contains invalid characters."); } if (this.name.t...
private void load(Map<String, Object> map) throws InvalidDescriptionFileException { try { this.name = (String) map.get("name"); if (!this.name.matches("^[A-Za-z0-9 _.-]+$")) { throw new InvalidDescriptionFileException("The field 'name' in plugin.yml contains invalid characters."); } if (this.name.t...
diff --git a/xutils/src/main/java/zcu/xutil/sql/DaoProxy.java b/xutils/src/main/java/zcu/xutil/sql/DaoProxy.java index b74672f..fae1340 100644 --- a/xutils/src/main/java/zcu/xutil/sql/DaoProxy.java +++ b/xutils/src/main/java/zcu/xutil/sql/DaoProxy.java @@ -1,207 +1,207 @@ /* * Copyright 2009 zaichu xiao * * Lice...
true
true
Define(Method m) { int length = Util.getParamsLength(m); Select select = m.getAnnotation(Select.class); Class<?> retype = m.getReturnType(), clazz; if (select != null) { npsql = new NpSQL(select.value()); if (retype == Collection.class || retype == List.class) { collection = true; if (le...
Define(Method m) { int length = Util.getParamsLength(m); Select select = m.getAnnotation(Select.class); Class<?> retype = m.getReturnType(), clazz; if (select != null) { npsql = new NpSQL(select.value()); if (retype == Collection.class || retype == List.class) { collection = true; if (le...
diff --git a/svgEpub/src/Epub.java b/svgEpub/src/Epub.java index b6104c7..3e1c0f8 100644 --- a/svgEpub/src/Epub.java +++ b/svgEpub/src/Epub.java @@ -1,79 +1,81 @@ import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; ...
true
true
private void createPages(Book book, Enumeration<File> list) throws IOException { InputStream is = mainPanel.class.getResourceAsStream("/resources/page_template.xhtml"); String template = convertInputStreamToString(is); int page = 1; while (list.hasMoreElements()) { String pageName = String.format("page_...
private void createPages(Book book, Enumeration<File> list) throws IOException { InputStream is = mainPanel.class.getResourceAsStream("/resources/page_template.xhtml"); String template = convertInputStreamToString(is); int page = 1; while (list.hasMoreElements()) { String pageName = String.format("page_...
diff --git a/Server/src/main/java/jk_5/nailed/server/command/CommandTP.java b/Server/src/main/java/jk_5/nailed/server/command/CommandTP.java index 51b6990..d0b7c08 100644 --- a/Server/src/main/java/jk_5/nailed/server/command/CommandTP.java +++ b/Server/src/main/java/jk_5/nailed/server/command/CommandTP.java @@ -1,144 +...
false
true
public void process(ICommandSender sender, String[] args){ List<Pair<Entity, TeleportOptions>> options = Lists.newArrayList(); try{ if(args.length == 1){ // /tp destinationPlayer EntityPlayer teleporting; if(sender instanceof EntityPlayer)...
public void process(ICommandSender sender, String[] args){ List<Pair<Entity, TeleportOptions>> options = Lists.newArrayList(); try{ if(args.length == 1){ // /tp destinationPlayer EntityPlayer teleporting; if(sender instanceof EntityPlayer)...
diff --git a/src/test/java/net/boreeas/irc/ModeChangeBuilderTest.java b/src/test/java/net/boreeas/irc/ModeChangeBuilderTest.java index 806aefd..be1a834 100644 --- a/src/test/java/net/boreeas/irc/ModeChangeBuilderTest.java +++ b/src/test/java/net/boreeas/irc/ModeChangeBuilderTest.java @@ -1,76 +1,76 @@ /* * To change...
true
true
public void testFormat() { ModeChangeBuilder mcb = new ModeChangeBuilder(); mcb.addMode('a', "xyz"); mcb.addMode('b', "abc"); mcb.addMode('c', "123"); mcb.addMode('d'); mcb.addMode('e', "qwe"); mcb.addMode('f', "asd"); mcb.removeMode('A', "XYZ"); ...
public void testFormat() { ModeChangeBuilder mcb = new ModeChangeBuilder(); mcb.addMode('a', "xyz"); mcb.addMode('b', "abc"); mcb.addMode('c', "123"); mcb.addMode('d'); mcb.addMode('e', "qwe"); mcb.addMode('f', "asd"); mcb.removeMode('A', "XYZ"); ...
diff --git a/widgets/src/java/org/sakaiproject/jsf/renderer/InputRichTextRenderer.java b/widgets/src/java/org/sakaiproject/jsf/renderer/InputRichTextRenderer.java index 637e5a5..8fa28f7 100644 --- a/widgets/src/java/org/sakaiproject/jsf/renderer/InputRichTextRenderer.java +++ b/widgets/src/java/org/sakaiproject/jsf/ren...
true
true
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } String contextPath = context.getExternalContext().getRequestContextPath() + SCRIPT_PATH; String clientId = component.getClientId(context); R...
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } String contextPath = context.getExternalContext().getRequestContextPath() + SCRIPT_PATH; String clientId = component.getClientId(context); R...
diff --git a/modules/plugin/imagemosaic/src/main/java/org/geotools/gce/imagemosaic/RasterLayerResponse.java b/modules/plugin/imagemosaic/src/main/java/org/geotools/gce/imagemosaic/RasterLayerResponse.java index 6f2053e12..7e2431e48 100644 --- a/modules/plugin/imagemosaic/src/main/java/org/geotools/gce/imagemosaic/Raste...
false
true
private RenderedImage prepareResponse() throws DataSourceException { try { // // prepare the params for executing a mosaic operation. // // It might important to set the mosaic type to blend otherwise // sometimes strange results jump in. // select the relevant overview, notice that at this t...
private RenderedImage prepareResponse() throws DataSourceException { try { // // prepare the params for executing a mosaic operation. // // It might important to set the mosaic type to blend otherwise // sometimes strange results jump in. // select the relevant overview, notice that at this t...
diff --git a/main/src/cgeo/geocaching/MainActivity.java b/main/src/cgeo/geocaching/MainActivity.java index 6d8999198..ba7795a65 100644 --- a/main/src/cgeo/geocaching/MainActivity.java +++ b/main/src/cgeo/geocaching/MainActivity.java @@ -1,726 +1,727 @@ package cgeo.geocaching; import butterknife.ButterKnife; impor...
true
true
private void init() { if (initialized) { return; } initialized = true; Settings.setLanguage(Settings.isUseEnglish()); findOnMap.setClickable(true); findOnMap.setOnClickListener(new OnClickListener() { @Override public void onClic...
private void init() { if (initialized) { return; } initialized = true; Settings.setLanguage(Settings.isUseEnglish()); findOnMap.setClickable(true); findOnMap.setOnClickListener(new OnClickListener() { @Override public void onClic...
diff --git a/legislation/uriGenerator/src/main/java/cz/cuni/mff/xrg/intlib/extractor/legislation/decisions/uriGenerator/link/Work.java b/legislation/uriGenerator/src/main/java/cz/cuni/mff/xrg/intlib/extractor/legislation/decisions/uriGenerator/link/Work.java index 7a9359b7..f0e487b7 100644 --- a/legislation/uriGenerato...
false
true
public static LinkedList<Work> parse(String expression, WorkType type, LawDocument law, Integer referedId) { // results LinkedList<Work> result = new LinkedList<>(); String originalExpression = expression; expression = expression.toLowerCase(); String country = null;...
public static LinkedList<Work> parse(String expression, WorkType type, LawDocument law, Integer referedId) { // results LinkedList<Work> result = new LinkedList<>(); String originalExpression = expression; expression = expression.toLowerCase(); String country = null;...
diff --git a/src/org/apache/xalan/templates/ElemChoose.java b/src/org/apache/xalan/templates/ElemChoose.java index 6ca20098..c75cbae5 100644 --- a/src/org/apache/xalan/templates/ElemChoose.java +++ b/src/org/apache/xalan/templates/ElemChoose.java @@ -1,204 +1,204 @@ /* * The Apache Software License, Version 1.1 * ...
true
true
public void execute( TransformerImpl transformer, Node sourceNode, QName mode) throws TransformerException { if (TransformerImpl.S_DEBUG) transformer.getTraceManager().fireTraceEvent(sourceNode, mode, this); boolean found = false; for (ElemTemplateElement childElem = getFi...
public void execute( TransformerImpl transformer, Node sourceNode, QName mode) throws TransformerException { if (TransformerImpl.S_DEBUG) transformer.getTraceManager().fireTraceEvent(sourceNode, mode, this); boolean found = false; for (ElemTemplateElement childElem = getFi...
diff --git a/gdx/src/com/badlogic/gdx/graphics/g2d/PolygonRegion.java b/gdx/src/com/badlogic/gdx/graphics/g2d/PolygonRegion.java index ea4285c39..dc28b63cf 100644 --- a/gdx/src/com/badlogic/gdx/graphics/g2d/PolygonRegion.java +++ b/gdx/src/com/badlogic/gdx/graphics/g2d/PolygonRegion.java @@ -1,67 +1,67 @@ /***********...
true
true
public PolygonRegion (TextureRegion region, float[] vertices, short[] triangles) { this.region = region; this.vertices = vertices; this.triangles = triangles; float[] textureCoords = this.textureCoords = new float[vertices.length]; float u = region.u, v = region.u; float uvWidth = region.u2 - u; float u...
public PolygonRegion (TextureRegion region, float[] vertices, short[] triangles) { this.region = region; this.vertices = vertices; this.triangles = triangles; float[] textureCoords = this.textureCoords = new float[vertices.length]; float u = region.u, v = region.v; float uvWidth = region.u2 - u; float u...
diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/VirtualDirectoryNode.java b/Core/src/org/sleuthkit/autopsy/datamodel/VirtualDirectoryNode.java index 0bc44c0c8..b12f9d578 100644 --- a/Core/src/org/sleuthkit/autopsy/datamodel/VirtualDirectoryNode.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/VirtualDirectoryN...
true
true
private static void fillPropertyMap(Map<String, Object> map, VirtualDirectory content) { String path = ""; try { path = content.getUniquePath(); } catch (TskCoreException ex) { logger.log(Level.SEVERE, "Except while calling Content.getUniquePath() on " + cont...
private static void fillPropertyMap(Map<String, Object> map, VirtualDirectory content) { String path = ""; try { path = content.getUniquePath(); } catch (TskCoreException ex) { logger.log(Level.SEVERE, "Except while calling Content.getUniquePath() on " + cont...
diff --git a/src/com/itmill/toolkit/demo/TableDemo.java b/src/com/itmill/toolkit/demo/TableDemo.java index 361760ba3..2c6fa9dea 100644 --- a/src/com/itmill/toolkit/demo/TableDemo.java +++ b/src/com/itmill/toolkit/demo/TableDemo.java @@ -1,199 +1,199 @@ package com.itmill.toolkit.demo; import java.sql.SQLException; ...
true
true
public void init() { Window main = new Window("Table demo"); setMainWindow(main); // set the application to use Corporate -theme setTheme("corporate"); // Add link back to index.html main.addComponent(menuLink); // create demo database sampleDatabase = new SampleDatabase(); // Main window contain...
public void init() { Window main = new Window("Table demo"); setMainWindow(main); // set the application to use Corporate -theme setTheme("corporate"); // Add link back to index.html main.addComponent(menuLink); // create demo database sampleDatabase = new SampleDatabase(); // Main window contain...
diff --git a/web/src/test/java/org/mule/galaxy/web/server/RegistryServiceTest.java b/web/src/test/java/org/mule/galaxy/web/server/RegistryServiceTest.java index dd4b769d..90fa6329 100755 --- a/web/src/test/java/org/mule/galaxy/web/server/RegistryServiceTest.java +++ b/web/src/test/java/org/mule/galaxy/web/server/Regist...
true
true
public void testArtifactOperations() throws Exception { Collection workspaces = gwtRegistry.getWorkspaces(); assertEquals(1, workspaces.size()); Collection artifactTypes = gwtRegistry.getArtifactTypes(); assertTrue(artifactTypes.size() > 0); Collection artif...
public void testArtifactOperations() throws Exception { Collection workspaces = gwtRegistry.getWorkspaces(); assertEquals(1, workspaces.size()); Collection artifactTypes = gwtRegistry.getArtifactTypes(); assertTrue(artifactTypes.size() > 0); Collection artif...
diff --git a/GiaiPTB1Test.java b/GiaiPTB1Test.java index ac09a9b..6c0a1d1 100644 --- a/GiaiPTB1Test.java +++ b/GiaiPTB1Test.java @@ -1,21 +1,21 @@ import static org.junit.Assert.*; import org.junit.Test; public class GiaiPTB1Test { @Test public void test1() { GiaiPTB1 tester = new GiaiPTB1(); - ass...
true
true
public void test1() { GiaiPTB1 tester = new GiaiPTB1(); assertEquals("Must be -1", 1, tester.giaiPTB1(1, -1)); }
public void test1() { GiaiPTB1 tester = new GiaiPTB1(); assertEquals("Must be 1", 1, tester.giaiPTB1(1, -1)); }
diff --git a/ttools/src/main/uk/ac/starlink/ttools/join/MatchEngineParameter.java b/ttools/src/main/uk/ac/starlink/ttools/join/MatchEngineParameter.java index 589e6d4a4..7fdb8626b 100644 --- a/ttools/src/main/uk/ac/starlink/ttools/join/MatchEngineParameter.java +++ b/ttools/src/main/uk/ac/starlink/ttools/join/MatchEngi...
true
true
public void setValueFromString( Environment env, String stringVal ) throws TaskException { /* Get the unconfigured engine corresponding to this parameter's * string value. */ String name = stringVal.toLowerCase(); MatchEngine engine = createEngine( name ); /* S...
public void setValueFromString( Environment env, String stringVal ) throws TaskException { /* Get the unconfigured engine corresponding to this parameter's * string value. */ String name = stringVal.toLowerCase(); MatchEngine engine = createEngine( name ); /* S...
diff --git a/ide/org.codehaus.groovy.eclipse.dsl/src/org/codehaus/groovy/eclipse/dsl/pointcuts/GroovyDSLDContext.java b/ide/org.codehaus.groovy.eclipse.dsl/src/org/codehaus/groovy/eclipse/dsl/pointcuts/GroovyDSLDContext.java index 0edac7286..0269b3259 100644 --- a/ide/org.codehaus.groovy.eclipse.dsl/src/org/codehaus/gr...
false
true
public GroovyDSLDContext(String[] projectNatures, String fullPathName, String packageRootPath) { this.fullPathName = fullPathName; this.packageRootPath = packageRootPath; if (fullPathName != null) { int lastDot = fullPathName.lastIndexOf('/'); this.simpleFileName = fu...
public GroovyDSLDContext(String[] projectNatures, String fullPathName, String packageRootPath) { this.fullPathName = fullPathName; this.packageRootPath = packageRootPath; if (fullPathName != null) { int lastDot = fullPathName.lastIndexOf('/'); this.simpleFileName = fu...
diff --git a/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/CDISeamResourceLoadingHyperlinkDetector.java b/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/CDISeamResourceLoadingHyperlinkDetector.java index fe7e9b684..66d559877 ...
true
true
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks) { ITextEditor textEditor= (ITextEditor)getAdapter(ITextEditor.class); if (region == null || !(textEditor instanceof JavaEditor)) return null; int offset = region.getOffset(); ITypeRoot in...
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks) { ITextEditor textEditor= (ITextEditor)getAdapter(ITextEditor.class); if (region == null || !(textEditor instanceof JavaEditor)) return null; int offset = region.getOffset(); ITypeRoot in...
diff --git a/java/Transxchange2GoogleTransit/src/transxchange2GoogleTransit/handler/TransxchangeStops.java b/java/Transxchange2GoogleTransit/src/transxchange2GoogleTransit/handler/TransxchangeStops.java index 2c85277..5a0f431 100755 --- a/java/Transxchange2GoogleTransit/src/transxchange2GoogleTransit/handler/Transxchan...
true
true
public void endElement (String uri, String name, String qName) { int i; boolean hot; if (niceString == null || niceString.length() == 0) return; if (key.equals(key_stops__stop_id[0]) && keyNested.equals(key_stops__stop_id[1])) { ValueList newStops__stop_id = new ValueList(key_stops__sto...
public void endElement (String uri, String name, String qName) { int i; boolean hot; if (niceString == null || niceString.length() == 0) return; if (key.equals(key_stops__stop_id[0]) && keyNested.equals(key_stops__stop_id[1])) { ValueList newStops__stop_id = new ValueList(key_stops__sto...
diff --git a/src/java/net/stbbs/spring/jruby/standalone/Main.java b/src/java/net/stbbs/spring/jruby/standalone/Main.java index 841bca4..62d1917 100644 --- a/src/java/net/stbbs/spring/jruby/standalone/Main.java +++ b/src/java/net/stbbs/spring/jruby/standalone/Main.java @@ -1,109 +1,109 @@ package net.stbbs.spring.jruby...
true
true
public static void main(String[] args) { Main me = new Main(); SocketConnector connector = new SocketConnector(); connector.setPort(8080); me.setConnectors(new SocketConnector[] {connector}); WebAppContext context = new WebAppContext(); context.setContextPath("/"); context.setResourceBase(WEBAPP_DIR);...
public static void main(String[] args) { Main me = new Main(); SocketConnector connector = new SocketConnector(); connector.setPort(8080); me.setConnectors(new SocketConnector[] {connector}); WebAppContext context = new WebAppContext(); context.setContextPath("/"); context.setResourceBase(WEBAPP_DIR);...
diff --git a/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/app/sh/ShClientSessionImpl.java b/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/app/sh/ShClientSessionImpl.java index 45f2b1b2..b07a8e51 100644 --- a/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/app/sh/ShClientSessionI...
true
true
public boolean handleEvent(StateEvent event) throws InternalException, OverloadException { try { sendAndStateLock.lock(); ShSessionState oldState = this.state; ShSessionState newState = this.state; try { Event localEvent = (Event) event; AppEvent answer = localEvent.getAnsw...
public boolean handleEvent(StateEvent event) throws InternalException, OverloadException { try { sendAndStateLock.lock(); ShSessionState oldState = this.state; ShSessionState newState = this.state; try { Event localEvent = (Event) event; AppEvent answer = localEvent.getAnsw...
diff --git a/src/symbolTable/types/SimpleType.java b/src/symbolTable/types/SimpleType.java index 7895673..801184a 100644 --- a/src/symbolTable/types/SimpleType.java +++ b/src/symbolTable/types/SimpleType.java @@ -1,38 +1,39 @@ package symbolTable.types; /** * * @author kostas */ public abstract class SimpleT...
true
true
public boolean equals(Object o){ if(o == null) return false; if(o instanceof SimpleType){ SimpleType st = (SimpleType) o; return this.name.equals(st.name); } return false; }
public boolean equals(Object o){ if(o == null) return false; if(o instanceof SimpleType){ if(super.equals((Type) o) == false) return false; SimpleType st = (SimpleType) o; return this.name.equals(st.name); } return false; }
diff --git a/framework/src/main/java/org/richfaces/resource/LookAheadObjectInputStream.java b/framework/src/main/java/org/richfaces/resource/LookAheadObjectInputStream.java index 76bd32865..7e05ab8c6 100644 --- a/framework/src/main/java/org/richfaces/resource/LookAheadObjectInputStream.java +++ b/framework/src/main/jav...
true
true
static void loadWhitelist() { Properties whitelistProperties = new Properties(); InputStream stream = null; try { stream = LookAheadObjectInputStream.class.getResourceAsStream("resource-serialization.properties"); whitelistProperties.load(stream); } catch (IO...
static void loadWhitelist() { Properties whitelistProperties = new Properties(); InputStream stream = null; try { stream = LookAheadObjectInputStream.class.getResourceAsStream("resource-serialization.properties"); whitelistProperties.load(stream); } catch (IO...
diff --git a/src/main/java/com/bergerkiller/bukkit/mw/MWPlayerFileData.java b/src/main/java/com/bergerkiller/bukkit/mw/MWPlayerFileData.java index 794ddb4..4b7798f 100644 --- a/src/main/java/com/bergerkiller/bukkit/mw/MWPlayerFileData.java +++ b/src/main/java/com/bergerkiller/bukkit/mw/MWPlayerFileData.java @@ -1,289 +...
true
true
public static void refreshState(Player player) { if (!MyWorlds.useWorldInventories) { // If not enabled, only do the post-load logic postLoad(player); return; } try { Object playerHandle = Conversion.toEntityHandle.convert(player); File source = getSaveFile(player); CommonTagCompound data = rea...
public static void refreshState(Player player) { if (!MyWorlds.useWorldInventories) { // If not enabled, only do the post-load logic postLoad(player); return; } try { Object playerHandle = Conversion.toEntityHandle.convert(player); File source = getSaveFile(player); CommonTagCompound data = rea...
diff --git a/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/test/XmlConfiguredJetty.java b/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/test/XmlConfiguredJetty.java index 6ff07272..89e03dd2 100644 --- a/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/test/XmlConfiguredJetty.java +++ b/jetty-deploy/src/t...
true
true
public XmlConfiguredJetty(String testname) throws IOException { xmlConfigurations = new ArrayList<URL>(); properties = new Properties(); String jettyHomeBase = MavenTestingUtils.getTargetTestingDir(testname).getAbsolutePath(); // Ensure we have a new (pristene) directory to work...
public XmlConfiguredJetty(String testname) throws IOException { xmlConfigurations = new ArrayList<URL>(); properties = new Properties(); String jettyHomeBase = MavenTestingUtils.getTargetTestingDir(testname).getAbsolutePath(); // Ensure we have a new (pristene) directory to work...
diff --git a/src/test/us/exultant/ahs/test/TestData.java b/src/test/us/exultant/ahs/test/TestData.java index 8cd4006..0c63155 100644 --- a/src/test/us/exultant/ahs/test/TestData.java +++ b/src/test/us/exultant/ahs/test/TestData.java @@ -1,85 +1,86 @@ /* * Copyright 2010, 2011 Eric Myhre <http://exultant.us> * *...
true
true
private TestData() { Random $r = new Random(); bb10m = ByteBuffer.allocate(1024 * 1024 * 10); // 10MB while (bb10m.hasRemaining()) bb10m.putInt($r.nextInt()); // yes, this relies on slightly unspoken alignment }
private TestData() { Random $r = new Random(); bb10m = ByteBuffer.allocate(1024 * 1024 * 10); // 10MB while (bb10m.hasRemaining()) bb10m.putInt($r.nextInt()); // yes, this relies on slightly unspoken alignment bb10m.rewind(); }
diff --git a/src/org/ohmage/feedback/FeedbackService.java b/src/org/ohmage/feedback/FeedbackService.java index 9ae019c..93edbc0 100644 --- a/src/org/ohmage/feedback/FeedbackService.java +++ b/src/org/ohmage/feedback/FeedbackService.java @@ -1,338 +1,337 @@ package org.ohmage.feedback; import java.io.File; import j...
false
true
protected void doWakefulWork(Intent intent) { // for the time being, we just pull all the surveys and update our feedback cache with them // FIXME: in the future, we should only download what we need...two strategies for that: // 1) maintain a timestamp of the most recent refresh and request only things after it...
protected void doWakefulWork(Intent intent) { // for the time being, we just pull all the surveys and update our feedback cache with them // FIXME: in the future, we should only download what we need...two strategies for that: // 1) maintain a timestamp of the most recent refresh and request only things after it...
diff --git a/chouette-core/src/main/java/fr/certu/chouette/dao/ChouetteDriverManagerDataSource.java b/chouette-core/src/main/java/fr/certu/chouette/dao/ChouetteDriverManagerDataSource.java index 8e29d5a8..0cbdaf51 100644 --- a/chouette-core/src/main/java/fr/certu/chouette/dao/ChouetteDriverManagerDataSource.java +++ b/...
true
true
public void setDatabaseSchema(String databaseSchema) { if (databaseSchema.trim().equals(databaseSchema)) this.databaseSchema = databaseSchema; else throw new IllegalArgumentException("Database schema must not ends with white spaces"); }
public void setDatabaseSchema(String databaseSchema) { if (databaseSchema.trim().equals(databaseSchema)) this.databaseSchema = databaseSchema; else throw new IllegalArgumentException("Database schema must not end with white spaces"); }
diff --git a/src/org/apache/xerces/xinclude/XIncludeHandler.java b/src/org/apache/xerces/xinclude/XIncludeHandler.java index 7e33af553..6ac885ddd 100644 --- a/src/org/apache/xerces/xinclude/XIncludeHandler.java +++ b/src/org/apache/xerces/xinclude/XIncludeHandler.java @@ -1,2585 +1,2587 @@ /* * Copyright 2001-2004 T...
false
true
protected boolean handleIncludeElement(XMLAttributes attributes) throws XNIException { setSawInclude(fDepth, true); fNamespaceContext.setContextInvalid(); if (getSawInclude(fDepth - 1)) { reportFatalError("IncludeChild", new Object[] { XINCLUDE_INCLUDE }); } ...
protected boolean handleIncludeElement(XMLAttributes attributes) throws XNIException { setSawInclude(fDepth, true); fNamespaceContext.setContextInvalid(); if (getSawInclude(fDepth - 1)) { reportFatalError("IncludeChild", new Object[] { XINCLUDE_INCLUDE }); } ...
diff --git a/core/src/net/sf/openrocket/gui/simulation/SimulationWarningDialog.java b/core/src/net/sf/openrocket/gui/simulation/SimulationWarningDialog.java index 45a9bfa8..d9625cb1 100644 --- a/core/src/net/sf/openrocket/gui/simulation/SimulationWarningDialog.java +++ b/core/src/net/sf/openrocket/gui/simulation/Simula...
true
true
public static void showWarningDialog(Component parent, Simulation simulation) { if (simulation.getSimulatedWarnings().size() > 0) { ArrayList<String> messages = new ArrayList<String>(); messages.add(trans.get("SimuRunDlg.msg.errorOccurred")); for (Warning m : simulation.getSimulatedWarnings()) { mess...
public static void showWarningDialog(Component parent, Simulation simulation) { if (simulation.getSimulatedWarnings() != null && simulation.getSimulatedWarnings().size() > 0) { ArrayList<String> messages = new ArrayList<String>(); messages.add(trans.get("SimuRunDlg.msg.errorOccurred")); for (Warning m : ...
diff --git a/src/org/pentaho/metadata/model/LogicalColumn.java b/src/org/pentaho/metadata/model/LogicalColumn.java index 4426e732..6682c8de 100644 --- a/src/org/pentaho/metadata/model/LogicalColumn.java +++ b/src/org/pentaho/metadata/model/LogicalColumn.java @@ -1,112 +1,113 @@ /* * Copyright 2009 Pentaho Corporatio...
true
true
public Object clone() { LogicalColumn clone = new LogicalColumn(); clone.setId(getId()); clone.logicalTable = logicalTable; clone.physicalColumn = physicalColumn; // copy over properties for (String key : getChildProperties().keySet()) { clone.setProperty(key, getChildProperty(key))...
public Object clone() { LogicalColumn clone = new LogicalColumn(); clone.setId(getId()); clone.logicalTable = logicalTable; clone.physicalColumn = physicalColumn; clone.setParentConcept(getParentConcept()); // copy over properties for (String key : getChildProperties().keySet()) { ...
diff --git a/regression/jvm/ObjectCreationAndManipulationTest.java b/regression/jvm/ObjectCreationAndManipulationTest.java index 9d73ece9..e87c3267 100644 --- a/regression/jvm/ObjectCreationAndManipulationTest.java +++ b/regression/jvm/ObjectCreationAndManipulationTest.java @@ -1,175 +1,177 @@ /* * Copyright (C) 200...
false
true
public static void main(String[] args) { testNewObject(); testObjectInitialization(); testInstanceFieldAccess(); testNewArray(); testANewArray(); testArrayLength(); testMultiANewArray(); testIsInstanceOf(); testIntArrayLoadAndStore(); t...
public static void main(String[] args) { testNewObject(); testObjectInitialization(); testInstanceFieldAccess(); testNewArray(); testANewArray(); testArrayLength(); testMultiANewArray(); testIsInstanceOf(); /* FIXME: testIntArrayLoadAndStore();...
diff --git a/src/org/mythtv/client/ui/frontends/NavigationFragment.java b/src/org/mythtv/client/ui/frontends/NavigationFragment.java index 5704bbf6..1c9b062f 100644 --- a/src/org/mythtv/client/ui/frontends/NavigationFragment.java +++ b/src/org/mythtv/client/ui/frontends/NavigationFragment.java @@ -1,112 +1,112 @@ pack...
true
true
public void onClick(View v) { final FrontendsFragment frontends = (FrontendsFragment) getFragmentManager().findFragmentById( R.id.frontends_fragment ); final Frontend fe = frontends.getSelectedFrontend(); //exit if we don't have a frontend if(null == fe) return; switch(v.getId()){ case R.id.imageB...
public void onClick(View v) { final FrontendsFragment frontends = (FrontendsFragment) getFragmentManager().findFragmentById( R.id.frontends_fragment ); final Frontend fe = frontends.getSelectedFrontend(); //exit if we don't have a frontend if(null == fe) return; switch(v.getId()){ case R.id.imageB...
diff --git a/src/plugins/KeyUtils/toadlets/StaticToadlet.java b/src/plugins/KeyUtils/toadlets/StaticToadlet.java index 884b52c..e1bc0d2 100644 --- a/src/plugins/KeyUtils/toadlets/StaticToadlet.java +++ b/src/plugins/KeyUtils/toadlets/StaticToadlet.java @@ -1,107 +1,107 @@ /* This code is part of Freenet. It is distrib...
true
true
public void handleMethodGET(URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, IOException { String path = normalizePath(request.getPath()); if (logDEBUG) Logger.debug(this, "Requested ressource: "+path+" ("+uri+')'); int lastSlash = path.lastIndexOf('/'); String filename ...
public void handleMethodGET(URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, IOException { String path = normalizePath(request.getPath()); if (logDEBUG) Logger.debug(this, "Requested ressource: "+path+" ("+uri+')'); int lastSlash = path.lastIndexOf('/'); String filename ...
diff --git a/gallery/gallery-war/src/main/java/com/silverpeas/gallery/servlets/GalleryDragAndDrop.java b/gallery/gallery-war/src/main/java/com/silverpeas/gallery/servlets/GalleryDragAndDrop.java index 59d8bee22..6971cac19 100644 --- a/gallery/gallery-war/src/main/java/com/silverpeas/gallery/servlets/GalleryDragAndDrop....
true
true
public void doPost(HttpServletRequest request, HttpServletResponse res) throws ServletException, IOException { SilverTrace.info("gallery", "GalleryDragAndDrop.doPost", "root.MSG_GEN_ENTER_METHOD"); try { request.setCharacterEncoding("UTF-8"); String componentId = request.getParameter("Compon...
public void doPost(HttpServletRequest request, HttpServletResponse res) throws ServletException, IOException { SilverTrace.info("gallery", "GalleryDragAndDrop.doPost", "root.MSG_GEN_ENTER_METHOD"); try { request.setCharacterEncoding("UTF-8"); String componentId = request.getParameter("Compon...
diff --git a/reactor-groovy/src/main/java/reactor/groovy/config/StreamEventRouter.java b/reactor-groovy/src/main/java/reactor/groovy/config/StreamEventRouter.java index 99393658..4cbf4b8b 100644 --- a/reactor-groovy/src/main/java/reactor/groovy/config/StreamEventRouter.java +++ b/reactor-groovy/src/main/java/reactor/gr...
true
true
public void route(final Object key, final Event<?> event, final List<Registration<? extends Consumer<? extends Event<?>>>> consumers, final Consumer<?> completionConsumer, final Consumer<Throwable> errorConsumer) { try { event.getHeaders().set(KEY_HEADER, key.toString()); ...
public void route(final Object key, final Event<?> event, final List<Registration<? extends Consumer<? extends Event<?>>>> consumers, final Consumer<?> completionConsumer, final Consumer<Throwable> errorConsumer) { try { event.getHeaders().set(KEY_HEADER, key.toString()); ...
diff --git a/tm/pensieve/src/main/java/net/sf/okapi/tm/pensieve/seeker/PensieveSeeker.java b/tm/pensieve/src/main/java/net/sf/okapi/tm/pensieve/seeker/PensieveSeeker.java index 81e7b9310..bd54d4b1d 100644 --- a/tm/pensieve/src/main/java/net/sf/okapi/tm/pensieve/seeker/PensieveSeeker.java +++ b/tm/pensieve/src/main/java...
true
true
List<TmHit> search(int max, float threshold, Query query, TextFragment queryFrag, Metadata metadata) { IndexSearcher is = null; List<TmHit> tmhits = new ArrayList<TmHit>(); BooleanQuery bQuery = createQuery(query, metadata); List<Code> queryCodes = queryFrag.getCodes(); String queryCodedText = query...
List<TmHit> search(int max, float threshold, Query query, TextFragment queryFrag, Metadata metadata) { IndexSearcher is = null; List<TmHit> tmhits = new ArrayList<TmHit>(); BooleanQuery bQuery = createQuery(query, metadata); List<Code> queryCodes = queryFrag.getCodes(); String queryCodedText = query...
diff --git a/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/system/exporters/ArbitraryPluginRunner.java b/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/system/exporters/ArbitraryPluginRunner.java index 1aab8e93..1a3c252f 100644 --- a/seqware-queryengine-backend/src/m...
true
true
public static int runArbitraryPluginRunner(String[] args){ Options options = new Options(); Option option1 = OptionBuilder.withArgName("outputFile").withDescription("(required) output file").hasArgs(1).isRequired().create(OUTPUT_FILE_PARAM); options.addOption(option1); Option option2 = OptionBuilder.withArgNa...
public static int runArbitraryPluginRunner(String[] args){ Options options = new Options(); Option option1 = OptionBuilder.withArgName("outputFile").withDescription("(required) output file").hasArgs(1).isRequired().create(OUTPUT_FILE_PARAM); options.addOption(option1); Option option2 = OptionBuilder.withArgNa...
diff --git a/components/patient-data/migrations/src/main/java/edu/toronto/cs/internal/R50290PhenoTips477DataMigration.java b/components/patient-data/migrations/src/main/java/edu/toronto/cs/internal/R50290PhenoTips477DataMigration.java index a404ce715..042ce0186 100644 --- a/components/patient-data/migrations/src/main/j...
true
true
public Object doInHibernate(Session session) throws HibernateException, XWikiException { XWikiContext context = getXWikiContext(); XWiki xwiki = context.getWiki(); DocumentReference classReference = new DocumentReference(context.getDatabase(), "PhenoTi...
public Object doInHibernate(Session session) throws HibernateException, XWikiException { XWikiContext context = getXWikiContext(); XWiki xwiki = context.getWiki(); DocumentReference classReference = new DocumentReference(context.getDatabase(), "PhenoTi...
diff --git a/de.walware.rj.server/src/de/walware/rj/server/srvext/RJContext.java b/de.walware.rj.server/src/de/walware/rj/server/srvext/RJContext.java index 3b6bb71..4f58342 100644 --- a/de.walware.rj.server/src/de/walware/rj/server/srvext/RJContext.java +++ b/de.walware.rj.server/src/de/walware/rj/server/srvext/RJCont...
false
true
public String[] searchRJLibs(final String[] libsIds) throws RjInvalidConfigurationException { final List<PathEntry> candidates = getRJLibCandidates(); final String[] resolved = new String[libsIds.length]; StringBuilder sb = null; Collections.sort(candidates); for (int i = 0; i < libsIds.length; i++) { ...
public String[] searchRJLibs(final String[] libsIds) throws RjInvalidConfigurationException { final List<PathEntry> candidates = getRJLibCandidates(); final String[] resolved = new String[libsIds.length]; StringBuilder sb = null; Collections.sort(candidates); for (int i = 0; i < libsIds.length; i++) { ...
diff --git a/modules/core/src/main/java/org/openlmis/core/repository/ShipmentRoleRepository.java b/modules/core/src/main/java/org/openlmis/core/repository/ShipmentRoleRepository.java index 1b922c671c..b556ffe51d 100644 --- a/modules/core/src/main/java/org/openlmis/core/repository/ShipmentRoleRepository.java +++ b/modul...
true
true
public void insertShipmentRoles(final User user) { shipmentRoleAssignmentMapper.deleteAllShipmentRoles(user); for (final ShipmentRoleAssignment shipmentRoleAssignment : user.getShipmentRoles()) { if (shipmentRoleAssignment == null) continue; forAllDo(shipmentRoleAssignment.getRoleIds(), new Closu...
public void insertShipmentRoles(final User user) { if(user.getShipmentRoles() == null) return; shipmentRoleAssignmentMapper.deleteAllShipmentRoles(user); for (final ShipmentRoleAssignment shipmentRoleAssignment : user.getShipmentRoles()) { if (shipmentRoleAssignment == null) continue; forAllD...
diff --git a/CubicTestPlugin/src/main/java/org/cubictest/ui/utils/UserInteractionDialogUtil.java b/CubicTestPlugin/src/main/java/org/cubictest/ui/utils/UserInteractionDialogUtil.java index 59d34529..24f8e0aa 100644 --- a/CubicTestPlugin/src/main/java/org/cubictest/ui/utils/UserInteractionDialogUtil.java +++ b/CubicTest...
true
true
public static List<PageElement> getFlattenedPageElements(List<PageElement> elements) { List<PageElement> flattenedElements = new ArrayList<PageElement>(); for (PageElement element: elements){ if(element.getActionTypes().size() == 0) { continue; } if(element instanceof IContext){ getFlattenedPag...
public static List<PageElement> getFlattenedPageElements(List<PageElement> elements) { List<PageElement> flattenedElements = new ArrayList<PageElement>(); for (PageElement element: elements){ if(element.getActionTypes().size() == 0) { continue; } if(element instanceof IContext){ flattenedElemen...
diff --git a/src/main/java/net/nunnerycode/bukkit/mythicdrops/identification/IdentifyingListener.java b/src/main/java/net/nunnerycode/bukkit/mythicdrops/identification/IdentifyingListener.java index 69342f5e..eda73dc6 100644 --- a/src/main/java/net/nunnerycode/bukkit/mythicdrops/identification/IdentifyingListener.java ...
true
true
private void identifyItem(PlayerInteractEvent event, Player player, ItemStack itemInHand, String itemType) { if (ItemUtil.isArmor(itemType) || ItemUtil.isTool(itemType)) { if (!itemInHand.hasItemMeta()) { cannotUse(event, player); return; } if (!player...
private void identifyItem(PlayerInteractEvent event, Player player, ItemStack itemInHand, String itemType) { if (ItemUtil.isArmor(itemType) || ItemUtil.isTool(itemType)) { if (!itemInHand.hasItemMeta() || !itemInHand.getItemMeta().hasDisplayName()) { cannotUse(event, play...
diff --git a/src/main/java/betsy/virtual/server/deployers/DeploymentLogVerificator.java b/src/main/java/betsy/virtual/server/deployers/DeploymentLogVerificator.java index cf71254b..daf029ba 100644 --- a/src/main/java/betsy/virtual/server/deployers/DeploymentLogVerificator.java +++ b/src/main/java/betsy/virtual/server/d...
true
true
public void waitForDeploymentCompletition(final int timeoutInMs) { final long start = -System.currentTimeMillis(); // verify deployment with engine log. Either until deployment // result or until timeout is reached while (!isDeploymentFinished() && (System.currentTimeMillis() + start < timeoutInMs)) { /...
public void waitForDeploymentCompletition(final int timeoutInMs) { final long start = -System.currentTimeMillis(); // verify deployment with engine log. Either until deployment // result or until timeout is reached while (!isDeploymentFinished() && (System.currentTimeMillis() + start < timeoutInMs)) { /...
diff --git a/sandbox/rest/src/main/java/brooklyn/rest/commands/locations/AddLocationCommand.java b/sandbox/rest/src/main/java/brooklyn/rest/commands/locations/AddLocationCommand.java index 5a46a8a52..cffbbe1bd 100644 --- a/sandbox/rest/src/main/java/brooklyn/rest/commands/locations/AddLocationCommand.java +++ b/sandbox...
true
true
protected void run(Json json, JerseyClient client, CommandLine params) throws Exception { checkArgument(params.getArgList().size() >= 1, "Path to JSON file is mandatory"); String jsonFileName = (String) params.getArgList().get(0); LocationSpec spec = json.readValue(new File(jsonFileName), LocationSpec.cl...
protected void run(Json json, JerseyClient client, CommandLine params) throws Exception { checkArgument(params.getArgList().size() >= 1, "Path to JSON file is mandatory"); String jsonFileName = (String) params.getArgList().get(0); LocationSpec spec = json.readValue(new File(jsonFileName), LocationSpec.cl...
diff --git a/src/kundera-core/src/main/java/com/impetus/kundera/metadata/processor/MetaModelBuilder.java b/src/kundera-core/src/main/java/com/impetus/kundera/metadata/processor/MetaModelBuilder.java index 7fe33f305..18e4fd19c 100644 --- a/src/kundera-core/src/main/java/com/impetus/kundera/metadata/processor/MetaModelBu...
true
true
<T> Type<T> buildType(Class<T> attribType) { // Only in case of Map attribute attribute will be null; PersistentAttributeType attributeType = attribute != null ? MetaModelBuilder .getPersistentAttributeType(attribute) : persistentAttribType; switch...
<T> Type<T> buildType(Class<T> attribType) { // Only in case of Map attribute attribute will be null; PersistentAttributeType attributeType = attribute != null ? MetaModelBuilder .getPersistentAttributeType(attribute) : persistentAttribType; switch...
diff --git a/branches/5.0/Crux/src/core/org/cruxframework/crux/core/client/datasource/AbstractScrollableDataSource.java b/branches/5.0/Crux/src/core/org/cruxframework/crux/core/client/datasource/AbstractScrollableDataSource.java index fe0491c2b..6476ab3a5 100644 --- a/branches/5.0/Crux/src/core/org/cruxframework/crux/c...
true
true
protected void sortArray(DataSourceRecord<E>[] array, final String columnName, final boolean ascending, final boolean caseSensitive) { if (!definitions.getColumn(columnName).isSortable()) { throw new DataSourceExcpetion(messages.dataSourceErrorColumnNotComparable(columnName)); } //optimization: infer co...
protected void sortArray(DataSourceRecord<E>[] array, final String columnName, final boolean ascending, final boolean caseSensitive) { if (!definitions.getColumn(columnName).isSortable()) { throw new DataSourceExcpetion(messages.dataSourceErrorColumnNotComparable(columnName)); } //optimization: infer co...
diff --git a/Platform/src/net/sf/anathema/framework/module/preferences/ToolTipTimePreferencesElement.java b/Platform/src/net/sf/anathema/framework/module/preferences/ToolTipTimePreferencesElement.java index d96a7f143a..e6583e8a7e 100644 --- a/Platform/src/net/sf/anathema/framework/module/preferences/ToolTipTimePreferen...
true
true
private IDialogComponent getComponent(IResources resources) { final JLabel toolTipTimeLabel = new JLabel(resources.getString("AnathemaCore.Tools.Preferences.ToolTipTime") + ":"); //$NON-NLS-1$ //$NON-NLS-2$ spinner = new IntegerSpinner(toolTipTime); spinner.setPreferredWidth(70); spinner.setMinimum(0)...
private IDialogComponent getComponent(IResources resources) { final JLabel toolTipTimeLabel = new JLabel(resources.getString("AnathemaCore.Tools.Preferences.ToolTipTime") + ":"); //$NON-NLS-1$ //$NON-NLS-2$ spinner = new IntegerSpinner(toolTipTime); spinner.setPreferredWidth(70); spinner.setMinimum(0)...
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.java index 5d638f8a..10188276 100644 --- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.ja...
true
true
void addClasspathEntries(IClasspathDescriptor classpath, IMavenProjectFacade facade, int kind, IProgressMonitor monitor) throws CoreException { ArtifactFilter scopeFilter; if(BuildPathManager.CLASSPATH_RUNTIME == kind) { // ECLIPSE-33: runtime+provided scope // ECLIPSE-85: adding system sco...
void addClasspathEntries(IClasspathDescriptor classpath, IMavenProjectFacade facade, int kind, IProgressMonitor monitor) throws CoreException { ArtifactFilter scopeFilter; if(BuildPathManager.CLASSPATH_RUNTIME == kind) { // ECLIPSE-33: runtime+provided scope // ECLIPSE-85: adding system sco...
diff --git a/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/app/cca/ClientCCASessionImpl.java b/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/app/cca/ClientCCASessionImpl.java index defb2fcb..71fc84c2 100644 --- a/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/app/cca/ClientCCASe...
true
true
protected boolean handleEventForSessionBased(StateEvent event) throws InternalException, OverloadException { try { sendAndStateLock.lock(); Event localEvent = (Event) event; Event.Type eventType = (Type) localEvent.getType(); switch (this.state) { case IDLE: switch (eventTyp...
protected boolean handleEventForSessionBased(StateEvent event) throws InternalException, OverloadException { try { sendAndStateLock.lock(); Event localEvent = (Event) event; Event.Type eventType = (Type) localEvent.getType(); switch (this.state) { case IDLE: switch (eventTyp...
diff --git a/groovy/src/main/java/org/kohsuke/stapler/jelly/groovy/JellyBuilder.java b/groovy/src/main/java/org/kohsuke/stapler/jelly/groovy/JellyBuilder.java index 0dc16d7ad..8be909ba1 100644 --- a/groovy/src/main/java/org/kohsuke/stapler/jelly/groovy/JellyBuilder.java +++ b/groovy/src/main/java/org/kohsuke/stapler/je...
true
true
protected void doInvokeMethod(QName name, Object args) { List list = InvokerHelper.asList(args); Map attributes = Collections.EMPTY_MAP; Closure closure = null; String innerText = null; // figure out what parameters are what switch (list.size()) { case 0: ...
protected void doInvokeMethod(QName name, Object args) { List list = InvokerHelper.asList(args); Map attributes = Collections.EMPTY_MAP; Closure closure = null; String innerText = null; // figure out what parameters are what switch (list.size()) { case 0: ...
diff --git a/opal-shell/src/main/java/org/obiba/opal/shell/commands/CopyCommand.java b/opal-shell/src/main/java/org/obiba/opal/shell/commands/CopyCommand.java index 9e64f895b..e7033c84c 100644 --- a/opal-shell/src/main/java/org/obiba/opal/shell/commands/CopyCommand.java +++ b/opal-shell/src/main/java/org/obiba/opal/she...
true
true
public void execute() { if(options.getTables() != null && !options.isSource()) { if(validateOptions()) { Datasource destinationDatasource = null; try { if(options.isDestination()) { destinationDatasource = getDatasourceByName(options.getDestination()); } else ...
public void execute() { if(options.getTables() != null && !options.isSource()) { if(validateOptions()) { Datasource destinationDatasource = null; try { if(options.isDestination()) { destinationDatasource = getDatasourceByName(options.getDestination()); } else ...
diff --git a/demo/wingset/src/java/wingset/MemUsageExample.java b/demo/wingset/src/java/wingset/MemUsageExample.java index abcb7b59..ea82df63 100644 --- a/demo/wingset/src/java/wingset/MemUsageExample.java +++ b/demo/wingset/src/java/wingset/MemUsageExample.java @@ -1,167 +1,166 @@ /* * Copyright 2000,2005 wingS dev...
true
true
public SComponent createExample() { final SButton gc = new SButton("gc"); // label overwritten via attribute in template final SButton refresh = new SButton("Refresh"); final SButton exit = new SButton("Exit session"); final SProgressBar progressBar = new SProgressBar(); fina...
public SComponent createExample() { final SButton gc = new SButton("gc"); // label overwritten via attribute in template final SButton refresh = new SButton("Refresh"); final SButton exit = new SButton("Exit session"); final SProgressBar progressBar = new SProgressBar(); fina...
diff --git a/plugins/SPIMAcquisition/spim/SPIMAcquisition.java b/plugins/SPIMAcquisition/spim/SPIMAcquisition.java index 9f2451f54..ec213192a 100644 --- a/plugins/SPIMAcquisition/spim/SPIMAcquisition.java +++ b/plugins/SPIMAcquisition/spim/SPIMAcquisition.java @@ -1,870 +1,870 @@ package spim; import ij.IJ; import...
true
true
protected void initUI() { if (frame != null) return; frame = new JFrame("SPIM in a Briefcase"); JPanel left = new JPanel(); left.setLayout(new BoxLayout(left, BoxLayout.PAGE_AXIS)); left.setBorder(BorderFactory.createTitledBorder("Position/Angle")); xSlider = new MotorSlider(motorMin, motorMax, 1) { ...
protected void initUI() { if (frame != null) return; frame = new JFrame("SPIM in a Briefcase"); JPanel left = new JPanel(); left.setLayout(new BoxLayout(left, BoxLayout.PAGE_AXIS)); left.setBorder(BorderFactory.createTitledBorder("Position/Angle")); xSlider = new MotorSlider(motorMin, motorMax, 1) { ...
diff --git a/GAE/src/com/gallatinsystems/instancecreator/app/InstanceConfigurator.java b/GAE/src/com/gallatinsystems/instancecreator/app/InstanceConfigurator.java index 68471a7e7..5c1f29a01 100644 --- a/GAE/src/com/gallatinsystems/instancecreator/app/InstanceConfigurator.java +++ b/GAE/src/com/gallatinsystems/instancec...
false
true
public static void main(String[] args) { InstanceConfigurator ic = new InstanceConfigurator(); String[] directories; String s3policyFileTemplateName; aws_secret_key = args[0]; ic.addAttribute("awsSecretKey", args[0]); ic.addAttribute("awsIdentifier", args[1]); ic.addAttribute("instanceName", args[2]); ...
public static void main(String[] args) { InstanceConfigurator ic = new InstanceConfigurator(); String[] directories; String s3policyFileTemplateName; aws_secret_key = args[0]; ic.addAttribute("awsSecretKey", args[0]); ic.addAttribute("awsIdentifier", args[1]); ic.addAttribute("instanceName", args[2]); ...
diff --git a/src/fitnesse/ant/StartFitnesseTask.java b/src/fitnesse/ant/StartFitnesseTask.java index d203419c6..0402a5273 100644 --- a/src/fitnesse/ant/StartFitnesseTask.java +++ b/src/fitnesse/ant/StartFitnesseTask.java @@ -1,57 +1,57 @@ package fitnesse.ant; import fitnesse.FitNesse; import org.apache.tools.ant....
true
true
public void execute() throws BuildException { try { FitNesse.main(new String[] {"-p", String.valueOf(fitnessePort), "-d", wikiDirectoryRootPath, "-e", "0"}); log("Sucessfully Started Fitnesse on port " + fitnessePort); } catch(Exception e) { throw new BuildException("Failed to start FitNesse. E...
public void execute() throws BuildException { try { FitNesse.main(new String[] {"-p", String.valueOf(fitnessePort), "-d", wikiDirectoryRootPath, "-e", "0", "-o"}); log("Sucessfully Started Fitnesse on port " + fitnessePort); } catch(Exception e) { throw new BuildException("Failed to start FitNe...
diff --git a/src/main/java/hudson/remoting/UserRequest.java b/src/main/java/hudson/remoting/UserRequest.java index 1c901880..253f45a3 100644 --- a/src/main/java/hudson/remoting/UserRequest.java +++ b/src/main/java/hudson/remoting/UserRequest.java @@ -1,178 +1,183 @@ /* * The MIT License * * Copyright (c) 2004-2...
true
true
protected UserResponse<RSP,EXC> perform(Channel channel) throws EXC { try { ClassLoader cl = channel.importedClassLoaders.get(classLoaderProxy); RSP r = null; Channel oldc = Channel.setCurrent(channel); try { Object o = new ObjectInputStreamEx...
protected UserResponse<RSP,EXC> perform(Channel channel) throws EXC { try { ClassLoader cl = channel.importedClassLoaders.get(classLoaderProxy); RSP r = null; Channel oldc = Channel.setCurrent(channel); try { Object o; try { ...
diff --git a/UUGoogleSync/src/cz/pavel/uugooglesync/uu/UUManager.java b/UUGoogleSync/src/cz/pavel/uugooglesync/uu/UUManager.java index a377095..e92135b 100644 --- a/UUGoogleSync/src/cz/pavel/uugooglesync/uu/UUManager.java +++ b/UUGoogleSync/src/cz/pavel/uugooglesync/uu/UUManager.java @@ -1,293 +1,293 @@ package cz.pav...
true
true
public Map<String, UUEvent> getEvents(Calendar startDate, Calendar endDate) throws ClientProtocolException, IOException { totalBytes = 0; log.debug("Loading events from " + CalendarUtils.calendarToGoogleString(startDate) + " to end of " + CalendarUtils.calendarToGoogleString(endDate)); initHttpClient(); Str...
public Map<String, UUEvent> getEvents(Calendar startDate, Calendar endDate) throws ClientProtocolException, IOException { totalBytes = 0; log.debug("Loading events from " + CalendarUtils.calendarToGoogleString(startDate) + " to end of " + CalendarUtils.calendarToGoogleString(endDate)); initHttpClient(); Str...
diff --git a/sudoku-gui/src/nakomis/sudoku/gui/SudokuGui.java b/sudoku-gui/src/nakomis/sudoku/gui/SudokuGui.java index 24a40c5..05b868b 100644 --- a/sudoku-gui/src/nakomis/sudoku/gui/SudokuGui.java +++ b/sudoku-gui/src/nakomis/sudoku/gui/SudokuGui.java @@ -1,50 +1,52 @@ package nakomis.sudoku.gui; import java.io.Bu...
true
true
public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); List<String> input = new ArrayList<String>(); Map<Map.Entry<Integer,Integer>, Integer> presetDigits = new HashMap<Map.Entry<Integer,Integer>, Integer>(); for (int i = 0; i < 9; ...
public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); List<String> input = new ArrayList<String>(); Map<Map.Entry<Integer,Integer>, Integer> presetDigits = new HashMap<Map.Entry<Integer,Integer>, Integer>(); for (int i = 0; i < 9; ...
diff --git a/ADNLibModule/src/main/java/com/alwaysallthetime/adnlib/resourceStream/ResourceStream.java b/ADNLibModule/src/main/java/com/alwaysallthetime/adnlib/resourceStream/ResourceStream.java index 29f3b52..9338e47 100644 --- a/ADNLibModule/src/main/java/com/alwaysallthetime/adnlib/resourceStream/ResourceStream.java...
true
true
private void load(final QueryParameters queryParameters, final ResourceStreamResponseHandlerInternal internalResponseHandler, final T responseHandler) { isRequestInProgress = true; retrieveObjects(queryParameters, new ResourceStreamResponseHandlerInternal() { @Override publi...
private void load(final QueryParameters queryParameters, final ResourceStreamResponseHandlerInternal internalResponseHandler, final T responseHandler) { isRequestInProgress = true; retrieveObjects(queryParameters, new ResourceStreamResponseHandlerInternal() { @Override publi...
diff --git a/src/org/hyperic/hq/hqapi1/test/Group_test.java b/src/org/hyperic/hq/hqapi1/test/Group_test.java index 3b1bbc4..b0efd60 100644 --- a/src/org/hyperic/hq/hqapi1/test/Group_test.java +++ b/src/org/hyperic/hq/hqapi1/test/Group_test.java @@ -1,221 +1,221 @@ package org.hyperic.hq.hqapi1.test; import org.hype...
true
true
private void validateGroup(Group g) { assertTrue("Invalid id for Group.", g.getId() > 0); assertTrue("Found invalid name for Group with id=" + g.getId(), g.getName().length() > 0); if (g.getResourcePrototype() != null) { ResourcePrototype pt = g.getResourcePro...
private void validateGroup(Group g) { assertTrue("Invalid id for Group.", g.getId() > 0); assertTrue("Found invalid name for Group with id=" + g.getId(), g.getName().length() > 0); if (g.getResourcePrototype() != null) { ResourcePrototype pt = g.getResourcePro...
diff --git a/src/web/org/codehaus/groovy/grails/web/pages/GroovyPagesServlet.java b/src/web/org/codehaus/groovy/grails/web/pages/GroovyPagesServlet.java index 959f8b3af..7ea42dd43 100644 --- a/src/web/org/codehaus/groovy/grails/web/pages/GroovyPagesServlet.java +++ b/src/web/org/codehaus/groovy/grails/web/pages/GroovyP...
true
true
public void doPage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setAttribute(GrailsApplicationAttributes.REQUEST_SCOPE_ID, grailsAttributes); this.engine = grailsAttributes.getPagesTemplateEngine(); this.engine.setShowSource(this...
public void doPage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setAttribute(GrailsApplicationAttributes.REQUEST_SCOPE_ID, grailsAttributes); this.engine = grailsAttributes.getPagesTemplateEngine(); this.engine.setShowSource(this...
diff --git a/trunk/GUI/JProtomol/src/JProtomol/MainFrame.java b/trunk/GUI/JProtomol/src/JProtomol/MainFrame.java index 6107019..d22dc4a 100644 --- a/trunk/GUI/JProtomol/src/JProtomol/MainFrame.java +++ b/trunk/GUI/JProtomol/src/JProtomol/MainFrame.java @@ -1,1386 +1,1383 @@ package JProtomol; import java.awt.Toolki...
true
true
private void initComponents() { buttonGroup1 = new javax.swing.ButtonGroup(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); jButton3 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton6 = new javax.swing.JBut...
private void initComponents() { buttonGroup1 = new javax.swing.ButtonGroup(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); jButton3 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton6 = new javax.swing.JBut...
diff --git a/CS425MP2/src/FileReplication.java b/CS425MP2/src/FileReplication.java index ee8d787..66a744e 100644 --- a/CS425MP2/src/FileReplication.java +++ b/CS425MP2/src/FileReplication.java @@ -1,579 +1,579 @@ import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import ...
true
true
public void run(){ // TODO Auto-generated method stub /* start udp socket for listening to control messages * while loop for listening to udp socket * listen to messages based on whether you are a master * start transfer thread based on the control messages */ Vector<String> recvList=new Vector<Strin...
public void run(){ // TODO Auto-generated method stub /* start udp socket for listening to control messages * while loop for listening to udp socket * listen to messages based on whether you are a master * start transfer thread based on the control messages */ Vector<String> recvList=new Vector<Strin...
diff --git a/core/src/main/java/org/b3log/solo/filter/InitCheckFilter.java b/core/src/main/java/org/b3log/solo/filter/InitCheckFilter.java index 4ab9c0bb..8502adf0 100644 --- a/core/src/main/java/org/b3log/solo/filter/InitCheckFilter.java +++ b/core/src/main/java/org/b3log/solo/filter/InitCheckFilter.java @@ -1,129 +1,...
false
true
public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException { final HttpServletRequest httpServletRequest = (HttpServletRequest) request; final String requestURI = httpServletRequest.getRequestURI(); ...
public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException { final HttpServletRequest httpServletRequest = (HttpServletRequest) request; final String requestURI = httpServletRequest.getRequestURI(); ...