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/TFC_Shared/src/TFC/Blocks/BlockSpawnMeter.java b/TFC_Shared/src/TFC/Blocks/BlockSpawnMeter.java index 1f2d16c22..132d22f5d 100644 --- a/TFC_Shared/src/TFC/Blocks/BlockSpawnMeter.java +++ b/TFC_Shared/src/TFC/Blocks/BlockSpawnMeter.java @@ -1,66 +1,66 @@ package TFC.Blocks; import net.minecraft.block.ma...
false
true
public void registerIcons(IconRegister iconRegisterer) { iconTop = iconRegisterer.registerIcon("devices/meterTop"); for(int i = 0; i < 9; i++) { icons[i] = iconRegisterer.registerIcon("devices/meter"+i); } }
public void registerIcons(IconRegister iconRegisterer) { iconTop = iconRegisterer.registerIcon("devices/MeterTop"); for(int i = 0; i < 9; i++) { icons[i] = iconRegisterer.registerIcon("devices/Meter"+i); } }
diff --git a/src/java/net/sf/picard/sam/SamFileValidator.java b/src/java/net/sf/picard/sam/SamFileValidator.java index 144e23f..fd98faf 100644 --- a/src/java/net/sf/picard/sam/SamFileValidator.java +++ b/src/java/net/sf/picard/sam/SamFileValidator.java @@ -1,386 +1,386 @@ /* * The MIT License * * Copyright (c) 2...
true
true
private void validateNmTag(SAMRecord record, long recordNumber) { if (!record.getReadUnmappedFlag()) { Integer tagNucleotideDiffs = (Integer) record.getAttribute(ReservedTagConstants.NM); if (tagNucleotideDiffs == null) { addError(new SAMValidationError( ...
private void validateNmTag(SAMRecord record, long recordNumber) { if (!record.getReadUnmappedFlag()) { Integer tagNucleotideDiffs = record.getIntegerAttribute(ReservedTagConstants.NM); if (tagNucleotideDiffs == null) { addError(new SAMValidationError( ...
diff --git a/ginco-impl/src/main/java/fr/mcc/ginco/exports/skos/SKOSGroupExporter.java b/ginco-impl/src/main/java/fr/mcc/ginco/exports/skos/SKOSGroupExporter.java index d38221c0..35c3b3d5 100644 --- a/ginco-impl/src/main/java/fr/mcc/ginco/exports/skos/SKOSGroupExporter.java +++ b/ginco-impl/src/main/java/fr/mcc/ginco/e...
true
true
public void exportGroup(Thesaurus thesaurus, ThesaurusConceptGroup group, Model model) { ThesaurusConceptGroupLabel label = thesaurusConceptGroupLabelService .getByThesaurusConceptGroup(group.getIdentifier()); Resource groupRes = model.createResource(group.getIdentifier(), GINCO.getResource(group.getCo...
public void exportGroup(Thesaurus thesaurus, ThesaurusConceptGroup group, Model model) { ThesaurusConceptGroupLabel label = thesaurusConceptGroupLabelService .getByThesaurusConceptGroup(group.getIdentifier()); Resource groupRes = model.createResource(group.getIdentifier(), GINCO.getResource(group.getCo...
diff --git a/src/ribbonserver/SessionManager.java b/src/ribbonserver/SessionManager.java index 297d80f..01efb23 100644 --- a/src/ribbonserver/SessionManager.java +++ b/src/ribbonserver/SessionManager.java @@ -1,411 +1,411 @@ /** * This file is part of RibbonServer application (check README). * Copyright (C) 2012-2...
true
true
public void run() { String inputLine, outputLine; this.setSessionName(); try { while (this.isAlive == true) { inputLine = inStream.readLine(); synchronized (outputLock) { String answer = this.Prot...
public void run() { String inputLine, outputLine; this.setSessionName(); try { while (this.isAlive == true) { inputLine = inStream.readLine(); synchronized (this.outputLock) { String answer = this...
diff --git a/control-panel/src/main/java/com/github/dynamicextensionsalfresco/controlpanel/BundleRestApi.java b/control-panel/src/main/java/com/github/dynamicextensionsalfresco/controlpanel/BundleRestApi.java index b1d8a4fa..0a6d3981 100644 --- a/control-panel/src/main/java/com/github/dynamicextensionsalfresco/controlp...
true
true
public void installBundle(final Content content, @Header("Content-Type") final String contentType, @Attribute final JsonResponseHelper response) throws IOException, BundleException { response.checkBundleInstallConfiguration(); if (JAR_MIME_TYPE.equalsIgnoreCase(contentType) == false) { throw new WebScriptExc...
public void installBundle(final Content content, @Header("Content-Type") final String contentType, @Attribute final JsonResponseHelper response) throws IOException, BundleException { response.checkBundleInstallConfiguration(); if (JAR_MIME_TYPE.equalsIgnoreCase(contentType) == false) { throw new WebScriptExc...
diff --git a/src/org/jruby/util/Dir.java b/src/org/jruby/util/Dir.java index 7dc9ec4c7..7889cf53e 100644 --- a/src/org/jruby/util/Dir.java +++ b/src/org/jruby/util/Dir.java @@ -1,811 +1,811 @@ /***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Co...
true
true
private static int glob_helper(String cwd, byte[] bytes, int begin, int end, int sub, int flags, GlobFunc func, GlobArgs arg) { int p,m; int status = 0; byte[] newpath = null; File st; p = sub != -1 ? sub : begin; if (!has_magic(bytes, p, end, flags)) { if...
private static int glob_helper(String cwd, byte[] bytes, int begin, int end, int sub, int flags, GlobFunc func, GlobArgs arg) { int p,m; int status = 0; byte[] newpath = null; File st; p = sub != -1 ? sub : begin; if (!has_magic(bytes, p, end, flags)) { if...
diff --git a/src/org/linphone/ContactFragment.java b/src/org/linphone/ContactFragment.java index 1f4d1fc..a981676 100644 --- a/src/org/linphone/ContactFragment.java +++ b/src/org/linphone/ContactFragment.java @@ -1,160 +1,160 @@ package org.linphone; /* ContactFragment.java Copyright (C) 2012 Belledonne Communicat...
true
true
private void displayContact(LayoutInflater inflater, View view) { AvatarWithShadow contactPicture = (AvatarWithShadow) view.findViewById(R.id.contactPicture); if (contact.getPhotoUri() != null) { InputStream input = Compatibility.getContactPictureInputStream(getActivity().getContentResolver(), contact.getID());...
private void displayContact(LayoutInflater inflater, View view) { AvatarWithShadow contactPicture = (AvatarWithShadow) view.findViewById(R.id.contactPicture); if (contact.getPhotoUri() != null) { InputStream input = Compatibility.getContactPictureInputStream(getActivity().getContentResolver(), contact.getID());...
diff --git a/HeadFirstJava/src/DotCom/SimpleDotComGame.java b/HeadFirstJava/src/DotCom/SimpleDotComGame.java index bed36fb..04bd2ba 100644 --- a/HeadFirstJava/src/DotCom/SimpleDotComGame.java +++ b/HeadFirstJava/src/DotCom/SimpleDotComGame.java @@ -1,58 +1,58 @@ /* * To change this template, choose Tools | Templates...
true
true
public static void main(String[] args) { // declare int to hold number of user guesses int numberOfGuesses = 0; GameHelper helper = new GameHelper(); // instantiate SimpleDotCom object SimpleDotCom theDotCom = new SimpleDotCom(); // compute a r...
public static void main(String[] args) { // declare int to hold number of user guesses int numberOfGuesses = 0; GameHelper helper = new GameHelper(); // instantiate SimpleDotCom object SimpleDotCom theDotCom = new SimpleDotCom(); // compute a r...
diff --git a/src/main/java/org/vanbest/xmltv/Main.java b/src/main/java/org/vanbest/xmltv/Main.java index 782cc32..935f4f4 100644 --- a/src/main/java/org/vanbest/xmltv/Main.java +++ b/src/main/java/org/vanbest/xmltv/Main.java @@ -1,440 +1,439 @@ package org.vanbest.xmltv; /* Copyright (c) 2012 Jan-Pascal van Best...
true
true
public void processOptions(String[] args) throws FileNotFoundException { Options options = new Options(); options.addOption(OptionBuilder .withLongOpt("description") .withDescription("Display a description to identify this grabber") .create()) .addOption(OptionBuilder ...
public void processOptions(String[] args) throws FileNotFoundException { Options options = new Options(); options.addOption(OptionBuilder .withLongOpt("description") .withDescription("Display a description to identify this grabber") .create()) .addOption(OptionBuilder ...
diff --git a/src/com/facebook/infrastructure/gms/PureRandom.java b/src/com/facebook/infrastructure/gms/PureRandom.java index 6479d24..c2c49bf 100755 --- a/src/com/facebook/infrastructure/gms/PureRandom.java +++ b/src/com/facebook/infrastructure/gms/PureRandom.java @@ -1,83 +1,83 @@ /** * Licensed to the Apache Softw...
true
true
public int nextInt(int ub) { if ( lastUb_ != ub ) { BitSet bs = new BitSet(); bs.or(bs_); bs_.clear(); bs_ = bs_; lastUb_ = ub; } if ( bs_.cardinality() == ub ) { bs_.clear(); } ...
public int nextInt(int ub) { if ( lastUb_ != ub ) { BitSet bs = new BitSet(); bs.or(bs_); bs_.clear(); bs_ = bs; lastUb_ = ub; } if ( bs_.cardinality() == ub ) { bs_.clear(); } ...
diff --git a/src/com/ACM/binarycalculator/Fragments/CalculatorHexFragment.java b/src/com/ACM/binarycalculator/Fragments/CalculatorHexFragment.java index 13aec84..84c58eb 100644 --- a/src/com/ACM/binarycalculator/Fragments/CalculatorHexFragment.java +++ b/src/com/ACM/binarycalculator/Fragments/CalculatorHexFragment.java...
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // we need to make a view instance from our layout. View v = inflater.inflate(R.layout.fragment_calculator_hex, container, false); positionInPager = getArguments().getInt(KEY_VIEW_NUMBER); viewsRadix = ...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // we need to make a view instance from our layout. View v = inflater.inflate(R.layout.fragment_calculator_hex, container, false); positionInPager = getArguments().getInt(KEY_VIEW_NUMBER); viewsRadix = ...
diff --git a/PsDataStoreDb/dashboard2/src/main/java/gov/bnl/racf/ps/dashboard/db/servlets/PsServicesServlet.java b/PsDataStoreDb/dashboard2/src/main/java/gov/bnl/racf/ps/dashboard/db/servlets/PsServicesServlet.java index 7110d67..93be579 100644 --- a/PsDataStoreDb/dashboard2/src/main/java/gov/bnl/racf/ps/dashboard/db/s...
false
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //processRequest(request, response); response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); //boilerplate code to ope...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //processRequest(request, response); response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); //boilerplate code to ope...
diff --git a/src/com/where/data/citysearch/categories/FixCatsInLis.java b/src/com/where/data/citysearch/categories/FixCatsInLis.java index 5deb54a..306e327 100644 --- a/src/com/where/data/citysearch/categories/FixCatsInLis.java +++ b/src/com/where/data/citysearch/categories/FixCatsInLis.java @@ -1,69 +1,69 @@ package ...
true
true
public static void main(String [] args) throws IOException { Directory directory = new NIOFSDirectory(new File("/idx/lis")); IndexReader reader = IndexReader.open(directory); Directory newDirectory = new NIOFSDirectory(new File("/idx/fixed_cat_lis")); IndexWriter writer = new Ind...
public static void main(String [] args) throws IOException { Directory directory = new NIOFSDirectory(new File("/idx/lis")); IndexReader reader = IndexReader.open(directory); Directory newDirectory = new NIOFSDirectory(new File("/idx/fixed_cat_lis")); IndexWriter writer = new Ind...
diff --git a/src/test/java/no/magott/spring/batch/window/InfiniteJobBatchWindowListenerTests.java b/src/test/java/no/magott/spring/batch/window/InfiniteJobBatchWindowListenerTests.java index ea02d73..25a055b 100644 --- a/src/test/java/no/magott/spring/batch/window/InfiniteJobBatchWindowListenerTests.java +++ b/src/test...
true
true
public void testLaunchJob() throws Exception { JobParameters params = new JobParametersBuilder().addLong("batchwindow.closingTime", getClosingTime()) .addString("batchwindow.cronDate", "") .toJobParameters(); JobExecution jobExecution = jobLauncher.run(job, params); assertEquals(ExitStatus.STOPPE...
public void testLaunchJob() throws Exception { JobParameters params = new JobParametersBuilder().addLong("batchwindow.closingTime", getClosingTime()) .addString("batchwindow.cronDate", "") .toJobParameters(); JobExecution jobExecution = jobLauncher.run(job, params); assertEquals(ExitStatus.STOPPE...
diff --git a/dbfit-java/core/src/main/java/dbfit/util/TypeNormaliserFactory.java b/dbfit-java/core/src/main/java/dbfit/util/TypeNormaliserFactory.java index 6480bc0b..c8e7cc87 100644 --- a/dbfit-java/core/src/main/java/dbfit/util/TypeNormaliserFactory.java +++ b/dbfit-java/core/src/main/java/dbfit/util/TypeNormaliserFa...
false
true
public static TypeNormaliser getNormaliser(Class targetClass) { TypeNormaliser normaliser = normalisers.get(targetClass); if (normaliser == null) { Class bestCandidate = targetClass; for (Class c: normalisers.keySet()) { if (c.isAssignableFrom(bestCandidate))...
public static TypeNormaliser getNormaliser(Class targetClass) { TypeNormaliser normaliser = normalisers.get(targetClass); if (normaliser == null) { Class bestCandidate = null; for (Class c: normalisers.keySet()) { if (bestCandidate == null) { ...
diff --git a/common/src/main/java/org/cloudfoundry/identity/uaa/oauth/UserManagedAuthzApprovalHandler.java b/common/src/main/java/org/cloudfoundry/identity/uaa/oauth/UserManagedAuthzApprovalHandler.java index b040a2765..0fb69ecf0 100644 --- a/common/src/main/java/org/cloudfoundry/identity/uaa/oauth/UserManagedAuthzAppr...
false
true
public boolean isApproved(AuthorizationRequest authorizationRequest, Authentication userAuthentication) { String flag = authorizationRequest.getApprovalParameters().get(approvalParameter); boolean userApproval = flag != null && flag.toLowerCase().equals("true"); if (logger.isDebugEnabled()) { StringBuilder ...
public boolean isApproved(AuthorizationRequest authorizationRequest, Authentication userAuthentication) { String flag = authorizationRequest.getApprovalParameters().get(approvalParameter); boolean userApproval = flag != null && flag.toLowerCase().equals("true"); if (logger.isDebugEnabled()) { StringBuilder ...
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java index 2fc904c4db..f9d9c4bce8 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java +++ b/sonar-plugin-api/src/main/...
true
true
public ResourceTypeTree build() { Collection<String> children = relations.values(); for (ResourceType type : types) { if (!children.contains(type)) { root = type; break; } } return new ResourceTypeTree(this); }
public ResourceTypeTree build() { Collection<String> children = relations.values(); for (ResourceType type : types) { if (!children.contains(type.getQualifier())) { root = type; break; } } return new ResourceTypeTree(this); }
diff --git a/src/generator/Fragmentizer.java b/src/generator/Fragmentizer.java index c9c8c32..969dee9 100644 --- a/src/generator/Fragmentizer.java +++ b/src/generator/Fragmentizer.java @@ -1,156 +1,159 @@ package generator; import java.util.*; import assembly.Fragment; import assembly.FragmentPositionSource; p...
false
true
public static List<List<Fragment>> groupByLine(List<Fragment> fragments, FragmentPositionSource source) { List<List<Fragment>> groupedList = new LinkedList<List<Fragment>>(); Set<Fragment> fragmentSet = new HashSet<Fragment>(fragments); fragmentSet.addAll(fragments); while (!fragmentSet.isEmpty()) { Set<...
public static List<List<Fragment>> groupByLine(List<Fragment> fragments, FragmentPositionSource source) { List<List<Fragment>> groupedList = new LinkedList<List<Fragment>>(); Set<Fragment> fragmentSet = new HashSet<Fragment>(fragments); fragmentSet.addAll(fragments); while (!fragmentSet.isEmpty()) { Set<...
diff --git a/src/main/java/code/lucamarrocco/hoptoad/RubyBacktrace.java b/src/main/java/code/lucamarrocco/hoptoad/RubyBacktrace.java index 9e85065..534dd97 100644 --- a/src/main/java/code/lucamarrocco/hoptoad/RubyBacktrace.java +++ b/src/main/java/code/lucamarrocco/hoptoad/RubyBacktrace.java @@ -1,35 +1,44 @@ // Modif...
true
true
protected String toBacktrace(final String className, final String fileName, final int lineNumber, final String methodName) { if (className.matches(".*\\." + fileName.replaceAll(".java$", ""))) return MessageFormat.format("at {0}.java:{1}:in `{2}''", className, lineNumber, methodName); return MessageFormat.format("...
protected String toBacktrace(final String className, final String fileName, final int lineNumber, final String methodName) { String filteredFileName = fileName; if (filteredFileName != null) { filteredFileName = filteredFileName.replaceAll(".java$", ""); } else { filteredFileName = ""; } if (clas...
diff --git a/geotools2/geotools-src/wmsserver/tests/unit/org/geotools/wms/servlet/GtWmsServerTest.java b/geotools2/geotools-src/wmsserver/tests/unit/org/geotools/wms/servlet/GtWmsServerTest.java index 5a2d55e5c..4bfce24c7 100644 --- a/geotools2/geotools-src/wmsserver/tests/unit/org/geotools/wms/servlet/GtWmsServerTest....
false
true
public void testGetMap() { try { BufferedImage map = server.getMap(new String[] {"USA"}, new String[] {"population"}, "EPSG:4326", new double[] {-130, 16, -60, 52}, 620, 400, false, null); ImageView view = new ImageView(map, "the map"); view.createFrame(); } ...
public void testGetMap() { try { BufferedImage map = server.getMap(new String[] {"USA"}, new String[] {"population"}, "EPSG:4326", new double[] {-130, 16, -60, 52}, 620, 400, false, null); ImageView view = new ImageView(map, "the map"); view.createFrame(); } ...
diff --git a/plugins/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/JDBCDriverManager.java b/plugins/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/JDBCDriverManager.java index ab2593a98..221322c2c 100644 --- a/plugins/org.eclipse.birt.report.data.oda.jd...
true
true
public boolean testConnection( String driverClassName, String connectionString, String jndiNameUrl, String userId, String password ) throws OdaException { boolean canConnect = false; try { // If connection is provided by driverInfo extension, use it to create connectio...
public boolean testConnection( String driverClassName, String connectionString, String jndiNameUrl, String userId, String password ) throws OdaException { boolean canConnect = false; try { // If connection is provided by driverInfo extension, use it to create connectio...
diff --git a/services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReaderImpl.java b/services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReaderImpl.java index b12f43ec1..b9ad278d1 100644 --- a/services/common/src/main/java/org/collectionspace...
true
true
List<TenantBindingType> readTenantConfigs(File protoBindingsDir, List<File> tenantDirList, boolean useAppGeneratedBindings) throws IOException { List<TenantBindingType> result = new ArrayList<TenantBindingType>(); // // Iterate through a list of directories. // for (File tenantDir : tenantDirList) { b...
List<TenantBindingType> readTenantConfigs(File protoBindingsDir, List<File> tenantDirList, boolean useAppGeneratedBindings) throws IOException { List<TenantBindingType> result = new ArrayList<TenantBindingType>(); // // Iterate through a list of directories. // for (File tenantDir : tenantDirList) { b...
diff --git a/src/org/biojava/bio/program/das/FeatureRequestManager.java b/src/org/biojava/bio/program/das/FeatureRequestManager.java index 098f0a747..b04ca1ac6 100644 --- a/src/org/biojava/bio/program/das/FeatureRequestManager.java +++ b/src/org/biojava/bio/program/das/FeatureRequestManager.java @@ -1,296 +1,297 @@ /*...
true
true
private boolean fetchAll(Ticket trigger) throws ParseException, BioException { try { boolean canFetchMulti = DASCapabilities.checkCapable(new URL(dataSourceURL, ".."), DASCapabilities.CAPABILITY_EXTENDED, DASCapabilities.CAPABILITY_EXTENDED_FEATURES); if (!canFetchMulti) { ...
private boolean fetchAll(Ticket trigger) throws ParseException, BioException { try { boolean canFetchMulti = DASCapabilities.checkCapable(new URL(dataSourceURL, ".."), DASCapabilities.CAPABILITY_EXTENDED, DASCapabilities.CAPABILITY_EXTENDED_FEATURES); if (!canFetchMulti) { ...
diff --git a/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java b/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java index c9e8ec1..d9adb1e 100644 --- a/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java +++ b/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java @@ -1,496 +1,496 @@ packag...
true
true
public Boolean urace(CommandSender sender, String[] args, Player player) { if (args.length < 1) { return false; } String command = args[0]; if (command.equalsIgnoreCase("list")) { int page = 1; if (args.length > 1) { try { page = Integer.parseInt(args[1]); } catch (NumberFormatException e...
public Boolean urace(CommandSender sender, String[] args, Player player) { if (args.length < 1) { return false; } String command = args[0]; if (command.equalsIgnoreCase("list")) { int page = 1; if (args.length > 1) { try { page = Integer.parseInt(args[1]); } catch (NumberFormatException e...
diff --git a/php-checks/src/test/java/org/sonar/php/checks/CollapsibleIfStatementCheckTest.java b/php-checks/src/test/java/org/sonar/php/checks/CollapsibleIfStatementCheckTest.java index 8c410e6d..bd91dd84 100644 --- a/php-checks/src/test/java/org/sonar/php/checks/CollapsibleIfStatementCheckTest.java +++ b/php-checks/s...
true
true
public void test() { SourceFile file = PHPAstScanner.scanSingleFile(TestUtils.getCheckFile("CollapsibleIfStatementCheck.php"), new CollapsibleIfStatementCheck()); checkMessagesVerifier.verify(file.getCheckMessages()) .next().atLine(13).withMessage("Merge this if statement with the enclosing one.") ...
public void test() { SourceFile file = PHPAstScanner.scanSingleFile(TestUtils.getCheckFile("CollapsibleIfStatementCheck.php"), new CollapsibleIfStatementCheck()); checkMessagesVerifier.verify(file.getCheckMessages()) .next().atLine(13).withMessage("Merge this if statement with the enclosing one.") ...
diff --git a/src/com/android/camera/Util.java b/src/com/android/camera/Util.java index adda925..066ff8c 100755 --- a/src/com/android/camera/Util.java +++ b/src/com/android/camera/Util.java @@ -1,761 +1,761 @@ /* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2...
true
true
public static Size getOptimalPreviewSize(Activity currentActivity, List<Size> sizes, double targetRatio) { // Use a very small tolerance because we want an exact match. final double ASPECT_TOLERANCE = 0.001; if (sizes == null) return null; Size optimalSize = null; ...
public static Size getOptimalPreviewSize(Activity currentActivity, List<Size> sizes, double targetRatio) { // Use a very small tolerance because we want an exact match. final double ASPECT_TOLERANCE = 0.014; if (sizes == null) return null; Size optimalSize = null; ...
diff --git a/sphinx4/src/sphinx4/edu/cmu/sphinx/decoder/FrameDecoder.java b/sphinx4/src/sphinx4/edu/cmu/sphinx/decoder/FrameDecoder.java index b8f6fbaf9..10ca53b72 100644 --- a/sphinx4/src/sphinx4/edu/cmu/sphinx/decoder/FrameDecoder.java +++ b/sphinx4/src/sphinx4/edu/cmu/sphinx/decoder/FrameDecoder.java @@ -1,89 +1,90 ...
true
true
public Data getData() throws DataProcessingException { Data d = getPredecessor().getData(); if (isRecognizing && (d instanceof FloatData || d instanceof DoubleData || d instanceof SpeechEndSignal)) { result = decode(null); if (result != null) { fireResultLis...
public Data getData() throws DataProcessingException { Data d = getPredecessor().getData(); if (isRecognizing && (d instanceof FloatData || d instanceof DoubleData || d instanceof SpeechEndSignal)) { result = decode(null); if (result != null) { fireResultLis...
diff --git a/AndroidAsync/src/com/koushikdutta/async/http/AsyncHttpClient.java b/AndroidAsync/src/com/koushikdutta/async/http/AsyncHttpClient.java index 0989fe8..d6af3a2 100644 --- a/AndroidAsync/src/com/koushikdutta/async/http/AsyncHttpClient.java +++ b/AndroidAsync/src/com/koushikdutta/async/http/AsyncHttpClient.java...
true
true
private void executeAffinity(final AsyncHttpRequest request, final int redirectCount, final FutureAsyncHttpResponse cancel, final HttpConnectCallback callback) { assert mServer.isAffinityThread(); if (redirectCount > 15) { reportConnectedCompleted(cancel, new Exception("too many redirect...
private void executeAffinity(final AsyncHttpRequest request, final int redirectCount, final FutureAsyncHttpResponse cancel, final HttpConnectCallback callback) { assert mServer.isAffinityThread(); if (redirectCount > 15) { reportConnectedCompleted(cancel, new Exception("too many redirect...
diff --git a/source/main/org/freecompany/redline/ant/RedlineTask.java b/source/main/org/freecompany/redline/ant/RedlineTask.java index 48c8af7..224566b 100644 --- a/source/main/org/freecompany/redline/ant/RedlineTask.java +++ b/source/main/org/freecompany/redline/ant/RedlineTask.java @@ -1,144 +1,144 @@ package org.fr...
true
true
public void execute() throws BuildException { if ( name == null) throw new BuildException( "Attribute 'name' is required."); if ( version == null) throw new BuildException( "Attribute 'version' is required."); if ( group == null) throw new BuildException( "Attribute 'group' is required."); Builder builder = n...
public void execute() throws BuildException { if ( name == null) throw new BuildException( "Attribute 'name' is required."); if ( version == null) throw new BuildException( "Attribute 'version' is required."); if ( group == null) throw new BuildException( "Attribute 'group' is required."); Builder builder = n...
diff --git a/src/floobits/FlooHandler.java b/src/floobits/FlooHandler.java index 608a8b4..8f4e10d 100644 --- a/src/floobits/FlooHandler.java +++ b/src/floobits/FlooHandler.java @@ -1,1118 +1,1118 @@ package floobits; import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObjec...
true
true
protected void _on_highlight (JsonObject obj) { final FlooHighlight res = new Gson().fromJson(obj, (Type)FlooHighlight.class); final ArrayList<ArrayList<Integer>> ranges = res.ranges; final Boolean force = FloobitsPlugin.flooHandler.stalking || res.ping || (res.summon == null ? Boolean.FALSE...
protected void _on_highlight (JsonObject obj) { final FlooHighlight res = new Gson().fromJson(obj, (Type)FlooHighlight.class); final ArrayList<ArrayList<Integer>> ranges = res.ranges; final Boolean force = FloobitsPlugin.flooHandler.stalking || res.ping || (res.summon == null ? Boolean.FALSE...
diff --git a/teams/team153/ArchonPlayer.java b/teams/team153/ArchonPlayer.java index 8492288..7b127af 100755 --- a/teams/team153/ArchonPlayer.java +++ b/teams/team153/ArchonPlayer.java @@ -1,195 +1,195 @@ package team153; import battlecode.common.*; import battlecode.common.TerrainTile.TerrainType; import static ...
true
true
public void step() { // reevaluate goal here? //sensing.senseAllTiles(); switch(currentGoal) { case Goal.idle: case Goal.collectingFlux: spawning.changeModeToCollectingFlux(); navigation.changeToMoveableDirectionGoal(true); ...
public void step() { // reevaluate goal here? //sensing.senseAllTiles(); switch(currentGoal) { case Goal.idle: case Goal.collectingFlux: spawning.changeModeToCollectingFlux(); navigation.changeToMoveableDirectionGoal(true); ...
diff --git a/src/test/java/net/floodlightcontroller/forwarding/ForwardingTest.java b/src/test/java/net/floodlightcontroller/forwarding/ForwardingTest.java index 8b150ae..dcba3bc 100644 --- a/src/test/java/net/floodlightcontroller/forwarding/ForwardingTest.java +++ b/src/test/java/net/floodlightcontroller/forwarding/For...
true
true
public void setUp() throws Exception { super.setUp(); // Mock context cntx = new FloodlightContext(); mockFloodlightProvider = getMockFloodlightProvider(); forwarding = getForwarding(); deviceManager = createMock(IDeviceManagerService.class); routingEngine = ...
public void setUp() throws Exception { super.setUp(); // Mock context cntx = new FloodlightContext(); mockFloodlightProvider = getMockFloodlightProvider(); forwarding = getForwarding(); deviceManager = createMock(IDeviceManagerService.class); routingEngine = ...
diff --git a/src/main/java/de/lmu/ifi/dbs/jfeaturelib/features/MeanPatchIntensityHistogram.java b/src/main/java/de/lmu/ifi/dbs/jfeaturelib/features/MeanPatchIntensityHistogram.java index 9f33d36..f763fea 100644 --- a/src/main/java/de/lmu/ifi/dbs/jfeaturelib/features/MeanPatchIntensityHistogram.java +++ b/src/main/java/...
true
true
public void run(ImageProcessor ip) { firePropertyChange(Progress.START); createIntegralImage((ByteProcessor) ip); int yStart, xStart, yEnd, xEnd; yStart = m_size; xStart = m_size; yEnd = ip.getHeight() - m_size; xEnd = ip.getWidth() - m_size; if (m_...
public void run(ImageProcessor ip) { firePropertyChange(Progress.START); createIntegralImage((ByteProcessor) ip); int yStart, xStart, yEnd, xEnd; yStart = m_size; xStart = m_size; yEnd = ip.getHeight() - m_size; xEnd = ip.getWidth() - m_size; if (m_...
diff --git a/src/main/java/shibauth/confluence/authentication/shibboleth/ShibAuthConfigLoader.java b/src/main/java/shibauth/confluence/authentication/shibboleth/ShibAuthConfigLoader.java index 7939ca7..34a704b 100644 --- a/src/main/java/shibauth/confluence/authentication/shibboleth/ShibAuthConfigLoader.java +++ b/src/m...
false
true
public static ShibAuthConfiguration getShibAuthConfiguration() { if (log.isDebugEnabled()) { log.debug("Initializing authenticator using property file " + ShibAuthConstants.PROPERTIES_FILE); } InputStream propsIn = RemoteUserAuthenticator.class....
public static ShibAuthConfiguration getShibAuthConfiguration() { if (log.isDebugEnabled()) { log.debug("Initializing authenticator using property file " + ShibAuthConstants.PROPERTIES_FILE); } InputStream propsIn = RemoteUserAuthenticator.class....
diff --git a/htroot/WatchCrawler_p.java b/htroot/WatchCrawler_p.java index e2553e75e..b3ec7d1bf 100644 --- a/htroot/WatchCrawler_p.java +++ b/htroot/WatchCrawler_p.java @@ -1,401 +1,401 @@ // WatchCrawler_p.java // (C) 2006 by Michael Peter Christen; mc@anomic.de, Frankfurt a. M., Germany // first published 18.12.20...
true
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements plasmaSwitchboard switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); prop.put("forwardToCrawlStart", "0"); ...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements plasmaSwitchboard switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); prop.put("forwardToCrawlStart", "0"); ...
diff --git a/src/ui/side/TowerUpgradePanel.java b/src/ui/side/TowerUpgradePanel.java index dda372e..dfd3cdc 100644 --- a/src/ui/side/TowerUpgradePanel.java +++ b/src/ui/side/TowerUpgradePanel.java @@ -1,297 +1,298 @@ package src.ui.side; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; impo...
true
true
public TowerUpgradePanel(GameController gc) { super(new GridBagLayout()); controller = gc; towerStats = new TowerStatsPanel(controller); towerStats.setTower(controller.getSelectedTower()); // set up the buttons to handle changing targeting strategy Font targetingButtonFont = new Font("Default", Font....
public TowerUpgradePanel(GameController gc) { super(new GridBagLayout()); controller = gc; towerStats = new TowerStatsPanel(controller); towerStats.setTower(controller.getSelectedTower()); // set up the buttons to handle changing targeting strategy Font targetingButtonFont = new Font("Default", Font....
diff --git a/sade-lab/src/test/scala/org/sade/analyzers/JacobiAngerAnalyzerTest.java b/sade-lab/src/test/scala/org/sade/analyzers/JacobiAngerAnalyzerTest.java index 3c30de4..b01f165 100644 --- a/sade-lab/src/test/scala/org/sade/analyzers/JacobiAngerAnalyzerTest.java +++ b/sade-lab/src/test/scala/org/sade/analyzers/Jaco...
true
true
public void Chunk() { double omega = 2.5; double phi = 0.7; double delta = 1.5; double[] sample = PrepeareSample(omega, omega, Math.PI * 2 / 200, phi, delta, 2, 20000); List<AnalyzeResult> parameters = new ArrayList<AnalyzeResult>(); final int chunkSize = 1024; ...
public void Chunk() { double omega = 2.5; double phi = 0.7; double delta = 1.5; double[] sample = PrepeareSample(omega, omega, Math.PI * 2 / 200, phi, delta, 2, 20000); List<AnalyzeResult> parameters = new ArrayList<AnalyzeResult>(); final int chunkSize = 8192; ...
diff --git a/src/org/eclipse/jface/viewers/StyledString.java b/src/org/eclipse/jface/viewers/StyledString.java index 25fd41e7..4116d8f8 100644 --- a/src/org/eclipse/jface/viewers/StyledString.java +++ b/src/org/eclipse/jface/viewers/StyledString.java @@ -1,548 +1,549 @@ /***********************************************...
false
true
public void setStyle(int offset, int length, Styler styler) throws StringIndexOutOfBoundsException { if (offset < 0 || offset + length > fBuffer.length()) { throw new StringIndexOutOfBoundsException( "Invalid offset (" + offset + ") or length (" + length + ")"); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ } ...
public void setStyle(int offset, int length, Styler styler) throws StringIndexOutOfBoundsException { if (offset < 0 || offset + length > fBuffer.length()) { throw new StringIndexOutOfBoundsException( "Invalid offset (" + offset + ") or length (" + length + ")"); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ } ...
diff --git a/CommandCenter/src/com/asksven/commandcenter/valueobjects/CommandListAdapter.java b/CommandCenter/src/com/asksven/commandcenter/valueobjects/CommandListAdapter.java index 999b65a..b3c2a43 100644 --- a/CommandCenter/src/com/asksven/commandcenter/valueobjects/CommandListAdapter.java +++ b/CommandCenter/src/co...
true
true
public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { LayoutInflater inflater = (LayoutInflater) m_context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = inflater.inflate(R.layout.row_command, n...
public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { LayoutInflater inflater = (LayoutInflater) m_context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = inflater.inflate(R.layout.row_command, n...
diff --git a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3127Test.java b/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3127Test.java index 130fac48d..a6365b0ef 100644 --- a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jbos...
false
true
public void testJBIDE3127() throws Exception { setException(null); IFile file = (IFile) TestUtil.getComponentPath("JBIDE/3127/jbide3127.xhtml", //$NON-NLS-1$ JsfAllTests.IMPORT_PROJECT_NAME); IEditorInput input = new FileEditorInput(file); JSPMultiPageEditor editor = openEditor(inpu...
public void testJBIDE3127() throws Exception { setException(null); IFile file = (IFile) TestUtil.getComponentPath("JBIDE/3127/jbide3127.xhtml", //$NON-NLS-1$ JsfAllTests.IMPORT_PROJECT_NAME); IEditorInput input = new FileEditorInput(file); JSPMultiPageEditor editor = openEditor(inpu...
diff --git a/d3_android/src/com/pate/diablo/Main.java b/d3_android/src/com/pate/diablo/Main.java index 87bdd5b..51b606b 100644 --- a/d3_android/src/com/pate/diablo/Main.java +++ b/d3_android/src/com/pate/diablo/Main.java @@ -1,162 +1,164 @@ package com.pate.diablo; import java.io.BufferedReader; import java.io.IOE...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); adapter = ArrayAdapter.createFromResource(this, R.array.classes, android.R.layout.simple_dropdown_item_1line); ActionBar actionBar = getSupportActionBar(); actionBar.setDisplayShowCustomEnabled(tr...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); adapter = ArrayAdapter.createFromResource(this, R.array.classes, android.R.layout.simple_dropdown_item_1line); ActionBar actionBar = getSupportActionBar(); actionBar.setDisplayShowCustomEnabled(tr...
diff --git a/module/app/com/github/ddth/plommon/bo/BaseDao.java b/module/app/com/github/ddth/plommon/bo/BaseDao.java index 1c5949b..1805e1c 100644 --- a/module/app/com/github/ddth/plommon/bo/BaseDao.java +++ b/module/app/com/github/ddth/plommon/bo/BaseDao.java @@ -1,426 +1,435 @@ package com.github.ddth.plommon.bo; ...
false
true
protected static int update(String tableName, String[] columnNames, Object[] values, String[] whereColumns, Object[] whereValues) { final String SQL_TEMPLATE_FULL = "UPDATE {0} SET {1} WHERE {2}"; final String SQL_TEMPLATE = "UPDATE {0} SET {1}"; final List<String> UPDATE_CLAUSE...
protected static int update(String tableName, String[] columnNames, Object[] values, String[] whereColumns, Object[] whereValues) { final String SQL_TEMPLATE_FULL = "UPDATE {0} SET {1} WHERE {2}"; final String SQL_TEMPLATE = "UPDATE {0} SET {1}"; if (columnNames.length != values...
diff --git a/src/jmetest/renderer/TestImposterNode.java b/src/jmetest/renderer/TestImposterNode.java index ccf912845..e4b8fbbcf 100755 --- a/src/jmetest/renderer/TestImposterNode.java +++ b/src/jmetest/renderer/TestImposterNode.java @@ -1,224 +1,227 @@ /* * Copyright (c) 2003, jMonkeyEngine - Mojo Monkey Coding * ...
true
true
protected void initGame() { scene = new Node("3D Scene Node"); root = new Node("Root Scene Node"); root.attachChild(scene); fakeScene = new Node("Fake node"); model = new Md2Model("Dr Freak"); model.load(TestImposterNode.class.getClassLoader().getResource("jmetest/"+FILE_NAME)); model.g...
protected void initGame() { scene = new Node("3D Scene Node"); root = new Node("Root Scene Node"); root.attachChild(scene); fakeScene = new Node("Fake node"); model = new Md2Model("Dr Freak"); model.load(TestImposterNode.class.getClassLoader().getResource("jmetest/"+FILE_NAME)); model.g...
diff --git a/src/com/cole2sworld/ColeBans/commands/Hammer.java b/src/com/cole2sworld/ColeBans/commands/Hammer.java index 5006f36..c42c338 100644 --- a/src/com/cole2sworld/ColeBans/commands/Hammer.java +++ b/src/com/cole2sworld/ColeBans/commands/Hammer.java @@ -1,23 +1,23 @@ package com.cole2sworld.ColeBans.commands; ...
true
true
public String run(String[] args, CommandSender admin) throws Exception { if (!new PermissionSet(admin).canBanhammer) return ChatColor.RED+"You don't have permission to do that."; if (admin instanceof Player) { ((Player)admin).getInventory().addItem(new ItemStack(Material.GOLD_HOE, 1, Short.MIN_VALUE)); admin...
public String run(String[] args, CommandSender admin) throws Exception { if (!new PermissionSet(admin).canBanhammer) return ChatColor.RED+"You don't have permission to do that."; if (admin instanceof Player) { ((Player)admin).getInventory().addItem(new ItemStack(Material.valueOf(GlobalConf.get("banhammer.type")...
diff --git a/src/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java b/src/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java index 648e9db7..1de45d30 100644 --- a/src/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java +++ b/src/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java @...
true
true
private void onBufferDraw(Canvas canvas) { if (mKeyboardChanged) { invalidateAllKeys(); mKeyboardChanged = false; } canvas.getClipBounds(mDirtyRect); if (mKeyboard == null) return; final boolean drawKeyboardNameText = (mKeyboardNameTextS...
private void onBufferDraw(Canvas canvas) { if (mKeyboardChanged) { invalidateAllKeys(); mKeyboardChanged = false; } canvas.getClipBounds(mDirtyRect); if (mKeyboard == null) return; final boolean drawKeyboardNameText = (mKeyboardNameTextS...
diff --git a/enhancement-engines/dereference/core/src/main/java/org/apache/stanbol/enhancer/engines/dereference/EntityDereferenceEngine.java b/enhancement-engines/dereference/core/src/main/java/org/apache/stanbol/enhancer/engines/dereference/EntityDereferenceEngine.java index 8ea6cd27d..beb61387b 100644 --- a/enhanceme...
true
true
public void computeEnhancements(ContentItem ci) throws EngineException { if(offline && !dereferencer.supportsOfflineMode()){ //entity dereferencer does no longer support offline mode return; } log.debug("> dereference Entities for ContentItem {}", ci.getUri()); ...
public void computeEnhancements(ContentItem ci) throws EngineException { if(offline && !dereferencer.supportsOfflineMode()){ //entity dereferencer does no longer support offline mode return; } log.debug("> dereference Entities for ContentItem {}", ci.getUri()); ...
diff --git a/FiltersPlugin/src/org/gephi/filters/plugin/dynamic/DynamicRangeBuilder.java b/FiltersPlugin/src/org/gephi/filters/plugin/dynamic/DynamicRangeBuilder.java index b561725f8..85c330a17 100644 --- a/FiltersPlugin/src/org/gephi/filters/plugin/dynamic/DynamicRangeBuilder.java +++ b/FiltersPlugin/src/org/gephi/fil...
true
true
public void refreshValues(HierarchicalGraph graph) { min = Double.POSITIVE_INFINITY; max = Double.NEGATIVE_INFINITY; if (nodeColumn != null) { for (Node n : graph.getNodes()) { Object obj = n.getNodeData().getAttributes().getValue(nodeColu...
public void refreshValues(HierarchicalGraph graph) { min = Double.POSITIVE_INFINITY; max = Double.NEGATIVE_INFINITY; if (nodeColumn != null) { for (Node n : graph.getNodes()) { Object obj = n.getNodeData().getAttributes().getValue(nodeColu...
diff --git a/core/src/visad/trunk/Set.java b/core/src/visad/trunk/Set.java index 63863ebce..7a4d235d3 100644 --- a/core/src/visad/trunk/Set.java +++ b/core/src/visad/trunk/Set.java @@ -1,894 +1,895 @@ // // Set.java // /* VisAD system for interactive analysis and visualization of numerical data. Copyright (C) ...
true
true
public Set merge1DSets(Set set) throws VisADException { if (DomainDimension != 1 || set.getDimension() != 1 || equals(set)) return this; int length = getLength(); // all indices in this int[] indices = getWedge(); // all values in this double[][] old_values = indexToDouble(indices); //...
public Set merge1DSets(Set set) throws VisADException { if (DomainDimension != 1 || set.getDimension() != 1 || equals(set)) return this; int length = getLength(); // all indices in this int[] indices = getWedge(); // all values in this double[][] old_values = indexToDouble(indices); //...
diff --git a/junithelper/src/org/junithelper/plugin/util/TestCaseGenerateUtil.java b/junithelper/src/org/junithelper/plugin/util/TestCaseGenerateUtil.java index 87ce5aa..746b384 100644 --- a/junithelper/src/org/junithelper/plugin/util/TestCaseGenerateUtil.java +++ b/junithelper/src/org/junithelper/plugin/util/TestCaseG...
false
true
public static ClassInfo getTestClassInfoFromTargetClass(IFile javaFile) throws Exception { IPreferenceStore store = Activator.getDefault().getPreferenceStore(); ClassInfo classInfo = new ClassInfo(); List<MethodInfo> testMethods = new ArrayList<MethodInfo>(); // enable public method test boolean enabled =...
public static ClassInfo getTestClassInfoFromTargetClass(IFile javaFile) throws Exception { IPreferenceStore store = Activator.getDefault().getPreferenceStore(); ClassInfo classInfo = new ClassInfo(); List<MethodInfo> testMethods = new ArrayList<MethodInfo>(); // enable public method test boolean enabled =...
diff --git a/src/com/github/gwateke/ui/form/support/DefaultFieldFactory.java b/src/com/github/gwateke/ui/form/support/DefaultFieldFactory.java index ff818e6..617bb62 100644 --- a/src/com/github/gwateke/ui/form/support/DefaultFieldFactory.java +++ b/src/com/github/gwateke/ui/form/support/DefaultFieldFactory.java @@ -1,1...
true
true
public Widget createWidget(FieldMetadata field, MessageSource messageSource) { final Boolean display = field.getUserMetadata("display"); if (display != null && !display) { return new Hidden(); } final Boolean association = field.getUserMetadata("association"); if (association != null && association) { ...
public Widget createWidget(FieldMetadata field, MessageSource messageSource) { final Boolean display = field.getUserMetadata("display"); if (display != null && !display) { return new Hidden(); } final Boolean association = field.getUserMetadata("association"); if (association != null && association) { ...
diff --git a/disambiguation-work/disambiguation-work-impl/src/main/java/pl/edu/icm/coansys/disambiguation/work/voter/AuthorsVoter.java b/disambiguation-work/disambiguation-work-impl/src/main/java/pl/edu/icm/coansys/disambiguation/work/voter/AuthorsVoter.java index 0f621ca0..08f52c65 100644 --- a/disambiguation-work/dis...
true
true
private Pair<String[], Boolean> extractSurnames(DocumentProtos.DocumentWrapper doc) { RegexpParser authorParser = new RegexpParser("authorParser.properties", "author"); List<DocumentProtos.Author> authorList = doc.getDocumentMetadata().getBasicMetadata().getAuthorList(); String[] resultByPos...
private Pair<String[], Boolean> extractSurnames(DocumentProtos.DocumentWrapper doc) { RegexpParser authorParser = new RegexpParser("authorParser.properties", "author"); List<DocumentProtos.Author> authorList = doc.getDocumentMetadata().getBasicMetadata().getAuthorList(); String[] resultByPos...
diff --git a/de.fu_berlin.inf.dpp/test/stf/de/fu_berlin/inf/dpp/stf/test/consistency/RecoveryWhileTypingTest.java b/de.fu_berlin.inf.dpp/test/stf/de/fu_berlin/inf/dpp/stf/test/consistency/RecoveryWhileTypingTest.java index c7976e6e9..73274b850 100644 --- a/de.fu_berlin.inf.dpp/test/stf/de/fu_berlin/inf/dpp/stf/test/con...
true
true
public void testRecoveryWhileTyping() throws Exception { Util.setUpSessionWithProjectAndFile("foo", "readme.txt", "Harry Potter und der geheime Pornokeller", ALICE, BOB); BOB.superBot().views().packageExplorerView() .waitUntilResourceIsShared("foo/readme.txt"); ALIC...
public void testRecoveryWhileTyping() throws Exception { Util.setUpSessionWithProjectAndFile("foo", "readme.txt", "Harry Potter und der geheime Pornokeller", ALICE, BOB); BOB.superBot().views().packageExplorerView() .waitUntilResourceIsShared("foo/readme.txt"); ALIC...
diff --git a/geobatch/csvingest/src/main/java/it/geosolutions/geobatch/opensdi/csvingest/CSVIngestAction.java b/geobatch/csvingest/src/main/java/it/geosolutions/geobatch/opensdi/csvingest/CSVIngestAction.java index 5ed56ec..edd3e43 100644 --- a/geobatch/csvingest/src/main/java/it/geosolutions/geobatch/opensdi/csvingest...
true
true
private void processCSVFile(File file) throws ActionException { LOGGER.info("Processing input file " + file); String[] headers = null; CSVReader reader = null; try { reader = new CSVReader(new FileReader(file), ','); headers = reader.readNext(); } cat...
private void processCSVFile(File file) throws ActionException { LOGGER.info("Processing input file " + file); String[] headers = null; CSVReader reader = null; try { reader = new CSVReader(new FileReader(file), ','); headers = reader.readNext(); } cat...
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/ClassPrepareEventImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/ClassPrepareEventImpl.java index 27ffebe62..54a6b7fc8 100644 --- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/ClassPrepareEventImpl.java +++ b/org.ecl...
true
true
public static ClassPrepareEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException { VirtualMachineImpl vmImpl = target.virtualMachineImpl(); ClassPrepareEventImpl event = new ClassPrepareEventImpl(vmImpl, requestID); event.fThreadRef = ThreadReferenceImpl.read(targ...
public static ClassPrepareEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException { VirtualMachineImpl vmImpl = target.virtualMachineImpl(); ClassPrepareEventImpl event = new ClassPrepareEventImpl(vmImpl, requestID); event.fThreadRef = ThreadReferenceImpl.read(targ...
diff --git a/src/com/android/providers/media/MediaProvider.java b/src/com/android/providers/media/MediaProvider.java index 4566b0f..607dc8d 100644 --- a/src/com/android/providers/media/MediaProvider.java +++ b/src/com/android/providers/media/MediaProvider.java @@ -1,5353 +1,5357 @@ /* * Copyright (C) 2006 The Androi...
true
true
private static void updateDatabase(Context context, SQLiteDatabase db, boolean internal, int fromVersion, int toVersion) { // sanity checks int dbversion = getDatabaseVersion(context); if (toVersion != dbversion) { Log.e(TAG, "Illegal update request. Got " + toVersio...
private static void updateDatabase(Context context, SQLiteDatabase db, boolean internal, int fromVersion, int toVersion) { // sanity checks int dbversion = getDatabaseVersion(context); if (toVersion != dbversion) { Log.e(TAG, "Illegal update request. Got " + toVersio...
diff --git a/ini/trakem2/persistence/DownsamplerMipMaps.java b/ini/trakem2/persistence/DownsamplerMipMaps.java index bc196d3e..cb5d0e2b 100644 --- a/ini/trakem2/persistence/DownsamplerMipMaps.java +++ b/ini/trakem2/persistence/DownsamplerMipMaps.java @@ -1,184 +1,184 @@ package ini.trakem2.persistence; import mpi...
false
true
static public final ImageBytes[] create( final Patch patch, final int type, final ImageProcessor ip, final ByteProcessor alpha, final ByteProcessor outside) { // Create pyramid final ImageBytes[] p = new ImageBytes[Loader.getHighestMipMapLevel(patch) + 1]; final double min = ip.getMin(), ...
static public final ImageBytes[] create( final Patch patch, final int type, final ImageProcessor ip, final ByteProcessor alpha, final ByteProcessor outside) { // Create pyramid final ImageBytes[] p = new ImageBytes[Loader.getHighestMipMapLevel(patch) + 1]; final double min = ip.getMin(), ...
diff --git a/de/bangl/wgpdf/listener/PlayerDamageListener.java b/de/bangl/wgpdf/listener/PlayerDamageListener.java index 7262bbf..94d5875 100644 --- a/de/bangl/wgpdf/listener/PlayerDamageListener.java +++ b/de/bangl/wgpdf/listener/PlayerDamageListener.java @@ -1,49 +1,50 @@ /* * Copyright (C) 2012 BangL <henno.ricko...
true
true
public void onPlayerDamage(EntityDamageEvent event) { // Only handle if player and dmg cause is not null. if(event.getEntity() instanceof Player && event.getCause() != null) { // Cancel if dmg cause is denied here. if (!Utils.dmgAllowedAtLocation(plugin.getWGP...
public void onPlayerDamage(EntityDamageEvent event) { // Only handle if player and dmg cause is not null. if(event.getEntity() != null && event.getCause() != null && event.getEntity() instanceof Player) { // Cancel if dmg cause is denied here. ...
diff --git a/AndBible/src/net/bible/android/control/navigation/DocumentBibleBooksFactory.java b/AndBible/src/net/bible/android/control/navigation/DocumentBibleBooksFactory.java index 325edf91..0711205f 100644 --- a/AndBible/src/net/bible/android/control/navigation/DocumentBibleBooksFactory.java +++ b/AndBible/src/net/b...
true
true
public DocumentBibleBooksFactory() { // initialise the DocumentBibleBooks factory cache = new LruCache<AbstractPassageBook, DocumentBibleBooks>(CACHE_SIZE) { /** If entry for this Book not found in cache then create one */ @Override protected DocumentBibleBooks create(AbstractPassageBook document) { ...
public DocumentBibleBooksFactory() { // initialise the DocumentBibleBooks factory cache = new LruCache<AbstractPassageBook, DocumentBibleBooks>(CACHE_SIZE) { /** If entry for this Book not found in cache then create one */ @Override protected DocumentBibleBooks create(AbstractPassageBook document) { ...
diff --git a/TFC_Shared/src/TFC/Containers/ContainerMold.java b/TFC_Shared/src/TFC/Containers/ContainerMold.java index 37d452220..decf0a571 100644 --- a/TFC_Shared/src/TFC/Containers/ContainerMold.java +++ b/TFC_Shared/src/TFC/Containers/ContainerMold.java @@ -1,191 +1,191 @@ package TFC.Containers; import net.mine...
true
true
public void detectAndSendChanges() { super.detectAndSendChanges(); if(craftResult.getStackInSlot(0) == null) { PlayerInfo pi = PlayerManagerTFC.getInstance().getPlayerInfoFromPlayer(player); if(containerInv.getStackInSlot(1) != null && pi.moldTransferTimer < 100) pi.moldTransferTimer++; if(contain...
public void detectAndSendChanges() { super.detectAndSendChanges(); if(craftResult.getStackInSlot(0) == null) { PlayerInfo pi = PlayerManagerTFC.getInstance().getPlayerInfoFromPlayer(player); if(containerInv.getStackInSlot(1) != null && pi.moldTransferTimer < 100) pi.moldTransferTimer++; if(contain...
diff --git a/gfa-core/src/main/java/com/lemoulinstudio/gfa/core/cpu/instruction/ArmStateMove.java b/gfa-core/src/main/java/com/lemoulinstudio/gfa/core/cpu/instruction/ArmStateMove.java index c089fdf..2e2b05d 100755 --- a/gfa-core/src/main/java/com/lemoulinstudio/gfa/core/cpu/instruction/ArmStateMove.java +++ b/gfa-core...
true
true
public void execute() { if (!isPreconditionSatisfied()) return; tmpCPSR.set(CPSR); int operand2; destinationRegister = getRegister((opcode & DestinationMask) >>> 12); if ((opcode & ImmediateBit) == 0) { // operand 2 is a register ArmReg rm = getRegister(opcode & Op2RegisterMas...
public void execute() { if (!isPreconditionSatisfied()) return; tmpCPSR.set(CPSR); int operand2; destinationRegister = getRegister((opcode & DestinationMask) >>> 12); if ((opcode & ImmediateBit) == 0) { // operand 2 is a register ArmReg rm = getRegister(opcode & Op2RegisterMas...
diff --git a/java/src/org/exist/messaging/xquery/RegisterReceiver.java b/java/src/org/exist/messaging/xquery/RegisterReceiver.java index 650049e..24dfabb 100644 --- a/java/src/org/exist/messaging/xquery/RegisterReceiver.java +++ b/java/src/org/exist/messaging/xquery/RegisterReceiver.java @@ -1,115 +1,116 @@ /* * eX...
true
true
public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { // User must either be DBA or in the JMS group if (!context.getSubject().hasDbaRole() && !context.getSubject().hasGroup(Constants.JMS_GROUP)) { String txt = String.format("Permission denied, user '%s...
public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { // User must either be DBA or in the JMS group if (!context.getSubject().hasDbaRole() && !context.getSubject().hasGroup(Constants.JMS_GROUP)) { String txt = String.format("Permission denied, user '%s...
diff --git a/org.openscada.hd.server.storage.common/src/org/openscada/hd/server/storage/common/QueryDataBuffer.java b/org.openscada.hd.server.storage.common/src/org/openscada/hd/server/storage/common/QueryDataBuffer.java index 9bb327e04..ea28869d4 100644 --- a/org.openscada.hd.server.storage.common/src/org/openscada/hd...
false
true
protected void notifyData ( final int startIndex, final int endIndex ) { final Collection<ValueInformation> information = new ArrayList<ValueInformation> (); final Map<String, Collection<Value>> values = new HashMap<String, Collection<Value>> (); values.put ( "AVG", new ArrayList<Value> ...
protected void notifyData ( final int startIndex, final int endIndex ) { final Collection<ValueInformation> information = new ArrayList<ValueInformation> (); final Map<String, Collection<Value>> values = new HashMap<String, Collection<Value>> (); values.put ( "AVG", new ArrayList<Value> ...
diff --git a/src/java/com/splunk/shuttl/archiver/copy/LockedBucketCopier.java b/src/java/com/splunk/shuttl/archiver/copy/LockedBucketCopier.java index 104e8947..2be5de01 100644 --- a/src/java/com/splunk/shuttl/archiver/copy/LockedBucketCopier.java +++ b/src/java/com/splunk/shuttl/archiver/copy/LockedBucketCopier.java @...
true
true
public void handleSharedLockedBucket(Bucket bucket) { logger.info(will("call copy bucket endpoint", "bucket", bucket)); LocalBucket localBucket = (LocalBucket) bucket; endpoint.call(localBucket); logger.info(done("calling copy bucket endpoint")); receipts.createReceipt(localBucket); }
public void handleSharedLockedBucket(Bucket bucket) { logger.info(will("call copy bucket endpoint", "bucket", bucket)); LocalBucket localBucket = (LocalBucket) bucket; endpoint.call(localBucket); logger.info(done("calling copy bucket endpoint", "bucket", bucket)); receipts.createReceipt(localBucket); ...
diff --git a/spoon-runner/src/main/java/com/squareup/spoon/SpoonDeviceRunner.java b/spoon-runner/src/main/java/com/squareup/spoon/SpoonDeviceRunner.java index bbd59b4..6ab94d0 100644 --- a/spoon-runner/src/main/java/com/squareup/spoon/SpoonDeviceRunner.java +++ b/spoon-runner/src/main/java/com/squareup/spoon/SpoonDevic...
false
true
public DeviceResult run(AndroidDebugBridge adb) { String appPackage = instrumentationInfo.getApplicationPackage(); String testPackage = instrumentationInfo.getInstrumentationPackage(); String testRunner = instrumentationInfo.getTestRunnerClass(); logDebug(debug, "InstrumentationInfo: [%s]", instrument...
public DeviceResult run(AndroidDebugBridge adb) { String appPackage = instrumentationInfo.getApplicationPackage(); String testPackage = instrumentationInfo.getInstrumentationPackage(); String testRunner = instrumentationInfo.getTestRunnerClass(); logDebug(debug, "InstrumentationInfo: [%s]", instrument...
diff --git a/src/com/dmdirc/addons/ui_swing/dialogs/actioneditor/ActionTriggersPanel.java b/src/com/dmdirc/addons/ui_swing/dialogs/actioneditor/ActionTriggersPanel.java index 058b7734..59a41e0a 100644 --- a/src/com/dmdirc/addons/ui_swing/dialogs/actioneditor/ActionTriggersPanel.java +++ b/src/com/dmdirc/addons/ui_swing...
false
true
private void initComponents() { setBorder(BorderFactory.createTitledBorder(UIManager.getBorder( "TitledBorder.border"), "Triggers")); trigger = new JComboBox(new ActionTypeModel(getFontMetrics(getFont()), ActionManager.getTypeGroups())); //Onl...
private void initComponents() { setBorder(BorderFactory.createTitledBorder(UIManager.getBorder( "TitledBorder.border"), "Triggers")); trigger = new JComboBox(new ActionTypeModel(getFontMetrics(getFont()), ActionManager.getTypeGroups())); //Onl...
diff --git a/app/controllers/oauth/Twitter.java b/app/controllers/oauth/Twitter.java index 1d51d50..8152a6e 100644 --- a/app/controllers/oauth/Twitter.java +++ b/app/controllers/oauth/Twitter.java @@ -1,114 +1,113 @@ package controllers.oauth; import com.google.gson.JsonArray; import com.google.gson.JsonElement; ...
true
true
public List<StatusActivity> fetchActivities(OAuthAccount account) { List<StatusActivity> statuses = new ArrayList<StatusActivity>(); StringBuilder url = new StringBuilder("https://api.twitter.com/1/statuses/user_timeline.json?include_rts=true"); url.append("&screen_name=").append(ac...
public List<StatusActivity> fetchActivities(OAuthAccount account) { List<StatusActivity> statuses = new ArrayList<StatusActivity>(); StringBuilder url = new StringBuilder("https://api.twitter.com/1/statuses/user_timeline.json?include_rts=true"); url.append("&screen_name=").append(ac...
diff --git a/grails/test/web/org/codehaus/groovy/grails/web/pages/ParseTests.java b/grails/test/web/org/codehaus/groovy/grails/web/pages/ParseTests.java index bc8c13744..0fdc6eca2 100644 --- a/grails/test/web/org/codehaus/groovy/grails/web/pages/ParseTests.java +++ b/grails/test/web/org/codehaus/groovy/grails/web/pages...
true
true
public void testParseGTagsWithNamespaces() throws Exception { String expected = "import org.codehaus.groovy.grails.web.pages.GroovyPage\n" + "import org.codehaus.groovy.grails.web.taglib.*\n" + "\n" + "class myTest extends GroovyPage {\n" + ...
public void testParseGTagsWithNamespaces() throws Exception { String expected = "import org.codehaus.groovy.grails.web.pages.GroovyPage\n" + "import org.codehaus.groovy.grails.web.taglib.*\n" + "\n" + "class myTest extends GroovyPage {\n" + ...
diff --git a/src/main/java/com/jezhumble/javasysmon/FileUtils.java b/src/main/java/com/jezhumble/javasysmon/FileUtils.java index 69cfe48..3e41db5 100644 --- a/src/main/java/com/jezhumble/javasysmon/FileUtils.java +++ b/src/main/java/com/jezhumble/javasysmon/FileUtils.java @@ -1,104 +1,105 @@ package com.jezhumble.java...
false
true
public String slurpFromInputStream(InputStream stream) throws IOException { if (stream == null) { return null; } StringBuilder sb = new StringBuilder(); String line; try { BufferedReader reader = new BufferedReader(new InputStreamReader(stream, "UTF-8"...
public String slurpFromInputStream(InputStream stream) throws IOException { if (stream == null) { return null; } StringWriter sw = new StringWriter(); String line; try { BufferedReader reader = new BufferedReader(new InputStreamReader(stream, "UTF-8"))...
diff --git a/src/main/java/uk/ac/ebi/fgpt/sampletab/sra/ENASRAXMLToSampleTab.java b/src/main/java/uk/ac/ebi/fgpt/sampletab/sra/ENASRAXMLToSampleTab.java index 5126fbcd..bad36bd7 100644 --- a/src/main/java/uk/ac/ebi/fgpt/sampletab/sra/ENASRAXMLToSampleTab.java +++ b/src/main/java/uk/ac/ebi/fgpt/sampletab/sra/ENASRAXMLTo...
false
true
public SampleData convert(File infile) throws ParseException, IOException, DocumentException { infile = infile.getAbsoluteFile(); if (infile.isDirectory()) { infile = new File(infile, "study.xml"); log.info("Given a directly, looking for " + infile); ...
public SampleData convert(File infile) throws ParseException, IOException, DocumentException { infile = infile.getAbsoluteFile(); if (infile.isDirectory()) { infile = new File(infile, "study.xml"); log.info("Given a directly, looking for " + infile); ...
diff --git a/fingerpaint/src/nl/tue/fingerpaint/client/gui/celllists/LoadResultsCellList.java b/fingerpaint/src/nl/tue/fingerpaint/client/gui/celllists/LoadResultsCellList.java index 85357c6..8060d68 100644 --- a/fingerpaint/src/nl/tue/fingerpaint/client/gui/celllists/LoadResultsCellList.java +++ b/fingerpaint/src/nl/t...
true
true
protected void recompute(ResultStorage result) { // load the protocol in the protocol box MixingProtocol prot = result.getMixingProtocol(); as.setProtocol(prot); GuiState.labelProtocolRepresentation.setText(as.getProtocol().toString()); GuiState.nrStepsSpinner.setValue(result.getNrSteps()); // load the ...
protected void recompute(ResultStorage result) { // load the protocol in the protocol box MixingProtocol prot = result.getMixingProtocol(); as.setProtocol(prot); GuiState.labelProtocolRepresentation.setText(as.getProtocol().toString()); GuiState.nrStepsSpinner.setValue(result.getNrSteps()); // load the ...
diff --git a/modules/axiom-buildutils/src/main/java/org/apache/axiom/buildutils/OhlohMacro.java b/modules/axiom-buildutils/src/main/java/org/apache/axiom/buildutils/OhlohMacro.java index c08fddb72..e9fc573ff 100644 --- a/modules/axiom-buildutils/src/main/java/org/apache/axiom/buildutils/OhlohMacro.java +++ b/modules/ax...
false
true
public void execute(Sink sink, MacroRequest request) throws MacroExecutionException { String project = (String)request.getParameter("project"); if (project == null) { throw new MacroExecutionException("'project' macro parameter is required"); } String widget = (String)req...
public void execute(Sink sink, MacroRequest request) throws MacroExecutionException { String project = (String)request.getParameter("project"); if (project == null) { throw new MacroExecutionException("'project' macro parameter is required"); } String widgets = (String)re...
diff --git a/tiles-velocity/src/main/java/org/apache/tiles/velocity/context/VelocityUtil.java b/tiles-velocity/src/main/java/org/apache/tiles/velocity/context/VelocityUtil.java index fcaf8523..1b09bc4b 100644 --- a/tiles-velocity/src/main/java/org/apache/tiles/velocity/context/VelocityUtil.java +++ b/tiles-velocity/src...
true
true
public static void setAttribute(Context velocityContext, HttpServletRequest request, ServletContext servletContext, String name, Object obj, String scope) { if (scope == null) { scope = "page"; } if ("page".equals(scope)) { velocityContext.put(...
public static void setAttribute(Context velocityContext, HttpServletRequest request, ServletContext servletContext, String name, Object obj, String scope) { if (scope == null) { scope = "request"; // FIXME Use "page" } if ("page".equals(scope)) { ...
diff --git a/solr/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java b/solr/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java index 4ec455bbd..48425034b 100644 --- a/solr/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java +++ b/solr/src/java/org/apache/solr/handler/AnalysisReq...
true
true
private List<NamedList> convertTokensToNamedLists(final List<AttributeSource> tokens, AnalysisContext context) { final List<NamedList> tokensNamedLists = new ArrayList<NamedList>(); final int[] positions = new int[tokens.size()]; int position = 0; for (int i = 0, c = tokens.size(); i < c; i++) { ...
private List<NamedList> convertTokensToNamedLists(final List<AttributeSource> tokens, AnalysisContext context) { final List<NamedList> tokensNamedLists = new ArrayList<NamedList>(); final int[] positions = new int[tokens.size()]; int position = 0; for (int i = 0, c = tokens.size(); i < c; i++) { ...
diff --git a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/tag/handler/InputDateTimeTagHandler.java b/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/tag/handler/InputDateTimeTagHandler.java index 4f43e133..d086b88e 100644 --- a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/pla...
true
true
protected MetaRuleset createMetaRuleset(Class type) { MetaRuleset m = super.createMetaRuleset(type); // aliases for the old date time component compatibility m.alias("format", "datePattern"); // showsTime is not configurable anymore m.ignore("showsTime"); // locale o...
protected MetaRuleset createMetaRuleset(Class type) { MetaRuleset m = super.createMetaRuleset(type); // aliases for the old date time component compatibility m.alias("format", "datePattern"); // showsTime is not configurable anymore m.ignore("showsTime"); // locale o...
diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/StorageHelperDirector.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/StorageHelperDirector.java index 0662b18ae..ecef9b28d 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/...
true
true
private void InitializeHelpers() { try { for (StorageType storageType : StorageType.values()) { Class<?> actionType = null; String formattedClassName = String.format("%1$s.%2$s%3$s", ACTION_TYPE_PACKAGE, storageType....
private void InitializeHelpers() { try { for (StorageType storageType : StorageType.values()) { Class<?> actionType = null; String formattedClassName = String.format("%1$s.%2$s%3$s", ACTION_TYPE_PACKAGE, storageType....
diff --git a/plugins/org.teiid.designer.transformation/src/org/teiid/designer/transformation/util/AttributeMappingHelper.java b/plugins/org.teiid.designer.transformation/src/org/teiid/designer/transformation/util/AttributeMappingHelper.java index 7887a9a17..100a913ac 100644 --- a/plugins/org.teiid.designer.transformati...
false
true
public static boolean updateAttributeMappings(Object transMappingRoot, Object txnSource) { boolean changed = false; if(!TransformationHelper.isTransformationMappingRoot(transMappingRoot)) { return changed; } // Get Target attributes List targetAttrs = TransformationHelper.get...
public static boolean updateAttributeMappings(Object transMappingRoot, Object txnSource) { boolean changed = false; if(!TransformationHelper.isTransformationMappingRoot(transMappingRoot)) { return changed; } // Get Target attributes List targetAttrs = TransformationHelper.get...
diff --git a/BlueMesh/src/blue/mesh/ClientThread.java b/BlueMesh/src/blue/mesh/ClientThread.java index a9d70b9..ff7fcd2 100644 --- a/BlueMesh/src/blue/mesh/ClientThread.java +++ b/BlueMesh/src/blue/mesh/ClientThread.java @@ -1,116 +1,119 @@ package blue.mesh; import java.io.IOException; import java.lang.reflect.Me...
false
true
public void run(){ while ( !this.killed ) { // get list of all paired devices Set<BluetoothDevice> pairedDevices = adapter.getBondedDevices(); // Loop through paired devices and attempt to connect for (BluetoothDevice d : pairedDevices) { ...
public void run(){ while ( !this.killed ) { // get list of all paired devices Set<BluetoothDevice> pairedDevices = adapter.getBondedDevices(); // Loop through paired devices and attempt to connect for (BluetoothDevice d : pairedDevices) { ...
diff --git a/core/src/main/java/org/apache/mina/common/IoSessionLogger.java b/core/src/main/java/org/apache/mina/common/IoSessionLogger.java index f5023de5..4bd673ea 100644 --- a/core/src/main/java/org/apache/mina/common/IoSessionLogger.java +++ b/core/src/main/java/org/apache/mina/common/IoSessionLogger.java @@ -1,707...
true
true
private IoSessionLogger(IoSession session, Logger logger) { if (session == null) { throw new NullPointerException("session"); } if (logger == null) { throw new NullPointerException("logger"); } this.session = session; this.logger = logger; ...
private IoSessionLogger(IoSession session, Logger logger) { if (session == null) { throw new NullPointerException("session"); } if (logger == null) { throw new NullPointerException("logger"); } this.session = session; this.logger = logger; ...
diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java b/maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java index 9c105a68d..6cef9601b 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/repository/Artifac...
true
true
public boolean checkOutOfDate( Date lastModified ) { boolean checkForUpdates = false; if ( UPDATE_POLICY_ALWAYS.equals( updatePolicy ) ) { checkForUpdates = true; } else if ( UPDATE_POLICY_DAILY.equals( updatePolicy ) ) { // Get midnight b...
public boolean checkOutOfDate( Date lastModified ) { boolean checkForUpdates = false; if ( UPDATE_POLICY_ALWAYS.equals( updatePolicy ) ) { checkForUpdates = true; } else if ( UPDATE_POLICY_DAILY.equals( updatePolicy ) ) { // Get local midn...
diff --git a/org.dawnsci.python.rpc/src/org/dawnsci/python/rpc/PythonService.java b/org.dawnsci.python.rpc/src/org/dawnsci/python/rpc/PythonService.java index 4609b589..310cdbfd 100644 --- a/org.dawnsci.python.rpc/src/org/dawnsci/python/rpc/PythonService.java +++ b/org.dawnsci.python.rpc/src/org/dawnsci/python/rpc/Pyth...
true
true
public static synchronized PythonService openConnection(final String pythonInterpreter) throws Exception { final PythonService service = new PythonService(); int scisoftRpcPort = getSciSoftPlottingPort(); if (scisoftRpcPort<=0) { logger.error("Cannot identify scisoft plotting port.\nShow view p...
public static synchronized PythonService openConnection(final String pythonInterpreter) throws Exception { final PythonService service = new PythonService(); int scisoftRpcPort = getSciSoftPlottingPort(); if (scisoftRpcPort<=0) { logger.error("Cannot identify scisoft plotting port.\nShow view p...
diff --git a/DevVersion/LOGOIterationNode.java b/DevVersion/LOGOIterationNode.java index e61fc60..23da255 100644 --- a/DevVersion/LOGOIterationNode.java +++ b/DevVersion/LOGOIterationNode.java @@ -1,99 +1,112 @@ public class LOGOIterationNode extends LOGONode{ public LOGOIterationNode(String id, LOGONode... args) ...
true
true
public Object run() { double bool; double true_ = (double) 1; Object ret = null; int we_run_it = 0; if (id.equals("while")) { bool = runAndCheck(children.get(0)); if (LOGOPP.errorhandler.error()) return null; while (bool == true_) { we_run_it = 1; ret = children.get(1).run(); bool = ...
public Object run() { double bool; double true_ = (double) 1; Object ret = null; int we_run_it = 0; if (id.equals("while")) { bool = runAndCheck(children.get(0)); if (LOGOPP.errorhandler.error()) return null; while (bool == true_) { we_run_it = 1; ret = children.get(1).run(); bool = ...
diff --git a/src/com/atlauncher/gui/InstanceDisplay.java b/src/com/atlauncher/gui/InstanceDisplay.java index 84d7dc83..0584f2f4 100644 --- a/src/com/atlauncher/gui/InstanceDisplay.java +++ b/src/com/atlauncher/gui/InstanceDisplay.java @@ -1,448 +1,451 @@ /** * Copyright 2013 by ATLauncher and Contributors * * Th...
false
true
public InstanceDisplay(final Instance instance) { super(instance); pack = instance.getRealPack(); JPanel panel = super.getContentPane(); panel.setLayout(new BorderLayout()); leftPanel = new JPanel(); leftPanel.setLayout(new BorderLayout()); rightPanel = new ...
public InstanceDisplay(final Instance instance) { super(instance); pack = instance.getRealPack(); JPanel panel = super.getContentPane(); panel.setLayout(new BorderLayout()); leftPanel = new JPanel(); leftPanel.setLayout(new BorderLayout()); rightPanel = new ...
diff --git a/src/main/java/com/pannous/es/reindex/ReIndexAction.java b/src/main/java/com/pannous/es/reindex/ReIndexAction.java index 20ab2fb..c2f3b60 100644 --- a/src/main/java/com/pannous/es/reindex/ReIndexAction.java +++ b/src/main/java/com/pannous/es/reindex/ReIndexAction.java @@ -1,183 +1,182 @@ package com.pannou...
false
true
@Override public void handleRequest(RestRequest request, RestChannel channel) { logger.info("ReIndexAction.handleRequest [{}]", request.toString()); try { XContentBuilder builder = restContentBuilder(request); String oldIndexName = request.param("index"); String n...
@Override public void handleRequest(RestRequest request, RestChannel channel) { logger.info("ReIndexAction.handleRequest [{}]", request.toString()); try { XContentBuilder builder = restContentBuilder(request); String oldIndexName = request.param("index"); String n...
diff --git a/ngrinder-core/src/main/java/net/grinder/SingleConsole.java b/ngrinder-core/src/main/java/net/grinder/SingleConsole.java index caae47b7..9c166f7e 100644 --- a/ngrinder-core/src/main/java/net/grinder/SingleConsole.java +++ b/ngrinder-core/src/main/java/net/grinder/SingleConsole.java @@ -1,1014 +1,1023 @@ /*...
false
true
public void update(StatisticsSet intervalStatistics, StatisticsSet cumulativeStatistics) { if (!sampling) { return; } if (samplingCount++ < ignoreSampleCount) { return; } if (firstSampling == true) { firstSampling = false; informTestSamplingStart(); } setTpsValue(sampleModel.getTPSExpression...
public void update(StatisticsSet intervalStatistics, StatisticsSet cumulativeStatistics) { LOGGER.info("update stat..."); if (!sampling) { return; } if (samplingCount++ < ignoreSampleCount) { return; } if (firstSampling == true) { firstSampling = false; informTestSamplingStart(); } setTpsV...
diff --git a/apps/xgap/services/XqtlRApiService.java b/apps/xgap/services/XqtlRApiService.java index e7ae03b24..87e5bb4d7 100644 --- a/apps/xgap/services/XqtlRApiService.java +++ b/apps/xgap/services/XqtlRApiService.java @@ -1,222 +1,223 @@ package services; import generic.Utils; import java.io.BufferedOutputStrea...
true
true
public void handleRequest(MolgenisRequest request, MolgenisResponse response) throws ParseException, DatabaseException, IOException { Utils.console("starting RApiServlet"); OutputStream outs = response.getResponse().getOutputStream(); PrintStream out = new PrintStream(new BufferedOutputStream(outs), false, "...
public void handleRequest(MolgenisRequest request, MolgenisResponse response) throws ParseException, DatabaseException, IOException { Utils.console("starting RApiServlet"); OutputStream outs = response.getResponse().getOutputStream(); PrintStream out = new PrintStream(new BufferedOutputStream(outs), false, "...
diff --git a/team25/Goalie.java b/team25/Goalie.java index 8b693a7..16f7e17 100644 --- a/team25/Goalie.java +++ b/team25/Goalie.java @@ -1,66 +1,65 @@ package team25; import hockey.api.GoalKeeper; import hockey.api.Position; import hockey.api.Util; public class Goalie extends GoalKeeper { // Middle of our...
true
true
private void goalie_movement() { int CAGE_RADIUS = 100; double ang = Util.datan2(getPuck(), GOAL_POSITION); ang = Util.clamp(-90,ang, 90); double heading = getTargetHeading(); double newX = Util.clamp(GOAL_POSITION.getX() + 50, GOAL_POSITION.getX() + Math.cos(ang)*CAGE_RADIUS,...
private void goalie_movement() { int CAGE_RADIUS = 100; double ang = Util.datan2(getPuck(), GOAL_POSITION); ang = Util.clamp(-90,ang, 90); double heading = getTargetHeading(); double newX = Util.clamp(GOAL_POSITION.getX() + 50, GOAL_POSITION.getX() + Math.cos(ang)*CAGE_RADIUS,...
diff --git a/src/main/java/net/canarymod/commandsys/CommandManager.java b/src/main/java/net/canarymod/commandsys/CommandManager.java index ac33e8a..7cb9190 100644 --- a/src/main/java/net/canarymod/commandsys/CommandManager.java +++ b/src/main/java/net/canarymod/commandsys/CommandManager.java @@ -1,474 +1,474 @@ packag...
true
true
public void registerCommands(final CommandListener listener, CommandOwner owner, LocaleHelper translator, boolean force) throws CommandDependencyException { Method[] methods = listener.getClass().getDeclaredMethods(); ArrayList<CanaryCommand> newCommands = new ArrayList<CanaryCommand>(); fo...
public void registerCommands(final CommandListener listener, CommandOwner owner, LocaleHelper translator, boolean force) throws CommandDependencyException { Method[] methods = listener.getClass().getDeclaredMethods(); ArrayList<CanaryCommand> newCommands = new ArrayList<CanaryCommand>(); fo...
diff --git a/solr/core/src/java/org/apache/solr/update/UpdateShardHandler.java b/solr/core/src/java/org/apache/solr/update/UpdateShardHandler.java index c3d1499c8..051e11f91 100644 --- a/solr/core/src/java/org/apache/solr/update/UpdateShardHandler.java +++ b/solr/core/src/java/org/apache/solr/update/UpdateShardHandler....
true
true
public UpdateShardHandler(int distribUpdateConnTimeout, int distribUpdateSoTimeout) { ModifiableSolrParams params = new ModifiableSolrParams(); params.set(HttpClientUtil.PROP_MAX_CONNECTIONS, 500); params.set(HttpClientUtil.PROP_MAX_CONNECTIONS_PER_HOST, 16); params.set(HttpClientUtil.PROP_SO_TIMEOUT,...
public UpdateShardHandler(int distribUpdateConnTimeout, int distribUpdateSoTimeout) { ModifiableSolrParams params = new ModifiableSolrParams(); params.set(HttpClientUtil.PROP_MAX_CONNECTIONS, 500); params.set(HttpClientUtil.PROP_MAX_CONNECTIONS_PER_HOST, 16); params.set(HttpClientUtil.PROP_SO_TIMEOUT,...
diff --git a/src/com/bekvon/bukkit/residence/Residence.java b/src/com/bekvon/bukkit/residence/Residence.java index 86ab08b..ab4c790 100644 --- a/src/com/bekvon/bukkit/residence/Residence.java +++ b/src/com/bekvon/bukkit/residence/Residence.java @@ -1,2070 +1,2070 @@ /* * To change this template, choose Tools | Templ...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { ResidenceCommandEvent cevent = new ResidenceCommandEvent(command.getName(),args,sender); server.getPluginManager().callEvent(cevent); if(cevent.isCancelled()) return true; if(co...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { ResidenceCommandEvent cevent = new ResidenceCommandEvent(command.getName(),args,sender); server.getPluginManager().callEvent(cevent); if(cevent.isCancelled()) return true; if(co...
diff --git a/araqne-log-api/src/main/java/org/araqne/log/api/impl/FileUtils.java b/araqne-log-api/src/main/java/org/araqne/log/api/impl/FileUtils.java index 1047e4e1..f6c574f7 100644 --- a/araqne-log-api/src/main/java/org/araqne/log/api/impl/FileUtils.java +++ b/araqne-log-api/src/main/java/org/araqne/log/api/impl/File...
true
true
public static List<String> matchFiles(String basePath, Pattern fileNamePattern) { File[] files = new File(basePath).listFiles(); ArrayList<String> logFiles = new ArrayList<String>(); if (files != null) { for (File f : files) { if (fileNamePattern.matcher(f.getName()).matches()) logFiles.add(f.getAbs...
public static List<String> matchFiles(String basePath, Pattern fileNamePattern) { File[] files = new File(basePath).listFiles(); ArrayList<String> logFiles = new ArrayList<String>(); if (files != null) { for (File f : files) { if (f.isFile() && fileNamePattern.matcher(f.getName()).matches()) logFile...
diff --git a/firefly-common/src/main/java/com/firefly/utils/json/io/JsonStringWriter.java b/firefly-common/src/main/java/com/firefly/utils/json/io/JsonStringWriter.java index d973399d..cb5002af 100644 --- a/firefly-common/src/main/java/com/firefly/utils/json/io/JsonStringWriter.java +++ b/firefly-common/src/main/java/c...
false
true
private void writeJsonString0(String value) { buf[count++] = QUOTE; for (int i = 0; i < value.length(); i++) { char ch = value.charAt(i); switch (ch) { case '\b': buf[count++] = '\\'; buf[count++] = 'b'; break; case '\n': buf[count++] = '\\'; buf[count++] = 'n'; break; case '...
private void writeJsonString0(String value) { boolean needExpand = false; buf[count++] = QUOTE; for (int i = 0; i < value.length(); i++) { char ch = value.charAt(i); switch (ch) { case '\b': buf[count++] = '\\'; buf[count++] = 'b'; break; case '\n': buf[count++] = '\\'; buf[count+...
diff --git a/src/nl/ttys0/simplec25k/ProgramService.java b/src/nl/ttys0/simplec25k/ProgramService.java index 2fad396..9aab680 100644 --- a/src/nl/ttys0/simplec25k/ProgramService.java +++ b/src/nl/ttys0/simplec25k/ProgramService.java @@ -1,633 +1,633 @@ /* * ProgramService.java * * Copyright 2012 Roel Blaauwgeer...
true
true
private void startWorkout() { Intent myIntent = new Intent(); myIntent.setAction(MY_ACTION); myIntent.putExtra("DATA_TO_TA", "STARTED"); sendBroadcast(myIntent); running = true; paused = false; // w1d1, w1d2, w1d3 if (selectedProgram.contains("w1")) { // warmup 5m if (running) countdown(5 ...
private void startWorkout() { Intent myIntent = new Intent(); myIntent.setAction(MY_ACTION); myIntent.putExtra("DATA_TO_TA", "STARTED"); sendBroadcast(myIntent); running = true; paused = false; // w1d1, w1d2, w1d3 if (selectedProgram.contains("w1")) { // warmup 5m if (running) countdown(5 ...
diff --git a/skyNetWeb/src/main/java/com/asu/edu/FileController.java b/skyNetWeb/src/main/java/com/asu/edu/FileController.java index 6eae01a..2d6d819 100644 --- a/skyNetWeb/src/main/java/com/asu/edu/FileController.java +++ b/skyNetWeb/src/main/java/com/asu/edu/FileController.java @@ -1,92 +1,93 @@ package com.asu.edu;...
true
true
public String upload(HttpServletRequest request,@RequestParam("dept-id") int deptId,@RequestParam("parent-file-id") int parentId, HttpServletResponse response, HttpSession session) { MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; MultipartFile multipartFile = multipartRequ...
public String upload(HttpServletRequest request,@RequestParam("dept-id") int deptId,@RequestParam("parent-file-id") int parentId, HttpServletResponse response, HttpSession session) { MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; MultipartFile multipartFile = multipartRequ...
diff --git a/src/edu/berkeley/nlp/classification/FeatureExtractorTest.java b/src/edu/berkeley/nlp/classification/FeatureExtractorTest.java index c011fc8..2702544 100644 --- a/src/edu/berkeley/nlp/classification/FeatureExtractorTest.java +++ b/src/edu/berkeley/nlp/classification/FeatureExtractorTest.java @@ -1,54 +1,57 ...
true
true
public static void main(String[] args) throws PGNSyntaxError, IOException, IllegalMoveException { PGNReader reader = new PGNReader( "themes/backrankWeakness/backrankWeakness.pgn-fixed"); Game game = reader.parseGame(); Injector injector = Guice.createInjector(new AbstractModule() { @Override p...
public static void main(String[] args) throws PGNSyntaxError, IOException, IllegalMoveException { PGNReader reader = new PGNReader( "themes/backrankWeakness/backrankWeakness.pgn-fixed"); Game game = reader.parseGame(); Injector injector = Guice.createInjector(new AbstractModule() { @Override p...
diff --git a/src/main/java/com/example/Main.java b/src/main/java/com/example/Main.java index 8a5128e..e237235 100644 --- a/src/main/java/com/example/Main.java +++ b/src/main/java/com/example/Main.java @@ -1,49 +1,50 @@ package com.example; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.webapp.Web...
true
true
public static void main(String[] args) throws Exception{ String webappDirLocation = "src/main/webapp/"; //The port that we should run on can be set into an environment variable //Look for that variable and default to 8080 if it isn't there. String webPort = System.getenv("PO...
public static void main(String[] args) throws Exception{ String webappDirLocation = "src/main/webapp/"; //The port that we should run on can be set into an environment variable //Look for that variable and default to 8080 if it isn't there. String webPort = System.getenv("PO...
diff --git a/genthemall-maven-plugin/src/main/java/com/ii2d/genthemall/maven/plugin/InitMojo.java b/genthemall-maven-plugin/src/main/java/com/ii2d/genthemall/maven/plugin/InitMojo.java index 76ed710..bed76b6 100755 --- a/genthemall-maven-plugin/src/main/java/com/ii2d/genthemall/maven/plugin/InitMojo.java +++ b/genthema...
true
true
public void doExecute() throws MojoExecutionException, MojoFailureException { try { List<Template> tmplList = new ArrayList<Template>(); for(String dir: initType.split(",")) { TemplateHolder initTmpl = getTemplateHolder("classpath:gtinit/" + dir); tmplList.addAll(initTmpl.getTemplates()); } Confi...
public void doExecute() throws MojoExecutionException, MojoFailureException { try { List<Template> tmplList = new ArrayList<Template>(); for(String dir: initType.split(",")) { TemplateHolder initTmpl = getTemplateHolder("classpath:gtinit/" + dir); tmplList.addAll(initTmpl.getTemplates()); } Confi...
diff --git a/android/src/org/coolreader/crengine/SelectionToolbarDlg.java b/android/src/org/coolreader/crengine/SelectionToolbarDlg.java index 6e4716b8..29a61cd0 100644 --- a/android/src/org/coolreader/crengine/SelectionToolbarDlg.java +++ b/android/src/org/coolreader/crengine/SelectionToolbarDlg.java @@ -1,269 +1,280 ...
true
true
public SelectionToolbarDlg( CoolReader coolReader, ReaderView readerView, Selection sel ) { this.selection = sel; mCoolReader = coolReader; mReaderView = readerView; mAnchor = readerView; View panel = (LayoutInflater.from(coolReader.getApplicationContext()).inflate(R.layout.selection_toolbar, null)); pan...
public SelectionToolbarDlg( CoolReader coolReader, ReaderView readerView, Selection sel ) { this.selection = sel; mCoolReader = coolReader; mReaderView = readerView; mAnchor = readerView; View panel = (LayoutInflater.from(coolReader.getApplicationContext()).inflate(R.layout.selection_toolbar, null)); pan...
diff --git a/genie-client/src/main/java/com/netflix/genie/client/sample/ExecutionServiceSampleClient.java b/genie-client/src/main/java/com/netflix/genie/client/sample/ExecutionServiceSampleClient.java index a960c6aae1..6f9d5d8b1e 100644 --- a/genie-client/src/main/java/com/netflix/genie/client/sample/ExecutionServiceSa...
true
true
public static void main(String[] args) throws Exception { // Initialize Eureka, if it is being used // System.out.println("Initializing Eureka"); // ExecutionServiceClient.initEureka("test"); System.out.println("Initializing list of Genie servers"); ConfigurationManager.get...
public static void main(String[] args) throws Exception { // Initialize Eureka, if it is being used // System.out.println("Initializing Eureka"); // ExecutionServiceClient.initEureka("test"); System.out.println("Initializing list of Genie servers"); ConfigurationManager.get...
diff --git a/model/org/eclipse/cdt/internal/core/model/CModelManager.java b/model/org/eclipse/cdt/internal/core/model/CModelManager.java index 1b20fe0c2..03debd734 100644 --- a/model/org/eclipse/cdt/internal/core/model/CModelManager.java +++ b/model/org/eclipse/cdt/internal/core/model/CModelManager.java @@ -1,854 +1,88...
true
true
public void releaseCElement(ICElement celement) { // Guard. if (celement == null) return; //System.out.println("RELEASE " + celement.getElementName()); // Remove from the containers. int type = celement.getElementType(); if (type == ICElement.C_ARCHIVE) { //System.out.println("RELEASE Archive " + cfile...
public void releaseCElement(ICElement celement) { // Guard. if (celement == null) return; //System.out.println("RELEASE " + celement.getElementName()); // Remove from the containers. int type = celement.getElementType(); if (type == ICElement.C_ARCHIVE) { //System.out.println("RELEASE Archive " + cfile...
diff --git a/Demigods/src/com/censoredsoftware/Demigods/Demo/Deity/God/Zeus.java b/Demigods/src/com/censoredsoftware/Demigods/Demo/Deity/God/Zeus.java index 4c1362ac..75aee5a2 100644 --- a/Demigods/src/com/censoredsoftware/Demigods/Demo/Deity/God/Zeus.java +++ b/Demigods/src/com/censoredsoftware/Demigods/Demo/Deity/God...
false
true
public static void storm(Player player) { // Define variables PlayerCharacter character = TrackedPlayer.getTracked(player).getCurrent(); Set<Entity> entitySet = Sets.newHashSet(); Vector playerLocation = player.getLocation().toVector(); if(!Ability.doAbilityPreProcess(player, name, cost, info)) return; ...
public static void storm(Player player) { // Define variables PlayerCharacter character = TrackedPlayer.getTracked(player).getCurrent(); Set<Entity> entitySet = Sets.newHashSet(); Vector playerLocation = player.getLocation().toVector(); if(!Ability.doAbilityPreProcess(player, name, cost, info)) return; ...