Skip to content

Commit

Permalink
Merge pull request JuliaLang#11073 from peter1000/adds_license_header…
Browse files Browse the repository at this point in the history
…s_and_script

Adds License headers, closes JuliaLang#11023
  • Loading branch information
tkelman committed May 3, 2015
2 parents e8373e0 + fde191e commit 861f027
Show file tree
Hide file tree
Showing 482 changed files with 949 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/Dates.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module Dates

include("dates/types.jl")
Expand Down
2 changes: 2 additions & 0 deletions base/Enums.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module Enums

export Enum, @enum
Expand Down
2 changes: 2 additions & 0 deletions base/LineEdit.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module LineEdit

using ..Terminals
Expand Down
2 changes: 2 additions & 0 deletions base/REPL.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module REPL

using Base.Meta
Expand Down
2 changes: 2 additions & 0 deletions base/REPLCompletions.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module REPLCompletions

export completions, shell_completions, bslash_completions
Expand Down
2 changes: 2 additions & 0 deletions base/Terminals.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module Terminals

export
Expand Down
2 changes: 2 additions & 0 deletions base/abstractarray.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## Type aliases for convenience ##

typealias AbstractVector{T} AbstractArray{T,1}
Expand Down
2 changes: 2 additions & 0 deletions base/array.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## array.jl: Dense arrays

typealias Vector{T} Array{T,1}
Expand Down
2 changes: 2 additions & 0 deletions base/ascii.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## from base/boot.jl:
#
# immutable ASCIIString <: DirectIndexString
Expand Down
2 changes: 2 additions & 0 deletions base/base.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

typealias Callable Union(Function,DataType)

const Bottom = Union()
Expand Down
2 changes: 2 additions & 0 deletions base/base64.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module Base64
import Base: read, write, close, eof, empty!
export Base64EncodePipe, Base64DecodePipe, base64encode, base64decode
Expand Down
2 changes: 2 additions & 0 deletions base/basedocs.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

import .Docs: keywords

keywords[:hello] = keywords[:hi] = doc"Hello, Human."
Expand Down
2 changes: 2 additions & 0 deletions base/bitarray.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## BitArray

# notes: bits are stored in contiguous chunks
Expand Down
2 changes: 2 additions & 0 deletions base/bool.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## boolean conversions ##

convert(::Type{Bool}, x::Bool) = x
Expand Down
2 changes: 2 additions & 0 deletions base/boot.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# commented-out definitions are implemented in C

#abstract Any <: Any
Expand Down
2 changes: 2 additions & 0 deletions base/broadcast.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module Broadcast

using ..Cartesian
Expand Down
2 changes: 2 additions & 0 deletions base/build.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file is a part of Julia. License is MIT: http:https://julialang.org/license

#ifndef OS_DETECT_H
#define OS_DETECT_H
#include "platform.h"
Expand Down
2 changes: 2 additions & 0 deletions base/c.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# definitions related to C interface

import Core.Intrinsics: cglobal, box, unbox
Expand Down
2 changes: 2 additions & 0 deletions base/cartesian.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module Cartesian

export @nloops, @nref, @ncall, @nexprs, @nextract, @nall, @ntuple, @nif
Expand Down
2 changes: 2 additions & 0 deletions base/char.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

convert(::Type{Char}, x::Float16) = Char(convert(UInt32, x))
convert(::Type{Char}, x::Float32) = Char(convert(UInt32, x))
convert(::Type{Char}, x::Float64) = Char(convert(UInt32, x))
Expand Down
2 changes: 2 additions & 0 deletions base/client.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## client.jl - frontend handling command line options, environment setup,
## and REPL

Expand Down
2 changes: 2 additions & 0 deletions base/collections.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module Collections

import Base: setindex!, done, get, hash, haskey, isempty, length, next, getindex, start
Expand Down
2 changes: 2 additions & 0 deletions base/combinatorics.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

const _fact_table64 =
Int64[1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,
87178291200,1307674368000,20922789888000,355687428096000,6402373705728000,
Expand Down
2 changes: 2 additions & 0 deletions base/complex.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

immutable Complex{T<:Real} <: Number
re::T
im::T
Expand Down
2 changes: 2 additions & 0 deletions base/constants.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## general machinery for mathematical constants

immutable MathConst{sym} <: Real end
Expand Down
2 changes: 2 additions & 0 deletions base/dSFMT.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module dSFMT

export DSFMT_state, dsfmt_get_min_array_size, dsfmt_get_idstring,
Expand Down
2 changes: 2 additions & 0 deletions base/datafmt.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## file formats ##

module DataFmt
Expand Down
2 changes: 2 additions & 0 deletions base/dates/accessors.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# Convert # of Rata Die days to proleptic Gregorian calendar y,m,d,w
# Reference: http:https://mysite.verizon.net/aesir_research/date/date0.htm
function yearmonthday(days)
Expand Down
2 changes: 2 additions & 0 deletions base/dates/adjusters.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

### truncation
Base.trunc(dt::Date,p::Type{Year}) = Date(UTD(totaldays(year(dt),1,1)))
Base.trunc(dt::Date,p::Type{Month}) = firstdayofmonth(dt)
Expand Down
2 changes: 2 additions & 0 deletions base/dates/arithmetic.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# Instant arithmetic
(+)(x::Instant) = x
(-){T<:Instant}(x::T,y::T) = x.periods - y.periods
Expand Down
2 changes: 2 additions & 0 deletions base/dates/conversions.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# Conversion/Promotion
Date(dt::TimeType) = convert(Date,dt)
DateTime(dt::TimeType) = convert(DateTime,dt)
Expand Down
2 changes: 2 additions & 0 deletions base/dates/io.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# TODO: optimize this
function Base.string(dt::DateTime)
y,m,d = yearmonthday(days(dt))
Expand Down
2 changes: 2 additions & 0 deletions base/dates/periods.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

#Period types
value(x::Period) = x.value

Expand Down
2 changes: 2 additions & 0 deletions base/dates/query.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# Date functions

### Core query functions
Expand Down
2 changes: 2 additions & 0 deletions base/dates/ranges.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# Date/DateTime Ranges

# Override default step; otherwise it would be Millisecond(1)
Expand Down
2 changes: 2 additions & 0 deletions base/dates/types.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

abstract AbstractTime

abstract Period <: AbstractTime
Expand Down
2 changes: 2 additions & 0 deletions base/deepcopy.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# deep copying

# Note: deepcopy_internal(::Any, ::ObjectIdDict) is
Expand Down
2 changes: 2 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

macro deprecate(old,new)
meta = Expr(:meta, :noinline)
if isa(old,Symbol)
Expand Down
2 changes: 2 additions & 0 deletions base/dict.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# generic operations on associative collections

abstract Associative{K,V}
Expand Down
2 changes: 2 additions & 0 deletions base/docs.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module Docs

import Base.Markdown: @doc_str, MD
Expand Down
2 changes: 2 additions & 0 deletions base/dsp.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module DSP

importall Base.FFTW
Expand Down
2 changes: 2 additions & 0 deletions base/emoji_symbols.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

#=
import JSON
emojis = JSON.parsefile(download("https://raw.githubusercontent.com/iamcal/emoji-data/0f0cf4ea8845eb52d26df2a48c3c31c3b8cad14e/emoji_pretty.json"))
Expand Down
2 changes: 2 additions & 0 deletions base/env.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

@unix_only begin
_getenv(var::AbstractString) = ccall(:getenv, Ptr{UInt8}, (Cstring,), var)
_hasenv(s::AbstractString) = _getenv(s) != C_NULL
Expand Down
2 changes: 2 additions & 0 deletions base/errno.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

include("errno_h.jl")
export
E2BIG,
Expand Down
2 changes: 2 additions & 0 deletions base/error.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# pseudo-definitions to show how everything behaves
#
# throw(label, val) = # throw a value to a dynamically enclosing block
Expand Down
2 changes: 2 additions & 0 deletions base/exports.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

export
# Modules
Collections,
Expand Down
2 changes: 2 additions & 0 deletions base/expr.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## symbols ##

symbol(s::Symbol) = s
Expand Down
2 changes: 2 additions & 0 deletions base/fastmath.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# Support for @fastmath

# This module provides versions of math functions that may violate
Expand Down
2 changes: 2 additions & 0 deletions base/fftw.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module FFTW

export fft, bfft, ifft, rfft, brfft, irfft,
Expand Down
2 changes: 2 additions & 0 deletions base/file.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# get and set current directory

function pwd()
Expand Down
2 changes: 2 additions & 0 deletions base/float.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## conversions to floating-point ##
convert(::Type{Float16}, x::Integer) = convert(Float16, convert(Float32,x))
for t in (Int8,Int16,Int32,Int64,Int128,UInt8,UInt16,UInt32,UInt64,UInt128)
Expand Down
2 changes: 2 additions & 0 deletions base/float16.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

function convert(::Type{Float32}, val::Float16)
ival::UInt32 = reinterpret(UInt16, val)
sign::UInt32 = (ival & 0x8000) >> 15
Expand Down
2 changes: 2 additions & 0 deletions base/floatfuncs.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## floating-point functions ##

copysign(x::Float64, y::Float64) = box(Float64,copysign_float(unbox(Float64,x),unbox(Float64,y)))
Expand Down
2 changes: 2 additions & 0 deletions base/fs.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## UV based file operations ##

module FS
Expand Down
2 changes: 2 additions & 0 deletions base/functors.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

###### Functors ######

# Note that functors are merely used as internal machinery to enhance code
Expand Down
2 changes: 2 additions & 0 deletions base/gmp.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module GMP

export BigInt
Expand Down
2 changes: 2 additions & 0 deletions base/grisu.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module Grisu

export print_shortest
Expand Down
2 changes: 2 additions & 0 deletions base/hashing.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## hashing a single value ##

hash(x::Any) = hash(x, zero(UInt))
Expand Down
2 changes: 2 additions & 0 deletions base/hashing2.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## efficient value-based hashing of integers ##

function hash_integer(n::Integer, h::UInt)
Expand Down
2 changes: 2 additions & 0 deletions base/help.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module Help

export help, apropos, @help
Expand Down
2 changes: 2 additions & 0 deletions base/i18n.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

module I18n

export locale
Expand Down
2 changes: 2 additions & 0 deletions base/inference.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# parameters limiting potentially-infinite types
const MAX_TYPEUNION_LEN = 3
const MAX_TYPE_DEPTH = 4
Expand Down
2 changes: 2 additions & 0 deletions base/int.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## integer arithmetic ##

const IntTypes = (Int8, UInt8, Int16, UInt16, Int32, UInt32,
Expand Down
2 changes: 2 additions & 0 deletions base/interactiveutil.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

# editing files

function edit(file::AbstractString, line::Integer)
Expand Down
2 changes: 2 additions & 0 deletions base/intfuncs.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

## number-theoretic functions ##

function gcd{T<:Integer}(a::T, b::T)
Expand Down
2 changes: 2 additions & 0 deletions base/intset.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: http:https://julialang.org/license

type IntSet
bits::Array{UInt32,1}
limit::Int
Expand Down
Loading

0 comments on commit 861f027

Please sign in to comment.