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/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SearchQuery.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SearchQuery.java index d3c975918..90ce6ea79 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SearchQuery.java +++ b/back...
true
true
private QueryData2 InitQueryData(boolean useCache) { QueryData2 data = null; boolean isExistsValue = false; boolean IsFromYesterday = false; boolean isSafe = false; String searchKey = ""; try { String searchText = getParameters().getSearchPattern(); ...
private QueryData2 InitQueryData(boolean useCache) { QueryData2 data = null; boolean isExistsValue = false; boolean IsFromYesterday = false; boolean isSafe = false; String searchKey = ""; try { String searchText = getParameters().getSearchPattern(); ...
diff --git a/src/main/java/com/pahimar/ee3/handler/FuelHandler.java b/src/main/java/com/pahimar/ee3/handler/FuelHandler.java index cef80243..10d6c306 100644 --- a/src/main/java/com/pahimar/ee3/handler/FuelHandler.java +++ b/src/main/java/com/pahimar/ee3/handler/FuelHandler.java @@ -1,59 +1,59 @@ package com.pahimar.ee...
true
true
public int getBurnTime(ItemStack fuel) { /** * Alchemical Coal */ if (fuel.itemID == ALCHEMICAL_COAL_STACK.itemID && fuel.getItemDamage() == ALCHEMICAL_COAL_STACK.getItemDamage()) { return 8 * TileEntityFurnace.getItemBurnTime(new ItemStack(Item.coal)); ...
public int getBurnTime(ItemStack fuel) { /** * Alchemical Coal */ if (fuel.itemID == ALCHEMICAL_COAL_STACK.itemID && fuel.getItemDamage() == ALCHEMICAL_COAL_STACK.getItemDamage()) { return 8 * TileEntityFurnace.getItemBurnTime(new ItemStack(Item.coal)); ...
diff --git a/core/src/test/java/com/datascience/gal/IncrementalDawidSkeneTest.java b/core/src/test/java/com/datascience/gal/IncrementalDawidSkeneTest.java index 4cc093e4..ec8aac32 100644 --- a/core/src/test/java/com/datascience/gal/IncrementalDawidSkeneTest.java +++ b/core/src/test/java/com/datascience/gal/IncrementalD...
true
true
public final void testGetObjectClassProbabilites(){ LObject<String> obj = new LObject<String>("object"); project.getData().addObject(obj); for (Double val : ((AbstractDawidSkene)project.getAlgorithm()).getObjectClassProbabilities(obj).values()){ assertEquals(0.0, val, TestDataManager.DELTA_DOUBLE); } LOb...
public final void testGetObjectClassProbabilites(){ LObject<String> obj = new LObject<String>("object"); project.getData().addObject(obj); for (Double val : ((AbstractDawidSkene)project.getAlgorithm()).getObjectClassProbabilities(obj).values()){ assertEquals(0.5, val, TestDataManager.DELTA_DOUBLE); } LOb...
diff --git a/test/web/org/openmrs/web/controller/user/UserFormControllerTest.java b/test/web/org/openmrs/web/controller/user/UserFormControllerTest.java index 52f4f54c..bef5287b 100644 --- a/test/web/org/openmrs/web/controller/user/UserFormControllerTest.java +++ b/test/web/org/openmrs/web/controller/user/UserFormContr...
true
true
public void handleSubmission_shouldWorkForAnExample() throws Exception { UserFormController controller = new UserFormController(); WebRequest request = new ServletWebRequest(new MockHttpServletRequest()); User user = controller.formBackingObject(request, null); user.addName(new PersonName("This"...
public void handleSubmission_shouldWorkForAnExample() throws Exception { UserFormController controller = new UserFormController(); WebRequest request = new ServletWebRequest(new MockHttpServletRequest()); User user = controller.formBackingObject(request, null); user.addName(new PersonName("This"...
diff --git a/src/nz/govt/canterburymaps/CanterburyMaps.java b/src/nz/govt/canterburymaps/CanterburyMaps.java index e698466..302ff57 100644 --- a/src/nz/govt/canterburymaps/CanterburyMaps.java +++ b/src/nz/govt/canterburymaps/CanterburyMaps.java @@ -1,39 +1,39 @@ /* Licensed to the Apache Software Foundation (A...
true
true
public void onCreate(Bundle savedInstanceState) { super.setIntegerProperty("splashscreen", R.drawable.splash); super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl() , 100000); //super.loadUrl("file://...
public void onCreate(Bundle savedInstanceState) { super.setIntegerProperty("splashscreen", R.drawable.splash); super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl(), 100000); // Large time as we manually hide...
diff --git a/src/main/java/exceptions/ExpiredException.java b/src/main/java/exceptions/ExpiredException.java index a0a43a3..f1339b9 100644 --- a/src/main/java/exceptions/ExpiredException.java +++ b/src/main/java/exceptions/ExpiredException.java @@ -1,53 +1,53 @@ package exceptions; import degraphmalizr.ID; import ...
true
true
private static String exceptionMessage(Iterable<ID> expired) { final StringBuilder sb = new StringBuilder("Query expired for ids: "); // id1; id2; id3 ... final Iterator<ID> ids = expired.iterator(); while(ids.hasNext()) { final ID id = ids.next(); ...
private static String exceptionMessage(Iterable<ID> expired) { final StringBuilder sb = new StringBuilder("Version mismatch between graph and ES for id(s): "); // id1; id2; id3 ... final Iterator<ID> ids = expired.iterator(); while(ids.hasNext()) { final ID i...
diff --git a/src/servlets/ResetAnswersServlet.java b/src/servlets/ResetAnswersServlet.java index 49d7622..ec0f795 100644 --- a/src/servlets/ResetAnswersServlet.java +++ b/src/servlets/ResetAnswersServlet.java @@ -1,24 +1,24 @@ package servlets; import db.DB; import db.RealDB; import model.User; import javax.se...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { User user = (User) req.getSession().getAttribute("user"); if (user != null) { DB db = new RealDB(); db.update("delete * from userAnswers where userID=" + user.id + ";...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { User user = (User) req.getSession().getAttribute("user"); if (user != null) { DB db = new RealDB(); db.update("delete from userAnswers where userID=" + user.id + ";")...
diff --git a/src/edu/sc/seis/sod/database/AbstractWaveformDatabase.java b/src/edu/sc/seis/sod/database/AbstractWaveformDatabase.java index 46fee8dc3..e16686b0d 100644 --- a/src/edu/sc/seis/sod/database/AbstractWaveformDatabase.java +++ b/src/edu/sc/seis/sod/database/AbstractWaveformDatabase.java @@ -1,939 +1,939 @@ pa...
true
true
private void init() { try { create(); getStmt = connection.prepareStatement(" SELECT waveformeventid, waveformchannelid "+ " FROM waveformchanneldb WHERE waveformid = ? "); getIdStmt = connection.prepareStatement(" SELECT waveformid FROM "+ " waveformchanneldb "+ " WHERE waveformev...
private void init() { try { create(); getStmt = connection.prepareStatement(" SELECT waveformeventid, waveformchannelid "+ " FROM waveformchanneldb WHERE waveformid = ? "); getIdStmt = connection.prepareStatement(" SELECT waveformid FROM "+ " waveformchanneldb "+ " WHERE waveformev...
diff --git a/src/cz/zcu/kiv/eeg/mobile/base/ws/asynctask/FetchExperiments.java b/src/cz/zcu/kiv/eeg/mobile/base/ws/asynctask/FetchExperiments.java index 55f53a5..321114c 100644 --- a/src/cz/zcu/kiv/eeg/mobile/base/ws/asynctask/FetchExperiments.java +++ b/src/cz/zcu/kiv/eeg/mobile/base/ws/asynctask/FetchExperiments.java...
false
true
protected List<Experiment> doInBackground(Void... params) { SharedPreferences credentials = getCredentials(); String username = credentials.getString("username", null); String password = credentials.getString("password", null); String url = credentials.getString("url", null) + Values...
protected List<Experiment> doInBackground(Void... params) { SharedPreferences credentials = getCredentials(); String username = credentials.getString("username", null); String password = credentials.getString("password", null); String url = credentials.getString("url", null) + Values...
diff --git a/src/main/java/com/synacor/soa/ark/WildChild.java b/src/main/java/com/synacor/soa/ark/WildChild.java index c18aed8..6582627 100644 --- a/src/main/java/com/synacor/soa/ark/WildChild.java +++ b/src/main/java/com/synacor/soa/ark/WildChild.java @@ -1,115 +1,115 @@ package com.synacor.soa.ark; import java.ut...
true
true
public void process(WatchedEvent event) throws Exception { if(!path.equals(path)) throw new RuntimeException("incorrect path"); boolean childIsLeaf = wildPath.split("/").length == path.split("/").length+1; if(event.getType() == EventType.NodeChildrenChanged) { List<String> children = getChildrenSafe...
public void process(WatchedEvent event) throws Exception { if(!path.equals(event.getPath())) throw new RuntimeException("incorrect path"); boolean childIsLeaf = wildPath.split("/").length == path.split("/").length+1; if(event.getType() == EventType.NodeChildrenChanged) { List<String> children = getC...
diff --git a/server/src/main/java/org/apache/accumulo/server/tabletserver/Tablet.java b/server/src/main/java/org/apache/accumulo/server/tabletserver/Tablet.java index 72c78c3f7..ca0df8d93 100644 --- a/server/src/main/java/org/apache/accumulo/server/tabletserver/Tablet.java +++ b/server/src/main/java/org/apache/accumulo...
true
true
private CompactionStats _majorCompact(MajorCompactionReason reason) throws IOException, CompactionCanceledException { long t1, t2, t3; // acquire file info outside of tablet lock CompactionStrategy strategy = Property.createInstanceFromPropertyName(acuTableConf, Property.TABLE_COMPACTION_STRATE...
private CompactionStats _majorCompact(MajorCompactionReason reason) throws IOException, CompactionCanceledException { long t1, t2, t3; // acquire file info outside of tablet lock CompactionStrategy strategy = Property.createInstanceFromPropertyName(acuTableConf, Property.TABLE_COMPACTION_STRATE...
diff --git a/src/info/ata4/unity/assetbundle/AssetBundleWriter.java b/src/info/ata4/unity/assetbundle/AssetBundleWriter.java index e9d973d..bd8933e 100644 --- a/src/info/ata4/unity/assetbundle/AssetBundleWriter.java +++ b/src/info/ata4/unity/assetbundle/AssetBundleWriter.java @@ -1,165 +1,165 @@ /* ** 2014 December ...
true
true
public void write(Path file) throws IOException { // add offset placeholders levelOffsetMap.clear(); for (AssetBundleEntry entry : entries) { String name = entry.getName(); if (name.equals("mainData") || name.startsWith("level") || entries.size() == 1) { ...
public void write(Path file) throws IOException { // add offset placeholders levelOffsetMap.clear(); for (AssetBundleEntry entry : entries) { String name = entry.getName(); if (name.equals("mainData") || name.startsWith("level") || entries.size() == 1) { ...
diff --git a/src/com/android/launcher2/DragLayer.java b/src/com/android/launcher2/DragLayer.java index 2e72f622..eb539450 100644 --- a/src/com/android/launcher2/DragLayer.java +++ b/src/com/android/launcher2/DragLayer.java @@ -1,104 +1,106 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Licensed u...
false
true
public boolean onInterceptTouchEvent(MotionEvent ev) { // If the current CellLayoutChildren has a resize frame, we need to detect if any touch // event has occurred which doesn't result in resizing a widget. In this case, we // dismiss any visible resize frames. final Workspace w = (...
public boolean onInterceptTouchEvent(MotionEvent ev) { // If the current CellLayoutChildren has a resize frame, we need to detect if any touch // event has occurred which doesn't result in resizing a widget. In this case, we // dismiss any visible resize frames. final Workspace w = (...
diff --git a/src/main/java/org/jenkinsci/plugins/maveninvoker/MavenInvokerArchiver.java b/src/main/java/org/jenkinsci/plugins/maveninvoker/MavenInvokerArchiver.java index 8b40ebb..c9137db 100644 --- a/src/main/java/org/jenkinsci/plugins/maveninvoker/MavenInvokerArchiver.java +++ b/src/main/java/org/jenkinsci/plugins/ma...
false
true
public boolean postExecute( MavenBuildProxy build, MavenProject pom, MojoInfo mojo, BuildListener listener, Throwable error ) throws InterruptedException, IOException { if ( !mojo.is( "org.apache.maven.plugins", "maven-invoker-plugin", "run" ) && !mojo.is( ...
public boolean postExecute( MavenBuildProxy build, MavenProject pom, MojoInfo mojo, BuildListener listener, Throwable error ) throws InterruptedException, IOException { if ( !mojo.is( "org.apache.maven.plugins", "maven-invoker-plugin", "run" ) && !mojo.is( ...
diff --git a/integration-tests/src/test/java/org/torquebox/integration/arquillian/rails2/FrozenTest.java b/integration-tests/src/test/java/org/torquebox/integration/arquillian/rails2/FrozenTest.java index 55274f7a7..0e9125f8a 100644 --- a/integration-tests/src/test/java/org/torquebox/integration/arquillian/rails2/Froze...
true
true
public void testHighLevel() { driver.get( "http://localhost:8080/frozen-rails" ); // System.err.println("RESULT: "); // System.err.println(driver.getPageSource()); WebElement element = driver.findElementById( "success" ); assertNotNull( element ); assertEquals( "froze...
public void testHighLevel() { driver.get( "http://localhost:8080/frozen-rails" ); //System.err.println("RESULT: "); //System.err.println(driver.getPageSource()); WebElement element = driver.findElementById( "success" ); assertNotNull( element ); assertEquals( "frozen-...
diff --git a/src/com/android/settings/UserDictionarySettings.java b/src/com/android/settings/UserDictionarySettings.java index 6ffcb3d6..49363a90 100644 --- a/src/com/android/settings/UserDictionarySettings.java +++ b/src/com/android/settings/UserDictionarySettings.java @@ -1,286 +1,286 @@ /** * Copyright (C) 2009 G...
true
true
protected Dialog onCreateDialog(int id) { View content = getLayoutInflater().inflate(R.layout.dialog_edittext, null); final EditText editText = (EditText) content.findViewById(R.id.edittext); // No prediction in soft keyboard mode. TODO: Create a better way to disable prediction edit...
protected Dialog onCreateDialog(int id) { View content = getLayoutInflater().inflate(R.layout.dialog_edittext, null); final EditText editText = (EditText) content.findViewById(R.id.edittext); // No prediction in soft keyboard mode. TODO: Create a better way to disable prediction edit...
diff --git a/src/main/java/com/raccoonfink/cruisemonkey/controllers/EventRestService.java b/src/main/java/com/raccoonfink/cruisemonkey/controllers/EventRestService.java index 7cbc271..36316ef 100644 --- a/src/main/java/com/raccoonfink/cruisemonkey/controllers/EventRestService.java +++ b/src/main/java/com/raccoonfink/cr...
true
true
public Response putEvent(@PathParam("id") final String eventId, @QueryParam("isPublic") final Boolean isPublic) { final String userName = getCurrentUser(); m_logger.debug("user = {}, event = {}, isPublic = {}", userName, eventId, isPublic); if (userName == null || eventId == null || isPublic == null) { retur...
public Response putEvent(@PathParam("id") final String eventId, @QueryParam("isPublic") final Boolean isPublic) { final String userName = getCurrentUser(); m_logger.debug("user = {}, event = {}, isPublic = {}", userName, eventId, isPublic); if (userName == null || eventId == null || isPublic == null) { retur...
diff --git a/project2/src/hmm/UnsupervisedTrainingAlgorithm.java b/project2/src/hmm/UnsupervisedTrainingAlgorithm.java index 53ad0ef..c47c355 100644 --- a/project2/src/hmm/UnsupervisedTrainingAlgorithm.java +++ b/project2/src/hmm/UnsupervisedTrainingAlgorithm.java @@ -1,248 +1,248 @@ package hmm; import java.util.A...
true
true
public static OptimizedStateCollection train(ArrayList<ArrayList<String>> trainingSentenceStrings, int stateCount){ OptimizedStateCollection hmm=new OptimizedStateCollection(); hmm.states.remove(hmm.unknownState().name); // initialize states for (int i=0; i<stateCount; i++){ hmm.getStateTraining("s"+i); ...
public static OptimizedStateCollection train(ArrayList<ArrayList<String>> trainingSentenceStrings, int stateCount){ OptimizedStateCollection hmm=new OptimizedStateCollection(); hmm.states.remove(hmm.unknownState().name); // initialize states for (int i=0; i<stateCount; i++){ hmm.getStateTraining("s"+i); ...
diff --git a/src/test/java/org/abqjug/LoadCacheTest.java b/src/test/java/org/abqjug/LoadCacheTest.java index 66c4fe3..3fd8dd2 100644 --- a/src/test/java/org/abqjug/LoadCacheTest.java +++ b/src/test/java/org/abqjug/LoadCacheTest.java @@ -1,120 +1,120 @@ package org.abqjug; import com.google.common.base.Function; im...
true
true
public void testLoadingCache() throws ExecutionException { LoadingCache<Key, Result> graphs = CacheBuilder.newBuilder() .concurrencyLevel(4) .maximumSize(10000) .expireAfterWrite(10, TimeUnit.MINUTES) .expireAfterAccess(10, TimeUnit.MINUTES) ...
public void testLoadingCache() throws ExecutionException { LoadingCache<Key, Result> graphs = CacheBuilder.newBuilder() .concurrencyLevel(4) .maximumSize(10000) .expireAfterWrite(10, TimeUnit.MINUTES) .expireAfterAccess(10, TimeUnit.MINUTES) ...
diff --git a/src/oving5/TradeDeal.java b/src/oving5/TradeDeal.java index 1d6cde8..ac26602 100644 --- a/src/oving5/TradeDeal.java +++ b/src/oving5/TradeDeal.java @@ -1,86 +1,86 @@ package oving5; import java.io.Serializable; import java.util.ArrayList; import java.util.List; public class TradeDeal implements Se...
true
true
public static TradeDeal parseDeal(String deal){ String[] splited = deal.trim().split(";"); TradableItem item = TradableItem.parseTradeItem(splited[0]); double money = Double.parseDouble(splited[3]); String[] li = splited[4].replaceAll("\\[\\]", "").split(","); List<TradableItem> list = new ArrayList<Tradable...
public static TradeDeal parseDeal(String deal){ String[] splited = deal.trim().split(";"); TradableItem item = TradableItem.parseTradeItem(splited[0]); double money = Double.parseDouble(splited[3]); String[] li = splited[4].replaceAll("[\\[\\]]", "").split(","); List<TradableItem> list = new ArrayList<Tradab...
diff --git a/sonar-server/src/main/java/org/sonar/server/issue/IssuesFinderSort.java b/sonar-server/src/main/java/org/sonar/server/issue/IssuesFinderSort.java index d1d55be471..a4a31f53be 100644 --- a/sonar-server/src/main/java/org/sonar/server/issue/IssuesFinderSort.java +++ b/sonar-server/src/main/java/org/sonar/serv...
true
true
public List<IssueDto> sort() { IssueQuery.Sort sort = query.sort(); if (sort != null) { IssueProcessor issueProcessor; switch (sort) { case ASSIGNEE: issueProcessor = new AssigneeSortIssueProcessor(); break; case SEVERITY: issueProcessor = new Severity...
public List<IssueDto> sort() { IssueQuery.Sort sort = query.sort(); if (sort != null) { IssueProcessor issueProcessor; switch (sort) { case ASSIGNEE: issueProcessor = new AssigneeSortIssueProcessor(); break; case SEVERITY: issueProcessor = new Severity...
diff --git a/src/com/gildorym/charactercards/CharacterCards.java b/src/com/gildorym/charactercards/CharacterCards.java index f04a34b..1a637d7 100644 --- a/src/com/gildorym/charactercards/CharacterCards.java +++ b/src/com/gildorym/charactercards/CharacterCards.java @@ -1,89 +1,91 @@ package com.gildorym.charactercards;...
true
true
public void onEnable() { SaveDataManager.loadData(this); this.registerListeners(new Listener[] { new PlayerInteractEntityListener(this), new PlayerDeathListener(this), new EntityRegainHealthListener(), }); this.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() { @Overrid...
public void onEnable() { SaveDataManager.loadData(this); this.registerListeners(new Listener[] { new PlayerInteractEntityListener(this), new PlayerDeathListener(this), new EntityRegainHealthListener(), }); this.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() { @Overrid...
diff --git a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java index e69ca8d5..4de854f9 100644 --- a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java +++ b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStr...
false
true
private static String guessEncoding(byte[] bytes) { if (ASSUME_SHIFT_JIS) { return SHIFT_JIS; } // Does it start with the UTF-8 byte order mark? then guess it's UTF-8 if (bytes.length > 3 && bytes[0] == (byte) 0xEF && bytes[1] == (byte) 0xBB && bytes[2] == (byte) 0xBF) { return UTF8; }...
private static String guessEncoding(byte[] bytes) { if (ASSUME_SHIFT_JIS) { return SHIFT_JIS; } // Does it start with the UTF-8 byte order mark? then guess it's UTF-8 if (bytes.length > 3 && bytes[0] == (byte) 0xEF && bytes[1] == (byte) 0xBB && bytes[2] == (byte) 0xBF) { return UTF8; }...
diff --git a/wkingtechrts/src/com/wkingtechrts/mygdxgame/TechGestureListener.java b/wkingtechrts/src/com/wkingtechrts/mygdxgame/TechGestureListener.java index 238ee6e..69cec27 100644 --- a/wkingtechrts/src/com/wkingtechrts/mygdxgame/TechGestureListener.java +++ b/wkingtechrts/src/com/wkingtechrts/mygdxgame/TechGestureL...
true
true
public boolean pan(float x, float y, float deltaX, float deltaY) { // TODO Auto-generated method stub cam.position.x += deltaX/(cam.viewportWidth * cam.zoom); cam.position.y -= deltaY/(cam.viewportWidth * cam.zoom); System.out.println("("+x+","+y+") DeltaX:"+deltaX+","+deltaY); cam.update(); Gdx.graphics.r...
public boolean pan(float x, float y, float deltaX, float deltaY) { // TODO Auto-generated method stub cam.position.x += deltaX/(cam.viewportWidth * cam.zoom); cam.position.y -= deltaY/(cam.viewportHeight * cam.zoom); System.out.println("("+x+","+y+") DeltaX:"+deltaX+","+deltaY); cam.update(); Gdx.graphics....
diff --git a/AMBroSIA/src/game/Logic.java b/AMBroSIA/src/game/Logic.java index 195fc72..7c60167 100644 --- a/AMBroSIA/src/game/Logic.java +++ b/AMBroSIA/src/game/Logic.java @@ -1,304 +1,306 @@ package game; import gui.MenuGUI; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.a...
true
true
public void keyPressed(KeyEvent e) { int keyCode = e.getKeyCode(); PlayerShip player = gameState.getPlayerShip(); //handles most basic key commands. Should activate a boolean stating that the key has been pressed if (keyCode == KeyEvent.VK_UP) { //accelerate ...
public void keyPressed(KeyEvent e) { int keyCode = e.getKeyCode(); PlayerShip player = gameState.getPlayerShip(); //handles most basic key commands. Should activate a boolean stating that the key has been pressed if (keyCode == KeyEvent.VK_UP) { //accelerate ...
diff --git a/tests/org.eclipse.dltk.ruby.ui.tests/src/org/eclipse/dltk/ruby/ui/tests/text/indenting/IndentingTest.java b/tests/org.eclipse.dltk.ruby.ui.tests/src/org/eclipse/dltk/ruby/ui/tests/text/indenting/IndentingTest.java index 4755a80d..fc0b8ec2 100644 --- a/tests/org.eclipse.dltk.ruby.ui.tests/src/org/eclipse/dl...
true
true
public void doTest(String data, RubyAutoEditStrategy strategy) throws Exception { data = data.replaceAll("π", "≤\n≥"); int startPos = data.indexOf("≤"); Assert.isLegal(startPos >= 0); data = data.substring(0, startPos) + data.substring(startPos + 1); int replacePos = data.indexOf('±'); int inserti...
public void doTest(String data, RubyAutoEditStrategy strategy) throws Exception { data = data.replaceAll("π", "≤\n≥"); int startPos = data.indexOf("≤"); Assert.isLegal(startPos >= 0); data = data.substring(0, startPos) + data.substring(startPos + 1); int replacePos = data.indexOf("±"); int inserti...
diff --git a/plugins/org.fornax.soa.basedsl/src/org/fornax/soa/basedsl/scoping/versions/VersionComparator.java b/plugins/org.fornax.soa.basedsl/src/org/fornax/soa/basedsl/scoping/versions/VersionComparator.java index de690127..f8520d7b 100644 --- a/plugins/org.fornax.soa.basedsl/src/org/fornax/soa/basedsl/scoping/versi...
false
true
public static int compare (final String v1, final String v2) { if (v1!=null && v2 == null) return 1; if (v1==null && v2 != null) return -1; if (v1==null && v2==null) return 0; if (v1.equals(v2)) { return 0; } String[] v1Parts = v1.split("\\."); String[] v2Parts = v2.split("\\."); String ...
public static int compare (final String v1, final String v2) { if (v1!=null && v2 == null) return 1; if (v1==null && v2 != null) return -1; if (v1==null && v2==null) return 0; if (v1.equals(v2)) { return 0; } String[] v1Parts = v1.split("\\."); String[] v2Parts = v2.split("\\."); String ...
diff --git a/projects/security-manager/source/java/com/google/enterprise/connector/security/ui/BasicOmniFormCustomization.java b/projects/security-manager/source/java/com/google/enterprise/connector/security/ui/BasicOmniFormCustomization.java index 7ac06c64..0719febf 100644 --- a/projects/security-manager/source/java/c...
false
true
private boolean parsePropertiesConfig(Properties config) { Enumeration e = config.propertyNames(); boolean success = true; while (e.hasMoreElements()) { String item = (String) e.nextElement(); if (isGlobalOption(item)) { globals.put(parseGlobalOption(item), config.getProperty(item)); ...
private boolean parsePropertiesConfig(Properties config) { Enumeration<?> e = config.propertyNames(); boolean success = true; while (e.hasMoreElements()) { String item = String.class.cast(e.nextElement()); if (isGlobalOption(item)) { globals.put(parseGlobalOption(item), config.getProp...
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/StartupPreferencesInitializer.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/StartupPreferencesInitializer.java index 087c01860..f82862b4c 100644 --- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/c...
false
true
public void initializeDefaultPreferences() { // "TCF Remote Application" launch is hidden by default. // No longer supported or maintained. IPreferenceStore store = DebugUIPlugin.getDefault().getPreferenceStore(); if (store != null) { store.setValue(IInternalDebugUIConst...
public void initializeDefaultPreferences() { // "TCF Remote Application" launch is hidden by default. // No longer supported or maintained. IPreferenceStore store = DebugUIPlugin.getDefault().getPreferenceStore(); if (store != null) { store.setDefault(IInternalDebugUICon...
diff --git a/src/me/corriekay/pppopp3/remotechest/RemoteChest.java b/src/me/corriekay/pppopp3/remotechest/RemoteChest.java index d3f1cfc..be2d30e 100644 --- a/src/me/corriekay/pppopp3/remotechest/RemoteChest.java +++ b/src/me/corriekay/pppopp3/remotechest/RemoteChest.java @@ -1,244 +1,243 @@ package me.corriekay.pppop...
true
true
public boolean handleCommand(CommandSender sender, Command cmd, String label, String[] args){ String cmdn = cmd.getName(); if(!(sender instanceof Player)) { sendMessage(sender, notPlayer); return true; } Player player = (Player)sender; if(cmdn.equals("c")) { Pony pony = Ponyville.getPony(player); ...
public boolean handleCommand(CommandSender sender, Command cmd, String label, String[] args){ String cmdn = cmd.getName(); if(!(sender instanceof Player)) { sendMessage(sender, notPlayer); return true; } Player player = (Player)sender; if(cmdn.equals("c")) { Pony pony = Ponyville.getPony(player); ...
diff --git a/ps3mediaserver/net/pms/network/RequestHandler.java b/ps3mediaserver/net/pms/network/RequestHandler.java index 3667cb00..e2a129c8 100644 --- a/ps3mediaserver/net/pms/network/RequestHandler.java +++ b/ps3mediaserver/net/pms/network/RequestHandler.java @@ -1,157 +1,157 @@ /* * PS3 Media Server, for streami...
true
true
public void run() { Request request = null; try { PMS.debug("Opened handler on socket " + socket); int receivedContentLength = -1; String headerLine = br.readLine(); while (headerLine != null && headerLine.length() > 0) { PMS.debug( "Received on socket: " + headerLine); if (heade...
public void run() { Request request = null; try { PMS.debug("Opened handler on socket " + socket); int receivedContentLength = -1; String headerLine = br.readLine(); while (headerLine != null && headerLine.length() > 0) { PMS.debug( "Received on socket: " + headerLine); if (heade...
diff --git a/backend/grisu-core/src/main/java/org/vpac/grisu/js/control/job/gt4/GT4Submitter.java b/backend/grisu-core/src/main/java/org/vpac/grisu/js/control/job/gt4/GT4Submitter.java index df2d0ba..113ef16 100644 --- a/backend/grisu-core/src/main/java/org/vpac/grisu/js/control/job/gt4/GT4Submitter.java +++ b/backend/...
true
true
private String createJobSubmissionDescription( ServiceInterface serviceInterface, Document jsdl) throws ServerJobSubmissionException { DebugUtils.jsdlDebugOutput("Before translating into rsl: ", jsdl); Document output = null; try { DocumentBuilderFactory docFactory = DocumentBuilderFactory .newInsta...
private String createJobSubmissionDescription( ServiceInterface serviceInterface, Document jsdl) throws ServerJobSubmissionException { DebugUtils.jsdlDebugOutput("Before translating into rsl: ", jsdl); Document output = null; try { DocumentBuilderFactory docFactory = DocumentBuilderFactory .newInsta...
diff --git a/src/gov/nih/nci/rembrandt/web/xml/ClinicalSampleReport.java b/src/gov/nih/nci/rembrandt/web/xml/ClinicalSampleReport.java index adcf4fe1..d8d724b1 100755 --- a/src/gov/nih/nci/rembrandt/web/xml/ClinicalSampleReport.java +++ b/src/gov/nih/nci/rembrandt/web/xml/ClinicalSampleReport.java @@ -1,800 +1,804 @@ ...
false
true
public Document getReportXML(Resultant resultant, Map filterMapParams) { //String theColors[] = { "B6C5F2","F2E3B5","DAE1F9","C4F2B5","819BE9", "E9CF81" }; DecimalFormat resultFormat = new DecimalFormat("0.0000"); String defaultV = "-"; Document document = DocumentHelper.createDocument(); try { Ele...
public Document getReportXML(Resultant resultant, Map filterMapParams) { //String theColors[] = { "B6C5F2","F2E3B5","DAE1F9","C4F2B5","819BE9", "E9CF81" }; DecimalFormat resultFormat = new DecimalFormat("0.0000"); String defaultV = "-"; Document document = DocumentHelper.createDocument(); try { Ele...
diff --git a/src/main/java/org/sikuli/slides/sikuli/SlideTutorial.java b/src/main/java/org/sikuli/slides/sikuli/SlideTutorial.java index e386714..5354c8b 100644 --- a/src/main/java/org/sikuli/slides/sikuli/SlideTutorial.java +++ b/src/main/java/org/sikuli/slides/sikuli/SlideTutorial.java @@ -1,116 +1,117 @@ /** @auth...
true
true
public void performTutorialSlideAction() { if(targetRegion==null){ return; } Canvas canvas=new ScreenRegionCanvas(new DesktopScreenRegion(Constants.ScreenId)); canvas.addBox(targetRegion).withLineWidth(prefsEditor.getCanvasWidthSize()); int x=targetRegion.getBounds().x; int y=targetRegion.getBounds().y;...
public void performTutorialSlideAction() { if(targetRegion==null){ return; } Canvas canvas=new ScreenRegionCanvas(new DesktopScreenRegion(Constants.ScreenId)); canvas.addBox(targetRegion).withLineWidth(prefsEditor.getCanvasWidthSize()); int x=targetRegion.getBounds().x; int y=targetRegion.getBounds().y;...
diff --git a/src/edu/umich/sbolt/language/AgentMessageParser.java b/src/edu/umich/sbolt/language/AgentMessageParser.java index 05534f2..fb8a8ce 100644 --- a/src/edu/umich/sbolt/language/AgentMessageParser.java +++ b/src/edu/umich/sbolt/language/AgentMessageParser.java @@ -1,265 +1,269 @@ package edu.umich.sbolt.langua...
true
true
public static String translateAgentMessage(Identifier id){ String message = null; String type = WMUtil.getValueOfAttribute(id, "type"); System.out.println(type); Identifier fieldsId = WMUtil.getIdentifierOfAttribute(id, "fields"); if(type == null){ return null; ...
public static String translateAgentMessage(Identifier id){ String message = null; String type = WMUtil.getValueOfAttribute(id, "type"); System.out.println(type); Identifier fieldsId = WMUtil.getIdentifierOfAttribute(id, "fields"); if(type == null){ return null; ...
diff --git a/src/com/tomclaw/mandarin/im/icq/IcqMessageRequest.java b/src/com/tomclaw/mandarin/im/icq/IcqMessageRequest.java index 12f63dab..4f3037da 100644 --- a/src/com/tomclaw/mandarin/im/icq/IcqMessageRequest.java +++ b/src/com/tomclaw/mandarin/im/icq/IcqMessageRequest.java @@ -1,75 +1,75 @@ package com.tomclaw.ma...
false
true
public int parseResponse(JSONObject response) throws JSONException { JSONObject responseObject = response.getJSONObject(RESPONSE_OBJECT); int statusCode = responseObject.getInt(STATUS_CODE); // Check for server reply. if (statusCode == WIM_OK) { JSONObject dataObject = re...
public int parseResponse(JSONObject response) throws JSONException { JSONObject responseObject = response.getJSONObject(RESPONSE_OBJECT); int statusCode = responseObject.getInt(STATUS_CODE); // Check for server reply. if (statusCode == WIM_OK) { String requestId = respons...
diff --git a/src/net/m_kawato/tabletpos/OrderInputHelper.java b/src/net/m_kawato/tabletpos/OrderInputHelper.java index 18c9079..6efcf5b 100644 --- a/src/net/m_kawato/tabletpos/OrderInputHelper.java +++ b/src/net/m_kawato/tabletpos/OrderInputHelper.java @@ -1,79 +1,81 @@ package net.m_kawato.tabletpos; import java.u...
true
true
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { Log.d(TAG, String.format("onItemSelected: id=%x, position=%d", parent.getId(), position)); switch (parent.getId()) { case R.id.spn_route: globals.selectedRoute = position; globals.se...
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { Log.d(TAG, String.format("onItemSelected: id=%x, position=%d", parent.getId(), position)); switch (parent.getId()) { case R.id.spn_route: if (globals.selectedRoute != position) { ...
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyUtils.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyUtils.java index 398ad2f87..2038e49c4 100644 --- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyUtils.java +++ b/sip-servlets-impl/s...
false
true
public static Request createProxiedRequest(SipServletRequestImpl originalRequest, ProxyBranchImpl proxyBranch, URI destination, SipURI outboundInterface, SipURI routeRecord, SipURI path) { try { final Request clonedRequest = (Request) originalRequest.getMessage().clone(); final String method = clonedRequest.g...
public static Request createProxiedRequest(SipServletRequestImpl originalRequest, ProxyBranchImpl proxyBranch, URI destination, SipURI outboundInterface, SipURI routeRecord, SipURI path) { try { final Request clonedRequest = (Request) originalRequest.getMessage().clone(); final String method = clonedRequest.g...
diff --git a/torrentfreak-free/src/com/torrentfreak/reader/free/articles/providers/CategoryListProvider.java b/torrentfreak-free/src/com/torrentfreak/reader/free/articles/providers/CategoryListProvider.java index 80cc9a6..331ab95 100644 --- a/torrentfreak-free/src/com/torrentfreak/reader/free/articles/providers/Categor...
true
true
private ArticleItem scrapeArticleItem(final Element articleElement) throws ArticleScrapeException { // retrieve the title element final Element titleElement = articleElement.select("header h4 a").first(); // ensure the title element exists if (titleElement == null) { ...
private ArticleItem scrapeArticleItem(final Element articleElement) throws ArticleScrapeException { // retrieve the title element final Element titleElement = articleElement.select("header h4 a").first(); // ensure the title element exists if (titleElement == null) { ...
diff --git a/java/client/test/org/openqa/selenium/SingleTestSuite.java b/java/client/test/org/openqa/selenium/SingleTestSuite.java index 4b2cdb26b..3082c4381 100644 --- a/java/client/test/org/openqa/selenium/SingleTestSuite.java +++ b/java/client/test/org/openqa/selenium/SingleTestSuite.java @@ -1,95 +1,95 @@ /* Copy...
true
true
public static Test suite() throws Exception { String driver = FIREFOX_TEST; System.setProperty("jna.library.path", "..\\build;build"); System.setProperty("webdriver.selenium.server.port", String.valueOf(findFreePort())); System.setProperty("webdriver.development", "true"); // System.setProperty("w...
public static Test suite() throws Exception { String driver = IE; System.setProperty("jna.library.path", "..\\build;build"); System.setProperty("webdriver.selenium.server.port", String.valueOf(findFreePort())); System.setProperty("webdriver.development", "true"); // System.setProperty("webdriver.d...
diff --git a/src/com/artemis/EntitySystem.java b/src/com/artemis/EntitySystem.java index 832ac33f..406e1305 100644 --- a/src/com/artemis/EntitySystem.java +++ b/src/com/artemis/EntitySystem.java @@ -1,238 +1,238 @@ package com.artemis; import java.util.BitSet; import java.util.HashMap; import com.artemis.utils....
true
true
protected final void check(Entity e) { if(dummy) { return; } boolean contains = e.getSystemBits().get(systemIndex); boolean interested = true; // possibly interested, let's try to prove it wrong. BitSet componentBits = e.getComponentBits(); // Check if the entity possesses ALL of the components d...
protected final void check(Entity e) { if(dummy) { return; } boolean contains = e.getSystemBits().get(systemIndex); boolean interested = true; // possibly interested, let's try to prove it wrong. BitSet componentBits = e.getComponentBits(); // Check if the entity possesses ALL of the components d...
diff --git a/src/com/iCo6/util/Common.java b/src/com/iCo6/util/Common.java index 36a0d05..6e7f65d 100644 --- a/src/com/iCo6/util/Common.java +++ b/src/com/iCo6/util/Common.java @@ -1,218 +1,218 @@ package com.iCo6.util; import com.iCo6.Constants; import com.iCo6.iConomy; import java.io.BufferedReader; import jav...
false
true
public static String formatted(String amount, List<String> maj, List<String> min) { if(Constants.Nodes.isSingle.getBoolean()) if(amount.contains(".")) amount = amount.split("\\.")[0]; String formatted = ""; String famount = amount.replace(",", ""); if(tr...
public static String formatted(String amount, List<String> maj, List<String> min) { if(Constants.Nodes.isSingle.getBoolean()) if(amount.contains(".")) amount = amount.split("\\.")[0]; String formatted = ""; String famount = amount.replace(",", ""); if(Co...
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/Repo2Runnable.java b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/Repo2Runnable.java index ef2a4bb4a..801639cb0 100644 --- a/bundles/org.eclipse.equin...
true
true
public void run(IProgressMonitor monitor) throws ProvisionException { SubMonitor progress = SubMonitor.convert(monitor, 4); // ensure all the right parameters are set validate(); // figure out which IUs we need to process collectIUs(progress.newChild(1)); // create the operands from the list of IUs Ins...
public void run(IProgressMonitor monitor) throws ProvisionException { SubMonitor progress = SubMonitor.convert(monitor, 4); // ensure all the right parameters are set validate(); // figure out which IUs we need to process collectIUs(progress.newChild(1)); // create the operands from the list of IUs Ins...
diff --git a/src/org/geometerplus/fbreader/bookmodel/BookReader.java b/src/org/geometerplus/fbreader/bookmodel/BookReader.java index 42643071..b7b986ea 100644 --- a/src/org/geometerplus/fbreader/bookmodel/BookReader.java +++ b/src/org/geometerplus/fbreader/bookmodel/BookReader.java @@ -1,421 +1,421 @@ /* * Copyright...
false
true
public final void addByteData(byte[] data, int start, int length) { if (!myTextParagraphExists || (length == 0)) { return; } myTextParagraphIsNonEmpty = true; final int oldLength = myTextBufferLength; if (myTextBuffer.length < oldLength + length) { myTextBuffer = ZLArrayUtils.createCopy(myTextBuffer, ...
public final void addByteData(byte[] data, int start, int length) { if (!myTextParagraphExists || length == 0) { return; } myTextParagraphIsNonEmpty = true; final int oldLength = myTextBufferLength; if (myTextBuffer.length < oldLength + length) { myTextBuffer = ZLArrayUtils.createCopy(myTextBuffer, ol...
diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java index e8c9b8ce4b..b8b78b80c0 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/HS...
true
true
public HSQLDialect() { super(); try { Class props = ReflectHelper.classForName( "org.hsqldb.persist.HsqlDatabaseProperties" ); String versionString = (String) props.getDeclaredField( "THIS_VERSION" ).get( null ); hsqldbVersion = Integer.parseInt( versionString.substring( 0, 1 ) ) * 10; hsqldbVersion ...
public HSQLDialect() { super(); try { Class props = ReflectHelper.classForName( "org.hsqldb.persist.HsqlDatabaseProperties" ); String versionString = (String) props.getDeclaredField( "THIS_VERSION" ).get( null ); hsqldbVersion = Integer.parseInt( versionString.substring( 0, 1 ) ) * 10; hsqldbVersion ...
diff --git a/src/com/wickedspiral/jacss/parser/Parser.java b/src/com/wickedspiral/jacss/parser/Parser.java index 00fc06b..d5f3ff4 100644 --- a/src/com/wickedspiral/jacss/parser/Parser.java +++ b/src/com/wickedspiral/jacss/parser/Parser.java @@ -1,695 +1,699 @@ /* * Portions of this code (specifically, regex-based he...
true
true
public void token(Token token, String value) { if (options.isDebug()) System.err.printf("Token: %s, value: %s, space? %b, in rule? %b\n", token, value, space, inRule); if (rgb) { if (NUMBER == token) { String h = Integer.toHexString(Intege...
public void token(Token token, String value) { if (options.isDebug()) System.err.printf("Token: %s, value: %s, space? %b, in rule? %b\n", token, value, space, inRule); if (rgb) { if (NUMBER == token) { String h = Integer.toHexString(Intege...
diff --git a/CustomSpawners/src/com/github/thebiologist13/commands/entities/EntityVelocityCommand.java b/CustomSpawners/src/com/github/thebiologist13/commands/entities/EntityVelocityCommand.java index cf4f2dc..c806cb3 100644 --- a/CustomSpawners/src/com/github/thebiologist13/commands/entities/EntityVelocityCommand.java...
false
true
public void run(CommandSender arg0, Command arg1, String arg2, String[] arg3) { //Command Syntax = /customspawners setvelocity [id] <x,y,z> //Array Index with selection 0 1 //Without selection 0 1 2 //Player Player p = null; //Entity SpawnableEnt...
public void run(CommandSender arg0, Command arg1, String arg2, String[] arg3) { //Command Syntax = /customspawners setvelocity [id] <x,y,z> //Array Index with selection 0 1 //Without selection 0 1 2 //Player Player p = null; //Entity SpawnableEnt...
diff --git a/src/main/java/cn/uc/udac/bolts/BoltUsrLastUrl.java b/src/main/java/cn/uc/udac/bolts/BoltUsrLastUrl.java index f42ed86..340bacd 100644 --- a/src/main/java/cn/uc/udac/bolts/BoltUsrLastUrl.java +++ b/src/main/java/cn/uc/udac/bolts/BoltUsrLastUrl.java @@ -1,112 +1,112 @@ /* * BoltUsrLastUrl * * 1.0 记录...
true
true
public void execute(Tuple input, BasicOutputCollector collector) { try { String time = input.getString(0); String usr = input.getString(3); String url = input.getString(5); String site = new URL(url).getHost(); if (!_newsSites.contains(site)) return; String key = "UsrLastUrl`" ...
public void execute(Tuple input, BasicOutputCollector collector) { try { String time = input.getString(0); String usr = input.getString(3); String url = input.getString(5); String site = new URL(url).getHost(); if (!_newsSites.contains(site)) return; String key = "UsrLastUrl`" ...
diff --git a/hot-deploy/opentaps-common/src/common/org/opentaps/common/util/UtilDate.java b/hot-deploy/opentaps-common/src/common/org/opentaps/common/util/UtilDate.java index fd26eed36..86ab78502 100644 --- a/hot-deploy/opentaps-common/src/common/org/opentaps/common/util/UtilDate.java +++ b/hot-deploy/opentaps-common/s...
true
true
public static String getJsDateTimeFormat(String pattern) { if (UtilValidate.isEmpty(pattern)) { throw new IllegalArgumentException("UtilDateTime.getJsDateTimeFormat: Pattern string can't be empty."); } /* * The table contains translation rules. * Column number ...
public static String getJsDateTimeFormat(String pattern) { if (UtilValidate.isEmpty(pattern)) { throw new IllegalArgumentException("UtilDate.getJsDateTimeFormat: Pattern string can't be empty."); } /* * The table contains translation rules. * Column number equa...
diff --git a/src/main/java/com/alexrnl/subtitlecorrector/io/subrip/SubRipWriter.java b/src/main/java/com/alexrnl/subtitlecorrector/io/subrip/SubRipWriter.java index cfa82d7..bc173b7 100644 --- a/src/main/java/com/alexrnl/subtitlecorrector/io/subrip/SubRipWriter.java +++ b/src/main/java/com/alexrnl/subtitlecorrector/io/...
true
true
protected void writeSubtitle (final Subtitle subtitle, final BufferedWriter writer) throws IOException { writer.write(Integer.valueOf(++subtitleCounter).toString()); writer.write(System.lineSeparator()); writer.write(dateFormat.format(subtitle.getBegin())); writer.write(SubRip.SUBRIP_DATE_SEPARATOR); writer....
protected void writeSubtitle (final Subtitle subtitle, final BufferedWriter writer) throws IOException { subtitleCounter++; writer.write(subtitleCounter.toString()); writer.write(System.lineSeparator()); writer.write(dateFormat.format(subtitle.getBegin())); writer.write(SubRip.SUBRIP_DATE_SEPARATOR); write...
diff --git a/viewmodel-impl/impl/src/main/java/org/cytoscape/view/model/internal/CyNetworkViewManagerImpl.java b/viewmodel-impl/impl/src/main/java/org/cytoscape/view/model/internal/CyNetworkViewManagerImpl.java index d6cc6facb..a5b1462a0 100644 --- a/viewmodel-impl/impl/src/main/java/org/cytoscape/view/model/internal/C...
false
true
public void destroyNetworkView(CyNetworkView view) { if (view == null) throw new NullPointerException("view is null"); final Long viewID = view.getModel().getSUID(); // do this outside of the lock to fail early if (!networkViewMap.containsKey(viewID)) throw new IllegalArgumentException("network view is...
public void destroyNetworkView(CyNetworkView view) { if (view == null) throw new NullPointerException("view is null"); final CyNetwork network = view.getModel(); // do this outside of the lock to fail early if (!networkViewMap.containsKey(network)) throw new IllegalArgumentException("network view is no...
diff --git a/Login/src/de/mms/db/DBManager.java b/Login/src/de/mms/db/DBManager.java index 0d79408..9505fe7 100644 --- a/Login/src/de/mms/db/DBManager.java +++ b/Login/src/de/mms/db/DBManager.java @@ -1,123 +1,123 @@ package de.mms.db; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Res...
true
true
protected static Connection openConnection() throws SQLException { if (LOCAL) { URL = "jdbc:mysql://localhost/krm_db?"; USERDATA = "user=root&password=1913"; } else { USERDATA = "user=krm_user&password=wlc93Qx6aoJ4v"; URL = "jdbc:mysql://bolonka-zwetna-von-der-kreuzbergquelle.de/krm_db?"; } Connec...
protected static Connection openConnection() throws SQLException { if (LOCAL) { URL = "jdbc:mysql://localhost/krm_db?"; USERDATA = "user=root&password="; } else { USERDATA = "user=krm_user&password=wlc93Qx6aoJ4v"; URL = "jdbc:mysql://bolonka-zwetna-von-der-kreuzbergquelle.de/krm_db?"; } Connection...
diff --git a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java index 27d275ae0..473672b46 100644 --- a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java +++ b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java @@ -1,1...
false
true
static int loadFSEdits(EditLogInputStream edits, int tolerationLength, MetaRecoveryContext recovery) throws IOException { FSNamesystem fsNamesys = FSNamesystem.getFSNamesystem(); FSDirectory fsDir = fsNamesys.dir; int numEdits = 0; int logVersion = 0; String clientName = null; String cli...
static int loadFSEdits(EditLogInputStream edits, int tolerationLength, MetaRecoveryContext recovery) throws IOException { FSNamesystem fsNamesys = FSNamesystem.getFSNamesystem(); FSDirectory fsDir = fsNamesys.dir; int numEdits = 0; int logVersion = 0; String clientName = null; String cli...
diff --git a/src/main/java/fr/noogotte/useful_commands/exception/PlayerNotInServer.java b/src/main/java/fr/noogotte/useful_commands/exception/PlayerNotInServer.java index 5c47916..8760a7d 100644 --- a/src/main/java/fr/noogotte/useful_commands/exception/PlayerNotInServer.java +++ b/src/main/java/fr/noogotte/useful_comma...
true
true
public PlayerNotInServer() { super("Ce joueur n'est pas dans la partie."); }
public PlayerNotInServer() { super("Ce joueur n'est pas sur le serveur."); }
diff --git a/src/main/java/com/github/julman99/gsonfire/postProcessors/MergeMapPostProcessor.java b/src/main/java/com/github/julman99/gsonfire/postProcessors/MergeMapPostProcessor.java index 78b52dd..69439b1 100644 --- a/src/main/java/com/github/julman99/gsonfire/postProcessors/MergeMapPostProcessor.java +++ b/src/main...
true
true
public void postSerialize(JsonElement result, Object src, Gson gson) { for(Field f: fieldInspector.getAnnotatedFields(src.getClass(), MergeMap.class)){ try { Map map = (Map)f.get(src); JsonObject resultJsonObject = result.getAsJsonObject(); //Walk...
public void postSerialize(JsonElement result, Object src, Gson gson) { if(src == null){ return; } for(Field f: fieldInspector.getAnnotatedFields(src.getClass(), MergeMap.class)){ try { Map map = (Map)f.get(src); JsonObject resultJsonObj...
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileAppendRestart.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileAppendRestart.java index 816332d0a7..e10eab8c57 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/Te...
false
true
public void testAppendRestart() throws Exception { final Configuration conf = new HdfsConfiguration(); // Turn off persistent IPC, so that the DFSClient can survive NN restart conf.setInt( CommonConfigurationKeysPublic.IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY, 0); MiniDFSCluster cluster =...
public void testAppendRestart() throws Exception { final Configuration conf = new HdfsConfiguration(); // Turn off persistent IPC, so that the DFSClient can survive NN restart conf.setInt( CommonConfigurationKeysPublic.IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY, 0); MiniDFSCluster cluster =...
diff --git a/extras/src/kg/apc/jmeter/config/VariablesFromCSV.java b/extras/src/kg/apc/jmeter/config/VariablesFromCSV.java index 38d95574..6f981e40 100644 --- a/extras/src/kg/apc/jmeter/config/VariablesFromCSV.java +++ b/extras/src/kg/apc/jmeter/config/VariablesFromCSV.java @@ -1,78 +1,77 @@ package kg.apc.jmeter.conf...
false
true
public Map<String, String> getArgumentsAsMap() { Map<String, String> variables = new VariableFromCsvFileReader(getFileName()).getDataAsMap(getVariablePrefix(), getSeparator(), getSkipLines()); //store in System Properties also if (isStoreAsSystemProperty()) { Iterator<String> ite...
public Map<String, String> getArgumentsAsMap() { Map<String, String> variables = new VariableFromCsvFileReader(getFileName()).getDataAsMap(getVariablePrefix(), getSeparator(), getSkipLines()); //store in System Properties also if (isStoreAsSystemProperty()) { for (Map.Entry<Strin...
diff --git a/htroot/ConfigUpdate_p.java b/htroot/ConfigUpdate_p.java index fbdf11854..139f292dd 100644 --- a/htroot/ConfigUpdate_p.java +++ b/htroot/ConfigUpdate_p.java @@ -1,236 +1,236 @@ // ConfigUpdate_p.java // (C) 2007 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany // first published 11.07.200...
true
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch<?> env) { // return variable that accumulates replacements final serverObjects prop = new serverObjects(); final plasmaSwitchboard sb = (plasmaSwitchboard) env; prop.put("candeploy_configCommit",...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch<?> env) { // return variable that accumulates replacements final serverObjects prop = new serverObjects(); final plasmaSwitchboard sb = (plasmaSwitchboard) env; prop.put("candeploy_configCommit",...
diff --git a/src/org/opensolaris/opengrok/search/context/Context.java b/src/org/opensolaris/opengrok/search/context/Context.java index dd65bfee..6e3c70f0 100644 --- a/src/org/opensolaris/opengrok/search/context/Context.java +++ b/src/org/opensolaris/opengrok/search/context/Context.java @@ -1,271 +1,271 @@ /* * CDDL ...
false
true
public boolean getContext(Reader in, Writer out, String urlPrefix, String morePrefix, String path, Definitions tags, boolean limit, List<Hit> hits) { alt = !alt; if (m == null) { return false; } boolean anything = false; TreeMap<Integer, St...
public boolean getContext(Reader in, Writer out, String urlPrefix, String morePrefix, String path, Definitions tags, boolean limit, List<Hit> hits) { alt = !alt; if (m == null) { return false; } boolean anything = false; TreeMap<Integer, St...
diff --git a/src/org/sakaiproject/tool/assessment/ui/listener/evaluation/TotalScoreListener.java b/src/org/sakaiproject/tool/assessment/ui/listener/evaluation/TotalScoreListener.java index 8c0d40deb..44d831c35 100755 --- a/src/org/sakaiproject/tool/assessment/ui/listener/evaluation/TotalScoreListener.java +++ b/src/org...
true
true
public boolean totalScores( String publishedId, TotalScoresBean bean, boolean isValueChange) { log.debug("totalScores()"); try { GradingService delegate = new GradingService(); if (cu.lookupParam("sortBy") != null && !cu.lookupParam("sortBy").trim().equals("")) bean.se...
public boolean totalScores( String publishedId, TotalScoresBean bean, boolean isValueChange) { log.debug("totalScores()"); try { GradingService delegate = new GradingService(); if (cu.lookupParam("sortBy") != null && !cu.lookupParam("sortBy").trim().equals("")) bean.se...
diff --git a/pset1/GraphGenerator.java b/pset1/GraphGenerator.java index fd49038..514f444 100644 --- a/pset1/GraphGenerator.java +++ b/pset1/GraphGenerator.java @@ -1,59 +1,67 @@ package pset1; import org.apache.bcel.Repository; import org.apache.bcel.classfile.JavaClass; import org.apache.bcel.classfile.Method; ...
false
true
CFG createCFG(String className) throws ClassNotFoundException { CFG cfg = new CFG(); JavaClass jc = Repository.lookupClass(className); ClassGen cg = new ClassGen(jc); ConstantPoolGen cpg = cg.getConstantPool(); for (Method m: cg.getMethods()){ MethodGen mg = new MethodGen(m, cg.getClass...
CFG createCFG(String className) throws ClassNotFoundException { CFG cfg = new CFG(); JavaClass jc = Repository.lookupClass(className); ClassGen cg = new ClassGen(jc); ConstantPoolGen cpg = cg.getConstantPool(); for (Method m: cg.getMethods()){ MethodGen mg = new MethodGen(m, cg.getClass...
diff --git a/src/de/bdh/ks/KSLang.java b/src/de/bdh/ks/KSLang.java index 9e08168..c363e26 100644 --- a/src/de/bdh/ks/KSLang.java +++ b/src/de/bdh/ks/KSLang.java @@ -1,168 +1,168 @@ package de.bdh.ks; import java.util.HashMap; import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import org.bukk...
true
true
public KSLang() { HashMap<String,String> en = new HashMap<String,String>(); HashMap<String,String> de = new HashMap<String,String>(); en.put("usage", "USAGE: /auction SELL/BUY/REQUEST/DETAIL/LIST/SIGN/LISTREQUESTS/COLLECT/ABORT/ABORTREQUEST/OVERVIEW/OVERVIEWREQUEST"); en.put("usage_abort","USAGE: /auction ...
public KSLang() { HashMap<String,String> en = new HashMap<String,String>(); HashMap<String,String> de = new HashMap<String,String>(); en.put("usage", "USAGE: /auction SELL/BUY/REQUEST/DETAIL/LIST/SIGN/LISTREQUESTS/COLLECT/ABORT/ABORTREQUEST/OVERVIEW/OVERVIEWREQUEST"); en.put("usage_abort","USAGE: /auction ...
diff --git a/orbisgis-view/src/main/java/org/orbisgis/view/geocatalog/Catalog.java b/orbisgis-view/src/main/java/org/orbisgis/view/geocatalog/Catalog.java index 9c3d08e84..9fc0871de 100644 --- a/orbisgis-view/src/main/java/org/orbisgis/view/geocatalog/Catalog.java +++ b/orbisgis-view/src/main/java/org/orbisgis/view/geo...
true
true
private JPopupMenu makePopupMenu() { JPopupMenu rootMenu = new JPopupMenu(); //Popup:Add JMenu addMenu = new JMenu(I18N.tr("Add")); rootMenu.add(addMenu); //Popup:Add:File JMenuItem addFileItem = new JMenuItem( ...
private JPopupMenu makePopupMenu() { JPopupMenu rootMenu = new JPopupMenu(); //Popup:Add JMenu addMenu = new JMenu(I18N.tr("Add")); rootMenu.add(addMenu); //Popup:Add:File JMenuItem addFileItem = new JMenuItem( ...
diff --git a/src/org/community/intellij/plugins/communitycase/Branch.java b/src/org/community/intellij/plugins/communitycase/Branch.java index 6c4e781..977468c 100644 --- a/src/org/community/intellij/plugins/communitycase/Branch.java +++ b/src/org/community/intellij/plugins/communitycase/Branch.java @@ -1,279 +1,279 @@...
true
true
public static Branch list(final Project project, final VirtualFile root, final boolean localWanted, final boolean remoteWanted, @Nullable final Collection<Branch> branches, @Nullable final String containingCommit) throws VcsException { // preparing native command executor final ...
public static Branch list(final Project project, final VirtualFile root, final boolean localWanted, final boolean remoteWanted, @Nullable final Collection<Branch> branches, @Nullable final String containingCommit) throws VcsException { // preparing native command executor final ...
diff --git a/src/it/chalmers/dat255_bearded_octo_lama/games/RocketLanderGame.java b/src/it/chalmers/dat255_bearded_octo_lama/games/RocketLanderGame.java index 9db3bde..67083b6 100644 --- a/src/it/chalmers/dat255_bearded_octo_lama/games/RocketLanderGame.java +++ b/src/it/chalmers/dat255_bearded_octo_lama/games/RocketLan...
false
true
protected void updateGame() { long now = System.currentTimeMillis(); if(lastTime > now) { return; } double timeSinceLast = (now - lastTime)/1000.0; //Set and calculate acceleration. double xAcceleration = 0; double yAcceleration = GRAV_ACCEL * timeSinceLast; //Calculate new speed of the ...
protected void updateGame() { long now = System.currentTimeMillis(); if(lastTime > now) { return; } double timeSinceLast = (now - lastTime)/1000.0; //Set and calculate acceleration. double xAcceleration = 0; double yAcceleration = GRAV_ACCEL * timeSinceLast; //Calculate new speed of the ...
diff --git a/pn-dispatcher/src/main/java/info/papyri/dispatch/BiblioSearch.java b/pn-dispatcher/src/main/java/info/papyri/dispatch/BiblioSearch.java index 5d9524ce..7cacfa84 100644 --- a/pn-dispatcher/src/main/java/info/papyri/dispatch/BiblioSearch.java +++ b/pn-dispatcher/src/main/java/info/papyri/dispatch/BiblioSearc...
true
true
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); BufferedReader reader = null; try { String q = request.getParameter...
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); BufferedReader reader = null; try { String q = request.getParameter...
diff --git a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/poll/SendVote.java b/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/poll/SendVote.java index 1f0f31c02..80c00795b 100644 --- a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/poll/SendVote.java +++ b/cyklotron-ui/src/ma...
true
true
public void execute(Context context, Parameters parameters, MVCContext mvcContext, TemplatingContext templatingContext, HttpContext httpContext, CoralSession coralSession) throws ProcessingException { HttpSession session = httpContext.getRequest().getSession(); CmsData cmsData = ...
public void execute(Context context, Parameters parameters, MVCContext mvcContext, TemplatingContext templatingContext, HttpContext httpContext, CoralSession coralSession) throws ProcessingException { HttpSession session = httpContext.getRequest().getSession(); CmsData cmsData = ...
diff --git a/src/org/nbphpcouncil/modules/php/yii/YiiPhpModuleExtender.java b/src/org/nbphpcouncil/modules/php/yii/YiiPhpModuleExtender.java index 7bff558..974b8fe 100644 --- a/src/org/nbphpcouncil/modules/php/yii/YiiPhpModuleExtender.java +++ b/src/org/nbphpcouncil/modules/php/yii/YiiPhpModuleExtender.java @@ -1,109 +...
false
true
public Set<FileObject> extend(PhpModule phpModule) throws ExtendingException { boolean isSuccess = false; try { YiiScript script = YiiScript.forPhpModule(phpModule, true); isSuccess = script.initProject(phpModule); } catch (InvalidPhpExecutableException ex) { ...
public Set<FileObject> extend(PhpModule phpModule) throws ExtendingException { boolean isSuccess = false; try { YiiScript script = YiiScript.forPhpModule(phpModule, true); isSuccess = script.initProject(phpModule); } catch (InvalidPhpExecutableException ex) { ...
diff --git a/org/postgresql/jdbc2/DatabaseMetaData.java b/org/postgresql/jdbc2/DatabaseMetaData.java index 3bde0b1..f418d62 100644 --- a/org/postgresql/jdbc2/DatabaseMetaData.java +++ b/org/postgresql/jdbc2/DatabaseMetaData.java @@ -1,3247 +1,3247 @@ package org.postgresql.jdbc2; // IMPORTANT NOTE: This file implem...
false
true
private java.sql.ResultSet getImportedExportedKeys(String catalog, String schema, String primaryTable, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, 32); f[2] = new...
private java.sql.ResultSet getImportedExportedKeys(String catalog, String schema, String primaryTable, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, 32); f[2] = new...
diff --git a/apvs/src/main/java/ch/cern/atlas/apvs/client/APVS.java b/apvs/src/main/java/ch/cern/atlas/apvs/client/APVS.java index 5f707ced..3ca0c921 100644 --- a/apvs/src/main/java/ch/cern/atlas/apvs/client/APVS.java +++ b/apvs/src/main/java/ch/cern/atlas/apvs/client/APVS.java @@ -1,445 +1,448 @@ package ch.cern.atla...
false
true
private void start() { remoteEventBus = clientFactory.getRemoteEventBus(); placeController = clientFactory.getPlaceController(); settingsPersister = new SettingsPersister(remoteEventBus); // get first div element NodeList<Element> divs = Document.get().getElementsByTagName("div"); if (divs.getLength()...
private void start() { remoteEventBus = clientFactory.getRemoteEventBus(); placeController = clientFactory.getPlaceController(); settingsPersister = new SettingsPersister(remoteEventBus); // get first div element NodeList<Element> divs = Document.get().getElementsByTagName("div"); if (divs.getLength()...
diff --git a/netbeans-suite/core/src/org/jcae/netbeans/viewer3d/actions/SelectionRectangle.java b/netbeans-suite/core/src/org/jcae/netbeans/viewer3d/actions/SelectionRectangle.java index 59e2eaa1..7af99fdd 100644 --- a/netbeans-suite/core/src/org/jcae/netbeans/viewer3d/actions/SelectionRectangle.java +++ b/netbeans-sui...
true
true
public SelectionRectangle() { putValue(Action.NAME, "Selection rectangle"); putValue(Action.SHORT_DESCRIPTION, "Selection rectangle"); putValue(Action.SMALL_ICON, icon); setIcon(icon); }
public SelectionRectangle() { putValue(Action.NAME, "Rectangle selection"); putValue(Action.SHORT_DESCRIPTION, "Rectangle selection"); putValue(Action.SMALL_ICON, icon); setIcon(icon); }
diff --git a/modules/core/src/main/java/com/github/wuic/engine/impl/embedded/CGImageAggregatorEngine.java b/modules/core/src/main/java/com/github/wuic/engine/impl/embedded/CGImageAggregatorEngine.java index a9ef3b7..8f54bef 100644 --- a/modules/core/src/main/java/com/github/wuic/engine/impl/embedded/CGImageAggregatorEn...
true
true
public List<WuicResource> parse(final EngineRequest request) throws WuicException { /* * Do nothing if the configuration says that no aggregation should be done */ if (!works() || request.getResources().size() <= 1) { return request.getResources(); } else { ...
public List<WuicResource> parse(final EngineRequest request) throws WuicException { /* * Do nothing if the configuration says that no aggregation should be done */ if (!works()) { return request.getResources(); } else { final Map<Region, WuicResource...
diff --git a/structures/memorials/ComponentGSMemorial.java b/structures/memorials/ComponentGSMemorial.java index feb42a9..5b24816 100644 --- a/structures/memorials/ComponentGSMemorial.java +++ b/structures/memorials/ComponentGSMemorial.java @@ -1,68 +1,68 @@ package GraveStone.structures.memorials; import java.util...
true
true
public boolean addComponentParts(World world, Random random) { int averageGroundLevel = BoundingBoxHelper.getAverageGroundLevel(world, boundingBox); if (averageGroundLevel < 0) { return true; } this.boundingBox.offset(0, averageGroundLevel - boundingBox.maxY + HEIGHT - 1...
public boolean addComponentParts(World world, Random random) { int averageGroundLevel = BoundingBoxHelper.getAverageGroundLevel(world, boundingBox); if (averageGroundLevel < 0) { return true; } this.boundingBox.offset(0, averageGroundLevel - boundingBox.maxY + HEIGHT - 1...
diff --git a/unsupervised/jally/app/reports/TeamReport.java b/unsupervised/jally/app/reports/TeamReport.java index bd19da1..9a445bc 100644 --- a/unsupervised/jally/app/reports/TeamReport.java +++ b/unsupervised/jally/app/reports/TeamReport.java @@ -1,63 +1,65 @@ package reports; import java.util.List; import model...
true
true
private List<Iteration> teamIterations(Long teamId, int n) { int totalVelocity = 0; int totalPlanned = 0; List<Iteration> iterations = Iteration.getLastNTeamIterations(n, teamId); if (iterations.size() > 0) { for (Iteration iteration : iterations) { totalVelocity += iteration.completedPoints; totalP...
private List<Iteration> teamIterations(Long teamId, int n) { int totalVelocity = 0; int totalPlanned = 0; List<Iteration> iterations = Iteration.getLastNTeamIterations(n, teamId); if (iterations.size() > 1) { // pop off last one iterations.remove(iterations.size()-1); for (Iteration iteration : iterat...
diff --git a/src/test/java/org/atlasapi/application/v3/ApplicationConfigurationTranslatorTest.java b/src/test/java/org/atlasapi/application/v3/ApplicationConfigurationTranslatorTest.java index 14c29ef..7bab816 100644 --- a/src/test/java/org/atlasapi/application/v3/ApplicationConfigurationTranslatorTest.java +++ b/src/t...
false
true
public void testEncodesAndDecodesApplicationConfiguration() { ApplicationConfiguration config = ApplicationConfiguration.defaultConfiguration() .request(Publisher.PA) .approve(Publisher.PA) .enable(Publisher.PA) .copyWithPrecedence(Imm...
public void testEncodesAndDecodesApplicationConfiguration() { ApplicationConfiguration config = ApplicationConfiguration.defaultConfiguration() .enable(Publisher.BBC) .request(Publisher.ITV) .approve(Publisher.ITV) .enable(Publisher.IT...
diff --git a/src/me/confuserr/banmanager/data/MuteData.java b/src/me/confuserr/banmanager/data/MuteData.java index 87232a0..f4b04d7 100644 --- a/src/me/confuserr/banmanager/data/MuteData.java +++ b/src/me/confuserr/banmanager/data/MuteData.java @@ -1,37 +1,38 @@ package me.confuserr.banmanager.data; public class Mu...
true
true
public MuteData(String dmuted, long dexpires, String dreason, long dtime, String dby) { muted = dmuted; expires = dexpires; reason = dreason; by = dby; }
public MuteData(String dmuted, long dexpires, String dreason, long dtime, String dby) { muted = dmuted; expires = dexpires; reason = dreason; by = dby; time = dtime; }
diff --git a/src/main/java/org/javadrop/packaging/impl/BasePackagerStrategy.java b/src/main/java/org/javadrop/packaging/impl/BasePackagerStrategy.java index 09a1f2d..4a64966 100644 --- a/src/main/java/org/javadrop/packaging/impl/BasePackagerStrategy.java +++ b/src/main/java/org/javadrop/packaging/impl/BasePackagerStrat...
true
true
public void processTemplates(RunnerStrategy runner, TemplateProcessor processor, File workingDirectory) throws MojoExecutionException { // Go through and create all the destination locations. if (!workingDirectory.exists()) { workingDirectory.mkdirs(); } Map<File, File> conversionFiles = runner.ge...
public void processTemplates(RunnerStrategy runner, TemplateProcessor processor, File workingDirectory) throws MojoExecutionException { // Go through and create all the destination locations. if (!workingDirectory.exists()) { workingDirectory.mkdirs(); } Map<File, File> conversionFiles = runner.ge...
diff --git a/src/edu/rpi/cmt/access/Acl.java b/src/edu/rpi/cmt/access/Acl.java index d994ece..4615c21 100644 --- a/src/edu/rpi/cmt/access/Acl.java +++ b/src/edu/rpi/cmt/access/Acl.java @@ -1,619 +1,621 @@ /* ********************************************************************** Copyright 2006 Rensselaer Polytechn...
true
true
public CurrentAccess evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl, PrivilegeSet filter) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; ...
public CurrentAccess evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl, PrivilegeSet filter) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; ...
diff --git a/src/com/android/calendar/agenda/AgendaWindowAdapter.java b/src/com/android/calendar/agenda/AgendaWindowAdapter.java index ac30998a..8ac14eb3 100644 --- a/src/com/android/calendar/agenda/AgendaWindowAdapter.java +++ b/src/com/android/calendar/agenda/AgendaWindowAdapter.java @@ -1,1349 +1,1352 @@ /* * Cop...
false
true
protected void onQueryComplete(int token, Object cookie, Cursor cursor) { QuerySpec data = (QuerySpec)cookie; if (BASICLOG) { long queryEndMillis = System.nanoTime(); Log.e(TAG, "Query time(ms): " + (queryEndMillis - data.queryStart...
protected void onQueryComplete(int token, Object cookie, Cursor cursor) { QuerySpec data = (QuerySpec)cookie; if (BASICLOG) { long queryEndMillis = System.nanoTime(); Log.e(TAG, "Query time(ms): " + (queryEndMillis - data.queryStart...
diff --git a/sip-servlets-jboss5/src/main/java/org/jboss/web/tomcat/service/injection/ConvergedSipResourceHandler.java b/sip-servlets-jboss5/src/main/java/org/jboss/web/tomcat/service/injection/ConvergedSipResourceHandler.java index 153a189b5..35cfb9fc3 100644 --- a/sip-servlets-jboss5/src/main/java/org/jboss/web/tomca...
true
true
private static void loadXmlResourceEnvRefs(InjectionContainer container, Collection<ResourceEnvironmentReferenceMetaData> refs) { for (ResourceEnvironmentReferenceMetaData envRef : refs) { String resTypeName = envRef.getType(); String mappedName = envRef.getMappedName(); ...
private static void loadXmlResourceEnvRefs(InjectionContainer container, Collection<ResourceEnvironmentReferenceMetaData> refs) { for (ResourceEnvironmentReferenceMetaData envRef : refs) { String resTypeName = envRef.getType(); String mappedName = envRef.getMappedName(); ...
diff --git a/src/rendering/OpenGLRendering.java b/src/rendering/OpenGLRendering.java index c1bed3f..ee15519 100644 --- a/src/rendering/OpenGLRendering.java +++ b/src/rendering/OpenGLRendering.java @@ -1,138 +1,138 @@ package rendering; import game.Game; import input.CanvasListener; import java.awt.AWTException;...
true
true
public OpenGLRendering(final GLEventListener r) { GLProfile glp = GLProfile.getDefault(); logAvailableImplementations(glp); GLCapabilities caps = new GLCapabilities(glp); caps.setDoubleBuffered(true); /* * frame = Util.createFrame(); canvas = new GLCanvas(caps); * canvas.setAutoSwapBufferMode(true); c...
public OpenGLRendering(final GLEventListener r) { GLProfile glp = GLProfile.getDefault(); logAvailableImplementations(glp); GLCapabilities caps = new GLCapabilities(glp); caps.setDoubleBuffered(true); /* * frame = Util.createFrame(); canvas = new GLCanvas(caps); * canvas.setAutoSwapBufferMode(true); c...
diff --git a/portal-core/src/main/java/org/devproof/portal/core/module/user/panel/LoginBoxPanel.java b/portal-core/src/main/java/org/devproof/portal/core/module/user/panel/LoginBoxPanel.java index 837f9636..e91345aa 100644 --- a/portal-core/src/main/java/org/devproof/portal/core/module/user/panel/LoginBoxPanel.java +++...
true
true
private Form<ValueMap> newLoginForm() { return new Form<ValueMap>("loginForm", new CompoundPropertyModel<ValueMap>(valueMap)) { private static final long serialVersionUID = 1L; @Override protected void onSubmit() { String username = valueMap.getString("username"); String password = valueMap.getStri...
private Form<ValueMap> newLoginForm() { return new Form<ValueMap>("loginForm", new CompoundPropertyModel<ValueMap>(valueMap)) { private static final long serialVersionUID = 1L; @Override protected void onSubmit() { String username = valueMap.getString("username"); String password = valueMap.getStri...
diff --git a/src/win32/classes/java/net/WinCEDatagramSocketImpl.java b/src/win32/classes/java/net/WinCEDatagramSocketImpl.java index 97e42234..9fcf6b98 100644 --- a/src/win32/classes/java/net/WinCEDatagramSocketImpl.java +++ b/src/win32/classes/java/net/WinCEDatagramSocketImpl.java @@ -1,93 +1,94 @@ /* * @(#)WinCEDa...
true
true
protected synchronized int peekData(DatagramPacket pd) throws IOException { if (peekPacket == null) { int len = bufLength; DatagramPacket p = new DatagramPacket(new byte[len], len); receive(p); peekPacket = p; } int peeklen = Math.min(pd.getLength(), peekPacket.getLength()); System.arraycopy...
protected synchronized int peekData(DatagramPacket pd) throws IOException { if (peekPacket == null) { int len = bufLength; DatagramPacket p = new DatagramPacket(new byte[len], len); receive(p); peekPacket = p; } int peeklen = Math.min(pd.getLength(), peekPacket.getLength()); System.arraycopy...
diff --git a/src/share/src/main/java/cz/filmtit/share/parsing/Parser.java b/src/share/src/main/java/cz/filmtit/share/parsing/Parser.java index 682fca63..96c0b2b0 100644 --- a/src/share/src/main/java/cz/filmtit/share/parsing/Parser.java +++ b/src/share/src/main/java/cz/filmtit/share/parsing/Parser.java @@ -1,115 +1,115 ...
true
true
public static LinkedList<TimedChunk> processChunk(UnprocessedChunk chunk, int chunkId, long documentId, Language l) { LinkedList<TimedChunk> result = new LinkedList<TimedChunk>(); //separate into sentences List<String> separatedText = TitChunkSeparator.separate(chunk.getTe...
public static LinkedList<TimedChunk> processChunk(UnprocessedChunk chunk, int chunkId, long documentId, Language l) { LinkedList<TimedChunk> result = new LinkedList<TimedChunk>(); //separate into sentences List<String> separatedText = TitChunkSeparator.separate(chunk.getTe...
diff --git a/CASSP/src/cassp/ea/SSPEA.java b/CASSP/src/cassp/ea/SSPEA.java index 10a74aa..1cc27f0 100644 --- a/CASSP/src/cassp/ea/SSPEA.java +++ b/CASSP/src/cassp/ea/SSPEA.java @@ -1,146 +1,147 @@ /** * SSPEA.java * * Copyright (c) 2013 Vladimir Brigant * This software is distributed under the terms of the G...
false
true
public CARule evolve() throws Exception{ // EA configuration Configuration.reset(); Configuration conf = new Configuration("conf"); conf.setBreeder(new GABreeder()); RandomGenerator rg = new GaussianRndGenerator(this.config.getMutDev()); conf.setRandomGenerator(rg); ...
public CARule evolve() throws Exception{ // EA configuration Configuration.reset(); Configuration conf = new Configuration("conf"); conf.setBreeder(new GABreeder()); RandomGenerator rg = new GaussianRndGenerator(this.config.getMutDev()); conf.setRandomGenerator(rg); ...
diff --git a/src/com/android/mms/ui/MessageItem.java b/src/com/android/mms/ui/MessageItem.java index f4fe868..85f97c6 100644 --- a/src/com/android/mms/ui/MessageItem.java +++ b/src/com/android/mms/ui/MessageItem.java @@ -1,333 +1,333 @@ /* * Copyright (C) 2008 Esmertec AG. * Copyright (C) 2008 The Android Open Sou...
true
true
MessageItem(Context context, String type, Cursor cursor, ColumnsMap columnsMap, Pattern highlight, boolean fullTimestamp, boolean sentTimestamp) throws MmsException { mContext = context; mMsgId = cursor.getLong(columnsMap.mColumnMsgId); mHighlight = highlight; mType = typ...
MessageItem(Context context, String type, Cursor cursor, ColumnsMap columnsMap, Pattern highlight, boolean fullTimestamp, boolean sentTimestamp) throws MmsException { mContext = context; mMsgId = cursor.getLong(columnsMap.mColumnMsgId); mHighlight = highlight; mType = typ...
diff --git a/src/main/java/com/gvls2downloader/gvls2proxy/ProxyServlet.java b/src/main/java/com/gvls2downloader/gvls2proxy/ProxyServlet.java index 3cb427e..caf158c 100644 --- a/src/main/java/com/gvls2downloader/gvls2proxy/ProxyServlet.java +++ b/src/main/java/com/gvls2downloader/gvls2proxy/ProxyServlet.java @@ -1,225 +...
false
true
protected void processRequest(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (requestIsRunning) { resp.setContentType("text/plain"); resp.sendError(503); resp.getWriter().write("Request already in progress!"); ...
protected void processRequest(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (requestIsRunning) { resp.setContentType("text/plain"); resp.sendError(503); resp.getWriter().write("Request already in progress!"); ...
diff --git a/src/main/java/de/minestar/FifthElement/commands/home/cmdHome.java b/src/main/java/de/minestar/FifthElement/commands/home/cmdHome.java index f201b7a..cb64473 100644 --- a/src/main/java/de/minestar/FifthElement/commands/home/cmdHome.java +++ b/src/main/java/de/minestar/FifthElement/commands/home/cmdHome.java...
true
true
public void execute(String[] args, Player player) { Home home = null; // OWN HOME if (args.length == 0) { home = Core.homeManager.getHome(player.getName()); if (home == null) { PlayerUtils.sendError(player, pluginName, "Du hast kein Zuhause erstellt!"...
public void execute(String[] args, Player player) { Home home = null; // OWN HOME if (args.length == 0) { home = Core.homeManager.getHome(player.getName()); if (home == null) { PlayerUtils.sendError(player, pluginName, "Du hast kein Zuhause erstellt!"...
diff --git a/src/com/maveric/WorkoutTrackerSaveActivity.java b/src/com/maveric/WorkoutTrackerSaveActivity.java index cb776c5..faa780a 100755 --- a/src/com/maveric/WorkoutTrackerSaveActivity.java +++ b/src/com/maveric/WorkoutTrackerSaveActivity.java @@ -1,196 +1,196 @@ package com.maveric; import java.text.SimpleDat...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ctx = getApplicationContext(); Bundle extras = getIntent().getExtras(); exceriseType = extras.getString("type"); exceriseTypeText = (TextView) findViewById(R.id.excerisetypetext); exceriseTypeText.setText(exceriseType...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ctx = getApplicationContext(); Bundle extras = getIntent().getExtras(); exceriseType = extras.getString("type"); exceriseTypeText = (TextView) findViewById(R.id.excerisetypetext); exceriseTypeText.setText(exceriseType...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/emitter/TableLayout.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/emitter/TableLayout.java index 3f9e476da..6f3288291 100644 --- a/plugins/org.eclipse.birt.report.engine/src/or...
false
true
protected int[] formalize( DimensionType[] columns, int tableWidth, boolean isTableWidthDefined ) { ArrayList percentageList = new ArrayList( ); ArrayList unsetList = new ArrayList( ); ArrayList preFixedList = new ArrayList( ); int[] resolvedColumnWidth = new int[columns.length]; double total = 0...
protected int[] formalize( DimensionType[] columns, int tableWidth, boolean isTableWidthDefined ) { ArrayList percentageList = new ArrayList( ); ArrayList unsetList = new ArrayList( ); ArrayList preFixedList = new ArrayList( ); int[] resolvedColumnWidth = new int[columns.length]; double total = 0...
diff --git a/src/main/java/org/elasticsearch/gateway/local/state/meta/LocalGatewayMetaState.java b/src/main/java/org/elasticsearch/gateway/local/state/meta/LocalGatewayMetaState.java index 08573905e80..6401b362316 100644 --- a/src/main/java/org/elasticsearch/gateway/local/state/meta/LocalGatewayMetaState.java +++ b/src...
true
true
public void clusterChanged(ClusterChangedEvent event) { if (event.state().blocks().disableStatePersistence()) { // reset the current metadata, we need to start fresh... this.currentMetaData = null; return; } MetaData newMetaData = event.state().metaData()...
public void clusterChanged(ClusterChangedEvent event) { if (event.state().blocks().disableStatePersistence()) { // reset the current metadata, we need to start fresh... this.currentMetaData = null; return; } MetaData newMetaData = event.state().metaData()...
diff --git a/beddit_alarm/src/ohtu/beddit/activity/MainActivity.java b/beddit_alarm/src/ohtu/beddit/activity/MainActivity.java index fed1b7c..c4eddcb 100755 --- a/beddit_alarm/src/ohtu/beddit/activity/MainActivity.java +++ b/beddit_alarm/src/ohtu/beddit/activity/MainActivity.java @@ -1,242 +1,243 @@ package ohtu.beddi...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setAlarmService(new AlarmServiceImpl(this)); //initialize default values for settings if called for the first time PreferenceManager.setDefaultValues(thi...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setAlarmService(new AlarmServiceImpl(this)); //initialize default values for settings if called for the first time PreferenceManager.setDefaultValues(thi...
diff --git a/src/main/java/net/lahwran/bukkit/jython/PythonCommandHandler.java b/src/main/java/net/lahwran/bukkit/jython/PythonCommandHandler.java index be4b2eb..e05f34e 100644 --- a/src/main/java/net/lahwran/bukkit/jython/PythonCommandHandler.java +++ b/src/main/java/net/lahwran/bukkit/jython/PythonCommandHandler.java...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { boolean result; if (argcount == -1) { try { result = call(4, sender, command, label, args); argcount = 4; } catch (PyException e) { //t...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { boolean result; if (argcount == -1) { try { result = call(4, sender, command, label, args); argcount = 4; } catch (PyException e) { //t...
diff --git a/components/bio-formats/src/loci/formats/in/NikonReader.java b/components/bio-formats/src/loci/formats/in/NikonReader.java index 5c0371978..c8bcabe1f 100644 --- a/components/bio-formats/src/loci/formats/in/NikonReader.java +++ b/components/bio-formats/src/loci/formats/in/NikonReader.java @@ -1,455 +1,457 @@...
false
true
public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); IFD ifd = ifds.get(no); int[] bps = ifd.getBitsPerSample(); int dataSize = bps[0]; long[] byteCounts = ifd.getSt...
public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); IFD ifd = ifds.get(no); int[] bps = ifd.getBitsPerSample(); int dataSize = bps[0]; long[] byteCounts = ifd.getSt...
diff --git a/src/main/java/net/vhati/modmanager/core/XMLPatcher.java b/src/main/java/net/vhati/modmanager/core/XMLPatcher.java index d330c6d..6660478 100644 --- a/src/main/java/net/vhati/modmanager/core/XMLPatcher.java +++ b/src/main/java/net/vhati/modmanager/core/XMLPatcher.java @@ -1,580 +1,592 @@ package net.vhati....
false
true
protected List<Element> handleModFind( Element contextNode, Element node ) { List<Element> result = null; if ( node.getNamespace().equals( modNS ) ) { if ( node.getName().equals( "findName" ) ) { String searchName = node.getAttributeValue( "name" ); String searchType = node.getAttributeValue( "type" ...
protected List<Element> handleModFind( Element contextNode, Element node ) { List<Element> result = null; if ( node.getNamespace().equals( modNS ) ) { if ( node.getName().equals( "findName" ) ) { String searchName = node.getAttributeValue( "name" ); String searchType = node.getAttributeValue( "type" ...
diff --git a/src/org/geometerplus/android/fbreader/FBReader.java b/src/org/geometerplus/android/fbreader/FBReader.java index 346ffb5..6883159 100644 --- a/src/org/geometerplus/android/fbreader/FBReader.java +++ b/src/org/geometerplus/android/fbreader/FBReader.java @@ -1,417 +1,422 @@ /* * Copyright (C) 2009-2010 Geo...
false
true
public void onEpdRepaintFinished() { final org.geometerplus.fbreader.fbreader.FBReader fbreader = (org.geometerplus.fbreader.fbreader.FBReader)ZLApplication.Instance(); final TextView bookTitle = (TextView) findViewById(R.id.book_title); final TextView bookAuthors = (TextView) findViewById(R.id.book_authors);...
public void onEpdRepaintFinished() { final org.geometerplus.fbreader.fbreader.FBReader fbreader = (org.geometerplus.fbreader.fbreader.FBReader)ZLApplication.Instance(); final TextView bookTitle = (TextView) findViewById(R.id.book_title); final TextView bookAuthors = (TextView) findViewById(R.id.book_authors);...
diff --git a/src/com/android/browser/BrowserProvider.java b/src/com/android/browser/BrowserProvider.java index 42e22a53..ce156a7c 100644 --- a/src/com/android/browser/BrowserProvider.java +++ b/src/com/android/browser/BrowserProvider.java @@ -1,697 +1,698 @@ /* * Copyright (C) 2006 The Android Open Source Project ...
true
true
public Cursor query(Uri url, String[] projectionIn, String selection, String[] selectionArgs, String sortOrder) throws IllegalStateException { SQLiteDatabase db = mOpenHelper.getReadableDatabase(); int match = URI_MATCHER.match(url); if (match == -1) { t...
public Cursor query(Uri url, String[] projectionIn, String selection, String[] selectionArgs, String sortOrder) throws IllegalStateException { SQLiteDatabase db = mOpenHelper.getReadableDatabase(); int match = URI_MATCHER.match(url); if (match == -1) { t...
diff --git a/src/com/worxforus/net/SyncTableManager.java b/src/com/worxforus/net/SyncTableManager.java index e79579b..2fe5bb1 100644 --- a/src/com/worxforus/net/SyncTableManager.java +++ b/src/com/worxforus/net/SyncTableManager.java @@ -1,167 +1,168 @@ package com.worxforus.net; import java.util.ArrayList; import ...
true
true
public <T> Result handleSyncTableDownload(Context c, String host, String dbName, TableInterface<T> table, SyncInterface<T> syncObject, int limitPerPage, String lastSync) { Log.i(this.getClass().getName(), "Performing sync network operation for:"+table.getTableName()); //create object pool to pass aroun...
public <T> Result handleSyncTableDownload(Context c, String host, String dbName, TableInterface<T> table, SyncInterface<T> syncObject, int limitPerPage, String lastSync) { Log.i(this.getClass().getName(), "Performing sync network operation for:"+table.getTableName()); //create object pool to pass aroun...
diff --git a/onebusaway-sms-webapp/src/main/java/org/onebusaway/sms/actions/StopByNumberAction.java b/onebusaway-sms-webapp/src/main/java/org/onebusaway/sms/actions/StopByNumberAction.java index 03499e3d..11a7a351 100644 --- a/onebusaway-sms-webapp/src/main/java/org/onebusaway/sms/actions/StopByNumberAction.java +++ b/...
true
true
public String execute() throws ServiceException { if (_text != null) _text.trim(); if (_text == null || _text.length() == 0) return INPUT; String[] tokens = _text.trim().split("\\s+"); if (tokens.length == 0) return INPUT; CoordinateBounds serviceArea = _serviceAreaService.g...
public String execute() throws ServiceException { if (_text != null) _text.trim(); if (_text == null || _text.length() == 0) return INPUT; String[] tokens = _text.trim().split("\\s+"); if (tokens.length == 0) return INPUT; CoordinateBounds serviceArea = _serviceAreaService.g...
diff --git a/src/org/apache/fop/image/JAIImage.java b/src/org/apache/fop/image/JAIImage.java index e5e15bc62..54c288e2f 100644 --- a/src/org/apache/fop/image/JAIImage.java +++ b/src/org/apache/fop/image/JAIImage.java @@ -1,150 +1,150 @@ /* * $Id$ * Copyright (C) 2001 The Apache Software Foundation. All rights rese...
true
true
protected void loadImage() { try { InputStream inputStream = this.m_href.openStream(); /* * BufferedInputStream inputStream = this.m_imageReader.getInputStream(); * inputStream.reset(); */ com.sun.media.jai.codec.FileCacheSeekableStr...
protected void loadImage() { try { InputStream inputStream = this.m_href.openStream(); /* * BufferedInputStream inputStream = this.m_imageReader.getInputStream(); * inputStream.reset(); */ com.sun.media.jai.codec.FileCacheSeekableStr...