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/webservice/src/main/java/org/daisy/pipeline/webservice/JobsResource.java b/webservice/src/main/java/org/daisy/pipeline/webservice/JobsResource.java index 9a0b6e6b..db75babc 100644 --- a/webservice/src/main/java/org/daisy/pipeline/webservice/JobsResource.java +++ b/webservice/src/main/java/org/daisy/pipelin...
false
true
public Representation createResource(Representation representation) { if (!isAuthenticated()) { setStatus(Status.CLIENT_ERROR_UNAUTHORIZED); return null; } Client client = null; if (webservice().getConfiguration().isAuthenticationEnabled()) { String clientId = getQuery().getFirstValue("authid"); cl...
public Representation createResource(Representation representation) { if (!isAuthenticated()) { setStatus(Status.CLIENT_ERROR_UNAUTHORIZED); return null; } Client client = null; if (webservice().getConfiguration().isAuthenticationEnabled()) { String clientId = getQuery().getFirstValue("authid"); cl...
diff --git a/rxjava-contrib/rxjava-debug/src/test/java/rx/debug/DebugHookTest.java b/rxjava-contrib/rxjava-debug/src/test/java/rx/debug/DebugHookTest.java index 5a113ffc7..92c6cdd0d 100644 --- a/rxjava-contrib/rxjava-debug/src/test/java/rx/debug/DebugHookTest.java +++ b/rxjava-contrib/rxjava-debug/src/test/java/rx/debu...
true
true
public void testOneOp() { Action1<DebugNotification> events = mock(Action1.class); final DebugHook hook = new DebugHook(null, events); RxJavaPlugins.getInstance().registerObservableExecutionHook(hook); Observable.from(Arrays.asList(1, 3)).flatMap(new Func1<Integer, Observable<Integer...
public void testOneOp() { Action1<DebugNotification> events = mock(Action1.class); final DebugHook hook = new DebugHook(null, events); RxJavaPlugins.getInstance().registerObservableExecutionHook(hook); Observable.from(Arrays.asList(1, 3)).flatMap(new Func1<Integer, Observable<Integer...
diff --git a/src/de/_13ducks/cor/game/server/movement/Formation.java b/src/de/_13ducks/cor/game/server/movement/Formation.java index 209c6a3..33193fe 100644 --- a/src/de/_13ducks/cor/game/server/movement/Formation.java +++ b/src/de/_13ducks/cor/game/server/movement/Formation.java @@ -1,133 +1,133 @@ /* * To change t...
true
true
public static FloatingPointPosition[] createSquareFormation(int unitCount, FloatingPointPosition target, FloatingPointPosition vector, double distance) { // Rückgabe-Array initialisieren: FloatingPointPosition[] formation = new FloatingPointPosition[unitCount]; for (int i = 0; i < formation....
public static FloatingPointPosition[] createSquareFormation(int unitCount, FloatingPointPosition target, FloatingPointPosition vector, double distance) { // Rückgabe-Array initialisieren: FloatingPointPosition[] formation = new FloatingPointPosition[unitCount]; for (int i = 0; i < formation....
diff --git a/src-pos/com/openbravo/pos/printer/escpos/PrinterWritterRXTX.java b/src-pos/com/openbravo/pos/printer/escpos/PrinterWritterRXTX.java index 9fd18c5..4946cb3 100644 --- a/src-pos/com/openbravo/pos/printer/escpos/PrinterWritterRXTX.java +++ b/src-pos/com/openbravo/pos/printer/escpos/PrinterWritterRXTX.java @@ ...
true
true
protected void internalWrite(byte[] data) { try { if (m_out == null) { m_PortIdPrinter = CommPortIdentifier.getPortIdentifier(m_sPortPrinter); // Tomamos el puerto m_CommPortPrinter = m_PortIdPrinter.open("PORTID", 2000); // Abrimos el puerto ...
protected void internalWrite(byte[] data) { try { if (m_out == null) { m_PortIdPrinter = CommPortIdentifier.getPortIdentifier(m_sPortPrinter); // Tomamos el puerto m_CommPortPrinter = m_PortIdPrinter.open("PORTID", 2000); // Abrimos el puerto ...
diff --git a/src/com/app/wordservant/TodaysMemoryVerses.java b/src/com/app/wordservant/TodaysMemoryVerses.java index 7345ed2..fa80101 100644 --- a/src/com/app/wordservant/TodaysMemoryVerses.java +++ b/src/com/app/wordservant/TodaysMemoryVerses.java @@ -1,186 +1,186 @@ package com.app.wordservant; import java.text.P...
true
true
private void displayScriptureList(ListView view, Cursor scriptureQuery, final Boolean enabled) { // Set up the adapter that is going to be displayed in the list view. Context context = this.getApplicationContext(); final Bundle bundledScriptureList = new Bundle(); ArrayAdapter<LinearLayout> scriptureAdap...
private void displayScriptureList(ListView view, Cursor scriptureQuery, final Boolean enabled) { // Set up the adapter that is going to be displayed in the list view. Context context = this.getApplicationContext(); final Bundle bundledScriptureList = new Bundle(); ArrayAdapter<LinearLayout> scriptureAdap...
diff --git a/src/test/integration/nl/surfnet/bod/mtosi/MtosiLiveClientTestIntegration.java b/src/test/integration/nl/surfnet/bod/mtosi/MtosiLiveClientTestIntegration.java index 2cf46ce2a..055bbd779 100644 --- a/src/test/integration/nl/surfnet/bod/mtosi/MtosiLiveClientTestIntegration.java +++ b/src/test/integration/nl/s...
true
true
public void getUnallocatedPorts() { final List<PhysicalPort> unallocatedPorts = mtosiLiveClient.getUnallocatedPorts(); assertThat(unallocatedPorts, hasSize(greaterThan(0))); final PhysicalPort firstPhysicalPort = unallocatedPorts.get(0); // It's always /rack=1/shelf=1 for every NE so we can use 1-1 s...
public void getUnallocatedPorts() { final List<PhysicalPort> unallocatedPorts = mtosiLiveClient.getUnallocatedPorts(); assertThat(unallocatedPorts, hasSize(greaterThan(0))); final PhysicalPort firstPhysicalPort = unallocatedPorts.get(0); // It's always /rack=1/shelf=1 for every NE so we can use 1-1 s...
diff --git a/luni/src/test/java/libcore/java/util/FormatterTest.java b/luni/src/test/java/libcore/java/util/FormatterTest.java index ce33c271a..00d0ab74c 100644 --- a/luni/src/test/java/libcore/java/util/FormatterTest.java +++ b/luni/src/test/java/libcore/java/util/FormatterTest.java @@ -1,129 +1,129 @@ /* * Copyrig...
true
true
public void test_numberLocalization() throws Exception { Locale arabic = new Locale("ar"); // Check the fast path for %d: assertEquals("12 \u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660 34", String.format(arabic, "12 %d 34", 1234567890)); // And the slow...
public void test_numberLocalization() throws Exception { Locale arabic = new Locale("ar"); // Check the fast path for %d: assertEquals("12 \u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660 34", String.format(arabic, "12 %d 34", 1234567890)); // And the slow...
diff --git a/src/com/blastedstudios/gdxworld/plugin/mode/quest/QuestWindow.java b/src/com/blastedstudios/gdxworld/plugin/mode/quest/QuestWindow.java index 4a09d18..f196b78 100644 --- a/src/com/blastedstudios/gdxworld/plugin/mode/quest/QuestWindow.java +++ b/src/com/blastedstudios/gdxworld/plugin/mode/quest/QuestWindow....
true
true
public QuestWindow(final Skin skin, final List<GDXQuest> quests, final QuestMode mode, LevelEditorScreen screen) { super("Quest Window", skin); this.skin = skin; this.quests = quests; this.screen = screen; questTable = new Table(skin); ScrollPane scrollPane = new ScrollPane(questTable); Button clearB...
public QuestWindow(final Skin skin, final List<GDXQuest> quests, final QuestMode mode, LevelEditorScreen screen) { super("Quest Window", skin); this.skin = skin; this.quests = quests; this.screen = screen; questTable = new Table(skin); ScrollPane scrollPane = new ScrollPane(questTable); Button clearB...
diff --git a/Arena/src/game/View.java b/Arena/src/game/View.java index baa76fb..ac05736 100644 --- a/Arena/src/game/View.java +++ b/Arena/src/game/View.java @@ -1,53 +1,54 @@ package game; import java.awt.Graphics; import java.awt.Image; import javax.swing.JFrame; import javax.swing.JPanel; /** * Class fo...
true
true
public View() { super(); setSize(640, 480); backBuffer = this.createImage(this.getWidth(), this.getHeight()); setVisible(true); }
public View() { super(); setSize(640, 480); backBuffer = this.createImage(this.getWidth(), this.getHeight()); //TODO: make backBuffer able to return a non-null Graphics object setVisible(true); }
diff --git a/remoting/fr.opensagres.xdocreport.remoting.resources/src/main/java/fr/opensagres/xdocreport/remoting/resources/services/rest/client/JAXRSResourcesServiceClient.java b/remoting/fr.opensagres.xdocreport.remoting.resources/src/main/java/fr/opensagres/xdocreport/remoting/resources/services/rest/client/JAXRSRes...
true
true
public JAXRSResourcesServiceClient( String baseAddress, String username, String password ) { if (username!=null && !username.isEmpty()) { this.client = WebClient.create( baseAddress , username, password, null); } else { this.client = WebClient.create( baseAddress ); ...
public JAXRSResourcesServiceClient( String baseAddress, String username, String password ) { if (username!=null && !"".equals(username)) { this.client = WebClient.create( baseAddress , username, password, null); } else { this.client = WebClient.create( baseAddress ); ...
diff --git a/openregistry-service-impl/src/main/java/org/openregistry/core/service/identifier/TestIdentifierAssigner.java b/openregistry-service-impl/src/main/java/org/openregistry/core/service/identifier/TestIdentifierAssigner.java index ad52aa93..4bdc209d 100644 --- a/openregistry-service-impl/src/main/java/org/openr...
true
true
public void addIdentifierTo(final SorPerson sorPerson, final Person person) { final Identifier primaryNetid = findPrimaryIdentifier(person, this.getIdentifierType()); if (primaryNetid != null) { // don't set if already there final Name name = person.getOfficialName(); final StringBuilder buil...
public void addIdentifierTo(final SorPerson sorPerson, final Person person) { final Identifier primaryNetid = findPrimaryIdentifier(person, this.getIdentifierType()); if (primaryNetid == null) { // don't set if already there final Name name = person.getOfficialName(); final StringBuilder buil...
diff --git a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificityTest.java b/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/SelectorSpecificityTest.java index b0bf0efca..a896b792b 100644 --- a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascri...
false
true
public void selectorSpecifity() throws Exception { final SelectorSpecificity specificy0 = selectorSpecifity("*", "0,0,0,0"); final SelectorSpecificity specificy1 = selectorSpecifity("li", "0,0,0,1"); final SelectorSpecificity specificy2a = selectorSpecifity("li:first-line", "0,0,0,2"); ...
public void selectorSpecifity() throws Exception { final SelectorSpecificity specificy0 = selectorSpecifity("*", "0,0,0,0"); final SelectorSpecificity specificy1 = selectorSpecifity("li", "0,0,0,1"); final SelectorSpecificity specificy2a = selectorSpecifity("li:first-line", "0,0,0,2"); ...
diff --git a/src/shoddybattleclient/LobbyWindow.java b/src/shoddybattleclient/LobbyWindow.java index ece3eab..7d99c91 100644 --- a/src/shoddybattleclient/LobbyWindow.java +++ b/src/shoddybattleclient/LobbyWindow.java @@ -1,464 +1,464 @@ /* * LobbyWindow.java * * Created on Apr 5, 2009, 12:47:25 PM * * This f...
false
true
private void initComponents() { btnChallenge = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); listUsers = new javax.swing.JList(); tabChats = new javax.swing.JTabbedPane(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); ...
private void initComponents() { btnChallenge = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); listUsers = new javax.swing.JList(); tabChats = new javax.swing.JTabbedPane(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); ...
diff --git a/fathomcloud-compute/src/main/java/io/fathom/cloud/compute/scheduler/ShellCommand.java b/fathomcloud-compute/src/main/java/io/fathom/cloud/compute/scheduler/ShellCommand.java index 920061a..fc1b271 100644 --- a/fathomcloud-compute/src/main/java/io/fathom/cloud/compute/scheduler/ShellCommand.java +++ b/fatho...
true
true
public void argQuoted(String s) { StringBuilder escaped = new StringBuilder(); escaped.append('"'); for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if ('a' <= c && c <= 'z') { } else if ('A' <= c && c <= 'Z') { } else if ('0' <=...
public void argQuoted(String s) { StringBuilder escaped = new StringBuilder(); escaped.append('"'); for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if ('a' <= c && c <= 'z') { } else if ('A' <= c && c <= 'Z') { } else if ('0' <=...
diff --git a/framework/core/src/main/java/fr/liglab/adele/cilia/model/impl/BindingImpl.java b/framework/core/src/main/java/fr/liglab/adele/cilia/model/impl/BindingImpl.java index 332b9472..4dd45443 100644 --- a/framework/core/src/main/java/fr/liglab/adele/cilia/model/impl/BindingImpl.java +++ b/framework/core/src/main/...
false
true
public String toString(){ StringBuffer toShow = new StringBuffer(); if (getSourcePort() != null) { toShow.append("FROM "); toShow.append(getSourceMediator().getId()); toShow.append(":"); toShow.append(getSourcePort().getName()); } if (getSourcePort() != null) { toShow.append(" TO "); toShow.a...
public String toString(){ StringBuffer toShow = new StringBuffer("{"); if (getSourcePort() != null) { toShow.append("\"from\":\""); toShow.append(getSourceMediator().getId()); toShow.append(":"); toShow.append(getSourcePort().getName()); toShow.append("\", "); } if (getTargetPort() != null) { ...
diff --git a/modules/extension/xsd/xsd-gml3/src/test/java/org/geotools/gml3/GML3EncodingTest.java b/modules/extension/xsd/xsd-gml3/src/test/java/org/geotools/gml3/GML3EncodingTest.java index cf922e929..ce77a37e2 100644 --- a/modules/extension/xsd/xsd-gml3/src/test/java/org/geotools/gml3/GML3EncodingTest.java +++ b/modu...
true
true
public void testWithApplicationSchemaConfiguration() throws Exception { if (isOffline()) { return; } String schemaLocation = new File(TestConfiguration.class.getResource("test.xsd").getFile()) .getAbsolutePath(); ApplicationSchemaConfiguration config...
public void testWithApplicationSchemaConfiguration() throws Exception { if (isOffline()) { return; } // The schema location needs to be a well formed URI/URL, a file path is not sufficient. String schemaLocation = TestConfiguration.class.getResource("test.xsd").t...
diff --git a/demo-wingset/src/java/wingset/XCalendarExample.java b/demo-wingset/src/java/wingset/XCalendarExample.java index e7e8e32..e62c31a 100644 --- a/demo-wingset/src/java/wingset/XCalendarExample.java +++ b/demo-wingset/src/java/wingset/XCalendarExample.java @@ -1,128 +1,127 @@ package wingset; import java.aw...
true
true
public SComponent createExample() { SGridLayout layout = new SGridLayout(3); layout.setHgap(15); SPanel panel = new SPanel(layout); // // Regular nullable calendar final DateFormat nullableDateFormat = new NullableDateFormatter(); panel.add(new SLabel("Calend...
public SComponent createExample() { SGridLayout layout = new SGridLayout(3); layout.setHgap(15); SPanel panel = new SPanel(layout); // // Regular nullable calendar final DateFormat nullableDateFormat = new NullableDateFormatter(); panel.add(new SLabel("Calend...
diff --git a/HotelDatabase/src/DBConn.java b/HotelDatabase/src/DBConn.java index 5a7e5e6..03bf33c 100644 --- a/HotelDatabase/src/DBConn.java +++ b/HotelDatabase/src/DBConn.java @@ -1,17 +1,17 @@ import java.sql.*; public class DBConn { - public static Connection main(String args[]) throws Exception + public stat...
true
true
public static Connection main(String args[]) throws Exception { Class.forName("com.mysql.jdbc.Driver"); String url = "jdbc:mysql://localhost/test"; String username = "root"; String pwd = ""; Connection conn = DriverManager.getConnection(url, username, pwd); return conn; }
public static Connection getConnection() throws Exception { Class.forName("com.mysql.jdbc.Driver"); String url = "jdbc:mysql://localhost/test"; String username = "root"; String pwd = ""; Connection conn = DriverManager.getConnection(url, username, pwd); return conn; }
diff --git a/src/de/raptor2101/GalDroid/WebGallery/GalleryImageView.java b/src/de/raptor2101/GalDroid/WebGallery/GalleryImageView.java index 19f393b..6c48850 100644 --- a/src/de/raptor2101/GalDroid/WebGallery/GalleryImageView.java +++ b/src/de/raptor2101/GalDroid/WebGallery/GalleryImageView.java @@ -1,202 +1,203 @@ /*...
true
true
public GalleryImageView(Context context, android.view.ViewGroup.LayoutParams layoutParams, boolean showTitle) { super(context); mShowTitle = showTitle; mImageView = CreateImageView(context); mProgressBar = new ProgressBar(context,null,android.R.attr.progressBarStyleLarge); mProgressBar.setVisibility(GO...
public GalleryImageView(Context context, android.view.ViewGroup.LayoutParams layoutParams, boolean showTitle) { super(context); mShowTitle = showTitle; mImageView = CreateImageView(context); mProgressBar = new ProgressBar(context,null,android.R.attr.progressBarStyleLarge); mProgressBar.setVisibility(GO...
diff --git a/itests/ofertie.ncl/src/test/java/org/opennaas/itests/ofertie/ncl/NCLProvisionerTest.java b/itests/ofertie.ncl/src/test/java/org/opennaas/itests/ofertie/ncl/NCLProvisionerTest.java index d396a6bbb..ded136f12 100644 --- a/itests/ofertie.ncl/src/test/java/org/opennaas/itests/ofertie/ncl/NCLProvisionerTest.jav...
true
true
public void testAllocateDeallocate(INCLProvisioner provisioner) throws Exception { String circuitId = provisioner.allocateFlow(flowRequest); Collection<Circuit> flows = provisioner.readAllocatedFlows(); Circuit allocatedFlow = null; for (Circuit flow : flows) { if (flow.getId().equals(circuitId)) { al...
public void testAllocateDeallocate(INCLProvisioner provisioner) throws Exception { String circuitId = provisioner.allocateFlow(flowRequest); Collection<Circuit> flows = provisioner.readAllocatedFlows(); Circuit allocatedFlow = null; for (Circuit flow : flows) { if (flow.getId().equals(circuitId)) { al...
diff --git a/src/main/java/be/Balor/Manager/Commands/Player/Experience.java b/src/main/java/be/Balor/Manager/Commands/Player/Experience.java index 144c02df..809a5faa 100644 --- a/src/main/java/be/Balor/Manager/Commands/Player/Experience.java +++ b/src/main/java/be/Balor/Manager/Commands/Player/Experience.java @@ -1,179...
false
true
public void execute(final CommandSender sender, final CommandArgs args) throws ActionNotPermitedException, PlayerNotFound { float amount = 0; Player target = null; final HashMap<String, String> replace = new HashMap<String, String>(); boolean self = false; if (args.hasFlag('p')) { target = Utils.getPl...
public void execute(final CommandSender sender, final CommandArgs args) throws ActionNotPermitedException, PlayerNotFound { float amount = 0; Player target = null; final HashMap<String, String> replace = new HashMap<String, String>(); boolean self = false; if (args.hasFlag('p')) { target = Utils.getPla...
diff --git a/src/main/java/dridco/seleniumhtmltojava/Commands.java b/src/main/java/dridco/seleniumhtmltojava/Commands.java index b59e229..f666e10 100644 --- a/src/main/java/dridco/seleniumhtmltojava/Commands.java +++ b/src/main/java/dridco/seleniumhtmltojava/Commands.java @@ -1,513 +1,513 @@ package dridco.seleniumhtm...
true
true
public String doBuild(final String target, final String value) { final String exactMatchPrefix = "exact:"; final String regularExpressionPrefix = "regexp:"; String built; if (value.startsWith(exactMatchPrefix)) { built = format( "assertEquals(\"%s\", \"%s\", %s.getText(\"%s\"));", message(...
public String doBuild(final String target, final String value) { final String exactMatchPrefix = "exact:"; final String regularExpressionPrefix = "regexp:"; String built; if (value.startsWith(exactMatchPrefix)) { built = format( "assertEquals(\"%s\", \"%s\", %s.getText(\"%s\"));", message(...
diff --git a/src/edu/berkeley/gamesman/solver/LoopySolver.java b/src/edu/berkeley/gamesman/solver/LoopySolver.java index 59cbca96..97f92513 100644 --- a/src/edu/berkeley/gamesman/solver/LoopySolver.java +++ b/src/edu/berkeley/gamesman/solver/LoopySolver.java @@ -1,132 +1,132 @@ package edu.berkeley.gamesman.solver; ...
true
true
private void solve(LoopyMutaGame game, Record value, int depth, DatabaseHandle readDh, DatabaseHandle writeDh) { /* * value = {retrieve from database} * case IMPOSSIBLE: * value.value = primitiveValue() * if primitive: * value.remoteness = value.remainingChildren = 0 * {Store value in database} * ...
private void solve(LoopyMutaGame game, Record value, int depth, DatabaseHandle readDh, DatabaseHandle writeDh) { /* * value = {retrieve from database} * case IMPOSSIBLE: * value.value = primitiveValue() * if primitive: * value.remoteness = value.remainingChildren = 0 * {Store value in database} * ...
diff --git a/podsalinan/src/podsalinan/Downloader.java b/podsalinan/src/podsalinan/Downloader.java index de44c4f..44f58f5 100644 --- a/podsalinan/src/podsalinan/Downloader.java +++ b/podsalinan/src/podsalinan/Downloader.java @@ -1,372 +1,373 @@ /*************************************************************************...
true
true
public int getFile(){ RandomAccessFile outStream; boolean remoteFileExists=false; int numTries=0; URLConnection conn; //System.out.print("Is internet Reachable? "); if (isInternetReachable()){ //System.out.println("Yes it is."); byte buf[]=new byte[1024]; int byteRead; // Number of bytes read f...
public int getFile(){ RandomAccessFile outStream; boolean remoteFileExists=false; int numTries=0; URLConnection conn; //System.out.print("Is internet Reachable? "); if (isInternetReachable()){ //System.out.println("Yes it is."); byte buf[]=new byte[1024]; int byteRead; // Number of bytes read f...
diff --git a/mes-plugins/mes-plugins-operation-time-calculations/src/main/java/com/qcadoo/mes/operationTimeCalculations/OrderRealizationTimeServiceImpl.java b/mes-plugins/mes-plugins-operation-time-calculations/src/main/java/com/qcadoo/mes/operationTimeCalculations/OrderRealizationTimeServiceImpl.java index ef6a816a05....
true
true
private int evaluateOperationTime(final Entity operationComponent, final boolean includeTpz, final boolean includeAdditionalTime, final Map<Entity, BigDecimal> operationRuns, final Entity productionLine, final boolean maxForWorkstation, final Map<Entity, BigDecimal> productComponentQuantitie...
private int evaluateOperationTime(final Entity operationComponent, final boolean includeTpz, final boolean includeAdditionalTime, final Map<Entity, BigDecimal> operationRuns, final Entity productionLine, final boolean maxForWorkstation, final Map<Entity, BigDecimal> productComponentQuantitie...
diff --git a/src/me/ellbristow/simplespawnliteback/SimpleSpawnLiteBack.java b/src/me/ellbristow/simplespawnliteback/SimpleSpawnLiteBack.java index c8d1b08..b5f5076 100644 --- a/src/me/ellbristow/simplespawnliteback/SimpleSpawnLiteBack.java +++ b/src/me/ellbristow/simplespawnliteback/SimpleSpawnLiteBack.java @@ -1,104 +...
true
true
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { if (!(sender instanceof Player)) { sender.sendMessage("Sorry! Command " + commandLabel + " cannot be run from the console!"); return false; } Player player =...
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { if (!(sender instanceof Player)) { sender.sendMessage("Sorry! Command " + commandLabel + " cannot be run from the console!"); return false; } Player player =...
diff --git a/bundles/plugins/org.bonitasoft.studio.expression.editor/src/org/bonitasoft/studio/expression/editor/provider/ExpressionComparator.java b/bundles/plugins/org.bonitasoft.studio.expression.editor/src/org/bonitasoft/studio/expression/editor/provider/ExpressionComparator.java index 37907fc086..3c47d3cfea 100644...
true
true
public int compare(Expression exp0, Expression exp1) { if(exp0.getType().equals(exp1.getType())){ return exp0.getName().compareTo(exp1.getName()) ; } return exp0.getType().compareTo(exp1.getType()); }
public int compare(Expression exp0, Expression exp1) { if(exp0.getType().equals(exp1.getType()) && exp0.getName() != null){ return exp0.getName().compareTo(exp1.getName()) ; } return exp0.getType().compareTo(exp1.getType()); }
diff --git a/src/main/java/org/got5/tapestry5/jquery/services/javascript/AjaxUploadStack.java b/src/main/java/org/got5/tapestry5/jquery/services/javascript/AjaxUploadStack.java index f57d51e2..a130fd7d 100644 --- a/src/main/java/org/got5/tapestry5/jquery/services/javascript/AjaxUploadStack.java +++ b/src/main/java/org/...
true
true
public AjaxUploadStack( @Symbol(SymbolConstants.PRODUCTION_MODE) final boolean productionMode, final AssetSource assetSource) { final Mapper<String, Asset> pathToAsset = new Mapper<String, Asset>() { public Asset map(String path) { ...
public AjaxUploadStack( @Symbol(SymbolConstants.PRODUCTION_MODE) final boolean productionMode, final AssetSource assetSource) { final Mapper<String, Asset> pathToAsset = new Mapper<String, Asset>() { public Asset map(String path) { ...
diff --git a/whois-commons/src/main/java/net/ripe/db/whois/common/dao/DatabaseMaintenanceJmx.java b/whois-commons/src/main/java/net/ripe/db/whois/common/dao/DatabaseMaintenanceJmx.java index 1d6858d4a..c2cd54fbd 100644 --- a/whois-commons/src/main/java/net/ripe/db/whois/common/dao/DatabaseMaintenanceJmx.java +++ b/whoi...
true
true
public String undeleteObject(final int objectId, final String comment) { return invokeOperation("Unref cleanup", comment, new Callable<String>() { @Override public String call() { try { final RpslObjectUpdateInfo updateInfo = updateDao.undeleteObje...
public String undeleteObject(final int objectId, final String comment) { return invokeOperation("Undelete Object", comment, new Callable<String>() { @Override public String call() { try { final RpslObjectUpdateInfo updateInfo = updateDao.undeleteOb...
diff --git a/HyPeerWeb/test/hypeerweb/HyPeerWebTest.java b/HyPeerWeb/test/hypeerweb/HyPeerWebTest.java index fc9f55d..4eef63a 100644 --- a/HyPeerWeb/test/hypeerweb/HyPeerWebTest.java +++ b/HyPeerWeb/test/hypeerweb/HyPeerWebTest.java @@ -1,115 +1,115 @@ /* * To change this template, choose Tools | Templates * and o...
true
true
public void testAddNode() throws Exception { int t = 0, i = 1; try{ if (TEST_DATABASE){ //I put the testHyPeerWeb code here because it was always running after testAddNode and so wasn't testing anything. System.out.println("Testing restore"); assertTrue((new Validator(web)).validate());//comment out...
public void testAddNode() throws Exception { int t = 0, i = 1; try{ if (TEST_DATABASE){ //I put the testHyPeerWeb code here because it was always running after testAddNode and so wasn't testing anything. System.out.println("Testing restore"); assertTrue((new Validator(web)).validate());//comment out...
diff --git a/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/checkDataSource.java b/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/checkDataSource.java index 7f9084cc0..c026fb8f7 100644 --- a/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/checkDataSource.java +++ b/j...
false
true
protected void runTest(String[] args) throws Exception { // Check the returned type of the JDBC Connections. ij.getPropertyArg(args); Connection dmc = ij.startJBMS(); dmc.createStatement().executeUpdate("create table y(i int)"); dmc.createStatement().executeUpdate( "create procedure checkC...
protected void runTest(String[] args) throws Exception { // Check the returned type of the JDBC Connections. ij.getPropertyArg(args); Connection dmc = ij.startJBMS(); dmc.createStatement().executeUpdate("create table y(i int)"); dmc.createStatement().executeUpdate( "create procedure checkC...
diff --git a/src/org/meta_environment/rascal/interpreter/RascalShell.java b/src/org/meta_environment/rascal/interpreter/RascalShell.java index dbb07a972a..43baa0de18 100644 --- a/src/org/meta_environment/rascal/interpreter/RascalShell.java +++ b/src/org/meta_environment/rascal/interpreter/RascalShell.java @@ -1,198 +1,...
true
true
public void run() throws IOException { StringBuffer input = new StringBuffer(); String line; next:while (true) { try { input.delete(0, input.length()); String prompt = PROMPT; do { line = console.readLine(prompt); if (line == null) { break next; // EOF } i...
public void run() throws IOException { StringBuffer input = new StringBuffer(); String line; next:while (true) { try { input.delete(0, input.length()); String prompt = PROMPT; do { line = console.readLine(prompt); if (line == null) { break next; // EOF } i...
diff --git a/tests-src/net/grinder/console/swingui/TestGraph.java b/tests-src/net/grinder/console/swingui/TestGraph.java index d7744da9..d629747d 100755 --- a/tests-src/net/grinder/console/swingui/TestGraph.java +++ b/tests-src/net/grinder/console/swingui/TestGraph.java @@ -1,181 +1,181 @@ // The Grinder // Copyright...
true
true
public void testLabelledGraph() throws Exception { final TestStatisticsFactory testStatisticsFactory = TestStatisticsFactory.getInstance(); final StatisticsIndexMap indexMap = StatisticsIndexMap.getProcessInstance(); final StatisticsIndexMap.LongIndex periodIndex = indexMap.getIndexForLong("...
public void testLabelledGraph() throws Exception { final TestStatisticsFactory testStatisticsFactory = TestStatisticsFactory.getInstance(); final StatisticsIndexMap indexMap = StatisticsIndexMap.getProcessInstance(); final StatisticsIndexMap.LongIndex periodIndex = indexMap.getIndexForLong("...
diff --git a/src/admin/panel/person/contestant/ContestantPanel.java b/src/admin/panel/person/contestant/ContestantPanel.java index b83702e..e6405ef 100644 --- a/src/admin/panel/person/contestant/ContestantPanel.java +++ b/src/admin/panel/person/contestant/ContestantPanel.java @@ -1,535 +1,541 @@ package admin.panel.pe...
false
true
protected void buildActions() { super.buildActions(); btnAddNew.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { GameData g = GameData.getCurrentGame(); // check if too many contestants if (g.getAllContestants().size() == g.getInitialCont...
protected void buildActions() { super.buildActions(); btnAddNew.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { GameData g = GameData.getCurrentGame(); // check if too many contestants if (g.getAllContestants().size() == g.getInitialCont...
diff --git a/src/edgruberman/bukkit/guillotine/commands/Reload.java b/src/edgruberman/bukkit/guillotine/commands/Reload.java index c5b7a61..d7f6a86 100644 --- a/src/edgruberman/bukkit/guillotine/commands/Reload.java +++ b/src/edgruberman/bukkit/guillotine/commands/Reload.java @@ -1,26 +1,26 @@ package edgruberman.bukk...
true
true
public boolean onCommand(final CommandSender sender, final Command command, final String label, final String[] args) { this.plugin.onDisable(); this.plugin.onEnable(); Main.courier.send(sender, "messages.reload", this.plugin.getName()); return true; }
public boolean onCommand(final CommandSender sender, final Command command, final String label, final String[] args) { this.plugin.onDisable(); this.plugin.onEnable(); Main.courier.send(sender, "reload", this.plugin.getName()); return true; }
diff --git a/org.smartsnip/src/org/smartsnip/client/Meta.java b/org.smartsnip/src/org/smartsnip/client/Meta.java index ca55189..7a6a875 100644 --- a/org.smartsnip/src/org/smartsnip/client/Meta.java +++ b/org.smartsnip/src/org/smartsnip/client/Meta.java @@ -1,234 +1,234 @@ package org.smartsnip.client; import org.sm...
true
true
public Meta() { control = Control.getInstance(); pnlUser = new VerticalPanel(); metaPanel = new HorizontalPanel(); mod = new Anchor("Moderator"); login = new Anchor(" > Login"); user = new Anchor("Guest"); register = new Anchor(" > Register"); logout = new Anchor(" > Logout"); notificationIcon = ne...
public Meta() { control = Control.getInstance(); pnlUser = new VerticalPanel(); metaPanel = new HorizontalPanel(); mod = new Anchor("Moderator"); login = new Anchor(" > Login"); user = new Anchor("Guest"); register = new Anchor(" > Register"); logout = new Anchor(" > Logout"); notificationIcon = ne...
diff --git a/trunk/src/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java b/trunk/src/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java index 5fca94a..20f0aab 100644 --- a/trunk/src/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java +++ b/trunk/src/java/org/apache/...
true
true
public Connection getConnection(String username, String password) throws SQLException { if (instanceKey == null) { throw new SQLException("Must set the ConnectionPoolDataSource " + "through setDataSourceName or setConnectionPoolDataSource" + " ...
public Connection getConnection(String username, String password) throws SQLException { if (instanceKey == null) { throw new SQLException("Must set the ConnectionPoolDataSource " + "through setDataSourceName or setConnectionPoolDataSource" + " ...
diff --git a/ngrinder-controller/src/main/java/org/ngrinder/perftest/controller/PerfTestController.java b/ngrinder-controller/src/main/java/org/ngrinder/perftest/controller/PerfTestController.java index 9381238f..430e5560 100644 --- a/ngrinder-controller/src/main/java/org/ngrinder/perftest/controller/PerfTestController...
false
true
public String saveOne(User user, ModelMap model, PerfTest test, @RequestParam(value = "isClone", required = false, defaultValue = "false") boolean isClone) { test.setTestName(StringUtils.trimToEmpty(test.getTestName())); checkNotEmpty(test.getTestName(), "test name should be provided"); c...
public String saveOne(User user, ModelMap model, PerfTest test, @RequestParam(value = "isClone", required = false, defaultValue = "false") boolean isClone) { test.setTestName(StringUtils.trimToEmpty(test.getTestName())); checkNotEmpty(test.getTestName(), "test name should be provided"); c...
diff --git a/src/main/java/tconstruct/smeltery/TinkerSmeltery.java b/src/main/java/tconstruct/smeltery/TinkerSmeltery.java index ae32dd2ef..6c511a827 100644 --- a/src/main/java/tconstruct/smeltery/TinkerSmeltery.java +++ b/src/main/java/tconstruct/smeltery/TinkerSmeltery.java @@ -1,1144 +1,1144 @@ package tconstruct.s...
false
true
public void preInit (FMLPreInitializationEvent event) { MinecraftForge.EVENT_BUS.register(new TinkerSmelteryEvents()); TinkerSmeltery.buckets = new FilledBucket(BlockUtils.getBlockFromItem(TinkerSmeltery.buckets)); GameRegistry.registerItem(TinkerSmeltery.buckets, "buckets"); T...
public void preInit (FMLPreInitializationEvent event) { MinecraftForge.EVENT_BUS.register(new TinkerSmelteryEvents()); TinkerSmeltery.buckets = new FilledBucket(BlockUtils.getBlockFromItem(TinkerSmeltery.buckets)); GameRegistry.registerItem(TinkerSmeltery.buckets, "buckets"); T...
diff --git a/n3phele/src/n3phele/service/rest/impl/CloudProcessResource.java b/n3phele/src/n3phele/service/rest/impl/CloudProcessResource.java index 0c5ca25..c6d0fce 100644 --- a/n3phele/src/n3phele/service/rest/impl/CloudProcessResource.java +++ b/n3phele/src/n3phele/service/rest/impl/CloudProcessResource.java @@ -1,7...
true
true
public Response exec(@DefaultValue("Log") @QueryParam("action") String action, @QueryParam("name") String name, @DefaultValue("hello world!") @QueryParam("arg") String arg, @QueryParam("parent") String parent, List<Variable> context) throws ClassNotFoundException, URISyntaxException { n3phele.service.model.Co...
public Response exec(@DefaultValue("Log") @QueryParam("action") String action, @QueryParam("name") String name, @DefaultValue("hello world!") @QueryParam("arg") String arg, @QueryParam("parent") String parent, List<Variable> context) throws ClassNotFoundException, URISyntaxException { n3phele.service.model.Co...
diff --git a/src/tkj/android/homecontrol/mythmote/LocationEditor.java b/src/tkj/android/homecontrol/mythmote/LocationEditor.java index ca7f63b..b672b92 100644 --- a/src/tkj/android/homecontrol/mythmote/LocationEditor.java +++ b/src/tkj/android/homecontrol/mythmote/LocationEditor.java @@ -1,198 +1,193 @@ package tkj.an...
false
true
private boolean Save() { if(this._location == null) this._location = new FrontendLocation(); this._location.Name = this.GetName(); this._location.Address = this.GetAddress(); this._location.Port = this.GetPort(); AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(R.stri...
private boolean Save() { if(this._location == null) this._location = new FrontendLocation(); this._location.Name = this.GetName(); this._location.Address = this.GetAddress(); this._location.Port = this.GetPort(); AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(R.stri...
diff --git a/spock-core/src/main/java/spock/util/concurrent/PollingConditions.java b/spock-core/src/main/java/spock/util/concurrent/PollingConditions.java index f2d75bde..c867b231 100644 --- a/spock-core/src/main/java/spock/util/concurrent/PollingConditions.java +++ b/spock-core/src/main/java/spock/util/concurrent/Poll...
true
true
public void within(double seconds, Closure<?> conditions) throws InterruptedException { long timeoutMillis = toMillis(seconds); long start = System.currentTimeMillis(); long lastAttempt = 0; Thread.sleep(toMillis(initialDelay)); long currDelay = toMillis(delay); int attempts = 0; while(...
public void within(double seconds, Closure<?> conditions) throws InterruptedException { long timeoutMillis = toMillis(seconds); long start = System.currentTimeMillis(); long lastAttempt = 0; Thread.sleep(toMillis(initialDelay)); long currDelay = toMillis(delay); int attempts = 0; while(...
diff --git a/src/starparty/utilities/FontLoader.java b/src/starparty/utilities/FontLoader.java index 35bc49c..ad30e43 100644 --- a/src/starparty/utilities/FontLoader.java +++ b/src/starparty/utilities/FontLoader.java @@ -1,50 +1,50 @@ /* * To change this template, choose Tools | Templates * and open the template i...
true
true
public static UnicodeFont load(String name, int size, boolean bold) { String id = name + "-" + size + "-" + bold; UnicodeFont font = null; if (cache.containsKey(id)) { return cache.get(id); } try { Font baseFont = Font.createFont(Font.TRUETYPE_FONT, new File("resources/font/"...
public static UnicodeFont load(String name, int size, boolean bold) { String id = name + "-" + size + "-" + bold; UnicodeFont font = null; if ((font = cache.get(id)) != null) { return font; } try { Font baseFont = Font.createFont(Font.TRUETYPE_FONT, new File("resources/font/"...
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/model/GitModelCache.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/model/GitModelCache.java index fc22c5ec..b51d27b6 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/model/GitModelCache.ja...
true
true
private GitModelObject extractFromCache(TreeWalk tw) throws IOException { DirCacheIterator cacheIterator = tw.getTree(dirCacheIteratorNth, DirCacheIterator.class); if (cacheIterator == null) return null; DirCacheEntry cacheEntry = cacheIterator.getDirCacheEntry(); if (cacheEntry == null) return null...
private GitModelObject extractFromCache(TreeWalk tw) throws IOException { DirCacheIterator cacheIterator = tw.getTree(dirCacheIteratorNth, DirCacheIterator.class); if (cacheIterator == null) return null; DirCacheEntry cacheEntry = cacheIterator.getDirCacheEntry(); if (cacheEntry == null) return null...
diff --git a/src/com/android/launcher2/InstallShortcutReceiver.java b/src/com/android/launcher2/InstallShortcutReceiver.java index 19b1c69d..82fb3d15 100644 --- a/src/com/android/launcher2/InstallShortcutReceiver.java +++ b/src/com/android/launcher2/InstallShortcutReceiver.java @@ -1,188 +1,188 @@ /* * Copyright (C)...
true
true
public void onReceive(Context context, Intent data) { if (!ACTION_INSTALL_SHORTCUT.equals(data.getAction())) { return; } String spKey = LauncherApplication.getSharedPreferencesKey(); SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); ...
public void onReceive(Context context, Intent data) { if (!ACTION_INSTALL_SHORTCUT.equals(data.getAction())) { return; } String spKey = LauncherApplication.getSharedPreferencesKey(); SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); ...
diff --git a/src/com/android/music/MediaPlaybackService.java b/src/com/android/music/MediaPlaybackService.java index 6414eb4..2e30cb4 100644 --- a/src/com/android/music/MediaPlaybackService.java +++ b/src/com/android/music/MediaPlaybackService.java @@ -1,2192 +1,2194 @@ /* * Copyright (C) 2007 The Android Open Sourc...
true
true
private void reloadQueue() { String q = null; boolean newstyle = false; int id = mCardId; if (mPreferences.contains("cardid")) { newstyle = true; id = mPreferences.getInt("cardid", ~mCardId); } if (id == mCardId) { // Only ...
private void reloadQueue() { String q = null; boolean newstyle = false; int id = mCardId; if (mPreferences.contains("cardid")) { newstyle = true; id = mPreferences.getInt("cardid", ~mCardId); } if (id == mCardId) { // Only ...
diff --git a/src/rajawali/primitives/Sphere.java b/src/rajawali/primitives/Sphere.java index 2bfcf4f4..3055df16 100644 --- a/src/rajawali/primitives/Sphere.java +++ b/src/rajawali/primitives/Sphere.java @@ -1,160 +1,160 @@ package rajawali.primitives; import rajawali.BaseObject3D; /** * A sphere primitive. The...
true
true
protected void init() { int numVertices = (mSegmentsW + 1) * (mSegmentsH + 1); int numIndices = 2 * mSegmentsW * (mSegmentsH - 1) * 3; float[] vertices = new float[numVertices * 3]; float[] normals = new float[numVertices * 3]; int[] indices = new int[numIndices]; int i, j; int vertIndex = 0, index = 0...
protected void init() { int numVertices = (mSegmentsW + 1) * (mSegmentsH + 1); int numIndices = 2 * mSegmentsW * (mSegmentsH - 1) * 3; float[] vertices = new float[numVertices * 3]; float[] normals = new float[numVertices * 3]; int[] indices = new int[numIndices]; int i, j; int vertIndex = 0, index = 0...
diff --git a/MemoMeme/src/com/memomeme/activities/NewUser.java b/MemoMeme/src/com/memomeme/activities/NewUser.java index 8e6ea99..993ffe7 100644 --- a/MemoMeme/src/com/memomeme/activities/NewUser.java +++ b/MemoMeme/src/com/memomeme/activities/NewUser.java @@ -1,44 +1,45 @@ package com.memomeme.activities; import a...
true
true
private void initListeners() { bSubmit.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO creating db user startActivity(new Intent(v.getContext(), Game.class)); } }); }
private void initListeners() { bSubmit.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO creating db user startActivity(new Intent(v.getContext(), Game.class)); finish(); } }); }
diff --git a/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java b/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java index f51f284..1b00ae5 100644 --- a/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java +++ b/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java @@ -1,571 +1,57...
true
true
public final int composeAndSendVCards(final Operation op, final String selection, final boolean vcardType21, String ownerVCard, boolean isContacts) { long timestamp = 0; if (V) timestamp = System.currentTimeMillis(); if (isContacts) { VCardComposer composer = null; ...
public final int composeAndSendVCards(final Operation op, final String selection, final boolean vcardType21, String ownerVCard, boolean isContacts) { long timestamp = 0; if (V) timestamp = System.currentTimeMillis(); if (isContacts) { VCardComposer composer = null; ...
diff --git a/modules/weblounge-preview/src/main/java/ch/entwine/weblounge/preview/imagemagick/ImageMagickPreviewGenerator.java b/modules/weblounge-preview/src/main/java/ch/entwine/weblounge/preview/imagemagick/ImageMagickPreviewGenerator.java index 2458466eb..9ce68d590 100644 --- a/modules/weblounge-preview/src/main/ja...
true
true
private void style(InputStream is, OutputStream os, String format, ImageStyle style) throws IllegalArgumentException, IOException, OutOfMemoryError { // Is an image style permitted? if (style == null) throw new IllegalArgumentException("Image style cannot be null"); // Do we need to do...
private void style(InputStream is, OutputStream os, String format, ImageStyle style) throws IllegalArgumentException, IOException, OutOfMemoryError { // Is an image style permitted? if (style == null) throw new IllegalArgumentException("Image style cannot be null"); // Do we need to do...
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/patch/AdapterFactory.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/patch/AdapterFactory.java index 419530c82..6fab0e281 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchr...
true
true
public Object getAdapter(Object adaptableObject, Class adapterType) { if (adapterType == ResourceMapping.class) { if (adaptableObject instanceof PatchProjectDiffNode) { return new DiffProjectResourceMapping( ((PatchProjectDiffNode) adaptableObject) .getDiffProject()); } if (adaptableObject...
public Object getAdapter(Object adaptableObject, Class adapterType) { if (adapterType == ResourceMapping.class) { if (adaptableObject instanceof PatchProjectDiffNode) { return new DiffProjectResourceMapping( ((PatchProjectDiffNode) adaptableObject) .getDiffProject()); } if (adaptableObject...
diff --git a/src/com/bigpupdev/synodroid/ui/SearchFragment.java b/src/com/bigpupdev/synodroid/ui/SearchFragment.java index 21350fa..1823865 100644 --- a/src/com/bigpupdev/synodroid/ui/SearchFragment.java +++ b/src/com/bigpupdev/synodroid/ui/SearchFragment.java @@ -1,526 +1,526 @@ package com.bigpupdev.synodroid.ui; ...
false
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final Activity a = getActivity(); try{ if (((Synodroid)a.getApplication()).DEBUG) Log.d(Synodroid.DS_TAG,"SearchFragment: Creating search fragment."); }catch (Exception ex){/*DO NOTHING*/} ...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final Activity a = getActivity(); try{ if (((Synodroid)a.getApplication()).DEBUG) Log.d(Synodroid.DS_TAG,"SearchFragment: Creating search fragment."); }catch (Exception ex){/*DO NOTHING*/} ...
diff --git a/src/org/geometerplus/fbreader/network/opds/OPDSCustomNetworkLink.java b/src/org/geometerplus/fbreader/network/opds/OPDSCustomNetworkLink.java index e570ba93..330bc317 100644 --- a/src/org/geometerplus/fbreader/network/opds/OPDSCustomNetworkLink.java +++ b/src/org/geometerplus/fbreader/network/opds/OPDSCust...
true
true
public void reloadInfo(final boolean urlsOnly, boolean quietly) throws ZLNetworkException { final LinkedList<String> opensearchDescriptionURLs = new LinkedList<String>(); final List<OpenSearchDescription> descriptions = Collections.synchronizedList(new LinkedList<OpenSearchDescription>()); ZLNetworkException er...
public void reloadInfo(final boolean urlsOnly, boolean quietly) throws ZLNetworkException { final LinkedList<String> opensearchDescriptionURLs = new LinkedList<String>(); final List<OpenSearchDescription> descriptions = Collections.synchronizedList(new LinkedList<OpenSearchDescription>()); ZLNetworkException er...
diff --git a/fm-workbench/agree/com.rockwellcollins.atc.agree.analysis/src/com/rockwellcollins/atc/agree/analysis/AgreeAnnexEmitter.java b/fm-workbench/agree/com.rockwellcollins.atc.agree.analysis/src/com/rockwellcollins/atc/agree/analysis/AgreeAnnexEmitter.java index ffdeb4b2..819bc20e 100644 --- a/fm-workbench/agree/...
false
true
private void makeConnectionExpressions( ConnectedElement absConnSour, ConnectedElement absConnDest) { ConnectionEnd destConn = absConnDest.getConnectionEnd(); ConnectionEnd sourConn = absConnSour.getConnectionEnd(); //we currently don't handle data accesses or buss accesses ...
private void makeConnectionExpressions( ConnectedElement absConnSour, ConnectedElement absConnDest) { ConnectionEnd destConn = absConnDest.getConnectionEnd(); ConnectionEnd sourConn = absConnSour.getConnectionEnd(); //we currently don't handle data accesses or buss accesses ...
diff --git a/CompleteMyTaskTest/src/ca/ualberta/cs/completemytask/test/CreateTaskTest.java b/CompleteMyTaskTest/src/ca/ualberta/cs/completemytask/test/CreateTaskTest.java index fcd3556..75812c6 100644 --- a/CompleteMyTaskTest/src/ca/ualberta/cs/completemytask/test/CreateTaskTest.java +++ b/CompleteMyTaskTest/src/ca/ual...
true
true
public void testAddTask() { // Edit Text Views EditText taskNameEditText = (EditText) main.findViewById(R.id.EditTaskName); taskNameEditText.setText(taskName); EditText taskDescriptionEditText = (EditText) main.findViewById(R.id.EditTaskDescription); taskDescriptionEditText.setTex...
public void testAddTask() { // Edit Text Views EditText taskNameEditText = (EditText) main.findViewById(R.id.EditTaskName); taskNameEditText.setText(taskName); EditText taskDescriptionEditText = (EditText) main.findViewById(R.id.EditTaskDescription); taskDescriptionEditText.setTex...
diff --git a/tests/frontend/org/voltdb/quarantine/TestExportSuiteTestExportAndDroppedTableThenShutdown.java b/tests/frontend/org/voltdb/quarantine/TestExportSuiteTestExportAndDroppedTableThenShutdown.java index 9dfb07302..ce404f73a 100644 --- a/tests/frontend/org/voltdb/quarantine/TestExportSuiteTestExportAndDroppedTab...
false
true
static public junit.framework.Test suite() throws Exception { VoltServerConfig config; final MultiConfigSuiteBuilder builder = new MultiConfigSuiteBuilder(TestExportSuiteTestExportAndDroppedTableThenShutdown.class); VoltProjectBuilder project = new VoltProjectBuilder(); ...
static public junit.framework.Test suite() throws Exception { VoltServerConfig config; final MultiConfigSuiteBuilder builder = new MultiConfigSuiteBuilder(TestExportSuiteTestExportAndDroppedTableThenShutdown.class); VoltProjectBuilder project = new VoltProjectBuilder(); ...
diff --git a/src/BinaryTree.java b/src/BinaryTree.java index a1fa5b9..24c44b7 100644 --- a/src/BinaryTree.java +++ b/src/BinaryTree.java @@ -1,166 +1,166 @@ /** * User: Gifflen * Child = [2i+1] [2i+2] * Parent = [(i-1)/2] */ public class BinaryTree<E> { final private int LEFT = 1; final private in...
true
true
public void getDataAtIndex(int index){ E node = getData(index); branchData = getBranches(index); if (node!=null){ System.out.println(" "+node+" "); System.out.println(" / \\"); for(Object data: branchData) System.out.print(data+" "); ...
public void getDataAtIndex(int index){ E node = getData(index); branchData = getBranches(index); if (node!=null){ System.out.println(" "+node+" "); System.out.println(" / \\"); for(Object data: branchData) System.out.print(data+" "); ...
diff --git a/apps/routerconsole/java/src/net/i2p/router/web/ConfigTunnelsHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/ConfigTunnelsHelper.java index fe17164d3..98141771b 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/ConfigTunnelsHelper.java +++ b/apps/routerconsole/java/src/net/i2p/router/...
true
true
private void renderForm(StringBuffer buf, int index, String prefix, String name, TunnelPoolSettings in, TunnelPoolSettings out) { buf.append("<tr><td colspan=\"3\"><b><a name=\"").append(prefix).append("\">"); buf.append(name).append("</a></b></td></tr>\n"); if (in.getLength() <= 0 || ...
private void renderForm(StringBuffer buf, int index, String prefix, String name, TunnelPoolSettings in, TunnelPoolSettings out) { buf.append("<tr><td colspan=\"3\"><b><a name=\"").append(prefix).append("\">"); buf.append(name).append("</a></b></td></tr>\n"); if (in.getLength() <= 0 || ...
diff --git a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java index 7c8e6253f..c20428d67 100644 --- a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java +++ b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java @@ -1,322 +1,322 @@...
true
true
private char[] getCount(IProgramElement ipe) { // TODO could optimize this code char[] byteCodeName = ipe.getBytecodeName().toCharArray(); if (ipe.getKind().isDeclare()) { int index = CharOperation.lastIndexOf('_', byteCodeName); if (index != -1) { return convertCount(CharOperation.subarray(byteCodeNa...
private char[] getCount(IProgramElement ipe) { // TODO could optimize this code char[] byteCodeName = ipe.getBytecodeName().toCharArray(); if (ipe.getKind().isDeclare()) { int index = CharOperation.lastIndexOf('_', byteCodeName); if (index != -1) { return convertCount(CharOperation.subarray(byteCodeNa...
diff --git a/org.dawnsci.plotting/src/org/dawnsci/plotting/tools/InfoPixelLabelProvider.java b/org.dawnsci.plotting/src/org/dawnsci/plotting/tools/InfoPixelLabelProvider.java index 088a73162..699cfdf87 100644 --- a/org.dawnsci.plotting/src/org/dawnsci/plotting/tools/InfoPixelLabelProvider.java +++ b/org.dawnsci.plottin...
true
true
public String getText(Object element) { //TODO could use ToolPageRole on the tool to separate 1D and 2D cases better double xIndex = 0.0; double yIndex = 0.0; double xLabel = Double.NaN; double yLabel = Double.NaN; final IImageTrace trace = tool.getImageTrace(); try { if (element instanceof IRegion...
public String getText(Object element) { //TODO could use ToolPageRole on the tool to separate 1D and 2D cases better double xIndex = 0.0; double yIndex = 0.0; double xLabel = Double.NaN; double yLabel = Double.NaN; final IImageTrace trace = tool.getImageTrace(); try { if (element instanceof IRegion...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/HTML2Content.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/HTML2Content.java index 8438fd6f2..031d5592d 100644 --- a/plugins/org.eclipse.birt.report.engine/src/org/ec...
false
true
private void handleElement(Element ele, boolean needEscape, HashMap cssStyles, IContent content, int index) { IStyle cssStyle = ( IStyle ) cssStyles.get( ele ); if ( cssStyle != null ) { if ( "none".equals( cssStyle.getDisplay() ) ) //$NON-NLS-1$ { //Check if the display mode is none. return; }...
private void handleElement(Element ele, boolean needEscape, HashMap cssStyles, IContent content, int index) { IStyle cssStyle = ( IStyle ) cssStyles.get( ele ); if ( cssStyle != null ) { if ( "none".equals( cssStyle.getDisplay() ) ) //$NON-NLS-1$ { //Check if the display mode is none. return; }...
diff --git a/wrapper/core/src/main/java/org/apache/karaf/wrapper/internal/WrapperServiceImpl.java b/wrapper/core/src/main/java/org/apache/karaf/wrapper/internal/WrapperServiceImpl.java index 204bd75ea..3b4efc9a8 100644 --- a/wrapper/core/src/main/java/org/apache/karaf/wrapper/internal/WrapperServiceImpl.java +++ b/wrap...
true
true
public File[] install(String name, String displayName, String description, String startType) throws Exception { File base = new File(System.getProperty("karaf.base")); File bin = new File(base, "bin"); File etc = new File(base, "etc"); File lib = new File(base, "lib"); if (...
public File[] install(String name, String displayName, String description, String startType) throws Exception { File base = new File(System.getProperty("karaf.base")); File bin = new File(base, "bin"); File etc = new File(base, "etc"); File lib = new File(base, "lib"); if (...
diff --git a/src/cytoscape/data/readers/GMLReader.java b/src/cytoscape/data/readers/GMLReader.java index af5cfdf05..e3d6324d7 100644 --- a/src/cytoscape/data/readers/GMLReader.java +++ b/src/cytoscape/data/readers/GMLReader.java @@ -1,295 +1,295 @@ // GMLReader.java /** Copyright (c) 2002 Institute for Systems Biol...
true
true
public void read () { //move this to later when we know how many nodes //edges we are going to add //rootGraph = GinyFactory.createRootGraph(); // create and read the GML file gmlTree = new GMLTree(filename); nodeAttributes = new GraphObjAttributes(); edgeAttributes = new GraphObjAttribute...
public void read () { //move this to later when we know how many nodes //edges we are going to add //rootGraph = GinyFactory.createRootGraph(); // create and read the GML file gmlTree = new GMLTree(filename); nodeAttributes = new GraphObjAttributes(); edgeAttributes = new GraphObjAttribute...
diff --git a/src/main/java/org/grouplens/ratingvalue/MutualInformationMetric.java b/src/main/java/org/grouplens/ratingvalue/MutualInformationMetric.java index 223b302..f5b847a 100644 --- a/src/main/java/org/grouplens/ratingvalue/MutualInformationMetric.java +++ b/src/main/java/org/grouplens/ratingvalue/MutualInformatio...
false
true
public String[] evaluate(TestUser user) { int n = 0; MutualInformationCounter userCounter = new MutualInformationCounter(inDomain, outDomain, corrected); // overall for (Long2DoubleMap.Entry e: user.getTestRatings().fast()) { if (Doub...
public String[] evaluate(TestUser user) { int n = 0; MutualInformationCounter userCounter = new MutualInformationCounter(inDomain, outDomain, corrected); // overall for (Long2DoubleMap.Entry e: user.getTestRatings().fast()) { if (Doub...
diff --git a/src/com/joulespersecond/oba/ObaContext.java b/src/com/joulespersecond/oba/ObaContext.java index 9486d30a..a7614736 100644 --- a/src/com/joulespersecond/oba/ObaContext.java +++ b/src/com/joulespersecond/oba/ObaContext.java @@ -1,115 +1,115 @@ /* * Copyright (C) 2012 Paul Watts (paulcwatts@gmail.com) * ...
true
true
public void setBaseUrl(Context context, Uri.Builder builder) { // If there is a custom preference, then use that. String serverName = Application.getCustomApiUrl(); if (!TextUtils.isEmpty(serverName)) { builder.encodedAuthority(serverName); builder.scheme("ht...
public void setBaseUrl(Context context, Uri.Builder builder) { // If there is a custom preference, then use that. String serverName = Application.getCustomApiUrl(); if (!TextUtils.isEmpty(serverName)) { builder.encodedAuthority(serverName); builder.scheme("ht...
diff --git a/src/com/android/contacts/model/EntityDelta.java b/src/com/android/contacts/model/EntityDelta.java index 5b039df0f..9eb777920 100644 --- a/src/com/android/contacts/model/EntityDelta.java +++ b/src/com/android/contacts/model/EntityDelta.java @@ -1,845 +1,846 @@ /* * Copyright (C) 2009 The Android Open Sou...
true
true
public void buildDiff(ArrayList<ContentProviderOperation> buildInto) { final int firstIndex = buildInto.size(); final boolean isContactInsert = mValues.isInsert(); final boolean isContactDelete = mValues.isDelete(); final boolean isContactUpdate = !isContactInsert && !isContactDelet...
public void buildDiff(ArrayList<ContentProviderOperation> buildInto) { final int firstIndex = buildInto.size(); final boolean isContactInsert = mValues.isInsert(); final boolean isContactDelete = mValues.isDelete(); final boolean isContactUpdate = !isContactInsert && !isContactDelet...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/byon/agentrestart/AutoRestartAgentDisabledTest.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/byon/agentrestart/AutoRestartAgentDisabledTest.java index 7ed23c96..6f9194b4 100644 --- a/src/main/java/org/c...
true
true
public void testRestartAgentDisabled() throws Exception { final ProcessingUnit pu = admin.getProcessingUnits() .waitFor("rest", DEFAULT_WAIT_MINUTES, TimeUnit.MINUTES); pu.waitFor(1); final String hostName = pu.getInstances()[0].getMachine().getHostName(); final String ip = IPUtils....
public void testRestartAgentDisabled() throws Exception { final ProcessingUnit pu = admin.getProcessingUnits() .waitFor("rest", DEFAULT_WAIT_MINUTES, TimeUnit.MINUTES); pu.waitFor(1); final String hostName = pu.getInstances()[0].getMachine().getHostName(); final String ip = IPUtils....
diff --git a/elasticsearch/impl/src/test/org/sakaiproject/search/elasticsearch/ElasticSearchTest.java b/elasticsearch/impl/src/test/org/sakaiproject/search/elasticsearch/ElasticSearchTest.java index 07989b40..8322cab2 100644 --- a/elasticsearch/impl/src/test/org/sakaiproject/search/elasticsearch/ElasticSearchTest.java ...
true
true
public void setUp() throws Exception { createTestResources(); when(site.getId()).thenReturn(siteId); when(siteService.getSite(site.getId())).thenReturn(site); sites.add(site); when(serverConfigurationService.getBoolean("search.enable", false)).thenReturn(true); when(...
public void setUp() throws Exception { createTestResources(); when(site.getId()).thenReturn(siteId); when(siteService.getSite(site.getId())).thenReturn(site); sites.add(site); when(serverConfigurationService.getBoolean("search.enable", false)).thenReturn(true); when(...
diff --git a/INS/src/fr/utc/nf33/ins/EntryPointsActivity.java b/INS/src/fr/utc/nf33/ins/EntryPointsActivity.java index 6a8bca7..4880948 100644 --- a/INS/src/fr/utc/nf33/ins/EntryPointsActivity.java +++ b/INS/src/fr/utc/nf33/ins/EntryPointsActivity.java @@ -1,135 +1,135 @@ /** * */ package fr.utc.nf33.ins; imp...
false
true
protected final void onStart() { super.onStart(); // Connect to the SNR Service. Intent snrIntent = new Intent(this, SnrService.class); mSnrConnection = new ServiceConnection() { @Override public final void onServiceConnected(ComponentName name, IBinder service) { } @Overrid...
protected final void onStart() { super.onStart(); // Connect to the SNR Service. Intent snrIntent = new Intent(this, SnrService.class); mSnrConnection = new ServiceConnection() { @Override public final void onServiceConnected(ComponentName name, IBinder service) { } @Overrid...
diff --git a/src/org/ab/nativelayer/MainView.java b/src/org/ab/nativelayer/MainView.java index 0161afe..e64ded8 100644 --- a/src/org/ab/nativelayer/MainView.java +++ b/src/org/ab/nativelayer/MainView.java @@ -1,332 +1,333 @@ package org.ab.nativelayer; import java.nio.ByteBuffer; import java.nio.ShortBuffer; impo...
true
true
public void requestRender() { if (updater != null) { updater.render(); } else { // checkFPS(); Canvas c = null; try { c = mSurfaceHolder.lockCanvas(null); synchronized (mSurfaceHolder) { mainScreen.copyPixelsFromBuffer(drawCanvasBufferAsSh...
public void requestRender() { if (updater != null) { updater.render(); } else { // checkFPS(); Canvas c = null; try { c = mSurfaceHolder.lockCanvas(null); synchronized (mSurfaceHolder) { drawCanvasBufferAsShort.position(0); ...
diff --git a/src/test/java/de/undercouch/citeproc/helper/tool/OptionParserTest.java b/src/test/java/de/undercouch/citeproc/helper/tool/OptionParserTest.java index 60ac9c6..c45d6c9 100644 --- a/src/test/java/de/undercouch/citeproc/helper/tool/OptionParserTest.java +++ b/src/test/java/de/undercouch/citeproc/helper/tool/O...
true
true
public void usage() throws Exception { OptionGroup<Integer> options = new OptionBuilder<Integer>() .add(0, "opt", "o", "option 1") .add(1, "oarg", "a", "option with arg", "ARG", ArgumentType.STRING) .add(new OptionBuilder<Integer>("Group:") .add(3, "b", "group option b") .add(4, "c", "group option c...
public void usage() throws Exception { OptionGroup<Integer> options = new OptionBuilder<Integer>() .add(0, "opt", "o", "option 1") .add(1, "oarg", "a", "option with arg", "ARG", ArgumentType.STRING) .add(new OptionBuilder<Integer>("Group:") .add(3, "b", "group option b") .add(4, "c", "group option c...
diff --git a/src/hello/FizzBuzz.java b/src/hello/FizzBuzz.java index 8454e2c..b7e54ee 100644 --- a/src/hello/FizzBuzz.java +++ b/src/hello/FizzBuzz.java @@ -1,11 +1,11 @@ package hello; public class FizzBuzz { public String fizzbuzz(int i) { - if (i == 3) return "Fizz"; + if (i % 3 == 0) return "Fizz"; if ...
true
true
public String fizzbuzz(int i) { if (i == 3) return "Fizz"; if (i == 5) return "Buzz"; return null; }
public String fizzbuzz(int i) { if (i % 3 == 0) return "Fizz"; if (i == 5) return "Buzz"; return null; }
diff --git a/org.osate.xtext.aadl2.errormodel/src/org/osate/xtext/aadl2/errormodel/naming/ErrorModelQualifiedNameProvider.java b/org.osate.xtext.aadl2.errormodel/src/org/osate/xtext/aadl2/errormodel/naming/ErrorModelQualifiedNameProvider.java index a948e91d..2d29f386 100644 --- a/org.osate.xtext.aadl2.errormodel/src/or...
true
true
public QualifiedName getFullyQualifiedName(final EObject obj) { if (obj instanceof ErrorBehaviorStateMachine || obj instanceof TypeMappingSet || obj instanceof ErrorModelLibrary || obj instanceof ErrorType || obj instanceof TypeSet || obj instanceof TypeTransformationSet){ return getConverter().toQualifiedNam...
public QualifiedName getFullyQualifiedName(final EObject obj) { if (obj instanceof ErrorBehaviorStateMachine || obj instanceof TypeMappingSet || obj instanceof ErrorModelLibrary || obj instanceof ErrorType || obj instanceof TypeSet || obj instanceof TypeTransformationSet){ if (((NamedElement)obj).getName() ==...
diff --git a/H-sektionen/src/se/chalmers/h_sektionen/adapters/NewsAdapter.java b/H-sektionen/src/se/chalmers/h_sektionen/adapters/NewsAdapter.java index 1cd028d..3636fe9 100644 --- a/H-sektionen/src/se/chalmers/h_sektionen/adapters/NewsAdapter.java +++ b/H-sektionen/src/se/chalmers/h_sektionen/adapters/NewsAdapter.java...
true
true
public View getView(int position, View convertView, ViewGroup parent){ //Assign the view we are converting to a local variable View v = convertView; // first check to see if the view is null. if so, we have to inflate it. // to inflate it basically means to render, or show, the view. if(v == null){ ...
public View getView(int position, View convertView, ViewGroup parent){ //Assign the view we are converting to a local variable View v = convertView; // first check to see if the view is null. if so, we have to inflate it. // to inflate it basically means to render, or show, the view. if(v == null){ ...
diff --git a/server/src/edu/rpi/cct/webdav/servlet/common/GetMethod.java b/server/src/edu/rpi/cct/webdav/servlet/common/GetMethod.java index 3af3b1d..5b683ba 100644 --- a/server/src/edu/rpi/cct/webdav/servlet/common/GetMethod.java +++ b/server/src/edu/rpi/cct/webdav/servlet/common/GetMethod.java @@ -1,322 +1,322 @@ /*...
true
true
public void doMethod(HttpServletRequest req, HttpServletResponse resp) throws WebdavException { if (debug) { trace("GetMethod: doMethod"); } try { if (getNsIntf().specialUri(req, resp, getResourceUri(req))) { return; } //String reqContentType = req....
public void doMethod(HttpServletRequest req, HttpServletResponse resp) throws WebdavException { if (debug) { trace("GetMethod: doMethod"); } try { if (getNsIntf().specialUri(req, resp, getResourceUri(req))) { return; } //String reqContentType = req....
diff --git a/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java b/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java index c600646..dc3370b 100644 --- a/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java +++ b/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java...
true
true
public Domain generateDomain(DatabaseMeta databaseMeta, List<LogicalRelationship> joinTemplates) { Domain domain = null; try { // Generate domain based on the table names. String locale = LocalizedString.DEFAULT_LOCALE; this.generator.setLocale(locale); this.generator.setDatabaseMeta(databaseMeta);...
public Domain generateDomain(DatabaseMeta databaseMeta, List<LogicalRelationship> joinTemplates) { Domain domain = null; try { // Generate domain based on the table names. String locale = LocalizedString.DEFAULT_LOCALE; this.generator.setLocale(locale); this.generator.setDatabaseMeta(databaseMeta);...
diff --git a/hazelcast/src/main/java/com/hazelcast/partition/PartitionRuntimeState.java b/hazelcast/src/main/java/com/hazelcast/partition/PartitionRuntimeState.java index afef84c583..137ff2f6d7 100644 --- a/hazelcast/src/main/java/com/hazelcast/partition/PartitionRuntimeState.java +++ b/hazelcast/src/main/java/com/haze...
true
true
protected void setPartitions(InternalPartition[] partitions, Map<Address, Integer> addressIndexes) { List<String> unmatchAddresses = new LinkedList<String>(); for (InternalPartition partition : partitions) { ShortPartitionInfo partitionInfo = new ShortPartitionInfo(partition.getPartition...
protected void setPartitions(InternalPartition[] partitions, Map<Address, Integer> addressIndexes) { List<String> unmatchAddresses = new LinkedList<String>(); for (InternalPartition partition : partitions) { ShortPartitionInfo partitionInfo = new ShortPartitionInfo(partition.getPartition...
diff --git a/src/main/java/com/jetdrone/vertx/yoke/middleware/BodyParser.java b/src/main/java/com/jetdrone/vertx/yoke/middleware/BodyParser.java index 1fc8b4f5..2945a807 100644 --- a/src/main/java/com/jetdrone/vertx/yoke/middleware/BodyParser.java +++ b/src/main/java/com/jetdrone/vertx/yoke/middleware/BodyParser.java @...
true
true
public void handle(final YokeHttpServerRequest request, final Handler<Object> next) { final String method = request.method(); // GET and HEAD have no body if ("GET".equals(method) || "HEAD".equals(method)) { next.handle(null); } else { final String contentTyp...
public void handle(final YokeHttpServerRequest request, final Handler<Object> next) { final String method = request.method(); // GET and HEAD have no body if ("GET".equals(method) || "HEAD".equals(method)) { next.handle(null); } else { final String contentTyp...
diff --git a/test/cs3246/a2/test/SobelOperatorTest.java b/test/cs3246/a2/test/SobelOperatorTest.java index 9ce2936..cec0d41 100644 --- a/test/cs3246/a2/test/SobelOperatorTest.java +++ b/test/cs3246/a2/test/SobelOperatorTest.java @@ -1,33 +1,36 @@ package cs3246.a2.test; import java.awt.image.BufferedImage; import ...
true
true
public static void main(String[] args) { try { BufferedImage image = ImageIO.read(new File("image/test.jpg")); SobelOperator sobel = new SobelOperator(image); sobel.compute(); sobel.normalizeGradient(); double[][] gradient = sobel.getGradient(); int x = sobel.getSizeX(); int y = sobel.getSizeY()...
public static void main(String[] args) { try { BufferedImage image = ImageIO.read(new File("image/test.jpg")); SobelOperator sobel = new SobelOperator(image); sobel.compute(); sobel.normalizeGradient(); double[][] gradient = sobel.getGradient(); int x = sobel.getSizeX(); int y = sobel.getSizeY()...
diff --git a/NeverBreak/src/com/github/thebiologist13/FarmListener.java b/NeverBreak/src/com/github/thebiologist13/FarmListener.java index ac3ccdd..44da1e6 100644 --- a/NeverBreak/src/com/github/thebiologist13/FarmListener.java +++ b/NeverBreak/src/com/github/thebiologist13/FarmListener.java @@ -1,70 +1,70 @@ package ...
true
true
public void onPlayerFarm(PlayerInteractEvent ev) { //Player Player p = ev.getPlayer(); if(ev.getAction() == Action.RIGHT_CLICK_BLOCK) { return; } if(!(ev.getClickedBlock().getType().equals(Material.GRASS)) || !(ev.getMaterial().equals(Material.EARTH))) { return; } //Item player has in ...
public void onPlayerFarm(PlayerInteractEvent ev) { //Player Player p = ev.getPlayer(); if(!(ev.getAction() == Action.RIGHT_CLICK_BLOCK)) { return; } if(!(ev.getClickedBlock().getType().equals(Material.GRASS)) || !(ev.getMaterial().equals(Material.EARTH))) { return; } //Item player has ...
diff --git a/wallet/src/de/schildbach/wallet/ui/PeerListFragment.java b/wallet/src/de/schildbach/wallet/ui/PeerListFragment.java index 9d86b59..b69e0c5 100644 --- a/wallet/src/de/schildbach/wallet/ui/PeerListFragment.java +++ b/wallet/src/de/schildbach/wallet/ui/PeerListFragment.java @@ -1,239 +1,239 @@ /* * Copyrig...
true
true
public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); adapter = new ArrayAdapter<Peer>(activity, 0) { @Override public View getView(final int position, View row, final ViewGroup parent) { if (row == null) row = getLayoutInflater(null).inflate(R.layout.pee...
public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); adapter = new ArrayAdapter<Peer>(activity, 0) { @Override public View getView(final int position, View row, final ViewGroup parent) { if (row == null) row = getLayoutInflater(null).inflate(R.layout.pee...
diff --git a/projects/base/src/main/java/org/muis/base/layout/BoxLayout.java b/projects/base/src/main/java/org/muis/base/layout/BoxLayout.java index 0644f503..d2c1f742 100644 --- a/projects/base/src/main/java/org/muis/base/layout/BoxLayout.java +++ b/projects/base/src/main/java/org/muis/base/layout/BoxLayout.java @@ -1...
true
true
public void layout(MuisElement parent, final MuisElement [] children) { final Direction dir = parent.atts().get(direction, Direction.RIGHT); Alignment align = parent.atts().get(alignment, Alignment.begin); Alignment crossAlign = parent.atts().get(crossAlignment, Alignment.begin); final Size margin = parent.get...
public void layout(MuisElement parent, final MuisElement [] children) { final Direction dir = parent.atts().get(direction, Direction.RIGHT); Alignment align = parent.atts().get(alignment, Alignment.begin); Alignment crossAlign = parent.atts().get(crossAlignment, Alignment.begin); final Size margin = parent.get...
diff --git a/disunity-cli/src/main/java/info/ata4/disunity/cli/command/BundleBuildCommand.java b/disunity-cli/src/main/java/info/ata4/disunity/cli/command/BundleBuildCommand.java index 7e00d87..4bb9c15 100644 --- a/disunity-cli/src/main/java/info/ata4/disunity/cli/command/BundleBuildCommand.java +++ b/disunity-cli/src/...
true
true
public void handleFile(Path file) throws IOException { if (outFile == null) { String fileName = PathUtils.getBaseName(file); outFile = file.getParent().resolve(fileName); } AssetBundleUtils.build(file, outFile); }
public void handleFile(Path file) throws IOException { if (outFile == null) { String fileName = PathUtils.getBaseName(file); outFile = file.getParent().resolve(fileName + ".unity3d"); } AssetBundleUtils.build(file, outFile); }
diff --git a/com.upnp.mediaplayer/src/org/rpi/mpdplayer/StatusMonitor.java b/com.upnp.mediaplayer/src/org/rpi/mpdplayer/StatusMonitor.java index 42fe7a9..0f35473 100644 --- a/com.upnp.mediaplayer/src/org/rpi/mpdplayer/StatusMonitor.java +++ b/com.upnp.mediaplayer/src/org/rpi/mpdplayer/StatusMonitor.java @@ -1,233 +1,23...
true
true
public void run() { int iCount = 0; while (isRunning()) { List<String> commands = new ArrayList<String>(); commands.add(tcp.createCommand("status")); commands.add(tcp.createCommand("currentsong")); boolean bSongChanged = false; HashMap<String, String> res = tcp.sendCommand(tcp.createCommandList(comm...
public void run() { int iCount = 0; while (isRunning()) { List<String> commands = new ArrayList<String>(); commands.add(tcp.createCommand("status")); commands.add(tcp.createCommand("currentsong")); boolean bSongChanged = false; HashMap<String, String> res = tcp.sendCommand(tcp.createCommandList(comm...
diff --git a/hot-deploy/opentaps-tests/src/org/opentaps/tests/financials/FinancialsTests.java b/hot-deploy/opentaps-tests/src/org/opentaps/tests/financials/FinancialsTests.java index 4df509299..a4f407943 100644 --- a/hot-deploy/opentaps-tests/src/org/opentaps/tests/financials/FinancialsTests.java +++ b/hot-deploy/opent...
true
true
public void testAccountsReceivableInvoiceAgingAndCustomerBalances() throws GeneralException { /* * 1. Create parties Customer A, Customer B, Customer C */ TestObjectGenerator generator = new TestObjectGenerator(delegator, dispatcher); List<String> customerId = generator.g...
public void testAccountsReceivableInvoiceAgingAndCustomerBalances() throws GeneralException { /* * 1. Create parties Customer A, Customer B, Customer C */ TestObjectGenerator generator = new TestObjectGenerator(delegator, dispatcher); List<String> customerId = generator.g...
diff --git a/src/Model/Scheduler.java b/src/Model/Scheduler.java index 167c1d3..b7a2347 100644 --- a/src/Model/Scheduler.java +++ b/src/Model/Scheduler.java @@ -1,126 +1,126 @@ package Model; import java.util.Collections; import java.util.LinkedList; import java.util.List; public class Scheduler { private Li...
true
true
private void executeAux() throws Exception { if(graph == null) return; while(graph.hasOrphan() || !allThreadsFree()){ while(graph.hasOrphan() && this.hasFreeThread()){ //Bind a thread and a task and run it Node node = graph.popOrphan(); SThread t = this.popFreeThread(); this.addExecution(threads...
private void executeAux() throws Exception { if(graph == null) return; while(graph.hasOrphan() || !allThreadsFree()){ while(graph.hasOrphan() && this.hasFreeThread()){ //Bind a thread and a task and run it Node node = graph.popOrphan(); SThread t = this.popFreeThread(); this.addExecution(threads...
diff --git a/src/net/zschech/gwt/comet/rebind/CometSerializerGenerator.java b/src/net/zschech/gwt/comet/rebind/CometSerializerGenerator.java index 7170a2f..0ce5ed9 100644 --- a/src/net/zschech/gwt/comet/rebind/CometSerializerGenerator.java +++ b/src/net/zschech/gwt/comet/rebind/CometSerializerGenerator.java @@ -1,158 +...
true
true
public String generate(TreeLogger logger, GeneratorContext context, String typeName) throws UnableToCompleteException { TypeOracle typeOracle = context.getTypeOracle(); // Create the CometSerializer impl String packageName = "comet"; String className = typeName.replace('.', '_') + "Impl"; PrintWriter p...
public String generate(TreeLogger logger, GeneratorContext context, String typeName) throws UnableToCompleteException { TypeOracle typeOracle = context.getTypeOracle(); // Create the CometSerializer impl String packageName = "comet"; String className = typeName.replace('.', '_') + "Impl"; PrintWriter p...
diff --git a/src/test/java/com/educo/tests/TestCases/SyllabusPageTests.java b/src/test/java/com/educo/tests/TestCases/SyllabusPageTests.java index 4e2c830..149f99e 100644 --- a/src/test/java/com/educo/tests/TestCases/SyllabusPageTests.java +++ b/src/test/java/com/educo/tests/TestCases/SyllabusPageTests.java @@ -1,92 +1...
true
true
public void setup(@Optional("firefox") String browser) throws MalformedURLException, InterruptedException { com.educo.tests.Common.Properties.Properties.setProperties(); DesiredCapabilities capability = null; if (browser.equalsIgnoreCase("chrome")) { System.out.println("chrome")...
public void setup(@Optional("chrome") String browser) throws MalformedURLException, InterruptedException { com.educo.tests.Common.Properties.Properties.setProperties(); DesiredCapabilities capability = null; if (browser.equalsIgnoreCase("chrome")) { System.out.println("chrome");...
diff --git a/core/src/visad/bom/ShadowImageByRefFunctionTypeJ3D.java b/core/src/visad/bom/ShadowImageByRefFunctionTypeJ3D.java index f9e64786c..2899375be 100644 --- a/core/src/visad/bom/ShadowImageByRefFunctionTypeJ3D.java +++ b/core/src/visad/bom/ShadowImageByRefFunctionTypeJ3D.java @@ -1,2137 +1,2137 @@ // // Shado...
true
true
public boolean doTransform(Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer) throws VisADException, RemoteException { DataDisplayLink link = renderer.getLink(); // return if data is missing or no ScalarMaps if (data.isMi...
public boolean doTransform(Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer) throws VisADException, RemoteException { DataDisplayLink link = renderer.getLink(); // return if data is missing or no ScalarMaps if (data.isMi...
diff --git a/source/de/anomic/http/httpdFileHandler.java b/source/de/anomic/http/httpdFileHandler.java index 03716ddc4..38f8cb078 100644 --- a/source/de/anomic/http/httpdFileHandler.java +++ b/source/de/anomic/http/httpdFileHandler.java @@ -1,1019 +1,1026 @@ // httpdFileHandler.java // ----------------------- // (C)...
true
true
public static void doResponse(final Properties conProp, final httpRequestHeader requestHeader, final OutputStream out, final InputStream body) { String path = null; try { // getting some connection properties final String method = conProp.getProperty(http...
public static void doResponse(final Properties conProp, final httpRequestHeader requestHeader, final OutputStream out, final InputStream body) { String path = null; try { // getting some connection properties final String method = conProp.getProperty(http...
diff --git a/runtime/ceylon/language/count.java b/runtime/ceylon/language/count.java index 98e0f82f..6538c1e8 100644 --- a/runtime/ceylon/language/count.java +++ b/runtime/ceylon/language/count.java @@ -1,28 +1,28 @@ package ceylon.language; import com.redhat.ceylon.compiler.java.metadata.Ceylon; import com.redhat...
true
true
public static long count(@Name("values") @Sequenced @TypeInfo("ceylon.language.Iterable<ceylon.language.Boolean>") final Iterable<? extends Boolean> values) { long count=0; java.lang.Object $tmp; for (Iterator<? extends Boolean> $val$iter$0 = values.getIterator(); !(...
public static long count(@Name("values") @Sequenced @TypeInfo("ceylon.language.Iterable<ceylon.language.Boolean>") final Iterable<? extends Boolean> values) { long count=0; java.lang.Object $tmp; for (Iterator<? extends Boolean> $val$iter$0 = values.getIterator(); !(...
diff --git a/runtime/org.eclipse.emf.texo.server/src/org/eclipse/emf/texo/server/store/EntityManagerProvider.java b/runtime/org.eclipse.emf.texo.server/src/org/eclipse/emf/texo/server/store/EntityManagerProvider.java index 20077191..75d0725f 100644 --- a/runtime/org.eclipse.emf.texo.server/src/org/eclipse/emf/texo/serv...
true
true
public void initialize() { if (entityManagerFactory != null) { return; } if (persistenceOptions != null) { if (!persistenceOptions.containsKey(ECLIPSELINK_CLASSLOADER_OPTION)) { persistenceOptions.put(ECLIPSELINK_CLASSLOADER_OPTION, EntityManagerProvider.class.getClassLoader()); ...
public void initialize() { if (entityManagerFactory != null) { return; } if (persistenceOptions != null) { if (!persistenceOptions.containsKey(ECLIPSELINK_CLASSLOADER_OPTION)) { persistenceOptions.put(ECLIPSELINK_CLASSLOADER_OPTION, EntityManagerProvider.class.getClassLoader()); ...
diff --git a/src/update/UpdateManager.java b/src/update/UpdateManager.java index f4d67c6..f39be07 100644 --- a/src/update/UpdateManager.java +++ b/src/update/UpdateManager.java @@ -1,119 +1,121 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package update; ...
false
true
public void update(int delta) { DebugMessages.getInstance().write("Delta: " + delta + " FPS: " + (1000 / delta)); DebugMessages.getInstance().write("Updates starting"); input.InputManager.getInstance().processInputs(); Iterator<Updateable> iter = entities.iterator(...
public void update(int delta) { DebugMessages.getInstance().write("Delta: " + delta + " FPS: " + (1000 / delta)); DebugMessages.getInstance().write("Updates starting"); input.InputManager.getInstance().processInputs(); ArrayList<Updateable> copy = new ArrayList<Upd...
diff --git a/bennu-plugin/src/main/java/pt/ist/bennu/plugin/BennuMojo.java b/bennu-plugin/src/main/java/pt/ist/bennu/plugin/BennuMojo.java index a56fa276..3e8f59e0 100644 --- a/bennu-plugin/src/main/java/pt/ist/bennu/plugin/BennuMojo.java +++ b/bennu-plugin/src/main/java/pt/ist/bennu/plugin/BennuMojo.java @@ -1,140 +1,...
true
true
public void execute() throws MojoExecutionException { if (mavenProject.getArtifact().getType().equals("pom")) return; try { if (webFragment.exists()) { String template = FileUtils.readFileToString(webFragment); int start = template.indexOf(TEMPLATE_START); int numSpaces = getIndentation(template, ...
public void execute() throws MojoExecutionException { if (mavenProject.getArtifact().getType().equals("pom")) return; try { if (webFragment.exists()) { String template = FileUtils.readFileToString(webFragment); int start = template.indexOf(TEMPLATE_START); int numSpaces = getIndentation(template, ...
diff --git a/clitest/src/main/java/com/redhat/qe/jon/clitest/base/CliEngine.java b/clitest/src/main/java/com/redhat/qe/jon/clitest/base/CliEngine.java index 970d04d9..27fc14af 100644 --- a/clitest/src/main/java/com/redhat/qe/jon/clitest/base/CliEngine.java +++ b/clitest/src/main/java/com/redhat/qe/jon/clitest/base/CliE...
true
true
private String getResourceFileName(String path) throws CliTasksException { if (path.startsWith("http://") || path.startsWith("https://")) { try { File file = File.createTempFile("temp", ".js"); file.deleteOnExit(); cliTasks.runCommand("wget -nv --no-check-certificate '"+path+"' -O "+file.getAbsolutePa...
private String getResourceFileName(String path) throws CliTasksException { if (path.startsWith("http://") || path.startsWith("https://")) { try { File file = File.createTempFile("temp", ".js"); file.deleteOnExit(); cliTasks.runCommand("wget -nv --no-check-certificate '"+path+"' -O "+file.getAbsolutePa...
diff --git a/src/wikipathways/org/pathvisio/wikipathways/WikiPathways.java b/src/wikipathways/org/pathvisio/wikipathways/WikiPathways.java index 7fa3d520..17f98a91 100644 --- a/src/wikipathways/org/pathvisio/wikipathways/WikiPathways.java +++ b/src/wikipathways/org/pathvisio/wikipathways/WikiPathways.java @@ -1,490 +1,...
true
true
public void init(ProgressKeeper progress, URL base) throws Exception { isInit = true; progress.setTaskName("Starting editor"); WikiPathwaysInit.init(); WikiPathwaysInit.registerXmlRpcExporters(new URL(getRpcURL()), Engine.getCurrent()); loadCookies(base); for(Parameter p : Parameter.values()) {...
public void init(ProgressKeeper progress, URL base) throws Exception { isInit = true; progress.setTaskName("Starting editor"); WikiPathwaysInit.init(); WikiPathwaysInit.registerXmlRpcExporters(new URL(getRpcURL()), Engine.getCurrent()); loadCookies(base); for(Parameter p : Parameter.values()) {...
diff --git a/examples/kilim/examples/Ping.java b/examples/kilim/examples/Ping.java index 6b32958..8fcc578 100644 --- a/examples/kilim/examples/Ping.java +++ b/examples/kilim/examples/Ping.java @@ -1,147 +1,147 @@ /* Copyright (c) 2006, Sriram Srinivasan * * You may distribute this software under the terms of the l...
true
true
public static void run() throws IOException { SocketChannel ch = SocketChannel.open(new InetSocketAddress("localhost", port)); // Init ping packet ByteBuffer bb = ByteBuffer.allocate(PACKET_LEN); for (int i = 0; i < PACKET_LEN; i++) { bb.put((byt...
public static void run() throws IOException { SocketChannel ch = SocketChannel.open(new InetSocketAddress("localhost", port)); // Init ping packet ByteBuffer bb = ByteBuffer.allocate(PACKET_LEN); for (int i = 0; i < PACKET_LEN; i++) { bb.put((byt...
diff --git a/src/com/android/camera/ActivityBase.java b/src/com/android/camera/ActivityBase.java index ff8c246d..297c9033 100644 --- a/src/com/android/camera/ActivityBase.java +++ b/src/com/android/camera/ActivityBase.java @@ -1,718 +1,722 @@ /* * Copyright (C) 2009 The Android Open Source Project * * Licensed u...
true
true
public void onCreate(Bundle icicle) { getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE); super.disableToggleStatusBar(); // Set a theme with action bar. It is not specified in manifest because // we want to hide it by default. setTheme must happen before // setCont...
public void onCreate(Bundle icicle) { // Setting the flag FLAG_SECURE causes white screen and flickering on Gingerbread, // so we do not set the flag. if (ApiHelper.CAN_USE_FLAG_SECURE) { getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE); } super.disabl...
diff --git a/src/edu/stuy/subsystems/Shooter.java b/src/edu/stuy/subsystems/Shooter.java index e97c573..3c5fc74 100644 --- a/src/edu/stuy/subsystems/Shooter.java +++ b/src/edu/stuy/subsystems/Shooter.java @@ -1,74 +1,74 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor...
true
true
public Shooter() { upperRoller = new Jaguar(RobotMap.UPPER_SHOOTER_ROLLER); lowerRoller = new Jaguar(RobotMap.LOWER_SHOOTER_ROLLER); //upperEncoder = new Encoder(RobotMap.UPPER_ROLLER_ENCODER_A, RobotMap.UPPER_ROLLER_ENCODER_B, false, CounterBase.EncodingType.k); //TODO Fix this! ...
public Shooter() { upperRoller = new Jaguar(RobotMap.UPPER_SHOOTER_ROLLER); lowerRoller = new Jaguar(RobotMap.LOWER_SHOOTER_ROLLER); upperEncoder = new Encoder(RobotMap.UPPER_ROLLER_ENCODER_A, RobotMap.UPPER_ROLLER_ENCODER_B, false, CounterBase.EncodingType.k4X); lowerEncode...
diff --git a/geoplatform-gui/core/geoplatform-configuration/src/main/java/org/geosdi/geoplatform/gui/impl/tree/ToolbarTreeClientTool.java b/geoplatform-gui/core/geoplatform-configuration/src/main/java/org/geosdi/geoplatform/gui/impl/tree/ToolbarTreeClientTool.java index 08c3ee2a..287def5f 100644 --- a/geoplatform-gui/c...
true
true
private void buildActionTools() { ActionClientTool addFolder = new ActionClientTool(); addFolder.setId(TOOLBAR_ADD_FOLDER); addFolder.setType(ActionClientTool.BUTTON); addFolder.setEnabled(false); addFolder.setOrder(1); ActionClientTool addRasterLayer = new ActionCli...
private void buildActionTools() { ActionClientTool addFolder = new ActionClientTool(); addFolder.setId(TOOLBAR_ADD_FOLDER); addFolder.setType(ActionClientTool.BUTTON); addFolder.setEnabled(false); addFolder.setOrder(1); ActionClientTool addRasterLayer = new ActionCli...