Skip to content

Commit 861f027

Browse files
committed
Merge pull request #11073 from peter1000/adds_license_headers_and_script
Adds License headers, closes #11023
2 parents e8373e0 + fde191e commit 861f027

File tree

482 files changed

+949
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

482 files changed

+949
-0
lines changed

base/Dates.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module Dates
24

35
include("dates/types.jl")

base/Enums.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module Enums
24

35
export Enum, @enum

base/LineEdit.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module LineEdit
24

35
using ..Terminals

base/REPL.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module REPL
24

35
using Base.Meta

base/REPLCompletions.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module REPLCompletions
24

35
export completions, shell_completions, bslash_completions

base/Terminals.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module Terminals
24

35
export

base/abstractarray.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## Type aliases for convenience ##
24

35
typealias AbstractVector{T} AbstractArray{T,1}

base/array.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## array.jl: Dense arrays
24

35
typealias Vector{T} Array{T,1}

base/ascii.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## from base/boot.jl:
24
#
35
# immutable ASCIIString <: DirectIndexString

base/base.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
typealias Callable Union(Function,DataType)
24

35
const Bottom = Union()

base/base64.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module Base64
24
import Base: read, write, close, eof, empty!
35
export Base64EncodePipe, Base64DecodePipe, base64encode, base64decode

base/basedocs.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
import .Docs: keywords
24

35
keywords[:hello] = keywords[:hi] = doc"Hello, Human."

base/bitarray.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## BitArray
24

35
# notes: bits are stored in contiguous chunks

base/bool.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## boolean conversions ##
24

35
convert(::Type{Bool}, x::Bool) = x

base/boot.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# commented-out definitions are implemented in C
24

35
#abstract Any <: Any

base/broadcast.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module Broadcast
24

35
using ..Cartesian

base/build.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
#ifndef OS_DETECT_H
24
#define OS_DETECT_H
35
#include "platform.h"

base/c.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# definitions related to C interface
24

35
import Core.Intrinsics: cglobal, box, unbox

base/cartesian.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module Cartesian
24

35
export @nloops, @nref, @ncall, @nexprs, @nextract, @nall, @ntuple, @nif

base/char.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
convert(::Type{Char}, x::Float16) = Char(convert(UInt32, x))
24
convert(::Type{Char}, x::Float32) = Char(convert(UInt32, x))
35
convert(::Type{Char}, x::Float64) = Char(convert(UInt32, x))

base/client.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## client.jl - frontend handling command line options, environment setup,
24
## and REPL
35

base/collections.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module Collections
24

35
import Base: setindex!, done, get, hash, haskey, isempty, length, next, getindex, start

base/combinatorics.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
const _fact_table64 =
24
Int64[1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,
35
87178291200,1307674368000,20922789888000,355687428096000,6402373705728000,

base/complex.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
immutable Complex{T<:Real} <: Number
24
re::T
35
im::T

base/constants.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## general machinery for mathematical constants
24

35
immutable MathConst{sym} <: Real end

base/dSFMT.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module dSFMT
24

35
export DSFMT_state, dsfmt_get_min_array_size, dsfmt_get_idstring,

base/datafmt.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## file formats ##
24

35
module DataFmt

base/dates/accessors.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# Convert # of Rata Die days to proleptic Gregorian calendar y,m,d,w
24
# Reference: http://mysite.verizon.net/aesir_research/date/date0.htm
35
function yearmonthday(days)

base/dates/adjusters.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
### truncation
24
Base.trunc(dt::Date,p::Type{Year}) = Date(UTD(totaldays(year(dt),1,1)))
35
Base.trunc(dt::Date,p::Type{Month}) = firstdayofmonth(dt)

base/dates/arithmetic.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# Instant arithmetic
24
(+)(x::Instant) = x
35
(-){T<:Instant}(x::T,y::T) = x.periods - y.periods

base/dates/conversions.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# Conversion/Promotion
24
Date(dt::TimeType) = convert(Date,dt)
35
DateTime(dt::TimeType) = convert(DateTime,dt)

base/dates/io.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# TODO: optimize this
24
function Base.string(dt::DateTime)
35
y,m,d = yearmonthday(days(dt))

base/dates/periods.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
#Period types
24
value(x::Period) = x.value
35

base/dates/query.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# Date functions
24

35
### Core query functions

base/dates/ranges.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# Date/DateTime Ranges
24

35
# Override default step; otherwise it would be Millisecond(1)

base/dates/types.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
abstract AbstractTime
24

35
abstract Period <: AbstractTime

base/deepcopy.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# deep copying
24

35
# Note: deepcopy_internal(::Any, ::ObjectIdDict) is

base/deprecated.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
macro deprecate(old,new)
24
meta = Expr(:meta, :noinline)
35
if isa(old,Symbol)

base/dict.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# generic operations on associative collections
24

35
abstract Associative{K,V}

base/docs.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module Docs
24

35
import Base.Markdown: @doc_str, MD

base/dsp.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module DSP
24

35
importall Base.FFTW

base/emoji_symbols.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
#=
24
import JSON
35
emojis = JSON.parsefile(download("https://raw.githubusercontent.com/iamcal/emoji-data/0f0cf4ea8845eb52d26df2a48c3c31c3b8cad14e/emoji_pretty.json"))

base/env.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
@unix_only begin
24
_getenv(var::AbstractString) = ccall(:getenv, Ptr{UInt8}, (Cstring,), var)
35
_hasenv(s::AbstractString) = _getenv(s) != C_NULL

base/errno.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
include("errno_h.jl")
24
export
35
E2BIG,

base/error.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# pseudo-definitions to show how everything behaves
24
#
35
# throw(label, val) = # throw a value to a dynamically enclosing block

base/exports.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
export
24
# Modules
35
Collections,

base/expr.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## symbols ##
24

35
symbol(s::Symbol) = s

base/fastmath.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# Support for @fastmath
24

35
# This module provides versions of math functions that may violate

base/fftw.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module FFTW
24

35
export fft, bfft, ifft, rfft, brfft, irfft,

base/file.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# get and set current directory
24

35
function pwd()

base/float.jl

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

base/float16.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
function convert(::Type{Float32}, val::Float16)
24
ival::UInt32 = reinterpret(UInt16, val)
35
sign::UInt32 = (ival & 0x8000) >> 15

base/floatfuncs.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## floating-point functions ##
24

35
copysign(x::Float64, y::Float64) = box(Float64,copysign_float(unbox(Float64,x),unbox(Float64,y)))

base/fs.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## UV based file operations ##
24

35
module FS

base/functors.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
###### Functors ######
24

35
# Note that functors are merely used as internal machinery to enhance code

base/gmp.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module GMP
24

35
export BigInt

base/grisu.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module Grisu
24

35
export print_shortest

base/hashing.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## hashing a single value ##
24

35
hash(x::Any) = hash(x, zero(UInt))

base/hashing2.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## efficient value-based hashing of integers ##
24

35
function hash_integer(n::Integer, h::UInt)

base/help.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module Help
24

35
export help, apropos, @help

base/i18n.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
module I18n
24

35
export locale

base/inference.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# parameters limiting potentially-infinite types
24
const MAX_TYPEUNION_LEN = 3
35
const MAX_TYPE_DEPTH = 4

base/int.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## integer arithmetic ##
24

35
const IntTypes = (Int8, UInt8, Int16, UInt16, Int32, UInt32,

base/interactiveutil.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
# editing files
24

35
function edit(file::AbstractString, line::Integer)

base/intfuncs.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
## number-theoretic functions ##
24

35
function gcd{T<:Integer}(a::T, b::T)

base/intset.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
13
type IntSet
24
bits::Array{UInt32,1}
35
limit::Int

0 commit comments

Comments
 (0)