_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
8c023a03a8b87a87004439c2f5c42c43f2f060ae098595107b3cffa5889f79a9
Octachron/olivine
refined_types.ml
type integer = private I type real = private R type uint64 = Unsigned.ULLong.t type uint = Unsigned.UInt.t module Arith = struct type t = | Float of float | Int of int | UInt64 of uint64 | UInt of uint | Complement of t | Minus of t * t let simplify x = let rec simplify = function ...
null
https://raw.githubusercontent.com/Octachron/olivine/e93df595ad1e8bad5a8af689bac7d150753ab9fb/info/refined_types.ml
ocaml
type integer = private I type real = private R type uint64 = Unsigned.ULLong.t type uint = Unsigned.UInt.t module Arith = struct type t = | Float of float | Int of int | UInt64 of uint64 | UInt of uint | Complement of t | Minus of t * t let simplify x = let rec simplify = function ...
020b820f02f31d7edfd7aba283167788be349f342c86ab8da081620e15338021
effectfully-ou/haskell-challenges
Main.hs
module Main ( main ) where import Lib import Test.Tasty import Test.Tasty.QuickCheck sumAt :: [(Dir, Bool)] -> Tree -> Int sumAt [] _ = 0 sumAt _ Leaf = 0 sumAt ((dir, keep) : path) (Fork l x r) = x' + case dir of ...
null
https://raw.githubusercontent.com/effectfully-ou/haskell-challenges/01c29016d4faaeb3bcd80c135eb48b09723a921c/h2-inspect-forced/test/Main.hs
haskell
module Main ( main ) where import Lib import Test.Tasty import Test.Tasty.QuickCheck sumAt :: [(Dir, Bool)] -> Tree -> Int sumAt [] _ = 0 sumAt _ Leaf = 0 sumAt ((dir, keep) : path) (Fork l x r) = x' + case dir of ...
26d552e9a4995b92ecaca94700d1474e3525a486fe0fc035ec348f73bb6437d3
haskell-repa/repa
Unboxed.hs
module Data.Array.Repa.Vector.Repr.Unboxed ( U, U.Unbox, Array(..) -- * Conversions , fromUnboxed , fromListUnboxed , toUnboxed) where import Data.Array.Repa.Vector.Base import Data.Array.Repa.Vector.Operators.Bulk import Data.Array.Repa.Vector.Compute.Target import qualified...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-vector/Data/Array/Repa/Vector/Repr/Unboxed.hs
haskell
* Conversions | Unboxed arrays are represented as unboxed vectors. The implementation uses @Data.Vector.Unboxed@ which is based on type families and picks an efficient, specialised representation for every element type. In particular, unboxed vectors of pairs are represented as pairs of unboxed vectors. ...
module Data.Array.Repa.Vector.Repr.Unboxed ( U, U.Unbox, Array(..) , fromUnboxed , fromListUnboxed , toUnboxed) where import Data.Array.Repa.Vector.Base import Data.Array.Repa.Vector.Operators.Bulk import Data.Array.Repa.Vector.Compute.Target import qualified Data.Vector.Unboxed ...
354ce59eb3be044cb084341b34e9f21fc0271f7edb2bd16ed028e5dafb039fab
janestreet/async_rpc_kernel
writer_with_length.ml
open Core open Poly let of_writer { Bin_prot.Type_class.write; size } = let write buf ~pos a = let len = Nat0.of_int_exn (size a) in let pos = Nat0.bin_write_t buf ~pos len in write buf ~pos a in let size a = let len = Nat0.of_int_exn (size a) in Nat0.bin_size_t len + ((len : Bin_prot.Nat0.t)...
null
https://raw.githubusercontent.com/janestreet/async_rpc_kernel/a5570852be976f649575f984eb44ac368731883e/src/writer_with_length.ml
ocaml
open Core open Poly let of_writer { Bin_prot.Type_class.write; size } = let write buf ~pos a = let len = Nat0.of_int_exn (size a) in let pos = Nat0.bin_write_t buf ~pos len in write buf ~pos a in let size a = let len = Nat0.of_int_exn (size a) in Nat0.bin_size_t len + ((len : Bin_prot.Nat0.t)...
0d33c810eaba1b5882752a87fdf025e5810f2b76d24fe227897701c94f08fe8b
juxt/fuzz
server.clj
(ns fuzz.server (:require [compojure.core :refer [GET defroutes]] [compojure.route :refer [resources]] [modular.ring :refer [WebRequestHandler]] [stencil.core :refer [render-file]] [fuzz.sse :as sse] [stencil.loader] [clojure.core.cache] ...
null
https://raw.githubusercontent.com/juxt/fuzz/688b64b8750137402857e01e89c0c0307ea87425/src/clj/fuzz/server.clj
clojure
(ns fuzz.server (:require [compojure.core :refer [GET defroutes]] [compojure.route :refer [resources]] [modular.ring :refer [WebRequestHandler]] [stencil.core :refer [render-file]] [fuzz.sse :as sse] [stencil.loader] [clojure.core.cache] ...
a19c3db7e776eacd976a28bd54a0b4fc30a2320f01fd30d35b9c4c9b9b673562
PrincetonUniversity/lucid
Wellformed.ml
open Syntax open SyntaxUtils open Batteries open Collections open Printing (* This file contains any well-formedness conditions that aren't guaranteed by the syntax of the language *) Checks we do before typechecking : - No globals declared inside modules - No constructors / global declarations for ...
null
https://raw.githubusercontent.com/PrincetonUniversity/lucid/8ca93fd803caaa80cf2e301154791564dd3fed7e/src/lib/frontend/Wellformed.ml
ocaml
This file contains any well-formedness conditions that aren't guaranteed by the syntax of the language This restriction isn't actually necessary, I don't think. Next up: Check that symbolic declarations don't use any non-symbolic sizes. We could remove this constraint if we wanted by inlining concrete sizes ...
open Syntax open SyntaxUtils open Batteries open Collections open Printing Checks we do before typechecking : - No globals declared inside modules - No constructors / global declarations for non - global types - Only certain types allowed as externs ( just ints ? I guess bools too ? ) - All e...
01da4bab66f08caf24844d2a7655a114299f3aba36fdcb917f3d1b144ecb8932
namin/logically
nsl_test.clj
(ns logically.nominal.nsl_test (:use [logically.nominal.nsl] :reload) (:refer-clojure :exclude [==]) (:use [clojure.core.logic :exclude [is] :as l] [clojure.core.logic.nominal :exclude [fresh hash] :as nom]) (:use [clojure.test])) (deftest test-all-1 (is (= (run* [q] (ns-typicalo [] q)) '(([e...
null
https://raw.githubusercontent.com/namin/logically/49e814e04ff0f5f20efa75122c0b869e400487ac/test/logically/nominal/nsl_test.clj
clojure
(ns logically.nominal.nsl_test (:use [logically.nominal.nsl] :reload) (:refer-clojure :exclude [==]) (:use [clojure.core.logic :exclude [is] :as l] [clojure.core.logic.nominal :exclude [fresh hash] :as nom]) (:use [clojure.test])) (deftest test-all-1 (is (= (run* [q] (ns-typicalo [] q)) '(([e...
46ded29a3155de5c7a609194e367ed190dc618696946c354af03741558cc6d54
psibi/yesod-rest
Application.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # # LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - orphans # module Application ( getApplicationDev , appMain , develMai...
null
https://raw.githubusercontent.com/psibi/yesod-rest/01deecd92e10378926085e418a35bdc09e8e0b18/src/Application.hs
haskell
# LANGUAGE OverloadedStrings # * for DevelMain * for GHCI Import all relevant handler modules here. Don't forget to add new modules to your cabal file! comments there for more details. | This function allocates resources (such as a database connection pool), performs initialization and returns a foundation datat...
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # # LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - orphans # module Application ( getApplicationDev , appMain , develMain , makeFoundation , makeLo...
0fcd7b505d5b18da1906668ae3abe3484ee74dce5a94a744908d1a2ea274b3be
blindglobe/clocc
url.lisp
;;; url - handle url's and parse HTTP ;;; Copyright ( C ) 1998 - 2009 by This is Free Software , covered by the GNU GPL ( v2 + ) ;;; See ;;; $ I d : , v 2.68 2009/12/02 16:30:02 sds Exp $ ;;; $Source: /cvsroot/clocc/clocc/src/cllib/url.lisp,v $ (eval-when (:compile-toplevel :load-toplevel :execute) (requir...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/cllib/url.lisp
lisp
url - handle url's and parse HTTP See $Source: /cvsroot/clocc/clocc/src/cllib/url.lisp,v $ `index-t' `kwd', `+kwd+' `string-beg-with', `split-string' `read-trim', `file-size-t', `file-size' `mesg', `elapsed', `get-int-time', `list-format' `to-list' `pr-secs' `dttm->string', `string->dttm' `base64-encode'...
Copyright ( C ) 1998 - 2009 by This is Free Software , covered by the GNU GPL ( v2 + ) $ I d : , v 2.68 2009/12/02 16:30:02 sds Exp $ (eval-when (:compile-toplevel :load-toplevel :execute) (require :cllib-base (translate-logical-pathname "clocc:src;cllib;base")) (require :cllib-withtype (translate-logical...
e94c2f8049796674e9b08eb068df0261a2f568b388a4908166cbefde43d0d43c
purescript/pursuit
Utils.hs
module Handler.Utils where import Import import TimeUtils import qualified Data.Aeson.Parser as AP import qualified Data.Conduit.Zlib as Zlib import Data.Streaming.Zlib (ZlibException(..)) import qualified Data.Conduit.Attoparsec as Attoparsec import Web.Cookie (setCookieName, setCookieValue, setCookieMaxAge) import ...
null
https://raw.githubusercontent.com/purescript/pursuit/12863d56e1aed35e19b8ddbf036d833ae3334072/src/Handler/Utils.hs
haskell
if no such file exists. | Like getDirectoryContents, except that: * It includes the directory that you supplied, so that you can safely pass the results to readFile etc * It removes "." and ".." from the results * It works for any MonadIO | Sets a message which is displayed just once, at the next time the ...
module Handler.Utils where import Import import TimeUtils import qualified Data.Aeson.Parser as AP import qualified Data.Conduit.Zlib as Zlib import Data.Streaming.Zlib (ZlibException(..)) import qualified Data.Conduit.Attoparsec as Attoparsec import Web.Cookie (setCookieName, setCookieValue, setCookieMaxAge) import ...
d68af07352007dd4fba8c34d633205df53028686f39a0eb45a1d3a76bff64345
alan-j-hu/camyll
main.ml
open Camyll open Cmdliner let guard f x = try Ok (f x) with | Failure e -> Error e | Invalid_argument e -> Error e | Sys_error e -> Error e | Unix.Unix_error (e, cmd, "") -> Error (cmd ^ ": " ^ Unix.error_message e) | Unix.Unix_error (e, cmd, p) -> Error (cmd ^ " " ^ p ^ ": " ^ Unix.error_message e) l...
null
https://raw.githubusercontent.com/alan-j-hu/camyll/7caa78b2930e77c40c3906f383a5264a99588821/bin/main.ml
ocaml
open Camyll open Cmdliner let guard f x = try Ok (f x) with | Failure e -> Error e | Invalid_argument e -> Error e | Sys_error e -> Error e | Unix.Unix_error (e, cmd, "") -> Error (cmd ^ ": " ^ Unix.error_message e) | Unix.Unix_error (e, cmd, p) -> Error (cmd ^ " " ^ p ^ ": " ^ Unix.error_message e) l...
255b3b2d338af0714a9c3d32d6f223210cc1400db0e73001d69a6261cda51b79
testdouble/baizen
account_trailer.clj
(ns baizen.formats.account-trailer (:require [baizen.formats :refer :all])) (defrecord AccountTrailer [line] BaiFormat (fields [_] [:record-code :account-control-total :number-of-records]) (prepare [this line] (update-in line [(index-of this :number-of-records)] drop-slash)))
null
https://raw.githubusercontent.com/testdouble/baizen/66bc3da3b660bc88317e1be6fce266a95db883fb/src/baizen/formats/account_trailer.clj
clojure
(ns baizen.formats.account-trailer (:require [baizen.formats :refer :all])) (defrecord AccountTrailer [line] BaiFormat (fields [_] [:record-code :account-control-total :number-of-records]) (prepare [this line] (update-in line [(index-of this :number-of-records)] drop-slash)))
348e9dec6022edff6c3c66b1e1f90eb9d126e1c9379739ac41ec9c1c956d812e
janestreet/memtrace_viewer_with_deps
main.ml
open Core open Async type t = { vanilla_rpc_server : Tcp.Server.inet ; web_server : Simple_web_server.t } let subscribe () () = let read, write = Pipe.create () in (don't_wait_for @@ let rec write_to_pipe i = if i % 1000 = 0 then print_s [%message (i : int)]; let%bind () = Pipe.write write i...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/incr_dom/example/test_backpressure/server/main.ml
ocaml
open Core open Async type t = { vanilla_rpc_server : Tcp.Server.inet ; web_server : Simple_web_server.t } let subscribe () () = let read, write = Pipe.create () in (don't_wait_for @@ let rec write_to_pipe i = if i % 1000 = 0 then print_s [%message (i : int)]; let%bind () = Pipe.write write i...
4251d8eb0cf4439fe2d29e3c26663462a0414952244ec27b2501b1cdb9e18aa3
exoscale/clojure-kubernetes-client
v1_load_balancer_status.clj
(ns clojure-kubernetes-client.specs.v1-load-balancer-status (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-load-balancer-ingress :refer :all] ) (:import (java.io File))) (declare v1-load-balancer-status-data v1-load-balanc...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_load_balancer_status.clj
clojure
(ns clojure-kubernetes-client.specs.v1-load-balancer-status (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-load-balancer-ingress :refer :all] ) (:import (java.io File))) (declare v1-load-balancer-status-data v1-load-balanc...
1cb0a050c65399f52d02a69142ca699bf9d20fab0fc0fac23c4c281ce9e7da7b
jarohen/yoyo
cljs.clj
(ns {{name}}.service.cljs (:require [yoyo.cljs :as cljs] [yoyo.system :as ys])) (def cljs-config {:source-paths ["ui-src"] :main '{{name}}.ui.app :web-context-path "/js" :output-dir "target/cljs/" :dev {:optimizations :none :pretty-print? true} :build {:optimizations :advan...
null
https://raw.githubusercontent.com/jarohen/yoyo/b579d21becd06b5330dee9f5963708db03ce1e25/templates/yoyo-webapp/src/leiningen/new/yoyo_webapp/clj/cljs.clj
clojure
(ns {{name}}.service.cljs (:require [yoyo.cljs :as cljs] [yoyo.system :as ys])) (def cljs-config {:source-paths ["ui-src"] :main '{{name}}.ui.app :web-context-path "/js" :output-dir "target/cljs/" :dev {:optimizations :none :pretty-print? true} :build {:optimizations :advan...
3e6448174c99b67af73151d3e94d8d670dec88c919860f8625e61dc7924e9220
active-group/active-clojure
test_condition_test.cljc
(ns active.clojure.test-condition-test #?(:cljs (:require-macros [active.clojure.test-condition] [cljs.test :refer (is deftest run-tests testing)])) (:require [active.clojure.test-condition] #?(:clj [clojure.test :refer :all]) #?(:cljs [cljs.test]) [ac...
null
https://raw.githubusercontent.com/active-group/active-clojure/44050a1292fa610dde732d5fbfc42c37ad976d3a/test/active/clojure/test_condition_test.cljc
clojure
deactivate the tests here, as they are intended to fail uncomment if you want to run them Note: should be doable on cljs, but does not work there currently. failure is success
(ns active.clojure.test-condition-test #?(:cljs (:require-macros [active.clojure.test-condition] [cljs.test :refer (is deftest run-tests testing)])) (:require [active.clojure.test-condition] #?(:clj [clojure.test :refer :all]) #?(:cljs [cljs.test]) [ac...
6070320fe711d438776acf56f71ca83c3e304650947e2b95bc0e8a3b7641cfc7
kepler16/gx.cljc
main.clj
(ns main (:require [app] [clojure.edn :as edn] [k16.gx.beta.core :as gx] ;; this ns contains helpers for managing systems [k16.gx.beta.system :as gx.system])) (defn load-system! [] ;; register our system, so later we can get it by name (gx.system/register! ::sys...
null
https://raw.githubusercontent.com/kepler16/gx.cljc/a8da6a48339696df0c630f14b4e62d6a484646bd/examples/simple/src/main.clj
clojure
this ns contains helpers for managing systems register our system, so later we can get it by name :context key is optional, fallbacks to gx/default-context we don't want semi-started system on production check for failures, print and exit if any start system stop system full reload view list of failures (if an...
(ns main (:require [app] [clojure.edn :as edn] [k16.gx.beta.core :as gx] [k16.gx.beta.system :as gx.system])) (defn load-system! [] (gx.system/register! ::system {:context gx/default-context :graph (edn/read-string (slurp "resources/config.edn"))})) (defn start! [] ...
35ceab6445eb3d7ff48cea26f7c18c8d0bb75f14919e5f22b33ab34842cb7ec3
haskell-mafia/tinfoil
Internal.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoImplicitPrelude # # LANGUAGE ForeignFunctionInterface # {-# LANGUAGE BangPatterns #-} This module is based on the implementation from ' scrypt ' package and used under the terms of the BSD3 license . module Tinfoil.KDF.Scrypt.Internal( ScryptParams(..) , sc...
null
https://raw.githubusercontent.com/haskell-mafia/tinfoil/f46b2ea0b9984ac9a97073932b5584ce0a2e0554/src/Tinfoil/KDF/Scrypt/Internal.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE BangPatterns # This implementation originally from the `scrypt` package; modified to password salt N, r, p result buffer
# LANGUAGE NoImplicitPrelude # # LANGUAGE ForeignFunctionInterface # This module is based on the implementation from ' scrypt ' package and used under the terms of the BSD3 license . module Tinfoil.KDF.Scrypt.Internal( ScryptParams(..) , scryptParams , scrypt , encodeScryptParams , decodeScryptPara...
530a192fbc96b2119f2ea72168e6e54e7579988d2a8b274d800d2a0a456abc65
picty/parsifal
test_base64.ml
open OUnit open Parsifal open BasePTypes open Base64 Generic functions (* TODO: Move those funs elsewhere *) let random_string len () = let res = Bytes.make len '\x00' in for i = 0 to (len - 1) do Bytes.set res i (char_of_int (Random.int 256)) done; Bytes.to_string res (* TODO: Use unsafe_to_string *)...
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/core/unit/test_base64.ml
ocaml
TODO: Move those funs elsewhere TODO: Use unsafe_to_string TODO: Move those funs elsewhere TODO: Add tests on invalid headers, and tests on invalid base64 chars
open OUnit open Parsifal open BasePTypes open Base64 Generic functions let random_string len () = let res = Bytes.make len '\x00' in for i = 0 to (len - 1) do Bytes.set res i (char_of_int (Random.int 256)) done; let ntimes n f () = for _i = 1 to n do f (); done let str_wrap parse_fun s = exact_parse ...
e4965bcbbf597d1403f5e36348819430cd93548e7347b44799b7cbbef1ba39de
goodell/cppmem
nat_num.mli
type num = int val (<) : num -> num -> bool val (<=) : num -> num -> bool val (>) : num -> num -> bool val (>=) : num -> num -> bool val (+) : num -> num -> num val (-) : num -> num -> num val ( * ) : num -> num -> num val (/) : num -> num -> num val (mod) : num -> num -> num val (land) : num -> num -> num val (lor) :...
null
https://raw.githubusercontent.com/goodell/cppmem/eb3ce19b607a5d6ec81138cd8cacd236f9388e87/nat_num.mli
ocaml
type num = int val (<) : num -> num -> bool val (<=) : num -> num -> bool val (>) : num -> num -> bool val (>=) : num -> num -> bool val (+) : num -> num -> num val (-) : num -> num -> num val ( * ) : num -> num -> num val (/) : num -> num -> num val (mod) : num -> num -> num val (land) : num -> num -> num val (lor) :...
d75cc6f9ff759aeae22016a86ef7f179b6cf821baf47f31dc655e06431d1c3ee
Raynes/bultitude
core.clj
(ns bultitude.core (:require [clojure.java.io :as io] [clojure.string :as string] [dynapath.util :as dp]) (:import (java.util.jar JarFile JarEntry) (java.util.zip ZipException) (java.io File BufferedReader PushbackReader InputStreamReader) (clojure.lang Dynam...
null
https://raw.githubusercontent.com/Raynes/bultitude/fcf65d0e6edb1727421ef619e6ad6b4614c8c7a9/src/bultitude/core.clj
clojure
(ns bultitude.core (:require [clojure.java.io :as io] [clojure.string :as string] [dynapath.util :as dp]) (:import (java.util.jar JarFile JarEntry) (java.util.zip ZipException) (java.io File BufferedReader PushbackReader InputStreamReader) (clojure.lang Dynam...
dacb26e2e8324e6f1b28d31957e5fa9839af94c6f25116a62b2139a5fa3cb1d3
wgnet/herd
herd_simple_formats_tests.erl
-module(herd_simple_formats_tests). -include_lib("eunit/include/eunit.hrl"). %% eunit tests get_date_test() -> ?assertEqual({2014, 5, 20}, herd_simple_formats:get_date("2014-05-20")), ?assertEqual({2014, 5, 20}, herd_simple_formats:get_date("2014-5-20")), ?assertEqual({1970, 1, 1}, herd_simple_formats:ge...
null
https://raw.githubusercontent.com/wgnet/herd/934847589dcf5a6d2b02a1f546ffe91c04066f17/test/herd_simple_formats_tests.erl
erlang
eunit tests
-module(herd_simple_formats_tests). -include_lib("eunit/include/eunit.hrl"). get_date_test() -> ?assertEqual({2014, 5, 20}, herd_simple_formats:get_date("2014-05-20")), ?assertEqual({2014, 5, 20}, herd_simple_formats:get_date("2014-5-20")), ?assertEqual({1970, 1, 1}, herd_simple_formats:get_date("1970-1-...
3fa3091a956fc9256ce08f2112ab2a83eaccbecf190e53f12334e6a08ff15921
philnguyen/soft-contract
ex-07.rkt
#lang racket (define (f x y) (if (if (number? x) (string? y) #f) (+ x (string-length y)) 0)) (provide/contract [f (any/c any/c . -> . number?)])
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/octy/ex-07.rkt
racket
#lang racket (define (f x y) (if (if (number? x) (string? y) #f) (+ x (string-length y)) 0)) (provide/contract [f (any/c any/c . -> . number?)])
35480b9ecea0f73bebf4904e9f599e99f9ad03babaacdb785f22792aaa87bc1a
draperlaboratory/VIBES
versions.mli
(***************************************************************************) (* *) Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. (* *) (* This...
null
https://raw.githubusercontent.com/draperlaboratory/VIBES/7f978d66d0b022d1a9262fdfc608b7a2b7c95dff/tools/vibes-constants/lib/versions.mli
ocaml
************************************************************************* This file is provided under the license found in the LICENSE file in the top-level director...
Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. This research was developed with funding from the Defense Advanced Research Projects Agency ( DARPA ) . val vibes_playground : string val vibes_parse : string val vibes_opt : string val vib...
2cb4479cb3e52bf2b61e8e2c6faf84918c8d5e4909b577046305080a6e4c76c7
dgrnbrg/piplin
walk.clj
(ns piplin.walk (:refer-clojure :exclude [compile cast]) (:use [piplin types protocols])) (defn walk "Takes an expr, a function to reduce over with a depth first postwalk, and an initial value and reduces the expr." [expr f init] ) (defn compile "Takes an expr, a function that takes an expr and a map ...
null
https://raw.githubusercontent.com/dgrnbrg/piplin/01f3ac72ccc904b7789dfd6e46277c179e11002c/src/piplin/walk.clj
clojure
(ns piplin.walk (:refer-clojure :exclude [compile cast]) (:use [piplin types protocols])) (defn walk "Takes an expr, a function to reduce over with a depth first postwalk, and an initial value and reduces the expr." [expr f init] ) (defn compile "Takes an expr, a function that takes an expr and a map ...
6a876b9d8fe2637b5963498c99ca23ed409e0fb47c868e31c5b6cf9296b2850a
Helium4Haskell/helium
ForgetClose5.hs
main = [(3, 4 { f x = x -- volgorde posities en haakjes in foutmelding!
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/parser/ForgetClose5.hs
haskell
volgorde posities en haakjes in foutmelding!
main = [(3, 4 { f x = x
2463504cc9b9c69fba3442f4304902a9c9514849c749915f91a69bfaf2b1aa7f
clklein/decompose-plug
non-syntax-directed-match-test.rkt
#lang racket (require "non-syntax-directed-match.rkt" "shared-test-cases.rkt" "common.rkt" redex/reduction-semantics) (define (all-matches lang pat term) (remove-duplicates (judgment-holds (matches ,lang ,term ,pat b) b))) (define test-non-syntax-directed (match-lambda [(test:match...
null
https://raw.githubusercontent.com/clklein/decompose-plug/5bb1acff487d055386c075581b395eb3cfdc12e9/semantics/non-syntax-directed-match-test.rkt
racket
#lang racket (require "non-syntax-directed-match.rkt" "shared-test-cases.rkt" "common.rkt" redex/reduction-semantics) (define (all-matches lang pat term) (remove-duplicates (judgment-holds (matches ,lang ,term ,pat b) b))) (define test-non-syntax-directed (match-lambda [(test:match...
8c9dd9c62829dae190c351493d4f7303438ffbe3ba3751e1ef84175016d6d05e
GaloisInc/ivory
Bits.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE FlexibleContexts # module Ivory.Language.Bits where import Ivory.Language.Cast import Ivory.Language.IBool import Ivory.Language.Sint import Ivory.Language.Type import Ivory.Language.Uint import Ivory.La...
null
https://raw.githubusercontent.com/GaloisInc/ivory/53a0795b4fbeb0b7da0f6cdaccdde18849a78cd6/ivory/src/Ivory/Language/Bits.hs
haskell
XXX do not export XXX what should the type of the shift count argument be? having it be polymorphic is kind of a pain. for now, just have it be the same type as the value being shifted. smallest bit type. discards the upper bits of the input value to return a smaller type, and is only defined for unsigned inte...
# LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE FlexibleContexts # module Ivory.Language.Bits where import Ivory.Language.Cast import Ivory.Language.IBool import Ivory.Language.Sint import Ivory.Language.Type import Ivory.Language.Uint import Ivory.La...
495d45a45b771933d8bc4a74b67442299717da0b6cabe937050b06a8122eb684
sgbj/MaximaSharp
nforma.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/nforma.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; Either its ty...
(in-package :maxima) (macsyma-module nforma) (declare-top (special 1//2 -1//2 displayp in-p)) (defmvar $powerdisp nil) (defmvar $pfeformat nil) (defmvar $%edispflag nil) (defmvar $exptdispflag t) (defmvar $sqrtdispflag t) (defmvar $negsumdispflag t) (setq in-p nil) (defmfun nformat (form &aux (p nil)) (cond ((a...
33cb3bb2f563a7a1ab47e21c739be2ecdf873b7ee0887a8b9721411ba490e8b8
clojure-interop/google-cloud-clients
ProductSearchClient$ListProductSetsPage.clj
(ns com.google.cloud.vision.v1.ProductSearchClient$ListProductSetsPage (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.vision.v1 ProductSearchClient$ListProductSetsPage])) (defn create-page-async "context - `com.google.api.gax.rpc.PageContext` future-response - `com.google.api.core....
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.vision/src/com/google/cloud/vision/v1/ProductSearchClient%24ListProductSetsPage.clj
clojure
(ns com.google.cloud.vision.v1.ProductSearchClient$ListProductSetsPage (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.vision.v1 ProductSearchClient$ListProductSetsPage])) (defn create-page-async "context - `com.google.api.gax.rpc.PageContext` future-response - `com.google.api.core....
d274ae7d2c99c080e6556dd1eb1e448be7bc480ecf80f8866289925f694337a5
YoshikuniJujo/test_haskell
TryDataFiles.hs
# LANGUAGE TemplateHaskell # # LANGUAGE BlockArguments # # OPTIONS_GHC -Wall -fno - warn - tabs # module Template.TryDataFiles where import Language.Haskell.TH -- import Paths_tribial_trials runIO do putStrLn "\n*** TEMPLATE TRY DATA FILES ***" -- print =<< readFile =<< getDataFileName "th/some.txt" putStrLn "" ...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/fb315318815d33951bcabba7b00b6a0aa392dce7/tribial/tribial-trials/src/Template/TryDataFiles.hs
haskell
import Paths_tribial_trials print =<< readFile =<< getDataFileName "th/some.txt"
# LANGUAGE TemplateHaskell # # LANGUAGE BlockArguments # # OPTIONS_GHC -Wall -fno - warn - tabs # module Template.TryDataFiles where import Language.Haskell.TH runIO do putStrLn "\n*** TEMPLATE TRY DATA FILES ***" putStrLn "" pure []
5eb74d6cc3bd72488704dfdd26b733c238752cb37f0bb54da03a21dc5eec18ba
rudolph-miller/cl-gists
10.list-gist-forks.lisp
(let ((id "gistid")) (list-gist-forks id)) = > ( # S(GIST ... ) ... ) (let ((gist (git-gist "gistid"))) (list-gist-forks gist)) = > ( # S(GIST ... ) ... )
null
https://raw.githubusercontent.com/rudolph-miller/cl-gists/bcf3687f0af8b2eb5acaeda5db94d67446e56daf/examples/10.list-gist-forks.lisp
lisp
(let ((id "gistid")) (list-gist-forks id)) = > ( # S(GIST ... ) ... ) (let ((gist (git-gist "gistid"))) (list-gist-forks gist)) = > ( # S(GIST ... ) ... )
c6b3c08b29815acaf09e71fafbacd6d5dd09f58dadd29fa64c0778d94dab7abc
FreeProving/free-compiler
InliningTests.hs
-- | This module contains tests for "FreeC.IR.Inlining". module FreeC.IR.InliningTests where import Test.Hspec import FreeC.IR.Inlining ( inlineExpr, inlineFuncDecls ) import FreeC.Monad.Class.Testable ( shouldSucceedWith ) import FreeC.Test.Environment import ...
null
https://raw.githubusercontent.com/FreeProving/free-compiler/6931b9ca652a185a92dd824373f092823aea4ea9/src/test/FreeC/IR/InliningTests.hs
haskell
| This module contains tests for "FreeC.IR.Inlining". | Test group for 'inlineExpr' and 'inlineFuncDecls'.
module FreeC.IR.InliningTests where import Test.Hspec import FreeC.IR.Inlining ( inlineExpr, inlineFuncDecls ) import FreeC.Monad.Class.Testable ( shouldSucceedWith ) import FreeC.Test.Environment import FreeC.Test.Expectations import FreeC.Test.Par...
dc99a8a725feadfeee13ad1a0cc0036d7a2bf44d9620c97023f3a0476c188650
rescript-lang/rescript-compiler
Annotation.ml
type import = {name: string; importPath: ImportPath.t} type attributePayload = | BoolPayload of bool | FloatPayload of string | IdentPayload of Longident.t | IntPayload of string | StringPayload of string | TuplePayload of attributePayload list | UnrecognizedPayload type t = GenType | GenTypeOpaque | No...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/4b269fb012e56f1f4cd04bdec0864a610e9a900e/jscomp/gentype/Annotation.ml
ocaml
type import = {name: string; importPath: ImportPath.t} type attributePayload = | BoolPayload of bool | FloatPayload of string | IdentPayload of Longident.t | IntPayload of string | StringPayload of string | TuplePayload of attributePayload list | UnrecognizedPayload type t = GenType | GenTypeOpaque | No...
3199f4fa035a5bef7c95777714b0d450afd6a5f38d4532bba51d46de304d0d11
cffi/cffi
defcfun.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; defcfun.lisp --- Tests function definition and calling. ;;; Copyright ( C ) 2005 - 2007 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , t...
null
https://raw.githubusercontent.com/cffi/cffi/677cabae64b181330a3bbbda9c11891a2a8edcdc/tests/defcfun.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- defcfun.lisp --- Tests function definition and calling. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish,...
Copyright ( C ) 2005 - 2007 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (in-package #:c...
5846ae76408200e0899b229f688cc3806e3bd25cf995936b704fe2ed8229d8bb
dbuenzli/uucp
gen_hangul.ml
--------------------------------------------------------------------------- Copyright ( c ) 2018 The uucp 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/uucp/09d2186c0828465dbe37ed976c8d8ab7a5e7eeed/support/gen_hangul.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2018 The uucp programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
e521c9a54cf0cc6583318bbad2e4f9a2eaf31615c208abb72261c5c76b5f1441
orthecreedence/cl-rethinkdb
package.lisp
(defpackage :cl-rethinkdb-reql (:use :cl :cl-rethinkdb-util) steal some things from CL (:shadow #:make-array #:replace #:delete #:get #:map #:nth #:union #:reduce #:count #:min #:max #:merge ...
null
https://raw.githubusercontent.com/orthecreedence/cl-rethinkdb/f435e72dce7f900f599ade193859a202fd1ac33e/package.lisp
lisp
only export our DSL functions
(defpackage :cl-rethinkdb-reql (:use :cl :cl-rethinkdb-util) steal some things from CL (:shadow #:make-array #:replace #:delete #:get #:map #:nth #:union #:reduce #:count #:min #:max #:merge ...
e5814437b49b72e8307c732b1f2dc43ed228d91fde6082778ac182261763a59f
elastic/eui-cljs
icon_logstash_queue.cljs
(ns eui.icon-logstash-queue (:require ["@elastic/eui/lib/components/icon/assets/logstash_queue.js" :as eui])) (def logstashQueue eui/icon)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_logstash_queue.cljs
clojure
(ns eui.icon-logstash-queue (:require ["@elastic/eui/lib/components/icon/assets/logstash_queue.js" :as eui])) (def logstashQueue eui/icon)
2842cf2021780a7478d540cb718858416f2434b511fe73e7ca168245848ea37f
hasktorch/hasktorch
Index.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Torch.Index ( slice, lslice, ) where import Control.Monad ((>=>)) import Data.Void import Language.Haskell.TH.Lib import Language.Haskell.TH.Qu...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/c34996b0a401a5b1b98b5774e892fde88adaa079/hasktorch/src/Torch/Index.hs
haskell
# LANGUAGE OverloadedStrings # When you take the odd-numbered element of tensor with `tensor[1::2]` in python, When you take the odd-numbered elements of tensor with `tensor[1::2]` in python, you can write `tensor & [lslice|1::2|] ~. 2`.
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TemplateHaskell # module Torch.Index ( slice, lslice, ) where import Control.Monad ((>=>)) import Data.Void import Language.Haskell.TH.Lib import Language.Haskell.TH.Quote (QuasiQuoter (..)) import Langu...
1b7845f8af91c2ccf3e6676dcd95ccb9aacdc0d4a0ac1c3c431040dfb3eb6be2
facebook/flow
hint.ml
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/76e0432e2af25082222381746c0e52e99f06e79d/src/common/hint.ml
ocaml
This kind of hint expects that the `typeof e <: hint` when `hint` is an available hint on `e` This kind of hint doesn't have the same restriction as `ExpectedTypeHint`. * Instead, it is designed to provide some context when there wasn't an ExpectedTypeHint available. * e.g. We use the type of `a` to contextual...
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
0f08b6e8e77ced90a9ad6da5d60389fd638ed80ca8c73e22a0fc4f31851eca83
kishanov/re-frame-datatable
cell_rendering.cljs
(ns re-frame-datatable-docs.sections.cell-rendering (:require [re-frame-datatable-docs.components :as components] [re-frame-datatable-docs.formatters :as formatters] [re-frame-datatable-docs.table-views :as table-views] [cljs.repl :as r] [re-frame-datatable-docs.subs :...
null
https://raw.githubusercontent.com/kishanov/re-frame-datatable/d17f8fc7e5834e777b5bc3fbc257d1f7d5b74b3a/docs/src/cljs/re_frame_datatable_docs/sections/cell_rendering.cljs
clojure
(ns re-frame-datatable-docs.sections.cell-rendering (:require [re-frame-datatable-docs.components :as components] [re-frame-datatable-docs.formatters :as formatters] [re-frame-datatable-docs.table-views :as table-views] [cljs.repl :as r] [re-frame-datatable-docs.subs :...
e36d6a37fa77e758a8f35c1f6ec1495c2a11b9f073332517c10f271b602adee8
clojure-interop/aws-api
ClassLoaderHelper.clj
(ns com.amazonaws.util.ClassLoaderHelper (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.util ClassLoaderHelper])) (defn *values "Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as fol...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.util/src/com/amazonaws/util/ClassLoaderHelper.clj
clojure
false if the opposite is true. - `boolean` false if the opposite is true. - `boolean` never null - `java.lang.Class<?>` false if the opposite is true. - `boolean`
(ns com.amazonaws.util.ClassLoaderHelper (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.util ClassLoaderHelper])) (defn *values "Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as fol...
6c14d74126e820be48eaf60510a1a5afde78a8ceace752b7d7a5445a01e7ef9f
AtillaE/Exago
exago_utils.erl
%%%------------------------------------------------------------------- @author < > @author < > @author Copyright ( c ) 2009,2010 Erlang Solutions formerly Erlang Training & Consulting %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modifi...
null
https://raw.githubusercontent.com/AtillaE/Exago/39fd7172ae232981b2aaa6a2c9e9d1d68a3b6963/apps/exago/src/exago_utils.erl
erlang
------------------------------------------------------------------- All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this li...
@author < > @author < > @author Copyright ( c ) 2009,2010 Erlang Solutions formerly Erlang Training & Consulting * Neither the name of the Erlang Solutions nor the names of its THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABI...
d52099756b07a1ffefc509c84c18fca223665ea785d7d4cbf2d4c72a6d83d5dc
tonymorris/fp-course
Main.hs
module Main ( main ) where import Network.Server.Chat.Chat import Network.Server.Chat.Loop main :: IO a main = chat
null
https://raw.githubusercontent.com/tonymorris/fp-course/73a64c3d4d0df58654a1a9a0ee9d9b11c3818911/projects/NetworkServer/haskell/src/Network/Server/Chat/Main.hs
haskell
module Main ( main ) where import Network.Server.Chat.Chat import Network.Server.Chat.Loop main :: IO a main = chat
b415d18a3d46b1eae286de817ea0fa1ff78ee06cc070cf0bd0430f0df6ab80f8
beerendlauwers/hakyll-extra
Metadata.hs
module Hakyll.Translation.Format.Metadata (loadTranslationsFromMetadata, collectMetadataTranslations, createTranslationContextFromMetaData, loadAllTranslationsFromMetadata) where import Haky...
null
https://raw.githubusercontent.com/beerendlauwers/hakyll-extra/cc4741a9781412108926ac2d7cf70f52a5ee68a3/src/Hakyll/Translation/Format/Metadata.hs
haskell
| Given a pattern, gets all the metadata values from every item that matches the pattern. | Given a list of metadata, appends them all together and places them in a map-like structure. | Given a pattern and a language, will produce a Context with translations in them. You can use it like this: > forM_ langs $ \l...
module Hakyll.Translation.Format.Metadata (loadTranslationsFromMetadata, collectMetadataTranslations, createTranslationContextFromMetaData, loadAllTranslationsFromMetadata) where import Haky...
bc1cea449dad4c4d75d1584a25f335d88464281f3a6b42be1b3c4409c639a2b7
greglook/clj-pgp
project.clj
(defproject mvxcvi/clj-pgp "1.1.0" :description "Wrapper for the Bouncy Castle OpenPGP library" :url "-pgp" :license {:name "Public Domain" :url "/"} :aliases {"coverage" ["with-profile" "+coverage" "cloverage"] "fuzz" ["with-profile" "+tool" "run" "-m" "clj-pgp.tool.fuzz"]} :deploy-branche...
null
https://raw.githubusercontent.com/greglook/clj-pgp/24944d4765c68d9f70ebc9c068c997c7d32f7fa6/project.clj
clojure
(defproject mvxcvi/clj-pgp "1.1.0" :description "Wrapper for the Bouncy Castle OpenPGP library" :url "-pgp" :license {:name "Public Domain" :url "/"} :aliases {"coverage" ["with-profile" "+coverage" "cloverage"] "fuzz" ["with-profile" "+tool" "run" "-m" "clj-pgp.tool.fuzz"]} :deploy-branche...
743df0b6bc81407a4223aaa27ab0dc8ef6bec5c72d09a509f15f9645611f3669
disteph/cdsat
memo.ml
open Async open General open Sums open HCons open Patricia open Patricia_tools open Kernel open Top.Messages open Top.Sassigns open Theories.Register open Tools.PluginsTh open Interfaces module Make(WB : WhiteBoardExt) = struct open WB open DS HConsed version of WB 's messages module M = struct ...
null
https://raw.githubusercontent.com/disteph/cdsat/1b569f3eae59802148f4274186746a9ed3e667ed/src/portfolio/plugins.mld/concur.mld/memo.ml
ocaml
***************************************************************** ***************************************************************** Constraints are unsat messages. Print.print ["memo",0] (fun p-> let WB(_,Propa(justif,_)) = msg in
open Async open General open Sums open HCons open Patricia open Patricia_tools open Kernel open Top.Messages open Top.Sassigns open Theories.Register open Tools.PluginsTh open Interfaces module Make(WB : WhiteBoardExt) = struct open WB open DS HConsed version of WB 's messages module M = struct ...
ee4ea6168947fee4a2c2ddee8eeb006fa3e65afb40a8e05df4c2145fd43d55a0
rizo/snowflake-os
selectgen.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/asmcomp/selectgen.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ type environment = (Ident.t, ...
66dc551bc899b3af7564fe12bf74d7f033d02f2a73a0344ac1876683fe302519
robert-strandh/Cluster
jmp.lisp
(in-package #:cluster) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Mnemonic JMP ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Short jump with the target specified by an 8 - bit signed ;;; displacement. ;;; ;;; Opcodes: EB (define-instruction "JMP" :modes (32 ...
null
https://raw.githubusercontent.com/robert-strandh/Cluster/370410b1c685f2afd77f959a46ba49923a31a33c/x86-instruction-database/jmp.lisp
lisp
Mnemonic JMP displacement. Opcodes: EB displacement. Opcodes: E9 address in GPR or memory. Opcodes: FF
(in-package #:cluster) Short jump with the target specified by an 8 - bit signed (define-instruction "JMP" :modes (32 64) :operands ((label 8)) :opcodes (#xEB) :encoding (label)) Near jump with the target specified by a 16 - bit or 32 - bit signed (define-instruction "JMP" :modes (32) :operands ((l...
2dec1d0b52fa72bea74dba2b8fa2e15ca69e0551d33a3efa97671427ead642f2
runtimeverification/haskell-backend
JsonRpc.hs
| Copyright : ( c ) Runtime Verification , 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2021 License : BSD-3-Clause -} module Kore.Log.JsonRpc ( LogJsonRpcServer (..), ) where import Control.Monad.Logger ( Loc (..), LogLevel (..), LogSource, LogStr, ...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/389dc03798cdbb0a13907fa1251686d8a61d8b3e/kore/src/Kore/Log/JsonRpc.hs
haskell
| Copyright : ( c ) Runtime Verification , 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2021 License : BSD-3-Clause -} module Kore.Log.JsonRpc ( LogJsonRpcServer (..), ) where import Control.Monad.Logger ( Loc (..), LogLevel (..), LogSource, LogStr, ...
3b490763c6664df97ce154f7a8938eb1918510f05a481e9b7d27d309ce36f825
nasa/Common-Metadata-Repository
umm_collection_models.clj
;; WARNING: This file was generated from umm-c-json-schema.json. Do not manually modify. (ns cmr.umm-spec.models.umm-collection-models "Defines UMM-C clojure records." (:require [cmr.common.dev.record-pretty-printer :as record-pretty-printer])) (defrecord UMM-C [ ;; Information required to properly cite the c...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/77ce1f460d5810849c5303d28e15c83ecfd56159/umm-spec-lib/src/cmr/umm_spec/models/umm_collection_models.clj
clojure
WARNING: This file was generated from umm-c-json-schema.json. Do not manually modify. Information required to properly cite the collection in professional scientific literature. This element provides information for constructing a citation for the item itself, and is not designed for listing bibliographic reference...
(ns cmr.umm-spec.models.umm-collection-models "Defines UMM-C clojure records." (:require [cmr.common.dev.record-pretty-printer :as record-pretty-printer])) (defrecord UMM-C [ CollectionCitations controlled vocabulary for spatial keywords is maintained in the Keyword Management System ( KMS ) . The Spatia...
e6f2f5734d3b5de8755582b8d2c8b7185c21899bc2f17ba7994352d7bd14ea6a
lambdaisland/deep-diff2
diff_impl.cljc
(ns lambdaisland.deep-diff2.diff-impl (:require [clojure.data :as data] [lambdaisland.clj-diff.core :as seq-diff])) (declare diff diff-similar) (defrecord Mismatch [- +]) (defrecord Deletion [-]) (defrecord Insertion [+]) (defprotocol Diff (-diff-similar [x y])) ;; For property based testing (defpro...
null
https://raw.githubusercontent.com/lambdaisland/deep-diff2/e9d13c29d727e954602b7abf813472a3f5a1653c/src/lambdaisland/deep_diff2/diff_impl.cljc
clojure
For property based testing Loop over deletions, if they match up with an insertion, turn them into a replacement. This could be a reduce over (sort del) tbh but it's already a matching insertion
(ns lambdaisland.deep-diff2.diff-impl (:require [clojure.data :as data] [lambdaisland.clj-diff.core :as seq-diff])) (declare diff diff-similar) (defrecord Mismatch [- +]) (defrecord Deletion [-]) (defrecord Insertion [+]) (defprotocol Diff (-diff-similar [x y])) (defprotocol Undiff (left-undiff [x...
5f8b9f59d0e40b052b7eb74bc4e8600486f0da91f64b77df18dd2c7700dade46
mirage/mirage-tcpip
tcp.ml
type error = [ `Timeout | `Refused] type write_error = [ error | Mirage_flow.write_error] let pp_error ppf = function | `Timeout -> Fmt.string ppf "connection attempt timed out" | `Refused -> Fmt.string ppf "connection attempt was refused" let pp_write_error ppf = function | #Mirage_flow.write_error as e -> Mir...
null
https://raw.githubusercontent.com/mirage/mirage-tcpip/3ab30ab7b43dede75abf7b37838e051e0ddbb23a/src/core/tcp.ml
ocaml
type error = [ `Timeout | `Refused] type write_error = [ error | Mirage_flow.write_error] let pp_error ppf = function | `Timeout -> Fmt.string ppf "connection attempt timed out" | `Refused -> Fmt.string ppf "connection attempt was refused" let pp_write_error ppf = function | #Mirage_flow.write_error as e -> Mir...
f4b617e4015d4ed430b87c88f7885baadf40c1f775e5236faddd838d40ce9799
r0man/sqlingvo
test.cljc
(ns sqlingvo.test (:require #?(:clj [clojure.test :refer :all] :cljs [cljs.test :refer-macros [is]]) [clojure.spec.alpha :as s] [clojure.spec.test.alpha :as stest] [sqlingvo.core :refer [sql]] [sqlingvo.db :as db])) (def db (db/db :postgresql)) (stest/i...
null
https://raw.githubusercontent.com/r0man/sqlingvo/1f13624ed60ec0866fe51311d92da73638708172/test/sqlingvo/test.cljc
clojure
(ns sqlingvo.test (:require #?(:clj [clojure.test :refer :all] :cljs [cljs.test :refer-macros [is]]) [clojure.spec.alpha :as s] [clojure.spec.test.alpha :as stest] [sqlingvo.core :refer [sql]] [sqlingvo.db :as db])) (def db (db/db :postgresql)) (stest/i...
8a29ae8ea62d7bfe5fcc2adee8e0ba472333b3f8e4b826206b35c6f4ca5a5d5a
unnohideyuki/bunny
sample112.hs
f s = -- [c | c <- s, c <= 'd'] let ok c = if c <= 'd' then [c] else [] in concatMap ok s main = putStrLn $ f "abcdefgh"
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample112.hs
haskell
[c | c <- s, c <= 'd']
let ok c = if c <= 'd' then [c] else [] in concatMap ok s main = putStrLn $ f "abcdefgh"
c7ca70bf4b2ed8607ea194c152a5b2a321415c45915f297aff22608f428f9713
spawngrid/htoad
ec_gb_trees.erl
%%%------------------------------------------------------------------- @author < > 2011 Erlware , LLC . %%% @doc %%% This provides an implementation of the type ec_dictionary using %%% gb_trees as a backin %%% @end %%% @see ec_dictionary %%% @see gb_trees %%%-----------------------------------------------------...
null
https://raw.githubusercontent.com/spawngrid/htoad/f0c7dfbd911b29fb0c406b7c26606f553af11194/deps/erlware_commons/src/ec_gb_trees.erl
erlang
------------------------------------------------------------------- @doc This provides an implementation of the type ec_dictionary using gb_trees as a backin @end @see ec_dictionary @see gb_trees ------------------------------------------------------------------- API =============================================...
@author < > 2011 Erlware , LLC . -module(ec_gb_trees). -behaviour(ec_dictionary). -export([new/0, has_key/2, get/2, get/3, add/3, remove/2, has_value/2, size/1, to_list/1, from_list/1, keys/1]). -export_type([dictionary/2]). -opaque dictionary(K, V) :: {non_neg_integer(), ec_gb_tree_node...
edfeb4a1f239b2ac3d105f7bf5fbb95b4332796ecf9e3ee87f5192382e8bd11e
bufferswap/ViralityEngine
graph.lisp
(in-package #:virality) Implementation of the various GRAPH structures (defun make-analyzed-graph (&rest init-args) (apply #'make-instance 'analyzed-graph init-args)) (defun make-graphdef (name &rest init-args) (apply #'make-instance 'graphdef :name name init-args)) (defun make-graphdef-depends-on (name &re...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/src/core-early/graph.lisp
lisp
annotation classes / protocol for different graph categories For category COMPONENT-DEPENDENCY For category COMPONENT-PACKAGE-ORDER A crappy kind of pattern matching. maybe other cases needed? no hyperedges hyperedges found Then the code to perform the parsing. check this when condition for validity. the :ver...
(in-package #:virality) Implementation of the various GRAPH structures (defun make-analyzed-graph (&rest init-args) (apply #'make-instance 'analyzed-graph init-args)) (defun make-graphdef (name &rest init-args) (apply #'make-instance 'graphdef :name name init-args)) (defun make-graphdef-depends-on (name &re...
838c8cba87087d3c041247fcf2617318b8fffbb467f4d610bac33c55639031ae
atlas-engineer/nyxt
keyscheme.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (nyxt:define-package :nyxt/keyscheme-mode (:documentation "All modes that set `keyscheme' should inherit from this mode. Ensures that a single keybindings mode, such as `nyxt/emacs-mode', is enabled.")) (in-package :nyxt/k...
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/7eeee5b4ac56660cfc973f18f93184b5a86fdc83/source/mode/keyscheme.lisp
lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (nyxt:define-package :nyxt/keyscheme-mode (:documentation "All modes that set `keyscheme' should inherit from this mode. Ensures that a single keybindings mode, such as `nyxt/emacs-mode', is enabled.")) (in-package :nyxt/k...
ca8d0a4b849575734bb68ce5dfa8f22a517ae78366c8c2cff2c418a8988e43bd
stepcut/ircbot
Bot.hs
module Network.IRC.Bot ( module Network.IRC.Bot.BotMonad , module Network.IRC.Bot.Commands , module Network.IRC.Bot.Core , module Network.IRC.Bot.Log , module Network.IRC.Bot.Parsec , module Network.IRC.Bot.Run ) where import Network.IRC.Bot.BotMonad import Network.IRC.Bot.Commands import N...
null
https://raw.githubusercontent.com/stepcut/ircbot/13c43bb31bf87eeeb9f96c0f2210c21041ecc2b6/Network/IRC/Bot.hs
haskell
module Network.IRC.Bot ( module Network.IRC.Bot.BotMonad , module Network.IRC.Bot.Commands , module Network.IRC.Bot.Core , module Network.IRC.Bot.Log , module Network.IRC.Bot.Parsec , module Network.IRC.Bot.Run ) where import Network.IRC.Bot.BotMonad import Network.IRC.Bot.Commands import N...
218348df006c9d60e6118dad57c5dbc73f5650046bc4ff0f98c83327f75647a3
Javran/advent-of-code
Day15.hs
module Javran.AdventOfCode.Y2019.Day15 ( ) where import Control.Monad import Control.Monad.State.Strict import Data.List import qualified Data.Map.Strict as M import qualified Data.Sequence as Seq import qualified Data.Set as S import Javran.AdventOfCode.ColorfulTerminal import Javran.AdventOfCode.GridSystem.RowThen...
null
https://raw.githubusercontent.com/Javran/advent-of-code/676ef13c2f9d341cf7de0f383335a1cf577bd73d/src/Javran/AdventOfCode/Y2019/Day15.hs
haskell
| known part of the floor | droid location | unknown coords adjacent to known floor cells. | suspended program | location of the oxygen system. Find path to the closest unknown, from current droid location. compute path xs, terminate if the set is empty. Perform last step. nothing new to expand to i...
module Javran.AdventOfCode.Y2019.Day15 ( ) where import Control.Monad import Control.Monad.State.Strict import Data.List import qualified Data.Map.Strict as M import qualified Data.Sequence as Seq import qualified Data.Set as S import Javran.AdventOfCode.ColorfulTerminal import Javran.AdventOfCode.GridSystem.RowThen...
bcab0296907062638accd63bc1b6e1c515276ff01a73e6db51c1d8fa8faae5a1
penpot/penpot
comments.clj
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 (c) KALEIDOS INC (ns app.rpc.commands.comments (:require [app.common.data.macros :as dm] [app.common.exceptions :as ex]...
null
https://raw.githubusercontent.com/penpot/penpot/42e97f8be105af41757f8e896b93a99032a2b72a/backend/src/app/rpc/commands/comments.clj
clojure
Copyright (c) KALEIDOS INC --- GENERAL PURPOSE INTERNAL HELPERS ") QUERY COMMANDS --- COMMAND: Get Comment Threads --- COMMAND: Get Unread Comment Threads --- COMMAND: Get Single Comment Thread --- COMMAND: Retrieve Comments --- COMMAND: Get file comments users All the profiles that had comment the file, pl...
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 /. (ns app.rpc.commands.comments (:require [app.common.data.macros :as dm] [app.common.exceptions :as ex] [app.common.geom.point :as gp...
748d4cd4bcba963f482229b362f33f8bffa7610e58a1f381a2bb2a203b355be0
webyrd/n-grams-for-synthesis
ephemeron-tree.scm
;;;; Ephemerons Implementation sketch , with guaranteed worst - case extra GC time Copyright ( C ) 2010 - -2015 R Campbell . ;;; ;;; 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...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-124/ephemeron-tree.scm
scheme
Ephemerons Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following ...
Implementation sketch , with guaranteed worst - case extra GC time Copyright ( C ) 2010 - -2015 R Campbell . files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOF...
e5739c72ff799270075dd26dbefe7326146a391bbe42b1664de5c8d9b88445c5
zcaudate/hara
provider_test.clj
(ns hara.security.base.provider-test (:use hara.test) (:require [hara.security.base.provider :refer :all])) ^{:refer hara.security.base.provider/list-providers :added "3.0"} (comment "list all security providers" (list-providers) => ["Apple" "SUN" "SunEC" "SunJCE" "SunJGSS" "SunJSSE" "SunPCSC" "SunRsaSi...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/security/base/provider_test.clj
clojure
(ns hara.security.base.provider-test (:use hara.test) (:require [hara.security.base.provider :refer :all])) ^{:refer hara.security.base.provider/list-providers :added "3.0"} (comment "list all security providers" (list-providers) => ["Apple" "SUN" "SunEC" "SunJCE" "SunJGSS" "SunJSSE" "SunPCSC" "SunRsaSi...
317611bdfaedea952ed856424527c454cc59e62bed8a17636c91d6d2e6ac2b43
lpeterse/haskell-ssh
Connection.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE MultiWayIf #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE ExistentialQuantification # {-# LANGUAGE RankNTypes #-} # LANGUAGE GeneralizedNewtypeDeriving # module Network.SSH.Server.Co...
null
https://raw.githubusercontent.com/lpeterse/haskell-ssh/d1a614b6bf30c4932ee5a66efcae6e71680b4819/src/hssh-internal/Network/SSH/Server/Connection.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE RankNTypes # ^ This callback will be executed for every session request. ^ This callback will be executed for every direct-tcpip request. Return a `DirectTcpIpHandler` or `Nothing` to reject the request (default). Any requests that would exce...
# LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE ExistentialQuantification # # LANGUAGE GeneralizedNewtypeDeriving # module Network.SSH.Server.Connection ( Connection () , ConnectionConfig (..) , SessionHandler (..) ,...
4fa7a63d971b87a9cf346256e71cce94c4c1cb60c63719af90b8313dedbab60c
huangjs/cl
dlasd6.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l ,...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/share/lapack/lapack/dlasd6.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l , v 1.48 2008/08/24 00:56:27 rt...
1de3b4099540c2a34d311deaccaf4fc9c0bcb1acbaae761e15f0b6a0fdc2f3a1
rbkmoney/erlang_capi_v2
capi_idempotency_tests_SUITE.erl
-module(capi_idempotency_tests_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("stdlib/include/assert.hrl"). -include_lib("capi_dummy_data.hrl"). -include_lib("damsel/include/dmsl_payment_processing_thrift.hrl"). -export([all/0]). -export([groups/0]). -export([init_per_suite/1]). -export([end_per_su...
null
https://raw.githubusercontent.com/rbkmoney/erlang_capi_v2/8381da653aa1e3dd8242b50efe50ce522b2064c1/apps/capi/test/capi_idempotency_tests_SUITE.erl
erlang
starting/stopping TESTS
-module(capi_idempotency_tests_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("stdlib/include/assert.hrl"). -include_lib("capi_dummy_data.hrl"). -include_lib("damsel/include/dmsl_payment_processing_thrift.hrl"). -export([all/0]). -export([groups/0]). -export([init_per_suite/1]). -export([end_per_su...
dfdea579af98ed631fd58f15ffbff82ccdcfe895e78194cae740f94f2632919a
rescript-lang/rescript-editor-support
SomeFile.ml
let x = 10 let y = 20 let m x y = let z = x + y in z
null
https://raw.githubusercontent.com/rescript-lang/rescript-editor-support/a9fa49fb99cd54370a99a6cea900603120072bd1/examples/example-project/src/SomeFile.ml
ocaml
let x = 10 let y = 20 let m x y = let z = x + y in z
b4bfa8a6b0f3028e81fd09b9771cb8716b000bb8d037c4830be4ff4531add288
generateme/fastmath
d.clj
(ns fastmath.fields.d (:require [fastmath.core :as m] [fastmath.random :as r] [fastmath.vector :as v] [fastmath.fields.utils :as u]) (:import [fastmath.vector Vec2] [fastmath.java Array])) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defn dlaw...
null
https://raw.githubusercontent.com/generateme/fastmath/ac8b339eaa755c1208f446adda1a15fb335762fb/src/fastmath/fields/d.clj
clojure
(ns fastmath.fields.d (:require [fastmath.core :as m] [fastmath.random :as r] [fastmath.vector :as v] [fastmath.fields.utils :as u]) (:import [fastmath.vector Vec2] [fastmath.java Array])) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defn dlaw...
0af836a3bd99fc714bc242f2108f86809e9312f64877e9290124462ba70f1ab1
richhickey/clojure-contrib
literals.clj
Copyright ( c ) . All rights reserved . The use and ;; distribution terms for this software are covered by the Eclipse Public ;; License 1.0 (-1.0.php) which can ;; be found in the file epl-v10.html at the root of this distribution. By ;; using this software in any fashion, you are agreeing to be bound by t...
null
https://raw.githubusercontent.com/richhickey/clojure-contrib/40b960bba41ba02811ef0e2c632d721eb199649f/src/main/clojure/clojure/contrib/datalog/literals.clj
clojure
distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or an...
Copyright ( c ) . All rights reserved . The use and A Clojure implementation of Datalog -- Literals straszheimjeffrey ( gmail ) Created 25 Feburary 2009 (ns clojure.contrib.datalog.literals (:use clojure.contrib.datalog.util) (:use clojure.contrib.datalog.database) (:use [clojure.set :only (inte...
aaf3858f552b8c5c21c19460f98c0423b27b9d78f2b1d052e43c834696da0dab
cleary/livecode
function_helpers.hs
-- / -- tidal_function_helpers.tidal -- load modules required for rolled -- this should be in next release after 1.7.10 :m + Data.List Data.Maybe Sound.Tidal.Utils import Data.Char as Char -- :{ -- rolledWith :: ([Event a] -> [EventF (ArcF Time) b]) -> Pattern a -> Pattern b -- rolledWith f = withEvents aux ...
null
https://raw.githubusercontent.com/cleary/livecode/43fe4d14eea492ce7cd57e4eb6f03c2a7fab2864/global/function_helpers.hs
haskell
/ tidal_function_helpers.tidal load modules required for rolled this should be in next release after 1.7.10 :{ rolledWith :: ([Event a] -> [EventF (ArcF Time) b]) -> Pattern a -> Pattern b rolledWith f = withEvents aux shiftIt n d (Event c (Just (Arc s e)) a' v) = do a'...
:m + Data.List Data.Maybe Sound.Tidal.Utils import Data.Char as Char where aux es = concatMap ( steppityIn ) ( groupBy ( \a b - > whole a = = whole b ) $ sortOn whole ( f es ) ) steppityIn xs = mapMaybe ( \(n , x ) - > shiftIt n ( length xs ) x ) $ enumerate xs :{ let where ...
61e4678e5f0ef943b9da1935aea88d32132965ca697c31901b69a5e80692a059
3b/3bgl-misc
opticl.lisp
(in-package #:3bgl-opticl) ;;; routines for transferring opticl images to/from opengl (defun guess-element-type (a &optional default) (let ((element-type (array-element-type a))) ;; clisp doesn't have specialized float or fixnum arrays, so check ;; an element when element-type is T (when (eq element-ty...
null
https://raw.githubusercontent.com/3b/3bgl-misc/e3bf2781d603feb6b44e5c4ec20f06225648ffd9/opticl/opticl.lisp
lisp
routines for transferring opticl images to/from opengl clisp doesn't have specialized float or fixnum arrays, so check an element when element-type is T variant of opticl:pixel for flat ffi arrays (with dimensions copied from an opticl array) not sure which way this should be interpreted, currently NIL means "ju...
(in-package #:3bgl-opticl) (defun guess-element-type (a &optional default) (let ((element-type (array-element-type a))) (when (eq element-type 't) (setf element-type (typecase (row-major-aref a 0) (double-float 'double-float) (single-float 'single-float) ...
5c883368169fe4997365c7ad120ba294a084cf4bd4e11a1198fb07df08d84d5e
jumarko/web-development-with-clojure
dev.cljs
;--- Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , ; courses, books, articles, and the like. Contact us if you are in doubt. ; We make no guarantees that this code is fit fo...
null
https://raw.githubusercontent.com/jumarko/web-development-with-clojure/dfff6e40c76b64e9fcd440d80c7aa29809601b6b/code/picture-gallery-a/env/dev/cljs/picture_gallery/dev.cljs
clojure
--- courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. ---
Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , (ns ^:figwheel-no-load picture-gallery.app (:require [picture-gallery.core :as core] [figwheel.client :as figwhee...
8923aa37eb7c60a2bd7bd5da79f23680c8b3385953b6d2bb76a370587f1b9bdb
tonyday567/chart-unit
ADT.hs
# LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE OverloadedLabels # # OPTIONS_GHC -Wall # # OPTIONS_GHC -fno - warn - orphans # -- | Experimental Chart ADT -- module Chart.ADT ( ChartOptions(..) , defaultChartOptions , ChartSpec(..) , renderSpec , renderChart , rangeSpec , rangeChart...
null
https://raw.githubusercontent.com/tonyday567/chart-unit/5c0aefee55383b7f2dc3d0745dc92f0bd9b0f24a/chart-unit/src/Chart/ADT.hs
haskell
| Experimental Chart ADT | (compound) Chart options | extract the range of a single specification | necessary Binary instances, including orphans from elsewhere
# LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE OverloadedLabels # # OPTIONS_GHC -Wall # # OPTIONS_GHC -fno - warn - orphans # module Chart.ADT ( ChartOptions(..) , defaultChartOptions , ChartSpec(..) , renderSpec , renderChart , rangeSpec , rangeChart ) where import Chart.Arrow ...
3852a40ac2eacc5f70ee6a784208de2d937993bf56063fca1da471d568302191
uncomplicate/fluokitten
getting_started_test.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) or later ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be boun...
null
https://raw.githubusercontent.com/uncomplicate/fluokitten/65dc74881533a202871d9235c52db89c26c0d41d/test/uncomplicate/fluokitten/articles/getting_started_test.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) or later which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) . All rights reserved . (ns uncomplicate.fluokitten.articles.getting-started-test (:use [uncomplicate.fluokitten jvm core test]) (:use [midje.sweet :exclude [just]])) (facts "These expressions are used as examples in the Getting Started guide at the Fluokitten web site." (fma...
2b56f351f7403cccae71481935bf6e8ba546565af04fe462876082fb54de948f
fizruk/miso-aframe
Component.hs
# LANGUAGE RecordWildCards # module Miso.AFrame.Core.Component where import Control.Monad (join) import GHCJS.Types import GHCJS.Foreign (jsNull) import GHCJS.Foreign.Callback import GHCJS.Marshal.Pure (PToJSVal(..)) import GHCJS.Marshal (ToJSVal(..), fromJSVal) import JavaScript.Array import Miso (prop) import Miso.S...
null
https://raw.githubusercontent.com/fizruk/miso-aframe/eb608e86fd71f01b397cde04124ff3a949e843be/src/Miso/AFrame/Core/Component.hs
haskell
# LANGUAGE RecordWildCards # module Miso.AFrame.Core.Component where import Control.Monad (join) import GHCJS.Types import GHCJS.Foreign (jsNull) import GHCJS.Foreign.Callback import GHCJS.Marshal.Pure (PToJSVal(..)) import GHCJS.Marshal (ToJSVal(..), fromJSVal) import JavaScript.Array import Miso (prop) import Miso.S...
a9ac6bb707c11161e30e05a68ad1d87a293f1388902c5f43f22469b9739d65fb
static-analysis-engineering/codehawk
jCHSystemSettings.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpre/jCHSystemSettings.ml
ocaml
chutil jchlib jchpre classes with this package prefix are not loaded
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
7b75419fe44d71d8187267c762b2eaa8eda68da444d723a22cb682e29a12c4e2
haskell/xhtml
BlockTable.hs
----------------------------------------------------------------------------- -- | Module : Text . . Copyright : ( c ) , and the Oregon Graduate Institute of Science and Technology , 1999 - 2001 -- License : BSD-style (see the file LICENSE) Maintainer : < > -- Sta...
null
https://raw.githubusercontent.com/haskell/xhtml/41d2570ebd5d1f456b5d1fb56513cd267fe79842/Text/XHtml/BlockTable.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : Stable An XHTML combinator library These combinators can be used to build formatted 2D tables. The specific target usage is for HTML table generation. --------------------...
Module : Text . . Copyright : ( c ) , and the Oregon Graduate Institute of Science and Technology , 1999 - 2001 Maintainer : < > Portability : Portable Examples of use : |Hello| Note : single has type single : : a - > BlockTable a S...
6907b8d9b77e7e0f84c0bb705d61175a60d8d376e77c2ef9dc8a9c1c91a66ef6
jaredly/unison.rs
delimcc.scm
; delimcc: Control operators for delimited continuations ; ; This library implements the variety of delimited control operators for R5RS Scheme . The code implements the superset of the interface proposed by Dybvig , , and . ; This library is the transcription into Scheme of the delimcc library of OCaml: ; #cam...
null
https://raw.githubusercontent.com/jaredly/unison.rs/78e660aae7f77b96e373efdd65f7d5d8da4822c3/chicken/delimcc.scm
scheme
delimcc: Control operators for delimited continuations This library implements the variety of delimited control operators This library is the transcription into Scheme of the delimcc library of OCaml: #caml-shift good performance should be expected only on the systems that implement The library interface, bas...
for R5RS Scheme . The code implements the superset of the interface proposed by Dybvig , , and . Although the present code should work on any R5RS Scheme system , call / cc efficiently , such as Chez Scheme , Scheme48 , Gambit , Larceny . returning the result of the last one ( unless take_subcont was exec...
388e5254f11102530d19923dcc206c90e03e144ec0f01d2c2409f2cd63e6c1aa
racket/racket-pkg-website
live.rkt
#lang racket/base ;; Default configuration; should be suitable for live deployment. (require "../src/main.rkt") (define var (getenv "PKGSERVER_DATADIR")) (main (hash 'port 8444 'reloadable? #t 'var-path var 'package-index-url (format "file://~a/public_html/pkg-index-sta...
null
https://raw.githubusercontent.com/racket/racket-pkg-website/d25b68c125698d944446f8e0a945eff85caebccd/configs/live.rkt
racket
Default configuration; should be suitable for live deployment. To configure a split, S3-based setup, comment out the following lines: 'static-output-type 'file 'static-content-target-directory (build-path var "public_html/pkg-catalog-static") 'dynamic-urlprefix "/catalog" ... and uncomment and adjust these ins...
#lang racket/base (require "../src/main.rkt") (define var (getenv "PKGSERVER_DATADIR")) (main (hash 'port 8444 'reloadable? #t 'var-path var 'package-index-url (format "file://~a/public_html/pkg-index-static/pkgs-all.json.gz" var) 'backend-baseurl ":9004" ...
423c8698237277a0639a897ad20f1f7ecd7e5b86eba2c4d9b2e9fd0c74963bc5
keyvanakbary/marko
views.cljs
(ns marko.views (:require [reagent.core :as r] [marko.events :as events] [marko.components :as components] [re-frame.core :as rf] [marko.subs :as subs])) (defn editor-panel [] (let [content (rf/subscribe [::subs/editor-content])] [:div [:div [components/editor {:value @content ...
null
https://raw.githubusercontent.com/keyvanakbary/marko/392602803795d7a5ab4dc8242c1625aca9b0cc20/src/marko/views.cljs
clojure
(ns marko.views (:require [reagent.core :as r] [marko.events :as events] [marko.components :as components] [re-frame.core :as rf] [marko.subs :as subs])) (defn editor-panel [] (let [content (rf/subscribe [::subs/editor-content])] [:div [:div [components/editor {:value @content ...
1ab7ab277b6c07369384b4a17ea81882a51aedd9d0b83eee8da7f9c906447af2
ryukzak/nitta
Tests.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PartialTypeSignatures # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE NoMonomorphismRestriction # | Module : NITTA.Frontends . Lua . Tests Description : Copyright : ( c ) , 2021 Li...
null
https://raw.githubusercontent.com/ryukzak/nitta/1e1e571fd73b2cb9bea4e5781bf658e7edd264c0/test/NITTA/Frontends/Lua/Tests.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # | a = 1 + 2 | a = 1 / 2 | a, _ = 1 / 2 | a = 1 + 2 + 3 -----|:---| -----|:---|:-----| -----|:--------|:-----| FIXME: function counter(i) debug.trace("%.0f", i) i = i + 1 counter(i) end [ "i" , "0" ...
# LANGUAGE DataKinds # # LANGUAGE PartialTypeSignatures # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE NoMonomorphismRestriction # | Module : NITTA.Frontends . Lua . Tests Description : Copyright : ( c ) , 2021 License : : Stability : experimental Module ...
b9b0e6d383c7408d1d82757b900580a57f575f60905b71c5fc1f7df38f80a70b
ucsd-progsys/liquidhaskell
FunctorList.hs
{-@ LIQUID "--expect-any-error" @-} {-@ LIQUID "--reflection" @-} module FunctorList where import Prelude hiding (fmap, id) import Language.Haskell.Liquid.ProofCombinators -- | Functor Laws : -- | fmap-id fmap id ≡ id | fmap - distrib h . fmap ( g ◦ h ) ≡ ◦ fmap h @ reflect fmap @ fmap :: (a -> b) -> L a ...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/benchmarks/popl18/nople/neg/FunctorList.hs
haskell
@ LIQUID "--expect-any-error" @ @ LIQUID "--reflection" @ | Functor Laws : | fmap-id fmap id ≡ id @ reflect id @ @ reflect compose @ @ fmap_id' :: {v:Proof | fmap id /= id } @ @ fmap_id :: xs:L a -> {v:Proof | fmap id xs /= id xs } @ | Distribution @ data L [llen] @ @ measure llen @ @ llen :: L a -> Nat @ @ meas...
module FunctorList where import Prelude hiding (fmap, id) import Language.Haskell.Liquid.ProofCombinators | fmap - distrib h . fmap ( g ◦ h ) ≡ ◦ fmap h @ reflect fmap @ fmap :: (a -> b) -> L a -> L b fmap f xs | llen xs == 0 = N | otherwise = C (f (hd xs)) (fmap f (tl xs)) id :: a -> a id x = x comp...
b09a2a60f5e256cfc6d2e2e65c7a6b5638ce2c8955b8dfb63339217f4be50cca
turquoise-hexagon/euler
solution.scm
(import (chicken io) (chicken string) (matchable) (srfi 1)) (define (import-input) (map (lambda (str) (map (lambda (_) (apply list _)) (let ((_ (string-split str ","))) (chop (map string->number _) 2)))) (read-lines))) (define (sign a b c) (match-let (...
null
https://raw.githubusercontent.com/turquoise-hexagon/euler/f3bcb81a958a4f5015c1bb8bc6faff29811d25c5/src/spoilers/102/solution.scm
scheme
(import (chicken io) (chicken string) (matchable) (srfi 1)) (define (import-input) (map (lambda (str) (map (lambda (_) (apply list _)) (let ((_ (string-split str ","))) (chop (map string->number _) 2)))) (read-lines))) (define (sign a b c) (match-let (...
3e8dfc4c78d10e36c32d5048dc3941679797c8cbe59c42ab81b88a0e78d0b148
esl/MongooseIM
mongoose_domain_core_SUITE.erl
-module(mongoose_domain_core_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("eunit/include/eunit.hrl"). -define(STATIC_PAIRS, [{<<"example.cfg">>, <<"type #1">>}, {<<"erlang-solutions.com">>, <<"type #2">>}, {<<"erlang-solutions.local">>, <<"static type"...
null
https://raw.githubusercontent.com/esl/MongooseIM/5242809c0fff1581f5247892ec24599d295ad920/test/mongoose_domain_core_SUITE.erl
erlang
not allowed type not configured yet See also db_get_all_static just no configured domains for this host type reinserting record with another source try to remove domains selections are done during the call to mongoose_domain_core:for_each_domain/2. ensure that domain is removed from ETS table before other modu...
-module(mongoose_domain_core_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("eunit/include/eunit.hrl"). -define(STATIC_PAIRS, [{<<"example.cfg">>, <<"type #1">>}, {<<"erlang-solutions.com">>, <<"type #2">>}, {<<"example.org">>, <<"type #2">>}]). -define(...
91a9717ac61bd005e40588c81aafd42bfb17d102233538ac07d5fdfb744df44f
CSVdB/pinky
Gen.hs
# OPTIONS_GHC -Wno - orphans # module Test.Pinky.Layers.Gen ( ) where import Test.Pinky.Core.Gen () import Test.Pinky.Layers.Elu () import Test.Pinky.Layers.FullyConnected () import Test.Pinky.Layers.Relu () import Test.Pinky.Layers.Reshape () import Test.Pinky.Layers.Resize () import Test.Pinky.Layers.Sigmoi...
null
https://raw.githubusercontent.com/CSVdB/pinky/e77a4c0812ceb4b8548c41a7652fb247c2ab39e0/pinky-test-utils/src/Test/Pinky/Layers/Gen.hs
haskell
# OPTIONS_GHC -Wno - orphans # module Test.Pinky.Layers.Gen ( ) where import Test.Pinky.Core.Gen () import Test.Pinky.Layers.Elu () import Test.Pinky.Layers.FullyConnected () import Test.Pinky.Layers.Relu () import Test.Pinky.Layers.Reshape () import Test.Pinky.Layers.Resize () import Test.Pinky.Layers.Sigmoi...
1ad523aa3be6d1684653e2f2c005e4e67d8ed1fe0cba5efd408785c2a431f564
janestreet/base
info.mli
* @inline
null
https://raw.githubusercontent.com/janestreet/base/221b085f3fcd77597f8245b4d73de3970b238e71/src/info.mli
ocaml
* @inline
3ff4d6fc1f2c8d4478c29e7948eae6afb3753c7ec7ba35fa54de0c02adeaebf2
wireless-net/erlang-nommu
wxPaintDC.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2014 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/wx/src/gen/wxPaintDC.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2008 - 2014 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxPaintDC). -include("wxe.hrl"). ...
2c400b362e7d71e031fc072c3467fd21f78c55103288eb9ab38e4d0ac7e9d25b
msp-strath/TypOS
Display.hs
# LANGUAGE UndecidableInstances , OverloadedStrings # module Machine.Display where import Control.Monad.Reader import Control.Monad.State import qualified Data.Map as Map import ANSI hiding (withANSI) import Actor import Actor.Display () import Concrete.Base import Display import Elaboration.Pretty() import Forget ...
null
https://raw.githubusercontent.com/msp-strath/TypOS/24eb9dcf711305952d46e9bb058356741b3f371f/Src/Machine/Display.hs
haskell
a display pure $ show t
# LANGUAGE UndecidableInstances , OverloadedStrings # module Machine.Display where import Control.Monad.Reader import Control.Monad.State import qualified Data.Map as Map import ANSI hiding (withANSI) import Actor import Actor.Display () import Concrete.Base import Display import Elaboration.Pretty() import Forget ...
2ce821b1e0533ac5fcb10cabb8e0f93dd192cbcbe2df975067c5ff853f2ae4e1
clojure-emacs/cider-nrepl
complete.clj
(ns cider.nrepl.middleware.complete "Code completion middleware. Delegates to the compliment library for the heavy lifting. Uses clj-suitable for ClojureScript completion." (:require [cider.nrepl.middleware.util.cljs :as cljs] [cider.nrepl.middleware.util.error-handling :refer [with-safe-transport]] [c...
null
https://raw.githubusercontent.com/clojure-emacs/cider-nrepl/d219ce610d9030108c273fab933538fb3b24d8be/src/cider/nrepl/middleware/complete.clj
clojure
controls if dynamic cljs code completions are active The local binding analysis done by :compliment.sources.local-bindings/local-bindings doesn't perform any evaluation or execution of the context form. Thus, it is independent of the actual host platform differences. Given that, we can use that same source for Cl...
(ns cider.nrepl.middleware.complete "Code completion middleware. Delegates to the compliment library for the heavy lifting. Uses clj-suitable for ClojureScript completion." (:require [cider.nrepl.middleware.util.cljs :as cljs] [cider.nrepl.middleware.util.error-handling :refer [with-safe-transport]] [c...
ca14a4e5a2928a7f82412413ff9f8d74aeca23ff2fdab0e3f3debc9862f35ed1
input-output-hk/ouroboros-network
Golden.hs
# LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # module Test.Consensus.Shelley.Golden (tests) where import System.FilePath ((</>)) import Ouroboros.Consensus.Ledger.Query (QueryVersion) import Ouroboros.Consensus.Shelley.Ledger.NetworkProtoco...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/70c61246236f54b5bc0c656c12db7a7ab78682ee/ouroboros-consensus-shelley-test/test/Test/Consensus/Shelley/Golden.hs
haskell
Use defaults
# LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # module Test.Consensus.Shelley.Golden (tests) where import System.FilePath ((</>)) import Ouroboros.Consensus.Ledger.Query (QueryVersion) import Ouroboros.Consensus.Shelley.Ledger.NetworkProtoco...
9b23f1a5cd9f3475b45e8629efa7c6eae9425f2d34b23b2e3814c71cee180ae5
simplex-chat/simplexmq
Agent.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} {...
null
https://raw.githubusercontent.com/simplex-chat/simplexmq/e4aad7583f425765c605cd8042e3136e048bdbec/src/Simplex/Messaging/Agent.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # | Module : Simplex.Messaging.Agent Copyright : (c) simplex.chat License : AGPL-3 Maintainer : Stability : experimental Portability : non-portable See -chat/simplexmq/blob/master/protocol/agen...
# LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedLists # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # ...
6e2f9d383a86bb9bb238a227fa4dd41b06aad50f94fbda5ec623f53114f4e403
typeclasses/dsv
CommonDelimiters.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module DSV.CommonDelimiters ( Delimiter (..) , charDelimiter , delimiterWord8 , comma, tab ) where import DSV.DelimiterType import DSV.DelimiterSplice | ASCII code point @0x2C@ , the typical choice of DSV delimiter . DSV ( delimiter - separated ...
null
https://raw.githubusercontent.com/typeclasses/dsv/ae4eb823e27e4c569c4f9b097441985cf865fbab/dsv/library/DSV/CommonDelimiters.hs
haskell
@comma = $('charDelimiter' ',')@ @tab = $('charDelimiter' '\t')@
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module DSV.CommonDelimiters ( Delimiter (..) , charDelimiter , delimiterWord8 , comma, tab ) where import DSV.DelimiterType import DSV.DelimiterSplice | ASCII code point @0x2C@ , the typical choice of DSV delimiter . DSV ( delimiter - separated ...
a191c5836ca414b52755d08ae482af78a887ca57451f1f3510768cf72374bc46
bbusching/libgit2
clone.rkt
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "checkout.rkt" "remote.rkt" "repository.rkt" "utils.rkt") (provide (all-defined-out)) ; Types (define _git_clone_local_t (_enum '(GIT_CLONE_LOCAL_AUTO GIT_CLONE_LOCAL GIT_CLONE_NO_...
null
https://raw.githubusercontent.com/bbusching/libgit2/6d6a007543900eb7a6fbbeba55850288665bdde5/libgit2/include/clone.rkt
racket
Types Functions
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "checkout.rkt" "remote.rkt" "repository.rkt" "utils.rkt") (provide (all-defined-out)) (define _git_clone_local_t (_enum '(GIT_CLONE_LOCAL_AUTO GIT_CLONE_LOCAL GIT_CLONE_NO_LOCAL ...
f779363d135e4e1f86dec368e091cd33f51b490bfac5fe8943b440f0786208ec
audreyt/openafp
MCD.hs
module OpenAFP.Records.AFP.MCD where import OpenAFP.Types import OpenAFP.Internals data MCD = MCD { mcd_Type :: !N3 ,mcd_ :: !N3 ,mcd :: !NStr } deriving (Show, Typeable)
null
https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/AFP/MCD.hs
haskell
module OpenAFP.Records.AFP.MCD where import OpenAFP.Types import OpenAFP.Internals data MCD = MCD { mcd_Type :: !N3 ,mcd_ :: !N3 ,mcd :: !NStr } deriving (Show, Typeable)
3c2c6df9aebe3a2b532d7af5d1006ec827cd46e66e03d8ff5dbde5db86d0d48d
lojic/LearningRacket
word-count.rkt
#lang racket (require threading) (provide word-count) (define (word-count str) (~> str string-downcase (string-split #px"[^a-z]+") (foldl (λ (word hsh) (hash-update hsh word add1 0)) (make-immutable-hash) _)))
null
https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/exercism.io/word-count/word-count.rkt
racket
#lang racket (require threading) (provide word-count) (define (word-count str) (~> str string-downcase (string-split #px"[^a-z]+") (foldl (λ (word hsh) (hash-update hsh word add1 0)) (make-immutable-hash) _)))
3e41c4c8d3fe4b7acad485bc5537457b2ea214843adb9a89cda6e4976a8fe77d
simmsb/calamity
Group.hs
# LANGUAGE TemplateHaskell # | A Group Group channel module Calamity.Types.Model.Channel.Group (GroupChannel (..)) where import {-# SOURCE #-} Calamity.Types.Model.Channel import {-# SOURCE #-} Calamity.Types.Model.Channel.Message import Calamity.Types.Model.User import Calamity.Types.Snowflake import Data.Aeson ((...
null
https://raw.githubusercontent.com/simmsb/calamity/be310255b446e87e7432673de1fbc67ef46de3ae/calamity/Calamity/Types/Model/Channel/Group.hs
haskell
# SOURCE # # SOURCE #
# LANGUAGE TemplateHaskell # | A Group Group channel module Calamity.Types.Model.Channel.Group (GroupChannel (..)) where import Calamity.Types.Model.User import Calamity.Types.Snowflake import Data.Aeson ((.:), (.:?)) import Data.Aeson qualified as Aeson import Data.Text (Text) import Data.Time import Optics.TH imp...
5d5ece5b2660cae8e843ab380b1a5adc9b9002458d3095717d542f36a00504ae
MegaLoler/Music
nyan-minor.lisp
(defpackage :nyan-cat (:use :cl :music) (:export nyan-cat)) (in-package :nyan-cat) (defsong (nyan-cat :title "Nyan Cat" :description "It's Nyan Cat." :key (key 'b-minor) :tempo (make-tempo 120) :meter (make-meter 4 4)) (flet ((intro () (seq '(> > > > 3 4 5 r 1 5 3 4 5 1 2 3 2 7 1 r 5 r 3 4 5 ...
null
https://raw.githubusercontent.com/MegaLoler/Music/6d69042f6ed98994d3f2ec474c71c569e0ee06be/examples/nyan-minor.lisp
lisp
(play nyan-cat)
(defpackage :nyan-cat (:use :cl :music) (:export nyan-cat)) (in-package :nyan-cat) (defsong (nyan-cat :title "Nyan Cat" :description "It's Nyan Cat." :key (key 'b-minor) :tempo (make-tempo 120) :meter (make-meter 4 4)) (flet ((intro () (seq '(> > > > 3 4 5 r 1 5 3 4 5 1 2 3 2 7 1 r 5 r 3 4 5 ...
2ea835f48a19e95f2d702ef7de12d46afed3c81aae3a9c1bce901b48a54a2908
TaylanUB/scheme-bytestructures
numeric-data-model.scm
(define-module (bytestructures guile numeric-data-model)) (import (system foreign)) (import (system base target)) (define architecture (let ((cpu (target-cpu))) (cond ((member cpu '("i386" "i486" "i586" "i686")) 'i386) ((string=? "x86_64" cpu) 'x86-64) ((string-prefix? "arm" cpu) ...
null
https://raw.githubusercontent.com/TaylanUB/scheme-bytestructures/27cadba6b69a01b38b33bb39b9766d713eb90c1b/bytestructures/guile/numeric-data-model.scm
scheme
(define-module (bytestructures guile numeric-data-model)) (import (system foreign)) (import (system base target)) (define architecture (let ((cpu (target-cpu))) (cond ((member cpu '("i386" "i486" "i586" "i686")) 'i386) ((string=? "x86_64" cpu) 'x86-64) ((string-prefix? "arm" cpu) ...
5f1fefe84eef45a7a3d196d316aed93fa56b9a2056d55cb32e04979636bfd5ba
jeapostrophe/opencl
BinarySearch.rkt
#lang racket (require opencl/c "../atiUtils/utils.rkt" ffi/unsafe ffi/cvector ffi/unsafe/cvector) (define setupTime -1) (define totalKernelTime -1) (define devices #f) (define context #f) (define commandQueue #f) (define program #f) (define length 2048) (define input #f) (define out...
null
https://raw.githubusercontent.com/jeapostrophe/opencl/f984050b0c02beb6df186d1d531c4a92a98df1a1/tests/opencl/samples/atiSamples/BinarySearch/BinarySearch.rkt
racket
#lang racket (require opencl/c "../atiUtils/utils.rkt" ffi/unsafe ffi/cvector ffi/unsafe/cvector) (define setupTime -1) (define totalKernelTime -1) (define devices #f) (define context #f) (define commandQueue #f) (define program #f) (define length 2048) (define input #f) (define out...
aba13f0a9fb90e76e8e50b64f85eb91d858610ac397949c913c7c34d8c7c2bb3
dmitryvk/sbcl-win32-threads
condition.lisp
stuff originally from CMU CL 's error.lisp which can or should ;;;; come late (mostly related to the CONDITION class itself) ;;;; This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/condition.lisp
lisp
come late (mostly related to the CONDITION class itself) more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. miscellaneous support utilities Signalling an error when trying to print an error c...
stuff originally from CMU CL 's error.lisp which can or should This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!KERNEL") generally a PITA , so whatever...