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/CodenameG/src/edu/chl/codenameg/model/levels/LevelFactory.java b/CodenameG/src/edu/chl/codenameg/model/levels/LevelFactory.java index 44a1fa8..7eae552 100644 --- a/CodenameG/src/edu/chl/codenameg/model/levels/LevelFactory.java +++ b/CodenameG/src/edu/chl/codenameg/model/levels/LevelFactory.java @@ -1,280 +...
true
true
public Level loadLevelFromFile(String path) { List<Entity> entities = new ArrayList<Entity>(); Map<Integer, Position> spawnPositions = new HashMap<Integer, Position>(); TiledMap tiledmap; int numberOfPlayers = 1; try { tiledmap = new TiledMap(path); for (int groupID = 0; groupID < tiledmap.getObjectG...
public Level loadLevelFromFile(String path) { List<Entity> entities = new ArrayList<Entity>(); Map<Integer, Position> spawnPositions = new HashMap<Integer, Position>(); TiledMap tiledmap; int numberOfPlayers = 1; try { tiledmap = new TiledMap(path); for (int groupID = 0; groupID < tiledmap.getObjectG...
diff --git a/AE-go_GameServer/src/com/aionemu/gameserver/utils/DeadlockDetector.java b/AE-go_GameServer/src/com/aionemu/gameserver/utils/DeadlockDetector.java index 411547d8..d847100c 100644 --- a/AE-go_GameServer/src/com/aionemu/gameserver/utils/DeadlockDetector.java +++ b/AE-go_GameServer/src/com/aionemu/gameserver/u...
true
true
public void run() { boolean noDeadLocks = true; while(noDeadLocks) { try { ThreadMXBean bean = ManagementFactory.getThreadMXBean(); long[] threadIds = bean.findDeadlockedThreads(); if (threadIds != null) { log.error("Deadlock detected!"); sb = new StringBuilder(); noDeadLocks...
public void run() { boolean noDeadLocks = true; while(noDeadLocks) { try { ThreadMXBean bean = ManagementFactory.getThreadMXBean(); long[] threadIds = bean.findDeadlockedThreads(); if (threadIds != null) { log.error("Deadlock detected!"); sb = new StringBuilder(); noDeadLocks...
diff --git a/src/main/java/com/hyperic/hudson/plugin/S3Profile.java b/src/main/java/com/hyperic/hudson/plugin/S3Profile.java index d80b1c7..1ecd181 100644 --- a/src/main/java/com/hyperic/hudson/plugin/S3Profile.java +++ b/src/main/java/com/hyperic/hudson/plugin/S3Profile.java @@ -1,127 +1,126 @@ package com.hyperic.hu...
false
true
public void upload(String bucketName, FilePath filePath, Map<String, String> envVars, PrintStream logger) throws IOException, InterruptedException { if (filePath.isDirectory()) { throw new IOException(filePath + " is a...
public void upload(String bucketName, FilePath filePath, Map<String, String> envVars, PrintStream logger) throws IOException, InterruptedException { if (filePath.isDirectory()) { throw new IOException(filePath + " is a...
diff --git a/src/com/android/settings/DreamSettings.java b/src/com/android/settings/DreamSettings.java index d59242a5e..d9953aafc 100644 --- a/src/com/android/settings/DreamSettings.java +++ b/src/com/android/settings/DreamSettings.java @@ -1,158 +1,159 @@ /* * Copyright (C) 2010 The Android Open Source Project * ...
true
true
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); addPreferencesFromResource(R.xml.dream_settings); mActivateOnDockPreference = (CheckBoxPreference) findPreference(KEY_ACTIVATE_ON_DOCK); final Activity activity = getActivity();...
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); addPreferencesFromResource(R.xml.dream_settings); mActivateOnDockPreference = (CheckBoxPreference) findPreference(KEY_ACTIVATE_ON_DOCK); final Activity activity = getActivity();...
diff --git a/wflow-core/src/main/java/org/joget/apps/app/lib/EmailTool.java b/wflow-core/src/main/java/org/joget/apps/app/lib/EmailTool.java index 41d89853..3e010453 100755 --- a/wflow-core/src/main/java/org/joget/apps/app/lib/EmailTool.java +++ b/wflow-core/src/main/java/org/joget/apps/app/lib/EmailTool.java @@ -1,231...
true
true
public Object execute(Map properties) { PluginManager pluginManager = (PluginManager) properties.get("pluginManager"); String formDataTable = (String) properties.get("formDataTable"); String smtpHost = (String) properties.get("host"); String smtpPort = (String) properties.ge...
public Object execute(Map properties) { PluginManager pluginManager = (PluginManager) properties.get("pluginManager"); String formDataTable = (String) properties.get("formDataTable"); String smtpHost = (String) properties.get("host"); String smtpPort = (String) properties.ge...
diff --git a/src/com/jme/scene/batch/SharedBatch.java b/src/com/jme/scene/batch/SharedBatch.java index fc2398aab..04a77e244 100755 --- a/src/com/jme/scene/batch/SharedBatch.java +++ b/src/com/jme/scene/batch/SharedBatch.java @@ -1,455 +1,455 @@ /* * Copyright (c) 2003-2006 jMonkeyEngine * All rights reserved. * ...
true
true
public void draw(Renderer r) { if (!r.isProcessingQueue()) { if (r.checkAndAdd(this)) return; } target.parentGeom.setLocalTranslation(parentGeom.getWorldTranslation()); target.parentGeom.setLocalRotation(parentGeom.getWorldRotation()); target.parentGeom.setLocalScale(parentGeom.getWorldScale());...
public void draw(Renderer r) { if (!r.isProcessingQueue()) { if (r.checkAndAdd(this)) return; } target.parentGeom.getWorldTranslation().set(parentGeom.getWorldTranslation()); target.parentGeom.getWorldRotation().set(parentGeom.getWorldRotation()); target.parentGeom.getWorldScale().set(parentGeom...
diff --git a/src/edu/berkeley/cs162/KVClient.java b/src/edu/berkeley/cs162/KVClient.java index 48b171e..75767a9 100644 --- a/src/edu/berkeley/cs162/KVClient.java +++ b/src/edu/berkeley/cs162/KVClient.java @@ -1,188 +1,188 @@ /** * Client component for generating load for the KeyValue store. * This is also used by...
true
true
public void put(String key, String value) throws KVException { if (key.length() > 256) throw new KVException(new KVMessage("resp", "Oversized key")); if (value.length() > 256*1024) throw new KVException(new KVMessage("resp", "Oversized value")); Socket socket = connectHost(); ...
public void put(String key, String value) throws KVException { if (key.length() > 256) throw new KVException(new KVMessage("resp", "Oversized key")); if (value.length() > 256*1024) throw new KVException(new KVMessage("resp", "Oversized value")); Socket socket = connectHost(); ...
diff --git a/graphe-mobile/src/com/utc/graphemobile/element/LeftMenu.java b/graphe-mobile/src/com/utc/graphemobile/element/LeftMenu.java index fb59f08..04adc14 100644 --- a/graphe-mobile/src/com/utc/graphemobile/element/LeftMenu.java +++ b/graphe-mobile/src/com/utc/graphemobile/element/LeftMenu.java @@ -1,134 +1,134 @@...
true
true
public LeftMenu(IGrapheScreen screen) { this.screen = screen; this.table = new Table(); UIEventListener listener = new UIEventListener(screen); this.top().left(); table.top().left(); TextureRegion deleteTR = screen.getSkin().getRegion("seeMore"); img = new Image(deleteTR); img.setHeight(Utils.toDp(C...
public LeftMenu(IGrapheScreen screen) { this.screen = screen; this.table = new Table(); UIEventListener listener = new UIEventListener(screen); this.top().left(); table.top().left(); TextureRegion deleteTR = screen.getSkin().getRegion("seeMore"); img = new Image(deleteTR); img.setHeight(Utils.toDp(C...
diff --git a/plugins/org.eclipse.recommenders.rcp/src/org/eclipse/recommenders/internal/rcp/wiring/RecommendersModule.java b/plugins/org.eclipse.recommenders.rcp/src/org/eclipse/recommenders/internal/rcp/wiring/RecommendersModule.java index 041d2a66b..d45dc96f6 100644 --- a/plugins/org.eclipse.recommenders.rcp/src/org/...
true
true
protected JavaSelectionProvider provideJavaSelectionProvider(final EventBus bus) { final JavaSelectionProvider provider = new JavaSelectionProvider(bus); new UIJob("Register workbench selection lister") { { schedule(); } @Override publ...
protected JavaSelectionProvider provideJavaSelectionProvider(final EventBus bus) { final JavaSelectionProvider provider = new JavaSelectionProvider(bus); new UIJob("Registering workbench selection listener.") { { schedule(); } @Override ...
diff --git a/src/ch/blinkenlights/battery/BlinkenlightsBatteryService.java b/src/ch/blinkenlights/battery/BlinkenlightsBatteryService.java index 9775bf4..1a73c5f 100644 --- a/src/ch/blinkenlights/battery/BlinkenlightsBatteryService.java +++ b/src/ch/blinkenlights/battery/BlinkenlightsBatteryService.java @@ -1,222 +1,22...
true
true
public void updateNotifyIcon() { Context ctx = getApplicationContext(); int prcnt = battery_state[0]; int curplug = battery_state[1]; int voltage = battery_state[2]; int temp = battery_state[3]; /* TRY to get old values. -1 if failed */ int oldprcnt = bconfig.GetPercentage(); int old...
public void updateNotifyIcon() { Context ctx = getApplicationContext(); int prcnt = battery_state[0]; int curplug = battery_state[1]; int voltage = battery_state[2]; int temp = battery_state[3]; /* TRY to get old values. -1 if failed */ int oldprcnt = bconfig.GetPercentage(); int old...
diff --git a/src/de/freinsberg/pomecaloco/ObjectDetector.java b/src/de/freinsberg/pomecaloco/ObjectDetector.java index fe5ae37..91b71af 100644 --- a/src/de/freinsberg/pomecaloco/ObjectDetector.java +++ b/src/de/freinsberg/pomecaloco/ObjectDetector.java @@ -1,714 +1,711 @@ package de.freinsberg.pomecaloco; import ja...
true
true
public Bitmap generate_track_overlay() { // Load an Image to try operations on local stored files mFoundSeparatorLine = false; mFoundUpperLine = false; mFoundLowerLine = false; mGray = new Mat(); mEdges = new Mat(); mHoughLines = new Mat(); mEmptyTrack = new Mat(); mStaticImage = Highgui .imread(...
public Bitmap generate_track_overlay() { // Load an Image to try operations on local stored files mFoundSeparatorLine = false; mFoundUpperLine = false; mFoundLowerLine = false; mGray = new Mat(); mEdges = new Mat(); mHoughLines = new Mat(); mEmptyTrack = new Mat(); mStaticImage = Highgui .imread(...
diff --git a/modules/rampart-core/src/main/java/org/apache/rampart/handler/WSDoAllReceiver.java b/modules/rampart-core/src/main/java/org/apache/rampart/handler/WSDoAllReceiver.java index 3c34f78b8..4b8548fef 100644 --- a/modules/rampart-core/src/main/java/org/apache/rampart/handler/WSDoAllReceiver.java +++ b/modules/ra...
true
true
private void processBasic(MessageContext msgContext, boolean useDoom, RequestData reqData) throws Exception { // populate the properties try { HandlerParameterDecoder.processParameters(msgContext, true); } catch (Exception e) { throw new AxisFault("Config...
private void processBasic(MessageContext msgContext, boolean useDoom, RequestData reqData) throws Exception { // populate the properties try { HandlerParameterDecoder.processParameters(msgContext, true); } catch (Exception e) { throw new AxisFault("Config...
diff --git a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/context/impl/AddContext.java b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/context/impl/AddContext.java index 8d669d45..dc1e58da 100644 --- a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/context/impl/AddCont...
true
true
public AddContext(IAreaContext context, Object newObject) { this(); final String SIGNATURE = "AddContext(IAreaContext, Object)"; //$NON-NLS-1$ boolean info = T.racer().info(); if (info) { T.racer().entering(AddContext.class, SIGNATURE, new Object[] { context, newObject }); } setNewObject(newObject); s...
public AddContext(IAreaContext context, Object newObject) { this(); final String SIGNATURE = "AddContext(IAreaContext, Object)"; //$NON-NLS-1$ boolean info = T.racer().info(); if (info) { T.racer().entering(AddContext.class, SIGNATURE, new Object[] { context, newObject }); } setNewObject(newObject); s...
diff --git a/javagit/src/test/java/edu/nyu/cs/javagit/test/utilities/FileUtilities.java b/javagit/src/test/java/edu/nyu/cs/javagit/test/utilities/FileUtilities.java index 10398e7..e949a11 100644 --- a/javagit/src/test/java/edu/nyu/cs/javagit/test/utilities/FileUtilities.java +++ b/javagit/src/test/java/edu/nyu/cs/javag...
true
true
public static void removeDirectoryRecursivelyAndForcefully(File dirOrFile) throws JavaGitException { File[] children = dirOrFile.listFiles(); if (null != children) { for (File f : children) { removeDirectoryRecursivelyAndForcefully(f); } } if (!dirOrFile.delete()) { thr...
public static void removeDirectoryRecursivelyAndForcefully(File dirOrFile) throws JavaGitException { File[] children = dirOrFile.listFiles(); if (null != children) { for (File f : children) { removeDirectoryRecursivelyAndForcefully(f); } } System.gc(); if (!dirOrFile.delete(...
diff --git a/src/org/oscim/tilesource/mapnik/TileDecoder.java b/src/org/oscim/tilesource/mapnik/TileDecoder.java index f445de34..47a67b66 100644 --- a/src/org/oscim/tilesource/mapnik/TileDecoder.java +++ b/src/org/oscim/tilesource/mapnik/TileDecoder.java @@ -1,595 +1,595 @@ /* * Copyright 2013 * * This program i...
true
true
private int decodeCoordinates(int type, Feature feature) throws IOException { int bytes = decodeVarint32(); fillBuffer(bytes); if (feature == null) { bufferPos += bytes; return 0; } MapElement elem = feature.elem; boolean isPoint = false; boolean isPoly = false; boolean isLine = false; if (t...
private int decodeCoordinates(int type, Feature feature) throws IOException { int bytes = decodeVarint32(); fillBuffer(bytes); if (feature == null) { bufferPos += bytes; return 0; } MapElement elem = feature.elem; boolean isPoint = false; boolean isPoly = false; boolean isLine = false; if (t...
diff --git a/src/org/biojavax/bio/seq/io/GenbankFormat.java b/src/org/biojavax/bio/seq/io/GenbankFormat.java index f40f50ae9..ad6fd02f9 100644 --- a/src/org/biojavax/bio/seq/io/GenbankFormat.java +++ b/src/org/biojavax/bio/seq/io/GenbankFormat.java @@ -1,771 +1,771 @@ /* * BioJava development code...
true
true
public boolean readRichSequence(BufferedReader reader, SymbolTokenization symParser, RichSeqIOListener rlistener) throws IllegalSymbolException, IOException, ParseException { String line; boolean hasAnotherSequence = true; boolean hasInternalWhitespace ...
public boolean readRichSequence(BufferedReader reader, SymbolTokenization symParser, RichSeqIOListener rlistener) throws IllegalSymbolException, IOException, ParseException { String line; boolean hasAnotherSequence = true; boolean hasInternalWhitespace ...
diff --git a/src/org/waveprotocol/box/server/persistence/memory/MemoryDeltaCollection.java b/src/org/waveprotocol/box/server/persistence/memory/MemoryDeltaCollection.java index 383a3b28..1f627199 100644 --- a/src/org/waveprotocol/box/server/persistence/memory/MemoryDeltaCollection.java +++ b/src/org/waveprotocol/box/se...
true
true
public void append(Collection<WaveletDeltaRecord> newDeltas) { for (WaveletDeltaRecord delta : newDeltas) { // Before: ... | D | // start end // After: ... | D | D + 1 | // start end long startVersion = delta.transformed.getApplied...
public void append(Collection<WaveletDeltaRecord> newDeltas) { for (WaveletDeltaRecord delta : newDeltas) { // Before: ... | D | // start end // After: ... | D | D + 1 | // start end long startVersion = delta.transformed.getApplied...
diff --git a/nuxeo-core-facade/src/main/java/org/nuxeo/ecm/core/jms/CoreEventPublisher.java b/nuxeo-core-facade/src/main/java/org/nuxeo/ecm/core/jms/CoreEventPublisher.java index cccb8fa85..30f65e472 100644 --- a/nuxeo-core-facade/src/main/java/org/nuxeo/ecm/core/jms/CoreEventPublisher.java +++ b/nuxeo-core-facade/src/...
true
true
public void publish(Object content, Topic topic, MessageFactory factory, String eventId) throws JMSException { TopicConnection connection = null; TopicSession session = null; TopicPublisher publisher = null; try { // get a connection from topic connection pool ...
public void publish(Object content, Topic topic, MessageFactory factory, String eventId) throws JMSException { TopicConnection connection = null; TopicSession session = null; TopicPublisher publisher = null; try { // get a connection from topic connection pool ...
diff --git a/freeplane/src/org/freeplane/core/io/xml/XMLParser.java b/freeplane/src/org/freeplane/core/io/xml/XMLParser.java index bd312d997..910646458 100644 --- a/freeplane/src/org/freeplane/core/io/xml/XMLParser.java +++ b/freeplane/src/org/freeplane/core/io/xml/XMLParser.java @@ -1,122 +1,123 @@ /* * Freeplane ...
true
true
protected void processElementContent(final String defaultNamespace, final Properties namespaces, final String fullName, final String name, final String prefix) throws IOException, XMLParseException, Exception { if (skipNextElementContent) { boolean inComment = false;...
protected void processElementContent(final String defaultNamespace, final Properties namespaces, final String fullName, final String name, final String prefix) throws IOException, XMLParseException, Exception { if (skipNextElementContent) { boolean inComment = false;...
diff --git a/TFC_Shared/src/TFC/Entities/Mobs/EntitySheepTFC.java b/TFC_Shared/src/TFC/Entities/Mobs/EntitySheepTFC.java index 222dbfcc0..77d5a32e6 100644 --- a/TFC_Shared/src/TFC/Entities/Mobs/EntitySheepTFC.java +++ b/TFC_Shared/src/TFC/Entities/Mobs/EntitySheepTFC.java @@ -1,463 +1,467 @@ package TFC.Entities.Mobs;...
false
true
public void onLivingUpdate() { if (this.worldObj.isRemote) { this.sheepTimer = Math.max(0, this.sheepTimer - 1); } //Handle Hunger ticking if (hunger > 168000) { hunger = 168000; } if (hunger > 0) { hunger--; } if(super.inLove > 0){ super.inLove = 0; setInLove(true); } sync...
public void onLivingUpdate() { if (this.worldObj.isRemote) { this.sheepTimer = Math.max(0, this.sheepTimer - 1); } //Handle Hunger ticking if (hunger > 168000) { hunger = 168000; } if (hunger > 0) { hunger--; } if(super.inLove > 0){ super.inLove = 0; setInLove(true); } sync...
diff --git a/Jcrop-parent/Jcrop-integration/src/main/java/org/jcrop/JcropImage.java b/Jcrop-parent/Jcrop-integration/src/main/java/org/jcrop/JcropImage.java index 45b8439..0d8a638 100644 --- a/Jcrop-parent/Jcrop-integration/src/main/java/org/jcrop/JcropImage.java +++ b/Jcrop-parent/Jcrop-integration/src/main/java/org/j...
true
true
protected void initJCrop(CroppableSettings settings) { add(jCropBehavior = new JcropBehavior(settings) { @Override protected void onCooridnatsChange(Coordinates coordinates) { JcropImage.this.onCooridnatsChange(coordinates); } }); }
protected void initJCrop(CroppableSettings settings) { add(jCropBehavior = new JcropBehavior(settings) { @Override protected void onCoordinatesChange(Coordinates coordinates) { JcropImage.this.onCooridnatsChange(coordinates); } }); }
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/SipApplicationDispatcherImpl.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/SipApplicationDispatcherImpl.java index 1ff891bcc..5d8161ae7 100644 --- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/SipAppli...
true
true
private boolean routeInitialRequest(SipProvider sipProvider, SipServletRequestImpl sipServletRequest) throws ParseException, TransactionUnavailableException, SipException, InvalidArgumentException { ServerTransaction transaction = (ServerTransaction) sipServletRequest.getTransaction(); Request request = (Request...
private boolean routeInitialRequest(SipProvider sipProvider, SipServletRequestImpl sipServletRequest) throws ParseException, TransactionUnavailableException, SipException, InvalidArgumentException { ServerTransaction transaction = (ServerTransaction) sipServletRequest.getTransaction(); Request request = (Request...
diff --git a/src/main/java/org/thymeleaf/spring3/view/ThymeleafViewResolver.java b/src/main/java/org/thymeleaf/spring3/view/ThymeleafViewResolver.java index 6b3dc99..c2a9e83 100644 --- a/src/main/java/org/thymeleaf/spring3/view/ThymeleafViewResolver.java +++ b/src/main/java/org/thymeleaf/spring3/view/ThymeleafViewResol...
false
true
protected View loadView(final String viewName, final Locale locale) throws Exception { final AutowireCapableBeanFactory beanFactory = getApplicationContext().getAutowireCapableBeanFactory(); AbstractThymeleafView view = BeanUtils.instantiateClass(getViewClass()); if (beanF...
protected View loadView(final String viewName, final Locale locale) throws Exception { final AutowireCapableBeanFactory beanFactory = getApplicationContext().getAutowireCapableBeanFactory(); AbstractThymeleafView view = BeanUtils.instantiateClass(getViewClass()); if (beanF...
diff --git a/GPSLogger/src/com/mendhak/gpslogger/senders/ZipHelper.java b/GPSLogger/src/com/mendhak/gpslogger/senders/ZipHelper.java index 08e8d151..8963d52d 100644 --- a/GPSLogger/src/com/mendhak/gpslogger/senders/ZipHelper.java +++ b/GPSLogger/src/com/mendhak/gpslogger/senders/ZipHelper.java @@ -1,57 +1,58 @@ packag...
true
true
public void Zip() { try { BufferedInputStream origin; FileOutputStream dest = new FileOutputStream(zipFile); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(dest)); byte data[] = new byte[BUFFER]; for (String f : files) { FileInputStream fi = new FileInputStrea...
public void Zip() { try { BufferedInputStream origin; FileOutputStream dest = new FileOutputStream(zipFile); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(dest)); byte data[] = new byte[BUFFER]; for (String f : files) { FileInputStream fi = new FileInputStrea...
diff --git a/OpenSudoku/src/cz/romario/opensudoku/gui/inputmethod/IMPopupDialog.java b/OpenSudoku/src/cz/romario/opensudoku/gui/inputmethod/IMPopupDialog.java index 37f46b1..cdb661a 100644 --- a/OpenSudoku/src/cz/romario/opensudoku/gui/inputmethod/IMPopupDialog.java +++ b/OpenSudoku/src/cz/romario/opensudoku/gui/inputm...
true
true
private TabHost createTabView() { TabHost tabHost = new TabHost(mContext); //tabHost.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); tabHost.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); LinearLayout l...
private TabHost createTabView() { TabHost tabHost = new TabHost(mContext, null); //tabHost.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); tabHost.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); LinearLa...
diff --git a/src/java/net/sf/picard/metrics/MetricsFile.java b/src/java/net/sf/picard/metrics/MetricsFile.java index d6de3741..484c2781 100644 --- a/src/java/net/sf/picard/metrics/MetricsFile.java +++ b/src/java/net/sf/picard/metrics/MetricsFile.java @@ -1,453 +1,453 @@ /* * The MIT License * * Copyright (c) 200...
true
true
public void read(Reader r) { BufferedReader in = new BufferedReader(r); FormatUtil formatter = new FormatUtil(); String line = null; try { // First read the headers Header header = null; boolean inHeader = true; while ((line = in.readL...
public void read(Reader r) { BufferedReader in = new BufferedReader(r); FormatUtil formatter = new FormatUtil(); String line = null; try { // First read the headers Header header = null; boolean inHeader = true; while ((line = in.readL...
diff --git a/commons/src/main/java/org/soluvas/commons/shell/ExtCommandSupport.java b/commons/src/main/java/org/soluvas/commons/shell/ExtCommandSupport.java index 76b5f101..eaefb9e2 100644 --- a/commons/src/main/java/org/soluvas/commons/shell/ExtCommandSupport.java +++ b/commons/src/main/java/org/soluvas/commons/shell/...
true
true
public Object execute(CommandSession session) throws Exception { try (ThreadLocalProgress progress = new ThreadLocalProgress(monitor)) { return super.execute(session); } }
public Object execute(CommandSession session) throws Exception { try (ThreadLocalProgress progress = new ThreadLocalProgress(monitor)) { return super.execute(session); } finally { // Subclasses usually forget to do this, so we'll do this for them :) System.out.flush(); System.err.flush(); } }
diff --git a/src/java/org/apache/nutch/parse/ParseOutputFormat.java b/src/java/org/apache/nutch/parse/ParseOutputFormat.java index 9955ea01..f89896f7 100644 --- a/src/java/org/apache/nutch/parse/ParseOutputFormat.java +++ b/src/java/org/apache/nutch/parse/ParseOutputFormat.java @@ -1,170 +1,172 @@ /** * Copyright 20...
true
true
public RecordWriter getRecordWriter(FileSystem fs, JobConf job, String name, Progressable progress) throws IOException { this.urlNormalizers = new URLNormalizers(job, URLNormalizers.SCOPE_OUTLINK); this.filters = new URLFilters(job); this.scfilters = new ScoringFilte...
public RecordWriter getRecordWriter(FileSystem fs, JobConf job, String name, Progressable progress) throws IOException { this.urlNormalizers = new URLNormalizers(job, URLNormalizers.SCOPE_OUTLINK); this.filters = new URLFilters(job); this.scfilters = new ScoringFilte...
diff --git a/modules/activiti-bpmn-converter/src/main/java/org/activiti/bpmn/converter/BpmnXMLConverter.java b/modules/activiti-bpmn-converter/src/main/java/org/activiti/bpmn/converter/BpmnXMLConverter.java index a65ba5595..f5245838f 100644 --- a/modules/activiti-bpmn-converter/src/main/java/org/activiti/bpmn/converter...
true
true
public BpmnModel convertToBpmnModel(XMLStreamReader xtr) { BpmnModel model = new BpmnModel(); try { Process activeProcess = null; List<SubProcess> activeSubProcessList = new ArrayList<SubProcess>(); while (xtr.hasNext()) { try { xtr.next(); } catch(Exception e) { LOGGER.error("Error re...
public BpmnModel convertToBpmnModel(XMLStreamReader xtr) { BpmnModel model = new BpmnModel(); try { Process activeProcess = null; List<SubProcess> activeSubProcessList = new ArrayList<SubProcess>(); while (xtr.hasNext()) { try { xtr.next(); } catch(Exception e) { LOGGER.error("Error re...
diff --git a/src/org/proofpad/DoubleCheckResult.java b/src/org/proofpad/DoubleCheckResult.java index f4ca48c..d283e3c 100755 --- a/src/org/proofpad/DoubleCheckResult.java +++ b/src/org/proofpad/DoubleCheckResult.java @@ -1,96 +1,97 @@ package org.proofpad; import java.awt.Color; import java.awt.event.ItemEvent; i...
true
true
public DoubleCheckResult(String output) { setBackground(Color.WHITE); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); String[] lines = output.split("\n"); ArrayList<String> failures = new ArrayList<String>(); ArrayList<String> successes = new ArrayList<String>(); for (int i = 1; i < lines.length; i++) { ...
public DoubleCheckResult(String output) { setBackground(Color.WHITE); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); String[] lines = output.split("\n"); ArrayList<String> failures = new ArrayList<String>(); ArrayList<String> successes = new ArrayList<String>(); for (int i = 1; i < lines.length; i++) { ...
diff --git a/src/gutenberg/workers/Vault.java b/src/gutenberg/workers/Vault.java index 66cf826..4ee9eba 100644 --- a/src/gutenberg/workers/Vault.java +++ b/src/gutenberg/workers/Vault.java @@ -1,98 +1,98 @@ package gutenberg.workers; import gutenberg.blocs.ManifestType; import java.io.ByteArrayOutputStream; imp...
true
true
public ManifestType createQuestion(String quizMasterId) throws Exception { String hexTimestamp = Long.toString(System.currentTimeMillis(), Character.MAX_RADIX); String dirName = quizMasterId + "-" + hexTimestamp.substring(0, 3) + "-" + hexTimestamp.substring(3); Path questionDir = new File(VAULT)...
public ManifestType createQuestion(String quizMasterId) throws Exception { String hexTimestamp = Long.toString(System.currentTimeMillis(), Character.MAX_RADIX); String dirName = quizMasterId + "-" + hexTimestamp.substring(0, 3) + "-" + hexTimestamp.substring(3); Path questionDir = new File(VAULT)...
diff --git a/src/main/java/emcshop/gui/lib/ClickableLabel.java b/src/main/java/emcshop/gui/lib/ClickableLabel.java index f5e5fb9..8692ff0 100644 --- a/src/main/java/emcshop/gui/lib/ClickableLabel.java +++ b/src/main/java/emcshop/gui/lib/ClickableLabel.java @@ -1,92 +1,97 @@ package emcshop.gui.lib; import java.awt....
true
true
private void init(String url) { uri = URI.create(url); if (desktop != null) { //only set these things if the user's computer supports opening a browser window setCursor(new Cursor(Cursor.HAND_CURSOR)); addMouseListener(this); } }
private void init(String url) { try { uri = URI.create(url); } catch (IllegalArgumentException e) { logger.log(Level.SEVERE, "Bad URI, cannot make label clickable.", e); return; } if (desktop != null) { //only set these things if the user's computer supports opening a browser window setCursor(n...
diff --git a/src/de/uni_potsdam/hpi/openmensa/RetrieveFeedTask.java b/src/de/uni_potsdam/hpi/openmensa/RetrieveFeedTask.java index 23d5704..d359339 100644 --- a/src/de/uni_potsdam/hpi/openmensa/RetrieveFeedTask.java +++ b/src/de/uni_potsdam/hpi/openmensa/RetrieveFeedTask.java @@ -1,145 +1,145 @@ package de.uni_potsdam...
true
true
protected Integer doInBackground(String... urls) { for (String url : urls) { try { URL feed = new URL(url); URLConnection urlConnection = feed.openConnection(); BufferedReader in = new BufferedReader(new InputStreamReader( urlConnection.getInputStream())); // urlConnection.connect(); S...
protected Integer doInBackground(String... urls) { for (String url : urls) { try { URL feed = new URL(url); URLConnection urlConnection = feed.openConnection(); BufferedReader in = new BufferedReader(new InputStreamReader( urlConnection.getInputStream())); // urlConnection.connect(); S...
diff --git a/modules/compute/org/molgenis/compute/commandline/WorkflowGeneratorCommandLine.java b/modules/compute/org/molgenis/compute/commandline/WorkflowGeneratorCommandLine.java index fbdd92469..cffe11f30 100644 --- a/modules/compute/org/molgenis/compute/commandline/WorkflowGeneratorCommandLine.java +++ b/modules/co...
false
true
private void generateComputeApplication(WorkflowElement workflowElement, ComputeProtocol protocol, Hashtable<String, String> weavingValues, Vector<ComputeParameter> featuresToDerive) ...
private void generateComputeApplication(WorkflowElement workflowElement, ComputeProtocol protocol, Hashtable<String, String> weavingValues, Vector<ComputeParameter> featuresToDerive) ...
diff --git a/src/com/jpii/navalbattle/pavo/gui/OmniMap.java b/src/com/jpii/navalbattle/pavo/gui/OmniMap.java index 3f05950e..7c2fbb29 100644 --- a/src/com/jpii/navalbattle/pavo/gui/OmniMap.java +++ b/src/com/jpii/navalbattle/pavo/gui/OmniMap.java @@ -1,144 +1,148 @@ /* * Copyright (C) 2012 JPII and contributors * ...
true
true
public void render() { Graphics2D g = PavoHelper.createGraphics(getBuffer()); g.drawImage(terrain, 0,0,null); int rwx = (int)(-w.getScreenX()*100)/(PavoHelper.getGameWidth(w.getWorldSize()) * 100); int rwy = (int)(-w.getScreenY()*100)/(PavoHelper.getGameHeight(w.getWorldSize()) * 100); int sw = (int)((150 * ...
public void render() { Graphics2D g = PavoHelper.createGraphics(getBuffer()); g.drawImage(terrain, 0,0,null); int rwx = (int)(-w.getScreenX()*100)/(PavoHelper.getGameWidth(w.getWorldSize()) * 100); int rwy = (int)(-w.getScreenY()*100)/(PavoHelper.getGameHeight(w.getWorldSize()) * 100); int sw = (int)((150 * ...
diff --git a/src/jvm/final_project/view/CheckInPanel.java b/src/jvm/final_project/view/CheckInPanel.java index bab320e..6ffd726 100644 --- a/src/jvm/final_project/view/CheckInPanel.java +++ b/src/jvm/final_project/view/CheckInPanel.java @@ -1,477 +1,477 @@ package final_project.view; import javax.swing.*; import...
true
true
public void actionPerformed(ActionEvent e) { if (e.getSource() == importXml) { //Import xml file JFileChooser fileChooser = new JFileChooser(); int returnValue = fileChooser.showOpenDialog(importXml); if (returnValue == JFileChooser.APPROVE_OPTION) { xmlFile = fileChooser.getSelectedFile(); f...
public void actionPerformed(ActionEvent e) { if (e.getSource() == importXml) { //Import xml file JFileChooser fileChooser = new JFileChooser(); int returnValue = fileChooser.showOpenDialog(importXml); if (returnValue == JFileChooser.APPROVE_OPTION) { xmlFile = fileChooser.getSelectedFile(); f...
diff --git a/src/com/imdeity/deitynether/Config.java b/src/com/imdeity/deitynether/Config.java index 2e14179..ed74883 100644 --- a/src/com/imdeity/deitynether/Config.java +++ b/src/com/imdeity/deitynether/Config.java @@ -1,135 +1,135 @@ package com.imdeity.deitynether; import java.io.File; import java.io.IOExcepti...
false
true
public void loadDefaults(){ if(!config.contains("world.nether.days-until-next-regen")) //World options config.set("world.nether.days-until-next-regen", 7); if(!config.contains("world.nether.wait-time-in-hours")) config.set("world.nether.wait-time-in-hours", 12); if(!config.contains("world.nether.name")) ...
public void loadDefaults(){ if(!config.contains("world.nether.days-until-next-regen")) //World options config.set("world.nether.days-until-next-regen", 7); if(!config.contains("world.nether.wait-time-in-hours")) config.set("world.nether.wait-time-in-hours", 12); if(!config.contains("world.nether.name")) ...
diff --git a/src/main/java/clisk/Util.java b/src/main/java/clisk/Util.java index 01371e3..a617886 100644 --- a/src/main/java/clisk/Util.java +++ b/src/main/java/clisk/Util.java @@ -1,225 +1,224 @@ package clisk; import java.awt.Dimension; import java.awt.FileDialog; import java.awt.Graphics; import java.awt.Grap...
true
true
public static JFrame frame(final BufferedImage image) { final JFrame f=new JFrame("Clisk Image"); f.setAutoRequestFocus(false); // f.setFocusableWindowState(false); JMenuBar menuBar=new JMenuBar(); JMenu menu=new JMenu("File"); menuBar.add(menu); final JMenuItem jmi=new JMenuItem("Save As..."); me...
public static JFrame frame(final BufferedImage image) { final JFrame f=new JFrame("Clisk Image"); // f.setFocusableWindowState(false); JMenuBar menuBar=new JMenuBar(); JMenu menu=new JMenu("File"); menuBar.add(menu); final JMenuItem jmi=new JMenuItem("Save As..."); menu.add(jmi); jmi.addActionList...
diff --git a/ini/trakem2/persistence/TMLHandler.java b/ini/trakem2/persistence/TMLHandler.java index 33610c7b..c1b02149 100644 --- a/ini/trakem2/persistence/TMLHandler.java +++ b/ini/trakem2/persistence/TMLHandler.java @@ -1,1029 +1,1030 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2005-2009 Albert Cardona a...
true
true
private LayerThing makeLayerThing(String type, final HashMap ht_attributes) { try { type = type.toLowerCase(); if (0 == type.indexOf("t2_")) { type = type.substring(3); } long id = -1; Object sid = ht_attributes.get("id"); if (null != sid) id = Long.parseLong((String)sid); long oid = -1; ...
private LayerThing makeLayerThing(String type, final HashMap ht_attributes) { try { type = type.toLowerCase(); if (0 == type.indexOf("t2_")) { type = type.substring(3); } long id = -1; Object sid = ht_attributes.get("id"); if (null != sid) id = Long.parseLong((String)sid); long oid = -1; ...
diff --git a/src/net/sf/freecol/server/ai/ColonyPlan.java b/src/net/sf/freecol/server/ai/ColonyPlan.java index 8865776f1..c840f54fa 100644 --- a/src/net/sf/freecol/server/ai/ColonyPlan.java +++ b/src/net/sf/freecol/server/ai/ColonyPlan.java @@ -1,1119 +1,1120 @@ /** * Copyright (C) 2002-2007 The FreeCol Team * ...
true
true
public void create() { workLocationPlans.clear(); if (profile.getType() == ProfileType.OUTPOST) { GoodsType goodsType = profile.getPreferredProduction().get(0); workLocationPlans.add(new WorkLocationPlan(getAIMain(), ...
public void create() { workLocationPlans.clear(); if (profile.getType() == ProfileType.OUTPOST) { GoodsType goodsType = profile.getPreferredProduction().get(0); workLocationPlans.add(new WorkLocationPlan(getAIMain(), ...
diff --git a/src/org/opensolaris/opengrok/web/DirectoryListing.java b/src/org/opensolaris/opengrok/web/DirectoryListing.java index 26e5038a..b5fabbd1 100644 --- a/src/org/opensolaris/opengrok/web/DirectoryListing.java +++ b/src/org/opensolaris/opengrok/web/DirectoryListing.java @@ -1,150 +1,150 @@ /* * CDDL HEADER S...
true
true
public List listTo(File dir, Writer out, String path, String[] files) throws IOException { Arrays.sort(files, String.CASE_INSENSITIVE_ORDER); boolean alt = true; Format dateFormatter = new SimpleDateFormat("dd-MMM-yyyy", Locale.getDefault()); out.write("<table cellspacing=\"0\" borde...
public List<String> listTo(File dir, Writer out, String path, String[] files) throws IOException { Arrays.sort(files, String.CASE_INSENSITIVE_ORDER); boolean alt = true; Format dateFormatter = new SimpleDateFormat("dd-MMM-yyyy", Locale.getDefault()); out.write("<table cellspacing=\"0...
diff --git a/gui/src/main/java/org/jboss/mbui/gui/reification/pipeline/IntegrityStep.java b/gui/src/main/java/org/jboss/mbui/gui/reification/pipeline/IntegrityStep.java index e3e006a0..cf9191f7 100644 --- a/gui/src/main/java/org/jboss/mbui/gui/reification/pipeline/IntegrityStep.java +++ b/gui/src/main/java/org/jboss/mb...
true
true
public void execute(final Dialog dialog, final Context context) throws ReificationException { InteractionCoordinator coordinator = context.get(ContextKey.COORDINATOR); try { // Step 3: Verify integrity Integrity.check( dialog.getInterfaceModel(...
public void execute(final Dialog dialog, final Context context) throws ReificationException { InteractionCoordinator coordinator = context.get(ContextKey.COORDINATOR); try { // Step 3: Verify integrity Integrity.check( dialog.getInterfaceModel(...
diff --git a/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemListTag.java b/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemListTag.java index 89f61d6fa..e1fd1711d 100644 --- a/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemListTag.jav...
false
true
public int doStartTag() throws JspException { JspWriter out = pageContext.getOut(); HttpServletRequest hrq = (HttpServletRequest) pageContext.getRequest(); boolean emphasiseDate = false; boolean emphasiseTitle = false; if (emphColumn != null) { empha...
public int doStartTag() throws JspException { JspWriter out = pageContext.getOut(); HttpServletRequest hrq = (HttpServletRequest) pageContext.getRequest(); boolean emphasiseDate = false; boolean emphasiseTitle = false; if (emphColumn != null) { empha...
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index 020cd47f0..1e32bd560 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -1,1882 +1,1883 @@ package cgeo.geocaching.maps; import cgeo.geocaching.R; impo...
true
true
public boolean onOptionsItemSelected(MenuItem item) { final int id = item.getItemId(); switch (id) { case MENU_TRAIL_MODE: Settings.setMapTrail(!Settings.isMapTrail()); return true; case MENU_MAP_LIVE: Settings.setLiveMap(!Setti...
public boolean onOptionsItemSelected(MenuItem item) { final int id = item.getItemId(); switch (id) { case MENU_TRAIL_MODE: Settings.setMapTrail(!Settings.isMapTrail()); return true; case MENU_MAP_LIVE: Settings.setLiveMap(!Setti...
diff --git a/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/deployables/J2EEFlexProjDeployable.java b/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/deployables/J2EEFlexProjDeployable.java index d83dce27e..45c9c3ec4 100644 --- a/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/e...
true
true
public IModuleResource[] members() throws CoreException { members.clear(); classpathComponentDependencyURIs.clear(); // Handle binary components if (component instanceof J2EEModuleVirtualArchiveComponent) return getBinaryModuleMembers(); if (J2EEProjectUtilities.isEARProject(component.getProject())) { ...
public IModuleResource[] members() throws CoreException { members.clear(); classpathComponentDependencyURIs.clear(); // Handle binary components if (component instanceof J2EEModuleVirtualArchiveComponent) return getBinaryModuleMembers(); if (J2EEProjectUtilities.isEARProject(component.getProject())) { ...
diff --git a/src/btwmod/tickmonitor/BTWModTickMonitor.java b/src/btwmod/tickmonitor/BTWModTickMonitor.java index 911c57e..2cda6cb 100644 --- a/src/btwmod/tickmonitor/BTWModTickMonitor.java +++ b/src/btwmod/tickmonitor/BTWModTickMonitor.java @@ -1,459 +1,459 @@ package btwmod.tickmonitor; import java.io.File; impor...
false
true
public void statsAction(StatsEvent event) { long currentTime = System.currentTimeMillis(); long startNano = System.nanoTime(); boolean detailedMeasurementsEnabled = StatsAPI.detailedMeasurementsEnabled; if (lastStatsTime == 0) { lastStatsTime = System.currentTimeMillis(); } else if (currentTime - ...
public void statsAction(StatsEvent event) { long currentTime = System.currentTimeMillis(); long startNano = System.nanoTime(); boolean detailedMeasurementsEnabled = StatsAPI.detailedMeasurementsEnabled; if (lastStatsTime == 0) { lastStatsTime = System.currentTimeMillis(); } else if (currentTime - ...
diff --git a/src/org/opensolaris/opengrok/history/MercurialRepository.java b/src/org/opensolaris/opengrok/history/MercurialRepository.java index 4744c5f6..8c273c22 100644 --- a/src/org/opensolaris/opengrok/history/MercurialRepository.java +++ b/src/org/opensolaris/opengrok/history/MercurialRepository.java @@ -1,342 +1,...
true
true
public Annotation annotate(File file, String revision) throws IOException { ArrayList<String> argv = new ArrayList<String>(); ensureCommand(CMD_PROPERTY_KEY, CMD_FALLBACK); argv.add(cmd); argv.add("annotate"); argv.add("-n"); if (revision != null) { argv.a...
public Annotation annotate(File file, String revision) throws IOException { ArrayList<String> argv = new ArrayList<String>(); ensureCommand(CMD_PROPERTY_KEY, CMD_FALLBACK); argv.add(cmd); argv.add("annotate"); argv.add("-n"); if (revision != null) { argv.a...
diff --git a/src/net/amunak/bukkit/plugin_DropsToInventory/BlockBreakEventListener.java b/src/net/amunak/bukkit/plugin_DropsToInventory/BlockBreakEventListener.java index dad0d58..556eece 100644 --- a/src/net/amunak/bukkit/plugin_DropsToInventory/BlockBreakEventListener.java +++ b/src/net/amunak/bukkit/plugin_DropsToIn...
false
true
public BlockBreakEventListener(DropsToInventory p) { plugin = p; log = new Log(plugin); log.raiseFineLevel = plugin.config.getBoolean("options.general.verboseLogging"); log.fine("registering BlockBreakEventListener"); filterMode = BlockFilter.fromString(plugin.config.getStri...
public BlockBreakEventListener(DropsToInventory p) { plugin = p; log = new Log(plugin); log.raiseFineLevel = plugin.config.getBoolean("options.general.verboseLogging"); log.fine("registering BlockBreakEventListener"); filterMode = BlockFilter.fromString(plugin.config.getStri...
diff --git a/ttools/src/main/uk/ac/starlink/ttools/plot/Plot3D.java b/ttools/src/main/uk/ac/starlink/ttools/plot/Plot3D.java index f886409d6..9b2736a01 100644 --- a/ttools/src/main/uk/ac/starlink/ttools/plot/Plot3D.java +++ b/ttools/src/main/uk/ac/starlink/ttools/plot/Plot3D.java @@ -1,778 +1,781 @@ package uk.ac.star...
false
true
private void drawData( Graphics g, Component c ) { /* Prepare data. */ Plot3DState state = (Plot3DState) getState(); PlotData data = state.getPlotData(); if ( data == null || state == null || ! state.getValid() ) { return; } int nset = data.getSetCount();...
private void drawData( Graphics g, Component c ) { /* Prepare data. */ Plot3DState state = (Plot3DState) getState(); if ( state == null || ! state.getValid() ) { return; } PlotData data = state.getPlotData(); if ( data == null ) { return; ...
diff --git a/src/jvm/clojure/lang/LispReader.java b/src/jvm/clojure/lang/LispReader.java index 8f67b3b2..4b987dc5 100644 --- a/src/jvm/clojure/lang/LispReader.java +++ b/src/jvm/clojure/lang/LispReader.java @@ -1,1256 +1,1258 @@ /** * Copyright (c) Rich Hickey. All rights reserved. * The use and distribution t...
true
true
static Object syntaxQuote(Object form) { Object ret; if(Compiler.isSpecial(form)) ret = RT.list(Compiler.QUOTE, form); else if(form instanceof Symbol) { Symbol sym = (Symbol) form; if(sym.ns == null && sym.name.endsWith("#")) { IPersistentMap gmap = (IPersistentMap) GENSYM_ENV.deref(); if...
static Object syntaxQuote(Object form) { Object ret; if(Compiler.isSpecial(form)) ret = RT.list(Compiler.QUOTE, form); else if(form instanceof Symbol) { Symbol sym = (Symbol) form; if(sym.ns == null && sym.name.endsWith("#")) { IPersistentMap gmap = (IPersistentMap) GENSYM_ENV.deref(); if...
diff --git a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/rpc/flattening/helpers/ExceptionHelper.java b/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/rpc/flattening/helpers/ExceptionHelper.java index 086532950..38ddf64ef 100644 --- a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diam...
true
true
public Exception unflatten(Map<?, ?> thisMap, IRootFlattener rootFlattener) { String all = (String) thisMap.get(CONTENT); int i = all.lastIndexOf(": "); String msg = all.substring(i+2).trim(); all = all.substring(0, i); i = all.lastIndexOf('\n'); return i < 0 ? new Exception(msg) : new Exception(msg, new E...
public Exception unflatten(Map<?, ?> thisMap, IRootFlattener rootFlattener) { String all = (String) thisMap.get(CONTENT); int i = all.lastIndexOf(": "); if (i < 0) { return new Exception(all); } String msg = all.substring(i+2).trim(); all = all.substring(0, i); i = all.lastIndexOf('\n'); return i < ...
diff --git a/modular-pircbot-modules/src/main/java/org/jibble/pircbot/modules/AuthModePircModule.java b/modular-pircbot-modules/src/main/java/org/jibble/pircbot/modules/AuthModePircModule.java index c611c79..467c470 100644 --- a/modular-pircbot-modules/src/main/java/org/jibble/pircbot/modules/AuthModePircModule.java ++...
true
true
public void onConnect(ExtendedPircBot bot) { bot.sendRawLineViaQueue("auth " + authUsername + " " + authPassword); if (StringUtils.isNotBlank(modes)) { bot.sendRawLineViaQueue("mode " + bot.getNick() + " +x"); } }
public void onConnect(ExtendedPircBot bot) { bot.sendRawLineViaQueue("auth " + authUsername + " " + authPassword); if (StringUtils.isNotBlank(modes)) { bot.sendRawLineViaQueue("mode " + bot.getNick() + modes); } }
diff --git a/java/de/hattrickorganizer/gui/transferscout/PlayerConverter.java b/java/de/hattrickorganizer/gui/transferscout/PlayerConverter.java index dadadef2..e421dc8f 100644 --- a/java/de/hattrickorganizer/gui/transferscout/PlayerConverter.java +++ b/java/de/hattrickorganizer/gui/transferscout/PlayerConverter.java @...
false
true
public final Player build(String text) throws Exception { error = 0; final Player player = new Player(); // Init some helper variables String mytext = text; final List<String> lines = new ArrayList<String>(); int p = -1; String tmp = ""; // Detect l...
public final Player build(String text) throws Exception { error = 0; final Player player = new Player(); // Init some helper variables String mytext = text; final List<String> lines = new ArrayList<String>(); int p = -1; String tmp = ""; // Detect l...
diff --git a/src/be/ibridge/kettle/core/dialog/DatabaseExplorerDialog.java b/src/be/ibridge/kettle/core/dialog/DatabaseExplorerDialog.java index 04f8e369..931ac7d6 100644 --- a/src/be/ibridge/kettle/core/dialog/DatabaseExplorerDialog.java +++ b/src/be/ibridge/kettle/core/dialog/DatabaseExplorerDialog.java @@ -1,642 +1,...
false
true
private boolean getData() { GetDatabaseInfoProgressDialog gdipd = new GetDatabaseInfoProgressDialog(log, props, shell, dbMeta); DatabaseMetaInformation dmi = gdipd.open(); if (dmi!=null) { // Clear the tree top entry if (tiTree!=null && !tiTree.isDisposed()) tiTree.dispose(); // New entry in the...
private boolean getData() { GetDatabaseInfoProgressDialog gdipd = new GetDatabaseInfoProgressDialog(log, props, shell, dbMeta); DatabaseMetaInformation dmi = gdipd.open(); if (dmi!=null) { // Clear the tree top entry if (tiTree!=null && !tiTree.isDisposed()) tiTree.dispose(); // New entry in the...
diff --git a/src/org/jruby/evaluator/EvaluationState.java b/src/org/jruby/evaluator/EvaluationState.java index bac134ca7..90b4a6f49 100644 --- a/src/org/jruby/evaluator/EvaluationState.java +++ b/src/org/jruby/evaluator/EvaluationState.java @@ -1,1935 +1,1935 @@ /*******************************************************...
true
true
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { ...
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { ...
diff --git a/oozie/src/main/java/org/apache/ivory/workflow/engine/OozieHouseKeepingService.java b/oozie/src/main/java/org/apache/ivory/workflow/engine/OozieHouseKeepingService.java index 748a1f6d..5db190fb 100644 --- a/oozie/src/main/java/org/apache/ivory/workflow/engine/OozieHouseKeepingService.java +++ b/oozie/src/ma...
true
true
public void afterDelete(Cluster cluster, Entity entity) throws IvoryException { Path workflowFolder = new Path(ClusterHelper.getCompleteLocation(cluster, "staging"), entity.getStagingPath()).getParent(); try { FileSystem fs = workflowFolder.getFileSystem(new Configuration()); ...
public void afterDelete(Cluster cluster, Entity entity) throws IvoryException { Path workflowFolder = new Path(ClusterHelper.getCompleteLocation(cluster, "staging"), entity.getStagingPath()).getParent(); try { FileSystem fs = workflowFolder.getFileSystem(new Configuration()); ...
diff --git a/pmd-netbeans/src/pmd/config/ui/PmdOptionsComponent.java b/pmd-netbeans/src/pmd/config/ui/PmdOptionsComponent.java index a35971a65..592f1a979 100644 --- a/pmd-netbeans/src/pmd/config/ui/PmdOptionsComponent.java +++ b/pmd-netbeans/src/pmd/config/ui/PmdOptionsComponent.java @@ -1,263 +1,264 @@ /* * Copyri...
false
true
private void initComponents() { jLabel1 = new javax.swing.JLabel(); jCheckBox1 = new javax.swing.JCheckBox(); jTextField1 = new javax.swing.JTextField(); jPanelRules = new javax.swing.JPanel(); jLblRules = new javax.swing.JLabel(); jBtnRules = new javax.swing.JButton(...
private void initComponents() { jLabel1 = new javax.swing.JLabel(); jCheckBox1 = new javax.swing.JCheckBox(); jTextField1 = new javax.swing.JTextField(); jPanelRules = new javax.swing.JPanel(); jLblRules = new javax.swing.JLabel(); jBtnRules = new javax.swing.JButton(...
diff --git a/geronimo-transaction/src/main/java/org/apache/geronimo/transaction/manager/RecoverTask.java b/geronimo-transaction/src/main/java/org/apache/geronimo/transaction/manager/RecoverTask.java index f55cac0..65126b7 100644 --- a/geronimo-transaction/src/main/java/org/apache/geronimo/transaction/manager/RecoverTas...
true
true
public void run() { try { NamedXAResource namedXAResource = namedXAResourceFactory.getNamedXAResource(); try { recovery.recoverResourceManager(namedXAResource); } finally { namedXAResourceFactory.returnNamedXAResource(namedXAResource); ...
public void run() { try { NamedXAResource namedXAResource = namedXAResourceFactory.getNamedXAResource(); if (namedXAResource != null) { try { recovery.recoverResourceManager(namedXAResource); } finally { namedXAR...
diff --git a/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/CachingContentRewriterRegistryTest.java b/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/CachingContentRewriterRegistryTest.java index 35bf450e5..e8ae39f59 100644 --- a/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite...
true
true
public void changingRewritersBustsCache() { // What we're testing here is actually impossible (you can't swap the registry on a running // application), but there's a good chance that implementations will be using a shared cache, // which persists across server restarts / reconfigurations. This verifies t...
public void changingRewritersBustsCache() { // What we're testing here is actually impossible (you can't swap the registry on a running // application), but there's a good chance that implementations will be using a shared cache, // which persists across server restarts / reconfigurations. This verifies t...
diff --git a/src/Scaled.java b/src/Scaled.java index b7b6b3f..788f4b1 100644 --- a/src/Scaled.java +++ b/src/Scaled.java @@ -1,88 +1,90 @@ /** * as this class uses the scale-method which all classes that implement Pict * have definied, the generic type of the class must extend Pict * * Scaled extends Repeated...
true
true
public String toString() { StringBuilder ret = new StringBuilder(); Object[][] data = getData(); int maxWidth = PictHelper.getMaxWidth(data); int maxHeight = PictHelper.getMaxHeight(data); String currentLine; int currentWidth; for (int i = 0; i < data.length; i++) { for (int k = 0; k < maxHeight; ...
public String toString() { StringBuilder ret = new StringBuilder(); Object[][] data = getData(); int maxWidth = PictHelper.getMaxWidth(data); int maxHeight = PictHelper.getMaxHeight(data); String currentLine; int currentWidth; for (int i = 0; i < data.length; i++) { for (int k = 0; k < maxHeight; ...
diff --git a/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java b/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java index 36a668b5..d714aa5b 100644 --- a/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java +++ b/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java @@ -1,8675 +1,8675 @@ /* @(#)BasicJideTa...
false
true
public void layoutContainer(Container parent) { int tabPlacement = _tabPane.getTabPlacement(); int tabCount = _tabPane.getTabCount(); Insets insets = _tabPane.getInsets(); int selectedIndex = _tabPane.getSelectedIndex(); Component visibleComponent = ge...
public void layoutContainer(Container parent) { int tabPlacement = _tabPane.getTabPlacement(); int tabCount = _tabPane.getTabCount(); Insets insets = _tabPane.getInsets(); int selectedIndex = _tabPane.getSelectedIndex(); Component visibleComponent = ge...
diff --git a/src/main/java/nodebox/function/NetworkFunctions.java b/src/main/java/nodebox/function/NetworkFunctions.java index aeb13b11..0e9bde92 100644 --- a/src/main/java/nodebox/function/NetworkFunctions.java +++ b/src/main/java/nodebox/function/NetworkFunctions.java @@ -1,134 +1,134 @@ package nodebox.function; ...
false
true
private static Map<String, Object> _httpGet(final String url, final String username, final String password) { HttpGet request = new HttpGet(url); if (username != null && !username.trim().isEmpty()) { UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(username, pas...
private static Map<String, Object> _httpGet(final String url, final String username, final String password) { HttpGet request = new HttpGet(url); if (username != null && !username.trim().isEmpty()) { UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(username, pas...
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeQueryExecutor.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeQueryExecutor.java index 8e3a2bf94..bc44cb25f 100644 --- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engin...
true
true
private List getEdgeSort( int edgeType ) { List l = this.defn.getSorts( ); List result = new ArrayList( ); for ( int i = 0; i < l.size( ); i++ ) { ICubeSortDefinition sort = (ICubeSortDefinition) l.get( i ); if ( this.defn.getEdge( edgeType ) .getDimensions( ) .contains( sort.getTargetLevel( )...
private List getEdgeSort( int edgeType ) { List l = this.defn.getSorts( ); List result = new ArrayList( ); for ( int i = 0; i < l.size( ); i++ ) { ICubeSortDefinition sort = (ICubeSortDefinition) l.get( i ); if ( this.defn.getEdge( edgeType ) != null && this.defn.getEdge( edgeType ) .getDime...
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/patches/PatchSetSelectBox.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/patches/PatchSetSelectBox.java index df12b706a..efaa0b3dc 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/patches/PatchSetSelectBox.java +++ b/gerrit-gwt...
true
true
public void display(final PatchSetDetail detail, final PatchScript script, Patch.Key key, PatchSet.Id idSideA, PatchSet.Id idSideB) { this.script = script; this.patchKey = key; this.idSideA = idSideA; this.idSideB = idSideB; this.idActive = (side == Side.A) ? idSideA : idSideB; this.link...
public void display(final PatchSetDetail detail, final PatchScript script, Patch.Key key, PatchSet.Id idSideA, PatchSet.Id idSideB) { this.script = script; this.patchKey = key; this.idSideA = idSideA; this.idSideB = idSideB; this.idActive = (side == Side.A) ? idSideA : idSideB; this.link...
diff --git a/src/main/java/ch/x42/terye/mk/hbase/RevisionIdGenerator.java b/src/main/java/ch/x42/terye/mk/hbase/RevisionIdGenerator.java index 0b96afa..bc70735 100644 --- a/src/main/java/ch/x42/terye/mk/hbase/RevisionIdGenerator.java +++ b/src/main/java/ch/x42/terye/mk/hbase/RevisionIdGenerator.java @@ -1,83 +1,88 @@ ...
false
true
public long getNewId() { // timestamp long timestamp = System.currentTimeMillis() - EPOCH; timestamp <<= 24; // check for overflow if (timestamp < 0) { // we have used all available time values throw new MicroKernelException("Error generating new revis...
public long getNewId() { // timestamp long timestamp = System.currentTimeMillis() - EPOCH; timestamp <<= 24; // check for overflow if (timestamp < 0) { // we have used all available time values throw new MicroKernelException( "Error...
diff --git a/src/main/java/nz/co/searchwellington/views/ContentDedupingService.java b/src/main/java/nz/co/searchwellington/views/ContentDedupingService.java index 27e9600d..5fe542f2 100644 --- a/src/main/java/nz/co/searchwellington/views/ContentDedupingService.java +++ b/src/main/java/nz/co/searchwellington/views/Conte...
true
true
public List<Resource> dedupeNewsitems(List<Resource> latestNewsitems, List<Resource> commentedNewsitems) { log.info("Called with " + latestNewsitems.size() + " main content items and " + commentedNewsitems.size() + " commented news items"); final List <Resource> depuded = Lists.newArrayList(); depud...
public List<Resource> dedupeNewsitems(List<Resource> latestNewsitems, List<Resource> commentedNewsitems) { log.info("Called with " + latestNewsitems.size() + " main content items and " + commentedNewsitems.size() + " commented news items"); final List <Resource> depuded = Lists.newArrayList(latestNewsite...
diff --git a/console-embed/src/main/java/org/javasimon/console/action/DetailHtmlAction.java b/console-embed/src/main/java/org/javasimon/console/action/DetailHtmlAction.java index d427a1f4..db0086fc 100644 --- a/console-embed/src/main/java/org/javasimon/console/action/DetailHtmlAction.java +++ b/console-embed/src/main/j...
false
true
public void execute() throws ServletException, IOException, ActionException { // Check arguments if (name==null) { throw new ActionException("Null name"); } Simon simon=getContext().getManager().getSimon(name); if (simon==null) { throw new ActionException("Simon \""+name+"\" not found"); } getConte...
public void execute() throws ServletException, IOException, ActionException { // Check arguments if (name==null) { throw new ActionException("Null name"); } Simon simon=getContext().getManager().getSimon(name); if (simon==null) { throw new ActionException("Simon \""+name+"\" not found"); } getConte...
diff --git a/src/main/java/com/drtshock/willie/command/CommandManager.java b/src/main/java/com/drtshock/willie/command/CommandManager.java index 3f327b6..6e18e30 100755 --- a/src/main/java/com/drtshock/willie/command/CommandManager.java +++ b/src/main/java/com/drtshock/willie/command/CommandManager.java @@ -1,71 +1,72 ...
true
true
public void onMessage(MessageEvent<Willie> event){ String message = event.getMessage().trim(); if(message.toLowerCase().endsWith("o/")){ event.getChannel().sendMessage("\\o"); return; }else if(message.equalsIgnoreCase("\\o/")){ event.getChannel().sendMessage("\\o/ Woo!"); return; } if(!message....
public void onMessage(MessageEvent<Willie> event){ String message = event.getMessage().trim(); if(message.toLowerCase().endsWith("o/")){ event.getChannel().sendMessage("\\o"); return; } if(message.equalsIgnoreCase("\\o/")){ event.getChannel().sendMessage("\\o/ Woo!"); return; } if(!message.st...
diff --git a/src/InfraR.java b/src/InfraR.java index 74e9791..ed097da 100644 --- a/src/InfraR.java +++ b/src/InfraR.java @@ -1,136 +1,140 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author geza */ import orc.*; public class InfraR ex...
false
true
public void run() { try { byte[] inet = {(byte)192, (byte)168, (byte)237, (byte)7}; Orc o = new orc.Orc(java.net.Inet4Address.getByAddress(inet)); leftMotorWeight[idx] = 0.5f; rightMotorWeight[idx] = 0.5f; AnalogInput leftIR = new AnalogInput(o, 7); AnalogInput rightIR = new AnalogInput(o, 1); final do...
public void run() { try { byte[] inet = {(byte)192, (byte)168, (byte)237, (byte)7}; Orc o = new orc.Orc(java.net.Inet4Address.getByAddress(inet)); leftMotorWeight[idx] = 0.5f; rightMotorWeight[idx] = 0.5f; AnalogInput leftIR = new AnalogInput(o, 7); AnalogInput rightIR = new AnalogInput(o, 1); final do...
diff --git a/src/uk/me/parabola/imgfmt/app/trergn/Subdivision.java b/src/uk/me/parabola/imgfmt/app/trergn/Subdivision.java index 68824ad3..12021862 100644 --- a/src/uk/me/parabola/imgfmt/app/trergn/Subdivision.java +++ b/src/uk/me/parabola/imgfmt/app/trergn/Subdivision.java @@ -1,537 +1,541 @@ /* * Copyright (C) 200...
false
true
private Subdivision(InternalFiles ifiles, Area area, Zoom z) { this.lblFile = ifiles.getLblFile(); this.rgnFile = ifiles.getRgnFile(); this.zoomLevel = z; int shift = getShift(); int mask = getMask(); this.latitude = (area.getMinLat() + area.getMaxLat())/2; this.longitude = (area.getMinLong() + area.g...
private Subdivision(InternalFiles ifiles, Area area, Zoom z) { this.lblFile = ifiles.getLblFile(); this.rgnFile = ifiles.getRgnFile(); this.zoomLevel = z; int shift = getShift(); int mask = getMask(); this.latitude = (area.getMinLat() + area.getMaxLat())/2; this.longitude = (area.getMinLong() + area.g...
diff --git a/illaclient/src/illarion/client/world/GameMapProcessor2.java b/illaclient/src/illarion/client/world/GameMapProcessor2.java index a296f954..42fe80cc 100644 --- a/illaclient/src/illarion/client/world/GameMapProcessor2.java +++ b/illaclient/src/illarion/client/world/GameMapProcessor2.java @@ -1,201 +1,203 @@ ...
false
true
public static void processTile(final MapTile tile) { final Location playerLocation = World.getPlayer().getLocation(); final MapTile tileAbove = getFirstTileAbove(tile.getLocation(), playerLocation.getScZ() + 2, true); final MapTile tileBelow = getFirstTileBelow(tile.getLocation(), playerLoc...
public static void processTile(final MapTile tile) { final Location playerLocation = World.getPlayer().getLocation(); final MapTile tileAbove = getFirstTileAbove(tile.getLocation(), playerLocation.getScZ() + 2, true); final MapTile tileBelow = getFirstTileBelow(tile.getLocation(), playerLoc...
diff --git a/src/main/java/org/thomnichols/android/gmarks/BookmarksListActivity.java b/src/main/java/org/thomnichols/android/gmarks/BookmarksListActivity.java index cbc4f40..5fc1cc0 100644 --- a/src/main/java/org/thomnichols/android/gmarks/BookmarksListActivity.java +++ b/src/main/java/org/thomnichols/android/gmarks/Bo...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setDefaultKeyMode(DEFAULT_KEYS_SHORTCUT); // bind an action for long-press (not a context menu) getListView().setOnItemLongClickListener(this.longClickListener); this.currentSo...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setDefaultKeyMode(DEFAULT_KEYS_SHORTCUT); // bind an action for long-press (not a context menu) getListView().setOnItemLongClickListener(this.longClickListener); this.currentSo...
diff --git a/GameEngine_Core/com/clinkworks/gameengine/components/GameBase.java b/GameEngine_Core/com/clinkworks/gameengine/components/GameBase.java index 3ecff8e..4c16972 100644 --- a/GameEngine_Core/com/clinkworks/gameengine/components/GameBase.java +++ b/GameEngine_Core/com/clinkworks/gameengine/components/GameBase....
true
true
public GameBase(GameEngine gameEngine){ _gameEngine = gameEngine; _players = new HashMap<PlayerID, Player>(); _gameID = gameEngine.generateNextGameSequence(); }
public GameBase(GameEngine gameEngine){ _gameEngine = gameEngine; _players = new HashMap<PlayerID, Player>(); _gameID = gameEngine.generateNextGameID(); }
diff --git a/HelloWorld/src/HelloWorld.java b/HelloWorld/src/HelloWorld.java index a0242c0..de78655 100644 --- a/HelloWorld/src/HelloWorld.java +++ b/HelloWorld/src/HelloWorld.java @@ -1,11 +1,11 @@ public class HelloWorld { /** * @param args */ public static void main(String[] args) { - System.out.prin...
true
true
public static void main(String[] args) { System.out.println("HelloWorld"); }
public static void main(String[] args) { System.out.println("Hello World"); }
diff --git a/src/main/java/net/floodlightcontroller/core/OFMessageFilterManager.java b/src/main/java/net/floodlightcontroller/core/OFMessageFilterManager.java index b096f79..316c200 100644 --- a/src/main/java/net/floodlightcontroller/core/OFMessageFilterManager.java +++ b/src/main/java/net/floodlightcontroller/core/OFM...
false
true
public String getDataAsString(IOFSwitch sw, OFMessage msg, FloodlightContext cntx) { Ethernet eth; StringBuffer sb = new StringBuffer(""); DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss.SSS"); Date date = new Date(); sb.append(dateFormat.format(date)); sb....
public String getDataAsString(IOFSwitch sw, OFMessage msg, FloodlightContext cntx) { Ethernet eth; StringBuffer sb = new StringBuffer(""); DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss.SSS"); Date date = new Date(); sb.append(dateFormat.format(date)); sb....
diff --git a/FiltersPlugin/src/org/gephi/filters/plugin/edge/EdgeWeightBuilder.java b/FiltersPlugin/src/org/gephi/filters/plugin/edge/EdgeWeightBuilder.java index 1259668ff..00711e708 100644 --- a/FiltersPlugin/src/org/gephi/filters/plugin/edge/EdgeWeightBuilder.java +++ b/FiltersPlugin/src/org/gephi/filters/plugin/edg...
true
true
public Object[] getValues() { if (values == null) { GraphModel gm = Lookup.getDefault().lookup(GraphController.class).getModel(); Graph graph = gm.getGraph(); Float[] weights = new Float[graph.getEdgeCount()]; int i = 0; ...
public Object[] getValues() { if (values == null) { GraphModel gm = Lookup.getDefault().lookup(GraphController.class).getModel(); Graph graph = gm.getGraph(); Float[] weights = new Float[graph.getEdgeCount()]; int i = 0; ...
diff --git a/src/anchovy/GameEngine.java b/src/anchovy/GameEngine.java index a02dd23..4a2e3c2 100644 --- a/src/anchovy/GameEngine.java +++ b/src/anchovy/GameEngine.java @@ -1,804 +1,804 @@ package anchovy; import java.util.ArrayList; import java.util.Iterator; import java.io.*; import anchovy.Components.*; impo...
true
true
public void readfile(String file) throws FileNotFoundException { // FileReader fr=new FileReader(path); // BufferedReader br=new BufferedReader(fr); String path = new java.io.File("").getAbsolutePath() + "/saves/"; FileInputStream fstream = new FileInputStream(path + file + ".fg"); // Get the object of DataI...
public void readfile(String file) throws FileNotFoundException { // FileReader fr=new FileReader(path); // BufferedReader br=new BufferedReader(fr); String path = new java.io.File("").getAbsolutePath() + "/saves/"; FileInputStream fstream = new FileInputStream(path + file + ".fg"); // Get the object of DataI...
diff --git a/src/com/tactfactory/mda/symfony/template/WebGenerator.java b/src/com/tactfactory/mda/symfony/template/WebGenerator.java index dc1914bb..857c2e4d 100644 --- a/src/com/tactfactory/mda/symfony/template/WebGenerator.java +++ b/src/com/tactfactory/mda/symfony/template/WebGenerator.java @@ -1,205 +1,205 @@ pack...
true
true
private ArrayList<String> getCommand(int command){ String projectName = CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_CAMEL, this.appMetas.name); ArrayList<String> commandArgs = new ArrayList<String>(); switch(command){ case INSTALL_SYMFONY: commandArgs.add("php"); commandArgs.add(this.symfonyAdapter.get...
private ArrayList<String> getCommand(int command){ String projectName = CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_CAMEL, this.appMetas.name); ArrayList<String> commandArgs = new ArrayList<String>(); switch(command){ case INSTALL_SYMFONY: commandArgs.add("php"); commandArgs.add(this.symfonyAdapter.get...
diff --git a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/BridJDeclarationsConverter.java b/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/BridJDeclarationsConverter.java index 6cc7f745..ad841845 100644 --- a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/...
true
true
public void convertEnum(Enum e, Signatures signatures, DeclarationsHolder out, Identifier libraryClassName) { if (e.isForwardDeclaration()) return; Identifier rawEnumName = getActualTaggedTypeName(e); List<EnumItemResult> results = getEnumValuesAndCommentsByName(e, signatures, libraryClassName); ...
public void convertEnum(Enum e, Signatures signatures, DeclarationsHolder out, Identifier libraryClassName) { if (e.isForwardDeclaration()) return; Identifier rawEnumName = getActualTaggedTypeName(e); List<EnumItemResult> results = getEnumValuesAndCommentsByName(e, signatures, libraryClassName); ...
diff --git a/src/main/java/uk/co/caprica/vlcj/player/MediaResourceLocator.java b/src/main/java/uk/co/caprica/vlcj/player/MediaResourceLocator.java index 5561a427..d8085e8a 100644 --- a/src/main/java/uk/co/caprica/vlcj/player/MediaResourceLocator.java +++ b/src/main/java/uk/co/caprica/vlcj/player/MediaResourceLocator.ja...
true
true
public static String encodeMrl(String mrl) { Logger.debug("encodeMrl(mrl={})", mrl); // Assume no change needed String result = mrl; // If the supplied MRL contains any Unicode characters... if (containsUnicode(mrl)) { Logger.debug("MRL contains Unicode characters...
public static String encodeMrl(String mrl) { Logger.debug("encodeMrl(mrl={})", mrl); // Assume no change needed String result = mrl; // If the supplied MRL contains any Unicode characters... if (containsUnicode(mrl)) { Logger.debug("MRL contains Unicode characters...
diff --git a/src/com/kill3rtaco/tacoserialization/PlayerStatsSerialization.java b/src/com/kill3rtaco/tacoserialization/PlayerStatsSerialization.java index 3316ee3..2f51872 100644 --- a/src/com/kill3rtaco/tacoserialization/PlayerStatsSerialization.java +++ b/src/com/kill3rtaco/tacoserialization/PlayerStatsSerialization....
true
true
public static JSONObject serializePlayerStats(Player player){ try { JSONObject root = new JSONObject(); if(shouldSerialize("can-fly")) root.put("can-fly", player.getAllowFlight()); if(shouldSerialize("display-name")) root.put("display-name", player.getDisplayName()); if(shouldSerialize("exhaustio...
public static JSONObject serializePlayerStats(Player player){ try { JSONObject root = new JSONObject(); if(shouldSerialize("can-fly")) root.put("can-fly", player.getAllowFlight()); if(shouldSerialize("display-name")) root.put("display-name", player.getDisplayName()); if(shouldSerialize("exhaustio...
diff --git a/plugins/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/MetaDataPopulator.java b/plugins/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/MetaDataPopulator.java index e9aebac9a..5edd78136 100644 --- a/plugins/org.eclipse.birt.report.data....
false
true
public static IResultMetaData retrieveResultMetaData( DataSetHandle dataSetHandle ) throws BirtException { List resultSetList = null; if ( dataSetHandle instanceof OdaDataSetHandle ) { resultSetList = (List) dataSetHandle.getProperty( OdaDataSetHandle.RESULT_SET_PROP ); } else { return null; } ...
public static IResultMetaData retrieveResultMetaData( DataSetHandle dataSetHandle ) throws BirtException { List resultSetList = null; if ( dataSetHandle instanceof OdaDataSetHandle ) { resultSetList = (List) dataSetHandle.getProperty( OdaDataSetHandle.RESULT_SET_PROP ); } else { return null; } ...
diff --git a/Case/src/org/sleuthkit/autopsy/casemodule/AddImageVisualPanel4.java b/Case/src/org/sleuthkit/autopsy/casemodule/AddImageVisualPanel4.java index 87861b89f..6da6a216e 100644 --- a/Case/src/org/sleuthkit/autopsy/casemodule/AddImageVisualPanel4.java +++ b/Case/src/org/sleuthkit/autopsy/casemodule/AddImageVisua...
true
true
private void initComponents() { addImgButton = new javax.swing.JButton(); crDbLabel = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); org.openide.awt.Mnemonics.setLocalizedText(addImgButton, org.openide.util.NbBundle.getMess...
private void initComponents() { addImgButton = new javax.swing.JButton(); crDbLabel = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); org.openide.awt.Mnemonics.setLocalizedText(addImgButton, org.openide.util.NbBundle.getMess...
diff --git a/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java b/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java index 1a257cdc..9d288af9 100755 --- a/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java +++ b/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java @...
false
true
public void setInteractionMode(final String interactionMode) { try { if (DEBUG) { if (log.isDebugEnabled()) { log.debug("setInteractionMode(" + interactionMode + ")\nAlter InteractionMode:" + this.interactionMode + "", ...
public void setInteractionMode(final String interactionMode) { try { if (DEBUG) { if (log.isDebugEnabled()) { log.debug("setInteractionMode(" + interactionMode + ")\nAlter InteractionMode:" + this.interactionMode + "", ...
diff --git a/src/org/eclipse/jface/viewers/TreeViewer.java b/src/org/eclipse/jface/viewers/TreeViewer.java index f185db90..8811d706 100644 --- a/src/org/eclipse/jface/viewers/TreeViewer.java +++ b/src/org/eclipse/jface/viewers/TreeViewer.java @@ -1,1017 +1,1023 @@ /*****************************************************...
false
true
public void replace(final Object parentElementOrTreePath, final int index, final Object element) { preservingSelection(new Runnable() { public void run() { Widget[] itemsToDisassociate; if (parentElementOrTreePath instanceof TreePath) { TreePath elementPath = ((TreePath)parentElementOrTreePath).cr...
public void replace(final Object parentElementOrTreePath, final int index, final Object element) { preservingSelection(new Runnable() { public void run() { Widget[] itemsToDisassociate; if (parentElementOrTreePath instanceof TreePath) { TreePath elementPath = ((TreePath)parentElementOrTreePath).cr...
diff --git a/src/main/java/com/alexrnl/commons/utils/object/ReflectUtils.java b/src/main/java/com/alexrnl/commons/utils/object/ReflectUtils.java index 8e71447..03f0a6b 100644 --- a/src/main/java/com/alexrnl/commons/utils/object/ReflectUtils.java +++ b/src/main/java/com/alexrnl/commons/utils/object/ReflectUtils.java @@ ...
true
true
public static Set<Method> retrieveMethods (final Class<?> objClass, final Class<? extends Annotation> annotationClass) { final Set<Method> fieldMethods = new HashSet<>(); for (final Method method : objClass.getMethods()) { final Annotation annotation = method.getAnnotation(annotationClass); if (annotationCla...
public static Set<Method> retrieveMethods (final Class<?> objClass, final Class<? extends Annotation> annotationClass) { final Set<Method> fieldMethods = new HashSet<>(); for (final Method method : objClass.getMethods()) { if (annotationClass == null || method.getAnnotation(annotationClass) != null) { if (l...
diff --git a/guma/arithmetic/Praxis.java b/guma/arithmetic/Praxis.java index a7f149b..32d5dcb 100644 --- a/guma/arithmetic/Praxis.java +++ b/guma/arithmetic/Praxis.java @@ -1,288 +1,288 @@ /** *GUMA a simple math game for elementary school students * Copyright (C) 2011-1012 Dimitrios Desyllas (pc_magas) * * This ...
false
true
public static Praxis makePraxis(char praxisType,int maxNum) { Praxis p=null; switch(praxisType) { case Praxis.ADDING: p=new Prosthesis(maxNum+1); break; case Praxis.SUBSTRACTION: p=new Afairesis(maxNum+1); break; case Praxis.DIVISION: p=new Diairesis(maxNum+1); break; cas...
public static Praxis makePraxis(char praxisType,int maxNum) { Praxis p=null; switch(praxisType) { case Praxis.ADDING: p=new Prosthesis(maxNum); break; case Praxis.SUBSTRACTION: p=new Afairesis(maxNum); break; case Praxis.DIVISION: p=new Diairesis(maxNum); break; case Prax...
diff --git a/src/main/MainWindow.java b/src/main/MainWindow.java index b9f475b..4e93813 100644 --- a/src/main/MainWindow.java +++ b/src/main/MainWindow.java @@ -1,119 +1,120 @@ /* * MainWindow.java * * Created on 2010/05/16, 0:56:28 */ package main; import java.awt.event.KeyEvent; /** * * @author ya...
true
true
private void initComponents() { textArea = new javax.swing.JTextArea(); labelCount = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("そーめん大陸"); textArea.setColumns(20); textArea.setLineWrap(true); text...
private void initComponents() { textArea = new javax.swing.JTextArea(); labelCount = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("そーめん大陸"); textArea.setColumns(20); textArea.setLineWrap(true); text...
diff --git a/Cube.java b/Cube.java index 1a9335e..f981300 100644 --- a/Cube.java +++ b/Cube.java @@ -1,507 +1,507 @@ import java.util.*; /* * Cube.java * making a test comment */ public class Cube { // Constants public static int X = 0; public static int Y = 1; public stat...
false
true
public boolean lockedDome() { // do you have a locked dome? *Denotes legal positioning* for (int i = 0; i < faces.length; i++) { String neighbor = null; if (faces[i] == XUP) { neighbor = "" + (location[X] + 1) + "," + location[Y] + "," + ...
public boolean lockedDome() { // do you have a locked dome? *Denotes legal positioning* for (int i = 0; i < faces.length; i++) { String neighbor = null; if (faces[i] == XUP) { neighbor = "" + (location[X] + 1) + "," + location[Y] + "," + ...
diff --git a/car.ioMockup/src/car/io/application/ECApplication.java b/car.ioMockup/src/car/io/application/ECApplication.java index 8bff4d44..a938d07e 100644 --- a/car.ioMockup/src/car/io/application/ECApplication.java +++ b/car.ioMockup/src/car/io/application/ECApplication.java @@ -1,865 +1,874 @@ package car.io.appli...
false
true
private void createNewTrackIfNecessary() { // TODO decode vin or read from shared preferences... // setting undefined, will hopefully prevent correct uploading. // but this shouldn't be possible to record tracks without these values String fuelType = preferences .getString(PREF_KEY_FUEL_TYPE, "undefined"...
private void createNewTrackIfNecessary() { // TODO decode vin or read from shared preferences... // setting undefined, will hopefully prevent correct uploading. // but this shouldn't be possible to record tracks without these values String fuelType = preferences .getString(PREF_KEY_FUEL_TYPE, "undefined"...
diff --git a/BusesSpb/src/main/java/ru/slavabulgakov/busesspb/controller/NetCheckState.java b/BusesSpb/src/main/java/ru/slavabulgakov/busesspb/controller/NetCheckState.java index 89ac66f..4a751aa 100644 --- a/BusesSpb/src/main/java/ru/slavabulgakov/busesspb/controller/NetCheckState.java +++ b/BusesSpb/src/main/java/ru/...
true
true
public void run() { StringRequest request = new StringRequest("http://futbix.ru/busesspb/v1_0/list/version/", new Response.Listener<String>() { @Override public void onResponse(String response) { Log.d("internet", "success"); _control...
public void run() { StringRequest request = new StringRequest("http://futbix.ru/busesspb/v1_0/list/version/", new Response.Listener<String>() { @Override public void onResponse(String response) { Log.d("internet", "success"); _control...
diff --git a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/ui/widget/DanmakuSurfaceView.java b/DanmakuFlameMaster/src/main/java/master/flame/danmaku/ui/widget/DanmakuSurfaceView.java index 7b8ac5c..0656886 100644 --- a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/ui/widget/DanmakuSurfaceView.java +++ b...
true
true
public void handleMessage(Message msg) { int what = msg.what; switch (what) { case PREPARE: if(mParser==null || !isSurfaceCreated){ sendEmptyMessageDelayed(PREPARE,100); }else{ prepare(new Runnable()...
public void handleMessage(Message msg) { int what = msg.what; switch (what) { case PREPARE: if(mParser==null || !isSurfaceCreated){ sendEmptyMessageDelayed(PREPARE,100); }else{ prepare(new Runnable()...
diff --git a/HomeProtector9000/src/controller/HomeProtectorFrame.java b/HomeProtector9000/src/controller/HomeProtectorFrame.java index b24353a..5977704 100644 --- a/HomeProtector9000/src/controller/HomeProtectorFrame.java +++ b/HomeProtector9000/src/controller/HomeProtectorFrame.java @@ -1,358 +1,358 @@ package contro...
false
true
public HomeProtectorFrame(String title) { super(title); this.setLayout(null); worldModel = new World(defaultWorldWidth, defaultWorldHeight); worldPanel = new WorldPanel(worldModel); worldPanel.setBounds(15, 15, 540, 540); this.add(worldPanel); ArrayList<Model> startingObjects = defaultObjects...
public HomeProtectorFrame(String title) { super(title); this.setLayout(null); worldModel = new World(defaultWorldWidth, defaultWorldHeight); worldPanel = new WorldPanel(worldModel); worldPanel.setBounds(15, 15, 540, 540); this.add(worldPanel); ArrayList<Model> startingObjects = defaultObjects...
diff --git a/android/ShareBox/src/de/tubs/ibr/dtn/sharebox/TarExtractor.java b/android/ShareBox/src/de/tubs/ibr/dtn/sharebox/TarExtractor.java index 072275e8..f78e84c7 100644 --- a/android/ShareBox/src/de/tubs/ibr/dtn/sharebox/TarExtractor.java +++ b/android/ShareBox/src/de/tubs/ibr/dtn/sharebox/TarExtractor.java @@ -1...
false
true
public void run() { mExtractedFiles = new LinkedList<File>(); if (mListener != null) mListener.onStateChanged(this, 0); try { final TarArchiveInputStream tais = (TarArchiveInputStream) new ArchiveStreamFactory().createArchiveInputStream("tar", mInput); ...
public void run() { mExtractedFiles = new LinkedList<File>(); if (mListener != null) mListener.onStateChanged(this, 0); try { final TarArchiveInputStream tais = (TarArchiveInputStream) new ArchiveStreamFactory().createArchiveInputStream("tar", mInput); ...
diff --git a/sikuli-ide/src/main/java/edu/mit/csail/uid/SikuliPane.java b/sikuli-ide/src/main/java/edu/mit/csail/uid/SikuliPane.java index 731463cc..61469739 100644 --- a/sikuli-ide/src/main/java/edu/mit/csail/uid/SikuliPane.java +++ b/sikuli-ide/src/main/java/edu/mit/csail/uid/SikuliPane.java @@ -1,1139 +1,1139 @@ pa...
true
true
boolean replaceWithImage(int startOff, int endOff) throws BadLocationException{ Document doc = getDocument(); String imgStr = doc.getText(startOff, endOff - startOff); String filename = imgStr.substring(1,endOff-startOff-1);; boolean useParameters = ...
boolean replaceWithImage(int startOff, int endOff) throws BadLocationException{ Document doc = getDocument(); String imgStr = doc.getText(startOff, endOff - startOff); String filename = imgStr.substring(1,endOff-startOff-1);; boolean useParameters = ...
diff --git a/patches/target-build/bi-platform-web-servlet/src/pt/webdetails/cdf/NavigateComponent.java b/patches/target-build/bi-platform-web-servlet/src/pt/webdetails/cdf/NavigateComponent.java index 99462e1d..90bba730 100755 --- a/patches/target-build/bi-platform-web-servlet/src/pt/webdetails/cdf/NavigateComponent.ja...
true
true
private String getContentListJSON(String _solution, String _path) throws JSONException { Document navDoc = solutionRepository.getSolutionTree(ISolutionRepository.ACTION_EXECUTE); // Get it and build the tree JSONObject contentListJSON = new JSONObject(); Node tree = navDoc.getRoo...
private String getContentListJSON(String _solution, String _path) throws JSONException { Document navDoc = solutionRepository.getSolutionTree(ISolutionRepository.ACTION_EXECUTE); // Get it and build the tree JSONObject contentListJSON = new JSONObject(); Node tree = navDoc.getRoo...
diff --git a/src/org/plovr/cli/SoyWebCommand.java b/src/org/plovr/cli/SoyWebCommand.java index 3b936fb41..5c1039ac1 100644 --- a/src/org/plovr/cli/SoyWebCommand.java +++ b/src/org/plovr/cli/SoyWebCommand.java @@ -1,64 +1,64 @@ package org.plovr.cli; import java.io.File; import java.io.FileReader; import java.io.I...
true
true
int runCommandWithOptions(SoyWebCommandOptions options) throws IOException { String pathToGlobals = options.getCompileTimeGlobalsFile(); Map<String, ?> globals; if (pathToGlobals == null) { globals = ImmutableMap.of(); } else { File globalsFile = new File(pathToGlobals); if (!globals...
int runCommandWithOptions(SoyWebCommandOptions options) throws IOException { String pathToGlobals = options.getCompileTimeGlobalsFile(); Map<String, ?> globals; if (pathToGlobals == null) { globals = ImmutableMap.of(); } else { File globalsFile = new File(pathToGlobals); if (!globals...
diff --git a/src/org/irmacard/web/restapi/resources/VerificationProtocolResource.java b/src/org/irmacard/web/restapi/resources/VerificationProtocolResource.java index eca5d38..8fefecc 100644 --- a/src/org/irmacard/web/restapi/resources/VerificationProtocolResource.java +++ b/src/org/irmacard/web/restapi/resources/Verif...
false
true
public String handleProtocolStep(String id, int step, String value) { String verifier = (String) getRequestAttributes().get("verifier"); String specName = (String) getRequestAttributes().get("specname"); Gson gson = new GsonBuilder() .setPrettyPrinting() .registerTypeAdapter(ProtocolCommand.class, ne...
public String handleProtocolStep(String id, int step, String value) { String verifier = (String) getRequestAttributes().get("verifier"); String specName = (String) getRequestAttributes().get("specname"); Gson gson = new GsonBuilder() .setPrettyPrinting() .registerTypeAdapter(ProtocolCommand.class, ne...
diff --git a/plugins/reportal/src/azkaban/viewer/reportal/ReportalServlet.java b/plugins/reportal/src/azkaban/viewer/reportal/ReportalServlet.java index 72b278d..8ae0ae1 100644 --- a/plugins/reportal/src/azkaban/viewer/reportal/ReportalServlet.java +++ b/plugins/reportal/src/azkaban/viewer/reportal/ReportalServlet.java...
false
true
private void handleEditAddReportal(HttpServletRequest req, HttpServletResponse resp, Session session) throws ServletException, IOException { ProjectManager projectManager = server.getProjectManager(); Page page = newPage(req, resp, session, "azkaban/viewer/reportal/reportaleditpage.vm"); preparePage(page, sessi...
private void handleEditAddReportal(HttpServletRequest req, HttpServletResponse resp, Session session) throws ServletException, IOException { ProjectManager projectManager = server.getProjectManager(); Page page = newPage(req, resp, session, "azkaban/viewer/reportal/reportaleditpage.vm"); preparePage(page, sessi...
diff --git a/plugin/fiji/ffmpeg/Exporter.java b/plugin/fiji/ffmpeg/Exporter.java index c0830cb..b8e3d7a 100644 --- a/plugin/fiji/ffmpeg/Exporter.java +++ b/plugin/fiji/ffmpeg/Exporter.java @@ -1,68 +1,72 @@ package fiji.ffmpeg; /* * Simple movie writer for ImageJ using ffmpeg-java; based on Libavformat API * ex...
false
true
public void run(String arg) { IO io; try { io = new IO(new IJProgress()); } catch (IOException e) { IJ.error("This plugin needs ffmpeg to be installed!"); return; } ImagePlus image = WindowManager.getCurrentImage(); if (image == null) { IJ.error("No image is open"); return; } // TODO: ...
public void run(String arg) { IO io; try { io = new IO(new IJProgress()); } catch (IOException e) { IJ.error("This plugin needs ffmpeg to be installed!"); return; } ImagePlus image = WindowManager.getCurrentImage(); if (image == null) { IJ.error("No image is open"); return; } // TODO: ...