_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
4c84152b389e3d95619b4112b43f05465660bdbfb911c8804d85155ccc4ecda7
exercism/ocaml
all_tests.ml
open! Core open OUnit2 open Model_test open Special_cases_test let () = run_test_tt_main ("tests" >::: [ "model_tests" >::: model_tests; "special_cases_test" >::: special_cases_test; ])
null
https://raw.githubusercontent.com/exercism/ocaml/89eb0bf11c58c3240f0336268aaa866d11c175e2/test-generator/test/all_tests.ml
ocaml
open! Core open OUnit2 open Model_test open Special_cases_test let () = run_test_tt_main ("tests" >::: [ "model_tests" >::: model_tests; "special_cases_test" >::: special_cases_test; ])
b770678c2e118cac8b9bde37270f1ab53b36e331e3d15bcb0269fa03c57702ca
alaricsp/chicken-scheme
except2.scm
(define n 0) (define (foo k) (set! n (+ n 1)) (##sys#direct-return k 123)) (let ((count (string->number (:optional (command-line-arguments) "10000")))) (do ((i count (- i 1))) ((zero? i) (print n)) (##sys#call-with-direct-continuation (lambda (k) (foo k))) ) )
null
https://raw.githubusercontent.com/alaricsp/chicken-scheme/1eb14684c26b7c2250ca9b944c6b671cb62cafbc/benchmarks/others/except2.scm
scheme
(define n 0) (define (foo k) (set! n (+ n 1)) (##sys#direct-return k 123)) (let ((count (string->number (:optional (command-line-arguments) "10000")))) (do ((i count (- i 1))) ((zero? i) (print n)) (##sys#call-with-direct-continuation (lambda (k) (foo k))) ) )
d706f54ac81c65bfe09312f4e9f610c3ef1d4882d5a227e4f4f9acdd50dde333
razum2um/aprint
writer.clj
(ns aprint.writer (:require [clojure.pprint :as pprint] [clojure.string :as s] [aprint.utils :refer :all]) (:import [clojure.lang IDeref] [java.io Writer])) (definterface PrettyFlush (^void ppflush [])) (defmacro ^{:private true} getf [sym] `(~sym @@~'this)) (defmacro ^...
null
https://raw.githubusercontent.com/razum2um/aprint/9b77f3e4433fb71ab57335bc4146835e555c00b3/src/aprint/writer.clj
clojure
printer
(ns aprint.writer (:require [clojure.pprint :as pprint] [clojure.string :as s] [aprint.utils :refer :all]) (:import [clojure.lang IDeref] [java.io Writer])) (definterface PrettyFlush (^void ppflush [])) (defmacro ^{:private true} getf [sym] `(~sym @@~'this)) (defmacro ^...
009cf6929eeaa161fe01f464bc92779a58b7cfa5a988b6be0bc8801fa6f6a6ab
LexiFi/menhir
Memoize.ml
(******************************************************************************) (* *) (* Fix *) (* ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/fix/src/Memoize.ml
ocaml
**************************************************************************** Fix ...
, Paris . All rights reserved . This file is distributed under the terms of the GNU Library General Public License version 2 , with a open Sigs [ rev_take accu n xs ] is [ accu @ rev ( take n xs ) ] , where [ take n xs ] takes the first [ n ...
26d3a728ff7b51a14301ad2299274359c79bc8442be1a081877310ab62e2459d
gafiatulin/codewars
IsItDigit.hs
-- Is it a digit? -- module IsItDigit where import Data.Char (isDigit) isItDigit :: Char -> Bool isItDigit = isDigit
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/7%20kyu/IsItDigit.hs
haskell
Is it a digit?
module IsItDigit where import Data.Char (isDigit) isItDigit :: Char -> Bool isItDigit = isDigit
5bf785f800e4a0fdb228204daa4b30ccf6ad1d1a0982b1f305213bd51a34e920
chaoxu/fancy-walks
C.hs
{-# OPTIONS_GHC -O2 #-} import Data.List import Data.Maybe import Data.Char import Data.Array import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteString.Char8 (ByteString) import qualified Dat...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/code.google.com/codejam/Google%20Code%20Jam%20Africa%202010/Online%20Competition/C.hs
haskell
# OPTIONS_GHC -O2 #
import Data.List import Data.Maybe import Data.Char import Data.Array import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as BS...
b1c35b915cf0794a3744f4528c206cf275e87c9ea439b147a50430cb8c3fe6e7
avsm/platform
test.ml
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/uuseg.12.0.0%2Bdune/test/test.ml
ocaml
Grrrr. Grrrrr. Conformance data decoding parses a code point value. × ÷ Conformance tests of line breaking algorithm implement a tailoring that we don't implement. Here are the tests break according to that tailoring. éa
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
7e6e59956dfe10dd8cae9d98782e62b507d03bae6e93a188edab6930a88820a1
sheepduke/silver-brain
route.lisp
(in-package silver-brain.server) (defroute *app* GET "/" () #P"index.html") (defroute *app* GET "/api" () (set-response-status 200) nil) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; Concept ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/sheepduke/silver-brain/81ef7d0035fadc63e3cfca0be6a6f157e1dbbe05/backend/src/server/route.lisp
lisp
Concept ;;;; Concept Relation ;;;;
(in-package silver-brain.server) (defroute *app* GET "/" () #P"index.html") (defroute *app* GET "/api" () (set-response-status 200) nil) (defroute *app* GET "/api/concepts" (search) (render-json-array (~>> (if search (service:find-concept-by-name search) (service:get-all-concepts)...
c62111768d6b0a2b20be956fb58d51a3a8e6e40dfd70746d5b420140fe0a211d
philnguyen/soft-contract
signatures.rkt
#lang typed/racket/base (provide prim-runtime^ ⟦O⟧) (require typed/racket/unit typed/racket/unsafe bnf set-extras "../ast/signatures.rkt" "../runtime/signatures.rkt") (unsafe-require/typed syntax/id-table [#:opaque Parse-Prim-Table free-id-table?] [(make-free-id-table...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/primitives/signatures.rkt
racket
HACK TODO: tmp. hack. Signature doesn't need to be this wide.
#lang typed/racket/base (provide prim-runtime^ ⟦O⟧) (require typed/racket/unit typed/racket/unsafe bnf set-extras "../ast/signatures.rkt" "../runtime/signatures.rkt") (unsafe-require/typed syntax/id-table [#:opaque Parse-Prim-Table free-id-table?] [(make-free-id-table...
fc408d3ea4be18e001ca5b7a74fe61043cfac413882cdd8c7ed709a6c42e5bab
ragkousism/Guix-on-Hurd
libunistring.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 < > Copyright © 2015 < > Copyright © 2016 < > Copyright © 2016 Jan Nieuwenhuizen < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/libunistring.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 , 2014 < > Copyright © 2015 < > Copyright © 2016 < > Copyright © 2016 Jan Nieuwenhuizen < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (defi...
f37efce25970d5286235687c582930df994392fcde7c72a5c6b4d798b3fd57d5
tarides/ocaml-jit
nattop.ml
let () = Clflags.native_code := true; Toploop.set_paths (); Toploop.initialize_toplevel_env (); Clitop.main ~name:"nattop" ~eval_phrase:Toploop.execute_phrase ~loop:Toploop.loop ()
null
https://raw.githubusercontent.com/tarides/ocaml-jit/fe2fce1a5bb89acf5f7239917f6098d53c2c14ec/bin/nattop.ml
ocaml
let () = Clflags.native_code := true; Toploop.set_paths (); Toploop.initialize_toplevel_env (); Clitop.main ~name:"nattop" ~eval_phrase:Toploop.execute_phrase ~loop:Toploop.loop ()
ea0dc642ada414b0ed116a294b087a034f66a2dcad2169a2b56184cda5aac090
candidtim/tempo
Util.hs
module Util ( trim , parseIsoDate ) where import Data.Time (Day) import Data.Time.Format (parseTimeOrError, defaultTimeLocale) import Data.Char (isSpace) import Data.ByteString.Char8 (ByteString, pack) trim :: String -> String trim = f . f where f = reverse . dropWhile isSpace parseIsoDate :: String -> Day parse...
null
https://raw.githubusercontent.com/candidtim/tempo/cc48c69188342f5674b2746f2e1873df5cb497dc/src/Util.hs
haskell
module Util ( trim , parseIsoDate ) where import Data.Time (Day) import Data.Time.Format (parseTimeOrError, defaultTimeLocale) import Data.Char (isSpace) import Data.ByteString.Char8 (ByteString, pack) trim :: String -> String trim = f . f where f = reverse . dropWhile isSpace parseIsoDate :: String -> Day parse...
e101a853c0f682d74b39d563699e90408a1183fd220a10f90d813ae79c9c0f91
ggreif/omega
Narrow.hs
{-# LANGUAGE FlexibleContexts , FlexibleInstances #-} module Narrow(narr,defTree,Check(..),matches) where import Data.List(union,find,partition) import Auxillary(maybeM,plistf,plist,DispElem(..),displays ,Display(..),DispInfo,initDI) import Control.Monad(when) import Monads import Bind(Name) impor...
null
https://raw.githubusercontent.com/ggreif/omega/016a3b48313ec2c68e8d8ad60147015bc38f2767/src/Narrow.hs
haskell
# LANGUAGE FlexibleContexts , FlexibleInstances # ------------------------------------------------ ------------------------------------------------ Values, variables or a constructor applied to all values ------------------------------------------------------- operations on the threaded state of a narrowing compu...
module Narrow(narr,defTree,Check(..),matches) where import Data.List(union,find,partition) import Auxillary(maybeM,plistf,plist,DispElem(..),displays ,Display(..),DispInfo,initDI) import Control.Monad(when) import Monads import Bind(Name) import RankN import NarrowData import Debug.Trace(trace) class...
6890280806ae7f5ca44a6b557954dabbf4e0890731eb1a9eb1fa94ecdf5a8171
dgtized/shimmers
radial_wings.cljs
(ns shimmers.sketches.radial-wings (:require [shimmers.common.svg :as csvg :include-macros true] [shimmers.common.ui.controls :as ctrl] [shimmers.math.deterministic-random :as dr] [shimmers.math.vector :as v] [shimmers.sketch :as sketch :include-macros true] [shimmers.view.sketch :as view-sketch] ...
null
https://raw.githubusercontent.com/dgtized/shimmers/f096c20d7ebcb9796c7830efcd7e3f24767a46db/src/shimmers/sketches/radial_wings.cljs
clojure
FIXME: handle large gaps and overlapping lines
(ns shimmers.sketches.radial-wings (:require [shimmers.common.svg :as csvg :include-macros true] [shimmers.common.ui.controls :as ctrl] [shimmers.math.deterministic-random :as dr] [shimmers.math.vector :as v] [shimmers.sketch :as sketch :include-macros true] [shimmers.view.sketch :as view-sketch] ...
00efa03d6de56014c20c83ea89e60df7d2664d8f934023d80a880e3a8d7b2717
janestreet/merlin-jst
errortrace.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/src/ocaml/typing/errortrace.ml
ocaml
************************************************************************ OCaml ...
, projet Cambium , Inria Paris Antal Spector - Zabusky , , New York Copyright 2018 Institut National de Recherche en Informatique et Copyright 2021 Jane Street Group LLC the GNU Lesser General Public License ve...
6d30c317a865cd0e256b8c46318a37c621e19a8ca9047f1cf65d60efdb79a01a
heyoka/faxe
esp_change_detect.erl
Date : 06.06 - 19:04 Ⓒ 2019 heyoka %% @doc emits new point-values only if different from the previous point %% %% * multiple fields can be monitored by this node, if no field is specified, %% the whole datapoint will be used for comparison %% if nothing is given for ' fields ' , the complete data - item is compar...
null
https://raw.githubusercontent.com/heyoka/faxe/de41312634bfadf437c003180d32e5378b023c82/apps/faxe/src/components/esp_change_detect.erl
erlang
@doc emits new point-values only if different from the previous point * multiple fields can be monitored by this node, if no field is specified, the whole datapoint will be used for comparison * if reset_timeout is given, all previous values are reset, if there are no points coming in for this amount of time ...
Date : 06.06 - 19:04 Ⓒ 2019 heyoka if nothing is given for ' fields ' , the complete data - item is compared to the last one * for value comparison erlang 's strict equals (= : =) is used , so 1.0 is not equal to 1 -module(esp_change_detect). -author("Alexander Minichmair"). -behavior(df_component). -include(...
d09cd26b3a764370937b745cc312d213beafc49e99c4718918e59b5c74c1f71d
racket/math
bigfloat-incomplete-beta.rkt
#lang typed/racket/base (require "../flonum/flonum-functions.rkt" "../flonum/flonum-constants.rkt" "bigfloat-struct.rkt" "bigfloat-continued-fraction.rkt" "bigfloat-log-arithmetic.rkt" "bigfloat-beta.rkt") (provide bfbeta-lower-regularized bflog-beta-lower-regularized ...
null
https://raw.githubusercontent.com/racket/math/dcd2ea1893dc5b45b26c8312997917a15fcd1c4a/math-lib/math/private/bigfloat/bigfloat-incomplete-beta.rkt
racket
(printf "dz = ~v i = ~v~n" (bigfloat->flonum dz) (abs i))
#lang typed/racket/base (require "../flonum/flonum-functions.rkt" "../flonum/flonum-constants.rkt" "bigfloat-struct.rkt" "bigfloat-continued-fraction.rkt" "bigfloat-log-arithmetic.rkt" "bigfloat-beta.rkt") (provide bfbeta-lower-regularized bflog-beta-lower-regularized ...
0fe5dee7931810f0fb7681e880cab1f84cf1afa46b4d2358d57addfcb53d812b
wdebeaum/step
interested.lisp
;;;; ;;;; W::interested ;;;; ;; we have this to account for the irrgular passive -- using IN (define-words :pos W::v :tags (:base500) :words ( (W::interested (wordfeats (W::VFORM W::PASSIVE) (W::AGR ?agr) (W::MORPH (:forms NIL))) (SENSES ((EXAMPLE "I am interested in that") (LF-PARENT ONT::...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/interested.lisp
lisp
W::interested we have this to account for the irrgular passive -- using IN
(define-words :pos W::v :tags (:base500) :words ( (W::interested (wordfeats (W::VFORM W::PASSIVE) (W::AGR ?agr) (W::MORPH (:forms NIL))) (SENSES ((EXAMPLE "I am interested in that") (LF-PARENT ONT::evoke-attention) (meta-data :origin calo :entry-date 20041122 :change-date 20090512 :com...
2d9a9804f3cdc54727a791fc34321c4aa3624a2cc0a9cd31185bf352ca322679
mflatt/plai-typed
repl.rkt
#lang racket (define ns (make-base-empty-namespace)) (parameterize ([current-namespace ns]) (namespace-require 'plai-typed)) (define (tl expect expr) (define s (with-output-to-string (lambda () (parameterize ([current-namespace ns]) ((current-print) (eval `(#%top-interaction . ,expr)))...
null
https://raw.githubusercontent.com/mflatt/plai-typed/419102db1e44b74dea9daf7a75e9b0e2b9c97d05/plai-typed/tests/repl.rkt
racket
Should have no source inside plai-typed implementation:
#lang racket (define ns (make-base-empty-namespace)) (parameterize ([current-namespace ns]) (namespace-require 'plai-typed)) (define (tl expect expr) (define s (with-output-to-string (lambda () (parameterize ([current-namespace ns]) ((current-print) (eval `(#%top-interaction . ,expr)))...
2ab1b02a4ab9a68d90177a33e5707b38f9987bb401334e02a7c53ecd4f62e02d
WFP-VAM/RAMResourcesScripts
pro-CC2-1.sps
* Encoding: UTF-8. * Encoding: UTF-8. Variable labels HHAsstKnowEnt 'Have you been told exactly what you are entitled to receive in terms of commodities/quantities or cash? Please describe your entitlements'. Variable labels HHAsstKnowPeople 'Do you know how people were chosen to receive assistance? Please describe ...
null
https://raw.githubusercontent.com/WFP-VAM/RAMResourcesScripts/236e1a630f053d27161c73dfe01a9ef04b7ebdcc/Indicators/Protection-CRF-CC2-1/pro-CC2-1.sps
scheme
* Encoding: UTF-8. * Encoding: UTF-8. Variable labels HHAsstKnowEnt 'Have you been told exactly what you are entitled to receive in terms of commodities/quantities or cash? Please describe your entitlements'. Variable labels HHAsstKnowPeople 'Do you know how people were chosen to receive assistance? Please describe ...
a0938e8294c883a0d75a5aa40010b741d256067cbfa2db438d80b0865ea1e10d
amnh/poy5
splitting.ml
let set_cost matrix i j cost = try let table = Hashtbl.find matrix i in Hashtbl.replace table j cost with | Not_found -> let table = Hashtbl.create 59 in Hashtbl.replace table j cost; Hashtbl.add matrix i table let get_cost matrix i j = Hashtbl.find ...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/splitting.ml
ocaml
The number of paths The number of paths Tuples consisting of the cost, and the list of intermediate * elements that are being mapped, for now, as we have no * intermediate elements, the list is empty
let set_cost matrix i j cost = try let table = Hashtbl.find matrix i in Hashtbl.replace table j cost with | Not_found -> let table = Hashtbl.create 59 in Hashtbl.replace table j cost; Hashtbl.add matrix i table let get_cost matrix i j = Hashtbl.find ...
428cc4ac99a67c25c59768fc287dfd06381a7108014ca93dcad7e6d032242841
mzp/coq-ide-for-ios
str.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/CoqIDE/ocaml-3.12.0/lib/ocaml/str.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 GNU Library General Public License , with $ I d : str.mli 9547 2010 - 01 - 22 1...
7a1325bcd506833e214838ca5501fa130d75510ef379c5dda90a87850654da83
shayne-fletcher/zen
bin_search.ml
(*[reverse l] computes a list from [l] where the elements are in reverse order*) let reverse (l : 'a list) : 'a list = let rec loop acc = function | [] -> acc | (x :: xs) -> loop (x :: acc) xs in loop [] l (*[swap_list i j l] computes a list from [l] where the elements at positions [i] and [j] are swapped...
null
https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/binary_search/bin_search.ml
ocaml
[reverse l] computes a list from [l] where the elements are in reverse order [swap_list i j l] computes a list from [l] where the elements at positions [i] and [j] are swapped [swap_array i j arr] modifies [arr] by swapping the elements at positions [i] and [j] [sorted s] is [true] if the elements of [s] are sorted in ...
let reverse (l : 'a list) : 'a list = let rec loop acc = function | [] -> acc | (x :: xs) -> loop (x :: acc) xs in loop [] l let swap_list (i : int) (j : int) (l : 'a list) = let n = List.length l in if i < 0 || i >= n || j < 0 || j >= n then failwith "swap" else let u = List.nth l i and v ...
111f23cbba6be43057c5675af169943740011fc1d430299bd07879923cd5c95c
flodihn/NextGen
libenv_simple_env.erl
%%---------------------------------------------------------------------- @author < > %% @doc %% This is simple implementation module for the environment library %% 'libnv.srv'. %% The module provides functions for getting and setting the area %% terrain and skybox. %% @end %%--------------------------------...
null
https://raw.githubusercontent.com/flodihn/NextGen/3da1c3ee0d8f658383bdf5fccbdd49ace3cdb323/AreaServer/src/libenv/libenv_simple_env.erl
erlang
---------------------------------------------------------------------- @doc This is simple implementation module for the environment library 'libnv.srv'. The module provides functions for getting and setting the area terrain and skybox. @end ----------------------------------------------------------------------...
@author < > -module(libenv_simple_env). -include("env_data.hrl"). -export([ init/0 ]). -export([ create_area/0, join_area/1, get_terrain/0, set_terrain/1, get_skybox/0, set_skybox/1 ]). @spec init ( ) - > ok @private init() -> time_daemon:init(), : add_handler(...
f00cfca0ea95075aec9d12bbe31b4e6e418010756ab93ae518ea1c48f356e293
aphyr/interval-metrics
t_measure.clj
(ns interval-metrics.t-measure (:use midje.sweet interval-metrics.core criterium.core) (:import (interval_metrics.core Rate) (java.util.concurrent CountDownLatch TimeUnit)))
null
https://raw.githubusercontent.com/aphyr/interval-metrics/423fb03546f264a0b5e52b4c7d8fb1ada43e4817/test/interval_metrics/t_measure.clj
clojure
(ns interval-metrics.t-measure (:use midje.sweet interval-metrics.core criterium.core) (:import (interval_metrics.core Rate) (java.util.concurrent CountDownLatch TimeUnit)))
6e85c7af886c46dca3fbeedb4a1eee7ce0c741fd3674a82a5407527d8717f584
emaphis/HtDP2e-solutions
02_Mixing_Up_Worlds.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname 02_Mixing_Up_Worlds) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeati...
null
https://raw.githubusercontent.com/emaphis/HtDP2e-solutions/ecb60b9a7bbf9b8999c0122b6ea152a3301f0a68/1-Fixed-Size-Data/06-Itemizations-Structures/02_Mixing_Up_Worlds.rkt
racket
about the language level of this file in a form that our tools can easily process. 6.2 Mixing Up Worlds
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname 02_Mixing_Up_Worlds) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) HtDP 2e - 6 Itemizations and Structures Exercise...
6cdc001e74beb2124213d55e9d49047c157fad16ef3236be8495796ae3c9f12a
xh4/web-toolkit
environment.lisp
(in-package :reactive) (defvar *global-propagation* nil) (defvar *local-propagation* nil) (defvar *propagation-p* t) (defvar *local-propagation-p* nil) (defvar *record* nil) (defmacro without-propagation (&body body) `(let ((*propagation-p* nil)) ,@body)) (defmacro with-propagation (&body body) `(let ((...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/reactive/environment.lisp
lisp
(in-package :reactive) (defvar *global-propagation* nil) (defvar *local-propagation* nil) (defvar *propagation-p* t) (defvar *local-propagation-p* nil) (defvar *record* nil) (defmacro without-propagation (&body body) `(let ((*propagation-p* nil)) ,@body)) (defmacro with-propagation (&body body) `(let ((...
93ee02fe66b08a61189575e4da45e12931048ea02a43115ed802a6113c3c9300
diku-dk/pfp-e2019-pub
sudoku-par2.hs
import Sudoku import System.Environment import Data.Maybe import Control.Monad.Par main :: IO () main = do [f] <- getArgs grids <- fmap lines $ readFile f let (as,bs) = splitAt (length grids `div` 2) grids solutions = runPar $ do i1 <- new i2 <- new fork $ put i1 (map solve as) ...
null
https://raw.githubusercontent.com/diku-dk/pfp-e2019-pub/4b6ddcc73099708c0bfa4082f5e4f2a45484b2b2/slides/L5-parallel-haskell-code/sudoku-par2.hs
haskell
============== runPar :: Par a -> a
import Sudoku import System.Environment import Data.Maybe import Control.Monad.Par main :: IO () main = do [f] <- getArgs grids <- fmap lines $ readFile f let (as,bs) = splitAt (length grids `div` 2) grids solutions = runPar $ do i1 <- new i2 <- new fork $ put i1 (map solve as) ...
9e8b706b75450d48f8b3e46707e56e415ad5bf5cfdc92ed88cc7d3b7172e6918
candera/vmt
files.cljc
(ns weathergen.falcon.files (:require [clojure.string :as str] [octet.core :as buf] [taoensso.timbre :as log :refer-macros (log trace debug info warn error fatal report logf tracef debugf infof warnf errorf fatalf reportf ...
null
https://raw.githubusercontent.com/candera/vmt/8cf450e6c34af87d748152afd7f547b92ae9b38e/src/weathergen/falcon/files.cljc
clojure
Cross-platform error support (log/debugi "write" :pos pos :value value) TODO: implement write TODO: Implement write
(ns weathergen.falcon.files (:require [clojure.string :as str] [octet.core :as buf] [taoensso.timbre :as log :refer-macros (log trace debug info warn error fatal report logf tracef debugf infof warnf errorf fatalf reportf ...
b4d6fdbf7ffa621b440b2cd807f59940b62f1ba85023244c8288def81110169a
ygmpkk/house
PrimitiveMode.hs
-- #hide -------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.PrimitiveMode Copyright : ( c ) 2003 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portabil...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/OpenGL/Graphics/Rendering/OpenGL/GL/PrimitiveMode.hs
haskell
#hide ------------------------------------------------------------------------------ | Module : Graphics.Rendering.OpenGL.GL.PrimitiveMode License : BSD-style (see the file libraries/OpenGL/LICENSE) Maintainer : Stability : provisional Portability : portable --------------------------------...
Copyright : ( c ) 2003 This is a purely internal module for ( un-)marshaling PrimitiveMode . module Graphics.Rendering.OpenGL.GL.PrimitiveMode ( PrimitiveMode(..), marshalPrimitiveMode, unmarshalPrimitiveMode ) where import Graphics.Rendering.OpenGL.GL.BasicTypes ( GLenum ) data PrimitiveMode = ...
a08af94d5f7ac8dc09e51b241f14f7e0fcd8ca651b32ca78cf4a971244962ae9
40ants/reblocks
utils.lisp
(defpackage #:reblocks-tests/utils (:use #:cl) (:import-from #:alexandria #:with-gensyms #:ensure-symbol #:symbolicate) (:import-from #:lack.test #:generate-env) (:import-from #:lack.request #:make-request) (:import-from #:cl-ppcr...
null
https://raw.githubusercontent.com/40ants/reblocks/99986524e61ac90fa73e05b15d07310bbd378dea/t/utils.lisp
lisp
Just to point to dependencies it should be an alist Lack stores headers in a dict with lowercased keys, that is why to simulate it, we need to ensure that keys are lowercased. we need to setup a current webapp, because uri tokenizer needs to know app's uri prefix
(defpackage #:reblocks-tests/utils (:use #:cl) (:import-from #:alexandria #:with-gensyms #:ensure-symbol #:symbolicate) (:import-from #:lack.test #:generate-env) (:import-from #:lack.request #:make-request) (:import-from #:cl-ppcr...
64b043031322eb223963de0351dc6c4280406465b22ecb6a5f7197fab9b3b6f6
Opetushallitus/ataru
application_email.clj
(ns ataru.email.application-email (:require [ataru.applications.application-store :as application-store] [ataru.applications.field-deadline :as field-deadline] [ataru.config.core :refer [config]] [ataru.email.email-store :as email-store] [ataru.email.email-util :as emai...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/7ace595bcabb12ad53fd617fb8a7a7004a618593/src/clj/ataru/email/application_email.clj
clojure
(ns ataru.email.application-email (:require [ataru.applications.application-store :as application-store] [ataru.applications.field-deadline :as field-deadline] [ataru.config.core :refer [config]] [ataru.email.email-store :as email-store] [ataru.email.email-util :as emai...
a855549c8c6a32e3c1ebcb2b3cff13567c09f47685adc0710d808444f06d23e7
smallmelon/sdzmmo
pt_24.erl
%%%------------------------------------ @Module : pt_24 @Author : zzm %%% @Email : @Created : 2010.07.06 @Description : %%%------------------------------------ -module(pt_24). -export([read/2, write/2]). %% %%客户端 -> 服务端 ---------------------------- %% %%创建队伍 read(24000, <<Bin/binary>>) -> {TeamNa...
null
https://raw.githubusercontent.com/smallmelon/sdzmmo/254ff430481de474527c0e96202c63fb0d2c29d2/src/proto/pt_24.erl
erlang
------------------------------------ @Email : ------------------------------------ 客户端 -> 服务端 ---------------------------- 创建队伍 加入队伍 离开队伍 队伍资料 服务端 -> 客户端 ------------------------------------ 创建队伍 加入队伍 离开队伍 踢出队员 向队员发送队伍信息 向队员发送有人离队的信息 向队员发送更换队长的信息 通知队员队名更改了 队伍资料
@Module : pt_24 @Author : zzm @Created : 2010.07.06 @Description : -module(pt_24). -export([read/2, write/2]). read(24000, <<Bin/binary>>) -> {TeamName, _} = pt:read_string(Bin), {ok, TeamName}; read(24002, <<Id:32>>) -> {ok, Id}; read(24004, <<Res:16, Id:32>>) -> {ok, [Res, Id]}; re...
36d5bd91349a4c107a40022b080822b96782e8c7ca7f5075fa85e1d14c729ef1
zotonic/zotonic
scomp_wires_button.erl
@author < > 2009 - 2013 %% Based on code ( c ) 2008 - 2009 Copyright 2009 - 2013 %% 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 requir...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_wires/src/scomps/scomp_wires_button.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
@author < > 2009 - 2013 Based on code ( c ) 2008 - 2009 Copyright 2009 - 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(scomp_wires_button). -behaviour(zotonic_scomp). -export([vary/2, rende...
8f9d93182b28afd8594e65b3815f9a3d2af50ed9569900945e1e4f5e99cd6941
kupl/FixML
sub7.ml
let rec iter (n, f) r = let a = fst (n, f) in let b = snd (n, f) in if a > 1 then b r + iter ((n - 1), f) r else if a = 1 then b r else r
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/iter/iter/submissions/sub7.ml
ocaml
let rec iter (n, f) r = let a = fst (n, f) in let b = snd (n, f) in if a > 1 then b r + iter ((n - 1), f) r else if a = 1 then b r else r
fba30ddf29d41a096a9691a999addb245d1d26ef35234d49961708b20e5e484a
WeiDUorg/weidu
util.ml
This file has been edited by , a.k.a . , starting from 18 December 2012 and WeiDU 231.06 . starting from 18 December 2012 and WeiDU 231.06. *) Note added due to LGPL terms . This file was edited by , AKA The Bigg , starting from 6 November 2005 . All changes for this file are listed in ...
null
https://raw.githubusercontent.com/WeiDUorg/weidu/ade8c4d7a05849f1c8e9a50bac0a83c6bf644498/src/util.ml
ocaml
generic utilities foo.bar or .foo foo.bar.baz etc foo (no ext) if it already exists handle read-only files! log_or_print "Copying a large file: %s to %s\n" name out ; if it already exists handle read-only files! filter to avoid logging progress bars from external programs copy stdout + stderr to l...
This file has been edited by , a.k.a . , starting from 18 December 2012 and WeiDU 231.06 . starting from 18 December 2012 and WeiDU 231.06. *) Note added due to LGPL terms . This file was edited by , AKA The Bigg , starting from 6 November 2005 . All changes for this file are listed in ...
d10ad94f12a37edbbd4e54bf1d4a376181393f63f5d3a6f6bc2058f787885150
protojure/lib
project.clj
(def protojure-version "2.6.1-SNAPSHOT") (defproject io.github.protojure/lib-suite "0.0.1" :description "Support libraries for protoc-gen-clojure, providing native Clojure support for Google Protocol Buffers and GRPC applications" :url "" :license {:name "Apache License 2.0" :url "-2.0" :...
null
https://raw.githubusercontent.com/protojure/lib/382bf080b3a0d1335f2fa32ac38d2d328b999860/project.clj
clojure
(def protojure-version "2.6.1-SNAPSHOT") (defproject io.github.protojure/lib-suite "0.0.1" :description "Support libraries for protoc-gen-clojure, providing native Clojure support for Google Protocol Buffers and GRPC applications" :url "" :license {:name "Apache License 2.0" :url "-2.0" :...
1afbc74b7503bc5482210022b169cb69693dabbe368f4b7a3aee17973e03457a
nuprl/gradual-typing-performance
teachhelp.rkt
(module teachhelp mzscheme (require "firstorder.rkt" "rewrite-error-message.rkt" stepper/private/syntax-property (for-template (prefix r: racket/base))) (provide make-first-order-function redirect-identifier-to) (define (redirect-identifier-to set!-stx tmp-id) (...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/htdp-lib/lang/private/teachhelp.rkt
racket
(module teachhelp mzscheme (require "firstorder.rkt" "rewrite-error-message.rkt" stepper/private/syntax-property (for-template (prefix r: racket/base))) (provide make-first-order-function redirect-identifier-to) (define (redirect-identifier-to set!-stx tmp-id) (...
68b7b31c15be1f06a5d5b04737537aa71b40b23c9c29b241cbe64cec3c91b837
snoyberg/photosorter
Foundation.hs
module Foundation where import Prelude import Yesod import Yesod.Fay import Yesod.Static import Yesod.Auth import Yesod.Auth.BrowserId import Yesod.Auth.GoogleEmail import Yesod.Default.Config import Yesod.Default.Util (addStaticContentExternal) import Network.HTTP.Conduit (Manager) import qualified Settings import Se...
null
https://raw.githubusercontent.com/snoyberg/photosorter/c02cf37094d24762ceca4c05fe89580a4be0bec1/Foundation.hs
haskell
| The site argument for your application. This can be a good place to keep settings and values requiring initialization before your application starts running, such as database connections. Every handler will have access to the data present here. ^ Settings for static file serving. ^ Database connection pool. Se...
module Foundation where import Prelude import Yesod import Yesod.Fay import Yesod.Static import Yesod.Auth import Yesod.Auth.BrowserId import Yesod.Auth.GoogleEmail import Yesod.Default.Config import Yesod.Default.Util (addStaticContentExternal) import Network.HTTP.Conduit (Manager) import qualified Settings import Se...
2575143d817ea149e3d2b4f77c25e205010ffcf4678577d7a202990c20921b8f
uwplse/PUMPKIN-PATCH
cutlemma.ml
(* --- Cutting by intermediate lemmas/guiding search --- *) open Constr open Environ open Evd open Reducers open Debruijn open Utilities open Typehofs open Contextutils open Envutils open Convertibility open Stateutils open Inference (* --- TODO temporary for refactor: should use this order in lib at some point --- *...
null
https://raw.githubusercontent.com/uwplse/PUMPKIN-PATCH/73fd77ba49388fdc72702a252a8fa8f071a8e1ea/plugin/src/representation/cutlemma.ml
ocaml
--- Cutting by intermediate lemmas/guiding search --- --- TODO temporary for refactor: should use this order in lib at some point --- --- End TODO --- Test if a type is exactly the type of the lemma to cut by Test if a term has exactly the type of the lemma to cut by TODO do we need red type here or not? sam...
open Constr open Environ open Evd open Reducers open Debruijn open Utilities open Typehofs open Contextutils open Envutils open Convertibility open Stateutils open Inference let on_red_type_default f env trm sigma = Typehofs.on_red_type_default (fun env sigma trm -> f env trm sigma) env sigma trm ...
b3320999106ab92802806f125f1eac9d6e9f962b43faf5976a9f5c9c5e59e59e
gonzojive/sbcl
clos.impure.lisp
miscellaneous side - effectful tests of CLOS This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This software i...
null
https://raw.githubusercontent.com/gonzojive/sbcl/3210d8ed721541d5bba85cbf51831238990e33f1/tests/clos.impure.lisp
lisp
more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. structure types defined earlier in the file. Compiling DEFGENERIC should prevent "undefined...
miscellaneous side - effectful tests of CLOS This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (load "compiler-test-util.lisp") (defpackage "CLOS-IMPURE" (:use "CL" "ASSERTOID" "TEST-UTIL" "COMPILER-TEST-UTIL")) (...
802a79121f25dbaf7120f201e10a0e68d77fc4ad829438a2ad32e7cec44c3f4b
LightAndLight/sized-hkts
Main.hs
{-# language OverloadedLists, OverloadedStrings #-} # language PatternSynonyms # # language TypeApplications # module Main where import Bound.Scope (toScope) import Bound.Var (Var(..)) import Control.Lens.Setter ((.~)) import Control.Monad.Except (runExceptT) import Control.Monad.State.Strict (evalState, evalStateT) i...
null
https://raw.githubusercontent.com/LightAndLight/sized-hkts/d12fedb34e7ea82be66f200e9ecf7fcf611cce53/test/Main.hs
haskell
# language OverloadedLists, OverloadedStrings # forall x : Type Sized x => forall y : Type -> Type. (forall z : Type. Sized z => Sized (y z)) => a f a b forall t0. Sized t0 => forall t1. Sized t1 => Sized (Sum t0 t1) forall t0. Sized (Box t0) Left(a) => a }
# language PatternSynonyms # # language TypeApplications # module Main where import Bound.Scope (toScope) import Bound.Var (Var(..)) import Control.Lens.Setter ((.~)) import Control.Monad.Except (runExceptT) import Control.Monad.State.Strict (evalState, evalStateT) import Control.Monad.Trans.Maybe (runMaybeT) import D...
6354d9ae545c3520f6d8240cad2690cbaa0cf89ea380ff5608fab85b2899890b
xh4/web-toolkit
hash-tables.lisp
(in-package :alexandria) (defmacro ensure-gethash (key hash-table &optional default) "Like GETHASH, but if KEY is not found in the HASH-TABLE saves the DEFAULT under key before returning it. Secondary return value is true if key was already in the table." (once-only (key hash-table) (with-unique-names (value p...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/alexandria-20191227-git/hash-tables.lisp
lisp
(in-package :alexandria) (defmacro ensure-gethash (key hash-table &optional default) "Like GETHASH, but if KEY is not found in the HASH-TABLE saves the DEFAULT under key before returning it. Secondary return value is true if key was already in the table." (once-only (key hash-table) (with-unique-names (value p...
fa7806381915621afc4d767176fab84bf9ebdf24045a1f2d6a6037e01e6080c7
NorfairKing/bevel
Import.hs
module Bevel.CLI.Commands.Import (module X) where import Bevel.API as X import Bevel.API.Data as X import Bevel.CLI.Env as X import Bevel.CLI.OptParse as X import Bevel.Client as X hiding (Unique) import Bevel.Client.Data as X import Bevel.Data as X import Control.Monad.Logger as X import Control.Monad.Reader as X imp...
null
https://raw.githubusercontent.com/NorfairKing/bevel/c402796653c122ce59bd7c3335f32ba705b62013/bevel-cli/src/Bevel/CLI/Commands/Import.hs
haskell
module Bevel.CLI.Commands.Import (module X) where import Bevel.API as X import Bevel.API.Data as X import Bevel.CLI.Env as X import Bevel.CLI.OptParse as X import Bevel.Client as X hiding (Unique) import Bevel.Client.Data as X import Bevel.Data as X import Control.Monad.Logger as X import Control.Monad.Reader as X imp...
aee55f6e8ca1221f99a05c804d4fd97ce6d4a96b961b66bc6078253c11dcbf3c
patricoferris/ocaml-multicore-monorepo
lwt_get.ml
open H2 module Client = H2_lwt_unix.Client let response_handler notify_response_received _response response_body = let rec read_response () = Body.schedule_read response_body ~on_eof:(fun () -> Lwt.wakeup_later notify_response_received ()) ~on_read:(fun bigstring ~off ~len -> let respon...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/dream/src/vendor/h2/examples/lwt/lwt_get.ml
ocaml
open H2 module Client = H2_lwt_unix.Client let response_handler notify_response_received _response response_body = let rec read_response () = Body.schedule_read response_body ~on_eof:(fun () -> Lwt.wakeup_later notify_response_received ()) ~on_read:(fun bigstring ~off ~len -> let respon...
bd9a9f9b6d4271e241ba14d6041672b0e34a1a586e9f39162bbdc6d618e1c8a6
janestreet/async
rpc_transport_low_latency.ml
open Core open Import module Kernel_transport = Rpc_kernel.Transport module Header = Kernel_transport.Header module Handler_result = Kernel_transport.Handler_result module Send_result = Kernel_transport.Send_result external writev2 : Core_unix.File_descr.t -> buf1:Bigstring.t -> pos1:int -> len1:int -> buf2...
null
https://raw.githubusercontent.com/janestreet/async/b8b97d6f9ad0e603de56a2af2f367ec962f1aae9/async_rpc/src/rpc_transport_low_latency.ml
ocaml
Same as the default value of [buffer_age_limit] for [Async_unix.Writer] No maximum Arbitrary choices. Start of unconsumed data. End of unconsumed data. To avoid allocating options in a relatively safe way. fails on negative ints This will never happen because we only call this function from [refill] wh...
open Core open Import module Kernel_transport = Rpc_kernel.Transport module Header = Kernel_transport.Header module Handler_result = Kernel_transport.Handler_result module Send_result = Kernel_transport.Send_result external writev2 : Core_unix.File_descr.t -> buf1:Bigstring.t -> pos1:int -> len1:int -> buf2...
c4cf18aeb7c6805f748ac83dfab92ae0135b839cc2526b39375d2be3a03c5448
dimitaruzunov/fp-2018
2.scm
(require rackunit rackunit/text-ui) (define (partial fn . args) (lambda rest-args (apply fn (append args rest-args)))) (define (flatmap f l) (apply append (map f l))) (define (enumerate-interval from to) (if (> from to) '() (cons from (enumerate-interval (+ from 1) to)))) (define (...
null
https://raw.githubusercontent.com/dimitaruzunov/fp-2018/f75f0cd009cc7f41ce55a5ec71fb4b8eadafc4eb/exams/1/b/2.scm
scheme
(require rackunit rackunit/text-ui) (define (partial fn . args) (lambda rest-args (apply fn (append args rest-args)))) (define (flatmap f l) (apply append (map f l))) (define (enumerate-interval from to) (if (> from to) '() (cons from (enumerate-interval (+ from 1) to)))) (define (...
ad0a62c47c877664e981a030851e3f96d07a08f92785e533a0b19128c824fca3
agda/agda
Forcing.hs
| A constructor argument is forced if it appears as pattern variable in an index of the target . For instance @x@ is forced in @sing@ and @n@ is forced in @zero@ and @suc@ : @ data Sing { a}{A : Set a } : A - > Set where sing : ( x : A ) - > Sing x data Fin : Nat - > Set where zero : ( n :...
null
https://raw.githubusercontent.com/agda/agda/27ea7f2207c25d6f68387c264aaed9ffc1a733e8/src/full/Agda/TypeChecking/Forcing.hs
haskell
| Given the type of a constructor (excluding the parameters), decide which arguments are forced. are in normal form. then else t <- normalise t Note that normalization of s0 below does not help. get to the actual data type. Also #2947: The type might reduce to a pi type. #2819: We can only mark an argument ...
| A constructor argument is forced if it appears as pattern variable in an index of the target . For instance @x@ is forced in @sing@ and @n@ is forced in @zero@ and @suc@ : @ data Sing { a}{A : Set a } : A - > Set where sing : ( x : A ) - > Sing x data Fin : Nat - > Set where zero : ( n :...
41a696674168e6bf24bab9eec090d97ff642854dd208911c7d29274b9667c4b3
hbr/fmlib
error.ml
(* A parse error is either a list of syntax error or on semantic error. We need a list of syntax errors for the following reason: A syntax error signifies that something has been expected and has not been encountered. Since we have alternatives which can all fail without consuming tokens we can ha...
null
https://raw.githubusercontent.com/hbr/fmlib/169a1b8e53c828d24329398b6ee0a6deab41a662/src/parse/error.ml
ocaml
A parse error is either a list of syntax error or on semantic error. We need a list of syntax errors for the following reason: A syntax error signifies that something has been expected and has not been encountered. Since we have alternatives which can all fail without consuming tokens we can have...
open Fmlib_std open Interfaces module Make (Expect: ANY) (Semantic: ANY) = struct type t = | Syntax of Expect.t list | Semantic of Semantic.t let to_string (e: t) (f: Expect.t -> string) (g: Semantic.t -> string) : string = match e with ...
6f7ff7350ab0b68ca9b6f7185d08aeb35301e087a9785b9fa9a9bab94ed5930c
binaryage/chromex
chrome_content_setting.cljs
(ns chromex.protocols.chrome-content-setting (:refer-clojure :exclude [get set])) (defprotocol IChromeContentSetting "a wrapper for #type-ContentSetting" (get-native-content-setting [this]) (get [this details]) (set [this details]) (clear [this details]) (get-resource-identifiers [this]))
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/lib/chromex/protocols/chrome_content_setting.cljs
clojure
(ns chromex.protocols.chrome-content-setting (:refer-clojure :exclude [get set])) (defprotocol IChromeContentSetting "a wrapper for #type-ContentSetting" (get-native-content-setting [this]) (get [this details]) (set [this details]) (clear [this details]) (get-resource-identifiers [this]))
2a5eed61d6b599e00f899ba86b696d6aa472c01368be1a9515b012087592f3c7
seanomlor/programming-in-haskell
pyths.hs
-- | Return Pythagorean triples up to given n pyths :: Int -> [(Int, Int, Int)] pyths n = [ (x, y, z) | x <- [1 .. n] , y <- [1 .. n] , z <- [1 .. n] , (x ^ (2 :: Int)) + (y ^ (2 :: Int)) == z ^ (2 :: Int) ]
null
https://raw.githubusercontent.com/seanomlor/programming-in-haskell/e05142e6709eeba2e95cf86f376a32c9e629df88/05-list-comprehensions/pyths.hs
haskell
| Return Pythagorean triples up to given n
pyths :: Int -> [(Int, Int, Int)] pyths n = [ (x, y, z) | x <- [1 .. n] , y <- [1 .. n] , z <- [1 .. n] , (x ^ (2 :: Int)) + (y ^ (2 :: Int)) == z ^ (2 :: Int) ]
d15fc2d5ac7e7f1ecff1b958e9c719c8a10373be3411f86f2d0e260b675d5051
pascal-knodel/haskell-craft
E'11'29.hs
-- -- -- ------------------ Exercise 11.29 . ------------------ -- -- -- module E'11'29 where -- Note: Use/See templates for proofs by induction. -- iter :: Integer -> (a -> a) -> (a -> a) -- iter n f | n > 0 = f . ( n - 1 ) f -- | otherwise = id -- --------------- 1 . Proposition : -- ----...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/_/links/E'11'29.hs
haskell
---------------- ---------------- Note: Use/See templates for proofs by induction. iter :: Integer -> (a -> a) -> (a -> a) iter n f | otherwise = id --------------- --------------- iter n id = id ("n" is a natural number, "id" is fixed) Proof By Induction: ------------------- -----------...
Exercise 11.29 . module E'11'29 where | n > 0 = f . ( n - 1 ) f 1 . Proposition : 1 . Induction Beginning ( 1 . I.B. ): ( Base case 1 . ) : < = > n : = 1 = > ( left ) : = iter 1 i d = iter 1 i d ? ? 1 > 0 ...
70fe76783f719b65e0e9da62c19bf31825c40f342f19f894ff0cb9dbbab2b0c8
thosmos/riverdb
roles.cljc
(ns riverdb.roles) (defn has-role? [user role-key] (if (seq (filter (fn [role] (= (:role/type role) role-key)) (:user/roles user))) true false)) (defn admin? ([roles] (admin? #{:role.type/riverdb-admin :role.type/admin} roles)) ([role-ks roles] (if-not (set? roles) (...
null
https://raw.githubusercontent.com/thosmos/riverdb/c0a31710e4430113924178bd0a3b9e8304f58009/src/main/riverdb/roles.cljc
clojure
(ns riverdb.roles) (defn has-role? [user role-key] (if (seq (filter (fn [role] (= (:role/type role) role-key)) (:user/roles user))) true false)) (defn admin? ([roles] (admin? #{:role.type/riverdb-admin :role.type/admin} roles)) ([role-ks roles] (if-not (set? roles) (...
3a122b0a9058ddf1a0822cdf5a1f0e54b6f7ad4e73fba963d298c234657c94a2
voxoz/emqttd
emqttd_mock_client.erl
-module(emqttd_mock_client). -behaviour(gen_server). %% ------------------------------------------------------------------ %% API Function Exports %% ------------------------------------------------------------------ -export([start_link/1, start_session/1, stop/1]). %% ---------------------------------------------...
null
https://raw.githubusercontent.com/voxoz/emqttd/2be612e0e7a00a866cd9af350a030966d73fbc09/test/emqttd_mock_client.erl
erlang
------------------------------------------------------------------ API Function Exports ------------------------------------------------------------------ ------------------------------------------------------------------ ------------------------------------------------------------------ -------------------------...
-module(emqttd_mock_client). -behaviour(gen_server). -export([start_link/1, start_session/1, stop/1]). gen_server Function Exports -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {clientid, session}). start_link(ClientId) -> gen_server:s...
0d90256ea69ac5c39d29d5444089454752efffafd98b11ab5cf6da9ff8878560
degree9/enterprise
indexed_db.cljs
(ns degree9.browser.indexed-db (:require [javelin.core :as j] [degree9.object :as obj] [degree9.browser :as bom] [degree9.browser.indexed-db.factory :as factory] [degree9.browser.indexed-db.opendbrequest :as oreq] [degree9.browser.indexed-db.objectstore :as ...
null
https://raw.githubusercontent.com/degree9/enterprise/65737c347e513d0a0bf94f2d4374935c7270185d/src/degree9/browser/indexed_db.cljs
clojure
(ns degree9.browser.indexed-db (:require [javelin.core :as j] [degree9.object :as obj] [degree9.browser :as bom] [degree9.browser.indexed-db.factory :as factory] [degree9.browser.indexed-db.opendbrequest :as oreq] [degree9.browser.indexed-db.objectstore :as ...
54fa0e68cd99f3f9c86cc4a310f4787da8790460bef875d7c3e2791d7682cb5f
mpickering/eventlog2html
Trie.hs
{-# LANGUAGE OverloadedStrings #-} module Eventlog.Trie where import Prelude hiding (init, lookup) import Data.Text (Text, pack) import Eventlog.Types import Data.Word import qualified Data.Map as Map import Data.Map ((!)) import qualified Data.Trie.Map as Trie import qualified Data.Trie.Map.Internal as TrieI import ...
null
https://raw.githubusercontent.com/mpickering/eventlog2html/a18ec810328c71122ccc630fccfcea5b48c0e937/src/Eventlog/Trie.hs
haskell
# LANGUAGE OverloadedStrings #
module Eventlog.Trie where import Prelude hiding (init, lookup) import Data.Text (Text, pack) import Eventlog.Types import Data.Word import qualified Data.Map as Map import Data.Map ((!)) import qualified Data.Trie.Map as Trie import qualified Data.Trie.Map.Internal as TrieI import Data.Aeson import Control.Monad.Sta...
3bb9c03dd35bb19bcf7dbf9674765005cbd14748b013c16f281eab45f25fad1d
spacefrogg/clfswm
menu-def.lisp
;;; -------------------------------------------------------------------------- ;;; CLFSWM - FullScreen Window Manager ;;; ;;; -------------------------------------------------------------------------- ;;; Documentation: Menu definitions ;;; Note : Mod-1 is the Alt or Meta key , Mod-2 is the key . ;;; ---------------...
null
https://raw.githubusercontent.com/spacefrogg/clfswm/d5d399c21db016cb03a1e406716f4d51f3a8ca1c/src/menu-def.lisp
lisp
-------------------------------------------------------------------------- CLFSWM - FullScreen Window Manager -------------------------------------------------------------------------- Documentation: Menu definitions -------------------------------------------------------------------------- This program is fr...
Note : Mod-1 is the Alt or Meta key , Mod-2 is the key . ( C ) 2005 - 2015 < > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . (in-pack...
64676520079a5558c7a9ea77455206080d37c672d66604eea346a5722921f5e9
racket/plot
extreme-bounds-tests.rkt
#lang racket (require plot plot/utils math/flonum racket/runtime-path rackunit "helpers.rkt") (module+ test (module config info (define timeout 150))) (define-runtime-path eb-1-data "./test-data/eb-1.rktd") (define (do-plot-1 output-fn) (output-fn (points '(#(0 0))) #:...
null
https://raw.githubusercontent.com/racket/plot/c4126001f2c609e36c3aa12f300e9c673ab1a806/plot-test/plot/tests/extreme-bounds-tests.rkt
racket
#lang racket (require plot plot/utils math/flonum racket/runtime-path rackunit "helpers.rkt") (module+ test (module config info (define timeout 150))) (define-runtime-path eb-1-data "./test-data/eb-1.rktd") (define (do-plot-1 output-fn) (output-fn (points '(#(0 0))) #:...
ce4213de435f35094bd0d29c33efada3101bbf6a026c20e12adf7a6842002313
mrb/soundwave
Network.hs
module Soundwave.Network where import qualified Soundwave.Logger as L import Network.Socket hiding (send, sendTo, recv, recvFrom) import Network.Socket.ByteString import Control.Monad.State import qualified Data.Map.Strict as M import Data.Int import Data.Maybe import Data.Word import Data.Binary.Put import qualified ...
null
https://raw.githubusercontent.com/mrb/soundwave/5906f07310ffc2be7ccda550bf639e1d061262e8/Soundwave/Network.hs
haskell
module Soundwave.Network where import qualified Soundwave.Logger as L import Network.Socket hiding (send, sendTo, recv, recvFrom) import Network.Socket.ByteString import Control.Monad.State import qualified Data.Map.Strict as M import Data.Int import Data.Maybe import Data.Word import Data.Binary.Put import qualified ...
2881c888591107cba511e162713627f0f40a615387264580317903b10964fe3d
ocramz/sparse-linear-algebra
SpVector.hs
# language FlexibleContexts , TypeFamilies # # language DeriveFunctor , DeriveFoldable # ----------------------------------------------------------------------------- -- | Copyright : ( C ) 2016 -- License : GPL-3 (see LICENSE) -- Maintainer : zocca.marco gmail -- Stability : provisional -- Portabili...
null
https://raw.githubusercontent.com/ocramz/sparse-linear-algebra/77f14ebc5c545cb665cdd840149a021f3df07183/src/Data/Sparse/SpVector.hs
haskell
--------------------------------------------------------------------------- | License : GPL-3 (see LICENSE) Maintainer : zocca.marco gmail Stability : provisional Portability : portable --------------------------------------------------------------------------- * Sparse Vector # UNPACK # | SpVector d...
# language FlexibleContexts , TypeFamilies # # language DeriveFunctor , DeriveFoldable # Copyright : ( C ) 2016 module Data.Sparse.SpVector where import Control.Exception import Control.Monad.Catch (MonadThrow (..)) import Control.Exception.Common import GHC.Exts import Data.Sparse.Utils import Data.Sparse....
b0c17422ebf1e9fe173320b6180d081541538665db19a5a052dc5e33f0b929a8
f-me/carma-public
ProgramType.hs
# LANGUAGE TemplateHaskell # module Carma.Model.ProgramType where import Data.Text import Data.Typeable import Data.Model import Data.Model.View import Data.Model.TH import Carma.Model.Types() import Carma.Model.PgTypes() data ProgramType = ProgramType { ident :: PK Int ProgramType "Тип программы...
null
https://raw.githubusercontent.com/f-me/carma-public/82a9f44f7d919e54daa4114aa08dfec58b01009b/carma-models/src/Carma/Model/ProgramType.hs
haskell
# LANGUAGE TemplateHaskell # module Carma.Model.ProgramType where import Data.Text import Data.Typeable import Data.Model import Data.Model.View import Data.Model.TH import Carma.Model.Types() import Carma.Model.PgTypes() data ProgramType = ProgramType { ident :: PK Int ProgramType "Тип программы...
659a926b6eed128ef7e11edf9febccadbd56c68542f07180a1e541015edac54f
oshyshko/adventofcode
D05.hs
module Y22.D05 where import Imports import Parser import Util (shouldNeverReachHere) type Crate = Char type Move = (Int, Int, Int) -- (count, from, to) -- parser stacksAndMoves :: Parser ([[Crate]], [Move]) stacksAndMoves = (,) <$> stacks <* eol <* eol <*> c...
null
https://raw.githubusercontent.com/oshyshko/adventofcode/def9d98b44d44fb972aee39d3f0d717bb71e4475/src/Y22/D05.hs
haskell
(count, from, to) parser [T] [J] [S] [J] [N] [R] [H] [Z] [M] [T] [M] [T] [Q] [W] rows footer [T] [J] [S] [J] [N] "[C]" or " " (old -> (ejected, new)) -> index -> values -> (ejected, new-values) (ejected, new-values)
module Y22.D05 where import Imports import Parser import Util (shouldNeverReachHere) type Crate = Char stacksAndMoves :: Parser ([[Crate]], [Move]) stacksAndMoves = (,) <$> stacks <* eol <* eol <*> countFromTo `sepEndBy` eol where 1 2 3 4 5 6...
d20553a6c1d6c516ae0bacf1f9d9a8dce005d1e29d4106d6281e207796aaafb7
morpheusgraphql/morpheus-graphql
RenderGQL.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoImplicitPrelude # module Data.Morpheus.Rendering.RenderGQL ( RenderGQL (..), render, renderObject, renderMembers, newline, renderArguments, renderEntry, space, Rendering, fromText, intercalate, ...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/693ab8c3f63043b309abf88a373b1529a66713ca/morpheus-graphql-core/src/Data/Morpheus/Rendering/RenderGQL.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleInstances # # LANGUAGE NoImplicitPrelude # module Data.Morpheus.Rendering.RenderGQL ( RenderGQL (..), render, renderObject, renderMembers, newline, renderArguments, renderEntry, space, Rendering, fromText, intercalate, renderInputSeq, unwords, fr...
9bd3a60db2e4257a2f517b4be9f778705d9a4f5957e381a5c187d07a4bf7890f
dcao/seascape
Search.hs
# LANGUAGE TypeApplications , OverloadedStrings # module Seascape.Actions.Search where import Control.Monad (join) import Data.Ix import qualified Data.Map.Strict as Map import Data.SearchEngine import Data.Char (isDigit) import Data.Text (intercalate, splitOn, Text, toLower, filter, inits) import Data.Monoid (mconcat...
null
https://raw.githubusercontent.com/dcao/seascape/b76853993018979b05101ac9cb0749936148957f/src/Seascape/Actions/Search.hs
haskell
# LANGUAGE TypeApplications , OverloadedStrings # module Seascape.Actions.Search where import Control.Monad (join) import Data.Ix import qualified Data.Map.Strict as Map import Data.SearchEngine import Data.Char (isDigit) import Data.Text (intercalate, splitOn, Text, toLower, filter, inits) import Data.Monoid (mconcat...
53be93cae3bfb2565d563572fb8d0bc5a58382ae5f0ea52e2ced81b9ded5b347
kingcons/advent-of-code
day06.lisp
(mgl-pax:define-package :aoc.2022.06 (:nicknames :2022.06) (:import-from :alexandria #:setp) (:use :cl :aoc.util :mgl-pax)) (in-package :2022.06) (defsummary (:title "Tuning Trouble") "Day 6 is straightforward both in terms of parsing and logic. The input data is a single long string and we are asked to find ...
null
https://raw.githubusercontent.com/kingcons/advent-of-code/10be41f02f2df5df511a379ac2c2f48cb95418b6/src/2022/day06.lisp
lisp
(mgl-pax:define-package :aoc.2022.06 (:nicknames :2022.06) (:import-from :alexandria #:setp) (:use :cl :aoc.util :mgl-pax)) (in-package :2022.06) (defsummary (:title "Tuning Trouble") "Day 6 is straightforward both in terms of parsing and logic. The input data is a single long string and we are asked to find ...
528f380ab90ce86d7637c7e3a4a0233f457af07cf32175bd4caebac05122fbf9
facebook/infer
term_test.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/9d9a3a42b75697db86bc0da3092137f175782773/sledge/src/test/term_test.ml
ocaml
[@@@warning "-unused-value-declaration"] let () = Dbg.init ~margin:68 ~config:Dbg.all ()
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
2363a14ff3b3be4957d13b8f24e78c25420709d847d29de595c09155ab1c83c7
mk270/ocaml-prolog
opl.ml
OCaml - Prolog , a Prolog interpreter , by and Copyright ( C ) 2008 and This programme is free software ; you may redistribute and/or modify it under the terms of the GNU General Public Licence as published by the Free Software Foundation , either version 3 of said Licence , or ( at ...
null
https://raw.githubusercontent.com/mk270/ocaml-prolog/72b4d956eda1c86e35dde8e31b29977de6962120/src/opl.ml
ocaml
lexing failure parsing failure
OCaml - Prolog , a Prolog interpreter , by and Copyright ( C ) 2008 and This programme is free software ; you may redistribute and/or modify it under the terms of the GNU General Public Licence as published by the Free Software Foundation , either version 3 of said Licence , or ( at ...
e1a649510d4d925ce37e6ff14ab6985520811770d8fe1d08bf5e9b5f3ccd08dd
iustin/corydalis
StatusSpec.hs
Copyright ( C ) 2013 This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . This program is distributed i...
null
https://raw.githubusercontent.com/iustin/corydalis/43f8bf004904847fad43c428a9e1b20e67da964d/test/Handler/StatusSpec.hs
haskell
# LANGUAGE OverloadedStrings # FIXME: add testing of repository status [test]
Copyright ( C ) 2013 This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . This program is distributed i...
bd951e8004b665ed6164ce59f872e7ef093e404457b4de16c876daedccb3131a
naproche/naproche
Properties.hs
{- generated by Isabelle -} Title : Isabelle / Properties.hs Author : Makarius LICENSE : BSD 3 - clause ( Isabelle ) Property lists . See " $ ISABELLE_HOME / src / Pure / General / properties . ML " . Author: Makarius LICENSE: BSD 3-clause (Isabelle) Property lists...
null
https://raw.githubusercontent.com/naproche/naproche/fe4da26afbaeb506b24a73cc2ad390b7953deb79/Isabelle/src/Isabelle/Properties.hs
haskell
generated by Isabelle
Title : Isabelle / Properties.hs Author : Makarius LICENSE : BSD 3 - clause ( Isabelle ) Property lists . See " $ ISABELLE_HOME / src / Pure / General / properties . ML " . Author: Makarius LICENSE: BSD 3-clause (Isabelle) Property lists. See "$ISABELLE_HOME/src/P...
c1e178c03e0c4b240628c78f72aa5860d9e3df3ac6252e2d2073054e3373a2b3
thheller/shadow-cljsjs
react_grid_layout.cljs
(ns cljsjs.react-grid-layout (:require ["react-grid-layout" :as ReactGridLayout])) (js/goog.exportSymbol "ReactGridLayout" ReactGridLayout)
null
https://raw.githubusercontent.com/thheller/shadow-cljsjs/eaf350d29d45adb85c0753dff77e276e7925a744/src/main/cljsjs/react_grid_layout.cljs
clojure
(ns cljsjs.react-grid-layout (:require ["react-grid-layout" :as ReactGridLayout])) (js/goog.exportSymbol "ReactGridLayout" ReactGridLayout)
2dded4d0e8f51fb4964b398d9f97d9c6b0ff62cd822f742f2f52fa9de1bcdc9b
gsdlab/clafer
JSONMetaData.hs
{-# LANGUAGE OverloadedStrings #-} Copyright ( C ) 2014 - 2017 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the righ...
null
https://raw.githubusercontent.com/gsdlab/clafer/a30a645ae1e4fc793851e53446d220924038873a/src/Language/Clafer/JSONMetaData.hs
haskell
# LANGUAGE OverloadedStrings # | Creates JSON outputs for different kinds of metadata. | Generate a JSON list of triples containing a fully-qualified-, least-partially-qualified name, and unique id. | Generate a JSON list of tuples containing a least-partially-qualified name and a scope insert a new line after [, ...
Copyright ( C ) 2014 - 2017 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , merg...
21b912ef84ce725b7f8defb4a6c856d77aa5376f6fa304ed81fb92a545177f08
slipstream/SlipStreamServer
configuration_template_session_github.clj
(ns com.sixsq.slipstream.ssclj.resources.configuration-template-session-github (:require [com.sixsq.slipstream.ssclj.resources.common.utils :as u] [com.sixsq.slipstream.ssclj.resources.configuration-template :as p] [com.sixsq.slipstream.ssclj.resources.spec.configuration-template-session-github :as cts-gi...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/src/com/sixsq/slipstream/ssclj/resources/configuration_template_session_github.clj
clojure
resource description multimethods for validation initialization: register this Configuration template
(ns com.sixsq.slipstream.ssclj.resources.configuration-template-session-github (:require [com.sixsq.slipstream.ssclj.resources.common.utils :as u] [com.sixsq.slipstream.ssclj.resources.configuration-template :as p] [com.sixsq.slipstream.ssclj.resources.spec.configuration-template-session-github :as cts-gi...
9fe20362963da860ff010c34bbe444a6aa5361082f7513435ba825b415aa78f7
cobaweel/piffle
Compiler.hs
Piffle , Copyright ( C ) 2007 , . This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program i...
null
https://raw.githubusercontent.com/cobaweel/piffle/7c4cfb5301c5c55c229098d3938d3b023d69cde4/src/Compiler.hs
haskell
-------------------------------------------------- This module does various sorts of behind-the-scenes heavy lifting in the form of a monad in which all compiler passes are run. This includes including logging, keeping track of the position in the source, and recording error messages. ERROR MONAD ----------...
Piffle , Copyright ( C ) 2007 , . This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program i...
0f6ade2685977e1733979568ebd7621bbf4572312af645272e98164ffe07cced
TerrorJack/ghc-alter
readInteger001.hs
main :: IO () main = do f "100e12" f "00123.456" f :: String -> IO () f str = print (reads str :: [(Integer, String)])
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/tests/readInteger001.hs
haskell
main :: IO () main = do f "100e12" f "00123.456" f :: String -> IO () f str = print (reads str :: [(Integer, String)])
bc1c35dc9a0a00f488d03bdb045e2b2eeb99755b38d867edec85255bf65ca61b
jlouis/etorrent_core
etorrent_file_logger.erl
@author < > @doc Log Etorrent Events to a file . %% <p>This gen_event logger lets you log etorrent information to a file</p> %% @end -module(etorrent_file_logger). -behaviour(gen_event). %% Install/Deinstall -export([add_handler/0, add_handler/1, delete_handler/0]). %% Callbacks -export([init/1, handle_even...
null
https://raw.githubusercontent.com/jlouis/etorrent_core/7db7f4ef36c1d055812504f00df92c6a67c2e4af/src/etorrent_file_logger.erl
erlang
<p>This gen_event logger lets you log etorrent information to a file</p> @end Install/Deinstall Callbacks ======================================================================= @doc Add a default handler accepting everything @end @doc Add a handler with a predicate function. <p>This variant only outputs thing...
@author < > @doc Log Etorrent Events to a file . -module(etorrent_file_logger). -behaviour(gen_event). -export([add_handler/0, add_handler/1, delete_handler/0]). -export([init/1, handle_event/2, handle_info/2, terminate/2]). -export([handle_call/2, code_change/3]). -type filepath() :: string(). -record(sta...
510807376cbfa95610652058bce73511a6e2798c8b9587e38ee2f51319969c4d
timbertson/passe
messages.ml
let hello = "hullo"
null
https://raw.githubusercontent.com/timbertson/passe/467a79ea0cd7b08a97b52be3bd1307a3bdf55799/src/common/messages.ml
ocaml
let hello = "hullo"
e678364d229379d33de565bc76707bbcb89c9e855c7ec40cd3673ff100f9c729
ChrisPenner/grids
Nest.hs
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -fno - warn - redundant - constraints # module Data.Grid.Internal.Nest where
null
https://raw.githubusercontent.com/ChrisPenner/grids/619c72b1e51f96377845c2a15eb100d8f4185fa1/src/Data/Grid/Internal/Nest.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -fno - warn - redundant - constraints # module Data.Grid.Internal.Nest where
0a843320458415cfb0f64aed406d9294eee20b4fa3280aee835c92b8fd2d9fb6
ocaml-ppx/ppxlib
code_path.mli
(** This module contains type and functions for representing and manipulating path to AST nodes. *) open! Import type t (** Type for path to AST nodes *) val file_path : t -> string * Return the path to the .ml or .mli file for this code path . val main_module_name : t -> string (** Return the module name corre...
null
https://raw.githubusercontent.com/ocaml-ppx/ppxlib/1110af2ea18f351cc3f2ccbee8444bb2a4b257b7/src/code_path.mli
ocaml
* This module contains type and functions for representing and manipulating path to AST nodes. * Type for path to AST nodes * Return the module name corresponding to the file to which this code path leads to. * Return the path within the main module this code path represents as a list of module names. *...
open! Import type t val file_path : t -> string * Return the path to the .ml or .mli file for this code path . val main_module_name : t -> string val submodule_path : t -> string list val enclosing_module : t -> string val value : t -> string option val enclosing_value : t -> string option val fully_qualified_...
8c4271e46a1fc08b22687a1a31d2b2c510f07b39531160d8144cf810bbafbc26
onedata/op-worker
harvesting_test_SUITE.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module tests mechanism of har...
null
https://raw.githubusercontent.com/onedata/op-worker/a48082aad45530ab40cbe15a69c5057970a4bba1/test_distributed/harvesting_test_SUITE.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This module tests mechanism of harvesting metadata in multi-provider environment. NOTE !!! Test cases in this suite are not independent as it is impossible to reset co...
@author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(harvesting_test_SUITE). -author("Jakub Kudzia"). -include("modules/dataset/dataset.hrl"). -include("modules/fslogic/data_access_control.hrl"). -include("modules/harvesting/harvesting.hrl")....
cecb9d18ba1524f29dae32f8e47c3b710bbc8fc4fd6efdd12d1cb72fc39edb19
Bogdanp/racket-binfmt
unparser.rkt
#lang racket/base (require (for-syntax racket/base racket/syntax syntax/parse) racket/match racket/port (submod "error.rkt" private) "name.rkt" "res.rkt") (provide make-unparser-table make-unparser unparse) (define (unparse tab...
null
https://raw.githubusercontent.com/Bogdanp/racket-binfmt/88dd392425d80a2d15807ed57ffb509daed3fff4/binfmt/runtime/unparser.rkt
racket
#lang racket/base (require (for-syntax racket/base racket/syntax syntax/parse) racket/match racket/port (submod "error.rkt" private) "name.rkt" "res.rkt") (provide make-unparser-table make-unparser unparse) (define (unparse tab...
a14bb7e220797016200252ef5e5326b4f39c7da1837b38231c22bdc75021ac4a
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Time.FR.Corpus ( corpus , negativeCorpus ) where ...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Time/FR/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Time.FR.Corpus ( corpus , negativeCorpus ) where import Data.String import Prelude import Duckling.Locale import Duckling.Resolve import Duckling.Testing.Types hiding (examples) import Duckling.Time.Corpus import Duckling.Time.Types hiding (M...
41f0040297985de46efc30a5b9a96c05da3af4e577c2c88b150e7b2b5194ce8a
replikativ/datahike
query_pull_test.cljc
(ns datahike.test.query-pull-test (:require #?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]] :clj [clojure.test :as t :refer [is are deftest testing]]) [datahike.api :as d] [datahike.db :as db])) (def test-db (d/db-with (db/empty-db) [{:db/id 1 :name...
null
https://raw.githubusercontent.com/replikativ/datahike/408cb0f538a837267e44b098df895fa00348fe10/test/datahike/test/query_pull_test.cljc
clojure
not supported
(ns datahike.test.query-pull-test (:require #?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]] :clj [clojure.test :as t :refer [is are deftest testing]]) [datahike.api :as d] [datahike.db :as db])) (def test-db (d/db-with (db/empty-db) [{:db/id 1 :name...
47df09ac2017dedb747c954fd766d93fcf703139b59818ddd49eccfb3f8f67a8
tweag/ormolu
associated-types-out.hs
# LANGUAGE TypeFamilies # instance Foo Int where type Bar Int = Double instance Foo Double where type Bar Double = [Double] type Baz Double = [Double]
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/instance/associated-types-out.hs
haskell
# LANGUAGE TypeFamilies # instance Foo Int where type Bar Int = Double instance Foo Double where type Bar Double = [Double] type Baz Double = [Double]
c936c5c8a84bc779fbd863e9329bbd779cc1b3012ef79d7482ab2fcea69ab8b7
alanb2718/wallingford
max-min-tests.rkt
#lang s-exp rosette ;; unit tests for max-value and min-value in reactive-thing% (require rackunit rackunit/text-ui rosette/lib/roseunit) (require "../core/wallingford.rkt") (require "../applications/geothings.rkt") (require "../reactive/reactive.rkt") (provide max-min-tests) (define (max-min-in-always) (test-case...
null
https://raw.githubusercontent.com/alanb2718/wallingford/9dd436c29f737d210c5b87dc1b86b2924c0c5970/tests/max-min-tests.rkt
racket
unit tests for max-value and min-value in reactive-thing% x should keep getting bigger as time advances, y should keep getting smaller, and z should stay stuck at 0 z is the negation of y, basically outside of while at this time, so x, y, and z shoud have their initial values while should now be active
#lang s-exp rosette (require rackunit rackunit/text-ui rosette/lib/roseunit) (require "../core/wallingford.rkt") (require "../applications/geothings.rkt") (require "../reactive/reactive.rkt") (provide max-min-tests) (define (max-min-in-always) (test-case "test calls to max-value and min-value in an always" (...
7ea863ba330625c16813e40b31ac6c892c79c9cf9a3d9c30ec63daf00b0759c7
rcmgleite/reward-system
model.clj
(ns nubank.model (:require [nubank.utils :as utils])) ; ------------------------------------- ; FUNCTIONAL MODEL ; ------------------------------------- ; node struct representation (defstruct node :subtree-h :parent :children) (defn new-node [h parent children] "function that returns a new node" (stru...
null
https://raw.githubusercontent.com/rcmgleite/reward-system/cf8644c6fc6fd989de5a5db59a216a7bcd5ac0a8/src/nubank/model.clj
clojure
------------------------------------- FUNCTIONAL MODEL ------------------------------------- node struct representation Complexity: O(branching factor) Complexity: O(height of the subtree) ------------------------------------- MUTABLE MODEL ------------------------------------- global var...
(ns nubank.model (:require [nubank.utils :as utils])) (defstruct node :subtree-h :parent :children) (defn new-node [h parent children] "function that returns a new node" (struct node h parent children)) (defn score-factor [h] "(1/2)^k" (let [hs (take h (range))] (reduce + (map (fn [curr-h] ...
9954cdc39edae26b5ee4abb79093777a8d7ca81be4f4e0acde2b5a8dfbc66f48
darkling/lagra
incremental_parsers_SUITE.erl
-module(incremental_parsers_SUITE). -include_lib("common_test/include/ct.hrl"). -compile(export_all). all() -> [ntriples_1, ntriples_2, ntriples_fail_1, ntriples_fail_2, turtle_1, turtle_2, turtle_fail_1, turtle_fail_2]. init_per_suite(Config) -> {ok, _} = application:ensure_all_started(lagra), Config. en...
null
https://raw.githubusercontent.com/darkling/lagra/6827ea20db86aeb4c139db45bd3133ffccfddb7d/ct/incremental_parsers_SUITE.erl
erlang
Null callback function
-module(incremental_parsers_SUITE). -include_lib("common_test/include/ct.hrl"). -compile(export_all). all() -> [ntriples_1, ntriples_2, ntriples_fail_1, ntriples_fail_2, turtle_1, turtle_2, turtle_fail_1, turtle_fail_2]. init_per_suite(Config) -> {ok, _} = application:ensure_all_started(lagra), Config. en...
fd660d47989e31c1df11e7212d9fdac17d06b69d9492ece681ad72c6a770c591
conreality/conreality
check_prelude_string.ml
(* This is free and unencumbered software released into the public domain. *) open Check_common open Consensus.Prelude (* Prelude.String *) module String_test = struct let is_empty () = same_bool true (String.is_empty ""); same_bool false (String.is_empty "a") end (* Test suite definition *) let () = A...
null
https://raw.githubusercontent.com/conreality/conreality/e03328ef1f0056b58e4ffe181a279a1dc776e094/test/consensus/check_prelude_string.ml
ocaml
This is free and unencumbered software released into the public domain. Prelude.String Test suite definition
open Check_common open Consensus.Prelude module String_test = struct let is_empty () = same_bool true (String.is_empty ""); same_bool false (String.is_empty "a") end let () = Alcotest.run "Consensus.Prelude.String test suite" [ "String", [ "String.is_empty", `Quick, String_test.is_empty; ...
a64a901a74dcaedbeb90ca8350508c9f3b35af1de71882ed1fb8a929c4b808a5
macourtney/Dark-Exchange
has_panel.clj
(ns darkexchange.view.main.search.has-panel (:require [darkexchange.model.terms :as terms] [darkexchange.view.offer.widgets :as offer-widgets] [seesaw.core :as seesaw-core])) (defn create [] (seesaw-core/horizontal-panel :id :has-panel :items [(terms/i-have) [:fill-h 3] (offer-widgets/c...
null
https://raw.githubusercontent.com/macourtney/Dark-Exchange/1654d05cda0c81585da7b8e64f9ea3e2944b27f1/src/darkexchange/view/main/search/has_panel.clj
clojure
(ns darkexchange.view.main.search.has-panel (:require [darkexchange.model.terms :as terms] [darkexchange.view.offer.widgets :as offer-widgets] [seesaw.core :as seesaw-core])) (defn create [] (seesaw-core/horizontal-panel :id :has-panel :items [(terms/i-have) [:fill-h 3] (offer-widgets/c...
94853202ddfcdadf2e2262176a4a627a6561a82000f9bd2a6086098b5f6ef485
alekcz/fire
core.clj
(ns fire.core (:require [org.httpkit.client :as client] [org.httpkit.sni-client :as sni-client] [clojure.core.async :as async] [clojure.java.io :as io] [fire.auth :as fire-auth] [fire.utils :as utils]) (:refer-clojure :exclude [read]) (:gen-c...
null
https://raw.githubusercontent.com/alekcz/fire/812398e36c02c244fb59dd1d20575204185c7f0e/src/fire/core.clj
clojure
(ns fire.core (:require [org.httpkit.client :as client] [org.httpkit.sni-client :as sni-client] [clojure.core.async :as async] [clojure.java.io :as io] [fire.auth :as fire-auth] [fire.utils :as utils]) (:refer-clojure :exclude [read]) (:gen-c...
356f574e8ec973c2d683c076566e32493df48e6e5fec8ba80b527f5854b548a2
karamellpelle/grid
Field.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/Run/File/Field.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module Game.Run.File.Field ( Field, fi...
e58b2f52efed75223610074358f088965af70c0ef4b36dc57bc3daed39dab68f
janestreet/ecaml
backup.ml
open! Core open! Import let make_backup_files = Customization.Wrap.("make-backup-files" <: bool)
null
https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/src/backup.ml
ocaml
open! Core open! Import let make_backup_files = Customization.Wrap.("make-backup-files" <: bool)
e9a4538752eb24bc49639291fd04823115676c1290494571a5884e9f4e96cbbc
SOwens/example-compiler
shrinkImmediates.ml
* Example compiler * Copyright ( C ) 2015 - 2017 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any ...
null
https://raw.githubusercontent.com/SOwens/example-compiler/b155e89c7d9d0ae6ec671ae9cb4356c78dda7ab7/src/shrinkImmediates.ml
ocaml
This is an arithmetic shift. division cannot have immediate operands
* Example compiler * Copyright ( C ) 2015 - 2017 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any ...
946ca79362f7a3667ba056135f96f9a2678e31ada4f425f3f38c205e3aa4d67e
sondresl/AdventOfCode
Lib.hs
# LANGUAGE FlexibleContexts # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # # LANGUAGE TypeOperators # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # module Lib where import Text.ParserCombinators.Parsec (Parser, parse, noneOf, sepEndBy, many, digit, try, (<|>), char, many1) import Control.Comonad.St...
null
https://raw.githubusercontent.com/sondresl/AdventOfCode/db0e59da65d3ddc18d484f24f9a90b2964b8b92c/2021/Haskell/src/Lib.hs
haskell
To get _all_ diagonals, do this once on the list and on the reversed list and removing it from the list Functions that test for repetition Initial candidates Generate new candidates from current Project into set of seen All the visited 'areas' based on the value Source: -of-code-2020/blob/master/src/AOC/Commo...
# LANGUAGE FlexibleContexts # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # # LANGUAGE TypeOperators # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # module Lib where import Text.ParserCombinators.Parsec (Parser, parse, noneOf, sepEndBy, many, digit, try, (<|>), char, many1) import Control.Comonad.St...
c524e45d425cee2e6c8b5da23457e1ea702d97bf7da2de3341dcc01227615fb5
rodo/tsung-gis
xyz.erl
-*- coding : utf-8 -*- %% Copyright ( c ) < > %% %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or %% (at your option) any later vers...
null
https://raw.githubusercontent.com/rodo/tsung-gis/d6fc43e5c21d7d12f703cf0766dcd0900ab1d6bc/src/xyz.erl
erlang
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See th...
-*- coding : utf-8 -*- Copyright ( c ) < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License @doc List of used : -module(xyz). -export([ur...
32c35940c3b371da539b52b7262aa95710fdd0566a4a2fa6f67ef57adfefd4aa
ormf/cm
cache.lisp
(in-package :cm) ;;; this file implements a very simple facility for assocating ;;; infomatino with keynumebers. It can be used, for example, to " remember " what keys are down on the DK . information about keys is ;;; held in an ARRAY, which is a more efficient (faster) way to ;;; organize informaton than using LIS...
null
https://raw.githubusercontent.com/ormf/cm/26843eec009bd6c214992a8e67c49fffa16d9530/doc/404B-SoundSynth-AlgoComp/www-camil.music.uiuc.edu_16080/classes/404B/lisp/cache.lisp
lisp
this file implements a very simple facility for assocating infomatino with keynumebers. It can be used, for example, to held in an ARRAY, which is a more efficient (faster) way to organize informaton than using LISTS. an array is simply an indexed block of memory that can hold user specified value at each index....
(in-package :cm) " remember " what keys are down on the DK . information about keys is (defparameter myarray (make-array 10)) use ELT to get the value at an index : use SETF with ELT to set the value at an index : ( setf ( elt myarray 0 ) 123 ) ( setf ( elt myarray 1 ) ( random 10000000 ) ) ( elt my...
a4f00b4248072fde90346c1e2c7395e62fd78dbe16a40e619c92a69ac2dfe365
bsansouci/reasonglexampleproject
ttfimg.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bsansouci/reasonglexampleproject/4ecef2cdad3a1a157318d1d64dba7def92d8a924/vendor/camlimages/examples/ttfimg/ttfimg.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1999 - 2004 , Institut National de Recherche en Informatique et en Automatique . $ I d : , v 1.11 2004/09/21 18:15:50 weis Exp $ open Images open OImages open Freetype open Fttext let f...
9b65528c4223da1a11678b267d77d459c0f5be4326f01d5ee2c688f1bacb5097
NalaGinrut/artanis
blog.scm
#! /usr/bin/env guile !# -*- indent - tabs - mode : nil ; coding : utf-8 -*- ;; Copyright (C) 2013,2014,2015,2018 " Mu Lei " known as " NalaGinrut " < > Artanis is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License and GNU Lesser General Pu...
null
https://raw.githubusercontent.com/NalaGinrut/artanis/3412d6eb5b46fde71b0965598ba085bacc2a6c12/examples/blog.scm
scheme
coding : utf-8 -*- Copyright (C) 2013,2014,2015,2018 any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License and GNU Lesser General Public License for more details. and GNU Lesser General Pu...
#! /usr/bin/env guile !# " Mu Lei " known as " NalaGinrut " < > Artanis is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License and GNU Lesser General Public License published by the Free Software Foundation , either version 3 of the License , o...
f6122dc71010e85f165a4096d087659822defed9b8bb46495014346f9302bd63
mikeizbicki/HerbiePlugin
ForeignInterface.hs
# LANGUAGE OverloadedStrings , FlexibleContexts # module Herbie.ForeignInterface where import Control.Applicative import Control.Exception import Control.DeepSeq import Data.List import Data.String import qualified Data.Text as T import Database.SQLite.Simple import Database.SQLite.Simple.FromRow import Database....
null
https://raw.githubusercontent.com/mikeizbicki/HerbiePlugin/0d495e40961742d578746120cd728c1ec9237cb4/src/Herbie/ForeignInterface.hs
haskell
| This information gets stored in a separate db table for debugging purposes FIXME: putStrLn $ " cmdin: "++cmdinLisp putStrLn $ " cmdout: "++cmdout res | Given a Lisp command, return a numerically stable version. if it's not, then it runs "execHerbie". FIXME: So we need to check to make sure we ret...
# LANGUAGE OverloadedStrings , FlexibleContexts # module Herbie.ForeignInterface where import Control.Applicative import Control.Exception import Control.DeepSeq import Data.List import Data.String import qualified Data.Text as T import Database.SQLite.Simple import Database.SQLite.Simple.FromRow import Database....
cf2b5760c5b051f9aa287922201c47b54ace36ab3bbc23b92e14c737c0c32dac
nasyxx/NasyMoe
Setup.hs
Excited without bugs , have fun ( " ▔ □ ▔ ) /hi~ ♡ Nasy . ------------------------------------------------ | * * | . . | . | * , | . | | * | ...
null
https://raw.githubusercontent.com/nasyxx/NasyMoe/a0de680bacad1396a165fc35336387d8d28a6f35/Setup.hs
haskell
---------------------------------------------- From " Hamlet " ------------------------------------------------------------------------------ ---------------------------------------------- From "Hamlet" ------------------------------------------------------------------------------ ---------------------------------...
Excited without bugs , have fun ( " ▔ □ ▔ ) /hi~ ♡ Nasy . | * * | . . | . | * , | . | | * | |\___/| | ) - ( ....
62c0b0f7735f70e2e654b5d7bbfa854faafbda5453f4164da4536fd0d7415150
electric-sql/vaxine
prop_register_mv.erl
%% ------------------------------------------------------------------- %% Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal %% > %% This file is provided...
null
https://raw.githubusercontent.com/electric-sql/vaxine/872a83ea8d4935a52c7b850bb17ab099ee9c346b/apps/antidote_crdt/test/prop_register_mv.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 expressed or implied. See the License for the specific language governing perm...
Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal This file is provided to you under the Apache License , except in compliance with the License . You...