35,494 research outputs found

    Clone Detection and Elimination for Haskell

    Get PDF
    Duplicated code is a well known problem in software maintenance and refactoring. Code clones tend to increase program size and several studies have shown that duplicated code makes maintenance and code understanding more complex and time consuming. This paper presents a new technique for the detection and removal of duplicated Haskell code. The system is implemented within the refactoring framework of the Haskell Refactorer (HaRe), and uses an Abstract Syntax Tree (AST) based approach. Detection of duplicate code is automatic, while elimination is semi-automatic, with the user managing the clone removal. After presenting the system, an example is given to show how it works in practice

    Reversal Modes of Simulated Iron Nanopillars in an Obliquely Oriented Field

    Full text link
    Stochastic micromagnetic simulations are employed to study switching in three-dimensional magnetic nanopillars exposed to highly misaligned fields. The switching appears to proceed through two different decay modes, characterized by very different average lifetimes and different average values of the transverse magnetization components.Comment: 3 pages, 4 figure

    Understanding Transit Ridership Demand for a Multi-Destination, Multimodal Transit Network in an American Metropolitan Area, Research Report 11-06

    Get PDF
    This study examines the factors underlying transit demand in the multi-destination, integrated bus and rail transit network for Atlanta, Georgia. Atlanta provides an opportunity to explore the consequences of a multi-destination transit network for bus patrons (largely transit-dependent riders) and rail patrons (who disproportionately illustrate choice rider characteristics). Using data obtained from the 2000 Census, coupled with data obtained from local and regional organizations in the Atlanta metropolitan area, we estimate several statistical models that explain the pattern of transit commute trips across the Atlanta metropolitan area. The models show that bus riders and rail riders are different, with bus riders exhibiting more transit-dependent characteristics and rail riders more choice rider characteristics. However, both types of riders value many of the same attributes of transit service quality (including shorter access and egress times and more direct trips) and their use of transit is influenced by many of the same variables (including population and employment). At the same time, the factors that influence transit demand vary depending on the type of travel destination the rider wishes to reach, including whether it is the central business district (CBD) or a more auto-oriented, suburban destination. The results of the study offer new insights into the nature of transit demand in a multi-destination transit system and provide lessons for agencies seeking to increase ridership among different ridership groups. The results suggest that more direct transit connections to dispersed employment centers, and easier transfers to access such destinations, will lead to higher levels of transit use for both transit-dependent and choice riders. The results also show that the CBD remains an important transit destination for rail riders but not for their bus rider counterparts. Certain types of transit-oriented development (TOD) also serve as significant producers and attractors of rail transit trips

    Chiral selection in the formation of borates from racemic binaphthols and related diols

    Get PDF
    A series of racemic or stereochemically labile chiral borate anions based on the 2,2′-biphenol motif was investigated. All borates were homochiral in the solid state, although in some cases the heterochiral diastereomers were computed to be thermodynamically preferred (DFT). The crystallographic preference for the homochiral diastereomer was attributed to its lower bulk, higher molecular symmetry, and the therewith associated better packing ability

    Market Forces and Price Ceilings: A Classroom Experiment

    Get PDF
    The effect of price controls on competitive equilibrium is a standard topic in many undergraduate economics courses. This classroom experiment demonstrates the effect of rent control (price ceilings) on the market for apartments. As participants in the experiment, students experience the effect of a price ceiling as buyers (renters) and sellers (landlords). The classroom-posted offer market exhibits a shortage under a binding price ceiling. Further, we explore a secondary response to rent control. When given the opportunity, landlords lower the quality of the apartments by reducing maintenance expenditures under the price ceiling, thus moving the market back to equilibrium. Since many students are themselves renters, they should relate to changes in quality due to lower maintenance by landlords. This experiment will stimulate discussion on market forces and on public policy aimed at restricting prices.

    Fast spectral fitting of hard X-ray bremsstrahlung from truncated power-law electron spectra

    Get PDF
    <p><b>Context:</b> Hard X-ray bremsstrahlung continuum spectra, such as from solar flares, are commonly described in terms of power-law fits, either to the photon spectra themselves or to the electron spectra responsible for them. In applications various approximate relations between electron and photon spectral indices are often used for energies both above and below electron low-energy cutoffs.</p> <p><b>Aims:</b> We examine the form of the exact relationships in various situations, and for various cross-sections, showing that empirical relations sometimes used can be highly misleading especially at energies below the low-energy cutoff, and consider how to improve fitting procedures.</p> <p><b>Methods:</b> We obtain expressions for photon spectra from single, double and truncated power-law electron spectra for a variety of cross-sections and for the thin and thick target models and simple analytic expressions for the non-relativistic Bethe-Heitler case.</p> <p><b>Results:</b> We show that below the low-energy cutoff Kramers and other constant spectral index forms commonly used are very poor approximations to accurate results, but that our analytical forms are a good match; and that above a low-energy cutoff, the Kramers and non-relativistic Bethe-Heitler results match reasonably well with results for up to energies around 100 keV.</p> <p><b>Conclusions:</b> Analytical forms of the non-relativistic Bethe-Heitler photon spectra from general power-law electron spectra are good match to exact results for both thin and thick targets and they enable much faster spectral fitting than evaluation of the full spectral integrations.</p&gt

    Recruiting and retaining children and families' social workers. The potential of work discussion groups

    Get PDF
    Current difficulties with the recruitment and retention of children and families' social workers have been formally acknowledged. However, although initiatives which focus on remuneration and career progression are clearly welcome, research and evidence from practice highlights how social workers themselves place high value on the availability of good quality supervision. Yet, questions remain about whether first-line managers have the time or are even in the best position to offer this support. This article draws on the experience and evaluation of one particular model of supervision — 'work discussion groups' —and explores its impact with residential social work staff and teachers as well as the potential for further developments of this kind
    • …
    corecore