Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/de/og/batterycreator/systemuianalyser/analyser/BatteryAnalyser.java b/src/de/og/batterycreator/systemuianalyser/analyser/BatteryAnalyser.java index b2c3069..7cf98c3 100644 --- a/src/de/og/batterycreator/systemuianalyser/analyser/BatteryAnalyser.java +++ b/src/de/og/batterycreator/systemuianalyser/analy...
false
true
private void addToBatteryType(final String filename, final ImageIcon icon, final String drawableFolder) { // suchen nach der Nummer int index = indexOfAnyNumber(filename); // keine nummer gefunden ? dann suchen wir nach "full.png" if (index < 0) index = filename.indexOf("full.png"); if (index > 0) { S...
private void addToBatteryType(final String filename, final ImageIcon icon, final String drawableFolder) { // suchen nach der Nummer int index = indexOfAnyNumber(filename); // keine nummer gefunden ? dann suchen wir nach "full.png" if (index < 0) index = filename.indexOf("full.png"); if (index > 0) { S...
diff --git a/src/biz/bokhorst/xprivacy/SettingsDialog.java b/src/biz/bokhorst/xprivacy/SettingsDialog.java index 42e772cb..13007608 100644 --- a/src/biz/bokhorst/xprivacy/SettingsDialog.java +++ b/src/biz/bokhorst/xprivacy/SettingsDialog.java @@ -1,571 +1,573 @@ package biz.bokhorst.xprivacy; import java.security.I...
true
true
public static void edit(final Context context, ApplicationInfoEx appInfo) { final int uid = (appInfo == null ? 0 : appInfo.getUid()); // Build dialog final Dialog dlgSettings = new Dialog(context); dlgSettings.requestWindowFeature(Window.FEATURE_LEFT_ICON); dlgSettings.setTitle(context.getString(R.string.ap...
public static void edit(final Context context, ApplicationInfoEx appInfo) { final int uid = (appInfo == null ? 0 : appInfo.getUid()); // Build dialog String themeName = PrivacyManager.getSetting(null, context, 0, PrivacyManager.cSettingTheme, "", false); int themeId = (themeName.equals("Dark") ? R.style.Custo...
diff --git a/src/main/java/com/voxbone/kelpie/UriMappings.java b/src/main/java/com/voxbone/kelpie/UriMappings.java index 4d49e3c..22c3544 100755 --- a/src/main/java/com/voxbone/kelpie/UriMappings.java +++ b/src/main/java/com/voxbone/kelpie/UriMappings.java @@ -1,189 +1,189 @@ /** * Copyright 2012 Voxbone SA/NV ...
true
true
public static JID toJID(String sip_id) { for (Mapping m : mappings) { if (m.sip_id.equals(sip_id)) { return m.jid; } } if (sip_id.contains("+")) { String [] fields = sip_id.split("\\+", 2); JID jid = new JID(fields[0] + "@" + fields[1]); log.debug("Resolving resources for " + jid...
public static JID toJID(String sip_id) { for (Mapping m : mappings) { if (m.sip_id.equals(sip_id)) { return m.jid; } } if (sip_id.contains("+")) { String [] fields = sip_id.split("\\+", 2); JID jid = new JID(fields[0] + "@" + fields[1]); log.debug("Resolving resources for " + jid...
diff --git a/src/main/java/com/trustwave/transaction/AccountMonitor.java b/src/main/java/com/trustwave/transaction/AccountMonitor.java index 0c76447..07a7956 100644 --- a/src/main/java/com/trustwave/transaction/AccountMonitor.java +++ b/src/main/java/com/trustwave/transaction/AccountMonitor.java @@ -1,226 +1,226 @@ /*...
true
true
public void test(final Account source, final Account destination, final int id) { final boolean sourceAquire = source.aquireLock(); final boolean destinationAquire = destination.aquireLock(); if (sourceAquire && destinationAquire) { states.set(id, State.TRANSACTING); ...
public void test(final Account source, final Account destination, final int id) { final boolean sourceAquire = source.aquireLock(); final boolean destinationAquire = destination.aquireLock(); if (sourceAquire && destinationAquire) { states.set(id, State.TRANSACTING); ...
diff --git a/src/com/android/providers/contacts/OpenHelper.java b/src/com/android/providers/contacts/OpenHelper.java index f33a005..aa90f52 100644 --- a/src/com/android/providers/contacts/OpenHelper.java +++ b/src/com/android/providers/contacts/OpenHelper.java @@ -1,1079 +1,1079 @@ /* * Copyright (C) 2009 The Androi...
false
true
public void onCreate(SQLiteDatabase db) { Log.i(TAG, "Bootstrapping database"); mSyncState.createDatabase(db); // One row per group of contacts corresponding to the same person db.execSQL("CREATE TABLE " + Tables.AGGREGATES + " (" + BaseColumns._ID + " INTEGER PRIMA...
public void onCreate(SQLiteDatabase db) { Log.i(TAG, "Bootstrapping database"); mSyncState.createDatabase(db); // One row per group of contacts corresponding to the same person db.execSQL("CREATE TABLE " + Tables.AGGREGATES + " (" + BaseColumns._ID + " INTEGER PRIMA...
diff --git a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/InstallationHistoryAction.java b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/InstallationHistoryAction.java index 324ef56cc..dd000d7a2 100644 --- a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui...
true
true
private void parseLog() throws CoreException { // !CONFIGURATION <configuration-date> // !ACTIVITY <date> <target> <action> <status> try { String type, date, status, target, action; StringTokenizer htmlCode; htmlLog.println("<html>"); //$NON-NLS-1$ htmlLog.println("<head>"); //$NON-NLS-1$ html...
private void parseLog() throws CoreException { // !CONFIGURATION <configuration-date> // !ACTIVITY <date> <target> <action> <status> try { String type, date, status, target, action; StringTokenizer htmlCode; htmlLog.println("<html>"); //$NON-NLS-1$ htmlLog.println("<head>"); //$NON-NLS-1$ html...
diff --git a/src/nl/esciencecenter/esalsa/tools/TopographyViewer.java b/src/nl/esciencecenter/esalsa/tools/TopographyViewer.java index 8a113ef..273507e 100644 --- a/src/nl/esciencecenter/esalsa/tools/TopographyViewer.java +++ b/src/nl/esciencecenter/esalsa/tools/TopographyViewer.java @@ -1,159 +1,159 @@ /* * Copyrig...
false
true
public static void main(String [] args) { if (args.length < 3) { System.out.println("Usage: TopographyViewer topography_file topography_width topography_height " + "block_width block_height [--showGUI] [--image image.png]\n" + "\n" + "Read a topography file of topography_width x topography_he...
public static void main(String [] args) { if (args.length < 3) { System.out.println("Usage: TopographyViewer topography_file topography_width topography_height " + "block_width block_height [--showGUI] [--image image.png]\n" + "\n" + "Read a topography file of topography_width x topography_he...
diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/interceptor/CommandContext.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/interceptor/CommandContext.java index 8e1bf22c9..6e77c75e3 100644 --- a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/interceptor/...
true
true
public void close() { // the intention of this method is that all resources are closed properly, // even // if exceptions occur in close or flush methods of the sessions or the // transaction context. try { try { try { if (exception == null) { flushSessions();...
public void close() { // the intention of this method is that all resources are closed properly, // even // if exceptions occur in close or flush methods of the sessions or the // transaction context. try { try { try { if (exception == null) { flushSessions();...
diff --git a/src/controller/GameController.java b/src/controller/GameController.java index 5149490..fee1add 100644 --- a/src/controller/GameController.java +++ b/src/controller/GameController.java @@ -1,102 +1,101 @@ package controller; import model.Game; import org.newdawn.slick.AppGameContainer; import org....
false
true
public GameController(String name) throws SlickException { super(name); this.inGameMusic = new Music("music/game_music_regular.wav"); this.inGameController = new InGameController(this); this.game = new Game(inGameController.getInGame()); SaveUtils.init(); this.startMenuController = new StartMenuController(...
public GameController(String name) throws SlickException { super(name); this.inGameMusic = new Music("music/game_music_regular.wav"); this.inGameController = new InGameController(this); this.game = new Game(inGameController.getInGame()); SaveUtils.init(); this.startMenuController = new StartMenuController(...
diff --git a/src/com/jidesoft/plaf/basic/BasicJideSplitButtonUI.java b/src/com/jidesoft/plaf/basic/BasicJideSplitButtonUI.java index 41283b5a..a079c826 100644 --- a/src/com/jidesoft/plaf/basic/BasicJideSplitButtonUI.java +++ b/src/com/jidesoft/plaf/basic/BasicJideSplitButtonUI.java @@ -1,1375 +1,1375 @@ /* * @(#)Vsn...
true
true
protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { ButtonModel model = menuItem.getModel(); int menuWidth; int menuHeight; int orientation = JideSwingUtilities.getOrientationOf(menuItem); if (orientation == SwingConstants.HORIZONTAL) { ...
protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { ButtonModel model = menuItem.getModel(); int menuWidth; int menuHeight; int orientation = JideSwingUtilities.getOrientationOf(menuItem); if (orientation == SwingConstants.HORIZONTAL) { ...
diff --git a/LevelEditor/src/Wave.java b/LevelEditor/src/Wave.java index c5898b9..706d8e3 100644 --- a/LevelEditor/src/Wave.java +++ b/LevelEditor/src/Wave.java @@ -1,134 +1,135 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.lang.reflect.Field; import java.util.ArrayList; i...
true
true
public String toString(){ enemyCountList = new ArrayList<Pair<String, Integer>>(); Pair<String, Integer> tempPair = new Pair<String, Integer>(); for (int i = 0; i < waveEnemyList.size(); i++){ if (i == 0){ tempPair.key = waveEnemyList.get(i).type; tempPair.value = 1; enemyCountList.add(tempPair.cl...
public String toString(){ enemyCountList = new ArrayList<Pair<String, Integer>>(); Pair<String, Integer> tempPair = new Pair<String, Integer>(); for (int i = 0; i < waveEnemyList.size(); i++){ if (i == 0){ tempPair.key = waveEnemyList.get(i).type; tempPair.value = 1; enemyCountList.add(tempPair.cl...
diff --git a/skrivFX/src/view/View.java b/skrivFX/src/view/View.java index b277a66..f0902f0 100644 --- a/skrivFX/src/view/View.java +++ b/skrivFX/src/view/View.java @@ -1,114 +1,114 @@ package view; import classes.Word; import java.util.ArrayList; import java.util.List; import javafx.beans.property.ReadOnlyDoubl...
true
true
public void addWord(Word w){ // I don't think I need this //words.add(w); // Check to make sure there is room first // Let's trying threading this because, holy moley it is SLOWWWW final Word wFinal = w; drawThread = new Thread(new Runnable(){ @Override ...
public void addWord(Word w){ // I don't think I need this //words.add(w); // Check to make sure there is room first // Let's trying threading this because, holy moley it is SLOWWWW // final Word wFinal = w; // drawThread = new Thread(new Runnable(){ // @Overr...
diff --git a/src/ua/in/leopard/androidCoocooAfisha/TheatersItemizedOverlay.java b/src/ua/in/leopard/androidCoocooAfisha/TheatersItemizedOverlay.java index 7d70db8..43d1c24 100644 --- a/src/ua/in/leopard/androidCoocooAfisha/TheatersItemizedOverlay.java +++ b/src/ua/in/leopard/androidCoocooAfisha/TheatersItemizedOverlay....
false
true
private void drawInfoWindow(Canvas canvas, MapView mapView, boolean shadow) { if (null != selected_item && null != selected_item.getTheaterObj()){ if (!shadow){ Drawable d = this.marker; Bitmap marker_bitmap = ((BitmapDrawable)d).getBitmap(); // First determine the screen coordinates of the selected ...
private void drawInfoWindow(Canvas canvas, MapView mapView, boolean shadow) { if (null != selected_item && null != selected_item.getTheaterObj()){ if (!shadow){ Drawable d = this.marker; Bitmap marker_bitmap = ((BitmapDrawable)d).getBitmap(); // First determine the screen coordinates of the selected ...
diff --git a/pixi/src/test/java/org/openpixi/pixi/physics/grid/ChargeConservingAreaWeightingTest.java b/pixi/src/test/java/org/openpixi/pixi/physics/grid/ChargeConservingAreaWeightingTest.java index e66d96ec..33368534 100644 --- a/pixi/src/test/java/org/openpixi/pixi/physics/grid/ChargeConservingAreaWeightingTest.java ...
false
true
private void testMove(double x1, double y1, double x2, double y2, double charge, String text) { Simulation s = new Simulation(); // Add single particle Particle2D p = new Particle2D(); p.x = x1; p.y = y1; p.vx = (x2 - x1) / s.tstep; p.vy = (y2 - y1) / s.tstep; p.mass = 1; p.charge = charge; s.part...
private void testMove(double x1, double y1, double x2, double y2, double charge, String text) { Simulation s = new Simulation(100, 100, 0, 1); // Add single particle Particle2D p = new Particle2D(); p.x = x1; p.y = y1; p.vx = (x2 - x1) / s.tstep; p.vy = (y2 - y1) / s.tstep; p.mass = 1; p.charge = ch...
diff --git a/src/org/mozilla/javascript/Interpreter.java b/src/org/mozilla/javascript/Interpreter.java index 70fc2bbf..b0a004ec 100644 --- a/src/org/mozilla/javascript/Interpreter.java +++ b/src/org/mozilla/javascript/Interpreter.java @@ -1,2531 +1,2533 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi...
true
true
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { int i; ...
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { int i; ...
diff --git a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ScriptTest.java b/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ScriptTest.java index 73172c209..b5a336a6f 100644 --- a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ScriptTest.java +++ b/html...
true
true
public void testOnReadyStateChangeHandler() throws Exception { final String html = "<html>\n" + " <head>\n" + " <title>test</title>\n" + " <script id='a'>\n" + " var script = document.createElement('script');\n" + " sc...
public void testOnReadyStateChangeHandler() throws Exception { final String html = "<html>\n" + " <head>\n" + " <title>test</title>\n" + " <script id='a'>\n" + " var script = document.createElement('script');\n" + " sc...
diff --git a/lib-core/src/main/java/com/stratelia/silverpeas/contentManager/ContentInterface.java b/lib-core/src/main/java/com/stratelia/silverpeas/contentManager/ContentInterface.java index cfd2b97da3..d334513701 100644 --- a/lib-core/src/main/java/com/stratelia/silverpeas/contentManager/ContentInterface.java +++ b/li...
true
true
public List<? extends SilverContentInterface> getSilverContentById(List<Integer> alSilverContentId, String sComponentId, String sUserId, List<String> alContentUserRoles);
public List<SilverContentInterface> getSilverContentById(List<Integer> alSilverContentId, String sComponentId, String sUserId, List<String> alContentUserRoles);
diff --git a/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/libgdx/Client.java b/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/libgdx/Client.java index 791aef0..0be3d84 100644 --- a/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/libgdx/Client.java +++ b/AndroidRally/src/se/chalmers/dry...
true
true
public RoundResult getRoundResult() { RoundResult result = new RoundResult(); String indata = controller.getModel().getAllMoves(); String[] allActions = indata.split(";"); System.out.println(indata); for(String s : allActions) { String[] parallel = s.split("#"); if(parallel[0].equals("R")) { ...
public RoundResult getRoundResult() { RoundResult result = new RoundResult(); String indata = controller.getRoundResults(); String[] allActions = indata.split(";"); System.out.println(indata); for(String s : allActions) { String[] parallel = s.split("#"); if(parallel[0].equals("R")) { re...
diff --git a/src/main/java/net/robbytu/banjoserver/framework/Main.java b/src/main/java/net/robbytu/banjoserver/framework/Main.java index 9035bbf..9fbea3e 100644 --- a/src/main/java/net/robbytu/banjoserver/framework/Main.java +++ b/src/main/java/net/robbytu/banjoserver/framework/Main.java @@ -1,81 +1,81 @@ package net....
true
true
public void onEnable() { // Update plugin plugin = this; // Check db configuration if(!getConfig().contains("db.host") || !getConfig().contains("db.port") || !getConfig().contains("db.username") || !getConfig().contains("db.password") || !getConfig().contains("db.database")) { // Create a default configu...
public void onEnable() { // Update plugin plugin = this; // Check db configuration if(!getConfig().contains("db.host") || !getConfig().contains("db.port") || !getConfig().contains("db.username") || !getConfig().contains("db.password") || !getConfig().contains("db.database")) { // Create a default configu...
diff --git a/src/net/noratargo/siJACK/annotationHelper/AnnotationHelper.java b/src/net/noratargo/siJACK/annotationHelper/AnnotationHelper.java index f29927f..8742188 100644 --- a/src/net/noratargo/siJACK/annotationHelper/AnnotationHelper.java +++ b/src/net/noratargo/siJACK/annotationHelper/AnnotationHelper.java @@ -1,2...
true
true
public static Parameter<?>[] createParametersFromConstructor(Constructor<?> c, InstantiatorManager im) { Parameter<?>[] parameters = new Parameter<?>[c.getParameterTypes().length]; Annotation[][] pAnnotations = c.getParameterAnnotations(); Class<?>[] cTypes = c.getParameterTypes(); boolean skipThisOne = true;...
public static Parameter<?>[] createParametersFromConstructor(Constructor<?> c, InstantiatorManager im) { Parameter<?>[] parameters = new Parameter<?>[c.getParameterTypes().length]; Annotation[][] pAnnotations = c.getParameterAnnotations(); Class<?>[] cTypes = c.getParameterTypes(); /* we will add constructors...
diff --git a/astrid/src/com/todoroo/astrid/ui/CalendarView.java b/astrid/src/com/todoroo/astrid/ui/CalendarView.java index b19968dbb..85453815b 100755 --- a/astrid/src/com/todoroo/astrid/ui/CalendarView.java +++ b/astrid/src/com/todoroo/astrid/ui/CalendarView.java @@ -1,403 +1,403 @@ package com.todoroo.astrid.ui; ...
true
true
protected void onDraw(Canvas canvas) { super.onDraw(canvas); // Background canvas.drawRect(0, 0, getMeasuredWidth(), getMeasuredHeight(), backColorPaint); // Outermost border -- Start RectF outerMostBorder = new RectF(); outerMostBorder.set(5, 5, getMeasuredWidth()...
protected void onDraw(Canvas canvas) { super.onDraw(canvas); // Background canvas.drawRect(0, 0, getMeasuredWidth(), getMeasuredHeight(), backColorPaint); // Outermost border -- Start RectF outerMostBorder = new RectF(); outerMostBorder.set(5, 5, getMeasuredWidth()...
diff --git a/src/de/raptor2101/GalDroid/WebGallery/Gallery3/PictureEntity.java b/src/de/raptor2101/GalDroid/WebGallery/Gallery3/PictureEntity.java index 4f612a2..8456e09 100644 --- a/src/de/raptor2101/GalDroid/WebGallery/Gallery3/PictureEntity.java +++ b/src/de/raptor2101/GalDroid/WebGallery/Gallery3/PictureEntity.java...
false
true
public PictureEntity(JSONObject jsonObject, Gallery3Imp gallery3, float maxImageDiag) throws JSONException { super(jsonObject, gallery3); jsonObject = jsonObject.getJSONObject("entity"); int resizeHeight = jsonObject.getInt("resize_height"); int resizeWidth = jsonObject.getInt("resize_width"); float im...
public PictureEntity(JSONObject jsonObject, Gallery3Imp gallery3, float maxImageDiag) throws JSONException { super(jsonObject, gallery3); jsonObject = jsonObject.getJSONObject("entity"); int resizeHeight = jsonObject.getInt("resize_height"); int resizeWidth = jsonObject.getInt("resize_width"); float im...
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/DotCommand.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/DotCommand.java index 1e0117f1..7c95ac98 100644 --- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/DotCommand.java +++ b/net...
true
true
public void execute(EditorAdaptor editorAdaptor, int count) throws CommandExecutionException { Command lastCommand = editorAdaptor.getRegisterManager().getLastEdit(); if (lastCommand != null) { if (count != NO_COUNT_GIVEN) { lastCommand = lastCommand.withCount(count); } lastComman...
public void execute(EditorAdaptor editorAdaptor, int count) throws CommandExecutionException { Command lastCommand = editorAdaptor.getRegisterManager().getLastEdit(); if (lastCommand != null) { if (count != NO_COUNT_GIVEN) { lastCommand = lastCommand.withCount(count); //update th...
diff --git a/src/java/fedora/server/storage/DefaultExternalContentManager.java b/src/java/fedora/server/storage/DefaultExternalContentManager.java index 94e2ac5ff..545b628a6 100755 --- a/src/java/fedora/server/storage/DefaultExternalContentManager.java +++ b/src/java/fedora/server/storage/DefaultExternalContentManager....
true
true
public MIMETypedStream getExternalContent(String url, Context context) throws GeneralException, HttpServiceNotFoundException { log("in getExternalContent(), url=" + url); MIMETypedStream httpContent = null; try { HttpClient client = new HttpClient(url); if (client.getStatusCode() != HttpUR...
public MIMETypedStream getExternalContent(String url, Context context) throws GeneralException, HttpServiceNotFoundException { log("in getExternalContent(), url=" + url); MIMETypedStream httpContent = null; try { HttpClient client = new HttpClient(url, "backendClient", ""); if (client.getS...
diff --git a/org.caleydo.view.subgraph/src/org/caleydo/view/subgraph/GLSubGraph.java b/org.caleydo.view.subgraph/src/org/caleydo/view/subgraph/GLSubGraph.java index 22129710f..075f3ecec 100644 --- a/org.caleydo.view.subgraph/src/org/caleydo/view/subgraph/GLSubGraph.java +++ b/org.caleydo.view.subgraph/src/org/caleydo/v...
false
true
private void createRemoteRenderedViews() { if (remoteRenderedPathwayMultiformViewIDs == null) { PathwayDataDomain pathwayDataDomain = (PathwayDataDomain) DataDomainManager.get().getDataDomainByType( PathwayDataDomain.DATA_DOMAIN_TYPE); TablePerspective tablePerspective = tablePerspectives.get(0); Pe...
private void createRemoteRenderedViews() { if (remoteRenderedPathwayMultiformViewIDs == null) { PathwayDataDomain pathwayDataDomain = (PathwayDataDomain) DataDomainManager.get().getDataDomainByType( PathwayDataDomain.DATA_DOMAIN_TYPE); TablePerspective tablePerspective = tablePerspectives.get(0); Pe...
diff --git a/core/src/main/java/hudson/tasks/Ant.java b/core/src/main/java/hudson/tasks/Ant.java index 1a513ce..6f87f46 100644 --- a/core/src/main/java/hudson/tasks/Ant.java +++ b/core/src/main/java/hudson/tasks/Ant.java @@ -1,318 +1,319 @@ package hudson.tasks; import hudson.CopyOnWrite; import hudson.Launcher; ...
false
true
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { AbstractProject proj = build.getProject(); ArgumentListBuilder args = new ArgumentListBuilder(); String execName; if(launcher.isUnix()) ...
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { AbstractProject proj = build.getProject(); ArgumentListBuilder args = new ArgumentListBuilder(); String execName; if(launcher.isUnix()) ...
diff --git a/src/test/java/net/floodlightcontroller/core/internal/OFChannelHandlerTest.java b/src/test/java/net/floodlightcontroller/core/internal/OFChannelHandlerTest.java index 818c08ea..520e45c9 100644 --- a/src/test/java/net/floodlightcontroller/core/internal/OFChannelHandlerTest.java +++ b/src/test/java/net/floodl...
true
true
public void doMoveToWaitInitialRole(MockStorageSourceConfig cfg) throws Exception { moveToWaitDescriptionStatReply(); // We do not expect a write to the channel per-se. We add // the channel to the controller and the controller will in turn // call handler.sendRoleReques...
public void doMoveToWaitInitialRole(MockStorageSourceConfig cfg) throws Exception { moveToWaitDescriptionStatReply(); // We do not expect a write to the channel per-se. We add // the channel to the controller and the controller will in turn // call handler.sendRoleReques...
diff --git a/src/main/java/org/primefaces/extensions/component/tooltip/TooltipRenderer.java b/src/main/java/org/primefaces/extensions/component/tooltip/TooltipRenderer.java index 3ff18af5..ef7cb0bb 100644 --- a/src/main/java/org/primefaces/extensions/component/tooltip/TooltipRenderer.java +++ b/src/main/java/org/primef...
true
true
public void encodeEnd(final FacesContext context, final UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); Tooltip tooltip = (Tooltip) component; String clientId = tooltip.getClientId(context); boolean global = tooltip.isGlobal(); boolean shared = tooltip.isShare...
public void encodeEnd(final FacesContext context, final UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); Tooltip tooltip = (Tooltip) component; String clientId = tooltip.getClientId(context); boolean global = tooltip.isGlobal(); boolean shared = tooltip.isShare...
diff --git a/dspace/src/org/dspace/app/webui/servlet/FeedServlet.java b/dspace/src/org/dspace/app/webui/servlet/FeedServlet.java index c4444ae5f..3965e7ae2 100644 --- a/dspace/src/org/dspace/app/webui/servlet/FeedServlet.java +++ b/dspace/src/org/dspace/app/webui/servlet/FeedServlet.java @@ -1,536 +1,537 @@ /* * Fee...
true
true
protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { String path = request.getPathInfo(); String feedType = null; String handle = null; if (...
protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { String path = request.getPathInfo(); String feedType = null; String handle = null; if (...
diff --git a/src/main/java/hudson/plugins/clearcase/ClearToolExec.java b/src/main/java/hudson/plugins/clearcase/ClearToolExec.java index 91c0d27..3feef71 100755 --- a/src/main/java/hudson/plugins/clearcase/ClearToolExec.java +++ b/src/main/java/hudson/plugins/clearcase/ClearToolExec.java @@ -1,181 +1,181 @@ package hu...
true
true
public List<ClearCaseChangeLogEntry> lshistory(ClearToolLauncher launcher, Date lastBuildDate, String viewName, String branch) throws IOException, InterruptedException { SimpleDateFormat formatter = new SimpleDateFormat("d-MMM.HH:mm:ss"); FilePath viewPath = launcher.getWorkspace().child(viewName); String[] v...
public List<ClearCaseChangeLogEntry> lshistory(ClearToolLauncher launcher, Date lastBuildDate, String viewName, String branch) throws IOException, InterruptedException { SimpleDateFormat formatter = new SimpleDateFormat("d-MMM.HH:mm:ss"); FilePath viewPath = launcher.getWorkspace().child(viewName); String[] v...
diff --git a/core/src/test/java/com/zaubersoftware/gnip4j/http/StreamTestDriver.java b/core/src/test/java/com/zaubersoftware/gnip4j/http/StreamTestDriver.java index ea2b5b9..a643d27 100644 --- a/core/src/test/java/com/zaubersoftware/gnip4j/http/StreamTestDriver.java +++ b/core/src/test/java/com/zaubersoftware/gnip4j/ht...
true
true
public void testname() throws Exception { final String username = System.getProperty("gnip.username"); final String password = System.getProperty("gnip.password"); final String account = System.getProperty("gnip.account"); final String streamName = System.getProperty("gnip.stream"); ...
public void testname() throws Exception { final String username = System.getProperty("gnip.username"); final String password = System.getProperty("gnip.password"); final String account = System.getProperty("gnip.account"); final String streamName = System.getProperty("gnip.stream"); ...
diff --git a/hub/src/main/java/com/jambit/jambel/hub/init/JobInitializer.java b/hub/src/main/java/com/jambit/jambel/hub/init/JobInitializer.java index 7555b82..3a3c9e0 100644 --- a/hub/src/main/java/com/jambit/jambel/hub/init/JobInitializer.java +++ b/hub/src/main/java/com/jambit/jambel/hub/init/JobInitializer.java @@ ...
true
true
public void initJobs() { for (JobConfiguration jobConfig : jambelConfiguration.getJobs()) { URL jobUrl = jobConfig.getJenkinsJobUrl(); try { Job job = jobRetriever.retrieve(jobUrl); JobState state = jobStateRetriever.retrieve(job); hub.addJob(job, state); UpdateMode updateMode = jobConfig.getU...
public void initJobs() { for (JobConfiguration jobConfig : jambelConfiguration.getJobs()) { URL jobUrl = jobConfig.getJenkinsJobUrl(); try { Job job = jobRetriever.retrieve(jobUrl); JobState state = jobStateRetriever.retrieve(job); hub.addJob(job, state); UpdateMode updateMode = jobConfig.getU...
diff --git a/bundles/core/org.openhab.core/src/main/java/org/openhab/core/internal/CoreActivator.java b/bundles/core/org.openhab.core/src/main/java/org/openhab/core/internal/CoreActivator.java index 1b014a6e..e6162a9b 100644 --- a/bundles/core/org.openhab.core/src/main/java/org/openhab/core/internal/CoreActivator.java ...
false
true
private void checkVersion(String uuidString, String versionString) { HttpClient client = new HttpClient(); HttpMethod method = new GetMethod(VERSION_URL + "?uuid=" + uuidString + "&" + "version=" + versionString); method.getParams().setSoTimeout(3000); method.getParams().setParameter( HttpMethodParams.RETRY...
private void checkVersion(String uuidString, String versionString) { HttpClient client = new HttpClient(); HttpMethod method = new GetMethod(VERSION_URL + "?uuid=" + uuidString + "&" + "version=" + versionString); method.getParams().setSoTimeout(3000); method.getParams().setParameter( HttpMethodParams.RETRY...
diff --git a/modules/matrix/org/molgenis/matrix/component/Column.java b/modules/matrix/org/molgenis/matrix/component/Column.java index c3e5ebf83..bc0853ae0 100644 --- a/modules/matrix/org/molgenis/matrix/component/Column.java +++ b/modules/matrix/org/molgenis/matrix/component/Column.java @@ -1,94 +1,94 @@ package org....
false
true
public static ColumnType getColumnType(String columnType) { columnType = WordUtils.capitalize(columnType); if(columnType.startsWith("NUMMER")) { final int decimalPrecision = Integer.parseInt(StringUtils.substringBetween(columnType, ",", ")")); //final int precision = Integ...
public static ColumnType getColumnType(String columnType) { columnType = WordUtils.capitalize(columnType); if(columnType.startsWith("NUMMER") || columnType.startsWith("NUMBER")) { final int decimalPrecision = Integer.parseInt(StringUtils.substringBetween(columnType, ",", ")")); ...
diff --git a/src/com/nononsenseapps/notepad/FragmentLayout.java b/src/com/nononsenseapps/notepad/FragmentLayout.java index 01e348f3..7226f2a2 100644 --- a/src/com/nononsenseapps/notepad/FragmentLayout.java +++ b/src/com/nononsenseapps/notepad/FragmentLayout.java @@ -1,395 +1,395 @@ package com.nononsenseapps.notepad; ...
true
true
protected void onCreate(Bundle savedInstanceState) { // Make sure to set themes before this super.onCreate(savedInstanceState); Log.d("NotesEditorActivity", "onCreate"); if (NotesPreferenceFragment.THEME_LIGHT_ICS_AB .equals(FragmentLayout.currentTheme)) { setTheme(R.style.ThemeHoloLightDarkAct...
protected void onCreate(Bundle savedInstanceState) { // Make sure to set themes before this super.onCreate(savedInstanceState); Log.d("NotesEditorActivity", "onCreate"); if (NotesPreferenceFragment.THEME_LIGHT_ICS_AB .equals(FragmentLayout.currentTheme)) { setTheme(R.style.ThemeHoloLightDarkAct...
diff --git a/src/main/java/com/github/fge/uritemplate/URITemplateMessageBundle.java b/src/main/java/com/github/fge/uritemplate/URITemplateMessageBundle.java index 730624b..015e80d 100644 --- a/src/main/java/com/github/fge/uritemplate/URITemplateMessageBundle.java +++ b/src/main/java/com/github/fge/uritemplate/URITempla...
true
true
public MessageBundle getBundle() { return PropertiesBundle .forPath("/com/github/fge/uritemplate/messages"); }
public MessageBundle getBundle() { return PropertiesBundle.forPath("/com/github/fge/uritemplate/messages"); }
diff --git a/src/org/accesointeligente/server/robots/RequestCreator.java b/src/org/accesointeligente/server/robots/RequestCreator.java index 92074d6..d41bf63 100644 --- a/src/org/accesointeligente/server/robots/RequestCreator.java +++ b/src/org/accesointeligente/server/robots/RequestCreator.java @@ -1,79 +1,79 @@ /** ...
true
true
public void createRequests() { Session hibernate = null; try { hibernate = HibernateUtil.getSession(); hibernate.beginTransaction(); Criteria criteria = hibernate.createCriteria(Request.class); criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); criteria.setFetchMode("institution", FetchM...
public void createRequests() { Session hibernate = null; try { hibernate = HibernateUtil.getSession(); hibernate.beginTransaction(); Criteria criteria = hibernate.createCriteria(Request.class); criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); criteria.setFetchMode("institution", FetchM...
diff --git a/src/main/java/dk/statsbiblioteket/mediaplatform/ingest/channelarchivingrequester/web/YouSeeChannelMappingCRUDServlet.java b/src/main/java/dk/statsbiblioteket/mediaplatform/ingest/channelarchivingrequester/web/YouSeeChannelMappingCRUDServlet.java index 7a5726f..6c97901 100644 --- a/src/main/java/dk/statsbib...
false
true
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String action = req.getParameter(SUBMIT_ACTION); String id = req.getParameter(ID); String sbChannelName = req.getParameter(SB_ID); String youSeeName = req.getParameter(UC_I...
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String action = req.getParameter(SUBMIT_ACTION); String id = req.getParameter(ID); String sbChannelName = req.getParameter(SB_ID); String youSeeName = req.getParameter(UC_I...
diff --git a/src/com/jgaap/ui/JGAAP_UI_MainForm.java b/src/com/jgaap/ui/JGAAP_UI_MainForm.java index 2cdf55d..038f38d 100644 --- a/src/com/jgaap/ui/JGAAP_UI_MainForm.java +++ b/src/com/jgaap/ui/JGAAP_UI_MainForm.java @@ -1,2894 +1,2894 @@ /* * JGAAP -- a graphical program for stylometric authorship attribution * C...
true
true
private void initComponents() { helpDialog = new javax.swing.JDialog(); helpCloseButton = new javax.swing.JButton(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jLabel23 = new javax.swing.JLabel(); ...
private void initComponents() { helpDialog = new javax.swing.JDialog(); helpCloseButton = new javax.swing.JButton(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jLabel23 = new javax.swing.JLabel(); ...
diff --git a/src/org/newdawn/slick/BigImage.java b/src/org/newdawn/slick/BigImage.java index bd057c2..ea5066b 100644 --- a/src/org/newdawn/slick/BigImage.java +++ b/src/org/newdawn/slick/BigImage.java @@ -1,577 +1,578 @@ package org.newdawn.slick; import java.io.IOException; import java.nio.ByteBuffer; import jav...
false
true
private void build(String ref, int filter, int tileSize) throws SlickException { try { final LoadableImageData data = ImageDataFactory.getImageDataFor(ref); final ByteBuffer imageBuffer = data.loadImage(ResourceLoader.getResourceAsStream(ref), false, null); final int dataWidth = data.getTexWidth(); final...
private void build(String ref, int filter, int tileSize) throws SlickException { try { final LoadableImageData data = ImageDataFactory.getImageDataFor(ref); final ByteBuffer imageBuffer = data.loadImage(ResourceLoader.getResourceAsStream(ref), false, null); final int dataWidth = data.getTexWidth(); final...
diff --git a/src/net/bubbaland/trivia/client/TriviaClient.java b/src/net/bubbaland/trivia/client/TriviaClient.java index fd8ffa0..ce18689 100644 --- a/src/net/bubbaland/trivia/client/TriviaClient.java +++ b/src/net/bubbaland/trivia/client/TriviaClient.java @@ -1,1202 +1,1202 @@ package net.bubbaland.trivia.client; ...
false
true
private TriviaClient(JFrame parent, TriviaInterface server, boolean useFX) { // Call parent constructor super(); this.server = server; this.frame = parent; // Listen for the window close so we can save the size & position this.frame.addWindowListener(this); // Grab a copy of the current Trivia data st...
private TriviaClient(JFrame parent, TriviaInterface server, boolean useFX) { // Call parent constructor super(); this.server = server; this.frame = parent; // Listen for the window close so we can save the size & position this.frame.addWindowListener(this); // Grab a copy of the current Trivia data st...
diff --git a/openid-connect-server/src/main/java/org/mitre/openid/connect/ConnectOAuth2RequestFactory.java b/openid-connect-server/src/main/java/org/mitre/openid/connect/ConnectOAuth2RequestFactory.java index 1277e1db..41b889c6 100644 --- a/openid-connect-server/src/main/java/org/mitre/openid/connect/ConnectOAuth2Reque...
false
true
private Map<String, String> processRequestObject(Map<String, String> inputParams) { String jwtString = inputParams.get("request"); // if there's no request object, bail early if (Strings.isNullOrEmpty(jwtString)) { return inputParams; } // start by copying over what's already in there Map<String, Str...
private Map<String, String> processRequestObject(Map<String, String> inputParams) { String jwtString = inputParams.get("request"); // if there's no request object, bail early if (Strings.isNullOrEmpty(jwtString)) { return inputParams; } // start by copying over what's already in there Map<String, Str...
diff --git a/src/uk/org/ponder/rsf/renderer/html/HeadInferringTPI.java b/src/uk/org/ponder/rsf/renderer/html/HeadInferringTPI.java index 7f2affb..a19ba7c 100644 --- a/src/uk/org/ponder/rsf/renderer/html/HeadInferringTPI.java +++ b/src/uk/org/ponder/rsf/renderer/html/HeadInferringTPI.java @@ -1,25 +1,25 @@ /* * Creat...
true
true
public void adjustAttributes(String tag, Map attributes) { if (tag.equals("head")) { attributes.put(XMLLump.ID_ATTRIBUTE, XMLLump.SCR_PREFIX + HeadCollectingSCR.NAME); } }
public void adjustAttributes(String tag, Map attributes) { if (tag.equals("head") && attributes.get(XMLLump.ID_ATTRIBUTE) == null) { attributes.put(XMLLump.ID_ATTRIBUTE, XMLLump.SCR_PREFIX + HeadCollectingSCR.NAME); } }
diff --git a/IronChests2/common/net/minecraft/src/mod_IronChest.java b/IronChests2/common/net/minecraft/src/mod_IronChest.java index 9057753..66e0a04 100644 --- a/IronChests2/common/net/minecraft/src/mod_IronChest.java +++ b/IronChests2/common/net/minecraft/src/mod_IronChest.java @@ -1,69 +1,69 @@ package net.minecraf...
false
true
public void load() { MinecraftForge.versionDetect("IronChest", 1, 3, 0); proxy = ServerClientProxy.getProxy(); File cfgFile = new File(proxy.getMinecraftDir(), "config/IronChest.cfg"); Configuration cfg = new Configuration(cfgFile); try { cfg.load(); ironChestBlock = new BlockIronChest(Integer.parseInt...
public void load() { MinecraftForge.versionDetect("IronChest", 1, 3, 0); proxy = ServerClientProxy.getProxy(); File cfgFile = new File(proxy.getMinecraftDir(), "config/IronChest.cfg"); Configuration cfg = new Configuration(cfgFile); try { cfg.load(); ironChestBlock = new BlockIronChest(Integer.parseInt...
diff --git a/src/TextureTools.java b/src/TextureTools.java index ecfa297..7308727 100644 --- a/src/TextureTools.java +++ b/src/TextureTools.java @@ -1,160 +1,160 @@ import ij.ImagePlus; import ij.process.Blitter; import ij.process.ByteProcessor; import ij.process.ImageProcessor; import java.awt.Color; import ja...
true
true
static IntegralImage[] generateLaplacianIntegralPyramid(ImageProcessor img) { ImageProcessor[] gaussianIm = new ImageProcessor[NUM_LAP_PYR_LEVELS + 1]; ImageProcessor[] laplacianIm = new ImageProcessor[NUM_LAP_PYR_LEVELS + 1]; IntegralImage[] result = new IntegralImage[NUM_LAP_PYR_LEVELS * 3...
static IntegralImage[] generateLaplacianIntegralPyramid(ImageProcessor img) { ImageProcessor[] gaussianIm = new ImageProcessor[NUM_LAP_PYR_LEVELS + 1]; ImageProcessor[] laplacianIm = new ImageProcessor[NUM_LAP_PYR_LEVELS + 1]; IntegralImage[] result = new IntegralImage[NUM_LAP_PYR_LEVELS * 3...
diff --git a/grib/src/main/java/ucar/nc2/grib/GribVariableRenamer.java b/grib/src/main/java/ucar/nc2/grib/GribVariableRenamer.java index 1b87eeb19..271e02169 100644 --- a/grib/src/main/java/ucar/nc2/grib/GribVariableRenamer.java +++ b/grib/src/main/java/ucar/nc2/grib/GribVariableRenamer.java @@ -1,316 +1,316 @@ packag...
true
true
public List<String> matchNcepNames(GridDataset gds, String oldName) { List<String> result = new ArrayList<String>(); // look for exact match if (contains(gds, oldName)) { result.add(oldName); return result; } Attribute att = gds.findGlobalAttributeIgnoreCase(CDM.FILE_FORMAT...
public List<String> matchNcepNames(GridDataset gds, String oldName) { List<String> result = new ArrayList<String>(); // look for exact match if (contains(gds, oldName)) { result.add(oldName); return result; } Attribute att = gds.findGlobalAttributeIgnoreCase(CDM.FILE_FORMAT...
diff --git a/src/main/java/org/jboss/seam/forge/arquillian/container/Jboss6Managed.java b/src/main/java/org/jboss/seam/forge/arquillian/container/Jboss6Managed.java index 2b0ac5d..2b0943c 100644 --- a/src/main/java/org/jboss/seam/forge/arquillian/container/Jboss6Managed.java +++ b/src/main/java/org/jboss/seam/forge/arq...
true
true
@Override public void installDependencies() { DependencyBuilder dep1 = DependencyBuilder.create() .setGroupId("org.jboss.arquillian.container") .setArtifactId("arquillian-jbossas-managed-6") .setVersion(arquillianVersion); DependencyBuilder dep2 = Dep...
@Override public void installDependencies() { DependencyBuilder dep1 = DependencyBuilder.create() .setGroupId("org.jboss.arquillian.container") .setArtifactId("arquillian-jbossas-managed-6") .setVersion(arquillianVersion); DependencyBuilder dep2 = Dep...
diff --git a/src/me/coolblinger/signrank/SignRank.java b/src/me/coolblinger/signrank/SignRank.java index 12a1dbd..fcb45d0 100644 --- a/src/me/coolblinger/signrank/SignRank.java +++ b/src/me/coolblinger/signrank/SignRank.java @@ -1,158 +1,158 @@ package me.coolblinger.signrank; import com.nijiko.permissions.Permissi...
false
true
public void onEnable() { PluginDescriptionFile pdFile = this.getDescription(); PluginManager pm = this.getServer().getPluginManager(); Plugin permissionsBukkitPlugin = pm.getPlugin("PermissionsBukkit"); Plugin groupManagerPlugin = pm.getPlugin("GroupManager"); Plugin permissions3Plugin = pm.getPlugin("Permis...
public void onEnable() { PluginDescriptionFile pdFile = this.getDescription(); PluginManager pm = this.getServer().getPluginManager(); Plugin permissionsBukkitPlugin = pm.getPlugin("PermissionsBukkit"); Plugin groupManagerPlugin = pm.getPlugin("GroupManager"); Plugin permissions3Plugin = pm.getPlugin("Permis...
diff --git a/src/java/org/apache/hadoop/mapred/TaskLogAppender.java b/src/java/org/apache/hadoop/mapred/TaskLogAppender.java index af2e07755..37e79190b 100644 --- a/src/java/org/apache/hadoop/mapred/TaskLogAppender.java +++ b/src/java/org/apache/hadoop/mapred/TaskLogAppender.java @@ -1,120 +1,121 @@ package org.apache...
true
true
protected synchronized void append(LoggingEvent event) { if (taskLogWriter == null) { errorHandler.error("Calling 'append' on uninitialize/closed logger"); return; } if (this.layout == null) { errorHandler.error("No layout for appender " + name , null, ErrorCod...
protected synchronized void append(LoggingEvent event) { if (taskLogWriter == null) { errorHandler.error("Calling 'append' on uninitialize/closed logger"); return; } if (this.layout == null) { errorHandler.error("No layout for appender " + name , null, ErrorCod...
diff --git a/phoneticket-app/src/main/java/com/cinemar/phoneticket/model/User.java b/phoneticket-app/src/main/java/com/cinemar/phoneticket/model/User.java index d354fdd..5c196e6 100644 --- a/phoneticket-app/src/main/java/com/cinemar/phoneticket/model/User.java +++ b/phoneticket-app/src/main/java/com/cinemar/phoneticket...
true
true
public User(JSONObject user) throws ParseException { this(user.optString("email"), user.optString("password")); this.nombre = user.optString("first_name"); this.apellido = user.optString("last_name"); this.dni = user.optString("document"); this.direccion = user.optString("address"); this.telefono = user.op...
public User(JSONObject user) throws ParseException { this(user.optString("email"), user.optString("password")); this.nombre = user.optString("first_name"); this.apellido = user.optString("last_name"); this.dni = user.optString("document"); this.direccion = user.optString("address"); this.telefono = user.op...
diff --git a/app/controllers/Contents.java b/app/controllers/Contents.java index ecc361b..3a37749 100644 --- a/app/controllers/Contents.java +++ b/app/controllers/Contents.java @@ -1,51 +1,51 @@ package controllers; import java.util.List; import java.io.File; import java.io.FileInputStream; import java.io.FileNo...
true
true
public static void show(Integer id) { List<Content> contents = null; String controller = request.get().controller; Logger.debug("Contents#show -> id: " + id); Logger.debug("controller: " + controller); if (controller.equals("Photos")) { contents = Photo.find("byId", new Long(...
public static void show(Integer id) { List<Content> contents = null; String controller = request.get().controller; Logger.debug("Contents#show -> id: " + id); Logger.debug("controller: " + controller); if (controller.equals("Photos")) { contents = Photo.find("byId", new Long(...
diff --git a/src/main/java/org/jraf/androidcontentprovidergenerator/Main.java b/src/main/java/org/jraf/androidcontentprovidergenerator/Main.java index d7ef92f..78e4823 100644 --- a/src/main/java/org/jraf/androidcontentprovidergenerator/Main.java +++ b/src/main/java/org/jraf/androidcontentprovidergenerator/Main.java @@ ...
true
true
private void loadModel(File inputDir) throws IOException, JSONException { File[] entityFiles = inputDir.listFiles(new FileFilter() { @Override public boolean accept(File pathname) { return !pathname.getName().startsWith("_") && pathname.getName().endsWith(".json"); ...
private void loadModel(File inputDir) throws IOException, JSONException { File[] entityFiles = inputDir.listFiles(new FileFilter() { @Override public boolean accept(File pathname) { return !pathname.getName().startsWith("_") && pathname.getName().endsWith(".json"); ...
diff --git a/src/com/mojang/mojam/sound/SoundPlayer.java b/src/com/mojang/mojam/sound/SoundPlayer.java index 000f649c..9d7c93a6 100644 --- a/src/com/mojang/mojam/sound/SoundPlayer.java +++ b/src/com/mojang/mojam/sound/SoundPlayer.java @@ -1,231 +1,231 @@ package com.mojang.mojam.sound; import java.util.Set; import...
true
true
private boolean playSound(String sourceName, float x, float y, boolean blocking, int index) { if (index < MAX_SOURCES_PER_SOUND && !isMuted() && hasWavPlaybackSupport()) { String indexedSourceName = sourceName + index; if (!loaded.contains(indexedSourceName)) { getSoundSystem().newSource(false, indexedSour...
private boolean playSound(String sourceName, float x, float y, boolean blocking, int index) { if (index < MAX_SOURCES_PER_SOUND && !isMuted() && hasWavPlaybackSupport()) { String indexedSourceName = sourceName + index; if (!loaded.contains(indexedSourceName)) { getSoundSystem().newSource(false, indexedSour...
diff --git a/src/main/java/edu/knowitall/tac2013/preprocess/tac/KbpCorpusParser.java b/src/main/java/edu/knowitall/tac2013/preprocess/tac/KbpCorpusParser.java index b69be14..b59bfea 100644 --- a/src/main/java/edu/knowitall/tac2013/preprocess/tac/KbpCorpusParser.java +++ b/src/main/java/edu/knowitall/tac2013/preprocess/...
true
true
public static void main(String[] args) throws FileNotFoundException { String usage = "Usage: KbpCorpusParser <inputfile> <outputfile> [--news, --web, --forum]\n" + "Set inputfile=\"stdin\" to read from standard input.\n" + "Set outputfile=\"stdout\" to write to standard output."; if (args.lengt...
public static void main(String[] args) throws FileNotFoundException { String usage = "Usage: KbpCorpusParser <inputfile> <outputfile> [--news, --web, --forum]\n" + "Set inputfile=\"stdin\" to read from standard input.\n" + "Set outputfile=\"stdout\" to write to standard output."; if (args.lengt...
diff --git a/LNReader/src/com/erakk/lnreader/activity/DisplaySettingsActivity.java b/LNReader/src/com/erakk/lnreader/activity/DisplaySettingsActivity.java index 2fdb97e..f7778b7 100644 --- a/LNReader/src/com/erakk/lnreader/activity/DisplaySettingsActivity.java +++ b/LNReader/src/com/erakk/lnreader/activity/DisplaySetti...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); UIHelper.SetTheme(this, null); UIHelper.SetActionBarDisplayHomeAsUp(this, true); activity = this; //This man is deprecated but but we may want to be able to run on older API addPrefere...
public void onCreate(Bundle savedInstanceState) { UIHelper.SetTheme(this, null); super.onCreate(savedInstanceState); UIHelper.SetActionBarDisplayHomeAsUp(this, true); activity = this; //This man is deprecated but but we may want to be able to run on older API addPreference...
diff --git a/src/com/redhat/ceylon/compiler/codegen/StatementTransformer.java b/src/com/redhat/ceylon/compiler/codegen/StatementTransformer.java index 96f466dc6..a15a3cfa6 100755 --- a/src/com/redhat/ceylon/compiler/codegen/StatementTransformer.java +++ b/src/com/redhat/ceylon/compiler/codegen/StatementTransformer.java...
true
true
private List<JCStatement> transformCondition(Tree.Condition cond, int tag, Tree.Block thenPart, Tree.Block elsePart) { JCExpression test; JCVariableDecl decl = null; JCBlock thenBlock = null; JCBlock elseBlock = null; if ((cond instanceof Tree.IsCondition) || (cond instanceof...
private List<JCStatement> transformCondition(Tree.Condition cond, int tag, Tree.Block thenPart, Tree.Block elsePart) { JCExpression test; JCVariableDecl decl = null; JCBlock thenBlock = null; JCBlock elseBlock = null; if ((cond instanceof Tree.IsCondition) || (cond instanceof...
diff --git a/core/src/main/java/hudson/tools/JDKInstaller.java b/core/src/main/java/hudson/tools/JDKInstaller.java index a3fd2e65c..4c1baf23d 100644 --- a/core/src/main/java/hudson/tools/JDKInstaller.java +++ b/core/src/main/java/hudson/tools/JDKInstaller.java @@ -1,499 +1,501 @@ /* * The MIT License * * Copyrig...
true
true
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException { FilePath expectedLocation = preferredLocation(tool, node); PrintStream out = log.getLogger(); try { if(!acceptLicense) { out.println(...
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException { FilePath expectedLocation = preferredLocation(tool, node); PrintStream out = log.getLogger(); try { if(!acceptLicense) { out.println(...
diff --git a/src/java/com/tracker/backend/webinterface/TorrentUpload.java b/src/java/com/tracker/backend/webinterface/TorrentUpload.java index 21ba455..ac48237 100644 --- a/src/java/com/tracker/backend/webinterface/TorrentUpload.java +++ b/src/java/com/tracker/backend/webinterface/TorrentUpload.java @@ -1,422 +1,422 @@...
false
true
public static TreeMap<String,String> addTorrent(InputStream torrent, String torrentName, String torrentDescription, String contextPath) throws Exception { Long torrentLength = new Long(0L); Torrent t; TorrentData tData; TorrentFile tFile; // list of files and the...
public static TreeMap<String,String> addTorrent(InputStream torrent, String torrentName, String torrentDescription, String contextPath) throws Exception { Long torrentLength = new Long(0L); Torrent t; TorrentData tData; TorrentFile tFile; // list of files and the...
diff --git a/iwsn/iwsn-cmdline/src/main/java/de/uniluebeck/itm/tr/iwsn/cmdline/IWSNServer.java b/iwsn/iwsn-cmdline/src/main/java/de/uniluebeck/itm/tr/iwsn/cmdline/IWSNServer.java index 7542ddc5..a6b4aa08 100644 --- a/iwsn/iwsn-cmdline/src/main/java/de/uniluebeck/itm/tr/iwsn/cmdline/IWSNServer.java +++ b/iwsn/iwsn-cmdli...
true
true
public static void start(String[] args) throws Exception { File xmlFile = null; String nodeId = null; // create the command line parser CommandLineParser parser = new PosixParser(); Options options = new Options(); options.addOption("n", "nodeid", true, "Node ID to start (the id attribute of the node...
public static void start(String[] args) throws Exception { File xmlFile = null; String nodeId = null; // create the command line parser CommandLineParser parser = new PosixParser(); Options options = new Options(); options.addOption("n", "nodeid", true, "Node ID to start (the id attribute of the node...
diff --git a/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java b/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java index c4ffc539..740e6716 100644 --- a/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java +++ b/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java @@ -1,77 +1,77 @@ package net.md...
true
true
public static void get(String url, EventLoop eventLoop, final Callback<String> callback) { Preconditions.checkNotNull( url, "url" ); Preconditions.checkNotNull( eventLoop, "eventLoop" ); Preconditions.checkNotNull( callback, "callBack" ); final URI uri = URI.create( url ); ...
public static void get(String url, EventLoop eventLoop, final Callback<String> callback) { Preconditions.checkNotNull( url, "url" ); Preconditions.checkNotNull( eventLoop, "eventLoop" ); Preconditions.checkNotNull( callback, "callBack" ); final URI uri = URI.create( url ); ...
diff --git a/jodd-core/src/test/java/jodd/util/ClassLoaderUtilTest.java b/jodd-core/src/test/java/jodd/util/ClassLoaderUtilTest.java index 160db907a..25a8b11b4 100644 --- a/jodd-core/src/test/java/jodd/util/ClassLoaderUtilTest.java +++ b/jodd-core/src/test/java/jodd/util/ClassLoaderUtilTest.java @@ -1,84 +1,84 @@ // C...
true
true
public void testLoadClass() throws ClassNotFoundException { try { ClassLoaderUtil.loadClass("not.existing.class"); } catch (ClassNotFoundException cnfex) { assertEquals("Class not found: not.existing.class", cnfex.getMessage()); } try { Class joddClass = ClassLoaderUtil.loadClass("jodd.Jodd"); ass...
public void testLoadClass() throws ClassNotFoundException { try { ClassLoaderUtil.loadClass("not.existing.class"); } catch (ClassNotFoundException cnfex) { assertEquals("Class not found: not.existing.class", cnfex.getMessage()); } try { Class joddClass = ClassLoaderUtil.loadClass("jodd.util.ClassLoad...
diff --git a/cruisecontrol/reporting/jsp/test/net/sourceforge/cruisecontrol/StatusHelperTest.java b/cruisecontrol/reporting/jsp/test/net/sourceforge/cruisecontrol/StatusHelperTest.java index a294d548..db8129ae 100644 --- a/cruisecontrol/reporting/jsp/test/net/sourceforge/cruisecontrol/StatusHelperTest.java +++ b/cruise...
true
true
protected void setUp() throws Exception { helper = new StatusHelper(); // make base log dir logDir = new File(LOG_DIR); if (logDir.isFile()) { logDir.delete(); } if (!logDir.isDirectory()) { if (!logDir.getParentFile().exists()) { ...
protected void setUp() throws Exception { helper = new StatusHelper(); // make base log dir logDir = new File(LOG_DIR); if (logDir.isFile()) { logDir.delete(); } if (!logDir.isDirectory()) { if (!logDir.getParentFile().exists()) { ...
diff --git a/Content.java b/Content.java index 91b0d9a..cf7086f 100644 --- a/Content.java +++ b/Content.java @@ -1,88 +1,88 @@ package applets.Komplexe$Zahlen_Polarkoord_Multiplikation; import java.awt.Color; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import ...
true
true
public void run() { graph = new PGraph(applet, 400, 400); graph.x_l = -4; graph.x_r = 4; graph.y_o = 4; graph.y_u = -4; graph.showPolarcircles = true; graph.dragablePoints.add(new PGraph.GraphPoint(z1Params, Color.RED, true, true)); graph.dragablePoints.add(new PGraph.GraphPoint(z2Params, Color.RED,...
public void run() { graph = new PGraph(applet, 400, 400); graph.x_l = -4; graph.x_r = 4; graph.y_o = 4; graph.y_u = -4; graph.showPolarcircles = true; graph.dragablePoints.add(new PGraph.GraphPoint(z1Params, Color.RED, true, true)); graph.dragablePoints.add(new PGraph.GraphPoint(z2Params, Color.RED,...
diff --git a/src/test/java/ij/io/FileInfoTest.java b/src/test/java/ij/io/FileInfoTest.java index aa8b209..f2e2028 100644 --- a/src/test/java/ij/io/FileInfoTest.java +++ b/src/test/java/ij/io/FileInfoTest.java @@ -1,348 +1,349 @@ package ij.io; import static org.junit.Assert.*; import org.junit.After; import org...
false
true
public void testGetBytesPerPixel() { // make sure getPytesPerPixel() is returning correct values for all possible fileTypes fInfo.fileType = FileInfo.GRAY8; assertEquals(1,fInfo.getBytesPerPixel()); fInfo.fileType = FileInfo.COLOR8; assertEquals(1,fInfo.getBytesPerPixel()); fInfo.fileType = FileIn...
public void testGetBytesPerPixel() { // make sure getPytesPerPixel() is returning correct values for all possible fileTypes fInfo.fileType = FileInfo.GRAY8; assertEquals(1,fInfo.getBytesPerPixel()); fInfo.fileType = FileInfo.COLOR8; assertEquals(1,fInfo.getBytesPerPixel()); fInfo.fileType = FileIn...
diff --git a/managed/src/main/org/jboss/managed/plugins/WritethroughManagedPropertyImpl.java b/managed/src/main/org/jboss/managed/plugins/WritethroughManagedPropertyImpl.java index 76427d92..6526600e 100644 --- a/managed/src/main/org/jboss/managed/plugins/WritethroughManagedPropertyImpl.java +++ b/managed/src/main/org/...
true
true
public void setValue(Serializable value) { super.setValue(value); PropertyInfo propertyInfo = getField(Fields.PROPERTY_INFO, PropertyInfo.class); if (propertyInfo != null) { Serializable attachment = getManagedObject().getAttachment(); if (attachment != null) { ...
public void setValue(Serializable value) { super.setValue(value); PropertyInfo propertyInfo = getField(Fields.PROPERTY_INFO, PropertyInfo.class); if (propertyInfo != null) { Serializable attachment = getManagedObject().getAttachment(); if (attachment != null) { ...
diff --git a/src/web/org/codehaus/groovy/grails/web/errors/GrailsWrappedRuntimeException.java b/src/web/org/codehaus/groovy/grails/web/errors/GrailsWrappedRuntimeException.java index 6df2ade55..a497a276f 100644 --- a/src/web/org/codehaus/groovy/grails/web/errors/GrailsWrappedRuntimeException.java +++ b/src/web/org/code...
true
true
public GrailsWrappedRuntimeException(Throwable t) { super(this.t.getMessage(), t); this.t = t; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); this.t.printStackTrace(pw); this.stackTrace = sw.toString(); Pattern extractDetails = P...
public GrailsWrappedRuntimeException(Throwable t) { super(t.getMessage(), t); this.t = t; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); this.t.printStackTrace(pw); this.stackTrace = sw.toString(); Pattern extractDetails = Patter...
diff --git a/x10.compiler/src/x10/visit/ConstructorSplitterVisitor.java b/x10.compiler/src/x10/visit/ConstructorSplitterVisitor.java index cd1279310..ac7065729 100755 --- a/x10.compiler/src/x10/visit/ConstructorSplitterVisitor.java +++ b/x10.compiler/src/x10/visit/ConstructorSplitterVisitor.java @@ -1,161 +1,174 @@ /*...
false
true
protected Node leaveCall(Node parent, Node old, Node node, NodeVisitor v) throws SemanticException { Position pos = node.position(); if (node instanceof New && !(parent instanceof LocalDecl)){ New n = (New) node; // Type type = Types.baseType(n.type()); ...
protected Node leaveCall(Node parent, Node old, Node node, NodeVisitor v) throws SemanticException { Position pos = node.position(); if (node instanceof New && !(parent instanceof LocalDecl)){ New n = (New) node; // Type type = Types.baseType(n.type()); ...
diff --git a/src/main/java/org/jggug/kobo/gircbot/reactors/Logger.java b/src/main/java/org/jggug/kobo/gircbot/reactors/Logger.java index 0d5282c..0a3fc72 100644 --- a/src/main/java/org/jggug/kobo/gircbot/reactors/Logger.java +++ b/src/main/java/org/jggug/kobo/gircbot/reactors/Logger.java @@ -1,67 +1,67 @@ package org....
true
true
public void onNotice(String sourceNick, String sourceLogin, String sourceHostname, String target, String notice) { if (target.startsWith("#")) { appender.append("PRIVMSG", target, sourceNick, notice); } }
public void onNotice(String sourceNick, String sourceLogin, String sourceHostname, String target, String notice) { if (target.startsWith("#")) { appender.append("NOTICE", target, sourceNick, notice); } }
diff --git a/base/src/edu/berkeley/cs/cs162/User.java b/base/src/edu/berkeley/cs/cs162/User.java index 098d47e..21930a2 100644 --- a/base/src/edu/berkeley/cs/cs162/User.java +++ b/base/src/edu/berkeley/cs/cs162/User.java @@ -1,285 +1,292 @@ package edu.berkeley.cs.cs162; import java.io.IOException; import java.i...
false
true
public boolean setSocket(Socket socket){ this.mySocket = socket; try { received = new ObjectInputStream(mySocket.getInputStream()); sent = new ObjectOutputStream(mySocket.getOutputStream()); sender = new Thread(){ @Override public void run(){ while(!loggedOff) { try { sent.write...
public boolean setSocket(Socket socket){ this.mySocket = socket; try { received = new ObjectInputStream(mySocket.getInputStream()); sent = new ObjectOutputStream(mySocket.getOutputStream()); sender = new Thread(){ @Override public void run(){ while(!loggedOff) { TransportObject reply =...
diff --git a/src/net/nightwhistler/pageturner/view/bookview/StaticLayoutFactory.java b/src/net/nightwhistler/pageturner/view/bookview/StaticLayoutFactory.java index 1d7a481..c96bcde 100644 --- a/src/net/nightwhistler/pageturner/view/bookview/StaticLayoutFactory.java +++ b/src/net/nightwhistler/pageturner/view/bookview/...
true
true
public StaticLayout create(CharSequence source, TextPaint paint, int width, float spacingadd) { return new StaticLayout(source, paint, width, Alignment.ALIGN_NORMAL, 1.0f, spacingadd, false); }
public StaticLayout create(CharSequence source, TextPaint paint, int width, float spacingadd) { return new StaticLayout(source, paint, width, Alignment.ALIGN_NORMAL, 1.0f, spacingadd, true); }
diff --git a/src/assemblernator/LinkerModule.java b/src/assemblernator/LinkerModule.java index 6b827a3..34b9088 100644 --- a/src/assemblernator/LinkerModule.java +++ b/src/assemblernator/LinkerModule.java @@ -1,422 +1,443 @@ package assemblernator; import static assemblernator.ErrorReporting.makeError; import java...
false
true
public LinkerModule(InputStream in, ErrorHandler error) { // scan wrap Scanner read = new Scanner(in); ScanWrap reader = new ScanWrap(read, error); //String used for name String ender = ""; //Number of records int mod = 0; int link = 0; int text = 0; //value checking boolean isValid = true; ...
public LinkerModule(InputStream in, ErrorHandler error) { // scan wrap Scanner read = new Scanner(in); ScanWrap reader = new ScanWrap(read, error); //String used for name String ender = ""; //Number of records int mod = 0; int link = 0; int text = 0; //value checking boolean isValid = true; ...
diff --git a/gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/TrackingId.java b/gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/TrackingId.java index 7df7619df..d59e49273 100644 --- a/gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/TrackingId.java +++ b/gerrit-reviewdb/src/main/java/com/google...
true
true
public boolean equals(final Object obj) { if (obj instanceof TrackingId) { final TrackingId tr = (TrackingId) obj; return tr.key.equals(tr.key); } return false; }
public boolean equals(final Object obj) { if (obj instanceof TrackingId) { final TrackingId tr = (TrackingId) obj; return key.equals(tr.key); } return false; }
diff --git a/src/main/java/org/basex/test/w3c/W3CTS.java b/src/main/java/org/basex/test/w3c/W3CTS.java index 311db0919..7bf6cfc96 100644 --- a/src/main/java/org/basex/test/w3c/W3CTS.java +++ b/src/main/java/org/basex/test/w3c/W3CTS.java @@ -1,862 +1,873 @@ package org.basex.test.w3c; import static org.basex.core.Te...
false
true
private boolean parse(final Nodes root) throws Exception { final String pth = text("@FilePath", root); final String outname = text("@name", root); if(single != null && !outname.startsWith(single)) return true; Performance perf = new Performance(); if(verbose) Util.out("- " + outname); boolea...
private boolean parse(final Nodes root) throws Exception { final String pth = text("@FilePath", root); final String outname = text("@name", root); if(single != null && !outname.startsWith(single)) return true; Performance perf = new Performance(); if(verbose) Util.out("- " + outname); boolea...
diff --git a/src/org/opensolaris/opengrok/history/BazaarHistoryParser.java b/src/org/opensolaris/opengrok/history/BazaarHistoryParser.java index 58d2f4a..671ad55 100644 --- a/src/org/opensolaris/opengrok/history/BazaarHistoryParser.java +++ b/src/org/opensolaris/opengrok/history/BazaarHistoryParser.java @@ -1,176 +1,17...
true
true
public void processStream(InputStream input) throws IOException { SimpleDateFormat df = new SimpleDateFormat("EEE yyyy-MM-dd hh:mm:ss ZZZZ", Locale.US); ArrayList<HistoryEntry> entries = new ArrayList<HistoryEntry>(); BufferedReader in = new BufferedReader(new InputStreamRea...
public void processStream(InputStream input) throws IOException { SimpleDateFormat df = new SimpleDateFormat("EEE yyyy-MM-dd hh:mm:ss ZZZZ", Locale.US); ArrayList<HistoryEntry> entries = new ArrayList<HistoryEntry>(); BufferedReader in = new BufferedReader(new InputStreamRea...
diff --git a/test/UserTest.java b/test/UserTest.java index 38e36e8..cfce8ff 100644 --- a/test/UserTest.java +++ b/test/UserTest.java @@ -1,38 +1,36 @@ import models.RCACase; import models.User; import org.junit.Test; import play.mvc.Before; import play.test.UnitTest; import utils.EncodingUtils; public class Us...
false
true
public void addRcaCaseTest() { User rcaCaseUser = new User("rcaCaseUser@arcatool.fi", "password").save(); assertNotNull(rcaCaseUser); rcaCaseUser.addRCACase("new unique rca case", "type", true, "test company", "14", true).save(); rcaCaseUser.save(); rcaCaseUser.refresh(); assertTrue...
public void addRcaCaseTest() { User rcaCaseUser = new User("rcaCaseUser@arcatool.fi", "password").save(); assertNotNull(rcaCaseUser); rcaCaseUser.addRCACase("new unique rca case", "type", true, "test company", "14", true).save(); rcaCaseUser.save(); rcaCaseUser.refresh(); assertTrue...
diff --git a/JavaSource/org/unitime/timetable/onlinesectioning/OnlineSectioningServerImpl.java b/JavaSource/org/unitime/timetable/onlinesectioning/OnlineSectioningServerImpl.java index 81de74a9..a4c611a4 100644 --- a/JavaSource/org/unitime/timetable/onlinesectioning/OnlineSectioningServerImpl.java +++ b/JavaSource/org/...
false
true
OnlineSectioningServerImpl(Long sessionId, boolean waitTillStarted) throws SectioningException { org.hibernate.Session hibSession = SessionDAO.getInstance().createNewSession(); try { Session session = SessionDAO.getInstance().get(sessionId, hibSession); if (session == null) throw new SectioningException(...
OnlineSectioningServerImpl(Long sessionId, boolean waitTillStarted) throws SectioningException { iConfig = new ServerConfig(); org.hibernate.Session hibSession = SessionDAO.getInstance().createNewSession(); try { Session session = SessionDAO.getInstance().get(sessionId, hibSession); if (session == null) ...
diff --git a/src/com/android/music/MediaPlaybackActivity.java b/src/com/android/music/MediaPlaybackActivity.java index be1074d..d5be5b2 100644 --- a/src/com/android/music/MediaPlaybackActivity.java +++ b/src/com/android/music/MediaPlaybackActivity.java @@ -1,1385 +1,1388 @@ /* * Copyright (C) 2007 The Android Open S...
true
true
public boolean onLongClick(View view) { CharSequence title = null; String mime = null; String query = null; String artist; String album; String song; long audioid; try { artist = mService.getArtistName(); album = mServ...
public boolean onLongClick(View view) { CharSequence title = null; String mime = null; String query = null; String artist; String album; String song; long audioid; try { artist = mService.getArtistName(); album = mServ...
diff --git a/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java b/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java index 5f42a932..e18dcb4d 100644 --- a/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java +++ b/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java @@ -1,1230 +1,1241 @@ /*...
false
true
public QueryTripsResult queryTrips(final Location from, final Location via, final Location to, final Date date, final boolean dep, final Set<Product> products, final WalkSpeed walkSpeed, final Accessibility accessibility, final Set<Option> options) throws IOException { final ResultHeader resultHeader = new Resul...
public QueryTripsResult queryTrips(final Location from, final Location via, final Location to, final Date date, final boolean dep, final Set<Product> products, final WalkSpeed walkSpeed, final Accessibility accessibility, final Set<Option> options) throws IOException { final ResultHeader resultHeader = new Resul...
diff --git a/src/main/java/org/arachb/owlbuilder/lib/IndividualParticipant.java b/src/main/java/org/arachb/owlbuilder/lib/IndividualParticipant.java index a1e5ac2..68c2d5e 100644 --- a/src/main/java/org/arachb/owlbuilder/lib/IndividualParticipant.java +++ b/src/main/java/org/arachb/owlbuilder/lib/IndividualParticipant....
false
true
public void fill(AbstractResults record) throws SQLException{ id = record.getInt(DBID); taxon = record.getInt(DBTAXON); substrate = record.getInt(DBSUBSTRATE); anatomy = record.getInt(DBANATOMY); quantification = record.getString(DBQUANTIFICATION); label = record.getString(DBLABEL); generated_id = record...
public void fill(AbstractResults record) throws SQLException{ id = record.getInt(DBID); taxon = record.getInt(DBTAXON); substrate = record.getInt(DBSUBSTRATE); anatomy = record.getInt(DBANATOMY); quantification = record.getString(DBQUANTIFICATION); label = record.getString(DBLABEL); generated_id = record...
diff --git a/src/com/android/calendar/EmailAddressAdapter.java b/src/com/android/calendar/EmailAddressAdapter.java index 46799609..bfcb986f 100644 --- a/src/com/android/calendar/EmailAddressAdapter.java +++ b/src/com/android/calendar/EmailAddressAdapter.java @@ -1,76 +1,76 @@ /* * Copyright (C) 2007 The Android Open...
true
true
private final String makeDisplayString(Cursor cursor) { String name = cursor.getString(NAME_INDEX); String address = cursor.getString(DATA_INDEX); return new Rfc822Token(address, name, null).toString(); }
private final String makeDisplayString(Cursor cursor) { String name = cursor.getString(NAME_INDEX); String address = cursor.getString(DATA_INDEX); return new Rfc822Token(name, address, null).toString(); }
diff --git a/src/main/java/org/mybatis/maven/mvnmigrate/report/StatusCommandReportMojo.java b/src/main/java/org/mybatis/maven/mvnmigrate/report/StatusCommandReportMojo.java index 5001050..36c80b5 100644 --- a/src/main/java/org/mybatis/maven/mvnmigrate/report/StatusCommandReportMojo.java +++ b/src/main/java/org/mybatis/...
true
true
protected void executeReport(Locale locale) throws MavenReportException { if (aggregate && !project.isExecutionRoot()) { return; } if (skip && !aggregate) { if (this.getLog().isInfoEnabled()) { this.getLog().info(getBundle(locale).getString("migration...
protected void executeReport(Locale locale) throws MavenReportException { if (aggregate && !project.isExecutionRoot()) { return; } if (skip && !aggregate) { if (this.getLog().isInfoEnabled()) { this.getLog().info(getBundle(locale).getString("migration...
diff --git a/core/src/java/ru/brandanalyst/core/db/provider/mysql/MySQLArticleProvider.java b/core/src/java/ru/brandanalyst/core/db/provider/mysql/MySQLArticleProvider.java index 704fd53..47250da 100644 --- a/core/src/java/ru/brandanalyst/core/db/provider/mysql/MySQLArticleProvider.java +++ b/core/src/java/ru/brandanal...
true
true
public void writeListOfArticlesToDataStore(final List<Article> articles) { final Iterator<Article> it = articles.iterator(); jdbcTemplate.getJdbcOperations().batchUpdate("INSERT INTO Article (InfoSourceId, BrandId, Title, Content, Link, NumLikes, Tstamp) VALUES(?, ?, ?, ?, ?, ?, ?);", new BatchPrepa...
public void writeListOfArticlesToDataStore(final List<Article> articles) { final Iterator<Article> it = articles.iterator(); jdbcTemplate.getJdbcOperations().batchUpdate("INSERT INTO Article (InfoSourceId, BrandId, Title, Content, Link, NumLikes, Tstamp) VALUES(?, ?, ?, ?, ?, ?, ?);", new BatchPrepa...
diff --git a/java/marytts/tools/voiceimport/HnmTimelineMaker.java b/java/marytts/tools/voiceimport/HnmTimelineMaker.java index 411104030..bc073efa5 100644 --- a/java/marytts/tools/voiceimport/HnmTimelineMaker.java +++ b/java/marytts/tools/voiceimport/HnmTimelineMaker.java @@ -1,349 +1,349 @@ /** * Portions Copyright...
false
true
public boolean compute() { long start = System.currentTimeMillis(); // start timing System.out.println("---- Importing Harmonics plus noise parameters\n\n"); System.out.println("Base directory: " + db.getProp(db.ROOTDIR) + "\n"); /* Export the basename list into...
public boolean compute() { long start = System.currentTimeMillis(); // start timing System.out.println("---- Importing Harmonics plus noise parameters\n\n"); System.out.println("Base directory: " + db.getProp(db.ROOTDIR) + "\n"); /* Export the basename list into...
diff --git a/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/api/items/NonrepairableItemStack.java b/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/api/items/NonrepairableItemStack.java index f72b8cda..09ee7091 100644 --- a/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/api/item...
true
true
public NonrepairableItemStack(Material type, int amount, short durability, String displayName, List<String> lore, Map<Enchantment, Integer> enchantments, int cost) { super(type, amount, durability, displayName, lore, enchantments); if (this instanceof Repairable) { ((Repairable) this).setRepairCost(co...
public NonrepairableItemStack(Material type, int amount, short durability, String displayName, List<String> lore, Map<Enchantment, Integer> enchantments, int cost) { super(type, amount, durability, displayName, lore, enchantments); if (this.getItemMeta() instanceof Repairable) { ((Repairable) this.get...
diff --git a/plugins/org.python.pydev/src/org/python/pydev/logging/ping/LogPingSender.java b/plugins/org.python.pydev/src/org/python/pydev/logging/ping/LogPingSender.java index 9020a5969..5a98b70c2 100644 --- a/plugins/org.python.pydev/src/org/python/pydev/logging/ping/LogPingSender.java +++ b/plugins/org.python.pydev/...
true
true
public boolean sendPing(String pingString) { URL url = null; boolean result = false; try { // gzip POST string // System.out.println("Sending: " + queryString); ByteArrayOutputStream baos = new ByteArrayOutputStream(); GZIPOutputStream gos = new GZIPOutputStream(baos); try { gos.write(pingStr...
public boolean sendPing(String pingString) { URL url = null; boolean result = false; try { // gzip POST string // System.out.println("Sending: " + queryString); ByteArrayOutputStream baos = new ByteArrayOutputStream(); GZIPOutputStream gos = new GZIPOutputStream(baos); try { gos.write(pingStr...
diff --git a/controller/src/main/java/org/apache/ambari/controller/Blueprints.java b/controller/src/main/java/org/apache/ambari/controller/Blueprints.java index 648422867..58f41abef 100644 --- a/controller/src/main/java/org/apache/ambari/controller/Blueprints.java +++ b/controller/src/main/java/org/apache/ambari/contro...
false
true
public void createDummyBlueprint (String name, String revision, String siteName, String siteVersion) { Blueprint bp = new Blueprint(); bp.setName(name); bp.setParentName(siteName); bp.setRevision(revision); bp.setParentRevision(siteVersion); /* ...
public void createDummyBlueprint (String name, String revision, String siteName, String siteVersion) { Blueprint bp = new Blueprint(); bp.setName(name); bp.setParentName(siteName); bp.setRevision(revision); bp.setParentRevision(siteVersion); /* ...
diff --git a/src/com/dmdirc/WritableFrameContainer.java b/src/com/dmdirc/WritableFrameContainer.java index b1698086b..7eb43c397 100644 --- a/src/com/dmdirc/WritableFrameContainer.java +++ b/src/com/dmdirc/WritableFrameContainer.java @@ -1,77 +1,77 @@ /* * Copyright (c) 2006-2007 Chris Smith, Shane Mc Cormack, Gregor...
true
true
public final int getNumLines(final String line) { final String[] splitLines = line.split("(\n|\r\n|\r)"); int lines = 0; for (String splitLine : splitLines) { if (splitLine.isEmpty()) { lines++; } else { lines += (int) Math.ceil(splitLi...
public final int getNumLines(final String line) { final String[] splitLines = line.split("(\n|\r\n|\r)", Integer.MAX_VALUE); int lines = 0; for (String splitLine : splitLines) { if (splitLine.isEmpty()) { lines++; } else { lines += (int...
diff --git a/src/Francify.java b/src/Francify.java index ad03732..dfa8711 100644 --- a/src/Francify.java +++ b/src/Francify.java @@ -1,1024 +1,1024 @@ import java.io.File; import java.util.ArrayList; import java.util.Set; import java.util.TreeMap; import java.util.TreeSet; import controlP5.*; import processi...
true
true
public void setup() { smooth(); size(1000, 600); graphX = 100; graphY = 50; graphW = width - 200; graphH = height - 200; frameRate(30); currentDisplayed = PART_ONE; unpressed = true; movingSlider = false; leftHandle = false; rightHandle = false; myFont = createFont("BrowalliaNew"...
public void setup() { smooth(); size(1000, 600); graphX = 100; graphY = 50; graphW = width - 200; graphH = height - 200; frameRate(30); currentDisplayed = PART_ONE; unpressed = true; movingSlider = false; leftHandle = false; rightHandle = false; myFont = createFont("BrowalliaNew"...
diff --git a/webui/src/main/java/org/estudy/ui/form/UIQuestionForm.java b/webui/src/main/java/org/estudy/ui/form/UIQuestionForm.java index f1a0f0f..4466a40 100644 --- a/webui/src/main/java/org/estudy/ui/form/UIQuestionForm.java +++ b/webui/src/main/java/org/estudy/ui/form/UIQuestionForm.java @@ -1,75 +1,75 @@ package ...
true
true
public UIQuestionForm(){ addChild(new UIFormRichtextInput("editor", "editor", "")); }
public UIQuestionForm(){ addChild(new UIFormRichtextInput("editor", "editor", "").set); }
diff --git a/src/java/org/apache/nutch/fetcher/Fetcher.java b/src/java/org/apache/nutch/fetcher/Fetcher.java index 3d8ded04..412c8032 100644 --- a/src/java/org/apache/nutch/fetcher/Fetcher.java +++ b/src/java/org/apache/nutch/fetcher/Fetcher.java @@ -1,1169 +1,1170 @@ /* * Licensed to the Apache Software Foundation ...
true
true
public void run() { activeThreads.incrementAndGet(); // count threads FetchItem fit = null; try { while (true) { fit = fetchQueues.getFetchItem(); if (fit == null) { if (feeder.isAlive() || fetchQueues.getTotalSize() > 0) { LOG....
public void run() { activeThreads.incrementAndGet(); // count threads FetchItem fit = null; try { while (true) { fit = fetchQueues.getFetchItem(); if (fit == null) { if (feeder.isAlive() || fetchQueues.getTotalSize() > 0) { LOG....
diff --git a/Mobile/BukuDroid/src/org/csie/mpp/buku/ScanActivity.java b/Mobile/BukuDroid/src/org/csie/mpp/buku/ScanActivity.java index 1f88058..8794a00 100644 --- a/Mobile/BukuDroid/src/org/csie/mpp/buku/ScanActivity.java +++ b/Mobile/BukuDroid/src/org/csie/mpp/buku/ScanActivity.java @@ -1,63 +1,63 @@ package org.csie...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.scan); isbn = (EditText)findViewById(R.id.isbn); barcode = (Button)findViewById(R.id.barcode); lookup = (Button)findViewById(R.id.look_up); barcode.setOnCli...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.scan); isbn = (EditText)findViewById(R.id.isbn); barcode = (Button)findViewById(R.id.barcode); lookup = (Button)findViewById(R.id.look_up); barcode.setOnCli...
diff --git a/bundle_framework/src/ddth/dasp/framework/dbc/JdbcUtils.java b/bundle_framework/src/ddth/dasp/framework/dbc/JdbcUtils.java index 35c6d4b..2e59bed 100644 --- a/bundle_framework/src/ddth/dasp/framework/dbc/JdbcUtils.java +++ b/bundle_framework/src/ddth/dasp/framework/dbc/JdbcUtils.java @@ -1,168 +1,168 @@ pa...
true
true
public static PreparedStatement prepareStatement(Connection conn, String sql, Object[] params, boolean isCallable) throws SQLException { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Preparing statement [" + sql + "] with arguments: " + params); } PreparedStatement stm...
public static PreparedStatement prepareStatement(Connection conn, String sql, Object[] params, boolean isCallable) throws SQLException { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Preparing statement [" + sql + "] with arguments: " + params); } PreparedStatement stm...
diff --git a/runtime/src/com/sun/xml/bind/v2/runtime/unmarshaller/Loader.java b/runtime/src/com/sun/xml/bind/v2/runtime/unmarshaller/Loader.java index 9fe1b5a6..0f3cc8b3 100644 --- a/runtime/src/com/sun/xml/bind/v2/runtime/unmarshaller/Loader.java +++ b/runtime/src/com/sun/xml/bind/v2/runtime/unmarshaller/Loader.java @...
false
true
protected final void fireAfterUnmarshal(JaxBeanInfo beanInfo, Object child, UnmarshallingContext.State state) throws SAXException { // fire the event callback if(beanInfo.lookForLifecycleMethods()) { UnmarshallingContext context = state.getContext(); Unmarshaller.Listener lis...
protected final void fireAfterUnmarshal(JaxBeanInfo beanInfo, Object child, UnmarshallingContext.State state) throws SAXException { // fire the event callback if(beanInfo.lookForLifecycleMethods()) { UnmarshallingContext context = state.getContext(); Unmarshaller.Listener lis...
diff --git a/src/uk/me/parabola/mkgmap/main/Main.java b/src/uk/me/parabola/mkgmap/main/Main.java index cba28192..fc04fee1 100644 --- a/src/uk/me/parabola/mkgmap/main/Main.java +++ b/src/uk/me/parabola/mkgmap/main/Main.java @@ -1,371 +1,372 @@ /* * Copyright (C) 2007 Steve Ratcliffe * * This program is free sof...
true
true
public void endOptions(CommandArgs args) { List<String> filenames = new ArrayList<String>(); if(threadPool != null) { threadPool.shutdown(); while(!futures.isEmpty()) { try { try { // don't call get() until a job has finished if(futures.get(0).isDone()) filenames.add(futures.rem...
public void endOptions(CommandArgs args) { List<String> filenames = new ArrayList<String>(); if(threadPool != null) { threadPool.shutdown(); while(!futures.isEmpty()) { try { try { // don't call get() until a job has finished if(futures.get(0).isDone()) filenames.add(futures.rem...
diff --git a/src/test/java/com/github/signed/mp3/GetStarted.java b/src/test/java/com/github/signed/mp3/GetStarted.java index 410a750..07e5897 100644 --- a/src/test/java/com/github/signed/mp3/GetStarted.java +++ b/src/test/java/com/github/signed/mp3/GetStarted.java @@ -1,54 +1,54 @@ package com.github.signed.mp3; im...
true
true
public void executeOnAlbum() throws Exception { Path path = Paths.get("/home/signed/entpacken/to_backup/Das Rad der Zeit 33 - Die Macht des Lichts/"); Mp3Album album = Mp3Album.For(path); //album.forEachMp3File(new FillUpLeadingZeros(3)); //album.forEachMp3File(new SetTitleToFileNam...
public void executeOnAlbum() throws Exception { Path path = Paths.get("/home/directory/"); Mp3Album album = Mp3Album.For(path); //album.forEachMp3File(new FillUpLeadingZeros(3)); //album.forEachMp3File(new SetTitleToFileName()); //album.forEachMp3File(new UpdateTitle(new Str...
diff --git a/src/com/drtshock/playervaults/Main.java b/src/com/drtshock/playervaults/Main.java index 1cc3ac1..4b95dff 100644 --- a/src/com/drtshock/playervaults/Main.java +++ b/src/com/drtshock/playervaults/Main.java @@ -1,95 +1,96 @@ package com.drtshock.playervaults; import java.io.File; import java.io.IOExcep...
true
true
public YamlConfiguration loadLang() { File lang = new File(getDataFolder(), "lang.yml"); if(!lang.exists()) { try{ getDataFolder().mkdir(); lang.createNewFile(); InputStream defConfigStream = this.getResource("lang.yml"); if (defConfigStream != null) { YamlConfiguration defConfig = YamlConf...
public YamlConfiguration loadLang() { File lang = new File(getDataFolder(), "lang.yml"); if(!lang.exists()) { try{ getDataFolder().mkdir(); lang.createNewFile(); InputStream defConfigStream = this.getResource("lang.yml"); if (defConfigStream != null) { YamlConfiguration defConfig = YamlConf...
diff --git a/management/mbeans/services/src/main/java/org/apache/karaf/management/mbeans/services/internal/ServicesMBeanImpl.java b/management/mbeans/services/src/main/java/org/apache/karaf/management/mbeans/services/internal/ServicesMBeanImpl.java index 9bf2d3b5f..228fc21b9 100644 --- a/management/mbeans/services/src/...
false
true
public TabularData list(long bundleId, boolean inUse) throws Exception { CompositeType serviceType = new CompositeType("Service", "OSGi Service", new String[]{ "Interfaces", "Properties" }, new String[]{ "Interfaces class name of the service", "Properties of the service" }, ...
public TabularData list(long bundleId, boolean inUse) throws Exception { CompositeType serviceType = new CompositeType("Service", "OSGi Service", new String[]{ "Interfaces", "Properties" }, new String[]{ "Interfaces class name of the service", "Properties of the service" }, ...
diff --git a/src/edu/ntnu/idi/goldfish/Main.java b/src/edu/ntnu/idi/goldfish/Main.java index b29c7d7..c920189 100644 --- a/src/edu/ntnu/idi/goldfish/Main.java +++ b/src/edu/ntnu/idi/goldfish/Main.java @@ -1,80 +1,80 @@ package edu.ntnu.idi.goldfish; import java.io.File; import java.io.IOException; import java.uti...
true
true
public static void main(String[] args) throws IOException, TasteException { //DataModel model = new GroupLensDataModel(new File("data/movielens-1m/ratings.dat.gz")); DataModel dataModel = new GroupLensDataModel(new File("data/sample100/ratings.dat")); Evaluator evaluator = new Evaluator(dataModel); ...
public static void main(String[] args) throws IOException, TasteException { //DataModel model = new GroupLensDataModel(new File("data/movielens-1m/ratings.dat.gz")); DataModel dataModel = new GroupLensDataModel(new File("datasets/sample100/ratings.dat.gz")); Evaluator evaluator = new Evaluator(dataModel); ...
diff --git a/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/parser/SVPropertyParser.java b/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/parser/SVPropertyParser.java index 4465ca7c..de18aa47 100644 --- a/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/parser/SVPropertyPar...
true
true
public void property(ISVDBAddChildItem parent) throws SVParseException { SVDBProperty prop = new SVDBProperty(); // Parse the following: // property property_name [(some_parameter_list, and_another_parameter)]; fLexer.readKeyword("property"); prop.setName(fLexer.readId()); if (fLexer.peekOperator(...
public void property(ISVDBAddChildItem parent) throws SVParseException { SVDBProperty prop = new SVDBProperty(); prop.setLocation(fLexer.getStartLocation()); // Parse the following: // property property_name [(some_parameter_list, and_another_parameter)]; fLexer.readKeyword("property"); prop.setName(...
diff --git a/tiles-jsp/src/main/java/org/apache/tiles/jsp/taglib/definition/InitContainerTag.java b/tiles-jsp/src/main/java/org/apache/tiles/jsp/taglib/definition/InitContainerTag.java index 05688a4f..bb76f1ae 100644 --- a/tiles-jsp/src/main/java/org/apache/tiles/jsp/taglib/definition/InitContainerTag.java +++ b/tiles-...
true
true
public int doEndTag() { TilesContainer container = TilesAccess.getContainer(pageContext.getServletContext(), containerKey); if (container != null) { LOG.warn("TilesContainer allready instantiated for this context under key '" + containerKey + "'. Ignoring...
public int doEndTag() { TilesContainer container = TilesAccess.getContainer(pageContext.getServletContext(), containerKey); if (container != null) { LOG.warn("TilesContainer already instantiated for this context under key '" + containerKey + "'. Ignoring ...