_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
954ea8a7066ede1dab33c10f0dcceec7f5e42d3d7908d522e3aa3e78c94ccf79
nibbula/yew
terminal-inator.lisp
;;; ;;; terminal-inator.lisp - Inator methods for terminals. ;;; (defpackage :terminal-inator (:documentation "I'll be back.") (:use :cl :dlib :keymap :inator :terminal :fui) (:export #:terminal-inator #:terminal-inator-last-event #:terminal-inator-last-event-untranslated #:with-terminal-inator ))...
null
https://raw.githubusercontent.com/nibbula/yew/7da0af9acc0cb6da99fb976b827047b30fefcc71/inator/terminal-inator.lisp
lisp
terminal-inator.lisp - Inator methods for terminals. Allow resize events by default. (defmethod start-inator ((i terminal-inator)) (terminal-start i) (call-next-method)) "Stop a TERMINAL-INATOR." (terminal-end i) (call-next-method)) Translate some events @@@ This is such a kludgey hack We use ter...
(defpackage :terminal-inator (:documentation "I'll be back.") (:use :cl :dlib :keymap :inator :terminal :fui) (:export #:terminal-inator #:terminal-inator-last-event #:terminal-inator-last-event-untranslated #:with-terminal-inator )) (in-package :terminal-inator) (defclass terminal-inator (inator...
acdc7539c99a8a152387a78436b044e2a5dc29f2619678653e9d29a5f1977d8e
longlene/cl-raylib
camera.lisp
(require :cl-raylib) (defpackage :raylib-user (:use :cl :raylib :3d-vectors)) (in-package :raylib-user) (defun main () (let* ((screen-width 800) (screen-height 450) (title "raylib [core] example - 3d camera mode") (camera-pos (vec 0.0 0.0 10.0)) (camera-target (vec 0.0 0.0 0.0...
null
https://raw.githubusercontent.com/longlene/cl-raylib/a67bebea63e286bedbc651842110a1e09d1aa289/examples/camera.lisp
lisp
(require :cl-raylib) (defpackage :raylib-user (:use :cl :raylib :3d-vectors)) (in-package :raylib-user) (defun main () (let* ((screen-width 800) (screen-height 450) (title "raylib [core] example - 3d camera mode") (camera-pos (vec 0.0 0.0 10.0)) (camera-target (vec 0.0 0.0 0.0...
79ff673b69adb0aa293a3c2c6d6ed5c0cedba63dc9e6484b17c41ead9a101c47
cbaggers/cepl
more-time-experiments.lisp
;; Functions and macros for handling time in games ;; This area is very prone to change as time is so integral ;; to game building. (in-package :base-time) ;;---------------------------------------------------------------------- 1 . body - 2 . test - 3 . expired - test - 4 . inner - let - 5 . closed - vars...
null
https://raw.githubusercontent.com/cbaggers/cepl/d1a10b6c8f4cedc07493bf06aef3a56c7b6f8d5b/core/protocode/_/more-time-experiments.lisp
lisp
Functions and macros for handling time in games This area is very prone to change as time is so integral to game building. ---------------------------------------------------------------------- {TODO} should "every time" stil print after it expires?
(in-package :base-time) 1 . body - 2 . test - 3 . expired - test - 4 . inner - let - 5 . closed - vars - proper let form (tlambda (x y) (+ x y)) (tlambda () ((before (from-now 100)) (print "moo")) (print "every time")) (tlambda () ((each (seconds 1)) (print "hi"))) (tlambda () ((and (each (...
b61747acef2723a30e18ff75a0972b52195835a8f454d36bb21c6ffda6f373d5
viglioni/lang-studies
Decrypt.hs
module Decrypt (decryptBit) where import Encrypt (EncryptedBit, getSumA, getSumB) import Keys (PrivateKey) import Zp (internalProdZpn, (-!)) isCloserToZero :: Int -> Int -> Bool isCloserToZero p num = let p4 = floor $ fromIntegral p / 4 in (num <= p4) || (num > (p - p4)) decryptBit :: Int -> PrivateKey -> Encrypte...
null
https://raw.githubusercontent.com/viglioni/lang-studies/28fef8a1076c4dcfb4f6ce364dbaa6739a64cbd2/regev-cryptosystem/src/Decrypt.hs
haskell
module Decrypt (decryptBit) where import Encrypt (EncryptedBit, getSumA, getSumB) import Keys (PrivateKey) import Zp (internalProdZpn, (-!)) isCloserToZero :: Int -> Int -> Bool isCloserToZero p num = let p4 = floor $ fromIntegral p / 4 in (num <= p4) || (num > (p - p4)) decryptBit :: Int -> PrivateKey -> Encrypte...
32e7c97c7b52b36da4f4089a3745333c0001efc05304559e8e7f19ff585f1d00
kayceesrk/Quelea
Exec_Template.hs
# LANGUAGE TemplateHaskell , ScopedTypeVariables , CPP # import Codeec.Shim import Codeec.ClientMonad import Codeec.DBDriver import Codeec.Contract import Control.Concurrent (ThreadId, myThreadId, forkIO, threadDelay, killThread) import Codeec.NameService.Types import Codeec.Types (summarize) import Codeec.Marshall im...
null
https://raw.githubusercontent.com/kayceesrk/Quelea/73db79a5d5513b9aeeb475867a67bacb6a5313d0/scratch/Exec_Template.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Kind of process Broker's address Daemon Options -------------- Client Options -------------- Number of client rounds Number of concurrent client threa...
# LANGUAGE TemplateHaskell , ScopedTypeVariables , CPP # import Codeec.Shim import Codeec.ClientMonad import Codeec.DBDriver import Codeec.Contract import Control.Concurrent (ThreadId, myThreadId, forkIO, threadDelay, killThread) import Codeec.NameService.Types import Codeec.Types (summarize) import Codeec.Marshall im...
7a8a31ee52d0dfd9e4e02c0e1b1c6042b530bd3683f7a59b8dfb49974bf626a9
AshleyYakeley/Truth
SQLite.hs
{-# OPTIONS -fno-warn-orphans #-} module Pinafore.Storage.Database.SQLite ( sqliteTableReference , sqliteTableGetEntireDatabase ) where import Changes.Core import Changes.World.SQLite import Changes.World.SQLite.Schema import Pinafore.Base import Pinafore.Storage.Database import Pinafore.Storage.Table imp...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/c27fbb7d8359e1b83efe49f9384dd0956d532695/Pinafore/pinafore-base/lib/Pinafore/Storage/Database/SQLite.hs
haskell
# OPTIONS -fno-warn-orphans #
module Pinafore.Storage.Database.SQLite ( sqliteTableReference , sqliteTableGetEntireDatabase ) where import Changes.Core import Changes.World.SQLite import Changes.World.SQLite.Schema import Pinafore.Base import Pinafore.Storage.Database import Pinafore.Storage.Table import Shapes instance FieldType Anc...
6d59ee03d2db23d4f338dc60c069c62ff3abbc3c7fb91310b34ee87c9045aa09
rixed/ramen
SqliteHelpers.ml
open Batteries open Sqlite3 open RamenLog let to_int64 x = let open Data in match x with | NONE | NULL | TEXT "" -> None | INT i -> Some i | FLOAT f -> Some (Int64.of_float f) | TEXT s | BLOB s -> Some (Int64.of_string s) let to_int x = to_int64 x |> Option.map Int64.to_int let to_float x = let open ...
null
https://raw.githubusercontent.com/rixed/ramen/11b1b34c3bf73ee6c69d7eb5c5fbf30e6dd2df4f/src/SqliteHelpers.ml
ocaml
so be it
open Batteries open Sqlite3 open RamenLog let to_int64 x = let open Data in match x with | NONE | NULL | TEXT "" -> None | INT i -> Some i | FLOAT f -> Some (Int64.of_float f) | TEXT s | BLOB s -> Some (Int64.of_string s) let to_int x = to_int64 x |> Option.map Int64.to_int let to_float x = let open ...
a7a6b687be03afa9ea8327b4a1c7cfc619d386dd79078f12e935d336f9cfe3e1
typesafety/aoc2021
DayPart.hs
module DayPart ( Part (..), Day (..), parseDayPart, ) where import CustomPrelude import Data.Text qualified as T data Part = P1 | P2 deriving (Eq, Ord, Show) newtype Day = Day Int deriving (Eq, Ord, Show) | Parse a string in the form " N - N " and return a tuple with the day and part . > > > parse...
null
https://raw.githubusercontent.com/typesafety/aoc2021/a73a42d777f0e94eef42539f9ba9aa475cdebf6a/src/DayPart.hs
haskell
module DayPart ( Part (..), Day (..), parseDayPart, ) where import CustomPrelude import Data.Text qualified as T data Part = P1 | P2 deriving (Eq, Ord, Show) newtype Day = Day Int deriving (Eq, Ord, Show) | Parse a string in the form " N - N " and return a tuple with the day and part . > > > parse...
4ae506778c3a986a19cd996b7f4a46ba311cd83a18b3535bc701586f90c73629
fogfish/typhoon
aura_protocol.erl
%% %% Copyright 2015 Zalando SE %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software ...
null
https://raw.githubusercontent.com/fogfish/typhoon/db0d76050a9c41c45582e9928206270450600d00/apps/aura/src/aura_protocol.erl
erlang
Copyright 2015 Zalando SE you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licens...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(aura_protocol). -export([ encode/3, decode/1 ]). encode({urn, _, _} = Urn, T, X) when is_integer(X) -> <<"auraq:", (uri:s(Urn))/binary, $|, (scalar:s(te...
1dfdfa38265bdad00b8da3cd52112471297840a36ae7c93f6d3f2d9e670c92bf
gfredericks/debug-repl
util.clj
(ns com.gfredericks.debug-repl.util) (defmacro catchingly "Returns either [:returned x] or [:threw t]." [& body] `(try [:returned (do ~@body)] (catch Throwable t# [:threw t#]))) (defn uncatch [[type x]] (case type :returned x :threw (throw x))) (defn require? [symbol] (try (require ...
null
https://raw.githubusercontent.com/gfredericks/debug-repl/f725058c8fd74fc2f1cb963b6a59e281b21a8d89/src/com/gfredericks/debug_repl/util.clj
clojure
(ns com.gfredericks.debug-repl.util) (defmacro catchingly "Returns either [:returned x] or [:threw t]." [& body] `(try [:returned (do ~@body)] (catch Throwable t# [:threw t#]))) (defn uncatch [[type x]] (case type :returned x :threw (throw x))) (defn require? [symbol] (try (require ...
26278f373fa4a3f7e3076681eabbf568d3add409d0fe7fcf922056d617bdb133
basti1302/elm-lang-de
Converter.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Profile.Converter ( modelToHead , modelToResponse , requestToModel , responseForBadRequest ) where import Profile.Model (Profile (Profile)) import qualified Profile.Model as Profile import ...
null
https://raw.githubusercontent.com/basti1302/elm-lang-de/9654752fb6fb56bc4116483f3bbd412a774e9fb1/backend/app/Profile/Converter.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # module Profile.Converter ( modelToHead , modelToResponse , requestToModel , responseForBadRequest ) where import Profile.Model (Profile (Profile)) import qualified Profile.Model as Profile import Profile.ProfileHeadResponse (P...
9d38497748e696292b22d814d51fd47c7763320d56b3ca35868f68e8886af7e1
tmattio/js-bindings
vscode_languageclient_processes.ml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es5 let (terminate : process:ChildProcess.t -> ?cwd:string -> unit -> bool) = fun ~process:(x1 : ChildProcess.t) -> fun ?cwd:(x2 : string option) -> fun () -> Ojs.b...
null
https://raw.githubusercontent.com/tmattio/js-bindings/f1d36bba378e4ecd5310542a0244dce9258b6496/lib/vscode-languageclient/vscode_languageclient_processes.ml
ocaml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es5 let (terminate : process:ChildProcess.t -> ?cwd:string -> unit -> bool) = fun ~process:(x1 : ChildProcess.t) -> fun ?cwd:(x2 : string option) -> fun () -> Ojs.b...
ebaf00528e38fed0adc4d04eb1fed47516fbcb3f486fcf6fbeacab2565995145
inconvergent/weir
3vec.lisp
(in-package :vec) (declaim (3vec *3one* *3zero*) (double-float *eps* PII)) (defparameter *3one* #.(3vec 1d0 1d0 1d0)) (defparameter *3zero* #.(3vec 0d0 0d0 0d0)) (defparameter *eps* 1d-14) (declaim (inline 3from-vec)) (defun 3from-vec (v &key (z 0d0)) "from 2d vec" (declare #.*opt-settings* (vec v) (double-float...
null
https://raw.githubusercontent.com/inconvergent/weir/3c364e3a0e15526f0d6985f08a57b312b5c35f7d/src/vec/3vec.lisp
lisp
MATHS total reflection refraction TODO: this name is bad probably TODO: optimize this call to avoid cos/sin calcs (/ (3dot (3sub p l0) n) s) avoid div0. else parallel intersection on line intersection (not on line)
(in-package :vec) (declaim (3vec *3one* *3zero*) (double-float *eps* PII)) (defparameter *3one* #.(3vec 1d0 1d0 1d0)) (defparameter *3zero* #.(3vec 0d0 0d0 0d0)) (defparameter *eps* 1d-14) (declaim (inline 3from-vec)) (defun 3from-vec (v &key (z 0d0)) "from 2d vec" (declare #.*opt-settings* (vec v) (double-float...
fa77e60d17f44c65d1d6cc6627e94bf74d6dbf7cf403342e103a84f1c8f9be89
andrewthad/chronos
Chronos.hs
# language BangPatterns # {-# language CPP #-} # language DeriveGeneric # # language GeneralizedNewtypeDeriving # # language LambdaCase # # language MagicHash # # language MultiParamTypeClasses # # language NumericUnderscores # {-# language OverloadedStrings #-} # language RecordWildCards # {-# language ScopedTypeVaria...
null
https://raw.githubusercontent.com/andrewthad/chronos/49a5605860746bbfc6e75dff3fbc69b69ea92338/src/Chronos.hs
haskell
# language CPP # # language OverloadedStrings # # language ScopedTypeVariables # # language TypeFamilies # # language TypeInType # * Functions ** Current ** Duration ** Construction ** Conversion ** Build Timespan ** Matching ** Format $format ** Days of Week ** Utility * Textual Conversion ** Date *** Te...
# language BangPatterns # # language DeriveGeneric # # language GeneralizedNewtypeDeriving # # language LambdaCase # # language MagicHash # # language MultiParamTypeClasses # # language NumericUnderscores # # language RecordWildCards # # language TypeApplications # # language UnboxedTuples # | Chronos is a performance...
4412a581fd2fc3e243790a9a38f371721427877a0bd2ce13f66d0a56a1ec16b5
msp-strath/TypOS
Options.hs
{-# LANGUAGE OverloadedStrings #-} | Description : The various options that can be given on the command Also stores whether the terminal is dumb , which is an " environment option " Also stores whether the terminal is dumb, which is an "environment option" -} module Options where -- from the optparse-applicat...
null
https://raw.githubusercontent.com/msp-strath/TypOS/ec440593a9d9baa5a52b9f4eed85c56e4ef1e53e/Src/Options.hs
haskell
# LANGUAGE OverloadedStrings # from the optparse-applicative package needs lots from here | The Options that can be specified Actor file turn on (All) warnings be quiet when working colour output? which machine steps to trace? where to put the latex output where to put the animated latex output width of term...
| Description : The various options that can be given on the command Also stores whether the terminal is dumb , which is an " environment option " Also stores whether the terminal is dumb, which is an "environment option" -} module Options where import System.Console.Terminal.Size (size, width) import System...
9cc90ca3ba4bde2e26f4887bf0e1e4f0a9b96b1e7fbec94e80bce3b0fe6905cc
day8/re-frame-10x
inputs.cljs
(ns day8.re-frame-10x.components.inputs (:require [clojure.string :as string] [day8.re-frame-10x.inlined-deps.reagent.v1v0v0.reagent.core :as r] [day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.core :as rf] [day8.re-frame-10x.inlined-deps.spade.g...
null
https://raw.githubusercontent.com/day8/re-frame-10x/7e8641b27960d377cd1d1ada60ec3e31fb0dca4e/src/day8/re_frame_10x/components/inputs.cljs
clojure
(ns day8.re-frame-10x.components.inputs (:require [clojure.string :as string] [day8.re-frame-10x.inlined-deps.reagent.v1v0v0.reagent.core :as r] [day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.core :as rf] [day8.re-frame-10x.inlined-deps.spade.g...
80a25804af467a1057c1886f3fe29c911fa799ff40600f944a140cf4cf521ed4
matsubara0507/git-plantation
Plantation.hs
module Git.Plantation ( module X ) where import Git.Plantation.Config as X import Git.Plantation.Data as X import Git.Plantation.Env as X import Git.Plantation.Score as X
null
https://raw.githubusercontent.com/matsubara0507/git-plantation/55ec98a3c15356ac7a8c07bb0d5dc5779650e921/src/Git/Plantation.hs
haskell
module Git.Plantation ( module X ) where import Git.Plantation.Config as X import Git.Plantation.Data as X import Git.Plantation.Env as X import Git.Plantation.Score as X
7d27630d1e2262ebdfeeb068c9eb27df9d06c4c4654a2b7e74fb8480b0856948
skanev/playground
51.scm
SICP exercise 5.51 ; Develop a rudimentary implementation of Scheme in C ( or some other low - level ; language of your choice) by translating the explicit-control evaluator of section 5.4 into C. In order to run this code , you will need to also provide ; appropriate storage-allocation routines and other run-tim...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/51.scm
scheme
language of your choice) by translating the explicit-control evaluator of appropriate storage-allocation routines and other run-time support. actual C code to do it. This file provides with some necessary code in order to compile and run the
SICP exercise 5.51 Develop a rudimentary implementation of Scheme in C ( or some other low - level section 5.4 into C. In order to run this code , you will need to also provide That was a journey . It took me three days to implement this fully . More commentary can be found in 05 / support/51 / evaluator.c ,...
4edacaa01c9ddd7cc62eb44e0a1c01ce798eb6b19450cf9c113a3a24c80d0597
clojerl/clojerl
clojerl_SortedMap_SUITE.erl
-module(clojerl_SortedMap_SUITE). -include("clojerl.hrl"). -include("clj_test_utils.hrl"). -export([ all/0 , init_per_suite/1 , end_per_suite/1 ]). -export([ new/1 , count/1 , str/1 , seq/1 , equiv/1 , apply/1 , hash/1 , hash_collision/1...
null
https://raw.githubusercontent.com/clojerl/clojerl/aa35847ca64e1c66224867ca4c31ca6de95bc898/test/clojerl_SortedMap_SUITE.erl
erlang
------------------------------------------------------------------------------ Test Cases ------------------------------------------------------------------------------
-module(clojerl_SortedMap_SUITE). -include("clojerl.hrl"). -include("clj_test_utils.hrl"). -export([ all/0 , init_per_suite/1 , end_per_suite/1 ]). -export([ new/1 , count/1 , str/1 , seq/1 , equiv/1 , apply/1 , hash/1 , hash_collision/1...
0380612de68cc81f4347ede113f527d555b62e6e0e06a9f9cf3b01103cb377b3
chlorinejs/chlorine
reader_test.clj
(ns chlorine.reader-test (:use [chlorine.reader] [clojure.test])) (deftest member-form?-tests (is (= (member-form? '.foo) true)) (is (= (member-form? '.-bar) true))) (deftest reserved-symbol?-test (is (reserved-symbol? ["a" "b" #"c"] "a")) (is (reserved-symbol? ["a" "b" #"c"] "c"))...
null
https://raw.githubusercontent.com/chlorinejs/chlorine/9983349b47434b366b8096e938cc137f1390ab9e/test/chlorine/reader_test.clj
clojure
(ns chlorine.reader-test (:use [chlorine.reader] [clojure.test])) (deftest member-form?-tests (is (= (member-form? '.foo) true)) (is (= (member-form? '.-bar) true))) (deftest reserved-symbol?-test (is (reserved-symbol? ["a" "b" #"c"] "a")) (is (reserved-symbol? ["a" "b" #"c"] "c"))...
0fa7ec8fb34e4a39c98f46d0e3fcde9548f693e1b8f4c6c31185f20830a6f377
LexiFi/dead_code_analyzer
anon-call.ml
let f x = if x > 32 then let tmp = (fun l -> List.map (AnonFn.f ~a:12) l) in ignore (tmp []) else if x mod 4 <> 0 then let tmp = (fun l -> List.map (AnonFn.f) l) in ignore (tmp []) let g x = if x > 32 then let tmp = (fun l -> List.map (AnonFn.g ~a:12) l) in ignore (tmp []) else if x mod 4 <> 0 then let tmp = (...
null
https://raw.githubusercontent.com/LexiFi/dead_code_analyzer/c44dc2ea5ccb13df2145e9316e21c39f09dad506/examples/dir/anon-call.ml
ocaml
let f x = if x > 32 then let tmp = (fun l -> List.map (AnonFn.f ~a:12) l) in ignore (tmp []) else if x mod 4 <> 0 then let tmp = (fun l -> List.map (AnonFn.f) l) in ignore (tmp []) let g x = if x > 32 then let tmp = (fun l -> List.map (AnonFn.g ~a:12) l) in ignore (tmp []) else if x mod 4 <> 0 then let tmp = (...
5922029fb44edcc1a1faf9ddaca6b50e26f24322e5ef0951dbe3d07b8e09c5f3
Anut-py/h-raylib
Main.hs
{-# OPTIONS -Wall #-} module Main where import Raylib.Core (beginDrawing, changeDirectory, clearBackground, closeWindow, endDrawing, getApplicationDirectory, initWindow, setTargetFPS) import Raylib.Core.Audio (closeAudioDevice, initAudioDevice, loadMusicStream, playMusicStream, updateMusicStream) import Raylib.Core.T...
null
https://raw.githubusercontent.com/Anut-py/h-raylib/d832a020d311d539d4e752fd23e821cd71fef4ec/examples/basic-audio/src/Main.hs
haskell
# OPTIONS -Wall #
module Main where import Raylib.Core (beginDrawing, changeDirectory, clearBackground, closeWindow, endDrawing, getApplicationDirectory, initWindow, setTargetFPS) import Raylib.Core.Audio (closeAudioDevice, initAudioDevice, loadMusicStream, playMusicStream, updateMusicStream) import Raylib.Core.Text (drawText) import ...
23ffa2906efcb621d63b665646eeae713b265ec88c52f1371d4590fa89cc5665
yoriyuki/Camomile
subText.mli
Copyright ( C ) 2002 , 2003 . distributed with LGPL (* This library is free software; you can redistribute it and/or *) (* modify it under the terms of the GNU Lesser General Public License *) as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later versi...
null
https://raw.githubusercontent.com/yoriyuki/Camomile/d7d8843c88fae774f513610f8e09a613778e64b3/Camomile/public/subText.mli
ocaml
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License may link, statically or dynamically, a "work that uses this library" with a publicly distributed version of this library to produce an executable file containing portions of this lib...
Copyright ( C ) 2002 , 2003 . distributed with LGPL as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . As a special exception to the GNU Library General Public License , you additional requirements listed in clause 6 of the GNU Librar...
cd8f13055d8c37a164ba491966089f44dbba108ff6d0053611a68ee4e1c1ef8c
eutro/gdlisp
main.rkt
#lang racket/base (module macros racket/base (require (for-syntax "compiler.rkt" "parser.rkt" racket/base racket/port syntax/parse syntax/datum) (only-in "extra-symbols.rkt" begin-escape)) (provide gd-modbeg...
null
https://raw.githubusercontent.com/eutro/gdlisp/b7568a793c24cb5c858ee5be224404265cbc827e/main.rkt
racket
#lang racket/base (module macros racket/base (require (for-syntax "compiler.rkt" "parser.rkt" racket/base racket/port syntax/parse syntax/datum) (only-in "extra-symbols.rkt" begin-escape)) (provide gd-modbeg...
4f7acbb7691832b51387674e76ef70075c9ed7e9a38c97bcf80b09db12b983d9
haroldcarr/learn-haskell-coq-ml-etc
PF4.hs
{-# LANGUAGE ExplicitForAll #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE KindSignatures #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE ViewPatterns # module PatternSynonyms.PF4 where import PatternSynonyms.PF2 (ExprF (..)) Annotated inj def ...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/topic/ghc-extensions/src/PatternSynonyms/PF4.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE KindSignatures # # LANGUAGE PatternSynonyms # # LANGUAGE TypeSynonymInstances # represents syntax trees that might have holes there is no total definition of proj construct trees that might contain holes; later fill in holes ------------------------------------...
# LANGUAGE FlexibleInstances # # LANGUAGE ViewPatterns # module PatternSynonyms.PF4 where import PatternSynonyms.PF2 (ExprF (..)) Annotated inj def - case : annotate AFTER building AST - separate View typeclass into two classes : projection and injection - both might not be needed for all data...
d17d5e85a843dba6568e558483fc669768767870472d57b1c7d83c46e62e7c92
sebastiw/otc
otc_l3_codec.erl
ETSI TS 124 007 V16.5.0 -module(otc_l3_codec). -include("include/l3.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([parse_protocol_discriminator/1, compose_protocol_discriminator/1 ]). -export([decode_v/2, decode_lv/1, decode_lve/1, decode_iei_list/2, en...
null
https://raw.githubusercontent.com/sebastiw/otc/4b2a732343bb6982063885fc677b1eecbd2cba39/src/otc_l3_codec.erl
erlang
3GPP TS 44.014 3GPP TS 44.014
ETSI TS 124 007 V16.5.0 -module(otc_l3_codec). -include("include/l3.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([parse_protocol_discriminator/1, compose_protocol_discriminator/1 ]). -export([decode_v/2, decode_lv/1, decode_lve/1, decode_iei_list/2, en...
6777375be8f7100369983979485bfaeb4b0831ec9c59c3782878844ea179c332
ghcjs/ghcjs-dom
DOMStringMap.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.DOMStringMap (js_get, get, get_, DOMStringMap(..), gTypeDOMStringMap) where import Prel...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/DOMStringMap.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.DOMStringMap (js_get, get, get_, DOMStringMap(..), gTypeDOMStringMap) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round,...
0019f5daa4bed6d52425f28db81a9938d85aa7744cdb1c9eb81fea16cda3580c
sharplispers/montezuma
tc-boolean-subscorer.lisp
(in-package #:montezuma) (deftestfixture boolean-subscorer-test (:setup (setf (fixture-var 'dir) (make-instance 'ram-directory)) (let ((iw (make-instance 'index-writer :directory (fixture-var 'dir) :analyzer (make-instance 'whitespace-analyzer) :create-p T))) (setf (fixture-var 'docum...
null
https://raw.githubusercontent.com/sharplispers/montezuma/ee2129eece7065760de4ebbaeffaadcb27644738/tests/unit/search/tc-boolean-subscorer.lisp
lisp
(in-package #:montezuma) (deftestfixture boolean-subscorer-test (:setup (setf (fixture-var 'dir) (make-instance 'ram-directory)) (let ((iw (make-instance 'index-writer :directory (fixture-var 'dir) :analyzer (make-instance 'whitespace-analyzer) :create-p T))) (setf (fixture-var 'docum...
fe6a37263d11b35af84c1d916ed0782ef1404ecd0ccad1dee4a1e06ca04395d4
lspitzner/brittany
Test457.hs
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } module Main (Test()) where
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test457.hs
haskell
brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
module Main (Test()) where
3cfdd15a846333df2dbfc3e5e522adc28cd9a30abb9f8bf4a260db0fb04932d4
KaroshiBee/weevil
dap_stack_trace.ml
module D = Dap_messages.Data module On_request = Dap_handlers.Request_response.Make (struct type enum = Dap_commands.stackTrace type contents = D.StackTraceArguments.t type presence = D.Presence.req type msg = (enum, contents, presence) Dap_request.Message.t type t = msg Dap_req...
null
https://raw.githubusercontent.com/KaroshiBee/weevil/1b166ba053062498c1ec05c885e04fba4ae7d831/lib/dapper/dap_stack_trace.ml
ocaml
module D = Dap_messages.Data module On_request = Dap_handlers.Request_response.Make (struct type enum = Dap_commands.stackTrace type contents = D.StackTraceArguments.t type presence = D.Presence.req type msg = (enum, contents, presence) Dap_request.Message.t type t = msg Dap_req...
795d18166cec98ff953fe16105632044b8bbe4464ef42e7359056bf57b148961
originrose/cortex
main.clj
(ns mnist-classification.main (:require [clojure.tools.cli :refer [parse-opts]]) (:gen-class)) (def cli-options [["-f" "--force-gpu value" "Force GPU to be used" :id :force-gpu? :parse-fn #(Boolean/parseBoolean %) :default true] [ "-l" nil :long-opt "--live-updates" :id :live-updates? ...
null
https://raw.githubusercontent.com/originrose/cortex/94b1430538e6187f3dfd1697c36ff2c62b475901/examples/mnist-classification/src/mnist_classification/main.clj
clojure
(ns mnist-classification.main (:require [clojure.tools.cli :refer [parse-opts]]) (:gen-class)) (def cli-options [["-f" "--force-gpu value" "Force GPU to be used" :id :force-gpu? :parse-fn #(Boolean/parseBoolean %) :default true] [ "-l" nil :long-opt "--live-updates" :id :live-updates? ...
9b26a49a8130626482b8fa7e6641ecf98b1e78064511a90a533701f3a3277c23
sheyll/mediabus
Async.hs
-- | Asynchronous execution of conduits. This module contains a set of functions -- to concurrently execute 'Stream' processing conduits and couple them using ' TBQueue 's . -- -- DEPRECATED module Data.MediaBus.Conduit.Async ( withAsyncPolledSource, FrameContentQ (), mkFrameContentQ, frameContentQSink,...
null
https://raw.githubusercontent.com/sheyll/mediabus/2bc01544956b2c30dedbb0bb61dc115eef6aa689/src/Data/MediaBus/Conduit/Async.hs
haskell
| Asynchronous execution of conduits. This module contains a set of functions to concurrently execute 'Stream' processing conduits and couple them using DEPRECATED | Asynchronously run a source 'ConduitT' connected to a 'FrameContentQ' and create a new source that consumes the queue by polling periodically from t...
' TBQueue 's . module Data.MediaBus.Conduit.Async ( withAsyncPolledSource, FrameContentQ (), mkFrameContentQ, frameContentQSink, frameContentQSource, ) where import Conduit ( ConduitT, MonadIO (..), MonadResource, MonadUnliftIO, Void, awaitForever, evalStateC, runCon...
91e87ab8936c5a3a7e9bd06d20650a33825e21d8e83097cbec0d90d6372b196a
ChrisPenner/lens-regex-pcre
Text.hs
# LANGUAGE QuasiQuotes # {-# LANGUAGE OverloadedStrings #-} module Text where import Control.Lens import Control.Lens.Regex.Text import qualified Data.Text as T import qualified Data.Map as M import Test.Hspec spec :: Spec spec = do describe "regex" $ do describe "match" $ do describe "getting...
null
https://raw.githubusercontent.com/ChrisPenner/lens-regex-pcre/c7587b825f8ab788720d88cbafab72cc72690802/test/Text.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE QuasiQuotes # module Text where import Control.Lens import Control.Lens.Regex.Text import qualified Data.Text as T import qualified Data.Map as M import Test.Hspec spec :: Spec spec = do describe "regex" $ do describe "match" $ do describe "getting" $ do it "should f...
7fddf02971a59df49b876a7eb65c9867aa8ab4c2b7963dd868c4195e3d4ecfce
UU-ComputerScience/uhc
data-field2.hs
-- data fields consistency: ok % % inline test ( ) -- data X = X { b :: Int, a, c :: Char } | Y { b :: Int } x1 = X { c = ' y ' , a = ' x ' , b = 444 } x1 = X 3 'z' 'a' main = c x1
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/regress/7/data-field2.hs
haskell
data fields consistency: ok
data X = X { b :: Int, a, c :: Char } | Y { b :: Int } x1 = X { c = ' y ' , a = ' x ' , b = 444 } x1 = X 3 'z' 'a' main = c x1
890e42702d0c96423a0d726467b115a51fb6c30ef4247bc81dfbba1a4d809f76
emqx/emqx
emqx_license_installer.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %%-------------------------------------------------------------------- -module(emqx_license_installer). -include_lib("snabbkaffe/include/snabbkaffe.hrl"). -behaviour(g...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/lib-ee/emqx_license/src/emqx_license_installer.erl
erlang
-------------------------------------------------------------------- -------------------------------------------------------------------- gen_server callbacks ------------------------------------------------------------------------------ API ----------------------------------------------------------------------------...
Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . -module(emqx_license_installer). -include_lib("snabbkaffe/include/snabbkaffe.hrl"). -behaviour(gen_server). -export([ start_link/1, start_link/4 ]). -export([ init/1, handle_call/3, handle_cast/2, handle_info/2 ]...
d63a60b5fa9ee270c921d7214be05607c8962e0db9f451814b0e728bb5d8ff19
tirkarthi/clj-wordcloud
core_test.clj
(ns clj-wordcloud.core-test (:require [clojure.test :refer :all] [clj-wordcloud.core :refer :all])) (defn get-size [file] (with-open [r (java.io.FileInputStream. file)] (let [image (javax.imageio.ImageIO/read r)] [(.getWidth image) (.getHeight image)]))) (deftest image-dimensions-test ...
null
https://raw.githubusercontent.com/tirkarthi/clj-wordcloud/2a854e7f2b85ed4afb2b3fca86d7e8f8b5e0dbb6/test/clj_wordcloud/core_test.clj
clojure
(ns clj-wordcloud.core-test (:require [clojure.test :refer :all] [clj-wordcloud.core :refer :all])) (defn get-size [file] (with-open [r (java.io.FileInputStream. file)] (let [image (javax.imageio.ImageIO/read r)] [(.getWidth image) (.getHeight image)]))) (deftest image-dimensions-test ...
a5bedbab78315944d72422c006d282a3392da34cbcaacc56fc5b801fc4a10b54
MinaProtocol/mina
coin_change.ml
* This file has been generated by the OCamlClientCodegen generator for openapi - generator . * * Generated by : -generator.tech * * Schema Coin_change.t : CoinChange is used to represent a change in state of a some coin identified by a coin_identifier . This object is part of the Operation model and must...
null
https://raw.githubusercontent.com/MinaProtocol/mina/a80b00221953c26ff158e7375a948b5fa9e7bd8b/src/lib/rosetta_models/coin_change.ml
ocaml
* This file has been generated by the OCamlClientCodegen generator for openapi - generator . * * Generated by : -generator.tech * * Schema Coin_change.t : CoinChange is used to represent a change in state of a some coin identified by a coin_identifier . This object is part of the Operation model and must...
33362ac23d45a5c4befa02a534c6e9eacbdfd1c252b4a4bdf9860b543f88b46b
janestreet/core
only_in_test.ml
open! Import include Lazy let of_thunk = from_fun
null
https://raw.githubusercontent.com/janestreet/core/b0be1daa71b662bd38ef2bb406f7b3e70d63d05f/core/src/only_in_test.ml
ocaml
open! Import include Lazy let of_thunk = from_fun
5cc1e2ce6da9b34bb7d6f06e70f5c8bcd12df6287f1b4b41cd3b09b6dfd4b219
moby/vpnkit
hostnet_udp.ml
open Lwt.Infix let src = let src = Logs.Src.create "Uwt" ~doc:"UDP NAT implementation" in Logs.Src.set_level src (Some Logs.Info); src module Log = (val Logs.src_log src : Logs.LOG) type reply = Cstruct.t -> unit Lwt.t type address = Ipaddr.t * int type datagram = { src: address; dst: address; intercep...
null
https://raw.githubusercontent.com/moby/vpnkit/6039eac025e0740e530f2ff11f57d6d990d1c4a1/src/hostnet/hostnet_udp.ml
ocaml
For every source address, we allocate a flow with a receiving loop We keep a map of last_use (nanosecond) -> flow so we can partition it and expire the oldest. src -> flow last use -> flow Copy the payload because lower down in the stack we will keep references, for example in the .pcap capturi...
open Lwt.Infix let src = let src = Logs.Src.create "Uwt" ~doc:"UDP NAT implementation" in Logs.Src.set_level src (Some Logs.Info); src module Log = (val Logs.src_log src : Logs.LOG) type reply = Cstruct.t -> unit Lwt.t type address = Ipaddr.t * int type datagram = { src: address; dst: address; intercep...
b85af2bb2ed0959b5913f98adaa6ec83230c10161b1e1c5d37f0724752a53b85
xvw/preface
bounded_lattice.mli
(** A [Bounded_lattice] capture the notion of Bounded join semilattice and a Bounded meet semilattice *) * { 1 Minimal definition } module type WITH_BOUNDED_JOIN_LATTICE_AND_BOUNDED_MEET_LATTICE = sig include Bounded_join_semilattice.WITH_JOIN_AND_BOTTOM include Bounded_meet_semilattice.WITH_MEET_AND_TOP with...
null
https://raw.githubusercontent.com/xvw/preface/7365f60cffd2633c0ee531bb46cb7a430c62e070/lib/preface_specs/bounded_lattice.mli
ocaml
* A [Bounded_lattice] capture the notion of Bounded join semilattice and a Bounded meet semilattice * {1 Structure anatomy} * Basis operations * Infix operators. * {1 Complete API} * The complete interface of a [Bounded_lattice]. * {1 Infix operators}
* { 1 Minimal definition } module type WITH_BOUNDED_JOIN_LATTICE_AND_BOUNDED_MEET_LATTICE = sig include Bounded_join_semilattice.WITH_JOIN_AND_BOTTOM include Bounded_meet_semilattice.WITH_MEET_AND_TOP with type t := t end module type CORE = WITH_BOUNDED_JOIN_LATTICE_AND_BOUNDED_MEET_LATTICE module type INFIX =...
d647d9822d54fd0d5d9f67174777b01721cd23db19c7fd6cc34fa273c0c1f64d
GillianPlatform/Gillian
CVal.ml
(*********************) (* *) (* Concrete values *) (* *) (*********************) module rec M : (Val.S with type t = Literal.t and type st = CSubst.t and type et = CESubst.t) = struct type t = Literal.t [@@deriving yojson] type st = CSubst.t type et = CESubst.t let equ...
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/894645bfe5027228f2f74ef3a2f7b26533014588/GillianCore/engine/ConcreteSemantics/CVal.ml
ocaml
******************* Concrete values *******************
module rec M : (Val.S with type t = Literal.t and type st = CSubst.t and type et = CESubst.t) = struct type t = Literal.t [@@deriving yojson] type st = CSubst.t type et = CESubst.t let equal = Literal.equal let pp = Literal.pp let full_pp = Literal.pp let full_pp_list = Fmt.list ~sep:(Fmt.any "; ") fu...
cab05ca1dddc6e8d4156e36534c001274da62f13aec10b252269d7b34dbd27e0
scheme/scsh
let-opt.scm
;;; Here is where we define the macros, using the expanders from let-opt-expanders. ;;; (LET-OPTIONALS args ((var1 default1 [arg-test supplied?]) ...) body1 ...) ;;; (LET-OPTIONALS* args ((var1 default1 [arg-test supplied?]) ...) body1 ...) (define-syntax let-optionals expand-let-optionals) (define-syntax let-optio...
null
https://raw.githubusercontent.com/scheme/scsh/114432435e4eadd54334df6b37fcae505079b49f/scheme/let-opt.scm
scheme
Here is where we define the macros, using the expanders from let-opt-expanders. (LET-OPTIONALS args ((var1 default1 [arg-test supplied?]) ...) body1 ...) (LET-OPTIONALS* args ((var1 default1 [arg-test supplied?]) ...) body1 ...) (:optional rest-arg default-exp [test-pred]) This form is for evaluating optional ar...
(define-syntax let-optionals expand-let-optionals) (define-syntax let-optionals* expand-let-optionals*) - If REST - ARG has 0 elements , evaluate DEFAULT - EXP and return that . - If REST - ARG has 1 element , return that element . - If REST - ARG has > 1 element , error . (define-syntax :optional (syntax-...
b211348beea1d6bd816f120733224f493b046a68b288b552bf5627ea436cb8c6
loganallen/CmlControl
head.mli
(**************************** HEAD Ptr Manipulation ***************************) (******************************************************************************) (* returns the current HEAD of the cml repository *) val get_head: unit -> string (* sets the HEAD of the cml repository *) val set_head: string -> unit (*...
null
https://raw.githubusercontent.com/loganallen/CmlControl/24bf4616b36672bc12225b9bd93b1ae662733663/modules/head.mli
ocaml
*************************** HEAD Ptr Manipulation ************************** **************************************************************************** returns the current HEAD of the cml repository sets the HEAD of the cml repository sets the HEAD of the cml repository to a commit hash returns the commit hash...
val get_head: unit -> string val set_head: string -> unit val set_detached_head: string -> unit val get_detached_head: unit -> string val detached_head: unit -> bool val get_head_safe : unit -> string
1367f6acfcd69f5f2ae4779dfbc63de0969bf7cf32e936c60995508d6c3ffa12
racket/racket-lang-org
techreports.rkt
#lang plt-web ;; New style TR entries (require "resources.rkt" "people.rkt" "../download/data.rkt" plt-web/style) (define (-all-techreports-) (list (TR 1 'reference "Reference: Racket" '(mflatt plt) #:description "Racket Programming Language") (TR 2 'drracket "DrRacket: Programming Env...
null
https://raw.githubusercontent.com/racket/racket-lang-org/88dada2ee769ada9afaf1e3ec1fb28b8ddf216db/www/techreports.rkt
racket
New style TR entries
#lang plt-web (require "resources.rkt" "people.rkt" "../download/data.rkt" plt-web/style) (define (-all-techreports-) (list (TR 1 'reference "Reference: Racket" '(mflatt plt) #:description "Racket Programming Language") (TR 2 'drracket "DrRacket: Programming Environment" '(robby plt) ...
bfe3c7d7b16aa975b752dff578c1af4a2347c21ad2ffd75123ccd466e8ff5514
spurious/chibi-scheme-mirror
log.scm
;; log.scm -- customizable logging with levels Copyright ( c ) 2005 - 2013 . All rights reserved . ;; BSD-style license: (define-record-type Logger (make-logger levels level-abbrevs current-level prefix prefix-spec counts file port locked? zipped?) logger? (levels logger-levels logger-level...
null
https://raw.githubusercontent.com/spurious/chibi-scheme-mirror/49168ab073f64a95c834b5f584a9aaea3469594d/lib/chibi/log.scm
scheme
log.scm -- customizable logging with levels BSD-style license: procedural interface Use file-locking to let multiple processes write to the same log file. On error try to re-open the log file. We keep the port open so that even if you mv the file (e.g. when rotating logs) we keep writing to it in the new loc...
Copyright ( c ) 2005 - 2013 . All rights reserved . (define-record-type Logger (make-logger levels level-abbrevs current-level prefix prefix-spec counts file port locked? zipped?) logger? (levels logger-levels logger-levels-set!) (level-abbrevs logger-level-abbrevs logger-level-abbrevs-set...
9f4f51a9b33a0752e9cef09991b9fa8c87586b8633e4457aa2d7a8f90ee57bcb
matthewbauer/eu4-parser
generate-provinces.hs
import Prelude hiding (putStrLn) import qualified ClausewitzText import Data.Aeson import System.Directory import Data.Map hiding (foldr, null) import Data.Char import Map import Generator import Data.ByteString.Lazy.Char8 (putStrLn) import Data.ByteString.Char8 (readInt) import Data.Text hiding (empty, takeWhile, sing...
null
https://raw.githubusercontent.com/matthewbauer/eu4-parser/4cb2eb3dc6660916082d59ce290cdcde0e062996/generate-provinces.hs
haskell
import Prelude hiding (putStrLn) import qualified ClausewitzText import Data.Aeson import System.Directory import Data.Map hiding (foldr, null) import Data.Char import Map import Generator import Data.ByteString.Lazy.Char8 (putStrLn) import Data.ByteString.Char8 (readInt) import Data.Text hiding (empty, takeWhile, sing...
9060a1b029e7c981c49528b968e1609eeb3062c20608bf15f7876a970413a9ad
KIZI/sparqlab
exercise.clj
(ns sparqlab.exercise (:require [sparqlab.sparql :as sparql] [sparqlab.store :as store] [sparqlab.rdf :as rdf] [clojure.set :refer [union]] [clojure.string :as string] [clojure.tools.logging :as log]) (:import (java.util HashMap) (org.apache.jen...
null
https://raw.githubusercontent.com/KIZI/sparqlab/33a80b13c0fa0eb9aa0edb294ad0510d2cf52abc/src/clj/sparqlab/exercise.clj
clojure
If the queries are the same, retrieve only the canonical results. Otherwise execute both queries so we add them back. No reformatting by default.
(ns sparqlab.exercise (:require [sparqlab.sparql :as sparql] [sparqlab.store :as store] [sparqlab.rdf :as rdf] [clojure.set :refer [union]] [clojure.string :as string] [clojure.tools.logging :as log]) (:import (java.util HashMap) (org.apache.jen...
8d795e052ee097d41372633c44430b3eaaf6d17b0e27ac0f66805c62e3652471
collaborativetrust/WikiTrust
evaltypes.ml
Copyright ( c ) 2007 - 2008 The Regents of the University of California All rights reserved . Authors : , , , and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of source code must retain the abo...
null
https://raw.githubusercontent.com/collaborativetrust/WikiTrust/9dd056e65c37a22f67d600dd1e87753aa0ec9e2c/analysis/evaltypes.ml
ocaml
* Here are some types used for evaluating reputation. It is convenient to keep them all here, so we can just open this module. **************************************************************** Types for reading partial statistics n. of judging revisions how much change went on specific quality of edit T...
Copyright ( c ) 2007 - 2008 The Regents of the University of California All rights reserved . Authors : , , , and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of source code must retain the abo...
c7e770aa526f0134aed629485a9acf4d33264b417162995ba4ab6ef4eb88db92
pink-gorilla/webly
resource_gorillaui_test.clj
(ns webly.resource-gorillaui-test (:require [clojure.string] [clojure.java.io :as io] [clojure.test :refer [deftest is testing]])) (defn resource? [name] (let [resource (io/resource name)] (if resource true false))) ; gorilla ui packages css/images (that cannot be used directly via shado...
null
https://raw.githubusercontent.com/pink-gorilla/webly/d449a506e6101afc16d384300cdebb7425e3a7f3/demo-webly/test/webly/resource_gorillaui_test.clj
clojure
gorilla ui packages css/images (that cannot be used directly via shadow-cljs) in resources/public/npm-name/...
(ns webly.resource-gorillaui-test (:require [clojure.string] [clojure.java.io :as io] [clojure.test :refer [deftest is testing]])) (defn resource? [name] (let [resource (io/resource name)] (if resource true false))) (deftest gorilla-ui-resources [] (is (= true (resource? "public/tailwi...
773c5a2aaab757f1ccfb174c4200af9349d2e0f8678d61eca4e73faf4bf326c2
bcrafton/processor
main.ml
open Assemble open Runner open Printf open Lexing open Types open Str let () = let code_tests = [ "a.bc.s"; "b.bc.s"; "fn_add.bc.s"; "if_false.bc.s"; "if_true.bc.s"; "fib0.bc.s"; "fib1.bc.s"; "fib2.bc.s"; "fib3.bc.s"; "fib4.bc.s"; "fib5.bc.s"; "fib10.bc.s"; "to...
null
https://raw.githubusercontent.com/bcrafton/processor/4f8e7b853eab6ec6586e7208c42f675e696c431f/assembler/main.ml
ocaml
open Assemble open Runner open Printf open Lexing open Types open Str let () = let code_tests = [ "a.bc.s"; "b.bc.s"; "fn_add.bc.s"; "if_false.bc.s"; "if_true.bc.s"; "fib0.bc.s"; "fib1.bc.s"; "fib2.bc.s"; "fib3.bc.s"; "fib4.bc.s"; "fib5.bc.s"; "fib10.bc.s"; "to...
1858f58b8fd70da30271a74e8f374ff1ed4556fb8be57fc119b24e114c5dc3e6
cnuernber/dtype-next
locker.clj
(ns tech.v3.datatype.locker "Threadsafe access to a key-value map. Unlike atoms and swap! your update/initialization functions are never ran in parallel which helps if, for instance, initialization is a long running, memory intensive operation there will only be one running even if multiple threads request a v...
null
https://raw.githubusercontent.com/cnuernber/dtype-next/2ec6d37ba190148c99ca43b830d2716acaf8d959/src/tech/v3/datatype/locker.clj
clojure
(ns tech.v3.datatype.locker "Threadsafe access to a key-value map. Unlike atoms and swap! your update/initialization functions are never ran in parallel which helps if, for instance, initialization is a long running, memory intensive operation there will only be one running even if multiple threads request a v...
cd291b0d61d10c6e16126249df35554b42df17c929aade8858713b512726ab90
yuriy-chumak/ol
gtk-3.scm
(define-library (lib gtk-3) (export gtk_init gtk_main gtk_main_quit gtk_main_iteration gtk_events_pending gtk_check_version make-GtkTextIter GtkTextIter* ; GtkTextView* ; todo: move to "stock" GTK_STOCK_CANCEL GTK_RESPONSE_CANCEL ...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/bfcefc78817f72ea688e7fac2fd0c1737ba0177a/libraries/lib/gtk-3.scm
scheme
todo: move to "stock" (lib gtk textiter)
(define-library (lib gtk-3) (export gtk_init gtk_main gtk_main_quit gtk_main_iteration gtk_events_pending gtk_check_version make-GtkTextIter GtkTextIter* GtkTextView* GTK_STOCK_CANCEL GTK_RESPONSE_CANCEL GTK_STOCK_OPEN GTK_RESPONSE_ACC...
1865c9b0aa03ce135c788e892718869b06db87dee38c1f5779d39bff739dce79
tmattio/js-bindings
es2018_promise.mli
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es2017 module Promise : sig include module type of struct include Promise end val finally : 'T t -> ?onfinally:(unit -> unit) or_null_or_undefined -> unit -> 'T t [@@js.call "finally"] end [@@j...
null
https://raw.githubusercontent.com/tmattio/js-bindings/fe1d40a5b8cae157af85fa84ca482fb6b0ddf1e0/lib/es2018/es2018_promise.mli
ocaml
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es2017 module Promise : sig include module type of struct include Promise end val finally : 'T t -> ?onfinally:(unit -> unit) or_null_or_undefined -> unit -> 'T t [@@js.call "finally"] end [@@j...
ad1300a79bcdecc3f3eee72a90ca25a0d04ed6b6efe0cd857ce2faa424f66036
synrc/nitro
element_upload.erl
-module(element_upload). -compile(export_all). -include_lib("nitro/include/nitro.hrl"). -include_lib("nitro/include/event.hrl"). render_element(Record) when Record#upload.show_if==false -> [<<>>]; render_element(#upload{id=Id}) -> Uid = case Id of [] -> nitro:temp_id(); I -> I end, nitro:wire("ftp_file=undefin...
null
https://raw.githubusercontent.com/synrc/nitro/753b543626add2c014584546ec50870808a2eb90/src/elements/interactive/element_upload.erl
erlang
-module(element_upload). -compile(export_all). -include_lib("nitro/include/nitro.hrl"). -include_lib("nitro/include/event.hrl"). render_element(Record) when Record#upload.show_if==false -> [<<>>]; render_element(#upload{id=Id}) -> Uid = case Id of [] -> nitro:temp_id(); I -> I end, nitro:wire("ftp_file=undefin...
516a19e589ba1d3ac0d924c3d3bbe41dc3d0419326288b0d6cfbe098ab28189c
reborg/clojure-essential-reference
1.clj
(ns examples.compile-file) (when *compile-files* < 1 > < 2 >
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/9a3eb82024c8e5fbe17412af541c2cd30820c92e/DynamicVariablesintheStandardLibrary/*file*and*source-path*/1.clj
clojure
(ns examples.compile-file) (when *compile-files* < 1 > < 2 >
92b0d53da6866a4dcf68a84ad725117861f244cddaca8392117cf0a234cf694d
MyDataFlow/ttalk-server
exometer_uniform.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . %% 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 obtai...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/exometer/src/exometer_uniform.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- exometer_probe callbacks exometer_probe callbacks Setup random seed, if not already done. Sample interval. any earlier versions of the same option.
Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . 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 /. -module(exometer_uniform). -behaviour(exometer_probe). -export...
06dbfbd63bfbcc44755a5de19d426ab08c15f8e2714d07394faeed8506853cb8
JacquesCarette/Drasil
ODEInfo.hs
-- | Defines a structure to contain scientifically-relevant information about an ODE. module Language.Drasil.Data.ODEInfo ( ODEInfo(..), odeInfo, odeInfo', ODEOptions(..), odeOptions, ODEMethod(..) ) where import Language.Drasil.Chunk.Code (CodeVarChunk) import Language.Drasil.CodeExpr (CodeExpr, expr) import Langua...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/ec388a0e1690c19f45dd5c166a2796870147edf0/code/drasil-code/lib/Language/Drasil/Data/ODEInfo.hs
haskell
| Defines a structure to contain scientifically-relevant information about an ODE. This may be temporary, but need a structure to hold ODE info for now. Goal will be for this info to be populated by the instance model for the ODE and the Choices structure. Probably doesn't belong here, but where? | Structure to h...
module Language.Drasil.Data.ODEInfo ( ODEInfo(..), odeInfo, odeInfo', ODEOptions(..), odeOptions, ODEMethod(..) ) where import Language.Drasil.Chunk.Code (CodeVarChunk) import Language.Drasil.CodeExpr (CodeExpr, expr) import Language.Drasil(makeAODESolverFormat, formEquations, DifferentialModel(..), ODESolverForm...
e14478b1f7b310e82c5cc3dee396ec7783eaf16292936a350c1831cdad4f8d5c
atlas-engineer/nyxt
config.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (nyxt:define-package :nyxt/tests/executable (:use :lisp-unit2)) (in-package :nyxt/tests/executable) (defvar *executable* (asdf:system-relative-pathname :nyxt "nyxt")) (defvar *timeout* 10 "Timeout in seconds. See `exec...
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/c1770259e4e26c8edef1af67d55762f8c8dd2cdb/tests/executable/config.lisp
lisp
`buffer' does not have an `auto-rules-file' slot.
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (nyxt:define-package :nyxt/tests/executable (:use :lisp-unit2)) (in-package :nyxt/tests/executable) (defvar *executable* (asdf:system-relative-pathname :nyxt "nyxt")) (defvar *timeout* 10 "Timeout in seconds. See `exec...
cade4fe977fa4e99c43304695ef73d48f2e5769afda57ec46cd9bb874eb873c5
jepsen-io/tendermint
tendermint.clj
(ns jepsen.tendermint) (defn foo "I don't do a whole lot." [x] (println x "Hello, World!"))
null
https://raw.githubusercontent.com/jepsen-io/tendermint/184f9b4b62fb721a6ea4c1e93e82ce23f19ff7e8/src/jepsen/tendermint.clj
clojure
(ns jepsen.tendermint) (defn foo "I don't do a whole lot." [x] (println x "Hello, World!"))
4872b5c0e10c1f72d524ad614320a19d2f4ff540193f0ef0e94d374aa4d32bbf
mfoemmel/erlang-otp
wx_gen_erl.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . 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 Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/api_gen/wx_gen_erl.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 limita...
Copyright Ericsson AB 2008 - 2009 . 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 " Author : Created : 25 Jan 2007 b...
db28cc009c49478cfea32d5340eecfe7361c90ccc6c7cd5dafc65a49eca6d88b
ghcjs/ghcjs
t8103.hs
# LANGUAGE MagicHash # module Main where import T8103_A float_text = case (0.0## `foo` 1.2##) of 0.0## -> "1" _ -> "0" main = putStrLn (float_text)
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/codeGen/t8103.hs
haskell
# LANGUAGE MagicHash # module Main where import T8103_A float_text = case (0.0## `foo` 1.2##) of 0.0## -> "1" _ -> "0" main = putStrLn (float_text)
77fd5ab0325d837a24e66646c6a1c0a61533b9b68e25920a8de8e2decbf03fb5
xively/clj-mqtt
decoding_utils.clj
(ns mqtt.decoding-utils (:import [java.nio.charset Charset] [java.io StreamCorruptedException] [io.netty.buffer ByteBuf])) (defn assert-readable-bytes "Make sure that there are at least 'expected' more bytes to be read from the buffer. This is to protect against corrupt packets." [^ByteBu...
null
https://raw.githubusercontent.com/xively/clj-mqtt/74964112505da717ea88279b62f239146450528c/src/mqtt/decoding_utils.clj
clojure
(ns mqtt.decoding-utils (:import [java.nio.charset Charset] [java.io StreamCorruptedException] [io.netty.buffer ByteBuf])) (defn assert-readable-bytes "Make sure that there are at least 'expected' more bytes to be read from the buffer. This is to protect against corrupt packets." [^ByteBu...
f3f07b42f1badda26a784333693ea6c3a1379b42ca8af0f996618a974f62eddd
anoma/juvix
Language.hs
-- | A JuvixAsm program is a set of JuvixAsm functions . Every function has an -- associated Symbol, a fixed (i.e., known at compile time) number of arguments, a -- fixed temporary stack size, and a fixed maximum local value stack height (see -- Interpreter/RuntimeState.hs). -- See the file Interpreter / RuntimeSta...
null
https://raw.githubusercontent.com/anoma/juvix/fab40c6c9932cc12592fbacc54fac1ddcd3b2228/src/Juvix/Compiler/Asm/Language.hs
haskell
| associated Symbol, a fixed (i.e., known at compile time) number of arguments, a fixed temporary stack size, and a fixed maximum local value stack height (see Interpreter/RuntimeState.hs). and memory layout. In what follows, when referring to the stack we mean the current local value stack, unless otherwise st...
A JuvixAsm program is a set of JuvixAsm functions . Every function has an See the file Interpreter / RuntimeState.hs for a description of JuvixAsm runtime module Juvix.Compiler.Asm.Language ( module Juvix.Compiler.Asm.Language, module Juvix.Compiler.Core.Language.Base, ) where import Juvix.Compiler.Core.La...
8cf48713fff6aef8f421644de6ebcb49095ee12b44cda956e1302e7bd8202c49
RyanGlScott/text-show-instances
Containers.hs
# LANGUAGE TemplateHaskell # {-# OPTIONS -Wno-orphans #-} | Module : TextShow . Data . Containers Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC ' TextShow ' instances for data types in the @contai...
null
https://raw.githubusercontent.com/RyanGlScott/text-show-instances/b08f4b46466cdc3c3f3c979b7a0abf5590fa2916/src/TextShow/Data/Containers.hs
haskell
# OPTIONS -Wno-orphans # # INLINE liftShowbPrec # # INLINE liftShowbPrec # # INLINE liftShowbPrec # # INLINE liftShowbPrec # | /Since: 3.6/ | /Since: 3.6/
# LANGUAGE TemplateHaskell # | Module : TextShow . Data . Containers Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC ' TextShow ' instances for data types in the @containers@ library . /Since : 2...
e05d62a6ce2da3eab8ab99d858c8ab3e48506e5e2ac0a4d83e13f1eaba14b103
mogenslund/liq2
buffer_chooser_mode.cljc
(ns liq2.modes.buffer-chooser-mode (:require [clojure.string :as str] [liq2.editor :as editor :refer [apply-to-buffer switch-to-buffer get-buffer]] [liq2.buffer :as buffer] [liq2.util :as util])) (defn load-content [buf] (-> buf buffer/clear (buffer/insert-string (...
null
https://raw.githubusercontent.com/mogenslund/liq2/66a323a75804154ea51c3ff9d3c23cbd26c9d24d/src/liq2/modes/buffer_chooser_mode.cljc
clojure
(ns liq2.modes.buffer-chooser-mode (:require [clojure.string :as str] [liq2.editor :as editor :refer [apply-to-buffer switch-to-buffer get-buffer]] [liq2.buffer :as buffer] [liq2.util :as util])) (defn load-content [buf] (-> buf buffer/clear (buffer/insert-string (...
efcca15d13954eecb1967f682044036a1881fb905207282a9744fd010060e244
parsimony-ide/parsimony
core.clj
(ns parsimony.core (:require [alanlcode.util.os :as os] [alanlcode.util.package :as package] [clojure.java.io :as io] [clojure.pprint :refer [pprint]] [clojure.string :as str] [clojure.tools.cli :refer [parse-opts]] [com.stuartsierra.component :a...
null
https://raw.githubusercontent.com/parsimony-ide/parsimony/1744e8b4a921a50dfbd0815499cf3af1059590c8/src/parsimony/core.clj
clojure
(ns parsimony.core (:require [alanlcode.util.os :as os] [alanlcode.util.package :as package] [clojure.java.io :as io] [clojure.pprint :refer [pprint]] [clojure.string :as str] [clojure.tools.cli :refer [parse-opts]] [com.stuartsierra.component :a...
461c134f18d3e7af5db7afa75cc1c3eb80738b06e7cc40cd0c41e8520a326d1c
tonymorris/geo-osm
Api.hs
# LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses , TypeSynonymInstances , FlexibleInstances # | The @api@ element of a OSM file . module Data.Geo.OSM.Api ( Api , api ) where import Text.XML.HXT.Arrow.Pickle import Data.Geo.OSM.Version import Data.Geo.OSM.Area import Data.Geo.OSM.Tracepoints import Da...
null
https://raw.githubusercontent.com/tonymorris/geo-osm/776542be2fd30a05f0f9e867128eca5ad5d66bec/src/Data/Geo/OSM/Api.hs
haskell
| Constructs a @api@ with version, area, tracepoints and waynodes. ^ The @version@ element. ^ The @area@ element. ^ The @tracepoints@ element. ^ The @waynodes@ element.
# LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses , TypeSynonymInstances , FlexibleInstances # | The @api@ element of a OSM file . module Data.Geo.OSM.Api ( Api , api ) where import Text.XML.HXT.Arrow.Pickle import Data.Geo.OSM.Version import Data.Geo.OSM.Area import Data.Geo.OSM.Tracepoints import Da...
52ba4969669c6eb3fd3c25705b5de1cdb808dfddf7f83d4e8bd8cc99dbb5782f
haskell-tools/haskell-tools
RecordWildcards_res.hs
# LANGUAGE RecordWildCards # module Refactor.RenameDefinition.RecordWildcards where data Point = Point { x :: Int, yy :: Int } p1 = let x = 3; yy = 4 in Point { x = 1, .. } p2 = let Point { .. } = Point 1 2 in yy
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/RenameDefinition/RecordWildcards_res.hs
haskell
# LANGUAGE RecordWildCards # module Refactor.RenameDefinition.RecordWildcards where data Point = Point { x :: Int, yy :: Int } p1 = let x = 3; yy = 4 in Point { x = 1, .. } p2 = let Point { .. } = Point 1 2 in yy
4b88e6ed51ae9ed6a877fd4e0a26e6ccb31469e044644ef5d957763cd91dcc73
cabol/west
west_dist_cmd_fsm.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2013 , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of ...
null
https://raw.githubusercontent.com/cabol/west/c3c31dff9ad727ce9b82dde6eb690f7b11cd4d24/src/west_dist_cmd_fsm.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2013 , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY @author < > ( C...
dea34ecb32bad3dd0701d0b05680cc1c44cd7dbb5d6ae8ae63850b3a9dbf4c37
appcanary/crustacean
core.clj
(ns crustacean.core "This generates CRU functions complete with input validation" (:require [schema.core :as s] [plumbing.core :refer [fnk]] [datomic.api :as d] [clojure.string :refer [capitalize]] [crustacean.migrations :as migrations] [crustacean.lazygr...
null
https://raw.githubusercontent.com/appcanary/crustacean/63a084e8c6bcd1db3cf57a77d5cab6092e322732/src/crustacean/core.clj
clojure
- Documentation/readme - Tests - add support for backrefs in composite keys ## The main macro A field is a vector containing the field name, type, and options, i.e. [posts :ref :many :indexed] The type may itself be a vector, that indicates the model used in a reference type, i.e. [posts [:ref blog.post/post] :...
(ns crustacean.core "This generates CRU functions complete with input validation" (:require [schema.core :as s] [plumbing.core :refer [fnk]] [datomic.api :as d] [clojure.string :refer [capitalize]] [crustacean.migrations :as migrations] [crustacean.lazygr...
8bf7c1ceea9fb4b7b4e7393991f567ae4e99556cdb566ce9ca3c4ee5d4d5cf2a
Mercerenies/net-game
inventory.lisp
(defclass carrying () ((inventory :accessor inventory :initarg :inventory :initform (make-inventory) :type inventory))) ;; `inventory` objects act like `carrying` objects so that the inventory-modification methods ;; can be written once and will behave correctly given an in...
null
https://raw.githubusercontent.com/Mercerenies/net-game/da30ca36a7f468e6f9c062fd7bc5e4fed4ee95f9/lisp/inventory.lisp
lisp
`inventory` objects act like `carrying` objects so that the inventory-modification methods can be written once and will behave correctly given an inventory OR a carrying instance.
(defclass carrying () ((inventory :accessor inventory :initarg :inventory :initform (make-inventory) :type inventory))) (defclass inventory (carrying) ((items :accessor inv-items :initarg :items :initform nil :type list) (max-weight :acces...
df75c06e3d9cf8408710dcb34f13ab6c203f7d57771dd0b2424c5439675f3757
Helium4Haskell/helium
ConfusingFloat2.hs
x = .2
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/parser/ConfusingFloat2.hs
haskell
x = .2
93413acd7c7aa27c8ae710cd47aa46e3e5caab1b5748b4c7d4c0f01632a86467
savonet/ocaml-mm
imageBase.ml
* Copyright 2011 The Savonet Team * * This file is part of ocaml - mm . * * is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your ...
null
https://raw.githubusercontent.com/savonet/ocaml-mm/f931d881512cf3a74399c261aa5877fb69bfe524/src/imageBase.ml
ocaml
external create_rounded_plane : int -> int -> int * t = "caml_data_aligned_plane" * [round n k] rounds [n] to the nearest upper multiple of [k]. * [aligned k n] allocates [n] bytes at a multiple of [k]. [@@noalloc] TODO: stride ? Don't use create_rounded_plane here since there is not stride..
* Copyright 2011 The Savonet Team * * This file is part of ocaml - mm . * * is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your ...
83fa7f75724f89f9d74609f5881f296ffca3329f0d58528cc5e0b09b7e282e90
mzp/min-caml
kNormal.ml
(* give names to intermediate values (K-normalization) *) K正規化後の式 ( caml2html : ) | Unit | Int of int | Float of float | Neg of Id.t | Add of Id.t * Id.t | Sub of Id.t * Id.t | FNeg of Id.t | FAdd of Id.t * Id.t | FSub of Id.t * Id.t | FMul of Id.t * Id.t | FDiv of Id.t * Id.t | IfEq of Id.t...
null
https://raw.githubusercontent.com/mzp/min-caml/cf1180792a2a0bc895ba17a0052e3b6f4a74e444/src/kNormal.ml
ocaml
give names to intermediate values (K-normalization) 比較 + 分岐 (caml2html: knormal_branch) 比較 + 分岐 notによる分岐を変換 (caml2html: knormal_not) 外部配列の参照 (caml2html: knormal_extarray) 外部関数の呼び出し (caml2html: knormal_extfunapp) "xs" are identifiers for the arguments left-to-right evaluation "xs" are identifiers for th...
K正規化後の式 ( caml2html : ) | Unit | Int of int | Float of float | Neg of Id.t | Add of Id.t * Id.t | Sub of Id.t * Id.t | FNeg of Id.t | FAdd of Id.t * Id.t | FSub of Id.t * Id.t | FMul of Id.t * Id.t | FDiv of Id.t * Id.t | Let of (Id.t * Type.t) * t * t | Var of Id.t | LetRec of fundef * ...
e706f7ab78ac95577e3b1c45aa6456fe53418c7179e22059c9d3d8d95176db88
olabini/clj-gremlin
project.clj
(defproject clj-gremlin "0.0.4" :description "Implementation of TinkerPop Gremlin 2.0" :url "-clj" :dependencies [[org.clojure/clojure "1.4.0"] [com.tinkerpop.gremlin/gremlin-java "2.2.0"] [com.tinkerpop.blueprints/blueprints-core "2.2.0"]] :aot [clj-gremlin.pipeline] ;; :warn...
null
https://raw.githubusercontent.com/olabini/clj-gremlin/b375d485daf6168d9978f3fe12c088997dcdddc8/project.clj
clojure
:warn-on-reflection true
(defproject clj-gremlin "0.0.4" :description "Implementation of TinkerPop Gremlin 2.0" :url "-clj" :dependencies [[org.clojure/clojure "1.4.0"] [com.tinkerpop.gremlin/gremlin-java "2.2.0"] [com.tinkerpop.blueprints/blueprints-core "2.2.0"]] :aot [clj-gremlin.pipeline] )
94e30c9fa77af45b85b2e53580d75cd3602a5633ca9b4d719be50f91f8db5a3d
Octachron/codept
loc.mli
(** Location information within a file *) (** A location within a file *) type t = | Nowhere | Simple of { line:int; start:int; stop:int } | Multiline of { start: int * int; stop: int * int } (** A data structure to add location data *) type 'a ext = { loc:t; data:'a } val pp: Format.formatter -> t -> unit val...
null
https://raw.githubusercontent.com/Octachron/codept/2d2a95fde3f67cdd0f5a1b68d8b8b47aefef9290/lib/loc.mli
ocaml
* Location information within a file * A location within a file * A data structure to add location data
type t = | Nowhere | Simple of { line:int; start:int; stop:int } | Multiline of { start: int * int; stop: int * int } type 'a ext = { loc:t; data:'a } val pp: Format.formatter -> t -> unit val nowhere: 'a -> 'a ext val create: t -> 'a -> 'a ext val expand: t -> ((int*int) * (int*int)) option val compress: t ->...
7d3351e2ca10cabf46dd08e72cf02b24abeb719b55ce00b76a94d8d4a64679df
alaricsp/chicken-scheme
nbody.scm
The Computer Language Benchmarks Game ;;; / ;;; contributed by modified by ;; define planetary masses, initial positions & velocity (define +pi+ 3.141592653589793) (define +days-per-year+ 365.24) (define +solar-mass+ (* 4 +pi+ +pi+)) (define-record body x y z vx vy vz mass) (define *sun* (make-body 0.0...
null
https://raw.githubusercontent.com/alaricsp/chicken-scheme/1eb14684c26b7c2250ca9b944c6b671cb62cafbc/benchmarks/nbody.scm
scheme
/ define planetary masses, initial positions & velocity ------------------------------- ------------------------------- ------------------------------- -------------------------------
The Computer Language Benchmarks Game contributed by modified by (define +pi+ 3.141592653589793) (define +days-per-year+ 365.24) (define +solar-mass+ (* 4 +pi+ +pi+)) (define-record body x y z vx vy vz mass) (define *sun* (make-body 0.0 0.0 0.0 0.0 0.0 0.0 +solar-mass+)) (define *jupiter* (make-body...
957f0788f8502df83b342365181ba57b54466476f323cdf2bba5eed1fc510a66
OCamlPro/ocp-build
buildOCamlEnv.ml
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/ocp-build/ocaml/buildOCamlEnv.ml
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file STATUS : - there is an ambiguity between " vmthreads - stdlib " and " stdlib " , because they exports the same interface . However , " vmthreads - stdlib "...
3de644108c7a14e98037432a14ea50c7ff62c6327dddf3984bb821be3778347c
active-group/sqlosure
utils.clj
(ns sqlosure.utils) (defn third [xs] (-> xs rest rest first)) (defn fourth [xs] (-> xs rest rest rest first)) (defn zip [xs ys] (mapv (fn [k v] [k v]) xs ys)) (defn print-deprecation-warning! [the-sym replace-with] (println (format "WARNING: %s is deprecated. Replace with %s" the-sym replace-with)))
null
https://raw.githubusercontent.com/active-group/sqlosure/3cd74e90df4f3c49c841a1a75941acc7444c4bfb/src/sqlosure/utils.clj
clojure
(ns sqlosure.utils) (defn third [xs] (-> xs rest rest first)) (defn fourth [xs] (-> xs rest rest rest first)) (defn zip [xs ys] (mapv (fn [k v] [k v]) xs ys)) (defn print-deprecation-warning! [the-sym replace-with] (println (format "WARNING: %s is deprecated. Replace with %s" the-sym replace-with)))
45147c23d7fbb0b8f1524a854f6f6b39c0cc99fecdbc5caf221ce60044e110c9
finnishtransportagency/harja
kanavan_hairiotilanne_test.clj
(ns harja.kyselyt.kanavat.kanavan-hairiotilanne-test (:require [clojure.test :refer :all] [com.stuartsierra.component :as component] [harja.testi :refer :all] [harja.kyselyt.kanavat.kanavan-hairiotilanne :as hairiotilanne-q] [harja.domain.kanavat.hairiotilanne :as hairi...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/c57d742beaff2bef7b30318819f07d4a13423404/test/clj/harja/kyselyt/kanavat/kanavan_hairiotilanne_test.clj
clojure
(ns harja.kyselyt.kanavat.kanavan-hairiotilanne-test (:require [clojure.test :refer :all] [com.stuartsierra.component :as component] [harja.testi :refer :all] [harja.kyselyt.kanavat.kanavan-hairiotilanne :as hairiotilanne-q] [harja.domain.kanavat.hairiotilanne :as hairi...
9837c81dd86eb25b0de1f9bfb2ec56c7b769517f2c1de17c35032585ba3ef0ca
jbclements/molis-hai
enumeration.rkt
#lang racket (require data/enumerate data/enumerate/lib rackunit) ;; given a tree-table, a rotation function, an initial state, and ;; a bitcount, produce a list of leaves chosen. (define (go tree-table rotate init-state bitcount) (define new-huff-tree (hash-ref tree-table init-state)) (cons-tr...
null
https://raw.githubusercontent.com/jbclements/molis-hai/6a335ec73c144f9d8ac538752ca8e6fd0b3b3cce/molis-hai/experimental/enumeration.rkt
racket
given a tree-table, a rotation function, an initial state, and a bitcount, produce a list of leaves chosen. usage, it will already be closed over the current markov state. of bits right at the boundary between tree traversals: uh oh... we're part way through the tree traversal find the most likely (a.k.a. shallo...
#lang racket (require data/enumerate data/enumerate/lib rackunit) (define (go tree-table rotate init-state bitcount) (define new-huff-tree (hash-ref tree-table init-state)) (cons-tree-enum/top new-huff-tree bitcount (make-kont tree-table rotate init-state))) the kont co...
900cb4b443ee69c551af0cde2465bcd2b64c2a9102a1be2e570887b37b4a3156
vindarel/ABStock
abstock.lisp
(defpackage abstock (:use :cl :sxql) (:import-from :defclass-std :defclass/std) (:import-from :function-cache :defcached) (:import-from :access :access) (:import-from :serapeum :dict) (:export :main :start)) (in-package :abs...
null
https://raw.githubusercontent.com/vindarel/ABStock/68560f19703b029e364e4d7608e08fd87859f3a3/src/abstock.lisp
lisp
Book objects must have: - title - authors' representation - price - publisher - ISBN - cover image url - shelf Optionally: - year published - details' url - summary Asking for the quantity will be done next. A "card" is the generic name for a book. also "big" Dev helpers. TODO: needs to be run insid...
(defpackage abstock (:use :cl :sxql) (:import-from :defclass-std :defclass/std) (:import-from :function-cache :defcached) (:import-from :access :access) (:import-from :serapeum :dict) (:export :main :start)) (in-package :abs...
d6a7008348c7d4a64dcf553e4317064d41d165a66c04a6ce5f19786331b5330f
igrishaev/domic
runtime.clj
(ns domic.runtime (:require [domic.error :refer [error!]] [domic.sql-helpers :refer [->cast]] [domic.query-builder :as qb] [domic.query-params :as qp] [domic.attr-manager :as am] [domic.engine :as en] [honeysql.core :as sql])) (defn resolve-lookup [{:as scope :keys [table ...
null
https://raw.githubusercontent.com/igrishaev/domic/92fef292eb58ab485332ea54a039dbd2e1cf6d06/src/domic/runtime.clj
clojure
(ns domic.runtime (:require [domic.error :refer [error!]] [domic.sql-helpers :refer [->cast]] [domic.query-builder :as qb] [domic.query-params :as qp] [domic.attr-manager :as am] [domic.engine :as en] [honeysql.core :as sql])) (defn resolve-lookup [{:as scope :keys [table ...
9d00846a7b894cb75a7520e15cd3271183dd594ca7b5cb2723b66642eab0176b
msantos/srly
strobely.erl
Copyright ( c ) 2012 - 2015 , < > %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions %% are met: %% %% Redistributions of source code must retain the above copyright %% notice, this list of condition...
null
https://raw.githubusercontent.com/msantos/srly/405d75b6c6f70a26d9281910c9c9e2d14b41908a/examples/strobe/strobely.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in bi...
Copyright ( c ) 2012 - 2015 , < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF U...
ff999a7d6461557b2a51d2e0fc9bffe06372b84ed4ff0ac9972ba4d522562039
sunng87/cljts
relation.clj
(ns cljts.relation (:refer-clojure :exclude [contains?]) (:import [com.vividsolutions.jts.geom Geometry]) (:import [com.vividsolutions.jts.geom.prep PreparedGeometry])) (defprotocol GeometryRelations (equals? [this that] "Given two (topologically closed) geometric objects \"a\" and \"b\": a.Equals(b) ⇔ a ⊆...
null
https://raw.githubusercontent.com/sunng87/cljts/b4360aa79fe8cad278bb5bc552f487832a4908b9/src/cljts/relation.clj
clojure
(ns cljts.relation (:refer-clojure :exclude [contains?]) (:import [com.vividsolutions.jts.geom Geometry]) (:import [com.vividsolutions.jts.geom.prep PreparedGeometry])) (defprotocol GeometryRelations (equals? [this that] "Given two (topologically closed) geometric objects \"a\" and \"b\": a.Equals(b) ⇔ a ⊆...
c6ea67fcabf014e1628d4f6cc2dad6a01d8f3ce2cba51466b5f3caed6cedade1
mahsu/MariOCaml
actors.mli
type dir_1d = | Left | Right type dir_2d = | North | South | East | West Generic xy record for easy position access type xy = { mutable x: float; mutable y: float; } (* Controls correspond to keyboard input *) type controls = | CLeft | CRight | CUp | CDown (* Player ability type *) type pl_typ = | B...
null
https://raw.githubusercontent.com/mahsu/MariOCaml/d2359260895b77390648ca5ad126a897e639e7e4/actors.mli
ocaml
Controls correspond to keyboard input Player ability type Player action type Particle Type
type dir_1d = | Left | Right type dir_2d = | North | South | East | West Generic xy record for easy position access type xy = { mutable x: float; mutable y: float; } type controls = | CLeft | CRight | CUp | CDown type pl_typ = | BigM | SmallM type item_typ = | Mushroom | FireFlower | Star ...
76f62b148134c2b0b838eb4a00eb21d5415e784a38e67fe3f0df12be03df28cf
LeapYear/aeson-schemas
All.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # module Data.Aeson.Schem...
null
https://raw.githubusercontent.com/LeapYear/aeson-schemas/7693390d8f84da6498470ec0a61768a871967abc/src/Data/Aeson/Schema/Utils/All.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE RankNTypes # | A type family for traversing a type-level list.
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # module Data.Aeson.Schema.Utils.All ( All (..), ) where import Data.Proxy (Proxy (...
3c43505acb75a46a1830dd73a12fe8eecb97b766830d6a229379684391a77931
iamFIREcracker/adventofcode
day08.lisp
(defpackage :aoc/2015/08 #.cl-user::*aoc-use*) (in-package :aoc/2015/08) (defun length-unescaped (string &aux (index 0)) (- (loop while (< index (length string)) for ch = (char string index) for ch1 = (and (< (1+ index) (length string)) (char string (1+ index))) ...
null
https://raw.githubusercontent.com/iamFIREcracker/adventofcode/c395df5e15657f0b9be6ec555e68dc777b0eb7ab/src/2015/day08.lisp
lisp
(defpackage :aoc/2015/08 #.cl-user::*aoc-use*) (in-package :aoc/2015/08) (defun length-unescaped (string &aux (index 0)) (- (loop while (< index (length string)) for ch = (char string index) for ch1 = (and (< (1+ index) (length string)) (char string (1+ index))) ...
c34e9724295eb2a61b35c761231b6dfa12fbd38d4b43096677b0ca6e70e5f740
mirage/capnp-rpc
api.ml
include Test_api.MakeRPC(Capnp_rpc_lwt)
null
https://raw.githubusercontent.com/mirage/capnp-rpc/8a0b6dce373dc2e2d547d85e542962862773f74b/examples/testlib/api.ml
ocaml
include Test_api.MakeRPC(Capnp_rpc_lwt)
21b29e0bbf99f1d4f7c883479127a0e187e698ccda9f6f1bd39b184a79e67cab
emqx/emqx
emqx_connector_sup.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_connector/src/emqx_connector_sup.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_connector_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]...
b1e5c3caa800410aecaf3d31f373f748063653010aa6a471932c7774dd8feb6e
gafiatulin/codewars
RLE.hs
-- Run-length encoding -- / module RLE where import Control.Arrow ((&&&)) import Data.List (group) runLengthEncoding :: String -> [(Int, Char)] runLengthEncoding = map (length &&& head) . group
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/6%20kyu/RLE.hs
haskell
Run-length encoding /
module RLE where import Control.Arrow ((&&&)) import Data.List (group) runLengthEncoding :: String -> [(Int, Char)] runLengthEncoding = map (length &&& head) . group
de3460eed50e535c7698431564f2864b310caf530ab17ef149630f052ae8d3b7
archaelus/erlmail
popd_util.erl
%%%--------------------------------------------------------------------------------------- @author < > [ ] 2006 - 2007 Simple Enigma , Inc. All Rights Reserved . %%% @doc POP server utility functions @reference See < a href=" / modules / erlmail " target="_top">Erlang Software Framework...
null
https://raw.githubusercontent.com/archaelus/erlmail/fe69b0e936f1512b4f349666e56c31c0af7b672c/src/popd_util.erl
erlang
--------------------------------------------------------------------------------------- @doc POP server utility functions @reference See <a href="" target="_top">ErlMail Google Code Repository</a> for more information @version 0.0.6 @since 0.0.6 @end Permission is hereby granted, fre...
@author < > [ ] 2006 - 2007 Simple Enigma , Inc. All Rights Reserved . @reference See < a href=" / modules / erlmail " target="_top">Erlang Software Framework</a > for more information The MIT License Copyright ( c ) 2007 , Simple Enigma , Inc. All Righs Reserved in the Software wi...
b3c5c9f753a1dac7f703d58e3f4d60f0dfe5d37bae7ea9ff64ab0af62f63569c
yrashk/erlang
proplists.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2001 - 2009 . 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 Pub...
null
https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/stdlib/src/proplists.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 limita...
Copyright Ericsson AB 2001 - 2009 . 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 " Copyright ( C ) 2000 - 2003 of either...
3c530305580ffa624789f87e15f570f412d29640627e7648c72e7aacedf06f24
moclojer/moclojer
openapi.clj
(ns moclojer.openapi (:require [cheshire.core :as cheshire] [clojure.java.io :as io] [clojure.string :as string] [io.pedestal.http.body-params :as body-params] [io.pedestal.http.ring-middlewares :as middlewares] [io.pedestal.http.route :as route] ...
null
https://raw.githubusercontent.com/moclojer/moclojer/76b485cc3fcd9f24d478966a7d4a40e55ea3f945/src/moclojer/openapi.clj
clojure
TODO: JSON Pointer library TODO: Handle wildcards -Specification/issues/291 TODO: support objetct store (cloud) TODO: this function is too complex, we need to rewrite simplifying the logic and splitting the implementation into smaller functions use the `host` declared in the configuration file method ex: `:ge...
(ns moclojer.openapi (:require [cheshire.core :as cheshire] [clojure.java.io :as io] [clojure.string :as string] [io.pedestal.http.body-params :as body-params] [io.pedestal.http.ring-middlewares :as middlewares] [io.pedestal.http.route :as route] ...
99bd50a8efe9036780f85aeeb6ec730ab9d38d1f2f9c43a4bbf8c7da9044e573
tari3x/csec-modex
two.ml
Copyright ( c ) 2009 - 2013 , , Permission to use , copy , modify , and/or distribute this software for any purpose with or without fee is hereby granted , provided that the above copyright notice and this permission notice appear in all copies . THE SOFTWARE IS PROVIDED “ AS IS ” AND THE AUTHOR DISCLAIM...
null
https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/deps/ocamlyices/examples/two.ml
ocaml
Copyright ( c ) 2009 - 2013 , , Permission to use , copy , modify , and/or distribute this software for any purpose with or without fee is hereby granted , provided that the above copyright notice and this permission notice appear in all copies . THE SOFTWARE IS PROVIDED “ AS IS ” AND THE AUTHOR DISCLAIM...
377590bcf684a796c28ce4512651820e8c652500cfa085a38a4c50b40ea8ede6
Izaakwltn/vibratsia
instruments.lisp
;;;; instruments.lisp ;;;; Copyright ( c ) 2022 (in-package #:vibratsia) ;;; The Instrument class (defclass instrument () ((name :initarg :name :accessor name) (strings :initarg :strings :accessor strings) (lower-bound :initarg :lower-bound :accessor lower-bound) (upper-bound :initarg :upper-...
null
https://raw.githubusercontent.com/Izaakwltn/vibratsia/b7187ee8b1270d4a302cdf5353cbf3bdc01de74d/instruments.lisp
lisp
instruments.lisp The Instrument class Also a function is needed for specific lower/upper bounds Predefined Standard Instruments: Pre-defined unusual instruments:
Copyright ( c ) 2022 (in-package #:vibratsia) (defclass instrument () ((name :initarg :name :accessor name) (strings :initarg :strings :accessor strings) (lower-bound :initarg :lower-bound :accessor lower-bound) (upper-bound :initarg :upper-bound :accessor upper-bound)) (:documentation "A...
7d00202b1fde3b81797552fe3dff352ca2541fb4e222942d25fd7390aac40eba
georgjz/raylib-gambit-scheme
image.scm
;;;----------------------------------------------------------------------------- ;;; This file is the interface to the struct Image in raylib. ;;;----------------------------------------------------------------------------- (c-declare #<<c-declare-end #include "raylib.h" Image MakeImage( void *data, ...
null
https://raw.githubusercontent.com/georgjz/raylib-gambit-scheme/df7ea6db54a3196d13c66dac4909c64cea6e5a88/src/raylibbinding/structs/image.scm
scheme
----------------------------------------------------------------------------- This file is the interface to the struct Image in raylib. ----------------------------------------------------------------------------- /* return allocation error */ } }
(c-declare #<<c-declare-end #include "raylib.h" Image MakeImage( void *data, int width, int height, int mipmaps, int format ) { } ___SCMOBJ SCMOBJ_to_IMAGE( ___PSD ___SCMOBJ src, Image *dst, int arg_num ) { if ( !___PAIRP( src ) ) else { ___BEGIN_CFUN_SCMOBJ_T...
d8a53a3f4ad8d3b5a11990652e6a393915001e20cc1114d10647c0fef678c5b7
gotthardp/lorawan-server
lorawan_admin_applications.erl
% Copyright ( c ) 2016 - 2019 < > % All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . % -module(lorawan_admin_applications). -export([init/2]). -export([allowed_methods/2]). -export([is_authorized/2]). -export([forbidden/2]). -export([content_types_provided/2]). -expor...
null
https://raw.githubusercontent.com/gotthardp/lorawan-server/1a5c0f2f4d8238a54a326c57a5eb0e6015821b1d/src/lorawan_admin_applications.erl
erlang
All rights reserved. if it's not internal, then it must be external end of file
Copyright ( c ) 2016 - 2019 < > Distributed under the terms of the MIT License . See the LICENSE file . -module(lorawan_admin_applications). -export([init/2]). -export([allowed_methods/2]). -export([is_authorized/2]). -export([forbidden/2]). -export([content_types_provided/2]). -export([resource_exists/2]). -e...
c99b4836eeec3806bfbf3e85a8b7f14d1de844d8969ebea0a25dba6d83fe0e57
teamwalnut/graphql-ppx
rescript_config.ml
open Graphql_compiler module Paths = struct let bsconfig = "bsconfig.json" let bsbProjectRoot = ref "" let projectRoot = ref "" let rec findProjectRoot ~dir = if Sys.file_exists (Filename.concat dir bsconfig) then dir else let parent = dir |> Filename.dirname in if parent = dir then ...
null
https://raw.githubusercontent.com/teamwalnut/graphql-ppx/8276452ebe8d89a748b6b267afc94161650ab620/src/ppx/rescript_config.ml
ocaml
open Graphql_compiler module Paths = struct let bsconfig = "bsconfig.json" let bsbProjectRoot = ref "" let projectRoot = ref "" let rec findProjectRoot ~dir = if Sys.file_exists (Filename.concat dir bsconfig) then dir else let parent = dir |> Filename.dirname in if parent = dir then ...
c1f674cf3b3de887c6f9f5b5bc18d0b47d4abd185e86ac891bcd04a53cb5803a
less-wrong/less-wrong
Main.hs
module Main where import Lib main :: IO () main = repl
null
https://raw.githubusercontent.com/less-wrong/less-wrong/4dd04f396551a7c81438349041335453137c0951/app/Main.hs
haskell
module Main where import Lib main :: IO () main = repl