Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java b/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java index f12c7d0..de5e74f 100644 --- a/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java +++ b/src/main/java/org/dasein/cloud/cloudstack/compute/...
true
true
private @Nullable VirtualMachine toVirtualMachine(@Nullable Node node) throws CloudException, InternalException { if( node == null ) { return null; } HashMap<String,String> properties = new HashMap<String,String>(); VirtualMachine server = new VirtualMachine(); No...
private @Nullable VirtualMachine toVirtualMachine(@Nullable Node node) throws CloudException, InternalException { if( node == null ) { return null; } HashMap<String,String> properties = new HashMap<String,String>(); VirtualMachine server = new VirtualMachine(); No...
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/ArtifactEdit.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/ArtifactEdit.java index 5a13db80..b9e5e6aa 100644 --- a/plugins/org.eclipse.wst.common.modulecore/m...
true
true
protected ArtifactEdit(IProject aProject, boolean toAccessAsReadOnly, boolean forCreate, String projectType, Map editModelParams) throws IllegalArgumentException { if (aProject == null || !aProject.isAccessible()) throw new IllegalArgumentException("Invalid project: " + aProject); ModuleCoreNature nature = Mo...
protected ArtifactEdit(IProject aProject, boolean toAccessAsReadOnly, boolean forCreate, String projectType, Map editModelParams) throws IllegalArgumentException { if (aProject == null || !aProject.isAccessible()) throw new IllegalArgumentException("Invalid project: " + aProject); ModuleCoreNature nature = Mo...
diff --git a/modules/library/jdbc/src/test/java/org/geotools/jdbc/EscapeSqlTest.java b/modules/library/jdbc/src/test/java/org/geotools/jdbc/EscapeSqlTest.java index 291be9da87..54f1d48c16 100644 --- a/modules/library/jdbc/src/test/java/org/geotools/jdbc/EscapeSqlTest.java +++ b/modules/library/jdbc/src/test/java/org/ge...
false
true
public void testSqlEscaping() throws Exception { VirtualTable vt = new VirtualTable("test", "%param1%"); vt.setEscapeSql(true); vt.addParameter(new VirtualTableParameter("param1", "default_value", new RegexpValidator(".*"))); String singleQuote = vt.expandParameters(new Hints( ...
public void testSqlEscaping() throws Exception { VirtualTable vt = new VirtualTable("test", "%param1%"); vt.setEscapeSql(true); vt.addParameter(new VirtualTableParameter("param1", "default_value", new RegexpValidator(".*"))); String singleQuote = vt.expandParameters(new Hints( ...
diff --git a/examples/stanfordBlacklight/test/src/edu/stanford/ItemInfoTests.java b/examples/stanfordBlacklight/test/src/edu/stanford/ItemInfoTests.java index b467736..7fc69d1 100644 --- a/examples/stanfordBlacklight/test/src/edu/stanford/ItemInfoTests.java +++ b/examples/stanfordBlacklight/test/src/edu/stanford/ItemIn...
true
true
public final void testItemDisplayBuildings() throws ParserConfigurationException, IOException, SAXException { String fldName = "item_display"; createIxInitVars("buildingTests.mrc"); assertDisplayFieldProperties(fldName); assertFieldMultiValued(fldName); // APPLIEDPHY ignored for building facet, but n...
public final void testItemDisplayBuildings() throws ParserConfigurationException, IOException, SAXException { String fldName = "item_display"; createIxInitVars("buildingTests.mrc"); assertDisplayFieldProperties(fldName); assertFieldMultiValued(fldName); // APPLIEDPHY ignored for building facet, but n...
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java index 35c9018..3455e2a 100644 --- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java +++ b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java...
false
true
public static Test suite() { TestSuite suite = new TestSuite("Test for org.eclipse.mylar.tests"); ErrorLogger.setDumpErrors(true); MylarIdePlugin.getDefault().setResourceMonitoringEnabled(false); // TODO: the order of these tests matters, but shouldn't //$JUnit-BEGI...
public static Test suite() { TestSuite suite = new TestSuite("Test for org.eclipse.mylar.tests"); ErrorLogger.setDumpErrors(true); MylarIdePlugin.getDefault().setResourceMonitoringEnabled(false); // TODO: the order of these tests matters, but shouldn't //$JUnit-BEGI...
diff --git a/src/main/java/org/basex/io/serial/Serializer.java b/src/main/java/org/basex/io/serial/Serializer.java index e3d618a40..368aa9926 100644 --- a/src/main/java/org/basex/io/serial/Serializer.java +++ b/src/main/java/org/basex/io/serial/Serializer.java @@ -1,484 +1,485 @@ package org.basex.io.serial; import...
true
true
private void serialize(final DBNode node) throws IOException { final FTPosData ft = node instanceof FTPosNode ? ((FTPosNode) node).ft : null; final Data data = node.data; int p = node.pre; int k = data.kind(p); if(k == Data.ATTR) SERATTR.thrwSerial(node); boolean doc = false; final TokenS...
private void serialize(final DBNode node) throws IOException { final FTPosData ft = node instanceof FTPosNode ? ((FTPosNode) node).ft : null; final Data data = node.data; int p = node.pre; int k = data.kind(p); if(k == Data.ATTR) SERATTR.thrwSerial(node); boolean doc = false; final TokenS...
diff --git a/nexus/nexus-app/src/main/java/org/sonatype/nexus/configuration/security/DefaultNexusSecurityConfiguration.java b/nexus/nexus-app/src/main/java/org/sonatype/nexus/configuration/security/DefaultNexusSecurityConfiguration.java index 7594ff470..64495ca27 100644 --- a/nexus/nexus-app/src/main/java/org/sonatype/...
true
true
private ValidationResponse crossValidateRepoTargetPrivilege( CRepoTargetPrivilege settings ) { ValidationResponse vr = new SecurityValidationResponse(); CRepositoryTarget target = nexusConfiguration.readRepositoryTarget( settings.getRepositoryTargetId() ); // Invalid ta...
private ValidationResponse crossValidateRepoTargetPrivilege( CRepoTargetPrivilege settings ) { ValidationResponse vr = new SecurityValidationResponse(); CRepositoryTarget target = nexusConfiguration.readRepositoryTarget( settings.getRepositoryTargetId() ); // Invalid ta...
diff --git a/src/lobos/andrew/cuptagclient/CheckCup.java b/src/lobos/andrew/cuptagclient/CheckCup.java index 6234be2..bbe584f 100644 --- a/src/lobos/andrew/cuptagclient/CheckCup.java +++ b/src/lobos/andrew/cuptagclient/CheckCup.java @@ -1,68 +1,68 @@ package lobos.andrew.cuptagclient; import java.io.ByteArrayOutput...
true
true
protected String doInBackground(String... input) { try { if ( input.length != 2 ) return "Bad request"; HttpClient httpclient = new DefaultHttpClient(); HttpResponse response = httpclient.execute(new HttpGet("http://andrew.lobos.me/cans/check.php?data="+input[0]+"&name="+input[1])); Statu...
protected String doInBackground(String... input) { try { if ( input.length != 2 ) return "Bad request"; HttpClient httpclient = new DefaultHttpClient(); HttpResponse response = httpclient.execute(new HttpGet("http://andrew.lobos.me/cans/check.php?data="+input[0]+"&name="+input[1])); Statu...
diff --git a/src/tconstruct/library/TConstructRegistry.java b/src/tconstruct/library/TConstructRegistry.java index 301d5bc4c..43228caca 100644 --- a/src/tconstruct/library/TConstructRegistry.java +++ b/src/tconstruct/library/TConstructRegistry.java @@ -1,705 +1,707 @@ package tconstruct.library; import java.lang.re...
true
true
static void initializeDrawbridgeState () { drawbridgeState[Block.stone.blockID] = 1; drawbridgeState[Block.grass.blockID] = 1; drawbridgeState[Block.dirt.blockID] = 1; drawbridgeState[Block.cobblestone.blockID] = 1; drawbridgeState[Block.bedrock.blockID] = 2; draw...
static void initializeDrawbridgeState () { drawbridgeState[Block.stone.blockID] = 1; drawbridgeState[Block.grass.blockID] = 1; drawbridgeState[Block.dirt.blockID] = 1; drawbridgeState[Block.cobblestone.blockID] = 1; drawbridgeState[Block.bedrock.blockID] = 2; draw...
diff --git a/infrastructure/tools/java/repository-manager/src/edu/uci/ics/sourcerer/repo/extracted/ExtractedRepository.java b/infrastructure/tools/java/repository-manager/src/edu/uci/ics/sourcerer/repo/extracted/ExtractedRepository.java index 14b1f960..e61a2bea 100755 --- a/infrastructure/tools/java/repository-manager/...
false
true
public void computeExtractionStats() { includeNotExtracted = true; TablePrettyPrinter printer = TablePrettyPrinter.getTablePrettyPrinter(EXTRACTION_STATS_FILE); if (libraries == null) { logger.info("Loading libraries..."); populateLibraries(); } logger.info("Computing stats for " + lib...
public void computeExtractionStats() { includeNotExtracted = true; TablePrettyPrinter printer = TablePrettyPrinter.getTablePrettyPrinter(EXTRACTION_STATS_FILE); if (libraries == null) { logger.info("Loading libraries..."); populateLibraries(); } logger.info("Computing stats for " + lib...
diff --git a/src/com/gradugation/MainGameScreen.java b/src/com/gradugation/MainGameScreen.java index 76237ec..88e8787 100644 --- a/src/com/gradugation/MainGameScreen.java +++ b/src/com/gradugation/MainGameScreen.java @@ -1,972 +1,972 @@ package com.gradugation; import java.io.IOException; import java.util.ArrayLis...
true
true
public Scene onCreateScene() { this.mEngine.registerUpdateHandler(new FPSLogger()); final Scene scene = new Scene(); /* * User Interface HUD At each corner of the screen, will display * player's information Include number of credits There will be a button * to roll dice and turn number will be disp...
public Scene onCreateScene() { this.mEngine.registerUpdateHandler(new FPSLogger()); final Scene scene = new Scene(); /* * User Interface HUD At each corner of the screen, will display * player's information Include number of credits There will be a button * to roll dice and turn number will be disp...
diff --git a/online-local/src/net/myrrix/online/generation/InputFilesReader.java b/online-local/src/net/myrrix/online/generation/InputFilesReader.java index 06479ce..836364f 100644 --- a/online-local/src/net/myrrix/online/generation/InputFilesReader.java +++ b/online-local/src/net/myrrix/online/generation/InputFilesRea...
false
true
static void readInputFiles(FastByIDMap<FastIDSet> knownItemIDs, FastByIDMap<FastByIDFloatMap> rbyRow, FastByIDMap<FastByIDFloatMap> rbyColumn, File inputDir) throws IOException { FilenameFilter csvFilter = new PatternFilenameF...
static void readInputFiles(FastByIDMap<FastIDSet> knownItemIDs, FastByIDMap<FastByIDFloatMap> rbyRow, FastByIDMap<FastByIDFloatMap> rbyColumn, File inputDir) throws IOException { FilenameFilter csvFilter = new PatternFilenameF...
diff --git a/src/loci/visbio/ome/ImageUploader.java b/src/loci/visbio/ome/ImageUploader.java index 486448a..0d6ee13 100644 --- a/src/loci/visbio/ome/ImageUploader.java +++ b/src/loci/visbio/ome/ImageUploader.java @@ -1,139 +1,139 @@ // // ImageUploader.java // /* VisBio application for visualization of multidime...
true
true
public void upload(loci.visbio.data.Dataset data, String server, String username, String password) { try { OMEWriter writer = new OMEWriter(); BufferedImageWriter biWriter = new BufferedImageWriter(writer); ServiceFactory factory = new ServiceFactory(); OMEXMLService service = ...
public void upload(loci.visbio.data.Dataset data, String server, String username, String password) { try { OMEWriter writer = new OMEWriter(); BufferedImageWriter biWriter = new BufferedImageWriter(writer); ServiceFactory factory = new ServiceFactory(); OMEXMLService service = ...
diff --git a/src/main/java/thredds/server/sos/service/MetadataParser.java b/src/main/java/thredds/server/sos/service/MetadataParser.java index d6c6331..c2b80e9 100644 --- a/src/main/java/thredds/server/sos/service/MetadataParser.java +++ b/src/main/java/thredds/server/sos/service/MetadataParser.java @@ -1,244 +1,245 @@...
true
true
public static void enhance(final NetcdfDataset dataset, final Writer writer, final String query) { MockGetCapP = null; xmlString = null; EventTime =null; isMultiTime = false; isMultiObsProperties = false; //get the extent of the Netcdf file Lat/lon/time Exten...
public static void enhance(final NetcdfDataset dataset, final Writer writer, final String query) { MockGetCapP = null; xmlString = null; EventTime =null; isMultiTime = false; isMultiObsProperties = false; //get the extent of the Netcdf file Lat/lon/time Exten...
diff --git a/src/cytoscape/actions/ExportVizmapAction.java b/src/cytoscape/actions/ExportVizmapAction.java index dddec6a0c..c21a4b059 100644 --- a/src/cytoscape/actions/ExportVizmapAction.java +++ b/src/cytoscape/actions/ExportVizmapAction.java @@ -1,156 +1,156 @@ /* Copyright (c) 2006, 2007, The Cytoscape Consortiu...
true
true
public void actionPerformed(ActionEvent e) { String name; try { name = FileUtil.getFile("Export Vizmaper as property file", FileUtil.SAVE, new CyFileFilter[] { }).toString(); } catch (Exception exp) { // this is because the selection was canceled return; } if (!name.end...
public void actionPerformed(ActionEvent e) { String name; try { name = FileUtil.getFile("Export Vizmap property file", FileUtil.SAVE, new CyFileFilter[] { }).toString(); } catch (Exception exp) { // this is because the selection was canceled return; } if (!name.endsWith...
diff --git a/src/main/java/fr/ybo/ybotv/android/activity/ProgrammeActivity.java b/src/main/java/fr/ybo/ybotv/android/activity/ProgrammeActivity.java index c06586f..3f11ce0 100644 --- a/src/main/java/fr/ybo/ybotv/android/activity/ProgrammeActivity.java +++ b/src/main/java/fr/ybo/ybotv/android/activity/ProgrammeActivity....
true
true
public static void contructResumeView(Activity context, GetView getView, Programme programme) { ImageLoader imageLoader = new ImageLoader(context.getApplicationContext()); ImageView icon = (ImageView) getView.findViewById(R.id.programme_resume_icon); ImageView rating = (ImageView) getView.f...
public static void contructResumeView(Activity context, GetView getView, Programme programme) { ImageLoader imageLoader = new ImageLoader(context.getApplicationContext()); ImageView icon = (ImageView) getView.findViewById(R.id.programme_resume_icon); ImageView rating = (ImageView) getView.f...
diff --git a/JavaSource/org/unitime/timetable/onlinesectioning/OnlineSectioningLogger.java b/JavaSource/org/unitime/timetable/onlinesectioning/OnlineSectioningLogger.java index 7eb084f7..a27c3a31 100644 --- a/JavaSource/org/unitime/timetable/onlinesectioning/OnlineSectioningLogger.java +++ b/JavaSource/org/unitime/time...
false
true
public void run() { sLog.info("Online Sectioning Logger is up."); try { iActive = true; try { iOut = new PrintWriter(new FileWriter(new File(ApplicationProperties.getDataFolder(), "sectioning.log"), true)); } catch (IOException e) { sLog.warn("Unable to create sectioning log: " + e.getMessage(), e...
public void run() { sLog.info("Online Sectioning Logger is up."); try { iActive = true; while (true) { try { sleep(60000); } catch (InterruptedException e) { } List<OnlineSectioningLog.Action> actionsToSave = null; synchronized (iActions) { if (!iActions.isEmpty()) { actio...
diff --git a/src/ch9k/chat/AddContactController.java b/src/ch9k/chat/AddContactController.java index 4507a83..fc41807 100644 --- a/src/ch9k/chat/AddContactController.java +++ b/src/ch9k/chat/AddContactController.java @@ -1,62 +1,63 @@ package ch9k.chat; import ch9k.chat.gui.AddContactPanel; import ch9k.core.ChatAp...
true
true
public boolean addContact(String username, String inetAddress) { InetAddress ip = null; boolean hasErrors = true; // do some validation if(username.isEmpty() || inetAddress.isEmpty()) { view.setError(I18n.get("ch9k.core", "error_fill_all_fields")); } else { ...
public boolean addContact(String username, String inetAddress) { InetAddress ip = null; boolean hasErrors = true; // do some validation if(username.isEmpty() || inetAddress.isEmpty()) { view.setError(I18n.get("ch9k.core", "error_fill_all_fields")); } else { ...
diff --git a/src/org/eclipse/jface/action/ToolBarContributionItem.java b/src/org/eclipse/jface/action/ToolBarContributionItem.java index 5522a21f..f20e5a80 100644 --- a/src/org/eclipse/jface/action/ToolBarContributionItem.java +++ b/src/org/eclipse/jface/action/ToolBarContributionItem.java @@ -1,637 +1,637 @@ /*******...
true
true
public void fill(CoolBar coolBar, int index) { if (checkDisposed()) { return; } if (coolItem == null && coolBar != null) { ToolBar oldToolBar = toolBarManager.getControl(); ToolBar toolBar = toolBarManager.createControl(coolBar); if ((oldToolBar != null) && (!old...
public void fill(CoolBar coolBar, int index) { if (checkDisposed()) { return; } if (coolItem == null && coolBar != null) { ToolBar oldToolBar = toolBarManager.getControl(); ToolBar toolBar = toolBarManager.createControl(coolBar); if ((oldToolBar != null) && (oldT...
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/templates/NameTagHandler.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/templates/NameTagHandler.java index e2787175..b5d3afa9 100644 --- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/templates/NameTagHandler.java +++ b/java/gadg...
true
true
public void process(Node result, Element tag, TemplateProcessor processor) { JSONObject person = getValueFromTag(tag, PERSON_ATTR, processor, JSONObject.class); if (person == null) { return; } JSONObject name = person.optJSONObject("name"); if (name == null) { return; } String...
public void process(Node result, Element tag, TemplateProcessor processor) { JSONObject person = getValueFromTag(tag, PERSON_ATTR, processor, JSONObject.class); if (person == null) { return; } JSONObject name = person.optJSONObject("name"); if (name == null) { return; } String...
diff --git a/src/main/java/com/thisisdinosaur/protosaurus/shared/ResourceNodeDrawer.java b/src/main/java/com/thisisdinosaur/protosaurus/shared/ResourceNodeDrawer.java index 64281f7..a67e36f 100644 --- a/src/main/java/com/thisisdinosaur/protosaurus/shared/ResourceNodeDrawer.java +++ b/src/main/java/com/thisisdinosaur/pr...
true
true
public void draw(Graphics2D g) { if(gameEntity.getOwner() == null) { g.setColor(DEFAULT_CITY_COLOUR); } else { g.setColor(Color.CYAN); } g.fillOval(CITY_DIAMETER * -2, CITY_DIAMETER * -2, CITY_DIAMETER, CITY_DIAMETER); }
public void draw(Graphics2D g) { if(gameEntity.getOwner() == null) { g.setColor(DEFAULT_CITY_COLOUR); } else { g.setColor(Color.CYAN); } g.fillOval(-CITY_DIAMETER / 2, -CITY_DIAMETER / 2, CITY_DIAMETER, CITY_DIAMETER); }
diff --git a/src/jag/kumamoto/apps/StampRally/LocationInfoActivity.java b/src/jag/kumamoto/apps/StampRally/LocationInfoActivity.java index 692b1c9..2222752 100644 --- a/src/jag/kumamoto/apps/StampRally/LocationInfoActivity.java +++ b/src/jag/kumamoto/apps/StampRally/LocationInfoActivity.java @@ -1,423 +1,423 @@ packag...
true
true
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle extras = getIntent().getExtras(); if(extras == null) { setResult(Activity.RESULT_CANCELED); finish(); return; } mPin = (StampPin)extras.getParcelable(ConstantValue.ExtrasStampPin); boo...
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle extras = getIntent().getExtras(); if(extras == null) { setResult(Activity.RESULT_CANCELED); finish(); return; } mPin = (StampPin)extras.getParcelable(ConstantValue.ExtrasStampPin); boo...
diff --git a/src/org/napile/idea/plugin/highlighter/JetColorSettingsPage.java b/src/org/napile/idea/plugin/highlighter/JetColorSettingsPage.java index 6ba5097..2433724 100644 --- a/src/org/napile/idea/plugin/highlighter/JetColorSettingsPage.java +++ b/src/org/napile/idea/plugin/highlighter/JetColorSettingsPage.java @@ ...
true
true
public AttributesDescriptor[] getAttributeDescriptors() { return new AttributesDescriptor[]{ new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.keyword"), JetHighlightingColors.KEYWORD), new AttributesDescriptor(JetBundle.message("options.idea.attribute.descriptor.builtin.anno...
public AttributesDescriptor[] getAttributeDescriptors() { return new AttributesDescriptor[]{ new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.keyword"), JetHighlightingColors.KEYWORD), new AttributesDescriptor(JetBundle.message("options.idea.attribute.descriptor.builtin.anno...
diff --git a/src/de/hotmail/gurkilein/bankcraft/database/mysql/ExperienceMysqlInterface.java b/src/de/hotmail/gurkilein/bankcraft/database/mysql/ExperienceMysqlInterface.java index adfb0ca..d89185b 100644 --- a/src/de/hotmail/gurkilein/bankcraft/database/mysql/ExperienceMysqlInterface.java +++ b/src/de/hotmail/gurkilei...
true
true
public Integer getBalance(String player) { if (!hasAccount(player.toLowerCase())) { createAccount(player.toLowerCase()); } try { String sql = "SELECT `balance_xp` FROM `bc_accounts` WHERE `player_name` = ?"; PreparedStatement preparedUpdateStatement = conn.prepareStatement(sql); ...
public Integer getBalance(String player) { if (!hasAccount(player.toLowerCase())) { createAccount(player.toLowerCase()); } try { String sql = "SELECT `balance_xp` FROM `bc_accounts` WHERE `player_name` = ?"; PreparedStatement preparedUpdateStatement = conn.prepareStatement(sql); ...
diff --git a/src/info/guardianproject/iocipher/IOCipherFileChannel.java b/src/info/guardianproject/iocipher/IOCipherFileChannel.java index 6b7d81d..120a839 100644 --- a/src/info/guardianproject/iocipher/IOCipherFileChannel.java +++ b/src/info/guardianproject/iocipher/IOCipherFileChannel.java @@ -1,648 +1,649 @@ /* Lic...
true
true
private int readImpl(ByteBuffer buffer, long position) throws IOException { // buffer.checkWritable(); // TODO ByteBuffer.checkWritable() is // protected checkOpen(); checkReadable(); if (!buffer.hasRemaining()) { return 0; } int bytesRead = 0; boolean completed = false; try { begin(); try {...
private int readImpl(ByteBuffer buffer, long position) throws IOException { if(buffer.isReadOnly()) { throw new IllegalArgumentException("read-only buffer"); } checkOpen(); checkReadable(); if (!buffer.hasRemaining()) { return 0; } int bytesRead = 0; boolean completed = false; try { begin();...
diff --git a/providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyConnectionsPool.java b/providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyConnectionsPool.java index b09a22462..c53b086b4 100644 --- a/providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyConnect...
false
true
public void run() { try { if (isClosed.get()) return; if (log.isDebugEnabled()) { Set<String> keys = connectionsPool.keySet(); for (String s : keys) { log.debug("Entry count for : {} : {}", s, connectio...
public void run() { try { if (isClosed.get()) return; if (log.isDebugEnabled()) { Set<String> keys = connectionsPool.keySet(); for (String s : keys) { log.debug("Entry count for : {} : {}", s, connectio...
diff --git a/okapi-ui/swt/steps/rainbowkit-ui/src/main/java/net/sf/okapi/steps/rainbowkit/ui/CreationParametersEditor.java b/okapi-ui/swt/steps/rainbowkit-ui/src/main/java/net/sf/okapi/steps/rainbowkit/ui/CreationParametersEditor.java index 5e4893ad0..27f10c36b 100644 --- a/okapi-ui/swt/steps/rainbowkit-ui/src/main/jav...
false
true
private void createComposite (Composite parent) { optEditors = new ArrayList<String>(); optStrings = new ArrayList<IParameters>(); optMoreInfo = new ArrayList<String>(); writers = new ArrayList<String>(); // XLIFF options optEditors.add("net.sf.okapi.steps.rainbowkit.xliff.Options"); optStrings.add(creat...
private void createComposite (Composite parent) { optEditors = new ArrayList<String>(); optStrings = new ArrayList<IParameters>(); optMoreInfo = new ArrayList<String>(); writers = new ArrayList<String>(); // XLIFF options optEditors.add("net.sf.okapi.steps.rainbowkit.xliff.Options"); optStrings.add(creat...
diff --git a/src/main/java/org/cojen/tupl/Database.java b/src/main/java/org/cojen/tupl/Database.java index df0aaa65..a1bc5414 100644 --- a/src/main/java/org/cojen/tupl/Database.java +++ b/src/main/java/org/cojen/tupl/Database.java @@ -1,2807 +1,2807 @@ /* * Copyright 2011-2012 Brian S O'Neill * * Licensed unde...
false
true
private Database(DatabaseConfig config, int openMode) throws IOException { config.mEventListener = mEventListener = SafeEventListener.makeSafe(config.mEventListener); final File baseFile = config.mBaseFile; final File[] dataFiles = config.dataFiles(); int pageSize = config.mPageSiz...
private Database(DatabaseConfig config, int openMode) throws IOException { config.mEventListener = mEventListener = SafeEventListener.makeSafe(config.mEventListener); final File baseFile = config.mBaseFile; final File[] dataFiles = config.dataFiles(); int pageSize = config.mPageSiz...
diff --git a/exporter/src/main/java/com/miravtech/sbgn/exporter/Main.java b/exporter/src/main/java/com/miravtech/sbgn/exporter/Main.java index f46c260..138ea46 100644 --- a/exporter/src/main/java/com/miravtech/sbgn/exporter/Main.java +++ b/exporter/src/main/java/com/miravtech/sbgn/exporter/Main.java @@ -1,144 +1,145 @@...
true
true
public static void main(String[] args) throws Exception { String organism ; String db ; String method ; File srcDir; File destDir; boolean filtering = true; Properties p = INIConfiguration.getConfiguration(); OptionParser parser = new OptionParser(); parser.accepts("srcSBGN", "Name of the SBGN f...
public static void main(String[] args) throws Exception { String organism ; String db ; String method ; File srcDir; File destDir; boolean filtering = true; Properties p = INIConfiguration.getConfiguration(); OptionParser parser = new OptionParser(); parser.accepts("srcSBGN", "Name of the SBGN f...
diff --git a/src/main/ed/lang/ruby/RubyConvert.java b/src/main/ed/lang/ruby/RubyConvert.java index 0d9fd966e..623effe07 100644 --- a/src/main/ed/lang/ruby/RubyConvert.java +++ b/src/main/ed/lang/ruby/RubyConvert.java @@ -1,683 +1,685 @@ // RubyConvert.java package ed.lang.ruby; import java.io.*; import java.uti...
false
true
void _add( Node node , State state ){ if ( node == null || state == null ) throw new RuntimeException( "can't be null" ); // --- blocking ---- if ( node instanceof RootNode ){ _assertOne( node ); _add( node.childNodes().get(0) , state );...
void _add( Node node , State state ){ if ( node == null || state == null ) throw new RuntimeException( "can't be null" ); // --- blocking ---- if ( node instanceof RootNode ){ _assertOne( node ); _add( node.childNodes().get(0) , state );...
diff --git a/izpack-src/trunk/src/lib/com/izforge/izpack/panels/ProcessPanelAutomationHelper.java b/izpack-src/trunk/src/lib/com/izforge/izpack/panels/ProcessPanelAutomationHelper.java index 8ec6a3fe..fb97e1e0 100644 --- a/izpack-src/trunk/src/lib/com/izforge/izpack/panels/ProcessPanelAutomationHelper.java +++ b/izpack...
true
true
public boolean runAutomated(AutomatedInstallData idata, XMLElement panelRoot) { try { ProcessPanelWorker worker = new ProcessPanelWorker(idata, this); worker.run(); return this.worker.getResult(); } catch (IOException e) {...
public boolean runAutomated(AutomatedInstallData idata, XMLElement panelRoot) { try { ProcessPanelWorker worker = new ProcessPanelWorker(idata, this); worker.run(); return worker.getResult(); } catch (IOException e) { ...
diff --git a/src/cytoscape/data/readers/CyAttributesReader.java b/src/cytoscape/data/readers/CyAttributesReader.java index 85bd3a9c2..04d7927fc 100644 --- a/src/cytoscape/data/readers/CyAttributesReader.java +++ b/src/cytoscape/data/readers/CyAttributesReader.java @@ -1,360 +1,374 @@ /* File: CyAttributesReader.jav...
false
true
public void loadAttributesInternal(CyAttributes cyAttrs, Reader fileIn) throws IOException { badDecode = false; try { final BufferedReader reader; if (fileIn instanceof BufferedReader) { reader = (BufferedReader) fileIn; } else { reader = new BufferedReader(fileIn); } String attributeN...
public void loadAttributesInternal(CyAttributes cyAttrs, Reader fileIn) throws IOException { badDecode = false; boolean guessedAttrType = false; // We later set this to true if we have to guess the attribute type. try { final BufferedReader reader; if (fileIn instanceof BufferedReader) { reader = ...
diff --git a/x10.compiler/src/x10cpp/types/X10CPPSourceClassResolver.java b/x10.compiler/src/x10cpp/types/X10CPPSourceClassResolver.java index c5e9e736d..9a638f9f5 100644 --- a/x10.compiler/src/x10cpp/types/X10CPPSourceClassResolver.java +++ b/x10.compiler/src/x10cpp/types/X10CPPSourceClassResolver.java @@ -1,102 +1,10...
true
true
protected Resource loadFile(QName name) { if (nocache.contains(name)) { return null; } Source source = ext.sourceLoader().classSource(name); if (source == null) return null; String packageName = name.qualifier() != null ? name.qualifi...
protected Resource loadFile(QName name) { if (nocache.contains(name)) { return null; } Source source = ext.sourceLoader().classSource(name); if (source == null) return null; String packageName = name.qualifier() != null ? name.qualifi...
diff --git a/src/com/android/contacts/calllog/ClearCallLogDialog.java b/src/com/android/contacts/calllog/ClearCallLogDialog.java index 0f999bdda..426732aea 100644 --- a/src/com/android/contacts/calllog/ClearCallLogDialog.java +++ b/src/com/android/contacts/calllog/ClearCallLogDialog.java @@ -1,78 +1,78 @@ /* * Copyr...
true
true
public Dialog onCreateDialog(Bundle savedInstanceState) { final ContentResolver resolver = getActivity().getContentResolver(); final OnClickListener okListener = new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { final P...
public Dialog onCreateDialog(Bundle savedInstanceState) { final ContentResolver resolver = getActivity().getContentResolver(); final OnClickListener okListener = new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { final P...
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/GroupReferenceBox.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/GroupReferenceBox.java index f41535db7..9da9c22cb 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/GroupReferenceBox.java +++ b/gerrit-gwtui/src...
true
true
public GroupReferenceBox() { suggestions = new DefaultSuggestionDisplay(); textBox = new NpTextBox(); oracle = new AccountGroupSuggestOracle(); suggestBox = new SuggestBox( // new RPCSuggestOracle(oracle), // textBox, // suggestions); initWidget(suggestBox); suggestBox...
public GroupReferenceBox() { suggestions = new DefaultSuggestionDisplay(); textBox = new NpTextBox(); oracle = new AccountGroupSuggestOracle(); suggestBox = new SuggestBox( // new RPCSuggestOracle(oracle), // textBox, // suggestions); initWidget(suggestBox); textBox.ad...
diff --git a/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansClusterMapper.java b/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansClusterMapper.java index e011dc42..f45749c4 100644 --- a/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansClusterMapper.java +++ b/core/src/main/java/or...
true
true
protected void setup(Context context) throws IOException, InterruptedException { super.setup(context); Configuration conf = context.getConfiguration(); try { ClassLoader ccl = Thread.currentThread().getContextClassLoader(); DistanceMeasure measure = ccl.loadClass(conf.get(KMeansConfigKeys.DIST...
protected void setup(Context context) throws IOException, InterruptedException { super.setup(context); Configuration conf = context.getConfiguration(); try { ClassLoader ccl = Thread.currentThread().getContextClassLoader(); DistanceMeasure measure = ccl.loadClass(conf.get(KMeansConfigKeys.DIST...
diff --git a/applications/src/main/java/org/rcsb/lx/ui/FullSequencesViewer.java b/applications/src/main/java/org/rcsb/lx/ui/FullSequencesViewer.java index c0c8867..99138e6 100644 --- a/applications/src/main/java/org/rcsb/lx/ui/FullSequencesViewer.java +++ b/applications/src/main/java/org/rcsb/lx/ui/FullSequencesViewer....
true
true
public void createViewersForCurrentEpitope() { contentPane.removeAll(); sequencePanels.clear(); StructureModel model = AppBase.sgetModel(); if (model.getStructures() == null) return; for (Structure struc : model.getStructures()) { final ...
public void createViewersForCurrentEpitope() { // use invokeLater causes: // Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException //at org.rcsb.lx.ui.SequenceStructureTitlePanel.heightForWidth(SequenceStructureTitlePanel.java:111) // javax.swing.SwingUtilities.invokeLater(new...
diff --git a/runwaysdk-test/src/main/java/com/runwaysdk/business/ControllerGenTest.java b/runwaysdk-test/src/main/java/com/runwaysdk/business/ControllerGenTest.java index e43ca4eda..8436a92fd 100644 --- a/runwaysdk-test/src/main/java/com/runwaysdk/business/ControllerGenTest.java +++ b/runwaysdk-test/src/main/java/com/r...
true
true
private static void classSetUp() { mdStruct = MdStructDAO.newInstance(); mdStruct.setValue(MdStructInfo.PACKAGE, pack); mdStruct.setValue(MdStructInfo.NAME, "TestStruct"); mdStruct.setStructValue(MdStructInfo.DISPLAY_LABEL, MdAttributeLocalInfo.DEFAULT_LOCALE, "Test Struct"); mdStruct.apply(); ...
private static void classSetUp() { mdStruct = MdStructDAO.newInstance(); mdStruct.setValue(MdStructInfo.PACKAGE, pack); mdStruct.setValue(MdStructInfo.NAME, "TestStruct"); mdStruct.setStructValue(MdStructInfo.DISPLAY_LABEL, MdAttributeLocalInfo.DEFAULT_LOCALE, "Test Struct"); mdStruct.apply(); ...
diff --git a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/contentassist/RemoteCompletionProposalAdapter.java b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/contentassist/RemoteCompletionProposalAdapter.java index c13c61479..3dc4d7277 100644 --- a/rdt/org.eclipse.ptp.rdt.ui/src/org/ec...
true
true
protected IContentAssistService getService(IProject project) { ServiceModelManager manager = ServiceModelManager.getInstance(); IServiceConfiguration config = manager.getActiveConfiguration(project); if (config == null) { return null; } IService service = manager.getService(IRDTServiceConstants.SERVICE_C_...
protected IContentAssistService getService(IProject project) { ServiceModelManager manager = ServiceModelManager.getInstance(); if(!manager.isConfigured(project)) return null; IServiceConfiguration config = manager.getActiveConfiguration(project); if (config == null) { return null; } IService service...
diff --git a/src/pt/up/fe/dceg/neptus/util/comm/transports/udp/UDPTransport.java b/src/pt/up/fe/dceg/neptus/util/comm/transports/udp/UDPTransport.java index efa1ced6b..23ed4ab73 100644 --- a/src/pt/up/fe/dceg/neptus/util/comm/transports/udp/UDPTransport.java +++ b/src/pt/up/fe/dceg/neptus/util/comm/transports/udp/UDPTr...
true
true
private Thread getSockedListenerThread() { if (sockedListenerThread == null) { Thread listenerThread = new Thread(UDPTransport.class.getSimpleName() + ": Listener Thread " + this.hashCode()) { byte[] sBuffer = new byte[maxBufferSize]; String mu...
private Thread getSockedListenerThread() { if (sockedListenerThread == null) { Thread listenerThread = new Thread(UDPTransport.class.getSimpleName() + ": Listener Thread " + this.hashCode()) { byte[] sBuffer = new byte[maxBufferSize]; String mu...
diff --git a/src/com/gmail/benlynn/spelltap/MainView.java b/src/com/gmail/benlynn/spelltap/MainView.java index e829891..65cc00a 100644 --- a/src/com/gmail/benlynn/spelltap/MainView.java +++ b/src/com/gmail/benlynn/spelltap/MainView.java @@ -1,2186 +1,2188 @@ // TODO: Log, character sheet. // Turn UI pink on charm, to...
false
true
public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: if (is_animating) return false; if (is_waiting) return false; x0 = event.getX(); y0 = event.getY(); if (y0 < ylower) { if (STATE_GESTURE_ONLY == main_state) { run(); return false; ...
public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: if (is_animating) return false; if (is_waiting) return false; x0 = event.getX(); y0 = event.getY(); if (y0 < ylower) { if (STATE_GESTURE_ONLY == main_state) { run(); return false; ...
diff --git a/PA3B/src/ray/accel/Bvh.java b/PA3B/src/ray/accel/Bvh.java index 5f8bec8..f7d3dc7 100755 --- a/PA3B/src/ray/accel/Bvh.java +++ b/PA3B/src/ray/accel/Bvh.java @@ -1,222 +1,222 @@ package ray.accel; import java.util.Arrays; import java.util.Comparator; import ray.IntersectionRecord; import ray.Ray; ...
true
true
private BvhNode createTree(int left, int right) { // TODO(B): fill in this function. // int i, j; // ==== Step 1 ==== // Find out the BIG bounding box enclosing all the surfaces in the range [left, right) // and store them in minB and maxB. // Hint: To find the bounding box for each surface, use getMinBoun...
private BvhNode createTree(int left, int right) { // TODO(B): fill in this function. // int i, j; // ==== Step 1 ==== // Find out the BIG bounding box enclosing all the surfaces in the range [left, right) // and store them in minB and maxB. // Hint: To find the bounding box for each surface, use getMinBoun...
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/PopupCloser.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/PopupCloser.java index 5d1e5a2ca..dab9fc7a3 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/PopupCloser.java +++ b/org.eclipse.jfac...
false
true
public void handleEvent(Event event) { switch (event.type) { case SWT.Activate: case SWT.MouseWheel: if (fAdditionalInfoController == null) return; if (event.widget == fShell || event.widget == fTable || event.widget == fScrollbar) return; if (fAdditionalInfoController.getInternalAcc...
public void handleEvent(Event event) { switch (event.type) { case SWT.Activate: case SWT.MouseWheel: if (fAdditionalInfoController == null) return; if (event.widget == fShell || event.widget == fTable || event.widget == fScrollbar) return; if (fAdditionalInfoController.getInternalAcc...
diff --git a/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/activity/ActivityController.java b/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/activity/ActivityController.java index 7f9bb3b71..c347d8f16 100644 --- a/web/src/main/java/edu/northwestern/bioinformatics/studycalendar...
true
true
private Map<String, Object> processRequest( Map<String, Object> model, String sourceId, Integer index, SortOrderEnum sortOrderEnum, String sortItem) throws Exception{ List<Activity> activities = new ArrayList<Activity>(); if (sourceId == null) { activities = activityDao.getAll(); ...
private Map<String, Object> processRequest( Map<String, Object> model, String sourceId, Integer index, SortOrderEnum sortOrderEnum, String sortItem) throws Exception{ List<Activity> activities = new ArrayList<Activity>(); if (sourceId == null) { activities = activityDao.getAll(); ...
diff --git a/src/org/usfirst/frc4682/Audacity/OI.java b/src/org/usfirst/frc4682/Audacity/OI.java index ced314e..ec3312f 100644 --- a/src/org/usfirst/frc4682/Audacity/OI.java +++ b/src/org/usfirst/frc4682/Audacity/OI.java @@ -1,75 +1,75 @@ package org.usfirst.frc4682.Audacity; import edu.wpi.first.wpilibj.buttons.Bu...
false
true
public OI() { shootingButton.whenPressed(new TuneShooter()); firingButton.whenPressed(new Feed()); firstDisable.whenPressed(new StopAll()); secondDisable.whenPressed(new StopAll()); thirdDisable.whenPressed(new StopAll()); firstDisableAlt.whenPressed...
public OI() { shootingButton.whenPressed(new TuneShooter()); firingButton.whenPressed(new Feed()); firstDisable.whenPressed(new StopAll()); secondDisable.whenPressed(new StopAll()); thirdDisable.whenPressed(new StopAll()); firstDisableAlt.whenPressed...
diff --git a/framework/src/play/db/jpa/JPASupport.java b/framework/src/play/db/jpa/JPASupport.java index 5e118643..2f9c317b 100644 --- a/framework/src/play/db/jpa/JPASupport.java +++ b/framework/src/play/db/jpa/JPASupport.java @@ -1,690 +1,688 @@ package play.db.jpa; import java.io.File; import java.io.Serializabl...
true
true
public static <T extends JPASupport> T edit(Object o, String name, Map<String, String[]> params) { try { BeanWrapper bw = new BeanWrapper(o.getClass()); bw.bind(name, o.getClass(), params, "", o); // relations Set<Field> fields = new HashSet<Field>(); ...
public static <T extends JPASupport> T edit(Object o, String name, Map<String, String[]> params) { try { BeanWrapper bw = new BeanWrapper(o.getClass()); bw.bind(name, o.getClass(), params, "", o); // relations Set<Field> fields = new HashSet<Field>(); ...
diff --git a/src/main/java/freemarker/core/EvalUtil.java b/src/main/java/freemarker/core/EvalUtil.java index 7d443998..75b6e8cb 100644 --- a/src/main/java/freemarker/core/EvalUtil.java +++ b/src/main/java/freemarker/core/EvalUtil.java @@ -1,422 +1,422 @@ /* * Copyright (c) 2003 The Visigoth Software Society. All rig...
true
true
static boolean compare( TemplateModel leftValue, Expression leftExp, int operator, String operatorString, TemplateModel rightValue, Expression rightExp, Expression defaultBlamed, boolean typeMismatchMeansNotEqual, boolean leftNullReturnsFalse, ...
static boolean compare( TemplateModel leftValue, Expression leftExp, int operator, String operatorString, TemplateModel rightValue, Expression rightExp, Expression defaultBlamed, boolean typeMismatchMeansNotEqual, boolean leftNullReturnsFalse, ...
diff --git a/src/jircbot/commands/jIBCTTell.java b/src/jircbot/commands/jIBCTTell.java index d58c2be..a8173a1 100644 --- a/src/jircbot/commands/jIBCTTell.java +++ b/src/jircbot/commands/jIBCTTell.java @@ -1,73 +1,72 @@ package jircbot.commands; import java.util.ArrayList; import java.util.Date; import java.util.H...
false
true
public void runHandleMessage(PircBot bot, String channel, String sender, String message) { sender = sender.toLowerCase(); String[] splitMsg = message.split(" ", 3); if(splitMsg[0].equals(getCommandName())) { if(splitMsg.length == 3) { // Add the tell message ...
public void runHandleMessage(PircBot bot, String channel, String sender, String message) { String[] splitMsg = message.split(" ", 3); if(splitMsg[0].equals(getCommandName())) { if(splitMsg.length == 3) { // Add the tell message // - [command] [target user]...
diff --git a/src/test/java/HelloWorldIT.java b/src/test/java/HelloWorldIT.java index b0424c7..ab7ab6a 100644 --- a/src/test/java/HelloWorldIT.java +++ b/src/test/java/HelloWorldIT.java @@ -1,12 +1,12 @@ import org.jsoup.Jsoup; import org.junit.Test; import static org.junit.Assert.assertTrue; public class HelloW...
true
true
public void testHelloWorld() throws Exception { assertTrue(Jsoup.connect("http://localhost:18080/maven-vbox-plugin-example").get().html().contains("Hello World")); }
public void testHelloWorld() throws Exception { assertTrue(Jsoup.connect("http://192.168.56.2:8080/maven-vbox-plugin-example").get().html().contains("Hello World")); }
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.core/src/org/eclipse/tcf/te/tcf/filesystem/core/model/FSModel.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.core/src/org/eclipse/tcf/te/tcf/filesystem/core/model/FSModel.java index e9941fb77..1c5229336 100644 --- a/target_explorer...
false
true
public static FSModel getFSModel(final IPeerModel peerModel) { Runnable runnable = new Runnable() { @Override public void run() { if (peerModel != null) { FSModel model = (FSModel) peerModel.getProperty(FSMODEL_KEY); if (model == null) { model = new FSModel(peerModel); peerMod...
public static FSModel getFSModel(final IPeerModel peerModel) { final AtomicReference<FSModel> model = new AtomicReference<FSModel>(); Runnable runnable = new Runnable() { @Override public void run() { if (peerModel != null) { model.set((FSModel) peerModel.getProperty(FSMODEL_KEY)); if (model.ge...
diff --git a/relevance_filter/src/main/java/com/edge/twitter_research/relevance_filter/TopEmoticonsCalculator.java b/relevance_filter/src/main/java/com/edge/twitter_research/relevance_filter/TopEmoticonsCalculator.java index 0e22043..3e4cd32 100644 --- a/relevance_filter/src/main/java/com/edge/twitter_research/relevanc...
false
true
public static void main(String[] args){ if (args.length < 4){ System.out.println("Usage: TopEmoticonsCalculator " + "<relevance_filter_root> " + "<input_table_name>" + "<HDFS_output_file_path> " + "<page_size> " + ...
public static void main(String[] args){ if (args.length < 4){ System.out.println("Usage: TopEmoticonsCalculator " + "<relevance_filter_root> " + "<input_table_name> " + "<HDFS_output_file_path> " + "<page_size> " + ...
diff --git a/AlkitabConverter/src/yuku/alkitabconverter/util/TextDb.java b/AlkitabConverter/src/yuku/alkitabconverter/util/TextDb.java index d2f91393..3d32030d 100644 --- a/AlkitabConverter/src/yuku/alkitabconverter/util/TextDb.java +++ b/AlkitabConverter/src/yuku/alkitabconverter/util/TextDb.java @@ -1,254 +1,254 @@ ...
true
true
public String append(int ari, String text, int currentIndent, String separatorWhenExisting) { VerseState as = map.get(ari); boolean isNew = false; if (as == null) { as = new VerseState(); as.text = ""; map.put(ari, as); isNew = true; } boolean writtenParaMarker = false; if (currentIndent ...
public String append(int ari, String text, int currentIndent, String separatorWhenExisting) { VerseState as = map.get(ari); boolean isNew = false; if (as == null) { as = new VerseState(); as.text = ""; map.put(ari, as); isNew = true; } boolean writtenParaMarker = false; if (currentIndent ...
diff --git a/src/main/java/org/owasp/proxy/httpclient/HttpClient.java b/src/main/java/org/owasp/proxy/httpclient/HttpClient.java index 53d4663..946fde7 100644 --- a/src/main/java/org/owasp/proxy/httpclient/HttpClient.java +++ b/src/main/java/org/owasp/proxy/httpclient/HttpClient.java @@ -1,427 +1,429 @@ /* * This f...
true
true
private void openConnection(Conversation conversation) throws MessageFormatException, IOException { Request request = conversation.getRequest(); boolean ssl = request.isSsl(); String host = request.getHost(); if (host == null) throw new MessageFormatException("Host is not set, don't know where to connect to...
private void openConnection(Conversation conversation) throws MessageFormatException, IOException { Request request = conversation.getRequest(); boolean ssl = request.isSsl(); String host = request.getHost(); if (host == null) throw new MessageFormatException("Host is not set, don't know where to connect to...
diff --git a/src/fr/crafter/tickleman/RealShop/RealShopConfig.java b/src/fr/crafter/tickleman/RealShop/RealShopConfig.java index c76a47d..ab15808 100644 --- a/src/fr/crafter/tickleman/RealShop/RealShopConfig.java +++ b/src/fr/crafter/tickleman/RealShop/RealShopConfig.java @@ -1,136 +1,142 @@ package fr.crafter.ticklem...
false
true
protected boolean loadValue(String key, String value) { if (super.loadValue(key, value)) { return true; } if (key.equals("dailyPricesCalculation")) { dailyPricesCalculation = value; return true; } if (key.equals("economyPlugin")) { economyPlugin = value; return true; } if (key.equals("shopDamagedItems"))...
protected boolean loadValue(String key, String value) { if (super.loadValue(key, value)) { return true; } if (key.equals("dailyPricesCalculation")) { dailyPricesCalculation = value; return true; } if (key.equals("economyPlugin")) { economyPlugin = value; return true; } if (key.equals("shopDamagedItems"))...
diff --git a/scoutmaster/src/main/java/au/org/scoutmaster/util/SMSSession.java b/scoutmaster/src/main/java/au/org/scoutmaster/util/SMSSession.java index eef00e3..ae73aa2 100644 --- a/scoutmaster/src/main/java/au/org/scoutmaster/util/SMSSession.java +++ b/scoutmaster/src/main/java/au/org/scoutmaster/util/SMSSession.java...
true
true
public void send(SMSTransmission transmission) throws SmsException, IOException { User user = (User) SMSession.INSTANCE.getLoggedInUser(); try { // The message that you want to send. String msg = transmission.getMessage().expandBody(user, transmission.getContact()).toString(); // International number...
public void send(SMSTransmission transmission) throws SmsException, IOException { User user = (User) SMSession.INSTANCE.getLoggedInUser(); try { // The message that you want to send. String msg = transmission.getMessage().expandBody(user, transmission.getContact()).toString(); // International number...
diff --git a/src/org/ssgwt/client/ui/AdvancedPasswordBox.java b/src/org/ssgwt/client/ui/AdvancedPasswordBox.java index eb13dbd..d2a35cb 100644 --- a/src/org/ssgwt/client/ui/AdvancedPasswordBox.java +++ b/src/org/ssgwt/client/ui/AdvancedPasswordBox.java @@ -1,254 +1,254 @@ /** * Copyright 2012 A24Group * * Lice...
true
true
public AdvancedPasswordBox() { mainPanel.add(placeholder); placeholder.setWidth("100%"); mainPanel.add(passwordBox); passwordBox.setWidth("100%"); passwordBox.setVisible(false); placeholder.addFocusHandler(new FocusHandler() { @Overri...
public AdvancedPasswordBox() { mainPanel.add(placeholder); placeholder.setWidth("100%"); mainPanel.add(passwordBox); passwordBox.setWidth("100%"); passwordBox.setVisible(false); placeholder.addFocusHandler(new FocusHandler() { @Overri...
diff --git a/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/ZipPlusFourBox.java b/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/ZipPlusFourBox.java index 7712995d4..f035f7749 100644 --- a/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/ZipPlu...
false
true
public String parse(CharSequence text) throws ParseException { switch (text.length()) { case 9: text = text.subSequence(0, 5) + "-" + text.subSequence(5, 9); // Fall-though intentional case 5: case 10: if (PATTERN.test(text.toString())) { retur...
public String parse(CharSequence text) throws ParseException { switch (text.length()) { case 9: text = text.subSequence(0, 5) + "-" + text.subSequence(5, 9); // Fall-though intentional // CHECKSTYLE_OFF case 5: // Fall-through intentional case 10...
diff --git a/common/vdvman1/betterAnvil/packet/PacketHandler.java b/common/vdvman1/betterAnvil/packet/PacketHandler.java index 1197dd8..bd0a743 100644 --- a/common/vdvman1/betterAnvil/packet/PacketHandler.java +++ b/common/vdvman1/betterAnvil/packet/PacketHandler.java @@ -1,36 +1,37 @@ package vdvman1.betterAnvil.pack...
true
true
public void onPacketData(INetworkManager manager, Packet250CustomPayload packet, Player _player) { if(packet.channel.equals(BetterAnvil.channel) && _player instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer)_player; ContainerRepairBA container = (ContainerRepairBA)player.openContainer; ...
public void onPacketData(INetworkManager manager, Packet250CustomPayload packet, Player _player) { if(packet.channel.equals(BetterAnvil.channel) && _player instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer)_player; if(!(player.openContainer instanceof ContainerRepairBA)) return; ContainerRepair...
diff --git a/src/Extensions/org/objectweb/proactive/extensions/scheduler/examples/AdminCommunicator.java b/src/Extensions/org/objectweb/proactive/extensions/scheduler/examples/AdminCommunicator.java index fdba77f78..6bdb1e02b 100644 --- a/src/Extensions/org/objectweb/proactive/extensions/scheduler/examples/AdminCommuni...
true
true
private static void handleCommand(String command) { if (command.equals("")) { } else if (command.equals(EXIT_CMD)) { output("Communicator will exit.\n"); stopCommunicator = true; } else if (command.equals("?") || command.equals("help")) { helpScreen(); ...
private static void handleCommand(String command) { if (command.equals("")) { } else if (command.equals(EXIT_CMD)) { output("Communicator will exit.\n"); stopCommunicator = true; } else if (command.equals("?") || command.equals("help")) { helpScreen(); ...
diff --git a/app/src/nl/digitalica/skydivekompasroos/CalculateActivity.java b/app/src/nl/digitalica/skydivekompasroos/CalculateActivity.java index ed303da..a473dcb 100644 --- a/app/src/nl/digitalica/skydivekompasroos/CalculateActivity.java +++ b/app/src/nl/digitalica/skydivekompasroos/CalculateActivity.java @@ -1,972 +...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_calculate); // if compile date over 1 year ago, show warning text TextView tvWarning = (TextView) findViewById(R.id.textViewWarning); String warning = ""; try { long compilationDateTim...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_calculate); // if compile date over 1 year ago, show warning text TextView tvWarning = (TextView) findViewById(R.id.textViewWarning); String warning = ""; try { long compilationDateTim...
diff --git a/src/dht/DHTClient.java b/src/dht/DHTClient.java index f2de5db..d6f5311 100644 --- a/src/dht/DHTClient.java +++ b/src/dht/DHTClient.java @@ -1,137 +1,138 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package dht; import java.io.BufferedReader;...
true
true
public static String connect(String serverHostname) throws IOException { String nextHost = null; Socket echoSocket = null; PrintWriter out = null; BufferedReader in = null; try { echoSocket = new Socket(serverHostname, port); out = new PrintWriter(ech...
public static String connect(String serverHostname) throws IOException { String nextHost = null; Socket echoSocket = null; PrintWriter out = null; BufferedReader in = null; try { echoSocket = new Socket(serverHostname, port); out = new PrintWriter(ech...
diff --git a/src/main/java/br/com/caelum/tubaina/parser/html/desktop/CodeTag.java b/src/main/java/br/com/caelum/tubaina/parser/html/desktop/CodeTag.java index 0a71bb7..6c392b1 100644 --- a/src/main/java/br/com/caelum/tubaina/parser/html/desktop/CodeTag.java +++ b/src/main/java/br/com/caelum/tubaina/parser/html/desktop/...
true
true
public CodeTag() { SyntaxHighlighter syntaxHighlighter = new SyntaxHighlighter(new CommandExecutor(), CodeOutputType.KINDLE_HTML, true, new CodeCache(CodeOutputType.HTML)); htmlCodeTag = new HtmlAndKindleCodeTag(syntaxHighlighter); }
public CodeTag() { SyntaxHighlighter syntaxHighlighter = new SyntaxHighlighter(new CommandExecutor(), CodeOutputType.KINDLE_HTML, false, new CodeCache(CodeOutputType.HTML)); htmlCodeTag = new HtmlAndKindleCodeTag(syntaxHighlighter); }
diff --git a/src/main/java/de/Lathanael/EC/Utils/Scheduler.java b/src/main/java/de/Lathanael/EC/Utils/Scheduler.java index 7d79343..14c9958 100644 --- a/src/main/java/de/Lathanael/EC/Utils/Scheduler.java +++ b/src/main/java/de/Lathanael/EC/Utils/Scheduler.java @@ -1,178 +1,182 @@ /*************************************...
true
true
private void initTaskList() { for (World world : worlds) { String name = world.getName(); tasks.put(name + ".cart", new TaskContainer((Runnable) new CartTask(world), (long) (ECConfig.getDouble(name + ".cart.inittime", 0.5D)*20*60), (long) (ECConfig.getDouble(name + ".cart.time", 5D)*20*60), ECConfig.getBo...
private void initTaskList() { for (World world : worlds) { if (world == null) { Tools.debugMsg("World was null, contueing loop for other worlds if there are any in the list...."); continue; } String name = world.getName(); tasks.put(name + ".cart", new TaskContainer((Runnable) new CartTask(world)...
diff --git a/projects/java_dann_examples/src/com/syncleus/core/dann/examples/colormap/AboutDialog.java b/projects/java_dann_examples/src/com/syncleus/core/dann/examples/colormap/AboutDialog.java index 6ad05d3..8d7ce6d 100644 --- a/projects/java_dann_examples/src/com/syncleus/core/dann/examples/colormap/AboutDialog.java...
true
true
private void initComponents() { jButton1 = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); setDefaultCloseOperation(javax.swing...
private void initComponents() { jButton1 = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); setDefaultCloseOperation(javax.swing...
diff --git a/src/com/bittrust/http/server/RequestWorker.java b/src/com/bittrust/http/server/RequestWorker.java index ed20546..cce52a1 100644 --- a/src/com/bittrust/http/server/RequestWorker.java +++ b/src/com/bittrust/http/server/RequestWorker.java @@ -1,80 +1,80 @@ /** * @author William Speirs <bill.speirs@gmail.co...
true
true
public void run() { HttpService httpService = new HttpService(this.processor, new DefaultConnectionReuseStrategy(), this.responseFactory, this.resolver, this.params); while(connection.isOpen()) { try { // set the remote address in the context so we ca...
public void run() { HttpService httpService = new HttpService(this.processor, new DefaultConnectionReuseStrategy(), this.responseFactory, this.resolver, this.params); while(connection.isOpen()) { try { // set the remote address in the context so we ca...
diff --git a/DistFileSystem/src/distserver/ServCheckPosition.java b/DistFileSystem/src/distserver/ServCheckPosition.java index 32af7d3..399425a 100644 --- a/DistFileSystem/src/distserver/ServCheckPosition.java +++ b/DistFileSystem/src/distserver/ServCheckPosition.java @@ -1,178 +1,179 @@ /** * @author paul */ pac...
false
true
public void run() { try { System.out.println("In thread for check position"); this.distConfig = DistConfig.get_Instance(); // Get the input stream for the client BufferedReader inStream = new BufferedReader ( new Input...
public void run() { try { System.out.println("In thread for check position"); this.distConfig = DistConfig.get_Instance(); // Get the input stream for the client BufferedReader inStream = new BufferedReader ( new Input...
diff --git a/core/src/main/java/org/apache/mahout/vectors/ConstantValueEncoder.java b/core/src/main/java/org/apache/mahout/vectors/ConstantValueEncoder.java index d76fd813..54670fa5 100644 --- a/core/src/main/java/org/apache/mahout/vectors/ConstantValueEncoder.java +++ b/core/src/main/java/org/apache/mahout/vectors/Con...
true
true
public void addToVector(byte[] originalForm, double weight, Vector data) { int probes = getProbes(); String name = getName(); for (int i = 0; i < probes; i++) { int n = hashForProbe(originalForm, data.size(), name, i); if(isTraceEnabled()){ trace((byte[]) null, n); ...
public void addToVector(byte[] originalForm, double weight, Vector data) { int probes = getProbes(); String name = getName(); for (int i = 0; i < probes; i++) { int n = hashForProbe(originalForm, data.size(), name, i); if(isTraceEnabled()){ trace(name, n); } ...
diff --git a/org.eclipse.zest.custom.sequence.assembly/src/org/eclipse/zest/custom/sequence/assembly/Activator.java b/org.eclipse.zest.custom.sequence.assembly/src/org/eclipse/zest/custom/sequence/assembly/Activator.java index c3e3d95..ec109de 100644 --- a/org.eclipse.zest.custom.sequence.assembly/src/org/eclipse/zest/...
true
true
private IStatus saveState(final IMemento memento) { MultiStatus result = new MultiStatus(PlatformUI.PLUGIN_ID, IStatus.OK, WorkbenchMessages.Workbench_problemsSaving, null); // Save the version number. memento.putString(IWorkbenchConstants.TAG_VERSION, VERSION_STRING[1]); // Save how many plug-ins were loaded ...
private IStatus saveState(final IMemento memento) { MultiStatus result = new MultiStatus(PlatformUI.PLUGIN_ID, IStatus.OK, WorkbenchMessages.Workbench_problemsSaving, null); // Save the version number. memento.putString(IWorkbenchConstants.TAG_VERSION, VERSION_STRING[1]); // Save how many plug-ins were loaded ...
diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/PackWriter.java b/org.spearce.jgit/src/org/spearce/jgit/lib/PackWriter.java index f9945c40..b8784094 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/lib/PackWriter.java +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/PackWriter.java @@ -1,980 +1,980 @@ /* * C...
false
true
private ObjectWalk setUpWalker( final Collection<? extends ObjectId> interestingObjects, final Collection<? extends ObjectId> uninterestingObjects, final boolean ignoreMissingUninteresting) throws MissingObjectException, IOException, IncorrectObjectTypeException { final ObjectWalk walker = new ObjectW...
private ObjectWalk setUpWalker( final Collection<? extends ObjectId> interestingObjects, final Collection<? extends ObjectId> uninterestingObjects, final boolean ignoreMissingUninteresting) throws MissingObjectException, IOException, IncorrectObjectTypeException { final ObjectWalk walker = new ObjectW...
diff --git a/EdTempsECN/src/org/ecn/edtemps/servlets/impl/AdministrateurServlet.java b/EdTempsECN/src/org/ecn/edtemps/servlets/impl/AdministrateurServlet.java index f7ea9a2..ee99f49 100644 --- a/EdTempsECN/src/org/ecn/edtemps/servlets/impl/AdministrateurServlet.java +++ b/EdTempsECN/src/org/ecn/edtemps/servlets/impl/Ad...
true
true
protected void doConnexionAdministrateur(HttpServletRequest req, HttpServletResponse resp, HttpSession session) throws IOException, InvalidKeyException, NoSuchAlgorithmException, DatabaseException, SQLException, ServletException { BddGestion bdd = new BddGestion(); // Récupération des identifiants passés en pa...
protected void doConnexionAdministrateur(HttpServletRequest req, HttpServletResponse resp, HttpSession session) throws IOException, InvalidKeyException, NoSuchAlgorithmException, DatabaseException, SQLException, ServletException { BddGestion bdd = new BddGestion(); // Récupération des identifiants passés en pa...
diff --git a/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java b/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java index 3714c0f..d24adce 100644 --- a/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMoj...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { super.execute(); // goals may be splitted into multiple line in configuration. // Let's build a single line command goals = StringUtils.join( StringUtils.split( goals ), " " ); try { ...
public void execute() throws MojoExecutionException, MojoFailureException { super.execute(); // goals may be splitted into multiple line in configuration. // Let's build a single line command if ( goals != null ) { goals = StringUtils.join( StringUtils.split( goals ), " " ); } ...
diff --git a/components/services/src/main/java/org/openengsb/core/services/internal/virtual/InvokeAllIgnoreResultStrategy.java b/components/services/src/main/java/org/openengsb/core/services/internal/virtual/InvokeAllIgnoreResultStrategy.java index 3476de27f..84b49e3b1 100644 --- a/components/services/src/main/java/org...
true
true
public Object invoke(List<ServiceReference> services, Method method, Object... args) throws Throwable { for (ServiceReference ref : services) { Object service = bundleContext.getService(ref); try { method.invoke(service, args); } catch (InvocationTargetExc...
public Object invoke(List<ServiceReference> services, Method method, Object... args) throws Throwable { for (ServiceReference ref : services) { Object service = bundleContext.getService(ref); try { method.invoke(service, args); } catch (InvocationTargetExc...
diff --git a/signserver/modules/SignServer-ejb/src/java/org/signserver/server/cryptotokens/HardCodedCryptoToken.java b/signserver/modules/SignServer-ejb/src/java/org/signserver/server/cryptotokens/HardCodedCryptoToken.java index 8949d8dde..128372efc 100644 --- a/signserver/modules/SignServer-ejb/src/java/org/signserver...
true
true
public void init(int workerId, Properties props) throws CryptoTokenInitializationFailureException { final String defaultKey = props.getProperty("defaultKey", KEY_ALIAS_1); final byte[] certbytes; final byte[] passTestKey; if (KEY_ALIAS_2.equals(defaultKey)) { ...
public void init(int workerId, Properties props) throws CryptoTokenInitializationFailureException { final String defaultKey; if (props == null) { defaultKey = KEY_ALIAS_1; } else { defaultKey = props.getProperty("defaultKey", KEY_ALIAS_1); ...
diff --git a/src/main/java/org/rcsb/sequence/view/html/ProtModSummary.java b/src/main/java/org/rcsb/sequence/view/html/ProtModSummary.java index 467767b..95e9959 100644 --- a/src/main/java/org/rcsb/sequence/view/html/ProtModSummary.java +++ b/src/main/java/org/rcsb/sequence/view/html/ProtModSummary.java @@ -1,115 +1,11...
false
true
private String buildHTMLLegend(ModifiedCompound mc) { StringBuilder b = new StringBuilder(); //b.append(mc.toString()); ProteinModification mod = mc.getModification(); b.append(mod.toString()); if ( mod.getResidId() != null ){ b.append(" <i>RESID</i>:<a target=\"_blank\" href=\"http://srs.ebi.ac.uk/...
private String buildHTMLLegend(ModifiedCompound mc) { StringBuilder b = new StringBuilder(); //b.append(mc.toString()); ProteinModification mod = mc.getModification(); b.append(mod.toString()); if ( mod.getResidId() != null ){ b.append(" <i>RESID</i>:<a target=\"_blank\" href=\"http://srs.ebi.ac.uk/...
diff --git a/servlets/FBtestservlet.java b/servlets/FBtestservlet.java index f4fd607..4a7d7f7 100644 --- a/servlets/FBtestservlet.java +++ b/servlets/FBtestservlet.java @@ -1,82 +1,80 @@ package servlets; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.ArrayList; import...
false
true
protected void doPost( HttpServletRequest request,HttpServletResponse response ) throws ServletException, IOException { PrintWriter out = response.getWriter(); // String ticker= request.getParameter("ticker"); // String volume = request.getParameter("volume"); // System.out.println("***********************"+username...
protected void doPost( HttpServletRequest request,HttpServletResponse response ) throws ServletException, IOException { PrintWriter out = response.getWriter(); // String ticker= request.getParameter("ticker"); // String volume = request.getParameter("volume"); // System.out.println("***********************"+username...
diff --git a/src/com/android/launcher2/CachedTextView.java b/src/com/android/launcher2/CachedTextView.java index d0f6dd80..ac2cc3b5 100644 --- a/src/com/android/launcher2/CachedTextView.java +++ b/src/com/android/launcher2/CachedTextView.java @@ -1,181 +1,181 @@ /* * Copyright (C) 2010 The Android Open Source Projec...
true
true
private void buildAndUpdateCache() { final Layout layout = getLayout(); final int left = getCompoundPaddingLeft(); final int top = getExtendedPaddingTop(); final float prevAlpha = getAlpha(); mTextCacheLeft = layout.getLineLeft(0) - getCacheLeftPadding(); mTextCacheT...
private void buildAndUpdateCache() { final Layout layout = getLayout(); final int left = getCompoundPaddingLeft(); final int top = getExtendedPaddingTop(); final float prevAlpha = getAlpha(); mTextCacheLeft = layout.getLineLeft(0) - getCacheLeftPadding(); mTextCacheT...
diff --git a/src/com/android/calendar/month/MonthByWeekAdapter.java b/src/com/android/calendar/month/MonthByWeekAdapter.java index 8b914304..a5b28119 100644 --- a/src/com/android/calendar/month/MonthByWeekAdapter.java +++ b/src/com/android/calendar/month/MonthByWeekAdapter.java @@ -1,428 +1,429 @@ /* * Copyright (C)...
true
true
public View getView(int position, View convertView, ViewGroup parent) { if (mIsMiniMonth) { return super.getView(position, convertView, parent); } MonthWeekEventsView v; LayoutParams params = new LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.MATCH_...
public View getView(int position, View convertView, ViewGroup parent) { if (mIsMiniMonth) { return super.getView(position, convertView, parent); } MonthWeekEventsView v; LayoutParams params = new LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.MATCH_...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java index 70ba6b96f..faae61e9c 100644 --- a/targe...
true
true
protected void internalAttach(final Object context, final IPropertiesContainer data, final ICallback callback) { Assert.isTrue(!Protocol.isDispatchThread(), "Illegal Thread Access"); //$NON-NLS-1$ Assert.isNotNull(context); Assert.isNotNull(data); Assert.isNotNull(callback); if (context instanceof IModelNo...
protected void internalAttach(final Object context, final IPropertiesContainer data, final ICallback callback) { Assert.isTrue(!Protocol.isDispatchThread(), "Illegal Thread Access"); //$NON-NLS-1$ Assert.isNotNull(context); Assert.isNotNull(data); Assert.isNotNull(callback); if (context instanceof IModelNo...
diff --git a/app/controllers/Jobs.java b/app/controllers/Jobs.java index f48c2af..52dc881 100755 --- a/app/controllers/Jobs.java +++ b/app/controllers/Jobs.java @@ -1,427 +1,430 @@ package controllers; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.text.DateFor...
false
true
public static Result postJob() { if (FirstUse.isFirstUse()) return redirect(routes.FirstUse.getFirstUse()); User user = User.authenticate(session("userid"), session("email"), session("password")); if (user == null) return redirect(routes.Login.login()); Logger.debug("------------------------------ Post...
public static Result postJob() { if (FirstUse.isFirstUse()) return redirect(routes.FirstUse.getFirstUse()); User user = User.authenticate(session("userid"), session("email"), session("password")); if (user == null) return redirect(routes.Login.login()); Logger.debug("------------------------------ Post...
diff --git a/src/commands/Flee.java b/src/commands/Flee.java index 5087aa8..ef531c5 100644 --- a/src/commands/Flee.java +++ b/src/commands/Flee.java @@ -1,25 +1,25 @@ package commands; import actors.Actor; /** * Flee.java * @author nhydock * * Flee command tries to end the battle early */ public cla...
true
true
public Flee(Actor a) { name = "Flee"; }
public Flee(Actor a) { name = "Run"; }
diff --git a/src/net/slipcor/pvparena/managers/ConfigurationManager.java b/src/net/slipcor/pvparena/managers/ConfigurationManager.java index 90b51797..5702ffba 100644 --- a/src/net/slipcor/pvparena/managers/ConfigurationManager.java +++ b/src/net/slipcor/pvparena/managers/ConfigurationManager.java @@ -1,315 +1,315 @@ ...
true
true
public static void configParse(Arena arena, Config cfg) { cfg.load(); YamlConfiguration config = cfg.getYamlConfiguration(); if (cfg.getString(CFG.GENERAL_TYPE, "null") != null && !cfg.getString(CFG.GENERAL_TYPE, "null").equals("null")) { // opening existing arena arena.setFree(cfg.getString(CFG.GENERAL_T...
public static void configParse(Arena arena, Config cfg) { cfg.load(); YamlConfiguration config = cfg.getYamlConfiguration(); if (cfg.getString(CFG.GENERAL_TYPE, "null") != null && !cfg.getString(CFG.GENERAL_TYPE, "null").equals("null")) { // opening existing arena arena.setFree(cfg.getString(CFG.GENERAL_T...
diff --git a/src/org/liberty/android/fantastischmemo/cardscreen/EditScreen.java b/src/org/liberty/android/fantastischmemo/cardscreen/EditScreen.java index ca95820d..28587f8b 100644 --- a/src/org/liberty/android/fantastischmemo/cardscreen/EditScreen.java +++ b/src/org/liberty/android/fantastischmemo/cardscreen/EditScree...
true
true
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.menuspeakquestion: { if(questionTTS != null && currentItem != null){ questionTTS.sayText(currentItem.getQuestion()); } retur...
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.menuspeakquestion: { if(questionTTS != null && currentItem != null){ questionTTS.sayText(currentItem.getQuestion()); } retur...
diff --git a/stm1/src/exercises/PeriodicTimerMachine.java b/stm1/src/exercises/PeriodicTimerMachine.java index 0341503..66a872e 100644 --- a/stm1/src/exercises/PeriodicTimerMachine.java +++ b/stm1/src/exercises/PeriodicTimerMachine.java @@ -1,47 +1,47 @@ package exercises; import runtime.EventWindow; import runtim...
true
true
public int fire(String event, Scheduler scheduler) { if(state==STATES.IDLE) { if(event.equals(START)) { t1.start(scheduler, 1000); state = STATES.ACTIVE; return EXECUTE_TRANSITION; } } else if(state==STATES.ACTIVE) { if(event.equals(STOP)) { t1.start(scheduler, 1000); state = STATES....
public int fire(String event, Scheduler scheduler) { if(state==STATES.IDLE) { if(event.equals(START)) { t1.start(scheduler, 1000); state = STATES.ACTIVE; return EXECUTE_TRANSITION; } } else if(state==STATES.ACTIVE) { if(event.equals(STOP)) { t1.stop(); state = STATES.IDLE; return...
diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddResearcherPersonToRoleGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddResearcherPersonToRoleGenerator.java index f721879..f26faf8 100644 --- a/src/edu/cornell/mannlib/vitro/webap...
true
true
HashMap<String, String> getRoleActivityTypeLiteralOptions() { HashMap<String, String> literalOptions = new HashMap<String, String>(); literalOptions.put("", "Select one"); literalOptions.put("http://vivoweb.org/ontology/core#Person", "Person"); //literalOptions.put("http://vivoweb.org/ontology/core...
HashMap<String, String> getRoleActivityTypeLiteralOptions() { HashMap<String, String> literalOptions = new HashMap<String, String>(); literalOptions.put("", "Select one"); literalOptions.put("http://vivoweb.org/ontology/core#FacultyMember", "Person"); //literalOptions.put("http://vivoweb.org/ontolo...
diff --git a/src/com/slidellrobotics/reboundrumble/commands/FindDistance.java b/src/com/slidellrobotics/reboundrumble/commands/FindDistance.java index 6faef4a..5319d97 100644 --- a/src/com/slidellrobotics/reboundrumble/commands/FindDistance.java +++ b/src/com/slidellrobotics/reboundrumble/commands/FindDistance.java @@ ...
true
true
protected void execute() { if (TrackingCamera.targetGoal == null){ // If no target is found leftShootingMotors.setSetpoint(1000); // Set Left shooting Motors to Full Speed rightShootingMotors.setSetpoint(1000); // Set Right Shooting Motors to Full Speed System.out.p...
protected void execute() { if (TrackingCamera.targetGoal == null){ // If no target is found leftShootingMotors.setSetpoint(1000); // Set Left shooting Motors to Full Speed rightShootingMotors.setSetpoint(1000); // Set Right Shooting Motors to Full Speed System.out.p...
diff --git a/src/main/java/com/craftminecraft/plugins/bansync/plugins/WorldGuardHook.java b/src/main/java/com/craftminecraft/plugins/bansync/plugins/WorldGuardHook.java index 009f716..2c92526 100644 --- a/src/main/java/com/craftminecraft/plugins/bansync/plugins/WorldGuardHook.java +++ b/src/main/java/com/craftminecraft...
true
true
public void ClearWorldGuardRegions(String playerName) { // Do Something... List<World> worlds = bansyncinterface.getServer().getWorlds(); for (World w : worlds) { RegionManager rm = wg.getRegionManager(w); Map<String, ProtectedRegion> regions = rm.getRegions(); for (String id : regions.keySet())...
public void ClearWorldGuardRegions(String playerName) { // Do Something... List<World> worlds = bansyncinterface.getServer().getWorlds(); for (World w : worlds) { RegionManager rm = wg.getRegionManager(w); Map<String, ProtectedRegion> regions = rm.getRegions(); for (String id : regions.keySet())...
diff --git a/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java b/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java index 4c7f414ca..10cdd512e 100644 --- a/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java +++ b/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java @@ -1,333 +1,334 @@ /** ...
false
true
public void init() { ctx.validateCurrent(); if( isAvailable()) { return; } if( !ctx.isGLDebugEnabled() ) { if(DEBUG) { System.err.println("GLDebugMessageHandler: GL DEBUG not set in ARB ctx options: "+ctx.getGLVersion()); }...
public void init() { ctx.validateCurrent(); if( isAvailable()) { return; } if( !ctx.isGLDebugEnabled() ) { if(DEBUG) { System.err.println("GLDebugMessageHandler: GL DEBUG not set in ARB ctx options: "+ctx.getGLVersion()); }...
diff --git a/orbisgis-core/src/main/java/org/orbisgis/core/renderer/se/graphic/ViewBox.java b/orbisgis-core/src/main/java/org/orbisgis/core/renderer/se/graphic/ViewBox.java index 073a1a8b5..7375e083e 100644 --- a/orbisgis-core/src/main/java/org/orbisgis/core/renderer/se/graphic/ViewBox.java +++ b/orbisgis-core/src/main...
true
true
public Point2D getDimensionInPixel(Map<String,Value> map, double height, double width, Double scale, Double dpi) throws ParameterException { double dx, dy; double ratio = height / width; if (x != null && y != null) { d...
public Point2D getDimensionInPixel(Map<String,Value> map, double height, double width, Double scale, Double dpi) throws ParameterException { double dx, dy; double ratio = height / width; if (x != null && y != null) { d...
diff --git a/core/tern.core.tests/src/tern/server/nodejs/process/PathHelper.java b/core/tern.core.tests/src/tern/server/nodejs/process/PathHelper.java index c1e88615..46faccb9 100644 --- a/core/tern.core.tests/src/tern/server/nodejs/process/PathHelper.java +++ b/core/tern.core.tests/src/tern/server/nodejs/process/PathH...
false
true
public static File getNodejsBasedir() { /* * String s = "name: " + System.getProperty ("os.name"); s += * ", version: " + System.getProperty ("os.version"); s += ", arch: " + * System.getProperty ("os.arch"); System.out.println ("OS=" + s); */ String os =System.getProperty ("osgi.os"); System.out.pri...
public static File getNodejsBasedir() { /* * String s = "name: " + System.getProperty ("os.name"); s += * ", version: " + System.getProperty ("os.version"); s += ", arch: " + * System.getProperty ("os.arch"); System.out.println ("OS=" + s); */ String os =System.getProperty ("osgi.os"); System.out.pri...
diff --git a/src/framework/testng/report/mail/HtmlMailReporter.java b/src/framework/testng/report/mail/HtmlMailReporter.java index fc209903..14440b27 100644 --- a/src/framework/testng/report/mail/HtmlMailReporter.java +++ b/src/framework/testng/report/mail/HtmlMailReporter.java @@ -1,110 +1,110 @@ package framework.te...
true
true
public void sendHtmlMailReport(SummaryReport summaryReport, String wikiPageUrl, Properties extProperties) { String buildNumber = extProperties.getProperty("buildVersion"); String majorVersion = extProperties.getProperty("majorVersion"); String minorVersion = extProperties.getProperty("minorV...
public void sendHtmlMailReport(SummaryReport summaryReport, String wikiPageUrl, Properties extProperties) { String buildNumber = extProperties.getProperty("buildVersion"); String majorVersion = extProperties.getProperty("majorVersion"); String minorVersion = extProperties.getProperty("minorV...
diff --git a/libraries/javalib/java/io/ObjectInputStream.java b/libraries/javalib/java/io/ObjectInputStream.java index 30f6ac5c2..4857e068e 100644 --- a/libraries/javalib/java/io/ObjectInputStream.java +++ b/libraries/javalib/java/io/ObjectInputStream.java @@ -1,1925 +1,1930 @@ /* ObjectInputStream.java -- Class used ...
true
true
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMod...
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMod...
diff --git a/src/aurelienribon/tweenengine/Tween.java b/src/aurelienribon/tweenengine/Tween.java index de8ac0a..fda8368 100644 --- a/src/aurelienribon/tweenengine/Tween.java +++ b/src/aurelienribon/tweenengine/Tween.java @@ -1,564 +1,562 @@ package aurelienribon.tweenengine; import aurelienribon.tweenengine.callbac...
true
true
private void update(int currentMillis) { // Are we started ? if (!isStarted) return; // Shall we repeat ? if ((repeatCnt < 0 || iteration < repeatCnt) && currentMillis >= endRepeatDelayMillis) { iteration += 1; start(); return; } // Wait for the end of the delay then either grab the start or ...
private void update(int currentMillis) { // Are we started ? if (!isStarted) return; // Shall we repeat ? if ((repeatCnt < 0 || iteration < repeatCnt) && currentMillis >= endRepeatDelayMillis) { iteration += 1; start(); return; } // Wait for the end of the delay then either grab the start or ...
diff --git a/src/practica3/Cavall.java b/src/practica3/Cavall.java index 8459281..7b7f617 100644 --- a/src/practica3/Cavall.java +++ b/src/practica3/Cavall.java @@ -1,31 +1,32 @@ /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templat...
true
true
public boolean mataPeça(Peça peça) { return (this.getX() - 1 == peça.getX() && this.getY() - 2 == peça.getY()) || (this.getX() - 1 == peça.getX() && this.getY() + 2 == peça.getY()) || (this.getX() + 1 == peça.getX() && this.getY() - 2 == peça.getY()) || (this.get...
public boolean mataPeça(Peça peça) { return (this.getX() - 1 == peça.getX() && this.getY() - 2 == peça.getY()) || (this.getX() - 1 == peça.getX() && this.getY() + 2 == peça.getY()) || (this.getX() + 1 == peça.getX() && this.getY() - 2 == peça.getY()) || (this.get...
diff --git a/Core/GrupyPWR/src/main/java/com/project/form/LoginController.java b/Core/GrupyPWR/src/main/java/com/project/form/LoginController.java index 76ce4c0..3842f88 100644 --- a/Core/GrupyPWR/src/main/java/com/project/form/LoginController.java +++ b/Core/GrupyPWR/src/main/java/com/project/form/LoginController.java...
false
true
JsonKursy wyslijKursy( @RequestParam(value = "userid", required = true) int login, Model model) { List<GrupyZajeciowe> grupyzajeciowe = pobierzGrupyService .pobierzGrupyZajeciowe(login); int idKursu; int i; JsonKursy jsonKursy = new JsonKursy(); JsonGrupy jsonGrupy = new JsonGrupy(); JsonGrupyZa...
JsonKursy wyslijKursy( @RequestParam(value = "userid", required = true) int login, Model model) { List<GrupyZajeciowe> grupyzajeciowe = pobierzGrupyService .pobierzGrupyZajeciowe(login); int idKursu; int i; JsonKursy jsonKursy = new JsonKursy(); JsonGrupy jsonGrupy = new JsonGrupy(); JsonGrupyZa...
diff --git a/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/InvokeGenerator.java b/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/InvokeGenerator.java index 88b99a4c..b9e13a0d 100644 --- a/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/InvokeGenerator.java +++ b/bpel-compiler/src/main/java...
false
true
public void compile(OActivity output, Activity srcx) { InvokeActivity src = (InvokeActivity)srcx; OInvoke oinvoke = (OInvoke) output; oinvoke.partnerLink = _context.resolvePartnerLink(src.getPartnerLink()); oinvoke.operation = _context.resolvePartnerRoleOperation(oinvoke.partnerLink, src.getOperatio...
public void compile(OActivity output, Activity srcx) { InvokeActivity src = (InvokeActivity)srcx; OInvoke oinvoke = (OInvoke) output; oinvoke.partnerLink = _context.resolvePartnerLink(src.getPartnerLink()); oinvoke.operation = _context.resolvePartnerRoleOperation(oinvoke.partnerLink, src.getOperatio...
diff --git a/PagingSystem/src/gui/PagingProgressPanel.java b/PagingSystem/src/gui/PagingProgressPanel.java index 210a7af..b301244 100644 --- a/PagingSystem/src/gui/PagingProgressPanel.java +++ b/PagingSystem/src/gui/PagingProgressPanel.java @@ -1,42 +1,42 @@ /* * To change this template, choose Tools | Templates *...
true
true
private void init() { bar = new JProgressBar(0, 100); label = new JLabel(); this.add(label, BorderLayout.NORTH); this.add(bar, BorderLayout.SOUTH); }
private void init() { bar = new JProgressBar(0, 100); label = new JLabel("No running pages"); this.add(label, BorderLayout.NORTH); this.add(bar, BorderLayout.SOUTH); }
diff --git a/src/org/connectbot/service/TerminalKeyListener.java b/src/org/connectbot/service/TerminalKeyListener.java index 952f3cd..dca7d37 100644 --- a/src/org/connectbot/service/TerminalKeyListener.java +++ b/src/org/connectbot/service/TerminalKeyListener.java @@ -1,578 +1,578 @@ /* * ConnectBot: simple, powerfu...
true
true
public boolean onKey(View v, int keyCode, KeyEvent event) { try { final boolean hardKeyboardHidden = manager.hardKeyboardHidden; // Ignore all key-up events except for the special keys if (event.getAction() == KeyEvent.ACTION_UP) { // There's nothing here for virtual keyboard users. if (!hardKeyboa...
public boolean onKey(View v, int keyCode, KeyEvent event) { try { final boolean hardKeyboardHidden = manager.hardKeyboardHidden; // Ignore all key-up events except for the special keys if (event.getAction() == KeyEvent.ACTION_UP) { // There's nothing here for virtual keyboard users. if (!hardKeyboa...
diff --git a/src/edu/ucsb/cs56/projects/utilities/TSA_Encryption/Cryptography.java b/src/edu/ucsb/cs56/projects/utilities/TSA_Encryption/Cryptography.java index bd0be68..f155847 100644 --- a/src/edu/ucsb/cs56/projects/utilities/TSA_Encryption/Cryptography.java +++ b/src/edu/ucsb/cs56/projects/utilities/TSA_Encryption/C...
true
true
public long encrypt(int[] numList) { for (int r=0; r < numList.length; r++){ if (numList[r] < 1 || numList[r] > 1000){ System.out.println("Number Error; Integer x must follow: 1 <= x <= 1000"); return totalCheck;} } if (numList.length > 50 || numList.length < 2){ System.out.println("Number Lis...
public long encrypt(int[] numList) { for (int r=0; r < numList.length; r++){ if (numList[r] < 1 || numList[r] > 1000){ System.out.println("Number Error; Integer x must follow: 1 <= x <= 1000"); return totalCheck; } } if (numList.length > 50 || numList.length < 2){ System.out.println("Number ...
diff --git a/examples/rtest.java b/examples/rtest.java index 8c6a6ff..6ea31b2 100644 --- a/examples/rtest.java +++ b/examples/rtest.java @@ -1,233 +1,238 @@ import java.io.*; import java.awt.Frame; import java.awt.FileDialog; import java.util.Enumeration; import org.rosuda.JRI.Rengine; import org.rosuda.JRI.R...
true
true
public static void main(String[] args) { System.out.println("Creating Rengine (with arguments)"); // 1) we pass the arguments from the command line // 2) we won't use the main loop at first, we'll start it later // (that's the "false" as second argument) // 3) the callbacks are implemented by the...
public static void main(String[] args) { // just making sure we have the right version of everything if (!Rengine.versionCheck()) { System.err.println("** Version mismatch - Java files don't match library version."); System.exit(1); } System.out.println("Creating Rengine (with arguments)"); /...
diff --git a/src/main/java/tconstruct/util/TEventHandler.java b/src/main/java/tconstruct/util/TEventHandler.java index 51457333b..84ed6937c 100644 --- a/src/main/java/tconstruct/util/TEventHandler.java +++ b/src/main/java/tconstruct/util/TEventHandler.java @@ -1,632 +1,634 @@ package tconstruct.util; import java.ut...
false
true
public void onLivingDrop (LivingDropsEvent event) { if (event.entityLiving == null) return; if (event.source.getEntity() != null && event.source.getEntity() instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.source.getEntity(); ...
public void onLivingDrop (LivingDropsEvent event) { if (event.entityLiving == null) return; if (event.source.getEntity() != null && event.source.getEntity() instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.source.getEntity(); ...