1,835,470 research outputs found

    The last line effect explained

    Get PDF
    Micro-clones are tiny duplicated pieces of code; they typically comprise only few statements or lines. In this paper, we study the “Last Line Effect,” the phenomenon that the last line or statement in a micro-clone is much more likely to contain an error than the previous lines or statements. We do this by analyzing 219 open source projects and reporting on 263 faulty micro-clones and interviewing six authors of real-world faulty micro-clones. In an interdisciplinary collaboration, we examine the underlying psychological mechanisms for the presence of these relatively trivial errors. Based on the interviews and further technical analyses, we suggest that so-called “action slips” play a pivotal role for the existence of the last line effect: Developers’ attention shifts away at the end of a micro-clone creation task due to noise and the routine nature of the task. Moreover, all micro-clones whose origin we could determine were introduced in unusually large commits. Practitioners benefit from this knowledge twofold: 1) They can spot situations in which they are likely to introduce a faulty micro-clone and 2) they can use PVS-Studio, our automated micro-clone detector, to help find erroneous micro-clones

    The last line effect explained

    Get PDF

    Magnetic fields of active galactic nuclei and quasars with polarized broad H-alpha lines

    Full text link
    We present estimates of magnetic field in a number of AGNs from the Spectropolarimetric atlas of Smith, Young & Robinson (2002) from the observed degrees of linear polarization and the positional angles of spectral lines (H-alpha) (broad line regions of AGNs) and nearby continuum. The observed polarization is lower than the Milne value in a non-magnetized atmosphere. We hypothesize that the polarized radiation escapes from optically thick magnetized accretion discs and is weakened by the Faraday rotation effect. This effect is able to explain both the value of the polarization and the position angle. We estimate the required magnetic field in the broad line region by using simple asymptotic analytical formulas for Milne's problem in magnetized atmosphere, which take into account the last scattering of radiation before escaping from the accretion disc. The polarization of a broad spectral line escaping from disc is described by the same mechanism. The characteristic features of polarization of a broad line is the minimum of the degree of polarization in the center of the line and continuous rotation of the position angle from one wing to another. These effects can be explained by existence of clouds in the left (velocity is directed to an observer) and the right (velocity is directed from an observer) parts of the orbit in a rotating keplerian magnetized accretion disc. The base of explanation is existence of azimuthal magnetic field in the orbit. The existence of normal component of magnetic field makes the picture of polarization asymmetric. The existence of clouds in left and right parts of the orbit with different emissions also give the contribution in asymmetry effect. Assuming a power-law dependence of the magnetic field inside the disc, we obtain the estimate of the magnetic field strength at first stable orbit near the central SMBH for a number of AGNs.Comment: 15 pages, 4 figure

    Small global-mean cooling due to volcanic radiative forcing

    Get PDF
    In both the observational record and atmosphere-ocean general circulation model (AOGCM) simulations of the last ∌∌ 150 years, short-lived negative radiative forcing due to volcanic aerosol, following explosive eruptions, causes sudden global-mean cooling of up to ∌∌ 0.3 K. This is about five times smaller than expected from the transient climate response parameter (TCRP, K of global-mean surface air temperature change per W m−2 of radiative forcing increase) evaluated under atmospheric CO2 concentration increasing at 1 % yr−1. Using the step model (Good et al. in Geophys Res Lett 38:L01703, 2011. doi:10.​1029/​2010GL045208), we confirm the previous finding (Held et al. in J Clim 23:2418–2427, 2010. doi:10.​1175/​2009JCLI3466.​1) that the main reason for the discrepancy is the damping of the response to short-lived forcing by the thermal inertia of the upper ocean. Although the step model includes this effect, it still overestimates the volcanic cooling simulated by AOGCMs by about 60 %. We show that this remaining discrepancy can be explained by the magnitude of the volcanic forcing, which may be smaller in AOGCMs (by 30 % for the HadCM3 AOGCM) than in off-line calculations that do not account for rapid cloud adjustment, and the climate sensitivity parameter, which may be smaller than for increasing CO2 (40 % smaller than for 4 × CO2 in HadCM3)

    Three-step Bayesian factor analysis applied to QTL detection in crosses between outbred pig populations

    Get PDF
    AbstractMarker assisted selection (MAS) can be used to improve the efficiency of genetic selection of traits for which phenotypic measurements are expensive or cannot be obtained on selection candidates, such as carcass traits. Marker information required for MAS may be acquired through the identification of QTLs. Generally, univariate models are used for QTL detection, although multiple-trait models (MTM) may enhance QTL detection and breeding value estimation. In MTM, however, the number of parameters can be large and, if traits are highly correlated, such as carcass traits, estimates of (co)variance matrices may be close to singular. Because of this, dimension reduction techniques such as Factor Analysis (FA) may be useful. The aim of our project is to evaluate the use of FA for structuring (co)variance matrices in the context of Bayesian models for QTL detection in crosses between outbred populations. In our method, QTL effects are postulated at the level of common factors (CF) rather than the original traits, using a three-step approach. In a first step, a MTM is fitted to arrive at estimates of systematic effects and prediction of breeding values (procedure A) and only systematic effect (procedure B). These estimates/predictions are then used to generate an adjusted phenotype that is further analyzed with a Bayesian FA model. This step yields estimates of factor scores for each animal and CF. In the last step, the scores relative to each CF are analyzed independently using probabilities for the line of origin combination. To illustrate the methodology, data on 416 F2 pigs (Brazilian Piau X commercial) with ten traits (5 fat-related, 2 loin measurements, and 3 carcass classification systems) were analyzed. For each of the three resulting CFs, an independent QTL scan was performed on chromosome 7 considering three models: I) null (i.e., absence of QTL); II) additive effect QTL, and III) additive and dominance effect QTL. The posterior probability (PP) of each model was calculated from Bayes factor for each considered procedures (A and B). A Three-step Bayesian factor analysis allowed us to calculate the probability of QTLs that simultaneously affect a group of carcass traits for each position of SSC 7. The removal of systematic effects in the first step of the evaluation (procedure B) allowed that the factor analysis, which was performed in the second step, identify three distinct factors that explained 85% of the total traits variation. For the common factor that represented fat-related traits (bacon depth, midline lower backfat thickness, higher backfat thickness on the shoulder; midline backfat thickness after the last rib; midline backfat thickness on the last lumbar vertebrae) the third step of the analysis showed that the highest probability of an additive QTL effect at the 65cM position was 86%

    Preservation of Fertility after Uterine Artery Embolization: A Review of Pregnancy Following Non-Surgical Intervention for Leiomyoma

    Get PDF
    Introduction: As a prevalent disease in women of childbearing age, treatment of leiomyoma is an area with many options. Hysterectomy is a common and definitive treatment but is not appropriate in women wishing to attempt pregnancy. Myomectomy surgically removes fibroids, and is the first line treatment for women wishing to preserve the uterus. Uterine Artery Embolization (UAE) is an emerging treatment option with an uncertain effect on fertility. As a less invasive procedure with good relief of symptoms and a shorter recovery period, UAE is appealing. The purpose of this review is to evaluate the current standing of UAE as a possible treatment option for women with leiomyoma wishing to preserve fertility. Methods: This literature review focuses on studies published within the last ten years which report on pregnancies after UAE in women treated for uterine fibroids. Results: Of the nine studies included, there are increased rates of spontaneous abortion, pre-term delivery, post-partum hemorrhage and abnormal placentation in a subset of the studies. These results might be due to UAE or may perhaps be explained by the advanced maternal age of the subjects, or other subfertility factors not addressed in the studies. Conclusion: The effects of UAE on subsequent pregnancy are still unclear. The paucity of large randomized controlled trials and the small number of reported cases of pregnancy (less than 200) limits the quality of the evidence. Until larger randomized trials are completed comparing myomectomy and UAE, myomectomy will continue to be the first line therapy for women who intend to become pregnant

    Asphericity and clumpiness in the winds of Luminous Blue Variables

    Full text link
    We present the first systematic spectropolarimetric study of Luminous Blue Variables (LBVs) in the Galaxy and the Magellanic Clouds, in order to investigate the geometries of their winds. We find that at least half of our sample show changes in polarization across the strong Hα\alpha emission line, indicating that the light from the stars is intrinsically polarized and therefore that asphericity already exists at the base of the wind. Multi-epoch spectropolarimetry on four targets reveals variability in their intrinsic polarization. Three of these, AG Car, HR Car and P Cyg, show a position angle (PA) of polarization which appears random with time. Such behaviour can be explained by the presence of strong wind-inhomogeneities, or `clumps' within the wind. Only one star, R 127, shows variability at a constant PA, and hence evidence for axi-symmetry as well as clumpiness. However, if viewed at low inclination, and at limited temporal sampling, such a wind would produce a seemingly random polarization of the type observed in the other three stars. Time-resolved spectropolarimetric monitoring of LBVs is therefore required to determine if LBV winds are axi-symmetric in general. The high fraction of LBVs (>> 50%) showing intrinsic polarization is to be compared with the lower ∌\sim 20-25 % for similar studies of their evolutionary neighbours, O supergiants and Wolf-Rayet stars. We anticipate that this higher incidence is due to the lower effective gravities of the LBVs, coupled with their variable temperatures within the bi-stability jump regime. This is also consistent with the higher incidence of wind asphericity that we find in LBVs with strong Hα\alpha emission and recent (last ∌\sim 10 years) strong variability.Comment: 20 pages, 12 figures, accepted by A&
    • 

    corecore