_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
723a55719e71b032bd9664efe4357dbfea9fd331a8a61bac405a5338cc7b022c
Eduap-com/WordMat
solve.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/solve.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; List of E-labe...
(in-package :maxima) (macsyma-module solve) (load-macsyma-macros ratmac strmac) (declare-top (special expsumsplit $dispflag checkfactors *g *power *varb *flg $derivsubst $%emode genvar genpairs varlist broken-not-freeof *myvar $listconstvars *has*var *var $dontfactor $keepflo...
1ca37aab626708bf1681ef43e7ad92023e0c3b933f2656bbea46ca661756b474
fons/cl-mongo
mem.lisp
(in-package :cl-mongo) #+sbcl (defun gen-clean (gen) (let ((thr (sb-ext:generation-minimum-age-before-gc gen))) (setf (sb-ext:generation-minimum-age-before-gc gen) 0.d0) (sb-ext:gc :gen gen) (setf (sb-ext:generation-minimum-age-before-gc gen) thr))) #+sbcl (defun reclaim-memory() (dotimes (gen 7) ...
null
https://raw.githubusercontent.com/fons/cl-mongo/141518d34fddc9ba42d3813362abae12b368f059/src/mem.lisp
lisp
(format t "hello ~A~%" gen)
(in-package :cl-mongo) #+sbcl (defun gen-clean (gen) (let ((thr (sb-ext:generation-minimum-age-before-gc gen))) (setf (sb-ext:generation-minimum-age-before-gc gen) 0.d0) (sb-ext:gc :gen gen) (setf (sb-ext:generation-minimum-age-before-gc gen) thr))) #+sbcl (defun reclaim-memory() (dotimes (gen 7) ...
1be32309a64b79c0ebf8308d3c62abc370aabaa53a6fa66b547e3d2c3c21eb45
dhammikamare/Learn-OCaml
dom.ml
type htmltag = | Html | Head | Title | Body | H1 | P ;; type domtree = | Content of string | Node of htmltag * domtree list ;; let rec count_tag (dtr:domtree) (t:htmltag) :int = let rec countlist (l:domtree list) :int = match l with | [] -> 0 | hd::tl -> (count_tag hd t) + (countlist tl) in...
null
https://raw.githubusercontent.com/dhammikamare/Learn-OCaml/2d4e3da38ee86cd7477964ffb8756a8483260322/lab10%20Binary%20Tree/dom.ml
ocaml
test
type htmltag = | Html | Head | Title | Body | H1 | P ;; type domtree = | Content of string | Node of htmltag * domtree list ;; let rec count_tag (dtr:domtree) (t:htmltag) :int = let rec countlist (l:domtree list) :int = match l with | [] -> 0 | hd::tl -> (count_tag hd t) + (countlist tl) in...
339c10035b0b25fa1d98f0973ff048a1f178a88cc7f74690fde096a515bb3b91
squaresLab/SynthLift
tracer_cmdline.ml
open Core_kernel.Std open Format module Options = struct type t = { with_db : string option ; pp_db : bool ; trace_path : string } end include Cmdliner let trace_path : string option Term.t = let doc = "Input file with extension .frames of directory with .frames files" in Arg.(value & opt (...
null
https://raw.githubusercontent.com/squaresLab/SynthLift/6831b23db539bfacfcf59acb97d6de04522719db/tracer_cmdline.ml
ocaml
open Core_kernel.Std open Format module Options = struct type t = { with_db : string option ; pp_db : bool ; trace_path : string } end include Cmdliner let trace_path : string option Term.t = let doc = "Input file with extension .frames of directory with .frames files" in Arg.(value & opt (...
bff5d30f636f45b85aae760930ba33b1903c4d85abc9c36eb57c22450a95afd4
cl-stream/cl-stream
line-tracking-stream.lisp
;; ;; cl-stream - Stream classes for Common Lisp ;; ;; Copyright 2017,2018 Thomas de Grivel <> ;; ;; Permission to use, copy, modify, and distribute this software for any ;; purpose with or without fee is hereby granted, provided that the above ;; copyright notice and this permission notice appear in all copies....
null
https://raw.githubusercontent.com/cl-stream/cl-stream/8c4888591cd4ef9062c6c066326acef1415460f1/line-tracking-stream.lisp
lisp
cl-stream - Stream classes for Common Lisp Copyright 2017,2018 Thomas de Grivel <> Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD ...
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN (in-package :cl-stream) (defclass line-tracking-input-stream (super-stream character-str...
a8aba010cc9f50cbee73cbb53898bbff0c893452fda41c57ff87c6a21be94c4b
mirage/bechamel
staged.mli
(** Staged value. Staged value is used by the module {!Test} to protect the underlying value about optimization (specially cross-module optimization). *) type 'a t val stage : 'a -> 'a t val unstage : 'a t -> 'a
null
https://raw.githubusercontent.com/mirage/bechamel/7a0aebef3c2ec266db97385264be74274bdc4765/lib/staged.mli
ocaml
* Staged value. Staged value is used by the module {!Test} to protect the underlying value about optimization (specially cross-module optimization).
type 'a t val stage : 'a -> 'a t val unstage : 'a t -> 'a
26ee5efa663eb5ebffa15630c040604a7d44b8f04f764d7c6cc61e95f1c9786e
tomprimozic/type-systems
core.ml
open Expr open Infer let core = let core_ref = ref Env.empty in let assume name ty_str = let ty = Parser.ty_forall_eof Lexer.token (Lexing.from_string ty_str) in core_ref := Env.extend !core_ref name ty in assume "head" "forall[a] list[a] -> a" ; assume "tail" "forall[a] list[a] -> list[a]" ; assume "nil...
null
https://raw.githubusercontent.com/tomprimozic/type-systems/4403586a897ee94cb8f0de039aeee8ef1ecef968/extensible_rows2/core.ml
ocaml
open Expr open Infer let core = let core_ref = ref Env.empty in let assume name ty_str = let ty = Parser.ty_forall_eof Lexer.token (Lexing.from_string ty_str) in core_ref := Env.extend !core_ref name ty in assume "head" "forall[a] list[a] -> a" ; assume "tail" "forall[a] list[a] -> list[a]" ; assume "nil...
43c44b95c57cb178da4b604bdc577ee3d1eb358e1ae16c726f1d9dec47b0ac5e
pedestal/pedestal-app
web_workers.cljs
(ns io.pedestal.app.util.web-workers (:require [io.pedestal.app.protocols :as p] [io.pedestal.app.queue :as queue] [io.pedestal.app.render.push :as push-render] [cljs.reader :as reader])) (defn create-render-queue [config input-queue] (assert (:id config) "render config must hav...
null
https://raw.githubusercontent.com/pedestal/pedestal-app/509ab766a54921c0fbb2dd7c6a3cb20223b8e1a1/app/src/io/pedestal/app/util/web_workers.cljs
clojure
(ns io.pedestal.app.util.web-workers (:require [io.pedestal.app.protocols :as p] [io.pedestal.app.queue :as queue] [io.pedestal.app.render.push :as push-render] [cljs.reader :as reader])) (defn create-render-queue [config input-queue] (assert (:id config) "render config must hav...
c0743bda4a8fd04f11591fa171d31eae476bc604d2e26db19d49616e382d36af
ygrek/mldonkey
dcGlobals.ml
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/networks/direct_connect/dcGlobals.ml
ocaml
filelist creation one time on start autoconnection done to servers on start let nservers = ref 0 connected servers count list of connected servers (servers that have sent $Hello to us) let current_open_slots = ref 0 this is used to name temporary users always with different name max (int64_kbyte-1) atm....
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 ...
66e3f0897a60dc0b08cde4f374d745e763606f687baee8307721a5b7596baf98
ghuysmans/ocaml-fet
export.ml
let () = match Sys.argv with | [| _; "students" |] -> let ch = Csv.to_channel stdout in Fet.Students.tree_to_list Fet.Class.[ Year.of_string "y", 7, [ Group.of_string "g", 4, []; Group.of_string "g2", 3, [ Subgroup.of_string "sg1", 2; Subgroup.of_string "sg2", 1; ...
null
https://raw.githubusercontent.com/ghuysmans/ocaml-fet/e1f2ce9e500e16e6d181baf9e440ede21d740ef7/tests/export.ml
ocaml
let () = match Sys.argv with | [| _; "students" |] -> let ch = Csv.to_channel stdout in Fet.Students.tree_to_list Fet.Class.[ Year.of_string "y", 7, [ Group.of_string "g", 4, []; Group.of_string "g2", 3, [ Subgroup.of_string "sg1", 2; Subgroup.of_string "sg2", 1; ...
85e760b86a1394d71b07ec6fcb06ac78750a2407c2a5b27762239a479ad0ada5
bobbae/gosling-emacs
long-files.ml
(setq-default matching-ignore "^\\.,\\|^~\\|\\.o$\\|\\.b$") (setq-default match/recognize 0); default is to match (defun (Visit-file-matching files i (setq files (&get-filename "Visit File")) (if (string-index files ' ') (progn (message (concat "=> " files)) (sit-for 0)) ; (message (concat "Matching ...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/utah/long-files.ml
ocaml
(setq-default matching-ignore "^\\.,\\|^~\\|\\.o$\\|\\.b$") (setq-default match/recognize 0); default is to match (defun (Visit-file-matching files i (setq files (&get-filename "Visit File")) (if (string-index files ' ') (progn (message (concat "=> " files)) (sit-for 0)) ; (message (concat "Matching ...
6e489ca6438abcad2aee4e008368efe3761d0e09e0f0f90d55554e239bca350c
incoherentsoftware/defect-process
Types.hs
module Player.Overlay.All.GroundFriction.Types ( GroundFrictionOverlayData(..) ) where import Window.Graphics data GroundFrictionOverlayData = GroundFrictionOverlayData { _sprite :: Sprite }
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/15f2569e7d0e481c2e28c0ca3a5e72d2c049b667/src/Player/Overlay/All/GroundFriction/Types.hs
haskell
module Player.Overlay.All.GroundFriction.Types ( GroundFrictionOverlayData(..) ) where import Window.Graphics data GroundFrictionOverlayData = GroundFrictionOverlayData { _sprite :: Sprite }
0484ec5e4478075157e374cac038daaa8df66ae36396662269d10c0938f0e103
clojure-interop/aws-api
AmazonSimpleWorkflowAsyncClientBuilder.clj
(ns com.amazonaws.services.simpleworkflow.AmazonSimpleWorkflowAsyncClientBuilder "Fluent builder for AmazonSimpleWorkflowAsync. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.simpleworkflow AmazonSim...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.simpleworkflow/src/com/amazonaws/services/simpleworkflow/AmazonSimpleWorkflowAsyncClientBuilder.clj
clojure
(ns com.amazonaws.services.simpleworkflow.AmazonSimpleWorkflowAsyncClientBuilder "Fluent builder for AmazonSimpleWorkflowAsync. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.simpleworkflow AmazonSim...
d1c7f5612af5ae09ed0dd034d3e323dc1563a052b5fee6d407930e408f3cfcc0
LCBH/UKano
proveriftotex.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/LCBH/UKano/13c046ddaca48b45d3652c3ea08e21599e051527/proverif2.01/src/proveriftotex.ml
ocaml
Parse the arguments Set the front-end depending on the extension of the file Pi is the default when no extension is recognized for compatibility reasons
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
61dfdffb93bd27b1b525a3e4d6f89ec23173dda75e98edeee72654cb52b394bf
let-def/menhir
concreteSyntax.mli
(**************************************************************************) (* *) Menhir (* *) , INRIA Ro...
null
https://raw.githubusercontent.com/let-def/menhir/e8ba7bef219acd355798072c42abbd11335ecf09/src/concreteSyntax.mli
ocaml
************************************************************************ et en Automatique. All rig...
Menhir , INRIA Rocquencourt , PPS , Université Paris Diderot Copyright 2005 - 2008 Institut National de Recherche en Informatique under the terms of the Q Public License versi...
0faf197855ed05554e0a6101a17ba15006a50868386bac0a8d3014ff49d1cc07
processone/xmpp
jid.erl
%%%------------------------------------------------------------------- @author < > %%% @doc JID processing library %%% @end Created : 24 Nov 2015 by < > %%% %%% Copyright ( C ) 2002 - 2023 ProcessOne , SARL . All Rights Reserved . %%% Licensed under the Apache License , Version 2.0 ( the " License " )...
null
https://raw.githubusercontent.com/processone/xmpp/3e0f4b07af708718cf891ca409c0819e60606cf9/src/jid.erl
erlang
------------------------------------------------------------------- @doc @end 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, ei...
@author < > JID processing library Created : 24 Nov 2015 by < > Copyright ( C ) 2002 - 2023 ProcessOne , SARL . 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(jid). -export([st...
0f5a8e4d13e375b51420ec7772ef1042de629c64ddd2b84bba0db938895659f0
austinhaas/kanren
rKanren_macros.clj
(ns pettomato.kanren.rKanren.rKanren-macros (:require [pettomato.kanren.rKanren.lvar :refer [lvar]] [pettomato.kanren.rKanren.rank :refer [get-rank min-rank inc-rank]] [pettomato.kanren.cKanren.cKanren-api :refer [reify-var]] [pettomato.kanren.rKanren.rKanren :refer [mplus bind take* empty-pkg]] [petto...
null
https://raw.githubusercontent.com/austinhaas/kanren/f55b68279ade01dbaae67a074ea3441370a27f9e/src/pettomato/kanren/rKanren/rKanren_macros.clj
clojure
(ns pettomato.kanren.rKanren.rKanren-macros (:require [pettomato.kanren.rKanren.lvar :refer [lvar]] [pettomato.kanren.rKanren.rank :refer [get-rank min-rank inc-rank]] [pettomato.kanren.cKanren.cKanren-api :refer [reify-var]] [pettomato.kanren.rKanren.rKanren :refer [mplus bind take* empty-pkg]] [petto...
5759f29eaf8cfc0e5ba7e879308fd46e510339ab3c0e5f72cd9baedec9fa99c1
fare/fare-scripts
rescript.lisp
-*- mode : Lisp ; coding : utf-8 -*- ;; ᴸᴀᵀᴇᵡ (defpackage :fare-scripts/rescript (:use :common-lisp :uiop) (:export #:superscriptize #:subscriptize #:upsidedown #:leftright #:mathbb #:smallcaps #:fbchange)) (in-package :fare-scripts/rescript) (defun make-script-table (original translated &key reversible) (lo...
null
https://raw.githubusercontent.com/fare/fare-scripts/1ddae8814c0bc26c24bf1f48db6ff3eb3162ea5d/rescript.lisp
lisp
coding : utf-8 -*- ᴸᴀᵀᴇᵡ " " ; nah: ԁг ") ; асеіјոοрԛυѵѕԝхуAВСЕКӀЈМОРԚЅТѴԜХҮ
(defpackage :fare-scripts/rescript (:use :common-lisp :uiop) (:export #:superscriptize #:subscriptize #:upsidedown #:leftright #:mathbb #:smallcaps #:fbchange)) (in-package :fare-scripts/rescript) (defun make-script-table (original translated &key reversible) (loop :with h = (make-hash-table :test 'equal) ...
216bc06ee0f5cb6ce921cc5e4375d16636082a2964c0f3debdc7b07c3e52e65f
manuel-serrano/bigloo
pdgencoder.scm
;*=====================================================================*/ ;* .../prgm/project/bigloo/api/phidget/src/Llib/pdgencoder.scm */ ;* ------------------------------------------------------------- */ * Author : * / * Creation : Tue Mar 27 ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/api/phidget/src/Llib/pdgencoder.scm
scheme
*=====================================================================*/ * .../prgm/project/bigloo/api/phidget/src/Llib/pdgencoder.scm */ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Phidget Encoders ...
* Author : * / * Creation : Tue Mar 27 09:11:24 2012 * / * Last change : Mon Sep 2 11:15:36 CEST 2013 * / * Copyright : 2013 * / (module __phidget_encoder ...
10b553b20155e0b878ef9dee2ad414fc5f170fb10822400911faa98aee183704
ygmpkk/house
KeyFocus.hs
-- #hide ----------------------------------------------------------------------------- -- | Module : KeyFocus Copyright : ( c ) 2002 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- ---------------------------------------------------------...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/ObjectIO/Graphics/UI/ObjectIO/KeyFocus.hs
haskell
#hide --------------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- The items of the window that can have the keyboard input f...
Module : KeyFocus Copyright : ( c ) 2002 module Graphics.UI.ObjectIO.KeyFocus where import Graphics.UI.ObjectIO.CommonDef import Data.List(find) data KeyFocus = KeyFocus Case ( Just nr ): the item with ( wItemNr nr ) has the keyboard input focus ; Nothing : no item has focus } data FocusI...
681633517e9203a0ebee79f2e165ae8ed605e93a57bc606d67e23dea64a3f060
ocamllabs/ocaml-modular-implicits
ocamlcp.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/tools/ocamlcp.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1998 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 . open Printf let compargs = ref ([] : s...
d352b6de6ddfc5a7d4788b07a22243bd3de07d246a0afe93187eefa03757ca90
SecPriv/webspec
smtlib.mli
(********************************************************************************) Copyright ( c ) 2021 (* *) (* Permission is hereby granted, free of charge, to any person obtaining a *) (* c...
null
https://raw.githubusercontent.com/SecPriv/webspec/9f500bd85400551d8bf0e117ac5aa57088f9bc20/compiler/src/smtlib.mli
ocaml
****************************************************************************** Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), th...
Copyright ( c ) 2021 to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABI...
083b985817758f3e5528863a3f005fff1f2c13a78074377acab022e4df3dd025
PrecursorApp/precursor
rollbar.cljs
(ns frontend.analytics.rollbar) (defn init [cust-uuid cust-email] (js/Rollbar.configure #js {:payload #js {:person #js {:email cust-email :id cust-uuid}}}))
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src-cljs/frontend/analytics/rollbar.cljs
clojure
(ns frontend.analytics.rollbar) (defn init [cust-uuid cust-email] (js/Rollbar.configure #js {:payload #js {:person #js {:email cust-email :id cust-uuid}}}))
013aa8f6308c2fef8ed89e56093112ddd04381aa2f25b40c8b662e2cdc71c4f7
erlang-ls/erlang_ls
els_completion_provider.erl
-module(els_completion_provider). -behaviour(els_provider). -include("els_lsp.hrl"). -include_lib("kernel/include/logger.hrl"). -export([ handle_request/1, trigger_characters/0 ]). %% Exported to ease testing. -export([ bifs/2, keywords/2 ]). -type options() :: #{ trigger := binary(), docum...
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/8bc209de87d7b1c984ac3eb93a825184d379ae84/apps/els_lsp/src/els_completion_provider.erl
erlang
Exported to ease testing. ============================================================================== els_provider functions ============================================================================== completion from the string. ============================================================================== ===...
-module(els_completion_provider). -behaviour(els_provider). -include("els_lsp.hrl"). -include_lib("kernel/include/logger.hrl"). -export([ handle_request/1, trigger_characters/0 ]). -export([ bifs/2, keywords/2 ]). -type options() :: #{ trigger := binary(), document := els_dt_document:item()...
a197ff8db8cea6a4329d8a2a3d76cc94c08109205cabcf55885b2887f9dfc714
jamis/rtc-ocaml
RTCComps.ml
type t = { t : float; shape : RTCShape.t; trail : RTCShape.t list; point : RTCTuple.t; under_point : RTCTuple.t; eyev : RTCTuple.t; normalv : RTCTuple.t; reflectv : RTCTuple.t; inside : bool; n1 : float; n2 : f...
null
https://raw.githubusercontent.com/jamis/rtc-ocaml/f5ba04e874ef0b54d100cdabfe9a67c2b80a643f/src/RTCComps.ml
ocaml
total internal reflection if n1 > n2
type t = { t : float; shape : RTCShape.t; trail : RTCShape.t list; point : RTCTuple.t; under_point : RTCTuple.t; eyev : RTCTuple.t; normalv : RTCTuple.t; reflectv : RTCTuple.t; inside : bool; n1 : float; n2 : f...
193e053413d0fc9e61bd144a9500feef015ef81a8b45d4874b530990e990ad7d
achirkin/vulkan
VK_EXT_calibrated_timestamps.hs
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_HADDOCK not - home # {-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # {-# LANGUAGE MagicHash #-} {-# LANGUAGE PatternSynonyms #-} {-# LA...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_EXT_calibrated_timestamps.hs
haskell
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE PatternSynonyms # # LANGUAGE Strict # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # | supported: @vulkan@ contact: @Daniel Rakos @dra...
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_HADDOCK not - home # # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # module Graphics.Vulkan.Ext.VK_EXT_calibrated_timestamps * Vulkan extension : VkCalibratedTimestampInfoEXT, VkStructureType(..), VkTimeDomainEXT(..), ...
4f3fd700f6fb1d85cb49737c1c5d7a239d56299088b71b84e2e8bbde2a310d7d
nuvla/ui
subs.cljs
(ns sixsq.nuvla.ui.notifications.subs (:require [re-frame.core :refer [reg-sub]] [sixsq.nuvla.ui.notifications.spec :as spec])) ;; ;; notification-method ;; (reg-sub ::notification-method ::spec/notification-method) (reg-sub ::notification-methods (fn [db] (::spec/notification-methods db)...
null
https://raw.githubusercontent.com/nuvla/ui/0cb71cb6159eeae5ee431a3503e979a261b2d066/code/src/cljs/sixsq/nuvla/ui/notifications/subs.cljs
clojure
notification-method subscription configuration subscription Validation Is the form valid? Should the form be validated?
(ns sixsq.nuvla.ui.notifications.subs (:require [re-frame.core :refer [reg-sub]] [sixsq.nuvla.ui.notifications.spec :as spec])) (reg-sub ::notification-method ::spec/notification-method) (reg-sub ::notification-methods (fn [db] (::spec/notification-methods db))) (reg-sub ::add-notifica...
68f94406b30966c5ab588a7776b911487e12fd54e2c249e59ec252a0436d5e07
erlang/corba
orber_ifr_repository.erl
%%-------------------------------------------------------------------- %% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2016 . 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 ...
null
https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/orber/src/orber_ifr_repository.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...
Copyright Ericsson AB 1997 - 2016 . 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(orber_ifr_repository). -export(['_get_def_kind'/1, destroy/1, lookup/2, contents/3, lookup_name/5, ...
124f03c0be76a8fc3b41dfa67fc2e3a7888f4d9bfa822ec81c424af9582b0a48
lokedhs/mastodon
mastodon.lisp
(in-package :mastodon) (defmacro assert-format (regexp value) (let ((value-sym (gensym))) `(let ((,value-sym ,value)) (unless (cl-ppcre:scan ,regexp ,value-sym) (error "Illegal format for ~s" ,value-sym))))) (defun json-request (url &key (method :get) additional-headers parameters) (multiple-v...
null
https://raw.githubusercontent.com/lokedhs/mastodon/ccef44a47702bae5336f1c41c4dd3ff07caa9b18/src/mastodon.lisp
lisp
(in-package :mastodon) (defmacro assert-format (regexp value) (let ((value-sym (gensym))) `(let ((,value-sym ,value)) (unless (cl-ppcre:scan ,regexp ,value-sym) (error "Illegal format for ~s" ,value-sym))))) (defun json-request (url &key (method :get) additional-headers parameters) (multiple-v...
b1d2637ba77c3d5ff70ea440276335a2f4d4d5550c728f6f8b20602b2b721eda
SamirTalwar/advent-of-code
AOC_05_2.hs
{-# OPTIONS -Wall #-} # LANGUAGE ParallelListComp # import qualified Data.Map as Map import Helpers.Map import Helpers.Parse import Text.Parsec hiding (Line) data Coordinate = Coordinate Int Int deriving (Eq, Ord, Show) data Line = Line Coordinate Coordinate deriving (Show) main :: IO () main = do input <- pa...
null
https://raw.githubusercontent.com/SamirTalwar/advent-of-code/9c1c9afbe0a61595f0e817536f399d0dbf78b6a0/2021/AOC_05_2.hs
haskell
# OPTIONS -Wall #
# LANGUAGE ParallelListComp # import qualified Data.Map as Map import Helpers.Map import Helpers.Parse import Text.Parsec hiding (Line) data Coordinate = Coordinate Int Int deriving (Eq, Ord, Show) data Line = Line Coordinate Coordinate deriving (Show) main :: IO () main = do input <- parseInput let allCoor...
15d8f110d9df569361110ad39157bf38adea54110a44457840843ca10417b73f
tek/ribosome
ProjectNames.hs
module Ribosome.App.ProjectNames where import Path (parseRelDir) import Ribosome.App.Data (ModuleName (ModuleName), ProjectName (ProjectName), ProjectNames (..)) import Ribosome.Host.Text (pascalCase) parse :: IsString err => String -> Either err ProjectNames parse raw = do let name = ProjectName (toText...
null
https://raw.githubusercontent.com/tek/ribosome/a676b4f0085916777bfdacdcc761f82d933edb80/packages/app/lib/Ribosome/App/ProjectNames.hs
haskell
module Ribosome.App.ProjectNames where import Path (parseRelDir) import Ribosome.App.Data (ModuleName (ModuleName), ProjectName (ProjectName), ProjectNames (..)) import Ribosome.Host.Text (pascalCase) parse :: IsString err => String -> Either err ProjectNames parse raw = do let name = ProjectName (toText...
1f0e3ba6ce24bc7cb8b4ff83c63f447d97b7d2c2b573d06b5cf1e1840265d2e5
thephoeron/quipper-language
QData.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== # LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVa...
null
https://raw.githubusercontent.com/thephoeron/quipper-language/15e555343a15c07b9aa97aced1ada22414f04af6/quipper/Quipper/QData.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== # OPTIONS -fcontext-stack=50 # -O0 is needed for this file, because -O1 triggers a compiler bug in # OPTIONS_GHC -O0 # | This module p...
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the # LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # ghc 7.2.2 ( ...
d7944cb0b55c3339f997cc51662e71187d019d504430b9c4a6790b8ddcfbabca
justone/brisk
test_pod.clj
#!/usr/bin/env bb (ns test-pod (:require [babashka.pods :as pods] [babashka.process :as process] [clojure.edn :as edn] [clojure.string :as string])) (def pod-cmd ; ["clojure" "-M" "-m" "brisk.main"] ["./brisk"]) (pods/load-pod pod-cmd) (require '[pod.brisk :as brisk]) (def...
null
https://raw.githubusercontent.com/justone/brisk/333d083466d7466d976fa9721d69ef73f0b47e1c/test_pod.clj
clojure
["clojure" "-M" "-m" "brisk.main"]
#!/usr/bin/env bb (ns test-pod (:require [babashka.pods :as pods] [babashka.process :as process] [clojure.edn :as edn] [clojure.string :as string])) (def pod-cmd ["./brisk"]) (pods/load-pod pod-cmd) (require '[pod.brisk :as brisk]) (defn test-pod [] (let [sample-data {:p...
c9a92d6e8746b8806cf476f11742ce4237c8b617cbfda7d094be6aac5ecf1f1a
kelamg/HtDP2e-workthrough
ex508.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex508) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Accumulators/ex508.rkt
racket
about the language level of this file in a form that our tools can easily process. [List-of 1String] -> Image renders a string as an image for the editor An Editor is a structure: (make-editor [List-of 1String] [List-of 1String]) an interactive editor, (reverse p) corresponds to the text to the left of the cu...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex508) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/image) (require racket/list) (define F...
b3e9b300144f73b1a77926a4dd542cd8f0a07344b0f3555cda0787caef02ba0c
rtrusso/scp
badvshi.scm
(define x (make-vector 3 #\a)) (display (vector-set! x 3 #\b)) (newline)
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/tests/badvshi.scm
scheme
(define x (make-vector 3 #\a)) (display (vector-set! x 3 #\b)) (newline)
b01d394f38860fd89fdfdac4c6fc3fe70fe54d7bc6d331fda8da99f331bca0bf
huangjs/cl
mat.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/mat.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; this is the m...
(in-package :maxima) (macsyma-module mat) (declare-top (special *ech* *tri* $algebraic $multiplicities equations mul* $dispflag $nolabels errrjfflag *det* xm* xn* varlist ax linelable sol)) (defvar *row*) (defvar *col*) (defvar *colinv*) (defmvar $globalsolve nil) (defmvar $sparse nil) (defmvar $b...
239b73b302c64921b0859208159bc041748c7096e80484dd9a380bfc6ab6e592
sheyll/b9-vm-image-builder
B9Extras.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE ExplicitNamespaces # | Extensions to ' Data . ConfigFile ' and utility functions for dealing with -- configuration in general and reading/writing files. module Data.ConfigFile.B9Extras ( addSectionCP, setShowCP, setCP, r...
null
https://raw.githubusercontent.com/sheyll/b9-vm-image-builder/4d2af80d3be4decfce6c137ee284c961e3f4a396/src/lib/Data/ConfigFile/B9Extras.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DeriveDataTypeable # configuration in general and reading/writing files. * Aliases for functions and types from 'ConfigParser' in 'Data.ConfigFile' | An alias for 'ConfigParser' | An alias for 'setshow'. | An alias for 'set'. | An alias for 'get'. | An alias for 'add_s...
# LANGUAGE ExplicitNamespaces # | Extensions to ' Data . ConfigFile ' and utility functions for dealing with module Data.ConfigFile.B9Extras ( addSectionCP, setShowCP, setCP, readCP, mergeCP, toStringCP, sectionsCP, emptyCP, type CPGet, type CPOptionSpec, type CPSectionSpec,...
dccd6ff90211d965f5f84ddeb3d43a597a913f40855a2e97648396460edcb98b
VisionsGlobalEmpowerment/webchange
state.cljs
(ns webchange.lesson-builder.widgets.confirm.state (:require [re-frame.core :as re-frame] [re-frame.std-interceptors :as i])) (def path-to-db :lesson-builder/confirm) (re-frame/reg-sub path-to-db (fn [db] (get db path-to-db))) ;; confirm window (def confirm-window-key :confirm-window) (defn- get-...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/0e81c9c15f61895faddf263819bc0de71f48628e/src/cljs/webchange/lesson_builder/widgets/confirm/state.cljs
clojure
confirm window message window
(ns webchange.lesson-builder.widgets.confirm.state (:require [re-frame.core :as re-frame] [re-frame.std-interceptors :as i])) (def path-to-db :lesson-builder/confirm) (re-frame/reg-sub path-to-db (fn [db] (get db path-to-db))) (def confirm-window-key :confirm-window) (defn- get-confirm-window [...
900fe8adace2997f09c7328d39e78a395dc078b3725abb914d45524f33094499
strymonas/strymonas-ocaml
stream_cooked.mli
(* More convenient interface for the stream library *) module Raw : (module type of Stream_raw) type 'a cde = 'a Raw.cde (* Abstract type of code values *) type 'a tbase = 'a Raw.tbase (* Base types *) type 'a stream = 'a Raw.stream type 'a cstream = 'a cde stream (* Abstract type of streams, c...
null
https://raw.githubusercontent.com/strymonas/strymonas-ocaml/b45ab87c62e5bb845ff4a989064f30ed6b468f6d/lib/stream_cooked.mli
ocaml
More convenient interface for the stream library Abstract type of code values Base types Abstract type of streams, carrying base-type values Raw streams are more general, and permit collections su...
module Raw : (module type of Stream_raw) type 'a stream = 'a Raw.stream val of_arr : 'a array cde -> 'a cstream val iota : int cde -> int cstream val from_to : ?step:int -> int cde -> int cde -> int cstream We do n't provide unfold here : use the Raw interface module Desc : (Pk_coll.desc with type 'a cd...
d054c4dc602a19ff2deb4006a4dc07e225e29a8f7512c162c29f1c49b6420f91
xxyzz/SICP
Exercise_5_47.rkt
#lang racket/base (define (compile-procedure-call target linkage) (let ([primitive-branch (make-label 'primitive-branch)] [compiled-branch (make-label 'compiled-branch)] [compound-branch (make-label 'compound-branch)] ;; *** [after-call (make-label 'after-call)]) (let ([compiled-linkage ...
null
https://raw.githubusercontent.com/xxyzz/SICP/e26aea1c58fd896297dbf5406f7fcd32bb4f8f78/5_Computing_with_Register_Machines/5.5_Compilation/Exercise_5_47.rkt
racket
*** *** *** *** *** add compapp to make-machine's registers test
#lang racket/base (define (compile-procedure-call target linkage) (let ([primitive-branch (make-label 'primitive-branch)] [compiled-branch (make-label 'compiled-branch)] [after-call (make-label 'after-call)]) (let ([compiled-linkage (if (eq? linkage 'next) after-call linkage)]) (...
f83a18a13408b059ffb0d2a9171759761e33fbade59945154d2960eb0fad9960
haskell-hvr/regex-tdfa
Lazy.hs
| Module : Text . Regex . TDFA.Text . Lazy Copyright : 2007 - 2009 , shelarcy 2012 License : BSD - style ( see the file LICENSE ) This modules provides ' RegexMaker ' and ' RegexLike ' instances for using ' Text ' with the backend ( " Text . Regex . TDFA.NewDFA.Engine " and " Text . ...
null
https://raw.githubusercontent.com/haskell-hvr/regex-tdfa/a475bd77855d400527eaaefbfb8bbc559703fd50/lib/Text/Regex/TDFA/Text/Lazy.hs
haskell
| @since 1.3.1 | @since 1.3.1 | @since 1.3.1 | @since 1.3.1 # SPECIALIZE myMatchTest :: Regex -> L.Text -> Bool # | @since 1.3.1 | @since 1.3.1 ^ Flags (summed together) ^ Flags (summed together) ^ The regular expression to compile ^ Returns: the compiled regular expression | @since 1.3.1 ^ Compiled regular...
| Module : Text . Regex . TDFA.Text . Lazy Copyright : 2007 - 2009 , shelarcy 2012 License : BSD - style ( see the file LICENSE ) This modules provides ' RegexMaker ' and ' RegexLike ' instances for using ' Text ' with the backend ( " Text . Regex . TDFA.NewDFA.Engine " and " Text . ...
dc4ab703d746e7eee9bbbd1062c7b957434a899b65b80489ff007fd47a6bc108
GaloisInc/daedalus
Numeric.hs
module Daedalus.RTS.Numeric ( UInt(..), UIntRep , SInt(..), SIntRep , Numeric(..) , Arith(..) , Literal , SizeType -- * Conversions , fromUInt, uint8, toUInt , fromSInt, sint8, toSInt , cvtNum -- ** Checked , cvtNumToFloatingMaybe , cvtFloatingToNumMaybe , cvtNumMaybe -- ** Float...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/3f180d29441960e35386654ec79a2b205bddc157/rts-hs-data/src/Daedalus/RTS/Numeric.hs
haskell
* Conversions ** Checked ** Floating ** Sizes * Bit operations kind ------------------------------------------------------------------------------ Constraints used for normalizing values which would result in equivalent but much messier types. # OVERLAPPING # # OVERLAPPING # # OVERLAPPING # # OVERLAPPING # # OVE...
module Daedalus.RTS.Numeric ( UInt(..), UIntRep , SInt(..), SIntRep , Numeric(..) , Arith(..) , Literal , SizeType , fromUInt, uint8, toUInt , fromSInt, sint8, toSInt , cvtNum , cvtNumToFloatingMaybe , cvtFloatingToNumMaybe , cvtNumMaybe , wordToFloat, floatToWord , wordToDouble, doubleT...
c1dea6d2aac07e94985ee168abebf83240c75da18931d0702ebbefb7400b0b30
Eonblast/Scalaxis
comm_acceptor.erl
2008 - 2011 Zuse Institute Berlin 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 di...
null
https://raw.githubusercontent.com/Eonblast/Scalaxis/10287d11428e627dca8c41c818745763b9f7e8d4/src/comm_layer/comm_acceptor.erl
erlang
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 language gov...
2008 - 2011 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(comm_acceptor). -author(''). -vsn('$Id$'). -export([start_link/1, init/2, check_config/0]). -spec start_lin...
b472465a48ad8ec586c37a0d8747f14f5b4dfb2e88698b4a5d69dd4fd501fb28
ryanpbrewster/haskell
closest_pair.hs
-- closest_pair.hs - You will be given the x / y co - ordinates of several locations . You will be - laying out 1 cable between two of these locations . In order to minimise the - cost , your task is to find the shortest distance between a pair of - locations , so that pair can be chosen for the cable insta...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/CodeEval/closest_pair.hs
haskell
closest_pair.hs
- You will be given the x / y co - ordinates of several locations . You will be - laying out 1 cable between two of these locations . In order to minimise the - cost , your task is to find the shortest distance between a pair of - locations , so that pair can be chosen for the cable installation . - -...
90aea7bf0f6dd8df8b7f6ee22c63d90015070395f7cfb822d8a4ab6a20ea8999
SovereignShop/codenames
db.cljc
(ns codenames.db (:require [codenames.constants.ui-idents :as idents] [codenames.constants.ui-views :as views] [codenames.constants.ui-splits :as splits] [codenames.constants.ui-tabs :as tabs] [datascript.core :as d] [swig.core :as swig :refer [view tab split window full-schema]] [taoensso.timbre...
null
https://raw.githubusercontent.com/SovereignShop/codenames/0a3d5f52b0a704341801bb7125b054a4323bcf19/src/cljc/codenames/db.cljc
clojure
(ns codenames.db (:require [codenames.constants.ui-idents :as idents] [codenames.constants.ui-views :as views] [codenames.constants.ui-splits :as splits] [codenames.constants.ui-tabs :as tabs] [datascript.core :as d] [swig.core :as swig :refer [view tab split window full-schema]] [taoensso.timbre...
0159363cb74e5d9b9f1ceca1e0add92a80d957c892b6e3a8aa47ce796d05f351
Quickscript-Competiton/July2020entries
format-selection.rkt
#lang racket/base (require quickscript racket/string) Author : -hhh License : [ MIT]( / licenses / MIT ) ;;; From: -Competiton/July2020entries/issues/3 (script-help-string "Formats the selected text to wrap around a 78 character limit. It is able to detect comments. [demo](-hhh/9577db5c936161546c1a730028491145#...
null
https://raw.githubusercontent.com/Quickscript-Competiton/July2020entries/b6406a4f021671bccb6b464042ba6c91221286fe/scripts/format-selection.rkt
racket
From: -Competiton/July2020entries/issues/3
#lang racket/base (require quickscript racket/string) Author : -hhh License : [ MIT]( / licenses / MIT ) (script-help-string "Formats the selected text to wrap around a 78 character limit. It is able to detect comments. [demo](-hhh/9577db5c936161546c1a730028491145#gistcomment-3366757)") (define prefix-rx #px"^...
f4bc49880f58f9f696d91c1b16ceea286034a9ac57217749bcdd5c94e5cd7e1b
v-kolesnikov/sicp
1_24_test.clj
(ns sicp.chapter01.1-24-test (:require [clojure.test :refer :all] [sicp.test-helper :refer :all] [sicp.chapter01.1-24 :refer :all] [sicp.common :refer [avg]])) (deftest test-search-for-primes (let [searched-primes (map #(search-for-primes % 3) [1000 10000 100000 1000000 ...
null
https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/test/sicp/chapter01/1_24_test.clj
clojure
(ns sicp.chapter01.1-24-test (:require [clojure.test :refer :all] [sicp.test-helper :refer :all] [sicp.chapter01.1-24 :refer :all] [sicp.common :refer [avg]])) (deftest test-search-for-primes (let [searched-primes (map #(search-for-primes % 3) [1000 10000 100000 1000000 ...
d133314d44c0d3b1a8abd92d03152df93de5aee206e44af630cb0bcf5910238c
cpsc411/cpsc411-book
assignment-mlang.rkt
#lang racket/base (require (except-in scribble/manual/lang tech deftech compile racketgrammar* date? date url) (for-label racket) scribble/example "lib.rkt" cpsc411/compiler-lib) (provide (all-from-out scribble/manual/lang) (for-label (all-from-out racket)) (all-from-out scribble/example)...
null
https://raw.githubusercontent.com/cpsc411/cpsc411-book/6998b668253d0f95db1fd2123005ac3d926bc161/assignment/assignment-mlang.rkt
racket
#lang racket/base (require (except-in scribble/manual/lang tech deftech compile racketgrammar* date? date url) (for-label racket) scribble/example "lib.rkt" cpsc411/compiler-lib) (provide (all-from-out scribble/manual/lang) (for-label (all-from-out racket)) (all-from-out scribble/example)...
da73fb489928cece3fca087d158d4cf3c91352b349096630c8f5a66c03705459
ostinelli/syn
syn_test_event_handler_resolution.erl
%% ========================================================================================================== Syn - A global Process Registry and Process Group manager . %% The MIT License ( MIT ) %% Copyright ( c ) 2015 - 2022 < > and Neato Robotics , Inc. %% %% Permission is hereby granted, free of charge, t...
null
https://raw.githubusercontent.com/ostinelli/syn/0993c938592c6f8a80f6b88bad9168880dde1bf3/test/syn_test_event_handler_resolution.erl
erlang
========================================================================================================== Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, s...
Syn - A global Process Registry and Process Group manager . The MIT License ( MIT ) Copyright ( c ) 2015 - 2022 < > and Neato Robotics , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or ...
959a191152cf38d8214cff5847442efd46780ddaae0aaf4ddb5ee29893854023
pmatiello/mockfn
doo_runner.cljs
(ns mockfn.doo-runner (:require [doo.runner :refer-macros [doo-tests]] mockfn.examples.basic-usage mockfn.macros-test mockfn.matchers-test mockfn.mock-test)) (enable-console-print!) (doo-tests 'mockfn.examples.basic-usage 'mockfn.macros-test 'moc...
null
https://raw.githubusercontent.com/pmatiello/mockfn/f8940ae354033bb600b788f7e0a9cf6abf2146da/test/mockfn/doo_runner.cljs
clojure
(ns mockfn.doo-runner (:require [doo.runner :refer-macros [doo-tests]] mockfn.examples.basic-usage mockfn.macros-test mockfn.matchers-test mockfn.mock-test)) (enable-console-print!) (doo-tests 'mockfn.examples.basic-usage 'mockfn.macros-test 'moc...
5a759d9d358cdb7fcce681c0526cbc12c9de271557cfb05154871e0bda6208df
OCamlPro/ocaml-solidity
solidity_postprocess.ml
(**************************************************************************) (* *) Copyright ( c ) 2021 OCamlPro & Origin Labs (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/ocaml-solidity/bbfee4f3a5257daf731c88c73edee8e1bfe18df0/src/solidity-typechecker/solidity_postprocess.ml
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2021 OCamlPro & Origin Labs Public License version 2.1 , with the special exception on linking open Solidity_common open Solidity_ast open Solidity_checker_TYPES open Solidity_visitor open Solidity_postcheck_utils open Solidity_exceptions let checkDetails (e...
d64fe44f26df58c0a17d3cfc38280c272e49a0756544579685ddbad6330576ec
jakemcc/sicp-study
ex3_36.clj
; I'm not going to do this since I've implemented this is a significantly ; different way than the book.
null
https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section3.3/src/ex3_36.clj
clojure
I'm not going to do this since I've implemented this is a significantly different way than the book.
87459809d086b0eb2895d73d7b80024425da9e9d56a9e4892b313a0ccbebb495
open-telemetry/opentelemetry-erlang
opentelemetry_api_experimental.erl
-module(opentelemetry_api_experimental). -export([]).
null
https://raw.githubusercontent.com/open-telemetry/opentelemetry-erlang/49f0dd2294e16af27700b6e9c528cbcb76c98e0f/apps/opentelemetry_api_experimental/src/opentelemetry_api_experimental.erl
erlang
-module(opentelemetry_api_experimental). -export([]).
de277666b6d9c650cf7d29362c68acca1bb4a2f4d3d3ea8dc7f633d6cf450b63
onedata/op-worker
couchbase_changes_stream_mock.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% Mock of couchbase_changes_stream u...
null
https://raw.githubusercontent.com/onedata/op-worker/b09f05b6928121cec4d6b41ce8037fe056e6b4b3/test_distributed/couchbase_changes_stream_mock.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Mock of couchbase_changes_stream used in tests of harvesting. It allows to simulate behaviour of couchbase_changes_stream. @end -----------------------------------------...
@author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(couchbase_changes_stream_mock). -author("Jakub Kudzia"). -behaviour(gen_server). -include("global_definitions.hrl"). -include_lib("ctool/include/logging.hrl"). -include_lib("cluster_worker...
b2c8bd932a75bdd8a4027b64a80d3d655b87a4038e697d49dd720dfcbc76d708
herd/herdtools7
archDump.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/3c6b61c5e077cd6efb911f15cbe0cd110fa49ecb/lib/archDump.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2021 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
a07d320d6e65077e93cc82124fce34af08ccca0aaa5cdfe1feb647bfba1ee434
systemd/ejournald
ejournald.erl
Copyright 2010 - 2014 , Travelping GmbH < > % 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 restriction , including without limitation % the rights to use, copy, modify, merge, pu...
null
https://raw.githubusercontent.com/systemd/ejournald/ea17dddc2bc99578222715722951bb9d98a26307/src/ejournald.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright notice...
Copyright 2010 - 2014 , Travelping GmbH < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KI...
3a934374da815b3fe1fbae7affc373d1b630e2bc73bb96e931720652ee8ca0d1
soegaard/web-tutorial
model.rkt
#lang racket/base ;;; ;;; MODEL ;;; ;; This file contains the underlying model - i.e. the database. ;; (provide ;; Entry (except-out (schema-out entry) make-entry) register-entry ; create-entry get-entry get-entry/url ; get youngest entry with a given url ~entry ; format entry as a string ; in...
null
https://raw.githubusercontent.com/soegaard/web-tutorial/511a03410a440ed32475484ae93483f4ddd6656c/listit4/app-racket-stories/model.rkt
racket
MODEL This file contains the underlying model - i.e. the database. Entry create-entry get youngest entry with a given url format entry as a string insert-entry ; insert entry into database increase score of entry decrease score of entry top entries (highest scores) page of entries page of entries,...
#lang racket/base (provide (except-out (schema-out entry) make-entry) register-entry get-entry is the entry less than a month old ? PAGE-LIMIT (except-out (schema-out user) make-user) create-user get-user authenticate-user change-user-about Github users and state (except-out (schema-out github-user) m...
aa873527cc781ea37f4beab1749efa3a7e51db4596f4eb886c0963ed5810d224
nokijp/pietc
Runtime.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module Language.Piet.Internal.Runtime ( runtimeAssembly , declareFunctions , resetStack , push , pop , add , subtract , multiply , divide , mod , not , greater , pointer , switch , duplicate , rol...
null
https://raw.githubusercontent.com/nokijp/pietc/da6699c286a7b428b01211c8e467ce4ec1f7967e/src/Language/Piet/Internal/Runtime.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module Language.Piet.Internal.Runtime ( runtimeAssembly , declareFunctions , resetStack , push , pop , add , subtract , multiply , divide , mod , not , greater , pointer , switch , duplicate , roll , inNumber , inChar , outNu...
6ec0f3f168c611b74b54b10bb6f9d42e9b425c35916a77183231a053403a706d
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Duckling.Volume.DE...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Volume/DE/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE LambdaCase # module Duckling.Volume.DE.Rules ( rules ) where import Data.Text (Text) import Prelude import Data.String import Duckling.Dimensions.Types import Duckling.Types import Duckling.Regex.Types import Duckling.Volume.Helpers import Duckling.Nu...
fb7755814ae4202d49b39fb8d3afa5f4448764e706d548312c92ef6f5c14085e
babashka/babashka
xml-example.clj
; let's build up a little data structure to play with (def pet-store-sexp [:pet-store [:family [:owners [:name "Terry Smith"] [:name "Sam Smith"] [:phone "555-1212"]] [:animals [:animal {:type "dog"} "Sparky"]]] [:family [:owners [:name "Pat Jones"] [:phone "555-2121"]...
null
https://raw.githubusercontent.com/babashka/babashka/a542227442f71ec127c9c49ecc704d40f75b5fe9/examples/xml-example.clj
clojure
let's build up a little data structure to play with with a couple of quick helper functions... if we get (presumably) a root element, wrap it in a vector so we can still filter by its tag we can do things like...
(def pet-store-sexp [:pet-store [:family [:owners [:name "Terry Smith"] [:name "Sam Smith"] [:phone "555-1212"]] [:animals [:animal {:type "dog"} "Sparky"]]] [:family [:owners [:name "Pat Jones"] [:phone "555-2121"]] [:animals [:animal {:type "hamster"} "Olive...
ed2a1b5e84f82c7a5571da8e970aba9042337e0ff3d1c953066cc50af6106cd6
circuithub/haskell-gerber
InterpolationMode.hs
module Gerber.Evaluate.GraphicsState.InterpolationMode where data InterpolationMode = Linear | CircularCCW | CircularCW deriving ( Eq, Ord, Read, Show, Enum, Bounded )
null
https://raw.githubusercontent.com/circuithub/haskell-gerber/c1ef0273e9dcf98d731a63ffc6aeb1b4c884bd8d/gerber/lib/Gerber/Evaluate/GraphicsState/InterpolationMode.hs
haskell
module Gerber.Evaluate.GraphicsState.InterpolationMode where data InterpolationMode = Linear | CircularCCW | CircularCW deriving ( Eq, Ord, Read, Show, Enum, Bounded )
e7d1faaf6acebf50a485b6df6590103ffa45ef18abae1adde952d883807fa99e
geisha-lang/Geisha
LLVM.hs
# LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} module Geisha.Codegen.LLVM where import Data.String import Data.List import Data.Function import Data.ByteString.Char8 () import qualified Data.ByteString as B import qualified Data.ByteString.Char8 as BC import Control.Monad.State...
null
https://raw.githubusercontent.com/geisha-lang/Geisha/14b875700774132028e1e618bfbd20bef8422124/src/Geisha/Codegen/LLVM.hs
haskell
# LANGUAGE OverloadedStrings # fromString = Name . fromString ------------- Data Types ------------- function :: Type -> [Type] -> Type function res args = res args False bool :: Type bool convertType :: GType -> Type convertType (Primitive I32) = integer convertType (Primitive F64) = double ...
# LANGUAGE GeneralizedNewtypeDeriving # module Geisha.Codegen.LLVM where import Data.String import Data.List import Data.Function import Data.ByteString.Char8 () import qualified Data.ByteString as B import qualified Data.ByteString.Char8 as BC import Control.Monad.State import Control.Applicative import...
63dc799ef59162bd298e7fdcf2b78dc53721f5e0a6305523a4a12766b5b117e5
haskell-beam/beam
Serialization.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TupleSections # # LANGUAGE CPP # -- | Serialization and deserialization helpers for beam data types. -- -- Used to read and write machine-readable schema descriptions. module Database.Beam.Migrate.Serialization ( -- * Serialization helpers -- $seriali...
null
https://raw.githubusercontent.com/haskell-beam/beam/a924c965dd79c7011ee1903d4647f3b87a4bb3af/beam-migrate/Database/Beam/Migrate/Serialization.hs
haskell
| Serialization and deserialization helpers for beam data types. Used to read and write machine-readable schema descriptions. * Serialization helpers $serialization $deserialization * Serialization helpers | 'IsSql92ColumnConstraintDefinitionSyntax' type for JSON | 'IsSql92ConstraintAttributesSyntax' type for ...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TupleSections # # LANGUAGE CPP # module Database.Beam.Migrate.Serialization BeamSerializedDataType(..) , BeamSerializedConstraintDefinition(..) , BeamSerializedConstraintAttributes(..) , BeamSerializedConstraint(..) , BeamSerializ...
a6f0ecf96a5f5289f504227d5a1a35254741a3f2983d9b53d24a69e725dc0c9c
shirok/Gauche
bench.scm
(add-load-path ".") (use data.sparse) (use util.match) (use gauche.time) (use srfi.27) (define *problem-size* 200000) (define *num-repeat* (ceiling->exact (/. 10000000 *problem-size*))) (define *problem-set* (let1 ht (make-hash-table 'eqv?) (let loop ((i 0) (r '())) (if (= i *problem-size*) r ...
null
https://raw.githubusercontent.com/shirok/Gauche/e97efb5e54f9ab97746369b8ac748f338224c746/ext/sparse/bench.scm
scheme
(add-load-path ".") (use data.sparse) (use util.match) (use gauche.time) (use srfi.27) (define *problem-size* 200000) (define *num-repeat* (ceiling->exact (/. 10000000 *problem-size*))) (define *problem-set* (let1 ht (make-hash-table 'eqv?) (let loop ((i 0) (r '())) (if (= i *problem-size*) r ...
283c6a043bf45803e684d078c26e72cafca928ea4c9ccc8aeeb4152443cba335
kupl/FixML
sub7.ml
type nat = ZERO | SUCC of nat let rec natadd n1 n2= match n1 with ZERO->n2 |SUCC nat ->natadd nat(SUCC n2);; let rec natmul n1 n2= match n1 with ZERO->ZERO |SUCC nat ->if nat=ZERO then n2 else natmul nat(natadd n2 n2);;
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/nat/nat1/submissions/sub7.ml
ocaml
type nat = ZERO | SUCC of nat let rec natadd n1 n2= match n1 with ZERO->n2 |SUCC nat ->natadd nat(SUCC n2);; let rec natmul n1 n2= match n1 with ZERO->ZERO |SUCC nat ->if nat=ZERO then n2 else natmul nat(natadd n2 n2);;
f8effda7296dcce8e4167371a3c5ec5e3b48c8c20e15744a5c1ce8ba23fefdf3
spechub/Hets
AS_CoCASL.der.hs
{-# LANGUAGE DeriveDataTypeable #-} | Module : ./CoCASL / AS_CoCASL.der.hs Description : Abstract syntax for CoCASL Copyright : ( c ) T.Mossakowski , C.Maeder , Uni Bremen 2004 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portab...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/CoCASL/AS_CoCASL.der.hs
haskell
# LANGUAGE DeriveDataTypeable # DrIFT command pos: free, type, semi colons pos: generated, opt. braces type, semi colons pos: "::=", "|"s True if Total, pos: "(", semi colons, ")" pos: sort, commas pos: commas, colon The identifier and the term specify the kind of the modality pos: "[]" or "<>"...
| Module : ./CoCASL / AS_CoCASL.der.hs Description : Abstract syntax for CoCASL Copyright : ( c ) T.Mossakowski , C.Maeder , Uni Bremen 2004 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Abstract synta...
68252103d0645a1584ee2e8ca252ab96018230dcfe934a37964b655a6e444773
racketscript/racketscript
tail-lambda-formals.rkt
#lang racket (define (foo n . c) (if (zero? n) 1 (foo (sub1 n) 0 1 2))) (foo 100 0 2 3)
null
https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/optimize/tail-lambda-formals.rkt
racket
#lang racket (define (foo n . c) (if (zero? n) 1 (foo (sub1 n) 0 1 2))) (foo 100 0 2 3)
cd5b32de675e6d77f64191f3e637d7bc9209f15f3eab31ec17a02b712332d31a
janestreet/memtrace_viewer_with_deps
string_padding.ml
let%expect_test _ = print_string "hello"; [%expect "goodbye"] ;;
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/ppx_expect/negative-tests/string_padding.ml
ocaml
let%expect_test _ = print_string "hello"; [%expect "goodbye"] ;;
acee8bd1520282a84271e6160579cf18a31157adfbff0dacd832024e149f9bfe
zenspider/schemers
exercise.5.37.scm
#!/usr/bin/env csi -s (require rackunit) (require-library compiler) (import compiler) Exercise 5.37 One way to understand the compiler 's ` preserving ' mechanism for ;; optimizing stack usage is to see what extra operations would be ;; generated if we did not use this idea. Modify `preserving' so that ;; it alw...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_5/exercise.5.37.scm
scheme
optimizing stack usage is to see what extra operations would be generated if we did not use this idea. Modify `preserving' so that it always generates the `save' and `restore' operations. Compile some simple expressions and identify the unnecessary stack operations that are generated. Compare the code to that gene...
#!/usr/bin/env csi -s (require rackunit) (require-library compiler) (import compiler) Exercise 5.37 One way to understand the compiler 's ` preserving ' mechanism for (statements (compile '(+ (x) (y)) 'val 'return)) (assign proc (op lookup-variable-value) (const +) (reg env)) (save continue) (save proc...
ce77f7648913e309ac6256839c4dfd48d920b97e3fe4234c6e12ea0bf5e5d835
GaloisInc/saw-core
Utils.hs
| Module : Verifier . SAW.Utils Copyright : Galois , Inc. 2012 - 2015 License : : Stability : experimental Portability : non - portable ( language extensions ) Provides utility functions about general data structured used by SAW . Declarations here should refer primarily to terms...
null
https://raw.githubusercontent.com/GaloisInc/saw-core/ea914a9eea8e484189ee6e4c4dcdfc7db831d987/saw-core/src/Verifier/SAW/Utils.hs
haskell
| Module : Verifier . SAW.Utils Copyright : Galois , Inc. 2012 - 2015 License : : Stability : experimental Portability : non - portable ( language extensions ) Provides utility functions about general data structured used by SAW . Declarations here should refer primarily to terms...
2dc0428fa67eff1d6957adc1b3f6cf08f09c0c9a7afbe31bac691a0050ff1298
nsg-ethz/O4
error.rkt
#lang racket/base ; Error Handing ; --------------------------------------- (provide exn:fail:o4:array-index-unknown? raise-array-index-unknown-error exn:fail:o4:array-not-allowed? raise-array-not-allowed-error exn:fail:o4:array-wrong-dimensions? raise-array-wrong-dimensions...
null
https://raw.githubusercontent.com/nsg-ethz/O4/870f6f78a6f7bb1e9e1502e29ff0048e5e1723c5/o4/utils/error.rkt
racket
Error Handing --------------------------------------- Implementation --------------------------------------- O4 Error Array Errors Parser Invalid Transition Error Argument List Error Factory Errors Hash Key Error Helper Functions --------------------------------------- Exception Handler
#lang racket/base (provide exn:fail:o4:array-index-unknown? raise-array-index-unknown-error exn:fail:o4:array-not-allowed? raise-array-not-allowed-error exn:fail:o4:array-wrong-dimensions? raise-array-wrong-dimensions-error exn:fail:o4:parser-invalid-transition? ...
d3a3196c81b8075a6e9e13470826c0c08d184026f6832f821b3593fb3dd34b50
synrc/rest
tx.erl
-module(tx). -include_lib("bpe/include/doc.hrl"). -compile({parse_transform, rest}). -compile(export_all). -rest_record(tx). new() -> #tx{}.
null
https://raw.githubusercontent.com/synrc/rest/d981292a6eb66ae02da5d5d9d8717c25d74a1d0b/src/bpe/tx.erl
erlang
-module(tx). -include_lib("bpe/include/doc.hrl"). -compile({parse_transform, rest}). -compile(export_all). -rest_record(tx). new() -> #tx{}.
2f2b848025dfdc3f05a19473ace7b8b53c746d15e59fc044651a9d1bee1580d4
kdltr/chicken-core
srfi-45-tests.scm
Tests adapted from SRFI 45 ( for " lazy " - > " delay - force " ) . That SRFI Copyright ( C ) ( 2003 ) . (import (only chicken.format printf) (only chicken.port with-output-to-string)) (define *errors* 0) (define-syntax test (syntax-rules () ((_ name expect form) (let ((ok (equal? expect fo...
null
https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/tests/srfi-45-tests.scm
scheme
Tests adapted from SRFI 45 ( for " lazy " - > " delay - force " ) . That SRFI Copyright ( C ) ( 2003 ) . (import (only chicken.format printf) (only chicken.port with-output-to-string)) (define *errors* 0) (define-syntax test (syntax-rules () ((_ name expect form) (let ((ok (equal? expect fo...
8a0f5d3c2d4caa62d5eb285f8083836ea2d0a4178d543428748d6eae5dc68433
Ericson2314/hasnip
Types.hs
# LANGUAGE MagicHash , BangPatterns # {-# LANGUAGE Rank2Types, ExistentialQuantification #-} {-# LANGUAGE ConstraintKinds, KindSignatures #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses , FlexibleInstances # # LANGUAGE DeriveGeneric # {-# OPTIONS -funbox-strict-fields #-} module HaSnip.Type...
null
https://raw.githubusercontent.com/Ericson2314/hasnip/bf85ae6dec4790067e9be0a998461b9950e7a521/src/HaSnip/Types.hs
haskell
# LANGUAGE Rank2Types, ExistentialQuantification # # LANGUAGE ConstraintKinds, KindSignatures # # OPTIONS -funbox-strict-fields # just for show instance ^ x ^ y ^ z ^ Blue ^ Green ^ Red ^ Blue ^ Green ^ Red ^ Alpha | Mailbox for each loop actor thread thing | Things that can go in Input's inbox | Things t...
# LANGUAGE MagicHash , BangPatterns # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses , FlexibleInstances # # LANGUAGE DeriveGeneric # module HaSnip.Types where import Control.Concurrent.Chan import GHC.Prim(Constraint) import Data.IORef import Data.Map import Data.Word import Data.BitSet.Ge...
4da234a7fc52c5f4c18078dd7c7b29b15a8a2629092f39192cdb0c5d4c206058
Engil/Goodboy
hexdump_window.ml
open Goodboy open Notty type t = int * image let region_str = function | `Boot -> "BOOT" | `Ech0 -> "ECH0" | `Ech1 -> "ECH1" | `Hram -> "HRAM" | `Io -> "I/0 " | `Oam -> "OAM " | `Rom0 -> "ROM0" | `Rom1 -> "ROM1" | `Sra0 -> "SRA0" | `Unk -> "****" | `Vra0 -> "VRAM" | `Wra0 -> "WRA0" | `Wra1 -...
null
https://raw.githubusercontent.com/Engil/Goodboy/2e9abc243b929d8bdfb7c5d4874ddb8a07c55fac/debugger/hexdump_window.ml
ocaml
open Goodboy open Notty type t = int * image let region_str = function | `Boot -> "BOOT" | `Ech0 -> "ECH0" | `Ech1 -> "ECH1" | `Hram -> "HRAM" | `Io -> "I/0 " | `Oam -> "OAM " | `Rom0 -> "ROM0" | `Rom1 -> "ROM1" | `Sra0 -> "SRA0" | `Unk -> "****" | `Vra0 -> "VRAM" | `Wra0 -> "WRA0" | `Wra1 -...
8764e39318c8e5a6126a8cba8bf7d424ae23a4101ff2e987e55903a24c530957
igorhvr/bedlam
srfi-23.scm
(define error slib:error)
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/slib/3b2/srfi-23.scm
scheme
(define error slib:error)
53a4a0271952a3eaa13d763c0173f6da3dec32ca32963c05c8b91c9b5c0341e3
webyrd/Barliman
test-check.scm
' test ' was originally written by ;; ' time - test ' and ' todo ' are courtesy of (define-syntax test (syntax-rules () ((_ title tested-expression expected-result) (begin (printf "Testing ~s\n" title) (let* ((expected expected-result) (produced tested-expression)) ...
null
https://raw.githubusercontent.com/webyrd/Barliman/c2ede326c32fab3c792da782035b5a5a73b08087/cocoa/Barliman/mk-and-rel-interp/mk/test-check.scm
scheme
' test ' was originally written by ' time - test ' and ' todo ' are courtesy of (define-syntax test (syntax-rules () ((_ title tested-expression expected-result) (begin (printf "Testing ~s\n" title) (let* ((expected expected-result) (produced tested-expression)) ...
6e27ee34087b5ca7533c1526a570888074b41bd6ff90ae4e940aa811163621e2
axellang/axel
Log.hs
# LANGUAGE TemplateHaskell # module Axel.Eff.Log where import Axel.Prelude import Axel.Eff.Console (Console, putStr) import Axel.Eff.FileSystem (FileSystem, appendFile, writeFile) import Effectful ((:>)) import qualified Effectful as Eff import qualified Effectful.Dispatch.Dynamic as Eff import qualified Effectful....
null
https://raw.githubusercontent.com/axellang/axel/8da784ae24406d4328e111b3db13f64dc943f738/src/Axel/Eff/Log.hs
haskell
# LANGUAGE TemplateHaskell # module Axel.Eff.Log where import Axel.Prelude import Axel.Eff.Console (Console, putStr) import Axel.Eff.FileSystem (FileSystem, appendFile, writeFile) import Effectful ((:>)) import qualified Effectful as Eff import qualified Effectful.Dispatch.Dynamic as Eff import qualified Effectful....
1e3b775e180c50e8320925817eec96a23787c5b24b705b01bd6accb85b3c2d12
haskell/process
Posix.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # #include <ghcplatform.h> module System.Process.Posix ( mkProcessHandle , translateInternal , createProcess_Internal , withCEnvironment , closePHANDLE , startDelegateControlC , endDelegateControlC , stopDelegateControlC , isDefaultSigna...
null
https://raw.githubusercontent.com/haskell/process/d9a8e6e749d2d60422037f3ef4733d521f18a7fc/System/Process/Posix.hs
haskell
# LANGUAGE BangPatterns # ---------------------------------------------------------------------------- commandToProcess goodChar is a pessimistic predicate, such that if an argument is non-empty and only contains goodChars, then there is no need to do any quoting or escaping --------------------------------------...
# LANGUAGE CPP # #include <ghcplatform.h> module System.Process.Posix ( mkProcessHandle , translateInternal , createProcess_Internal , withCEnvironment , closePHANDLE , startDelegateControlC , endDelegateControlC , stopDelegateControlC , isDefaultSignal , ignoreSignal , def...
0adade41dc41dfd0b37f63207c6e808f3a4c8000e501c9229fe0208d48942407
debug-ito/net-spider
SeqID.hs
-- | Module : NetSpider . SeqID -- Description: Sequential node IDs Maintainer : < > -- -- @since 0.4.3.0 module NetSpider.SeqID ( -- * Type SeqIDMaker, -- * Construction newSeqIDMaker, -- * Conversion convertGraph, convertLink, convertNode, convertNodeID, originalIDFor ) ...
null
https://raw.githubusercontent.com/debug-ito/net-spider/82dfbdca1add1edfd54ef36cb1ca5129d528b814/net-spider/src/NetSpider/SeqID.hs
haskell
| Description: Sequential node IDs @since 0.4.3.0 * Type * Construction * Conversion representation of another graph library such as target graph library can provide a better way for conversion. For ^ Initial ID ^ Old ID | Convert node IDs in the 'SnapshotGraph'. | Convert node IDs in the 'SnapshotLink'. ...
Module : NetSpider . SeqID Maintainer : < > module NetSpider.SeqID SeqIDMaker, newSeqIDMaker, convertGraph, convertLink, convertNode, convertNodeID, originalIDFor ) where import Data.Foldable (foldl') import Data.List (reverse) import Data.Hashable (Hashable) import Data.HashMap.St...
b4addd70ee5ef2dbe593398fa282fd0b1640ad811993bcb46cbadff8026ec03a
TrustInSoft/tis-interpreter
split_return.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/value/legacy/split_return.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
f5183ca841692b19d176ab0179aff1add09ceb51d2c075e743044e36c254f7ef
HaxeFoundation/ocamllibs
peData.ml
* This file is part of ilLib * Copyright ( c)2004 - 2013 Haxe Foundation * * This program 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/HaxeFoundation/ocamllibs/97e498e1b3bc2b3f08cfcae874b8529e4292bc3d/ilib/peData.ml
ocaml
0 - unmanaged PE files only 0x0284 Alpha AXP64 0x0466 MIPS16 with FPU 0x9041 M32R image file only. Indicates the file contains no base relocations and 0x4 0x8 which don't have this flag set Debug information has been removed from the image file If the image file is on removable media, copy and run it...
* This file is part of ilLib * Copyright ( c)2004 - 2013 Haxe Foundation * * This program 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 *...
bb66241aabd2aa1c5005e05a4bd83f8beda63dd8ad650d42ec114b6184052192
sjoerdvisscher/data-category
NNO.hs
# LANGUAGE TypeFamilies , GADTs , UndecidableInstances , NoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : Data.Category.Peano -- License : BSD-style (see the file LICENSE) -- -- Maintainer : -- Stability : experimental -- Portability : ...
null
https://raw.githubusercontent.com/sjoerdvisscher/data-category/11fc0ca8e5cea28e5aef71de3aa5df7cabe8020b/Data/Category/NNO.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Category.Peano License : BSD-style (see the file LICENSE) Maintainer : Stability : experimental Portability : non-portable --------------------------------------------------------------------------- z...
# LANGUAGE TypeFamilies , GADTs , UndecidableInstances , NoImplicitPrelude # module Data.Category.NNO where import Data.Kind (Type) import Data.Category.Functor import Data.Category.Limit import Data.Category.Unit import Data.Category.Coproduct import Data.Category.Fix (Fix(..)) class HasTerminalObject k => HasNatu...
08f3493a788ff21d5b522f03c2aadec9a886d85ef8a9ccae91f67f4cf0464866
wilbowma/cur
stxutils.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse racket/syntax) (for-template (only-in racket/base let-values #%plain-lambda)) syntax/id-set syntax/parse racket/syntax syntax/stx syntax/parse/experimental/reflect) (provide (all-defined-out)) (define (local-expand-expr x) (local-expand x 'e...
null
https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-lib/cur/curnel/stxutils.rkt
racket
XXX: something wrong with hygiene, so need this explicit case o.w., λ binders get substed takes a list of values and a list of identifiers, in dependency order, and substitutes them into syn. TODO PERF: reverse Try to make readable fresh names. (define fresh
#lang racket/base (require (for-syntax racket/base syntax/parse racket/syntax) (for-template (only-in racket/base let-values #%plain-lambda)) syntax/id-set syntax/parse racket/syntax syntax/stx syntax/parse/experimental/reflect) (provide (all-defined-out)) (define (local-expand-expr x) (local-expand x 'e...
c08de20459971e452066c4c207166a7d9e1619fb4948776dd1e0154a3cdef667
v-kolesnikov/sicp
1_40_test.clj
(ns sicp.chapter01.1-40-test (:require [clojure.test :refer :all] [sicp.test-helper :refer :all] [sicp.chapter01.1-40 :refer :all])) (deftest test-newtons-method (assert-equal 2.00000000001201 (newtons-method (cubic 4 -19 19 6) 1)) (assert-equal 2.000000000036784 (newtons-method (cubic 1 ...
null
https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/test/sicp/chapter01/1_40_test.clj
clojure
(ns sicp.chapter01.1-40-test (:require [clojure.test :refer :all] [sicp.test-helper :refer :all] [sicp.chapter01.1-40 :refer :all])) (deftest test-newtons-method (assert-equal 2.00000000001201 (newtons-method (cubic 4 -19 19 6) 1)) (assert-equal 2.000000000036784 (newtons-method (cubic 1 ...
2a23f35867e25a0d41c5dfc13b1b9f523991850f34f0a03d244efee5c180be8a
weblocks-framework/weblocks
selector.lisp
(in-package :weblocks) (export '(selector get-widget-for-tokens selector-base-uri static-selector static-selector-select-pane static-selector-panes static-selector-get-pane static-selector-cached-panes static-selector-current-pane ...
null
https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/src/widgets/selector.lisp
lisp
Functionality common to all selectors: all selectors process *uri-tokens* by calling (get-widget-for-tokens) and update WIDGET-CHILDREN to point to the selected widget. this is a stab at sensible semantics that might be changed or amended later. Note that here we are carefully managing the uri-tokens instance. ...
(in-package :weblocks) (export '(selector get-widget-for-tokens selector-base-uri static-selector static-selector-select-pane static-selector-panes static-selector-get-pane static-selector-cached-panes static-selector-current-pane ...
d9d6ad0c0acc9b593ab84af8503ecb492ffe0baec3b1ea1cc081caacc54a5650
mvoidex/hsdev
ModuleThree.hs
module ModuleThree ( smth, module ModuleOne, module T ) where import Control.Concurrent.Chan import ModuleOne (test) import ModuleTwo as T hiding (twice) smth :: [Int] -> [Int] smth [] = [1] smth (x:xs) = map (+x) xs
null
https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/tests/test-package/ModuleThree.hs
haskell
module ModuleThree ( smth, module ModuleOne, module T ) where import Control.Concurrent.Chan import ModuleOne (test) import ModuleTwo as T hiding (twice) smth :: [Int] -> [Int] smth [] = [1] smth (x:xs) = map (+x) xs
cf563aa84da75e2dcf004ab2d789d84a5c886a4b8dcf9b94380b4e0a9deea555
juxt/site
return.clj
Copyright © 2022 , JUXT LTD . (ns juxt.site.alpha.return) (alias 'site (create-ns 'juxt.site.alpha)) (defn return [req status msg ex-data & args] (throw (ex-info (apply format msg args) (assoc ex-data ::site/request-context (cond-> req true (into (assoc (::site/request-context ex...
null
https://raw.githubusercontent.com/juxt/site/7b857cd096ba1bff7dde040a7eb117d5a180cec7/src/juxt/site/alpha/return.clj
clojure
Copyright © 2022 , JUXT LTD . (ns juxt.site.alpha.return) (alias 'site (create-ns 'juxt.site.alpha)) (defn return [req status msg ex-data & args] (throw (ex-info (apply format msg args) (assoc ex-data ::site/request-context (cond-> req true (into (assoc (::site/request-context ex...
97271d86d9f7be9c1bda548e537d56311aad6131470d37f1a178d836b0ae89fd
DomainDrivenArchitecture/dda-managed-vm
browser_test.clj
Licensed to the Apache Software Foundation ( ASF ) under one ; or more contributor license agreements. See the NOTICE file ; distributed with this work for additional information ; regarding copyright ownership. The ASF licenses this file to you under the Apache License , Version 2.0 ( the ; "License"); you may not...
null
https://raw.githubusercontent.com/DomainDrivenArchitecture/dda-managed-vm/ed44f97ef89468a4dd4bc514439df3f936c86d26/test/src/dda/pallet/dda_managed_vm/infra/browser_test.clj
clojure
or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file "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 b...
Licensed to the Apache Software Foundation ( ASF ) under one to you under the Apache License , Version 2.0 ( the distributed under the License is distributed on an " AS IS " BASIS , (ns dda.pallet.dda-managed-vm.infra.browser-test (:require [clojure.test :refer :all] [schema.core :as s] [dda.palle...
f314660e0e5f703f3385c6ac8112e432c47db9f4a31c0fba7330ebe3b13256f8
JeanHuguesdeRaigniac/effects-landscape
Mtl.hs
module Internal.Mtl ( module Control.Monad.Except, module Control.Monad.Reader, module Control.Monad.State, module Control.Monad.Writer, ) where import Control.Monad.Except import Control.Monad.Reader import Control.Monad.State import Control.Monad.Writer
null
https://raw.githubusercontent.com/JeanHuguesdeRaigniac/effects-landscape/e44aea11053ac4db85b862fab027d3777d35e232/app/Internal/Mtl.hs
haskell
module Internal.Mtl ( module Control.Monad.Except, module Control.Monad.Reader, module Control.Monad.State, module Control.Monad.Writer, ) where import Control.Monad.Except import Control.Monad.Reader import Control.Monad.State import Control.Monad.Writer
1d7f778cef677cf0b6e47111adec4a085771d24696bc384789ac6d5c05bf63db
serokell/ariadne
Scrolling.hs
module Ariadne.UI.Vty.Scrolling ( ScrollingAction(..) , keyToScrollingAction , handleScrollingEvent , scrollToEnd , fixedViewport , scrollingViewport , fixedScrollingViewport ) where import Ariadne.UI.Vty.Keyboard import qualified Brick as B import qualified Bri...
null
https://raw.githubusercontent.com/serokell/ariadne/5f49ee53b6bbaf332cb6f110c75f7b971acdd452/ui/vty-lib/src/Ariadne/UI/Vty/Scrolling.hs
haskell
to underlying widget. Brick author considers it okay. and limiting the size of resulting viewport. | Creates a viewport with a scrollbar on the right, bottom or both sides. Note: when there is no need the scrollbar does not get displayed, but ^ The name of the viewport (must be unique) ^ The type of the viewport ...
module Ariadne.UI.Vty.Scrolling ( ScrollingAction(..) , keyToScrollingAction , handleScrollingEvent , scrollToEnd , fixedViewport , scrollingViewport , fixedScrollingViewport ) where import Ariadne.UI.Vty.Keyboard import qualified Brick as B import qualified Bri...
d77109746808f8d3eb7747dfdd28d51e52857701357d67274c66c0214bf8cc78
thierry-martinez/stdcompat
int64.mli
val zero : int64 val one : int64 val minus_one : int64 external neg : int64 -> int64 = "%int64_neg" external add : int64 -> int64 -> int64 = "%int64_add" external sub : int64 -> int64 -> int64 = "%int64_sub" external mul : int64 -> int64 -> int64 = "%int64_mul" external div : int64 -> int64 -> int64 = "%int64_div" exte...
null
https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/4.04/int64.mli
ocaml
val zero : int64 val one : int64 val minus_one : int64 external neg : int64 -> int64 = "%int64_neg" external add : int64 -> int64 -> int64 = "%int64_add" external sub : int64 -> int64 -> int64 = "%int64_sub" external mul : int64 -> int64 -> int64 = "%int64_mul" external div : int64 -> int64 -> int64 = "%int64_div" exte...
f5fc76616b9e77f85cdaa97524eaa33690916ae112d0f402135158f10345be54
clojerl/clojerl
clojerl.Var.erl
-module('clojerl.Var'). -include("clojerl.hrl"). -include("clojerl_int.hrl"). -behavior('clojerl.IDeref'). -behavior('clojerl.IEquiv'). -behavior('clojerl.IFn'). -behavior('clojerl.IHash'). -behavior('clojerl.IMeta'). -behavior('clojerl.INamed'). -behavior('clojerl.IStringable'). -export([ ?CONSTRUCTOR/2 , c...
null
https://raw.githubusercontent.com/clojerl/clojerl/506000465581d6349659898dd5025fa259d5cf28/src/erl/lang/clojerl.Var.erl
erlang
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Make the call in case the module is not loaded and handle the case when it doesn't even exist gracefully. ------------------------------------------------------...
-module('clojerl.Var'). -include("clojerl.hrl"). -include("clojerl_int.hrl"). -behavior('clojerl.IDeref'). -behavior('clojerl.IEquiv'). -behavior('clojerl.IFn'). -behavior('clojerl.IHash'). -behavior('clojerl.IMeta'). -behavior('clojerl.INamed'). -behavior('clojerl.IStringable'). -export([ ?CONSTRUCTOR/2 , c...
6882f3b5c312f5dfe9d38a4ded24da38088ad623a8a8d365c6b7f30f12cd8f10
aryx/lfs
single2.ml
* Ensures property sg ' by epistemic closure AIK . open Logic module type PARAM = sig val toks_certain : Syntax.t_list val toks_possible : Syntax.t_list val toks_begin : Syntax.t_list val toks_sep : Syntax.t_list val toks_alt : Syntax.t_list val toks_end : Syntax.t_list end module Make (P...
null
https://raw.githubusercontent.com/aryx/lfs/b931530c7132b77dfaf3c99d452dc044fce37589/logfun/src/single2.ml
ocaml
* Ensures property sg ' by epistemic closure AIK . open Logic module type PARAM = sig val toks_certain : Syntax.t_list val toks_possible : Syntax.t_list val toks_begin : Syntax.t_list val toks_sep : Syntax.t_list val toks_alt : Syntax.t_list val toks_end : Syntax.t_list end module Make (P...
20a575f4f5251013a29bf2cb98ab7881a4f78164788ce4fd95470ae7d1801a8e
haskell/haskell-language-server
Code.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ViewPatterns #-} {-# OPTIONS_GHC -Wwarn -fno-warn-orphans #-} -- | Expression execution module Ide.Plugin.Eval.Code (Statement, testRanges, resultRange, propSetup, testCheck, asStatements,myExecStmt) where import Control.Le...
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f63627fa811a47b1bdc12fa65575ced1519d40c5/plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Code.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE ViewPatterns # # OPTIONS_GHC -Wwarn -fno-warn-orphans # | Expression execution | Return the ranges of the expression and result parts of the given test |The document range where the result of the test is defined TODO: handle BLANKLINE >>> showDiffs $ getDiff ["abc","...
# LANGUAGE LambdaCase # module Ide.Plugin.Eval.Code (Statement, testRanges, resultRange, propSetup, testCheck, asStatements,myExecStmt) where import Control.Lens ((^.)) import Control.Monad.IO.Class import Data.Algorithm.Diff (Diff, PolyDiff (..), get...
313042682e1e25b3c4007f30e4cad07a87cba9822632d61ec2ad8181b75c6c67
cgoldammer/chess-database-backend
DatabaseHelpers.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # # LANGUAGE PolyKinds # module Services.DatabaseHelpers where import Control.Monad....
null
https://raw.githubusercontent.com/cgoldammer/chess-database-backend/dbb0f61817520302ea975a9ec4b444d92115f7cf/src/Services/DatabaseHelpers.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs # It can happen that a game doesn't have an opening, and that with improved algorithms, we can now find an opening. Thus we want a function that updates the opening of all games without openings. Maybe Day Storing the game Storing the tags Lazily parse and enter ga...
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # # LANGUAGE PolyKinds # module Services.DatabaseHelpers where import Control.Monad.Reader (MonadIO, join, liftIO) import Data.Attoparsec.Text...
88fedf51a5cd3434c9a7583f8e0f8c780c7e8e6894cdc1a3c13c56796a0f6a70
TheClimateCorporation/lemur
io_test.clj
Copyright 2012 The Climate Corporation ; 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 distributed under t...
null
https://raw.githubusercontent.com/TheClimateCorporation/lemur/00eb21b6f534ceefe354ab89042826188d156991/src/test/clj/com/climate/io_test.clj
clojure
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 language governing permissio...
Copyright 2012 The Climate Corporation distributed under the License is distributed on an " AS IS " BASIS , (ns com.climate.io-test (:use clojure.test lemur.test com.climate.io) (:require [clojure.java.io :as io]) (:import java.io.File com.google.common.io.Files)) (deftest test-cp (let...
14a7bb23a05cdafee668793b74aab9986016e0bd4cebe3794e597755ce1cf82a
yutopp/rill
reasons.ml
* Copyright yutopp 2019 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2019 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
null
https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/lib/sema/reasons.ml
ocaml
* Copyright yutopp 2019 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2019 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
989f848e27bd60b5bc1dbd097a0d7a5df9cd0d675faf960db154cffe6692865c
fragnix/fragnix
Control.Monad.RWS.Class.hs
# LANGUAGE Haskell98 , MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances # # LINE 1 " Control / Monad / RWS / Class.hs " # # LANGUAGE UndecidableInstances # Search for UndecidableInstances to see why this is needed ----------------------------------------------------------------------------- -- | ...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/application/Control.Monad.RWS.Class.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Maintainer : Stability : experimental Portability : non-portable (multi-param classes, functional dependencies) Declaration of the MonadRWS class. Inspired by the paper ...
# LANGUAGE Haskell98 , MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances # # LINE 1 " Control / Monad / RWS / Class.hs " # # LANGUAGE UndecidableInstances # Search for UndecidableInstances to see why this is needed Module : Control . . RWS.Class Copyright : ( c ) 2001 , ...
b5fb600424bba01509b514bac3fe753ed6b3bab2e84f3e0cb23d273616905132
thelema/ocaml-community
test1.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/testsuite/tests/lib-threads/test1.ml
ocaml
********************************************************************* OCaml ...
, 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 . Classic producer - consumer type 'a ...