Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java b/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java index deb2879..5c6eb08 100644 --- a/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java +++ b/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java @@ -1,187 +1,187 @@ packag...
true
true
private static void printTable(double[][] res, String file, String caption, String label) throws Exception { double[][] res2 = new double[6][]; int max = 0; for (int gap = 1; gap <= 3; gap++) { BufferedReader in = ReaderUtil.createInputReader(new File("res", "share_" + file +...
private static void printTable(double[][] res, String file, String caption, String label) throws Exception { double[][] res2 = new double[6][]; int max = 0; for (int gap = 1; gap <= 3; gap++) { BufferedReader in = ReaderUtil.createInputReader(new File("res", "share_" + file +...
diff --git a/src/org/eob/Eob1Settings.java b/src/org/eob/Eob1Settings.java index 619cf1a..44f94ac 100644 --- a/src/org/eob/Eob1Settings.java +++ b/src/org/eob/Eob1Settings.java @@ -1,349 +1,349 @@ package org.eob; import org.eob.enums.GameSupportType; import org.eob.enums.WallType; import org.eob.model.ItemType; ...
true
true
public static void init() { //-------------- // --- Items --- //-------------- ItemType Axe = new ItemType(0x00, "axe", "Axe", "hand_axe"); ItemType Longsword = new ItemType(0x01, "long_sword", "Long Sword", "long_sword"); ItemType Dart = new ItemType(0x04, "dart", "D...
public static void init() { //-------------- // --- Items --- //-------------- ItemType Axe = new ItemType(0x00, "axe", "Axe", "hand_axe"); ItemType Longsword = new ItemType(0x01, "long_sword", "Long Sword", "long_sword"); ItemType Dart = new ItemType(0x04, "dart", "D...
diff --git a/src/uk/me/parabola/util/MultiHashMap.java b/src/uk/me/parabola/util/MultiHashMap.java index 301a1f82..564b1388 100644 --- a/src/uk/me/parabola/util/MultiHashMap.java +++ b/src/uk/me/parabola/util/MultiHashMap.java @@ -1,59 +1,59 @@ package uk.me.parabola.util; import java.util.ArrayList; import java.u...
true
true
public V remove(K key, V value ) { List<V> values = super.get(key); if (values == null ) return null; values.remove(value); if (values.isEmpty()) super.remove(values); return value; }
public V remove(K key, V value ) { List<V> values = super.get(key); if (values == null ) return null; values.remove(value); if (values.isEmpty()) super.remove(key); return value; }
diff --git a/src/net/sf/drftpd/master/command/plugins/DataConnectionHandler.java b/src/net/sf/drftpd/master/command/plugins/DataConnectionHandler.java index 035c2610..7f87eea4 100644 --- a/src/net/sf/drftpd/master/command/plugins/DataConnectionHandler.java +++ b/src/net/sf/drftpd/master/command/plugins/DataConnectionHa...
false
true
private Reply transfer(BaseFtpConnection conn) throws ReplyException { if (!_encryptedDataChannel && conn.getGlobalContext().getConfig().checkPermission("denydatauncrypted", conn.getUserNull())) { reset(); return new Reply(530, "USE SECURE DATA CONNECTION"); ...
private Reply transfer(BaseFtpConnection conn) throws ReplyException { if (!_encryptedDataChannel && conn.getGlobalContext().getConfig().checkPermission("denydatauncrypted", conn.getUserNull())) { reset(); return new Reply(530, "USE SECURE DATA CONNECTION"); ...
diff --git a/src/nodebox/client/DraggableNumber.java b/src/nodebox/client/DraggableNumber.java index 158012bd..67ddf225 100644 --- a/src/nodebox/client/DraggableNumber.java +++ b/src/nodebox/client/DraggableNumber.java @@ -1,366 +1,367 @@ package nodebox.client; import javax.imageio.ImageIO; import javax.swing.*; ...
true
true
public DraggableNumber() { setLayout(null); addMouseListener(this); addMouseMotionListener(this); addComponentListener(this); Dimension d = new Dimension(87, 20); setPreferredSize(d); numberField = new JTextField(); numberField.putClientProperty("JCom...
public DraggableNumber() { setLayout(null); addMouseListener(this); addMouseMotionListener(this); addComponentListener(this); Dimension d = new Dimension(87, 20); setPreferredSize(d); numberField = new JTextField(); numberField.putClientProperty("JCom...
diff --git a/src/share/classes/com/sun/javafx/runtime/location/SequenceConstant.java b/src/share/classes/com/sun/javafx/runtime/location/SequenceConstant.java index 2f0c887c8..bad3dbe20 100755 --- a/src/share/classes/com/sun/javafx/runtime/location/SequenceConstant.java +++ b/src/share/classes/com/sun/javafx/runtime/lo...
true
true
protected SequenceConstant(TypeInfo<T, ?> typeInfo, Sequence<? extends T> value) { this.typeInfo = typeInfo; this.$value = value; }
protected SequenceConstant(TypeInfo<T, ?> typeInfo, Sequence<? extends T> value) { this.typeInfo = typeInfo; this.$value = (value != null)? value : typeInfo.emptySequence; }
diff --git a/modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java b/modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java index 31c83edc0..8ac7e43dc 100644 --- a/modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java +++ b/modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket....
false
true
public WebSocket write(AtmosphereResponse r, byte[] b, int offset, int length) throws IOException { firstWrite.set(true); if (!isOpen()) throw new IOException("Connection remotely closed"); logger.trace("WebSocket.write()"); boolean transform = filters.size() > 0; if (binary...
public WebSocket write(AtmosphereResponse r, byte[] b, int offset, int length) throws IOException { firstWrite.set(true); if (!isOpen()) throw new IOException("Connection remotely closed"); logger.trace("WebSocket.write()"); boolean transform = filters.size() > 0; if (binary...
diff --git a/app/forms/MovieForm.java b/app/forms/MovieForm.java index 219ecc1..1dc5056 100644 --- a/app/forms/MovieForm.java +++ b/app/forms/MovieForm.java @@ -1,150 +1,151 @@ package forms; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.u...
true
true
public static MovieForm movieToForm(final Movie movie) { final MovieForm movieForm = new MovieForm(); movieForm.title = movie.title; movieForm.year = movie.year; movieForm.runtime = movie.runtime; movieForm.plot = movie.description; movieForm.hasBackdrop = movie.hasBackdrop; movieForm.ha...
public static MovieForm movieToForm(final Movie movie) { final MovieForm movieForm = new MovieForm(); movieForm.movieId = movie.id; movieForm.title = movie.title; movieForm.year = movie.year; movieForm.runtime = movie.runtime; movieForm.plot = movie.description; movieForm.hasBackdrop = m...
diff --git a/microsoft-azure-api/src/main/java/com/microsoft/windowsazure/serviceruntime/XmlRoleEnvironmentDataDeserializer.java b/microsoft-azure-api/src/main/java/com/microsoft/windowsazure/serviceruntime/XmlRoleEnvironmentDataDeserializer.java index 4924bc6543..8f27d2a1e3 100644 --- a/microsoft-azure-api/src/main/ja...
true
true
private Map<String, Role> translateRoles(RoleEnvironmentInfo environmentInfo, RoleInstance currentInstance, String currentRole) { Map<String, Role> roles = new HashMap<String, Role>(); for (RoleInfo roleInfo : environmentInfo.getRoles().getRole()) { Map<String, RoleInstance>...
private Map<String, Role> translateRoles(RoleEnvironmentInfo environmentInfo, RoleInstance currentInstance, String currentRole) { Map<String, Role> roles = new HashMap<String, Role>(); for (RoleInfo roleInfo : environmentInfo.getRoles().getRole()) { Map<String, RoleInstance>...
diff --git a/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/SipServletTestCase.java b/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/SipServletTestCase.java index 373a223c5..923ed6944 100644 --- a/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet...
true
true
protected void setUp() throws Exception { super.setUp(); //Reading properties Properties properties = new Properties(); InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream( "org/mobicents/servlet/sip/testsuite/testsuite.properties"); try{ properties.load(in...
protected void setUp() throws Exception { super.setUp(); //Reading properties Properties properties = new Properties(); InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream( "org/mobicents/servlet/sip/testsuite/testsuite.properties"); try{ properties.load(in...
diff --git a/src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommMenuBarUI.java b/src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommMenuBarUI.java index 7741bd464..d0ab3a46c 100644 --- a/src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommMenuBarUI.java +++ b/src/net/java/sip/communicator/impl/gui/l...
true
true
protected void installDefaults() { super.installDefaults(); LookAndFeel.installProperty(menuBar, "opaque", Boolean.FALSE); LookAndFeel.installBorder(menuBar, null); }
protected void installDefaults() { super.installDefaults(); LookAndFeel.installProperty(menuBar, "opaque", Boolean.FALSE); }
diff --git a/org.lh.dmlj.schema.editor/src/org/lh/dmlj/schema/editor/wizard/export/ExportWizard.java b/org.lh.dmlj.schema.editor/src/org/lh/dmlj/schema/editor/wizard/export/ExportWizard.java index d2e18b7..77175ff 100644 --- a/org.lh.dmlj.schema.editor/src/org/lh/dmlj/schema/editor/wizard/export/ExportWizard.java +++ b...
true
true
public boolean performFinish() { Schema schema = schemaSelectionPage.getSchema(); File file = outputFileSelectionPage.getFile(); if (file.exists()) { String title = "Overwrite file ?"; String message = "File '" + file.getAbsolutePath() + "' exists. Do you want to overwrite it ?"; String[...
public boolean performFinish() { Schema schema = schemaSelectionPage.getSchema(); File file = outputFileSelectionPage.getFile(); if (file.exists()) { String title = "Overwrite file ?"; String message = "File '" + file.getAbsolutePath() + "' exists. Do you want to overwrite it ?"; String[...
diff --git a/src/assemblernator/LinkerModule.java b/src/assemblernator/LinkerModule.java index 469bda1..760a613 100644 --- a/src/assemblernator/LinkerModule.java +++ b/src/assemblernator/LinkerModule.java @@ -1,527 +1,527 @@ package assemblernator; import static assemblernator.ErrorReporting.makeError; import java...
true
true
public LinkerModule(InputStream in, ErrorHandler error) { // scan wrap Scanner read = new Scanner(in); ScanWrap reader = new ScanWrap(read, error); //String used for name String ender = ""; String temp = ""; String errorMessage = ""; //Number of records int mod = 0; int link = 0; int text = 0; ...
public LinkerModule(InputStream in, ErrorHandler error) { // scan wrap Scanner read = new Scanner(in); ScanWrap reader = new ScanWrap(read, error); //String used for name String ender = ""; String temp = ""; String errorMessage = ""; //Number of records int mod = 0; int link = 0; int text = 0; ...
diff --git a/src/eu/cassandra/sim/Simulation.java b/src/eu/cassandra/sim/Simulation.java index d29480d..5777269 100644 --- a/src/eu/cassandra/sim/Simulation.java +++ b/src/eu/cassandra/sim/Simulation.java @@ -1,844 +1,844 @@ /* Copyright 2011-2013 The Cassandra Consortium (cassandra-fp7.eu) Licensed under...
true
true
public void run () { DBObject query = new BasicDBObject(); query.put("_id", new ObjectId(dbname)); DBObject objRun = DBConn.getConn().getCollection(MongoRuns.COL_RUNS).findOne(query); try { System.out.println("Run " + dbname + " started @ " + Calendar.getInstance().getTimeInMillis()); calculate...
public void run () { DBObject query = new BasicDBObject(); query.put("_id", new ObjectId(dbname)); DBObject objRun = DBConn.getConn().getCollection(MongoRuns.COL_RUNS).findOne(query); try { System.out.println("Run " + dbname + " started @ " + Calendar.getInstance().getTimeInMillis()); calculate...
diff --git a/src/test/java/gr/zapantis/rockpaperscissors/RockPaperScissorsGameTest.java b/src/test/java/gr/zapantis/rockpaperscissors/RockPaperScissorsGameTest.java index de7ed6b..666774e 100644 --- a/src/test/java/gr/zapantis/rockpaperscissors/RockPaperScissorsGameTest.java +++ b/src/test/java/gr/zapantis/rockpapersci...
true
true
public void createGame() { RockPaperScissorsGameTest rockPaperScissorsGameTest = new RockPaperScissorsGameTest(); assertNotNull(rockPaperScissorsGameTest); }
public void createGame() { RockPaperScissorsGame rockPaperScissorsGame = new RockPaperScissorsGame(); assertNotNull(rockPaperScissorsGame); }
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index 64b38c0e..a177b311 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,1816 +1,1820 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
true
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/core/typechecker/src/main/java/org/overture/typecheck/visitors/TypeCheckerImportsVisitor.java b/core/typechecker/src/main/java/org/overture/typecheck/visitors/TypeCheckerImportsVisitor.java index 4fbf128222..e4f97f3223 100644 --- a/core/typechecker/src/main/java/org/overture/typecheck/visitors/TypeCheckerI...
false
true
public PType caseAFunctionValueImport(AFunctionValueImport node, TypeCheckInfo question) { //TODO: This might need to be made in another way if (node.getTypeParams().size() == 0) { defaultSValueImport(node, question); } else { List<PDefinition> defs = new Vector<PDefinition>(); for (LexN...
public PType caseAFunctionValueImport(AFunctionValueImport node, TypeCheckInfo question) { //TODO: This might need to be made in another way if (node.getTypeParams().size() == 0) { defaultSValueImport(node, question); } else { List<PDefinition> defs = new Vector<PDefinition>(); for (LexN...
diff --git a/wflow-core/src/main/java/org/joget/apps/app/dao/FormDefinitionDaoImpl.java b/wflow-core/src/main/java/org/joget/apps/app/dao/FormDefinitionDaoImpl.java index 9bc0e661..cf915f36 100755 --- a/wflow-core/src/main/java/org/joget/apps/app/dao/FormDefinitionDaoImpl.java +++ b/wflow-core/src/main/java/org/joget/a...
true
true
public boolean delete(String id, AppDefinition appDef) { boolean result = false; try { FormDefinition obj = loadById(id, appDef); // detach from app if (obj != null) { Collection<FormDefinition> list = appDef.getFormDefinitionList(); ...
public boolean delete(String id, AppDefinition appDef) { boolean result = false; try { FormDefinition obj = super.loadById(id, appDef); // detach from app if (obj != null) { Collection<FormDefinition> list = appDef.getFormDefinitionList(); ...
diff --git a/search-impl/impl/src/java/org/sakaiproject/search/indexer/impl/ConcurrentSearchIndexBuilderWorkerImpl.java b/search-impl/impl/src/java/org/sakaiproject/search/indexer/impl/ConcurrentSearchIndexBuilderWorkerImpl.java index d5b45746..459c7fcb 100644 --- a/search-impl/impl/src/java/org/sakaiproject/search/ind...
true
true
public void runOnce() { if (!enabled) { return; } if (componentManager.hasBeenClosed()) { log.info("Component Manager has been closed"); return; } nowIndexing.set("-"); if (journalSettings.getSoakTest() && (searchService.getPendingDocs() == 0)) { log.error("SOAK TEST---SOAK TEST---SOAK...
public void runOnce() { if (!enabled) { return; } if (componentManager.hasBeenClosed()) { log.info("Component Manager has been closed"); return; } nowIndexing.set("-"); if (journalSettings.getSoakTest() && (searchService.getPendingDocs() == 0)) { log.error("SOAK TEST---SOAK TEST---SOAK...
diff --git a/src/com/xabber/android/data/notification/NotificationManager.java b/src/com/xabber/android/data/notification/NotificationManager.java index b1e6df89..7c79c1e7 100644 --- a/src/com/xabber/android/data/notification/NotificationManager.java +++ b/src/com/xabber/android/data/notification/NotificationManager.ja...
false
true
private void updateMessageNotification(MessageItem ticker) { Collection<String> accountList = AccountManager.getInstance() .getAccounts(); int accountCount = accountList.size(); boolean started = application.isInitialized(); int waiting = 0; int connecting = 0; int connected = 0; for (String account ...
private void updateMessageNotification(MessageItem ticker) { Collection<String> accountList = AccountManager.getInstance() .getAccounts(); int accountCount = accountList.size(); boolean started = application.isInitialized(); int waiting = 0; int connecting = 0; int connected = 0; for (String account ...
diff --git a/src/com/jidesoft/plaf/UIDefaultsLookup.java b/src/com/jidesoft/plaf/UIDefaultsLookup.java index 1efaa6e9..9cda51ba 100644 --- a/src/com/jidesoft/plaf/UIDefaultsLookup.java +++ b/src/com/jidesoft/plaf/UIDefaultsLookup.java @@ -1,378 +1,383 @@ /* * @(#)UIManagerLookup.java 4/5/2007 * * Copyright 2002 ...
true
true
public static Object get(Object key) { Object value = UIManager.get(key); log(value, key, null); if (value instanceof Map && "Theme.painter".equals(key)) { Map map = (Map) value; try { ClassLoader classLoader = getCallerClassLoader(); O...
public static Object get(Object key) { Object value = UIManager.get(key); log(value, key, null); if (value instanceof Map && "Theme.painter".equals(key)) { Map map = (Map) value; try { ClassLoader classLoader = getCallerClassLoader(); O...
diff --git a/driver-core/src/main/java/com/datastax/driver/core/RetryingCallback.java b/driver-core/src/main/java/com/datastax/driver/core/RetryingCallback.java index 9515e594a..f87a4b789 100644 --- a/driver-core/src/main/java/com/datastax/driver/core/RetryingCallback.java +++ b/driver-core/src/main/java/com/datastax/d...
false
true
public void onSet(Connection connection, Message.Response response) { if (currentPool == null) { // This should not happen but is probably not reason to fail completely logger.error("No current pool set; this should not happen"); } else { currentPool.returnConnec...
public void onSet(Connection connection, Message.Response response) { if (currentPool == null) { // This should not happen but is probably not reason to fail completely logger.error("No current pool set; this should not happen"); } else { currentPool.returnConnec...
diff --git a/src/java/com/mozilla/hadoop/Backup.java b/src/java/com/mozilla/hadoop/Backup.java index 8225999..d852b33 100644 --- a/src/java/com/mozilla/hadoop/Backup.java +++ b/src/java/com/mozilla/hadoop/Backup.java @@ -1,447 +1,447 @@ /** * Copyright 2010 Mozilla Foundation * * Licensed to the Apache Software ...
false
true
private void copyFile(Path inputPath, Context context) throws InterruptedException, IOException { FSDataInputStream dis = null; FSDataOutputStream dos = null; String commonPath = null; Matcher m = filePattern.matcher(inputPath.toString()); if (m.find()) { if (m.groupCount() == 1) { commonP...
private void copyFile(Path inputPath, Context context) throws InterruptedException, IOException { FSDataInputStream dis = null; FSDataOutputStream dos = null; String commonPath = null; Matcher m = filePattern.matcher(inputPath.toString()); if (m.find()) { if (m.groupCount() == 1) { commonP...
diff --git a/workloadSuite/GenerateReplayScript.java b/workloadSuite/GenerateReplayScript.java index f856e1a..8b31624 100644 --- a/workloadSuite/GenerateReplayScript.java +++ b/workloadSuite/GenerateReplayScript.java @@ -1,465 +1,465 @@ import java.io.BufferedReader; import java.io.FileReader; import java.io.FileWri...
false
true
public static void printOutput(ArrayList<ArrayList<String>> workloadData, int clusterSizeRaw, int clusterSizeWorkload, int inputPartitionSize, int inputPartitionCount, String scriptDirPath, String hdfsInputDir, String hdfsOutputPrefix, long totalDataPerReduce...
public static void printOutput(ArrayList<ArrayList<String>> workloadData, int clusterSizeRaw, int clusterSizeWorkload, int inputPartitionSize, int inputPartitionCount, String scriptDirPath, String hdfsInputDir, String hdfsOutputPrefix, long totalDataPerReduce...
diff --git a/src/org/nutz/dao/impl/link/DoDeleteLinkVisitor.java b/src/org/nutz/dao/impl/link/DoDeleteLinkVisitor.java index 23a7d7a55..3f2f44e31 100644 --- a/src/org/nutz/dao/impl/link/DoDeleteLinkVisitor.java +++ b/src/org/nutz/dao/impl/link/DoDeleteLinkVisitor.java @@ -1,40 +1,40 @@ package org.nutz.dao.impl.link; ...
true
true
public void visit(Object obj, LinkField lnk) { Object value = lnk.getValue(obj); if (value == null) { log.infof("Value of LinkField(@%s-->%s.%s) is null, ingore", lnk.getLinkType(), lnk.getEntity().getType().getSimpleName(), lnk.getHostField(...
public void visit(Object obj, LinkField lnk) { Object value = lnk.getValue(obj); if (value == null || Lang.length(value) == 0) { log.infof("Value of LinkField(@%s-->%s.%s) is null or isEmtry, ingore", lnk.getLinkType(), lnk.getEntity().getType().getSimpleName(), ...
diff --git a/nfctools-ndef/src/main/java/org/nfctools/ndef/wkt/handover/decoder/CollisionResolutionRecordDecoder.java b/nfctools-ndef/src/main/java/org/nfctools/ndef/wkt/handover/decoder/CollisionResolutionRecordDecoder.java index 3b7a455..87940db 100644 --- a/nfctools-ndef/src/main/java/org/nfctools/ndef/wkt/handover/...
true
true
public WellKnownRecord decodePayload(byte[] payload, NdefMessageDecoder messageDecoder) { CollisionResolutionRecord collisionResolutionRecord = new CollisionResolutionRecord(); collisionResolutionRecord.setRandomNumber((((payload[0] << 8) | payload[1]) & 0xFFFF)); return collisionResolutionRecord; }
public WellKnownRecord decodePayload(byte[] payload, NdefMessageDecoder messageDecoder) { CollisionResolutionRecord collisionResolutionRecord = new CollisionResolutionRecord(); collisionResolutionRecord.setRandomNumber(((payload[0] & 0xFF) << 8) | (payload[1] & 0xFF)); return collisionResolutionRecord; }
diff --git a/src/main/java/git/volkov/kvstorage/StorageTester.java b/src/main/java/git/volkov/kvstorage/StorageTester.java index a01a064..056034d 100644 --- a/src/main/java/git/volkov/kvstorage/StorageTester.java +++ b/src/main/java/git/volkov/kvstorage/StorageTester.java @@ -1,115 +1,115 @@ package git.volkov.kvstora...
true
true
private void runGet(Storage storage) throws IOException { LOG.info("Testing put for storage" + storage.toString()); BufferedReader reader = new BufferedReader(new FileReader(getFile)); String string; int count = 0; int miss = 0; long start = System.currentTimeMillis(); while ((string = reader.readLine())...
private void runGet(Storage storage) throws IOException { LOG.info("Testing get for storage" + storage.toString()); BufferedReader reader = new BufferedReader(new FileReader(getFile)); String string; int count = 0; int miss = 0; long start = System.currentTimeMillis(); while ((string = reader.readLine())...
diff --git a/src/api/org/openmrs/util/OpenmrsUtil.java b/src/api/org/openmrs/util/OpenmrsUtil.java index 2412dc31..199f68af 100644 --- a/src/api/org/openmrs/util/OpenmrsUtil.java +++ b/src/api/org/openmrs/util/OpenmrsUtil.java @@ -1,2006 +1,2005 @@ /** * The contents of this file are subject to the OpenMRS Public Li...
true
true
public static PatientFilter toPatientFilter(PatientSearch search, CohortSearchHistory history, EvaluationContext evalContext) { if (search.isSavedSearchReference()) { PatientSearch ps = ((PatientSearchReportObject) Context.getReportObjectService().getReportObject( ...
public static PatientFilter toPatientFilter(PatientSearch search, CohortSearchHistory history, EvaluationContext evalContext) { if (search.isSavedSearchReference()) { PatientSearch ps = ((PatientSearchReportObject) Context.getReportObjectService().getReportObject( ...
diff --git a/closure/closure-compiler/src/com/google/javascript/jscomp/ant/CompileTask.java b/closure/closure-compiler/src/com/google/javascript/jscomp/ant/CompileTask.java index 4e636a39..38741720 100644 --- a/closure/closure-compiler/src/com/google/javascript/jscomp/ant/CompileTask.java +++ b/closure/closure-compiler...
true
true
public void execute() { if (this.outputFile == null) { throw new BuildException("outputFile attribute must be set"); } Compiler.setLoggingLevel(Level.OFF); CompilerOptions options = createCompilerOptions(); Compiler compiler = createCompiler(options); JSSourceFile[] externs = findExte...
public void execute() { if (this.outputFile == null) { throw new BuildException("outputFile attribute must be set"); } Compiler.setLoggingLevel(Level.OFF); CompilerOptions options = createCompilerOptions(); Compiler compiler = createCompiler(options); JSSourceFile[] externs = findExte...
diff --git a/nuget-tests/src/jetbrains/buildServer/nuget/tests/integration/PackagesPublishIntegrationTest.java b/nuget-tests/src/jetbrains/buildServer/nuget/tests/integration/PackagesPublishIntegrationTest.java index 9809b0ff..14f3ca7b 100644 --- a/nuget-tests/src/jetbrains/buildServer/nuget/tests/integration/PackagesP...
true
true
private File preparePackage(@NotNull final NuGet nuget) throws IOException { @NotNull final File root = createTempDir(); final File spec = new File(root, "SamplePackage.nuspec"); FileUtil.copy(getTestDataPath("SamplePackage.nuspec"), spec); GeneralCommandLine cmd = new GeneralCommandLine(); cmd.s...
private File preparePackage(@NotNull final NuGet nuget) throws IOException { @NotNull final File root = createTempDir(); final File spec = new File(root, "SamplePackage.nuspec"); FileUtil.copy(getTestDataPath("SamplePackage.nuspec"), spec); GeneralCommandLine cmd = new GeneralCommandLine(); cmd.s...
diff --git a/modules/jetm-core/src/main/java/etm/core/util/collection/CollectionFactory.java b/modules/jetm-core/src/main/java/etm/core/util/collection/CollectionFactory.java index 1e2bb22..82d1769 100644 --- a/modules/jetm-core/src/main/java/etm/core/util/collection/CollectionFactory.java +++ b/modules/jetm-core/src/m...
true
true
public static CollectionFactory getInstance() { if (collectionFactory == null) { try { Class clazz = Class.forName("etm.core.util.collection.Java50CollectionFactory"); collectionFactory = (CollectionFactory) clazz.newInstance(); } catch (Throwable e) { collectionFactory = new D...
public static CollectionFactory getInstance() { if (collectionFactory == null) { try { Class clazz = Class.forName("etm.core.util.collection.Java15CollectionFactory"); collectionFactory = (CollectionFactory) clazz.newInstance(); } catch (Throwable e) { collectionFactory = new D...
diff --git a/CubicTestPlugin/src/main/java/org/cubictest/export/holders/ContextHolder.java b/CubicTestPlugin/src/main/java/org/cubictest/export/holders/ContextHolder.java index 4cb099c9..d678e3cd 100644 --- a/CubicTestPlugin/src/main/java/org/cubictest/export/holders/ContextHolder.java +++ b/CubicTestPlugin/src/main/ja...
false
true
private String getFullContextWithAllElements(PageElement pageElement, String axis, boolean traverseParents, PageElement elementToIgnore) { String elementExp = axis + XPathBuilder.getXPathForSingleElement(pageElement, useNamespace); if (pageElement instanceof IContext && !(pageElement instanceof Frame)) { ...
private String getFullContextWithAllElements(PageElement pageElement, String axis, boolean traverseParents, PageElement elementToIgnore) { String elementExpression = axis + XPathBuilder.getXPathForSingleElement(pageElement, useNamespace); if (pageElement instanceof IContext && !(pageElement instanceof Frame...
diff --git a/vaadin-touchkit-integration-tests/src/test/java/com/vaadin/addon/itest/SmokeITCase.java b/vaadin-touchkit-integration-tests/src/test/java/com/vaadin/addon/itest/SmokeITCase.java index 9f04d2f..4beb3a2 100644 --- a/vaadin-touchkit-integration-tests/src/test/java/com/vaadin/addon/itest/SmokeITCase.java +++ b...
true
true
public void smokeTest() throws IOException { URL url = new URL("http://localhost:5678/"); InputStream openStream = url.openStream(); BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(openStream)); String line; boolean isInitPage = fa...
public void smokeTest() throws IOException { URL url = new URL("http://localhost:5678/"); InputStream openStream = url.openStream(); BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(openStream)); String line; boolean isInitPage = fa...
diff --git a/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/NodeContribution.java b/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/NodeContribution.java index 78f56f0e8..b7c10f56a 100644 --- a/archives/plugins/org.jboss.ide.ec...
true
true
public NodeContribution (IConfigurationElement element) { id = element.getAttribute(ID); label = element.getAttribute(LABEL); try { actionDelegate = (INodeActionDelegate) element.createExecutableExtension(CLASS); } catch (CoreException e) { //TODO Trace.trace(getClass(), e); } String iconPath = e...
public NodeContribution (IConfigurationElement element) { id = element.getAttribute(ID); label = element.getAttribute(LABEL); try { actionDelegate = (INodeActionDelegate) element.createExecutableExtension(CLASS); } catch (CoreException e) { //TODO Trace.trace(getClass(), e); } String iconPath = e...
diff --git a/gdx/src/com/badlogic/gdx/graphics/Texture.java b/gdx/src/com/badlogic/gdx/graphics/Texture.java index d0e755c81..4e1744d68 100644 --- a/gdx/src/com/badlogic/gdx/graphics/Texture.java +++ b/gdx/src/com/badlogic/gdx/graphics/Texture.java @@ -1,464 +1,464 @@ /* * Copyright 2010 Mario Zechner (contact@badlo...
true
true
private void uploadImageData(Pixmap pixmap) { this.width = pixmap.getWidth(); this.height = pixmap.getHeight(); if(!MathUtils.isPowerOfTwo(width) || !MathUtils.isPowerOfTwo(height)) throw new GdxRuntimeException("texture width and height must be powers of two"); Gdx.gl.glBindTexture(GL10.GL_TEXTURE_2D,...
private void uploadImageData(Pixmap pixmap) { this.width = pixmap.getWidth(); this.height = pixmap.getHeight(); if(Gdx.gl20 == null && (!MathUtils.isPowerOfTwo(width) || !MathUtils.isPowerOfTwo(height))) throw new GdxRuntimeException("texture width and height must be powers of two"); Gdx.gl.glBindTextu...
diff --git a/src/tiger/src/org/compass/annotations/config/binding/AnnotationsBindingUtils.java b/src/tiger/src/org/compass/annotations/config/binding/AnnotationsBindingUtils.java index 1b17c1ff..5c9d21c0 100644 --- a/src/tiger/src/org/compass/annotations/config/binding/AnnotationsBindingUtils.java +++ b/src/tiger/src/o...
true
true
public static Property.TermVector convert(TermVector termVector) throws IllegalArgumentException { if (termVector == TermVector.NO) { return Property.TermVector.NO; } else if (termVector == TermVector.YES) { return Property.TermVector.YES; } else if (termVector == Ter...
public static Property.TermVector convert(TermVector termVector) throws IllegalArgumentException { if (termVector == TermVector.NO) { return Property.TermVector.NO; } else if (termVector == TermVector.YES) { return Property.TermVector.YES; } else if (termVector == Ter...
diff --git a/src/main/java/com/ctb/pilot/common/filter/login/LoginCheckFilter.java b/src/main/java/com/ctb/pilot/common/filter/login/LoginCheckFilter.java index 4c479d3..63e91d7 100644 --- a/src/main/java/com/ctb/pilot/common/filter/login/LoginCheckFilter.java +++ b/src/main/java/com/ctb/pilot/common/filter/login/Login...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest) request; HttpServletResponse httpResponse = (HttpServletResponse) response; HttpSession session = httpRequest.getSession(); U...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest) request; HttpServletResponse httpResponse = (HttpServletResponse) response; HttpSession session = httpRequest.getSession(); U...
diff --git a/src/main/java/pl/agh/enrollme/model/Enroll.java b/src/main/java/pl/agh/enrollme/model/Enroll.java index efee001..0e94ce5 100644 --- a/src/main/java/pl/agh/enrollme/model/Enroll.java +++ b/src/main/java/pl/agh/enrollme/model/Enroll.java @@ -1,112 +1,111 @@ package pl.agh.enrollme.model; import pl.agh.en...
true
true
public String toString() { return "Enroll{" + "enrollID=" + enrollID + ", name='" + name + '\'' + ", enrollmentMode=" + enrollmentMode + ", enrollConfiguration=" + enrollConfiguration + ", subjects=" + subjects + ...
public String toString() { return "Enroll{" + "enrollID=" + enrollID + ", name='" + name + '\'' + ", enrollmentMode=" + enrollmentMode + ", enrollConfiguration=" + enrollConfiguration + ", subjects=" + subjects + ...
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java index 6f7f5df3..1321898d 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java @@ -1,2231 +1,2246 @@ /** ...
true
true
public static ContentSummary getInputSummary(Context ctx, MapredWork work, PathFilter filter) throws IOException { long[] summary = {0, 0, 0}; List<String> pathNeedProcess = new ArrayList<String>(); // Since multiple threads could call this method concurrently, locking // this method will avo...
public static ContentSummary getInputSummary(Context ctx, MapredWork work, PathFilter filter) throws IOException { long[] summary = {0, 0, 0}; List<String> pathNeedProcess = new ArrayList<String>(); // Since multiple threads could call this method concurrently, locking // this method will avo...
diff --git a/Pong/src/pong/PongGameView.java b/Pong/src/pong/PongGameView.java index b877a93..d77b932 100644 --- a/Pong/src/pong/PongGameView.java +++ b/Pong/src/pong/PongGameView.java @@ -1,71 +1,71 @@ package pong; import java.util.Collection; import java.util.List; import jgame.Context; import jgame.GContai...
true
true
public PongGameView(){ super(new GSprite(ImageCache.forClass(Pong.class).get("explosion.png"))); setSize(640,480); // Add the paddle to the game view. PongPaddle paddle = new PongPaddle(ControlScheme.WASD); add(paddle); paddle.setLocation(50, 480/2); // Create a puck. PongPuck puck...
public PongGameView(){ super(new GSprite(ImageCache.forClass(Pong.class).get("explosion.png"))); setSize(640,480); // Add the paddle to the game view. PongPaddle paddle = new PongPaddle(ControlScheme.WASD); add(paddle); paddle.setLocation(50, 480/2); // Create a puck. PongPuck puck...
diff --git a/MSFSurveyFUP/src/org/msf/survey/monthly/fup/CSVDataExport.java b/MSFSurveyFUP/src/org/msf/survey/monthly/fup/CSVDataExport.java index 4346830..38d05ef 100644 --- a/MSFSurveyFUP/src/org/msf/survey/monthly/fup/CSVDataExport.java +++ b/MSFSurveyFUP/src/org/msf/survey/monthly/fup/CSVDataExport.java @@ -1,140 +...
true
true
private static String[] getObservationValues(InputStream encounterInputStream, List<String> concepts) throws IOException, JSONException { String[] result = new String[concepts.size()]; Arrays.fill(result, ""); String jsonString = FileUtilities.readStringFromInputStream(encounterInputStream); JSONObject enco...
private static String[] getObservationValues(InputStream encounterInputStream, List<String> concepts) throws IOException, JSONException { String[] result = new String[concepts.size()]; Arrays.fill(result, ""); String jsonString = FileUtilities.readStringFromInputStream(encounterInputStream); JSONObject enco...
diff --git a/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/Trust10.java b/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/Trust10.java index 5b930ef13..264a7b536 100644 --- a/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/Trust10.java +++ b/modules/rampart-pol...
true
true
public void serialize(XMLStreamWriter writer) throws XMLStreamException { String localname = getName().getLocalPart(); String namespaceURI = getName().getNamespaceURI(); String prefix = writer.getPrefix(namespaceURI); if (prefix == null) { prefix = getNa...
public void serialize(XMLStreamWriter writer) throws XMLStreamException { String localname = getName().getLocalPart(); String namespaceURI = getName().getNamespaceURI(); String prefix = writer.getPrefix(namespaceURI); if (prefix == null) { prefix = getNa...
diff --git a/SoarSuite/soar-java/soar-soar2d/src/main/java/edu/umich/soar/gridmap2d/soar/SoarRobotInputLinkManager.java b/SoarSuite/soar-java/soar-soar2d/src/main/java/edu/umich/soar/gridmap2d/soar/SoarRobotInputLinkManager.java index 54389d940..cc389a53f 100644 --- a/SoarSuite/soar-java/soar-soar2d/src/main/java/edu/u...
true
true
public void update(Robot player, RoomWorld world, RoomMap roomMap, boolean floatYawWmes) { configurationIL.update(); // FIXME: should be configurable //timeIL.update(); runtime += (long)(Gridmap2D.control.getTimeSlice() * 1000000000L); timeIL.updateExact(runtime); selfIL.update(player); if (area...
public void update(Robot player, RoomWorld world, RoomMap roomMap, boolean floatYawWmes) { configurationIL.update(); // FIXME: should be configurable //timeIL.update(); runtime += (long)(Gridmap2D.control.getTimeSlice() * 1000000000L); timeIL.updateExact(runtime); selfIL.update(player); if (area...
diff --git a/src/org/apache/ws/security/components/crypto/CryptoFactory.java b/src/org/apache/ws/security/components/crypto/CryptoFactory.java index 180d6c192..c52630b08 100644 --- a/src/org/apache/ws/security/components/crypto/CryptoFactory.java +++ b/src/org/apache/ws/security/components/crypto/CryptoFactory.java @@ ...
false
true
private static Crypto loadClass(String cryptoClassName, Properties properties) { Class cryptogenClass = null; Crypto crypto = null; try { // instruct the class loader to load the crypto implementation cryptogenClass = java.lang.Class.forName(cryptoClassName); ...
private static Crypto loadClass(String cryptoClassName, Properties properties) { Class cryptogenClass = null; Crypto crypto = null; try { // instruct the class loader to load the crypto implementation cryptogenClass = java.lang.Class.forName(cryptoClassName); ...
diff --git a/server/src/main/java/com/metamx/druid/initialization/ServerInit.java b/server/src/main/java/com/metamx/druid/initialization/ServerInit.java index 8b38872608..bb1d0d631d 100644 --- a/server/src/main/java/com/metamx/druid/initialization/ServerInit.java +++ b/server/src/main/java/com/metamx/druid/initializati...
true
true
public static StupidPool<ByteBuffer> makeComputeScratchPool(DruidProcessingConfig config) { try { Class<?> vmClass = Class.forName("sun.misc.VM"); Object maxDirectMemoryObj = vmClass.getMethod("maxDirectMemory").invoke(null); if (maxDirectMemoryObj == null || !(maxDirectMemoryObj instanceof N...
public static StupidPool<ByteBuffer> makeComputeScratchPool(DruidProcessingConfig config) { try { Class<?> vmClass = Class.forName("sun.misc.VM"); Object maxDirectMemoryObj = vmClass.getMethod("maxDirectMemory").invoke(null); if (maxDirectMemoryObj == null || !(maxDirectMemoryObj instanceof N...
diff --git a/src/biz/bokhorst/xprivacy/RState.java b/src/biz/bokhorst/xprivacy/RState.java index 681f733f..3293c226 100644 --- a/src/biz/bokhorst/xprivacy/RState.java +++ b/src/biz/bokhorst/xprivacy/RState.java @@ -1,112 +1,112 @@ package biz.bokhorst.xprivacy; import java.util.ArrayList; import java.util.List; ...
true
true
public RState(int uid, String restrictionName, String methodName) { mUid = uid; mRestrictionName = restrictionName; mMethodName = methodName; int userId = Util.getUserId(Process.myUid()); // Get if on demand boolean onDemand = PrivacyManager.getSettingBool(userId, PrivacyManager.cSettingOnDemand, true, f...
public RState(int uid, String restrictionName, String methodName) { mUid = uid; mRestrictionName = restrictionName; mMethodName = methodName; int userId = Util.getUserId(Process.myUid()); // Get if on demand boolean onDemand = PrivacyManager.getSettingBool(userId, PrivacyManager.cSettingOnDemand, true, f...
diff --git a/servers/media/jar/src/main/java/org/mobicents/media/server/impl/ivr/LocalSplitter.java b/servers/media/jar/src/main/java/org/mobicents/media/server/impl/ivr/LocalSplitter.java index 80d303ff0..3928d6c24 100755 --- a/servers/media/jar/src/main/java/org/mobicents/media/server/impl/ivr/LocalSplitter.java +++ ...
false
true
public PushBufferStream remove(String id) { PushBufferStream pushStream = (PushBufferStream) streams.remove(id); if (pushStream != null) { splitter.closeBranch(pushStream); if (logger.isDebugEnabled()) { logger.debug("id=" + this.id + ", removed branch for con...
public void remove(String id) { PushBufferStream pushStream = (PushBufferStream) streams.remove(id); if (pushStream != null) { splitter.closeBranch(pushStream); if (logger.isDebugEnabled()) { logger.debug("id=" + this.id + ", removed branch for connection id =...
diff --git a/src/littlegruz/autoruncommands/listeners/CommandServerListener.java b/src/littlegruz/autoruncommands/listeners/CommandServerListener.java index 9e4cf35..5eb71ef 100644 --- a/src/littlegruz/autoruncommands/listeners/CommandServerListener.java +++ b/src/littlegruz/autoruncommands/listeners/CommandServerListe...
true
true
public void onPluginEnable(PluginEnableEvent event){ // Run the startup tasks one second after everything has loaded plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable(){ public void run(){ String cmd; StringTokenizer st = new StringTokenizer(...
public void onPluginEnable(PluginEnableEvent event){ // Run the startup tasks one second after everything has loaded plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable(){ public void run(){ String cmd; StringTokenizer st = new StringTokenizer(...
diff --git a/xjc/src/com/sun/tools/xjc/generator/bean/BeanGenerator.java b/xjc/src/com/sun/tools/xjc/generator/bean/BeanGenerator.java index 202f9625..651fc865 100644 --- a/xjc/src/com/sun/tools/xjc/generator/bean/BeanGenerator.java +++ b/xjc/src/com/sun/tools/xjc/generator/bean/BeanGenerator.java @@ -1,770 +1,775 @@ ...
false
true
private EnumOutline generateEnum(CEnumLeafInfo e) { JDefinedClass type; // since constant values are never null, no point in using the boxed types. JType baseExposedType = e.base.toType(this, EXPOSED).unboxify(); JType baseImplType = e.base.toType(this,Aspect.IMPLEMENTATION).unboxif...
private EnumOutline generateEnum(CEnumLeafInfo e) { JDefinedClass type; // since constant values are never null, no point in using the boxed types. JType baseExposedType = e.base.toType(this, EXPOSED).unboxify(); JType baseImplType = e.base.toType(this,Aspect.IMPLEMENTATION).unboxif...
diff --git a/src/main/org/jboss/jms/client/remoting/CallbackServerFactory.java b/src/main/org/jboss/jms/client/remoting/CallbackServerFactory.java index 5c61f9368..904bb449d 100644 --- a/src/main/org/jboss/jms/client/remoting/CallbackServerFactory.java +++ b/src/main/org/jboss/jms/client/remoting/CallbackServerFactory....
false
true
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; Connector server = null; String serialization...
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; Connector server = null; String serialization...
diff --git a/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.java b/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.java index e8bb2715..ef87f235 100644 --- a/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.ja...
true
true
private List<String> generateLore(ItemStack itemStack) { List<String> lore = new ArrayList<String>(); if (itemStack == null || tier == null) { return lore; } List<String> tooltipFormat = MythicDropsPlugin.getInstance().getConfigSettings().getTooltipFormat(); String minecraftName = getMinecraftMaterialNam...
private List<String> generateLore(ItemStack itemStack) { List<String> lore = new ArrayList<String>(); if (itemStack == null || tier == null) { return lore; } List<String> tooltipFormat = MythicDropsPlugin.getInstance().getConfigSettings().getTooltipFormat(); String minecraftName = getMinecraftMaterialNam...
diff --git a/samples/RSSReader/src/com/example/android/rssreader/RssReader.java b/samples/RSSReader/src/com/example/android/rssreader/RssReader.java index 2f273c40..b3772bc0 100644 --- a/samples/RSSReader/src/com/example/android/rssreader/RssReader.java +++ b/samples/RSSReader/src/com/example/android/rssreader/RssReade...
true
true
void parseRSS(InputStream in, RSSListAdapter adapter) throws IOException, XmlPullParserException { // TODO: switch to sax XmlPullParser xpp = Xml.newPullParser(); xpp.setInput(in, null); // null = parser figures out encoding int eventType; String title = ""; ...
void parseRSS(InputStream in, RSSListAdapter adapter) throws IOException, XmlPullParserException { // TODO: switch to sax XmlPullParser xpp = Xml.newPullParser(); xpp.setInput(in, null); // null = default to UTF-8 int eventType; String title = ""; Strin...
diff --git a/sip-servlets-tomcat-jboss4/src/main/java/org/jboss/web/tomcat/service/session/JBossCacheClusteredSipApplicationSession.java b/sip-servlets-tomcat-jboss4/src/main/java/org/jboss/web/tomcat/service/session/JBossCacheClusteredSipApplicationSession.java index c0d5f591b..c9c4f0b33 100644 --- a/sip-servlets-tomc...
true
true
protected void populateMetaData() { final String sipAppSessionId = getHaId(); Long ct = (Long) proxy_.getSipApplicationSessionMetaData(sipAppSessionId, CREATION_TIME); if(ct != null) { creationTime = ct; } Integer ip = (Integer) proxy_.getSipApplicationSessionMetaData(sipAppSessionId, INVALIDATION_POLICY)...
protected void populateMetaData() { final String sipAppSessionId = getHaId(); Long ct = (Long) proxy_.getSipApplicationSessionMetaData(sipAppSessionId, CREATION_TIME); if(ct != null) { creationTime = ct; } Integer ip = (Integer) proxy_.getSipApplicationSessionMetaData(sipAppSessionId, INVALIDATION_POLICY)...
diff --git a/client/src/es/deusto/weblab/client/lab/ui/themes/es/deusto/weblab/defaultweb/AllowedExperimentsWindow.java b/client/src/es/deusto/weblab/client/lab/ui/themes/es/deusto/weblab/defaultweb/AllowedExperimentsWindow.java index e662149ee..930a8794b 100644 --- a/client/src/es/deusto/weblab/client/lab/ui/themes/es...
true
true
protected void loadWidgets(){ AllowedExperimentsWindow.uiBinder.createAndBindUi(this); final String hostEntityImage = this.configurationManager.getProperty(DefaultTheme.Configuration.HOST_ENTITY_IMAGE, ""); this.logoImage.setUrl(GWT.getModuleBaseURL() + hostEntityImage); final String hostEntityLink = th...
protected void loadWidgets(){ AllowedExperimentsWindow.uiBinder.createAndBindUi(this); final String hostEntityImage = this.configurationManager.getProperty(DefaultTheme.Configuration.HOST_ENTITY_IMAGE, ""); this.logoImage.setUrl(GWT.getModuleBaseURL() + hostEntityImage); final String hostEntityLink = th...
diff --git a/src/gov/nih/nci/caintegrator/analysis/server/FTestTaskR.java b/src/gov/nih/nci/caintegrator/analysis/server/FTestTaskR.java index f5e769a..f60006f 100644 --- a/src/gov/nih/nci/caintegrator/analysis/server/FTestTaskR.java +++ b/src/gov/nih/nci/caintegrator/analysis/server/FTestTaskR.java @@ -1,247 +1,247 @@...
false
true
public void run() { FTestRequest ftRequest = (FTestRequest) getRequest(); result = new FTestResult(getRequest().getSessionId(), getRequest().getTaskId()); logger.info(getExecutingThreadName() + " processing FTestRequest request=" + ftRequest); try { String dataFileName = ftRequest.getDataFil...
public void run() { FTestRequest ftRequest = (FTestRequest) getRequest(); result = new FTestResult(getRequest().getSessionId(), getRequest().getTaskId()); logger.info(getExecutingThreadName() + " processing FTestRequest request=" + ftRequest); try { String dataFileName = ftRequest.getDataFil...
diff --git a/src/cz/muni/stanse/codestructures/ArgumentPassingManager.java b/src/cz/muni/stanse/codestructures/ArgumentPassingManager.java index b49a350..7dea89c 100644 --- a/src/cz/muni/stanse/codestructures/ArgumentPassingManager.java +++ b/src/cz/muni/stanse/codestructures/ArgumentPassingManager.java @@ -1,104 +1,10...
true
true
private static LinkedList<Pair<String,String>> buildMappingFromCallSiteToCallee(final CFGNode caller, final CFGHandle callee) { final LinkedList<Pair<String,String>> result = new LinkedList<Pair<String,String>>(); if (caller.getNodeType() != CFGN...
private static LinkedList<Pair<String,String>> buildMappingFromCallSiteToCallee(final CFGNode caller, final CFGHandle callee) { final LinkedList<Pair<String,String>> result = new LinkedList<Pair<String,String>>(); if (caller.getNodeType() != CFGN...
diff --git a/app/java/com/kittens/controller/ErrorController.java b/app/java/com/kittens/controller/ErrorController.java index 21ab6f6..4a676c9 100644 --- a/app/java/com/kittens/controller/ErrorController.java +++ b/app/java/com/kittens/controller/ErrorController.java @@ -1,33 +1,34 @@ package com.kittens.controller; ...
true
true
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // ask for this response to not be cached Utils.pleaseDontCache(response); // map all the values final HashMap<String, String> values = new HashMap<String, String>(); values.put("ti...
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // ask for this response to not be cached Utils.pleaseDontCache(response); // map all the values final HashMap<String, String> values = new HashMap<String, String>(); values.put("ti...
diff --git a/src/org/ebookdroid/ui/settings/BookSettingsActivity.java b/src/org/ebookdroid/ui/settings/BookSettingsActivity.java index 79e205e2..19e5030c 100644 --- a/src/org/ebookdroid/ui/settings/BookSettingsActivity.java +++ b/src/org/ebookdroid/ui/settings/BookSettingsActivity.java @@ -1,58 +1,59 @@ package org.eb...
true
true
protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setRequestedOrientation(AppSettings.current().rotation.getOrientation()); final Uri uri = getIntent().getData(); final String fileName = PathFromUri.retrieve(getContentResolver(), uri); ...
protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setRequestedOrientation(AppSettings.current().rotation.getOrientation()); final Uri uri = getIntent().getData(); final String fileName = PathFromUri.retrieve(getContentResolver(), uri); ...
diff --git a/bindings/java/src/net/hyperic/sigar/cmd/Ulimit.java b/bindings/java/src/net/hyperic/sigar/cmd/Ulimit.java index 643cc665..58a62a8c 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/Ulimit.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/Ulimit.java @@ -1,80 +1,80 @@ package net.hyperic.sigar.cmd; ...
true
true
public void output(String[] args) throws SigarException { this.mode = "Cur"; this.invoker = SigarInvokerJMX.getInstance(this.proxy, "Type=ResourceLimit"); for (int i=0; i<args.length; i++) { String arg = args[i]; if (arg.equals("-H")) { t...
public void output(String[] args) throws SigarException { this.mode = "Cur"; this.invoker = SigarInvokerJMX.getInstance(this.proxy, "Type=ResourceLimit"); for (int i=0; i<args.length; i++) { String arg = args[i]; if (arg.equals("-H")) { t...
diff --git a/src/java/main/ru/alepar/minesweeper/SteppedOnABomb.java b/src/java/main/ru/alepar/minesweeper/SteppedOnABomb.java index dea041a..67ec9c1 100644 --- a/src/java/main/ru/alepar/minesweeper/SteppedOnABomb.java +++ b/src/java/main/ru/alepar/minesweeper/SteppedOnABomb.java @@ -1,9 +1,9 @@ package ru.alepar.mine...
true
true
public SteppedOnABomb(Point p) { super(String.format("stepped on a bomdb at (%d, %d)", p.x, p.y)); }
public SteppedOnABomb(Point p) { super(String.format("stepped on a bomb at (%d, %d)", p.x, p.y)); }
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/op/PushOperation.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/op/PushOperation.java index 217db801..3404696d 100644 --- a/org.eclipse.egit.core/src/org/eclipse/egit/core/op/PushOperation.java +++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/op/...
true
true
public void run(IProgressMonitor actMonitor) throws InvocationTargetException { if (operationResult != null) throw new IllegalStateException(CoreText.OperationAlreadyExecuted); for (URIish uri : this.specification.getURIs()) { for (RemoteRefUpdate update : this.specification.getRefUpdates(uri)) if (upd...
public void run(IProgressMonitor actMonitor) throws InvocationTargetException { if (operationResult != null) throw new IllegalStateException(CoreText.OperationAlreadyExecuted); for (URIish uri : this.specification.getURIs()) { for (RemoteRefUpdate update : this.specification.getRefUpdates(uri)) if (upd...
diff --git a/WEB-INF/src/edu/wustl/query/util/listener/QueryServletContextListenerUtil.java b/WEB-INF/src/edu/wustl/query/util/listener/QueryServletContextListenerUtil.java index cfa72bd1..5f317c9d 100644 --- a/WEB-INF/src/edu/wustl/query/util/listener/QueryServletContextListenerUtil.java +++ b/WEB-INF/src/edu/wustl/qu...
true
true
private static void readProperties() { File file = new File(Variables.applicationHome + System.getProperty("file.separator") + "WEB-INF" + System.getProperty("file.separator") + "classes" + System.getProperty("file.separator") + "query.properties"); if (file.exists()) { Properties queryProperties = new ...
private static void readProperties() { File file = new File(Variables.applicationHome + System.getProperty("file.separator") + "WEB-INF" + System.getProperty("file.separator") + "classes" + System.getProperty("file.separator") + "query.properties"); if (file.exists()) { Properties queryProperties = new ...
diff --git a/library/src/main/java/net/sourceforge/cilib/pso/iterationstrategies/PSPGIterationStrategy.java b/library/src/main/java/net/sourceforge/cilib/pso/iterationstrategies/PSPGIterationStrategy.java index 5263f0fc..33501e40 100644 --- a/library/src/main/java/net/sourceforge/cilib/pso/iterationstrategies/PSPGItera...
true
true
private void crossoverStep(PSO algorithm) { fj.data.List<Particle> topology = algorithm.getTopology(); Particle gbest = Topologies.getBestEntity(topology, new SocialBestFitnessComparator<>()); // Get parents final List<Particle> parents = Lists.newArrayList(new RandomSelecto...
private void crossoverStep(PSO algorithm) { fj.data.List<Particle> topology = algorithm.getTopology(); Particle gbest = Topologies.getBestEntity(topology, new SocialBestFitnessComparator<>()); // Get parents final List<Particle> parents = Lists.newArrayList(new RandomSelecto...
diff --git a/spring-data-commons-core/src/main/java/org/springframework/persistence/support/AbstractConstructorEntityInstantiator.java b/spring-data-commons-core/src/main/java/org/springframework/persistence/support/AbstractConstructorEntityInstantiator.java index 6747a900..795d7c05 100644 --- a/spring-data-commons-cor...
true
true
final private <T extends BACKING_INTERFACE> T fromStateInternal(STATE n, Class<T> c) throws IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException { // TODO this is fragile Class<? extends STATE> stateInterface = (Class<? extends STATE>) n.getClass().getInterfaces()[0];...
final private <T extends BACKING_INTERFACE> T fromStateInternal(STATE n, Class<T> c) throws IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException { // TODO this is fragile Class<? extends STATE> stateInterface = (Class<? extends STATE>) n.getClass().getInterfaces()[0];...
diff --git a/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/builder/DroolsBuilder.java b/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/builder/DroolsBuilder.java index 39c76034..83f991ff 100644 --- a/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/bui...
true
true
protected boolean parseResource(IResource res, boolean clean) { try { IJavaProject project = JavaCore.create(res.getProject()); // exclude files that are located in the output directory, // unless the ouput directory is the same as the project location if (!pr...
protected boolean parseResource(IResource res, boolean clean) { try { IJavaProject project = JavaCore.create(res.getProject()); // exclude files that are located in the output directory, // unless the ouput directory is the same as the project location if (!pr...
diff --git a/src/main/java/org/odlabs/wiquery/ui/selectable/SelectableAjaxBehavior.java b/src/main/java/org/odlabs/wiquery/ui/selectable/SelectableAjaxBehavior.java index 02080173..6d60280c 100644 --- a/src/main/java/org/odlabs/wiquery/ui/selectable/SelectableAjaxBehavior.java +++ b/src/main/java/org/odlabs/wiquery/ui/...
true
true
public JsStatement statement() { selectableBehavior.setInnerStopEvent(new JsScopeUiEvent() { private static final long serialVersionUID = 1L; /** * {@inheritDoc} * @see org.odlabs.wiquery.core.javascript.JsScope#execute(org.odlabs.wiquery.core.javascript.JsScopeContext) */ @Override ...
public JsStatement statement() { selectableBehavior.setInnerStopEvent(new JsScopeUiEvent() { private static final long serialVersionUID = 1L; /** * {@inheritDoc} * @see org.odlabs.wiquery.core.javascript.JsScope#execute(org.odlabs.wiquery.core.javascript.JsScopeContext) */ @Override ...
diff --git a/src/Controller/CharacterController.java b/src/Controller/CharacterController.java index 275ba74..3ba7c0e 100644 --- a/src/Controller/CharacterController.java +++ b/src/Controller/CharacterController.java @@ -1,111 +1,112 @@ package controller; import model.Character; import org.newdawn.slick.Color...
true
true
public void keyPressedUpdate(GameContainer gc) { Input input = gc.getInput(); if(input.isKeyDown(Input.KEY_RIGHT)) { characterView.setColor(Color.blue); inGameController.getWorldController().moveBodyRight(); } if(input.isKeyDown(Input.KEY_LEFT)) { characterView.setColor(Color.green); inGameContr...
public void keyPressedUpdate(GameContainer gc) { Input input = gc.getInput(); if(input.isKeyDown(Input.KEY_RIGHT)) { characterView.setColor(Color.blue); inGameController.getWorldController().moveBodyRight(); } if(input.isKeyDown(Input.KEY_LEFT)) { characterView.setColor(Color.green); inGameContr...
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java index fc1c1d06a..cec446f04 100644 --- a/src/com/android/launcher3/LauncherModel.java +++ b/src/com/android/launcher3/LauncherModel.java @@ -1,3074 +1,3074 @@ /* * Copyright (C) 2008 The Android Open Source Projec...
true
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/keymap/vim/ConstructorWrappers.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/keymap/vim/ConstructorWrappers.java index 67b6555e..357a2f13 100644 --- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/keymap/vim/ConstructorWr...
true
true
private static Map<String, KeyStroke> createKeyMap() { HashMap<String, KeyStroke> map = new HashMap<String, KeyStroke>(); // special keys for (SpecialKey key : SpecialKey.values()) { map.put(key.name().toUpperCase(), key(key)); } map.put("DEL", key(SpecialKey....
private static Map<String, KeyStroke> createKeyMap() { HashMap<String, KeyStroke> map = new HashMap<String, KeyStroke>(); // special keys for (SpecialKey key : SpecialKey.values()) { map.put(key.name().toUpperCase(), key(key)); } map.put("DEL", key(SpecialKey....
diff --git a/src/de/questmaster/tudmensa/MensaMeals.java b/src/de/questmaster/tudmensa/MensaMeals.java index 0d01064..376abbb 100644 --- a/src/de/questmaster/tudmensa/MensaMeals.java +++ b/src/de/questmaster/tudmensa/MensaMeals.java @@ -1,474 +1,473 @@ /* * Copyright (C) 2008 Google Inc. * * Licensed under the A...
false
true
public void onCreate(Bundle savedInstanceState) { // Read settings mSettings.ReadSettings(this); // Setup Theme if (mSettings.m_sThemes.equals("dark")) { setTheme(R.style.myTheme); } else if (mSettings.m_sThemes.equals("light")) { setTheme(R.style.myThemeLight); } // Set Content super.onCreate(...
public void onCreate(Bundle savedInstanceState) { // Read settings mSettings.ReadSettings(this); // Setup Theme if (mSettings.m_sThemes.equals("dark")) { setTheme(R.style.myTheme); } else if (mSettings.m_sThemes.equals("light")) { setTheme(R.style.myThemeLight); } // Set Content super.onCreate(...
diff --git a/src/java/org/infoglue/deliver/util/PublicationThread.java b/src/java/org/infoglue/deliver/util/PublicationThread.java index 68430d42b..8bbb449dd 100755 --- a/src/java/org/infoglue/deliver/util/PublicationThread.java +++ b/src/java/org/infoglue/deliver/util/PublicationThread.java @@ -1,85 +1,85 @@ /* =====...
true
true
public synchronized void run() { logger.info("setting block"); RequestAnalyser.getRequestAnalyser().setBlockRequests(true); try { int publicationDelay = 5000; String publicationThreadDelay = CmsPropertyHandler.getPublicationThreadDelay(); if(publicationThreadDelay != null && !p...
public synchronized void run() { logger.info("setting block"); RequestAnalyser.getRequestAnalyser().setBlockRequests(true); try { int publicationDelay = 5000; String publicationThreadDelay = CmsPropertyHandler.getPublicationThreadDelay(); if(publicationThreadDelay != null && !p...
diff --git a/genlab.gui/src/genlab/gui/views/MessagesViewAbstract.java b/genlab.gui/src/genlab/gui/views/MessagesViewAbstract.java index e6e6606..7b51b1b 100644 --- a/genlab.gui/src/genlab/gui/views/MessagesViewAbstract.java +++ b/genlab.gui/src/genlab/gui/views/MessagesViewAbstract.java @@ -1,603 +1,609 @@ package ge...
true
true
public void createPartControl(final Composite parent) { this.parent = parent; this.display = parent.getDisplay(); viewer = new TableViewer( parent, //SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER | SWT.READ_ONLY | SWT.VIRTUAL ); viewer.setUseHashlookup(true);...
public void createPartControl(final Composite parent) { this.parent = parent; this.display = parent.getDisplay(); viewer = new TableViewer( parent, //SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER | SWT.READ_ONLY | SWT.VIRTUAL ); viewer.setUseHashlookup(true);...
diff --git a/easysoa-registry-v1/easysoa-registry-doctypes-core/src/main/java/org/easysoa/registry/dbb/ResourceDownloadServiceImpl.java b/easysoa-registry-v1/easysoa-registry-doctypes-core/src/main/java/org/easysoa/registry/dbb/ResourceDownloadServiceImpl.java index 80b570a8..0f08a7d2 100644 --- a/easysoa-registry-v1/e...
false
true
public ResourceDownloadInfo get(URL url) throws Exception { ResourceDownloadInfoImpl resourceDownloadInfo = new ResourceDownloadInfoImpl(); File file = null; if (!isDelegatedDownloadDisabled) { // First try : Connect to FraSCAti studio download service (TODO : this service must be exp...
public ResourceDownloadInfo get(URL url) throws Exception { ResourceDownloadInfoImpl resourceDownloadInfo = new ResourceDownloadInfoImpl(); File file = null; if (!isDelegatedDownloadDisabled) { // First try : Connect to FraSCAti studio download service (TODO : this service must be exp...
diff --git a/esup-opi-web-jsf-servlet/src/main/java/org/esupportail/opi/web/controllers/user/IndividuController.java b/esup-opi-web-jsf-servlet/src/main/java/org/esupportail/opi/web/controllers/user/IndividuController.java index 8a95ee3b..c469bb9f 100644 --- a/esup-opi-web-jsf-servlet/src/main/java/org/esupportail/opi/...
true
true
public void initIndividuFromApogee(final Individu individuOPI, final Individu individuApogee) { if (log.isDebugEnabled()) { log.debug("entering initIndividuFromApogee(individuOPI " + individuOPI + ", individuApogee " + individuApogee + " ) "); } if (individuO...
public void initIndividuFromApogee(final Individu individuOPI, final Individu individuApogee) { if (log.isDebugEnabled()) { log.debug("entering initIndividuFromApogee(individuOPI " + individuOPI + ", individuApogee " + individuApogee + " ) "); } if (individuO...
diff --git a/cpk-pentaho/src/pt/webdetails/cpk/elements/impl/DashboardElement.java b/cpk-pentaho/src/pt/webdetails/cpk/elements/impl/DashboardElement.java index 9868180..c953f63 100644 --- a/cpk-pentaho/src/pt/webdetails/cpk/elements/impl/DashboardElement.java +++ b/cpk-pentaho/src/pt/webdetails/cpk/elements/impl/Dashb...
false
true
protected void callCDE( Map<String, Map<String, Object>> bloatedMap ) throws UnsupportedEncodingException, IOException { String path = CpkEngine.getInstance().getEnvironment().getPluginUtils().getPluginRelativeDirectory(this.getLocation(), true); ServletRequest wrapper = (HttpServletRequest) bloatedMap...
protected void callCDE( Map<String, Map<String, Object>> bloatedMap ) throws UnsupportedEncodingException, IOException { String path = CpkEngine.getInstance().getEnvironment().getPluginUtils().getPluginRelativeDirectory(this.getLocation(), true); ServletRequest wrapper = (HttpServletRequest) bloatedMap...
diff --git a/gui/src/main/java/org/jboss/as/console/client/shared/runtime/jpa/BasicMetrics.java b/gui/src/main/java/org/jboss/as/console/client/shared/runtime/jpa/BasicMetrics.java index ed5e54a0..ba48a626 100644 --- a/gui/src/main/java/org/jboss/as/console/client/shared/runtime/jpa/BasicMetrics.java +++ b/gui/src/main...
true
true
Widget asWidget() { final ToolStrip toolStrip = new ToolStrip(); toolStrip.addToolButtonRight(new ToolButton(Console.CONSTANTS.common_label_refresh(), new ClickHandler() { @Override public void onClick(ClickEvent event) { presenter.loadMetrics(tokens); ...
Widget asWidget() { final ToolStrip toolStrip = new ToolStrip(); toolStrip.addToolButtonRight(new ToolButton(Console.CONSTANTS.common_label_refresh(), new ClickHandler() { @Override public void onClick(ClickEvent event) { presenter.loadMetrics(tokens); ...
diff --git a/src/haven/GLFrameBuffer.java b/src/haven/GLFrameBuffer.java index c0dcbefa..6ba006ae 100644 --- a/src/haven/GLFrameBuffer.java +++ b/src/haven/GLFrameBuffer.java @@ -1,176 +1,177 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, a...
true
true
public void apply(GOut g) { GL gl = g.gl; synchronized(this) { if((fbo != null) && (fbo.gl != gl)) dispose(); if(fbo == null) { fbo = new FBO(gl); gl.glBindFramebufferEXT(GL.GL_FRAMEBUFFER_EXT, fbo.id); for(int i = 0; i < color.length; i++) gl.glFramebufferTexture2DEXT(GL.GL_FRAMEBUFFER_EX...
public void apply(GOut g) { GL gl = g.gl; synchronized(this) { if((fbo != null) && (fbo.gl != gl)) dispose(); if(fbo == null) { fbo = new FBO(gl); gl.glBindFramebufferEXT(GL.GL_FRAMEBUFFER_EXT, fbo.id); for(int i = 0; i < color.length; i++) gl.glFramebufferTexture2DEXT(GL.GL_FRAMEBUFFER_EX...
diff --git a/src/main/java/suite/algo/LempelZivWelch.java b/src/main/java/suite/algo/LempelZivWelch.java index 9ada1cca2..8682601fb 100644 --- a/src/main/java/suite/algo/LempelZivWelch.java +++ b/src/main/java/suite/algo/LempelZivWelch.java @@ -1,86 +1,86 @@ package suite.algo; import java.util.ArrayList; import j...
true
true
public void decode(Source<Integer> source, Sink<Unit> sink) { List<List<Unit>> dict = new ArrayList<>(); for (Unit unit : units) dict.add(Arrays.asList(unit)); Integer index; if ((index = source.source()) != null) { List<Unit> word; for (Unit unit : word = dict.get(index)) sink.sink(unit); ...
public void decode(Source<Integer> source, Sink<Unit> sink) { List<List<Unit>> dict = new ArrayList<>(); for (Unit unit : units) dict.add(Arrays.asList(unit)); Integer index; if ((index = source.source()) != null) { List<Unit> word; for (Unit unit : word = dict.get(index)) sink.sink(unit); ...
diff --git a/drools-wb-jcr2vfs-migration/drools-wb-jcr2vfs-migration-core/src/main/java/org/drools/workbench/jcr2vfsmigration/config/MigrationConfig.java b/drools-wb-jcr2vfs-migration/drools-wb-jcr2vfs-migration-core/src/main/java/org/drools/workbench/jcr2vfsmigration/config/MigrationConfig.java index 8270fabf7..2ac433...
true
true
private boolean parseArgOutputVfsRepository(CommandLine commandLine, HelpFormatter formatter, Options options) { outputVfsRepository = new File(commandLine.getOptionValue("o", "outputVfs")); forceOverwriteOutputVfsRepository = Boolean.parseBoolean(commandLine.getOptionValue("f", "false")); i...
private boolean parseArgOutputVfsRepository(CommandLine commandLine, HelpFormatter formatter, Options options) { outputVfsRepository = new File(commandLine.getOptionValue("o", "outputVfs")); forceOverwriteOutputVfsRepository = commandLine.hasOption("f"); if (outputVfsRepository.exists()) { ...
diff --git a/geoserver/web/src/main/java/org/vfny/geoserver/action/MapPreviewAction.java b/geoserver/web/src/main/java/org/vfny/geoserver/action/MapPreviewAction.java index 311410d096..96a01e7f38 100644 --- a/geoserver/web/src/main/java/org/vfny/geoserver/action/MapPreviewAction.java +++ b/geoserver/web/src/main/java/o...
false
true
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ArrayList dsList = new ArrayList(); ArrayList ftList = new ArrayList(); ArrayList bboxList = new ArrayList(); ...
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ArrayList dsList = new ArrayList(); ArrayList ftList = new ArrayList(); ArrayList bboxList = new ArrayList(); ...
diff --git a/src/com/agodwin/hideseek/Main.java b/src/com/agodwin/hideseek/Main.java index b3594d0..6cfa787 100644 --- a/src/com/agodwin/hideseek/Main.java +++ b/src/com/agodwin/hideseek/Main.java @@ -1,246 +1,246 @@ package com.agodwin.hideseek; import java.util.HashMap; import java.util.logging.Level; import ...
false
true
public boolean onCommand(CommandSender sender, Command command, String CommandLabel, String[] args) { Player p = (Player) sender; if (CommandLabel.equalsIgnoreCase("hns")) { if (args.length == 0) { p.sendMessage(info + "Welcome to Hide and Seek version " + this.getDescription().getVersion()); p...
public boolean onCommand(CommandSender sender, Command command, String CommandLabel, String[] args) { Player p = (Player) sender; if (CommandLabel.equalsIgnoreCase("hns")) { if (args.length == 0) { p.sendMessage(info + "Welcome to Hide and Seek version " + this.getDescription().getVersion()); p...
diff --git a/src/net/sf/freecol/client/control/InGameController.java b/src/net/sf/freecol/client/control/InGameController.java index 1c299ae31..46f6399c7 100644 --- a/src/net/sf/freecol/client/control/InGameController.java +++ b/src/net/sf/freecol/client/control/InGameController.java @@ -1,3873 +1,3874 @@ /** * Cop...
true
true
public void buildColony() { if (freeColClient.getGame().getCurrentPlayer() != freeColClient.getMyPlayer()) { freeColClient.getCanvas().showInformationMessage("notYourTurn"); return; } Client client = freeColClient.getClient(); Game game = freeColClient.getGam...
public void buildColony() { if (freeColClient.getGame().getCurrentPlayer() != freeColClient.getMyPlayer()) { freeColClient.getCanvas().showInformationMessage("notYourTurn"); return; } Client client = freeColClient.getClient(); Game game = freeColClient.getGam...
diff --git a/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/clientpackets/CM_LEGION.java b/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/clientpackets/CM_LEGION.java index 11474d4f..3d892a5e 100644 --- a/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/clientpackets/CM_LEGION.java +++ b/AE-...
true
true
protected void runImpl() { final Player activePlayer = getConnection().getActivePlayer(); if(activePlayer.isLegionMember()) { final Legion legion = activePlayer.getLegionMember().getLegion(); switch(exOpcode) { /** Invite to legion **/ case 0x01: if(activePlayer.getLifeStats().isAlreadyDe...
protected void runImpl() { final Player activePlayer = getConnection().getActivePlayer(); if(activePlayer.isLegionMember()) { final Legion legion = activePlayer.getLegionMember().getLegion(); switch(exOpcode) { /** Invite to legion **/ case 0x01: if(activePlayer.getLifeStats().isAlreadyDe...
diff --git a/dbflute-runtime/src/main/java/org/seasar/dbflute/cbean/sqlclause/SqlClauseMsAccess.java b/dbflute-runtime/src/main/java/org/seasar/dbflute/cbean/sqlclause/SqlClauseMsAccess.java index 6a49d9205..32136f0bf 100644 --- a/dbflute-runtime/src/main/java/org/seasar/dbflute/cbean/sqlclause/SqlClauseMsAccess.java +...
true
true
public void registerOuterJoin(String foreignAliasName, String foreignTableDbName, String localAliasName, String localTableDbName, Map<ColumnRealName, ColumnRealName> joinOnMap, String fixedCondition, FixedConditionResolver fixedConditionResolver) { // MS-Access does not support addit...
public void registerOuterJoin(String foreignAliasName, String foreignTableDbName, String localAliasName, String localTableDbName, Map<ColumnRealName, ColumnRealName> joinOnMap, String fixedCondition, FixedConditionResolver fixedConditionResolver) { // MS-Access does not support addit...
diff --git a/libraries/javalib/java/util/ArrayList.java b/libraries/javalib/java/util/ArrayList.java index 9147982d5..889069e18 100644 --- a/libraries/javalib/java/util/ArrayList.java +++ b/libraries/javalib/java/util/ArrayList.java @@ -1,250 +1,251 @@ /* * Java core library component. * * Copyright (c) 1999 ...
true
true
public void ensureCapacity(int minCapacity) { // Check current capacity if (a.length - off >= minCapacity) { return; } // Round up desired capacity to nearest power of 2 (- 12) to // avoid n^2 behavior when adding one element at a time. The // -12 part should be optimized from empirical tests. int b...
public void ensureCapacity(int minCapacity) { // Check current capacity if (a.length - off >= minCapacity) { return; } // Round up desired capacity to nearest power of 2 (- 12) to // avoid n^2 behavior when adding one element at a time. The // -12 part should be optimized from empirical tests. int b...
diff --git a/deltaspike/cdictrl/tck/src/main/java/org/apache/deltaspike/cdise/tck/ContainerCtrlTckTest.java b/deltaspike/cdictrl/tck/src/main/java/org/apache/deltaspike/cdise/tck/ContainerCtrlTckTest.java index 5fa91593..51b87809 100644 --- a/deltaspike/cdictrl/tck/src/main/java/org/apache/deltaspike/cdise/tck/Containe...
true
true
public void testRestartContexts() { CdiContainer cdiContainer = CdiContainerLoader.getCdiContainer(); Assert.assertNotNull(cdiContainer); cdiContainer.boot(); cdiContainer.getContextControl().startContexts(); BeanManager beanManager = cdiContainer.getBeanManager(); ...
public void testRestartContexts() { CdiContainer cdiContainer = CdiContainerLoader.getCdiContainer(); Assert.assertNotNull(cdiContainer); cdiContainer.boot(); cdiContainer.getContextControl().startContexts(); BeanManager beanManager = cdiContainer.getBeanManager(); ...
diff --git a/src/test/java/com/fasterxml/jackson/databind/interop/TestExternalizable.java b/src/test/java/com/fasterxml/jackson/databind/interop/TestExternalizable.java index a71422c6f..76ff088c3 100644 --- a/src/test/java/com/fasterxml/jackson/databind/interop/TestExternalizable.java +++ b/src/test/java/com/fasterxml/...
true
true
public void testSerializeAsExternalizable() throws Exception { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ObjectOutputStream obs = new ObjectOutputStream(bytes); final MyPojo input = new MyPojo(13, "Foobar", new int[] { 1, 2, 3 } ); obs.writeObject(input); ...
public void testSerializeAsExternalizable() throws Exception { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ObjectOutputStream obs = new ObjectOutputStream(bytes); final MyPojo input = new MyPojo(13, "Foobar", new int[] { 1, 2, 3 } ); obs.writeObject(input); ...
diff --git a/runtime/src/org/zaluum/launch/Run.java b/runtime/src/org/zaluum/launch/Run.java index 3315b12..ed2ab8f 100644 --- a/runtime/src/org/zaluum/launch/Run.java +++ b/runtime/src/org/zaluum/launch/Run.java @@ -1,55 +1,55 @@ package org.zaluum.launch; import java.awt.event.WindowAdapter; import java.awt.even...
true
true
public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, SecurityException, NoSuchMethodException, IllegalArgumentException, InvocationTargetException, NoSuchFieldException { Class<?> c = Thread.currentThread().getContextClassLoader() ...
public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, SecurityException, NoSuchMethodException, IllegalArgumentException, InvocationTargetException, NoSuchFieldException { Class<?> c = Thread.currentThread().getContextClassLoader() ...
diff --git a/src/org/pixmob/hcl/HttpRequestBuilder.java b/src/org/pixmob/hcl/HttpRequestBuilder.java index 1507cc7..4470778 100644 --- a/src/org/pixmob/hcl/HttpRequestBuilder.java +++ b/src/org/pixmob/hcl/HttpRequestBuilder.java @@ -1,485 +1,487 @@ /* * Copyright (C) 2012 Pixmob (http://github.com/pixmob) * * Li...
true
true
public void execute() throws HttpClientException { HttpURLConnection conn = null; UncloseableInputStream payloadStream = null; try { if (parameters != null && !parameters.isEmpty()) { final StringBuilder buf = new StringBuilder(256); if (!HTTP_POST...
public void execute() throws HttpClientException { HttpURLConnection conn = null; UncloseableInputStream payloadStream = null; try { if (parameters != null && !parameters.isEmpty()) { final StringBuilder buf = new StringBuilder(256); if (!HTTP_POST...
diff --git a/src/main/java/com/minecraftdimensions/bungeesuiteteleports/listeners/TeleportsListener.java b/src/main/java/com/minecraftdimensions/bungeesuiteteleports/listeners/TeleportsListener.java index 58ca33b..3352be8 100644 --- a/src/main/java/com/minecraftdimensions/bungeesuiteteleports/listeners/TeleportsListene...
true
true
public void playerConnect (PlayerJoinEvent e){ if(TeleportsManager.pendingTeleports.containsKey(e.getPlayer().getName())){ Player t = TeleportsManager.pendingTeleports.get(e.getPlayer().getName()); TeleportsManager.pendingTeleports.remove(e.getPlayer().getName()); if(!t.isOnline()){ e.getPlayer().sendMe...
public void playerConnect (PlayerJoinEvent e){ if ( e.getPlayer().hasPermission( "bungeesuite.*" ) ) { PermissionsManager.addAllPermissions( e.getPlayer() ); } else if ( e.getPlayer().hasPermission( "bungeesuite.admin" ) ) { PermissionsManager.addAdminPermissions( e.getPlayer() );...
diff --git a/geotools2/geotools-src/proj4j/src/org/geotools/proj4j/ProjectionFactory.java b/geotools2/geotools-src/proj4j/src/org/geotools/proj4j/ProjectionFactory.java index cf1a8ca66..9805def64 100644 --- a/geotools2/geotools-src/proj4j/src/org/geotools/proj4j/ProjectionFactory.java +++ b/geotools2/geotools-src/proj4...
true
true
public static Projection createProjection(String[] args) throws ProjectionException{ ParamSet params = new ParamSet(); for(int i=0;i<args.length;i++){ params.addParam(args[i]); } if(params.contains("init")){ throw new ProjectionException("Init files not suppor...
public static Projection createProjection(String[] args) throws ProjectionException{ ParamSet params = new ParamSet(); for(int i=0;i<args.length;i++){ params.addParam(args[i]); } if(params.contains("init")){ throw new ProjectionException("Init files not suppor...
diff --git a/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/store/channel/AbstractTxTimeoutMessageStoreTests.java b/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/store/channel/AbstractTxTimeoutMessageStoreTests.java index 86227ad3ad..ae1d65188d 100644 --- a/sprin...
true
true
public void test() throws InterruptedException { int maxMessages = 10; int maxWaitTime = 30000; final TransactionTemplate transactionTemplate = new TransactionTemplate(transactionManager); transactionTemplate.setIsolationLevel(Isolation.READ_COMMITTED.value()); transactionTemplate.setPropagationBehavior(T...
public void test() throws InterruptedException { int maxMessages = 10; int maxWaitTime = 30000; final TransactionTemplate transactionTemplate = new TransactionTemplate(transactionManager); transactionTemplate.setIsolationLevel(Isolation.READ_COMMITTED.value()); transactionTemplate.setPropagationBehavior(T...
diff --git a/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/site/SiteBean.java b/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/site/SiteBean.java index 0b25154..34c9382 100644 --- a/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/site/SiteBean.java +++ b/to...
true
true
public SiteBean(SessionManager sessionManager, SiteService siteService, AuthzGroupService authzGroupService, String siteId) { boolean siteExists = true; String status = "900"; ArrayList<HashMap<String, Object>> arlpages = new ArrayList<HashMap<String, Object>>(); String curUser = sessionManager.getCurrent...
public SiteBean(SessionManager sessionManager, SiteService siteService, AuthzGroupService authzGroupService, String siteId) { boolean siteExists = true; String status = "900"; ArrayList<HashMap<String, Object>> arlpages = new ArrayList<HashMap<String, Object>>(); String curUser = sessionManager.getCurrent...
diff --git a/providers/gogrid/src/test/java/org/jclouds/gogrid/compute/GoGridComputeServiceLiveTest.java b/providers/gogrid/src/test/java/org/jclouds/gogrid/compute/GoGridComputeServiceLiveTest.java index fca45c383..5b648d666 100644 --- a/providers/gogrid/src/test/java/org/jclouds/gogrid/compute/GoGridComputeServiceLiv...
true
true
protected void checkResponseEqualsHostname(ExecResponse execResponse, NodeMetadata node1) { // hostname is not completely predictable based on node metadata assert execResponse.getOutput().trim().startsWith(node1.getName()); }
protected void checkResponseEqualsHostname(ExecResponse execResponse, NodeMetadata node1) { // hostname is not completely predictable based on node metadata assert execResponse.getOutput().trim().startsWith(node1.getName()) : execResponse + ": " + node1; }
diff --git a/src/org/encog/ml/genetic/population/BasicPopulation.java b/src/org/encog/ml/genetic/population/BasicPopulation.java index ab038ed04..c56857f09 100644 --- a/src/org/encog/ml/genetic/population/BasicPopulation.java +++ b/src/org/encog/ml/genetic/population/BasicPopulation.java @@ -1,479 +1,480 @@ /* * Enc...
true
true
public void persistToMap(PersistedObject obj) { obj.clear(PersistConst.TYPE_BASIC_POPULATION); obj.setStandardProperties(this); obj.setProperty( Population.PROPERTY_NEXT_GENE_ID, (int)this.geneIDGenerate.getCurrentID(), false ); obj.setProperty( Population.PROPERTY_NEXT_GENOME_ID, (int)this.genomeIDGenerat...
public void persistToMap(PersistedObject obj) { obj.clear(PersistConst.TYPE_BASIC_POPULATION); obj.setStandardProperties(this); obj.setProperty( Population.PROPERTY_NEXT_GENE_ID, (int)this.geneIDGenerate.getCurrentID(), false ); obj.setProperty( Population.PROPERTY_NEXT_GENOME_ID, (int)this.genomeIDGenerat...
diff --git a/src/main/java/net/pms/util/StringUtil.java b/src/main/java/net/pms/util/StringUtil.java index 1927a05f8..b136fd15f 100644 --- a/src/main/java/net/pms/util/StringUtil.java +++ b/src/main/java/net/pms/util/StringUtil.java @@ -1,136 +1,137 @@ package net.pms.util; import static org.apache.commons.lang3.St...
true
true
public static double convertStringToTime(String time) throws IllegalArgumentException { if (isBlank(time)) { throw new IllegalArgumentException("time String should not be blank."); } try { return Double.parseDouble(time); } catch (NumberFormatException e) { String[] arrs = time.split(":"); double ...
public static double convertStringToTime(String time) throws IllegalArgumentException { if (isBlank(time)) { throw new IllegalArgumentException("time String should not be blank."); } try { return Double.parseDouble(time); } catch (NumberFormatException e) { String[] arrs = time.split(":"); double ...
diff --git a/src/net/jnotes/JNotes.java b/src/net/jnotes/JNotes.java index 7b684af..ee8af84 100644 --- a/src/net/jnotes/JNotes.java +++ b/src/net/jnotes/JNotes.java @@ -1,52 +1,52 @@ package net.jnotes; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.LineNumberReader; ...
true
true
public static void main(String[] args) throws IOException { Tone t = new Tone(); LineNumberReader lnr = new LineNumberReader(new FileReader(new File("tune.txt"))); lnr.skip(Long.MAX_VALUE); System.out.println(lnr.getLineNumber()); TuneParser tp = new TuneParser(); Scanner sc = new Scanner(new File("tune....
public static void main(String[] args) throws IOException { Tone t = new Tone(); LineNumberReader lnr = new LineNumberReader(new FileReader(new File("tune.txt"))); lnr.skip(Long.MAX_VALUE); System.out.println(lnr.getLineNumber()); TuneParser tp = new TuneParser(); Scanner sc = new Scanner(new File("tune....
diff --git a/src/com/android/mms/transaction/MessagingNotification.java b/src/com/android/mms/transaction/MessagingNotification.java index 64cddc29..369ffa15 100644 --- a/src/com/android/mms/transaction/MessagingNotification.java +++ b/src/com/android/mms/transaction/MessagingNotification.java @@ -1,1554 +1,1555 @@ /*...
false
true
private static void updateNotification( Context context, boolean isNew, int uniqueThreadCount, SortedSet<NotificationInfo> notificationSet) { // If the user has turned off notifications in settings, don't do any notifying. if (!MessagingPreferenceActiv...
private static void updateNotification( Context context, boolean isNew, int uniqueThreadCount, SortedSet<NotificationInfo> notificationSet) { // If the user has turned off notifications in settings, don't do any notifying. if (!MessagingPreferenceActiv...
diff --git a/src/org/klnusbaum/udj/PlayerActivity.java b/src/org/klnusbaum/udj/PlayerActivity.java index 13843f5..e8ef3d7 100644 --- a/src/org/klnusbaum/udj/PlayerActivity.java +++ b/src/org/klnusbaum/udj/PlayerActivity.java @@ -1,216 +1,218 @@ /** * Copyright 2011 Kurtis L. Nusbaum * * This file is part of UDJ...
false
true
public boolean onCreateOptionsMenu(Menu menu){ AccountManager am = AccountManager.get(this); if(Utils.isCurrentPlayerOwner(am, account)){ int playbackState = Utils.getPlaybackState(am, account); if(playbackState == Constants.PLAYING_STATE){ menu.add("Pause") .setShowAsAction(Menu...
public boolean onCreateOptionsMenu(Menu menu){ AccountManager am = AccountManager.get(this); if(Utils.isCurrentPlayerOwner(am, account)){ int playbackState = Utils.getPlaybackState(am, account); if(playbackState == Constants.PLAYING_STATE){ menu.add("Pause") .setIcon(R.drawable.a...
diff --git a/src/main/java/de/cismet/cids/custom/wunda_blau/search/BaulastWindowSearch.java b/src/main/java/de/cismet/cids/custom/wunda_blau/search/BaulastWindowSearch.java index f3a08b07..ee896fb7 100644 --- a/src/main/java/de/cismet/cids/custom/wunda_blau/search/BaulastWindowSearch.java +++ b/src/main/java/de/cismet/...
true
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; buttonGroup1 = new javax.swing.ButtonGroup(); panSearch = new javax.swing.JPanel(); panCommand = new javax.swing.JPanel(); pnlAttributeFilter = new javax.swing.JPanel(); chkGeloescht = ne...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; buttonGroup1 = new javax.swing.ButtonGroup(); panSearch = new javax.swing.JPanel(); panCommand = new javax.swing.JPanel(); pnlAttributeFilter = new javax.swing.JPanel(); chkGeloescht = ne...