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/com/matburt/mobileorg/Synchronizers/Synchronizer.java b/src/com/matburt/mobileorg/Synchronizers/Synchronizer.java index 3df193f..06da1c1 100644 --- a/src/com/matburt/mobileorg/Synchronizers/Synchronizer.java +++ b/src/com/matburt/mobileorg/Synchronizers/Synchronizer.java @@ -1,267 +1,267 @@ package co...
true
true
BufferedWriter getWriteHandle(String localRelPath) throws ReportableError { String storageMode = this.appSettings.getString("storageMode", ""); BufferedWriter writer = null; if (storageMode.equals("internal") || storageMode == null) { FileOutputStream fs; try { ...
BufferedWriter getWriteHandle(String localRelPath) throws ReportableError { String storageMode = this.appSettings.getString("storageMode", ""); BufferedWriter writer = null; if (storageMode.equals("internal") || storageMode == null) { FileOutputStream fs; try { ...
diff --git a/extension/costengine/src/main/java/org/eevolution/process/GenerateCostDetail.java b/extension/costengine/src/main/java/org/eevolution/process/GenerateCostDetail.java index f96b1ae..c411697 100755 --- a/extension/costengine/src/main/java/org/eevolution/process/GenerateCostDetail.java +++ b/extension/costeng...
true
true
private void generateCostDetail() { //for each Account Schema for(MAcctSchema as :acctSchemas) { for (MCostType ct : costTypes) { for (MCostElement ce : costElements) { applyCriterial(as.getC_AcctSchema_ID(),ct.getM_CostType_ID() ,ce.getM_CostEle...
private void generateCostDetail() { //for each Account Schema for(MAcctSchema as :acctSchemas) { for (MCostType ct : costTypes) { for (MCostElement ce : costElements) { applyCriterial(as.getC_AcctSchema_ID(),ct.getM_CostType_ID() ,ce.getM_CostEle...
diff --git a/mapscript/java/examples/QueryByAttributeUnicode.java b/mapscript/java/examples/QueryByAttributeUnicode.java index aec867b4..b23988ad 100644 --- a/mapscript/java/examples/QueryByAttributeUnicode.java +++ b/mapscript/java/examples/QueryByAttributeUnicode.java @@ -1,46 +1,46 @@ import edu.umn.gis.mapscript.*...
true
true
public static void main(String[] args) { String filter="/S�dliche Weinstra�e/"; if (args.length == 2) { filter=args[1]; } // Unsupported //String langSettings=System.getenv("LANG"); // Only since jdk 1.5 //String charsetSetting=Charset.defaultCharset().displayName(); String charsetSetting = new ja...
public static void main(String[] args) { String filter="/Südliche Weinstraße/"; if (args.length == 2) { filter=args[1]; } // Unsupported //String langSettings=System.getenv("LANG"); // Only since jdk 1.5 //String charsetSetting=Charset.defaultCharset().displayName(); String charsetSetting = new ja...
diff --git a/src/com/audiolab/areago/MainActivity.java b/src/com/audiolab/areago/MainActivity.java index 3daae2b..537271c 100644 --- a/src/com/audiolab/areago/MainActivity.java +++ b/src/com/audiolab/areago/MainActivity.java @@ -1,283 +1,291 @@ package com.audiolab.areago; import java.io.File; import java.io.I...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); findViewById(R.id.imageView1).setClickable(false); getWindow().setBackgroundDrawableResource(android.R.color.white); //Cargar datos de las pre...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); findViewById(R.id.imageView1).setClickable(false); getWindow().setBackgroundDrawableResource(android.R.color.white); //Cargar datos de las pre...
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/AbstractBranchSelectionDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/AbstractBranchSelectionDialog.java index d43336ad..ed64d4ed 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/AbstractBranch...
true
true
protected final Composite createDialogArea(Composite base) { Composite parent = (Composite) super.createDialogArea(base); parent.setLayout(GridLayoutFactory.fillDefaults().create()); FilteredTree tree = new FilteredTree(parent, SWT.SINGLE | SWT.BORDER, new PatternFilter(), true); branchTree = tree.getView...
protected final Composite createDialogArea(Composite base) { Composite parent = (Composite) super.createDialogArea(base); parent.setLayout(GridLayoutFactory.fillDefaults().create()); FilteredTree tree = new FilteredTree(parent, SWT.SINGLE | SWT.BORDER, new PatternFilter(), true); branchTree = tree.getView...
diff --git a/src/main/java/com/ning/metrics/action/endpoint/HdfsBrowser.java b/src/main/java/com/ning/metrics/action/endpoint/HdfsBrowser.java index c4df90a..67a6b97 100644 --- a/src/main/java/com/ning/metrics/action/endpoint/HdfsBrowser.java +++ b/src/main/java/com/ning/metrics/action/endpoint/HdfsBrowser.java @@ -1,2...
true
true
public Response upload( final InputStream body, @QueryParam("path") final String outputPath, @QueryParam("overwrite") @DefaultValue("false") final boolean overwrite, @QueryParam("replication") @DefaultValue("3") final short replication, @QueryParam("overwrite") @DefaultValue(...
public Response upload( final InputStream body, @QueryParam("path") final String outputPath, @QueryParam("overwrite") @DefaultValue("false") final boolean overwrite, @QueryParam("replication") @DefaultValue("3") final short replication, @QueryParam("blocksize") @DefaultValue(...
diff --git a/src/com/engine9/FavouriteManager.java b/src/com/engine9/FavouriteManager.java index fb3de4e..1961beb 100644 --- a/src/com/engine9/FavouriteManager.java +++ b/src/com/engine9/FavouriteManager.java @@ -1,119 +1,119 @@ package com.engine9; import java.io.BufferedReader; import java.io.File; import java....
true
true
public static void deleteFavourite(String fav, Context context){ new File(context.getFilesDir(), "favourites.txt"); try { BufferedReader input = new BufferedReader(new InputStreamReader( context.openFileInput("favourites.txt"))); String inputStr; String stringBuffer = ""; while((inputStr = input.r...
public static void deleteFavourite(String fav, Context context){ new File(context.getFilesDir(), "favourites.txt"); try { BufferedReader input = new BufferedReader(new InputStreamReader( context.openFileInput("favourites.txt"))); String inputStr; String stringBuffer = ""; while((inputStr = input.r...
diff --git a/com.quanleimu.test/src/com/baixing/activity/test/DailyTestCase.java b/com.quanleimu.test/src/com/baixing/activity/test/DailyTestCase.java index ad3c3cb5..2f249bc3 100644 --- a/com.quanleimu.test/src/com/baixing/activity/test/DailyTestCase.java +++ b/com.quanleimu.test/src/com/baixing/activity/test/DailyTes...
true
true
public void testHome() throws Exception { //Check some tab && logo assertNotNull("Home Category/Search title not found", findElementByText(TAB_ID_HOME_TEXT)); assertNotNull("Home Post title not found", findElementByText(TAB_ID_POST_TEXT)); assertNotNull("Home MyCenter title not found", findElementByText(TAB_ID...
public void testHome() throws Exception { //Check some tab && logo assertNotNull("Home Category/Search title not found", findElementByText(TAB_ID_HOME_TEXT)); assertNotNull("Home Post title not found", findElementByText(TAB_ID_POST_TEXT)); assertNotNull("Home MyCenter title not found", findElementByText(TAB_ID...
diff --git a/src/Main.java b/src/Main.java index eee9c9b..7d9e38b 100644 --- a/src/Main.java +++ b/src/Main.java @@ -1,110 +1,114 @@ import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.ArrayList; import core.Action; ...
false
true
public static void main(String[] args) throws Exception { int rounds = 1; boolean quiet = false; String[] argss = { "D:\\Dropbox\\Uni\\AI\\quarto.jar -g -p random -p human", "D:\\Dropbox\\Uni\\AI\\quarto.jar -g -p human -p random",}; //TODO: rewrite args parsing String command1 = "java -jar "...
public static void main(String[] args) throws Exception { int rounds = 1; boolean quiet = false; String[] argss = { "D:\\Dropbox\\Uni\\AI\\quarto.jar -g -p random -p human", "D:\\Dropbox\\Uni\\AI\\quarto.jar -g -p human -p random",}; //TODO: rewrite args parsing String command1 = "java " + ar...
diff --git a/asm/src/org/objectweb/asm/tree/analysis/Frame.java b/asm/src/org/objectweb/asm/tree/analysis/Frame.java index 69459649..bbcf0291 100644 --- a/asm/src/org/objectweb/asm/tree/analysis/Frame.java +++ b/asm/src/org/objectweb/asm/tree/analysis/Frame.java @@ -1,667 +1,667 @@ /*** * ASM: a very small and fast ...
true
true
public void execute( final AbstractInsnNode insn, final Interpreter interpreter) throws AnalyzerException { Value value1, value2, value3, value4; List values; int var; switch (insn.getOpcode()) { case Opcodes.NOP: break; ca...
public void execute( final AbstractInsnNode insn, final Interpreter interpreter) throws AnalyzerException { Value value1, value2, value3, value4; List values; int var; switch (insn.getOpcode()) { case Opcodes.NOP: break; ca...
diff --git a/org.eclipse.mylyn.reviews.r4e.mail.smtp/src/org/eclipse/mylyn/reviews/r4e/mail/smtp/mailVersion/Smtp.java b/org.eclipse.mylyn.reviews.r4e.mail.smtp/src/org/eclipse/mylyn/reviews/r4e/mail/smtp/mailVersion/Smtp.java index 5bc5619..078344b 100644 --- a/org.eclipse.mylyn.reviews.r4e.mail.smtp/src/org/eclipse/m...
true
true
private static void createAndSendEmail(String aSMTPServer, String aFrom, String[] aEmails, String aSubject, String aBody, String aAttachment) throws MessagingException { final Properties props = new Properties(); props.setProperty("mail.smtp.host", aSMTPServer); final Session session = Session.getInstance(pr...
private static void createAndSendEmail(String aSMTPServer, String aFrom, String[] aEmails, String aSubject, String aBody, String aAttachment) throws MessagingException { final Properties props = new Properties(); props.setProperty("mail.smtp.host", aSMTPServer); final Session session = Session.getInstance(pr...
diff --git a/plugins/net.refractions.udig.catalog.worldimage/src/net/refractions/udig/catalog/internal/worldimage/InMemoryCoverageLoader.java b/plugins/net.refractions.udig.catalog.worldimage/src/net/refractions/udig/catalog/internal/worldimage/InMemoryCoverageLoader.java index 15e363d4c..ca9640876 100644 --- a/plugins...
false
true
private void updateMemoryLevel() throws IOException { int heap; int originalHeap = UiPlugin.getMaxHeapSize(); if (originalHeap < 700) { heap = 1024; } else if( originalHeap < 1500) { heap = 2048; } else { heap = originalHeap * 2; }...
private void updateMemoryLevel() throws IOException { int heap; int originalHeap = UiPlugin.getMaxHeapSize(); if (originalHeap < 700) { heap = 1024; } else if( originalHeap < 1500) { heap = 2048; } else { heap = originalHeap * 2; }...
diff --git a/src/edu/mit/moneyManager/view/LoginActivity.java b/src/edu/mit/moneyManager/view/LoginActivity.java index 512944a..3d1ff3e 100644 --- a/src/edu/mit/moneyManager/view/LoginActivity.java +++ b/src/edu/mit/moneyManager/view/LoginActivity.java @@ -1,77 +1,77 @@ package edu.mit.moneyManager.view; import edu...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.login); Button buttonLogin = (Button) findViewById(R.id.login_button); EditText username = (EditText) findViewById(R.id.login_username); username.setInputTyp...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.login); Button buttonLogin = (Button) findViewById(R.id.login_button); EditText username = (EditText) findViewById(R.id.login_username); username.setInputTyp...
diff --git a/pace-base/src/main/java/com/pace/base/project/utils/PafExcelUtil.java b/pace-base/src/main/java/com/pace/base/project/utils/PafExcelUtil.java index 7f2c5f58..61cd8ad7 100644 --- a/pace-base/src/main/java/com/pace/base/project/utils/PafExcelUtil.java +++ b/pace-base/src/main/java/com/pace/base/project/utils...
true
true
public static void writeExcelSheet(PafExcelInput input, List<PafExcelRow> paceRowList) throws PafException { if ( input == null ) { throw new IllegalArgumentException("Pace Excel Input cannot be null"); } else if ( input.getFullWorkbookName() == null && input.getWorkbook() == null ) { thro...
public static void writeExcelSheet(PafExcelInput input, List<PafExcelRow> paceRowList) throws PafException { if ( input == null ) { throw new IllegalArgumentException("Pace Excel Input cannot be null"); } else if ( input.getFullWorkbookName() == null && input.getWorkbook() == null ) { thro...
diff --git a/bindings/java/src/org/sleuthkit/datamodel/LibraryUtils.java b/bindings/java/src/org/sleuthkit/datamodel/LibraryUtils.java index 35fc3798..6a258015 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/LibraryUtils.java +++ b/bindings/java/src/org/sleuthkit/datamodel/LibraryUtils.java @@ -1,161 +1,161 @@ ...
true
true
public static void loadLibrary(Lib library) { StringBuilder path = new StringBuilder(); path.append("/NATIVELIBS/"); path.append(getPlatform()); String libName = library.getLibName(); if(library == Lib.TSK_JNI && isWindows()) { libName = "lib" + libName; } path.append("/"); path.append(libName...
public static void loadLibrary(Lib library) { StringBuilder path = new StringBuilder(); path.append("/NATIVELIBS/"); path.append(getPlatform()); String libName = library.getLibName(); if(library == Lib.TSK_JNI && (isWindows() || isMac())) { libName = "lib" + libName; } path.append("/"); path.a...
diff --git a/processor/src/main/java/org/apache/camel/processor/mashup/model/Mashup.java b/processor/src/main/java/org/apache/camel/processor/mashup/model/Mashup.java index 2be50ba..ea4212b 100644 --- a/processor/src/main/java/org/apache/camel/processor/mashup/model/Mashup.java +++ b/processor/src/main/java/org/apache/...
true
true
public void digeste(InputStream inputStream) throws Exception { Digester digester = new Digester(); digester.push(this); digester.addSetProperties("mashup"); digester.addObjectCreate("mashup/cookiestore", CookieStore.class); digester.addSetProperties("mashup/cookie...
public void digeste(InputStream inputStream) throws Exception { Digester digester = new Digester(); digester.push(this); digester.addSetProperties("mashup"); digester.addObjectCreate("mashup/cookiestore", CookieStore.class); digester.addSetProperties("mashup/cookie...
diff --git a/src/main/java/com/mycompany/app/App.java b/src/main/java/com/mycompany/app/App.java index c2e6648..73a3299 100644 --- a/src/main/java/com/mycompany/app/App.java +++ b/src/main/java/com/mycompany/app/App.java @@ -1,18 +1,18 @@ package com.mycompany.app; public class App { public static void main(...
true
true
public static void main( String[] args ) { String str1 = "str"; String str2 = "str"; System.out.println("Hello World! "+str1.equalsIgnoreCase(str2)); String test1 = "123"; char[] test2 = {'3','2','1'}; test1 = String.copyValueOf(test2); System.out.println("Hello World! "+tes...
public static void main( String[] args ) { String str1 = "str"; String str2 = "str"; System.out.println("Hello World! "+str1.equalsIgnoreCase(str2)); String test1 = "123"; char[] test2 = {'3','2','1'}; test1 = String.copyValueOf(test2); System.out.println("Hello World! "+tes...
diff --git a/HBaseAdapter/src/test/java/com/nearinfinity/mysqlengine/Driver.java b/HBaseAdapter/src/test/java/com/nearinfinity/mysqlengine/Driver.java index b54fbd81..42c9bee7 100644 --- a/HBaseAdapter/src/test/java/com/nearinfinity/mysqlengine/Driver.java +++ b/HBaseAdapter/src/test/java/com/nearinfinity/mysqlengine/D...
false
true
public void go(String[] args) throws IOException { HBaseClient client = new HBaseClient("sql"); if (args[0].equals("create")) { //create table_name column* String tableName = args[1]; List<String> columns = new LinkedList<String>(); for (int i = 2 ; i...
public void go(String[] args) throws IOException { HBaseClient client = new HBaseClient("sql"); if (args[0].equals("create")) { //create table_name column* String tableName = args[1]; List<String> columns = new LinkedList<String>(); for (int i = 2 ; i...
diff --git a/src/main/java/org/neo4j/community/console/ConsoleService.java b/src/main/java/org/neo4j/community/console/ConsoleService.java index fa560d5..d14a875 100644 --- a/src/main/java/org/neo4j/community/console/ConsoleService.java +++ b/src/main/java/org/neo4j/community/console/ConsoleService.java @@ -1,273 +1,27...
true
true
public Map<String, Object> execute(Neo4jService service, String init, String query, String version) { if (version!=null) service.setVersion(version); if (dontInitialize(service)) init=null; final Map<String, Object> data = map("init", init, "query", query,"version",service.getVersion()); ...
public Map<String, Object> execute(Neo4jService service, String init, String query, String version) { if (version!=null) service.setVersion(version); if (dontInitialize(service)) init=null; final Map<String, Object> data = map("init", init, "query", query,"version",service.getVersion()); ...
diff --git a/src/contributions/resources/davcollection/src/java/org/wyona/yanel/impl/resources/DavCollection.java b/src/contributions/resources/davcollection/src/java/org/wyona/yanel/impl/resources/DavCollection.java index 1e3641f73..1e3ae16ab 100644 --- a/src/contributions/resources/davcollection/src/java/org/wyona/ya...
true
true
public void buildXmlView(Path path, String viewId) throws SAXException { response.setStatus(207, "Multi-Status"); startDocument(); startPrefixMapping(WEBDAV_NS_PREFIX, WEBDAV_NS_URI); startElement(WEBDAV_NS_PREFIX, WEBDAV_EL_MSTATUS, WEBDAV_PREFIX + WEBDAV_E...
public void buildXmlView(Path path, String viewId) throws SAXException { response.setStatus(207, "Multi-Status"); startDocument(); startPrefixMapping(WEBDAV_NS_PREFIX, WEBDAV_NS_URI); startElement(WEBDAV_NS_PREFIX, WEBDAV_EL_MSTATUS, WEBDAV_PREFIX + WEBDAV_E...
diff --git a/src/com/koletar/jj/chestkeeper/CKUser.java b/src/com/koletar/jj/chestkeeper/CKUser.java index b06164a..c34a3ee 100644 --- a/src/com/koletar/jj/chestkeeper/CKUser.java +++ b/src/com/koletar/jj/chestkeeper/CKUser.java @@ -1,235 +1,232 @@ package com.koletar.jj.chestkeeper; import org.bukkit.configuration...
false
true
public void fromVC(BufferedReader chestYml, String defaultChest) { String currentChest = null; boolean isLargeChest = false; boolean areReadingItems = false; ItemStack currentItem = null; List<ItemStack> items = new LinkedList<ItemStack>(); try { boolean d...
public void fromVC(BufferedReader chestYml, String defaultChest) { String currentChest = null; boolean isLargeChest = false; boolean areReadingItems = false; ItemStack currentItem = null; List<ItemStack> items = new LinkedList<ItemStack>(); try { boolean d...
diff --git a/fap/app/controllers/fap/LoggerController.java b/fap/app/controllers/fap/LoggerController.java index 55eaa5df..819fca6f 100644 --- a/fap/app/controllers/fap/LoggerController.java +++ b/fap/app/controllers/fap/LoggerController.java @@ -1,276 +1,276 @@ package controllers.fap; import play.*; import pla...
true
true
public static void logs(long fecha1, long fecha2) throws IOException{ Date date1 = new Date(fecha1); Date date2 = new Date(fecha2); int logsD=0, logsA=0; ArrayList<String> borrarDaily = new ArrayList<String>(); ArrayList<String> borrarAuditable = new ArrayList<String>(); Gson gson = new Gson(); ArrayList...
public static void logs(long fecha1, long fecha2) throws IOException{ Date date1 = new Date(fecha1); Date date2 = new Date(fecha2); int logsD=0, logsA=0; ArrayList<String> borrarDaily = new ArrayList<String>(); ArrayList<String> borrarAuditable = new ArrayList<String>(); Gson gson = new Gson(); ArrayList...
diff --git a/src/com/liketivist/fithack/MapMyRunQuery.java b/src/com/liketivist/fithack/MapMyRunQuery.java index 567455d..3e6b4f7 100644 --- a/src/com/liketivist/fithack/MapMyRunQuery.java +++ b/src/com/liketivist/fithack/MapMyRunQuery.java @@ -1,195 +1,195 @@ package com.liketivist.fithack; import java.util.ArrayL...
true
true
public void getRoute(final double routeDistance, final double searchRadius, final double latitude, final double longitude) { new Thread(new Runnable() { @Override public void run() { try { boolean donePaging = false; boolean doneRadiusExp...
public void getRoute(final double routeDistance, final double searchRadius, final double latitude, final double longitude) { new Thread(new Runnable() { @Override public void run() { try { boolean donePaging = false; boolean doneRadiusExp...
diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/SubMonitorTest.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/SubMonitorTest.java index ae9c6f420..da414c433 100644 --- a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/SubMonito...
false
true
public void testNewChild() { TestProgressMonitor top = new TestProgressMonitor(); SubMonitor mon = SubMonitor.convert(top, 1000); Assert.assertEquals("Ensure no work has been reported yet", 0.0, top.getTotalWork(), 0.01d); mon.newChild(100); Assert.assertEquals("Ensure no work has been reported yet", 0.0,...
public void testNewChild() { TestProgressMonitor top = new TestProgressMonitor(); SubMonitor mon = SubMonitor.convert(top, 1000); Assert.assertEquals("Ensure no work has been reported yet", 0.0, top.getTotalWork(), 0.01d); mon.newChild(100); Assert.assertEquals("Ensure no work has been reported yet", 0.0,...
diff --git a/config/src/main/java/org/apache/karaf/cellar/config/ConfigurationEventHandler.java b/config/src/main/java/org/apache/karaf/cellar/config/ConfigurationEventHandler.java index c54bdbd2..a00291cc 100644 --- a/config/src/main/java/org/apache/karaf/cellar/config/ConfigurationEventHandler.java +++ b/config/src/m...
false
true
public void handle(RemoteConfigurationEvent event) { // check if the handler is ON if (this.getSwitch().getStatus().equals(SwitchStatus.OFF)) { LOGGER.warn("CELLAR CONFIG: {} switch is OFF, cluster event not handled", SWITCH_ID); return; } // check if the gr...
public void handle(RemoteConfigurationEvent event) { // check if the handler is ON if (this.getSwitch().getStatus().equals(SwitchStatus.OFF)) { LOGGER.warn("CELLAR CONFIG: {} switch is OFF, cluster event not handled", SWITCH_ID); return; } // check if the gr...
diff --git a/src/main/java/net/floodlightcontroller/core/internal/Controller.java b/src/main/java/net/floodlightcontroller/core/internal/Controller.java index 3890de0..a29f16a 100644 --- a/src/main/java/net/floodlightcontroller/core/internal/Controller.java +++ b/src/main/java/net/floodlightcontroller/core/internal/Con...
false
true
protected void processOFMessage(OFMessage m) throws IOException, SwitchStateException { boolean shouldHandleMessage = false; switch (m.getType()) { case HELLO: if (log.isTraceEnabled()) log.trace("HE...
protected void processOFMessage(OFMessage m) throws IOException, SwitchStateException { boolean shouldHandleMessage = false; switch (m.getType()) { case HELLO: if (log.isTraceEnabled()) log.trace("HE...
diff --git a/BOLT/src/editor/Editor.java b/BOLT/src/editor/Editor.java index 7245430..8a1c0c2 100644 --- a/BOLT/src/editor/Editor.java +++ b/BOLT/src/editor/Editor.java @@ -1,1113 +1,1113 @@ package editor; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Window; import java.awt.event.Actio...
false
true
private void showEntityUI(TreeSelectionEvent e) throws Exception { uiPanel.setLayout(null); JTabbedPane pane = new JTabbedPane(); pane.setBounds(0, -1, uiPanel.getWidth() + 3, uiPanel.getHeight() - 28); pane.setPreferredSize(uiPanel.getPreferredSize()); final int entityIndex = tree.getRowForPath(e.getPath(...
private void showEntityUI(TreeSelectionEvent e) throws Exception { uiPanel.setLayout(null); JTabbedPane pane = new JTabbedPane(); pane.setBounds(0, -1, uiPanel.getWidth() + 3, uiPanel.getHeight() - 28); pane.setPreferredSize(uiPanel.getPreferredSize()); final int entityIndex = tree.getRowForPath(e.getPath(...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/DeclarationOrderCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/DeclarationOrderCheck.java index 54b18b4b..393e3dca 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/DeclarationOrderCheck.java +++...
true
true
public void visitToken(DetailAST aAST) { final int parentType = aAST.getParent().getType(); ScopeState state; switch(aAST.getType()) { case TokenTypes.OBJBLOCK: mScopeStates.push(new ScopeState()); break; case TokenTypes.CTOR_DEF: if ...
public void visitToken(DetailAST aAST) { final int parentType = aAST.getParent().getType(); ScopeState state; switch(aAST.getType()) { case TokenTypes.OBJBLOCK: mScopeStates.push(new ScopeState()); break; case TokenTypes.CTOR_DEF: if ...
diff --git a/hbc-core/src/main/java/com/twitter/hbc/core/processor/AbstractProcessor.java b/hbc-core/src/main/java/com/twitter/hbc/core/processor/AbstractProcessor.java index 27fb5ed..04030ee 100644 --- a/hbc-core/src/main/java/com/twitter/hbc/core/processor/AbstractProcessor.java +++ b/hbc-core/src/main/java/com/twitt...
false
true
public boolean process() throws IOException, InterruptedException { T msg = processNextMessage(); if (msg != null) { return queue.offer(msg, offerTimeoutMillis, TimeUnit.MILLISECONDS); } else { // if its null, just try again return process(); } }
public boolean process() throws IOException, InterruptedException { T msg = processNextMessage(); while (msg == null) { msg = processNextMessage(); } return queue.offer(msg, offerTimeoutMillis, TimeUnit.MILLISECONDS); }
diff --git a/src/main/java/de/cismet/cids/custom/nas/PointNumberDownload.java b/src/main/java/de/cismet/cids/custom/nas/PointNumberDownload.java index 20ff1f4c..301c5bf2 100644 --- a/src/main/java/de/cismet/cids/custom/nas/PointNumberDownload.java +++ b/src/main/java/de/cismet/cids/custom/nas/PointNumberDownload.java @...
true
true
public void run() { if (status != State.WAITING) { return; } status = State.RUNNING; stateChanged(); final String bytes; if (downloadProtokoll) { bytes = content.getProtokoll(); } else { if (!isPointNumberBeanValid()) { ...
public void run() { if (status != State.WAITING) { return; } status = State.RUNNING; stateChanged(); final String bytes; if (downloadProtokoll) { bytes = content.getProtokoll(); } else { if (!isPointNumberBeanValid()) { ...
diff --git a/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java b/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java index 7ccf0d548..d7aae0fc2 100644 --- a/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java +++ b/modules/cpr/src/main/java/org/atmosphere/cpr/Atmosphere...
true
true
public final static AtmosphereRequest cloneRequest(HttpServletRequest request, boolean loadInMemory, boolean copySession, boolean isDestroyable) { Builder b; HttpServletRequest r; Cookie[] cs = request.getCookies(); Set<Cookie> hs = new HashSet(); for (Cookie c : cs) { ...
public final static AtmosphereRequest cloneRequest(HttpServletRequest request, boolean loadInMemory, boolean copySession, boolean isDestroyable) { Builder b; HttpServletRequest r; Cookie[] cs = request.getCookies(); Set<Cookie> hs = new HashSet(); for (Cookie c : cs) { ...
diff --git a/src/com/nadmm/airports/utils/NetworkUtils.java b/src/com/nadmm/airports/utils/NetworkUtils.java index c396e468..8416ff1d 100644 --- a/src/com/nadmm/airports/utils/NetworkUtils.java +++ b/src/com/nadmm/airports/utils/NetworkUtils.java @@ -1,132 +1,132 @@ /* * FlightIntel for Pilots * * Copyright 2011...
true
true
public static void doHttpGet( Context context, HttpClient httpClient, HttpHost target, String path, File pdfFile ) { InputStream in = null; FileOutputStream out = null; try { URI uri = new URI( path ); HttpGet get = new HttpGet( uri ); HttpRe...
public static void doHttpGet( Context context, HttpClient httpClient, HttpHost target, String path, File pdfFile ) { InputStream in = null; FileOutputStream out = null; try { URI uri = new URI( path ); HttpGet get = new HttpGet( uri ); HttpRe...
diff --git a/browse-indexing/IndexAuth.java b/browse-indexing/IndexAuth.java index b374535..fbf0b76 100644 --- a/browse-indexing/IndexAuth.java +++ b/browse-indexing/IndexAuth.java @@ -1,106 +1,106 @@ import java.io.*; import java.util.*; import java.util.regex.*; import org.apache.lucene.store.*; import org.apa...
true
true
public static void main (String args[]) throws Exception { String dataFile = args[0]; String indexDir = args[1]; InputStream in = new FileInputStream (dataFile); MarcReader reader = new MarcStreamReader (in); IndexWriter iw = new IndexWriter (FSDirectory.open (new File ...
public static void main (String args[]) throws Exception { String dataFile = args[0]; String indexDir = args[1]; InputStream in = new FileInputStream (dataFile); MarcReader reader = new MarcStreamReader (in); IndexWriter iw = new IndexWriter (FSDirectory.open (new File ...
diff --git a/src/main/java/org/spoutcraft/launcher/entrypoint/Mover.java b/src/main/java/org/spoutcraft/launcher/entrypoint/Mover.java index 30749a7..0c9817c 100644 --- a/src/main/java/org/spoutcraft/launcher/entrypoint/Mover.java +++ b/src/main/java/org/spoutcraft/launcher/entrypoint/Mover.java @@ -1,103 +1,103 @@ /*...
false
true
private static void execute(String[] args, boolean exe) throws Exception{ File temp; if (exe) { temp = new File(Utils.getLauncherDirectory(), "temp.exe"); } else { temp = new File(Utils.getLauncherDirectory(), "temp.jar"); } File codeSource = new File(args[0]); codeSource.delete(); FileInputStream ...
private static void execute(String[] args, boolean exe) throws Exception{ File temp; if (exe) { temp = new File(Utils.getSettingsDirectory(), "temp.exe"); } else { temp = new File(Utils.getSettingsDirectory(), "temp.jar"); } File codeSource = new File(args[0]); codeSource.delete(); FileInputStream ...
diff --git a/src/test/java/kr/co/vcnc/haeinsa/TestingUtility.java b/src/test/java/kr/co/vcnc/haeinsa/TestingUtility.java index 0fbde28..bb93e46 100644 --- a/src/test/java/kr/co/vcnc/haeinsa/TestingUtility.java +++ b/src/test/java/kr/co/vcnc/haeinsa/TestingUtility.java @@ -1,46 +1,45 @@ package kr.co.vcnc.haeinsa; i...
true
true
public static HaeinsaTablePool createHaeinsaTablePool(Configuration conf, final ExecutorService threadPool) { return new HaeinsaTablePool(conf, 128, new HTableInterfaceFactory() { @Override public void releaseHTableInterface(HTableInterface table) throws IOException { table.close(); } @Overrid...
public static HaeinsaTablePool createHaeinsaTablePool(Configuration conf, final ExecutorService threadPool) { return new HaeinsaTablePool(conf, 128, new HTableInterfaceFactory() { @Override public void releaseHTableInterface(HTableInterface table) throws IOException { table.close(); } @Override ...
diff --git a/src/main/java/ru/tehkode/permissions/bukkit/regexperms/PermissiblePEX.java b/src/main/java/ru/tehkode/permissions/bukkit/regexperms/PermissiblePEX.java index d9164c5..f74ed8d 100644 --- a/src/main/java/ru/tehkode/permissions/bukkit/regexperms/PermissiblePEX.java +++ b/src/main/java/ru/tehkode/permissions/b...
true
true
protected PermissionCheckResult permissionValue(String permission) { lock.readLock().lock(); try { permission = permission.toLowerCase(); PermissionCheckResult res = cache.get(permission); if (res != null) { if (plugin.isDebug()) { plugin.getLogger().info("User " + player.getName() + " checked fo...
protected PermissionCheckResult permissionValue(String permission) { lock.readLock().lock(); try { permission = permission.toLowerCase(); PermissionCheckResult res = cache.get(permission); if (res != null) { if (plugin.isDebug()) { plugin.getLogger().info("User " + player.getName() + " checked fo...
diff --git a/src/main/java/com/prealpha/dcputil/emulator/NewBaseMachine.java b/src/main/java/com/prealpha/dcputil/emulator/NewBaseMachine.java index 78ce0bc..2afa527 100755 --- a/src/main/java/com/prealpha/dcputil/emulator/NewBaseMachine.java +++ b/src/main/java/com/prealpha/dcputil/emulator/NewBaseMachine.java @@ -1,5...
false
true
public void step() throws EmulatorException { char instruction = memory[pc++]; char opcode = clear(instruction, A_SIZE+B_SIZE, 0); char opA = clear(instruction, 0, B_SIZE+OP_SIZE); char opB = clear(instruction, A_SIZE, B_SIZE); int offset = 1; Pointer pa ...
public void step() throws EmulatorException { char instruction = memory[pc++]; char opcode = clear(instruction, A_SIZE+B_SIZE, 0); char opA = clear(instruction, 0, B_SIZE+OP_SIZE); char opB = clear(instruction, A_SIZE, B_SIZE); int offset = 0; Pointer pa ...
diff --git a/src/java/org/apache/cassandra/io/compress/CompressionParameters.java b/src/java/org/apache/cassandra/io/compress/CompressionParameters.java index c8a15d70c..9be71f62f 100644 --- a/src/java/org/apache/cassandra/io/compress/CompressionParameters.java +++ b/src/java/org/apache/cassandra/io/compress/Compressio...
false
true
private static ICompressor createCompressor(Class<? extends ICompressor> compressorClass, Map<String, String> compressionOptions) throws ConfigurationException { if (compressorClass == null) return null; try { Method method = compressorClass.getMethod("create", M...
private static ICompressor createCompressor(Class<? extends ICompressor> compressorClass, Map<String, String> compressionOptions) throws ConfigurationException { if (compressorClass == null) { if (!compressionOptions.isEmpty()) throw new ConfigurationException("Unknow...
diff --git a/core/src/processing/core/PGraphics3D.java b/core/src/processing/core/PGraphics3D.java index 4bc6e26ac..de1f5aa23 100644 --- a/core/src/processing/core/PGraphics3D.java +++ b/core/src/processing/core/PGraphics3D.java @@ -1,4476 +1,4476 @@ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ ...
true
true
protected final void addTriangleWithClip(int a, int b, int c) { boolean aClipped = false; boolean bClipped = false; int clippedCount = 0; // This is a hack for temporary clipping. Clipping still needs to // be implemented properly, however. Please help! // http://dev.processing.org/bugs/show_...
protected final void addTriangleWithClip(int a, int b, int c) { boolean aClipped = false; boolean bClipped = false; int clippedCount = 0; // This is a hack for temporary clipping. Clipping still needs to // be implemented properly, however. Please help! // http://dev.processing.org/bugs/show_...
diff --git a/src/net/schattenkind/androidLove/luan/LuanGraphics.java b/src/net/schattenkind/androidLove/luan/LuanGraphics.java index 464b8d5..b0be657 100644 --- a/src/net/schattenkind/androidLove/luan/LuanGraphics.java +++ b/src/net/schattenkind/androidLove/luan/LuanGraphics.java @@ -1,315 +1,315 @@ package net.schatt...
false
true
public LuaTable InitLib () { InitSpriteBuffer(); LuaTable t = LuaValue.tableOf(); // love.graphics.print(sText,x,y) t.set("print", new VarArgFunction() { @Override public Varargs invoke(Varargs args) { String s = args.checkjstring(1); int x = args.checkint(2); int y = args.checkint(3); L...
public LuaTable InitLib () { InitSpriteBuffer(); LuaTable t = LuaValue.tableOf(); // love.graphics.print(sText,x,y) t.set("print", new VarArgFunction() { @Override public Varargs invoke(Varargs args) { String s = args.checkjstring(1); int x = args.checkint(2); int y = args.checkint(3); L...
diff --git a/src/java/gr/agroknow/metadata/transformer/agris2agrif/Main.java b/src/java/gr/agroknow/metadata/transformer/agris2agrif/Main.java index 026ee35..35758ce 100644 --- a/src/java/gr/agroknow/metadata/transformer/agris2agrif/Main.java +++ b/src/java/gr/agroknow/metadata/transformer/agris2agrif/Main.java @@ -1,1...
true
true
public static void main(String[] args) throws IOException { int check = 0 ; String inputFolder = null ; String outputFolder = null ; String badFolder = null ; String set = null ; String manifestation = null ; String mtdLanguage = null ; String potentialLanguages = null ; for( int i = 0; i< args.l...
public static void main(String[] args) throws IOException { int check = 0 ; String inputFolder = null ; String outputFolder = null ; String badFolder = null ; String set = null ; String manifestation = null ; String mtdLanguage = null ; String potentialLanguages = null ; for( int i = 0; i< args.l...
diff --git a/modules/compute4/org/molgenis/compute/test/GenerateDemoTasks.java b/modules/compute4/org/molgenis/compute/test/GenerateDemoTasks.java index 146abf0a1..66a486b7f 100644 --- a/modules/compute4/org/molgenis/compute/test/GenerateDemoTasks.java +++ b/modules/compute4/org/molgenis/compute/test/GenerateDemoTasks....
true
true
public static void main(String[] args) { System.out.println(">> Start generate demo LL GWAS tasks .."); // Loading workflow with JPA WorkflowReader reader = new WorkflowReaderDBJPA(); // read a workflow Workflow workflow = reader.getWorkflow("lspilot1_workflow_grid.csv"); List<ComputeParameter> par...
public static void main(String[] args) { System.out.println(">> Start generate demo LL GWAS tasks .."); // Loading workflow with JPA WorkflowReader reader = new WorkflowReaderDBJPA(); // read a workflow Workflow workflow = reader.getWorkflow("lspilot1_workflow_grid.csv"); List<ComputeParameter> par...
diff --git a/src/main/java/com/mojang/minecraft/mob/HumanoidMob.java b/src/main/java/com/mojang/minecraft/mob/HumanoidMob.java index e0c2753..d3529c3 100644 --- a/src/main/java/com/mojang/minecraft/mob/HumanoidMob.java +++ b/src/main/java/com/mojang/minecraft/mob/HumanoidMob.java @@ -1,134 +1,132 @@ package com.mojang...
true
true
public void renderModel(TextureManager var1, float var2, float var3, float var4, float var5, float var6, float var7) { if (this.modelName == "sheep") { renderSheep(var1, var2, var3, var4, var5, var6, var7); return; } else if (isInteger(this.modelName)) { try { if (block == null) { block = new ...
public void renderModel(TextureManager var1, float var2, float var3, float var4, float var5, float var6, float var7) { if (this.modelName == "sheep") { renderSheep(var1, var2, var3, var4, var5, var6, var7); return; } else if (isInteger(this.modelName)) { try { block = new BlockModelRenderer( ...
diff --git a/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/Main.java b/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/Main.java index 008ce04aa..f479e5d58 100644 --- a/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/Main.java +++ b/openejb3/server/...
true
true
public static void main(String args[]) throws SystemExitException { CommandLineParser parser = new PosixParser(); // create the Options Options options = new Options(); options.addOption(option("v", "version", "cmd.start.opt.version")); options.addOption(option("h", "help", ...
public static void main(String args[]) throws SystemExitException { CommandLineParser parser = new PosixParser(); // create the Options Options options = new Options(); options.addOption(option("v", "version", "cmd.start.opt.version")); options.addOption(option("h", "help", ...
diff --git a/src/com/martinleopold/mode/debug/LineMapping.java b/src/com/martinleopold/mode/debug/LineMapping.java index b24fa12..64ecf79 100644 --- a/src/com/martinleopold/mode/debug/LineMapping.java +++ b/src/com/martinleopold/mode/debug/LineMapping.java @@ -1,122 +1,122 @@ /* * Copyright (C) 2012 Martin Leopold <...
true
true
static Map<LineID, LineID> generateMapping(String srcFilePath) { // open the src // scan for comments //filename:number Map<LineID, LineID> map = new HashMap(); File f = new File(srcFilePath); // enter srcfilee:currentlineno -> filename:number into mapping try { ...
static Map<LineID, LineID> generateMapping(String srcFilePath) { // open the src // scan for comments //filename:number Map<LineID, LineID> map = new HashMap(); File f = new File(srcFilePath); // enter srcfilee:currentlineno -> filename:number into mapping try { ...
diff --git a/extensions/servlet/src/com/google/inject/servlet/ServletDefinition.java b/extensions/servlet/src/com/google/inject/servlet/ServletDefinition.java index e433436d..184ce362 100755 --- a/extensions/servlet/src/com/google/inject/servlet/ServletDefinition.java +++ b/extensions/servlet/src/com/google/inject/serv...
true
true
void doService(final ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException { HttpServletRequest request = new HttpServletRequestWrapper( (HttpServletRequest) servletRequest) { private String path; private boolean pathComputed = false; ...
void doService(final ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException { HttpServletRequest request = new HttpServletRequestWrapper( (HttpServletRequest) servletRequest) { private String path; private boolean pathComputed = false; ...
diff --git a/src/main/java/ru/xrm/app/threads/WholeSiteWorker.java b/src/main/java/ru/xrm/app/threads/WholeSiteWorker.java index 53a3f12..55da905 100644 --- a/src/main/java/ru/xrm/app/threads/WholeSiteWorker.java +++ b/src/main/java/ru/xrm/app/threads/WholeSiteWorker.java @@ -1,137 +1,137 @@ package ru.xrm.app.threads...
true
true
public void run() { Date d1=new Date(); String homePage="http://e1.ru/business/job"; Config config=Config.getInstance(); String basename=UrlHelper.getBasename(homePage); CachingHttpFetcher cf=CachingHttpFetcher.getInstance(); // home page String content = cf.fetchWithRetry(homePage,encoding,1000);...
public void run() { Date d1=new Date(); String homePage="http://e1.ru/business/job"; Config config=Config.getInstance(); String basename=UrlHelper.getBasename(homePage); CachingHttpFetcher cf=CachingHttpFetcher.getInstance(); // home page String content = cf.fetchWithRetry(homePage,encoding,1000);...
diff --git a/plugins/org.bonitasoft.studio.expression.editor/src/org/bonitasoft/studio/expression/editor/operation/OperationReturnTypesValidator.java b/plugins/org.bonitasoft.studio.expression.editor/src/org/bonitasoft/studio/expression/editor/operation/OperationReturnTypesValidator.java index c9308834d7..dc5b416220 10...
true
true
public IStatus validate(Object expression) { if(expression instanceof Expression){ EObject container = ((Expression) expression).eContainer() ; if(container instanceof Operation){ final Operation operation = (Operation) container; EObject parent = operation.eContainer(); if(parent instanceof Info)...
public IStatus validate(Object expression) { if(expression instanceof Expression){ EObject container = ((Expression) expression).eContainer() ; if(container instanceof Operation){ final Operation operation = (Operation) container; EObject parent = operation.eContainer(); if(parent instanceof Info)...
diff --git a/core/src/visad/trunk/java3d/DisplayRendererJ3D.java b/core/src/visad/trunk/java3d/DisplayRendererJ3D.java index e3fdbaa2c..bda8461d1 100644 --- a/core/src/visad/trunk/java3d/DisplayRendererJ3D.java +++ b/core/src/visad/trunk/java3d/DisplayRendererJ3D.java @@ -1,1450 +1,1450 @@ // // DisplayRendererJ3D.ja...
true
true
public void drawCursorStringVector(VisADCanvasJ3D canvas) { if (not_destroyed == null) return; // clipOff(); doesn't work GraphicsContext3D graphics = canvas.getGraphicsContext3D(); // graphics.setModelClip(null); // causes NullPointerException at GraphicsContext3D.java:689 // set cursor colo...
public void drawCursorStringVector(VisADCanvasJ3D canvas) { if (not_destroyed == null) return; // clipOff(); doesn't work GraphicsContext3D graphics = canvas.getGraphicsContext3D(); // graphics.setModelClip(null); // causes NullPointerException at GraphicsContext3D.java:689 // set cursor colo...
diff --git a/src/java/org/jamwiki/tags/LinkParamTag.java b/src/java/org/jamwiki/tags/LinkParamTag.java index 7d0e6efe..f9969dfe 100644 --- a/src/java/org/jamwiki/tags/LinkParamTag.java +++ b/src/java/org/jamwiki/tags/LinkParamTag.java @@ -1,84 +1,84 @@ /** * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, vers...
true
true
public int doEndTag() throws JspException { String tagValue = null; LinkTag parent = (LinkTag)this.getParent(); if (parent == null) { throw new JspException("linkParam tag not nested within a link tag"); } try { if (!StringUtils.hasText(this.value)) { tagValue = ExpressionUtil.evalNotNull("linkPara...
public int doEndTag() throws JspException { String tagValue = null; LinkTag parent = (LinkTag)this.getParent(); if (parent == null) { throw new JspException("linkParam tag not nested within a link tag"); } try { if (StringUtils.hasText(this.value)) { tagValue = ExpressionUtil.evalNotNull("linkParam...
diff --git a/src/java/org/codehaus/groovy/grails/web/metaclass/RenderDynamicMethod.java b/src/java/org/codehaus/groovy/grails/web/metaclass/RenderDynamicMethod.java index c8dbbc322..e44b9954a 100644 --- a/src/java/org/codehaus/groovy/grails/web/metaclass/RenderDynamicMethod.java +++ b/src/java/org/codehaus/groovy/grail...
true
true
public Object invoke(Object target, String methodName, Object[] arguments) { if (arguments.length == 0) throw new MissingMethodException(METHOD_SIGNATURE, target.getClass(), arguments); GrailsWebRequest webRequest = (GrailsWebRequest) RequestContextHolder.currentRequestAttributes(); ...
public Object invoke(Object target, String methodName, Object[] arguments) { if (arguments.length == 0) throw new MissingMethodException(METHOD_SIGNATURE, target.getClass(), arguments); GrailsWebRequest webRequest = (GrailsWebRequest) RequestContextHolder.currentRequestAttributes(); ...
diff --git a/src/org/python/core/__builtin__.java b/src/org/python/core/__builtin__.java index bee31527..f058add3 100644 --- a/src/org/python/core/__builtin__.java +++ b/src/org/python/core/__builtin__.java @@ -1,1176 +1,1176 @@ // Copyright (c) Corporation for National Research Initiatives package org.python.core; ...
false
true
public static void fillWithBuiltins(PyObject dict) { /* newstyle */ dict.__setitem__("object", PyType.fromClass(PyObject.class)); dict.__setitem__("type", PyType.fromClass(PyType.class)); dict.__setitem__("int", PyType.fromClass(PyInteger.class)); dict.__setitem__("enumerate", PyType.fromClass(PyEnumerate....
public static void fillWithBuiltins(PyObject dict) { /* newstyle */ dict.__setitem__("object", PyType.fromClass(PyObject.class)); dict.__setitem__("type", PyType.fromClass(PyType.class)); dict.__setitem__("bool", PyType.fromClass(PyBoolean.class)); dict.__setitem__("int", PyType.fromClass(PyInteger.class))...
diff --git a/Shooter/src/com/matrunks/shooter/models/World.java b/Shooter/src/com/matrunks/shooter/models/World.java index 20dfe78..64188c9 100644 --- a/Shooter/src/com/matrunks/shooter/models/World.java +++ b/Shooter/src/com/matrunks/shooter/models/World.java @@ -1,191 +1,191 @@ package com.matrunks.shooter.models; ...
true
true
public void update (float delta){ ShotSecs+=delta; //vamos acumulando los segundos RagdollReloadSecs+=delta; //aqui metemos los cambios efectuados en los objetos if(Gdx.input.isTouched()){ //si es pulsada la pantalla if(pj.checkGun()){//Comprobamos el enfriamiento del arma //la c�mara proyecta la ima...
public void update (float delta){ ShotSecs+=delta; //vamos acumulando los segundos RagdollReloadSecs+=delta; //aqui metemos los cambios efectuados en los objetos if(Gdx.input.isTouched()){ //si es pulsada la pantalla if(pj.checkGun()){//Comprobamos el enfriamiento del arma //la c�mara proyecta la ima...
diff --git a/src/cs4520/server/Server.java b/src/cs4520/server/Server.java index 3207c97..8eb7bc8 100755 --- a/src/cs4520/server/Server.java +++ b/src/cs4520/server/Server.java @@ -1,69 +1,69 @@ package cs4520.server; import java.net.*; import java.util.ArrayList; import java.io.*; import javax.net.ssl.*; ...
true
true
public Server(int _port) throws IOException { // Start the server System.out.print("Starting server for CS4520 coursework..."); mServer = (SSLServerSocket) SSLServerSocketFactory.getDefault().createServerSocket(28000); System.out.println("done"); // for simplicity mUsers.addUser("guest", "meow", User.L...
public Server(int _port) throws IOException { // Start the server System.out.print("Starting server for CS4520 coursework..."); mServer = (SSLServerSocket) SSLServerSocketFactory.getDefault().createServerSocket(_port); System.out.println("done"); // for simplicity mUsers.addUser("guest", "meow", User.L...
diff --git a/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/FritzingPCBExportAction.java b/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/FritzingPCBExportAction.java index 639d71864..353a7bae6 100644 --- a/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/FritzingPCBE...
true
true
public void run(IAction action) { // STEP 1: create Eagle script file from Fritzing files IDiagramWorkbenchPart editor = null; URI diagramUri = null; try { // use currently active diagram editor = FritzingDiagramEditorUtil.getActiveDiagramPart(); diagramUri = FritzingDiagramEditorUtil.getActiveD...
public void run(IAction action) { // STEP 1: create Eagle script file from Fritzing files IDiagramWorkbenchPart editor = null; URI diagramUri = null; try { // use currently active diagram editor = FritzingDiagramEditorUtil.getActiveDiagramPart(); diagramUri = FritzingDiagramEditorUtil.getActiveD...
diff --git a/src/com/android/nfc/ndefpush/NdefPushClient.java b/src/com/android/nfc/ndefpush/NdefPushClient.java index 8d7c9a8..2275620 100755 --- a/src/com/android/nfc/ndefpush/NdefPushClient.java +++ b/src/com/android/nfc/ndefpush/NdefPushClient.java @@ -1,140 +1,140 @@ /* * Copyright (C) 2010 The Android Open Sou...
true
true
public Void doInBackground(NdefMessage... msgs) { NfcService service = NfcService.getInstance(); // We only handle a single immediate action for now NdefPushProtocol msg = new NdefPushProtocol(msgs[0], NdefPushProtocol.ACTION_IMMEDIATE); byte[] buffer = msg.toByt...
public Void doInBackground(NdefMessage... msgs) { NfcService service = NfcService.getInstance(); // We only handle a single immediate action for now NdefPushProtocol msg = new NdefPushProtocol(msgs[0], NdefPushProtocol.ACTION_IMMEDIATE); byte[] buffer = msg.toByt...
diff --git a/de.innot.avreclipse.core/src/de/innot/avreclipse/mbs/converter/Convert21.java b/de.innot.avreclipse.core/src/de/innot/avreclipse/mbs/converter/Convert21.java index 57e044b..3ae235a 100644 --- a/de.innot.avreclipse.core/src/de/innot/avreclipse/mbs/converter/Convert21.java +++ b/de.innot.avreclipse.core/src/...
true
true
private static void checkOptions(IHoldsOptions optionholder) { // we need to use reflections to call the private method // "getOptionsList" because getOptions filters all invalid // options, which are just the ones we need for removal Vector optionlist = new Vector(0); Class<?> c = optionholder.getClass().g...
private static void checkOptions(IHoldsOptions optionholder) { // we need to use reflections to call the private method // "getOptionsList" because getOptions filters all invalid // options, which are just the ones we need for removal Vector optionlist = new Vector(0); Class<?> c = optionholder.getClass().g...
diff --git a/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetSkeleton.java b/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetSkeleton.java index 532ec4644..4d083b165 100644 --- a/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetSkeleton.java +++ b/org.eclipse.jdt....
true
true
public BinaryMethodSkeleton(char[] selector, char[] methodDescriptor, char[][] exceptionTypeNames, boolean isConstructor) { this.selector = selector; this.methodDescriptor = methodDescriptor; this.exceptionTypeNames = exceptionTypeNames; this.isConstructor = isConstructor; }
public BinaryMethodSkeleton(char[] selector, char[] methodDescriptor, char[][] exceptionTypeNames, boolean isConstructor) { this.selector = selector; this.methodDescriptor = methodDescriptor; this.exceptionTypeNames = exceptionTypeNames; this.isConstructor = this.isConstructor; }
diff --git a/src/nu/validator/htmlparser/impl/MetaScanner.java b/src/nu/validator/htmlparser/impl/MetaScanner.java index ebfd902..d25c641 100755 --- a/src/nu/validator/htmlparser/impl/MetaScanner.java +++ b/src/nu/validator/htmlparser/impl/MetaScanner.java @@ -1,841 +1,841 @@ /* * Copyright (c) 2007 Henri Sivonen ...
true
true
protected final void stateLoop(int state) throws SAXException, IOException { int c = -1; boolean reconsume = false; stateloop: for (;;) { switch (state) { case DATA: dataloop: for (;;) { if (reconsume) { ...
protected final void stateLoop(int state) throws SAXException, IOException { int c = -1; boolean reconsume = false; stateloop: for (;;) { switch (state) { case DATA: dataloop: for (;;) { if (reconsume) { ...
diff --git a/app/controllers/Analysts.java b/app/controllers/Analysts.java index 80bb6cc..1830a67 100644 --- a/app/controllers/Analysts.java +++ b/app/controllers/Analysts.java @@ -1,948 +1,951 @@ package controllers; import com.avaje.ebean.Page; import models.Analyst; import models.Desk; import models.Note; im...
true
true
public static Result update(Long id) { User loggedInUser = getLoggedInUser(); Form<Analyst> analystForm = null; try { analystForm = Form.form(Analyst.class).bindFromRequest(); // Get the form data // Check if there are errors if (analystForm.hasErrors()) {...
public static Result update(Long id) { User loggedInUser = getLoggedInUser(); Form<Analyst> analystForm = null; try { analystForm = Form.form(Analyst.class).bindFromRequest(); // Get the form data // Check if there are errors if (analystForm.hasErrors()) {...
diff --git a/projectLAWN/src/edu/gatech/cs4261/LAWN/LAWNStorage.java b/projectLAWN/src/edu/gatech/cs4261/LAWN/LAWNStorage.java index 135245b..250a60a 100644 --- a/projectLAWN/src/edu/gatech/cs4261/LAWN/LAWNStorage.java +++ b/projectLAWN/src/edu/gatech/cs4261/LAWN/LAWNStorage.java @@ -1,190 +1,190 @@ package edu.gatech...
true
true
public Uri insert(Uri uri, ContentValues initValues) { // TODO EVERYTHING /* validate the uri*/ if(um.match(uri) != DEFAULT) { throw new IllegalArgumentException("Unknown URI " + uri); } /* make sure the content values aren't null*/ ContentValues values; if(initValues != null) { values = new Con...
public Uri insert(Uri uri, ContentValues initValues) { // TODO EVERYTHING /* validate the uri*/ if(um.match(uri) != DEFAULT) { throw new IllegalArgumentException("Unknown URI " + uri); } /* make sure the content values aren't null*/ ContentValues values; if(initValues != null) { values = new Con...
diff --git a/src/no/runsafe/toybox/handlers/Enchanter.java b/src/no/runsafe/toybox/handlers/Enchanter.java index 5516d61..ba496f7 100644 --- a/src/no/runsafe/toybox/handlers/Enchanter.java +++ b/src/no/runsafe/toybox/handlers/Enchanter.java @@ -1,25 +1,25 @@ package no.runsafe.toybox.handlers; import no.runsafe.fra...
true
true
public void applyAllEnchants(RunsafeItemStack item) { for (int enchantID : RunsafeEnchantmentType.enchants) { RunsafeEnchantment enchant = new RunsafeEnchantment(enchantID); if (enchant.canEnchantItem(item)) item.addEnchantment(enchant, enchant.getMaxLevel()); } }
public void applyAllEnchants(RunsafeItemStack item) { for (RunsafeEnchantmentType enchantID : RunsafeEnchantmentType.values()) { RunsafeEnchantment enchant = new RunsafeEnchantment(enchantID); if (enchant.canEnchantItem(item)) item.addEnchantment(enchant, enchant.getMaxLevel()); } }
diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ServerToClientMessage.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ServerToClientMessage.java index 533d72d63..700914465 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ServerToClientMessage.java +++ b/astrid/...
true
true
public static ServerToClientMessage instantiateMessage(JSONObject json) { String type = json.optString("type"); if (TYPE_MAKE_CHANGES.equals(type)) return instantiateMakeChanges(json); else if (TYPE_NOW_BRIEFED.equals(type)) return instantiateNowBriefed(json); ...
public static ServerToClientMessage instantiateMessage(JSONObject json) { String type = json.optString("type"); if (TYPE_MAKE_CHANGES.equals(type)) return instantiateMakeChanges(json); else if (TYPE_NOW_BRIEFED.equals(type)) return instantiateNowBriefed(json); ...
diff --git a/src/cryptobench/RSABench.java b/src/cryptobench/RSABench.java index 7e9c036..111d91d 100644 --- a/src/cryptobench/RSABench.java +++ b/src/cryptobench/RSABench.java @@ -1,153 +1,155 @@ package cryptobench; import java.security.InvalidAlgorithmParameterException; import java.security.InvalidKeyException...
false
true
public RSABench(String algo, int size, String provider) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, InvalidAlgorithmParameterException { System.out.println("START: "+(new Date()).toString()); KeyPairGenerator kpg; if (provider != null) kpg = KeyPairGenerator.getInstance(algo...
public RSABench(String algo, int size, String provider) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, InvalidAlgorithmParameterException { System.out.println("START: "+(new Date()).toString()); KeyPairGenerator kpg; if (provider != null) kpg = KeyPairGenerator.getInstance(algo...
diff --git a/plexus-jabber/src/main/java/org/codehaus/plexus/jabber/DefaultJabberClient.java b/plexus-jabber/src/main/java/org/codehaus/plexus/jabber/DefaultJabberClient.java index ff2b0a25..97ce8acd 100644 --- a/plexus-jabber/src/main/java/org/codehaus/plexus/jabber/DefaultJabberClient.java +++ b/plexus-jabber/src/mai...
true
true
public void logon() throws JabberClientException { XMPPConnection conn = getConnection(); if ( user != null ) { try { conn.login( user, password, RESOURCE_NAME ); if ( !conn.isAuthenticated() ) { ...
public void logon() throws JabberClientException { XMPPConnection conn = getConnection(); if ( user != null ) { try { conn.login( user, password, RESOURCE_NAME ); if ( !conn.isAuthenticated() ) { ...
diff --git a/eclipse-dsm/src/eclipsedsm/model/Collapser.java b/eclipse-dsm/src/eclipsedsm/model/Collapser.java index 2eb9545..4a09ff0 100644 --- a/eclipse-dsm/src/eclipsedsm/model/Collapser.java +++ b/eclipse-dsm/src/eclipsedsm/model/Collapser.java @@ -1,147 +1,148 @@ package eclipsedsm.model; import java.lang.refl...
true
true
private static <T extends Element<T>> void collapse(List<T> elements, Class<T> elementClass) { Map<String, String[]> splittedNames = new HashMap<String, String[]>(); Map<String, T> elementsMap = new HashMap<String, T>(); int maxsize = 0; Map<String, List<T>> groupsWithMaxSize = new HashMap<String, List<T>>(); ...
private static <T extends Element<T>> void collapse(List<T> elements, Class<T> elementClass) { Map<String, String[]> splittedNames = new HashMap<String, String[]>(); Map<String, T> elementsMap = new HashMap<String, T>(); int maxsize = 0; Map<String, List<T>> groupsWithMaxSize = new HashMap<String, List<T>>(); ...
diff --git a/onebusaway-nyc-vehicle-tracking-webapp/src/main/java/org/onebusaway/nyc/vehicle_tracking/webapp/controllers/VehicleLocationSimulationController.java b/onebusaway-nyc-vehicle-tracking-webapp/src/main/java/org/onebusaway/nyc/vehicle_tracking/webapp/controllers/VehicleLocationSimulationController.java index c...
true
true
public ModelAndView tripsForRun( @RequestParam(value = "id", required = true) String id, @RequestParam(value = "time", required = false, defaultValue = "0") String time) throws ParseException { DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss"); formatter.setTimeZone(TimeZone...
public ModelAndView tripsForRun( @RequestParam(value = "id", required = true) String id, @RequestParam(value = "time", required = false, defaultValue = "0") String time) throws ParseException { DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss"); formatter.setTimeZone(TimeZone...
diff --git a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/danmaku/util/DanmakuUtils.java b/DanmakuFlameMaster/src/main/java/master/flame/danmaku/danmaku/util/DanmakuUtils.java index 74903e0..be35a7d 100644 --- a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/danmaku/util/DanmakuUtils.java +++ b/DanmakuF...
false
true
public static boolean willHitInDuration(IDisplayer disp, BaseDanmaku d1, BaseDanmaku d2, long duration, long currTime) { if (d1.getType() != d2.getType()) return false; if (Math.abs(d2.time - d1.time) >= duration) return false; if (d1.getType() == BaseDan...
public static boolean willHitInDuration(IDisplayer disp, BaseDanmaku d1, BaseDanmaku d2, long duration, long currTime) { if (d1.getType() != d2.getType()) return false; if (Math.abs(d2.time - d1.time) >= duration) return false; if (d1.getType() == BaseDan...
diff --git a/src/driver/GUIDriver.java b/src/driver/GUIDriver.java index 90e8e10..2a64b96 100644 --- a/src/driver/GUIDriver.java +++ b/src/driver/GUIDriver.java @@ -1,211 +1,211 @@ package driver; import java.awt.Canvas; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Grap...
true
true
public static void main(String[] args) { // Create game window... JFrame app = new JFrame(); app.setIgnoreRepaint(true); app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Create canvas for painting... Canvas canvas = new Canvas(); canvas.setIgnoreRepaint(true); canvas.setSize(1200, 480); //...
public static void main(String[] args) { // Create game window... JFrame app = new JFrame(); app.setIgnoreRepaint(true); app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Create canvas for painting... Canvas canvas = new Canvas(); canvas.setIgnoreRepaint(true); canvas.setSize(1200, 480); //...
diff --git a/GAE/src/org/waterforpeople/mapping/dao/SurveyInstanceDAO.java b/GAE/src/org/waterforpeople/mapping/dao/SurveyInstanceDAO.java index b5986e973..dbc85fa21 100644 --- a/GAE/src/org/waterforpeople/mapping/dao/SurveyInstanceDAO.java +++ b/GAE/src/org/waterforpeople/mapping/dao/SurveyInstanceDAO.java @@ -1,761 +...
true
true
public SurveyInstance save(Date collectionDate, DeviceFiles deviceFile, Long userID, List<String> unparsedLines) { SurveyInstance si = new SurveyInstance(); boolean hasErrors = false; si.setDeviceFile(deviceFile); si.setUserID(userID); String delimiter = "\t"; Boolean surveyInstanceIsNew = true; Long...
public SurveyInstance save(Date collectionDate, DeviceFiles deviceFile, Long userID, List<String> unparsedLines) { SurveyInstance si = new SurveyInstance(); boolean hasErrors = false; si.setDeviceFile(deviceFile); si.setUserID(userID); String delimiter = "\t"; Boolean surveyInstanceIsNew = true; Long...
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java index ff6a9a5a..9557e60c 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java +++...
false
true
protected void createButtonsForButtonBar(Composite parent) { newButton = new Button(parent, SWT.PUSH); newButton.setFont(JFaceResources.getDialogFont()); newButton.setText(UIText.BranchSelectionDialog_NewBranch); setButtonLayoutData(newButton); ((GridLayout) parent.getLayout()).numColumns++; renameButton ...
protected void createButtonsForButtonBar(Composite parent) { newButton = new Button(parent, SWT.PUSH); newButton.setFont(JFaceResources.getDialogFont()); newButton.setText(UIText.BranchSelectionDialog_NewBranch); setButtonLayoutData(newButton); ((GridLayout) parent.getLayout()).numColumns++; renameButton ...
diff --git a/de.jutzig.jabylon.properties/src/main/java/de/jutzig/jabylon/properties/util/PropertiesHelper.java b/de.jutzig.jabylon.properties/src/main/java/de/jutzig/jabylon/properties/util/PropertiesHelper.java index 763c52c8..85b492ec 100644 --- a/de.jutzig.jabylon.properties/src/main/java/de/jutzig/jabylon/properti...
true
true
public Property readProperty(BufferedReader reader) throws IOException { String line = null; Property property = null; StringBuilder comment = new StringBuilder(); StringBuilder propertyValue = new StringBuilder(); while((line = reader.readLine())!=null) { line=line.trim(); if(line.length()==0) ...
public Property readProperty(BufferedReader reader) throws IOException { String line = null; Property property = null; StringBuilder comment = new StringBuilder(); StringBuilder propertyValue = new StringBuilder(); while((line = reader.readLine())!=null) { line=line.trim(); if(line.length()==0) ...
diff --git a/src/test/java/com/arcbees/plugin/template/utils/FetchTemplatesTest.java b/src/test/java/com/arcbees/plugin/template/utils/FetchTemplatesTest.java index cabfa83..fc27f8d 100644 --- a/src/test/java/com/arcbees/plugin/template/utils/FetchTemplatesTest.java +++ b/src/test/java/com/arcbees/plugin/template/utils...
true
true
public void testGettingTemlateFiles() { String dir = "target/test"; FetchTemplates fetchTemplates = new FetchTemplates(dir); fetchTemplates.addPath(BASE + "/__name__Module.java.vm"); fetchTemplates.addPath(BASE + "/__name__Presenter.java.vm"); fetchTemplates.addPath(BASE + "/...
public void testGettingTemlateFiles() { String dir = "target/test"; FetchTemplates fetchTemplates = new FetchTemplates(dir); fetchTemplates.addPath(BASE + "/__name__Module.java.vm"); fetchTemplates.addPath(BASE + "/__name__Presenter.java.vm"); fetchTemplates.addPath(BASE + "/...
diff --git a/src/com/lightningrod/io/Backup.java b/src/com/lightningrod/io/Backup.java index 372ce2e..ac3decb 100644 --- a/src/com/lightningrod/io/Backup.java +++ b/src/com/lightningrod/io/Backup.java @@ -1,31 +1,31 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. ...
false
true
public static boolean backupFolder(String root_path, String newdir) { File f = new File(root_path); boolean ret = f.renameTo(new File(root_path + newdir)); if (ret) { System.out.println("Backup of Dropbox to " + newdir + "succeeded."); } else { ...
public static boolean backupFolder(String root_path, String newdir) { File f = new File(root_path); boolean ret = f.renameTo(new File(newdir)); if (ret) { System.out.println("Backup of Dropbox to " + newdir + " succeeded."); } else { ...
diff --git a/Birthday/src/cz/krtinec/birthday/ui/PhotoLoader.java b/Birthday/src/cz/krtinec/birthday/ui/PhotoLoader.java index 7de8558..717207a 100644 --- a/Birthday/src/cz/krtinec/birthday/ui/PhotoLoader.java +++ b/Birthday/src/cz/krtinec/birthday/ui/PhotoLoader.java @@ -1,117 +1,121 @@ /* * This file is part of Bi...
true
true
public void run() { while (!shutdown) { if (paused) { try { Thread.sleep(100); } catch (InterruptedException e) { //do nothing } } else { if (!photosToLoad.isEmpty()) { ...
public void run() { while (!shutdown) { if (paused) { try { Thread.sleep(100); } catch (InterruptedException e) { //do nothing } } else { if (!photosToLoad.isEmpty()) { ...
diff --git a/src/net/sourcewalker/garanbot/api/ItemService.java b/src/net/sourcewalker/garanbot/api/ItemService.java index 6e2e0b3..078c6a8 100644 --- a/src/net/sourcewalker/garanbot/api/ItemService.java +++ b/src/net/sourcewalker/garanbot/api/ItemService.java @@ -1,149 +1,152 @@ package net.sourcewalker.garanbot.api;...
false
true
public List<Integer> list() throws ClientException { List<Integer> result = new ArrayList<Integer>(); try { HttpResponse response = client.get("/item"); if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) { String content = client.readEntity(resp...
public List<Integer> list() throws ClientException { List<Integer> result = new ArrayList<Integer>(); try { HttpResponse response = client.get("/item"); int statusCode = response.getStatusLine().getStatusCode(); if (statusCode == HttpStatus.SC_OK) { ...
diff --git a/src/test/java/org/castor/util/TestHex.java b/src/test/java/org/castor/util/TestHex.java index 851b5e60..71aafb36 100644 --- a/src/test/java/org/castor/util/TestHex.java +++ b/src/test/java/org/castor/util/TestHex.java @@ -1,46 +1,46 @@ /* * Copyright 2007 Werner Guttmann * * Licensed under the Apach...
true
true
public void testEncodeDecode() { byte[] bytes = new byte[256]; new Random(1L).nextBytes(bytes); final String encodedBytes = HexDecoder.encode(bytes); assertEquals( "Bad encoded data", "73d51abbd89cb8196f0efb6892f94d68fccc2c35f0b84609e5f12c55dd85aba8d5...
public void testEncodeDecode() { byte[] bytes = new byte[256]; new Random(1L).nextBytes(bytes); final String encodedBytes = HexDecoder.encode(bytes); assertEquals( "Bad encoded data", "73D51ABBD89CB8196F0EFB6892F94D68FCCC2C35F0B84609E5F12C55DD85ABA8D5...
diff --git a/cruisecontrol/main/test/net/sourceforge/cruisecontrol/jmx/CruiseControlControllerJMXAdaptorMBeanDescriptionTest.java b/cruisecontrol/main/test/net/sourceforge/cruisecontrol/jmx/CruiseControlControllerJMXAdaptorMBeanDescriptionTest.java index 7cccc509..af1b15e4 100644 --- a/cruisecontrol/main/test/net/sourc...
true
true
public void testGetOperationParameterDefaults() throws Exception { final Method method = mbean.getClass().getMethod("getLUSServiceIds", new Class[]{}); assertEquals("Invalid param: index should still call super.", ProjectControllerMBeanDescriptionTest.DEFAULT_PREFIX_PARAM_NAME + "0"...
public void testGetOperationParameterDefaults() throws Exception { final Method method = mbean.getClass().getMethod("getProjects", new Class[]{}); assertEquals("Invalid param: index should still call super.", ProjectControllerMBeanDescriptionTest.DEFAULT_PREFIX_PARAM_NAME + "0", ...
diff --git a/plugins/net.bioclipse.icebear/src/net/bioclipse/icebear/business/IcebearManager.java b/plugins/net.bioclipse.icebear/src/net/bioclipse/icebear/business/IcebearManager.java index ed7fa67..4e8925b 100644 --- a/plugins/net.bioclipse.icebear/src/net/bioclipse/icebear/business/IcebearManager.java +++ b/plugins/...
true
true
private void printFoundInformation(PrintWriter pWriter, IRDFStore store, URI ronURI) { // get the rdf:type's try { List<String> types = rdf.getForPredicate(store, ronURI.toString(), RDF.type.toString()); types.addAll(rdf.getForPredicate(store, ronURI.toString(), RDFS.subClassOf.toString())); if (types.siz...
private void printFoundInformation(PrintWriter pWriter, IRDFStore store, URI ronURI) { // get the rdf:type's try { List<String> types = rdf.getForPredicate(store, ronURI.toString(), RDF.type.toString()); types.addAll(rdf.getForPredicate(store, ronURI.toString(), RDFS.subClassOf.toString())); if (types.siz...
diff --git a/JavaLib/src/com/punchline/javalib/entities/PhysicsWorld.java b/JavaLib/src/com/punchline/javalib/entities/PhysicsWorld.java index 4a3e0d0..381c0f6 100644 --- a/JavaLib/src/com/punchline/javalib/entities/PhysicsWorld.java +++ b/JavaLib/src/com/punchline/javalib/entities/PhysicsWorld.java @@ -1,138 +1,138 @@...
true
true
public void process(float deltaSeconds) { elapsedTime += deltaSeconds; //Calculate how many steps are needed int steps = (int) (elapsedTime / TIME_STEP); //to simulate the last game loop if (steps > 0) { elapsedTime -= steps * TIME_STEP; //elapsedTime now equals the amount of time that hasn't been s...
public void process(float deltaSeconds) { elapsedTime += deltaSeconds; //Calculate how many steps are needed int steps = (int) (elapsedTime / TIME_STEP); //to simulate the last game loop if (steps > 0) { elapsedTime -= steps * TIME_STEP; //elapsedTime now equals the amount of time that hasn't been s...
diff --git a/src/jvm/final_project/control/SMSController.java b/src/jvm/final_project/control/SMSController.java index af9518c..338d985 100644 --- a/src/jvm/final_project/control/SMSController.java +++ b/src/jvm/final_project/control/SMSController.java @@ -1,60 +1,60 @@ package final_project.control; import final_p...
true
true
public SMSController(IDataStore s, TournamentController t) { _tournament = t; /* Making sender and parser */ _sender = new SMSSender(s, this); _parser = new SMSParser(s, this); /* Starting the "receiver" thread to continuously check the inbox */ SMSReceiver receiver = new SMSReceiver(this); _sendThread...
public SMSController(IDataStore s, TournamentController t) { _tournament = t; /* Making sender and parser */ _sender = new SMSSender(s, this); _parser = new SMSParser(s, this); /* Starting the "receiver" thread to continuously check the inbox */ SMSReceiver receiver = new SMSReceiver(this); _sendThread...
diff --git a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/mopp/ANTLRGrammarGenerator.java b/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/mopp/ANTLRGrammarGenerator.java index 2456284f5..958cba486 100644 --- a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/mopp/ANTLRGr...
true
true
private int printTerminal(Terminal terminal, Rule rule, StringComposite sc, int count, Map<GenClass, Collection<Terminal>> eClassesReferenced) { final GenClass genClass = rule.getMetaclass(); final GenFeature genFeature = terminal.getFeature(); final EStructuralFeature eFeature = genFeature.getEcoreFeature();...
private int printTerminal(Terminal terminal, Rule rule, StringComposite sc, int count, Map<GenClass, Collection<Terminal>> eClassesReferenced) { final GenClass genClass = rule.getMetaclass(); final GenFeature genFeature = terminal.getFeature(); final EStructuralFeature eFeature = genFeature.getEcoreFeature();...
diff --git a/src/java/org/apache/log4j/chainsaw/XMLFileHandler.java b/src/java/org/apache/log4j/chainsaw/XMLFileHandler.java index 9a6ef8b..5ce82d0 100644 --- a/src/java/org/apache/log4j/chainsaw/XMLFileHandler.java +++ b/src/java/org/apache/log4j/chainsaw/XMLFileHandler.java @@ -1,167 +1,167 @@ /* * Copyright (C) T...
true
true
public void startElement(String aNamespaceURI, String aLocalName, String aQName, Attributes aAtts) { if (TAG_EVENT.equals(aQName)) { mThreadName = aAtts.getValue("thread"); mTimeStamp = Long.pa...
public void startElement(String aNamespaceURI, String aLocalName, String aQName, Attributes aAtts) { if (TAG_EVENT.equals(aQName)) { mThreadName = aAtts.getValue("thread"); mTimeStamp = Long.pa...
diff --git a/src/Tests/functionalTests/activeobject/futuremonitoring/Test.java b/src/Tests/functionalTests/activeobject/futuremonitoring/Test.java index 10859a373..7d51c8322 100644 --- a/src/Tests/functionalTests/activeobject/futuremonitoring/Test.java +++ b/src/Tests/functionalTests/activeobject/futuremonitoring/Test....
false
true
public void action() throws Exception { // With AC boolean exception = false; A a1 = (A) ProActive.newActive(A.class.getName(), null, this.node1); A future = a1.sleepForever(); A a2 = (A) ProActive.newActive(A.class.getName(), null, this.node2); A ac = a2.wrapFuture(f...
public void action() throws Exception { // With AC boolean exception = false; A a1 = (A) ProActive.newActive(A.class.getName(), null, this.node1); A future = a1.sleepForever(); A a2 = (A) ProActive.newActive(A.class.getName(), null, this.node2); A ac = a2.wrapFuture(f...
diff --git a/src/main/java/eu/digitisation/Main.java b/src/main/java/eu/digitisation/Main.java index 7928d7d..49f4a82 100644 --- a/src/main/java/eu/digitisation/Main.java +++ b/src/main/java/eu/digitisation/Main.java @@ -1,100 +1,106 @@ package eu.digitisation; import eu.digitisation.io.TextBuilder; import eu.digi...
false
true
public static void main(String[] args) { if (args.length < 1) { System.err.println(helpMsg); } else { File outfile = null; File gtfile = null; File ocrfile = null; File repfile = null; String outencoding = System.getProperty("fi...
public static void main(String[] args) { if (args.length < 1) { System.err.println(helpMsg); } else { File outfile = null; File gtfile = null; File ocrfile = null; File repfile = null; String outencoding = System.getProperty("fi...
diff --git a/asadmin-java/src/main/java/org/n0pe/asadmin/AsAdmin.java b/asadmin-java/src/main/java/org/n0pe/asadmin/AsAdmin.java index d629aa5..7122812 100644 --- a/asadmin-java/src/main/java/org/n0pe/asadmin/AsAdmin.java +++ b/asadmin-java/src/main/java/org/n0pe/asadmin/AsAdmin.java @@ -1,304 +1,308 @@ /* * Copyrig...
true
true
public void run( final IAsAdminCmd cmd ) throws AsAdminException { try { final File gfBinPath = new File( config.getGlassfishHome() + File.separator + "bin" ); final String[] cmds = buildProcessParams( cmd, config ); cmds[0] = gfBinPath + File.separator + ...
public void run( final IAsAdminCmd cmd ) throws AsAdminException { try { final File gfBinPath = new File( config.getGlassfishHome() + File.separator + "bin" ); final String[] cmds = buildProcessParams( cmd, config ); cmds[0] = gfBinPath + File.separator + ...
diff --git a/atlas-web/src/main/java/uk/ac/ebi/gxa/web/filter/HealthFilter.java b/atlas-web/src/main/java/uk/ac/ebi/gxa/web/filter/HealthFilter.java index 08abdcad8..72c8622ea 100644 --- a/atlas-web/src/main/java/uk/ac/ebi/gxa/web/filter/HealthFilter.java +++ b/atlas-web/src/main/java/uk/ac/ebi/gxa/web/filter/HealthFil...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { request.setAttribute("health", Boolean.TRUE); chain.doFilter(request, response); }
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { request.setAttribute("health", true); chain.doFilter(request, response); }
diff --git a/loci/plugins/LociUploader.java b/loci/plugins/LociUploader.java index 75693d52f..ef978cc4d 100644 --- a/loci/plugins/LociUploader.java +++ b/loci/plugins/LociUploader.java @@ -1,189 +1,191 @@ // // LociUploader.java // /* LOCI Plugins for ImageJ: a collection of ImageJ plugins including the 4D Data...
true
true
private void uploadStack() { try { IJ.showStatus("Starting upload..."); OMEUploader ul = new OMEUploader(server, user, pass); ImagePlus imp = WindowManager.getCurrentImage(); if (imp == null) { IJ.error("No open images!"); IJ.showStatus(""); return; } Im...
private void uploadStack() { try { IJ.showStatus("Starting upload..."); OMEUploader ul = new OMEUploader(server, user, pass); ImagePlus imp = WindowManager.getCurrentImage(); if (imp == null) { IJ.error("No open images!"); IJ.showStatus(""); return; } Im...
diff --git a/Yace-war/src/java/net/yace/web/servlets/ServletCollectionView.java b/Yace-war/src/java/net/yace/web/servlets/ServletCollectionView.java index c47d2c4..3259c65 100644 --- a/Yace-war/src/java/net/yace/web/servlets/ServletCollectionView.java +++ b/Yace-war/src/java/net/yace/web/servlets/ServletCollectionView....
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { boolean error = false; String idCollection = request.getParameter("collid"); try { int collid = Integer.parseInt(idCollection); Ycollect...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { boolean error = false; String idCollection = request.getParameter("idCollection"); try { int collid = Integer.parseInt(idCollection); Yc...
diff --git a/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/wiggle/WiggleRequestHandler.java b/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/wiggle/WiggleRequestHandler.java index 1642a889a..6daab3744 100644 --- a/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/wiggle/WiggleRequestHandler.java +++ ...
false
true
public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/plain; charset=UTF-8"); final PrintWriter out = response.getWriter(); String uri = request.getRequestURI(); uri = URLDecoder.deco...
public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/plain; charset=UTF-8"); final PrintWriter out = response.getWriter(); String uri = request.getRequestURI(); //uri = URLDecoder.de...
diff --git a/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/MimeResponseHandler.java b/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/MimeResponseHandler.java index c57f6b60..d2a72658 100644 --- a/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/MimeResponseHandler.java +++ b/consumer/src/ma...
false
true
public String getReplacementFor(String match, String prefix, String suffix, boolean matchedPrefixOnly) { /* We run into some issues with URL encoding. We should not be making assumptions about which URL encoding we should be using. For example, we may be dealing with HTML encoding...
public String getReplacementFor(String match, String prefix, String suffix, boolean matchedPrefixOnly) { /* We run into some issues with URL encoding. We should not be making assumptions about which URL encoding we should be using. For example, we may be dealing with HTML encoding...
diff --git a/src/main/java/org/apache/chemistry/shell/cmds/base/Ls.java b/src/main/java/org/apache/chemistry/shell/cmds/base/Ls.java index 43f8ae7..7270f2c 100644 --- a/src/main/java/org/apache/chemistry/shell/cmds/base/Ls.java +++ b/src/main/java/org/apache/chemistry/shell/cmds/base/Ls.java @@ -1,95 +1,95 @@ /* * (...
true
true
public void run(Application app, CommandLine cmdLine) throws Exception { ensureConnected(app); String param = cmdLine.getParameterValue("target"); CommandParameter lParam = cmdLine.getParameter("-l"); Context ctx; if (param == null) { ctx = app.getContext(); ctx.reset(); for (String line : ctx.ls()...
public void run(Application app, CommandLine cmdLine) throws Exception { ensureConnected(app); String param = cmdLine.getParameterValue("target"); CommandParameter lParam = cmdLine.getParameter("-l"); Context ctx; if (param == null) { ctx = app.getContext(); ctx.reset(); for (String line : ctx.ls()...
diff --git a/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java b/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java index ed0501920..c6cf95067 100755 --- a/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java +++ b/activemq-core/src/main/java/org/apache/activemq/t...
true
true
synchronized static public void cancel(Runnable task) { ScheduledFuture ticket = (ScheduledFuture) clockTickets.remove(task); if( ticket!=null ) { ticket.cancel(false); clockDaemon.remove(task); } }
synchronized static public void cancel(Runnable task) { ScheduledFuture ticket = (ScheduledFuture) clockTickets.remove(task); if( ticket!=null ) { ticket.cancel(false); if (ticket instanceof RunnableScheduledFuture) clockDaemon.remove((RunnableScheduledFuture) ti...
diff --git a/mtshaw113/juli/interfaces/GuiBirthdayBlock.java b/mtshaw113/juli/interfaces/GuiBirthdayBlock.java index c7a08b3..3eac50d 100644 --- a/mtshaw113/juli/interfaces/GuiBirthdayBlock.java +++ b/mtshaw113/juli/interfaces/GuiBirthdayBlock.java @@ -1,34 +1,34 @@ package mtshaw113.juli.interfaces; import mtshaw1...
true
true
public GuiBirthdayBlock(InventoryPlayer invPlayer, TileEntityJuli juli) { super(new ContainerBirthdayBlock(invPlayer, juli)); xSize = 1280; ySize = 720; }
public GuiBirthdayBlock(InventoryPlayer invPlayer, TileEntityJuli juli) { super(new ContainerBirthdayBlock(invPlayer, juli)); xSize = 256; ySize = 256; }
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllStandaloneTests.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllStandaloneTests.java index 50a1965..72b9b1e 100644 --- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllStandaloneTests.java +++ b/org.eclipse.mylyn.tests/src/org/ecl...
true
true
public static Test suite() { TestSuite suite = new TestSuite("Tests not requiring Eclipse Workbench"); //$JUnit-BEGIN$ // suite.addTestSuite(ContextExternalizationTest.class); suite.addTestSuite(DegreeOfInterestTest.class); suite.addTestSuite(ContextTest.class); suite.addTestSuite(TaskListStandaloneTest....
public static Test suite() { TestSuite suite = new TestSuite("Tests not requiring Eclipse Workbench"); //$JUnit-BEGIN$ // suite.addTestSuite(ContextExternalizerTest.class); suite.addTestSuite(DegreeOfInterestTest.class); suite.addTestSuite(ContextTest.class); suite.addTestSuite(TaskListStandaloneTest.cla...
diff --git a/src/com/modcrafting/diablodrops/listeners/ChunkListener.java b/src/com/modcrafting/diablodrops/listeners/ChunkListener.java index af5abf5..b190c2a 100644 --- a/src/com/modcrafting/diablodrops/listeners/ChunkListener.java +++ b/src/com/modcrafting/diablodrops/listeners/ChunkListener.java @@ -1,305 +1,307 @@...
true
true
public void onChunkPopulate(ChunkPopulateEvent event) { if (!plugin.config.getBoolean("Ruins.Enabled", true)) { return; } if (!plugin.worlds.contains(event.getWorld().getName()) && plugin.config.getBoolean("Worlds.Enabled", false)) { ...
public void onChunkPopulate(ChunkPopulateEvent event) { if (!plugin.config.getBoolean("Ruins.Enabled", true)) { return; } if (!plugin.worlds.contains(event.getWorld().getName()) && plugin.config.getBoolean("Worlds.Enabled", false)) { ...
diff --git a/dexlib/src/main/java/org/jf/dexlib/Debug/DebugInstructionIterator.java b/dexlib/src/main/java/org/jf/dexlib/Debug/DebugInstructionIterator.java index 36116d8..1f910c7 100644 --- a/dexlib/src/main/java/org/jf/dexlib/Debug/DebugInstructionIterator.java +++ b/dexlib/src/main/java/org/jf/dexlib/Debug/DebugInst...
true
true
public static void DecodeInstructions(DebugInfoItem debugInfoItem, int registerCount, ProcessDecodedDebugInstructionDelegate processDecodedDebugInstruction) { int startOffset; int address = 0; int line = debugInfoItem.getLineStart(); Input i...
public static void DecodeInstructions(DebugInfoItem debugInfoItem, int registerCount, ProcessDecodedDebugInstructionDelegate processDecodedDebugInstruction) { int startOffset; int address = 0; int line = debugInfoItem.getLineStart(); Input i...
diff --git a/client/cpw/mods/fml/client/FMLClientHandler.java b/client/cpw/mods/fml/client/FMLClientHandler.java index 908ad06e..fefcc5d5 100644 --- a/client/cpw/mods/fml/client/FMLClientHandler.java +++ b/client/cpw/mods/fml/client/FMLClientHandler.java @@ -1,345 +1,345 @@ /* * The FML Forge Mod Loader suite. Copyr...
true
true
public Entity spawnEntityIntoClientWorld(Class<? extends Entity> cls, EntitySpawnPacket packet) { WorldClient wc = client.field_71441_e; try { Entity entity = (Entity)(cls.getConstructor(World.class).newInstance(wc)); if (entity instanceof IThrowableEntity) ...
public Entity spawnEntityIntoClientWorld(Class<? extends Entity> cls, EntitySpawnPacket packet) { WorldClient wc = client.field_71441_e; try { Entity entity = (Entity)(cls.getConstructor(World.class).newInstance(wc)); if (entity instanceof IThrowableEntity) ...
diff --git a/com.itsolut.mantis.core/src/com/itsolut/mantis/core/MantisClientManager.java b/com.itsolut.mantis.core/src/com/itsolut/mantis/core/MantisClientManager.java index 04eefcf..1397a51 100644 --- a/com.itsolut.mantis.core/src/com/itsolut/mantis/core/MantisClientManager.java +++ b/com.itsolut.mantis.core/src/com/...
true
true
public synchronized void repositoryChanged(TaskRepositoryChangeEvent event) { TaskRepository repository = event.getRepository(); TaskRepositoryDelta delta = event.getDelta(); if (!MantisCorePlugin.REPOSITORY_KIND.equals(repository.getConnectorKind())) return; M...
public synchronized void repositoryChanged(TaskRepositoryChangeEvent event) { TaskRepository repository = event.getRepository(); TaskRepositoryDelta delta = event.getDelta(); if (!MantisCorePlugin.REPOSITORY_KIND.equals(repository.getConnectorKind())) return; M...
diff --git a/java/test/org/broadinstitute/sting/gatk/walkers/indels/IntervalsIntegrationTest.java b/java/test/org/broadinstitute/sting/gatk/walkers/indels/IntervalsIntegrationTest.java index 524357208..559176b37 100755 --- a/java/test/org/broadinstitute/sting/gatk/walkers/indels/IntervalsIntegrationTest.java +++ b/java...
true
true
public void testIntervals() { WalkerTest.WalkerTestSpec spec1 = new WalkerTest.WalkerTestSpec( "-T IndelIntervals -R /broad/1KG/reference/human_b36_both.fasta -I /humgen/gsa-scr1/GATK_Data/Validation_Data/NA12878.1kg.p2.chr1_10mb_11_mb.SLX.bam -L 1:10,000,000-11,000,000 -o %s", ...
public void testIntervals() { WalkerTest.WalkerTestSpec spec1 = new WalkerTest.WalkerTestSpec( "-T IndelIntervals -R /broad/1KG/reference/human_b36_both.fasta -I /humgen/gsa-scr1/GATK_Data/Validation_Data/NA12878.1kg.p2.chr1_10mb_11_mb.SLX.bam -L 1:10,000,000-11,000,000 -o %s", ...