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/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/macros/SakaiLinkMacro.java b/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/macros/SakaiLinkMacro.java index 1c25e698..a8edbd82 100755 --- a/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/macros/SakaiLinkMacro.ja...
true
true
public void execute(Writer writer, MacroParameter params) throws IllegalArgumentException, IOException { SpecializedRenderContext context = (SpecializedRenderContext) params .getContext(); RenderEngine engine = context.getRenderEngine(); String text = params.get("text", 0); String url = params.get("u...
public void execute(Writer writer, MacroParameter params) throws IllegalArgumentException, IOException { SpecializedRenderContext context = (SpecializedRenderContext) params .getContext(); RenderEngine engine = context.getRenderEngine(); String text = params.get("text", 0); String url = params.get("u...
diff --git a/hudson-remoting/src/main/java/hudson/remoting/jnlp/MainDialog.java b/hudson-remoting/src/main/java/hudson/remoting/jnlp/MainDialog.java index f352f6d5..cc85025c 100644 --- a/hudson-remoting/src/main/java/hudson/remoting/jnlp/MainDialog.java +++ b/hudson-remoting/src/main/java/hudson/remoting/jnlp/MainDialo...
true
true
public MainDialog() throws HeadlessException { super("Hudson slave agent"); ImageIcon background = new ImageIcon(getClass().getResource("title.png")); JPanel foregroundPanel = new JPanel(new BorderLayout(10, 10)); foregroundPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,1...
public MainDialog() throws HeadlessException { super("Hudson slave agent"); ImageIcon background = new ImageIcon(getClass().getResource("Hudson-bust.png")); JPanel foregroundPanel = new JPanel(new BorderLayout(10, 10)); foregroundPanel.setBorder(BorderFactory.createEmptyBorder(10,1...
diff --git a/src/org/jaudiotagger/audio/mp3/MP3AudioHeader.java b/src/org/jaudiotagger/audio/mp3/MP3AudioHeader.java index 33e13b8c..cc5a4de8 100644 --- a/src/org/jaudiotagger/audio/mp3/MP3AudioHeader.java +++ b/src/org/jaudiotagger/audio/mp3/MP3AudioHeader.java @@ -1,463 +1,466 @@ /** * Initial @author : Paul Tayl...
false
true
public boolean seek(final File seekFile) throws IOException { //This is substantially faster than updtaing the filechannels position int filePointerCount = 0; final FileInputStream fis = new FileInputStream(seekFile); final FileChannel fc = fis.getChannel(); ...
public boolean seek(final File seekFile) throws IOException { //This is substantially faster than updtaing the filechannels position int filePointerCount = 0; final FileInputStream fis = new FileInputStream(seekFile); final FileChannel fc = fis.getChannel(); ...
diff --git a/WVUTA/src/org/mockup/wvuta/PRTReportStatus.java b/WVUTA/src/org/mockup/wvuta/PRTReportStatus.java index a89121f..8a0668c 100644 --- a/WVUTA/src/org/mockup/wvuta/PRTReportStatus.java +++ b/WVUTA/src/org/mockup/wvuta/PRTReportStatus.java @@ -1,207 +1,207 @@ package org.mockup.wvuta; import java.util.Cale...
true
true
public void onClick(View v) { Editor editor = reportTracker.edit(); switch (v.getId()) { case R.id.downRB: upDown = true; statusString = "Down"; break; case R.id.runningRB: upDown = true; statusString = "Up"; break; case R.id.prtSubmitButton: // status & location selected = accept if ...
public void onClick(View v) { Editor editor = reportTracker.edit(); switch (v.getId()) { case R.id.downRB: upDown = true; statusString = "Down"; break; case R.id.runningRB: upDown = true; statusString = "Up"; break; case R.id.prtSubmitButton: // status & location selected = accept if ...
diff --git a/core/src/main/java/com/github/onionjake/tankatar/core/Tankatar.java b/core/src/main/java/com/github/onionjake/tankatar/core/Tankatar.java index 71f20be..df7be4b 100644 --- a/core/src/main/java/com/github/onionjake/tankatar/core/Tankatar.java +++ b/core/src/main/java/com/github/onionjake/tankatar/core/Tanka...
true
true
public void init() { worldLayer = graphics().createGroupLayer(); world = new TankatarWorld(worldLayer); players.add(world.newPlayer()); graphics().rootLayer().add(worldLayer); keyboard().setListener(this); pointer().setListener(new Pointer.Listener() { @Override public void...
public void init() { touchPosition = new Coordinate(0,0,0); worldLayer = graphics().createGroupLayer(); world = new TankatarWorld(worldLayer); players.add(world.newPlayer()); graphics().rootLayer().add(worldLayer); keyboard().setListener(this); pointer().setListener(new Pointer.Lis...
diff --git a/src/main/java/com/socialsite/BasePage.java b/src/main/java/com/socialsite/BasePage.java index 9949f55..7af3567 100644 --- a/src/main/java/com/socialsite/BasePage.java +++ b/src/main/java/com/socialsite/BasePage.java @@ -1,115 +1,116 @@ /** * Copyright SocialSite (C) 2009 * * This program is ...
true
true
public void renderHead(final IHeaderResponse response) { // NOTE add all the css references here.Don't add css link in the other // pages or panel.This will help in combing all the css files into // single file during deployment response.renderCSSReference("css/libraries.css"); response.renderCSSReference...
public void renderHead(final IHeaderResponse response) { // NOTE add all the css references here.Don't add css link in the other // pages or panel.This will help in combing all the css files into // single file during deployment response.renderCSSReference("css/libraries.css"); response.renderCSSReference...
diff --git a/src/org/nolat/rsircbot/commands/WTSCommand.java b/src/org/nolat/rsircbot/commands/WTSCommand.java index 7352269..49ca8a3 100644 --- a/src/org/nolat/rsircbot/commands/WTSCommand.java +++ b/src/org/nolat/rsircbot/commands/WTSCommand.java @@ -1,60 +1,61 @@ package org.nolat.rsircbot.commands; import java....
true
true
public void executeCommand(RSIRCBot bot, String channel, String executor, String message) { if (message.length() == "!wts".length()) { bot.sendMessage(channel, executor, getUsageString(), this); } else { String item = message.substring("!wts ".length(), message.length()).repl...
public void executeCommand(RSIRCBot bot, String channel, String executor, String message) { if (message.length() == "!wts".length()) { bot.sendMessage(channel, executor, getUsageString(), this); } else { String item = message.substring("!wts ".length(), message.length()).repl...
diff --git a/test/org/dsf/ClassFinderFindMatchingTest.java b/test/org/dsf/ClassFinderFindMatchingTest.java index e56a20e..bd29d30 100644 --- a/test/org/dsf/ClassFinderFindMatchingTest.java +++ b/test/org/dsf/ClassFinderFindMatchingTest.java @@ -1,139 +1,139 @@ package org.dsf; import java.io.ByteArrayInputStream; ...
true
true
public void ordering() throws Exception { InputStream in = new ByteArrayInputStream("zy.MyClass\nmy.MyClass2\nmy.MyClassa".getBytes(encoding)); ClassFinder finder = new ClassFinder(in); Collection<String> result = finder.findMatching("MC"); String[] arr = result.toArray(new String[result.size()]); assertEqua...
public void ordering() throws Exception { InputStream in = new ByteArrayInputStream("zy.MyClassa\nmy.MyClass\nmy.MyClass2".getBytes(encoding)); ClassFinder finder = new ClassFinder(in); Collection<String> result = finder.findMatching("MC"); String[] arr = result.toArray(new String[result.size()]); assertEqua...
diff --git a/src/edu/unsw/comp9321/logic/Controller.java b/src/edu/unsw/comp9321/logic/Controller.java index 4bcd572..ae11f06 100644 --- a/src/edu/unsw/comp9321/logic/Controller.java +++ b/src/edu/unsw/comp9321/logic/Controller.java @@ -1,358 +1,357 @@ package edu.unsw.comp9321.logic; import java.io.IOException; i...
true
true
private void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String forwardPage = ""; sessionBean = (SessionBean) request.getSession().getAttribute("sessionBean"); request.setAttribute("genreList", movies.getGenres()); request.setAttribute("actorL...
private void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String forwardPage = ""; sessionBean = (SessionBean) request.getSession().getAttribute("sessionBean"); request.setAttribute("genreList", movies.getGenres()); request.setAttribute("actorL...
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemChest.java b/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemChest.java index 5cb807c7..3cf8c0a6 100644 --- a/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemChest.java +++ b/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemChest.java @@ -1...
false
true
public void updatePlayerFlyStatus(LivingUpdateEvent event) { if(event.entityLiving instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.entityLiving; ItemStack armor = player.getCurrentArmor(3 - armorType); if(armor != null && armor.getItem() == this) tickPlayer(player); if(players...
public void updatePlayerFlyStatus(LivingUpdateEvent event) { if(event.entityLiving instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.entityLiving; ItemStack armor = player.getCurrentArmor(3 - armorType); if(armor != null && armor.getItem() == this) tickPlayer(player); if(players...
diff --git a/src/org/peterbaldwin/vlcremote/loader/PlaylistLoader.java b/src/org/peterbaldwin/vlcremote/loader/PlaylistLoader.java index 5dca7d6..51d1ca1 100644 --- a/src/org/peterbaldwin/vlcremote/loader/PlaylistLoader.java +++ b/src/org/peterbaldwin/vlcremote/loader/PlaylistLoader.java @@ -1,78 +1,78 @@ /*- * Cop...
true
true
public Remote<Playlist> loadInBackground() { mListener.onProgress(0); Remote<Playlist> p = mMediaServer.playlist(mSearch).load(); if(p == null || p.data == null) { mListener.onProgress(10000); return null; } mListener.onProgress(1000); boolean ...
public Remote<Playlist> loadInBackground() { mListener.onProgress(0); Remote<Playlist> p = mMediaServer.playlist(mSearch).load(); if(p == null || p.data == null) { mListener.onProgress(10000); return p; } mListener.onProgress(1000); boolean par...
diff --git a/twitter4j-core/src/main/java/twitter4j/TwitterStream.java b/twitter4j-core/src/main/java/twitter4j/TwitterStream.java index dbd8364c..2523b036 100644 --- a/twitter4j-core/src/main/java/twitter4j/TwitterStream.java +++ b/twitter4j-core/src/main/java/twitter4j/TwitterStream.java @@ -1,531 +1,531 @@ /* Copy...
true
true
public void run() { int timeToSleep = NO_WAIT; while (!closed) { try { if (!closed && null == stream) { // try establishing connection setStatus("[Establishing connection]"); strea...
public void run() { int timeToSleep = NO_WAIT; while (!closed) { try { if (!closed && null == stream) { // try establishing connection setStatus("[Establishing connection]"); strea...
diff --git a/src/com/android/contacts/editor/ExternalRawContactEditorView.java b/src/com/android/contacts/editor/ExternalRawContactEditorView.java index cabf639e5..eb496f231 100644 --- a/src/com/android/contacts/editor/ExternalRawContactEditorView.java +++ b/src/com/android/contacts/editor/ExternalRawContactEditorView....
true
true
public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig) { // Remove any existing sections mGeneral.removeAllViews(); // Bail if invalid state or source if (state == null || type == null) return; // Make sure we have StructuredName EntityModifi...
public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig) { // Remove any existing sections mGeneral.removeAllViews(); // Bail if invalid state or source if (state == null || type == null) return; // Make sure we have StructuredName EntityModifi...
diff --git a/src/main/java/com/hunterpowerequipment/util/InvoiceConverter.java b/src/main/java/com/hunterpowerequipment/util/InvoiceConverter.java index d993174..77fd7aa 100644 --- a/src/main/java/com/hunterpowerequipment/util/InvoiceConverter.java +++ b/src/main/java/com/hunterpowerequipment/util/InvoiceConverter.java...
false
true
public static void main( final String[] args ) { if( args.length != 1 ) { System.out.println( "Add an input directory." ) ; return ; } // create the camel context that is the "heart" of Camel CamelContext camel = new DefaultCamelContext(); try { ...
public static void main( final String[] args ) throws Exception { if( args.length != 1 ) { System.out.println( "Add an input directory." ) ; return ; } // create the camel context that is the "heart" of Camel CamelContext camel = new DefaultCamelContext(); ...
diff --git a/src/plugins/Freetalk/ui/web/WebInterface.java b/src/plugins/Freetalk/ui/web/WebInterface.java index 247eadd8..1cf88917 100644 --- a/src/plugins/Freetalk/ui/web/WebInterface.java +++ b/src/plugins/Freetalk/ui/web/WebInterface.java @@ -1,721 +1,725 @@ /* This code is part of Freenet. It is distributed under...
false
true
public WebInterface(Freetalk myFreetalk) { URI myURI; try { myURI = new URI(Freetalk.PLUGIN_URI); logIn = new URI(Freetalk.PLUGIN_URI+"/LogIn"); } catch (URISyntaxException e) { throw new Error(e); } mFreetalk = myFreetalk; mPageMaker = mFreetalk.getPluginRespirator().getPageMaker(); Toad...
public WebInterface(Freetalk myFreetalk) { final URI sessionCookieURI; try { // We must use "/" as cookie path because otherwise the cookie won't be sent by the browser when the user navigates in any other area of fproxy // than the "Freetalk" menu - then the Freetalk menu would always only show "Log in" ...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/aggregator/Aggregate.java b/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/aggregator/Aggregate.java index cc8703c80..c6235e080 100755 --- a/java/modules/core/src/main/java/org/apache/synapse/mediators/eip/aggregator/Aggrega...
true
true
public boolean isComplete(boolean traceOn, boolean traceOrDebugOn, Log trace, Log log) { // if any messages have been collected, check if the completion criteria is met if (!messages.isEmpty()) { // get total messages for this group, from the first message we have collected ...
public boolean isComplete(boolean traceOn, boolean traceOrDebugOn, Log trace, Log log) { // if any messages have been collected, check if the completion criteria is met if (!messages.isEmpty()) { // get total messages for this group, from the first message we have collected ...
diff --git a/src/com/adtworker/choose4u/SetupChoicesActivity.java b/src/com/adtworker/choose4u/SetupChoicesActivity.java index bfbeb3f..fe46f70 100644 --- a/src/com/adtworker/choose4u/SetupChoicesActivity.java +++ b/src/com/adtworker/choose4u/SetupChoicesActivity.java @@ -1,359 +1,359 @@ package com.adtworker.choose4u...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final OnClickListener onClickFunc = new OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(SetupChoicesActivity.this, Choose4uActivity.class); ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final OnClickListener onClickFunc = new OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(SetupChoicesActivity.this, Choose4uActivity.class); ...
diff --git a/Epsilon/src/epsilon/net/PacketParser.java b/Epsilon/src/epsilon/net/PacketParser.java index 1d0e117..f9b981c 100644 --- a/Epsilon/src/epsilon/net/PacketParser.java +++ b/Epsilon/src/epsilon/net/PacketParser.java @@ -1,155 +1,155 @@ package epsilon.net; import java.net.DatagramPacket; import java.secur...
true
true
public void run() { while (isRunning) { try { // Get packet from incoming packet queue DatagramPacket packet = incomingPacketQueue.take(); // Get message from packet String packetString = new String(packet.getData(), 0, packet.getL...
public void run() { while (isRunning) { try { // Get packet from incoming packet queue DatagramPacket packet = incomingPacketQueue.take(); // Get message from packet String packetString = new String(packet.getData(), 0, packet.getL...
diff --git a/kundera-core/src/main/java/com/impetus/kundera/persistence/context/FlushManager.java b/kundera-core/src/main/java/com/impetus/kundera/persistence/context/FlushManager.java index b7a64cac0..4060036dd 100644 --- a/kundera-core/src/main/java/com/impetus/kundera/persistence/context/FlushManager.java +++ b/kund...
false
true
private void addNodesToFlushStack(Node node, EventType eventType) { Map<NodeLink, Node> children = node.getChildren(); // If this is a leaf node (not having any child, no need to go any // deeper if (children != null) { Map<NodeLink, Node> oneToOneChildren =...
private void addNodesToFlushStack(Node node, EventType eventType) { Map<NodeLink, Node> children = node.getChildren(); // If this is a leaf node (not having any child, no need to go any // deeper if (children != null) { Map<NodeLink, Node> oneToOneChildren =...
diff --git a/apps/i2psnark/java/src/org/klomp/snark/ConnectionAcceptor.java b/apps/i2psnark/java/src/org/klomp/snark/ConnectionAcceptor.java index 8ac44888f..77ba522e6 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/ConnectionAcceptor.java +++ b/apps/i2psnark/java/src/org/klomp/snark/ConnectionAcceptor.java @@ -1,2...
false
true
public void run() { while(!stop) { if (socketChanged) { // ok, already updated socketChanged = false; } while ( (serverSocket == null) && (!stop)) { serverSocket = _util.getServerSocket(); if (serverSocket == null) try...
public void run() { while(!stop) { if (socketChanged) { // ok, already updated socketChanged = false; } while ( (serverSocket == null) && (!stop)) { serverSocket = _util.getServerSocket(); if (serverSocket == null) try...
diff --git a/src/org/github/jamm/MemoryMeter.java b/src/org/github/jamm/MemoryMeter.java index ebfe382..b618510 100644 --- a/src/org/github/jamm/MemoryMeter.java +++ b/src/org/github/jamm/MemoryMeter.java @@ -1,185 +1,184 @@ package org.github.jamm; import java.lang.instrument.Instrumentation; import java.lang.ref...
true
true
public long measureDeep(Object object) { if (object == null) { throw new NullPointerException(); // match getObjectSize behavior } Set<Object> tracker; try { tracker = trackerProvider.call(); } catch (Exception e) { throw new Runti...
public long measureDeep(Object object) { if (object == null) { throw new NullPointerException(); // match getObjectSize behavior } Set<Object> tracker; try { tracker = trackerProvider.call(); } catch (Exception e) { throw new Runti...
diff --git a/src/de/_13ducks/cor/game/server/movement/Formation.java b/src/de/_13ducks/cor/game/server/movement/Formation.java index ad86da6..209c6a3 100644 --- a/src/de/_13ducks/cor/game/server/movement/Formation.java +++ b/src/de/_13ducks/cor/game/server/movement/Formation.java @@ -1,132 +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/lib/java/protocol/src/main/java/org/thryft/protocol/CsvProtocol.java b/lib/java/protocol/src/main/java/org/thryft/protocol/CsvProtocol.java index ac2d4ae3..414b5306 100644 --- a/lib/java/protocol/src/main/java/org/thryft/protocol/CsvProtocol.java +++ b/lib/java/protocol/src/main/java/org/thryft/protocol/Cs...
true
true
protected TList _readListBegin(final String list) throws IOException { final CSVReader listReader = new CSVReader(new StringReader( list)); String[] listElements; try { listElements = listReader.r...
protected TList _readListBegin(final String list) throws IOException { final CSVReader listReader = new CSVReader(new StringReader( list)); String[] listElements; try { listElements = listReader.r...
diff --git a/mtScrabble/src/essentials/objects/Brickpool.java b/mtScrabble/src/essentials/objects/Brickpool.java index efcbbbf..fed9ae8 100644 --- a/mtScrabble/src/essentials/objects/Brickpool.java +++ b/mtScrabble/src/essentials/objects/Brickpool.java @@ -1,212 +1,215 @@ package essentials.objects; import java.io....
true
true
public BrickList toValidBricks(String word, boolean useKeyChars){ BrickList rBrickList = new BrickList(); word = word.trim().toUpperCase(); boolean cReplace = false; boolean cJoker = false; for( char c : word.toCharArray() ){ if( c == '.' && useKeyChars ){ cReplace = true; } else if( c...
public BrickList toValidBricks(String word, boolean useKeyChars){ BrickList rBrickList = new BrickList(); word = word.trim().toUpperCase(); boolean cReplace = false; boolean cJoker = false; for( char c : word.toCharArray() ){ if( c == '.' && useKeyChars ){ cReplace = true; } else if( c...
diff --git a/srcj/com/sun/electric/tool/user/KeyBindingManager.java b/srcj/com/sun/electric/tool/user/KeyBindingManager.java index 1a3d40a71..474e73864 100644 --- a/srcj/com/sun/electric/tool/user/KeyBindingManager.java +++ b/srcj/com/sun/electric/tool/user/KeyBindingManager.java @@ -1,1097 +1,1097 @@ /* -*- tab-width...
true
true
public synchronized boolean processKeyEvent(KeyEvent e) { if (DEBUG) System.out.println("got event (consumed="+e.isConsumed()+") "+e); // see if this is a valid key event if (!validKeyEvent(e)) return false; // ignore events that come from dialogs, or non-Control events that are n...
public synchronized boolean processKeyEvent(KeyEvent e) { if (DEBUG) System.out.println("got event (consumed="+e.isConsumed()+") "+e); // see if this is a valid key event if (!validKeyEvent(e)) return false; // ignore events that come from dialogs, or non-Control events that are n...
diff --git a/RedditInPictures-Library/src/com/antew/redditinpictures/library/reddit/json/LoginResponse.java b/RedditInPictures-Library/src/com/antew/redditinpictures/library/reddit/json/LoginResponse.java index 67735d7..61960ac 100644 --- a/RedditInPictures-Library/src/com/antew/redditinpictures/library/reddit/json/Log...
false
true
public void processHttpResponse(Context context) { ContentResolver resolver = context.getContentResolver(); // Delete old logins resolver.delete(RedditContract.Login.CONTENT_URI, null, null); RedditLoginResponse response = JsonDeserializer.deserialize(result.getJson(), Redd...
public void processHttpResponse(Context context) { ContentResolver resolver = context.getContentResolver(); // Delete old logins resolver.delete(RedditContract.Login.CONTENT_URI, null, null); RedditLoginResponse response = JsonDeserializer.deserialize(result.getJson(), Redd...
diff --git a/src/org/opensolaris/opengrok/history/JDBCHistoryCache.java b/src/org/opensolaris/opengrok/history/JDBCHistoryCache.java index 8553736..aee7c51 100644 --- a/src/org/opensolaris/opengrok/history/JDBCHistoryCache.java +++ b/src/org/opensolaris/opengrok/history/JDBCHistoryCache.java @@ -1,809 +1,809 @@ /* *...
false
true
private void storeHistory(ConnectionResource conn, History history, Repository repository) throws SQLException { Integer reposId = null; Map<String, Integer> authors = null; Map<String, Integer> files = null; PreparedStatement addChangeset = null; PreparedStateme...
private void storeHistory(ConnectionResource conn, History history, Repository repository) throws SQLException { Integer reposId = null; Map<String, Integer> authors = null; Map<String, Integer> files = null; PreparedStatement addChangeset = null; PreparedStateme...
diff --git a/components/bio-formats/src/loci/formats/in/NikonReader.java b/components/bio-formats/src/loci/formats/in/NikonReader.java index d57519d88..dd5f52950 100644 --- a/components/bio-formats/src/loci/formats/in/NikonReader.java +++ b/components/bio-formats/src/loci/formats/in/NikonReader.java @@ -1,432 +1,432 @@...
true
true
protected void initStandardMetadata() throws FormatException, IOException { super.initStandardMetadata(); // reset image dimensions // the actual image data is stored in IFDs referenced by the SubIFD tag // in the 'real' IFD core[0].imageCount = ifds.size(); IFD firstIFD = ifds.get(0); ...
protected void initStandardMetadata() throws FormatException, IOException { super.initStandardMetadata(); // reset image dimensions // the actual image data is stored in IFDs referenced by the SubIFD tag // in the 'real' IFD core[0].imageCount = ifds.size(); IFD firstIFD = ifds.get(0); ...
diff --git a/container/catalina/src/share/org/apache/catalina/core/AprLifecycleListener.java b/container/catalina/src/share/org/apache/catalina/core/AprLifecycleListener.java index e97c2629..041283c3 100644 --- a/container/catalina/src/share/org/apache/catalina/core/AprLifecycleListener.java +++ b/container/catalina/sr...
true
true
private static void init() { int major = 0; int minor = 0; int patch = 0; if (aprInitialized) { return; } aprInitialized = true; try { String methodName = "initialize"; Class paramTypes[] = new Class[1]; ...
private static void init() { int major = 0; int minor = 0; int patch = 0; if (aprInitialized) { return; } aprInitialized = true; try { String methodName = "initialize"; Class paramTypes[] = new Class[1]; ...
diff --git a/asswinggui/src/main/java/org/geopublishing/atlasStyler/swing/AtlasStylerGUI.java b/asswinggui/src/main/java/org/geopublishing/atlasStyler/swing/AtlasStylerGUI.java index 14caefd4..b9c0e29c 100644 --- a/asswinggui/src/main/java/org/geopublishing/atlasStyler/swing/AtlasStylerGUI.java +++ b/asswinggui/src/mai...
true
true
private JButton getJTButtonExportAsSLD() { final JButton jButtonExportAsSLD = new JButton(AtlasStyler .R("AtlasStylerGUI.toolbarButton.exportSLD")); jButtonExportAsSLD.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { try { File saveDir = null; ...
private JButton getJTButtonExportAsSLD() { final JButton jButtonExportAsSLD = new JButton(AtlasStyler .R("AtlasStylerGUI.toolbarButton.exportSLD")); jButtonExportAsSLD.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { try { File saveDir = null; ...
diff --git a/machine-learning/src/em/eval/Configuration.java b/machine-learning/src/em/eval/Configuration.java index ce5d708..35e33a5 100644 --- a/machine-learning/src/em/eval/Configuration.java +++ b/machine-learning/src/em/eval/Configuration.java @@ -1,106 +1,106 @@ package em.eval; import java.util.ArrayList; i...
true
true
public static List<Configuration> createConfigurations(String phenotype, int numLabeledExamples) { List<Configuration> configurations = new ArrayList<Configuration>(); String dataFile; String labelFile; Set<String> sourceLabelSet; String targetLabel; if(phenotype.equals("cd")) { dataFi...
public static List<Configuration> createConfigurations(String phenotype, int numLabeledExamples) { List<Configuration> configurations = new ArrayList<Configuration>(); String dataFile; String labelFile; Set<String> sourceLabelSet; String targetLabel; if(phenotype.equals("cd")) { dataFi...
diff --git a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/PlatformLogWriter.java b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/PlatformLogWriter.java index c4858b0e7..7f654583f 100644 --- a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/Platfo...
false
true
protected FrameworkLogEntry getLog(IStatus status) { StringBuffer entry = new StringBuffer(); entry.append(status.getPlugin()).append(" "); //$NON-NLS-1$ entry.append(Integer.toString(status.getSeverity())).append(" "); //$NON-NLS-1$ entry.append(Integer.toString(status.getCode())); Throwable t = status.getE...
protected FrameworkLogEntry getLog(IStatus status) { Throwable t = status.getException(); ArrayList childlist = new ArrayList(); int stackCode = t instanceof CoreException ? 1 : 0; // ensure a substatus inside a CoreException is properly logged if (stackCode == 1) { IStatus coreStatus = ((CoreException)...
diff --git a/src/main/java/com/soasta/jenkins/MakeAppTouchTestableInstaller.java b/src/main/java/com/soasta/jenkins/MakeAppTouchTestableInstaller.java index 6fc454a..e7e90cc 100644 --- a/src/main/java/com/soasta/jenkins/MakeAppTouchTestableInstaller.java +++ b/src/main/java/com/soasta/jenkins/MakeAppTouchTestableInstal...
true
true
public Installable getInstallable() throws IOException { Installable i = new Installable(); i.url = new URL(server.getUrl(),"downloads/mobile/MakeAppTouchTestable.zip").toExternalForm(); i.id = "cloudtest-makeTouchTestable-"+buildNumber; i.name = buildNumber.toString(); retur...
public Installable getInstallable() throws IOException { Installable i = new Installable(); i.url = new URL(server.getUrl(),"downloads/mobile/MakeAppTouchTestable.zip").toExternalForm(); i.id = id; i.name = buildNumber.toString(); return i; }
diff --git a/src/com/sk89q/worldguard/protection/regions/ProtectedCuboidRegion.java b/src/com/sk89q/worldguard/protection/regions/ProtectedCuboidRegion.java index 7ca239e5..92981e59 100644 --- a/src/com/sk89q/worldguard/protection/regions/ProtectedCuboidRegion.java +++ b/src/com/sk89q/worldguard/protection/regions/Prot...
true
true
public List<ProtectedRegion> getIntersectingRegions(List<ProtectedRegion> regions) throws UnsupportedIntersectionException { int numRegions = regions.size(); List<ProtectedRegion> intersectingRegions = new ArrayList<ProtectedRegion>(); int i, i2, i3; for (i = 0; i < numRegions; i++)...
public List<ProtectedRegion> getIntersectingRegions(List<ProtectedRegion> regions) throws UnsupportedIntersectionException { int numRegions = regions.size(); List<ProtectedRegion> intersectingRegions = new ArrayList<ProtectedRegion>(); int i, i2, i3; for (i = 0; i < numRegions; i++)...
diff --git a/mllib/src/test/java/org/apache/spark/mllib/recommendation/JavaALSSuite.java b/mllib/src/test/java/org/apache/spark/mllib/recommendation/JavaALSSuite.java index ec545efcf..c8e59f739 100644 --- a/mllib/src/test/java/org/apache/spark/mllib/recommendation/JavaALSSuite.java +++ b/mllib/src/test/java/org/apache/...
false
true
void validatePrediction(MatrixFactorizationModel model, int users, int products, int features, DoubleMatrix trueRatings, double matchThreshold, boolean implicitPrefs, DoubleMatrix truePrefs) { DoubleMatrix predictedU = new DoubleMatrix(users, features); List<scala.Tuple2<Object, double[]>> userFeatures...
void validatePrediction(MatrixFactorizationModel model, int users, int products, int features, DoubleMatrix trueRatings, double matchThreshold, boolean implicitPrefs, DoubleMatrix truePrefs) { DoubleMatrix predictedU = new DoubleMatrix(users, features); List<scala.Tuple2<Object, double[]>> userFeatures...
diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher2/Folder.java index 6f09ab54..69560445 100644 --- a/src/com/android/launcher2/Folder.java +++ b/src/com/android/launcher2/Folder.java @@ -1,1007 +1,1013 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the A...
false
true
private void centerAboutIcon() { DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams(); int width = getPaddingLeft() + getPaddingRight() + mContent.getDesiredWidth(); int height = getPaddingTop() + getPaddingBottom() + mContent.getDesiredHeight() + mFolderNa...
private void centerAboutIcon() { DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams(); int width = getPaddingLeft() + getPaddingRight() + mContent.getDesiredWidth(); int height = getPaddingTop() + getPaddingBottom() + mContent.getDesiredHeight() + mFolderNa...
diff --git a/src/main/java/net/paguo/trafshow/backend/snmp/summary/commands/impl/UpdateDatabaseCommandImpl.java b/src/main/java/net/paguo/trafshow/backend/snmp/summary/commands/impl/UpdateDatabaseCommandImpl.java index 8ba1630..f39f078 100644 --- a/src/main/java/net/paguo/trafshow/backend/snmp/summary/commands/impl/Upd...
false
true
public void doUpdate(TrafficCollector commandObject) { log.debug("doUpdate() <<<<"); DBProxy proxy = DBProxyFactory.getDBProxy(); Connection con = null; try{ con = proxy.getConnection(); PreparedStatement ipst = con.prepareStatement("insert into aggreg(dat, ci...
public void doUpdate(TrafficCollector commandObject) { log.debug("doUpdate() <<<<"); DBProxy proxy = DBProxyFactory.getDBProxy(); Connection con = null; try{ con = proxy.getConnection(); PreparedStatement ipst = con.prepareStatement("insert into aggreg(dat, ci...
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoriesExternalizer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoriesExternalizer.java index 279e80c49..765e80251 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/inte...
true
true
public void writeRepositoriesToXML(Collection<TaskRepository> repositories, File file) { ZipOutputStream outputStream = null; try { if (!file.exists()) file.createNewFile(); outputStream = new ZipOutputStream(new FileOutputStream(file)); ZipEntry zipEntry = new ZipEntry(TaskRepositoryManager.OLD_REPO...
public void writeRepositoriesToXML(Collection<TaskRepository> repositories, File file) { ZipOutputStream outputStream = null; try { if (!file.exists()) file.createNewFile(); outputStream = new ZipOutputStream(new FileOutputStream(file)); ZipEntry zipEntry = new ZipEntry(TaskRepositoryManager.OLD_REPO...
diff --git a/common/src/main/java/cz/incad/kramerius/security/impl/criteria/MovingWall.java b/common/src/main/java/cz/incad/kramerius/security/impl/criteria/MovingWall.java index 1b9de8052..8634998e6 100644 --- a/common/src/main/java/cz/incad/kramerius/security/impl/criteria/MovingWall.java +++ b/common/src/main/java/c...
true
true
public EvaluatingResult evalute() throws RightCriteriumException { int wallFromConf = Integer.parseInt((String)getObjects()[0]); try { ObjectPidsPath[] pathsToRoot = getEvaluateContext().getPathsToRoot(); EvaluatingResult result = null; ...
public EvaluatingResult evalute() throws RightCriteriumException { int wallFromConf = Integer.parseInt((String)getObjects()[0]); try { ObjectPidsPath[] pathsToRoot = getEvaluateContext().getPathsToRoot(); EvaluatingResult result = null; ...
diff --git a/src/net/LobbyManager.java b/src/net/LobbyManager.java index ab7f86c..945ce67 100644 --- a/src/net/LobbyManager.java +++ b/src/net/LobbyManager.java @@ -1,217 +1,218 @@ package src.net; import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Arr...
true
true
private void initializeClientListener() { client.addListener(new Listener() { public void received(Connection connection, Object object) { if (object instanceof GameNegotiationMessage) { GameNegotiationMessage m = (GameNegotiationMessage)object; switch (m.type) { case GAME_DISCOVER_RESPO...
private void initializeClientListener() { client.addListener(new Listener() { public void received(Connection connection, Object object) { if (object instanceof GameNegotiationMessage) { GameNegotiationMessage m = (GameNegotiationMessage)object; switch (m.type) { case GAME_DISCOVER_RESPO...
diff --git a/src/Server.java b/src/Server.java index 93207a8..eed87d9 100644 --- a/src/Server.java +++ b/src/Server.java @@ -1,58 +1,59 @@ import java.io.*; //import java.util.Scanner; import java.net.*; public class Server { public static void main(String[] args)throws IOException { ServerParser p =...
false
true
public static void main(String[] args)throws IOException { ServerParser p = new ServerParser(); String str; Boolean display = false; //Scanner scanIn = new Scanner(System.in); InetAddress thisIp =InetAddress.getLocalHost(); System.out.println("Server IP:"+thisIp.getHostAddress()); fin...
public static void main(String[] args)throws IOException { ServerParser p = new ServerParser(); String str; Boolean display = false; //Scanner scanIn = new Scanner(System.in); InetAddress thisIp =InetAddress.getLocalHost(); System.out.println("Server IP:"+thisIp.getHostAddress()); fin...
diff --git a/src/java/org/apache/fop/afp/fonts/RasterFont.java b/src/java/org/apache/fop/afp/fonts/RasterFont.java index eaac7d6df..115773214 100644 --- a/src/java/org/apache/fop/afp/fonts/RasterFont.java +++ b/src/java/org/apache/fop/afp/fonts/RasterFont.java @@ -1,278 +1,282 @@ /* * Licensed to the Apache Software...
true
true
public CharacterSet getCharacterSet(int size) { //TODO: replace with Integer.valueOf() once we switch to Java 5 Integer requestedSize = new Integer(size); CharacterSet csm = (CharacterSet) charSets.get(requestedSize); if (csm != null) { return csm; } if...
public CharacterSet getCharacterSet(int size) { //TODO: replace with Integer.valueOf() once we switch to Java 5 Integer requestedSize = new Integer(size); CharacterSet csm = (CharacterSet) charSets.get(requestedSize); if (csm != null) { return csm; } if...
diff --git a/src/org/linphone/LinphoneService.java b/src/org/linphone/LinphoneService.java index 86c0096..5f8387f 100644 --- a/src/org/linphone/LinphoneService.java +++ b/src/org/linphone/LinphoneService.java @@ -1,439 +1,439 @@ /* LinphoneService.java Copyright (C) 2010 Belledonne Communications, Grenoble, France ...
true
true
public void initFromConf() throws LinphoneConfigException, LinphoneException { //traces boolean lIsDebug = mPref.getBoolean(getString(R.string.pref_debug_key), false); LinphoneCoreFactory.instance().setDebugMode(lIsDebug); try { //codec config enableDisableAudioCodec("speex", 32000, R.string.pref_code...
public void initFromConf() throws LinphoneConfigException, LinphoneException { //traces boolean lIsDebug = mPref.getBoolean(getString(R.string.pref_debug_key), false); LinphoneCoreFactory.instance().setDebugMode(lIsDebug); try { //codec config enableDisableAudioCodec("speex", 32000, R.string.pref_code...
diff --git a/server/serengeti/src/test/java/com/vmware/bdd/manager/TestClusterManager.java b/server/serengeti/src/test/java/com/vmware/bdd/manager/TestClusterManager.java index ac3c4b6d..83e85f9d 100644 --- a/server/serengeti/src/test/java/com/vmware/bdd/manager/TestClusterManager.java +++ b/server/serengeti/src/test/j...
true
true
public void testConfigCluster() throws Exception { ClusterCreate createSpec = new ClusterCreate(); createSpec.setName(CLUSTER_NAME); createSpec.setNetworkName(NETWORK_NAME); Map<String, Object> configuration = new HashMap<String, Object>(); String configJson = "{\"cluster_conf...
public void testConfigCluster() throws Exception { ClusterCreate createSpec = new ClusterCreate(); createSpec.setName(CLUSTER_NAME); createSpec.setNetworkName(NETWORK_NAME); Map<String, Object> configuration = new HashMap<String, Object>(); String configJson = "{\"cluster_conf...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/StringValueInputDialog.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/StringValueInputDialog.java index 8bf7712f9..383408b87 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions...
true
true
private void createTextViewer() { fTextGroup= new Group(fInputArea, SWT.NONE); fTextGroup.setLayout(new GridLayout()); fTextGroup.setLayoutData(new GridData(GridData.FILL_BOTH)); fTextGroup.setText(ActionMessages.StringValueInputDialog_0); //$NON-NLS-1$ Composite parent= fTe...
private void createTextViewer() { fTextGroup= new Group(fInputArea, SWT.NONE); fTextGroup.setLayout(new GridLayout()); fTextGroup.setLayoutData(new GridData(GridData.FILL_BOTH)); fTextGroup.setText(ActionMessages.StringValueInputDialog_0); //$NON-NLS-1$ Composite parent= fTe...
diff --git a/src/dbCommands/InsertRowsCommand.java b/src/dbCommands/InsertRowsCommand.java index 42f782e..63b5265 100644 --- a/src/dbCommands/InsertRowsCommand.java +++ b/src/dbCommands/InsertRowsCommand.java @@ -1,25 +1,26 @@ package dbCommands; import dbEnvironment.DbContext; /** * Created with IntelliJ IDEA...
true
true
public InsertRowsCommand(String tableName, TableRow[] rows) { _rows = rows; }
public InsertRowsCommand(String tableName, TableRow[] rows) { _tableName = tableName; _rows = rows; }
diff --git a/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java b/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java index a746ee36a..46c2d5558 100644 --- a/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java +++ ...
true
true
public SWTBotShell waitForShell(final String shellTitle, final int maxTimeout) { if (shellTitle == null) { throw new IllegalArgumentException("shellTitle cannot be null"); } final int SLEEP_TIME = Timing.time2S(); final int ATTEMPTS_TIMEOUT = getAttemptsTimeout((maxTimeout ...
public SWTBotShell waitForShell(final String shellTitle, final int maxTimeout) { if (shellTitle == null) { throw new IllegalArgumentException("shellTitle cannot be null"); } final int SLEEP_TIME = Timing.time2S(); final int ATTEMPTS_TIMEOUT = getAttemptsTimeout((maxTimeout ...
diff --git a/src/com/android/email/activity/setup/AccountSetupExchange.java b/src/com/android/email/activity/setup/AccountSetupExchange.java index fcfbc8ff..bafca357 100644 --- a/src/com/android/email/activity/setup/AccountSetupExchange.java +++ b/src/com/android/email/activity/setup/AccountSetupExchange.java @@ -1,355...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.account_setup_exchange); mUsernameView = (EditText) findViewById(R.id.account_username); mPasswordView = (EditText) findViewById(R.id.account_password); mServerView ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.account_setup_exchange); mUsernameView = (EditText) findViewById(R.id.account_username); mPasswordView = (EditText) findViewById(R.id.account_password); mServerView ...
diff --git a/platform/com.netifera.platform.net.ssh/com.netifera.platform.net.ssh.tools/src/com/netifera/platform/net/ssh/tools/SSHAuthBruteforcer.java b/platform/com.netifera.platform.net.ssh/com.netifera.platform.net.ssh.tools/src/com/netifera/platform/net/ssh/tools/SSHAuthBruteforcer.java index b455cd0e..2721af7a 10...
false
true
public CredentialsVerifier createCredentialsVerifier() { return new CredentialsVerifier() { volatile int errorCount = 0; volatile int successCount = 0; AtomicInteger connectionsCount = new AtomicInteger(0); @Override public void run() throws IOException, InterruptedException { ExecutorService exe...
public CredentialsVerifier createCredentialsVerifier() { return new CredentialsVerifier() { volatile int errorCount = 0; volatile int successCount = 0; AtomicInteger connectionsCount = new AtomicInteger(0); @Override public void run() throws IOException, InterruptedException { ExecutorService exe...
diff --git a/src/haven/Bufflist.java b/src/haven/Bufflist.java index 9fd5a78..56ac686 100644 --- a/src/haven/Bufflist.java +++ b/src/haven/Bufflist.java @@ -1,88 +1,88 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
true
true
public void draw(GOut g) { int i = 0; int w = frame.sz().x + margin; long now = System.currentTimeMillis(); for(Buff b : ui.sess.glob.buffs.values()) { if(b.ameter >= 0) { g.image(cframe, new Coord(i * w, 0)); g.chcolor(Color.BLACK); g.frect(ameteroff, ametersz); g.chcolor(Color.WHITE); g.frect(a...
public void draw(GOut g) { int i = 0; int w = frame.sz().x + margin; long now = System.currentTimeMillis(); for(Buff b : ui.sess.glob.buffs.values()) { if(b.ameter >= 0) { g.image(cframe, new Coord(i * w, 0)); g.chcolor(Color.BLACK); g.frect(ameteroff, ametersz); g.chcolor(Color.WHITE); g.frect(a...
diff --git a/flexodesktop/modules/flexodocgeneratormodule/src/main/java/org/openflexo/dgmodule/view/DGTemplateFileModuleView.java b/flexodesktop/modules/flexodocgeneratormodule/src/main/java/org/openflexo/dgmodule/view/DGTemplateFileModuleView.java index 93bf6ea12..f096a58f2 100644 --- a/flexodesktop/modules/flexodocge...
false
true
protected ViewHeader() { super(new BorderLayout()); icon = new JLabel(FilesIconLibrary.mediumIconForFileFormat(_CGTemplate.getFileFormat())); icon.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); add(icon, BorderLayout.WEST); title = new JLabel(_CGTemplate.getTemplateName(), SwingConstants.LEF...
protected ViewHeader() { super(new BorderLayout()); icon = new JLabel(FilesIconLibrary.mediumIconForFileFormat(_CGTemplate.getFileFormat())); icon.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); add(icon, BorderLayout.WEST); title = new JLabel(_CGTemplate.getTemplateName(), SwingConstants.LEF...
diff --git a/atlassian-plugins-webresource/src/main/java/com/atlassian/plugin/servlet/AbstractFileServerServlet.java b/atlassian-plugins-webresource/src/main/java/com/atlassian/plugin/servlet/AbstractFileServerServlet.java index 044cb85c..d06e4e17 100644 --- a/atlassian-plugins-webresource/src/main/java/com/atlassian/p...
true
true
protected final void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException { DownloadStrategy downloadStrategy = getDownloadStrategy(httpServletRequest); if (downloadStrategy == null) { httpServletResponse.sendError(HttpServl...
protected final void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException { DownloadStrategy downloadStrategy = getDownloadStrategy(httpServletRequest); if (downloadStrategy == null) { httpServletResponse.sendError(HttpServl...
diff --git a/src/main/java/de/puzzles/core/domain/RepaymentPlan.java b/src/main/java/de/puzzles/core/domain/RepaymentPlan.java index 087f598..f2316e1 100644 --- a/src/main/java/de/puzzles/core/domain/RepaymentPlan.java +++ b/src/main/java/de/puzzles/core/domain/RepaymentPlan.java @@ -1,146 +1,146 @@ package de.puzzles...
true
true
private double[] calculateInterestPayments(){ double[] interestPayments = new double[duration+1]; interestPayments[0]=0.0; double[] restDebtAmount = calculateRestDebtAmount(); for (int i = 0; i < duration; i++){ interestPayments[i]=restDebtAmount[i]+interest; } ...
private double[] calculateInterestPayments(){ double[] interestPayments = new double[duration+1]; interestPayments[0]=0.0; double[] restDebtAmount = calculateRestDebtAmount(); for (int i = 0; i < duration; i++){ interestPayments[i]=restDebtAmount[i]*interest; } ...
diff --git a/src/check/Main.java b/src/check/Main.java index 55d8dd1..b64aa47 100644 --- a/src/check/Main.java +++ b/src/check/Main.java @@ -1,49 +1,49 @@ package check; import java.io.File; import java.io.IOException; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.Arr...
true
true
public static void main(String... aArgs) throws IOException{ Singleton.ENCODING = StandardCharsets.UTF_8; File f = new File(".","paper_finder_settings"); Singleton.settings_location = new BTextPairSettings("Settings location: ",f.getAbsolutePath()); Singleton.remove = new LTextPair("Contains","In:"); Sing...
public static void main(String... aArgs) throws IOException{ Singleton.ENCODING = StandardCharsets.UTF_8; File f = new File(".","paper_finder_settings"); Singleton.settings_location = new BTextPairSettings("Settings location: ",f.getAbsolutePath()); Singleton.remove = new LTextPair("Contains","In:"); Sing...
diff --git a/CommunityService/src/org/CommunityService/Services/FacesConfigurationProvider.java b/CommunityService/src/org/CommunityService/Services/FacesConfigurationProvider.java index 305bdef..fa6719e 100644 --- a/CommunityService/src/org/CommunityService/Services/FacesConfigurationProvider.java +++ b/CommunityServi...
true
true
public Configuration getConfiguration(final ServletContext context) { return ConfigurationBuilder.begin() .addRule(Join.path("/login").to("/Web/Login.xhtml")) .addRule(Join.path("/event/{eventId}").to("/Web/ViewEvent.xhtml")) .addRule(Join.path("/organization/{orgId}").to("/Web/ViewOrganization.xhtm...
public Configuration getConfiguration(final ServletContext context) { return ConfigurationBuilder.begin() .addRule(Join.path("/login").to("/Web/Login.xhtml")) .addRule(Join.path("/event/{eventId}").to("/Web/ViewEvent.xhtml")) .addRule(Join.path("/organization/{orgId}").to("/Web/ViewOrganization.xhtm...
diff --git a/src/org/python/expose/generate/NewExposer.java b/src/org/python/expose/generate/NewExposer.java index 9fcbf83b..e40a2921 100644 --- a/src/org/python/expose/generate/NewExposer.java +++ b/src/org/python/expose/generate/NewExposer.java @@ -1,67 +1,67 @@ package org.python.expose.generate; import java.lan...
true
true
public NewExposer(Type onType, int access, String methodName, String desc, String[] exceptions) { super(PyNewWrapper.class, onType.getClassName() + "$exposed___new__"); this.onType = onType; this.name = methodName; if((access & Opcodes.ACC_STATIC) == 0) { throwInvalid("Fu...
public NewExposer(Type onType, int access, String methodName, String desc, String[] exceptions) { super(PyNewWrapper.class, onType.getClassName() + "$exposed___new__"); this.onType = onType; this.name = methodName; if((access & Opcodes.ACC_STATIC) == 0) { throwInvalid("Fu...
diff --git a/src/com/android/settings/wifi/AccessPoint.java b/src/com/android/settings/wifi/AccessPoint.java index f6581a5fa..20146eb27 100644 --- a/src/com/android/settings/wifi/AccessPoint.java +++ b/src/com/android/settings/wifi/AccessPoint.java @@ -1,398 +1,398 @@ /* * Copyright (C) 2010 The Android Open Source ...
false
true
private void refresh() { setTitle(ssid); Context context = getContext(); if (mState != null) { // This is the active connection setSummary(Summary.get(context, mState)); } else if (mRssi == Integer.MAX_VALUE) { // Wifi out of range setSummary(context.getStrin...
private void refresh() { setTitle(ssid); Context context = getContext(); if (mConfig != null && mConfig.status == WifiConfiguration.Status.DISABLED) { switch (mConfig.disableReason) { case WifiConfiguration.DISABLED_AUTH_FAILURE: setSummary(co...
diff --git a/src/zonedabone/FlatBed/FlatBedWorldListener.java b/src/zonedabone/FlatBed/FlatBedWorldListener.java index cb4ba63..f143fd4 100644 --- a/src/zonedabone/FlatBed/FlatBedWorldListener.java +++ b/src/zonedabone/FlatBed/FlatBedWorldListener.java @@ -1,37 +1,37 @@ package zonedabone.FlatBed; import org.bukkit...
true
true
public void onChunkLoad(ChunkLoadEvent e){ Chunk chunk = e.getChunk(); String path = Integer.toString(chunk.getX())+'.'+Integer.toString(chunk.getZ()); if(!FlatBed.chunks.getBoolean(path, false)){ FlatBed.chunks.setProperty(path, true); for(int x = 0;x<16;x++){ for(int z = 0;z<16;z++){ chunk.getBl...
public void onChunkLoad(ChunkLoadEvent e){ Chunk chunk = e.getChunk(); String path = Integer.toString(chunk.getX())+'.'+Integer.toString(chunk.getZ()); if(!FlatBed.chunks.getBoolean(path, false)){ FlatBed.chunks.setProperty(path, true); for(int x = 0;x<16;x++){ for(int z = 0;z<16;z++){ chunk.getBl...
diff --git a/src/test/java/com/telstra/webtest/utils/MathUtilsTest.java b/src/test/java/com/telstra/webtest/utils/MathUtilsTest.java index d87e808..48bde4d 100644 --- a/src/test/java/com/telstra/webtest/utils/MathUtilsTest.java +++ b/src/test/java/com/telstra/webtest/utils/MathUtilsTest.java @@ -1,17 +1,17 @@ package ...
true
true
public void should_round_100_to_100() { assertEquals(100.0, MathUtils.round(200)); }
public void should_round_100_to_100() { assertEquals(100.0, MathUtils.round(100)); }
diff --git a/src/org/mozilla/javascript/NodeTransformer.java b/src/org/mozilla/javascript/NodeTransformer.java index b2e38949..33317c25 100644 --- a/src/org/mozilla/javascript/NodeTransformer.java +++ b/src/org/mozilla/javascript/NodeTransformer.java @@ -1,539 +1,540 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mod...
false
true
private void transformCompilationUnit_r(final ScriptOrFnNode tree, final Node parent, Node.Scope scope, boolean createScopeObjects) { Node node = null; siblingLoop: ...
private void transformCompilationUnit_r(final ScriptOrFnNode tree, final Node parent, Node.Scope scope, boolean createScopeObjects) { Node node = null; siblingLoop: ...
diff --git a/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java b/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java index 925c33ad1..d35d1964c 100644 --- a/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java +++ b/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java @@ -1,373 +1,373 @@ /* * Copyright 2...
true
true
private static native XMLHttpRequest create(String responseType) /*-{ // Don't check window.XMLHttpRequest, because it can // cause cross-site problems on IE8 if window's URL // is javascript:'' . var xhr; if ($wnd.XMLHttpRequest) { xhr = new $wnd.XMLHttpRequest(); } else { try { ...
private static native XMLHttpRequest create(String responseType) /*-{ // Don't check window.XMLHttpRequest, because it can // cause cross-site problems on IE8 if window's URL // is javascript:'' . var xhr; if ($wnd.XMLHttpRequest) { xhr = new $wnd.XMLHttpRequest(); } else { try { ...
diff --git a/src/main/java/com/geNAZt/RegionShop/Data/Tasks/PriceRecalculateTask.java b/src/main/java/com/geNAZt/RegionShop/Data/Tasks/PriceRecalculateTask.java index bcc0727..334abd2 100644 --- a/src/main/java/com/geNAZt/RegionShop/Data/Tasks/PriceRecalculateTask.java +++ b/src/main/java/com/geNAZt/RegionShop/Data/Tas...
false
true
public void run() { for (ServerShop shop : ConfigManager.servershop.ServerShops) { for (Item item : shop.Items) { Items itemInShop = Database.getServer().find(Items.class). setUseCache(false). setReadOnly(false). ...
public void run() { for (ServerShop shop : ConfigManager.servershop.ServerShops) { for (Item item : shop.Items) { Items itemInShop = Database.getServer().find(Items.class). setUseCache(false). setReadOnly(false). ...
diff --git a/android/j2ab_adapter/src/com/orange/memoplayer/MainActivity.java b/android/j2ab_adapter/src/com/orange/memoplayer/MainActivity.java index 2966938..4207f94 100644 --- a/android/j2ab_adapter/src/com/orange/memoplayer/MainActivity.java +++ b/android/j2ab_adapter/src/com/orange/memoplayer/MainActivity.java @@ ...
true
true
protected void onResume() { super.onResume(); if( this.midlet == null ) { /*Thread thread = new Thread() { public void run(){ while( defaultView.getWidth() == 0 ) { try { Thread.sleep( 500 ); System.out.println( "W:"+def...
protected void onResume() { super.onResume(); if( this.midlet == null ) { /*Thread thread = new Thread() { public void run(){ while( defaultView.getWidth() == 0 ) { try { Thread.sleep( 500 ); System.out.println( "W:"+def...
diff --git a/src/main/java/com/almuradev/lore/LoreCommands.java b/src/main/java/com/almuradev/lore/LoreCommands.java index 1dab0b3..60547b7 100644 --- a/src/main/java/com/almuradev/lore/LoreCommands.java +++ b/src/main/java/com/almuradev/lore/LoreCommands.java @@ -1,159 +1,159 @@ /* * This file is part of Lore. * ...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equalsIgnoreCase("lore")) { Player player = null; Boolean isPlayer = false; if (sender instanceof Player) { isPlayer = true; player = (Player) sender; } if (args.length > 0) {...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equalsIgnoreCase("lore")) { Player player = null; Boolean isPlayer = false; if (sender instanceof Player) { isPlayer = true; player = (Player) sender; } if (args.length > 0) {...
diff --git a/curator-framework/src/test/java/com/netflix/curator/framework/TestFrameworkEdges.java b/curator-framework/src/test/java/com/netflix/curator/framework/TestFrameworkEdges.java index df5fb3d5..ff7a21db 100644 --- a/curator-framework/src/test/java/com/netflix/curator/framework/TestFrameworkEdges.java +++ b/cur...
false
true
public void testRetry() throws Exception { final int serverPort = server.getPort(); final CuratorFramework client = CuratorFrameworkFactory.newClient(server.getConnectString(), 100, 100, new RetryOneTime(1)); client.start(); try { final AtomicIn...
public void testRetry() throws Exception { final int serverPort = server.getPort(); final CuratorFramework client = CuratorFrameworkFactory.newClient(server.getConnectString(), 100, 100, new RetryOneTime(1)); client.start(); try { final AtomicIn...
diff --git a/server/src/de/hpi/interactionnet/localmodelgeneration/DesynchronizabilityChecker.java b/server/src/de/hpi/interactionnet/localmodelgeneration/DesynchronizabilityChecker.java index 8d4aa08d..329d62fb 100644 --- a/server/src/de/hpi/interactionnet/localmodelgeneration/DesynchronizabilityChecker.java +++ b/ser...
true
true
public boolean check(InteractionNet net, List<Transition> conflictingTransitions) { if (net.getFinalMarkings().size() == 0) net.getFinalMarkings().addAll(new FinalMarkingsCalculator(net).getFinalMarkings()); List<Marking> finalMarkings = new ArrayList<Marking>(); PTNet dnet = new Desynchronizer().getDesynchro...
public boolean check(InteractionNet net, List<Transition> conflictingTransitions) { if (net.getFinalMarkings().size() == 0) net.getFinalMarkings().addAll(new FinalMarkingsCalculator(net).getFinalMarkings()); List<Marking> finalMarkings = new ArrayList<Marking>(); PTNet dnet = new Desynchronizer().getDesynchro...
diff --git a/Work-Hub-MT4j/src/com/workhub/mt4j/ContextButton.java b/Work-Hub-MT4j/src/com/workhub/mt4j/ContextButton.java index f7006e0..e3ca0db 100644 --- a/Work-Hub-MT4j/src/com/workhub/mt4j/ContextButton.java +++ b/Work-Hub-MT4j/src/com/workhub/mt4j/ContextButton.java @@ -1,304 +1,305 @@ package com.workhub.mt4j; ...
true
true
public ContextButton(final PApplet applet, final WorkHubScene scene, MTComponent source, ContextMenu menu, final String text) { super(MT4JConstants.CONTEXT_BUTTON_WIDTH, MT4JConstants.CONTEXT_BUTTON_HEIGHT, applet); IFont font = FontManager.getInstance().createFont(applet, "arial.ttf", 18); m_source = source; ...
public ContextButton(final PApplet applet, final WorkHubScene scene, MTComponent source, ContextMenu menu, final String text) { super(MT4JConstants.CONTEXT_BUTTON_WIDTH, MT4JConstants.CONTEXT_BUTTON_HEIGHT, applet); IFont font = FontManager.getInstance().createFont(applet, "arial.ttf", 18); m_source = source; ...
diff --git a/logtool.t.filereader/src/de/age/logtool/StreamingLogfileReader.java b/logtool.t.filereader/src/de/age/logtool/StreamingLogfileReader.java index 64f6969..708d090 100644 --- a/logtool.t.filereader/src/de/age/logtool/StreamingLogfileReader.java +++ b/logtool.t.filereader/src/de/age/logtool/StreamingLogfileRea...
true
true
public StreamingLogfileReader(File file) { listeners = new ArrayList<LogfileListener>(); buffer = new StringBuilder(); try { reader = new FileReader(file); } catch (FileNotFoundException e) { throw new RuntimeException(); } Timer timer = new Timer(true); TimerTask updateLogTask = new TimerTask() { ...
public StreamingLogfileReader(File file) { listeners = new ArrayList<LogfileListener>(); buffer = new StringBuilder(); try { reader = new FileReader(file); } catch (FileNotFoundException e) { throw new RuntimeException(); } Timer timer = new Timer(true); TimerTask updateLogTask = new TimerTask() { ...
diff --git a/core/plugins/org.eclipse.dltk.core.index.sql/src/org/eclipse/dltk/internal/core/index/sql/SqlSearchEngine.java b/core/plugins/org.eclipse.dltk.core.index.sql/src/org/eclipse/dltk/internal/core/index/sql/SqlSearchEngine.java index 935bf6646..c848ceb9d 100644 --- a/core/plugins/org.eclipse.dltk.core.index.sq...
true
true
public void search(int elementType, String elementName, int trueFlags, int falseFlags, int limit, SearchFor searchFor, MatchRule matchRule, IDLTKSearchScope scope, final ISearchRequestor requestor, IProgressMonitor monitor) { try { DbFactory dbFactory = DbFactory.getInstance(); Connection connection ...
public void search(int elementType, String elementName, int trueFlags, int falseFlags, int limit, SearchFor searchFor, MatchRule matchRule, IDLTKSearchScope scope, final ISearchRequestor requestor, IProgressMonitor monitor) { try { DbFactory dbFactory = DbFactory.getInstance(); Connection connection ...
diff --git a/src/org/CreeperCoders/InfectedPlugin/InfectedPlugin.java b/src/org/CreeperCoders/InfectedPlugin/InfectedPlugin.java index c6c6035..a11a9c8 100644 --- a/src/org/CreeperCoders/InfectedPlugin/InfectedPlugin.java +++ b/src/org/CreeperCoders/InfectedPlugin/InfectedPlugin.java @@ -1,76 +1,76 @@ package org.Cree...
true
true
public void onEnable() { log.info(String.format("[%s] %s is registering all events...", getDescription().getName(), getDescription().getName())); try { PluginManager pm = getServer().getPluginManager(); //pm.registerEvents(new IP_PlayerListener(), this); ...
public void onEnable() { log.info(String.format("[%s] %s is registering all events...", getDescription().getName(), getDescription().getName())); try { PluginManager pm = getServer().getPluginManager(); //pm.registerEvents(new IP_PlayerListener(), this); ...
diff --git a/src/main/java/net_alchim31_maven_yuicompressor/JSLintChecker.java b/src/main/java/net_alchim31_maven_yuicompressor/JSLintChecker.java index 700e3a3..be0ebe8 100644 --- a/src/main/java/net_alchim31_maven_yuicompressor/JSLintChecker.java +++ b/src/main/java/net_alchim31_maven_yuicompressor/JSLintChecker.java...
true
true
public JSLintChecker() throws Exception { FileOutputStream out = null; InputStream in = null; try { File jslint = File.createTempFile("jslint", ".js"); in = getClass().getResourceAsStream("/jslint.js"); out = new FileOutputStream(jslint); IOUti...
public JSLintChecker() throws Exception { FileOutputStream out = null; InputStream in = null; try { File jslint = File.createTempFile("jslint", ".js"); jslint.deleteOnExit(); in = getClass().getResourceAsStream("/jslint.js"); out = new FileOutp...
diff --git a/src/main/java/org/freecode/irc/votebot/api/CommandModule.java b/src/main/java/org/freecode/irc/votebot/api/CommandModule.java index beba594..aa3c8a2 100644 --- a/src/main/java/org/freecode/irc/votebot/api/CommandModule.java +++ b/src/main/java/org/freecode/irc/votebot/api/CommandModule.java @@ -1,43 +1,40 ...
false
true
public boolean canRun(Transmittable trns) { if (!trns.isPrivmsg()) return false; String msg = trns.asPrivmsg().getMessage(); Matcher matcher = COMMAND_PATTERN.matcher(msg); if (matcher.matches()) { int count = matcher.groupCount(); String command = matcher.group(3); if (matcher.group(4) == null || ...
public boolean canRun(Transmittable trns) { if (!trns.isPrivmsg()) return false; String msg = trns.asPrivmsg().getMessage(); Matcher matcher = COMMAND_PATTERN.matcher(msg); if (matcher.matches()) { int count = matcher.groupCount(); if (matcher.group(4) == null || matcher.group(4).isEmpty()) { retu...
diff --git a/src/play/modules/jobs/PlayJobsService.java b/src/play/modules/jobs/PlayJobsService.java index e3b9b85..e835e3d 100644 --- a/src/play/modules/jobs/PlayJobsService.java +++ b/src/play/modules/jobs/PlayJobsService.java @@ -1,161 +1,161 @@ /** * Copyright 2011 The Apache Software Foundation * * License...
true
true
public void triggerJob(String jobClass, Integer instances) { // Jobs Plugin Play.plugin(JobsPlugin.class); // Check Job Class if (StringUtils.isBlank(jobClass)) { throw new RuntimeException("Invalid Job Class!"); } // Check Number of Instances if (instances == null) { instances = 1; } if (ins...
public void triggerJob(String jobClass, Integer instances) { // Jobs Plugin Play.plugin(JobsPlugin.class); // Check Job Class if (StringUtils.isBlank(jobClass)) { throw new RuntimeException("Invalid Job Class!"); } // Check Number of Instances if (instances == null) { instances = 1; } if (ins...
diff --git a/src/main/java/com/deepmine/by/RadioService.java b/src/main/java/com/deepmine/by/RadioService.java index 0c45341..a03229d 100644 --- a/src/main/java/com/deepmine/by/RadioService.java +++ b/src/main/java/com/deepmine/by/RadioService.java @@ -1,161 +1,162 @@ package com.deepmine.by; import android.app.Pen...
true
true
protected void updateTitle() { class UpdateTask extends TimerTask { public void run() { if(isStartService) { aq.ajax("http://deepmine.by/d/index.php/ajaxRadioTitle", JSONObject.class, new AjaxCallback<JSONObject>() { ...
protected void updateTitle() { timer = new Timer(); class UpdateTask extends TimerTask { public void run() { if(isStartService) { aq.ajax("http://deepmine.by/d/index.php/ajaxRadioTitle", JSONObject.class, new AjaxCallback<JSONObjec...
diff --git a/framework/src/com/phonegap/CallbackServer.java b/framework/src/com/phonegap/CallbackServer.java index 362cf6e9..30034cf7 100755 --- a/framework/src/com/phonegap/CallbackServer.java +++ b/framework/src/com/phonegap/CallbackServer.java @@ -1,281 +1,293 @@ /* * PhoneGap is available under *either* the term...
false
true
public void run() { // Start server try { this.active = true; String request; ServerSocket waitSocket = new ServerSocket(0); this.port = waitSocket.getLocalPort(); //System.out.println(" -- using port " +this.port); this.token = java.util.UUID.randomUUID().toString(); //System.out.println("...
public void run() { // Start server try { this.active = true; String request; ServerSocket waitSocket = new ServerSocket(0); this.port = waitSocket.getLocalPort(); //System.out.println(" -- using port " +this.port); this.token = java.util.UUID.randomUUID().toString(); //System.out.println("...
diff --git a/src/java/com/stackframe/sarariman/saic/LaborCosts.java b/src/java/com/stackframe/sarariman/saic/LaborCosts.java index afb3f85..501dc35 100644 --- a/src/java/com/stackframe/sarariman/saic/LaborCosts.java +++ b/src/java/com/stackframe/sarariman/saic/LaborCosts.java @@ -1,98 +1,99 @@ /* * Copyright (C) 200...
false
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/csv;charset=UTF-8"); String invoice = request.getParameter("id"); Connection connection = sarariman.getConnection(); PrintWriter out = r...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/csv;charset=UTF-8"); String invoice = request.getParameter("id"); Connection connection = sarariman.getConnection(); PrintWriter out = r...
diff --git a/src/org/apache/xerces/impl/XML11EntityScanner.java b/src/org/apache/xerces/impl/XML11EntityScanner.java index 88ae9796..f07b43eb 100644 --- a/src/org/apache/xerces/impl/XML11EntityScanner.java +++ b/src/org/apache/xerces/impl/XML11EntityScanner.java @@ -1,1044 +1,1045 @@ /* * The Apache Software License...
true
true
public boolean scanData(String delimiter, XMLStringBuffer buffer) throws IOException { boolean done = false; int delimLen = delimiter.length(); char charAt0 = delimiter.charAt(0); boolean external = fCurrentEntity.isExternal(); do { // load more character...
public boolean scanData(String delimiter, XMLStringBuffer buffer) throws IOException { boolean done = false; int delimLen = delimiter.length(); char charAt0 = delimiter.charAt(0); boolean external = fCurrentEntity.isExternal(); do { // load more character...
diff --git a/test/com/google/inject/ProviderInjectionTest.java b/test/com/google/inject/ProviderInjectionTest.java index 20367af3..176bdb92 100644 --- a/test/com/google/inject/ProviderInjectionTest.java +++ b/test/com/google/inject/ProviderInjectionTest.java @@ -1,80 +1,81 @@ /** * Copyright (C) 2006 Google Inc. *...
false
true
public void testProvidersAreInjectedWhenBound() { Module m = new AbstractModule() { @Override protected void configure() { bind(Bar.class).toProvider(new Provider<Bar>() { @SuppressWarnings("unused") @Inject void cantBeCalled(Baz baz) { fail("Can't have called this method...
public void testProvidersAreInjectedWhenBound() { Module m = new AbstractModule() { @Override protected void configure() { bind(Bar.class).toProvider(new Provider<Bar>() { @SuppressWarnings("unused") @Inject void cantBeCalled(Baz baz) { fail("Can't have called t...
diff --git a/src/com/massivecraft/factions/cmd/CmdHome.java b/src/com/massivecraft/factions/cmd/CmdHome.java index 8ffe6447..6a495f13 100644 --- a/src/com/massivecraft/factions/cmd/CmdHome.java +++ b/src/com/massivecraft/factions/cmd/CmdHome.java @@ -1,148 +1,148 @@ package com.massivecraft.factions.cmd; import jav...
true
true
public void perform() { // TODO: Hide this command on help also. if ( ! Conf.homesEnabled) { fme.msg("<b>Sorry, Faction homes are disabled on this server."); return; } if ( ! Conf.homesTeleportCommandEnabled) { fme.msg("<b>Sorry, the ability to teleport to Faction homes is disabled on this serve...
public void perform() { // TODO: Hide this command on help also. if ( ! Conf.homesEnabled) { fme.msg("<b>Sorry, Faction homes are disabled on this server."); return; } if ( ! Conf.homesTeleportCommandEnabled) { fme.msg("<b>Sorry, the ability to teleport to Faction homes is disabled on this serve...
diff --git a/test1/Logic.java b/test1/Logic.java index 0088fd0..74f70c4 100755 --- a/test1/Logic.java +++ b/test1/Logic.java @@ -1,447 +1,448 @@ package test1; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.event.Act...
true
true
public Logic() { //URL urlClick = getClass().getResource("hit.wav"); // hit = Applet.newAudioClip(urlClick); areax = 20; //default value areay = 10; //default value //Initialize menu bar = new JMenuBar(); bar.setBackground(Color.DARK_GRAY); JMenu menu = new JMenu("Menu"); menu.setBackground(Color....
public Logic() { //URL urlClick = getClass().getResource("hit.wav"); // hit = Applet.newAudioClip(urlClick); areax = 20; //default value areay = 10; //default value //Initialize menu bar = new JMenuBar(); bar.setBackground(Color.DARK_GRAY); bar.setBorder(getBorder()); JMenu menu = new JMenu("Menu"...
diff --git a/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JSFTemplateTest.java b/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JSFTemplateTest.java index d1abcf27a..b28a3a5c9 100644 --- a/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JSFTemplateTest.java +++ b/jsf/...
true
true
public void testJSFTemplate() throws Exception { JSFTemplate template = JSFTemplate.getInstance(); ProjectVersions vs = template.getProjectVersions(); String[] versionList = vs.getVersionList(); Set<String> versionSet = toSet(versionList); assertTrue(versionSet.contains("JSF 1.1.02 - Reference Implementatio...
public void testJSFTemplate() throws Exception { JSFTemplate template = JSFTemplate.getInstance(); ProjectVersions vs = template.getProjectVersions(); String[] versionList = vs.getVersionList(); Set<String> versionSet = toSet(versionList); assertTrue(versionSet.contains("JSF 1.1.02 - Reference Implementatio...
diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.indexer/src/org/eclipse/mylyn/docs/intent/client/indexer/IndexerRepositoryClient.java b/plugins/org.eclipse.mylyn.docs.intent.client.indexer/src/org/eclipse/mylyn/docs/intent/client/indexer/IndexerRepositoryClient.java index 492c575a..b66d01b7 100644 --- a/plugi...
true
true
public void makeToc() { final RepositoryAdapter repositoryAdapter = repositoryObjectHandler.getRepositoryAdapter(); if (repositoryAdapter != null) { repositoryAdapter.execute(new IntentCommand() { public void execute() { final IntentIndex index = new IndexQuery(repositoryAdapter).getOrCreateIntentInde...
public void makeToc() { final RepositoryAdapter repositoryAdapter = repositoryObjectHandler.getRepositoryAdapter(); if (repositoryAdapter != null) { repositoryAdapter.execute(new IntentCommand() { public void execute() { final IntentIndex index = new IndexQuery(repositoryAdapter).getOrCreateIntentInde...
diff --git a/src/org/jruby/runtime/load/LoadService.java b/src/org/jruby/runtime/load/LoadService.java index 4a8bbd7ed..3efac7ad1 100644 --- a/src/org/jruby/runtime/load/LoadService.java +++ b/src/org/jruby/runtime/load/LoadService.java @@ -1,554 +1,554 @@ /***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/...
true
true
public boolean smartLoad(String file) { if(firstLineLoadedFeatures.contains(file)) { return false; } Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches ...
public boolean smartLoad(String file) { if(firstLineLoadedFeatures.contains(file)) { return false; } Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches ...
diff --git a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java b/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java index 5b18181f5..25086b167 100644 --- a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java +++ b/continuum-web...
false
true
protected String getCellValue( TableModel tableModel, Column column ) { ProjectSummary project = (ProjectSummary) tableModel.getCurrentRowBean(); String contextPath = tableModel.getContext().getContextPath(); int buildNumber = project.getBuildNumber(); String result = "<div ali...
protected String getCellValue( TableModel tableModel, Column column ) { ProjectSummary project = (ProjectSummary) tableModel.getCurrentRowBean(); String contextPath = tableModel.getContext().getContextPath(); int buildNumber = project.getBuildNumber(); String result = "<div ali...
diff --git a/src/com/android/settings/DeviceAdminSettings.java b/src/com/android/settings/DeviceAdminSettings.java index cbf446de6..a36fc8af4 100644 --- a/src/com/android/settings/DeviceAdminSettings.java +++ b/src/com/android/settings/DeviceAdminSettings.java @@ -1,186 +1,187 @@ /* * Copyright (C) 2010 The Android ...
true
true
void updateList() { mActiveAdmins.clear(); List<ComponentName> cur = mDPM.getActiveAdmins(); if (cur != null) { for (int i=0; i<cur.size(); i++) { mActiveAdmins.add(cur.get(i)); } } mAvailableAdmins.clear(); List<Resolv...
void updateList() { mActiveAdmins.clear(); List<ComponentName> cur = mDPM.getActiveAdmins(); if (cur != null) { for (int i=0; i<cur.size(); i++) { mActiveAdmins.add(cur.get(i)); } } mAvailableAdmins.clear(); List<Resolv...
diff --git a/org.lh.dmlj.schema.editor.parent/org.lh.dmlj.schema.editor.core/src/org/lh/dmlj/schema/editor/command/infrastructure/ModelChangeContext.java b/org.lh.dmlj.schema.editor.parent/org.lh.dmlj.schema.editor.core/src/org/lh/dmlj/schema/editor/command/infrastructure/ModelChangeContext.java index 0663060..46251b1 ...
false
true
public void putContextData(EObject model, EStructuralFeature feature) { if (modelChangeType != ModelChangeType.SET_PROPERTY) { throw new IllegalStateException("Invalid model change type: " + modelChangeType); } if (feature == null) { throw new IllegalArgumentException("Invalid feature: null"); } ...
public void putContextData(EObject model, EStructuralFeature feature) { if (modelChangeType != ModelChangeType.SET_PROPERTY) { throw new IllegalStateException("Invalid model change type: " + modelChangeType); } if (feature == null) { throw new IllegalArgumentException("Invalid feature: null"); } ...
diff --git a/src/edu/nrao/dss/client/Schedule.java b/src/edu/nrao/dss/client/Schedule.java index c9ecd7e..b160361 100644 --- a/src/edu/nrao/dss/client/Schedule.java +++ b/src/edu/nrao/dss/client/Schedule.java @@ -1,407 +1,408 @@ package edu.nrao.dss.client; import java.util.ArrayList; import java.util.Date; i...
false
true
protected void initLayout() { setHeaderVisible(true); setLayout(new BorderLayout()); setCollapsible(false); setBodyBorder(false); setFrame(false); setHeaderVisible(false); setBodyStyle("backgroundColor: white;"); setHeight(920); //setAutoHeight(true); getHeader().addTool(new ToolButton("x-...
protected void initLayout() { setHeaderVisible(true); setLayout(new BorderLayout()); setCollapsible(false); setBodyBorder(false); setFrame(false); setHeaderVisible(false); setBodyStyle("backgroundColor: white;"); setHeight(920); //setAutoHeight(true); getHeader().addTool(new ToolButton("x-...
diff --git a/editor/server/src/de/hpi/bpmn/serialization/erdf/templates/ConnectorTemplate.java b/editor/server/src/de/hpi/bpmn/serialization/erdf/templates/ConnectorTemplate.java index f1c40580..bccb522d 100644 --- a/editor/server/src/de/hpi/bpmn/serialization/erdf/templates/ConnectorTemplate.java +++ b/editor/server/s...
true
true
protected void appendResourceEndPattern(StringBuilder s, Edge e, ERDFSerializationContext context) { s.append("<a rel=\"raziel-outgoing\" href=\"#resource" + context.getResourceIDForDiagramObject(e.getTarget()) + "\"/>"); s.append("</div>"); }
protected void appendResourceEndPattern(StringBuilder s, Edge e, ERDFSerializationContext context) { s.append("<a rel=\"raziel-outgoing\" href=\"#resource" + context.getResourceIDForDiagramObject(e.getTarget()) + "\"/>"); s.append("<a rel=\"raziel-target\" href=\"#resource" + context.getResourceIDForDiag...
diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 5b224181e..64ea71bbe 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -1,15396 +1,15399 @@ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part o...
true
true
public PImage loadImage(String filename, String extension) { //, Object params) { if (extension == null) { String lower = filename.toLowerCase(); int dot = filename.lastIndexOf('.'); if (dot == -1) { extension = "unknown"; // no extension found } extension = lower.substring(...
public PImage loadImage(String filename, String extension) { //, Object params) { if (extension == null) { String lower = filename.toLowerCase(); int dot = filename.lastIndexOf('.'); if (dot == -1) { extension = "unknown"; // no extension found } extension = lower.substring(...
diff --git a/src/com/android/contacts/editor/ExternalRawContactEditorView.java b/src/com/android/contacts/editor/ExternalRawContactEditorView.java index cabf639e5..eb496f231 100644 --- a/src/com/android/contacts/editor/ExternalRawContactEditorView.java +++ b/src/com/android/contacts/editor/ExternalRawContactEditorView....
true
true
public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig) { // Remove any existing sections mGeneral.removeAllViews(); // Bail if invalid state or source if (state == null || type == null) return; // Make sure we have StructuredName EntityModifi...
public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig) { // Remove any existing sections mGeneral.removeAllViews(); // Bail if invalid state or source if (state == null || type == null) return; // Make sure we have StructuredName EntityModifi...
diff --git a/src/com/icecondor/nest/Pigeon.java b/src/com/icecondor/nest/Pigeon.java index a0c628b..3fe1155 100644 --- a/src/com/icecondor/nest/Pigeon.java +++ b/src/com/icecondor/nest/Pigeon.java @@ -1,209 +1,215 @@ package com.icecondor.nest; import java.io.IOException; import java.io.UnsupportedEncodingExceptio...
false
true
public void onCreate() { Log.i(appTag, "*** service created."); pigeon = this; locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); Log.i(appTag, "GPS provider enabled: "+locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)); locationManager.getProvider(LocationManager.GPS_PROVI...
public void onCreate() { Log.i(appTag, "*** service created."); pigeon = this; locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); Log.i(appTag, "GPS provider enabled: "+locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)); locationManager.getProvider(LocationManager.GPS_PROVI...
diff --git a/webui/portal/src/main/java/org/exoplatform/portal/webui/navigation/UIPageNavigationForm.java b/webui/portal/src/main/java/org/exoplatform/portal/webui/navigation/UIPageNavigationForm.java index 8c82c6d4b..5e3db4660 100644 --- a/webui/portal/src/main/java/org/exoplatform/portal/webui/navigation/UIPageNaviga...
true
true
public void execute(Event<UIPageNavigationForm> event) throws Exception { UIPageNavigationForm uiForm = event.getSource(); PageNavigation pageNav = uiForm.getPageNav(); PortalRequestContext pcontext = Util.getPortalRequestContext(); UserPortalConfigService service = uiForm.getApplicationCom...
public void execute(Event<UIPageNavigationForm> event) throws Exception { UIPageNavigationForm uiForm = event.getSource(); PageNavigation pageNav = uiForm.getPageNav(); PortalRequestContext pcontext = Util.getPortalRequestContext(); UserPortalConfigService service = uiForm.getApplicationCom...
diff --git a/lib-core/src/main/java/com/stratelia/silverpeas/contentManager/ContentInterface.java b/lib-core/src/main/java/com/stratelia/silverpeas/contentManager/ContentInterface.java index d334513701..cfd2b97da3 100644 --- a/lib-core/src/main/java/com/stratelia/silverpeas/contentManager/ContentInterface.java +++ b/li...
true
true
public List<SilverContentInterface> getSilverContentById(List<Integer> alSilverContentId, String sComponentId, String sUserId, List<String> alContentUserRoles);
public List<? extends SilverContentInterface> getSilverContentById(List<Integer> alSilverContentId, String sComponentId, String sUserId, List<String> alContentUserRoles);
diff --git a/edu/wisc/ssec/mcidasv/data/hydra/GranuleAggregation.java b/edu/wisc/ssec/mcidasv/data/hydra/GranuleAggregation.java index 941dc4ae8..34d78d4a8 100644 --- a/edu/wisc/ssec/mcidasv/data/hydra/GranuleAggregation.java +++ b/edu/wisc/ssec/mcidasv/data/hydra/GranuleAggregation.java @@ -1,426 +1,426 @@ /* * $Id...
false
true
private synchronized Object readArray(String array_name, int[] start, int[] count, int[] stride) throws Exception { // how many dimensions are we dealing with int dimensionCount = start.length; // which granules will we be dealing with? int loGranuleId = start[inTrackIndex] / granuleLength;...
private synchronized Object readArray(String array_name, int[] start, int[] count, int[] stride) throws Exception { // how many dimensions are we dealing with int dimensionCount = start.length; // which granules will we be dealing with? int loGranuleId = start[inTrackIndex] / granuleLength;...
diff --git a/src/com/android/camera/EffectsRecorder.java b/src/com/android/camera/EffectsRecorder.java index bb7c8136..737e828f 100644 --- a/src/com/android/camera/EffectsRecorder.java +++ b/src/com/android/camera/EffectsRecorder.java @@ -1,891 +1,898 @@ /* * Copyright (C) 2011 The Android Open Source Project * ...
true
true
private synchronized void initializeEffect(boolean forceReset) { if (forceReset || mCurrentEffect != mEffect || mCurrentEffect == EFFECT_BACKDROPPER) { if (mLogVerbose) { Log.v(TAG, "Effect initializing. Preview size " + mPreviewWidt...
private synchronized void initializeEffect(boolean forceReset) { if (forceReset || mCurrentEffect != mEffect || mCurrentEffect == EFFECT_BACKDROPPER) { if (mLogVerbose) { Log.v(TAG, "Effect initializing. Preview size " + mPreviewWidt...
diff --git a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java index 13018f67..5e131196 100644 --- a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java +++ b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommand...
true
true
public void createCluster( @CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name, @CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop or HBase") final String type, @CliOption(key = { "distro" }, mandatory = false, help = ...
public void createCluster( @CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name, @CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop or HBase") final String type, @CliOption(key = { "distro" }, mandatory = false, help = ...
diff --git a/src/numberConversionAlgoritme/SecondComplementBinaryConversion.java b/src/numberConversionAlgoritme/SecondComplementBinaryConversion.java index a8b2546..1c425b8 100644 --- a/src/numberConversionAlgoritme/SecondComplementBinaryConversion.java +++ b/src/numberConversionAlgoritme/SecondComplementBinaryConvers...
false
true
public Object getSpecificNumber(double number) { double numberOfBits = Math.log((int)Math.abs(number))/Math.log(2); String bits = Integer.toBinaryString((int)number); int numberOfBitsInString = bits.length(); numberOfBits++; numberOfBits = Math.abs(numberOfBits); numberOfBits = (int) (Math.ceil(numberOfBit...
public Object getSpecificNumber(double number) { double numberOfBits = 0; if(number != 0) numberOfBits = Math.log((int)Math.abs(number))/Math.log(2); String bits = Integer.toBinaryString((int)number); int numberOfBitsInString = bits.length(); numberOfBits++; numberOfBits = Math.abs(numberOfBits); numb...
diff --git a/src/impl/java/org/wyona/security/impl/util/PolicyAggregator.java b/src/impl/java/org/wyona/security/impl/util/PolicyAggregator.java index d14abe5..8d17889 100644 --- a/src/impl/java/org/wyona/security/impl/util/PolicyAggregator.java +++ b/src/impl/java/org/wyona/security/impl/util/PolicyAggregator.java @@ ...
false
true
public static Policy aggregatePolicy(String path, PolicyManager pm) throws AuthorizationException { Policy policy = pm.getPolicy(path, false); if (policy == null) { if (!path.equals("/")) { return aggregatePolicy(PathUtil.getParent(path), pm); } else { ...
public static Policy aggregatePolicy(String path, PolicyManager pm) throws AuthorizationException { Policy policy = pm.getPolicy(path, false); if (policy == null) { if (!path.equals("/")) { return aggregatePolicy(PathUtil.getParent(path), pm); } else { ...
diff --git a/src/com/facebook/buck/android/BucketPreDexedFilesStep.java b/src/com/facebook/buck/android/BucketPreDexedFilesStep.java index 518024bf0d..0e1e29268b 100644 --- a/src/com/facebook/buck/android/BucketPreDexedFilesStep.java +++ b/src/com/facebook/buck/android/BucketPreDexedFilesStep.java @@ -1,261 +1,261 @@ ...
true
true
public int execute(ExecutionContext context) { List<DexWithClasses> primaryDexContents = Lists.newArrayList(); List<List<DexWithClasses>> secondaryDexesContents = Lists.newArrayList(); int primaryDexSize = 0; // R.class files should always be in the primary dex. if (rDotJavaDex.isPresent()) { ...
public int execute(ExecutionContext context) { List<DexWithClasses> primaryDexContents = Lists.newArrayList(); List<List<DexWithClasses>> secondaryDexesContents = Lists.newArrayList(); int primaryDexSize = 0; // R.class files should always be in the primary dex. if (rDotJavaDex.isPresent()) { ...
diff --git a/src/main/java/ca/utoronto/siren/internal/SirenTask.java b/src/main/java/ca/utoronto/siren/internal/SirenTask.java index cd47292..d2555ba 100644 --- a/src/main/java/ca/utoronto/siren/internal/SirenTask.java +++ b/src/main/java/ca/utoronto/siren/internal/SirenTask.java @@ -1,205 +1,211 @@ package ca.utoront...
true
true
private static double[][] loadExpressionData(File file, CyNetwork network, List<CyNode> nodes, String identifier) throws IOException { CyTable table = network.getDefaultNodeTable(); CyColumn column = table.getColumn(identifier); Class<?> type = column.getType(); Map<String, Integer> nodeIndexes = new HashMa...
private static double[][] loadExpressionData(File file, CyNetwork network, List<CyNode> nodes, String identifier) throws IOException { CyTable table = network.getDefaultNodeTable(); CyColumn column = table.getColumn(identifier); Class<?> type = column.getType(); Map<String, Integer> nodeIndexes = new HashMa...