_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
b52ecc198489df0922f8d101daf47e0b74907b116c1cfe2899acaeddf8d85c55
manuel-serrano/hop
arguments.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / hopscript / arguments.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/48dcc32fab96323bbafb18bfbe30ede33d5f49fd/hopscript/arguments.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / hop / hop / hopscript / arguments.scm * / * Author : * / * Creation : Mon Oct 14 09:14:55 2013 * / * Last change : Thu Jan 12 01:58:07 2023 ( serrano ) * / * Copy...
e66a5f14a22fa14f7f4af7c0ec009829a4f155121149fd55b38b5e4384a64a89
mirage/mirage
info_gen.ml
let info = Functoria_runtime.{ name = "foo"; packages = [ "base-bigarray", "base"; "base-threads", "base"; "base-unix", "base"; "cmdliner", "1.0.4"; "conf-m4", "1"; "dune", "2.0.0"; "fmt", "0.8.8"; "ocaml", "4.08.1"; "ocaml-base-compiler", "4.08.1"; "ocaml-config", "1"; "...
null
https://raw.githubusercontent.com/mirage/mirage/7e36d793ad8bd34beb51bbba62a39aa035f7e297/test/functoria-runtime/info_gen.ml
ocaml
let info = Functoria_runtime.{ name = "foo"; packages = [ "base-bigarray", "base"; "base-threads", "base"; "base-unix", "base"; "cmdliner", "1.0.4"; "conf-m4", "1"; "dune", "2.0.0"; "fmt", "0.8.8"; "ocaml", "4.08.1"; "ocaml-base-compiler", "4.08.1"; "ocaml-config", "1"; "...
c0025071cd00176b184b746e14d980ea1d5249420e995f22d645902c9b2a6df5
tschady/advent-of-code
d21_test.clj
(ns aoc.2022.d21-test (:require [aoc.2022.d21 :as sut] [clojure.test :refer :all])) (def example "root: pppw + sjmn dbpl: 5 cczh: sllz + lgvd zczc: 2 ptdq: humn - dvpt dvpt: 3 lfqf: 4 humn: 5 ljgn: 2 sjmn: drzm * dbpl sllz: 4 pppw: cczh / lfqf lgvd: ljgn * ptdq drzm: hmdt - zczc hmdt: 32") (deftest exam...
null
https://raw.githubusercontent.com/tschady/advent-of-code/2d90f528e282742967eec8870ea7f2a97cd4721d/test/aoc/2022/d21_test.clj
clojure
(ns aoc.2022.d21-test (:require [aoc.2022.d21 :as sut] [clojure.test :refer :all])) (def example "root: pppw + sjmn dbpl: 5 cczh: sllz + lgvd zczc: 2 ptdq: humn - dvpt dvpt: 3 lfqf: 4 humn: 5 ljgn: 2 sjmn: drzm * dbpl sllz: 4 pppw: cczh / lfqf lgvd: ljgn * ptdq drzm: hmdt - zczc hmdt: 32") (deftest exam...
2229bfc735ada2d3ac665cc9ce210ffb55ca6bca467a3aef12c9d2e777fe9bd0
ghc/packages-dph
Solver.hs
{-# LANGUAGE ParallelArrays #-} {-# OPTIONS -fvectorise #-} module Solver where import Data.Array.Parallel.Prelude import Data.Array.Parallel.Prelude.Int data Thing = Thing Int [:Thing:]
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-examples/broken/Tree/Solver.hs
haskell
# LANGUAGE ParallelArrays # # OPTIONS -fvectorise #
module Solver where import Data.Array.Parallel.Prelude import Data.Array.Parallel.Prelude.Int data Thing = Thing Int [:Thing:]
f52c2e48b3b2e2ed35d425c7c74b962de3fb8938a1eb34d9fec93c8e660214f1
ozusrl/SubtypedQuotedML
textPrinter.mli
(*********************************************************************************************************************) (* *) ...
null
https://raw.githubusercontent.com/ozusrl/SubtypedQuotedML/7b09eb5518dea21fda3dc9db3b966a17225d91ff/src/wallace/textPrinter.mli
ocaml
******************************************************************************************************************* ...
, projet Cristal , INRIA Rocquencourt Copyright 2000 Institut National de Recherche en Informatique et Automatique . Distributed only by per...
ddf3f0bb1c08788a54ba7d0b322574dc7c87621206f4ebf956a81d096ef6fb81
uzh/ask
test_service.ml
open Lwt.Syntax module TestSeed = Test_seed module Make (AskService : Ask.Sig) (StorageService : Sihl.Contract.Storage.Sig) = struct module Model = Ask.Model module Seed = TestSeed.Make (AskService) module Questionnaire = AskService.Questionnaire let lifecycle = AskService.lifecycle let register = AskServic...
null
https://raw.githubusercontent.com/uzh/ask/5ba939c7ccbe20251b26f8d691635d94e65e518f/ask/test/test_service.ml
ocaml
open Lwt.Syntax module TestSeed = Test_seed module Make (AskService : Ask.Sig) (StorageService : Sihl.Contract.Storage.Sig) = struct module Model = Ask.Model module Seed = TestSeed.Make (AskService) module Questionnaire = AskService.Questionnaire let lifecycle = AskService.lifecycle let register = AskServic...
673d94d17d58b6686a6ae015a2e417ad1125c36cf23ac13410e590197bae503d
xh4/web-toolkit
read.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - UNICODE ; Base : 10 -*- $ Header : /usr / local / cvsrep / cl - unicode / build / read.lisp , v 1.34 2012 - 05 - 04 21:17:45 edi Exp $ Copyright ( c ) 2008 - 2012 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/cl-unicode-20190521-git/build/read.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - UNICODE ; Base : 10 -*- 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 ...
$ Header : /usr / local / cvsrep / cl - unicode / build / read.lisp , v 1.34 2012 - 05 - 04 21:17:45 edi Exp $ Copyright ( c ) 2008 - 2012 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , ...
590e4e4cb5c6905613d1dd781ca399eaf3e9f8b163abe6212b575a67e78d7ceb
mfikes/fifth-postulate
ns152.cljs
(ns fifth-postulate.ns152) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns152.cljs
clojure
(ns fifth-postulate.ns152) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
b991d8cfb15ef81f7cb59fdfbf45873b48d040ba7ea30c176a0def1ea5282ae8
a-nikolaev/visualsc
opt.ml
open Printf open Common a type sym = Short of char | Long of string type 'a result = OK of 'a | Fail module Sym = struct type t = sym let compare = compare end module S = Set.Make(Sym) module M = Map.Make(Sym) (* split long and short options *) let split ls = List.fold_left (fun (shorts, longs) s -> m...
null
https://raw.githubusercontent.com/a-nikolaev/visualsc/1f98515294afd8c6150573bba5420079220e1213/opt.ml
ocaml
split long and short options list of chars II (1..)2(3..) -abcdeXparam -abcdeX ... -X ... helpers main iteration stop I II III IV V otherwise collect all data print out return functions
open Printf open Common a type sym = Short of char | Long of string type 'a result = OK of 'a | Fail module Sym = struct type t = sym let compare = compare end module S = Set.Make(Sym) module M = Map.Make(Sym) let split ls = List.fold_left (fun (shorts, longs) s -> match s with (Short c) -> (String.ma...
08151cfbafed5720ef94bc511924996ef25979182dd1108ed7bca351543f025c
expipiplus1/vulkan
ExternalSemaphoreFeatureFlagBits.hs
{-# language CPP #-} -- No documentation found for Chapter "ExternalSemaphoreFeatureFlagBits" module Vulkan.Core11.Enums.ExternalSemaphoreFeatureFlagBits ( ExternalSemaphoreFeatureFlags , ExternalSemaphoreFeatureFlagBits( EXTERNAL_SEMAPHORE_FEATURE_EXPORTABL...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/70d8cca16893f8de76c0eb89e79e73f5a455db76/src/Vulkan/Core11/Enums/ExternalSemaphoreFeatureFlagBits.hs
haskell
# language CPP # No documentation found for Chapter "ExternalSemaphoreFeatureFlagBits" | VkExternalSemaphoreFeatureFlagBits - Bitfield describing features of an external semaphore handle type = See Also 'ExternalSemaphoreFeatureFlags' | 'EXTERNAL_SEMAPHORE_FEATURE_IMPORTABLE_BIT' specifies that handles of
module Vulkan.Core11.Enums.ExternalSemaphoreFeatureFlagBits ( ExternalSemaphoreFeatureFlags , ExternalSemaphoreFeatureFlagBits( EXTERNAL_SEMAPHORE_FEATURE_EXPORTABLE_BIT ...
2fa7e10a368d5e5815e1cbd5a2fae973b1ba7aee69e2b7128407758915c0dccb
janestreet/ocaml_plugin
plugin_intf.ml
module type S = sig val message : string end let univ_constr : (module S) Ocaml_plugin.Dynloader.Univ_constr.t = Ocaml_plugin.Dynloader.Univ_constr.create () ;;
null
https://raw.githubusercontent.com/janestreet/ocaml_plugin/7edff57f62e1d0039719f8f29c3e9d0aa85568a2/hello_world/src/plugin_intf.ml
ocaml
module type S = sig val message : string end let univ_constr : (module S) Ocaml_plugin.Dynloader.Univ_constr.t = Ocaml_plugin.Dynloader.Univ_constr.create () ;;
b4e11fb1e57f1a20d7918b3ff84881c3d62f3e552903657ba2dbabe1071e0a7a
funcool/cats
user.clj
(ns user (:require [clojure.tools.namespace.repl :as r] [clojure.walk :refer [macroexpand-all]] [clojure.pprint :refer [pprint]] [clojure.test :as test])) (defonce ^:dynamic *namespaces* ['cats.core-spec 'cats.builtin-spec 'cats.applicative.validation-spec 'cats.labs....
null
https://raw.githubusercontent.com/funcool/cats/120c8f99afff9d9d92f4f690392a1ce1dc68e0b6/dev/user.clj
clojure
(require '[cats.core :as m] '[cats.context :as mc] '[cats.monad.either :as either] '[cats.builtin])
(ns user (:require [clojure.tools.namespace.repl :as r] [clojure.walk :refer [macroexpand-all]] [clojure.pprint :refer [pprint]] [clojure.test :as test])) (defonce ^:dynamic *namespaces* ['cats.core-spec 'cats.builtin-spec 'cats.applicative.validation-spec 'cats.labs....
9c26463b9f2f158b5dd513e0e57339882e041e7c7d526a529b6ffdb74b03b8cc
maralorn/kassandra
DragAndDrop.hs
module Kassandra.DragAndDrop ( childDropArea, taskDropArea, tellSelected, insertArea, ) where import Kassandra.Config (DefinitionElement) import Kassandra.Debug ( Severity (..), logRShow, ) import Kassandra.Sorting ( SortPosition, saveSorting, ) import Kassandra.Types ( AppStateChange, DataChange...
null
https://raw.githubusercontent.com/maralorn/kassandra/598133b89ab4e4a6209da920636e9e6ee540f38a/apps/kassandra/kassandra/src/Kassandra/DragAndDrop.hs
haskell
module Kassandra.DragAndDrop ( childDropArea, taskDropArea, tellSelected, insertArea, ) where import Kassandra.Config (DefinitionElement) import Kassandra.Debug ( Severity (..), logRShow, ) import Kassandra.Sorting ( SortPosition, saveSorting, ) import Kassandra.Types ( AppStateChange, DataChange...
9f3422b4e51968931cc334ad2cff849ca564babea6d2835992d5957dbb37dffd
TempusMUD/cl-tempus
act-other.lisp
(in-package #:tempus) (defmacro define-toggle-command (command flags pref on-message off-message) `(defcommand (ch ,command) ,(cons :player (cons :config flags)) (setf (bitp (prefs-of ch) ,pref) (not (bitp (prefs-of ch) ,pref))) (send-to-char ch "~a~%" (if (bitp (prefs-of ch) ...
null
https://raw.githubusercontent.com/TempusMUD/cl-tempus/c5008c8d782ba44373d89b77c23abaefec3aa6ff/src/actions/act-other.lisp
lisp
(in-package #:tempus) (defmacro define-toggle-command (command flags pref on-message off-message) `(defcommand (ch ,command) ,(cons :player (cons :config flags)) (setf (bitp (prefs-of ch) ,pref) (not (bitp (prefs-of ch) ,pref))) (send-to-char ch "~a~%" (if (bitp (prefs-of ch) ...
fbf6a2f2745ca2667ebfc99893fbae33b43526b2c536653b9eec603dba8bc30b
well-typed-lightbulbs/ocaml-esp32
ast_helper.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/parsing/ast_helper.mli
ocaml
************************************************************************ OCaml ...
, LexiFi Copyright 2012 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Helpers to produce Parsetree fragments { b Warning } This module is unstable and part of { { ! ...
4dd1776acaffb697c71e7b5c9d678be6d759d5d6000fc56bf06ef4b709078b1f
madvas/catlantis
colors.cljs
(ns catlantis.colors) (def colors {:blue-grey700 "#455a64" :deep-orange-a400 "#ff3d00" :lime400 "#d4e157" :amber50 "#fff8e1" :deep-purple900 "#311b92" :cyan600 "#00acc1" :deep-orange300 "#ff8a65" :grey800 "#424242" :grey900 "#212121" :ye...
null
https://raw.githubusercontent.com/madvas/catlantis/b8880ec2cab27ecfcb3c0ab30e2bbc7767db0d1c/src/catlantis/colors.cljs
clojure
(ns catlantis.colors) (def colors {:blue-grey700 "#455a64" :deep-orange-a400 "#ff3d00" :lime400 "#d4e157" :amber50 "#fff8e1" :deep-purple900 "#311b92" :cyan600 "#00acc1" :deep-orange300 "#ff8a65" :grey800 "#424242" :grey900 "#212121" :ye...
917e2200f283922f6400b16a4720fa3a581dc86b8cf774c2d4ce60c4abb44bb1
sadiqj/ocaml-esp32
environments.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/ocamltest/environments.ml
ocaml
************************************************************************ OCaml ...
, projet Gallium , INRIA Paris Copyright 2016 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the exception Variable_already_defined of Variables.t module VariableMap = Map.Make (Variables) type t = string ...
d5335fff2160877c5f7877b0e2d7350e934cf57dc1727b32fd5a3e073d62fb17
diku-dk/futhark
Syntax.hs
{-# LANGUAGE Strict #-} | The source language AST definition . Many types , such as ' ExpBase ' , are parametrised by type and name representation . E.g. in a value of type @ExpBase f vn@ , annotations are wrapped in the functor , and all names are of type @vn@. See -- for a language reference, or this ...
null
https://raw.githubusercontent.com/diku-dk/futhark/b562f0c340748cfbd200ee823201bf727fc76270/src/Language/Futhark/Syntax.hs
haskell
# LANGUAGE Strict # for a language reference, or this module may be a little hard to understand. The system of primitive types is interesting in itself. See * Types * Values * Abstract syntax tree * Module language * Definitions * Miscellaneous | No information functor. Usually used for placeholder type- ...
| The source language AST definition . Many types , such as ' ExpBase ' , are parametrised by type and name representation . E.g. in a value of type @ExpBase f vn@ , annotations are wrapped in the functor , and all names are of type @vn@. See " Language . . Primitive " . module Language.Futhark.Syntax...
0f891e5d227dbf408ef348fceefca2ad04081e1c3dbb22f702db87a76aa25499
wdebeaum/step
beat.lisp
;;;; ;;;; w::beat ;;;; (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::BEAT (SENSES ((LF-PARENT ONT::BEAT) (example "the first beat of the measure") (meta-data :wn ("beat%1:10:00")) (TEMPL OTHER-RELN-TEMPL) ) ) ) )) (define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/beat.lisp
lisp
w::beat
(define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::BEAT (SENSES ((LF-PARENT ONT::BEAT) (example "the first beat of the measure") (meta-data :wn ("beat%1:10:00")) (TEMPL OTHER-RELN-TEMPL) ) ) ) )) (define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (w::beat ...
e568a84501fd5b69f45f13562054c5ab633c6ff6c3dd5da4a8750015f76276e4
ucsd-progsys/liquidhaskell
Liquid.hs
# LANGUAGE LambdaCase # Calling LiquidHaskell via the source plugin -- -- This executable is a wrapper around 'ghc', which gets passed an '-fplugin' -- option. In addition, it hides all core libraries that might colide with a -- package coming from liquid haskell. -- The command line options of ghc and are merge...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f7eb65f7317707bf2f1fc7099589f85ab849f46c/liquid-platform/src/Liquid.hs
haskell
This executable is a wrapper around 'ghc', which gets passed an '-fplugin' option. In addition, it hides all core libraries that might colide with a package coming from liquid haskell. This script injects flags -fplugin-opt=LiquidHaskell:--opt for every opt intended for LiquidHaskell and occurring in the command ...
# LANGUAGE LambdaCase # Calling LiquidHaskell via the source plugin The command line options of ghc and are merged together . import Control.Monad import System.Environment (lookupEnv, getArgs, unsetEnv) import System.FilePath ((</>), takeDirectory, takeExtension) import System.Process import System.Exit impor...
d57cf401ea9f445adfff45ee4180d0eb31793b964ab517c4f26e1ae15fb204ad
g7s/skidder
core.cljs
(ns skidder.core (:require [skidder.protocols :as p] [skidder.impl :as impl] [skidder.impl.connector.html5 :refer [new-html5-connector]])) (def ^:private initial-dnd-state {:status :status/selecting :offsets nil :drag-data nil :drop-data nil :selected-ids [] :dragging-ids ...
null
https://raw.githubusercontent.com/g7s/skidder/145be5c9d2243e60f59e456551608353c7f28271/src/skidder/core.cljs
clojure
(ns skidder.core (:require [skidder.protocols :as p] [skidder.impl :as impl] [skidder.impl.connector.html5 :refer [new-html5-connector]])) (def ^:private initial-dnd-state {:status :status/selecting :offsets nil :drag-data nil :drop-data nil :selected-ids [] :dragging-ids ...
2614cc3f92c2f9223b95700f581e19282d31241ebd1343aabfedd920c7d6f554
lehins/massiv
Primitive.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MagicHash # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UnboxedTuples # # LANGUAGE UndecidableInstances # -- | -- Module : ...
null
https://raw.githubusercontent.com/lehins/massiv/67a920d4403f210d0bfdad1acc4bec208d80a588/massiv/src/Data/Massiv/Array/Manifest/Primitive.hs
haskell
# LANGUAGE BangPatterns # | Module : Data.Massiv.Array.Manifest.Primitive License : BSD3 Stability : experimental Portability : non-portable (eq, ord) # UNPACK # # UNPACK # # UNPACK # # UNPACK # # INLINE initialize # # INLINE iterArrayLinearST_ # # INLINE toStream # @since 0.2.1 has been applied to ...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MagicHash # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UnboxedTuples # # LANGUAGE UndecidableInstances # Copyright : ( c ) 2018 - 2022 Maintainer ...
57b3311e34dfd8d895ba90f335cf89d4dca5206cf8d64d061285f373bb3394f0
nikita-volkov/rerebase
Num.hs
module GHC.Num ( module Rebase.GHC.Num ) where import Rebase.GHC.Num
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/GHC/Num.hs
haskell
module GHC.Num ( module Rebase.GHC.Num ) where import Rebase.GHC.Num
3aa8d5735352d2c07576b4687d249a970d8e7c4572971b81c74ea34211f68dd4
na4zagin3/satyrographos
yamlYojson.ml
open Core let rec yaml_of_yojson : Yojson.Safe.t -> Yaml.yaml = let label s = `Scalar Yaml.{ anchor = None; tag = None; value = s; plain_implicit = true; quoted_implicit = true; style = `Any; } in function | `Assoc (lvs) -> `O Yaml.{ m_anchor = None; m_tag = None;...
null
https://raw.githubusercontent.com/na4zagin3/satyrographos/8fd4027e96d5ef6186abb4996c045a54d2d31702/src/lockdown/yamlYojson.ml
ocaml
open Core let rec yaml_of_yojson : Yojson.Safe.t -> Yaml.yaml = let label s = `Scalar Yaml.{ anchor = None; tag = None; value = s; plain_implicit = true; quoted_implicit = true; style = `Any; } in function | `Assoc (lvs) -> `O Yaml.{ m_anchor = None; m_tag = None;...
e6f449a05c0906fc8c1c4c8be4c4eab9c3c9ffd254471a9ca437f3ae6db4264f
facebookarchive/pfff
parsing_hacks_js.mli
val fix_tokens: Parser_js.token list -> Parser_js.token list
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_js/parsing/parsing_hacks_js.mli
ocaml
val fix_tokens: Parser_js.token list -> Parser_js.token list
9a0eebcf0f7b9939b774ee19f9d59fcc08c655014211dacf82c7bba6de251581
CafeOBJ/cafeobj
eoperator.lisp
-*-Mode : LISP ; Package : Chaos ; ; Syntax : Common - lisp -*- ;;; Copyright ( c ) 2000 - 2015 , . 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 sou...
null
https://raw.githubusercontent.com/CafeOBJ/cafeobj/261e3a50407f568272321378df370e5cf7492aaf/chaos/trs-comp/eoperator.lisp
lisp
Package : Chaos ; ; Syntax : Common - lisp -*- 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...
Copyright ( c ) 2000 - 2015 , . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :chaos) operator is coded in 24bits integers ( assume this fixnum ) . name(id , num - args ) - > cod...
ae17a20ba157b50789e50dfb2356a351393fdaa643137c1ff23e5b7f38d369b4
commercialhaskell/stack
Main.hs
import StackTest main :: IO () main = stack ["subdir/script.hs"]
null
https://raw.githubusercontent.com/commercialhaskell/stack/255cd830627870cdef34b5e54d670ef07882523e/test/integration/tests/relative-script-snapshots/Main.hs
haskell
import StackTest main :: IO () main = stack ["subdir/script.hs"]
49c59fa26840f2135e00bd38d8905132c70dcbf308fcc4e177a9a9bc574d22e8
tendant/graphql-clj
executor_unit_test.clj
(ns graphql-clj.executor-unit-test (:require [graphql-clj.executor :as sut :refer :all] [clojure.test :as t :refer [deftest testing is]])) (deftest test-resolve-field-on-object (testing "resolve-field-on-object" (let [result (@#'sut/resolve-field-value {:resolver-fn (fn [& args] ...
null
https://raw.githubusercontent.com/tendant/graphql-clj/9f79511cd97b581676e06b36e44cead804ae1867/test/graphql_clj/executor_unit_test.clj
clojure
(ns graphql-clj.executor-unit-test (:require [graphql-clj.executor :as sut :refer :all] [clojure.test :as t :refer [deftest testing is]])) (deftest test-resolve-field-on-object (testing "resolve-field-on-object" (let [result (@#'sut/resolve-field-value {:resolver-fn (fn [& args] ...
6d86c047f222c67fef8e606497ce6110c1a63eda91c968b1927f50e988888a63
iu-parfunc/verified-instances
SimplePar.hs
{-@ LIQUID "--higherorder" @-} {-# LANGUAGE BangPatterns #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # #!/usr/bin/env stack -- stack --resolver lts-6.20 --install-ghc runghc --package containers -- | module M...
null
https://raw.githubusercontent.com/iu-parfunc/verified-instances/cebfdf1e3357a693360be74c90211be18ce3c045/experiments/Control/SimplePar.hs
haskell
@ LIQUID "--higherorder" @ # LANGUAGE BangPatterns # # LANGUAGE DeriveAnyClass # stack --resolver lts-6.20 --install-ghc runghc --package containers | * Programmer API * Example programs * Run tests import Test.QuickCheck.Modifiers ---------------------------------------------------------------...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # #!/usr/bin/env stack module Main ( new,put,get, IVar, Par , err, deadlock, loop, dag1 , main ) where import GHC.Generics import Control.Monad import Control.Monad.Except import Data.In...
119eb27588f637c61245373bc1b9b4219ad0caeb20699d22bd53c23d633d0cbd
joearms/elib1
elib1_similar.erl
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . -module(elib1_similar). -export([batch_find_similar/1, find_similar_files/1]). %% -compile(export_all). -import(lists, [foreach/2, map/2, member/2, filter/2, reverse/1, sort/1]). -import(elib1_misc, [time_fun/2]). %% test() -- bui...
null
https://raw.githubusercontent.com/joearms/elib1/d617d0ec70a058ef102749eadf51c024444c28d9/lib/src/elib1_similar.erl
erlang
-compile(export_all). test() -- builds a hash table sims(K) -- finds at most (K)similar files ---------------------------------------------------------------------- Make_hashes(Trawl) -> hashes ---------------------------------------------------------------------- find_similar_files(Stem) io:format("sim1:~p~n",[...
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . -module(elib1_similar). -export([batch_find_similar/1, find_similar_files/1]). -import(lists, [foreach/2, map/2, member/2, filter/2, reverse/1, sort/1]). -import(elib1_misc, [time_fun/2]). c(similar_file_finder_new),similar_file_...
30af099f15572a54ff4ac10e45ac7bbfc7f2cecab064f71009a18dc9c94d4d12
Dasudian/DSDIN
dsdc_pow_cuckoo_tests.erl
-module(dsdc_pow_cuckoo_tests). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -include("pow.hrl"). -define(TEST_MODULE, dsdc_pow_cuckoo). -define(TEST_BIN, <<"wsffgujnjkqhduihsahswgdf">>). -define(TEST_HIGH_NONCE, 74). %% Nonce with solution with high target. pow_test_() -> {setup, fun() -> ...
null
https://raw.githubusercontent.com/Dasudian/DSDIN/b27a437d8deecae68613604fffcbb9804a6f1729/apps/dsdcore/test/dsdc_pow_cuckoo_tests.erl
erlang
Nonce with solution with high target. verify the nonce and the solution Any attempts to verify such nonce with a solution found with high target threshold shall fail. Obtain solution with high target threshold ... ... then attempt to verify such solution (and nonce) with the low target threshold (shall fail). ...
-module(dsdc_pow_cuckoo_tests). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -include("pow.hrl"). -define(TEST_MODULE, dsdc_pow_cuckoo). -define(TEST_BIN, <<"wsffgujnjkqhduihsahswgdf">>). pow_test_() -> {setup, fun() -> ok = meck:new(dsdu_env, [passthrough]), dsdc_te...
811250231e8406ac24d6bd1475c4b6bb10faedeb5b876e6e5683b65dfefa237e
facebook/infer
Prop.ml
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
null
https://raw.githubusercontent.com/facebook/infer/df7b7d23a15a1eb7dadb2451b2d1a405022657ef/infer/src/biabduction/Prop.ml
ocaml
* kind for normal props, i.e. normalized * kind for exposed props * kind for sorted props * the kind 'a should range over [normal] and [exposed] * spatial part * substitution * pure part * abduced spatial part * abduced pure part * Proposition [true /\ emp]. * Set individual fields of the prop. * Cast an exp...
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
84e455d7ffcf52de274cc438a8909142ec09147e8fb63ed2b9d1cfee64924026
chunsj/TH
categorical.lisp
(in-package :th) (defgeneric score/categorical (data probs)) (defgeneric sample/categorical (probs &optional n)) (defun of-categorical-p (data probs) (let ((n ($count probs))) (and (of-ie data 0 (- n 1)) (of-ie probs 0 1)))) (defmethod score/categorical ((data number) (probs tensor)) (when (of-categorical-p ...
null
https://raw.githubusercontent.com/chunsj/TH/890f05ab81148d9fe558be3979c30c303b448480/pd/categorical.lisp
lisp
(in-package :th) (defgeneric score/categorical (data probs)) (defgeneric sample/categorical (probs &optional n)) (defun of-categorical-p (data probs) (let ((n ($count probs))) (and (of-ie data 0 (- n 1)) (of-ie probs 0 1)))) (defmethod score/categorical ((data number) (probs tensor)) (when (of-categorical-p ...
388f3089003e892e56aa85726075d6f89e51c249ec898f4b2b1b5bbfccdc8854
patricoferris/ocaml-multicore-monorepo
router.mli
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) module Message = Dream_pure.Message type route (* Leaf routes. *) val get : string -> Message.handler -> route val post ...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/dream/src/server/router.mli
ocaml
Leaf routes. Route groups. The middleware and the path parameter retriever. With respect to path parameters, the middleware is the setter, and the retriever is, of course, the getter. Variables used by the router. */*
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) module Message = Dream_pure.Message type route val get : string -> Message.handler -> route val post : string -> Message...
ca114cc41160e5eb3224b95b8be058116a4aab5ed79a9d0273a10db8307373c8
gfredericks/vcr-clj
helpers.clj
(ns vcr-clj.test.helpers (:require [me.raynes.fs :as fs])) (def delete-cassettes-after-test (fn [test] (try (test) (finally (fs/delete-dir "cassettes")))))
null
https://raw.githubusercontent.com/gfredericks/vcr-clj/adb94d56512e270abc00ff84fe2da98882aede88/test/vcr_clj/test/helpers.clj
clojure
(ns vcr-clj.test.helpers (:require [me.raynes.fs :as fs])) (def delete-cassettes-after-test (fn [test] (try (test) (finally (fs/delete-dir "cassettes")))))
d151f01dab31ced46ee0ce6fb6aadf17b77623d2d4b24897fcd6c011ac9c49cc
kmi/irs
events.lisp
Mode : Lisp ; Package : The Open University (in-package "OCML") (in-ontology aktive-portal-ontology2) A simple , initial ontology for events . We use some of categories ;;;to give some kind of top-level structuring (def-class EVENT (temporal-thing) ?x "This is a minimalist definition of class event. W...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/aktive-portal-ontology2/events.lisp
lisp
Package : to give some kind of top-level structuring
The Open University (in-package "OCML") (in-ontology aktive-portal-ontology2) A simple , initial ontology for events . We use some of categories (def-class EVENT (temporal-thing) ?x "This is a minimalist definition of class event. We start with the very basic and we will then add slots as we specialis...
3cc79e2824fc03ae3cbc53ef2a0c1db27903a8a6babc7f4b07528c2c76e2c60e
CmdrDats/clj-minecraft
commands.clj
(ns cljminecraft.commands (:require [cljminecraft.bukkit :as bk] [cljminecraft.util :as util] [cljminecraft.logging :as log] [cljminecraft.player :as plr] [cljminecraft.events :as ev] [cljminecraft.entity :as ent] [cljminecraft.items :as items] ...
null
https://raw.githubusercontent.com/CmdrDats/clj-minecraft/d69a1453e6b3cbb2c08b6a2ba554520a0265c43d/src/cljminecraft/commands.clj
clojure
Example usage of register-command The types here infer validation rules and tab-completion - The receiving function will be guarenteed to be passed a Player
(ns cljminecraft.commands (:require [cljminecraft.bukkit :as bk] [cljminecraft.util :as util] [cljminecraft.logging :as log] [cljminecraft.player :as plr] [cljminecraft.events :as ev] [cljminecraft.entity :as ent] [cljminecraft.items :as items] ...
35a30ba90a5522515a49b070c055d5ed1342ee7b035d7d94783d4524f6245db3
nuvla/api-server
credential_infrastructure_service_vpn_test.cljc
(ns sixsq.nuvla.server.resources.spec.credential-infrastructure-service-vpn-test (:require [clojure.test :refer [deftest]] [sixsq.nuvla.server.resources.credential :as cred] [sixsq.nuvla.server.resources.spec.credential-infrastructure-service-vpn :as cred-infra-service-vpn] [sixsq.nuvla.server.re...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/test/sixsq/nuvla/server/resources/spec/credential_infrastructure_service_vpn_test.cljc
clojure
mandatory keywords optional keywords
(ns sixsq.nuvla.server.resources.spec.credential-infrastructure-service-vpn-test (:require [clojure.test :refer [deftest]] [sixsq.nuvla.server.resources.credential :as cred] [sixsq.nuvla.server.resources.spec.credential-infrastructure-service-vpn :as cred-infra-service-vpn] [sixsq.nuvla.server.re...
75fa01675cd3587a3906964c155f1ed98a66f2238315b5c5934c5c3dc6720698
matthiasn/systems-toolbox
log.cljc
(ns matthiasn.systems-toolbox.log "Some helpers for logging in ClojureScript" (:require [clojure.string :as s] [matthiasn.systems-toolbox.component.helpers :as h])) (def ^{:dynamic true} *debug-enabled* false) (defn enable-debug-log! [] (set! *debug-enabled* true)) (defn info [& args] (println (s/jo...
null
https://raw.githubusercontent.com/matthiasn/systems-toolbox/6bcc44af449b4a5d4e9128cd0f2129b58619a5dc/src/cljc/matthiasn/systems_toolbox/log.cljc
clojure
(ns matthiasn.systems-toolbox.log "Some helpers for logging in ClojureScript" (:require [clojure.string :as s] [matthiasn.systems-toolbox.component.helpers :as h])) (def ^{:dynamic true} *debug-enabled* false) (defn enable-debug-log! [] (set! *debug-enabled* true)) (defn info [& args] (println (s/jo...
1bc95daad564ff52268ec827c218b3d3ab060a5766aeefff8ea8f71de5fbff98
alexandergunnarson/quantum
core.cljc
(ns ^{:doc "Image library. Conversion, compression, etc." :attribution "alexandergunnarson"} quantum.media.imaging.core #?(:clj (:import javax.imageio.ImageIO java.awt.image.BufferedImage))) Image I / O has built - in support for GIF , PNG , JPEG , BMP , and WBMP . ; Image I/O is also ex...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/media/imaging/core.cljc
clojure
Image I/O is also extensible so that developers or administrators can and JPEG 2000 are separately available. (let [^BufferedImage img (ImageIO/read (java.io.File. (io/parse-dirs-keys img) RENDERING/RAYTRACING Scene description / generation
(ns ^{:doc "Image library. Conversion, compression, etc." :attribution "alexandergunnarson"} quantum.media.imaging.core #?(:clj (:import javax.imageio.ImageIO java.awt.image.BufferedImage))) Image I / O has built - in support for GIF , PNG , JPEG , BMP , and WBMP . " plug - in " suppor...
0f99019a4a53646e6942518d768e0983434cd406869d06d2028ac77b0ccebb7d
kadena-io/pact
Coverage.hs
# LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE GADTs #-} -- | -- Module : Pact.Coverage Copyright : ( C ) 2021 -- License : BSD-style (see the file LICENSE) Maintainer : < > -- Implement advice to provide LCOV coverage data . -- module Pact.Coverage ( mkC...
null
https://raw.githubusercontent.com/kadena-io/pact/de9b0c1f1f4e3dd18327771a86ef1181bab3984b/src-ghc/Pact/Coverage.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs # | Module : Pact.Coverage License : BSD-style (see the file LICENSE)
# LANGUAGE RecordWildCards # Copyright : ( C ) 2021 Maintainer : < > Implement advice to provide LCOV coverage data . module Pact.Coverage ( mkCoverageAdvice , writeCovReport , writeCovReportInDir , writeCovReport' ) where import Control.Monad.IO.Class import Control.Monad.State.Strict ...
0a0c62fff03176fb869e72a09b2d25fa7c38279ae002140563bb36d1fd1e6196
clojure-interop/aws-api
AmazonWorkLinkAsync.clj
(ns com.amazonaws.services.worklink.AmazonWorkLinkAsync "Interface for accessing WorkLink asynchronously. Each asynchronous method will return a Java Future object overloads which accept an AsyncHandler can be used to receive notification when an asynchronous operation completes. Note: Do not directly implemen...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.worklink/src/com/amazonaws/services/worklink/AmazonWorkLinkAsync.clj
clojure
(ns com.amazonaws.services.worklink.AmazonWorkLinkAsync "Interface for accessing WorkLink asynchronously. Each asynchronous method will return a Java Future object overloads which accept an AsyncHandler can be used to receive notification when an asynchronous operation completes. Note: Do not directly implemen...
e3e6d4f886e917cecf19c14e8dcf7c30819de3ba15d4a048dadeb05c612d2a26
haskell/win32
HandleConversion.hs
module Main where import Graphics.Win32.Misc import System.IO import System.Win32.Types testStdHandle :: Handle -> StdHandleId -> IO () testStdHandle haskHandle winStdHandle = do winHandle <- getStdHandle winStdHandle withHandleToHANDLE haskHandle $ print . (== winHandle) main :: IO () main = do testStdHandle ...
null
https://raw.githubusercontent.com/haskell/win32/e6c0c0f44f6dfc2f8255fc4a5017f4ab67cd0242/tests/HandleConversion.hs
haskell
module Main where import Graphics.Win32.Misc import System.IO import System.Win32.Types testStdHandle :: Handle -> StdHandleId -> IO () testStdHandle haskHandle winStdHandle = do winHandle <- getStdHandle winStdHandle withHandleToHANDLE haskHandle $ print . (== winHandle) main :: IO () main = do testStdHandle ...
96f8fa775aee97c828bfa5640283518792f44ff4506ffa299184de80a4ec70fb
patricoferris/ocaml-multicore-monorepo
variable_test.ml
let test_query variables = Test_common.test_query Echo_schema.schema () ~variables let suite : (string * [>`Quick] * (unit -> unit)) list = [ ("string variable", `Quick, fun () -> let variables = ["x", `String "foo bar baz"] in let query = "{ string(x: $x) }" in test_query variables query (`Assoc [ ...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/ocaml-graphql-server/graphql/test/variable_test.ml
ocaml
let test_query variables = Test_common.test_query Echo_schema.schema () ~variables let suite : (string * [>`Quick] * (unit -> unit)) list = [ ("string variable", `Quick, fun () -> let variables = ["x", `String "foo bar baz"] in let query = "{ string(x: $x) }" in test_query variables query (`Assoc [ ...
55f7cd402d331f7dc84e1c6d5fbc7791e285bee5fb1951b0255ad6edc7741b82
threatgrid/ctia
core.clj
(ns ctia.entity.attack-pattern.core (:require [clojure.tools.logging :as log] [ctia.entity.attack-pattern.schemas :refer [StoredAttackPattern]] [ctia.schemas.core :refer [APIHandlerServices]] [ctia.store :refer [query-string-search]] [schema.core :as s])) (s/defn lates...
null
https://raw.githubusercontent.com/threatgrid/ctia/6c11ba6a7c57a44de64c16601d3914f5b0cf308e/src/ctia/entity/attack_pattern/core.clj
clojure
(ns ctia.entity.attack-pattern.core (:require [clojure.tools.logging :as log] [ctia.entity.attack-pattern.schemas :refer [StoredAttackPattern]] [ctia.schemas.core :refer [APIHandlerServices]] [ctia.store :refer [query-string-search]] [schema.core :as s])) (s/defn lates...
7470510d926a16b8ad190868ed6185d6d8105ae81dd0653590ba5c0e8703b518
dbuenzli/affect
test_funix.ml
--------------------------------------------------------------------------- Copyright ( c ) 2022 The affect programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c...
null
https://raw.githubusercontent.com/dbuenzli/affect/21219985d9c96a08d8bc1d1049a78f8ee3579c8b/test/test_funix.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2022 The affect programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c...
b256f3112c2633240211549877fae7e0b4370a273441323da09870a83b2564d3
dwayne/eopl3
env.rkt
#lang eopl (require "./parser.rkt") (provide ;; Build empty-env extend-env extend-env-rec ;; Query env? apply-env identifier? identifier=?) (define (empty-env) (lambda (search-var construct-proc-val) (eopl:error 'apply-env "No binding for ~s" search-var))) (define (extend-env var val env) (lambda...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/03-ch3/interpreters/racket/LETREC-3.34/env.rkt
racket
Build Query
#lang eopl (require "./parser.rkt") (provide empty-env extend-env extend-env-rec env? apply-env identifier? identifier=?) (define (empty-env) (lambda (search-var construct-proc-val) (eopl:error 'apply-env "No binding for ~s" search-var))) (define (extend-env var val env) (lambda (search-var constru...
c8565662c3130803f09d8e582cb95b462f42150c2a3313ae9af58c5bf3617474
cocreature/lrucaching
Internal.hs
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # {-# LANGUAGE DeriveTraversable #-} | Module : Data . LruCache . Internal Copyright : ( c ) , 2016 ( c ) , 2015 License : : This module contains internal datastructures . No guarantees are made as to the stability...
null
https://raw.githubusercontent.com/cocreature/lrucaching/b722777185d9df6145c8efc6ddc6057983dec5db/src/Data/LruCache/Internal.hs
haskell
# LANGUAGE DeriveTraversable # | Logical time at which an element was last accessed. | LRU cache based on hashing. ^ The maximum number of elements in the queue ^ The current number of elements in the queue ^ The next logical time ^ Underlying priority queue
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # | Module : Data . LruCache . Internal Copyright : ( c ) , 2016 ( c ) , 2015 License : : This module contains internal datastructures . No guarantees are made as to the stability of this module and violating inv...
c79ddf516b4335bb68ce0e8cacd5cf42066d7cf81bd5c101aa5963ccc89acdba
aigarashi/copl-tools
keywords.ml
open Parser let v = [ (* game-specific keywords *) ("evalto", EVALTO); ("minus", MINUS); ("times", MULT); ("plus", PLUS); ("is", IS); ("less", LESS); ("than", THAN); ("not", NOT); (* ML1 expressions *) ("true", TRUE); ("false", FALSE); ("if", IF); ("then", THEN); ("else", ELSE); ...
null
https://raw.githubusercontent.com/aigarashi/copl-tools/3c4da117083a0870334c8eef270206b11060514e/checker/EvalContML4/keywords.ml
ocaml
game-specific keywords ML1 expressions ML3 expressions ML5 expressions
open Parser let v = [ ("evalto", EVALTO); ("minus", MINUS); ("times", MULT); ("plus", PLUS); ("is", IS); ("less", LESS); ("than", THAN); ("not", NOT); ("true", TRUE); ("false", FALSE); ("if", IF); ("then", THEN); ("else", ELSE); ("*", AST); ("+", CROSS); ("-", HYPHEN); ("<", LT...
39e8f8c4b73731ff73f054c7f41bfa1abf020da4dd6327cf6567f2fd9539fe33
mbuczko/cerber-oauth2-provider
response.clj
(ns cerber.oauth2.response (:require [cerber [error :as error] [helpers :as helpers] [form :as form]] [cerber.oauth2 [context :as ctx] [settings :as settings]] [cerber.stores [authcode :as authcode] [cli...
null
https://raw.githubusercontent.com/mbuczko/cerber-oauth2-provider/56ef50366bc83630ae41d438fa017e5411c20fdd/src/cerber/oauth2/response.clj
clojure
note that scope won't exist in authorization_code scenario as it should be taken straight from authcode. also, user won't exist for Client Credentials grant.
(ns cerber.oauth2.response (:require [cerber [error :as error] [helpers :as helpers] [form :as form]] [cerber.oauth2 [context :as ctx] [settings :as settings]] [cerber.stores [authcode :as authcode] [cli...
13ac886f5a69ebba027af86ab992b930ced6c577775de8ebef6415237d161aef
sealchain-project/sealchain
Util.hs
# LANGUAGE RecordWildCards # -- | Module for command-line utilites, parsers and convenient handlers. module Pos.Client.CLI.Util ( attackTypeParser , attackTargetParser , defaultLoggerConfig , readLoggerConfig , stakeholderIdParser ) where import Universum hiding (t...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/lib/src/Pos/Client/CLI/Util.hs
haskell
| Module for command-line utilites, parsers and convenient handlers. | Default logger config. Will be used if `--log-config` argument is not passed. | Reads logger config from given path. By default returns 'defaultLoggerConfig'.
# LANGUAGE RecordWildCards # module Pos.Client.CLI.Util ( attackTypeParser , attackTargetParser , defaultLoggerConfig , readLoggerConfig , stakeholderIdParser ) where import Universum hiding (try) import Text.Parsec (parserFail, try) import qualified Tex...
b71f23071e3a0311b1a2ac20b8f254965913437a155d97ecc2c47be8bf9b1cbb
ghc/nofib
Main.hs
module Main where import Parse import Shows import Term import Type import Environment import InferMonad import Substitution ( Sub ) import MaybeM ( Maybe ) import Infer import Control.Monad import System.Environment import NofibUtils main = do input <- getContents replicateM_ 200 $ do input' <- salt input ...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/infer/Main.hs
haskell
module Main where import Parse import Shows import Term import Type import Environment import InferMonad import Substitution ( Sub ) import MaybeM ( Maybe ) import Infer import Control.Monad import System.Environment import NofibUtils main = do input <- getContents replicateM_ 200 $ do input' <- salt input ...
df056631301e751c70c8f3da45b7f8d596ef26a8b5b79b5413ece71689f26bde
adjkant/sql-sourcery
type-support.rkt
#lang racket (provide translate-types get-type-info format-sql-type (for-syntax validate-type type->predicate create-arg-type-checker)) (require "types.rkt" (for-syntax racket "types.rkt" "utils.rkt...
null
https://raw.githubusercontent.com/adjkant/sql-sourcery/f6c0619ed9febbb66864f36aa41fa495df683f95/sql-sourcery/type-support.rkt
racket
----------------------------------------------------------------------- Type Checking Generation Syntax Syntax Syntax -> [[List-of Any] String -> Void] create function to check arguments for structure creation ----------------------------------------------------------------------- String -> Boolean SQLTypeName -...
#lang racket (provide translate-types get-type-info format-sql-type (for-syntax validate-type type->predicate create-arg-type-checker)) (require "types.rkt" (for-syntax racket "types.rkt" "utils.rkt...
8eb39865743a9b0790757615edc192ed9f6faa24978a294ece6157c9deef4352
sheyll/b9-vm-image-builder
PartitionTable.hs
-- | Function to find the file offsets of primary partitions in raw disk images . Currently only MBR partitions are supported . See ' B9.MBR ' module B9.PartitionTable ( getPartition, ) where import qualified B9.MBR as MBR import Data.Word (Word64) getPartition :: Int -> FilePath -> IO (Word64, Word64, Word6...
null
https://raw.githubusercontent.com/sheyll/b9-vm-image-builder/4d2af80d3be4decfce6c137ee284c961e3f4a396/src/lib/B9/PartitionTable.hs
haskell
| Function to find the file offsets of primary partitions in raw disk
images . Currently only MBR partitions are supported . See ' B9.MBR ' module B9.PartitionTable ( getPartition, ) where import qualified B9.MBR as MBR import Data.Word (Word64) getPartition :: Int -> FilePath -> IO (Word64, Word64, Word64) getPartition partitionIndex diskImage = blockSized <$> MBR.getPartit...
a5e71e8862b4c5b312b1478f466d6f1d9be958d7e3812ec09f8552190113f78c
mvoidex/hsdev
Error.hs
# LANGUAGE FlexibleContexts # module HsDev.Error ( hsdevError, hsdevOtherError, hsdevLift, hsdevLiftWith, hsdevCatch, hsdevLiftIO, hsdevLiftIOWith, hsdevIgnore, hsdevHandle, module HsDev.Types ) where import Prelude import Control.Exception (IOException) import Control.Monad.Catch import Control.Monad.Except i...
null
https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/src/HsDev/Error.hs
haskell
| Throw `HsDevError` | Throw as `OtherError` | Throw as `OtherError` | Throw as some `HsDevError` | Rethrow IO exceptions as `HsDevError` | Rethrow IO exceptions | Ignore hsdev exception | Handle hsdev exception
# LANGUAGE FlexibleContexts # module HsDev.Error ( hsdevError, hsdevOtherError, hsdevLift, hsdevLiftWith, hsdevCatch, hsdevLiftIO, hsdevLiftIOWith, hsdevIgnore, hsdevHandle, module HsDev.Types ) where import Prelude import Control.Exception (IOException) import Control.Monad.Catch import Control.Monad.Except i...
4c69253f6bf8c1c1cc33ced23a121705a38ef9548f1ceae4e3983673d6fc83a5
SimulaVR/godot-haskell
PhysicsBody.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.PhysicsBody (Godot.Core.PhysicsBody._get_layers, ...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/PhysicsBody.hs
haskell
| Adds a body to the list of bodies that this body can't collide with. | Adds a body to the list of bodies that this body can't collide with. | Returns an array of nodes that were added as collision exceptions for this body. | Returns an array of nodes that were added as collision exceptions for this body. | The p...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.PhysicsBody (Godot.Core.PhysicsBody._get_layers, ...
6dd8fe0f58c84649320c16e8008778b375b8b70621407c79d44e5f3c087d908e
roterski/syncrate-fulcro
resolvers.clj
(ns app.profiles.resolvers (:require [crux.api :as crux] [com.wsscode.pathom.connect :as pc :refer [defresolver]])) (defresolver profile-resolver [{:keys [db]} {:profile/keys [id]}] {::pc/input #{:profile/id} ::pc/output [:profile/name]} (crux/entity db id)) (def resolvers [profile-resolver])
null
https://raw.githubusercontent.com/roterski/syncrate-fulcro/3fda40b12973e64c7ff976174498ec512b411323/src/main/app/profiles/resolvers.clj
clojure
(ns app.profiles.resolvers (:require [crux.api :as crux] [com.wsscode.pathom.connect :as pc :refer [defresolver]])) (defresolver profile-resolver [{:keys [db]} {:profile/keys [id]}] {::pc/input #{:profile/id} ::pc/output [:profile/name]} (crux/entity db id)) (def resolvers [profile-resolver])
e10a8aca956eb3e3214de6e4c7987dcd8c4f2a36d6c69dcc797629963203a925
gerritjvv/kafka-fast
buff_utils.clj
(ns kafka-clj.buff-utils (:import [io.netty.buffer ByteBuf])) (defonce ^:constant compression-code-mask 0x03) (defn ^ByteBuf inc-capacity [^ByteBuf bytebuf l] (let [len (+ (.capacity bytebuf) (int l))] (if (> len (.maxCapacity bytebuf)) (.capacity bytebuf len)) bytebuf)) (defn read-short-string [^B...
null
https://raw.githubusercontent.com/gerritjvv/kafka-fast/fd149d8744c8100b2a8f4d09f1a251812e7baf6a/kafka-clj/src/kafka_clj/buff_utils.clj
clojure
(ns kafka-clj.buff-utils (:import [io.netty.buffer ByteBuf])) (defonce ^:constant compression-code-mask 0x03) (defn ^ByteBuf inc-capacity [^ByteBuf bytebuf l] (let [len (+ (.capacity bytebuf) (int l))] (if (> len (.maxCapacity bytebuf)) (.capacity bytebuf len)) bytebuf)) (defn read-short-string [^B...
70bb82a1fedc7d331d863a11c8c9cf962f8192771e74f4ff3505a227b7e11abd
pirapira/coq2rust
ppvernacsig.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/printing/ppvernacsig.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * module type Pp = sig * Print...
61be194c046ca20082574fceb61ef55b1739ced672d3fa8f73191db10a808b1d
stephenpascoe/hs-arrow
Time32DataType.hs
| Copyright : , and License : LGPL-2.1 Maintainer : ( ) It wraps @arrow::Time32Type@. Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1 Maintainer : Iñaki García Etxebarria () It wraps @arrow::Time32Type@. -} #define ENABLE_OVERLOADING (MIN_VERS...
null
https://raw.githubusercontent.com/stephenpascoe/hs-arrow/86c7c452a8626b1d69a3cffd277078d455823271/gi-arrow/GI/Arrow/Objects/Time32DataType.hs
haskell
* Exported types * Methods # SOURCE # # SOURCE # # SOURCE # | Memory-managed wrapper type. # OVERLAPPABLE # method Time32DataType::new method type : Constructor Lengths : [] throws : True Skip return : False error ^ /@unit@/: 'GI.Arrow.Enums.TimeUnitSecond' or 'GI.Arrow.Enums.TimeUnitMilli'.
| Copyright : , and License : LGPL-2.1 Maintainer : ( ) It wraps @arrow::Time32Type@. Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1 Maintainer : Iñaki García Etxebarria () It wraps @arrow::Time32Type@. -} #define ENABLE_OVERLOADING (MIN_VERS...
b3f4320c4f6fe6f5d6c8bf7e4f74b87268b38c4d4bbed94f15a3d1defb2b4dad
coccinelle/herodotos
csv.ml
open Lexing exception BadFormat exception Misconfiguration of string let parse_csv file = let in_ch = open_in file in let lexbuf = Lexing.from_channel in_ch in try (* ignore(Parsing.set_trace true); *) Misc.init file lexbuf; let ast = Exist_parser.entries Exist_lexer.token lexbuf in close_in ...
null
https://raw.githubusercontent.com/coccinelle/herodotos/5da230a18962ca445ed2368bc21abe0a8402e00f/herodotos/exists/csv.ml
ocaml
ignore(Parsing.set_trace true);
open Lexing exception BadFormat exception Misconfiguration of string let parse_csv file = let in_ch = open_in file in let lexbuf = Lexing.from_channel in_ch in try Misc.init file lexbuf; let ast = Exist_parser.entries Exist_lexer.token lexbuf in close_in in_ch; ast with (Exist_lexer...
967aa8fc2c4573627ddea6d96289a6dfc38dd9551f3d36f2be482b4462d89ab1
erlymon/erlymon
em_http_api_devices_handler.erl
%%%------------------------------------------------------------------- @author ( C ) 2015 , < > %%% @doc Erlymon is an open source GPS tracking system for various GPS tracking devices . %%% Copyright ( C ) 2015 , < > . %%% This file is part of Erlymon . %%% Erlymon is free software : yo...
null
https://raw.githubusercontent.com/erlymon/erlymon/2250619783d6da1e33a502911a8fa52ce016c094/apps/erlymon/src/em_http/handlers/em_http_api_devices_handler.erl
erlang
------------------------------------------------------------------- @doc but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see </>. @end -------------------------------------------------------...
@author ( C ) 2015 , < > Erlymon is an open source GPS tracking system for various GPS tracking devices . Copyright ( C ) 2015 , < > . This file is part of Erlymon . Erlymon is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Publ...
59129f68a5900c16f71bb2db5d857bedbc39fd95e27dbc8672e3c789024f3f55
cronburg/antlr-haskell
Grammar.hs
# LANGUAGE DeriveAnyClass , DeriveGeneric , TypeFamilies , QuasiQuotes , DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances , FlexibleInstances , UndecidableInstances , FlexibleContexts , TemplateHaskell , DeriveDataTypeable # , DataKinds, ScopedTypeVariables, OverloadedStr...
null
https://raw.githubusercontent.com/cronburg/antlr-haskell/7a9367038eaa58f9764f2ff694269245fbebc155/test/simple/Grammar.hs
haskell
# LANGUAGE DeriveAnyClass , DeriveGeneric , TypeFamilies , QuasiQuotes , DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances , FlexibleInstances , UndecidableInstances , FlexibleContexts , TemplateHaskell , DeriveDataTypeable # , DataKinds, ScopedTypeVariables, OverloadedStr...
5afa08241190ffc55aaa4cfee4b17c56ced499dd146d2de85a650825bcc38d36
CodyReichert/qi
impl-null.lisp
;;;; -*- indent-tabs-mode: nil -*- (in-package #:bordeaux-threads)
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/bordeaux-threads-master/src/impl-null.lisp
lisp
-*- indent-tabs-mode: nil -*-
(in-package #:bordeaux-threads)
29a719b08de0b7a12509d1567f0db70377ede8fd57e757a92356663e88f08bdc
lucywang000/shadow-test-utils
env.cljs
(ns shadow.test.env (:require [com.rpl.specter :as sp] [shadow-test-utils.filters :refer [tweak-test-ns tweak-test-case]]) (:require-macros [shadow.test.env])) (goog-define UI-DRIVEN false) ;; this should be how cljs.test works out of the box IMHO ;; all those macros don't compose and make writing testing u...
null
https://raw.githubusercontent.com/lucywang000/shadow-test-utils/b3bbdb87bd267728a00614dbc163fcaa126feb8e/src/shadow/test/env.cljs
clojure
this should be how cljs.test works out of the box IMHO all those macros don't compose and make writing testing utilities painful (eg. you have to recompile the namespace containing the macro to pick up new tests) only the macros were replaced, the functionality remains unchanged
(ns shadow.test.env (:require [com.rpl.specter :as sp] [shadow-test-utils.filters :refer [tweak-test-ns tweak-test-case]]) (:require-macros [shadow.test.env])) (goog-define UI-DRIVEN false) (defonce tests-ref (atom {:namespaces {}})) (defn reset-test-data! [test-data] (swap! tests-ref assoc :namespaces (...
1de4b8a7a2d0c4eacd0c7342b4526ce8641a761ab3f2257ea90348c796ec1327
rabbitmq/khepri
simple_get.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 © 2021 - 2023 VMware , Inc. or its affiliates . All rights reserved . %% -module(simple_get). -include_lib("eunit/include/eun...
null
https://raw.githubusercontent.com/rabbitmq/khepri/3527362ad9f59cff36231eb4e7b34dc066aa0f50/test/simple_get.erl
erlang
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 © 2021 - 2023 VMware , Inc. or its affiliates . All rights reserved . -module(simple_get). -include_lib("eunit/include/eunit.hrl...
6ba82b81a3ec0ae9557aea52d12ca805b6dc663dcec1c4b8c295a2910d12b4a9
narimiran/AdventOfCode2017
knotHash.ml
let size = 255 let twist circle pos skipSize = for i = 0 to skipSize / 2 - 1 do let a = (pos + i) land size in let b = (pos + skipSize-1 - i) land size in CCArray.swap circle a b done let knot_logic sizes n = let circle = Array.init (size+1) Fun.id in let pos = ref 0 in let skip = ref 0 in ...
null
https://raw.githubusercontent.com/narimiran/AdventOfCode2017/41d7bb5d8b6373aa309c1b300ad317a8f9a5c71b/ocaml/lib/knotHash.ml
ocaml
let size = 255 let twist circle pos skipSize = for i = 0 to skipSize / 2 - 1 do let a = (pos + i) land size in let b = (pos + skipSize-1 - i) land size in CCArray.swap circle a b done let knot_logic sizes n = let circle = Array.init (size+1) Fun.id in let pos = ref 0 in let skip = ref 0 in ...
6777e988024c3d0e593124cbfe8fd12dcdf87ddab193e2f30dd0b72d586c142f
aharisu/vise
add-return.scm
(define-module vgen.compiler.add-return (use gauche.parameter) (use util.match) (use vgen.util) (use vgen.common) (export vise-phase-add-return return-add? add-return-defun )) (select-module vgen.compiler.add-return) (define (vise-phase-add-return form-list) (sexp-traverse form-list `((d...
null
https://raw.githubusercontent.com/aharisu/vise/6d0f54b0fe28e7d2c3b2b91cb3ef5ff847a11484/autoload/vgen/compiler/add-return.scm
scheme
(define-module vgen.compiler.add-return (use gauche.parameter) (use util.match) (use vgen.util) (use vgen.common) (export vise-phase-add-return return-add? add-return-defun )) (select-module vgen.compiler.add-return) (define (vise-phase-add-return form-list) (sexp-traverse form-list `((d...
4f7a3f5877430632e211ff7df90079ddf7e94a5fcc20e672d072ef2b846032cb
SchornacklabSLCU/amfinder
uIMagnifier.ml
AMFinder - ui / uIMagnifier.ml * * MIT License * Copyright ( c ) 2021 * * 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...
null
https://raw.githubusercontent.com/SchornacklabSLCU/amfinder/407c09ddda9c04a31e513b6bd32963c1d4d27388/amfbrowser/sources/ui/uIMagnifier.ml
ocaml
The centre has a red frame to grab users attention. Source X and Y were determined from a window screenshot.
AMFinder - ui / uIMagnifier.ml * * MIT License * Copyright ( c ) 2021 * * 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...
eac35719c8a8986b22eda64ffdb1a48e28601b46695b1e251948622b8a46e48d
rescript-association/reanalyze
DeadCommon.ml
(* Adapted from *) open Common module PosSet = Set.Make (struct type t = Lexing.position let compare = compare end) module Config = struct (* Turn on type analysis *) let analyzeTypes = ref true let analyzeExternals = ref false let reportUnderscore = false let reportTypesDeadOnlyInInterface = fals...
null
https://raw.githubusercontent.com/rescript-association/reanalyze/7df5d8403ae99ee884f3fbcccef1aec69fc04b9f/src/DeadCommon.ml
ocaml
Adapted from Turn on type analysis * max end position of a value reported dead * all exported declarations * all value references * all type references For each file, the number of incoming references For each number of incoming references, the files Process any remaining items in case of circular referen...
open Common module PosSet = Set.Make (struct type t = Lexing.position let compare = compare end) module Config = struct let analyzeTypes = ref true let analyzeExternals = ref false let reportUnderscore = false let reportTypesDeadOnlyInInterface = false let recursiveDebug = false let warnOnCircu...
6fb20b3e281c5ea1a5198d74023f07e7d02678ce1b08285239209555801df3f6
BillHallahan/G2
Test7.hs
{-@ LIQUID "--short-names" @-} {-@ LIQUID "--no-termination" @-} {-@ LIQUID "--prune-unsorted" @-} module Combined (f) where infixr 9 :+: {-@ die :: {v:String | false} -> a @-} die str = error ("Oops, I died!" ++ str) data List a = Emp | (:+:) a (List a) deriving (Eq, Ord, Show) @ measure...
null
https://raw.githubusercontent.com/BillHallahan/G2/4d287df8ed7ba13c06d96d4911b9eedf870e80a1/tests/LiquidInf/Artificial/Neg/Test7.hs
haskell
@ LIQUID "--short-names" @ @ LIQUID "--no-termination" @ @ LIQUID "--prune-unsorted" @ @ die :: {v:String | false} -> a @ @ invariant {v:List a | 0 <= size v} @ @ f :: Ord k => k -> b -> Map k (List b) -> Map k ({xs:List b | 0 < size xs}) @
module Combined (f) where infixr 9 :+: die str = error ("Oops, I died!" ++ str) data List a = Emp | (:+:) a (List a) deriving (Eq, Ord, Show) @ measure size : : List a - > Int size ( Emp ) = 0 size ( (: + :) x xs ) = 1 + size xs @ size (Emp) = 0 ...
78b9dd7e163f93b70c84932072293eb2bf08238473b342f3ba59d33e958205b9
ralsei/graphite
gapminder-graphite.rkt
#lang racket (require data-frame graphite) (provide gapminder-graphite) (define gapminder (df-read/csv "../data/all_gapminder.csv")) (define gapminder-graphite (graph #:data gapminder #:mapping (aes #:x "gdpPercap" #:y "lifeExp") #:x-label "GDP per capita (USD)" ...
null
https://raw.githubusercontent.com/ralsei/graphite/89f24af3a7d83019de362b52c07f15ce32aa73b1/graphite-examples/scheme-2021/gapminder-graphite.rkt
racket
#lang racket (require data-frame graphite) (provide gapminder-graphite) (define gapminder (df-read/csv "../data/all_gapminder.csv")) (define gapminder-graphite (graph #:data gapminder #:mapping (aes #:x "gdpPercap" #:y "lifeExp") #:x-label "GDP per capita (USD)" ...
bc4d690dd5c1dc485ad4c1a93305a9e691adb24c8f9fcd2c0d67721b973ec3db
reflex-frp/reflex-examples
FontAwesome.hs
{-# LANGUAGE OverloadedStrings #-} module Frontend.FontAwesome ( icon , icon_ , brandIcon , brandIcon_ , solidIcon , solidIcon_ , regularIcon , regularIcon_ , lightIcon , lightIcon_ ) where import Control.Monad (void) import Data.Text (Text) import qualified Data.Text as T import Reflex.Dom.Core ...
null
https://raw.githubusercontent.com/reflex-frp/reflex-examples/d238a419aad0e25083cb057262d0e30335449de1/frontend/src/Frontend/FontAwesome.hs
haskell
# LANGUAGE OverloadedStrings # See -to-use/on-the-web/setup/upgrading-from-version-4
module Frontend.FontAwesome ( icon , icon_ , brandIcon , brandIcon_ , solidIcon , solidIcon_ , regularIcon , regularIcon_ , lightIcon , lightIcon_ ) where import Control.Monad (void) import Data.Text (Text) import qualified Data.Text as T import Reflex.Dom.Core | The common base underlying eac...
ffa041c61c8c6069c08a2b914b2e7e7bab4d4c379c33d20b06028a281ab3065e
stathissideris/retrograde
project.clj
(defproject retrograde "0.10" :description "Retrograde is a small Clojure DSL that deals with the problem of accessing information and results from previous iterations during the **lazy** transformation of a sequence or during the **lazy** generation of an infinite sequence." :url "" :license {:name "Eclipse Publ...
null
https://raw.githubusercontent.com/stathissideris/retrograde/8d4484cee8aa77e6703a09ed2bbd046a872fd04b/project.clj
clojure
(defproject retrograde "0.10" :description "Retrograde is a small Clojure DSL that deals with the problem of accessing information and results from previous iterations during the **lazy** transformation of a sequence or during the **lazy** generation of an infinite sequence." :url "" :license {:name "Eclipse Publ...
1beca515a1701d888d33e230c1862cf688d2dce8bf2125bab96033f27a185ee6
PearsonEducation/subpub
pe_mnesia.erl
SubPub - Copyright ( c ) 2013 Pearson . 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. -module(pe_mnesia). -export([ init_schema_on_new_member/1, ensure_started_with_empty_database/0, ...
null
https://raw.githubusercontent.com/PearsonEducation/subpub/f2275c5da24d8860d206cff81d1ce87ecd956c72/src/pe_mnesia.erl
erlang
you may not use this file except in compliance with the License. TODO: Add logic to backup folder and start fresh.
SubPub - Copyright ( c ) 2013 Pearson . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; -module(pe_mnesia). -export([ init_schema_on_new_member/1, ensure_started_with_empty_database/0, wait_for_all_local_tables/1, init_schema/0, create_table/1, delet...
137ae1b497102520fe9755fc899bcf4d3d03e168774ea54e006fb7045ecfbacf
Fandoozle/AutoCAD
uline.lsp
(defun c:uline (/ sset num ent sub) (setq sset (ssget '((0 . "*text")))) (setq num 0) (repeat (sslength sset) (setq ent (entget (ssname sset num)) sub (cdr (assoc 1 ent)) ) (if (= (cdr (assoc 0 (entget (ssname sset num)))) "TEXT") (setq ; TEXT sub (vl-string-subst "" "%%U" sub) sub (vl-string-subst "" "%%u" ...
null
https://raw.githubusercontent.com/Fandoozle/AutoCAD/18480cd17c9b46718762c3155f2bca1be2e2e5e2/uline.lsp
lisp
TEXT end repeat
(defun c:uline (/ sset num ent sub) (setq sset (ssget '((0 . "*text")))) (setq num 0) (repeat (sslength sset) (setq ent (entget (ssname sset num)) sub (cdr (assoc 1 ent)) ) (if (= (cdr (assoc 0 (entget (ssname sset num)))) "TEXT") sub (vl-string-subst "" "%%U" sub) sub (vl-string-subst "" "%%u" sub) ) MTE...
1feef13521223dd55f47d6426a1449040de0eab55798245a05989678e0c66722
input-output-hk/cardano-ledger
Certificates.hs
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # module Cardano.Ledger.Conway.Delegation.Certificates ( ConwayDCert (..), transDCert, ) where import Cardano.Ledger.BaseTypes (invalidKey) import Cardano.Ledger.Binary ( DecCBOR (..), DecCBORGroup (..), EncCBOR (..), EncCBORGroup (..), decodeRecordSum, ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/49a84725c4c2ecabc80f6dac215881bc23920962/eras/conway/impl/src/Cardano/Ledger/Conway/Delegation/Certificates.hs
haskell
DCertDeleg DCertPool DCertGenesis
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # module Cardano.Ledger.Conway.Delegation.Certificates ( ConwayDCert (..), transDCert, ) where import Cardano.Ledger.BaseTypes (invalidKey) import Cardano.Ledger.Binary ( DecCBOR (..), DecCBORGroup (..), EncCBOR (..), EncCBORGroup (..), decodeRecordSum, ...
ac3b37838b6df03ea990d657771fc2319da677cc6ed50bc62eac89b11ad66721
softwarelanguageslab/maf
pipe.scm
From SOTER benchmarks ( pipe ) . Description from SOTER : ;; A simple sequence of N processes arranged in a linear pipe: every process knows only the next in the row and forwards everything to it. A property can prove is that the mailbox of each pipe_node contains at most 1 message at any given time . Adapted fr...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/be58e02c63d25cab5b48fdf7b737b68b882e9dca/test/concurrentScheme/actors/contracts/soter/pipe.scm
scheme
A simple sequence of N processes arranged in a linear pipe: every process knows only the next in the row and forwards everything to it.
From SOTER benchmarks ( pipe ) . Description from SOTER : A property can prove is that the mailbox of each pipe_node contains at most 1 message at any given time . Adapted from ( Kobayashi , Nakade and Yonezawa , 1995 ) (letrec ((pipe-node (actor "pipe-node" (f next) (message (m) ...
f87077ae8575bf1ff6ace4f78ff7ed009153803c6c1e865fbae0b503a54a90c1
gonzojive/elephant
binary-data.lisp
(in-package :db-lisp) ;; Macros ;; (defmacro with-gensyms ((&rest names) &body body) `(let ,(loop for n in names collect `(,n (make-symbol ,(string n)))) ,@body)) ;; ;; Binary types ;; ;; NOTE: Needs to be made MP safe (defvar *in-progress-objects* nil) (defconstant +null+ (code-char 0)) (defgeneric read...
null
https://raw.githubusercontent.com/gonzojive/elephant/b29a012ab75ccea2fc7fc4f1e9d5e821f0bd60bf/src/contrib/eslick/db-lisp/archive/binary-data.lisp
lisp
Binary types NOTE: Needs to be made MP safe These may not be needed; design your compound objects so that you can read offsets and parse compound objects (defgeneric read-field-value (type stream &optional base-pos) (:documentation "Index directly to a subfield of a complex type to read fro...
(in-package :db-lisp) Macros (defmacro with-gensyms ((&rest names) &body body) `(let ,(loop for n in names collect `(,n (make-symbol ,(string n)))) ,@body)) (defvar *in-progress-objects* nil) (defconstant +null+ (code-char 0)) (defgeneric read-value (type stream &key) (:documentation "Read a value of t...
7ac5909f331b8e27820862d1d2ee7bfd40a2f21d43937f35524d0a661eb2c872
apache/couchdb-couch-index
couch_index_util.erl
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 the License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-couch-index/f0a6854e578469612937a766632fdcdc52ee9c65/src/couch_index_util.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(couch_index_util). -export([root_dir/0, index_dir/2, index_file/3]). -export([load_doc/3, sort_lib/1, hexsig/1]). -include_lib("couch/include/couc...
8ee7d1dacc733e4725f1a0a8f5c8cded5323cbf393f3f0637c12ad6baab2a0d5
mariari/Misc-Lisp-Scripts
rules.lisp
(defpackage #:scripts.slex.rules (:documentation "provides rule for comparing symbols, and rules of the slex game") (:local-nicknames (:race-role :scripts.slex.race-role-map) (:trait :scripts.slex.trait-table) (:entity :scripts.slex.entity)) (:use #:cl) (:export :va...
null
https://raw.githubusercontent.com/mariari/Misc-Lisp-Scripts/055e91b6d941b0798f0cb8978fd0b5e2f16fbdfc/scripts/slex-choice/src/rules.lisp
lisp
(defpackage #:scripts.slex.rules (:documentation "provides rule for comparing symbols, and rules of the slex game") (:local-nicknames (:race-role :scripts.slex.race-role-map) (:trait :scripts.slex.trait-table) (:entity :scripts.slex.entity)) (:use #:cl) (:export :va...
ed399af8939f5528ae6e52ccf3e7caec4a54fe74fb42354c318530fd7e7139c8
sadiqj/ocaml-esp32
syserror.ml
let channel = open_out "titi:/toto"
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/testsuite/tests/runtime-errors/syserror.ml
ocaml
let channel = open_out "titi:/toto"
037288e3386096986d1aa910afe06fdb63c6db0a62b41f791ecbe4af43cdd3dc
katychuang/getting-started-with-haskell
foursquaretrends.hs
{-# LANGUAGE OverloadedStrings #-} import Network.HTTP.Conduit import Data.Aeson import Data.Aeson.Types import Network.HTTP.Conduit import Data.Char(toLower) import qualified Data.Text as T import qualified Data.Vector as V import Data.Maybe import Data.List(find, intercalate) import Network.HTTP(urlEncode) -------...
null
https://raw.githubusercontent.com/katychuang/getting-started-with-haskell/98cbead7a720a210043d027b1acb7bb73a8ef46b/tutorials/foursquaretrends.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------- ---------------------------------------------------------------------- ---------------------------------------------------------------------- ---------------------------------------------------------------------- / --...
import Network.HTTP.Conduit import Data.Aeson import Data.Aeson.Types import Network.HTTP.Conduit import Data.Char(toLower) import qualified Data.Text as T import qualified Data.Vector as V import Data.Maybe import Data.List(find, intercalate) import Network.HTTP(urlEncode) Endpoint class Endpoint a where build...
91ef5e994eccc622e9df5046b75cb3882d9f66bdca5bd9ee75df00820ea6c462
diffusionkinetics/open
Config.hs
{-# LANGUAGE OverloadedStrings #-} module Dampf.Nginx.Config where import Control.Lens import Control.Monad.IO.Class (MonadIO) import Data.Text (Text) import qualified Data.Text as T import System.FilePath import Dampf.Nginx.Types import...
null
https://raw.githubusercontent.com/diffusionkinetics/open/597ef520bb42c4747576032be2f7e3046ca66178/dampf/lib/Dampf/Nginx/Config.hs
haskell
# LANGUAGE OverloadedStrings #
module Dampf.Nginx.Config where import Control.Lens import Control.Monad.IO.Class (MonadIO) import Data.Text (Text) import qualified Data.Text as T import System.FilePath import Dampf.Nginx.Types import Dampf.Types import ...
d953cf4a0c0eeb6f278a6ea3f8abc6f1dc5ec8716dc4202c426482d47de77842
AbhinavOmprakash/snitch
project.clj
(defproject org.clojars.abhinav/snitch "0.1.13" :description "Snitch injects inline defs in your functions and multimethods. This enables a repl-based, editor-agnostic, clojure and clojurescript debugging workflow. It is inline-defs on steroids." :url "" :license {:name "EPL-2.0...
null
https://raw.githubusercontent.com/AbhinavOmprakash/snitch/6952f15100e8770c7750bb4370c895a475b6559e/project.clj
clojure
(defproject org.clojars.abhinav/snitch "0.1.13" :description "Snitch injects inline defs in your functions and multimethods. This enables a repl-based, editor-agnostic, clojure and clojurescript debugging workflow. It is inline-defs on steroids." :url "" :license {:name "EPL-2.0...
240b8c9c78f278d8c36daf1c5266b079bc87dcc3a67bfcd186fa0fb05b83500b
mhuebert/maria
blocks.cljs
(ns maria.commands.blocks (:require [lark.commands.registry :refer-macros [defcommand]] [maria.blocks.blocks :as Block] [lark.editor :as Editor] [maria.blocks.history :as history] [maria.commands.prose :as prose] [maria.commands.code :as code] [p...
null
https://raw.githubusercontent.com/mhuebert/maria/15586564796bc9273ace3101b21662d0c66b4d22/editor/src/maria/commands/blocks.cljs
clojure
(ns maria.commands.blocks (:require [lark.commands.registry :refer-macros [defcommand]] [maria.blocks.blocks :as Block] [lark.editor :as Editor] [maria.blocks.history :as history] [maria.commands.prose :as prose] [maria.commands.code :as code] [p...
2fd72020c92ca4b257279a1c7493cf3507e9d191223125bb9a5ab51667e8bcd4
haskell-numerics/hmatrix
Fitting.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # OPTIONS_GHC -fno - warn - missing - signatures # | Module : Numeric . GSL.Fitting Copyright : ( c ) 2010 License : GPL Maintainer : Stability : provisional Nonlinear Least - Squares Fitting < -Least_002dSquares-Fittin...
null
https://raw.githubusercontent.com/haskell-numerics/hmatrix/2694f776c7b5034d239acb5d984c489417739225/packages/gsl/src/Numeric/GSL/Fitting.hs
haskell
* Utilities ----------------------------------------------------------------------- | Nonlinear multidimensional least-squares fitting. ^ absolute tolerance ^ relative tolerance ^ maximum number of iterations allowed ^ function to be minimized ^ Jacobian ^ starting point ^ solution vector and optimization path...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # OPTIONS_GHC -fno - warn - missing - signatures # | Module : Numeric . GSL.Fitting Copyright : ( c ) 2010 License : GPL Maintainer : Stability : provisional Nonlinear Least - Squares Fitting < -Least_002dSquares-Fittin...
546d7a1fd9fdc0509aaa573243d3c4ea902bbdd50295a28e1547e61d6da73d7f
walkable-server/realworld-fulcro
walkable.clj
(ns conduit.handler.walkable (:require [walkable.core :as walkable] [integrant.core :as ig] [clojure.java.jdbc :as jdbc] [conduit.handler.mutations :refer [mutations]] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.core :as p])) ;; TODO: keep this ...
null
https://raw.githubusercontent.com/walkable-server/realworld-fulcro/91c73e3a27621b528906d12bc22971caa9ea8d13/src/conduit/handler/walkable.clj
clojure
TODO: keep this for dev env only
(ns conduit.handler.walkable (:require [walkable.core :as walkable] [integrant.core :as ig] [clojure.java.jdbc :as jdbc] [conduit.handler.mutations :refer [mutations]] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.core :as p])) (pc/defresolver ind...
48556038096a23f83147fabf949ed0b3ec3d95e0b41156da75009b59948b1194
mirage/ocaml-rpc
codegen.mli
type _ outerfn = | Function : 'a Idl.Param.t * 'b outerfn -> ('a -> 'b) outerfn | NoArgsFunction : 'b outerfn -> (unit -> 'b) outerfn | Returning : ('a Idl.Param.t * 'b Idl.Error.t) -> ('a, 'b) Result.t outerfn module Method : sig type 'a t = { name : string ; description : string list ; ty : 'a ou...
null
https://raw.githubusercontent.com/mirage/ocaml-rpc/2ac81a2fb20775fdd7637a193a3c573f34a9cb08/src/lib/codegen.mli
ocaml
type _ outerfn = | Function : 'a Idl.Param.t * 'b outerfn -> ('a -> 'b) outerfn | NoArgsFunction : 'b outerfn -> (unit -> 'b) outerfn | Returning : ('a Idl.Param.t * 'b Idl.Error.t) -> ('a, 'b) Result.t outerfn module Method : sig type 'a t = { name : string ; description : string list ; ty : 'a ou...
f36f94e89fe2988837822e58b21c9505e7eac1376d88bf134c4b14c3b5ae58ee
mkoppmann/eselsohr
Scraper.hs
module Lib.Infra.Adapter.Scraper ( scrapWebsite ) where import qualified Text.HTML.Scalpel as SC import Lib.Domain.Uri (Uri) type WithScraper m = MonadIO m scrapWebsite :: WithScraper m => Uri -> m Text scrapWebsite uri = fromMaybe "Empty Title" <$> scrapWebsiteDirect uri scrapWebsiteDirect :: WithScraper ...
null
https://raw.githubusercontent.com/mkoppmann/eselsohr/3bb8609199c1dfda94935e6dde0c46fc429de84e/src/Lib/Infra/Adapter/Scraper.hs
haskell
module Lib.Infra.Adapter.Scraper ( scrapWebsite ) where import qualified Text.HTML.Scalpel as SC import Lib.Domain.Uri (Uri) type WithScraper m = MonadIO m scrapWebsite :: WithScraper m => Uri -> m Text scrapWebsite uri = fromMaybe "Empty Title" <$> scrapWebsiteDirect uri scrapWebsiteDirect :: WithScraper ...
061730c327d47af0ffb46c626ade0269393709646b0cb3f9e5b4c60b0e680cb7
public-law/nevada-revised-statutes-parser
Section.hs
module Models.Section ( Section(Section, body, name, number) , SectionName , SectionNumber , SectionBody , toSectionName , toSectionNumber , toSectionBody , parseName ) where import BasicPrelude import Data.Aeson ( ToJSON ) import GHC.Generics ...
null
https://raw.githubusercontent.com/public-law/nevada-revised-statutes-parser/88a886debdab6ce5bd6cf5819c846cec1ffb9220/src/Models/Section.hs
haskell
module Models.Section ( Section(Section, body, name, number) , SectionName , SectionNumber , SectionBody , toSectionName , toSectionNumber , toSectionBody , parseName ) where import BasicPrelude import Data.Aeson ( ToJSON ) import GHC.Generics ...
16cfbb52a492b3c164bbf6f094be08967a3b529bed5eea2386fdbc152af5477c
silent-entertainment/claxiom
css.lisp
(in-package #:claxiom) (defparameter +css-input+ `(:border "2px solid #ccc" :border-right-color "#aaa" :border-bottom-color "#aaa" :border-radius 4px :height 24px :font-weight bold)) (defparameter *notebook-css* (cl-css:css `((body :font-family sans-serif :overflow-x hidden) ("button" ,@+css-input+ :min-...
null
https://raw.githubusercontent.com/silent-entertainment/claxiom/44c6122ec46859fd881772bfc24ca3a141fb153a/src/ui/http-front-end/css.lisp
lisp
(in-package #:claxiom) (defparameter +css-input+ `(:border "2px solid #ccc" :border-right-color "#aaa" :border-bottom-color "#aaa" :border-radius 4px :height 24px :font-weight bold)) (defparameter *notebook-css* (cl-css:css `((body :font-family sans-serif :overflow-x hidden) ("button" ,@+css-input+ :min-...
51179241c047023ec03a51c7030913776df234718e8bc394333e3de5be111d3a
c4-project/c4f
lexer.mli
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/litmus_c/src/lexer.mli
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
40d106710fa2fd805d5c54a12ae71866eca95366220ed17bc3b6a979c69454c7
aiya000/haskell-examples
Main.hs
# LANGUAGE InstanceSigs # class Identical a where id' :: a -> a instance Identical Int where InstanceSigs allows this type declaration id' :: Int -> Int id' = id main :: IO () main = return ()
null
https://raw.githubusercontent.com/aiya000/haskell-examples/a337ba0e86be8bb1333e7eea852ba5fa1d177d8a/Language/Haskell/Extension/InstanceSigs/Main.hs
haskell
# LANGUAGE InstanceSigs # class Identical a where id' :: a -> a instance Identical Int where InstanceSigs allows this type declaration id' :: Int -> Int id' = id main :: IO () main = return ()
d71a87df92a81fb2a0794fb27ff6dd140688b8d5c1bedb17f6e688753f123ded
gonzojive/sbcl
installer.lisp
(in-package :asdf-install) (defvar *proxy* (posix-getenv "http_proxy")) (defvar *cclan-mirror* (let ((mirror (posix-getenv "CCLAN_MIRROR"))) (or (and (not (string= mirror "")) mirror) "/"))) (defun directorify (name) input name may or may not have a training # \/ , but we know we ;; want a directory...
null
https://raw.githubusercontent.com/gonzojive/sbcl/3210d8ed721541d5bba85cbf51831238990e33f1/contrib/asdf-install/installer.lisp
lisp
want a directory Not during build, thanks. we are exceedingly unportable about proper line-endings here. test for obvious key/sig problems good signature, but perhaps not trusted #-. When the conditional is written this way, adding a new this is the external entry point
(in-package :asdf-install) (defvar *proxy* (posix-getenv "http_proxy")) (defvar *cclan-mirror* (let ((mirror (posix-getenv "CCLAN_MIRROR"))) (or (and (not (string= mirror "")) mirror) "/"))) (defun directorify (name) input name may or may not have a training # \/ , but we know we (let ((path (pathna...
8d4c1b182fcb795f604abea4f898c189f6bfc6ae0839d70ca22f260012c638ba
LaurentMazare/ocaml-minipy
value.ml
open Base open Ast open Import module Class_id : sig type t val create : unit -> t val equal : t -> t -> bool end = struct type t = int let create = let counter = ref 0 in fun () -> Int.incr counter; !counter let equal = Int.equal end module Type_ = struct type t = | None_t ...
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-minipy/e83d4bfad55819a27195109d401437faa0f65f69/src/value.ml
ocaml
open Base open Ast open Import module Class_id : sig type t val create : unit -> t val equal : t -> t -> bool end = struct type t = int let create = let counter = ref 0 in fun () -> Int.incr counter; !counter let equal = Int.equal end module Type_ = struct type t = | None_t ...
5cfe90878279fe0967b42529795a7594e3467198f7546d70289d24f082a14379
facebookarchive/pfff
unit_typeinfer_php.ml
open Common open OUnit module Ast = Ast_php_simple module Env = Env_typing_php module Infer = Typing_php module InferH = Typing_helpers_php module Builtins = Builtins_typed_php (*****************************************************************************) (* Prelude *) (*********************************************...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_php/analyze/foundation/unit_typeinfer_php.ml
ocaml
*************************************************************************** Prelude *************************************************************************** See also tests/php/typing/*.php *************************************************************************** Helpers **************************************...
open Common open OUnit module Ast = Ast_php_simple module Env = Env_typing_php module Infer = Typing_php module InferH = Typing_helpers_php module Builtins = Builtins_typed_php let normalize t = let env = Env_typing_php.make_env () in InferH.Normalize.normalize env t let get_signature file = let ast = ...
ec19b0ab558bc9f76ea1b88c9c2a5c607edf387fc67df42f149c4edeb35c0d7b
dmitryvk/sbcl-win32-threads
print-object.lisp
;;;; some basic PRINT-OBJECT functionality This software is part of the SBCL system . See the README file for ;;;; more information. This software is derived from software originally released by Xerox ;;;; Corporation. Copyright and release statements follow. Later modifications ;;;; to the software are in the pu...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/pcl/print-object.lisp
lisp
some basic PRINT-OBJECT functionality more information. Corporation. Copyright and release statements follow. Later modifications to the software are in the public domain and are provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Some of the text in this file was origin...
This software is part of the SBCL system . See the README file for This software is derived from software originally released by Xerox the PCL system from Xerox Corporation , which carried the following Copyright ( c ) 1985 , 1986 , 1987 , 1988 , 1989 , 1990 Xerox Corporation . derivative works must comply...
285cc346fcb0bcce02e31ab59d9a5b314aefc7c3e12c98d789abfe91696bc331
gvolpe/effects-playground
Cap.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Cap ( echoCap ) where import Capability.Reader import Capability.State import Capability.Stream import Control....
null
https://raw.githubusercontent.com/gvolpe/effects-playground/2b5600fe0378b6716282b59785c98a8a75445aa1/src/Cap.hs
haskell
Defining capabilities newtype to derive reader capabilities instances IO instances wrapped in newtypes Mixing capabilities Combining capabilities using deriving via
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Cap ( echoCap ) where import Capability.Reader import Capability.State import Capability.Stream import Control....
2d61ebb155278efd950b21531879620d60d0f9f4dfb1ad7aeab04a8405097cfb
rtoy/cmucl
dd.lisp
;;; Tests for the double-double arithmetic.. (defpackage :dd-tests (:use :cl :lisp-unit)) (in-package "DD-TESTS") (define-test two-prod "Test two-prod" ;; This should not overflow anymore. (assert-equal (values 1.7976931281653871d308 -4.9896007738368d291) (c::two-prod 1.7976931214684583d308 (1+ (scale-f...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/tests/dd.lisp
lisp
Tests for the double-double arithmetic.. This should not overflow anymore.
(defpackage :dd-tests (:use :cl :lisp-unit)) (in-package "DD-TESTS") (define-test two-prod "Test two-prod" (assert-equal (values 1.7976931281653871d308 -4.9896007738368d291) (c::two-prod 1.7976931214684583d308 (1+ (scale-float 1d0 -28)))))