id
int64
1
49k
buggy
stringlengths
34
37.5k
fixed
stringlengths
2
37k
34,501
import javax.enterprise.util.AnnotationLiteral; import javax.inject.Singleton; import org.jboss.weld.literal.AnyLiteral; import org.wildfly.swarm.internal.OutboundSocketBindingRequest; import org.wildfly.swarm.spi.api.Customizer; <BUG>import org.wildfly.swarm.spi.api.SocketBindingGroup; import org.wildfly.swarm.spi.run...
import org.wildfly.swarm.spi.api.cdi.CommonBean; import org.wildfly.swarm.spi.api.cdi.CommonBeanBuilder; import org.wildfly.swarm.spi.runtime.annotations.Pre;
34,502
package org.wildfly.swarm.container.runtime.cdi; import java.util.List; <BUG>import java.util.Set; import javax.enterprise.context.spi.CreationalContext;</BUG> import javax.enterprise.event.Observes; import javax.enterprise.inject.spi.AfterBeanDiscovery; import javax.enterprise.inject.spi.Bean;
import java.util.function.Supplier; import javax.enterprise.context.spi.CreationalContext;
34,503
import javax.enterprise.util.AnnotationLiteral; import javax.inject.Singleton; import org.jboss.weld.literal.AnyLiteral; import org.wildfly.swarm.internal.SocketBindingRequest; import org.wildfly.swarm.spi.api.Customizer; <BUG>import org.wildfly.swarm.spi.api.SocketBindingGroup; import org.wildfly.swarm.spi.runtime.ann...
import org.wildfly.swarm.spi.api.cdi.CommonBean; import org.wildfly.swarm.spi.api.cdi.CommonBeanBuilder; import org.wildfly.swarm.spi.runtime.annotations.Pre;
34,504
package com.xpn.xwiki.internal.observation.remote.converter; <BUG>import java.io.Serializable; import java.util.Map;</BUG> import org.xwiki.bridge.DocumentName; import org.xwiki.component.annotation.Requirement; import org.xwiki.context.Execution;
import java.util.ArrayList; import java.util.HashMap; import java.util.Map;
34,505
} else { doc = new LazyXWikiDocument(); doc.setDatabase(docName.getWiki()); doc.setSpace(docName.getSpace()); doc.setName(docName.getPage()); <BUG>doc.setLanguage((String) remoteData.get(DOC_LANGUAGE)); doc.setVersion((String) remoteData.get(DOC_VERSION)); </BUG> }
doc.setLanguage((String) remoteDataMap.get(DOC_LANGUAGE)); doc.setVersion((String) remoteDataMap.get(DOC_VERSION));
34,506
doc.setVersion((String) remoteData.get(DOC_VERSION)); </BUG> } XWikiDocument origDoc; <BUG>if (remoteData.get(ORIGDOC_VERSION) == null) { </BUG> origDoc = new XWikiDocument(docName.getWiki(), docName.getSpace(), docName.getPage()); } else { origDoc = new LazyXWikiDocument();
doc = new LazyXWikiDocument(); doc.setDatabase(docName.getWiki()); doc.setSpace(docName.getSpace()); doc.setName(docName.getPage()); doc.setLanguage((String) remoteDataMap.get(DOC_LANGUAGE)); doc.setVersion((String) remoteDataMap.get(DOC_VERSION)); if (remoteDataMap.get(ORIGDOC_VERSION) == null) {
34,507
import com.badlogic.gdx.math.Matrix4; public interface ImmediateModeRenderer { public void begin (Matrix4 projModelView, int primitiveType); public void flush (); public void color (Color color); <BUG>public void color (float r, float g, float b, float a); public void texCoord (float u, float v);</BUG> public void norm...
public void color (float colorBits); public void texCoord (float u, float v);
34,508
import org.apache.commons.lang3.math.NumberUtils; import org.json.JSONException; import org.mariotaku.microblog.library.MicroBlog; import org.mariotaku.microblog.library.MicroBlogException; import org.mariotaku.microblog.library.twitter.model.RateLimitStatus; <BUG>import org.mariotaku.microblog.library.twitter.model.St...
import org.mariotaku.pickncrop.library.PNCUtils; import org.mariotaku.sqliteqb.library.AllColumns;
34,509
context.getApplicationContext().sendBroadcast(intent); } } @Nullable public static Location getCachedLocation(Context context) { <BUG>if (BuildConfig.DEBUG) { Log.v(LOGTAG, "Fetching cached location", new Exception()); }</BUG> Location location = null;
DebugLog.v(LOGTAG, "Fetching cached location", new Exception());
34,510
FileBody fileBody = null; try { fileBody = getFileBody(context, imageUri); twitter.updateProfileBannerImage(fileBody); } finally { <BUG>Utils.closeSilently(fileBody); if (deleteImage && "file".equals(imageUri.getScheme())) { final File file = new File(imageUri.getPath()); if (!file.delete()) { Log.w(LOGTAG, String.form...
if (deleteImage) { Utils.deleteMedia(context, imageUri);
34,511
FileBody fileBody = null; try { fileBody = getFileBody(context, imageUri); twitter.updateProfileBackgroundImage(fileBody, tile); } finally { <BUG>Utils.closeSilently(fileBody); if (deleteImage && "file".equals(imageUri.getScheme())) { final File file = new File(imageUri.getPath()); if (!file.delete()) { Log.w(LOGTAG, S...
twitter.updateProfileBannerImage(fileBody); if (deleteImage) { Utils.deleteMedia(context, imageUri);
34,512
FileBody fileBody = null; try { fileBody = getFileBody(context, imageUri); return twitter.updateProfileImage(fileBody); } finally { <BUG>Utils.closeSilently(fileBody); if (deleteImage && "file".equals(imageUri.getScheme())) { final File file = new File(imageUri.getPath()); if (!file.delete()) { Log.w(LOGTAG, String.for...
twitter.updateProfileBannerImage(fileBody); if (deleteImage) { Utils.deleteMedia(context, imageUri);
34,513
import org.mariotaku.twidere.receiver.NotificationReceiver; import org.mariotaku.twidere.service.LengthyOperationsService; import org.mariotaku.twidere.util.ActivityTracker; import org.mariotaku.twidere.util.AsyncTwitterWrapper; import org.mariotaku.twidere.util.DataStoreFunctionsKt; <BUG>import org.mariotaku.twidere.u...
import org.mariotaku.twidere.util.DebugLog; import org.mariotaku.twidere.util.ImagePreloader;
34,514
final List<InetAddress> addresses = mDns.lookup(host); for (InetAddress address : addresses) { c.addRow(new String[]{host, address.getHostAddress()}); } } catch (final IOException ignore) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, ignore); }</BUG> }
DebugLog.w(LOGTAG, null, ignore);
34,515
for (Location location : twitter.getAvailableTrends()) { map.put(location); } return map.pack(); } catch (final MicroBlogException e) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, e); }</BUG> }
DebugLog.w(LOGTAG, null, e);
34,516
import android.content.Context; import android.content.SharedPreferences; import android.location.Location; import android.os.AsyncTask; import android.support.annotation.NonNull; <BUG>import android.util.Log; import org.mariotaku.twidere.BuildConfig; import org.mariotaku.twidere.Constants; import org.mariotaku.twidere...
import org.mariotaku.twidere.util.DebugLog; import org.mariotaku.twidere.util.JsonSerializer;
34,517
} public static LatLng getCachedLatLng(@NonNull final Context context) { final Context appContext = context.getApplicationContext(); final SharedPreferences prefs = DependencyHolder.Companion.get(context).getPreferences(); if (!prefs.getBoolean(KEY_USAGE_STATISTICS, false)) return null; <BUG>if (BuildConfig.DEBUG) { Lo...
DebugLog.d(HotMobiLogger.LOGTAG, "getting cached location", null);
34,518
public int destroySavedSearchAsync(final UserKey accountKey, final long searchId) { final DestroySavedSearchTask task = new DestroySavedSearchTask(accountKey, searchId); return asyncTaskManager.add(task, true); } public int destroyStatusAsync(final UserKey accountKey, final String statusId) { <BUG>final DestroyStatusTa...
final DestroyStatusTask task = new DestroyStatusTask(context, accountKey, statusId);
34,519
@Override public void afterExecute(Bus handler, SingleResponse<Relationship> result) { if (result.hasData()) { handler.post(new FriendshipUpdatedEvent(accountKey, userKey, result.getData())); } else if (result.hasException()) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, "Unable to update friendship", result.getExcepti...
public UserKey[] getAccountKeys() { return DataStoreUtils.getActivatedAccountKeys(context);
34,520
MicroBlog microBlog = MicroBlogAPIFactory.getInstance(context, accountId); if (!Utils.isOfficialCredentials(context, accountId)) continue; try { microBlog.setActivitiesAboutMeUnread(cursor); } catch (MicroBlogException e) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, e); }</BUG> }
DebugLog.w(LOGTAG, null, e);
34,521
x = context.random.nextInt(blockNums.size()); ret = (Integer) blockNums.remove(x); Key key = segment.getBlockNodeKey(((Integer)ret).intValue(), container); if(key == null) { if(segment.isFinishing(container) || segment.isFinished(container)) return null; <BUG>if(segment.haveBlock(((Integer)ret).intValue())) </BUG> Logg...
if(segment.haveBlock(((Integer)ret).intValue(), container))
34,522
package xyz.nickr.superbot.cmd; <BUG>import java.util.ArrayList; import java.util.List;</BUG> import java.util.concurrent.atomic.AtomicInteger; import xyz.nickr.superbot.SuperBotCommands; import xyz.nickr.superbot.SuperBotController;
import java.util.Arrays; import java.util.List;
34,523
if (cmdHelp.length() > 0) { s += " " + cmd.help(user, userChat)[0]; } return s; } <BUG>String pad(String str, int len) { while (str.length() < len) { str += " "; // + str; } return str; }</BUG> @Override
[DELETED]
34,524
if (cmds.isEmpty()) { group.sendMessage(sys.message().escaped("It looks like there are no commands enabled in this chat.")); return; } String prefix = sys.prefix(); <BUG>AtomicInteger maxLen = new AtomicInteger(0); cmds.forEach(c -> { String cmdHelp = this.getCmdHelp(c, prefix, user, group.getType() == GroupType.USER);...
[DELETED]
34,525
});</BUG> List<String> strings = new ArrayList<>(SuperBotCommands.COMMANDS.size()); cmds.forEach(c -> { String[] help = c.help(user, group.getType() == GroupType.USER); if (c.perm() == Command.DEFAULT_PERMISSION) { <BUG>strings.add(this.pad(this.getCmdHelp(c, prefix, user, group.getType() == GroupType.USER), maxLen.get...
if (cmds.isEmpty()) { group.sendMessage(sys.message().escaped("It looks like there are no commands enabled in this chat.")); return; String prefix = sys.prefix(); strings.add(this.getCmdHelp(c, prefix, user, group.getType() == GroupType.USER) + "\n - " + help[1]);
34,526
}); strings.sort(null); if (args.length > 0) { strings.removeIf(s -> !s.contains(args[0])); } <BUG>String welcome = String.format(SuperBotController.WELCOME_MESSAGE, group.getDisplayName()); if (group.getType() == GroupType.USER) { welcome = "Welcome, " + user.getUsername(); }</BUG> if (strings.isEmpty()) {
String welcome; } else {
34,527
}</BUG> if (strings.isEmpty()) { group.sendMessage(sys.message().bold(true).escaped(welcome)); return; } <BUG>int mid = welcome.length() / 2; String wel = this.pad(welcome.substring(0, mid), maxLen.get()); String come = welcome.substring(mid); MessageBuilder mb = sys.message().bold(true).escaped(wel.trim() + come).bold...
}); strings.sort(null); if (args.length > 0) { strings.removeIf(s -> !s.contains(args[0])); String welcome; if (group.getType() == GroupType.USER) { welcome = "Welcome, " + user.getUsername(); } else { welcome = String.format(SuperBotController.WELCOME_MESSAGE, group.getDisplayName());
34,528
int episode = Integer.parseInt(spl[1]) + de; try { SeasonResult res = show.getSeason(spl[0]); SeasonEpisodeResult[] eps = res.getEpisodes(); SeasonEpisodeResult last = eps[eps.length - 1]; <BUG>if (Integer.parseInt(last.getEpisode()) >= episode) { episodeCodeCommand = String.format("S%sE%s", spl[0], episode); } else {...
if (Integer.parseInt(last.getEpisode()) < episode) { throw new NullPointerException(); // gets caught right below episodeCode = String.format("S%sE%s", spl[0], episode);
34,529
if (season == 0 || episode == 0) { group.sendMessage(mb.escaped("Invalid season or episode number.")); return; } Map<String, String> prg = SuperBotController.getProgress(show); <BUG>prg.put(profileName.toLowerCase(), episodeCodeCommand); SuperBotController.PROGRESS.put(show.imdb, prg); mb.escaped("Set ").bold(true).esc...
prg.put(profileName.toLowerCase(), epCode); mb.escaped("Set ").bold(m -> m.escaped(profileName)).escaped("'s progress on ").bold(m -> m.escaped(show.getDisplay())).escaped(" to ").bold(m -> m.escaped(epCode));
34,530
</BUG> + " * Only present for runtime invocation through {@code ButterKnife.bind()}.\n" + " */\n" + " @Deprecated\n" + " @UiThread\n" <BUG>+ " public Test_ViewBinding(T target, View source) {\n" </BUG> + " this(target, source.getContext());\n" + " }\n" + " @UiThread\n"
+ "import java.lang.Override;\n" + "import java.lang.SuppressWarnings;\n" + "public class Test_ViewBinding implements Unbinder {\n" + " /**\n" + " * @deprecated Use {@link #Test_ViewBinding(Test, Context)} for direct creation.\n" + " public Test_ViewBinding(Test target, View source) {\n"
34,531
+ " target.one = BitmapFactory.decodeResource(res, 1);\n" + " }\n" + " @Override\n" + " @CallSuper\n" + " public void unbind() {\n" <BUG>+ " if (this.target == null) throw new IllegalStateException(\"Bindings already cleared.\");\n" + " this.target = null;\n"</BUG> + " }\n" + "}" );
[DELETED]
34,532
+ " this(target, source.getContext());\n" + " }\n" + " @UiThread\n" + " @SuppressWarnings(\"ResourceType\")\n" <BUG>+ " public Test_ViewBinding(T target, Context context) {\n" + " this.target = target;\n"</BUG> + " Resources res = context.getResources();\n" + " target.one = res.getStringArray(1);\n" + ...
+ " public Test_ViewBinding(Test target, Context context) {\n"
34,533
+ " target.one = res.getStringArray(1);\n" + " }\n" + " @Override\n" + " @CallSuper\n" + " public void unbind() {\n" <BUG>+ " if (this.target == null) throw new IllegalStateException(\"Bindings already cleared.\");\n" + " this.target = null;\n"</BUG> + " }\n" + "}" );
[DELETED]
34,534
+ " this(target, source.getContext());\n" + " }\n" + " @UiThread\n" + " @SuppressWarnings(\"ResourceType\")\n" <BUG>+ " public Test_ViewBinding(T target, Context context) {\n" + " this.target = target;\n"</BUG> + " Resources res = context.getResources();\n" + " target.one = res.getIntArray(1);\n" + " ...
+ " public Test_ViewBinding(Test target, Context context) {\n"
34,535
+ " target.one = res.getIntArray(1);\n" + " }\n" + " @Override\n" + " @CallSuper\n" + " public void unbind() {\n" <BUG>+ " if (this.target == null) throw new IllegalStateException(\"Bindings already cleared.\");\n" + " this.target = null;\n"</BUG> + " }\n" + "}" );
[DELETED]
34,536
+ " this(target, source.getContext());\n" + " }\n" + " @UiThread\n" + " @SuppressWarnings(\"ResourceType\")\n" <BUG>+ " public Test_ViewBinding(T target, Context context) {\n" + " this.target = target;\n"</BUG> + " Resources res = context.getResources();\n" + " target.one = res.getTextArray(1);\n" + " ...
+ " public Test_ViewBinding(Test target, Context context) {\n"
34,537
+ " target.one = res.getTextArray(1);\n" + " }\n" + " @Override\n" + " @CallSuper\n" + " public void unbind() {\n" <BUG>+ " if (this.target == null) throw new IllegalStateException(\"Bindings already cleared.\");\n" + " this.target = null;\n"</BUG> + " }\n" + "}" );
[DELETED]
34,538
+ " this(target, source.getContext());\n" + " }\n" + " @UiThread\n" + " @SuppressWarnings(\"ResourceType\")\n" <BUG>+ " public Test_ViewBinding(T target, Context context) {\n" + " this.target = target;\n"</BUG> + " Resources res = context.getResources();\n" + " target.one = res.obtainTypedArray(1);\n" ...
+ " public Test_ViewBinding(Test target, Context context) {\n"
34,539
+ " target.one = res.obtainTypedArray(1);\n" + " }\n" + " @Override\n" + " @CallSuper\n" + " public void unbind() {\n" <BUG>+ " if (this.target == null) throw new IllegalStateException(\"Bindings already cleared.\");\n" + " this.target = null;\n"</BUG> + " }\n" + "}" );
[DELETED]
34,540
constructor.addAnnotation(AnnotationSpec.builder(SuppressWarnings.class) .addMember("value", "$S", "ResourceType") .build()); } if (hasViewBindings()) { <BUG>if (bindNeedsViewLocal()) { constructor.addStatement("$T view", VIEW);</BUG> } for (ViewBindings bindings : viewIdMap.values()) { addViewBindings(constructor, bin...
if (needsViewLocal()) { constructor.addStatement("$T view", VIEW);
34,541
result.addCode("\n"); for (ViewBindings bindings : viewIdMap.values()) { addFieldAndUnbindStatement(bindingClass, result, bindings); } } <BUG>if (!hasParentBinding()) { result.addCode("\n"); result.addStatement("this.target = null"); }</BUG> return result.build();
if (bindings.getFieldBinding() != null) { result.addStatement("target.$L = null", bindings.getFieldBinding().getName());
34,542
ResourceContext m_context; @Context UriInfo m_uriInfo; @GET @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) <BUG>public OnmsIpInterfaceList getIpInterfaces(@PathParam("nodeId") int nodeId) { log().debug("getIpInterfaces: reading interfaces for node " + nodeId); MultivaluedMap<String,String> params ...
public OnmsIpInterfaceList getIpInterfaces(@PathParam("nodeCriteria") String nodeCriteria) { log().debug("getIpInterfaces: reading interfaces for node " + nodeCriteria); OnmsNode node = m_nodeDao.get(nodeCriteria); MultivaluedMap<String,String> params = m_uriInfo.getQueryParameters();
34,543
return interfaceList; } @GET @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Path("{ipAddress}") <BUG>public OnmsIpInterface getIpInterface(@PathParam("nodeId") int nodeId, @PathParam("ipAddress") String ipAddress) { OnmsNode node = m_nodeDao.get(nodeId); if (node == null) throwException(Status.B...
public OnmsIpInterface getIpInterface(@PathParam("nodeCriteria") String nodeCriteria, @PathParam("ipAddress") String ipAddress) { OnmsNode node = m_nodeDao.get(nodeCriteria); if (node == null) { throwException(Status.BAD_REQUEST, "getIpInterface: can't find node " + nodeCriteria); return node.getIpInterfaceByIpAddress(...
34,544
OnmsCriteria criteria = getQueryFilters(); return new OnmsNodeList(m_nodeDao.findMatching(criteria)); } @GET @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) <BUG>@Path("{nodeId}") public OnmsNode getNode(@PathParam("nodeId") int nodeId) { return m_nodeDao.get(nodeId); </BUG> }
@Path("{nodeCriteria}") public OnmsNode getNode(@PathParam("nodeCriteria") String nodeCriteria) { return m_nodeDao.get(nodeCriteria);
34,545
private NodeDao m_nodeDao; @Autowired private CategoryDao m_categoryDao; @GET @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) <BUG>public OnmsCategoryCollection getCategories(@PathParam("nodeId") int nodeId) { OnmsNode node = m_nodeDao.get(nodeId); if (node == null) throwException(Status.BAD_REQUE...
[DELETED]
34,546
log().debug("addCategory: Saving category " + category); m_categoryDao.save(category); } else { category = found; } <BUG>log().debug("addCategory: Adding category " + category + " to node " + nodeId); </BUG> node.addCategory(category); m_nodeDao.save(node); return Response.ok().build();
log().debug("addCategory: Adding category " + category + " to node " + nodeCriteria);
34,547
import org.opennms.netmgt.model.OnmsDistPoller; import org.opennms.netmgt.model.OnmsIpInterface; import org.opennms.netmgt.model.OnmsNode; import org.springframework.stereotype.Repository; @Repository <BUG>public interface NodeDao extends OnmsDao<OnmsNode, Integer> { public abstract Collection<OnmsNode> findByLabel(Str...
public abstract OnmsNode get(String lookupCriteria); public abstract Collection<OnmsNode> findByLabel(String label);
34,548
@Description("Whether this instance should only participate as slave in cluster. If set to true, it will never be elected as master.") public static final Setting<Boolean> slave_only = setting( "ha.slave_only", BOOLEAN, Settings.FALSE ); @Description( "Policy for how to handle branched data." ) public static final Sett...
[DELETED]
34,549
package com.easytoolsoft.easyreport.web.controller.common; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller @RequestMapping(value = "/error") <BUG>public class ErrorController extends AbstractController { @RequestMapping(value = {"/404"})</BUG>...
public class ErrorController { @RequestMapping(value = {"/404"})
34,550
@Option(shortName="L",doc="Genomic interval to run on, as contig[:start[-stop]]; whole genome if not specified", optional=true) public String GENOME_LOCATION; @Option(shortName="V",doc="Verbosity level: SILENT, PILESUMMARY, ALIGNMENTS", optional=true) public String VERBOSITY_LEVEL; @Option(doc="Output file (sam or bam)...
@Option(doc="Error counting mode: MM - mismatches only (from sam tags), MC - mismatches only doing actual mismatch count on the fly (use this if tags are incorrectly set); ERR - errors (arachne style: mm+gap lengths), MG - count mismatches and gaps as one error each") public String ERR_MODE; @Option(shortName="R", doc=...
34,551
col.printLengthHistograms(); samReader.close(); ptWriter.close(); return 0; } <BUG>private static int numErrors(SAMRecord r) throws RuntimeException { int errs = numMismatches(r); </BUG> Cigar c = r.getCigar();
private static int numErrors(SAMRecord r, ReferenceSequence refseq) throws RuntimeException { int errs = numMismatches(r,refseq);
34,552
default: throw new RuntimeException("Unrecognized cigar element"); } } return errs; } <BUG>private static int numMismatchesGaps(SAMRecord r) throws RuntimeException { int errs = numMismatches(r); </BUG> Cigar c = r.getCigar();
private static int numMismatchesGaps(SAMRecord r,ReferenceSequence refseq) throws RuntimeException { int errs = numMismatches(r,refseq);
34,553
GenomeLoc.setupRefContigOrdering(h.getSequenceDictionary()); } private void setDefaultContigOrdering() { Map<String,Integer> rco = new HashMap<String,Integer>(); rco.put("chrM",0); <BUG>for ( int i = 1 ; i <= 22 ; i++ ) rco.put("chr"+i,i); </BUG> rco.put("chrX",23); rco.put("chrY",24); }
for ( int i = 1 ; i <= 22 ; i++ ) rco.put(Integer.toString(i),i);//rco.put("chr"+i,i);
34,554
public TrioConcordanceRecord map(RefMetaDataTracker rodData, char ref, LocusContext context) { TrioConcordanceRecord t = new TrioConcordanceRecord(); AllelicVariant mom = (rodSAMPileup)rodData.lookup("mother", null); AllelicVariant dad = (rodSAMPileup)rodData.lookup("father", null); AllelicVariant kid = (rodSAMPileup)r...
if ( hasCall(mom)) t.mom_assessed = 1; if ( hasCall(dad)) t.dad_assessed = 1; if ( hasCall(kid)) t.kid_assessed = 1; if ( hasCall(mom) && mom.isIndel() ) System.out.println("GOT INDEL: "+mom.toString()); if (( t.mom_assessed + t.dad_assessed + t.kid_assessed) != 3 ) return t; // at least one person is not called; nothi...
34,555
List<String> mom_alleles = mom.getGenotype(); List<String> dad_alleles = dad.getGenotype(); if ( mom_alleles.contains(kid_allele_1) && dad_alleles.contains(kid_allele_2) || mom_alleles.contains(kid_allele_2) && dad_alleles.contains(kid_allele_1) ) { t.consistent_snp = 1; <BUG>logger.info("consistent SNP at "+context.ge...
[DELETED]
34,556
} public Object mapRow(ResultSet rs, int rowNumber) throws SQLException { final Integer id = (Integer) rs.getObject("eventid"); LazyEvent event = (LazyEvent)Cache.obtain(OnmsEvent.class, id); event.setLoaded(true); <BUG>Integer nodeId = new Integer(rs.getInt("nodeID")); OnmsNode node = (OnmsNode)Cache.obtain(OnmsNode....
public DataSource getDataSource() { return getJdbcTemplate().getDataSource(); Integer nodeId = (Integer)rs.getObject("nodeID"); OnmsNode node = (nodeId == null) ? null : (OnmsNode)Cache.obtain(OnmsNode.class, nodeId);
34,557
private String m_eventHost; private String m_eventSource; private String m_ipAddr; private OnmsDistPoller m_distPoller; private String m_eventSnmpHost; <BUG>private OnmsMonitoredService m_service; </BUG> private String m_eventSnmp; private String m_eventParms; private Date m_eventCreateTime;
private OnmsServiceType m_serviceType;
34,558
private Set m_notifications; private Set m_outagesBySvcRegainedEventId; private Set m_outagesBySvclostEventId; public OnmsEvent(Integer eventid, String eventuei, Date eventtime, String eventhost, String eventsource, String ipaddr, <BUG>OnmsDistPoller distPoller, String eventsnmphost, OnmsMonitoredService service, </BUG...
OnmsDistPoller distPoller, String eventsnmphost, OnmsServiceType service,
34,559
m_eventHost = eventhost; m_eventSource = eventsource; m_ipAddr = ipaddr; m_distPoller = distPoller; m_eventSnmpHost = eventsnmphost; <BUG>m_service = service; </BUG> m_eventSnmp = eventsnmp; m_eventParms = eventparms; m_eventCreateTime = eventcreatetime;
m_serviceType = service;
34,560
return m_service; </BUG> } <BUG>public void setService(OnmsMonitoredService service) { m_service = service; </BUG> } public String getEventSnmp() {
return m_eventSnmpHost; public void setEventSnmpHost(String eventsnmphost) { m_eventSnmpHost = eventsnmphost; public OnmsServiceType getServiceType() { return m_serviceType; public void setServiceType(OnmsServiceType serviceType) { m_serviceType = serviceType;
34,561
event.getEventHost(), //eventHost event.getEventSource(), //eventSource event.getIpAddr(), //ipAddr event.getDistPoller().getName(), //eventDpName event.getEventSnmpHost(), //eventSnmphost <BUG>event.getService().getId(), //serviceID </BUG> event.getEventSnmp(), //eventSnmp event.getEventParms(), //even...
event.getServiceType().getId(), //serviceID
34,562
package wew.water.gpf; <BUG>import org.esa.beam.framework.gpf.OperatorException; public class ChlorophyllNetworkOperation implements NeuralNetworkOperation { @Override public void compute(float[] in, float[] out, int mask, int errMask, float a) {</BUG> if(in.length != getNumberOfInputNodes()) {
public class ChlorophyllNetworkOperation { public static int compute(float[] in, float[] out) {
34,563
if(in.length != getNumberOfInputNodes()) { throw new IllegalArgumentException("Wrong input array size"); } if(out.length != getNumberOfOutputNodes()) { throw new IllegalArgumentException("Wrong output array size"); <BUG>} NeuralNetworkComputer.compute(in, out, mask, errMask, a, </BUG> NeuralNetworkConstants.INPUT_SCALE...
final int[] rangeCheckErrorMasks = { WaterProcessorOp.RESULT_ERROR_VALUES[1], WaterProcessorOp.RESULT_ERROR_VALUES[2] }; return NeuralNetworkComputer.compute(in, out, rangeCheckErrorMasks,
34,564
+4.332827e-01, +4.453712e-01, -2.355489e-01, +4.329192e-02, -3.259577e-02, +4.245090e-01, -1.132328e-01, +2.511418e-01, -1.995074e-01, +1.797701e-01, -3.817864e-01, +2.854951e-01, }, }; <BUG>private final double[][] input_hidden_weights = new double[][]{ </BUG> { -5.127986e-01, +5.872741e-01, +4.411426e-01, +1.344507e+...
private static final double[][] input_hidden_weights = new double[][]{
34,565
-1.875955e-01, +7.851294e-01, -1.226189e+00, -1.852845e-01, +9.392875e-01, +9.886471e-01, +8.400441e-01, -1.657109e+00, +8.292500e-01, +6.291445e-01, +1.855838e+00, +7.817575e-01, }, }; <BUG>private final double[][] input_intercept_and_slope = new double[][]{ </BUG> {+4.165578e-02, +1.161174e-02}, {+3.520901e-02, +1.06...
private static final double[][] input_intercept_and_slope = new double[][]{
34,566
{+2.468300e-01, +8.368545e-01}, {-6.613120e-01, +1.469582e+00}, {-6.613120e-01, +1.469582e+00}, {+7.501110e-01, +2.776545e-01}, }; <BUG>private final double[][] output_weights = new double[][]{ </BUG> {-6.498447e+00,}, {-1.118659e+01,}, {+7.141798e+00,},
private static final double[][] output_weights = new double[][]{
34,567
package wew.water.gpf; public class NeuralNetworkComputer { <BUG>public static void compute(float[] in, float[] out, int mask, int errMask, float a, </BUG> double[][] input_scale_limits, double[] input_scale_offset_factors, int[] input_scale_flag,
public static int compute(float[] in, float[] out, int[] rangeCheckErrorMasks,
34,568
package wew.water.gpf; <BUG>public class AtmosphericCorrectionNetworkOperation implements NeuralNetworkOperation { @Override public void compute(float[] in, float[] out, int mask, int errMask, float a) { if(in.length != getNumberOfInputNodes()) { </BUG> throw new IllegalArgumentException("Wrong input array size");
import java.util.Arrays; public class AtmosphericCorrectionNetworkOperation { public static int compute(float[] in, float[] out) { if (in.length != getNumberOfInputNodes()) {
34,569
System.out.println(change); } } }; @Override <BUG>protected Callback<VChild, Void> copyChildCallback() </BUG> { return (child) -> {
protected Callback<VChild, Void> copyIntoCallback()
34,570
package jfxtras.labs.icalendarfx.components; import jfxtras.labs.icalendarfx.properties.component.descriptive.Comment; <BUG>import jfxtras.labs.icalendarfx.properties.component.misc.IANAProperty; import jfxtras.labs.icalendarfx.properties.component.misc.UnknownProperty;</BUG> import jfxtras.labs.icalendarfx.properties...
import jfxtras.labs.icalendarfx.properties.component.misc.NonStandardProperty;
34,571
VEVENT ("VEVENT", Arrays.asList(PropertyType.ATTACHMENT, PropertyType.ATTENDEE, PropertyType.CATEGORIES, PropertyType.CLASSIFICATION, PropertyType.COMMENT, PropertyType.CONTACT, PropertyType.DATE_TIME_CREATED, PropertyType.DATE_TIME_END, PropertyType.DATE_TIME_STAMP, PropertyType.DATE_TIME_START, PropertyType.DESCRIPTI...
PropertyType.GEOGRAPHIC_POSITION, PropertyType.LAST_MODIFIED, PropertyType.LOCATION, PropertyType.NON_STANDARD, PropertyType.ORGANIZER, PropertyType.PRIORITY,
34,572
VTODO ("VTODO", Arrays.asList(PropertyType.ATTACHMENT, PropertyType.ATTENDEE, PropertyType.CATEGORIES, PropertyType.CLASSIFICATION, PropertyType.COMMENT, PropertyType.CONTACT, PropertyType.DATE_TIME_COMPLETED, PropertyType.DATE_TIME_CREATED, PropertyType.DATE_TIME_DUE, PropertyType.DATE_TIME_STAMP, PropertyType.DATE_TI...
PropertyType.EXCEPTION_DATE_TIMES, PropertyType.GEOGRAPHIC_POSITION, PropertyType.LAST_MODIFIED, PropertyType.LOCATION, PropertyType.NON_STANDARD, PropertyType.ORGANIZER,
34,573
throw new RuntimeException("not implemented"); } }, DAYLIGHT_SAVING_TIME ("DAYLIGHT", Arrays.asList(PropertyType.COMMENT, PropertyType.DATE_TIME_START, <BUG>PropertyType.IANA_PROPERTY, PropertyType.NON_STANDARD, PropertyType.RECURRENCE_DATE_TIMES, PropertyType.RECURRENCE_RULE, PropertyType.TIME_ZONE_NAME, PropertyType....
PropertyType.RECURRENCE_RULE, PropertyType.TIME_ZONE_NAME, PropertyType.TIME_ZONE_OFFSET_FROM,
34,574
throw new RuntimeException("not implemented"); } }, VALARM ("VALARM", Arrays.asList(PropertyType.ACTION, PropertyType.ATTACHMENT, PropertyType.ATTENDEE, PropertyType.DESCRIPTION, <BUG>PropertyType.DURATION, PropertyType.IANA_PROPERTY, PropertyType.NON_STANDARD, PropertyType.REPEAT_COUNT, PropertyType.SUMMARY, PropertyT...
DAYLIGHT_SAVING_TIME ("DAYLIGHT", Arrays.asList(PropertyType.COMMENT, PropertyType.DATE_TIME_START, PropertyType.NON_STANDARD, PropertyType.RECURRENCE_DATE_TIMES, PropertyType.RECURRENCE_RULE, PropertyType.TIME_ZONE_NAME, PropertyType.TIME_ZONE_OFFSET_FROM, PropertyType.TIME_ZONE_OFFSET_TO), DaylightSavingTime.class)
34,575
private ContentLineStrategy contentLineGenerator; protected void setContentLineGenerator(ContentLineStrategy contentLineGenerator) { this.contentLineGenerator = contentLineGenerator; } <BUG>protected Callback<VChild, Void> copyChildCallback() </BUG> { throw new RuntimeException("Can't copy children. copyChildCallback ...
protected Callback<VChild, Void> copyIntoCallback()
34,576
import jfxtras.labs.icalendarfx.properties.calendar.Version; import jfxtras.labs.icalendarfx.properties.component.misc.NonStandardProperty; public enum CalendarProperty { CALENDAR_SCALE ("CALSCALE", <BUG>Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER), CalendarSca...
Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD), CalendarScale.class)
34,577
CalendarScale calendarScale = (CalendarScale) child; destination.setCalendarScale(calendarScale); } }, METHOD ("METHOD", <BUG>Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER), Method.class)</BUG> { @Override public VChild parse(VCalendar vCalendar, String contentLi...
Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD), Method.class)
34,578
} list.add(new NonStandardProperty((NonStandardProperty) child)); } }, PRODUCT_IDENTIFIER ("PRODID", <BUG>Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER), ProductIdentifier.class)</BUG> { @Override public VChild parse(VCalendar vCalendar, String contentLine)
public void copyChild(VChild child, VCalendar destination) CalendarScale calendarScale = (CalendarScale) child; destination.setCalendarScale(calendarScale); METHOD ("METHOD", Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD), Method.class)
34,579
ProductIdentifier productIdentifier = (ProductIdentifier) child; destination.setProductIdentifier(productIdentifier); } }, VERSION ("VERSION", <BUG>Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER), Version.class)</BUG> { @Override public VChild parse(VCalendar vCal...
Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD), Version.class)
34,580
package jfxtras.labs.icalendarfx.components; import jfxtras.labs.icalendarfx.properties.component.descriptive.Comment; <BUG>import jfxtras.labs.icalendarfx.properties.component.misc.IANAProperty; import jfxtras.labs.icalendarfx.properties.component.misc.UnknownProperty;</BUG> import jfxtras.labs.icalendarfx.properties...
import jfxtras.labs.icalendarfx.properties.component.misc.NonStandardProperty;
34,581
String pamAuthService = Config.get().getString(ConfigDefaults.WEB_PAM_AUTH_SERVICE); if (pamAuthService != null && pamAuthService.trim().length() > 0) { request.setAttribute("displaypamcheckbox", "true"); } request.setAttribute("timezones", getTimeZones()); <BUG>if (currentUser != null && currentUser.getTimeZone() != n...
if (currentUser.getTimeZone() != null) { request.setAttribute("default_tz", new Integer(currentUser.getTimeZone()
34,582
package com.redhat.rhn.frontend.action.multiorg.test; <BUG>import com.redhat.rhn.domain.role.RoleFactory; import com.redhat.rhn.testing.RhnPostMockStrutsTestCase;</BUG> import com.redhat.rhn.testing.TestUtils; public class OrgCreateActionTest extends RhnPostMockStrutsTestCase { public void testExecuteSubmit() throws Ex...
import com.redhat.rhn.testing.RhnMockDynaActionForm; import com.redhat.rhn.testing.RhnPostMockStrutsTestCase;
34,583
user.setReadOnly(form.get("readonly") != null ? true : false); UserManager.storeUser(user); return getStrutsDelegate().forwardParam(mapping.findForward(SUCCESS_INTO_ORG), "uid", String.valueOf(user.getId())); } <BUG>else if (accountType.equals(TYPE_CREATE_SAT)) { User user = createSatUser(requestContext, command, msgs)...
[DELETED]
34,584
}</BUG> private ActionForward returnError(ActionMapping mapping, HttpServletRequest request, ActionErrors errors) { addErrors(request, errors); <BUG>String accountType = request.getParameter(ACCOUNT_TYPE); if (accountType != null && accountType.equals(TYPE_CREATE_SAT)) { return getStrutsDelegate().forwardParam(mapping....
new ActionMessage("message.userCreatedIntoOrg", StringEscapeUtils.escapeHtml(newUser.getLogin()), newUser.getEmail())); return newUser; }
34,585
this.recurringTransactionId = recurringTransactionId; } public int recurringTransactionId = Constants.NOT_SET; private RecurringTransactionRepository mRepository; private RecurringTransaction mRecurringTransaction; <BUG>public DateTime getNextScheduledDate(DateTime date, Recurrence repeatType, Integer numberOfPeriods) ...
public Date getNextScheduledDate(Date date, Recurrence repeatType, Integer numberOfPeriods) { if (numberOfPeriods == null || numberOfPeriods == Constants.NOT_SET) {
34,586
repeatType = Recurrence.valueOf(repeatType.getValue() - 200); } // set auto execute without user acknowledgement if (repeatType.getValue() >= 100) { repeatType = Recurrence.valueOf(repeatType.getValue() - 100); } // set auto execute on the next occurrence <BUG>DateTime result = new DateTime(date); </BUG> switch (repeat...
MmxDate result = new MmxDate(date);
34,587
case IN_X_MONTHS: //in_x_months case EVERY_X_MONTHS: //every_x_months result = result.plusMonths(numberOfPeriods); break; case MONTHLY_LAST_DAY: //month (last day) <BUG>DateTime lastDayOfMonth = MmxJodaDateTimeUtils.getLastDayOfMonth(result); if (!result.equals(lastDayOfMonth)) {</BUG> result = lastDayOfMonth; } else {...
MmxDate lastDayOfMonth = result.lastDayOfMonth(); if (!result.equals(lastDayOfMonth)) {
34,588
} else { result = lastDayOfMonth.plusMonths(1); } break; case MONTHLY_LAST_BUSINESS_DAY: //month (last business day) <BUG>DateTime lastDayOfMonth2 = MmxJodaDateTimeUtils.getLastDayOfMonth(result); if (!result.equals(lastDayOfMonth2)) {</BUG> result = lastDayOfMonth2; } else { result = lastDayOfMonth2.plusMonths(1);
MmxDate lastDayOfMonth2 = result.lastDayOfMonth(); if (!result.equals(lastDayOfMonth2)) {
34,589
result.getDayOfWeek() == DateTimeConstants.SUNDAY) { result = result.minusDays(1); } break; } <BUG>return result; </BUG> } public RecurringTransactionRepository getRepository(){ if (mRepository == null) {
return result.toDate();
34,590
import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget.EditText; import android.widget.Spinner; import android.widget.TextView; <BUG>import com.mikepenz.google_material_typeface_library.GoogleMaterial; import com.money.manager.ex.common.Calculator;</BUG> import com.money.manager.ex.co...
import com.money.manager.ex.MoneyManagerApplication; import com.money.manager.ex.common.Calculator;
34,591
import com.money.manager.ex.core.FormatUtilities; import com.money.manager.ex.database.QueryAllData; import com.money.manager.ex.database.WhereStatementGenerator; import com.money.manager.ex.domainmodel.Account; import com.money.manager.ex.settings.AppSettings; <BUG>import com.money.manager.ex.settings.LookAndFeelSetti...
import com.money.manager.ex.utils.MmxDate; import com.money.manager.ex.utils.MmxDateTimeUtils;
34,592
import com.money.manager.ex.utils.MmxJodaDateTimeUtils; import org.joda.time.DateTime; import org.parceler.Parcels; import java.util.ArrayList; import java.util.Arrays; <BUG>import java.util.List; import butterknife.ButterKnife; import butterknife.OnClick; import info.javaperformance.money.Money;</BUG> import info.java...
import javax.inject.Inject; import dagger.Lazy; import info.javaperformance.money.Money;
34,593
import butterknife.OnClick; import info.javaperformance.money.Money;</BUG> import info.javaperformance.money.MoneyFactory; public class SearchParametersFragment extends Fragment { <BUG>private static final String KEY_SEARCH_CRITERIA = "KEY_SEARCH_CRITERIA"; private SearchParametersViewHolder viewHolder;</BUG> private S...
import dagger.Lazy; import info.javaperformance.money.Money; @Inject Lazy<MmxDateTimeUtils> dateTimeUtilsLazy; private SearchParametersViewHolder viewHolder;
34,594
fragment.setArguments(args); return fragment; } @Override public void onCreate(Bundle savedInstanceState) { <BUG>super.onCreate(savedInstanceState); setHasOptionsMenu(true);</BUG> if (getSearchParameters() == null) { setSearchParameters(new SearchParameters()); }
MoneyManagerApplication.getApp().iocComponent.inject(this); setHasOptionsMenu(true);
34,595
</BUG> } if (viewHolder.txtDateTo.getTag() != null) { String dateString = viewHolder.txtDateTo.getTag().toString(); <BUG>searchParameters.dateTo = MmxJodaDateTimeUtils.from(dateString); </BUG> } if (viewHolder.txtSelectPayee.getTag() != null) { searchParameters.payeeId = Integer.parseInt(viewHolder.txtSelectPayee.getTa...
tag = viewHolder.txtAmountTo.getTag(); if (tag != null) { searchParameters.amountTo = MoneyFactory.fromString((String) tag); if (viewHolder.txtDateFrom.getTag() != null) { searchParameters.dateFrom = dateTimeUtilsLazy.get().from(viewHolder.txtDateFrom.getTag().toString()); searchParameters.dateTo = dateTimeUtilsLazy.ge...
34,596
import com.money.manager.ex.home.SelectDatabaseActivity; import com.money.manager.ex.investment.EditPriceDialog; import com.money.manager.ex.investment.ISecurityPriceUpdater; import com.money.manager.ex.investment.morningstar.MorningstarPriceUpdater; import com.money.manager.ex.recurring.transactions.RecurringTransacti...
import com.money.manager.ex.search.SearchParametersFragment; import com.money.manager.ex.servicelayer.InfoService;
34,597
void inject(CalculatorActivity activity); void inject(DatabaseSettingsFragment fragment); void inject(CurrencyListFragment fragment); void inject(SyncPreferenceFragment fragment); void inject(HomeFragment fragment); <BUG>void inject(BaseReportFragment fragment); void inject(EditPriceDialog dialog);</BUG> void inject(IS...
void inject(SearchParametersFragment fragment); void inject(EditPriceDialog dialog);
34,598
package com.money.manager.ex.search; import org.joda.time.DateTime; <BUG>import org.parceler.Parcel; import info.javaperformance.money.Money;</BUG> @Parcel public class SearchParameters { public static final String STRING_NULL_VALUE = "null";
import java.util.Date; import info.javaperformance.money.Money;
34,599
public boolean transfer; public boolean withdrawal; public String status; public Money amountFrom; public Money amountTo; <BUG>public DateTime dateFrom; public DateTime dateTo; public Integer payeeId = null;</BUG> public String payeeName; public CategorySub category;
public Date dateFrom; public Date dateTo; public Integer payeeId = null;
34,600
import com.money.manager.ex.Constants; import com.money.manager.ex.core.Core; import com.money.manager.ex.core.TransactionTypes; import com.money.manager.ex.database.ISplitTransaction; import com.money.manager.ex.datalayer.SplitCategoriesRepository; <BUG>import com.money.manager.ex.servicelayer.CategoryService; import ...
import com.money.manager.ex.utils.MmxDate; import com.money.manager.ex.viewmodels.AccountTransactionDisplay;