_id
stringlengths
64
64
repository
stringlengths
6
84
name
stringlengths
4
110
content
stringlengths
0
248k
license
null
download_url
stringlengths
89
454
language
stringclasses
7 values
comments
stringlengths
0
74.6k
code
stringlengths
0
248k
88e87668f2078979c90f55a0ae60f2cf045f61bd7080a7610773f85c4d9dd7a2
haskell/cabal
ImplA.hs
module ImplA where
null
https://raw.githubusercontent.com/haskell/cabal/df6c22bd1a4c6d5bfdca782e3da56198a3c21ddc/cabal-testsuite/PackageTests/Backpack/T8582/impl/ImplA.hs
haskell
module ImplA where
d06b35d03ada49629de0bff843d10a8937de93accf14f4a50841aa1cb405c57f
LaurentMazare/ocaml-dataframe
native_array.mli
(** Generate column storage backed by standard arrays. *) module Make (E : Array_intf.Elt) : Array_intf.S with type Elt.t = E.t and type t = E.t array module MakeOption (E : Array_intf.Elt) : Array_intf.S with type Elt.t = E.t option and type t = E.t Base.Option_array.t val int : (int, int array) Array_intf.t val...
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-dataframe/89bd3cb4035db505ac516303b04f4de7ffdff0be/src/dataframe/native_array.mli
ocaml
* Generate column storage backed by standard arrays.
module Make (E : Array_intf.Elt) : Array_intf.S with type Elt.t = E.t and type t = E.t array module MakeOption (E : Array_intf.Elt) : Array_intf.S with type Elt.t = E.t option and type t = E.t Base.Option_array.t val int : (int, int array) Array_intf.t val float : (float, float array) Array_intf.t val string : (s...
203b955eefcf0dac552dfccb5bec15226be1ad9839f2ee9b510266dfb028ef0e
mwsundberg/2020-brickhack
common.cljs
(ns brickhack.common (:require [quil.core :as q])) (defn coords-with-radian [x y r rScalar] [(+ x (* rScalar (Math/cos r))) (+ y (* rScalar (Math/sin r)))]) (defn add-with-rollover "Calculates the next position based on the current, the speed and a max." [current delta max] (mod (+ current delta) max))...
null
https://raw.githubusercontent.com/mwsundberg/2020-brickhack/522855b897aa57c346d79d7a594cf99e7d381b76/src/brickhack/common.cljs
clojure
(ns brickhack.common (:require [quil.core :as q])) (defn coords-with-radian [x y r rScalar] [(+ x (* rScalar (Math/cos r))) (+ y (* rScalar (Math/sin r)))]) (defn add-with-rollover "Calculates the next position based on the current, the speed and a max." [current delta max] (mod (+ current delta) max))...
e5513220149b63713a68089c5523c21805b727deecbb18236dc4fe4cce6150c4
davidlazar/ocaml-semantics
letrec07.ml
let y = 10 in let rec y = 12 and f x = x + y in 24 - f y
null
https://raw.githubusercontent.com/davidlazar/ocaml-semantics/6f302c6b9cced0407d501d70ad25c2d2aefbb77d/tests/unit/letrec07.ml
ocaml
let y = 10 in let rec y = 12 and f x = x + y in 24 - f y
02e25650617ee69cdf15dd10856fcc4bb055d4221630e053d964694ba59cdf18
samrushing/irken-compiler
t_explode.scm
;; -*- Mode: Irken -*- (include "lib/core.scm") (include "lib/pair.scm") ;; the old definition of the constant rule in match.py ;; caused an exponential explosion with code like this, ;; because the 'default' was getting duplicated at each level . Code like this would explode to 250kB of C. (define thing (0...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_explode.scm
scheme
-*- Mode: Irken -*- the old definition of the constant rule in match.py caused an exponential explosion with code like this, because the 'default' was getting duplicated at each
(include "lib/core.scm") (include "lib/pair.scm") level . Code like this would explode to 250kB of C. (define thing (0 x 1 . rest) -> 1 (1 2 x 3 4 y) -> 2 (2 . z) -> 3 (3 0 x) -> 4 (4 x y z) -> 5 (x . y) -> 6 () -> 7 ) (thing '(1 2 0 3 4 5))
7b182374ef63901f731d781550d5774dc81734cd285b674602e93a42704cf1c1
eugeneia/athens
test.lisp
(in-package :percent.test) (5am:in-suite* all) (5am:test encode (5am:is (equal "Aa0-._~" (percent:encode "Aa0-._~"))) (5am:is (equal "%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D" (percent:encode ":/?#[]@!$&'()*+,;=")))) (5am:test encode/test (5am:is (equal "Aa0-._~"...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/percent-encoding-20121013-git/t/test.lisp
lisp
(in-package :percent.test) (5am:in-suite* all) (5am:test encode (5am:is (equal "Aa0-._~" (percent:encode "Aa0-._~"))) (5am:is (equal "%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D" (percent:encode ":/?#[]@!$&'()*+,;=")))) (5am:test encode/test (5am:is (equal "Aa0-._~"...
6952a19f95536065b8c85b31d99b3c197a877f9bacb2cfef6c2012bc2bf77c09
danhper/evm-analyzer
program.ml
open Core module Contract = struct module Source = struct type t = { filename: String.t; body: String.t; index: Int.t; } end type t = { name: String.t; bytecode: String.t; ops: Op.t List.t; sources: Source.t List.t Option.t; sourcemap: Sourcemap.t Option.t; } l...
null
https://raw.githubusercontent.com/danhper/evm-analyzer/9fb1cf6dc743c2f779973b2f0892047ebbd4e5fd/src/program.ml
ocaml
open Core module Contract = struct module Source = struct type t = { filename: String.t; body: String.t; index: Int.t; } end type t = { name: String.t; bytecode: String.t; ops: Op.t List.t; sources: Source.t List.t Option.t; sourcemap: Sourcemap.t Option.t; } l...
3d17f97bedade254a4ed04263e62d2edbcf8beaa5343b797a7bd55e71b919eaa
rabbitmq/khepri
app.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright © 2022 - 2023 VMware , Inc. or its affiliates . All rights reserved . %% -module(app). -include_lib("eunit/include/eunit.hrl"...
null
https://raw.githubusercontent.com/rabbitmq/khepri/3527362ad9f59cff36231eb4e7b34dc066aa0f50/test/app.erl
erlang
This testcase is mostly to improve code coverage. We don't really care about the unused mandatory callbacks of this gen_server. We change the log level so that another branch of the `?LOG_*' macro is taken, to improve code coverage. It is not necessary for the testcase itself. Restore the previously changed log...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright © 2022 - 2023 VMware , Inc. or its affiliates . All rights reserved . -module(app). -include_lib("eunit/include/eunit.hrl"). -i...
ca7cfb90f0f9a890e2d3941b88e2f5293347fd84ef9ce92dc2a56af2029d6211
Kakadu/fp2022
REPL.ml
* Copyright 2021 - 2022 , * SPDX - License - Identifier : LGPL-3.0 - or - later let () = print_endline "REPL not implemented"
null
https://raw.githubusercontent.com/Kakadu/fp2022/07b6d0cb6b3d990355ccd620ecee7482630ffc61/CSharpOOP/REPL.ml
ocaml
* Copyright 2021 - 2022 , * SPDX - License - Identifier : LGPL-3.0 - or - later let () = print_endline "REPL not implemented"
71ea43959aee585d98ccd11ec788229e5e2e7f9897d44f478c3f2b49e6354e8e
fused-effects/diffused-effects
Internal.hs
# LANGUAGE TypeOperators # module Effect.Error.Internal ( Error ) where import Effect.Catch.Internal (Catch) import Effect.Sum ((:+:)) import Effect.Throw.Internal (Throw) type Error e = Throw e :+: Catch e
null
https://raw.githubusercontent.com/fused-effects/diffused-effects/83e070da3232d9a909e06d775f3f245eabb70a84/src/Effect/Error/Internal.hs
haskell
# LANGUAGE TypeOperators # module Effect.Error.Internal ( Error ) where import Effect.Catch.Internal (Catch) import Effect.Sum ((:+:)) import Effect.Throw.Internal (Throw) type Error e = Throw e :+: Catch e
dff2bc36aa0a1d8ba20eaa7afa92be3f0c55629f2344047354e127e4a54687c5
spawnfest/eep49ers
wxPen.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2021 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/wx/src/gen/wxPen.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2008 - 2021 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(wxPen). -include("wxe.hrl"). -export([destroy/1,getCap/1,getColour/1,getJoin/1,getStyle/1,getWidth/1,isOk/1,...
dbdf52124088f54d6fb0a963e05c2afd3324b65ff712b4a5863b14c45082b737
realworldocaml/book
grid.ml
open! Core open! Import include Grid_intf type t = { data : Cell.t list list ; heights : int list ; widths : int list ; aligns : Column.Align.t list ; spacing : int ; display : Display.t } [@@deriving sexp_of] let create cols raw_data ~display ~display_empty_rows ~header_at...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/textutils/ascii_table/kernel/grid.ml
ocaml
open! Core open! Import include Grid_intf type t = { data : Cell.t list list ; heights : int list ; widths : int list ; aligns : Column.Align.t list ; spacing : int ; display : Display.t } [@@deriving sexp_of] let create cols raw_data ~display ~display_empty_rows ~header_at...
541df3d7d7f96f5af18315e526ceebf937a1c389f02cdb8c4ba5d23d6a47c8aa
chetmurthy/typpx
make.ml
open Parsetree open Ast_mapper open Ast_helper module Embed = struct (* e [@embed e'] => e' *) open Parsetree let extend super = let expr self e = match e.pexp_attributes with | [ {attr_name={txt="typpx_embed"}; attr_payload=PStr [ { pstr_desc= Pstr_eval (e, []) } ];_} ] -> e | _ -> super.expr...
null
https://raw.githubusercontent.com/chetmurthy/typpx/a740750b75739e686da49b46ded7db7d6874e108/src/make.ml
ocaml
e [@embed e'] => e' print warning warning as error print warning warning as error (* Some command line argument hack reset for the next Arg.parse
open Parsetree open Ast_mapper open Ast_helper module Embed = struct open Parsetree let extend super = let expr self e = match e.pexp_attributes with | [ {attr_name={txt="typpx_embed"}; attr_payload=PStr [ { pstr_desc= Pstr_eval (e, []) } ];_} ] -> e | _ -> super.expr self e in { super w...
a3fe7ff06c1f15db97bd0a935905b250ebe30d03ee83c2280b50998baae6de20
xapi-project/message-switch
plugin.ml
open Rpc open Idl open Common (** Properties of this implementation. *) type query_result = { * Plugin name , used in the XenAPI as SR.type . name : string [@key "name"] ; (** Short name. *) description : string [@key "description"] ; (** Description. *) vendor : string ; (** Entity (e.g. company, project,...
null
https://raw.githubusercontent.com/xapi-project/message-switch/bd10e096c56f149d6cb0831a520a84843ebca300/xapi-storage/generator/lib/plugin.ml
ocaml
* Properties of this implementation. * Short name. * Description. * Entity (e.g. company, project, group) which produced this implementation. * Copyright. * Version. * Minimum required API version. * Features supported by this plugin. * Key/description pairs describing required device_config parameters.
open Rpc open Idl open Common type query_result = { * Plugin name , used in the XenAPI as SR.type . vendor : string ; configuration : (string * string) list ; required_cluster_stack : string list ; * The plugin requires one of these cluster stacks to be active . } [@@deriving rpcty] type srs = string ...
07a34f7cc222f54d50519d2f3cf0155d8c10e8bedf2081ee3ef471e89d2f3671
dradtke/Lisp-Text-Editor
glib.lisp
(defpackage :glib (:use :cl :cffi :iter) (:export #:at-init #:gsize #:gssize #:goffset #:*glib-major-version* #:*glib-minor-version* #:*glib-micro-version* #:*glib-binary-age* #:*glib-interface-age* #:g-free ...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/cl-gtk2/glib/glib.lisp
lisp
Glib Fundamentals Fundamentals - Basic types TODO: not sure about these: for amd64 they are ok Fundamentals - Version information Omitted: Core Application Support - The Main Event Loop ; TODO : might work on amd64 linux , but on others Omitted GPid, g_child_add_watch, g_child_add_watch_full Core Appl...
(defpackage :glib (:use :cl :cffi :iter) (:export #:at-init #:gsize #:gssize #:goffset #:*glib-major-version* #:*glib-minor-version* #:*glib-micro-version* #:*glib-binary-age* #:*glib-interface-age* #:g-free ...
9a1d07867cee3f2a18b6e52cceda67f1a4e9fea485686562fbff11c11e02c004
samrushing/irken-compiler
t_for_range.scm
;; -*- Mode: Irken -*- (include "lib/core.scm") (include "lib/pair.scm") (include "lib/string.scm") (for-range x (+ 5 5) (for-range y 10 (print-string (format "x=" (int x) " y=" (int y) " "))) (newline) ) (printn (map-range i 10 i)) (printn (map-range i 10 (printn i) (+ i i)))
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_for_range.scm
scheme
-*- Mode: Irken -*-
(include "lib/core.scm") (include "lib/pair.scm") (include "lib/string.scm") (for-range x (+ 5 5) (for-range y 10 (print-string (format "x=" (int x) " y=" (int y) " "))) (newline) ) (printn (map-range i 10 i)) (printn (map-range i 10 (printn i) (+ i i)))
b78bf5b7ebda3e085cf3b6415a572050b346d13ce3ca93c0e1854620cece45f6
vlstill/hsExprTest
foldr.1.ok.hs
myfoldr :: (a -> b -> b) -> b -> [a] -> b myfoldr _ z [] = z myfoldr f z (x:xs) = x `f` myfoldr f z xs
null
https://raw.githubusercontent.com/vlstill/hsExprTest/391fc823c1684ec248ac8f76412fefeffb791865/examples/foldr.1.ok.hs
haskell
myfoldr :: (a -> b -> b) -> b -> [a] -> b myfoldr _ z [] = z myfoldr f z (x:xs) = x `f` myfoldr f z xs
4821ec4b8f5da79820cd4f765f304d9a90e547fda6d408f35216b2afe3b02450
bcc32/advent-of-code
team.ml
open! Core open! Async open! Import module T = struct type t = | Elf | Goblin [@@deriving bin_io, compare, enumerate, equal, sexp] end include T module Total_map = Total_map.Make (T) let to_char = function | Elf -> 'E' | Goblin -> 'G' ;;
null
https://raw.githubusercontent.com/bcc32/advent-of-code/653c0f130e2fb2f599d4e76804e02af54c9bb19f/2018/15/team.ml
ocaml
open! Core open! Async open! Import module T = struct type t = | Elf | Goblin [@@deriving bin_io, compare, enumerate, equal, sexp] end include T module Total_map = Total_map.Make (T) let to_char = function | Elf -> 'E' | Goblin -> 'G' ;;
f9cc373fd8eab796bf3fa0b76084d47b6453580d20410abb94061bd73599fd76
EFanZh/EOPL-Exercises
exercise-5.43-test.rkt
#lang racket/base (require rackunit) (require "../solutions/exercise-5.43.rkt") (check-equal? (run "2") (num-val 2)) (check-equal? (run "-(3, 3)") (num-val 0)) (check-equal? (run "-(3, 4)") (num-val -1)) (check-equal? (run "-(4, 3)") (num-val 1)) (check-equal? (run "zero?(0)") (bool-val #t)) (check-equal? (run "zero?...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-5.43-test.rkt
racket
#lang racket/base (require rackunit) (require "../solutions/exercise-5.43.rkt") (check-equal? (run "2") (num-val 2)) (check-equal? (run "-(3, 3)") (num-val 0)) (check-equal? (run "-(3, 4)") (num-val -1)) (check-equal? (run "-(4, 3)") (num-val 1)) (check-equal? (run "zero?(0)") (bool-val #t)) (check-equal? (run "zero?...
1a3c5224241301c4cd11a90fe9619b563212019525315bd3e803d0af54678e2f
juspay/atlas
Allocator.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/atlas-transport/src/App/Allocator.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
076a4b390e980ab38e7b1c73d9ee80130099d901ac39e2aa44f8c57e2a68da75
chenyukang/eopl
07.scm
(load "../libs/init.scm") ;; we add a wrapper at nth-element-rec (define report-list-too-short (lambda (list nth) (error 'nth-element "List ~s too short by ~s elements .~%" list nth))) (define nth-element-rec (lambda (lst n) (if (null? lst) #f (if (zero? n) (car lst) (nth-element-rec (cd...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch1/07.scm
scheme
we add a wrapper at nth-element-rec
(load "../libs/init.scm") (define report-list-too-short (lambda (list nth) (error 'nth-element "List ~s too short by ~s elements .~%" list nth))) (define nth-element-rec (lambda (lst n) (if (null? lst) #f (if (zero? n) (car lst) (nth-element-rec (cdr lst) (- n 1)))))) (define nth-elemen...
dd1da46e5d64bcfe6c699dada15327956a0cc49293e48b472224062ff8e83e22
haskus/haskus-system
Config.hs
# LANGUAGE LambdaCase # {-# LANGUAGE BangPatterns #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE BlockArguments # # LANGUAGE GeneralizedNewtypeDeriving # -- | Mode-setting configuration module Haskus.System.Graphics.Config ( configureGraphics , CommitOrTest (..) , VSync (..) , FullModeSet (..) -- * Con...
null
https://raw.githubusercontent.com/haskus/haskus-system/38b3a363c26bc4d82e3493d8638d46bc35678616/haskus-system/src/lib/Haskus/System/Graphics/Config.hs
haskell
# LANGUAGE BangPatterns # | Mode-setting configuration * Config monad | Config monad state ^ Graphic card (stored for convenience) ^ Properties to set | Configuration monad Commands are only used to perform mode-setting (connecting entities, setting This is left for a calling function which should allocate the...
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE BlockArguments # # LANGUAGE GeneralizedNewtypeDeriving # module Haskus.System.Graphics.Config ( configureGraphics , CommitOrTest (..) , VSync (..) , FullModeSet (..) , getConfigCard , Config (..) , setConnectorSource , setPlane...
86311911292b88d3f3dcaec4022b65c3f289c7750fb1eac16668937814ff9b6a
mattmundell/nightshade
subprim.lisp
;;; Linkage information for standard static functions, and random vops. (in-package "ALPHA") ;;;; Length (define-vop (length/list) (:translate length) (:args (object :scs (descriptor-reg) :target ptr)) (:arg-types list) (:temporary (:scs (descriptor-reg) :from (:argument 0)) ptr) (:temporary (:scs (non-d...
null
https://raw.githubusercontent.com/mattmundell/nightshade/d8abd7bd3424b95b70bed599e0cfe033e15299e0/src/compiler/alpha/subprim.lisp
lisp
Linkage information for standard static functions, and random vops. Length
(in-package "ALPHA") (define-vop (length/list) (:translate length) (:args (object :scs (descriptor-reg) :target ptr)) (:arg-types list) (:temporary (:scs (descriptor-reg) :from (:argument 0)) ptr) (:temporary (:scs (non-descriptor-reg)) temp) (:temporary (:scs (any-reg) :type fixnum :to (:result 0) :ta...
a868a5096a5a1a42ab4098844d16afbbf62e9e60a87d3dae49cbce26c5b0d63b
infinisil/nixbot
Commands.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # module Plugins.Commands (commandsPlugin') where import Control.Monad.IO.Class import Da...
null
https://raw.githubusercontent.com/infinisil/nixbot/e8695fd73c07bc115ee0dd3e7c121cd985c04c06/src/Plugins/Commands.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes #
# LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # module Plugins.Commands (commandsPlugin') where import Control.Monad.IO.Class import Data.Functor (($>)) import qualified Data.Text as Text import ...
37c3830f0fab46a2883e2cb569898990f2133fcacb77b62e926eca6c50c68b21
johnelse/mkaudio
commands.ml
open Mkaudio_libs open Fun (* Helper functions. *) let to_steps = function | Some beats -> Some (beats * 4) | None -> None let parse_duration_opt = function | Some str -> Time.parse_duration str >|= (fun duration -> Some duration) | None -> Result.Ok None let get_samples ~sample_rate ~duration ~tempo ~b...
null
https://raw.githubusercontent.com/johnelse/mkaudio/172fc14443feafae2f0542948e53c1621f42bed2/bin/commands.ml
ocaml
Helper functions. Command definitions.
open Mkaudio_libs open Fun let to_steps = function | Some beats -> Some (beats * 4) | None -> None let parse_duration_opt = function | Some str -> Time.parse_duration str >|= (fun duration -> Some duration) | None -> Result.Ok None let get_samples ~sample_rate ~duration ~tempo ~beats = parse_duration_...
0c0fd93cde709d10424900465cac9069cc19a9d8e584633cca974447530270ac
appleshan/cl-http
unix.lisp
-*- Syntax : ansi - common - lisp ; Base : 10 ; Package : http ; Mode : LISP -*- ( C ) Copyright 1995 , . ;;; All Rights Reserved. ;;; ;;;------------------------------------------------------------------- ;;; MAC HTTP CLIENT NETWORK INTERFACE ;;; (in-package :http) (require :sock) (declaim (inline de...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/acl/jkf/client/unix.lisp
lisp
Base : 10 ; Package : http ; Mode : LISP -*- All Rights Reserved. ------------------------------------------------------------------- instead do this this is the function used by the portable client code.
( C ) Copyright 1995 , . MAC HTTP CLIENT NETWORK INTERFACE (in-package :http) (require :sock) (declaim (inline deallocate-client-http-stream)) noop present for implementations that resource their TCP streams , e.g. . (defun deallocate-client-http-stream (stream) (declare (ignore stream))) give up af...
f1f08b1dc99fe07d912b3ce1a941883401e678eadb9c0b9b4f4299ae78cffcdc
kerneis/cpc
cprint.ml
* Copyright ( c ) 2008 - 2010 , * < > * * Copyright ( c ) 2001 - 2003 , * < > * < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted prov...
null
https://raw.githubusercontent.com/kerneis/cpc/0ca695d25e58dadbd92639162338a06a517875d9/src/frontc/cprint.ml
ocaml
** FrontC Pretty printer stub out the old-style manual space functions we may implement some of these later sm: for some reason I couldn't just call print from frontc.... ? ** Useful primitives ** Base Type Printing print "struct foo", but with specified keyword and a list of * attributes to put between k...
* Copyright ( c ) 2008 - 2010 , * < > * * Copyright ( c ) 2001 - 2003 , * < > * < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted prov...
121174b1228a147c99f845f8a5303aff18b0b5b8647ab15ce774bfab7fadcbbc
johnlawrenceaspden/hobby-code
simpson.clj
/* Two anti cancer drugs on a sample produce simpson's paradox */ (let [mpl 200 mpd 800 mnl 15 mnd 95 fpl 40 fpd 60 fnl 350 fnd 650] (let [pl (+ mpl fpl) pd (+ mpd fpd) nl (+ mnl fnl) nd (+ mnd fnd)] (let [ns (/ nl (+ nl nd)) ps (/ pl (+ pl pd))] (print "placebifen ...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/simpson.clj
clojure
nogudox live 365
/* Two anti cancer drugs on a sample produce simpson's paradox */ (let [mpl 200 mpd 800 mnl 15 mnd 95 fpl 40 fpd 60 fnl 350 fnd 650] (let [pl (+ mpl fpl) pd (+ mpd fpd) nl (+ mnl fnl) nd (+ mnd fnd)] (let [ns (/ nl (+ nl nd)) ps (/ pl (+ pl pd))] (print "placebifen ...
bc0ecf10c609db12376f7696b77da3d4178ea54b381e294760585d4e0212081f
RichiH/git-annex
Unannex.hs
git - annex command - - Copyright 2010 - 2013 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2010-2013 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.Unannex where import Command import Config import qualified Annex import Annex.Cont...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Command/Unannex.hs
haskell
Run with the pre-commit hook disabled, to avoid confusing - behavior if an unannexed file is added back to git as - a normal, non-annexed file and then committed. - Otherwise, the pre-commit hook would think that the file - has been unlocked and needs to be re-annexed. - - At the end, make a commit removin...
git - annex command - - Copyright 2010 - 2013 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2010-2013 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.Unannex where import Command import Config import qualified Annex import Annex.Cont...
e37d188c680b6e342fa0dd050a8aa78c8ea4bc0f0b3971394d8b8239ca6d6c08
conjure-cp/conjure
Combined.hs
module Conjure.Representations.Combined ( downD, downC, up , downD1, downC1, up1 , downToX1 , symmetryOrderingDispatch , reprOptions, getStructurals , reprsStandardOrderNoLevels, reprsStandardOrder, reprsSparseOrder ) where -- conjure import Conjure.Prelude import Conjure.Bug import Conjur...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Representations/Combined.hs
haskell
conjure The domain is allowed to be at the class level. The domain is allowed to be at the class level. The domain has to be fully instantiated. The high level domain (i.e. the target domain) has to be given. The domain has to be fully instantiated. | Refine (down) a domain (D), all the way. The dom...
module Conjure.Representations.Combined ( downD, downC, up , downD1, downC1, up1 , downToX1 , symmetryOrderingDispatch , reprOptions, getStructurals , reprsStandardOrderNoLevels, reprsStandardOrder, reprsSparseOrder ) where import Conjure.Prelude import Conjure.Bug import Conjure.Language ...
5b5cdfb7ae246a6e162a1eb2ea9455f3f3048ce02c3d3ac091fea28bc7270605
Clozure/ccl-tests
loop9.lsp
;-*- Mode: Lisp -*- Author : Created : Thu Nov 14 06:25:21 2002 ;;;; Contains: Tests for loop list accumulation clauses (in-package :cl-test) ;;; Tests of COLLECT, COLLECTING (deftest loop.9.1 (loop for x in '(2 3 4) collect (1+ x)) (3 4 5)) (deftest loop.9.2 (loop for x in '(2 3 4) collecting ...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/loop9.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for loop list accumulation clauses Tests of COLLECT, COLLECTING NCONC, NCONCING Combinations More nconc tests Test that explicit calls to macroexpand in subforms are done in the correct environment
Author : Created : Thu Nov 14 06:25:21 2002 (in-package :cl-test) (deftest loop.9.1 (loop for x in '(2 3 4) collect (1+ x)) (3 4 5)) (deftest loop.9.2 (loop for x in '(2 3 4) collecting (1+ x)) (3 4 5)) (deftest loop.9.3 (loop for x in '(0 1 2) when (eql x 2) do (return 'good) collect x) g...
14239d4c1e7abb464280d18d0f8ae71eb3a61a5fc88f807d2c2a431bfe0e0a7f
ygrek/mldonkey
queues.mli
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/utils/lib/queues.mli
ocaml
These are useful if you want to implement your own queues, as it provides the internal type of queues, and a function to translate the internal type to the Queue.t type.
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
32cebc903e04e4aa33320c50ef484cdc712442f94f0ecf9fbaf470efdf2cd8c0
roman01la/minimax
core.clj
(ns bgfx.core (:require [minimax.mem :as mem]) (:import (java.nio FloatBuffer ShortBuffer) (org.lwjgl.bgfx BGFX BGFXAttachment BGFXCaps BGFXInit BGFXReleaseFunctionCallback BGFXReleaseFunctionCallbackI BGFXStats) (org.lwjgl.system MemoryUtil))) (set! *warn-on-reflection* true) (set! *unchecke...
null
https://raw.githubusercontent.com/roman01la/minimax/f371c199d55a2a219ed7cf5f2dd2e079be99f963/src/bgfx/core.clj
clojure
TODO: alloc on stack instead
(ns bgfx.core (:require [minimax.mem :as mem]) (:import (java.nio FloatBuffer ShortBuffer) (org.lwjgl.bgfx BGFX BGFXAttachment BGFXCaps BGFXInit BGFXReleaseFunctionCallback BGFXReleaseFunctionCallbackI BGFXStats) (org.lwjgl.system MemoryUtil))) (set! *warn-on-reflection* true) (set! *unchecke...
22ee95dd53320a60235aaa84839a494a4de09bdcfb4afbb62baa86da9f905f9c
mhallin/graphql_ppx
graphql_parser_document.ml
open Result open Graphql_ast open Graphql_parser open Source_pos let last l = match List.length l with | 0 -> None | n -> Some (List.nth l (n - 1)) let selection_end_pos s = match s with | Field { span = _, end_pos; _ } -> end_pos | FragmentSpread { span = _, end_pos; _ } -> end_pos | InlineFragment { span...
null
https://raw.githubusercontent.com/mhallin/graphql_ppx/5796b3759bdf0d29112f48e43a2f0623f7466e8a/src/base/graphql_parser_document.ml
ocaml
open Result open Graphql_ast open Graphql_parser open Source_pos let last l = match List.length l with | 0 -> None | n -> Some (List.nth l (n - 1)) let selection_end_pos s = match s with | Field { span = _, end_pos; _ } -> end_pos | FragmentSpread { span = _, end_pos; _ } -> end_pos | InlineFragment { span...
c73f7b4c75c1546cf3098ebb605f0682ac874cf6158a3081ae8b091ffbb3a181
fterrier/pylos
core.cljs
(ns ^:figwheel-no-load pylos.core (:require [ui.pylos.cell :as cell] [ui.pylos.board :as board] [ui.pylos.counter :as counter] [ui.pylos.game :as game])) (enable-console-print!) (def fig-reload []) ( defn fig - reload [ ] ; (app/start) ; (app/main)) ;(app/init) ;(app/main)
null
https://raw.githubusercontent.com/fterrier/pylos/f9283cf58a32000ed271e768ab6151ac081ed37d/env/dev/src/cljs/pylos/core.cljs
clojure
(app/start) (app/main)) (app/init) (app/main)
(ns ^:figwheel-no-load pylos.core (:require [ui.pylos.cell :as cell] [ui.pylos.board :as board] [ui.pylos.counter :as counter] [ui.pylos.game :as game])) (enable-console-print!) (def fig-reload []) ( defn fig - reload [ ]
505562120899f499b2c22be23174a10621b34a3cb81fa5da10404eef81575b21
ComputeSoftware/gcp-api
credentials.clj
(ns compute.gcp.credentials (:require [clojure.java.io :as io] [cognitect.anomalies :as anom] [clojure.data.json :as json]) (:import (com.google.auth.oauth2 GoogleCredentials AccessToken) (java.util List))) (defprotocol CredentialsProvider (fetch [_])) (defn google-credentials-as-provider...
null
https://raw.githubusercontent.com/ComputeSoftware/gcp-api/24204927554a3e3b69ef2917f139b53f05def52e/src/compute/gcp/credentials.clj
clojure
-auth-library-java#google-auth-library-oauth2-http
(ns compute.gcp.credentials (:require [clojure.java.io :as io] [cognitect.anomalies :as anom] [clojure.data.json :as json]) (:import (com.google.auth.oauth2 GoogleCredentials AccessToken) (java.util List))) (defprotocol CredentialsProvider (fetch [_])) (defn google-credentials-as-provider...
279f5afb7b4a483422c0f5f7a28c6bd1273d07e590df7afcdbfdd0ad7a869aa1
wargrey/graphics
composite.rkt
#lang typed/racket/base (provide (all-defined-out)) (require typed/racket/unsafe) (require "convert.rkt") (module unsafe racket/base (provide (all-defined-out) CAIRO_OPERATOR_OVER) (require (only-in racket/list make-list)) (require (only-in racket/vector vector-append)) (require (only-in racket/flonum make...
null
https://raw.githubusercontent.com/wargrey/graphics/50751297f244a01ac734099b9a1e9be97cd36f3f/bitmap/digitama/unsafe/composite.rkt
racket
offsets passed to (bitmap_composite), also see (flomap-pin*) slightly but more efficient than (bitmap_pin*) deadcode deadcode Arithmetic here only involves in addition and subtraction, working with flonums directly seems do not lose precision. precompute x positions deadcode NOTE: `src` is usually very ...
#lang typed/racket/base (provide (all-defined-out)) (require typed/racket/unsafe) (require "convert.rkt") (module unsafe racket/base (provide (all-defined-out) CAIRO_OPERATOR_OVER) (require (only-in racket/list make-list)) (require (only-in racket/vector vector-append)) (require (only-in racket/flonum make...
d550f07262de3092e430a10006e695fe7f7b1c961aee99af688b4cd5df38d792
rd--/hsc3
jmcc-wind-metals.hs
wind metals ( jmcc ) ; texture = overlap,5,2,12,inf let n = 6 base = expRand 60 4000 exc = mceFill 2 (\_ -> brownNoise ar) * 0.007 * max 0 (lfNoise1 kr (expRand 0.125 0.5) * 0.75 + 0.25) k = klankSpec_mce (mceFill n (\_ -> rand base (base + rand 500 8000))) (mceConst n 1) (mceFill n (\_ -> rand 0.1 2)) in...
null
https://raw.githubusercontent.com/rd--/hsc3/e1c9377f4985f4cc209a9cb11421bc8f1686c6f2/Help/Graph/jmcc-wind-metals.hs
haskell
wind metals ( jmcc ) ; texture = overlap,5,2,12,inf let n = 6 base = expRand 60 4000 exc = mceFill 2 (\_ -> brownNoise ar) * 0.007 * max 0 (lfNoise1 kr (expRand 0.125 0.5) * 0.75 + 0.25) k = klankSpec_mce (mceFill n (\_ -> rand base (base + rand 500 8000))) (mceConst n 1) (mceFill n (\_ -> rand 0.1 2)) in...
903b164169fd3256cbd34dc4cee9078a74f5213cb7f11917a73112a1f7a9275b
akc/sloane
DB.hs
{-# LANGUAGE EmptyDataDecls #-} # LANGUAGE DataKinds # # LANGUAGE PolyKinds # -- | Copyright : Maintainer : < > -- License : BSD-3 -- module Sloane.DB ( DB (..), Seqs, Names , readSeqDB , readNamesDB , grepN , grep ) where import Data.Maybe import Data.List import Data.ByteS...
null
https://raw.githubusercontent.com/akc/sloane/0785928dc6aa7701ef8268a6e39a8af489570134/Sloane/DB.hs
haskell
# LANGUAGE EmptyDataDecls # | License : BSD-3 | An empty data declaration used with the phantom `DB` data type. | An empty data declaration used with the phantom `DB` data type. | Read the DB at the given location. | Read the sequence DB (derived from \"stripped.gz\"). | Read the names DB (derived from \"na...
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # Copyright : Maintainer : < > module Sloane.DB ( DB (..), Seqs, Names , readSeqDB , readNamesDB , grepN , grep ) where import Data.Maybe import Data.List import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as B ...
6131480c24c5519e5eeb65b4d4d8988e3f729d8bd8c0263f171e3bda5827da33
emina/rosette
core-form.rkt
#lang rosette (define-symbolic b boolean?) (define f (case-lambda [() (let-values ([(a b) 1]) 1)] [(a) (2)])) (when b (f))
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/test/trace/code/core-form.rkt
racket
#lang rosette (define-symbolic b boolean?) (define f (case-lambda [() (let-values ([(a b) 1]) 1)] [(a) (2)])) (when b (f))
2efe97eb09f22f0d78bc5dec08b04b4ec96b4a1b840fc01d4d7fdc4851494222
input-output-hk/marlowe-cardano
Options.hs
module Options ( Options(..) , getOptions ) where import Cardano.Api (NetworkId(..), NetworkMagic(..)) import Data.Maybe (fromMaybe) import Data.Text (Text) import Language.Marlowe.Runtime.ChainIndexer.NodeClient (CostModel(..)) import qualified Options.Applicative as O import System.Environment (lookupEnv) impo...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/4b652fbaeafdea9a6b499a695db86e621813a23f/marlowe-chain-sync/marlowe-chain-indexer/Options.hs
haskell
module Options ( Options(..) , getOptions ) where import Cardano.Api (NetworkId(..), NetworkMagic(..)) import Data.Maybe (fromMaybe) import Data.Text (Text) import Language.Marlowe.Runtime.ChainIndexer.NodeClient (CostModel(..)) import qualified Options.Applicative as O import System.Environment (lookupEnv) impo...
3d3a13b50b24a8bfd297166cd26948ff495c1b6653e8669184dd888ffa07e378
BardurArantsson/cqrs
AggregateAction.hs
module Data.CQRS.Test.Internal.AggregateAction ( byteStringAggregateAction ) where import Data.ByteString (ByteString) import qualified Data.ByteString as B import Data.CQRS.Types.AggregateAction byteStringAggregateAction :: AggregateAction ByteString ByteString byteStringAggregateAction m...
null
https://raw.githubusercontent.com/BardurArantsson/cqrs/2491d83e2bcd68c883aaea33cdce6c5ea8c0cd1a/cqrs-testkit/src/Data/CQRS/Test/Internal/AggregateAction.hs
haskell
module Data.CQRS.Test.Internal.AggregateAction ( byteStringAggregateAction ) where import Data.ByteString (ByteString) import qualified Data.ByteString as B import Data.CQRS.Types.AggregateAction byteStringAggregateAction :: AggregateAction ByteString ByteString byteStringAggregateAction m...
8427dd0d598abf53348b9626f6dc512bdae9816f0c351feda67ec000212b7adb
solarbit/pool
solarbit.erl
Copyright 2016 < > See MIT LICENSE -module(solarbit). -include("solarbit.hrl"). -include_lib("bitcoin/include/bitcoin.hrl"). -compile(export_all). -export([start/0, stop/0]). -export([info/0, state/0, connect/1]). -compile(export_all). start() -> application:start(solarbit). stop() -> application:stop(...
null
https://raw.githubusercontent.com/solarbit/pool/5576f1b71a469dfa2fcb6b5766667402eacc3860/lib/solarbit/src/solarbit.erl
erlang
Copyright 2016 < > See MIT LICENSE -module(solarbit). -include("solarbit.hrl"). -include_lib("bitcoin/include/bitcoin.hrl"). -compile(export_all). -export([start/0, stop/0]). -export([info/0, state/0, connect/1]). -compile(export_all). start() -> application:start(solarbit). stop() -> application:stop(...
1a305313af0bde88133488a60e7576fbc7b7d23b1871f50737d70c25c377a1ab
wtfleming/clojurescript-examples
core.cljs
(ns hello-world.core) (defn set-html! [el content] (set! (.-innerHTML el) content)) (defn main [] (let [content "ClojureScript Hello World" element (aget (js/document.getElementsByTagName "main") 0)] (set-html! element content))) (main)
null
https://raw.githubusercontent.com/wtfleming/clojurescript-examples/6f878f431a2cba405b6ae715199f776a19dda6f7/hello-world/src/cljs/hello_world/core.cljs
clojure
(ns hello-world.core) (defn set-html! [el content] (set! (.-innerHTML el) content)) (defn main [] (let [content "ClojureScript Hello World" element (aget (js/document.getElementsByTagName "main") 0)] (set-html! element content))) (main)
a4c9b49dbc767e5dda0a05a088257f73ac62f067bc7e3f295c02322ead5b8304
hachreak/cedb
cedb.erl
%%%------------------------------------------------------------------- @doc Console Erlang DeBugger public API %% @end %%%------------------------------------------------------------------- -module(cedb). -export([ all_breaks/0, all_breaks/1, debug/2, delete_break/2, delete_break/3, break/2, break/3 ]...
null
https://raw.githubusercontent.com/hachreak/cedb/b1b4768c3d8b954d339a607e202dcceb757b71b3/src/cedb.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- ==================================================================== API ==================================================================== change group leader to be able to ...
@doc Console Erlang DeBugger public API -module(cedb). -export([ all_breaks/0, all_breaks/1, debug/2, delete_break/2, delete_break/3, break/2, break/3 ]). debug(Pid, Srv) -> set_shell_group_leader(), {ok, Meta} = int:attached(Pid), gen_server:cast(Srv, {set, meta, Meta}), gen_server:cast(Srv...
5ec09b1441c8e7f5feaca34d1fd78b5a4ab4d165c7022619c2aca10ace5d8b20
ppaml-op3/insomnia
Env.hs
-- | # LANGUAGE TemplateHaskell , FlexibleContexts , FlexibleInstances , TypeSynonymInstances # FlexibleContexts, FlexibleInstances, TypeSynonymInstances #-} module Insomnia.ToF.Env ( Insomnia.Common.FreshName.withFreshName , Insomnia.Common.FreshName.withFreshNames , Env(..) , tyConEnv , s...
null
https://raw.githubusercontent.com/ppaml-op3/insomnia/5fc6eb1d554e8853d2fc929a957c7edce9e8867d/src/Insomnia/ToF/Env.hs
haskell
| | when we translate insomnia term variables, we keep track of whether they came from a local binding or from a previous definition in the current module.
# LANGUAGE TemplateHaskell , FlexibleContexts , FlexibleInstances , TypeSynonymInstances # FlexibleContexts, FlexibleInstances, TypeSynonymInstances #-} module Insomnia.ToF.Env ( Insomnia.Common.FreshName.withFreshName , Insomnia.Common.FreshName.withFreshNames , Env(..) , tyConEnv , sigEnv ...
38a18094c0d32533d3b13f2792b215deed09bdecbd6f0b69583bb636fa5b8d56
Kappa-Dev/KappaTools
octo.ml
open Fraction open Integer open Mat_inter exception Exit type unbounded= Bound of int | Infinity module Octo = (struct type var = Occu1.trans type var_symb = Plus of var | Moins of var (*| ZERO *) type prod = {key : (var_symb*var_symb) Working_list_imperative.working_list; map : (var_symb...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/KaSa_rep/abstract_domains/numerical_domains/octo.ml
ocaml
| ZERO
open Fraction open Integer open Mat_inter exception Exit type unbounded= Bound of int | Infinity module Octo = (struct type var = Occu1.trans type prod = {key : (var_symb*var_symb) Working_list_imperative.working_list; map : (var_symb*var_symb,Integer.unbounded) Hashtbl.t; var : (var) Work...
671eda54bb9e3759865b4f80aa991b4e20c0cde6919aca4b8dd50beefbc2f9ba
c-cube/ocaml-chord
dhtBroadcast.mli
Copyright ( c ) 2013 , All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : Redistributions of source code must retain the above copyright notice , this list of conditions and the following...
null
https://raw.githubusercontent.com/c-cube/ocaml-chord/74b25d2d5574291b7c37dc7f4c4f569c7bc4ccf4/src/dhtBroadcast.mli
ocaml
* {1 Broadcasting} * Enable broadcasting on this DHT instance * Enable log messages * Broadcast the value to every other node in the DHT * Received broadcasted values, with the ID of the node that started the broadcast * Messages broadcasted from this very node * Wait for the next broadcasted message
Copyright ( c ) 2013 , All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : Redistributions of source code must retain the above copyright notice , this list of conditions and the following...
535d0ca47f28529900817f9673802d0e8d55201052b988bcf7670686ad692975
haskell-hvr/missingh
Binary.hs
# LANGUAGE Trustworthy # arch - tag : I / O utilities , binary tools Copyright ( c ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2004-2011 John Goerzen <> All rights reserved. For license and copyright information, see the file LICEN...
null
https://raw.githubusercontent.com/haskell-hvr/missingh/e1a73bd9547db967b4e8d76a443000d06ce95ac4/src/System/IO/Binary.hs
haskell
* Support for different types of blocks * Entire File\/Handle Utilities ** Opened Handle Data Copying ** Disk File Data Copying * Binary Single-Block I\/O * Binary Multi-Block I\/O * Lazy Interaction ** Binary Block-based ************************************************** Binary Files ********************...
# LANGUAGE Trustworthy # arch - tag : I / O utilities , binary tools Copyright ( c ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2004-2011 John Goerzen <> All rights reserved. For license and copyright information, see the file LICEN...
15b2f65bf8e7d94fed161ed5c2770e522ebaa8129fb4e2ad32079962606f6e95
v-kolesnikov/sicp
2_56_test.clj
(ns sicp.chapter02.2-56-test (:require [clojure.test :refer [deftest]] [sicp.chapter02.2-56 :as sicp-2-56] [sicp.common :as sicp] [sicp.test-helper :refer [assert-equal assert-true]])) (deftest test-deriv (assert-equal 1 (sicp-2-56/deriv '(+ x 3) 'x)) (assert-equal 'y (sicp-2-...
null
https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/test/sicp/chapter02/2_56_test.clj
clojure
(ns sicp.chapter02.2-56-test (:require [clojure.test :refer [deftest]] [sicp.chapter02.2-56 :as sicp-2-56] [sicp.common :as sicp] [sicp.test-helper :refer [assert-equal assert-true]])) (deftest test-deriv (assert-equal 1 (sicp-2-56/deriv '(+ x 3) 'x)) (assert-equal 'y (sicp-2-...
cce7b9dd13ecc2a7129517efd77fb5c33b6eaaecc12a14e6620498ebe1e8de03
filipesilva/shadow-cljs-devcards
core.cljs
(ns app.core (:require [reagent.core :as r])) (defn app [] [:div "devcards-test is running!"]) (defn ^:dev/after-load start [] (r/render [app] (.getElementById js/document "app"))) (defn ^:export main [] (start))
null
https://raw.githubusercontent.com/filipesilva/shadow-cljs-devcards/6a09329818ec4390493088ff5f05acf0188a95b6/src/app/core.cljs
clojure
(ns app.core (:require [reagent.core :as r])) (defn app [] [:div "devcards-test is running!"]) (defn ^:dev/after-load start [] (r/render [app] (.getElementById js/document "app"))) (defn ^:export main [] (start))
c35c702ce78c8bdf0bd63d8de293e4f5db5a84668747d59a63a8d47df54c8b3d
seckcoder/course-compiler
s1_28.rkt
(not 20)
null
https://raw.githubusercontent.com/seckcoder/course-compiler/4363e5b3e15eaa7553902c3850b6452de80b2ef6/tests/s1_28.rkt
racket
(not 20)
8fd37cfc1a0d0cec785db8a65d2592be6c3fdecd35dedb0c01a0a2c546251c7d
haskell-repa/repa
Solver.hs
# LANGUAGE BangPatterns , MagicHash # module Solver (quick_select) where import Data.Array.Repa as R import Data.Array.Repa.Repr.Unboxed as R import Data.Array.Repa.Vector as R import Prelude as P import Data.Array.Repa.Vect...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-examples/examples/QuickSelect/Solver.hs
haskell
I suspect using (Ord a => Vector U a) would produce worse core
# LANGUAGE BangPatterns , MagicHash # module Solver (quick_select) where import Data.Array.Repa as R import Data.Array.Repa.Repr.Unboxed as R import Data.Array.Repa.Vector as R import Prelude as P import Data.Array.Repa.Vect...
d16af4a12f4e45b0ddf3bde335181fb8d69f0b748f43ac0ef93fc92a727e5345
owlbarn/owl_opt
lbfgs_s.ml
module Make = Lbfgs.Make (Owl.Algodiff.S) (struct let to_64 = Owl_dense_ndarray_generic.cast_s2d let from_64 = Owl_dense_ndarray_generic.cast_d2s end)
null
https://raw.githubusercontent.com/owlbarn/owl_opt/c3b34072dddbce2d70e1698c5f1fd84d783f9cef/src/lbfgs/lbfgs_s.ml
ocaml
module Make = Lbfgs.Make (Owl.Algodiff.S) (struct let to_64 = Owl_dense_ndarray_generic.cast_s2d let from_64 = Owl_dense_ndarray_generic.cast_d2s end)
af913913e963278c380191a6e427197404371316419ce035445893ae4f791805
haskell/aeson
Time.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # -- | Module : Data . Aeson . . Time Copyright : ( c ) 2015 - 2016 License : BSD3 Maintainer : < > -- Stability: experimental -- Portability: portable -- Parsers for parsing dates and times . ...
null
https://raw.githubusercontent.com/haskell/aeson/8b1fe804d32a588842c3d518d5767ee67d383618/attoparsec-iso8601/src/Data/Attoparsec/Time.hs
haskell
# LANGUAGE BangPatterns # | Stability: experimental Portability: portable | Parse a date of the form @[+,-]YYYY-MM-DD@. an error to prevent the ambiguity. | Parse a month of the form @[+,-]YYYY-MM@. Note: 'Year' is a type synonym for 'Integer'. @since 1.1.0.0 | Parse a time of the form @HH:MM[:SS[.SSS]...
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # Module : Data . Aeson . . Time Copyright : ( c ) 2015 - 2016 License : BSD3 Maintainer : < > Parsers for parsing dates and times . module Data.Attoparsec.Time ( day , localTime , timeOfDay , timeZone ...
36d8d4b52d0615c346a546ef5a8875f76ec6b2c543184c2031d920e96da68ecd
ocaml-ppx/ppx
ppx_ast_tests_cinaps.mli
val print_test_ml : unit -> unit val print_deriving_mli : unit -> unit val print_deriving_ml : unit -> unit
null
https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/ast/test/cinaps/ppx_ast_tests_cinaps.mli
ocaml
val print_test_ml : unit -> unit val print_deriving_mli : unit -> unit val print_deriving_ml : unit -> unit
69f01e8b64547086ab7ff8f401a3bf92e7ad65ba9999411da6d5f1d368e8429d
opencog/opencog
filter-#6.scm
;; anaphor is "neuter" ;; antecedent is "masculine" ;; Examples: " ate an apple . It does not like it . " " It " should not refer to " " (define filter-#6 (BindLink (VariableList (TypedVariableLink (VariableNode "$word-inst-antecedent") (TypeNode "WordIn...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/nlp/anaphora/rules/filters/filter-%236.scm
scheme
anaphor is "neuter" antecedent is "masculine" Examples: filter
" ate an apple . It does not like it . " " It " should not refer to " " (define filter-#6 (BindLink (VariableList (TypedVariableLink (VariableNode "$word-inst-antecedent") (TypeNode "WordInstanceNode") ) (TypedVariableLink ...
9bdd616e493e8cd864bf1953ab55e35ea23060a54a930fc20d1e0255895dbd04
Metaxal/bazaar
plot.rkt
#lang racket/base (require define2 plot racket/list racket/dict) (provide (all-defined-out) (all-from-out plot)) (module+ test (require rackunit)) ;; Returns a list of lines for plot of the powers of base. (define (powers base from to hrule or vrule #:label [l...
null
https://raw.githubusercontent.com/Metaxal/bazaar/2968178aa62288c8ff41018a42dd306afb458046/plot.rkt
racket
Returns a list of lines for plot of the powers of base. ; Example: Example of string-ticks Useful for calls like: skip-rec: number of elements to skip in the output list (useful for plots with large lists) Useful for calls like: ; Ex: -of-20-simple-distinct-colors/ A nicer palette than the default one where t...
#lang racket/base (require define2 plot racket/list racket/dict) (provide (all-defined-out) (all-from-out plot)) (module+ test (require rackunit)) (define (powers base from to hrule or vrule #:label [label #f] #:color [color "gray"] ...
e6510e71415d581f672a0b95ad0c68b41d76384bd65eaa6c907fb7fcdd0d545e
BartoszMilewski/XOperad
Main.hs
# LANGUAGE OverlappingInstances # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # module Main where import Data.Foldable import Data.Traversable import Data.Monoid import Data.Maybe import Control.Comonad import Prelude hiding (concat, sum, foldr, any, all) -- Vec...
null
https://raw.githubusercontent.com/BartoszMilewski/XOperad/e42090e2e53625c2fa1f63a0e1d54d63476586db/Simple/Main.hs
haskell
# LANGUAGE TypeSynonymInstances # Vector Operad Comonad go :: f -> Int -> Int -> [W f a] Tic Tac Toe Moves and MoveTrees | | | | | | j | | | | k \/ \/ k The new move is past the current branch cannot fail! get a user move, validate it, make a move cannot fail!
# LANGUAGE OverlappingInstances # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # module Main where import Data.Foldable import Data.Traversable import Data.Monoid import Data.Maybe import Control.Comonad import Prelude hiding (concat, sum, foldr, any, all) ixV :: Int -> [a] -> a ixV n l = l !! n at...
3a540c5e2fcb7f0b5ea8b045d69262b62c8c6d7807d513b09ed3648c222be36f
binsec/haunted
conf_exploration.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 (* VERIMAG...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dynamic/dse/path_exploration/conf_exploration.ml
ocaml
************************************************************************ VERIMAG you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 Lesser General Public License as published by the Free Software Foundation , version 2.1 . See the GNU Le...
beea90f883317d1ebbb94e7414d58482aa3fe083edd215bba6008e60e48c4480
mathematical-systems/clml
tests.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;; See the file LICENCE for licence information. (defpackage :cl-store-tests (:use :cl :regression-test :cl-store)) (in-package :cl-store-tests) (rem-all-tests) (defvar *test-file* "filetest.cls") (defun restores (val) (store val *test-file*) (l...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/addons/cl-store/tests.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- See the file LICENCE for licence information. integers ratios complex numbers short floats single-float double-float long floats infinite floats characters various strings vectors (array octect (*)) arrays symbols cons hash tables for some reason (make-ha...
(defpackage :cl-store-tests (:use :cl :regression-test :cl-store)) (in-package :cl-store-tests) (rem-all-tests) (defvar *test-file* "filetest.cls") (defun restores (val) (store val *test-file*) (let ((restored (restore *test-file*))) (or (and (numberp val) (= val restored)) (and (stringp val) (stri...
2c9070485952f3aa666ff27db1241c4dc9458b54dab7de60f2853521b7a1e58b
hgoes/smtlib2
Expression.hs
module Language.SMTLib2.Internals.Expression where import Language.SMTLib2.Internals.Type hiding (Field) import qualified Language.SMTLib2.Internals.Type as Type import Language.SMTLib2.Internals.Type.Nat import Language.SMTLib2.Internals.Type.List (List(..),CList(..)) import qualified Language.SMTLib2.Internals.Type....
null
https://raw.githubusercontent.com/hgoes/smtlib2/c35747f2a5a9ec88dc7b1db41a5aab6e98c0458d/Language/SMTLib2/Internals/Expression.hs
haskell
| Free variable. | Quantified variable, i.e. a variable that's bound by a forall/exists quantor. | A function argument variable. Only used in function bodies. | A variable bound by a let binding. | Function application | Constant arguments as array indices and the return type as array element. | Bind variable...
module Language.SMTLib2.Internals.Expression where import Language.SMTLib2.Internals.Type hiding (Field) import qualified Language.SMTLib2.Internals.Type as Type import Language.SMTLib2.Internals.Type.Nat import Language.SMTLib2.Internals.Type.List (List(..),CList(..)) import qualified Language.SMTLib2.Internals.Type....
7c657bd3f8d55e98f2d49654a32cce3eaa68b4258486c64bdb7c06c89b767837
kelsey-sorrels/robinson
crafting.clj
;; Functions for generating random items. (ns robinson.crafting (:require [robinson.common :as rc] [robinson.specs :as rspec] [robinson.error :as re] [robinson.crafting.mod-protocol :as rcmp] [robinson.itemgen :as ig] [robinson.world :as rw] [rob...
null
https://raw.githubusercontent.com/kelsey-sorrels/robinson/337fd2646882708331257d1f3db78a3074ccc67a/src/robinson/crafting.clj
clojure
Functions for generating random items. weapons blunt edged piercing flexible Ammunition Survival Tools (log/info selected-recipe-hotkey hotkey slot) (log/info (type hotkey)) Recipe node naviation (log/info name) remove 'each-of add slot indexes remove tool clauses find which items ids are in remaining slo...
(ns robinson.crafting (:require [robinson.common :as rc] [robinson.specs :as rspec] [robinson.error :as re] [robinson.crafting.mod-protocol :as rcmp] [robinson.itemgen :as ig] [robinson.world :as rw] [robinson.player :as rp] [robinson...
8542bbe85c7bb269331e584b1d82cba72110fcb4cb7c86cf0e133c980d1c96c8
ahf/peculium_core
peculium_core_math.erl
%%% Copyright ( c ) 2013 . %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, are permitted provided that the following conditions are met: %%% %%% * Redistributions of source code must retain the above copyright notice, this %%% list of condition...
null
https://raw.githubusercontent.com/ahf/peculium_core/50259b7ee11ad31316e97c7e88b33cae3f89e5a1/src/peculium_core_math.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions...
Copyright ( c ) 2013 . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF S...
d262f205c8695bc5697f22119fa8b94ef466322a1182519d71c174afee217404
ghcjs/ghcjs
Prim.hs
# LANGUAGE MagicHash , DeriveDataTypeable , ScopedTypeVariables , CPP # #ifdef __GHCJS__ {-# LANGUAGE JavaScriptFFI, GHCForeignImportPrim, UnliftedFFITypes, UnboxedTuples #-} #endif module GHCJS.Prim ( JSVal(..), JSVal# , JSException(..) , Wo...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/lib/ghcjs-prim/GHCJS/Prim.hs
haskell
# LANGUAGE JavaScriptFFI, GHCForeignImportPrim, UnliftedFFITypes, UnboxedTuples # | Low-level conversion utilities for packages that cannot depend on ghcjs-base # INLINE [0] toJSString # # INLINE CONLIKE jsNull # # INLINE [0] getProp # # RULES "GHCJSPRIM getProp/literal"...
# LANGUAGE MagicHash , DeriveDataTypeable , ScopedTypeVariables , CPP # #ifdef __GHCJS__ #endif module GHCJS.Prim ( JSVal(..), JSVal# , JSException(..) , WouldBlockException(..) #ifdef ghcjs_HOST_OS , toIO , resolve , resolveIO ...
8930d473e3deb67ba1483fcb16abd678bfea274df0f57bb6e140a2f877f236e3
fortytools/holumbus
Pi.hs
module Holumbus.MapReduce.Examples.Pi ( piMap , piReduce ) where import Holumbus.MapReduce.Examples.SimpleDMapReduceIO import Holumbus.MapReduce.Types import System.Random.Mersenne import Data.Maybe import Control.DeepSeq import Control.Parallel calcSample :: Double -> Double -> Bool calcSample x y = (x*x+y*y) <= 1...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/mapreduce/Examples2/Pi/Pi_2/source/Holumbus/MapReduce/Examples/Pi.hs
haskell
The mapping function create random generator The reduce function
module Holumbus.MapReduce.Examples.Pi ( piMap , piReduce ) where import Holumbus.MapReduce.Examples.SimpleDMapReduceIO import Holumbus.MapReduce.Types import System.Random.Mersenne import Data.Maybe import Control.DeepSeq import Control.Parallel calcSample :: Double -> Double -> Bool calcSample x y = (x*x+y*y) <= 1...
e86a42936dd49f8431892ba02ec6e01ee49189d361e3541a98d248f7e61532af
ygmpkk/house
Console.hs
module Kernel.Console ( Console , putString, putStringLn , Kernel.Console.putChar, putChar' , clearScreen , moveCursorBackward , clearEOL ) where P : import Prelude hiding ( putChar ) import Prelude hiding (putChar) -} import H.Monad(H) import H.Concurrency import Control.Monad ( when )...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Kernel/Console.hs
haskell
module Kernel.Console ( Console , putString, putStringLn , Kernel.Console.putChar, putChar' , clearScreen , moveCursorBackward , clearEOL ) where P : import Prelude hiding ( putChar ) import Prelude hiding (putChar) -} import H.Monad(H) import H.Concurrency import Control.Monad ( when )...
97292a5763798c0a4e204e1fed60971cdba68fe3f945c3f7058ad9792c352a36
glguy/advent
10.hs
{-# Language ImportQualifiedPost #-} | Module : Main Description : Day 10 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > We 're in an asteroid field of infinitesimal asteroids on a lattice . We 'll need to figure out which location can see the most other asteroids...
null
https://raw.githubusercontent.com/glguy/advent/7ab9f9e47208fd5720e36bac33fee2b78d4ec50b/solutions/src/2019/10.hs
haskell
# Language ImportQualifiedPost # | >>> :main | Find the location of the base with the most visibility. | Return the coordinates ordered in a spiral given a center location. ^ center of spiral ^ objects ^ spiral ordered objects ^ obstructions * Coordinate utilities [C 3 2,C 5 3] [C 4 4,C 3 3,C 2 2] >...
| Module : Main Description : Day 10 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > We 're in an asteroid field of infinitesimal asteroids on a lattice . We 'll need to figure out which location can see the most other asteroids and then figure out what order a c...
04c8c4d1caa1e9398b5ad5f9d86594adef886b45d44219691ed63e6d91cb0397
Quviq/webdrv
webdrv_http_srv.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2013 , Quviq AB @license %%% Permission is hereby granted, free of charge, to any person %%% obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without %%...
null
https://raw.githubusercontent.com/Quviq/webdrv/7ceaf1f67d834e841ca0133b4bf899a9fa2db6bb/test/webdrv_http_srv.erl
erlang
------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sel...
@author < > ( C ) 2013 , Quviq AB @license files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , ...
fcc7d66da10ed73ee50e15502ed2bb40bfac9d0a927bdea0ccaaccf623429325
rowangithub/DOrder
includecore.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/typing/includecore.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : includecore.mli 10455 2010 - ...
c005a3bc8911edbc438632fa2be776c31f00d48fb4041c0e21419ea16d5f1a4d
SimulaVR/godot-haskell
AudioEffectBandLimitFilter.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.AudioEffectBandLimitFilter () where import Data.Coerce impo...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/AudioEffectBandLimitFilter.hs
haskell
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.AudioEffectBandLimitFilter () where import Data.Coerce impo...
5b7a6402985bde277cb6c6a1203f2dad114a494a6fc03831b8a5645be83f1968
rleonid/oml
oml_performance.mli
Copyright 2015,2016 : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , softwa...
null
https://raw.githubusercontent.com/rleonid/oml/a857d67708827ed00df3f175a942044601ca50cf/src/cls/oml_performance.mli
ocaml
* Evaluating classification performance. Probability of the _predicted_ class. Area under ROC. For a classifier that returns associated probabilities, describe it's performance. For a list of false positive rates and true positive rates, estimate the AUC by trapezoid integration. End points are added by def...
Copyright 2015,2016 : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , softwa...
1df03a57e06093e4c38d53364949f218d53450312d18641f4c3363cb6d83a658
igorhvr/bedlam
srfi-35.scm
(require-library 'sisc/libs/srfi/srfi-1) (require-library 'sisc/libs/srfi/srfi-23) (module srfi-35 (make-condition-type condition-type? make-condition condition? condition-has-type? condition-ref make-compound-condition extract-condition define-condition-type (condition...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-1.16.6/full-src/sisc/src/sisc/libs/srfi/srfi-35.scm
scheme
(require-library 'sisc/libs/srfi/srfi-1) (require-library 'sisc/libs/srfi/srfi-23) (module srfi-35 (make-condition-type condition-type? make-condition condition? condition-has-type? condition-ref make-compound-condition extract-condition define-condition-type (condition...
f60ae787804f0690d6547f345cbfd92d4d196633fadcedc4270fb050be04aec6
EFanZh/EOPL-Exercises
exercise-4.36-test.rkt
#lang racket/base (require rackunit) (require "../solutions/exercise-4.x-call-by-reference-lang.rkt") (check-equal? (run "let a = newarray(2, -99) in let p = proc (x) let v = arrayref(x, 1) in arrayset(x, 1, -(v, -1)) ...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-4.36-test.rkt
racket
#lang racket/base (require rackunit) (require "../solutions/exercise-4.x-call-by-reference-lang.rkt") (check-equal? (run "let a = newarray(2, -99) in let p = proc (x) let v = arrayref(x, 1) in arrayset(x, 1, -(v, -1)) ...
b63a9594cf7b9b10da7327d0a9e1cfb2f5e411bfaad82dbf07a33196f0f61389
crosswire/xiphos
cart_aux.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; Centre for Speech Technology Research ; ; University of Edinburgh , UK ; ; ;;; ...
null
https://raw.githubusercontent.com/crosswire/xiphos/a9283769ef4d0d47f1d09a3ca4138610bb96a46c/win32/festival/lib/cart_aux.scm
scheme
;; ; ; Copyright (c) 1996,1997 ;; ; ;; Permission is hereby granted, free of charge, to use and distribute ;; this softwar...
(define (cart_prune_tree_thresh tree threshold default) "(prune_cart_tree_thresh TREE THRESHOLD DEFAULT) Prune the classification tree TREE so that all tail nodes with a prediction probabality less than THRESHOLD and changed to return DEFAULT instead. This may be used when different mistakes have actually different p...
da47e7b0801fe92c40bb1a79484dcd469a09597eb5a3b429dee277aaed7e845e
cedlemo/OCaml-GI-ctypes-bindings-generator
Recent_action.mli
open Ctypes type t val t_typ : t typ val create : string -> string option -> string option -> string option -> Action.t ptr val create_for_manager : string -> string option -> string option -> string option -> Recent_manager.t ptr option -> Action.t ptr val get_show_numbers : t -> bool val set_show_numbers : ...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Recent_action.mli
ocaml
open Ctypes type t val t_typ : t typ val create : string -> string option -> string option -> string option -> Action.t ptr val create_for_manager : string -> string option -> string option -> string option -> Recent_manager.t ptr option -> Action.t ptr val get_show_numbers : t -> bool val set_show_numbers : ...
ae292fcc7d839f138fa1290c4e393f0b6cf610194874946b57a8bfb3e68bbd86
opencog/agi-bio
models_100l.scm
scm (EquivalenceLink (stv 1.0 1.0) (PredicateNode "chr22_moses.5x10.csv:moses_model_000") (PredicateNode "ADORA2A") ) (EvaluationLink (stv 1 1) (PredicateNode "accuracy") (ListLink (PredicateNode "chr22_moses.5x10.csv:moses_model_000") (PredicateNode "aging"))) (EvaluationLink (stv 1 1) (PredicateNode "balancedAccuracy...
null
https://raw.githubusercontent.com/opencog/agi-bio/9c03d9b0e81cb8a8b3a58179f3134f336e5dbdb6/moses-scripts/obsolete/models_100l.scm
scheme
scm (EquivalenceLink (stv 1.0 1.0) (PredicateNode "chr22_moses.5x10.csv:moses_model_000") (PredicateNode "ADORA2A") ) (EvaluationLink (stv 1 1) (PredicateNode "accuracy") (ListLink (PredicateNode "chr22_moses.5x10.csv:moses_model_000") (PredicateNode "aging"))) (EvaluationLink (stv 1 1) (PredicateNode "balancedAccuracy...
52e872980d3a0a77f3094e548f77a3d97ef16d2bef0994db85c1bdc8682707e4
racket/typed-racket
known-length-lists.rkt
#;#; #<<END TR opt: known-length-lists.rkt 10:0 (list-ref l k) -- known-length list op TR opt: known-length-lists.rkt 11:0 (list-tail l i) -- known-length list op TR opt: known-length-lists.rkt 12:0 (list-tail l j) -- known-length list op TR opt: known-length-lists.rkt 13:0 (list-tail l k) -- known-length list op TR op...
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/optimizer/tests/known-length-lists.rkt
racket
#;
#<<END TR opt: known-length-lists.rkt 10:0 (list-ref l k) -- known-length list op TR opt: known-length-lists.rkt 11:0 (list-tail l i) -- known-length list op TR opt: known-length-lists.rkt 12:0 (list-tail l j) -- known-length list op TR opt: known-length-lists.rkt 13:0 (list-tail l k) -- known-length list op TR opt: kn...
1595af9a1839bf0bcdeb2055d6387ec712f3dfbb9568d58c62fc822dfdb7f664
nominolo/lambdachine
Bc0004.hs
# LANGUAGE NoImplicitPrelude , MagicHash # -- RUN: %bc module Bc0004 where import GHC.Prim data Int = I# Int# data List a = Nil | Cons a (List a)
null
https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/tests/Bc/Bc0004.hs
haskell
RUN: %bc
# LANGUAGE NoImplicitPrelude , MagicHash # module Bc0004 where import GHC.Prim data Int = I# Int# data List a = Nil | Cons a (List a)
8ecef797d20667c62091c8b819efa024a176284ed1076dd5b998bac1908455fa
mzp/coq-ide-for-ios
nbtermdn.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/tactics/nbtermdn.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i Named, bounded-depth, term-disc...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : nbtermdn.mli 13332 ...
be3935469e1552537193a2c790b9e1f64871a6a65549065bccb8ff0ec29275e0
lambdaisland/thirdpartyjs
core.clj
(ns thirdpartyjs.core) (defn foo "I don't do a whole lot." [x] (println x "Hello, World!"))
null
https://raw.githubusercontent.com/lambdaisland/thirdpartyjs/3497063a4ea9e7c972e2780ff406fb1c556c701f/src/clj/thirdpartyjs/core.clj
clojure
(ns thirdpartyjs.core) (defn foo "I don't do a whole lot." [x] (println x "Hello, World!"))
4255975786c5982e0f5cc3273a19472a3b3fa42f5ddabccab13cf6f0987e692c
dktr0/estuary
R.hs
{-# LANGUAGE OverloadedStrings #-} module Estuary.Render.R where import Data.Time import Data.Text (Text) import qualified Data.Text as T import Control.Monad.Reader import Control.Monad.State.Strict import Control.Exception (evaluate,catch,SomeException,try) import Control.Concurrent.MVar import Data.IntMap.Strict a...
null
https://raw.githubusercontent.com/dktr0/estuary/c08a4790533c983ba236468e0ae197df50f2109f/client/src/Estuary/Render/R.hs
haskell
# LANGUAGE OverloadedStrings # :: (StateT RenderState IO) a deprecated/temporary updating Settings (eg. in response to user action in widgets) asking/reading settings from within the R monad (note: not all Settings are given accessors here, just those that might
module Estuary.Render.R where import Data.Time import Data.Text (Text) import qualified Data.Text as T import Control.Monad.Reader import Control.Monad.State.Strict import Control.Exception (evaluate,catch,SomeException,try) import Control.Concurrent.MVar import Data.IntMap.Strict as IntMap import Data.Map.Strict as ...
4ced84bcb320897cee02bb0ef8bffe88ee5f1949ec23a7ea937a7f4a04bbe694
runexec/chp
operating-status.clj
(defn operating-status [handler] (fn [req] (let [r (Runtime/getRuntime) os (java.lang.management.ManagementFactory/getOperatingSystemMXBean) rt (java.lang.management.ManagementFactory/getRuntimeMXBean) t (java.lang.management.ManagementFactory/getThreadMXBean)] (print...
null
https://raw.githubusercontent.com/runexec/chp/9059399c46fb4106a73631c741f1e557af541a8b/resources/modules/middleware/operating-status.clj
clojure
(defn operating-status [handler] (fn [req] (let [r (Runtime/getRuntime) os (java.lang.management.ManagementFactory/getOperatingSystemMXBean) rt (java.lang.management.ManagementFactory/getRuntimeMXBean) t (java.lang.management.ManagementFactory/getThreadMXBean)] (print...
9761069d4d16f1e1a27779a50d0c083b99b1ef12585d89509fb87f6f7535198a
UU-ComputerScience/uhc
LocalInstance2.hs
{- ---------------------------------------------------------------------------------------- what : local instance expected: ok ---------------------------------------------------------------------------------------- -} module LocalInstance2 where eqInt :: Int -> Int -> Bool eqInt = (==) instance dEqInt = Eq...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/regress/99/LocalInstance2.hs
haskell
---------------------------------------------------------------------------------------- what : local instance expected: ok ----------------------------------------------------------------------------------------
module LocalInstance2 where eqInt :: Int -> Int -> Bool eqInt = (==) instance dEqInt = Eq Int where (==) = eqInt main :: IO () main = do let i = [4 :: Int, 3] j = [4 :: Int, 5] putStrLn (show (i == j)) putStrLn (show (let instance dLocInstEqA = Eq a => Eq [a] where ...
5a90724975d25717aaa77ca0c414cba6455e4c7b2fa44353d288fcd1fe07570c
bootstrapworld/curr
build-modes.rkt
#lang racket ;; API for build modes set through env parameters (provide (all-defined-out)) ;;;;;;;;; Solutions ;;;;;;;;;;;;;;;; (define (solutions-mode?) (equal? (getenv "CURRENT-SOLUTIONS-MODE") "on")) (define (solutions-mode-on) (putenv "CURRENT-SOLUTIONS-MODE" "on")) (define (solutions-mode-off) (putenv ...
null
https://raw.githubusercontent.com/bootstrapworld/curr/443015255eacc1c902a29978df0e3e8e8f3b9430/lib/build-modes.rkt
racket
API for build modes set through env parameters Solutions ;;;;;;;;;;;;;;;; Build for ;;;;;;;;;;;;;;; Workbook or Textbook styling ;;;;;;;;
#lang racket (provide (all-defined-out)) (define (solutions-mode?) (equal? (getenv "CURRENT-SOLUTIONS-MODE") "on")) (define (solutions-mode-on) (putenv "CURRENT-SOLUTIONS-MODE" "on")) (define (solutions-mode-off) (putenv "CURRENT-SOLUTIONS-MODE" "off")) (define (build-for-codeorg?) (string=? (getenv "BU...
65a7bb7d293788886a9155babf382e78718becc481c9831648c846ff0ab3e201
PureFnOrg/sentenza
xforms.clj
(ns org.purefn.sentenza.xforms "Common transducers that may be useful in data pipelines." (:require [clojure.string :as str] [taoensso.timbre :as log])) (defn csv-map "Converts rows from a CSV file with an initial header row into a lazy seq of maps with the header row keys (as keywords). The 0-ar...
null
https://raw.githubusercontent.com/PureFnOrg/sentenza/3eac3a9712782ece05264c630d9cff3c5cd76b45/src/org/purefn/sentenza/xforms.clj
clojure
(ns org.purefn.sentenza.xforms "Common transducers that may be useful in data pipelines." (:require [clojure.string :as str] [taoensso.timbre :as log])) (defn csv-map "Converts rows from a CSV file with an initial header row into a lazy seq of maps with the header row keys (as keywords). The 0-ar...
e012c31df6233ea484604563bc0218f729e5ba9cb9a33848948f62585401f347
roehst/tapl-implementations
syntax.mli
module Syntax : syntax trees and associated support functions open Support.Pervasive open Support.Error (* Data type definitions *) type kind = KnStar | KnArr of kind * kind type ty = TyVar of int * int | TyId of string | TyTop | TyArr of ty * ty | TyBool | TyRecord of (string * ty) list | T...
null
https://raw.githubusercontent.com/roehst/tapl-implementations/23c0dc505a8c0b0a797201a7e4e3e5b939dd8fdb/fullfomsub/syntax.mli
ocaml
Data type definitions Contexts Shifting and substitution Printing Misc
module Syntax : syntax trees and associated support functions open Support.Pervasive open Support.Error type kind = KnStar | KnArr of kind * kind type ty = TyVar of int * int | TyId of string | TyTop | TyArr of ty * ty | TyBool | TyRecord of (string * ty) list | TyString | TyUnit | TyFlo...
38d80acddb64b1bd7ad165096a2eb690baf97bf50d3e1618c9ad218d1b0b7bf6
lamdu/hypertypes
InferOf.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # module Hyper.Class.Infer.InferOf ( HasInferredType (..) , HasInferredValue (..) , InferOfConstraint (..) ) where import Control.Lens (ALens', Lens') import Hyper.Class.Infer (InferOf) import Hyper.Type (Hype...
null
https://raw.githubusercontent.com/lamdu/hypertypes/161142e0d9f503194b85fb6f5b2a5907a1ae3783/src/Hyper/Class/Infer/InferOf.hs
haskell
| @HasInferredType t@ represents that @InferOf t@ contains a @TypeOf t@, which represents its inferred type. | The type of @t@ A 'Control.Lens.Lens' from an inference result to an inferred type | A 'Control.Lens.Lens' from an inference result to an inferred value
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # module Hyper.Class.Infer.InferOf ( HasInferredType (..) , HasInferredValue (..) , InferOfConstraint (..) ) where import Control.Lens (ALens', Lens') import Hyper.Class.Infer (InferOf) import Hyper.Type (Hype...
8fd31f080cf7c4c54472716dbd35ddfa7c16e4634a6d4c1e187db4ee5d0a9fdb
lamdu/lamdu
GetVar.hs
# LANGUAGE TemplateHaskell # module Lamdu.Sugar.Types.GetVar ( VarForm(..), _GetDefinition, _GetNormalVar, _GetLightParam , DefinitionForm(..), _DefUpToDate, _DefDeleted, _DefTypeChanged , DefinitionOutdatedType(..), defTypeWhenUsed, defTypeCurrent, defTypeUseCurrent , VarInline(..), _InlineVar, _Cannot...
null
https://raw.githubusercontent.com/lamdu/lamdu/6456aae47f8c8a90f62de8cb7e6e3650d503e267/src/Lamdu/Sugar/Types/GetVar.hs
haskell
Just means it is stored and inlinable:
# LANGUAGE TemplateHaskell # module Lamdu.Sugar.Types.GetVar ( VarForm(..), _GetDefinition, _GetNormalVar, _GetLightParam , DefinitionForm(..), _DefUpToDate, _DefDeleted, _DefTypeChanged , DefinitionOutdatedType(..), defTypeWhenUsed, defTypeCurrent, defTypeUseCurrent , VarInline(..), _InlineVar, _Cannot...
773a56c77fbc43c90d0448501b6e0e295803c4cbb8e81a3aedd90a60f2744bcc
nikodemus/SBCL
target-hash-table.lisp
;;;; that part of the implementation of HASH-TABLE which lives solely ;;;; on the target system, not on the cross-compilation host This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon ...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/code/target-hash-table.lisp
lisp
that part of the implementation of HASH-TABLE which lives solely on the target system, not on the cross-compilation host more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. utilities Code for ...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!IMPL") is to detect thread - unsafe uses of hash - tables in sbcl itself , (defmacro with-concurrent-acc...
45cef072e7290429e2835cb125bd3ae882ae3384fc82c7ed14c21357e65582fe
ghc/packages-dph
QSortSeq.hs
{-# OPTIONS_GHC -fglasgow-exts #-} # OPTIONS_GHC -fno - spec - constr - count # -- module QSortSeq (qsortSeq, qsortList) where import Data.Array.Parallel.Unlifted import Debug.Trace qsortSeq :: UArr Double -> UArr Double qsortSeq xs = -- trace (show res) res where res = concatSU $ qsortLifted $ singleto...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/icebox/examples/qsort/QSortSeq.hs
haskell
# OPTIONS_GHC -fglasgow-exts # trace (show res)
# OPTIONS_GHC -fno - spec - constr - count # module QSortSeq (qsortSeq, qsortList) where import Data.Array.Parallel.Unlifted import Debug.Trace qsortSeq :: UArr Double -> UArr Double res where res = concatSU $ qsortLifted $ singletonSU xs qsortLifted:: SUArr Double -> SUArr Double qsortLifted xssArr = sp...
6de7f3ddf2ae370b8903340e4a9839a02d316a53f5c2468f6657c11eb113cb57
gvolpe/exchange-rates
Main.hs
module Main where import Cache.Redis ( mkRedisCache ) import Concurrency.Counter ( mkCounter ) import Config import Context import Control.Monad.IO.Class ( liftIO ) import Http.Client.Forex ( mkForexClient ) ...
null
https://raw.githubusercontent.com/gvolpe/exchange-rates/161108bfc859f399f06df7a8ce10e786f01af533/app/Main.hs
haskell
module Main where import Cache.Redis ( mkRedisCache ) import Concurrency.Counter ( mkCounter ) import Config import Context import Control.Monad.IO.Class ( liftIO ) import Http.Client.Forex ( mkForexClient ) ...
17745663e621d790a8cb8e2a00e46a89ad0d045f66a4587059779fb88ed1f0ec
willdonnelly/dyre
Compat.hs
# LANGUAGE CPP # #if defined(mingw32_HOST_OS) || defined(__MINGW32__) # LANGUAGE ForeignFunctionInterface # #if defined(i386_HOST_ARCH) #define WINDOWS_CCONV stdcall #elif defined(x86_64_HOST_ARCH) #define WINDOWS_CCONV ccall #else #error Unknown mingw32 arch #endif #endif {- | Compatibility code for things that ...
null
https://raw.githubusercontent.com/willdonnelly/dyre/f1ebc1592fb188fa173f8c1baa325fc61f527825/Config/Dyre/Compat.hs
haskell
| Compatibility code for things that need to be done differently on different systems. This can be removed as soon as a 'getProcessID' function gets added to 'System.Win32' This whole thing is a terrible, ugly hack. Since Windows is too braindead to provide an exec() system call for us to use, we simply create a...
# LANGUAGE CPP # #if defined(mingw32_HOST_OS) || defined(__MINGW32__) # LANGUAGE ForeignFunctionInterface # #if defined(i386_HOST_ARCH) #define WINDOWS_CCONV stdcall #elif defined(x86_64_HOST_ARCH) #define WINDOWS_CCONV ccall #else #error Unknown mingw32 arch #endif #endif module Config.Dyre.Compat ( customExec, ...
1fab08e160e7fcfe6f79cd4f28a5e671897078b25c975fc084daab6e73a752a5
hreinhardt/amqp
Protocol.hs
module Network.AMQP.Protocol where import Control.Monad import Data.Binary import Data.Binary.Get import Data.Binary.Put import qualified Data.ByteString.Lazy.Char8 as BL import Network.AMQP.Types import Network.AMQP.Generated True if a content ( contentheader and possibly contentbody ) will follow the method hasCo...
null
https://raw.githubusercontent.com/hreinhardt/amqp/5c310093d8aba8fe563aab414ac8641a0ae31d99/Network/AMQP/Protocol.hs
haskell
channel, payload frame end gets the size of the frame classID, weight, bodySize, propertyFields METHOD FRAME content header frame content body frame ignoring the actual payload, but still need to read the bytes from the network buffer this should never happen:
module Network.AMQP.Protocol where import Control.Monad import Data.Binary import Data.Binary.Get import Data.Binary.Put import qualified Data.ByteString.Lazy.Char8 as BL import Network.AMQP.Types import Network.AMQP.Generated True if a content ( contentheader and possibly contentbody ) will follow the method hasCo...
e8800b42fc0155223e864387880ebd0a3f86e419dc46d6916c5bcf01c33392e4
BramvanVeenschoten1/qtt
Parser.hs
module Parser where import Lexer import Control.Applicative import Data.List import Data.Function import Data.Array.Unboxed import Data.Maybe type Name = String type QName = [String] data Binder = Binder {binderLoc :: Loc, binderName :: Name} instance Eq Binder where (==) = on (==) binderName in...
null
https://raw.githubusercontent.com/BramvanVeenschoten1/qtt/ece216ac2e6126b25e0894e93bd146a838b084b3/lamcvii/Parser.hs
haskell
module Parser where import Lexer import Control.Applicative import Data.List import Data.Function import Data.Array.Unboxed import Data.Maybe type Name = String type QName = [String] data Binder = Binder {binderLoc :: Loc, binderName :: Name} instance Eq Binder where (==) = on (==) binderName in...
21b932bb3a78c171f5b68970642745794f190906051bfc181ef0f4f5c5e982e9
jumarko/clojure-experiments
ch10_mutation_and_concurrency.clj
(ns clojure-experiments.books.joy-of-clojure.ch10-mutation-and-concurrency "Structure of the chapter: - refs (10.1 and 10.2) - agents (10.3) - atoms (10.4) - locks (10.5) - vars and dynamic binding (10.6) " (:require [clojure-experiments.books.joy-of-clojure.ch05-collections :as ch05] [clojure.cor...
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/books/joy_of_clojure/ch10_mutation_and_concurrency.clj
clojure
prints: Hi Hi Hi Hi Hi Hi Hi Hi Hi Hi Hi Hi here's my approach that is shorter than in the book: => [[":-" ":k" ":-"] [":-" ":-" ":-"] [":-" ":K" ":-"]] Note: I'm not following the "refs" chapter closely with all the examples It was useful to read but refs are rarely used so I only read it quickly Agents have a ...
(ns clojure-experiments.books.joy-of-clojure.ch10-mutation-and-concurrency "Structure of the chapter: - refs (10.1 and 10.2) - agents (10.3) - atoms (10.4) - locks (10.5) - vars and dynamic binding (10.6) " (:require [clojure-experiments.books.joy-of-clojure.ch05-collections :as ch05] [clojure.cor...
4e6b6275db74c702068c6deae75029a4ee8dd6a6777bc061899b061a5f145858
hercules-ci/hercules-ci-agent
Util.hs
# LANGUAGE BlockArguments # # LANGUAGE CPP # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # | Functions calling Nix 's libutil module Hercules.CNix.Util ( setInterruptThrown, triggerInterrupt, installDefaultSigINTHandler, createInterruptCallback, ) where impor...
null
https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/8a476e9328d197d0d41872b1674638827e18bae0/hercules-ci-cnix-store/src/Hercules/CNix/Util.hs
haskell
(installHandler uses process-wide sigprocmask, so this should apply to all leaks onInterruptPtr
# LANGUAGE BlockArguments # # LANGUAGE CPP # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # | Functions calling Nix 's libutil module Hercules.CNix.Util ( setInterruptThrown, triggerInterrupt, installDefaultSigINTHandler, createInterruptCallback, ) where impor...
fa2cc91444afa1860e7494345f22b1a222e442ebb6269a561b5f81cac2e0f4ca
Workiva/eva
print_ext.clj
Copyright 2015 - 2019 Workiva Inc. ;; ;; Licensed under the Eclipse Public License 1.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -1.0.php ;; ;; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/print_ext.clj
clojure
Licensed under the Eclipse Public License 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -1.0.php Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Copyright 2015 - 2019 Workiva Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns eva.print-ext "Central namespace for specifying clojure print behaviors on the top-level java Eva interfaces." (:require [clojure.pprint :as pp] [quartermaster.core :as qu]) (:import (ev...
88de382dfb7155374a558a668edd5d763b282cab59a91bba6190a1c231be51f2
clyfe/clara-eav
dsl_test.clj
(ns clara-eav.dsl-test (:require [clojure.spec.alpha :as s] [clara-eav.test-helper :as test-helper] [clara-eav.dsl :as dsl] [clojure.test :refer [deftest testing is are use-fixtures]])) (use-fixtures :once test-helper/spec-fixture) (defn eav [v] (s/conform ::dsl/eav v)) (defn eav...
null
https://raw.githubusercontent.com/clyfe/clara-eav/1a2255a3aaac303f71a2867998453853673bc6ce/test/clara_eav/dsl_test.clj
clojure
(ns clara-eav.dsl-test (:require [clojure.spec.alpha :as s] [clara-eav.test-helper :as test-helper] [clara-eav.dsl :as dsl] [clojure.test :refer [deftest testing is are use-fixtures]])) (use-fixtures :once test-helper/spec-fixture) (defn eav [v] (s/conform ::dsl/eav v)) (defn eav...
b334be16cce929037115d7541c47dab170e9d0fe15251c573d0c3cb475f157fb
savonet/ocaml-posix
test.ml
open Posix_uname let () = let { sysname; nodename; release; version; machine } = uname () in Printf.printf "sysname: %s\nnodename: %s\nrelease: %s\nversion: %s\nmachine: %s\n%!" sysname nodename release version machine
null
https://raw.githubusercontent.com/savonet/ocaml-posix/d46d011de16154b34324eae6ee6e7010138cf4af/posix-uname/test/test.ml
ocaml
open Posix_uname let () = let { sysname; nodename; release; version; machine } = uname () in Printf.printf "sysname: %s\nnodename: %s\nrelease: %s\nversion: %s\nmachine: %s\n%!" sysname nodename release version machine