_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
1be48405d9a93bfca0d3ee4d9ccfeac922914715073a7c41d0cc6c551b254405
aionescu/vec
vec.ml
type ('a, -'p) t = { mutable growth_rate: float ; mutable length: int ; mutable data: 'a array } let default_growth_rate = 2. let[@inline] array_uninit n = Array.make n (Obj.magic 0) let make ?growth_rate:(gr=default_growth_rate) ?capacity:(c=0) () = if gr <= 1. then raise (Invalid_argument "growth_rat...
null
https://raw.githubusercontent.com/aionescu/vec/d7ff6e8422de5a0ec9d285f3ec87396fee90da9b/src/vec.ml
ocaml
type ('a, -'p) t = { mutable growth_rate: float ; mutable length: int ; mutable data: 'a array } let default_growth_rate = 2. let[@inline] array_uninit n = Array.make n (Obj.magic 0) let make ?growth_rate:(gr=default_growth_rate) ?capacity:(c=0) () = if gr <= 1. then raise (Invalid_argument "growth_rat...
c1105535f75c489276f66c2bd99b005ce3f20e55ae8e29ad7ae98284b5821797
Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator
Schema.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - orphans # -- | This module specifies the data types from the OpenAPI specification 3.0.3 Schema -- -- For more information see -- and -schema.org/ -- -- All names in this module correspond to the respectiv...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator/29af2e771df42332a6063077371dfee55f98b5d1/openapi3-code-generator/src/OpenAPI/Generate/Types/Schema.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | This module specifies the data types from the OpenAPI specification 3.0.3 Schema For more information see and -schema.org/ All names in this module correspond to the respective OpenAPI types default would have the same value type as restricted by the schema. ...
# LANGUAGE DeriveGeneric # # OPTIONS_GHC -fno - warn - orphans # module OpenAPI.Generate.Types.Schema where import qualified Data.Map as Map import qualified Data.Scientific as Scientific import Data.Set (Set) import qualified Data.Set as Set import Data.Text (Text) import qualified Data.Text as T import Data.Yaml im...
9f45583b74cfbc0dd60d440f30880600ef3109fe7e05c0cd65fa41bf9eac4865
janestreet/ecaml
function.ml
open! Core open! Import module Q = struct let apply = "apply" |> Symbol.intern let nil = "nil" |> Symbol.intern end include Value.Make_subtype (struct let name = "function" and here = [%here] and is_in_subtype = Value.is_function end) module Fn = struct type t = Value.t array -> Value.t [@@derivi...
null
https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/ecaml_value/src/function.ml
ocaml
[dispatch_function] is registered and emacs [dispatch] function is created before any callback is created and can be called
open! Core open! Import module Q = struct let apply = "apply" |> Symbol.intern let nil = "nil" |> Symbol.intern end include Value.Make_subtype (struct let name = "function" and here = [%here] and is_in_subtype = Value.is_function end) module Fn = struct type t = Value.t array -> Value.t [@@derivi...
e28ef5fc1e1b57b3a7c2d59efcc60a75324a02285da27b323757c60251f9a2a5
cwebber/racket-linkeddata
jsonld-tests.rkt
#lang racket (require json rackunit linkeddata/json-ld) (define (read-tests-json-file filename) (call-with-input-file (string-append "jsonld-test-suite/" filename) read-json)) (define compact-manifest (read-tests-json-file "compact-manifest.jsonld")) (define expand-manifest (read-tests-j...
null
https://raw.githubusercontent.com/cwebber/racket-linkeddata/4d59948bb978d6d0abf06ec4de8eb6b946f5f291/linkeddata/jsonld-tests.rkt
racket
FIXME: Add other options from options FIXME: Add other options from options
#lang racket (require json rackunit linkeddata/json-ld) (define (read-tests-json-file filename) (call-with-input-file (string-append "jsonld-test-suite/" filename) read-json)) (define compact-manifest (read-tests-json-file "compact-manifest.jsonld")) (define expand-manifest (read-tests-j...
cb58a12500445a2d4a87ee605522342ef7b05895c1369d1502f0de0f1d22d9dc
argp/bap
test_base64.ml
open OUnit open BatBase64 let string = "hello world" let assert_equal_strings s1 s2 = assert_equal ~printer:(fun s -> "“"^s^"”") s1 s2 let hexa s = (* really not perf critical *) let r = ref "" in for i = 0 to String.length s - 1 do r := !r ^ (Printf.sprintf "%x" (Char.code s.[i])) done; !r let asse...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/testsuite/test_base64.ml
ocaml
really not perf critical "Encode works as expected" >:: test_enc; "Decode works as expected" >:: test_dec;
open OUnit open BatBase64 let string = "hello world" let assert_equal_strings s1 s2 = assert_equal ~printer:(fun s -> "“"^s^"”") s1 s2 let hexa s = let r = ref "" in for i = 0 to String.length s - 1 do r := !r ^ (Printf.sprintf "%x" (Char.code s.[i])) done; !r let assert_equal_bytes s1 s2 = assert_e...
357fec4b78e51595195f4e1ae0d593958643f30b6f8c49658fd42c5827f5561b
Bogdanp/racket-dbg
resource.rkt
#lang racket/base (require racket/gui racket/runtime-path) (provide icon) (define-runtime-path resources-path "resources") (define backing-scale (get-display-backing-scale)) (define (load-bitmap id) (define path (build-path resources-path (format "~a.png" id))) (read-bitmap path #:backing-scale bac...
null
https://raw.githubusercontent.com/Bogdanp/racket-dbg/d95b23e00304c58dd0962d62f1fad51222cdd901/dbg-ui/ui/resource.rkt
racket
#lang racket/base (require racket/gui racket/runtime-path) (provide icon) (define-runtime-path resources-path "resources") (define backing-scale (get-display-backing-scale)) (define (load-bitmap id) (define path (build-path resources-path (format "~a.png" id))) (read-bitmap path #:backing-scale bac...
6c45746a99e5687aee74e2ec19240f93bc88a1bd4a715fbb92423fdc8360fe01
darrenks/nibbles
Parse.hs
-- todo inversable parser techniques could simplify this -- todo hide Lit to enforce whitespace always consumed -- todo use monad for parseInt, etc -- convention is parse consumes up until next non ignorable code module Parse( staticIntParser, intParser, strParser, chrParser, parseDataExpr, parseCount...
null
https://raw.githubusercontent.com/darrenks/nibbles/eee0a78a330c0ea9c721cc7902325e337a6d90e2/Parse.hs
haskell
todo inversable parser techniques could simplify this todo hide Lit to enforce whitespace always consumed todo use monad for parseInt, etc convention is parse consumes up until next non ignorable code use as needle in match to match int digit todo make this string the new default separator instead of " ", but thi...
module Parse( staticIntParser, intParser, strParser, chrParser, parseDataExpr, parseCountTuple, cp, tildaOp, onlyCheckMatch, match, parseError, parseLitWarning, nextOffset, consumeWhitespace, litDigit, empty, fromByte, toByte, parse1Nibble, errorUnderLine, ...
7b60022dd8807fb88591b49ddc4e235a020f6605ee7eb4174badad197cbe12e1
macourtney/Dark-Exchange
main_frame.clj
(ns darkexchange.controller.main.main-frame (:require [clojure.contrib.logging :as logging] [darkexchange.controller.main.home-tab :as home-tab] [darkexchange.controller.main.identity-tab :as identity-tab] [darkexchange.controller.main.main-menu-bar :as main-menu-bar] [...
null
https://raw.githubusercontent.com/macourtney/Dark-Exchange/1654d05cda0c81585da7b8e64f9ea3e2944b27f1/src/darkexchange/controller/main/main_frame.clj
clojure
(ns darkexchange.controller.main.main-frame (:require [clojure.contrib.logging :as logging] [darkexchange.controller.main.home-tab :as home-tab] [darkexchange.controller.main.identity-tab :as identity-tab] [darkexchange.controller.main.main-menu-bar :as main-menu-bar] [...
1d7f5d44d1bf2e958099e76e0618d4e3e6f6f023d52b484393d896ac86282893
elaforge/karya
Render.hs
Copyright 2018 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt # LANGUAGE DataKinds # # LANGUAGE TypeApplications # -- | Render FAUST instruments. module Synth.Faust.Render where import qualified Control.Exception as Exception import qualified Contro...
null
https://raw.githubusercontent.com/elaforge/karya/4bee9d7a1b53a7bfbb20076792ff0badf468c352/Synth/Faust/Render.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Render FAUST instruments. * write ^ (renderedChunks, totalChunks) | Emit a warning if the patch expects element-address controls and a note doesn't have an element, or vice versa. * render Since _contro...
Copyright 2018 # LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Synth.Faust.Render where import qualified Control.Exception as Exception import qualified Control.Monad.Trans.Resource as Resource import qualified Data.IORef as IORef import qualified Data.List as List import qualified Data.Map as Map impo...
17baf3f910aaa0415f6fee1e61bdf4db83dbc6b107b3e074df039efeb4073075
MyDataFlow/ttalk-server
meck_args_matcher_tests.erl
%%%============================================================================ Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file except in compliance with the License. %%% You may obtain a copy of the License at %%% %%% -2.0 %%% %%% Unless required by applicable law ...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/meck/test/meck_args_matcher_tests.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 expre...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(meck_args_matcher_tests). -include_lib("eunit/include/eunit.hrl"). from_wildcard_test() -> ArgsMatcher = meck_args_matcher:new('_'), ?assertMatch(true, meck_ar...
bb30e0a5ee4160a51d6a8216284189bb3f1e7150526abd751f2443ae6dfe14be
processone/zlib
ezlib.erl
%%%---------------------------------------------------------------------- %%% File : ezlib.erl Author : < > Purpose : Interface to zlib Created : 19 Jan 2006 by < > %%% %%% ezlib , Copyright ( C ) 2002 - 2015 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify...
null
https://raw.githubusercontent.com/processone/zlib/3826aca25b6e3e576ec0d099d48e5bfc1afbb48b/src/ezlib.erl
erlang
---------------------------------------------------------------------- File : ezlib.erl This program is free software; you can redistribute it and/or License, or (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 imp...
Author : < > Purpose : Interface to zlib Created : 19 Jan 2006 by < > ezlib , Copyright ( C ) 2002 - 2015 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU Gene...
3f9c6c59d02e176563cabffee3f8d7ac89fc931e80742b47209e7c0fbaa91137
janestreet/merlin-jst
b.ml
let _ = A.value module Indir = A let _ = Indir.value include A let _ = value
null
https://raw.githubusercontent.com/janestreet/merlin-jst/0152b4e8ef1b7cd0ddee2873aa1860a971585391/tests/test-dirs/locate/non-local/preference.t/b.ml
ocaml
let _ = A.value module Indir = A let _ = Indir.value include A let _ = value
f82c14e8b61057c838796b3f90d394bf3acbcb8d19b48801697d16c13affd9c3
deepflowinc/guardian
Pattern.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Text.Pattern ( Pattern (), concretePrefix, parsePattern, match, patternRE, ) where import Data.Aeson (FromJSON ...
null
https://raw.githubusercontent.com/deepflowinc/guardian/877cccbfd5fa50e405aff4cf4af86ef8f53c1977/src/Text/Pattern.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # >>> "hoo\\*bar" :: Pattern /hoo\*bar/ # INLINE fromString #
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # module Text.Pattern ( Pattern (), concretePrefix, parsePattern, match, patternRE, ) where import Data.Aeson (FromJSON (..)) import qualified Data.Aeson as J import Data.Foldable (fold) ...
9611190e4704ec63346325047fa4bc633aaab2074865983382b74ff52790bdcf
nixeagle/cl-irc
protocol.lisp
$ Id$ ;;;; $Source$ ;;;; See LICENSE for licensing information. (in-package :irc) ;; ;; Condition ;; (define-condition no-such-reply () ((reply-number :reader reply-number :initarg :reply-number)) (:report (lambda (condition stream) (format stream "No such reply ~A." (reply-number conditi...
null
https://raw.githubusercontent.com/nixeagle/cl-irc/efaea15f2962107ea9b1a2fad5cd9db492b4247b/tags/cl-irc_upstream_version_0_5/protocol.lisp
lisp
$Source$ See LICENSE for licensing information. Condition needed because of the "loop while" in read-message-loop argh. I want to name this quit but that gives me issues with generic functions. need to resolve. Channel User what if the user is not on any channels? IRC Message argh. eval. shoul...
$ Id$ (in-package :irc) (define-condition no-such-reply () ((reply-number :reader reply-number :initarg :reply-number)) (:report (lambda (condition stream) (format stream "No such reply ~A." (reply-number condition))))) Connection (defclass connection () ((user :initarg :user ...
bbda6a9117006e71583efa5cc7d5a184efb3a47b6421d980109c1bde9046f7c0
SoftwareFoundationGroupAtKyotoU/SystemFg
main.ml
open Support.Error open Format open Eval open Typing open Pp let pr = fprintf let rec read_eval_print lexeme env tyenv = pr std_formatter "# @?"; (* @? to flush the output buffer *) flush stdout; let newenv, newtyenv = try let decl = Gtfparser.toplevel Gtflexer.main lexeme in let decl, tye = Ty...
null
https://raw.githubusercontent.com/SoftwareFoundationGroupAtKyotoU/SystemFg/b703ed6b7648e081f9476348787a476ded856141/main.ml
ocaml
@? to flush the output buffer tye is inferred by translation; ty is inferred by typechecking; they should agree Soft errors Fatal errors
open Support.Error open Format open Eval open Typing open Pp let pr = fprintf let rec read_eval_print lexeme env tyenv = flush stdout; let newenv, newtyenv = try let decl = Gtfparser.toplevel Gtflexer.main lexeme in let decl, tye = Typing.FG.translateDecl tyenv (decl tyenv) in let ty = Typin...
58e3a4b684dcd41be669564eee69ccd5241ad3e8e8a44913cfef54e80d295e5b
baskeboler/cljs-karaoke-client
notifications.cljs
(ns cljs-karaoke.notifications (:require [re-frame.core :as rf :include-macros true] [cljs-karaoke.events.notifications :as events] [cljs-karaoke.subs :as s])) (def notification-types #{:info :warning :danger :primary :success}) (defn type-css-class [notification-type] (assert (notification...
null
https://raw.githubusercontent.com/baskeboler/cljs-karaoke-client/bb6512435eaa436d35034886be99213625847ee0/src/main/cljs_karaoke/notifications.cljs
clojure
(ns cljs-karaoke.notifications (:require [re-frame.core :as rf :include-macros true] [cljs-karaoke.events.notifications :as events] [cljs-karaoke.subs :as s])) (def notification-types #{:info :warning :danger :primary :success}) (defn type-css-class [notification-type] (assert (notification...
33bda57f7efd82cbe736535bdf39ebefd41b2057e93b31c1654d6e4d257b1db3
commercialhaskell/rio
Unsafe.hs
-- | Storable @Vector@ unsafe functions. These perform no bounds -- checking, and may cause segmentation faults etc.! Import as: -- > import qualified RIO.Vector . Storable . Unsafe as VS ' module RIO.Vector.Storable.Unsafe ( -- * Accessors -- ** Indexing Data.Vector.Storable.unsafeIndex , Data.Vector....
null
https://raw.githubusercontent.com/commercialhaskell/rio/4eba306d37a60a20f0bed27f40afc23a7c892c40/rio/src/RIO/Vector/Storable/Unsafe.hs
haskell
| Storable @Vector@ unsafe functions. These perform no bounds checking, and may cause segmentation faults etc.! Import as: * Accessors ** Indexing ** Monadic indexing ** Extracting subvectors * Modifying vectors ** Bulk updates ** Accumulations ** Permutations * Conversions ** Mutable vectors * Raw poi...
> import qualified RIO.Vector . Storable . Unsafe as VS ' module RIO.Vector.Storable.Unsafe ( Data.Vector.Storable.unsafeIndex , Data.Vector.Storable.unsafeHead , Data.Vector.Storable.unsafeLast , Data.Vector.Storable.unsafeIndexM , Data.Vector.Storable.unsafeHeadM , Data.Vector.Storable.unsafeLastM ...
b2605fbb4249cedef95cdff4a15ebf48068b0c15ca37cdf4bb3f410843c50e6f
mbutterick/aoc-racket
25.rkt
#lang br (require racket/file rackunit) (match-define (list card-pubkey door-pubkey) '(18356117 5909654)) (define (transform subject-number [break-proc void]) (for/fold ([val 1] [count 0] #:result (cons val count)) ([i (in-naturals)] #:break (break-proc val i)) ...
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2020/25.rkt
racket
#lang br (require racket/file rackunit) (match-define (list card-pubkey door-pubkey) '(18356117 5909654)) (define (transform subject-number [break-proc void]) (for/fold ([val 1] [count 0] #:result (cons val count)) ([i (in-naturals)] #:break (break-proc val i)) ...
6fd77356feccc01c1c6d9004cf2d79805e1c065ef25a6947e82c9e4bbaa344b3
dharrigan/startrek
system.clj
(ns startrek.system {:author "David Harrigan"} (:require [aero.core :refer [read-config]] [clojure.java.io :as io] [clojure.tools.logging :as log] [donut.system :as ds] [startrek.core.aux.thymeleaf.impl :as thymeleaf] [startrek.core.cache.impl :as cache] [startrek.core.config.interface :as conf...
null
https://raw.githubusercontent.com/dharrigan/startrek/a91caa3f504ffea502b79cfd29d0499574aaced6/src/startrek/system.clj
clojure
(ns startrek.system {:author "David Harrigan"} (:require [aero.core :refer [read-config]] [clojure.java.io :as io] [clojure.tools.logging :as log] [donut.system :as ds] [startrek.core.aux.thymeleaf.impl :as thymeleaf] [startrek.core.cache.impl :as cache] [startrek.core.config.interface :as conf...
49473007c50c3c951936c8cb63a820b12aa7eea6d0bc17bad799ae1a683844eb
yuriy-chumak/ol
char.scm
(define-library (scheme char) (export digit-value char-ci=? char-ci<? char-ci>? char-ci<=? char-ci>=? char-upcase ;; char-foldcase char-alphabetic? char-numeric? char-whitespace? ;; char-upper-case? ;; char-lower-case? ;; ...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/7df9675459efab70266ae15786eaf99853d6c48c/libraries/scheme/char.scm
scheme
char-foldcase char-upper-case? char-lower-case? digit-value string-downcase string-foldcase string-upcase str str → bool str str → bool str str → bool str str → bool str str → bool unicode symbols any unicode char is an alphabetic * internal staff large table 'char => uppercase char...
(define-library (scheme char) (export digit-value char-ci=? char-ci<? char-ci>? char-ci<=? char-ci>=? char-upcase char-alphabetic? char-numeric? char-whitespace? ) (import (scheme base) (owl list) (srfi 1) (owl l...
b0627a14e96b0fecdcb3439515413dba83e8f23b74f9cf39301a300f741264bb
janestreet/core
import.ml
open! Core include Expect_test_helpers_core module Test_container = Base_test_helpers.Test_container module Variant = Variantslib.Variant let () = Sexp.of_int_style := `Underscores
null
https://raw.githubusercontent.com/janestreet/core/4b6635d206f7adcfac8324820d246299d6f572fe/core/test/import.ml
ocaml
open! Core include Expect_test_helpers_core module Test_container = Base_test_helpers.Test_container module Variant = Variantslib.Variant let () = Sexp.of_int_style := `Underscores
5d41be7ee8e0f0a0cc6025d816e228dc03002755fd18cdf63f98417d5f13be83
mfoemmel/erlang-otp
os_mon_sysinfo.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 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/os_mon/src/os_mon_sysinfo.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 1997 - 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 " -module(os_mon_sysinfo). -behaviour(gen_ser...
04d595d606d3a6f66c2170695c3248e7ecb4095448eae29c6a411a65945d0d17
OlivierSohn/hamazed
Main.hs
# LANGUAGE TypeFamilies # # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # # LANGUAGE GeneralizedNewtypeDeriving # module Main where import Data.Bool(bool) import Control.DeepSeq(NFData) import Data.Attoparsec.Text(skipSpace, atEnd, takeText) import q...
null
https://raw.githubusercontent.com/OlivierSohn/hamazed/c0df1bb60a8538ac75e413d2f5bf0bf050e5bc37/imj-game-tutorial-increment/app/Main.hs
haskell
# LANGUAGE OverloadedStrings # 'Proxy' is used to "tell" the type system what is the type of game: | This implements the client-side logic of the game | This represents events generated by the server, sent to the clients. | This represents events generated by the client and sent to the server. | A custom command h...
# LANGUAGE TypeFamilies # # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE GeneralizedNewtypeDeriving # module Main where import Data.Bool(bool) import Control.DeepSeq(NFData) import Data.Attoparsec.Text(skipSpace, atEnd, takeText) import qualified Data.Map.Strict as Map imp...
63676aa1baebef1e790a5185378dab30d091ff0dbe1c37c17553cade1b795c74
8c6794b6/guile-tjit
coop-server.scm
Cooperative REPL server Copyright ( C ) 2014 Free Software Foundation , Inc. ;; 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 3 of the License , or ( at your opti...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/system/repl/coop-server.scm
scheme
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library 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 ...
Cooperative REPL server Copyright ( C ) 2014 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA (define-m...
8a0b9c190fc1a818ef8264c90fe811a13ae9983684ef5c16d3a87b16f1de67b8
ygrek/ocaml-extlib
pMap.mli
* PMap - Polymorphic maps * Copyright ( C ) 1996 - 2003 , , * * 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.1 of the License , or ( at yo...
null
https://raw.githubusercontent.com/ygrek/ocaml-extlib/69b77f0f0500c98371aea9a6f2abb56c946cdab0/src/pMap.mli
ocaml
* Polymorphic Map. This is a polymorphic map, similar to standard library [Map] module but in a defunctorized style. * The empty map, using [compare] as key comparison function. * returns true if the map is empty. * creates a new empty map, using the provided function for key comparison. * [add x y m] returns a...
* PMap - Polymorphic maps * Copyright ( C ) 1996 - 2003 , , * * 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.1 of the License , or ( at yo...
64ea99ef93f2737bf6eaf73e92eba8b080529cbe877cf5cdf9b9870e2e4b38ac
scarvalhojr/haskellbook
stringproc.hs
import Data.Char (toLower) notThe :: String -> Maybe String notThe "the" = Nothing notThe s = Just s replaceThe :: String -> String replaceThe = unwords . map replace . words where replace w = case notThe w of Nothing -> "a" Just w' -> w' countTheBeforeVowel :: String -> I...
null
https://raw.githubusercontent.com/scarvalhojr/haskellbook/6016a5a78da3fc4a29f5ea68b239563895c448d5/chapter12/stringproc.hs
haskell
import Data.Char (toLower) notThe :: String -> Maybe String notThe "the" = Nothing notThe s = Just s replaceThe :: String -> String replaceThe = unwords . map replace . words where replace w = case notThe w of Nothing -> "a" Just w' -> w' countTheBeforeVowel :: String -> I...
1a5f1ba0d2d1e455bf91449567b2d684e5155680b48abfb6d80c78bfb534ecb9
timothypratley/leaderboardx
schema.cljs
(ns algopop.leaderboardx.app.views.schema (:require [algopop.leaderboardx.app.views.common :as common] [algopop.leaderboardx.app.firebase :as firebase])) (defn schema-view [] [firebase/on ["schema"] (fn [schema r] [:div [common/entity-editor "Schema" @schema :a :b (fn add-at...
null
https://raw.githubusercontent.com/timothypratley/leaderboardx/ad1719b3bb49fb7ab495ed833f1a451ebb3aec4d/src/algopop/leaderboardx/app/views/schema.cljs
clojure
(ns algopop.leaderboardx.app.views.schema (:require [algopop.leaderboardx.app.views.common :as common] [algopop.leaderboardx.app.firebase :as firebase])) (defn schema-view [] [firebase/on ["schema"] (fn [schema r] [:div [common/entity-editor "Schema" @schema :a :b (fn add-at...
c718ccc6c8323f6dfa5d803edcc8dbf2eeb0d3cda3196424a303b0153f3fecb1
shimmering-void/fxhash-digital-city
fxhash.cljs
(ns starter.fxhash (:require [quil.core :as q])) (defn fx-hash [] (.-fxhash js/window)) (defn fx-rand [] (.fxrand js/window)) (defn register-features [features] (set! js/window.$fxhashFeatures (clj->js features)))
null
https://raw.githubusercontent.com/shimmering-void/fxhash-digital-city/67671e48017a8031dc8c009f0917e22ea04cdbec/src/starter/fxhash.cljs
clojure
(ns starter.fxhash (:require [quil.core :as q])) (defn fx-hash [] (.-fxhash js/window)) (defn fx-rand [] (.fxrand js/window)) (defn register-features [features] (set! js/window.$fxhashFeatures (clj->js features)))
5b340e2d138a2eabb348f891e088bc87708895a6fe1efdd9591542949c21ca0f
SonarQubeCommunity/sonar-erlang
erlcount_eunit.erl
-module(erlcount_eunit). -include_lib("eunit/include/eunit.hrl"). -ifndef(TESTDIR). %% Assumes we're running from the app's directory. We want to target the %% 'learn-you-some-erlang' directory. -define(TESTDIR, ".."). -endif. %% NOTE: %% Because we do not want the tests to be bound to a specific snapshot in time %% o...
null
https://raw.githubusercontent.com/SonarQubeCommunity/sonar-erlang/279eb7ccd84787c1c0cfd34b9a07981eb20183e3/its/plugin/projects/tests_coverage/test/erlcount_eunit.erl
erlang
Assumes we're running from the app's directory. We want to target the 'learn-you-some-erlang' directory. NOTE: Because we do not want the tests to be bound to a specific snapshot in time of our app, we will instead compare it to an oracle built with unix commands. Users running windows sadly won't be able to run ...
-module(erlcount_eunit). -include_lib("eunit/include/eunit.hrl"). -ifndef(TESTDIR). -define(TESTDIR, ".."). -endif. find_erl_test_() -> ?_assertEqual(lists:sort(string:tokens(os:cmd("find "++?TESTDIR++" -name *.erl"), "\n")), lists:sort(build_list(erlcount_lib:find_erl(?TESTDIR)))). build_list(Term) -> b...
7e37d7627e872275b346a2f65cbf028f1ed0c312cfe04098e09c209cfa067e10
openmusic-project/OMChroma
test_gen-model-data.lisp
(in-package :om) ;ms_1109 "Process a list of values by sequentially applying all the functions in fun-list to each value, with the arguments dynamically computed according to the rules specified in arg-list. The first argument of each function is each element of the list. The other arguments depend on the function. NB...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/om6/cr-models/Tests/test_gen-model-data.lisp
lisp
ms_1109 the intermediate values will be computer via interpolation tests interpolation transpose eles by xp test, eliminate null results : verbose t )
(in-package :om) "Process a list of values by sequentially applying all the functions in fun-list to each value, with the arguments dynamically computed according to the rules specified in arg-list. The first argument of each function is each element of the list. The other arguments depend on the function. NB: the fun...
bb80f4b30a32765caec96680a0fb1799bbdd87eca31d35a16c2bb097b4fde403
OCamlPro/typerex-lint
ppx_mapper.ml
(***********************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/OCamlPro/typerex-lint/6d9e994c8278fb65e1f7de91d74876531691120c/libs/ocplib-ppx/ppx_mapper.ml
ocaml
********************************************************************* OCaml ...
, LexiFi Copyright 2012 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . A generic Parsetree mapping class [...
66085e01eb2d3edec06fcb1b0e734ce8466ff94d7f72d06fec6329045837a735
why-not-try-calmer/feedo
Parsing.hs
# LANGUAGE DataKinds # module Parsing (eitherUrlScheme, rebuildFeed, getFeedFromUrlScheme, parseSettings) where import Control.Exception import Control.Monad.IO.Class import Data.Foldable (foldl') import Data.Maybe (fromMaybe) import qualified Data.Set as S import qualified Data.Text as T import Data.Time import Netw...
null
https://raw.githubusercontent.com/why-not-try-calmer/feedo/61e0563fc456e8445d832d3eb655b25ecce0522e/src/Parsing.hs
haskell
Feeds, Items tries parsing bytes into a Feed tries as Atom if Rss fails tries to make a valid Url Scheme from the given string Settings
# LANGUAGE DataKinds # module Parsing (eitherUrlScheme, rebuildFeed, getFeedFromUrlScheme, parseSettings) where import Control.Exception import Control.Monad.IO.Class import Data.Foldable (foldl') import Data.Maybe (fromMaybe) import qualified Data.Set as S import qualified Data.Text as T import Data.Time import Netw...
bc097de5ddb29e4f2dd87163cd1f670af7c47967f88e24a313f427bcc66d8160
crategus/cl-cffi-gtk
gdk.init.lisp
;;; ---------------------------------------------------------------------------- ;;; gdk.init.lisp ;;; Copyright ( C ) 2009 - 2011 Copyright ( C ) 2011 - 2019 ;;; ;;; This program is free software: you can redistribute it and/or modify ;;; it under the terms of the GNU Lesser General Public License for Lisp a...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/gdk/gdk.init.lisp
lisp
---------------------------------------------------------------------------- gdk.init.lisp This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License for Lisp License, or (at your option) any later version and with a preamble to with Lisp pro...
Copyright ( C ) 2009 - 2011 Copyright ( C ) 2011 - 2019 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that clarifies the terms for use GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser Gen...
ba66024ab38a265b963ec9dca362d13716aa9b0126a8cd340341abfae5702658
Frama-C/Frama-C-snapshot
jbuffer.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/server/jbuffer.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
925a63bd9b7409400b742da9139f90d61675781eb1ffaa51148a28cef6c3be93
heyoka/dfs
estr.erl
-module(estr). -ifdef(EUNIT). -include_lib("eunit/include/eunit.hrl"). -endif. -export([ new/1 , str_at/2 , str_capitalize/1 , str_chunk/2 , str_codepoints/1 , str_contains/2 , str_downcase/1 , str_ends_with/2 , str_ends_with_any/2 , str_eqi/2 , str_first/1 , str_last/1 ...
null
https://raw.githubusercontent.com/heyoka/dfs/ad9e4abb857bd5535b37db1ec7acd7e2323bb105/src/estr.erl
erlang
ADDITIONAL FUNCTIONS - homemade syntactic sugar @doc Compares strings case insensitively PRIVATE HELPER FUNS @doc Returns the grapheme in the position of the given utf8 string. If position is greater than string length, then it returns undefined Negative offsets count back from the end of the string. The sup...
-module(estr). -ifdef(EUNIT). -include_lib("eunit/include/eunit.hrl"). -endif. -export([ new/1 , str_at/2 , str_capitalize/1 , str_chunk/2 , str_codepoints/1 , str_contains/2 , str_downcase/1 , str_ends_with/2 , str_ends_with_any/2 , str_eqi/2 , str_first/1 , str_last/1 ...
8b836134547fbfe157aece3e5129de1b5c99467b6a1e77dd5b67b00a739493ab
incoherentsoftware/defect-process
MarkRecallSkill.hs
module Player.SecondarySkill.All.MarkRecallSkill ( mkMarkRecallSkill ) where import Control.Monad.IO.Class (MonadIO) import Data.Maybe (isNothing) import Attack import Attack.Projectile import Configs import Configs.All.PlayerSkill import Configs.All.PlayerSkill.MarkRecall import Constants import ...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Player/SecondarySkill/All/MarkRecallSkill.hs
haskell
module Player.SecondarySkill.All.MarkRecallSkill ( mkMarkRecallSkill ) where import Control.Monad.IO.Class (MonadIO) import Data.Maybe (isNothing) import Attack import Attack.Projectile import Configs import Configs.All.PlayerSkill import Configs.All.PlayerSkill.MarkRecall import Constants import ...
1c76df546a2a13d811d492ce85ab4dda4c4e48bbcbbf033ed3cc9922fc9252bc
jmgimeno/okasaki-clojure
red_black_tree.clj
(ns okasaki.red-black-tree (:use datatype.core)) (defdatatype ::Color Red Black) (defdatatype ::Red-Black-Tree Empty (Node color left root right)) (defun member ;;[elem tree] [_ Empty] false [x [Node _ a y b]] (cond (< x y) (recur x a) (> x y) (rec...
null
https://raw.githubusercontent.com/jmgimeno/okasaki-clojure/f3e8031d490f5505b74f4a7593f0f9e2e5fe79f3/src/okasaki/red_black_tree.clj
clojure
[elem tree]
(ns okasaki.red-black-tree (:use datatype.core)) (defdatatype ::Color Red Black) (defdatatype ::Red-Black-Tree Empty (Node color left root right)) (defun member [_ Empty] false [x [Node _ a y b]] (cond (< x y) (recur x a) (> x y) (recur x b) ...
ce7aaa90a7dcd96db609933645a278de14aff32eab6dbc89b71b2a5d52ae711f
BU-CS320/Fall-2018
AnnoyingLists.hs
module AnnoyingLists(AnnoyingList(), fromList, AnnoyingLists.map, AnnoyingLists.foldr, AnnoyingLists.filter, cons) where -- DO NOT EDIT THIS FILE data AnnoyingList a = Annoying [a] deriving Show fromList :: [a] -> AnnoyingList a fromList x = Annoying x cons :: a -> AnnoyingList a -> AnnoyingList a c...
null
https://raw.githubusercontent.com/BU-CS320/Fall-2018/beec3ca88be5c5a62271a45c8053fb1b092e0af1/assignments/week4/hw/src/AnnoyingLists.hs
haskell
DO NOT EDIT THIS FILE
data AnnoyingList a = Annoying [a] deriving Show fromList :: [a] -> AnnoyingList a fromList x = Annoying x cons :: a -> AnnoyingList a -> AnnoyingList a cons a (Annoying x) = Annoying (a : x) map :: (a->b) -> AnnoyingList a -> AnnoyingList b map f (Annoying x) = Annoying $ Prelude.map f x fol...
b1167f3893ff46576fc5b623d015d275bbf08433006b03f16cf71669462a0a1f
spawnfest/eep49ers
shell_docs_prop.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2020 . 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 of the License at %% %% -2.0 %% %% Unless required by applicable law ...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/stdlib/test/property_test/shell_docs_prop.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2020 . 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(shell_docs_prop). -export([prop_render/0]). -include_lib("common_test/include/ct_property_test.hrl"). -include_lib(...
7451f9cdd74966b79a73a2bebc3a66a205a59e99df7e047c79d8e418afdca7eb
hiposfer/hive
symbols.cljs
(ns hive.screens.symbols (:require [react-native :as React] [expo :as Expo] [hive.state.core :as state] [hive.state.queries :as queries] [hive.utils.geometry :as geometry])) (defn PointOfInterest "Components for displaying location related items. Usually used inside ...
null
https://raw.githubusercontent.com/hiposfer/hive/f17a5a1d0e17f719487d5b7375aefd8dc07f64e1/src/hive/screens/symbols.cljs
clojure
(ns hive.screens.symbols (:require [react-native :as React] [expo :as Expo] [hive.state.core :as state] [hive.state.queries :as queries] [hive.utils.geometry :as geometry])) (defn PointOfInterest "Components for displaying location related items. Usually used inside ...
46e28588a52f847621a69afc554a15eb04f141d96c809ef9f9433cc537c7c924
dbuenzli/tgls
capi.mli
--------------------------------------------------------------------------- Copyright ( c ) 2013 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/tgls/58bf47d393da00f24fa8e58521ddb9e3afb08d1d/support/capi.mli
ocaml
* The type for version numbers. * The type for API identifiers. * [id_of_string s] is an API identifier extracted from [s]. * The type for a C API. * [create registry id profile] is the C API [id] with profile [profile] as defined in [registry] ([profile] is ignored if unapplicable). * [id api] is the iden...
--------------------------------------------------------------------------- Copyright ( c ) 2013 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
0854e48c311dc87dded877301ebe5d05814d2691778a2dd709d8b98ca067f531
BillHallahan/G2
UFMapTests.hs
module UFMapTests where import G2.Data.UFMap import Data.Hashable import qualified Data.List as L import Data.Maybe as M import Test.Tasty import Test.Tasty.QuickCheck import qualified Data.HashMap.Lazy as HM import qualified Data.HashSet as S import Prelude hiding (lookup, map, null) import qualified Prelude as P...
null
https://raw.githubusercontent.com/BillHallahan/G2/507691feb0b42f9d6ce32d5f4468074508dc7dc9/tests/UFMapTests.hs
haskell
module UFMapTests where import G2.Data.UFMap import Data.Hashable import qualified Data.List as L import Data.Maybe as M import Test.Tasty import Test.Tasty.QuickCheck import qualified Data.HashMap.Lazy as HM import qualified Data.HashSet as S import Prelude hiding (lookup, map, null) import qualified Prelude as P...
3cf32a933ab843487ad2a8584f765efc13250793f26fa09650973635e119e3c4
PJK/haskell-pattern-matching
PatternWithParameterVariableMatch.hs
module PatternWithParameterVariableMatch where data MyTrinary = A | B | C extract :: Maybe MyTritary -> Maybe MyTritary -> MyTrinary extract (Just C) (Just A) = A extract (Just x) y = B -- This should catch Just A, Just B, _ extract Nothing x = B partialExtract :: Maybe MyTritary -> Maybe MyTritary -...
null
https://raw.githubusercontent.com/PJK/haskell-pattern-matching/7ef4a45731beba92ee01614ae563df65be36e8ba/data/exact/PatternWithParameterVariableMatch.hs
haskell
This should catch Just A, Just B, _ This should catch Just A, Just B, _
module PatternWithParameterVariableMatch where data MyTrinary = A | B | C extract :: Maybe MyTritary -> Maybe MyTritary -> MyTrinary extract (Just C) (Just A) = A extract Nothing x = B partialExtract :: Maybe MyTritary -> Maybe MyTritary -> MyTrinary partialExtract (Just C) (Just A) = A partialExtract Noth...
ad1ffb5230bd821fff6e7caf88d0b783edc26d6290f16fbc70fe040f7130eb71
camfort/camfort
EquivalenceElim.hs
Copyright 2016 , , , , 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 distribute...
null
https://raw.githubusercontent.com/camfort/camfort/861646ae5af61a41d1519049cfeda60ac82f3d98/src/Camfort/Transformation/EquivalenceElim.hs
haskell
# LANGUAGE OverloadedStrings # initialise analysis calculate types Remove equivalences and add appropriate copy statements Lastly deadcode eliminate any redundant copy statements generated by the refactoring (but don't dead code elim existing code) Find all variables/cells that are equivalent to the target of t...
Copyright 2016 , , , , 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 distribute...
d73b0537732a8ef4c93012bf7e983768fc276cc2cefd230e5b402b7832e1f6be
bsansouci/bsb-native
aa.ml
(***********************************************************************) (* *) (* ocamlbuild *) (* *) , , projet Galliu...
null
https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/ocamlbuild/test/test7/aa.ml
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . let aa = "aa"
bc3036348f40df442ea81a14bc7625c7191b91b557f4c5658df95ec6ab0d13c5
eugeneia/erlangen
message-benchmark.lisp
;;;; message-benchmark: basic message benchmark. (require :asdf) (asdf:load-system :erlangen) (defun message-benchmark () (when (intersection *command-line-argument-list* '("-h" "-help" "--help") :test 'string=) (princ "Usage: erlangen-message-benchmark [n-messages] ...
null
https://raw.githubusercontent.com/eugeneia/erlangen/204166b33833c49841617bbc6ecfaf4dd77cf6d8/build/message-benchmark.lisp
lisp
message-benchmark: basic message benchmark.
(require :asdf) (asdf:load-system :erlangen) (defun message-benchmark () (when (intersection *command-line-argument-list* '("-h" "-help" "--help") :test 'string=) (princ "Usage: erlangen-message-benchmark [n-messages] [n-pairs] [timeout] erlangen-message-bench...
7abef863545d0d60c4d217d17c0db52af579a7bdfccec72a6f3bdd33bd33f48d
f-o-a-m/kepler
Client.hs
module Network.Tendermint.Client ( module Network.Tendermint.Client * , RPC.Config(..) , RPC.JsonRpcException(..) , RPC.RpcError(..) ) where import Control.Concurrent (forkIO, killThread) import C...
null
https://raw.githubusercontent.com/f-o-a-m/kepler/6c1ad7f37683f509c2f1660e3561062307d3056b/hs-tendermint-client/src/Network/Tendermint/Client.hs
haskell
| Execute an RPC request with the given configuration. ^ Port ^ TLS True/False ------------------------------------------------------------------------------ ABCI Query ------------------------------------------------------------------------------ | invokes [/abci_query](/#abciquery) rpc call #L56 #L56 #L193 --...
module Network.Tendermint.Client ( module Network.Tendermint.Client * , RPC.Config(..) , RPC.JsonRpcException(..) , RPC.RpcError(..) ) where import Control.Concurrent (forkIO, killThread) import C...
dc578f05eb0963062e44629d6ebb0713ffb5a4e8ee41af0519efb02e74a51b10
reactiveml/rml
initialization.ml
(**********************************************************************) (* *) (* ReactiveML *) (* *) (* ...
null
https://raw.githubusercontent.com/reactiveml/rml/d3ac141bd9c6e3333b678716166d988ce04b5c80/compiler/global/initialization.ml
ocaml
******************************************************************** ReactiveML ...
Copyright 2002 , 2007 . All rights reserved . version 1.0 . - theme SPI , Laboratoire d'Informatique de Paris 6 ( 2002 - 2005 ) - Verimag , CNRS Grenoble ( 2005 - 2006 ) - projet , ( 2006 - 2007 ) ...
3912e218e85831c429fe01765851f0e29dfacdb9ed41163c6322f4bafadc1171
arsenm/Clutterhs
RectangleTest.hs
--A simple test of everyone's favorite actor import Prelude import qualified Prelude as P import Graphics.UI.Clutter import System.Glib.Signals import System.Glib.Attributes import Control.Monad import Control.Monad.Trans (liftIO) import System.IO import Data.Maybe main = do clutterInit stg <- stageGetDefault ...
null
https://raw.githubusercontent.com/arsenm/Clutterhs/ad3390895264c46906b5d3d954c4b04b04d96b1d/clutter/demo/RectangleTest.hs
haskell
A simple test of everyone's favorite actor Damage needs to happen to see the border change
import Prelude import qualified Prelude as P import Graphics.UI.Clutter import System.Glib.Signals import System.Glib.Attributes import Control.Monad import Control.Monad.Trans (liftIO) import System.IO import Data.Maybe main = do clutterInit stg <- stageGetDefault rec1 <- rectangleNew rec2 <- rectangleNewW...
37827954f1567f4a57448d648a6bd5e2adb2944c9231329b55e432aee033e678
HugoPeters1024/hs-sleuth
ElmDerivingUtils.hs
# LANGUAGE KindSignatures # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} module HsComprehen...
null
https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/fe5d7425bd84b1c11c66187b65de5ab984e91440/plugin/lib/HsComprehension/ElmDerivingUtils.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs # ----------------------------------------------------------------------------- A type to derive via, which should typically only be defined once per project. Extra case for triples
# LANGUAGE KindSignatures # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # module HsComprehension.ElmDerivingUtils where import Data.Proxy import Data...
3f1e42634343ff506ab110a005075fd72768eee047bd578cc3e0d3ab4b253682
zkat/cl-devil
utilities.lisp
(in-package :cl-devil) ;;; XXX I don't like the potential confusion between WITH-BOUND-IMAGE and WITH - IMAGES , but WITH - NEW - IMAGES and WITH - LOADED - IMAGES all ;;; give the wrong impression, alas. (defmacro with-images ((&rest images) &body body) "Generates an IL image for each of IMAGES, binding and loadi...
null
https://raw.githubusercontent.com/zkat/cl-devil/0e326c6c911299883852ebf2e33d48f8680f995d/utilities.lisp
lisp
XXX I don't like the potential confusion between WITH-BOUND-IMAGE give the wrong impression, alas.
(in-package :cl-devil) and WITH - IMAGES , but WITH - NEW - IMAGES and WITH - LOADED - IMAGES all (defmacro with-images ((&rest images) &body body) "Generates an IL image for each of IMAGES, binding and loading if a parameter is supplied. BODY is executed, and the images are freed thereafter." (flet ((args-help...
b8c7f70a6f852ad0f4c0d56267515735973ae63eb4fdc4cc36534622ade947d7
pixlsus/registry.gimp.org_static
AdjustGifMovie.scm
(script-fu-register "AdjustGifMovie" "AdjustGifMovie" "Adjust Size and Speed of Gif Movie" "Don Sauer " "public domain" "3.8.12_11.12AM" "" SF-FILENAME "SF-FILENAME" ...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/AdjustGifMovie.scm
scheme
======= find out how many layers ======= all the layers need to be renamed adding (replace) ======= get dimension of the image ======= change the file name ======= save gif movie
(script-fu-register "AdjustGifMovie" "AdjustGifMovie" "Adjust Size and Speed of Gif Movie" "Don Sauer " "public domain" "3.8.12_11.12AM" "" SF-FILENAME "SF-FILENAME" ...
9a2293d17d07c604fdc7006fd7ec9b2ce65bc9ff27242d19d466b8b80c9c361e
silentsignal/DirBustErl
url_tools_tests.erl
-module(url_tools_tests). -include_lib("eunit/include/eunit.hrl"). -define(RFC_1808_BASE, ";p?q#f"). urljoin_test() -> ?assertEqual( url_tools:urljoin("", ""), ""), ?assertEqual( url_tools:urljoin("", ""), ""), ?assertEqual( url_tools:urljoin("/", "../baz"), ""), ?assertEqual( url_tool...
null
https://raw.githubusercontent.com/silentsignal/DirBustErl/bbdfdebb93241036500794e7055aae45a7ac9514/src/url_tools_tests.erl
erlang
-module(url_tools_tests). -include_lib("eunit/include/eunit.hrl"). -define(RFC_1808_BASE, ";p?q#f"). urljoin_test() -> ?assertEqual( url_tools:urljoin("", ""), ""), ?assertEqual( url_tools:urljoin("", ""), ""), ?assertEqual( url_tools:urljoin("/", "../baz"), ""), ?assertEqual( url_tool...
4a8e488ef450dde52559a207ddcb53dafd0ec44f4072a80fba3508e3d0e32319
brendanhay/amazonka
CustomRequestHandling.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived fr...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-wafv2/gen/Amazonka/WAFV2/Types/CustomRequestHandling.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WAFV2.Types.CustomRequestHandling Stability : auto-generated | Custom request handling behavior that inserts custom headers into a web For information about customizing web requests and responses, see <-custom-request-response.html...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . Co...
bfcbdb34dd557ddaeca724696726dd73dc2ddd5ac3ef6c872c2e87376b6c2d1c
3b/cl-opencl-3b
opencl.lisp
(in-package #:cl-opencl) ;; todo: organize these better? 4.3 contexts (defmacro check-errcode-arg (form) (let ((error-code (gensym)) (ret (gensym))) `(with-foreign-object (,error-code '%cl::error-code) (let ((,ret (,@form ,error-code))) (setf ,error-code (mem-aref ,error-code '%cl::er...
null
https://raw.githubusercontent.com/3b/cl-opencl-3b/b40781e3d049d59ce3bba02ec6e55be708996d53/opencl.lisp
lisp
todo: organize these better? step before list so FINALLY sees correct values todo: error callback, better handling of properties stuff properties arg is ugly since it mixes pointers with enums should this &allow-other-keys, or drop keys completely rather than enumerating? let ((properties nil)) (when platform ...
(in-package #:cl-opencl) 4.3 contexts (defmacro check-errcode-arg (form) (let ((error-code (gensym)) (ret (gensym))) `(with-foreign-object (,error-code '%cl::error-code) (let ((,ret (,@form ,error-code))) (setf ,error-code (mem-aref ,error-code '%cl::error-code)) (if (eq :suc...
d251abf3cf080239bf71bfab9bca08cd60ad208a4951d1c1ff9ff341a0fd5a94
andreypopp/type-systems
main.ml
open Base let () = let env = let assume name ty env = Algo_w.Infer.Env.add env name (Algo_w.parse_ty ty) in let assume_typeclass qp env = let qp = Algo_w.parse_qual_pred qp in Algo_w.Infer.Env.add_typeclass env qp in let assume_instance qp witness env = let qp = Algo_w.par...
null
https://raw.githubusercontent.com/andreypopp/type-systems/9be1fc78b441f5c2ccf0302993a2b9f08bc16fc2/algo_w/bin/main.ml
ocaml
Show Read Eq Ord Lists
open Base let () = let env = let assume name ty env = Algo_w.Infer.Env.add env name (Algo_w.parse_ty ty) in let assume_typeclass qp env = let qp = Algo_w.parse_qual_pred qp in Algo_w.Infer.Env.add_typeclass env qp in let assume_instance qp witness env = let qp = Algo_w.par...
c534e0571c2dd0ebe4d418088c6401a934a3d84b2e3401709759364a5d934afb
Cantido/clj-bittorrent
blocks.clj
(ns clj-bittorrent.pieces.blocks "Assemble blocks of data into larger blocks." (:require [clojure.set :as s] [schema.core :as schema] [clj-bittorrent.math.binary :as bin] [clj-bittorrent.math.numbers :as n])) (defn- keys= "Compare a's and b's value for key k." ([k x] true) ...
null
https://raw.githubusercontent.com/Cantido/clj-bittorrent/5fea93e318f9d07e4bbee6aced12e10ae0f46f2a/src/clj_bittorrent/pieces/blocks.clj
clojure
(ns clj-bittorrent.pieces.blocks "Assemble blocks of data into larger blocks." (:require [clojure.set :as s] [schema.core :as schema] [clj-bittorrent.math.binary :as bin] [clj-bittorrent.math.numbers :as n])) (defn- keys= "Compare a's and b's value for key k." ([k x] true) ...
ec7480d7832c57d046aab84e2fc54ee43c5972eafb1c523518b84aa6d262fc1a
racket/plai
fake-collector2.rkt
#lang scheme (provide (all-defined-out)) (define init-allocator #f) (define gc:deref #f) (define gc:alloc-flat #f) (define gc:cons #f) (define gc:first #f) (define gc:rest #f) (define gc:set-first! #f) (define gc:set-rest! #f) (define gc:cons? #f) (define gc:flat? #f) (define gc:closure #f) (define gc:closure-code-ptr...
null
https://raw.githubusercontent.com/racket/plai/164f3b763116fcfa7bd827be511650e71fa04319/plai-doc/scribblings/fake-collector2.rkt
racket
#lang scheme (provide (all-defined-out)) (define init-allocator #f) (define gc:deref #f) (define gc:alloc-flat #f) (define gc:cons #f) (define gc:first #f) (define gc:rest #f) (define gc:set-first! #f) (define gc:set-rest! #f) (define gc:cons? #f) (define gc:flat? #f) (define gc:closure #f) (define gc:closure-code-ptr...
344d4f47bcc28cccb8cf53795cefd6ba6586b3e4bfb8c57d13bb483b0921824c
aria42/infer
matrix_factorization.clj
(ns infer.matrix-factorization {:doc "Non-negative matrix factorization routines. Currently only the classical Lee-Seung multiplicative update is available. Should respect sparsity of matrix if present. TODO: Alternating Least Squares" :author "Aria Haghighi ()"} (:use [infer.m...
null
https://raw.githubusercontent.com/aria42/infer/9849325a27770794b91415592a8706fd90777469/src/infer/matrix_factorization.clj
clojure
------------------------------------------------------- ------------------------------------------------------- X (Y Y') is faster than (X Y) Y' -------------------------------------------------------- Main Method --------------------------------------------------------
(ns infer.matrix-factorization {:doc "Non-negative matrix factorization routines. Currently only the classical Lee-Seung multiplicative update is available. Should respect sparsity of matrix if present. TODO: Alternating Least Squares" :author "Aria Haghighi ()"} (:use [infer.m...
032898ce5baa14c84c25b18dd501e04077f03a4fc280bb8d75acbcef4bd2f1ad
rob7hunter/lawnelephant
settings-prod.scm
(require (planet "settings.scm" ("vegashacker" "leftparen.plt" 5 (= 1)))) (setting-set! *PORT* 1123) ;; use #f if you want to listen to all incoming IPs: (setting-set! *LISTEN_IP* #f) (setting-set! *WEB_APP_URL* "/") (setting-set! *PATH_TO_DATA* "/home/rob/le-prod-code/prod-data")
null
https://raw.githubusercontent.com/rob7hunter/lawnelephant/9d3fdec5568e8f7a2165009debfd7a7075e750b3/settings-prod.scm
scheme
use #f if you want to listen to all incoming IPs:
(require (planet "settings.scm" ("vegashacker" "leftparen.plt" 5 (= 1)))) (setting-set! *PORT* 1123) (setting-set! *LISTEN_IP* #f) (setting-set! *WEB_APP_URL* "/") (setting-set! *PATH_TO_DATA* "/home/rob/le-prod-code/prod-data")
c74574f5a692287b4b94df1a2568e39874956596cd62bb99cd54bd6f68cea621
athos/JiSE
aobench.clj
(ns example.aobench (:gen-class) (:require [jise.core :refer [defclass]]) (:import [java.io FileOutputStream] [java.util Random])) ^:public (defclass Vec ^:public ^double (def x) ^:public ^double (def y) ^:public ^double (def z) ^:public (defm Vec [] (this 0.0 0.0 0.0)) ^:public (d...
null
https://raw.githubusercontent.com/athos/JiSE/b487947d8c367c12c284586c6e11aaeddb4132f5/examples/example/aobench.clj
clojure
(ns example.aobench (:gen-class) (:require [jise.core :refer [defclass]]) (:import [java.io FileOutputStream] [java.util Random])) ^:public (defclass Vec ^:public ^double (def x) ^:public ^double (def y) ^:public ^double (def z) ^:public (defm Vec [] (this 0.0 0.0 0.0)) ^:public (d...
da379df648dfa026430a17665f4e9b72d164860ec346660c25511b51d432d0bf
seckcoder/iu_c311
lazy.rkt
#lang racket (require racket/promise) (provide (all-defined-out)) ;; There is a problem with the library. ;; For the following demo: ;; (s:map (lambda (s) ;; s) ;; (s:take n lazy-stream)) ;; if lazy-stream is infinite, then it will cause ;; infinite loop. The problem here is that map ;; 's arguments...
null
https://raw.githubusercontent.com/seckcoder/iu_c311/a1215983b6ab08df32058ef1e089cb294419e567/racket/lazy.rkt
racket
There is a problem with the library. For the following demo: (s:map (lambda (s) s) (s:take n lazy-stream)) if lazy-stream is infinite, then it will cause infinite loop. The problem here is that map 's arguments are not stricly lazy. They will be evaluated. this version works even when s1 is i...
#lang racket (require racket/promise) (provide (all-defined-out)) (define-syntax s:cons (syntax-rules () [(_ a d) (cons a (delay d))])) (define s:car car) (define s:null? null?) (define s:list? list?) (define s:pair? pair?) (define (s:cdr l) (force (cdr l))) (define-syntax s:list (syntax-...
24797dc26735bfaa6da103a32218ba5a0cc32fab1ff9ee3d18a3587b4fedf53a
tarides/ocaml-platform-installer
sandbox_switch.mli
open Import type t val install : Opam.GlobalOpts.t -> t -> pkg:string * string -> (unit, 'e) Result.or_msg val list_files : Opam.GlobalOpts.t -> t -> pkg:string -> (Fpath.t list, 'e) Result.or_msg val switch_path_prefix : t -> Fpath.t val with_sandbox_switch : Opam.GlobalOpts.t -> ocaml_version:string -> ...
null
https://raw.githubusercontent.com/tarides/ocaml-platform-installer/45010a98d6600d3a58d858d952f570b1d81f96aa/src/lib/sandbox_switch.mli
ocaml
open Import type t val install : Opam.GlobalOpts.t -> t -> pkg:string * string -> (unit, 'e) Result.or_msg val list_files : Opam.GlobalOpts.t -> t -> pkg:string -> (Fpath.t list, 'e) Result.or_msg val switch_path_prefix : t -> Fpath.t val with_sandbox_switch : Opam.GlobalOpts.t -> ocaml_version:string -> ...
78d2740c295ca77516ad193afb6a8734569c68d8cd52b5d18b0d2054d7f73b23
froggey/Mezzano
nibbles.lisp
;;; cl-nibbles-style accessors. (in-package :mezzano.internals) (defun %swap-endian-unsigned (value width) (check-type width (integer 0)) (assert (zerop (rem width 8))) (check-type value integer) (let ((result 0)) (dotimes (i (truncate width 8)) (setf result (logior (ash result 8) ...
null
https://raw.githubusercontent.com/froggey/Mezzano/9d34948fee1cfd54875ae909f12b3367a888f3cf/system/numbers/nibbles.lisp
lisp
cl-nibbles-style accessors. Only exists to simplify things for DEFINE-TRANSFORM. Use the compiler transform for simple accesses. Use the compiler transform for simple accesses.
(in-package :mezzano.internals) (defun %swap-endian-unsigned (value width) (check-type width (integer 0)) (assert (zerop (rem width 8))) (check-type value integer) (let ((result 0)) (dotimes (i (truncate width 8)) (setf result (logior (ash result 8) (logand value #xFF))) ...
90a32bb5019733fb6244597c0519e954e9f6f4bcc3ff86a112b0685273f7c565
huangjs/cl
polyrz.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/polyrz.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; PACKAGE FOR F...
(in-package :maxima) (macsyma-module polyrz) (declare-top (special errrjfflag $programmode varlist $ratepsilon $ratprint $factorflag genvar equations $keepfloat $ratfac $rootsepsilon $multiplicities)) (load-macsyma-macros ratmac) WITH INTEGER COEFFICIENTS USING STURM SEQUENCES . (defmfun...
0551e73142508b300caafe0d421f364d3d077df9536565ac4facb16023db1aa5
cark/cark.behavior-tree
on_event.cljc
(ns cark.behavior-tree.node-defs.on-event "Once the :on-event node becomes :running, it will be able to pick an incoming event. When it does, it will execute its child, succeeding or failing according to the child's result. Parameters: - :event : A keyword, or keyword returning context function. The name of the ...
null
https://raw.githubusercontent.com/cark/cark.behavior-tree/4e229fcc2ed3af3c66e74d2c51dda6684927d254/src/main/cark/behavior_tree/node_defs/on_event.cljc
clojure
(ns cark.behavior-tree.node-defs.on-event "Once the :on-event node becomes :running, it will be able to pick an incoming event. When it does, it will execute its child, succeeding or failing according to the child's result. Parameters: - :event : A keyword, or keyword returning context function. The name of the ...
992d16efbf3db916692bd1cad121026abb0381ad5c29a7121748861ae33ef338
fossas/fossa-cli
ReportSpec.hs
module App.Fossa.ReportSpec (spec) where import App.Fossa.Config.Report (ReportConfig (..), ReportOutputFormat (ReportJson), ReportType (..)) import App.Fossa.Report (fetchReport) import Control.Algebra (Has) import Control.Effect.FossaApiClient (FossaApiClientF (..)) import Control.Timeout (Duration (MilliSeconds)) i...
null
https://raw.githubusercontent.com/fossas/fossa-cli/b2d6a6737753513bd1aacbeb48064f7197baf414/test/App/Fossa/ReportSpec.hs
haskell
It needs to fetch the poll delay It needs to fetch the poll delay
module App.Fossa.ReportSpec (spec) where import App.Fossa.Config.Report (ReportConfig (..), ReportOutputFormat (ReportJson), ReportType (..)) import App.Fossa.Report (fetchReport) import Control.Algebra (Has) import Control.Effect.FossaApiClient (FossaApiClientF (..)) import Control.Timeout (Duration (MilliSeconds)) i...
fa1d899038d0898d79a9de567281aa1a53ab45a251f84e88b8822baaf95b067b
simonstl/introducing-erlang-2nd
drop_app.erl
-module(drop_app). -behaviour(application). -export([start/2, stop/1]). start(_Type, _StartArgs) -> drop_sup:start_link(). stop(_State) -> ok.
null
https://raw.githubusercontent.com/simonstl/introducing-erlang-2nd/607e9c85fb767cf5519d331ef6ed549aee51fe61/ch11/ex3-drop-app/drop_app.erl
erlang
-module(drop_app). -behaviour(application). -export([start/2, stop/1]). start(_Type, _StartArgs) -> drop_sup:start_link(). stop(_State) -> ok.
eca9dc215905304aca7e7be1d21b25872270057059647561b6fa15a29bf034fa
janestreet/accessor_base
accessor_either.ml
open! Base open! Import type ('f, 's) t = ('f, 's) Either.t = | First of 'f | Second of 's [@@deriving accessors] let swapped = [%accessor Accessor.isomorphism ~get:Either.swap ~construct:Either.swap] let assocl = function | First a -> First (First a) | Second (First a) -> First (Second a) | Second (Second...
null
https://raw.githubusercontent.com/janestreet/accessor_base/8384c29a37e557168ae8a43b2a5a531f0ffc16e4/src/accessor_either.ml
ocaml
open! Base open! Import type ('f, 's) t = ('f, 's) Either.t = | First of 'f | Second of 's [@@deriving accessors] let swapped = [%accessor Accessor.isomorphism ~get:Either.swap ~construct:Either.swap] let assocl = function | First a -> First (First a) | Second (First a) -> First (Second a) | Second (Second...
14453dae1956d1f364250ddc1b8dcc32e99ae1d546cf442a7557421f431d6770
neel-krishnaswami/adjs
adjsc.ml
open Base type config = { stdlib: string; runtime: string; source: string; target: string; title: string; } let default = { stdlib = ""; runtime = ""; target = "a"; source = ""; title = "" } let process_args argv = let len = Array.length argv in let rec loop i acc = if i < len ...
null
https://raw.githubusercontent.com/neel-krishnaswami/adjs/fc2cee61f7835f9a8bc739bb53f858c93bfcfd9a/adjsc.ml
ocaml
open Base type config = { stdlib: string; runtime: string; source: string; target: string; title: string; } let default = { stdlib = ""; runtime = ""; target = "a"; source = ""; title = "" } let process_args argv = let len = Array.length argv in let rec loop i acc = if i < len ...
cd4828d20e8b38d583cd717054b2056be8d09885db7ada5b22f85b9d45c383d3
crategus/cl-cffi-gtk
gtk.shortcuts-shortcut.lisp
;;; ---------------------------------------------------------------------------- ;;; gtk.shortcuts-shortcut.lisp ;;; The documentation of this file is taken from the GTK+ 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GTK+ library . ;;; See <>. The API documentation of the Lisp bin...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/da748ec5300141e9f07aabeeab7a9acb2b37ecf2/gtk/gtk.shortcuts-shortcut.lisp
lisp
---------------------------------------------------------------------------- gtk.shortcuts-shortcut.lisp See <>. The API documentation of the Lisp binding is This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License for Lisp License, or (at...
The documentation of this file is taken from the GTK+ 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GTK+ library . available from < -cffi-gtk/ > . Copyright ( C ) 2019 - 2020 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Pu...
a1db8d446a0217808c29cd0fe57898dd2097ba71430fe4a75a3481c27a99bf74
active-group/reacl-c
dom0.cljs
(ns ^:no-doc reacl-c.impl.dom0 (:require [clojure.string :as str])) (defn capture-event? [k] (let [s (name k)] (and (str/ends-with? s "apture") (or (str/ends-with? s "Capture") (str/ends-with? s "capture")))))
null
https://raw.githubusercontent.com/active-group/reacl-c/53fec3e78e61176a6c4a2376cf88c0e6c4e99e22/src/reacl_c/impl/dom0.cljs
clojure
(ns ^:no-doc reacl-c.impl.dom0 (:require [clojure.string :as str])) (defn capture-event? [k] (let [s (name k)] (and (str/ends-with? s "apture") (or (str/ends-with? s "Capture") (str/ends-with? s "capture")))))
fc7f8b4ac4e130b9b6f1cc8102a24bc65f160042c9b612bfcd93fb064f7736e6
nuvla/api-server
nuvlabox_cluster_2.clj
(ns sixsq.nuvla.server.resources.nuvlabox-cluster-2 " The version 2 of nuvlabox-cluster resource " (:require [sixsq.nuvla.server.resources.common.std-crud :as std-crud] [sixsq.nuvla.server.resources.common.utils :as u] [sixsq.nuvla.server.resources.nuvlabox-cluster :as nb-cluster] [sixsq.nuvla.serve...
null
https://raw.githubusercontent.com/nuvla/api-server/a07024b682ca2aa9f5f2b3a1cefa6071e782bd5a/code/src/sixsq/nuvla/server/resources/nuvlabox_cluster_2.clj
clojure
multimethod for validation initialization
(ns sixsq.nuvla.server.resources.nuvlabox-cluster-2 " The version 2 of nuvlabox-cluster resource " (:require [sixsq.nuvla.server.resources.common.std-crud :as std-crud] [sixsq.nuvla.server.resources.common.utils :as u] [sixsq.nuvla.server.resources.nuvlabox-cluster :as nb-cluster] [sixsq.nuvla.serve...
e13526b7fda31e3a60d8acb0c6935031ff126082be5a00145ae3141ef962df8f
cbaggers/cepl.sdl2
package.lisp
package.lisp (defpackage #:cepl.sdl2 (:use :cl :cepl.host))
null
https://raw.githubusercontent.com/cbaggers/cepl.sdl2/6da5a030db5e3579c5a1c5350b1ffb8fc9950e9a/package.lisp
lisp
package.lisp (defpackage #:cepl.sdl2 (:use :cl :cepl.host))
83ff1774042b534c7be4b5897d60f28ebd59483fe34dd67a0857d2e111b43a6e
heshrobe/joshua-dist
dylan-env.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : CLIM - ENV ; Base : 10 ; Lowercase : Yes -*- "Copyright (c) 1994 Harlequin, Inc. All rights reserved." (in-package :clim-env) environment top level (add-menu-item-to-command-table 'tools-menu 'dylan-divider :divider nil) (define-command (com-start-...
null
https://raw.githubusercontent.com/heshrobe/joshua-dist/f59f06303f9fabef3e945a920cf9a26d9c2fd55e/clim-env/portable-lisp-environment/dylan-env.lisp
lisp
Syntax : ANSI - Common - Lisp ; Package : CLIM - ENV ; Base : 10 ; Lowercase : Yes -*-
"Copyright (c) 1994 Harlequin, Inc. All rights reserved." (in-package :clim-env) environment top level (add-menu-item-to-command-table 'tools-menu 'dylan-divider :divider nil) (define-command (com-start-dylan-listener :command-table tools-menu :name t :menu "Dylan Listener") () (let ((width #+Genera...
df95ff711dfc4951fd0a2dd941312310982e8d4c04c70208addbe22209525dbb
tommaisey/aeon
u-cmd.help.scm
; /u_cmd send a command to a unit generator ; int - node ID ; int - unit generator index ; string - command name ; ...any arguments ; Sends all arguments following the command name to the unit generator ; to be performed. Commands are defined by unit generator plug ins.
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/server-command/u-cmd.help.scm
scheme
/u_cmd send a command to a unit generator int - node ID int - unit generator index string - command name ...any arguments Sends all arguments following the command name to the unit generator to be performed. Commands are defined by unit generator plug ins.
a6b63e8aa512714a063112970315d24e0614e8a2de13a76c003fd217d3628a95
alexj136/HWhile
Unparser.hs
module Unparser ( unparse ) where import Data.List (intersperse) import qualified Data.Map as M import PureSyntax unparse :: Program -> ETree unparse p = let (vmNoEq, pNoEq) = removeEquality (varMapProg p) p in unparseProg vmNoEq pNoEq -------------------------------------------------------------...
null
https://raw.githubusercontent.com/alexj136/HWhile/05fd675cbb5e71a2e779eaae7e8c738a3a50f46e/src/lib/Unparser.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ in list representations of programs. ------------------------------------------------------------------------------ ---------------------------------------------...
module Unparser ( unparse ) where import Data.List (intersperse) import qualified Data.Map as M import PureSyntax unparse :: Program -> ETree unparse p = let (vmNoEq, pNoEq) = removeEquality (varMapProg p) p in unparseProg vmNoEq pNoEq VarMap generation functions A VarMap is a Data . Map fro...
c21686f87ea48b7fe1f182def9efb32b06e4069c0044e02016b97437e41f2474
holyjak/clj-concordion
core.clj
(ns clj-concordion.core (:require [clj-concordion.internal.run :as run] [clj-concordion.internal.deffixture :refer [deffixture* fixtures]] [clj-concordion.internal.utils :refer :all] [clj-concordion.internal.interop :refer :all] [clojure.spec.alpha :as s] [clojure.test :as test]) (:import ...
null
https://raw.githubusercontent.com/holyjak/clj-concordion/7ff72ec56c3b67096b753ec5870b817fb0fb6f2b/src/clj_concordion/core.clj
clojure
---------------------------------------------------------------------- resetting, test support Fail fast to give err message early to the user
(ns clj-concordion.core (:require [clj-concordion.internal.run :as run] [clj-concordion.internal.deffixture :refer [deffixture* fixtures]] [clj-concordion.internal.utils :refer :all] [clj-concordion.internal.interop :refer :all] [clojure.spec.alpha :as s] [clojure.test :as test]) (:import ...
7fb0c0f903def481fe1b8e8747f8a66416ed971c9124f0a128933a6aa2b4ded7
monadbobo/ocaml-core
test.ml
open Std TEST_MODULE = struct let stabilize () = Scheduler.run_cycles_until_no_jobs_remain () TEST_UNIT = let i1 = Ivar.create () in let i2 = Ivar.create () in let c = choose_ident [ Ivar.read i1; Ivar.read i2 ] in stabilize (); assert (Deferred.peek c = None); Ivar.fill i1 13; stabili...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/async/core/lib/test.ml
ocaml
open Std TEST_MODULE = struct let stabilize () = Scheduler.run_cycles_until_no_jobs_remain () TEST_UNIT = let i1 = Ivar.create () in let i2 = Ivar.create () in let c = choose_ident [ Ivar.read i1; Ivar.read i2 ] in stabilize (); assert (Deferred.peek c = None); Ivar.fill i1 13; stabili...
9755acf588ac42066882f6621e2e969768a18ff919cbd34cc76b13075bd99634
relaypro-open/imetrics
imetrics_hist.erl
-module(imetrics_hist). -export([new/3, add/2, dump/1, get/1, get_all/0, get_all_nobin/0, subtract/2, approximate_percentiles/2]). -export([compute_bucket/3, compute_bounding_value/3]). -define(CATCH_KNOWN_EXC(X), try X catch error:badarg -> {error, {badarg, check_ets}}; ...
null
https://raw.githubusercontent.com/relaypro-open/imetrics/b3b9e0c14c83d8750d4c95b93462f482db9fdc49/src/imetrics_hist.erl
erlang
@doc Uses the histogram data to compute approximate percentile values. These are approximate because of the discretization of the buckets. Except on the extremes, the midpoint of each bucket is used as the approximation. this percentile is contained in this bucket. continue to iterate other percentiles without i...
-module(imetrics_hist). -export([new/3, add/2, dump/1, get/1, get_all/0, get_all_nobin/0, subtract/2, approximate_percentiles/2]). -export([compute_bucket/3, compute_bounding_value/3]). -define(CATCH_KNOWN_EXC(X), try X catch error:badarg -> {error, {badarg, check_ets}}; ...
6bd22d0725b7526ea7b8388f68da2f5408f880632ebb3fa51c9b2d821c17797d
danieljharvey/mimsa
Prelude.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Language.Mimsa.Modules.Prelude ( maybeInput, preludeInput, stateInput, parserInput, nonEmptyArrayInput, arrayInput, stringInput, monoidInput, readerInput, eitherInput, theseInput, treeInput, ) where ...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/75a498ae99d8fc522ffd0f4ff306cff8aa68e81a/compiler/src/Language/Mimsa/Modules/Prelude.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Language.Mimsa.Modules.Prelude ( maybeInput, preludeInput, stateInput, parserInput, nonEmptyArrayInput, arrayInput, stringInput, monoidInput, readerInput, eitherInput, theseInput, treeInput, ) where import Data.FileEmbed import Data.T...
1f325ce911f74d763463199b45322cdff50f5d87aeb7e3bc923d38fcbf2bcab2
appleshan/cl-http
cl-http-70-184.lisp
-*- Mode : LISP ; Syntax : ansi - common - lisp ; Package : http ; Base : 10 ; Patch - File : t -*- Patch file for CL - HTTP version 70.184 ;;; Reason: DEFINE-HEADER-TYPE :QUALITY-PAIR-SEQUENCE-HEADER: quality values are optional in modern standard. ;;; DEFINE-HEADER :ACCEPT-CHARSET: update. ;;; DEFINE-HEADER :AC...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/server/patch/cl-http-70/cl-http-70-184.lisp
lisp
Syntax : ansi - common - lisp ; Package : http ; Base : 10 ; Patch - File : t -*- Reason: DEFINE-HEADER-TYPE :QUALITY-PAIR-SEQUENCE-HEADER: quality values are optional in modern standard. DEFINE-HEADER :ACCEPT-CHARSET: update. DEFINE-HEADER :ACCEPT-ENCODING: - DEFINE-HEADER :ACCEPT-LANGUAGE: - DEFINE-HEADER :...
Patch file for CL - HTTP version 70.184 Function ( CLOS : METHOD URL::NAME - STRING - WITH - UNESCAPED - SEARCH - SUFFIX ( URL::SEARCH - MIXIN ) ): - Function ( CLOS : METHOD URL::RELATIVE - NAME - STRING - WITH - UNESCAPED - SEARCH - SUFFIX ( URL::SEARCH - MIXIN ) ): - Function ( CLOS : METHOD URL : SEARCH...
ec9411ed4edd8140a93ec6716ef9baa6e466f2ad2c9b0c0c865efc3bae0f680d
elli-lib/elli
elli_middleware.erl
%%% @doc HTTP request processing middleware. %%% %%% This module offers both pre-processing of requests and post-processing of responses . It can also be used to allow multiple handlers , where the first %%% handler to return a response short-circuits the request. %%% It is implemented as a plain elli handler. %%% %%...
null
https://raw.githubusercontent.com/elli-lib/elli/2f2fafb77c67244ba6237ca6b3c7238ff886c478/src/elli_middleware.erl
erlang
@doc HTTP request processing middleware. This module offers both pre-processing of requests and post-processing of handler to return a response short-circuits the request. It is implemented as a plain elli handler. Usage: ``` Config = [ {mods, [ {elli_example_middleware, []}, ...
responses . It can also be used to allow multiple handlers , where the first elli : ( [ -module(elli_middleware). -behaviour(elli_handler). -export([init/2, handle/2, handle_event/3]). Macros . -define(IF_NOT_EXPORTED(M, F, A, T, E), case erlang:function_exported(M, F, A) of true -> E; false -> T end)....
17e635f959a25fc54ba0a6736cd75c93571a043a1e0b0e1e554490700f12e234
BinaryAnalysisPlatform/bap-plugins
util.ml
open Core_kernel open Bap.Std open Format open Graphlib.Std open X86_cpu open Poly module Unix = Caml_unix (* MEMORY *) (* ------ *) (** return the memory that spans a section, such as '.rodata' *) let find_section_by_name project name = let memory = Project.memory project in Memmap.to_sequence memory |> Seq.find_...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap-plugins/2e9aa5c7c24ef494d0e7db1b43c5ceedcb4196a8/minos/util.ml
ocaml
MEMORY ------ * return the memory that spans a section, such as '.rodata' * print all memory of a binary, with labels --- * Returns the jmp term associated with call, and the call * And so forth for Sub.pp, etc. * Now returns with '@' for symbols * expects @ in name * A path is terminated if there's no succ...
open Core_kernel open Bap.Std open Format open Graphlib.Std open X86_cpu open Poly module Unix = Caml_unix let find_section_by_name project name = let memory = Project.memory project in Memmap.to_sequence memory |> Seq.find_map ~f:(fun (m,x) -> Option.(Value.get Image.section x >>= fun n -> Opt...
3b0ea82b8710bfa727ce97b63a8485d384fee7d3d7cd2961a364e77727bff304
puzza007/katipo
katipo_app.erl
-module(katipo_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> ok = katipo_metrics:init(), katipo_sup:start_link(). stop(_State) -> ok.
null
https://raw.githubusercontent.com/puzza007/katipo/1a38f8283cf5ca4ae77c30d17dca54308001315e/src/katipo_app.erl
erlang
-module(katipo_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> ok = katipo_metrics:init(), katipo_sup:start_link(). stop(_State) -> ok.
1da2a27539d1fd98c311c676366304badd75d38d30be4287bbc112ee87a68cae
madvas/catlantis
user.clj
(ns user (:require [figwheel-sidecar.repl-api :as ra] [figwheel-sidecar.system :as fs])) This namespace is loaded automatically by nREPL ;; read project.clj to get build configs (def profiles (->> "project.clj" slurp read-string (drop-while #(not...
null
https://raw.githubusercontent.com/madvas/catlantis/b8880ec2cab27ecfcb3c0ab30e2bbc7767db0d1c/env/dev/user.clj
clojure
read project.clj to get build configs
(ns user (:require [figwheel-sidecar.repl-api :as ra] [figwheel-sidecar.system :as fs])) This namespace is loaded automatically by nREPL (def profiles (->> "project.clj" slurp read-string (drop-while #(not= % :profiles)) (apply...
8a81569ef823be6b9cdce864b70d10c33303cc47e5bb878e5070db47855a4a3d
BillHallahan/G2
Higher.hs
module Higher where square :: Int -> Int square x = x * x plus5 :: Int -> Int plus5 a = a + 5 const :: Int -> Int const x = x foo :: Int -> Int -> Int -> Int foo a b c = if a + b < c then a + b else if c < 5 then b + c else a + c fixed :: (Int...
null
https://raw.githubusercontent.com/BillHallahan/G2/dfd377793dcccdc7126a9f4a65b58249673e8a70/tests/Samples/Higher.hs
haskell
module Higher where square :: Int -> Int square x = x * x plus5 :: Int -> Int plus5 a = a + 5 const :: Int -> Int const x = x foo :: Int -> Int -> Int -> Int foo a b c = if a + b < c then a + b else if c < 5 then b + c else a + c fixed :: (Int...
bd3ae20d854fcc3f2f2530e037ef417dbb42b9a01f97403c2235c1e20d4b414d
HunterYIboHu/htdp2-solution
ex221-tetris-drop.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-abbr-reader.ss" "lang")((modname ex221-tetris-drop) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repe...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter2/Section13-project-list/ex221-tetris-drop.rkt
racket
about the language level of this file in a form that our tools can easily process. constant functions Image List-of-posns List-of-posns going to. Number Number List-of-number -> List-of-posns y-coordinate is ratio multiply with a constant. x-coordinate is ratio multiply with a constant. physical constants # of...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex221-tetris-drop) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/universe) (require 2htdp/image) ...
c2dda5f928df5c0028136bb7ea8674e185c07a38cd1a55de168630ae3826cd0d
stamourv/partial-evaluation-tutorial
prim.rkt
#lang racket (require "exp.rkt") (provide prim) (define (prim op vals) (apply (match op ['= =] ['+ +] ['- -] ['* *] [_ (error "invalid prim" op)]) vals))
null
https://raw.githubusercontent.com/stamourv/partial-evaluation-tutorial/c4df2a280f908168ebabdb8b8547ef86659bc1e9/prim.rkt
racket
#lang racket (require "exp.rkt") (provide prim) (define (prim op vals) (apply (match op ['= =] ['+ +] ['- -] ['* *] [_ (error "invalid prim" op)]) vals))
4db07399580ca79cd67b1ef7ab81ee3f1553a9125b456fd786c87f8bf6e9deb8
returntocorp/ocaml-tree-sitter-core
Pattern_name.mli
(* Infer a good name for a pattern (regexp) when possible, such as for case-insensitive keywords such as /[Ii][Ff]/. *) Return a lowercase , alphanumeric name from a regexp in JavaScript syntax . val infer : string -> string option
null
https://raw.githubusercontent.com/returntocorp/ocaml-tree-sitter-core/66fbeabb8c3fec69a30a2e7f3eec41bc2d112d40/src/gen/lib/Pattern_name.mli
ocaml
Infer a good name for a pattern (regexp) when possible, such as for case-insensitive keywords such as /[Ii][Ff]/.
Return a lowercase , alphanumeric name from a regexp in JavaScript syntax . val infer : string -> string option
7f7d9fe8cb61efc38a6c12a030f0f1b40cee227645eebd656e6802fb261910a3
polyvios/locksmith
bansheemlifc.ml
* * Copyright ( c ) 2004 - 2007 , * Polyvios Pratikakis < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1...
null
https://raw.githubusercontent.com/polyvios/locksmith/3a9d60ed9c801d65fbb79e9aa6e7dec68f6289e3/src/bansheemlifc.ml
ocaml
assumes unique hashing jf -- not safe to subtract; e.g., integer overflow (hash n1) - (hash n2) assumes unique hashing possibly could use ==? assumes unique hashing possibly could use Hashtbl.hash? after this becomes true, fresh_inst doesn't work if c then concretes := NodeSet.add nn !concretes; usua...
* * Copyright ( c ) 2004 - 2007 , * Polyvios Pratikakis < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1...
46c1727ab89f94718c1adc73c8577cee873b6eac2df771ea33a98c548763443a
chaoxu/fancy-walks
53.hs
fact 0 = 1 fact n = n * fact (n - 1) comb n m = fact n `div` (fact m * fact (n - m)) problem_53 = length [(n,m) | n <- [1..100], m <- [0..n], comb n m > 1000000] main = print problem_53
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/projecteuler.net/53.hs
haskell
fact 0 = 1 fact n = n * fact (n - 1) comb n m = fact n `div` (fact m * fact (n - m)) problem_53 = length [(n,m) | n <- [1..100], m <- [0..n], comb n m > 1000000] main = print problem_53
4d1453cff2c886de22714bb28c7548b68fc74656fb97fe04b9cb060b1e7824a5
ocaml-multicore/tezos
cli_tezos.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/tezt/tests/cli_tezos.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
2f934eaca184c6376d93d3e9d17616eca0e71bd7291c2469b0f798ce6fd1ef85
rowangithub/DOrder
constraint.mli
* Copyright © 2008 The Regents of the University of California . All rights reserved . * * Permission is hereby granted , without written agreement and without * license or royalty fees , to use , copy , modify , and distribute this * software and its documentation for any purpose , provided that the ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/liquid/constraint.mli
ocaml
* Copyright © 2008 The Regents of the University of California . All rights reserved . * * Permission is hereby granted , without written agreement and without * license or royalty fees , to use , copy , modify , and distribute this * software and its documentation for any purpose , provided that the ...
c967704290b47268ce22ab80e88a66f257ab7d3c2268fa30e20fb56004bd2bd4
jayrbolton/coursework
Unit.hs
{-# LANGUAGE EmptyDataDecls , ExistentialQuantification , ScopedTypeVariables , NoMonomorphismRestriction #-} module MAlonzo.Data.Unit where import qualified Unsafe.Coerce import qualified MAlonzo.Data.Sum import qualified MAlonzo.Relation.Binary import qualified MAlonzo.Relation.Bina...
null
https://raw.githubusercontent.com/jayrbolton/coursework/f0da276527d42a6751fb8d29c76de35ce358fe65/computability_and_formal_languages/project__/agda/MAlonzo/Data/Unit.hs
haskell
# LANGUAGE EmptyDataDecls , ExistentialQuantification , ScopedTypeVariables , NoMonomorphismRestriction #
module MAlonzo.Data.Unit where import qualified Unsafe.Coerce import qualified MAlonzo.Data.Sum import qualified MAlonzo.Relation.Binary import qualified MAlonzo.Relation.Binary.Core import qualified MAlonzo.Relation.Binary.PropositionalEquality import qualified MAlonzo.Relation.Binary.PropositionalEquality.Core import...
0a61deaf7558076e8fd46e144661369d280c40cdb7eda27b7456e785c541cd70
8c6794b6/guile-tjit
t-pairs-06.scm
;;; More multiple calls to cons with different arguments. (use-modules (srfi srfi-1)) (define (loop n a b c d e f g h) (let lp ((n n) (acc '())) (if (= n 0) (fold + 0 acc) (lp (- n 1) (cons n (cons a (cons b (cons c (cons d (cons e (cons f (cons g (cons h acc))))))))))))) (loop #e1e...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-pairs-06.scm
scheme
More multiple calls to cons with different arguments.
(use-modules (srfi srfi-1)) (define (loop n a b c d e f g h) (let lp ((n n) (acc '())) (if (= n 0) (fold + 0 acc) (lp (- n 1) (cons n (cons a (cons b (cons c (cons d (cons e (cons f (cons g (cons h acc))))))))))))) (loop #e1e3 1 2 3 4 5 6 7 8)
da9450c61f60e35539c8afcab788f3a0c4e888e57197c2a7353a3d7b30a8b270
soranoba/erlup
spam_sup.erl
%%%------------------------------------------------------------------- %% @doc spam top level supervisor. %% @end %%%------------------------------------------------------------------- -module('spam_sup'). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). -define(SE...
null
https://raw.githubusercontent.com/soranoba/erlup/c7d785eb8222b9f38d94b911c84a06b398b43f0f/ct/erlup_SUITE_data/spam_v3/src/spam_sup.erl
erlang
------------------------------------------------------------------- @doc spam top level supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions ==================================...
-module('spam_sup'). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). Child : : { Id , StartFunc , Restart , Shutdown , Type , Modules } init([]) -> Mod = spam_srv, Children = [{Mod,...
339fbf35bcdd4f81494bd0330ddafd6a8db38ca048f2ed338aa21a3a1a868949
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
PostTestHelpersTestClocks.hs
{-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the different functions to run the operation postTestHelpersTestClocks module S...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Operations/PostTestHelpersTestClocks.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the different functions to run the operation postTestHelpersTestClocks | > POST /v1/test_helpers/test_clocks | The request body to send | Monadic computation which returns the result of the operation | Defines the object...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Operations.PostTestHelpersTestClocks where import qualified Control.Monad.Fail import qualified Control.Monad.Trans.Reader import qualified Data.Aeson import qualified Da...
0901338cd329a6526d78bc95e8ba094e21b71e0eb0efee82b2bc02d819868bf1
nasa/Common-Metadata-Repository
const.clj
(ns cmr.metadata.proxy.const) ;; XXX The following is used as a criteria for extracing data files from granule metadata . This may change once CMR-4912 is addressed . ;; XXX Update: CMR-4912 has been moved to DURT-153. (def datafile-link-rel "#") (def default-lon-abs-hi 360.0) (def default-lat-abs-hi 180.0)
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/metadata-proxy/src/cmr/metadata/proxy/const.clj
clojure
XXX The following is used as a criteria for extracing data files from XXX Update: CMR-4912 has been moved to DURT-153.
(ns cmr.metadata.proxy.const) granule metadata . This may change once CMR-4912 is addressed . (def datafile-link-rel "#") (def default-lon-abs-hi 360.0) (def default-lat-abs-hi 180.0)
4c475a2b68e4847d576668e9cb443bab8abd12898e422b2fa7fba89d9de28b67
bobzhang/fan
configf.mli
(** The configuration for Fan *) val ocaml_standard_library : string val version : string val unsafe : bool ref val antiquotations : bool ref val inter_phrases : string option ref val impl_magic_number : string val intf_magic_number : string val ocaml_ast_intf_magic_number : string val ocaml_ast_impl_magic_...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/common/configf.mli
ocaml
* The configuration for Fan * The name of current translation unit when set [-] or toplevel , it's None * This is a list of directories to search for INCLUDE statements. * a list of files for dynamic loading * [$FAN_DIR] if set, otherwise +fan
val ocaml_standard_library : string val version : string val unsafe : bool ref val antiquotations : bool ref val inter_phrases : string option ref val impl_magic_number : string val intf_magic_number : string val ocaml_ast_intf_magic_number : string val ocaml_ast_impl_magic_number : string val current_inpu...