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/testbench/com/vaadin/tests/components/table/TableSingleSelect.java b/tests/testbench/com/vaadin/tests/components/table/TableSingleSelect.java index edde28484..8a37c10b6 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableSingleSelect.java +++ b/tests/testbench/com/vaadin/tests/compone...
true
true
protected void setup() { log.setDebugId("eventlog"); Table t = new Table(); t.setSelectable(true); t.setNullSelectionAllowed(true); t.setImmediate(true); t.addListener(new ValueChangeListener() { public void valueChange(ValueChangeEvent event) { ...
protected void setup() { log.setDebugId("eventlog"); Table t = new Table(); t.setSelectable(true); t.setNullSelectionAllowed(true); t.setImmediate(true); t.addListener(new ValueChangeListener() { public void valueChange(ValueChangeEvent event) { ...
diff --git a/deegree-core/deegree-core-protocol/deegree-protocol-wms/src/main/java/org/deegree/protocol/wms/ops/GetMap.java b/deegree-core/deegree-core-protocol/deegree-protocol-wms/src/main/java/org/deegree/protocol/wms/ops/GetMap.java index f3094dbff6..e47efacfe3 100644 --- a/deegree-core/deegree-core-protocol/deegre...
true
true
private void handleCommon( Map<String, String> map, MapOptionsMaps exts ) throws OWSException { String ls = map.get( "LAYERS" ); String sld = map.get( "SLD" ); String sldBody = map.get( "SLD_BODY" ); if ( ( ls == null || ls.trim().isEmpty() ) && sld == nu...
private void handleCommon( Map<String, String> map, MapOptionsMaps exts ) throws OWSException { String ls = map.get( "LAYERS" ); String sld = map.get( "SLD" ); String sldBody = map.get( "SLD_BODY" ); if ( ( ls == null || ls.trim().isEmpty() ) && sld == nu...
diff --git a/qcadoo-view/src/main/java/com/qcadoo/view/internal/JsonMapperHttpMessageConverter.java b/qcadoo-view/src/main/java/com/qcadoo/view/internal/JsonMapperHttpMessageConverter.java index 59468d9a9..b6228703d 100644 --- a/qcadoo-view/src/main/java/com/qcadoo/view/internal/JsonMapperHttpMessageConverter.java +++ ...
true
true
protected void writeInternal(final Object value, final HttpOutputMessage outputMessage) throws IOException { Writer writer = new OutputStreamWriter(outputMessage.getBody(), CHARSET); writer.append(mapper.writeValueAsString(value)); writer.flush(); }
protected void writeInternal(final Object value, final HttpOutputMessage outputMessage) throws IOException { Writer writer = null; try { writer = new OutputStreamWriter(outputMessage.getBody(), CHARSET); writer.append(mapper.writeValueAsString(value)); writer.flus...
diff --git a/test/com/eteks/sweethome3d/junit/PrintTest.java b/test/com/eteks/sweethome3d/junit/PrintTest.java index d80be6bc..07b81c64 100644 --- a/test/com/eteks/sweethome3d/junit/PrintTest.java +++ b/test/com/eteks/sweethome3d/junit/PrintTest.java @@ -1,294 +1,298 @@ /* * PrintTest.java 27 aout 2007 * * Copy...
false
true
public void testPageSetupAndPrintPreview() throws ComponentSearchException, InterruptedException, NoSuchFieldException, IllegalAccessException, InvocationTargetException, IOException { UserPreferences preferences = new DefaultUserPreferences(); ViewFactory viewFactory = new SwingViewFactory(); Home...
public void testPageSetupAndPrintPreview() throws ComponentSearchException, InterruptedException, NoSuchFieldException, IllegalAccessException, InvocationTargetException, IOException { UserPreferences preferences = new DefaultUserPreferences(); ViewFactory viewFactory = new SwingViewFactory(); Home...
diff --git a/jsword/src/main/java/org/crosswire/jsword/passage/AccuracyType.java b/jsword/src/main/java/org/crosswire/jsword/passage/AccuracyType.java index 210fa0e9..5513e1aa 100644 --- a/jsword/src/main/java/org/crosswire/jsword/passage/AccuracyType.java +++ b/jsword/src/main/java/org/crosswire/jsword/passage/Accurac...
true
true
public static String[] tokenize(String input) throws NoSuchVerseException { // The results are expected to be no more than 3 parts String [] args = { null, null, null, null, null, null, null, null}; // Normalize the input by replacing non-digits and non-letters with spaces. int ...
public static String[] tokenize(String input) throws NoSuchVerseException { // The results are expected to be no more than 3 parts String [] args = { null, null, null, null, null, null, null, null}; // Normalize the input by replacing non-digits and non-letters with spaces. int ...
diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Ingester.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Ingester.java index 575044726..f9d655630 100755 --- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Ingester.java +++ b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/I...
true
true
private void ingest(ContentStream cs, Map<String, String> fields, final FsContent sourceContent) throws IngesterException { final ContentStreamUpdateRequest up = new ContentStreamUpdateRequest("/update/extract"); up.addContentStream(cs); setFields(up, fields); up.setAction(AbstractUp...
private void ingest(ContentStream cs, Map<String, String> fields, final FsContent sourceContent) throws IngesterException { final ContentStreamUpdateRequest up = new ContentStreamUpdateRequest("/update/extract"); up.addContentStream(cs); setFields(up, fields); up.setAction(AbstractUp...
diff --git a/src/com/nadmm/airports/tfr/TfrListAdapter.java b/src/com/nadmm/airports/tfr/TfrListAdapter.java index b4b27fac..9d4c269b 100644 --- a/src/com/nadmm/airports/tfr/TfrListAdapter.java +++ b/src/com/nadmm/airports/tfr/TfrListAdapter.java @@ -1,88 +1,92 @@ /* * FlightIntel for Pilots * * Copyright 2012 N...
true
true
public View getView( int position, View convertView, ViewGroup parent ) { if ( convertView == null ) { convertView = mInflater.inflate( R.layout.tfr_list_item, null ); } Tfr tfr = (Tfr) getItem( position ); TextView tv = (TextView) convertView.findViewById( R.id.tfr_age...
public View getView( int position, View convertView, ViewGroup parent ) { if ( convertView == null ) { convertView = mInflater.inflate( R.layout.tfr_list_item, null ); } Tfr tfr = (Tfr) getItem( position ); TextView tv; int index = tfr.notamId.indexOf( ' ' ); ...
diff --git a/src/powercrystals/minefactoryreloaded/modhelpers/biomesoplenty/BiomesOPlenty.java b/src/powercrystals/minefactoryreloaded/modhelpers/biomesoplenty/BiomesOPlenty.java index b39cd751..f311ff4b 100644 --- a/src/powercrystals/minefactoryreloaded/modhelpers/biomesoplenty/BiomesOPlenty.java +++ b/src/powercrysta...
false
true
public static void load(FMLInitializationEvent ev) { if(!Loader.isModLoaded("BiomesOPlenty")) { FMLLog.warning("Biomes O' Plenty missing - MFR Biomes O' Plenty Compat not loading"); return; } try { // Biomes MFRRegistry.registerRubberTreeBiome("Bayou"); MFRRegistry.registerRubberTreeBiome("Bi...
public static void load(FMLInitializationEvent ev) { if(!Loader.isModLoaded("BiomesOPlenty")) { FMLLog.warning("Biomes O' Plenty missing - MFR Biomes O' Plenty Compat not loading"); return; } try { // Biomes MFRRegistry.registerRubberTreeBiome("Bayou"); MFRRegistry.registerRubberTreeBiome("Bi...
diff --git a/java/src/collections/MaxIterator.java b/java/src/collections/MaxIterator.java index 99424f4..190dfbd 100644 --- a/java/src/collections/MaxIterator.java +++ b/java/src/collections/MaxIterator.java @@ -1,74 +1,76 @@ package collections; import java.util.Comparator; import java.util.Iterator; import jav...
false
true
public static void main(String[] args) { Vector<Integer> vec = new Vector<Integer>(); vec.add(3); vec.add(5); vec.add(9); MaxIterator<Integer> mi = new MaxIterator<Integer>(vec.iterator(), new Comparator<Integer>() { @Override public int compare(Integer a, Integer b) { return a - b; ...
public static void main(String[] args) { Vector<Integer> vec = new Vector<Integer>(); vec.add(3); vec.add(2); vec.add(9); vec.add(8); vec.add(11); MaxIterator<Integer> mi = new MaxIterator<Integer>(vec.iterator(), new Comparator<Integer>() { @Override public int compare(Integer a, Integer ...
diff --git a/src/main/java/org/spout/engine/world/SpoutBlock.java b/src/main/java/org/spout/engine/world/SpoutBlock.java index c8eb3b207..ab1701cd4 100644 --- a/src/main/java/org/spout/engine/world/SpoutBlock.java +++ b/src/main/java/org/spout/engine/world/SpoutBlock.java @@ -1,308 +1,308 @@ /* * This file is part o...
false
true
public Block update(boolean around) { Chunk chunk = this.getChunk(); chunk.updateBlockPhysics(this.x, this.y, this.z, this.source); if (around) { //South and North chunk.updateBlockPhysics(this.x + 1, this.y, this.z, this.source); chunk.updateBlockPhysics(this.x - 1, this.y, this.z, this.source); //...
public Block update(boolean around) { World world = this.getWorld(); world.updateBlockPhysics(this.x, this.y, this.z, this.source); if (around) { //South and North world.updateBlockPhysics(this.x + 1, this.y, this.z, this.source); world.updateBlockPhysics(this.x - 1, this.y, this.z, this.source); //...
diff --git a/src/java/org/jruby/ext/openssl/Request.java b/src/java/org/jruby/ext/openssl/Request.java index 9d350a1..746192b 100644 --- a/src/java/org/jruby/ext/openssl/Request.java +++ b/src/java/org/jruby/ext/openssl/Request.java @@ -1,328 +1,339 @@ /***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL...
true
true
public IRubyObject _initialize(IRubyObject[] args, Block block) { if(org.jruby.runtime.Arity.checkArgumentCount(getRuntime(),args,0,1) == 0) { return this; } byte[] req_bytes = OpenSSLImpl.readX509PEM(args[0]); req = new PKCS10CertificationRequestExt(req_bytes); ...
public IRubyObject _initialize(IRubyObject[] args, Block block) { if(org.jruby.runtime.Arity.checkArgumentCount(getRuntime(),args,0,1) == 0) { return this; } byte[] req_bytes = OpenSSLImpl.readX509PEM(args[0]); req = new PKCS10CertificationRequestExt(req_bytes); ...
diff --git a/src/main/java/net/praqma/hudson/scm/PucmState.java b/src/main/java/net/praqma/hudson/scm/PucmState.java index 9843b2b..352be23 100644 --- a/src/main/java/net/praqma/hudson/scm/PucmState.java +++ b/src/main/java/net/praqma/hudson/scm/PucmState.java @@ -1,254 +1,254 @@ package net.praqma.hudson.scm; impo...
true
true
public int recalculate( AbstractProject<?, ?> project ) { int count = 0; for( State s : states ) { Integer bnum = s.getJobNumber(); Object o = project.getBuildByNumber( bnum ); Build bld = (Build)o; /* The job is not running */ if( !bld.isLogUpdated() ) { s.remove(); count++; ...
public synchronized int recalculate( AbstractProject<?, ?> project ) { int count = 0; for( State s : states ) { Integer bnum = s.getJobNumber(); Object o = project.getBuildByNumber( bnum ); Build bld = (Build)o; /* The job is not running */ if( !bld.isLogUpdated() ) { s.remove(); ...
diff --git a/samples/appengine-repl/src/main/java/com/bedatadriven/renjin/appengine/server/LotREPLsApiImpl.java b/samples/appengine-repl/src/main/java/com/bedatadriven/renjin/appengine/server/LotREPLsApiImpl.java index cd08d4739..70687d63a 100644 --- a/samples/appengine-repl/src/main/java/com/bedatadriven/renjin/appeng...
false
true
public String eval(String script) throws InterpreterException { ExpressionVector expression = RParser.parseSource(script + "\n"); if(expression == null) { return ""; } Context context = masterTopLevelContext.fork(); StringWriter writer = new StringWriter(); context.getGlobals().s...
public String eval(String script) throws InterpreterException { ExpressionVector expression = RParser.parseSource(script + "\n"); if(expression == null) { return ""; } Context context = masterTopLevelContext.fork(); StringWriter writer = new StringWriter(); context.getGlobals().s...
diff --git a/src/com/inspedio/system/helper/InsPointer.java b/src/com/inspedio/system/helper/InsPointer.java index 39a008a..82d6e19 100644 --- a/src/com/inspedio/system/helper/InsPointer.java +++ b/src/com/inspedio/system/helper/InsPointer.java @@ -1,148 +1,148 @@ package com.inspedio.system.helper; import java.uti...
true
true
public void updatePointerState(){ pressed = new InsPointerEvent[this.pressedEvents.size()]; for(int i = 0; i < pressed.length; i++){ pressed[i] = (InsPointerEvent) this.pressedEvents.elementAt(i); } released = new InsPointerEvent[this.releasedEvents.size()]; for(int i = 0; i < released.length; i++){ ...
public void updatePointerState(){ pressed = new InsPointerEvent[this.pressedEvents.size()]; for(int i = 0; i < pressed.length; i++){ pressed[i] = (InsPointerEvent) this.pressedEvents.elementAt(i); } released = new InsPointerEvent[this.releasedEvents.size()]; for(int i = 0; i < released.length; i++){ ...
diff --git a/drools-compiler/src/test/java/org/drools/semantics/java/StaticMethodFunctionResolverTest.java b/drools-compiler/src/test/java/org/drools/semantics/java/StaticMethodFunctionResolverTest.java index 832f8b4d5..357ba58d9 100644 --- a/drools-compiler/src/test/java/org/drools/semantics/java/StaticMethodFunctionR...
true
true
public void test1() { List list = new ArrayList(); list.add( "org.drools.StaticMethods" ); TypeResolver typeResolver = new ClassTypeResolver( list ); list = new ArrayList(); list.add( "StaticMethods.*" ); FunctionResolver func...
public void test1() { List list = new ArrayList(); list.add( "org.drools.StaticMethods" ); TypeResolver typeResolver = new ClassTypeResolver( list ); list = new ArrayList(); list.add( "StaticMethods.*" ); FunctionResolver func...
diff --git a/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java b/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java index 079dd703..1f552ef9 100644 --- a/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java +++ b/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java @@ -1,344 +1,356 @@ ...
true
true
public LayerListDialog(MapFrame mapFrame) { super(tr("Layers"), "layerlist", tr("Open a list of all loaded layers."), Shortcut.registerShortcut("subwindow:layers", tr("Toggle: {0}", tr("Layers")), KeyEvent.VK_L, Shortcut.GROUP_LAYER), 100); instance = new JList(model); listSc...
public LayerListDialog(MapFrame mapFrame) { super(tr("Layers"), "layerlist", tr("Open a list of all loaded layers."), Shortcut.registerShortcut("subwindow:layers", tr("Toggle: {0}", tr("Layers")), KeyEvent.VK_L, Shortcut.GROUP_LAYER), 100); instance = new JList(model) { @...
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/remote/launch/PerfLaunchConfigDelegate.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/remote/launch/PerfLaunchConfigDelegate.java index 5bf7c8a96..a7f2f56b2 100644 --- a/perf/org.eclipse.linuxtools.p...
true
true
public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { try { this.configUtils = new ConfigUtils(config); IProject project = ConfigUtils.getProject(configUtils.getProjectName()); // check if Perf exists in $PATH if (! PerfCore.check...
public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { try { this.configUtils = new ConfigUtils(config); IProject project = ConfigUtils.getProject(configUtils.getProjectName()); // check if Perf exists in $PATH if (! PerfCore.check...
diff --git a/src/com/ben/software/activity/OrderActivity.java b/src/com/ben/software/activity/OrderActivity.java index db5736a..ce9340e 100644 --- a/src/com/ben/software/activity/OrderActivity.java +++ b/src/com/ben/software/activity/OrderActivity.java @@ -1,236 +1,236 @@ package com.ben.software.activity; import j...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle(getResources().getText(R.string.order_title) + " - 17桌"); setContentView(R.layout.order); DatabaseHelper dbHelper = new DatabaseHelper(this); dbHelper.clearTestData(); d...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle(getResources().getText(R.string.order_title) + " - 17桌"); setContentView(R.layout.order); DatabaseHelper dbHelper = new DatabaseHelper(this); dbHelper.clearTestData(); d...
diff --git a/web/src/main/java/org/openmrs/web/servlet/ComplexObsServlet.java b/web/src/main/java/org/openmrs/web/servlet/ComplexObsServlet.java index 28fcd4a2..19fde1ab 100644 --- a/web/src/main/java/org/openmrs/web/servlet/ComplexObsServlet.java +++ b/web/src/main/java/org/openmrs/web/servlet/ComplexObsServlet.java @...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String obsId = request.getParameter("obsId"); String view = request.getParameter("view"); String viewType = request.getParameter("viewType"); HttpSession session = request.getSession(); ...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String obsId = request.getParameter("obsId"); String view = request.getParameter("view"); String viewType = request.getParameter("viewType"); HttpSession session = request.getSession(); ...
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/CombineHiveInputFormat.java b/ql/src/java/org/apache/hadoop/hive/ql/io/CombineHiveInputFormat.java index 7a1d1e1d..e9483eb7 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/io/CombineHiveInputFormat.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/io/CombineHiveIn...
true
true
public InputSplit[] getSplits(JobConf job, int numSplits) throws IOException { init(job); CombineFileInputFormatShim combine = ShimLoader.getHadoopShims() .getCombineFileInputFormat(); if (combine == null) { return super.getSplits(job, numSplits); } if (combine.getInputPathsShim(j...
public InputSplit[] getSplits(JobConf job, int numSplits) throws IOException { init(job); CombineFileInputFormatShim combine = ShimLoader.getHadoopShims() .getCombineFileInputFormat(); if (combine == null) { return super.getSplits(job, numSplits); } if (combine.getInputPathsShim(j...
diff --git a/src/com/android/settings/TetherSettings.java b/src/com/android/settings/TetherSettings.java index e27c96ee5..867f73352 100644 --- a/src/com/android/settings/TetherSettings.java +++ b/src/com/android/settings/TetherSettings.java @@ -1,630 +1,630 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
true
true
public void onCreate(Bundle icicle) { super.onCreate(icicle); addPreferencesFromResource(R.xml.tether_prefs); final Activity activity = getActivity(); BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); if (adapter != null) { adapter.getProfileProxy(...
public void onCreate(Bundle icicle) { super.onCreate(icicle); addPreferencesFromResource(R.xml.tether_prefs); final Activity activity = getActivity(); BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); if (adapter != null) { adapter.getProfileProxy(...
diff --git a/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/SpiceManager.java b/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/SpiceManager.java index f978585d6..17ed30460 100644 --- a/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/SpiceManag...
true
true
public void run() { // start the service it is not started yet. Context context = contextWeakReference.get(); if (context != null) { checkServiceIsProperlyDeclaredInAndroidManifest(context); final Intent intent = new Intent(context, spiceServiceClass); con...
public void run() { // start the service it is not started yet. Context context = contextWeakReference.get(); if (context != null) { checkServiceIsProperlyDeclaredInAndroidManifest(context); final Intent intent = new Intent(context, spiceServiceClass); con...
diff --git a/src/com/turt2live/antishare/ASListener.java b/src/com/turt2live/antishare/ASListener.java index 037cc9da..20f5a5c3 100644 --- a/src/com/turt2live/antishare/ASListener.java +++ b/src/com/turt2live/antishare/ASListener.java @@ -1,1002 +1,1007 @@ package com.turt2live.antishare; import java.io.BufferedWri...
false
true
public void onBlockBreak(BlockBreakEvent event){ Player player = event.getPlayer(); Block block = event.getBlock(); AlertType type = AlertType.ILLEGAL; boolean special = false; boolean region = false; Boolean drops = null; AlertType specialType = AlertType.LEGAL; String blockGM = "Unknown"; // Check...
public void onBlockBreak(BlockBreakEvent event){ Player player = event.getPlayer(); Block block = event.getBlock(); AlertType type = AlertType.ILLEGAL; boolean special = false; boolean region = false; Boolean drops = null; AlertType specialType = AlertType.LEGAL; String blockGM = "Unknown"; // Check...
diff --git a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/action/DynamicEventAction.java b/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/action/DynamicEventAction.java index 3864ccf3c..f33950263 100644 --- a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore...
false
true
protected ActionForward executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { if (request.getParameter(Constants.REFRESH_EVENT_GRID) != null) { request.setAttribute(Constants.REFRESH_EVENT_GRID, request .getParameter(Constants...
protected ActionForward executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { if (request.getParameter(Constants.REFRESH_EVENT_GRID) != null) { request.setAttribute(Constants.REFRESH_EVENT_GRID, request .getParameter(Constants...
diff --git a/src/org/eclipse/core/tests/resources/regression/AllTests.java b/src/org/eclipse/core/tests/resources/regression/AllTests.java index a7df65a..d18a534 100644 --- a/src/org/eclipse/core/tests/resources/regression/AllTests.java +++ b/src/org/eclipse/core/tests/resources/regression/AllTests.java @@ -1,59 +1,60 ...
true
true
public static Test suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); suite.addTest(Bug_126104.suite()); suite.addTest(Bug_127562.suite()); suite.addTest(Bug_25457.suite()); suite.addTest(Bug_26294.suite()); suite.addTest(Bug_27271.suite()); suite.addTest(Bug_28981.suite()); suite.add...
public static Test suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); suite.addTest(Bug_126104.suite()); suite.addTest(Bug_127562.suite()); suite.addTest(Bug_132510.suite()); suite.addTest(Bug_25457.suite()); suite.addTest(Bug_26294.suite()); suite.addTest(Bug_27271.suite()); suite.ad...
diff --git a/alerts/web/src/main/java/org/kuali/mobility/alerts/controllers/AlertsController.java b/alerts/web/src/main/java/org/kuali/mobility/alerts/controllers/AlertsController.java index 9812a7f..0daac07 100644 --- a/alerts/web/src/main/java/org/kuali/mobility/alerts/controllers/AlertsController.java +++ b/alerts/w...
true
true
public String getList(HttpServletRequest request, Model uiModel) { List<Alert> alerts = alertsService.findAllAlertsFromJson(request.getScheme() + "://" + request.getRemoteHost() + ":" + request.getServerPort() + request.getContextPath() + "/testdata/alerts.json"); uiModel.addAttribute("alerts", alerts)...
public String getList(HttpServletRequest request, Model uiModel) { List<Alert> alerts = alertsService.findAllAlertsFromJson(request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/testdata/alerts.json"); uiModel.addAttribute("alerts", alerts)...
diff --git a/src/lib/com/izforge/izpack/installer/Unpacker.java b/src/lib/com/izforge/izpack/installer/Unpacker.java index 471c4a98..da55a91f 100644 --- a/src/lib/com/izforge/izpack/installer/Unpacker.java +++ b/src/lib/com/izforge/izpack/installer/Unpacker.java @@ -1,400 +1,410 @@ /* * $Id$ * IzPack * Copyri...
false
true
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); List packs = idata.selectedPacks; int npacks = packs.size(); handler.startActi...
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); List packs = idata.selectedPacks; int npacks = packs.size(); handler.startActi...
diff --git a/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java b/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java index 672c2bdd..fe873528 100644 --- a/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java +++ b/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerW...
true
true
private void createDebug() { frame = new JFrame("Smack Debug Window"); // Add listener for window closing event frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent evt) { rootWindowClosing(evt); } }); ...
private void createDebug() { frame = new JFrame("Smack Debug Window"); // Add listener for window closing event frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent evt) { rootWindowClosing(evt); } }); ...
diff --git a/src/main/java/com/jayway/maven/plugins/android/phase04processclasses/ProguardMojo.java b/src/main/java/com/jayway/maven/plugins/android/phase04processclasses/ProguardMojo.java index ceb46e3e..10fcb31f 100644 --- a/src/main/java/com/jayway/maven/plugins/android/phase04processclasses/ProguardMojo.java +++ b/...
true
true
private void executeProguard() throws MojoExecutionException { final File proguardDir = new File( project.getBuild().getDirectory(), parsedOutputDirectory ); if ( ! proguardDir.exists() && ! proguardDir.mkdir() ) { throw new MojoExecutionException( "Cannot create ...
private void executeProguard() throws MojoExecutionException { final File proguardDir = new File( project.getBuild().getDirectory(), parsedOutputDirectory ); if ( ! proguardDir.exists() && ! proguardDir.mkdir() ) { throw new MojoExecutionException( "Cannot create ...
diff --git a/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java b/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java index 7f4ec118d..715fb3c6c 100644 --- a/src/contributions/resources/dat...
false
true
private String getNodeAsXML(String path) { //private String getNodeAsXML(com.hp.hpl.jena.rdf.model.Resource resource) { //log.error("DEBUG: Path: " + path); Sitetree sitetree = getRealm().getRepoNavigation(); Node node = sitetree.getNode(getRealm(), path); StringBuffer sb = new S...
private String getNodeAsXML(String path) { //private String getNodeAsXML(com.hp.hpl.jena.rdf.model.Resource resource) { //log.error("DEBUG: Path: " + path); Sitetree sitetree = getRealm().getRepoNavigation(); Node node = sitetree.getNode(getRealm(), path); StringBuffer sb = new S...
diff --git a/src/main/java/com/anzymus/neogeo/hiscores/success/AbstractGenreTitleStrategy.java b/src/main/java/com/anzymus/neogeo/hiscores/success/AbstractGenreTitleStrategy.java index 9a94362..3db1ca6 100644 --- a/src/main/java/com/anzymus/neogeo/hiscores/success/AbstractGenreTitleStrategy.java +++ b/src/main/java/com...
true
true
public Achievement getAchievementFor(Player player) { List<Scores> scoresByGame = titleService.getScoresByGameGenre(getGenre()); if (scoresByGame.isEmpty()) { Achievement achievement = new Achievement(getTitle(), 0); Step step = new Step("Have a rank Between 1st and 3rd place in " + getGenre() + " games", fa...
public Achievement getAchievementFor(Player player) { List<Scores> scoresByGame = titleService.getScoresByGameGenre(getGenre()); if (scoresByGame.isEmpty()) { Achievement achievement = new Achievement(getTitle(), 0); Step step = new Step("Have a rank Between 1st and 3rd place in " + getGenre() + " games", fa...
diff --git a/freeplane/src/org/freeplane/view/swing/map/NodeView.java b/freeplane/src/org/freeplane/view/swing/map/NodeView.java index becdf2cd1..728950cd2 100644 --- a/freeplane/src/org/freeplane/view/swing/map/NodeView.java +++ b/freeplane/src/org/freeplane/view/swing/map/NodeView.java @@ -1,1516 +1,1516 @@ /* * ...
true
true
private void paintSummaryEdge(Graphics2D g, NodeView nodeView, int pos) { final boolean isLeft = nodeView.isLeft(); final int spaceAround = getSpaceAround(); int level = 0; int anotherLevel = 0; int i; NodeView lastView = null; int x1 = 0; boolean itemFound = false; boolean firstGroupNodeFound = f...
private void paintSummaryEdge(Graphics2D g, NodeView nodeView, int pos) { final boolean isLeft = nodeView.isLeft(); final int spaceAround = getSpaceAround(); int level = 0; int anotherLevel = 0; int i; NodeView lastView = null; int x1 = 0; boolean itemFound = false; boolean firstGroupNodeFound = f...
diff --git a/src/data/GameData.java b/src/data/GameData.java index c6612a3..056e5f4 100644 --- a/src/data/GameData.java +++ b/src/data/GameData.java @@ -1,1087 +1,1091 @@ package data; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; impo...
true
true
public void fromJSONObject(JSONObject obj) throws ParseException { numInitialContestants = ((Number) obj.get(KEY_NUM_CONTEST)).intValue(); // tribes JSONArray ts = (JSONArray) obj.get(KEY_TRIBES); setTribeNames((String) ts.get(0), (String) ts.get(1)); // week info: weeksRem = Utils.numToInt(obj.get(KEY_W...
public void fromJSONObject(JSONObject obj) throws ParseException { numInitialContestants = ((Number) obj.get(KEY_NUM_CONTEST)).intValue(); // tribes JSONArray ts = (JSONArray) obj.get(KEY_TRIBES); setTribeNames((String) ts.get(0), (String) ts.get(1)); // week info: weeksRem = Utils.numToInt(obj.get(KEY_W...
diff --git a/src/com/vmware/vim25/mo/samples/QueryEvent.java b/src/com/vmware/vim25/mo/samples/QueryEvent.java index 969ae8a..0eb1e41 100644 --- a/src/com/vmware/vim25/mo/samples/QueryEvent.java +++ b/src/com/vmware/vim25/mo/samples/QueryEvent.java @@ -1,106 +1,106 @@ /*================================================...
true
true
public static void main(String[] args) throws Exception { if (args.length != 3) { usage(); return; } String urlStr = args[0]; String username = args[1]; String password = args[2]; System.out.println("Connecting to " + urlStr + " as " + username); ServiceInstance si = new ServiceInstance(ne...
public static void main(String[] args) throws Exception { if (args.length != 3) { usage(); return; } String urlStr = args[0]; String username = args[1]; String password = args[2]; System.out.println("Connecting to " + urlStr + " as " + username); ServiceInstance si = new ServiceInstance(ne...
diff --git a/SWADroid/src/es/ugr/swad/swadroid/modules/rollcall/sessions/SessionsList.java b/SWADroid/src/es/ugr/swad/swadroid/modules/rollcall/sessions/SessionsList.java index 88039e40..e8a9064f 100644 --- a/SWADroid/src/es/ugr/swad/swadroid/modules/rollcall/sessions/SessionsList.java +++ b/SWADroid/src/es/ugr/swad/sw...
true
true
private void initialize() { List<SessionItemModel> sessionList = null; long courseCode = Global.getSelectedCourseCode(); Intent intent = getIntent(); long studentId = intent.getLongExtra("studentId", (long) 0); boolean existSessions = false; // Get practice groups of selected course List<Long> groupIdLi...
private void initialize() { List<SessionItemModel> sessionList = null; long courseCode = Global.getSelectedCourseCode(); Intent intent = getIntent(); long studentId = intent.getLongExtra("studentId", (long) 0); boolean existSessions = false; // Get practice groups of selected course List<Long> groupIdLi...
diff --git a/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/platform/EclipseCursorAndSelection.java b/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/platform/EclipseCursorAndSelection.java index 94fdec2a..170653a3 100644 --- a/net.sourceforge.vrapper.eclipse/src/net/sourceforge...
true
true
public void setSelection(final Selection newSelection) { if (newSelection == null) { final Point point = textViewer.getSelectedRange(); textViewer.getTextWidget().setBlockSelection(false); textViewer.setSelectedRange(point.x, 0); selection = null; } el...
public void setSelection(final Selection newSelection) { if (newSelection == null) { final Point point = textViewer.getSelectedRange(); textViewer.getTextWidget().setBlockSelection(false); textViewer.setSelectedRange(point.x, 0); selection = null; } el...
diff --git a/src/com/cooliris/media/GridInputProcessor.java b/src/com/cooliris/media/GridInputProcessor.java index fd65f66..2f0c0b4 100644 --- a/src/com/cooliris/media/GridInputProcessor.java +++ b/src/com/cooliris/media/GridInputProcessor.java @@ -1,828 +1,837 @@ package com.cooliris.media; import android.content....
false
true
public boolean onKeyDown(int keyCode, KeyEvent event, int state) { GridLayer layer = mLayer; if (keyCode == KeyEvent.KEYCODE_BACK) { if (layer.getViewIntent()) return false; if (layer.getHud().getMode() == HudLayer.MODE_SELECT) { layer.deselect...
public boolean onKeyDown(int keyCode, KeyEvent event, int state) { GridLayer layer = mLayer; if (keyCode == KeyEvent.KEYCODE_BACK) { if (layer.getViewIntent()) return false; if (layer.getHud().getMode() == HudLayer.MODE_SELECT) { layer.deselect...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewAttachmentWizard.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewAttachmentWizard.java index d108bb05f..26be4eff7 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/u...
true
true
public boolean performFinish() { /* TODO jpound - support non-text in clipboard */ attachPage.populateAttachment(); String path = inputPage.getAbsoluteAttachmentPath(); if (InputAttachmentSourcePage.CLIPBOARD_LABEL.equals(path)) { // write temporary file String contents = inputPage.getClipboardContents()...
public boolean performFinish() { /* TODO jpound - support non-text in clipboard */ attachPage.populateAttachment(); String path = inputPage.getAbsoluteAttachmentPath(); if (InputAttachmentSourcePage.CLIPBOARD_LABEL.equals(path)) { // write temporary file String contents = inputPage.getClipboardContents()...
diff --git a/src/com/android/launcher2/FirstFrameAnimatorHelper.java b/src/com/android/launcher2/FirstFrameAnimatorHelper.java index f42a741c..2351dd07 100644 --- a/src/com/android/launcher2/FirstFrameAnimatorHelper.java +++ b/src/com/android/launcher2/FirstFrameAnimatorHelper.java @@ -1,105 +1,109 @@ /* * Copyright...
false
true
public void onAnimationUpdate(ValueAnimator animation) { if (mStartTime == -1) { mStartFrame = sGlobalFrameCounter; mStartTime = System.currentTimeMillis(); } if (!mHandlingOnAnimationUpdate) { mHandlingOnAnimationUpdate = true; long frameNum ...
public void onAnimationUpdate(final ValueAnimator animation) { if (mStartTime == -1) { mStartFrame = sGlobalFrameCounter; mStartTime = System.currentTimeMillis(); } if (!mHandlingOnAnimationUpdate) { mHandlingOnAnimationUpdate = true; long fra...
diff --git a/jetty-continuation/src/main/java/org/eclipse/jetty/continuation/Servlet3Continuation.java b/jetty-continuation/src/main/java/org/eclipse/jetty/continuation/Servlet3Continuation.java index 3d15be2d0..e4bca0be2 100644 --- a/jetty-continuation/src/main/java/org/eclipse/jetty/continuation/Servlet3Continuation....
true
true
public void addContinuationListener(final ContinuationListener listener) { AsyncListener wrapped = new AsyncListener() { public void onComplete(final AsyncEvent event) throws IOException { listener.onComplete(Servlet3Continuation.this); } ...
public void addContinuationListener(final ContinuationListener listener) { AsyncListener wrapped = new AsyncListener() { public void onComplete(final AsyncEvent event) throws IOException { listener.onComplete(Servlet3Continuation.this); } ...
diff --git a/gsf-wra/src/main/java/com/fatwire/gst/foundation/httpstatus/StatusFilterHttpResponseWrapper.java b/gsf-wra/src/main/java/com/fatwire/gst/foundation/httpstatus/StatusFilterHttpResponseWrapper.java index 1f1d8cfb..291e0240 100644 --- a/gsf-wra/src/main/java/com/fatwire/gst/foundation/httpstatus/StatusFilterH...
true
true
public void setHeader(String hdrName, String hdrValue) { if (log.isDebugEnabled()) { log.debug("original setHeader " + hdrName + ": " + hdrValue); } if (X_FATWIRE_STATUS.equalsIgnoreCase(hdrName)) { try { status = Integer.parseInt(hdrValue); ...
public void setHeader(String hdrName, String hdrValue) { if (log.isDebugEnabled()) { log.debug("original setHeader " + hdrName + ": " + hdrValue); } if (X_FATWIRE_STATUS.equalsIgnoreCase(hdrName)) { try { status = Integer.parseInt(hdrValue); ...
diff --git a/src/ch/epfl/flamemaker/InterpolatedPalette.java b/src/ch/epfl/flamemaker/InterpolatedPalette.java index 39fbd1c..f6c249d 100644 --- a/src/ch/epfl/flamemaker/InterpolatedPalette.java +++ b/src/ch/epfl/flamemaker/InterpolatedPalette.java @@ -1,33 +1,37 @@ package ch.epfl.flamemaker; import java.util.List...
true
true
public Color colorForIndex(double index) { if(index < 0 || index > 1) { throw new IllegalArgumentException("index must be between 0 and 1"); } int nbColors = m_colors.size()-1; double lowColor = Math.floor(nbColors * index); double highColorWeight = index * nbColors - lowColor; double highColor = ...
public Color colorForIndex(double index) { if(index < 0 || index > 1) { throw new IllegalArgumentException("index must be between 0 and 1"); } int nbColors = m_colors.size()-1; double lowColor = Math.floor(nbColors * index); double highColorWeight = index * nbColors - lowColor; double highColor = ...
diff --git a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/properties/tabbed/AnomalyTabPropertySection.java b/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/properties/tabbed/AnomalyTabPropertySection.java index 902fcaa..7502558 100644 --- a/org.eclipse.m...
true
true
private Composite createAnomalyDetailsSection(TabbedPropertySheetWidgetFactory aWidgetFactory, final Composite aComposite) { //Anomaly Details section final ExpandableComposite anomalyDetailsSection = aWidgetFactory.createExpandableComposite(aComposite, ExpandableComposite.TWISTIE); final FormData data = ...
private Composite createAnomalyDetailsSection(TabbedPropertySheetWidgetFactory aWidgetFactory, final Composite aComposite) { //Anomaly Details section final ExpandableComposite anomalyDetailsSection = aWidgetFactory.createExpandableComposite(aComposite, ExpandableComposite.TWISTIE); final FormData data = ...
diff --git a/src/org/opensolaris/opengrok/search/context/Context.java b/src/org/opensolaris/opengrok/search/context/Context.java index 3507afd..446c20d 100644 --- a/src/org/opensolaris/opengrok/search/context/Context.java +++ b/src/org/opensolaris/opengrok/search/context/Context.java @@ -1,278 +1,276 @@ /* * CDDL HE...
true
true
public boolean getContext(Reader in, Writer out, String urlPrefix, String morePrefix, String path, Definitions tags, boolean limit, List<Hit> hits) { alt = !alt; if (m == null) { return false; } boolean anything = false; TreeMap<Integer, St...
public boolean getContext(Reader in, Writer out, String urlPrefix, String morePrefix, String path, Definitions tags, boolean limit, List<Hit> hits) { alt = !alt; if (m == null) { return false; } boolean anything = false; TreeMap<Integer, St...
diff --git a/src/com/xforj/productions/Program.java b/src/com/xforj/productions/Program.java index ce7fa43..54272a9 100644 --- a/src/com/xforj/productions/Program.java +++ b/src/com/xforj/productions/Program.java @@ -1,144 +1,144 @@ /* * Copyright 2012 Joseph Spencer * * Licensed under the Apache License, Versio...
true
true
public Program( Output output, VariableOutput currentVariableOutput, ProductionContext context, boolean isNested ){ super(output); programNamespaceOutput=new Output(); importOutput=new Output(); variableOutput=currentVariableOutput; globalStatementsOutput=ne...
public Program( Output output, VariableOutput currentVariableOutput, ProductionContext context, boolean isNested ){ super(output); programNamespaceOutput=new Output(); importOutput=new Output(); variableOutput=currentVariableOutput; globalStatementsOutput=ne...
diff --git a/src/sta/andswtch/extensionLead/AutoRefresh.java b/src/sta/andswtch/extensionLead/AutoRefresh.java index 0ad1011..5af3133 100644 --- a/src/sta/andswtch/extensionLead/AutoRefresh.java +++ b/src/sta/andswtch/extensionLead/AutoRefresh.java @@ -1,47 +1,47 @@ package sta.andswtch.extensionLead; public clas...
true
true
public void run() { this.isRunning = true; while(this.isRunning) { int seconds = this.extLead.getUpdateInterval(); try { Thread.sleep(seconds * 1000); } catch (InterruptedException e) { e.printStackTrace(); } if(seconds != 0) { this.extLead.sendUpdateMessage(); } } this.thread = ...
public void run() { this.isRunning = true; while(this.isRunning) { int seconds = this.extLead.getUpdateInterval(); try { Thread.sleep(seconds * 1000); } catch (InterruptedException e) { e.printStackTrace(); } if(seconds != 0 && this.isRunning) { this.extLead.sendUpdateMessage(); } ...
diff --git a/app/src/uk/co/jarofgreen/cityoutdoors/API/FeaturesCall.java b/app/src/uk/co/jarofgreen/cityoutdoors/API/FeaturesCall.java index 4372faa..656943c 100644 --- a/app/src/uk/co/jarofgreen/cityoutdoors/API/FeaturesCall.java +++ b/app/src/uk/co/jarofgreen/cityoutdoors/API/FeaturesCall.java @@ -1,71 +1,72 @@ pack...
true
true
public void execute() { RootElement root = new RootElement("data"); Element features = root.getChild("features"); Element feature = features.getChild("feature"); final Storage storage = new Storage(context); feature.setStartElementListener(new StartElementL...
public void execute() { RootElement root = new RootElement("data"); Element features = root.getChild("features"); Element feature = features.getChild("feature"); final Storage storage = new Storage(context); feature.setStartElementListener(new StartElementL...
diff --git a/src/main/java/me/tehbeard/BeardAch/BeardAch.java b/src/main/java/me/tehbeard/BeardAch/BeardAch.java index dd33163..a249fb1 100644 --- a/src/main/java/me/tehbeard/BeardAch/BeardAch.java +++ b/src/main/java/me/tehbeard/BeardAch/BeardAch.java @@ -1,290 +1,290 @@ package me.tehbeard.BeardAch; import java.i...
true
true
public void onEnable() { self = this; achievementManager = new AchievementManager(); //Load config printCon("Starting BeardAch"); if(!getConfig().getKeys(false).contains("achievements")){ getConfig().options().copyDefaults(true); } saveConfig(); ...
public void onEnable() { self = this; achievementManager = new AchievementManager(); //Load config printCon("Starting BeardAch"); if(!getConfig().getKeys(false).contains("achievements")){ getConfig().options().copyDefaults(true); } saveConfig(); ...
diff --git a/src/com/undeadscythes/udsplugin/commands/NickCmd.java b/src/com/undeadscythes/udsplugin/commands/NickCmd.java index 0a8c0a5..e348c64 100644 --- a/src/com/undeadscythes/udsplugin/commands/NickCmd.java +++ b/src/com/undeadscythes/udsplugin/commands/NickCmd.java @@ -1,28 +1,28 @@ package com.undeadscythes.ud...
true
true
public void playerExecute() { SaveablePlayer target; if(args.length == 1) { if(noCensor(args[0])) { if(player.getName().toLowerCase().contains(args[0].toLowerCase()) || hasPerm(Perm.NICK_OTHER)) { player.setDisplayName(args[0]); pla...
public void playerExecute() { SaveablePlayer target; if(args.length == 1) { if(noCensor(args[0])) { if(player.getName().toLowerCase().contains(args[0].toLowerCase()) || hasPerm(Perm.NICK_OTHER)) { player.setDisplayName(args[0]); pla...
diff --git a/src/cn/uc/play/japid/template/TemplateLoaderMysqlImpl.java b/src/cn/uc/play/japid/template/TemplateLoaderMysqlImpl.java index 1aebad5..0aa2b7c 100644 --- a/src/cn/uc/play/japid/template/TemplateLoaderMysqlImpl.java +++ b/src/cn/uc/play/japid/template/TemplateLoaderMysqlImpl.java @@ -1,181 +1,181 @@ packag...
true
true
private UJapidTemplate createTemplateFromResultSet(ResultSet rs) throws SQLException { Date lastModifyTime = rs.getDate("last_modify"); String path = rs.getString("id"); UJapidTemplate templateInNativeCache = templatesCache.get(path); if (templateInNativeCache != null && lastModifyTime.getTime() <= tem...
private UJapidTemplate createTemplateFromResultSet(ResultSet rs) throws SQLException { Date lastModifyTime = rs.getTimestamp("last_modify"); String path = rs.getString("id"); UJapidTemplate templateInNativeCache = templatesCache.get(path); if (templateInNativeCache != null && lastModifyTime.getTime() <...
diff --git a/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/TextPrinterBaseGenerator.java b/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/TextPrinterBaseGenerator.java index 244cdaa4f..72ac57619 100644 --- a/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/TextPrinterBaseGenerator.java +++ b/org....
true
true
private void printSequence(Sequence sequence, StringComposite sc, GenClass genClass) { Set<String> neededFeatures = new LinkedHashSet<String>( sequence2NecessaryFeatures.get(sequence)); //EClass metaClass = genClass.getEcoreClass(); ListIterator<Definition> definitionIterator = sequence.getParts() .l...
private void printSequence(Sequence sequence, StringComposite sc, GenClass genClass) { Set<String> neededFeatures = new LinkedHashSet<String>( sequence2NecessaryFeatures.get(sequence)); //EClass metaClass = genClass.getEcoreClass(); ListIterator<Definition> definitionIterator = sequence.getParts() .l...
diff --git a/bundles/core/org.openhab.core/src/main/java/org/openhab/core/items/GenericItem.java b/bundles/core/org.openhab.core/src/main/java/org/openhab/core/items/GenericItem.java index 9512de60..acf2ea56 100644 --- a/bundles/core/org.openhab.core/src/main/java/org/openhab/core/items/GenericItem.java +++ b/bundles/c...
true
true
private void notifyListeners(State oldState, State newState) { // if nothing has changed, we do not need to send notifications if(oldState.equals(newState)) return; for(StateChangeListener listener : listeners) { listener.stateChanged(this, oldState, newState); } }
private synchronized void notifyListeners(State oldState, State newState) { // if nothing has changed, we do not need to send notifications if(oldState.equals(newState)) return; for(StateChangeListener listener : listeners) { listener.stateChanged(this, oldState, newState); } }
diff --git a/src/net/minecraft/src/mod_IngameInfo.java b/src/net/minecraft/src/mod_IngameInfo.java index d01c1ec..c4b5022 100644 --- a/src/net/minecraft/src/mod_IngameInfo.java +++ b/src/net/minecraft/src/mod_IngameInfo.java @@ -1,1339 +1,1342 @@ package net.minecraft.src; import java.io.File; import java.io.FileW...
false
true
public String getTag(String s) { Coord coord = new Coord(MathHelper.floor_double(mc.thePlayer.posX), MathHelper.floor_double(mc.thePlayer.posY), MathHelper.floor_double(mc.thePlayer.posZ)); World world = mc.isIntegratedServerRunning() ? mc.getIntegratedServer().worldServerForDimension(m...
public String getTag(String s) { Coord coord = new Coord(MathHelper.floor_double(mc.thePlayer.posX), MathHelper.floor_double(mc.thePlayer.posY), MathHelper.floor_double(mc.thePlayer.posZ)); World world = mc.isIntegratedServerRunning() ? mc.getIntegratedServer().worldServerForDimension(m...
diff --git a/src/main/java/net/battlenexus/paintball/game/weapon/AbstractWeapon.java b/src/main/java/net/battlenexus/paintball/game/weapon/AbstractWeapon.java index ca069ec..cba11cd 100644 --- a/src/main/java/net/battlenexus/paintball/game/weapon/AbstractWeapon.java +++ b/src/main/java/net/battlenexus/paintball/game/we...
true
true
public void reload(ItemStack item) { if (!reloading) { int c = Weapon.WeaponUtils.getBulletCount(item); if (c == 0) return; int bneeded = clipeSize() - bullets; if (bneeded == 0) { owner.sendMessage(ChatColor.DARK_RED + "Reload...
public void reload(ItemStack item) { if (!reloading) { int c = Weapon.WeaponUtils.getBulletCount(item); if (c == 0) return; int bneeded = clipeSize() - bullets; if (bneeded == 0) { owner.sendMessage(ChatColor.DARK_RED + "Reload...
diff --git a/src/what/top/TopTenFragment.java b/src/what/top/TopTenFragment.java index 9a8eeee1..df00f4b1 100644 --- a/src/what/top/TopTenFragment.java +++ b/src/what/top/TopTenFragment.java @@ -1,148 +1,149 @@ package what.top; import java.util.List; import api.top.Results; import what.gui.BundleKeys; import ...
false
true
private void populateMusic() { List<Response> response = top.getResponse(); for (Response resp : response){ if (resp.getTag().equals(tag)){ //can't we break after this? for (Results res : resp.getResults()){ LinearLayout formats_torrent_layout =...
private void populateMusic() { List<Response> response = top.getResponse(); for (Response resp : response){ if (resp.getTag().equals(tag)){ for (Results res : resp.getResults()){ LinearLayout formats_torrent_layout = (LinearLayout) V...
diff --git a/src/rpiplanner/view/PlanOfStudyEditor.java b/src/rpiplanner/view/PlanOfStudyEditor.java index c4dfda6..90de65b 100644 --- a/src/rpiplanner/view/PlanOfStudyEditor.java +++ b/src/rpiplanner/view/PlanOfStudyEditor.java @@ -1,407 +1,406 @@ /* RPI Planner - Customized plans of study for RPI students. * * C...
true
true
public PlanOfStudyEditor() { super(); setLayout(new FormLayout( new ColumnSpec[] { ColumnSpec.decode("200px:grow(1.0)"), ColumnSpec.decode("300px:grow(3.5)"), ColumnSpec.decode("right:80px:grow(1.0)"), FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("80px:grow(1.0)"), FormFactory.RELA...
public PlanOfStudyEditor() { super(); setLayout(new FormLayout( new ColumnSpec[] { ColumnSpec.decode("200px:grow(1.0)"), ColumnSpec.decode("300px:grow(3.5)"), ColumnSpec.decode("right:80px:grow(1.0)"), FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("80px:grow(1.0)"), FormFactory.RELA...
diff --git a/src/edu/sc/seis/sod/subsetter/waveformArm/NullEventChannelSubsetter.java b/src/edu/sc/seis/sod/subsetter/waveformArm/NullEventChannelSubsetter.java index 3dd598d39..69c5fb352 100644 --- a/src/edu/sc/seis/sod/subsetter/waveformArm/NullEventChannelSubsetter.java +++ b/src/edu/sc/seis/sod/subsetter/waveformAr...
true
true
public boolean accept(EventAccessOperations o, NetworkAccess networkAccess, Channel station, CookieJar cookies) { return true; }
public boolean accept(EventAccessOperations o, NetworkAccess networkAccess, Channel channel, CookieJar cookies) { return true; }
diff --git a/src/java-server-framework/org/xins/server/CallingConventionManager.java b/src/java-server-framework/org/xins/server/CallingConventionManager.java index 83ac05a39..da5e5775f 100644 --- a/src/java-server-framework/org/xins/server/CallingConventionManager.java +++ b/src/java-server-framework/org/xins/server/C...
true
true
CallingConvention detectCallingConvention(HttpServletRequest request) throws InvalidRequestException { // Log: Request does not specify any calling convention Log.log_3508(); // See if the default calling convention matches CallingConvention defCC = getCallingConvention2(_defaultConventi...
CallingConvention detectCallingConvention(HttpServletRequest request) throws InvalidRequestException { // Log: Request does not specify any calling convention Log.log_3508(); // See if the default calling convention matches CallingConvention defCC = getCallingConvention2(_defaultConventi...
diff --git a/src/com/matburt/mobileorg/Synchronizers/UbuntuOneSynchronizer.java b/src/com/matburt/mobileorg/Synchronizers/UbuntuOneSynchronizer.java index 81e11d8..cce8419 100644 --- a/src/com/matburt/mobileorg/Synchronizers/UbuntuOneSynchronizer.java +++ b/src/com/matburt/mobileorg/Synchronizers/UbuntuOneSynchronizer....
true
true
public void putRemoteFile(String filename, String contents) throws IOException { try { buildConsumer(); String latterPart = remoteIndexPath + filename; latterPart = latterPart.replaceAll("/{2,}", "/"); String files_url = FILES_URL + root_path + latterPart; ...
public void putRemoteFile(String filename, String contents) throws IOException { try { buildConsumer(); String latterPart = remoteIndexPath + filename; latterPart = latterPart.replaceAll("/{2,}", "/"); String files_url = FILES_URL + root_path + latterPart; ...
diff --git a/org.amanzi.awe.afp/src/org/amanzi/awe/afp/exporters/AfpExporter.java b/org.amanzi.awe.afp/src/org/amanzi/awe/afp/exporters/AfpExporter.java index 9adc73e87..c5058941e 100644 --- a/org.amanzi.awe.afp/src/org/amanzi/awe/afp/exporters/AfpExporter.java +++ b/org.amanzi.awe.afp/src/org/amanzi/awe/afp/exporters/...
false
true
public HashMap<Node,String[][]> getSectorInterferenceValues(Node sector){ DecimalFormat df = new DecimalFormat("0.0000000000"); //values in 2-D array for each interfering node //array[neighbourArray, intArray, TriArray, shadowArray] //neighbourArray[CoA, AdjA, CoT, AdjT] HashMap<Node, String[][]> in...
public HashMap<Node,String[][]> getSectorInterferenceValues(Node sector){ DecimalFormat df = new DecimalFormat("0.0000000000"); //values in 2-D array for each interfering node //array[neighbourArray, intArray, TriArray, shadowArray] //neighbourArray[CoA, AdjA, CoT, AdjT] HashMap<Node, String[][]> in...
diff --git a/ExportPlugin/src/org/gephi/io/exporter/plugin/ExporterGEXF2.java b/ExportPlugin/src/org/gephi/io/exporter/plugin/ExporterGEXF2.java index aae313190..43e072e54 100644 --- a/ExportPlugin/src/org/gephi/io/exporter/plugin/ExporterGEXF2.java +++ b/ExportPlugin/src/org/gephi/io/exporter/plugin/ExporterGEXF2.java...
true
true
public boolean execute() { attributeModel = workspace.getLookup().lookup(AttributeModel.class); graphModel = workspace.getLookup().lookup(GraphModel.class); HierarchicalGraph graph = null; if (exportVisible) { graph = graphModel.getHierarchicalGraphVisible(); } el...
public boolean execute() { attributeModel = workspace.getLookup().lookup(AttributeModel.class); graphModel = workspace.getLookup().lookup(GraphModel.class); HierarchicalGraph graph = null; if (exportVisible) { graph = graphModel.getHierarchicalGraphVisible(); } el...
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/dashboard/ListDashboards.java b/gerrit-server/src/main/java/com/google/gerrit/server/dashboard/ListDashboards.java index b2f6593f3..d74f0287e 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/dashboard/ListDashboards.java +++ b/gerrit-ser...
true
true
private DashboardInfo loadDashboard(final ProjectControl projectControl, final String dashboardId) { StringTokenizer t = new StringTokenizer(dashboardId); if (t.countTokens() != 2) { throw new IllegalStateException("failed to load dashboard, invalid dashboard id: " + dashboardId); } final ...
private DashboardInfo loadDashboard(final ProjectControl projectControl, final String dashboardId) { StringTokenizer t = new StringTokenizer(dashboardId, ":"); if (t.countTokens() != 2) { throw new IllegalStateException("failed to load dashboard, invalid dashboard id: " + dashboardId); } f...
diff --git a/src/driver/GUIDriver.java b/src/driver/GUIDriver.java index fe4ec6b..f746e6f 100644 --- a/src/driver/GUIDriver.java +++ b/src/driver/GUIDriver.java @@ -1,390 +1,390 @@ 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/lucene/core/src/java/org/apache/lucene/search/payloads/PayloadTermQuery.java b/lucene/core/src/java/org/apache/lucene/search/payloads/PayloadTermQuery.java index 4d07328c7..30d5bacfb 100644 --- a/lucene/core/src/java/org/apache/lucene/search/payloads/PayloadTermQuery.java +++ b/lucene/core/src/java/org/apa...
true
true
public Explanation explain(AtomicReaderContext context, int doc) throws IOException { PayloadTermSpanScorer scorer = (PayloadTermSpanScorer) scorer(context, true, false, context.reader().getLiveDocs()); if (scorer != null) { int newDoc = scorer.advance(doc); if (newDoc == doc) { ...
public Explanation explain(AtomicReaderContext context, int doc) throws IOException { PayloadTermSpanScorer scorer = (PayloadTermSpanScorer) scorer(context, true, false, context.reader().getLiveDocs()); if (scorer != null) { int newDoc = scorer.advance(doc); if (newDoc == doc) { ...
diff --git a/src/uk/org/ponder/rsf/componentprocessor/ValueFixer.java b/src/uk/org/ponder/rsf/componentprocessor/ValueFixer.java index fe954a3..00bf28b 100644 --- a/src/uk/org/ponder/rsf/componentprocessor/ValueFixer.java +++ b/src/uk/org/ponder/rsf/componentprocessor/ValueFixer.java @@ -1,257 +1,257 @@ /* * Created...
false
true
public void processComponent(UIComponent toprocesso) { if (toprocesso instanceof UIMessage) { UIMessage toprocess = (UIMessage) toprocesso; if (toprocess.arguments != null) { for (int i = 0; i < toprocess.arguments.length; ++ i) { if (toprocess.arguments[i] instanceof ELReference) { ...
public void processComponent(UIComponent toprocesso) { if (toprocesso instanceof UIMessage) { UIMessage toprocess = (UIMessage) toprocesso; if (toprocess.arguments != null) { for (int i = 0; i < toprocess.arguments.length; ++ i) { if (toprocess.arguments[i] instanceof ELReference) { ...
diff --git a/src/main/java/net/md_5/specialsource/SpecialSource.java b/src/main/java/net/md_5/specialsource/SpecialSource.java index 42f801d..03f99c6 100644 --- a/src/main/java/net/md_5/specialsource/SpecialSource.java +++ b/src/main/java/net/md_5/specialsource/SpecialSource.java @@ -1,199 +1,200 @@ /** * Copyright ...
true
true
public static void main(String[] args) throws Exception { OptionParser parser = new OptionParser() { { acceptsAll(asList("?", "help"), "Show the help"); acceptsAll(asList("a", "first-jar"), "First jar") .withRequiredArg() ...
public static void main(String[] args) throws Exception { OptionParser parser = new OptionParser() { { acceptsAll(asList("?", "help"), "Show the help"); acceptsAll(asList("a", "first-jar"), "First jar") .withRequiredArg() ...
diff --git a/photobox/src/com/photobox/app/PicasaActivity.java b/photobox/src/com/photobox/app/PicasaActivity.java index a840b9b..6db89dc 100644 --- a/photobox/src/com/photobox/app/PicasaActivity.java +++ b/photobox/src/com/photobox/app/PicasaActivity.java @@ -1,64 +1,64 @@ package com.photobox.app; import java.io....
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); thisActivity = this; ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); thisActivity = this; ...
diff --git a/src/main/java/uk/co/oliwali/HawkEye/SearchParser.java b/src/main/java/uk/co/oliwali/HawkEye/SearchParser.java index 5f1f825..30c8bf8 100644 --- a/src/main/java/uk/co/oliwali/HawkEye/SearchParser.java +++ b/src/main/java/uk/co/oliwali/HawkEye/SearchParser.java @@ -1,194 +1,194 @@ package uk.co.oliwali.Hawk...
true
true
public SearchParser(Player player, List<String> args) throws IllegalArgumentException { this.player = player; for (String arg : args) { //Check if argument has a valid prefix if (arg.equalsIgnoreCase("")) continue; String param = arg.substring(0,1).toLowerCase(); if (!arg.substring(1,2).equals(":...
public SearchParser(Player player, List<String> args) throws IllegalArgumentException { this.player = player; for (String arg : args) { //Check if argument has a valid prefix if (arg.equalsIgnoreCase("")) continue; String param = arg.substring(0,1).toLowerCase(); if (!arg.substring(1,2).equals(":...
diff --git a/gui/src/main/java/org/jboss/as/console/client/core/Footer.java b/gui/src/main/java/org/jboss/as/console/client/core/Footer.java index f478d4b0..32700075 100644 --- a/gui/src/main/java/org/jboss/as/console/client/core/Footer.java +++ b/gui/src/main/java/org/jboss/as/console/client/core/Footer.java @@ -1,78 ...
true
true
public Widget asWidget() { LayoutPanel layout = new LayoutPanel(); layout.setStyleName("footer-panel"); HTML settings = new HTML(Console.CONSTANTS.common_label_settings()); settings.setStyleName("html-link"); settings.addClickHandler(new ClickHandler() { @Overri...
public Widget asWidget() { LayoutPanel layout = new LayoutPanel(); layout.setStyleName("footer-panel"); HTML settings = new HTML(Console.CONSTANTS.common_label_settings()); settings.setStyleName("html-link"); settings.getElement().setAttribute("style", "text-align:right; pa...
diff --git a/src/com/fortysix/seleniumTests/TestMain.java b/src/com/fortysix/seleniumTests/TestMain.java index ac2b69a..24580f6 100644 --- a/src/com/fortysix/seleniumTests/TestMain.java +++ b/src/com/fortysix/seleniumTests/TestMain.java @@ -1,25 +1,25 @@ package com.fortysix.seleniumTests; import org.openqa.seleniu...
true
true
public static void main(String[] args) { logger.log(Level.INFO, "Hello world!"); logger.log(Level.INFO, "HI LINK"); //WebDriver firefoxDriver = new FirefoxDriver(); //SeleniumExample example = new SeleniumExample(firefoxDriver); //example.testGoogleSearch(); }
public static void main(String[] args) { logger.log(Level.INFO, "Hello world!"); logger.log(Level.INFO, "HI THERE JOHN"); //WebDriver firefoxDriver = new FirefoxDriver(); //SeleniumExample example = new SeleniumExample(firefoxDriver); //example.testGoogleSearch(); }
diff --git a/src/ca/dijital/geo/canvec/ExtractorWorker.java b/src/ca/dijital/geo/canvec/ExtractorWorker.java index 3aa11f2..a029691 100644 --- a/src/ca/dijital/geo/canvec/ExtractorWorker.java +++ b/src/ca/dijital/geo/canvec/ExtractorWorker.java @@ -1,160 +1,153 @@ package ca.dijital.geo.canvec; import java.io.Buffe...
false
true
public void run() { while(running){ Set<File> shapeFiles = job.getShapeFiles(); Iterator<File> files = shapeFiles.iterator(); boolean compress = job.isCompress(); // Create output file. String fileName = job.getOutFile(); if(compress) fileName += ".gz"; File outFile = new File(fileName); ...
public void run() { while(running){ Set<File> shapeFiles = job.getShapeFiles(); Iterator<File> files = shapeFiles.iterator(); boolean compress = job.isCompress(); // Create output file. String fileName = job.getOutFile(); if(compress) fileName += ".gz"; File outFile = new File(fileName); ...
diff --git a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java b/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java index 6a5419b6..3fdc0a48 100644 --- a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java +++ b/site-manage-tool/tool/src/java/org/saka...
true
true
private String buildContextForTemplate(int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters(); context.put("tlang", rb); context.put(...
private String buildContextForTemplate(int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters(); context.put("tlang", rb); context.put(...
diff --git a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendDisksResource.java b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendDisksResource.java index a9dcbbc2c..c80f1ad13 100644 --- a/backend/manager/modules/restapi/j...
true
true
public Response add(Disk disk) { validateParameters(disk, "size", "format", "interface"); AddDiskParameters params = new AddDiskParameters(); params.setDiskInfo(getMapper(Disk.class, org.ovirt.engine.core.common.businessentities.Disk.class).map(disk, null)); return performCreation(Vd...
public Response add(Disk disk) { validateParameters(disk, "size", "format", "interface"); AddDiskParameters params = new AddDiskParameters(); params.setDiskInfo(getMapper(Disk.class, org.ovirt.engine.core.common.businessentities.Disk.class).map(disk, null)); if (disk.isSetStorageDoma...
diff --git a/src/rtmp/cz/vity/freerapid/plugins/services/rtmp/DefaultPacketHandler.java b/src/rtmp/cz/vity/freerapid/plugins/services/rtmp/DefaultPacketHandler.java index 4acd3ca2..388bb62d 100644 --- a/src/rtmp/cz/vity/freerapid/plugins/services/rtmp/DefaultPacketHandler.java +++ b/src/rtmp/cz/vity/freerapid/plugins/s...
false
true
public boolean handle(Packet packet, RtmpSession session) { IoBuffer data = packet.getData(); switch (packet.getHeader().getPacketType()) { case CHUNK_SIZE: int newChunkSize = data.getInt(); session.setChunkSize(newChunkSize); logger.fine("...
public boolean handle(Packet packet, RtmpSession session) { IoBuffer data = packet.getData(); switch (packet.getHeader().getPacketType()) { case CHUNK_SIZE: int newChunkSize = data.getInt(); session.setChunkSize(newChunkSize); logger.fine("...
diff --git a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/egghandler/ZombieCache.java b/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/egghandler/ZombieCache.java index 046bbcc..1c9a6cb 100644 --- a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/egghandle...
true
true
ZombieCache(ItemStack[] equip, ItemStack handitem, Boolean isbaby) { Messenger.info("DEBUG! " + isbaby); this.isbaby.equals(isbaby); this.Equip.equals(equip); this.handitem.equals(handitem); }
ZombieCache(ItemStack[] equip, ItemStack handitem, Boolean isbaby) { Messenger.info("DEBUG! " + isbaby); this.isbaby = isbaby; this.Equip = equip; this.handitem = handitem; }
diff --git a/src/main/java/org/jinglenodes/component/SIPGatewayApplication.java b/src/main/java/org/jinglenodes/component/SIPGatewayApplication.java index 1001428..2d6a41c 100644 --- a/src/main/java/org/jinglenodes/component/SIPGatewayApplication.java +++ b/src/main/java/org/jinglenodes/component/SIPGatewayApplication....
true
true
public void init() { log.info("SIP Provider Info: " + sipGatewayComponent); int t = 2; while (true) { try { manager.setSecretKey(subdomain, password); manager.setMultipleAllowed(subdomain, false); manager.addComponent(subdomain, sip...
public void init() { log.info("SIP Provider Info: " + sipGatewayComponent); int t = 2; while (true) { try { manager.setSecretKey(subdomain, password); manager.setMultipleAllowed(subdomain, false); manager.addComponent(subdomain, sip...
diff --git a/Schema/src/com/schema/bro/widget/CardWidget.java b/Schema/src/com/schema/bro/widget/CardWidget.java index 9a5c7c6..9bad0ad 100644 --- a/Schema/src/com/schema/bro/widget/CardWidget.java +++ b/Schema/src/com/schema/bro/widget/CardWidget.java @@ -1,114 +1,114 @@ package com.schema.bro.widget; import java....
true
true
private void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId) { Schedule database = new Schedule(context); if(database.isEmpty()){ RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.widget_no_lessons); Intent intent = new Intent(context, MainActi...
private void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId) { Schedule database = new Schedule(context); if(database.isEmpty()){ RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.widget_no_lessons); Intent intent = new Intent(context, MainActi...
diff --git a/src/test/java/com/eviware/soapui/impl/rest/support/RestUtilsTestCase.java b/src/test/java/com/eviware/soapui/impl/rest/support/RestUtilsTestCase.java index 7762cbe6d..a01617990 100644 --- a/src/test/java/com/eviware/soapui/impl/rest/support/RestUtilsTestCase.java +++ b/src/test/java/com/eviware/soapui/impl...
true
true
public void shouldImportWadl() throws Exception { WsdlProject project = new WsdlProject(); RestService service = ( RestService )project.addNewInterface( "Test", RestServiceFactory.REST_TYPE ); new WadlImporter( service ).initFromWadl( new File( "src" + File.separatorChar + "test-resources" + File.separator...
public void shouldImportWadl() throws Exception { WsdlProject project = new WsdlProject(); RestService service = ( RestService )project.addNewInterface( "Test", RestServiceFactory.REST_TYPE ); // TODO Hardcoded madness! new WadlImporter( service ).initFromWadl( new File( "src" + File.separatorChar + "test" ...
diff --git a/src/net/grinder/plugin/socket/SocketPlugin.java b/src/net/grinder/plugin/socket/SocketPlugin.java index a0109e55..81cf2926 100755 --- a/src/net/grinder/plugin/socket/SocketPlugin.java +++ b/src/net/grinder/plugin/socket/SocketPlugin.java @@ -1,239 +1,239 @@ // The Grinder // Copyright (C) 2001 Paco Gome...
true
true
public boolean doTest(Test testDefinition) throws PluginException { //Get the test parameters final GrinderProperties parameters = testDefinition.getParameters(); //Get the test number final int testName = testDefinition.getNumber(); /** * Multiple request/response operations c...
public boolean doTest(Test testDefinition) throws PluginException { //Get the test parameters final GrinderProperties parameters = testDefinition.getParameters(); //Get the test number final int testName = testDefinition.getNumber(); /** * Multiple request/response operations c...
diff --git a/src/edu/wheaton/simulator/entity/Agent.java b/src/edu/wheaton/simulator/entity/Agent.java index 6dd251b7..49e62ae3 100644 --- a/src/edu/wheaton/simulator/entity/Agent.java +++ b/src/edu/wheaton/simulator/entity/Agent.java @@ -1,230 +1,232 @@ /** * Agent.java * * Agents model actors in the simulation...
false
true
public void priorityAct(int priority) throws SimulationPauseException { if (triggers.get(currentTriggerIndex).getPriority() > priority) { currentTriggerIndex = 0; } for (int i = currentTriggerIndex; i < triggers.size(); i++) { Trigger t = triggers.get(i); if (t.getPriority() == priority) { try { ...
public void priorityAct(int priority) throws SimulationPauseException { if (triggers.size() < currentTriggerIndex || triggers.get(currentTriggerIndex).getPriority() > priority) { currentTriggerIndex = 0; } for (int i = currentTriggerIndex; i < triggers.size(); i++) { Trigger t = triggers.get(i); if (t.g...
diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java index 43b7dea3..067a58bf 100644 --- a/Essentials/src/com/earth2me/essentials/Settings.java +++ b/Essentials/src/com/earth2me/essentials/Settings.java @@ -1,995 +1,995 @@ package com.earth2me.essenti...
true
true
public ConfigurationSection _getCommandCosts() { if (config.isConfigurationSection("command-costs")) { final ConfigurationSection section = config.getConfigurationSection("command-costs"); final ConfigurationSection newSection = new MemoryConfiguration(); for (String command : section.getKeys(false)) ...
public ConfigurationSection _getCommandCosts() { if (config.isConfigurationSection("command-costs")) { final ConfigurationSection section = config.getConfigurationSection("command-costs"); final ConfigurationSection newSection = new MemoryConfiguration(); for (String command : section.getKeys(false)) ...
diff --git a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/appearance/SelectScreenVariant.java b/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/appearance/SelectScreenVariant.java index 0b73b2691..dfbff446c 100644 --- a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/appearance...
true
true
public void execute(Context context, Parameters parameters, MVCContext mvcContext, TemplatingContext templatingContext, HttpContext httpContext, CoralSession coralSession) throws ProcessingException { SiteResource site = getSite(context); NavigationNodeResource node = getNode(context); Parameters prefs = pref...
public void execute(Context context, Parameters parameters, MVCContext mvcContext, TemplatingContext templatingContext, HttpContext httpContext, CoralSession coralSession) throws ProcessingException { SiteResource site = getSite(context); NavigationNodeResource node = getNode(context); Parameters prefs = pref...
diff --git a/src/core/org/luaj/lib/BaseLib.java b/src/core/org/luaj/lib/BaseLib.java index f00d69b..7dfc333 100644 --- a/src/core/org/luaj/lib/BaseLib.java +++ b/src/core/org/luaj/lib/BaseLib.java @@ -1,445 +1,448 @@ /** * */ package org.luaj.lib; import java.io.ByteArrayInputStream; import java.io.ByteArray...
true
true
public boolean luaStackCall(LuaState vm) { switch ( id ) { case PRINT: { int n = vm.gettop(); for ( int i=2; i<=n; i++ ) { if ( i > 2 ) stdout.print( "\t" ); stdout.print( vm.tostring(i) ); } stdout.println(); vm.settop(0); break; } case PAIRS: case IPAIRS: { LValue v = vm.t...
public boolean luaStackCall(LuaState vm) { switch ( id ) { case PRINT: { int n = vm.gettop(); for ( int i=2; i<=n; i++ ) { if ( i > 2 ) stdout.print( "\t" ); stdout.print( vm.tostring(i) ); } stdout.println(); vm.settop(0); break; } case PAIRS: case IPAIRS: { LValue v = vm.t...
diff --git a/owsproxyclient/src/com/camptocamp/owsproxy/OWSClient.java b/owsproxyclient/src/com/camptocamp/owsproxy/OWSClient.java index 66bea60..a29f9ab 100644 --- a/owsproxyclient/src/com/camptocamp/owsproxy/OWSClient.java +++ b/owsproxyclient/src/com/camptocamp/owsproxy/OWSClient.java @@ -1,276 +1,275 @@ package co...
true
true
private void initGUI() { client = new owsproxyclient.OWSClientGUI(); client.setVisible(true); client.errorDetail.setVisible(OWSLogger.DEV.isLoggable(Level.FINER)); if (OWSLogger.DEV.isLoggable(Level.FINER)) { client.serviceURL.setText("http://localhost"); client.usernameField.setText("tomcat"); clie...
private void initGUI() { client = new owsproxyclient.OWSClientGUI(); client.setVisible(true); client.errorDetail.setVisible(OWSLogger.DEV.isLoggable(Level.FINER)); if (OWSLogger.DEV.isLoggable(Level.FINER)) { client.serviceURL.setText("http://localhost"); client.usernameField.setText("tomcat"); clie...
diff --git a/src/java/net/sf/kraken/protocols/xmpp/packet/ProbePacket.java b/src/java/net/sf/kraken/protocols/xmpp/packet/ProbePacket.java index c58f5c7..b2cb5f6 100644 --- a/src/java/net/sf/kraken/protocols/xmpp/packet/ProbePacket.java +++ b/src/java/net/sf/kraken/protocols/xmpp/packet/ProbePacket.java @@ -1,47 +1,47 ...
true
true
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<presence"); if (getTo() != null) { buf.append(" to=\"").append(StringUtils.escapeForXML(getTo())).append("\""); } if (getFrom() != null) { buf.append(" from=\"").append(Strin...
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<presence"); if (getTo() != null) { buf.append(" to=\"").append(StringUtils.escapeForXML(getTo())).append("\""); } //if (getFrom() != null) { // buf.append(" from=\"").append(S...
diff --git a/uCars/src/com/useful/ucars/ucars.java b/uCars/src/com/useful/ucars/ucars.java index 226fd9f..0bb3c50 100644 --- a/uCars/src/com/useful/ucars/ucars.java +++ b/uCars/src/com/useful/ucars/ucars.java @@ -1,537 +1,534 @@ package com.useful.ucars; import java.io.File; import java.io.FileInputStream; import...
true
true
public void onEnable() { plugin = this; File langFile = new File(getDataFolder().getAbsolutePath() + File.separator + "lang.yml"); if (langFile.exists() == false || langFile.length() < 1) { try { langFile.createNewFile(); // newC.save(configFile); } catch (IOException e) { } } tr...
public void onEnable() { plugin = this; File langFile = new File(getDataFolder().getAbsolutePath() + File.separator + "lang.yml"); if (langFile.exists() == false || langFile.length() < 1) { try { langFile.createNewFile(); // newC.save(configFile); } catch (IOException e) { } } tr...
diff --git a/src/com/github/Indiv0/ChestEmpty/ChestEmpty.java b/src/com/github/Indiv0/ChestEmpty/ChestEmpty.java index 3db13f1..4edaf52 100644 --- a/src/com/github/Indiv0/ChestEmpty/ChestEmpty.java +++ b/src/com/github/Indiv0/ChestEmpty/ChestEmpty.java @@ -1,199 +1,199 @@ package com.github.Indiv0.ChestEmpty; impor...
false
true
private void undoDeleteChestContents(CommandSender sender) { Player player = (Player) sender; // Checks to see if the cache has a backup for that user. if (!player.hasMetadata("ChestBackupID")) { sender.sendMessage("Player has not emptied any chests."); retur...
private void undoDeleteChestContents(CommandSender sender) { Player player = (Player) sender; // Checks to see if the cache has a backup for that user. if (!player.hasMetadata("ChestBackupID")) { sender.sendMessage("Player has not emptied any chests."); retur...
diff --git a/src/org/biojava/bio/gui/sequence/FeatureLabelRenderer.java b/src/org/biojava/bio/gui/sequence/FeatureLabelRenderer.java index b82618e25..91794e5ee 100644 --- a/src/org/biojava/bio/gui/sequence/FeatureLabelRenderer.java +++ b/src/org/biojava/bio/gui/sequence/FeatureLabelRenderer.java @@ -1,181 +1,181 @@ /*...
true
true
public void renderFeature( Graphics2D g, Feature feat, SequenceRenderContext src ) { Location loc = feat.getLocation(); String label = labelMaker.makeLabel(feat); g.setPaint(Color.black); int min = Math.max(loc.getMin(), src.getRange().getMin()); int max = Math.min(loc.getMax(), src...
public void renderFeature( Graphics2D g, Feature feat, SequenceRenderContext src ) { Location loc = feat.getLocation(); String label = labelMaker.makeLabel(feat); g.setPaint(Color.black); int min = Math.max(loc.getMin(), src.getRange().getMin()); int max = Math.min(loc.getMax(), src...
diff --git a/src/java/org/apache/cassandra/service/StorageService.java b/src/java/org/apache/cassandra/service/StorageService.java index ed76ba94..7bf97e30 100644 --- a/src/java/org/apache/cassandra/service/StorageService.java +++ b/src/java/org/apache/cassandra/service/StorageService.java @@ -1,2066 +1,2066 @@ /** ...
true
true
public synchronized void initServer() throws IOException, org.apache.cassandra.config.ConfigurationException { logger_.info("Cassandra version: " + FBUtilities.getReleaseVersionString()); logger_.info("Thrift API version: " + Constants.VERSION); if (initialized) { if...
public synchronized void initServer() throws IOException, org.apache.cassandra.config.ConfigurationException { logger_.info("Cassandra version: " + FBUtilities.getReleaseVersionString()); logger_.info("Thrift API version: " + Constants.VERSION); if (initialized) { if...
diff --git a/Datenbanken/WahlWebsite/src/queries/Q5_WITH.java b/Datenbanken/WahlWebsite/src/queries/Q5_WITH.java index 38b53cb..6ff3936 100644 --- a/Datenbanken/WahlWebsite/src/queries/Q5_WITH.java +++ b/Datenbanken/WahlWebsite/src/queries/Q5_WITH.java @@ -1,67 +1,71 @@ package queries; import java.sql.ResultSet; ...
false
true
protected ResultSet doQuery() throws SQLException { String query = "WITH " + db.zweitStimmenNachBundesland() + " AS (" + stmtZweitStimmenNachBundesland() + "), " + db.zweitStimmenNachPartei() + " AS (" + stmtZweitStimmenNachPartei(db.zweitStimmenNachBundesland()) + "), " + db.direktMandateNummer() + " AS ( " ...
protected ResultSet doQuery() throws SQLException { String query = "WITH " + db.zweitStimmenNachBundesland() + " AS (" + stmtZweitStimmenNachBundesland() + "), " + db.zweitStimmenNachPartei() + " AS (" + stmtZweitStimmenNachPartei(db.zweitStimmenNachBundesland()) + "), " + db.maxErststimmenNachWahlkreis() + " ...
diff --git a/src/java/org/apache/cassandra/dht/OrderPreservingPartitioner.java b/src/java/org/apache/cassandra/dht/OrderPreservingPartitioner.java index 5a2e6b3b..031cbeb0 100644 --- a/src/java/org/apache/cassandra/dht/OrderPreservingPartitioner.java +++ b/src/java/org/apache/cassandra/dht/OrderPreservingPartitioner.ja...
true
true
public Map<Token, Float> describeOwnership(List<Token> sortedTokens) { // allTokens will contain the count and be returned, sorted_ranges is shorthand for token<->token math. Map<Token, Float> allTokens = new HashMap<Token, Float>(); List<Range> sortedRanges = new ArrayList<Range>(); ...
public Map<Token, Float> describeOwnership(List<Token> sortedTokens) { // allTokens will contain the count and be returned, sorted_ranges is shorthand for token<->token math. Map<Token, Float> allTokens = new HashMap<Token, Float>(); List<Range> sortedRanges = new ArrayList<Range>(); ...
diff --git a/src/org/ita/neutrino/astparser/ASTMethod.java b/src/org/ita/neutrino/astparser/ASTMethod.java index 417c6db..9caed00 100644 --- a/src/org/ita/neutrino/astparser/ASTMethod.java +++ b/src/org/ita/neutrino/astparser/ASTMethod.java @@ -1,181 +1,181 @@ package org.ita.neutrino.astparser; import java.util.Ar...
false
true
public void addStatements(List<Statement> codeStatements, int index) { Block block = getASTObject().getBody(); AST ast = astObject.getAST(); ASTRewrite rewrite = ((ASTType) getParent()).getParent().getASTObject().getRewrite(); ListRewrite lrw = rewrite.getListRewrite(block, Block.STATEMENTS_PROPERTY); in...
public void addStatements(List<Statement> codeStatements, int index) { Block block = getASTObject().getBody(); AST ast = astObject.getAST(); ASTRewrite rewrite = ((ASTType) getParent()).getParent().getASTObject().getRewrite(); ListRewrite lrw = rewrite.getListRewrite(block, Block.STATEMENTS_PROPERTY); in...
diff --git a/plugins/src/test/java/com/redshape/plugins/WorkflowTest.java b/plugins/src/test/java/com/redshape/plugins/WorkflowTest.java index 8c1080bf..7e331355 100644 --- a/plugins/src/test/java/com/redshape/plugins/WorkflowTest.java +++ b/plugins/src/test/java/com/redshape/plugins/WorkflowTest.java @@ -1,100 +1,100 ...
true
true
public void testMain() throws URISyntaxException, LoaderException, PackagerException { URI testPluginURI = this.getTestPluginURI(); IPluginLoadersRegistry loadersRegistry = this.getLoadersRegistry(); IPluginsLoader loader = loadersRegistry.selectLoader( testPluginURI ); assertNotNull...
public void testMain() throws URISyntaxException, LoaderException, PackagerException { URI testPluginURI = this.getTestPluginURI(); IPluginLoadersRegistry loadersRegistry = this.getLoadersRegistry(); IPluginsLoader loader = loadersRegistry.selectLoader( testPluginURI ); assertNotNull...
diff --git a/modules/compute4/org/molgenis/compute/test/reader/WorkflowReaderDBJDBC.java b/modules/compute4/org/molgenis/compute/test/reader/WorkflowReaderDBJDBC.java index 0919a84e1..7f8df5d56 100644 --- a/modules/compute4/org/molgenis/compute/test/reader/WorkflowReaderDBJDBC.java +++ b/modules/compute4/org/molgenis/c...
true
true
public Workflow getWorkflow(String name) { Database db = null; try { db = DatabaseFactory.create(); db.beginTx(); Workflow w = db.find(Workflow.class, new QueryRule(Workflow.NAME, QueryRule.Operator.EQUALS, name)).get(0); List<WorkflowEle...
public Workflow getWorkflow(String name) throws IOException { Database db = null; try { db = DatabaseFactory.create(); db.beginTx(); Workflow w = db.find(Workflow.class, new QueryRule(Workflow.NAME, QueryRule.Operator.EQUALS, name)).get(0); ...
diff --git a/src/mula/console/TestConsole.java b/src/mula/console/TestConsole.java index 68c03df..ca3c649 100644 --- a/src/mula/console/TestConsole.java +++ b/src/mula/console/TestConsole.java @@ -1,56 +1,59 @@ package mula.console; import java.io.Console; import java.io.StringReader; import java.util.List; impo...
false
true
public static void main(String[] args) throws ParseException { Console console = System.console(); console.printf("Mula Preview on Java, (version 0.1)\n\n"); while(true) { try { console.printf("mula-preview >>> "); String text = System.console().readLine(); ...
public static void main(String[] args) throws ParseException { Console console = System.console(); console.printf("Mula Preview on Java, (version 0.1)\n\n"); while(true) { try { console.printf("mula-preview >>> "); String text = System.console().readLine(); ...
diff --git a/src/main/java/com/socrata/datasync/job/IntegrationJob.java b/src/main/java/com/socrata/datasync/job/IntegrationJob.java index b2242e0..9b0864a 100644 --- a/src/main/java/com/socrata/datasync/job/IntegrationJob.java +++ b/src/main/java/com/socrata/datasync/job/IntegrationJob.java @@ -1,325 +1,329 @@ packag...
false
true
public JobStatus run() { UserPreferences userPrefs = new UserPreferences(); SocrataConnectionInfo connectionInfo = userPrefs.getConnectionInfo(); UpsertResult result = null; JobStatus runStatus = JobStatus.SUCCESS; JobStatus validationStatus = validate(connectionInfo); if(validationStatus.isError()) ...
public JobStatus run() { UserPreferences userPrefs = new UserPreferences(); SocrataConnectionInfo connectionInfo = userPrefs.getConnectionInfo(); UpsertResult result = null; JobStatus runStatus = JobStatus.SUCCESS; JobStatus validationStatus = validate(connectionInfo); if(validationStatus.isError()) ...
diff --git a/src/radlab/rain/workload/olio/AddEventOperation.java b/src/radlab/rain/workload/olio/AddEventOperation.java index 02ef4c2..7b2ea0b 100644 --- a/src/radlab/rain/workload/olio/AddEventOperation.java +++ b/src/radlab/rain/workload/olio/AddEventOperation.java @@ -1,275 +1,286 @@ /* * Copyright (c) 2010, Reg...
false
true
public void execute() throws Throwable { // Need a logged person OlioPerson loggedPerson = this.getUtility().getPerson(this.getSessionState().getLoggedPersonId()); if (!this.getUtility().isRegisteredPerson(loggedPerson)) { this.getLogger().severe("Login required for adding an event"); //throw new Except...
public void execute() throws Throwable { // Need a logged person OlioPerson loggedPerson = this.getUtility().getPerson(this.getSessionState().getLoggedPersonId()); if (!this.getUtility().isRegisteredPerson(loggedPerson)) { this.getLogger().severe("Login required for adding an event"); //throw new Except...
diff --git a/src/test/java/com/manmoe/example/test/FirespottingITTest.java b/src/test/java/com/manmoe/example/test/FirespottingITTest.java index 0d9bb55..2010375 100644 --- a/src/test/java/com/manmoe/example/test/FirespottingITTest.java +++ b/src/test/java/com/manmoe/example/test/FirespottingITTest.java @@ -1,96 +1,98 ...
true
true
public void testTearDown() throws IOException { // insert mock to test object firespottingIT.popupPage = this.popupPage; // mock rest client firespottingIT.restClient = mock(Resty.class); // mock some objects for session key RemoteWebDriver remoteWebDriver = mock(RemoteWebDriver.class); SessionId sessi...
public void testTearDown() throws IOException { // insert mock to test object firespottingIT.popupPage = this.popupPage; // mock rest client firespottingIT.restClient = mock(Resty.class); // mock some objects for session key RemoteWebDriver remoteWebDriver = mock(RemoteWebDriver.class); SessionId sessi...
diff --git a/analytics/src/main/java/com/ning/billing/analytics/BusinessAccountRecorder.java b/analytics/src/main/java/com/ning/billing/analytics/BusinessAccountRecorder.java index 2c774e8fa..2da59227a 100644 --- a/analytics/src/main/java/com/ning/billing/analytics/BusinessAccountRecorder.java +++ b/analytics/src/main/...
false
true
private void updateBusinessAccountFromAccount(final Account account, final BusinessAccount bac) { final List<UUID> invoiceIds = new ArrayList<UUID>(); try { DateTime lastInvoiceDate = null; BigDecimal totalInvoiceBalance = BigDecimal.ZERO; String lastPaymentStatu...
private void updateBusinessAccountFromAccount(final Account account, final BusinessAccount bac) { final List<UUID> invoiceIds = new ArrayList<UUID>(); try { DateTime lastInvoiceDate = null; BigDecimal totalInvoiceBalance = BigDecimal.ZERO; String lastPaymentStatu...
diff --git a/modules/cpr/src/main/java/org/atmosphere/cpr/SessionSupport.java b/modules/cpr/src/main/java/org/atmosphere/cpr/SessionSupport.java index 15da0b8c2..232f20b2d 100644 --- a/modules/cpr/src/main/java/org/atmosphere/cpr/SessionSupport.java +++ b/modules/cpr/src/main/java/org/atmosphere/cpr/SessionSupport.java...
false
true
public void sessionDestroyed(HttpSessionEvent se) { logger.trace("Session destroyed"); try { HttpSession s = se.getSession(); for (Broadcaster b : BroadcasterFactory.getDefault().lookupAll()) { for (AtmosphereResource r : b.getAtmosphereResources()) { ...
public void sessionDestroyed(HttpSessionEvent se) { logger.trace("Session destroyed"); try { HttpSession s = se.getSession(); BroadcasterFactory factory = BroadcasterFactory.getDefault(); if (factory != null) { for (Broadcaster b : factory.lookupAll...