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/tests/generated/src/test/java/com/thoughtworks/selenium/ResourceAvailabilityTest.java b/tests/generated/src/test/java/com/thoughtworks/selenium/ResourceAvailabilityTest.java index 961c8e55..a8ab51fb 100644 --- a/tests/generated/src/test/java/com/thoughtworks/selenium/ResourceAvailabilityTest.java +++ b/tes...
true
true
public void testResourceAvailable() { InputStream s = ResourceAvailabilityTest.class.getResourceAsStream("/core/SeleneseRunner.html"); assertNotNull("SeleneseRunner can't be found!", s); }
public void testResourceAvailable() { InputStream s = ResourceAvailabilityTest.class.getResourceAsStream("/core/RemoteRunner.html"); assertNotNull("RemoteRunner can't be found!", s); }
diff --git a/src/com/wolvencraft/prison/mines/CommandManager.java b/src/com/wolvencraft/prison/mines/CommandManager.java index b6ba816..728e4cf 100644 --- a/src/com/wolvencraft/prison/mines/CommandManager.java +++ b/src/com/wolvencraft/prison/mines/CommandManager.java @@ -1,187 +1,188 @@ /* * CommandManager.java *...
true
true
public boolean run(String[] args) { if(sender != null) { if(sender instanceof Player) Message.debug("Command issued by player: " + sender.getName()); else if(sender instanceof ConsoleCommandSender) Message.debug("Command issued by CONSOLE"); else Message.debug("Command is...
public boolean run(String[] args) { if(sender != null) { if(sender instanceof Player) Message.debug("Command issued by player: " + sender.getName()); else if(sender instanceof ConsoleCommandSender) Message.debug("Command issued by CONSOLE"); else Message.debug("Command is...
diff --git a/M-GOV_android/mGOV_android/src/tw/edu/ntu/mgov/caseviewer/CaseViewer.java b/M-GOV_android/mGOV_android/src/tw/edu/ntu/mgov/caseviewer/CaseViewer.java index 28ca2f3..89875cc 100644 --- a/M-GOV_android/mGOV_android/src/tw/edu/ntu/mgov/caseviewer/CaseViewer.java +++ b/M-GOV_android/mGOV_android/src/tw/edu/ntu...
true
true
private void setAllAttributes() { caseID.setText(queryResult.getform("key")); date.setText(queryResult.getform("date")); caseStatus.setText(queryResult.getform("status")); caseType.setText(QidToDescription.getDetailByQID(this, Integer.parseInt(queryResult.getform("typeid")))); description.setText(queryResult...
private void setAllAttributes() { caseID.setText(queryResult.getform("key")); date.setText(queryResult.getform("date")); caseStatus.setText(queryResult.getform("status")); caseType.setText(QidToDescription.getDetailByQID(this, Integer.parseInt(queryResult.getform("typeid")))); description.setText(queryResult...
diff --git a/src/com/android/bluetooth/btservice/AdapterState.java b/src/com/android/bluetooth/btservice/AdapterState.java old mode 100755 new mode 100644 index 5f9c30b..7dba484 --- a/src/com/android/bluetooth/btservice/AdapterState.java +++ b/src/com/android/bluetooth/btservice/AdapterState.java @@ -1,392 +1,394 @@ /...
true
true
public boolean processMessage(Message msg) { boolean isTurningOn= isTurningOn(); boolean isTurningOff = isTurningOff(); AdapterService adapterService = mAdapterService; AdapterProperties adapterProperties = mAdapterProperties; if ((adapterService == ...
public boolean processMessage(Message msg) { boolean isTurningOn= isTurningOn(); boolean isTurningOff = isTurningOff(); AdapterService adapterService = mAdapterService; AdapterProperties adapterProperties = mAdapterProperties; if ((adapterService == ...
diff --git a/server/src/edu/rpi/cct/webdav/servlet/common/WebdavServlet.java b/server/src/edu/rpi/cct/webdav/servlet/common/WebdavServlet.java index d996036..32efcc1 100644 --- a/server/src/edu/rpi/cct/webdav/servlet/common/WebdavServlet.java +++ b/server/src/edu/rpi/cct/webdav/servlet/common/WebdavServlet.java @@ -1,5...
true
true
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebdavNsIntf intf = null; boolean serverError = false; try { String debugStr = getInitParameter("debug"); if (debugStr != null) { debug = !"0"...
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebdavNsIntf intf = null; boolean serverError = false; try { String debugStr = getInitParameter("debug"); if (debugStr != null) { debug = !"0"...
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/io/dav/http/HTTPConnection.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/io/dav/http/HTTPConnection.java index 3d7772428..2ae69f840 100644 --- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/io/dav/http/HTTPConnection.java +++ b/svnk...
false
true
public HTTPStatus request(String method, String path, HTTPHeader header, InputStream body, int ok1, int ok2, OutputStream dst, DefaultHandler handler, SVNErrorMessage context) throws SVNException { myLastStatus = null; myRequestCount++; if ("".equals(path) || path == null) { ...
public HTTPStatus request(String method, String path, HTTPHeader header, InputStream body, int ok1, int ok2, OutputStream dst, DefaultHandler handler, SVNErrorMessage context) throws SVNException { myLastStatus = null; myRequestCount++; if ("".equals(path) || path == null) { ...
diff --git a/src/main/java/nz/co/searchwellington/feeds/CommentFeedService.java b/src/main/java/nz/co/searchwellington/feeds/CommentFeedService.java index 2741c166..0a8843d6 100644 --- a/src/main/java/nz/co/searchwellington/feeds/CommentFeedService.java +++ b/src/main/java/nz/co/searchwellington/feeds/CommentFeedServic...
false
true
public List<Comment> loadComments(CommentFeed commentFeed) { List<Comment> comments = new ArrayList<Comment>(); // TODO this stopped working around 14 june 2011 //if (commentFeed.getNewsitem() == null) { // log.warn("Comment feed has no associated newsitems; no point in loading comments: " + com...
public List<Comment> loadComments(CommentFeed commentFeed) { List<Comment> comments = new ArrayList<Comment>(); // TODO this stopped working around 14 june 2011 //if (commentFeed.getNewsitem() == null) { // log.warn("Comment feed has no associated newsitems; no point in loading comments: " + com...
diff --git a/src/web/org/openmrs/web/taglib/FieldGenTag.java b/src/web/org/openmrs/web/taglib/FieldGenTag.java index 7c18e2d3..48d69da2 100644 --- a/src/web/org/openmrs/web/taglib/FieldGenTag.java +++ b/src/web/org/openmrs/web/taglib/FieldGenTag.java @@ -1,468 +1,468 @@ /** * The contents of this file are subject to...
true
true
public int doStartTag() throws JspException { if (type == null) type = ""; if (formFieldName == null) formFieldName = ""; if (formFieldName.length() > 0) { FieldGenHandler handler = getHandlerByClassName(type); if (handler != null) { handler.setFieldGenTag(this); handler.run(); } els...
public int doStartTag() throws JspException { if (type == null) type = ""; if (formFieldName == null) formFieldName = ""; if (formFieldName.length() > 0) { FieldGenHandler handler = getHandlerByClassName(type); if (handler != null) { handler.setFieldGenTag(this); handler.run(); } els...
diff --git a/src/fr/iutvalence/java/mp/thelasttyper/client/data/Game.java b/src/fr/iutvalence/java/mp/thelasttyper/client/data/Game.java index d5480fa..aa841e2 100644 --- a/src/fr/iutvalence/java/mp/thelasttyper/client/data/Game.java +++ b/src/fr/iutvalence/java/mp/thelasttyper/client/data/Game.java @@ -1,154 +1,154 @@...
true
true
public void play() { boolean isGameOn = true; // TODO (FIXED) inner comments should not use javadoc syntax // exception to do : OutofLivesException : when the player have 0 lives. // Will allow to end the game // TODO (think about it) isGameOn looks much more like a loc...
public void play() { boolean isGameOn = true; // TODO (FIXED) inner comments should not use javadoc syntax // exception to do : OutofLivesException : when the player have 0 lives. // Will allow to end the game // TODO (think about it) isGameOn looks much more like a loc...
diff --git a/src/webapp/src/java/org/wyona/yanel/servlet/menu/TransitionMenuContentImpl.java b/src/webapp/src/java/org/wyona/yanel/servlet/menu/TransitionMenuContentImpl.java index 1994a697d..e812fb42a 100644 --- a/src/webapp/src/java/org/wyona/yanel/servlet/menu/TransitionMenuContentImpl.java +++ b/src/webapp/src/java...
true
true
public String getTransitionElement(final Transition t) { if(log.isDebugEnabled()) log.debug("Transition: " + t.getID()); try { Workflow workflow = WorkflowHelper.getWorkflow(this.resource); Transition[] stateSpecificTransitions = workflow.getLeavingTransitions(this.state); ...
public String getTransitionElement(final Transition t) { if(log.isDebugEnabled()) log.debug("Transition: " + t.getID()); try { Workflow workflow = WorkflowHelper.getWorkflow(this.resource); Transition[] stateSpecificTransitions = workflow.getLeavingTransitions(this.state); ...
diff --git a/src/me/chaseoes/tf2/commands/SpectateCommand.java b/src/me/chaseoes/tf2/commands/SpectateCommand.java index f5ce5c8..be949d0 100644 --- a/src/me/chaseoes/tf2/commands/SpectateCommand.java +++ b/src/me/chaseoes/tf2/commands/SpectateCommand.java @@ -1,100 +1,101 @@ package me.chaseoes.tf2.commands; impor...
true
true
public void execSpectateCommand(CommandSender cs, String[] strings, Command cmnd) { CommandHelper h = new CommandHelper(cs, cmnd); Player player = (Player) cs; if (strings.length == 1) { if (isSpectating(player)) { stopSpectating(player); } else { ...
public void execSpectateCommand(CommandSender cs, String[] strings, Command cmnd) { CommandHelper h = new CommandHelper(cs, cmnd); Player player = (Player) cs; if (strings.length == 1) { if (isSpectating(player)) { stopSpectating(player); } else { ...
diff --git a/src/org/apache/xalan/lib/sql/ColumnData.java b/src/org/apache/xalan/lib/sql/ColumnData.java index 3ddc926e..5d4fd1c5 100644 --- a/src/org/apache/xalan/lib/sql/ColumnData.java +++ b/src/org/apache/xalan/lib/sql/ColumnData.java @@ -1,350 +1,351 @@ /* * The Apache Software License, Version 1.1 * * * ...
false
true
public String getData() throws DOMException { try { ResultSet rs = this.getXStatement().getResultSet(); int columnIndex = m_parent.m_columnIndex; if (DEBUG) System.out.println("In ColumnData.getData, columnIndex: " + columnIndex); if (columnIndex...
public String getData() throws DOMException { try { ResultSet rs = this.getXStatement().getResultSet(); int columnIndex = m_parent.m_columnIndex; if (DEBUG) System.out.println("In ColumnData.getData, columnIndex: " + columnIndex); if (columnIndex...
diff --git a/src/autosaveworld/threads/save/AutoSaveThread.java b/src/autosaveworld/threads/save/AutoSaveThread.java index fb66361..8599ba1 100644 --- a/src/autosaveworld/threads/save/AutoSaveThread.java +++ b/src/autosaveworld/threads/save/AutoSaveThread.java @@ -1,256 +1,256 @@ /** * This program is free software;...
false
true
private void saveWorldDoNoSaveStructureInfo(World world) { //omg... try { //save saveenabled state boolean saveenabled = world.isAutoSave(); //set saveenabled state world.setAutoSave(true); //get worldserver and dataManager Field worldField = world.getClass().getDeclaredField("world"); worl...
private void saveWorldDoNoSaveStructureInfo(World world) { //save saveenabled state boolean saveenabled = world.isAutoSave(); //set saveenabled state world.setAutoSave(true); //now lets save everything besides structures try { //get worldserver and dataManager Field worldField = world.getClass().g...
diff --git a/java/src/game/ai/FitnessComparator.java b/java/src/game/ai/FitnessComparator.java index ee562aa..fb826df 100755 --- a/java/src/game/ai/FitnessComparator.java +++ b/java/src/game/ai/FitnessComparator.java @@ -1,18 +1,18 @@ package game.ai; import game.State; import java.util.Comparator; /** * Co...
true
true
public int compare(State a, State b) { return Integer.compare(a.fitness, b.fitness); }
public int compare(State a, State b) { return Integer.compare(b.fitness, a.fitness); }
diff --git a/src/main/java/com/hacku/swearjar/server/ConvertServlet.java b/src/main/java/com/hacku/swearjar/server/ConvertServlet.java index 2ed39fd..4fd51f1 100644 --- a/src/main/java/com/hacku/swearjar/server/ConvertServlet.java +++ b/src/main/java/com/hacku/swearjar/server/ConvertServlet.java @@ -1,329 +1,330 @@ pa...
false
true
private static SpeechResponse getSpeechResponse(String speechFilename) { FileLock lock = null; String except = ""; try { log("file", speechFilename); except = except.concat("1"); File file = waitForFileCreation(speechFilename, 1000); // Read s...
private static SpeechResponse getSpeechResponse(String speechFilename) { FileLock lock = null; String except = ""; try { log("file", speechFilename); except = except.concat("1"); File file = waitForFileCreation(speechFilename, 1000); // Read s...
diff --git a/gdx/src/com/badlogic/gdx/math/Polygon.java b/gdx/src/com/badlogic/gdx/math/Polygon.java index dfd7db729..2051acdad 100644 --- a/gdx/src/com/badlogic/gdx/math/Polygon.java +++ b/gdx/src/com/badlogic/gdx/math/Polygon.java @@ -1,205 +1,206 @@ /*****************************************************************...
false
true
public float[] getVertices () { if (!dirty) return vertices; float[] vertices = this.vertices; final int numFloats = vertices.length; final float translateX = x + originX; final float translateY = y + originY; final float cos = MathUtils.cosDeg(rotation); final float sin = MathUtils.sinDeg(rotation); ...
public float[] getVertices () { if (!dirty) return vertices; float[] vertices = this.vertices; final int numFloats = vertices.length; final float translateX = x + originX; final float translateY = y + originY; final float cos = MathUtils.cosDeg(rotation); final float sin = MathUtils.sinDeg(rotation); ...
diff --git a/OpERP/src/main/java/devopsdistilled/operp/server/ServerApp.java b/OpERP/src/main/java/devopsdistilled/operp/server/ServerApp.java index f6c626f4..19a4db02 100644 --- a/OpERP/src/main/java/devopsdistilled/operp/server/ServerApp.java +++ b/OpERP/src/main/java/devopsdistilled/operp/server/ServerApp.java @@ -1...
true
true
public static void main(String[] args) { ApplicationContext context = new AnnotationConfigApplicationContext( AppContext.class); Properties hibernateProperties = new Properties(); URL hibernatePropertiesFileUrl = ServerApp.class.getClassLoader() .getResource("server/hibernate.properties"); File hibern...
public static void main(String[] args) { ApplicationContext context = new AnnotationConfigApplicationContext( AppContext.class); Properties hibernateProperties = new Properties(); URL hibernatePropertiesFileUrl = ServerApp.class.getClassLoader() .getResource("server/hibernate.properties"); File hibern...
diff --git a/hbl/src/main/java/com/inadco/hbl/model/NumericMeasure.java b/hbl/src/main/java/com/inadco/hbl/model/NumericMeasure.java index d05506e..006d633 100644 --- a/hbl/src/main/java/com/inadco/hbl/model/NumericMeasure.java +++ b/hbl/src/main/java/com/inadco/hbl/model/NumericMeasure.java @@ -1,65 +1,65 @@ /* * ...
true
true
public Object compiler2Fact(Object value) { if (value == null) return null; /* * translate all numeric types to Double. */ else if (value instanceof Double) return (Double) value; else if (value instanceof Long) return ((Long) val...
public Object compiler2Fact(Object value) { if (value == null) return null; /* * translate all numeric types to Double. */ else if (value instanceof Double) return (Double) value; else if (value instanceof Long) return ((Long) val...
diff --git a/test/models/PermissionTest.java b/test/models/PermissionTest.java index 3b2bf2cf..4dc2f343 100644 --- a/test/models/PermissionTest.java +++ b/test/models/PermissionTest.java @@ -1,26 +1,26 @@ package models; import models.enumeration.PermissionOperation; import models.enumeration.PermissionResource; ...
true
true
public void permissionCheck() throws Exception { // Given // When // Then assertThat(Permission.permissionCheck(2l, 1l, PermissionResource.PROJECT.resource(), PermissionOperation.WRITE.operation())).isEqualTo(true); assertThat(Permission.permissionCheck(2l, 2l, PermissionReso...
public void permissionCheck() throws Exception { // Given // When // Then assertThat(Permission.permissionCheck(2l, 1l, PermissionResource.PROJECT, PermissionOperation.WRITE)).isEqualTo(true); assertThat(Permission.permissionCheck(2l, 2l, PermissionResource.PROJECT, Permissio...
diff --git a/src/jLanSend/MainWindow.java b/src/jLanSend/MainWindow.java index 079b105..eec3b50 100644 --- a/src/jLanSend/MainWindow.java +++ b/src/jLanSend/MainWindow.java @@ -1,311 +1,311 @@ /** * */ package jLanSend; import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.HeadlessExce...
true
true
public MainWindow() throws HeadlessException { super("JLanSend"); JLanSend.getJLanSend().addObserver(this); setLayout(new BorderLayout()); tabGroup = new JTabbedPane(); recvTab = new JPanel(new BorderLayout()); sendTab = new JPanel(new BorderLayout()); settingsTab = new JPanel(new GridLayout(0, 2))...
public MainWindow() throws HeadlessException { super("JLanSend"); JLanSend.getJLanSend().addObserver(this); setLayout(new BorderLayout()); tabGroup = new JTabbedPane(); recvTab = new JPanel(new BorderLayout()); sendTab = new JPanel(new BorderLayout()); settingsTab = new JPanel(new GridLayout(0, 2))...
diff --git a/svnkit/src/org/tmatesoft/svn/core/internal/wc/admin/SVNAdminArea14.java b/svnkit/src/org/tmatesoft/svn/core/internal/wc/admin/SVNAdminArea14.java index 5496ba540..0f2112809 100644 --- a/svnkit/src/org/tmatesoft/svn/core/internal/wc/admin/SVNAdminArea14.java +++ b/svnkit/src/org/tmatesoft/svn/core/internal/...
false
true
private SVNEntry readEntry(BufferedReader reader, int entryNumber) throws IOException, SVNException { String line = reader.readLine(); if (line == null && entryNumber > 1) { return null; } String name = parseString(line); name = name != null ? name : getThisDirNa...
private SVNEntry readEntry(BufferedReader reader, int entryNumber) throws IOException, SVNException { String line = reader.readLine(); if (line == null && entryNumber > 1) { return null; } String name = parseString(line); name = name != null ? name : getThisDirNa...
diff --git a/src/org/nutz/json/JsonParsing.java b/src/org/nutz/json/JsonParsing.java index 912da7fd2..ae40e8648 100644 --- a/src/org/nutz/json/JsonParsing.java +++ b/src/org/nutz/json/JsonParsing.java @@ -1,126 +1,126 @@ package org.nutz.json; import java.io.Reader; import java.lang.reflect.Array; import java.lan...
true
true
Object list2Object(Type type, List<Object> list) { Class<?> clazz = Lang.getTypeClass(type); Type tt = null; if (type instanceof ParameterizedType) { ParameterizedType pt = (ParameterizedType) type; Type[] ts = pt.getActualTypeArguments(); if (ts != null && ts.length > 0) tt = Lang.getTypeClass(ts[0...
Object list2Object(Type type, List<Object> list) { Class<?> clazz = Lang.getTypeClass(type); Type tt = null; if (type instanceof ParameterizedType) { ParameterizedType pt = (ParameterizedType) type; Type[] ts = pt.getActualTypeArguments(); if (ts != null && ts.length > 0) tt = Lang.getTypeClass(ts[0...
diff --git a/src/org/sharedsolar/adapter/VendorAddCreditAdapter.java b/src/org/sharedsolar/adapter/VendorAddCreditAdapter.java index 64b2523..fc808d3 100644 --- a/src/org/sharedsolar/adapter/VendorAddCreditAdapter.java +++ b/src/org/sharedsolar/adapter/VendorAddCreditAdapter.java @@ -1,128 +1,132 @@ package org.shared...
true
true
public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { convertView = mInflater .inflate(R.layout.vendor_add_credit_item, null); holder = new ViewHolder(); holder.denominationText = (TextView) convertView .findViewById(R.id.vendorAddC...
public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { convertView = mInflater .inflate(R.layout.vendor_add_credit_item, null); holder = new ViewHolder(); holder.denominationText = (TextView) convertView .findViewById(R.id.vendorAddC...
diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java index f03537c..6c90b35 100644 --- a/src/main/javassist/bytecode/ClassFile.java +++ b/src/main/javassist/bytecode/ClassFile.java @@ -1,842 +1,841 @@ /* * Javassist, a Java-bytecode translator toolkit. * Copyright (C...
true
true
public void prune() { ConstPool cp = compact0(); LinkedList newAttributes = new LinkedList(); AttributeInfo invisibleAnnotations = getAttribute(AnnotationsAttribute.invisibleTag); if (invisibleAnnotations != null) { invisibleAnnotations = invisibleAnnotations....
public void prune() { ConstPool cp = compact0(); LinkedList newAttributes = new LinkedList(); AttributeInfo invisibleAnnotations = getAttribute(AnnotationsAttribute.invisibleTag); if (invisibleAnnotations != null) { invisibleAnnotations = invisibleAnnotations....
diff --git a/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/UIFrameStatusBar.java b/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/UIFrameStatusBar.java index 7fe4ae9..daa8307 100755 --- a/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/UIFrameStatusBar.java +++ b/ardor3d-ui/src/main/java/com/ardor3d/extension/...
false
true
private void resizeFrameByPosition(final int mouseX, final int mouseY) { final Vector3 vec = Vector3.fetchTempInstance(); vec.set(mouseX, mouseY, 0); getWorldTransform().applyInverse(vec); final int x = Math.round(vec.getXf()); final int y = Math.roun...
private void resizeFrameByPosition(final int mouseX, final int mouseY) { final Vector3 vec = Vector3.fetchTempInstance(); vec.set(mouseX, mouseY, 0); getWorldTransform().applyInverse(vec); final int x = Math.round(vec.getXf()); final int y = Math.roun...
diff --git a/src/com/android/settings/TextToSpeechSettings.java b/src/com/android/settings/TextToSpeechSettings.java index 23959c87c..fa9ea583f 100644 --- a/src/com/android/settings/TextToSpeechSettings.java +++ b/src/com/android/settings/TextToSpeechSettings.java @@ -1,692 +1,714 @@ /* * Copyright (C) 2009 The Andr...
true
true
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == VOICE_DATA_INTEGRITY_CHECK) { if (data == null){ // The CHECK_TTS_DATA activity for the plugin did not run properly; // disable the preview and install controls and ...
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == VOICE_DATA_INTEGRITY_CHECK) { if (data == null){ // The CHECK_TTS_DATA activity for the plugin did not run properly; // disable the preview and install controls and ...
diff --git a/swing/ui/src/main/java/org/sola/clients/swing/ui/referencedata/RequestTypePanel.java b/swing/ui/src/main/java/org/sola/clients/swing/ui/referencedata/RequestTypePanel.java index e4cfdb2a..f0f0d633 100644 --- a/swing/ui/src/main/java/org/sola/clients/swing/ui/referencedata/RequestTypePanel.java +++ b/swing/...
false
true
private void initComponents() { bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); displayValues = new org.sola.clients.beans.system.LocalizedValuesListBean(); descriptionValues = new org.sola.clients.beans.system.LocalizedValuesListBean(); requestCategoryTypes = createReq...
private void initComponents() { bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); displayValues = new org.sola.clients.beans.system.LocalizedValuesListBean(); descriptionValues = new org.sola.clients.beans.system.LocalizedValuesListBean(); requestCategoryTypes = createReq...
diff --git a/src/com/nullwire/trace/ExceptionClickListener.java b/src/com/nullwire/trace/ExceptionClickListener.java index 3bf7adc..525b755 100644 --- a/src/com/nullwire/trace/ExceptionClickListener.java +++ b/src/com/nullwire/trace/ExceptionClickListener.java @@ -1,49 +1,49 @@ /** * */ package com.nullwire.trace...
false
true
public void onClick(DialogInterface dialog, int whichButton) { switch (whichButton) { case DialogInterface.BUTTON_POSITIVE: dialog.dismiss(); Log.d(TAG, "Trying to submit stack traces"); new Thread(new Runnable() { public void run() { ExceptionHandler.submitStackTraces(); } }).run(); br...
public void onClick(DialogInterface dialog, int whichButton) { switch (whichButton) { case DialogInterface.BUTTON_POSITIVE: dialog.dismiss(); Log.d(TAG, "Trying to submit stack traces"); new Thread(new Runnable() { public void run() { ExceptionHandler.submitStackTraces(); } }).start(); ...
diff --git a/dspace/src/org/dspace/content/InstallItem.java b/dspace/src/org/dspace/content/InstallItem.java index a4a85cafe..1e719a264 100644 --- a/dspace/src/org/dspace/content/InstallItem.java +++ b/dspace/src/org/dspace/content/InstallItem.java @@ -1,212 +1,228 @@ /* * InstallItem.java * * Version: $Revision...
false
true
public static Item installItem(Context c, InProgressSubmission is, String suppliedHandle) throws SQLException, IOException, AuthorizeException { Item item = is.getItem(); String handle; // set the language to default if it's not set already DCValue[] dc =...
public static Item installItem(Context c, InProgressSubmission is, String suppliedHandle) throws SQLException, IOException, AuthorizeException { Item item = is.getItem(); String handle; // set the language to default if it's not set already DCValue[] dc =...
diff --git a/src/ussr/builder/saveLoadXML/SaveLoadXMLTemplate.java b/src/ussr/builder/saveLoadXML/SaveLoadXMLTemplate.java index a4747b90..69f282f8 100644 --- a/src/ussr/builder/saveLoadXML/SaveLoadXMLTemplate.java +++ b/src/ussr/builder/saveLoadXML/SaveLoadXMLTemplate.java @@ -1,540 +1,545 @@ package ussr.builder.sav...
true
true
public TransformerHandler initializeTransformer(String fileDirectoryName) { File newFile = new File (fileDirectoryName + XML_EXTENSION); BufferedWriter characterWriter = null; try { characterWriter = new BufferedWriter(new FileWriter(newFile, true)); } catch (IOException e) { throw new Error ("Input O...
public TransformerHandler initializeTransformer(String fileDirectoryName) { File newFile; if (fileDirectoryName.contains(XML_EXTENSION)){ newFile = new File (fileDirectoryName); }else{ newFile = new File (fileDirectoryName + XML_EXTENSION); } BufferedWriter characterWriter = null; try { ...
diff --git a/src/com/android/deskclock/AlarmReceiver.java b/src/com/android/deskclock/AlarmReceiver.java index 1e3e6df1a..db327c22d 100644 --- a/src/com/android/deskclock/AlarmReceiver.java +++ b/src/com/android/deskclock/AlarmReceiver.java @@ -1,261 +1,262 @@ /* * Copyright (C) 2007 The Android Open Source Project ...
true
true
private void handleIntent(Context context, Intent intent) { if (Alarms.ALARM_KILLED.equals(intent.getAction())) { // The alarm has been killed, update the notification updateNotification(context, (Alarm) intent.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA), ...
private void handleIntent(Context context, Intent intent) { if (Alarms.ALARM_KILLED.equals(intent.getAction())) { // The alarm has been killed, update the notification updateNotification(context, (Alarm) intent.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA), ...
diff --git a/src/main/java/de/javadesign/cdi/extension/spring/SpringBeanVetoExtension.java b/src/main/java/de/javadesign/cdi/extension/spring/SpringBeanVetoExtension.java index b5ef05b..ce0deff 100644 --- a/src/main/java/de/javadesign/cdi/extension/spring/SpringBeanVetoExtension.java +++ b/src/main/java/de/javadesign/c...
true
true
private boolean beanForClassExists(Class<?> clazz) { // Lookup if (0 != beanFactory.getBeanNamesForType(clazz).length) { return true; } // Workaround if interfaces in combination with component scanning is used. // Spring framework automatically detects interface ...
private boolean beanForClassExists(Class<?> clazz) { // Lookup if (0 != beanFactory.getBeanNamesForType(clazz).length) { return true; } // Workaround if interfaces in combination with component scanning is used. // Spring framework automatically detects interface ...
diff --git a/src/net/java/sip/communicator/impl/gui/main/login/SecurityAuthorityImpl.java b/src/net/java/sip/communicator/impl/gui/main/login/SecurityAuthorityImpl.java index b8983f03d..97f497cef 100644 --- a/src/net/java/sip/communicator/impl/gui/main/login/SecurityAuthorityImpl.java +++ b/src/net/java/sip/communicato...
false
true
public UserCredentials obtainCredentials( String realm, UserCredentials userCredentials, int reasonCode) { String errorMessage = null; if (reasonCode == WRONG_PASSWORD) { errorMessage = Messages.getI18NString("authenticatio...
public UserCredentials obtainCredentials( String realm, UserCredentials userCredentials, int reasonCode) { String errorMessage = null; if (reasonCode == WRONG_PASSWORD) { errorMessage = Messages.getI18NString("authenticatio...
diff --git a/src/java-server-framework/org/xins/server/APIManager.java b/src/java-server-framework/org/xins/server/APIManager.java index 7dc40691b..e4482cbdd 100644 --- a/src/java-server-framework/org/xins/server/APIManager.java +++ b/src/java-server-framework/org/xins/server/APIManager.java @@ -1,265 +1,266 @@ /* *...
false
true
public TabularDataSupport getStatistics() throws IOException { String[] statsNames = {"count", "error code", "average"}; OpenType[] statsTypes = {SimpleType.STRING, SimpleType.STRING, SimpleType.STRING}; try { CompositeType statType = new CompositeType("Statistic", "A stati...
public TabularDataSupport getStatistics() throws IOException { String[] statsNames = {"function", "count", "error code", "average"}; OpenType[] statsTypes = {SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING}; try { CompositeType statType = new CompositeType("Stati...
diff --git a/src/com/android/contacts/vcard/ExportProcessor.java b/src/com/android/contacts/vcard/ExportProcessor.java index 42a71b1b2..4bd4ed98d 100644 --- a/src/com/android/contacts/vcard/ExportProcessor.java +++ b/src/com/android/contacts/vcard/ExportProcessor.java @@ -1,273 +1,273 @@ /* * Copyright (C) 2010 The ...
true
true
private void runInternal() { if (DEBUG) Log.d(LOG_TAG, String.format("vCard export (id: %d) has started.", mJobId)); final ExportRequest request = mExportRequest; VCardComposer composer = null; boolean successful = false; try { if (isCancelled()) { ...
private void runInternal() { if (DEBUG) Log.d(LOG_TAG, String.format("vCard export (id: %d) has started.", mJobId)); final ExportRequest request = mExportRequest; VCardComposer composer = null; boolean successful = false; try { if (isCancelled()) { ...
diff --git a/src/main/java/com/khs/sherpa/processor/RestfulRequestProcessor.java b/src/main/java/com/khs/sherpa/processor/RestfulRequestProcessor.java index dff5f00..9551b28 100644 --- a/src/main/java/com/khs/sherpa/processor/RestfulRequestProcessor.java +++ b/src/main/java/com/khs/sherpa/processor/RestfulRequestProces...
false
true
public String getEndpoint(HttpServletRequest request) { Map<String, Object> map = applicationContext.getEndpointTypes(); Collection<Method> methods = new HashSet<Method>(); for(Entry<String, Object> entry: map.entrySet()) { Collection<Method> m = Reflections.getAllMethods(entry.getValue().getClass(), ...
public String getEndpoint(HttpServletRequest request) { Map<String, Object> map = applicationContext.getEndpointTypes(); Collection<Method> methods = new HashSet<Method>(); for(Entry<String, Object> entry: map.entrySet()) { Collection<Method> m = Reflections.getAllMethods(entry.getValue().getClass(), ...
diff --git a/ghana-national-xforms/src/main/java/org/motechproject/ghana/national/handlers/PatientRegistrationFormHandler.java b/ghana-national-xforms/src/main/java/org/motechproject/ghana/national/handlers/PatientRegistrationFormHandler.java index b986e616..e1bb8e9b 100644 --- a/ghana-national-xforms/src/main/java/org...
true
true
public void handleFormEvent(MotechEvent event) { try { RegisterClientForm registerClientForm = (RegisterClientForm) event.getParameters().get(Constants.FORM_BEAN); MRSPerson mrsPerson = new MRSPerson(). firstName(registerClientForm.getFirstName()). ...
public void handleFormEvent(MotechEvent event) { try { RegisterClientForm registerClientForm = (RegisterClientForm) event.getParameters().get(Constants.FORM_BEAN); MRSPerson mrsPerson = new MRSPerson(). firstName(registerClientForm.getFirstName()). ...
diff --git a/nimbits_gae/src/main/java/com/nimbits/server/api/impl/VersionApi.java b/nimbits_gae/src/main/java/com/nimbits/server/api/impl/VersionApi.java index f8ad13b9..3ae7ef6b 100644 --- a/nimbits_gae/src/main/java/com/nimbits/server/api/impl/VersionApi.java +++ b/nimbits_gae/src/main/java/com/nimbits/server/api/im...
true
true
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter out = resp.getWriter(); super.setup(req, resp); out.print(SettingServiceFactory.getServiceInstance(engine).getSetting(SettingType.version)); out.close(); }
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter out = resp.getWriter(); super.setup(resp); out.print(SettingServiceFactory.getServiceInstance(engine).getSetting(SettingType.version)); out.close(); }
diff --git a/src/main/java/org/bitstrings/maven/plugins/splasher/DrawImagesFromText.java b/src/main/java/org/bitstrings/maven/plugins/splasher/DrawImagesFromText.java index 7803a68..113b111 100644 --- a/src/main/java/org/bitstrings/maven/plugins/splasher/DrawImagesFromText.java +++ b/src/main/java/org/bitstrings/maven/...
false
true
public void init( Graphics2D g ) throws MojoExecutionException { final FlowLayout flowLayout = new FlowLayout(); flowLayout.setDrawingContext( dwContext ); flowLayout.setPosition( getPosition() ); flowLayout.setAlignment( alignment ); flowLayout.setPadding( paddi...
public void init( Graphics2D g ) throws MojoExecutionException { drawImagesFromText = new FlowLayout(); drawImagesFromText.setDrawingContext( dwContext ); drawImagesFromText.setPosition( getPosition() ); drawImagesFromText.setAlignment( alignment ); drawImagesFro...
diff --git a/src/test/java/com/github/stinkbird/helpspot/private_api/TestHelpSpot.java b/src/test/java/com/github/stinkbird/helpspot/private_api/TestHelpSpot.java index 3d52cae..0b08eca 100644 --- a/src/test/java/com/github/stinkbird/helpspot/private_api/TestHelpSpot.java +++ b/src/test/java/com/github/stinkbird/helpsp...
true
true
public static void main(String[] args) throws IOException, GeneralSecurityException, JAXBException { if(proceed) { ProtocolSocketFactory protocolSocketFactory = null; if(isSecureHttp) { if(isUseFakeCertificate) { protocolSocketFactory = new FakeSslClientSocketFactory(); } else { FileI...
public static void main(String[] args) throws IOException, GeneralSecurityException, JAXBException { if(proceed) { ProtocolSocketFactory protocolSocketFactory = null; if(isSecureHttp) { if(isUseFakeCertificate) { protocolSocketFactory = new FakeSslClientSocketFactory(); } else { proto...
diff --git a/seng403/src/gui/LessonsTab.java b/seng403/src/gui/LessonsTab.java index db069e5..b3a815c 100644 --- a/seng403/src/gui/LessonsTab.java +++ b/seng403/src/gui/LessonsTab.java @@ -1,158 +1,157 @@ package gui; import java.awt.Color; import java.awt.EventQueue; import javax.swing.JFrame; import com.jgoo...
false
true
public JPanel initialize() { LessonsTab.setBounds(100, 100, 450, 300); LessonsTab.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("max(44dlu;pref)"), FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("max(39dlu;pref)"), FormFactory.RELATED_GAP_COL...
public JPanel initialize() { LessonsTab.setBounds(100, 100, 450, 300); LessonsTab.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("max(44dlu;pref)"), FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("max(39dlu;pref)"), FormFactory.RELATED_GAP_COL...
diff --git a/src/main/java/org/jboss/as/plugin/Undeploy.java b/src/main/java/org/jboss/as/plugin/Undeploy.java index 96165e7..d926e26 100644 --- a/src/main/java/org/jboss/as/plugin/Undeploy.java +++ b/src/main/java/org/jboss/as/plugin/Undeploy.java @@ -1,78 +1,78 @@ /* * JBoss, Home of Professional Open Source. * ...
true
true
public DeploymentPlan createPlan(final DeploymentPlanBuilder builder) throws IOException { DeploymentPlan plan = null; if (name() == null) { plan = builder.undeploy(filename()).remove(filename()).build(); } else { plan = builder.undeploy(filename()).remove(name()).bui...
public DeploymentPlan createPlan(final DeploymentPlanBuilder builder) throws IOException { DeploymentPlan plan = null; if (name() == null) { plan = builder.undeploy(filename()).remove(filename()).build(); } else { plan = builder.undeploy(name()).remove(name()).build()...
diff --git a/src/edu/upenn/cis350/Trace2Learn/Database/DbAdapter.java b/src/edu/upenn/cis350/Trace2Learn/Database/DbAdapter.java index 87d0e60..f1ced1f 100644 --- a/src/edu/upenn/cis350/Trace2Learn/Database/DbAdapter.java +++ b/src/edu/upenn/cis350/Trace2Learn/Database/DbAdapter.java @@ -1,846 +1,858 @@ package edu.up...
true
true
public boolean addCharacter(LessonCharacter c) { mDb.beginTransaction(); //add to CHAR_TABLE ContentValues initialCharValues = new ContentValues(); initializePrivateTag(c,initialCharValues); long id = mDb.insert(CHAR_TABLE, null, initialCharValues); if(id == -1) { //if e...
public boolean addCharacter(LessonCharacter c) { mDb.beginTransaction(); //add to CHAR_TABLE ContentValues initialCharValues = new ContentValues(); initializePrivateTag(c,initialCharValues); long id = mDb.insert(CHAR_TABLE, null, initialCharValues); if(id == -1) { //if e...
diff --git a/src/org/eclipse/cdt/core/resources/ACBuilder.java b/src/org/eclipse/cdt/core/resources/ACBuilder.java index 8328d5fe3..643f2d388 100644 --- a/src/org/eclipse/cdt/core/resources/ACBuilder.java +++ b/src/org/eclipse/cdt/core/resources/ACBuilder.java @@ -1,93 +1,93 @@ /***************************************...
false
true
public void addMarker(ProblemMarkerInfo problemMarkerInfo) { try { IResource markerResource = problemMarkerInfo.file ; if (markerResource==null) { markerResource = getProject(); } IMarker[] cur = markerResource.findMarkers(ICModelMarker.C_MODEL_PROBLEM_MARKER, true, IResource.DEPTH_ONE); /* *...
public void addMarker(ProblemMarkerInfo problemMarkerInfo) { try { IResource markerResource = problemMarkerInfo.file ; if (markerResource==null) { markerResource = getProject(); } IMarker[] cur = markerResource.findMarkers(ICModelMarker.C_MODEL_PROBLEM_MARKER, true, IResource.DEPTH_ONE); /* *...
diff --git a/src/org/nypl/mss/dgi/FileInput.java b/src/org/nypl/mss/dgi/FileInput.java index 38c0143..117a6ff 100644 --- a/src/org/nypl/mss/dgi/FileInput.java +++ b/src/org/nypl/mss/dgi/FileInput.java @@ -1,98 +1,105 @@ package org.nypl.mss.dgi; import java.io.*; import java.util.List; import java.util.Properties...
false
true
private void droid6() throws FileNotFoundException, IOException, CommandExecutionException { BinarySignatureIdentification bin = new BinarySignatureIdentification(file, sigFile); List<IdentificationResult> resultList = bin.getResultList(); List<IdentificationResult> extResultList = bin.getEx...
private void droid6() throws FileNotFoundException, IOException, CommandExecutionException { BinarySignatureIdentification bin = new BinarySignatureIdentification(file, sigFile); List<IdentificationResult> resultList = bin.getResultList(); List<IdentificationResult> extResultList = bin.getEx...
diff --git a/src/pi/interpreter/commands/Ls.java b/src/pi/interpreter/commands/Ls.java index 5368f9b..60003e0 100644 --- a/src/pi/interpreter/commands/Ls.java +++ b/src/pi/interpreter/commands/Ls.java @@ -1,71 +1,71 @@ /** * @author Clément Sipieter <csipieter@gmail.com> */ package pi.interpreter.commands; imp...
true
true
public int exec(String[] args, Environment env) { File dir; File[] list; String dir_name = env.get("_pwd").toString(); String file_name; boolean opt_all = false; for (int i = 1; i < args.length; ++i) if (args[i].length() > 0) { if (args[i].charAt(0) != '-') ...
public int exec(String[] args, Environment env) { File dir; File[] list; String dir_name = env.get(Environment.PWD_KEY).toString(); String file_name; boolean opt_all = false; for (int i = 1; i < args.length; ++i) if (args[i].length() > 0) { if (args[i].charAt(0) != '...
diff --git a/simbeeotic-core/src/main/java/harvard/robobees/simbeeotic/SimController.java b/simbeeotic-core/src/main/java/harvard/robobees/simbeeotic/SimController.java index 7539908..52a8484 100644 --- a/simbeeotic-core/src/main/java/harvard/robobees/simbeeotic/SimController.java +++ b/simbeeotic-core/src/main/java/ha...
true
true
public void runSim(final Scenario scenario, final World world, double realTimeScale, boolean startPaused) { int currVariation = 0; VariationIterator variations = new VariationIterator(scenario); // todo: parallelize the running of variations for (final Variation variation : variati...
public void runSim(final Scenario scenario, final World world, double realTimeScale, boolean startPaused) { int currVariation = 0; VariationIterator variations = new VariationIterator(scenario); // todo: parallelize the running of variations for (final Variation variation : variati...
diff --git a/src/ru/spbau/bioinf/tagfinder/Scan.java b/src/ru/spbau/bioinf/tagfinder/Scan.java index 9021c3c..7544d7d 100644 --- a/src/ru/spbau/bioinf/tagfinder/Scan.java +++ b/src/ru/spbau/bioinf/tagfinder/Scan.java @@ -1,59 +1,61 @@ package ru.spbau.bioinf.tagfinder; import ru.spbau.bioinf.tagfinder.util.ReaderUt...
false
true
public Scan(Properties prop, BufferedReader input, int scanId) throws IOException { id = scanId; precursorCharge = ReaderUtil.getIntValue(prop, "CHARGE"); precursorMass = ReaderUtil.getDoubleValue(prop, "MONOISOTOPIC_MASS"); List<String[]> datas; while ((datas = ReaderUtil.re...
public Scan(Properties prop, BufferedReader input, int scanId) throws IOException { id = scanId; precursorCharge = ReaderUtil.getIntValue(prop, "CHARGE"); precursorMass = ReaderUtil.getDoubleValue(prop, "MONOISOTOPIC_MASS"); List<String[]> datas; peaks.add(new Peak(0, 0 , 0))...
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 4405c2cc..314beb9a 100644 --- a/src/main/java/de/cismet/cids/custom/wunda_blau/search/BaulastWindowSearch.java +++ b/src/main/java/de/cismet/...
false
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; buttonGroup1 = new javax.swing.ButtonGroup(); panSearch = new javax.swing.JPanel(); panCommand = new javax.swing.JPanel(); lblBusy = new org.jdesktop.swingx.JXBusyLabel(); btnSearch = new...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; buttonGroup1 = new javax.swing.ButtonGroup(); panSearch = new javax.swing.JPanel(); panCommand = new javax.swing.JPanel(); lblBusy = new org.jdesktop.swingx.JXBusyLabel(); btnSearch = new...
diff --git a/src/org/jbs/happysad/More.java b/src/org/jbs/happysad/More.java index 122550e..ace88e0 100644 --- a/src/org/jbs/happysad/More.java +++ b/src/org/jbs/happysad/More.java @@ -1,187 +1,187 @@ package org.jbs.happysad; import static android.provider.BaseColumns._ID; import static org.jbs.happysad.Constants...
true
true
public void onCreate(Bundle savedInstanceState) { //basic stuff Log.d(TAG, "entering oncreate"); super.onCreate(savedInstanceState); setContentView(R.layout.more); //figure out whether they clicked happy or sad Intent sender = getIntent(); extradata = sender.getExtras().getString("Clicked"); //emotion ...
public void onCreate(Bundle savedInstanceState) { //basic stuff Log.d(TAG, "entering oncreate"); super.onCreate(savedInstanceState); setContentView(R.layout.more); //figure out whether they clicked happy or sad Intent sender = getIntent(); extradata = sender.getExtras().getString("Clicked"); //emotion ...
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/MethodImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/MethodImpl.java index 63f593637..220a8751c 100644 --- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/MethodImpl.java +++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/MethodI...
true
true
private void getLineTable() throws AbsentInformationException { if (isObsolete()) { return; } if (fCodeIndexToLine != null) { if (fCodeIndexToLine.isEmpty()) throw new AbsentInformationException(JDIMessages.getString("MethodImpl.Got_empty_line_number_table_for_this_method_1")); //$NON-NLS-1$ else ...
private void getLineTable() throws AbsentInformationException { if (isObsolete()) { return; } if (fCodeIndexToLine != null) { if (fCodeIndexToLine.isEmpty()) throw new AbsentInformationException(JDIMessages.getString("MethodImpl.Got_empty_line_number_table_for_this_method_1")); //$NON-NLS-1$ else ...
diff --git a/src/com/bekvon/bukkit/residence/itemlist/ResidenceItemList.java b/src/com/bekvon/bukkit/residence/itemlist/ResidenceItemList.java index 067918e..eae10e8 100644 --- a/src/com/bekvon/bukkit/residence/itemlist/ResidenceItemList.java +++ b/src/com/bekvon/bukkit/residence/itemlist/ResidenceItemList.java @@ -1,5...
false
true
public void playerListChange(Player player, Material mat, boolean resadmin) { PermissionGroup group = Residence.getPermissionManager().getGroup(player); if(resadmin || (res.getPermissions().hasResidencePermission(player, true) && group.itemListAccess())) { if(super.toggle(mat)) ...
public void playerListChange(Player player, Material mat, boolean resadmin) { PermissionGroup group = Residence.getPermissionManager().getGroup(player); if(resadmin || (res.getPermissions().hasResidencePermission(player, true) && group.itemListAccess())) { if(super.toggle(mat)) ...
diff --git a/src/main/java/de/lemo/dms/service/ServiceCourseDetails.java b/src/main/java/de/lemo/dms/service/ServiceCourseDetails.java index 6753dde7..32eef975 100644 --- a/src/main/java/de/lemo/dms/service/ServiceCourseDetails.java +++ b/src/main/java/de/lemo/dms/service/ServiceCourseDetails.java @@ -1,256 +1,257 @@ ...
false
true
public ResultListCourseObject getCoursesDetails(@QueryParam(MetaParam.COURSE_IDS) final List<Long> courses) { IDBHandler dbHandler = ServerConfiguration.getInstance().getMiningDbHandler(); final ArrayList<CourseObject> results = new ArrayList<CourseObject>(); if (courses.isEmpty()) { logger.debug("Courses L...
public ResultListCourseObject getCoursesDetails(@QueryParam(MetaParam.COURSE_IDS) final List<Long> courses) { IDBHandler dbHandler = ServerConfiguration.getInstance().getMiningDbHandler(); final ArrayList<CourseObject> results = new ArrayList<CourseObject>(); if (courses == null || courses.isEmpty()) { logg...
diff --git a/src/aiml/classifier/Classifier.java b/src/aiml/classifier/Classifier.java index 3e135c6..257f748 100644 --- a/src/aiml/classifier/Classifier.java +++ b/src/aiml/classifier/Classifier.java @@ -1,113 +1,113 @@ /* jaiml - java AIML library Copyright (C) 2004-2005 Kim Sullivan This program i...
false
true
public static void add(Path path, Object o) throws DuplicatePathException { assert (PatternNodeFactory.getCount()>0) : "You have to register node types"; if (tree == null) { if (path.getLength() != 0) { tree = new PatternContextNode(path.iterator(), path); } else { tree = new...
public static void add(Path path, Object o) throws DuplicatePathException { assert (PatternNodeFactory.getCount()>0) : "You have to register node types"; if (tree == null) { if (path.getLength() != 0) { tree = new PatternContextNode(path.iterator(), o); } else { tree = new Le...
diff --git a/src/Main.java b/src/Main.java index 303ba4d..09074d2 100644 --- a/src/Main.java +++ b/src/Main.java @@ -1,119 +1,119 @@ package apes; import javax.swing.JFrame; import javax.swing.undo.UndoManager; import apes.controllers.ConfigController; import apes.controllers.HelpController; import apes.contr...
true
true
public Main( String[] args ) throws Exception { // Parse the configuration file and set default values. Config config = Config.getInstance(); config.parse(); // Initialize a player handler. PlayerHandler playerHandler = new PlayerHandler(); // Create the plugin handler pluginHandle...
public Main( String[] args ) throws Exception { // Parse the configuration file and set default values. Config config = Config.getInstance(); config.parse(); // Initialize a player handler. PlayerHandler playerHandler = new PlayerHandler(); // Create the plugin handler PluginHandle...
diff --git a/tests/org.bonitasoft.studio.tests/src/org/bonitasoft/studio/tests/draw2d/TestLifeCycleWidget.java b/tests/org.bonitasoft.studio.tests/src/org/bonitasoft/studio/tests/draw2d/TestLifeCycleWidget.java index a974661885..41dce0a36e 100644 --- a/tests/org.bonitasoft.studio.tests/src/org/bonitasoft/studio/tests/d...
true
true
private void testSelectionEvent(final String eventType, final ConnectorEvent eventTypeThatShouldBeselected, final int taskLifeCycle) { UIThreadRunnable.syncExec(new VoidResult() { public void run() { Dialog dialog = new Dialog(Display.getDefault().getActiveShell()){ @Override protected Control...
private void testSelectionEvent(final String eventType, final ConnectorEvent eventTypeThatShouldBeselected, final int taskLifeCycle) { UIThreadRunnable.syncExec(new VoidResult() { public void run() { Dialog dialog = new Dialog(Display.getDefault().getActiveShell()){ @Override protected Control...
diff --git a/de.hswt.hrm.contact.ui/src/de/hswt/hrm/contact/ui/part/util/ContactComperator.java b/de.hswt.hrm.contact.ui/src/de/hswt/hrm/contact/ui/part/util/ContactComperator.java index 53664c17..9a016c24 100644 --- a/de.hswt.hrm.contact.ui/src/de/hswt/hrm/contact/ui/part/util/ContactComperator.java +++ b/de.hswt.hrm....
true
true
public int compare(Viewer viewer, Object e1, Object e2) { Contact c1 = (Contact) e1; Contact c2 = (Contact) e2; int rc = 0; switch (propertyIndex) { case 0: rc = c1.getLastName().compareTo(c2.getLastName()); break; case 1: rc = c1.g...
public int compare(Viewer viewer, Object e1, Object e2) { Contact c1 = (Contact) e1; Contact c2 = (Contact) e2; int rc = 0; switch (propertyIndex) { case 0: rc = c1.getLastName().compareTo(c2.getLastName()); break; case 1: rc = c1.g...
diff --git a/src/org/antlr/works/parsetree/ParseTreePanel.java b/src/org/antlr/works/parsetree/ParseTreePanel.java index 3a5616a..91a8f73 100644 --- a/src/org/antlr/works/parsetree/ParseTreePanel.java +++ b/src/org/antlr/works/parsetree/ParseTreePanel.java @@ -1,284 +1,284 @@ package org.antlr.works.parsetree; impo...
true
true
public Component createGraphView() { JPanel panel = new JPanel(new BorderLayout()); parseTreeGraphView = new ParseTreeGraphView(this); parseTreeGraphView.setAutoAdjustSize(true); parseTreeGraphView.setBackground(Color.white); parseTreeGraphView.setDrawBorder(false); ...
public Component createGraphView() { JPanel panel = new JPanel(new BorderLayout()); parseTreeGraphView = new ParseTreeGraphView(this); parseTreeGraphView.setAutoAdjustSize(true); parseTreeGraphView.setBackground(Color.white); parseTreeGraphView.setDrawBorder(false); ...
diff --git a/xjc/src/com/sun/tools/xjc/reader/xmlschema/bindinfo/BIProperty.java b/xjc/src/com/sun/tools/xjc/reader/xmlschema/bindinfo/BIProperty.java index 7cf00f22..054e52de 100644 --- a/xjc/src/com/sun/tools/xjc/reader/xmlschema/bindinfo/BIProperty.java +++ b/xjc/src/com/sun/tools/xjc/reader/xmlschema/bindinfo/BIPro...
true
true
private <T extends CPropertyInfo> T wrapUp(T prop, XSComponent source) { prop.javadoc = concat(javadoc, getBuilder().getBindInfo(source).getDocumentation()); if(prop.javadoc==null) prop.javadoc=""; // decide the realization. FieldRenderer r; OptionalP...
private <T extends CPropertyInfo> T wrapUp(T prop, XSComponent source) { prop.javadoc = concat(javadoc, getBuilder().getBindInfo(source).getDocumentation()); if(prop.javadoc==null) prop.javadoc=""; // decide the realization. FieldRenderer r; OptionalP...
diff --git a/Evoting/src/com/rau/evoting/beans/OpenElection.java b/Evoting/src/com/rau/evoting/beans/OpenElection.java index c8ea8a5..bdaea8e 100644 --- a/Evoting/src/com/rau/evoting/beans/OpenElection.java +++ b/Evoting/src/com/rau/evoting/beans/OpenElection.java @@ -1,279 +1,279 @@ package com.rau.evoting.beans; ...
true
true
public String addTrustee() { if (trusteeEmail.equals("")) return ""; for (Trustee trustee : trustees) { if (trustee.getEmail().equals(trusteeEmail)) return ""; } String message = "Hello, you are chosen trustee for " + election.getName() + " election\n Please, generate your key: \n"; Str...
public String addTrustee() { if (trusteeEmail.equals("")) return ""; for (Trustee trustee : trustees) { if (trustee.getEmail().equals(trusteeEmail)) return ""; } String message = "Hello, you are chosen trustee for " + election.getName() + " election\n Please, generate your key: \n"; Str...
diff --git a/src/card/CardData.java b/src/card/CardData.java index e5d1c4c..a9fe22f 100644 --- a/src/card/CardData.java +++ b/src/card/CardData.java @@ -1,610 +1,610 @@ package card; import javafx.scene.image.Image; import javafx.scene.image.ImageView; /** * User: Erick * Date: 8/30/13 * Time: 3:09 AM *...
true
true
public static String getImageFile(int card, int deck) { if (deck == WIADEC) { return "/card/image/decks/wiate/" + card + ".gif"; } if (deck == MERC_DECK) { return "/card/image/decks/merc/" + card + ".jpg"; } if (deck == WIA_ART_DECK) { re...
public static String getImageFile(int card, int deck) { if (deck == WIADEC) { return "/card/image/decks/1910/" + card + ".jpg"; } if (deck == MERC_DECK) { return "/card/image/decks/merc/" + card + ".jpg"; } if (deck == WIA_ART_DECK) { ret...
diff --git a/src/com/zavteam/plugins/RunnableMessager.java b/src/com/zavteam/plugins/RunnableMessager.java index 3950926..bb15a2a 100644 --- a/src/com/zavteam/plugins/RunnableMessager.java +++ b/src/com/zavteam/plugins/RunnableMessager.java @@ -1,79 +1,79 @@ package com.zavteam.plugins; import java.util.Random; ...
true
true
public void run() { boolean messageRandom = (Boolean) plugin.mainConfig.get("messageinrandomorder", false); if ((Boolean) plugin.mainConfig.get("messageinrandomorder", false)) { String[] cutMessageList = new String[10]; if (plugin.messages.size() == 1) { plugin.messageIt = 0; } else { if (message...
public void run() { boolean messageRandom = (Boolean) plugin.mainConfig.get("messageinrandomorder", false); if ((Boolean) plugin.mainConfig.get("enabled", true)) { String[] cutMessageList = new String[10]; if (plugin.messages.size() == 1) { plugin.messageIt = 0; } else { if (messageRandom) { ...
diff --git a/src/aor/SimplePlugin/Spells/RapidfireArrowSpell.java b/src/aor/SimplePlugin/Spells/RapidfireArrowSpell.java index ca3e27a..e81fcce 100644 --- a/src/aor/SimplePlugin/Spells/RapidfireArrowSpell.java +++ b/src/aor/SimplePlugin/Spells/RapidfireArrowSpell.java @@ -1,65 +1,65 @@ package aor.SimplePlugin.Spells;...
true
true
public void castSpell(Player player) { PlayerInventory inventory = player.getInventory(); // REQUIRED ITEMS ItemStack[] requiredItems = new ItemStack[2]; // The requireditems itemstack. requiredItems[0] = new ItemStack(Material.ARROW, 8); // We need 8 arrows. requiredItems[1] = new ItemStack(Material.REDST...
public void castSpell(Player player) { PlayerInventory inventory = player.getInventory(); // REQUIRED ITEMS ItemStack[] requiredItems = new ItemStack[2]; // The requireditems itemstack. requiredItems[0] = new ItemStack(Material.ARROW, 8); // We need 8 arrows. requiredItems[1] = new ItemStack(Material.REDST...
diff --git a/src/org/openstreetmap/josm/plugins/scripting/ui/RunScriptAction.java b/src/org/openstreetmap/josm/plugins/scripting/ui/RunScriptAction.java index 6743d8e..bdb1013 100644 --- a/src/org/openstreetmap/josm/plugins/scripting/ui/RunScriptAction.java +++ b/src/org/openstreetmap/josm/plugins/scripting/ui/RunScrip...
true
true
public RunScriptAction() { super(tr("Run..."), // title "run", // icon name tr("Run a script"), // tooltip Shortcut.registerShortcut("scripting:runScript", tr("Scripting: Run a Script"), KeyEvent.VK_R, Shortcut.NONE // don't assign ...
public RunScriptAction() { super(tr("Run..."), // title "run", // icon name tr("Run a script"), // tooltip Shortcut.registerShortcut("scripting:runScript", tr("Scripting: Run a Script"), KeyEvent.VK_R, Shortcut.NONE // don't assign ...
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/AllExplanation.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/AllExplanation.java index 9c0c1302f..87a58247d 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests...
true
true
public static Test suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); suite.addTestSuite(ExplanationDeepConflict.class); suite.addTestSuite(ExplanationForOptionalDependencies.class); suite.addTestSuite(ExplanationForPartialInstallation.class); suite.addTestSuite(ExplanationLargeConflict.cla...
public static Test suite() { TestSuite suite = new TestSuite(AllExplanation.class.getName()); suite.addTestSuite(ExplanationDeepConflict.class); suite.addTestSuite(ExplanationForOptionalDependencies.class); suite.addTestSuite(ExplanationForPartialInstallation.class); suite.addTestSuite(ExplanationLargeConfli...
diff --git a/devel/web/web-commons/src/main/java/net/contextfw/web/commons/minifier/ContentServlet.java b/devel/web/web-commons/src/main/java/net/contextfw/web/commons/minifier/ContentServlet.java index 96d856a..c4a5cab 100644 --- a/devel/web/web-commons/src/main/java/net/contextfw/web/commons/minifier/ContentServlet.j...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (content == null) { cleaner.clean(); } resp.setContentType(getContentType()); String modifiedHeader = req.getHeader("If-Modified-...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (content == null) { synchronized (this) { if (content == null) { cleaner.clean(); } } ...
diff --git a/src/main/java/net/robbytu/banjoserver/bungee/perms/Permissions.java b/src/main/java/net/robbytu/banjoserver/bungee/perms/Permissions.java index 19424fa..212a948 100644 --- a/src/main/java/net/robbytu/banjoserver/bungee/perms/Permissions.java +++ b/src/main/java/net/robbytu/banjoserver/bungee/perms/Permissi...
true
true
public static String getPrefixForUser(String user) { Connection conn = Main.conn; try { // Create a new select statement PreparedStatement statement = conn.prepareStatement("SELECT `bs_perm_groups`.`prefix` AS `group_name` " + ...
public static String getPrefixForUser(String user) { Connection conn = Main.conn; try { // Create a new select statement PreparedStatement statement = conn.prepareStatement("SELECT `bs_perm_groups`.`prefix` AS `group_name` " + ...
diff --git a/src/com/dmdirc/ui/swing/components/StandardInputDialog.java b/src/com/dmdirc/ui/swing/components/StandardInputDialog.java index 6c8458364..3800f470b 100644 --- a/src/com/dmdirc/ui/swing/components/StandardInputDialog.java +++ b/src/com/dmdirc/ui/swing/components/StandardInputDialog.java @@ -1,223 +1,223 @@...
true
true
private final void addListeners() { getOkButton().addActionListener(new ActionListener() { /** {@inheritDoc} */ @Override public void actionPerformed(ActionEvent e) { if (save()) { dispose(); } } });...
private final void addListeners() { getOkButton().addActionListener(new ActionListener() { /** {@inheritDoc} */ @Override public void actionPerformed(ActionEvent e) { if (save()) { dispose(); } } });...
diff --git a/xstream/src/java/com/thoughtworks/xstream/converters/reflection/FieldDictionary.java b/xstream/src/java/com/thoughtworks/xstream/converters/reflection/FieldDictionary.java index 1f370751..2f8a2363 100644 --- a/xstream/src/java/com/thoughtworks/xstream/converters/reflection/FieldDictionary.java +++ b/xstrea...
false
true
private Map buildMap(final Class type, boolean tupleKeyed) { final Map result; Class cls = type; synchronized (this) { if (!keyedByFieldNameCache.containsKey(type)) { final List superClasses = new ArrayList(); while (!Object.class.equals(cls)) { ...
private Map buildMap(final Class type, boolean tupleKeyed) { final Map result; Class cls = type; synchronized (this) { if (!keyedByFieldNameCache.containsKey(type)) { final List superClasses = new ArrayList(); while (!Object.class.equals(cls)) { ...
diff --git a/src/test/java/org/apache/ws/security/common/SAMLElementCallbackHandler.java b/src/test/java/org/apache/ws/security/common/SAMLElementCallbackHandler.java index 3d8a2f5d2..f4721bdbd 100644 --- a/src/test/java/org/apache/ws/security/common/SAMLElementCallbackHandler.java +++ b/src/test/java/org/apache/ws/sec...
true
true
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { for (int i = 0; i < callbacks.length; i++) { if (callbacks[i] instanceof SAMLCallback) { SAMLCallback callback = (SAMLCallback) callbacks[i]; Element assertionEleme...
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { for (int i = 0; i < callbacks.length; i++) { if (callbacks[i] instanceof SAMLCallback) { SAMLCallback callback = (SAMLCallback) callbacks[i]; Element assertionEleme...
diff --git a/PLWebStart/src/main/java/org/plweb/suite/webstart/PLWebEnvironment.java b/PLWebStart/src/main/java/org/plweb/suite/webstart/PLWebEnvironment.java index 8e8ccc7..9f13756 100644 --- a/PLWebStart/src/main/java/org/plweb/suite/webstart/PLWebEnvironment.java +++ b/PLWebStart/src/main/java/org/plweb/suite/websta...
false
true
public PLWebEnvironment() { setDiskRoot(new File(System.getProperty("plweb.diskroot")).getPath()); setUrlPackage(System.getProperty("plweb.urlpackage")); setUrlPackageAsc(System.getProperty("plweb.urlpackage_asc")); setUrlLesson(System.getProperty("plweb.urllesson")); setLessonId(System.getProperty("plweb.le...
public PLWebEnvironment() { setDiskRoot(new File(System.getProperty("javaws.plweb.diskroot")).getPath()); setUrlPackage(System.getProperty("javaws.plweb.urlpackage")); setUrlPackageAsc(System.getProperty("javaws.plweb.urlpackage_asc")); setUrlLesson(System.getProperty("javaws.plweb.urllesson")); setLessonId(...
diff --git a/gdx/src/com/badlogic/gdx/math/Polygon.java b/gdx/src/com/badlogic/gdx/math/Polygon.java index a366da147..8823cf060 100644 --- a/gdx/src/com/badlogic/gdx/math/Polygon.java +++ b/gdx/src/com/badlogic/gdx/math/Polygon.java @@ -1,209 +1,209 @@ /*****************************************************************...
true
true
public float[] getWorldVertices () { if (!dirty) return localVertices; dirty = false; final float[] localVertices = this.localVertices; if (worldVertices == null || worldVertices.length < localVertices.length) worldVertices = new float[localVertices.length]; final float[] worldVertices = this.worldVertices...
public float[] getWorldVertices () { if (!dirty) return worldVertices; dirty = false; final float[] localVertices = this.localVertices; if (worldVertices == null || worldVertices.length < localVertices.length) worldVertices = new float[localVertices.length]; final float[] worldVertices = this.worldVertices...
diff --git a/whois-query/src/test/java/net/ripe/db/whois/query/query/QueryTest.java b/whois-query/src/test/java/net/ripe/db/whois/query/query/QueryTest.java index 7dd5d0517..6c09a12e6 100644 --- a/whois-query/src/test/java/net/ripe/db/whois/query/query/QueryTest.java +++ b/whois-query/src/test/java/net/ripe/db/whois/qu...
false
true
public void allow_only_k_and_V_options_for_version_queries() { final String[] validQueries = { "--show-version 1 AS12 -k", "--show-version 1 AS12 -V fred", "--show-version 1 AS12 -k -V fred", "--list-versions AS12 -k -V fred", "--list-versions AS12...
public void allow_only_k_T_and_V_options_for_version_queries() { final String[] validQueries = { "--show-version 1 AS12 -k", "--show-version 1 AS12 -V fred", "--show-version 1 AS12 -k -V fred", "--list-versions AS12 -k -V fred", ...
diff --git a/src/com/github/etsai/kfstatsxtslite/migrate/MigrateMain.java b/src/com/github/etsai/kfstatsxtslite/migrate/MigrateMain.java index e4b36d0..0417c85 100644 --- a/src/com/github/etsai/kfstatsxtslite/migrate/MigrateMain.java +++ b/src/com/github/etsai/kfstatsxtslite/migrate/MigrateMain.java @@ -1,101 +1,101 @@...
true
true
static void move(Statement srcSt, Statement dstSt) throws SQLException { ResultSet rs; System.out.println("Copying deaths"); rs= srcSt.executeQuery("select * from deaths"); while(rs.next()) { dstSt.executeUpdate(String.format("call update_deaths '%s', %d);", ...
static void move(Statement srcSt, Statement dstSt) throws SQLException { ResultSet rs; System.out.println("Copying deaths"); rs= srcSt.executeQuery("select * from deaths"); while(rs.next()) { dstSt.executeUpdate(String.format("call update_deaths('%s', %d);", ...
diff --git a/org.emftext.runtime/src/org/emftext/runtime/util/MinimalModelHelper.java b/org.emftext.runtime/src/org/emftext/runtime/util/MinimalModelHelper.java index 130534da2..e885a7aa1 100644 --- a/org.emftext.runtime/src/org/emftext/runtime/util/MinimalModelHelper.java +++ b/org.emftext.runtime/src/org/emftext/runt...
true
true
public EObject getMinimalModel(EClass eClass, EClass[] allAvailableClasses) { EPackage ePackage = eClass.getEPackage(); if (ePackage == null) { return null; } EObject root = ePackage.getEFactoryInstance().create(eClass); List<EStructuralFeature> features = eClass.getEAllStructuralFeatures(); for (EStruc...
public EObject getMinimalModel(EClass eClass, EClass[] allAvailableClasses) { EPackage ePackage = eClass.getEPackage(); if (ePackage == null) { return null; } EObject root = ePackage.getEFactoryInstance().create(eClass); List<EStructuralFeature> features = eClass.getEAllStructuralFeatures(); for (EStruc...
diff --git a/builder/src/main/java/com/android/builder/AndroidBuilder.java b/builder/src/main/java/com/android/builder/AndroidBuilder.java index 35b4557..f53e361 100644 --- a/builder/src/main/java/com/android/builder/AndroidBuilder.java +++ b/builder/src/main/java/com/android/builder/AndroidBuilder.java @@ -1,863 +1,86...
true
true
public void processResources( @NonNull String manifestFile, @Nullable String preprocessResDir, @NonNull List<File> resInputs, @Nullable String sourceOutputDir, @Nullable String resPackageOutput, @Nullable String proguardOutput, @Non...
public void processResources( @NonNull String manifestFile, @Nullable String preprocessResDir, @NonNull List<File> resInputs, @Nullable String sourceOutputDir, @Nullable String resPackageOutput, @Nullable String proguardOutput, @Non...
diff --git a/src/wms/src/main/java/org/geoserver/wms/GetMapRequest.java b/src/wms/src/main/java/org/geoserver/wms/GetMapRequest.java index 84226e3367..956cc9a298 100644 --- a/src/wms/src/main/java/org/geoserver/wms/GetMapRequest.java +++ b/src/wms/src/main/java/org/geoserver/wms/GetMapRequest.java @@ -1,787 +1,787 @@ ...
true
true
public String toString() { StringBuffer returnString = new StringBuffer("\nGetMap Request"); returnString.append("\n version: " + version); returnString.append("\n output format: " + mandatoryParams.format); returnString.append("\n width height: " + mandatoryParams.height + "," ...
public String toString() { StringBuffer returnString = new StringBuffer("\nGetMap Request"); returnString.append("\n version: " + version); returnString.append("\n output format: " + mandatoryParams.format); returnString.append("\n width height: " + mandatoryParams.width + "," ...
diff --git a/managed/src/main/org/jboss/managed/plugins/WritethroughManagedPropertyImpl.java b/managed/src/main/org/jboss/managed/plugins/WritethroughManagedPropertyImpl.java index 76427d92..6526600e 100644 --- a/managed/src/main/org/jboss/managed/plugins/WritethroughManagedPropertyImpl.java +++ b/managed/src/main/org/...
true
true
public void setValue(Serializable value) { super.setValue(value); PropertyInfo propertyInfo = getField(Fields.PROPERTY_INFO, PropertyInfo.class); if (propertyInfo != null) { Serializable attachment = getManagedObject().getAttachment(); if (attachment != null) { ...
public void setValue(Serializable value) { super.setValue(value); PropertyInfo propertyInfo = getField(Fields.PROPERTY_INFO, PropertyInfo.class); if (propertyInfo != null) { Serializable attachment = getManagedObject().getAttachment(); if (attachment != null) { ...
diff --git a/ModelCC/test/test/org/modelcc/types/StringTest.java b/ModelCC/test/test/org/modelcc/types/StringTest.java index a882bed..0b1a448 100644 --- a/ModelCC/test/test/org/modelcc/types/StringTest.java +++ b/ModelCC/test/test/org/modelcc/types/StringTest.java @@ -1,88 +1,88 @@ /* * ModelCC, under ModelCC Shared...
true
true
public void TextsTest() { checkMatches(StringModel.class,"",1); checkMatches(StringModel.class,"a",1); checkMatches(StringModel.class,"a$1!$&)=!)",1); checkMatches(StringModel.class,"\"a$1!$&)=!)\"",1); checkMatches(StringModel.class,"\"a$1!\"$&)=!)\"",0); checkMatches(StringModel.class,"a+",1); checkMat...
public void TextsTest() { checkMatches(StringModel.class,"",1); checkMatches(StringModel.class,"a",1); checkMatches(StringModel.class,"a$1!$&)=!)",1); checkMatches(StringModel.class,"\"a$1!$&)=!)\"",1); checkMatches(StringModel.class,"\"a$1!\"$&)=!)\"",0); checkMatches(StringModel.class,"a+",1); checkMat...
diff --git a/SimpleApp/src/org/drchaos/SimpleApp.java b/SimpleApp/src/org/drchaos/SimpleApp.java index 893f5e8..95daadc 100644 --- a/SimpleApp/src/org/drchaos/SimpleApp.java +++ b/SimpleApp/src/org/drchaos/SimpleApp.java @@ -1,42 +1,42 @@ /* * To change this template, choose Tools | Templates * and open the templa...
false
true
public static int main(String[] args) { Random generator = new Random(); Scanner scan = new Scanner(System.in); final int GUESSES = 3; // (0 - 9) + 1 is 1-10 int secret = generator.nextInt(9)+1; int myGuess = -1; System.out.println("I am thinking of...
public static void main(String[] args) { Random generator = new Random(); Scanner scan = new Scanner(System.in); final int GUESSES = 3; // (0 - 9) + 1 is 1-10 int secret = generator.nextInt(9)+1; int myGuess = -1; System.out.println("I am thinking o...
diff --git a/plugins/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/DateTimeUtil.java b/plugins/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/DateTimeUtil.java index 4991801f7..8a0b8151e 100644 --- a/plugi...
true
true
public static String formatDateTime( String format, ULocale locale ) { String language = locale.getLanguage( ); String code = locale2Code.get( locale ); if ( code == null ) { code = locale2Code.get( new Locale( language ) ); } return code + format; }
public static String formatDateTime( String format, ULocale locale ) { String language = locale.getLanguage( ); String code = locale2Code.get( locale ); if ( code == null ) { code = locale2Code.get( new Locale( language ) ); } if ( code == null ) { return format; } return code + format; }
diff --git a/srcj/com/sun/electric/tool/io/input/LTSpiceOut.java b/srcj/com/sun/electric/tool/io/input/LTSpiceOut.java index 6676812c0..66226302f 100644 --- a/srcj/com/sun/electric/tool/io/input/LTSpiceOut.java +++ b/srcj/com/sun/electric/tool/io/input/LTSpiceOut.java @@ -1,319 +1,320 @@ /* -*- tab-width: 4 -*- * ...
false
true
private Stimuli readRawLTSpiceFile(Cell cell) throws IOException { complexValues = false; boolean realValues = false; int signalCount = -1; String[] signalNames = null; int rowCount = -1; AnalogAnalysis.AnalysisType aType = AnalogAnalysis.ANALYSIS_TRANS; for(;;) { String line = getLineFromBinary(...
private Stimuli readRawLTSpiceFile(Cell cell) throws IOException { complexValues = false; boolean realValues = false; int signalCount = -1; String[] signalNames = null; int rowCount = -1; AnalogAnalysis.AnalysisType aType = AnalogAnalysis.ANALYSIS_TRANS; for(;;) { String line = getLineFromBinary(...
diff --git a/dsl-project/ashigel-compiler/src/main/java/com/asakusafw/compiler/flow/stage/ShufflePartitionerEmitter.java b/dsl-project/ashigel-compiler/src/main/java/com/asakusafw/compiler/flow/stage/ShufflePartitionerEmitter.java index 684eefcda..f28a5f187 100644 --- a/dsl-project/ashigel-compiler/src/main/java/com/as...
true
true
private MethodDeclaration createHashCode() { SimpleName key = factory.newSimpleName("key"); List<Statement> statements = Lists.create(); SimpleName portId = factory.newSimpleName("portId"); SimpleName result = factory.newSimpleName("result"); statemen...
private MethodDeclaration createHashCode() { SimpleName key = factory.newSimpleName("key"); List<Statement> statements = Lists.create(); SimpleName portId = factory.newSimpleName("portId"); SimpleName result = factory.newSimpleName("result"); statemen...
diff --git a/framework/src/play/templates/FastTags.java b/framework/src/play/templates/FastTags.java index 6f9c29d4..40f8d7b4 100644 --- a/framework/src/play/templates/FastTags.java +++ b/framework/src/play/templates/FastTags.java @@ -1,291 +1,291 @@ package play.templates; import groovy.lang.Closure; import java....
false
true
public static void _form(Map<?, ?> args, Closure body, PrintWriter out, ExecutableTemplate template, int fromLine) { ActionDefinition actionDef = (ActionDefinition) args.get("arg"); if (actionDef == null) { actionDef = (ActionDefinition) args.get("action"); } String encty...
public static void _form(Map<?, ?> args, Closure body, PrintWriter out, ExecutableTemplate template, int fromLine) { ActionDefinition actionDef = (ActionDefinition) args.get("arg"); if (actionDef == null) { actionDef = (ActionDefinition) args.get("action"); } String encty...
diff --git a/src/main/java/com/mojang/minecraft/gui/HUDScreen.java b/src/main/java/com/mojang/minecraft/gui/HUDScreen.java index 10152c6..3681d8b 100644 --- a/src/main/java/com/mojang/minecraft/gui/HUDScreen.java +++ b/src/main/java/com/mojang/minecraft/gui/HUDScreen.java @@ -1,233 +1,233 @@ package com.mojang.minecra...
true
true
public final void render(float var1, boolean var2, int var3, int var4) { FontRenderer var5 = this.mc.fontRenderer; this.mc.renderer.enableGuiMode(); TextureManager var6 = this.mc.textureManager; GL11.glBindTexture(3553, this.mc.textureManager.load("/gui/gui.png")); ShapeRenderer var7 = ShapeRenderer.instance...
public final void render(float var1, boolean var2, int var3, int var4) { FontRenderer var5 = this.mc.fontRenderer; this.mc.renderer.enableGuiMode(); TextureManager var6 = this.mc.textureManager; GL11.glBindTexture(3553, this.mc.textureManager.load("/gui/gui.png")); ShapeRenderer var7 = ShapeRenderer.instance...
diff --git a/src/plugins/WebOfTrust/WebOfTrust.java b/src/plugins/WebOfTrust/WebOfTrust.java index a2637ecc..bf4999ed 100644 --- a/src/plugins/WebOfTrust/WebOfTrust.java +++ b/src/plugins/WebOfTrust/WebOfTrust.java @@ -1,3573 +1,3575 @@ /* This code is part of WoT, a plugin for Freenet. It is distributed * under th...
false
true
private synchronized void deleteDuplicateObjects() { synchronized(mPuzzleStore) { // Needed for deleteWithoutCommit(Identity) synchronized(mFetcher) { // Needed for deleteWithoutCommit(Identity) synchronized(mSubscriptionManager) { // Needed for deleteWithoutCommit(Identity) synchronized(Persistent.transaction...
private synchronized void deleteDuplicateObjects() { synchronized(mPuzzleStore) { // Needed for deleteWithoutCommit(Identity) synchronized(mFetcher) { // Needed for deleteWithoutCommit(Identity) synchronized(mSubscriptionManager) { // Needed for deleteWithoutCommit(Identity) synchronized(Persistent.transaction...
diff --git a/src/se/chalmers/tda367/std/utilities/ExtendedClassLoader.java b/src/se/chalmers/tda367/std/utilities/ExtendedClassLoader.java index 184ac9e..807e580 100644 --- a/src/se/chalmers/tda367/std/utilities/ExtendedClassLoader.java +++ b/src/se/chalmers/tda367/std/utilities/ExtendedClassLoader.java @@ -1,65 +1,65 ...
true
true
private byte[] loadClassData (Path searchPath, String className) { File f = new File(searchPath.toString() + className + ".class"); if(!f.isFile()){ Logger.getLogger("se.chalmers.tda367.std.utilities").severe("Unable to load the class data from file: " + f.toString()); return new byte[0]; } ByteArrayO...
private byte[] loadClassData (Path searchPath, String className) { File f = searchPath.resolve(className + ".class").toFile(); if(!f.isFile()){ Logger.getLogger("se.chalmers.tda367.std.utilities").severe("Unable to load the class data from file: " + f.toString()); return new byte[0]; } ByteArrayOutput...
diff --git a/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/internal/java/ui/wizards/MylarPreferenceWizardPage.java b/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/internal/java/ui/wizards/MylarPreferenceWizardPage.java index 764f8161c..bcb4ef00f 100644 --- a/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/internal/...
true
true
public void createControl(Composite parent) { Composite containerComposite = new Composite(parent, SWT.NULL); containerComposite.setLayout(new GridLayout()); Composite buttonComposite = new Composite(containerComposite, SWT.NULL); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.makeCo...
public void createControl(Composite parent) { Composite containerComposite = new Composite(parent, SWT.NULL); containerComposite.setLayout(new GridLayout()); Composite buttonComposite = new Composite(containerComposite, SWT.NULL); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.makeCo...
diff --git a/android/src/org/coolreader/crengine/Scanner.java b/android/src/org/coolreader/crengine/Scanner.java index 230718f9..91c43d5a 100644 --- a/android/src/org/coolreader/crengine/Scanner.java +++ b/android/src/org/coolreader/crengine/Scanner.java @@ -1,542 +1,542 @@ package org.coolreader.crengine; import j...
true
true
public void scanDirectory( final FileInfo baseDir, final Runnable readyCallback, final boolean recursiveScan, final ScanControl scanControl ) { final long startTime = System.currentTimeMillis(); listDirectory(baseDir); listSubtree( baseDir, 2, android.os.SystemClock.uptimeMillis() + 700 ); if ( (!getDirScanEn...
public void scanDirectory( final FileInfo baseDir, final Runnable readyCallback, final boolean recursiveScan, final ScanControl scanControl ) { final long startTime = System.currentTimeMillis(); listDirectory(baseDir); listSubtree( baseDir, 2, android.os.SystemClock.uptimeMillis() + 700 ); if ( (!getDirScanEn...
diff --git a/src/com/pokebros/android/pokemononline/NetworkService.java b/src/com/pokebros/android/pokemononline/NetworkService.java index 5fbba012..91844190 100644 --- a/src/com/pokebros/android/pokemononline/NetworkService.java +++ b/src/com/pokebros/android/pokemononline/NetworkService.java @@ -1,719 +1,719 @@ pack...
false
true
public void handleMsg(Bais msg) { byte i = msg.readByte(); Command c = Command.values()[i]; System.out.println("Received: " + c); switch (c) { case ChannelPlayers: case JoinChannel: case LeaveChannel: case BattleList: { Channel ch = channels.get(msg.readInt()); if(ch != null) ch.handleChanne...
public void handleMsg(Bais msg) { byte i = msg.readByte(); Command c = Command.values()[i]; System.out.println("Received: " + c); switch (c) { case ChannelPlayers: case JoinChannel: case LeaveChannel: case BattleList: { Channel ch = channels.get(msg.readInt()); if(ch != null) ch.handleChanne...
diff --git a/android/src/org/microemu/android/device/AndroidDevice.java b/android/src/org/microemu/android/device/AndroidDevice.java index a847fae7..461425af 100644 --- a/android/src/org/microemu/android/device/AndroidDevice.java +++ b/android/src/org/microemu/android/device/AndroidDevice.java @@ -1,186 +1,189 @@ /** ...
true
true
public boolean vibrate(int duration) { Vibrator vibrator = (Vibrator) activity.getSystemService(Context.VIBRATOR_SERVICE); if (vibrator != null) { vibrator.vibrate(duration); return true; } else { return false; } }
public boolean vibrate(final int duration) { final Vibrator vibrator = (Vibrator) activity.getSystemService(Context.VIBRATOR_SERVICE); if (vibrator == null) return false; activity.runOnUiThread(new Runnable() { @Override public void run() { vibr...
diff --git a/mbt/src/test/org/tigris/mbt/generators/A_StarPathGeneratorTest.java b/mbt/src/test/org/tigris/mbt/generators/A_StarPathGeneratorTest.java index e4d1551..febc4fb 100644 --- a/mbt/src/test/org/tigris/mbt/generators/A_StarPathGeneratorTest.java +++ b/mbt/src/test/org/tigris/mbt/generators/A_StarPathGeneratorT...
true
true
public void test_EFSM_StateStop() { PathGenerator pathGenerator = new A_StarPathGenerator(); pathGenerator.setStopCondition(new ReachedState("V1/x=3;y=[2, 3, 3];") ); pathGenerator.setMachine(new ExtendedFiniteStateMachine(graph)); String[] stepPair; stepPair = pathGenerator.getNext(); assertEquals(...
public void test_EFSM_StateStop() { PathGenerator pathGenerator = new A_StarPathGenerator(); pathGenerator.setStopCondition(new ReachedState("V1/x=3;y=\\[2, 3, 3\\];") ); pathGenerator.setMachine(new ExtendedFiniteStateMachine(graph)); String[] stepPair; stepPair = pathGenerator.getNext(); assertEqu...
diff --git a/core/src/main/java/org/alveolo/simpa/jdbc/JdbcStore.java b/core/src/main/java/org/alveolo/simpa/jdbc/JdbcStore.java index 453f271..09bcef1 100644 --- a/core/src/main/java/org/alveolo/simpa/jdbc/JdbcStore.java +++ b/core/src/main/java/org/alveolo/simpa/jdbc/JdbcStore.java @@ -1,631 +1,631 @@ package org.al...
true
true
public <T> List<T> list(Query<T> query) { EntityType<T> type = metamodel.entity(query.type); StringBuilder sql = new StringBuilder(); List<Select> select = query.select; if (select == null) { select = new ArrayList<>(); for (Attribute<? super T, ?> a : type.getAttributes()) { select.add(new AttrSel...
public <T> List<T> list(Query<T> query) { EntityType<T> type = metamodel.entity(query.type); StringBuilder sql = new StringBuilder(); List<Select> select = query.select; if (select == null) { select = new ArrayList<>(); for (Attribute<? super T, ?> a : type.getAttributes()) { select.add(new AttrSel...
diff --git a/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java b/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java index 1e3656495..9d1ded99f 100644 --- a/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java +++ b/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java @@ -1,4...
false
true
public void doRecovery(SolrCore core) { boolean replayed = false; boolean succesfulRecovery = false; UpdateLog ulog; try { ulog = core.getUpdateHandler().getUpdateLog(); if (ulog == null) { SolrException.log(log, "No UpdateLog found - cannot recover"); recoveryFailed(core,...
public void doRecovery(SolrCore core) { boolean replayed = false; boolean successfulRecovery = false; UpdateLog ulog; try { ulog = core.getUpdateHandler().getUpdateLog(); if (ulog == null) { SolrException.log(log, "No UpdateLog found - cannot recover"); recoveryFailed(core...
diff --git a/fap/app/verificacion/VerificacionUtils.java b/fap/app/verificacion/VerificacionUtils.java index 3503bf10..92907dd4 100644 --- a/fap/app/verificacion/VerificacionUtils.java +++ b/fap/app/verificacion/VerificacionUtils.java @@ -1,410 +1,410 @@ package verificacion; import java.util.ArrayList; import jav...
true
true
public static List<VerificacionDocumento> getVerificacionDocumentosFromNewDocumentos (List<Documento> listDoc, String uriTramite, List<Verificacion> verificacionesBefore, Long idSolicitud) { Tramite tramite = (Tramite) Tramite.find("select t from Tramite t where t.uri=?", uriTramite).first(); List<Verificaci...
public static List<VerificacionDocumento> getVerificacionDocumentosFromNewDocumentos (List<Documento> listDoc, String uriTramite, List<Verificacion> verificacionesBefore, Long idSolicitud) { Tramite tramite = (Tramite) Tramite.find("select t from Tramite t where t.uri=?", uriTramite).first(); List<Verificaci...
diff --git a/src/main/java/com/conventnunnery/plugins/mythicdrops/objects/parents/MythicTome.java b/src/main/java/com/conventnunnery/plugins/mythicdrops/objects/parents/MythicTome.java index d51fcd25..fbaa38eb 100644 --- a/src/main/java/com/conventnunnery/plugins/mythicdrops/objects/parents/MythicTome.java +++ b/src/ma...
true
true
public MythicTome(TomeType tomeType, String title, String author, String[] lore, String[] pages) { super(tomeType.toMaterialData()); ItemMeta itemMeta = Bukkit.getItemFactory().getItemMeta(getType()); BookMeta bookMeta = (BookMeta) itemMeta; bookMeta.setTitle(title); bookMeta...
public MythicTome(TomeType tomeType, String title, String author, String[] lore, String[] pages) { super(tomeType.toMaterialData()); ItemMeta itemMeta = Bukkit.getItemFactory().getItemMeta(getType()); if (itemMeta instanceof BookMeta) { BookMeta bookMeta = (BookMeta) itemMeta; ...
diff --git a/ratpack-core/src/main/java/org/ratpackframework/file/internal/FileStaticAssetRequestHandler.java b/ratpack-core/src/main/java/org/ratpackframework/file/internal/FileStaticAssetRequestHandler.java index dfe01af02..c400dc469 100644 --- a/ratpack-core/src/main/java/org/ratpackframework/file/internal/FileStati...
true
true
public void handle(Exchange exchange) { Request request = exchange.getRequest(); Response response = exchange.getResponse(); if (!request.getMethod().isGet()) { response.status(METHOD_NOT_ALLOWED.code(), METHOD_NOT_ALLOWED.reasonPhrase()).send(); return; } FileSystemBinding fileSyste...
public void handle(Exchange exchange) { Request request = exchange.getRequest(); Response response = exchange.getResponse(); if (!request.getMethod().isGet()) { response.status(METHOD_NOT_ALLOWED.code(), METHOD_NOT_ALLOWED.reasonPhrase()).send(); return; } FileSystemBinding fileSyste...
diff --git a/src/test/java/com/jmcejuela/bio/jenia/MainTest.java b/src/test/java/com/jmcejuela/bio/jenia/MainTest.java index 25ecb4b..199810f 100644 --- a/src/test/java/com/jmcejuela/bio/jenia/MainTest.java +++ b/src/test/java/com/jmcejuela/bio/jenia/MainTest.java @@ -1,49 +1,49 @@ package com.jmcejuela.bio.jenia; ...
true
true
public void testNothingCrashes() throws IOException, InterruptedException { System.setIn(Util.resourceStream("/genia-nt.in")); File tmpOut = File.createTempFile("test-genia-nt", ".out"); System.out.println("tmp out file: " + tmpOut.getAbsolutePath()); System.setOut(new PrintStream(new BufferedOutputSt...
public void testNothingCrashes() throws IOException, InterruptedException { System.setIn(Util.resourceStream("/genia-nt.in")); File tmpOut = File.createTempFile("test-genia-nt", ".out"); System.out.println("tmp out file: " + tmpOut.getAbsolutePath()); System.setOut(new PrintStream(new BufferedOutputSt...
diff --git a/java/src/test/com/dgrid/test/helpers/SQSHelperTestCase.java b/java/src/test/com/dgrid/test/helpers/SQSHelperTestCase.java index 15a5cd4..4389530 100644 --- a/java/src/test/com/dgrid/test/helpers/SQSHelperTestCase.java +++ b/java/src/test/com/dgrid/test/helpers/SQSHelperTestCase.java @@ -1,38 +1,38 @@ pack...
true
true
public void testSQSHelper() throws Exception { String queueName = String.format( "1234567890-abcdefghijklm-test-queue-%1$d", System .currentTimeMillis()); String msgBody = "Hello, world"; SQSHelper sqs = (SQSHelper) super.getBean(SQSHelper.NAME); // create a queue? sqs.getMessageQueue(queueName); ...
public void testSQSHelper() throws Exception { String queueName = String.format( "1234567890-abcdefghijklm-test-queue-%1$d", System .currentTimeMillis()); String msgBody = "Hello, world"; SQSHelper sqs = (SQSHelper) super.getBean(SQSHelper.NAME); // create a queue? sqs.getMessageQueue(queueName); ...
diff --git a/src/main/ed/net/lb/GridMapping.java b/src/main/ed/net/lb/GridMapping.java index 501463076..8eb37fae9 100644 --- a/src/main/ed/net/lb/GridMapping.java +++ b/src/main/ed/net/lb/GridMapping.java @@ -1,170 +1,170 @@ // GridMapping.java /** * Copyright (C) 2008 10gen Inc. * * This program is free...
true
true
GridMapping( Cloud c ){ super( "GridMapping" ); _cloud = c; if ( _cloud == null ) throw new RuntimeException( "can't have a GridMapping when not running on a grid!" ); DBBase db = (DBBase)_cloud.getScope().get("db"); for ( Iterator<JSObject> i = db.getC...
GridMapping( Cloud c ){ super( "GridMapping" ); _cloud = c; if ( _cloud == null ) throw new RuntimeException( "can't have a GridMapping when not running on a grid!" ); DBBase db = (DBBase)_cloud.getScope().get("db"); for ( Iterator<JSObject> i = db.getC...