_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
f992fbd2c2e9be02e43480e7405609c20d73e48d1be63c8f63ae793794514398
samee/netlist
ArrayNative.hs
import Control.Monad import System.IO import System.Random import Circuit.NetList.Gcil import Test.ArrayGcil sizeOptions = [50,100..1000] batchOps badop goodop opname makelist makecmd = do putStrLn $ "------------- Batch "++opname++" Circuits ---------------" putStrLn "n Naive Batch" forM_ sizeOptions $ \n ->...
null
https://raw.githubusercontent.com/samee/netlist/9fc20829f29724dc1148e54bd64fefd7e70af5ba/Benchmark/ArrayNative.hs
haskell
import Control.Monad import System.IO import System.Random import Circuit.NetList.Gcil import Test.ArrayGcil sizeOptions = [50,100..1000] batchOps badop goodop opname makelist makecmd = do putStrLn $ "------------- Batch "++opname++" Circuits ---------------" putStrLn "n Naive Batch" forM_ sizeOptions $ \n ->...
9936f2ebebed330225200d0668251f32f3d4e5f519cd2d0b82c26e463e9c7829
play-co/hermes
core_test.clj
(ns hermes.persistent.core-test (:use clojure.test [hermes.persistent.conf :only (conf)]) (:require [hermes.core :as g] [hermes.type :as t] [hermes.vertex :as v]) (:import (com.thinkaurelius.titan.graphdb.database StandardTitanGraph) (com.thinkaurelius.titan.graphdb....
null
https://raw.githubusercontent.com/play-co/hermes/9d203ec7b239e7800c89e6ee161486f35dabd110/test/hermes/persistent/core_test.clj
clojure
(ns hermes.persistent.core-test (:use clojure.test [hermes.persistent.conf :only (conf)]) (:require [hermes.core :as g] [hermes.type :as t] [hermes.vertex :as v]) (:import (com.thinkaurelius.titan.graphdb.database StandardTitanGraph) (com.thinkaurelius.titan.graphdb....
ed5418b83692de206cf570fa648fd7832d4d00c1fbafa8c284a7aa2a1348a9bb
basho/riak_kv
riak_kv_update_hook.erl
%% %% ------------------------------------------------------------------- %% Copyright ( c ) 2016 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may...
null
https://raw.githubusercontent.com/basho/riak_kv/aeef1591704d32230b773d952a2f1543cbfa1889/src/riak_kv_update_hook.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissi...
Copyright ( c ) 2016 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(...
f894d03fd65e1707a0b68532653b7cb4451aef797cb8cf61823de7372d5f703d
tommaisey/aeon
version-control.scm
;; This library provides a highly simplified and streamlined interface ;; to the `git` version control system, for use during live performance. It needs to work with ` git ` version 2.20.1 , because that 's installed on a lot of still - not - that - old Macs . (library (version-control) (export save jum...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/version-control.scm
scheme
This library provides a highly simplified and streamlined interface to the `git` version control system, for use during live performance. Save the current state of the project, optionally in a new branch. => (values success? error-msg) TODO: message? Jump by a number of commits back (negative) forward (positive) ...
It needs to work with ` git ` version 2.20.1 , because that 's installed on a lot of still - not - that - old Macs . (library (version-control) (export save jump list-saves print-saves init-repo current-branch commits-back unstaged-changes) ...
acf88a830c9f2fa0ec6419cca6611b30baf6c9f0723c1854d6b24a1a6b924499
bos/rwh
GroupLens.hs
module GroupLens where import Control.Parallel.Strategies import Data.Function (on) import Data.List (groupBy) import qualified Data.Map as M import System.Environment (getArgs) import qualified Data.ByteString.Char8 as B import qualified SlopeTwo as S readRating :: B.ByteString -> (Int, Int, Int) readRating line = m...
null
https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch25/GroupLens.hs
haskell
# SCC "rating" # # SCC "fl" #
module GroupLens where import Control.Parallel.Strategies import Data.Function (on) import Data.List (groupBy) import qualified Data.Map as M import System.Environment (getArgs) import qualified Data.ByteString.Char8 as B import qualified SlopeTwo as S readRating :: B.ByteString -> (Int, Int, Int) readRating line = m...
387eac2616d373f378ae58707c79e64c395341d1c14f78b021dea0cac493a9d1
gregnwosu/haskellbook
Main.hs
module Main where main = putStrLn "Hello"
null
https://raw.githubusercontent.com/gregnwosu/haskellbook/b21fb6772e58f07cff334d9c551d0477ec856897/chapter28/app/Main.hs
haskell
module Main where main = putStrLn "Hello"
ab834fd17162d13f69c80542978e9c548b0e751cee2b9ef71b4380aa90d2b629
zotonic/zotonic
validator_base_confirmation.erl
@author < > 2009 %% @doc Validator for checking if the input is the same as another input. Copyright 2009 %% 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....
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_base/src/validators/validator_base_confirmation.erl
erlang
@doc Validator for checking if the input is the same as another input. 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...
@author < > 2009 Copyright 2009 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(validator_base_confirmation). -include_lib("zotonic_core/include/zotonic.hrl"). -export([render_validator/5, validate/5])...
e33f6429717ddbe97dbcd7f61c602ac8de55241f72bcd7f707a859baf93b6438
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Time.EN.US.Corpus ( allExamples ) where import Data....
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Time/EN/US/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Time.EN.US.Corpus ( allExamples ) where import Data.String import Prelude import Duckling.Testing.Types hiding (examples) import Duckling.Time.Corpus import Duckling.TimeGrain.Types hiding (add) allExamples :: [Example] allExamples = concat [...
56ff2c9f9be95b5e5db125b8943c0f68e997265abab2d1bd69d099f0d76b8f93
Reisen/pixel
RunProjections.hs
module Commands.RunProjections ( commandRunProjections , runProjections ) where import Protolude import Commands.Types ( Options (..), RunProjectionsOptions (..) ) import Database.SQLite.Simple ( open ) import Eventless ( loadAggregates, loadEvents ) import Eventless.Backend.SQLite ( m...
null
https://raw.githubusercontent.com/Reisen/pixel/9096cc2c5b909049cdca6d14856ffc1fc99d81b5/src/app/Commands/RunProjections.hs
haskell
------------------------------------------------------------------------------ Create CQRS Backend For all Aggregates, load their events and run a projection over their events into the read store. ------------------------------------------------------------------------------
module Commands.RunProjections ( commandRunProjections , runProjections ) where import Protolude import Commands.Types ( Options (..), RunProjectionsOptions (..) ) import Database.SQLite.Simple ( open ) import Eventless ( loadAggregates, loadEvents ) import Eventless.Backend.SQLite ( m...
09193a4f21ca2ef862137ec55677482f2fcb29b31f01ccf580d98803fc95ea79
HunterYIboHu/htdp2-solution
16.6-dots.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-intermediate-reader.ss" "lang")((modname 16.6-dots) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-dec...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter3-Abstraction/Section16-Using-Abstraction/16.6-dots.rkt
racket
about the language level of this file in a form that our tools can easily process. constants [List-of Posn] -> Image Posn Image -> Image Posn Image -> Image
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-reader.ss" "lang")((modname 16.6-dots) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/image) (define DOT (circle 5 "solid" "red...
ddadbc8de2ba1251698d90dfde5e2eb9c13b7e494b723d60641f119c30273139
yomimono/stitchcraft
test.ml
(* test cases: various known font sizes in all known formats *) (* for formats that aren't byte-aligned, make sure to test non-bit-aligned sizes *) e.g. an 8x8 test , a 16x8 test , a 9x8 test module CoordinateSet = Stitchy.Types.CoordinateSet open Alcotest module Glyphmap : Alcotest.TESTABLE with type t = (Stitch...
null
https://raw.githubusercontent.com/yomimono/stitchcraft/9481daff2dbd91ddc8ef0b9532fe78d88d1e3772/fontreader/test/test.ml
ocaml
test cases: various known font sizes in all known formats for formats that aren't byte-aligned, make sure to test non-bit-aligned sizes minimal test: the font has any glyphs in it at all 0x2588 is supposed to be the full box-filling character, so we expect it to be full of stitches * in a reasonable font.
e.g. an 8x8 test , a 16x8 test , a 9x8 test module CoordinateSet = Stitchy.Types.CoordinateSet open Alcotest module Glyphmap : Alcotest.TESTABLE with type t = (Stitchy.Types.glyph * Uchar.t list) list = struct type t = (Stitchy.Types.glyph * Uchar.t list) list let pp_uchars fmt l = Format.fprintf fmt "%a...
f9de5d92b95461d7c9993e8ed53f2ec9765dd3d3aff393d9cde68ee4228f0c9b
exFalso/sandfix
SandFix.hs
import Control.Applicative ((<$>)) import Control.Monad (forM, mplus, when, unless, forM_, foldM) import Data.List (isSuffixOf, isPrefixOf, intercalate) import qualified Data.Map as Map import Data.Maybe (listToMaybe, catMaybes, isNothing) import Data.Either (lefts, rights) import Data.Monoid import qualified Data.Set ...
null
https://raw.githubusercontent.com/exFalso/sandfix/adb0f8e737f74170d1ee989e3364b761c5b67017/src/SandFix.hs
haskell
print comp
import Control.Applicative ((<$>)) import Control.Monad (forM, mplus, when, unless, forM_, foldM) import Data.List (isSuffixOf, isPrefixOf, intercalate) import qualified Data.Map as Map import Data.Maybe (listToMaybe, catMaybes, isNothing) import Data.Either (lefts, rights) import Data.Monoid import qualified Data.Set ...
a4707767aa8bcc389480c174de7ee137fd1f3f4f285460cbcbf069996bbd8d23
ocsigen/ojwidgets
ojw_button_f.ml
open Dom_html open Dom module Make (D : Ojw_dom_sigs.T) (Alert : Ojw_alert_sigs.T with type D.element = D.element and type 'a D.elt = 'a D.elt) = struct module D = D module Alert = Alert class type button = object inherit Ojw_active_set.item inherit Ojw_base_widget.widget method...
null
https://raw.githubusercontent.com/ocsigen/ojwidgets/4be2233980bdd1cae187c749bd27ddbfff389880/src/internals/ojw_button_f.ml
ocaml
We want to listen events before unpress or press the button We want to listen events before unpress or press the button
open Dom_html open Dom module Make (D : Ojw_dom_sigs.T) (Alert : Ojw_alert_sigs.T with type D.element = D.element and type 'a D.elt = 'a D.elt) = struct module D = D module Alert = Alert class type button = object inherit Ojw_active_set.item inherit Ojw_base_widget.widget method...
50dea35f9a13a6fc5c6ef713ac92487e3ec25ec314856e33883ffdee2be5fdf9
magthe/sandi
UuBench.hs
module Codec.Binary.UuBench where import Criterion.Main (bench, nf) import Codec.Binary.Uu mkBenchs data1M data10M = let enc1M = encode data1M enc10M = encode data10M in [ bench "enc uu 1M" $ nf encode data1M , bench "dec uu 1M" $ nf decode enc1M , bench "enc uu 10M" $ nf ...
null
https://raw.githubusercontent.com/magthe/sandi/a8ef86ec3798a640d86342421a7fa7fa97bdedd4/sandi/bench-src/Codec/Binary/UuBench.hs
haskell
module Codec.Binary.UuBench where import Criterion.Main (bench, nf) import Codec.Binary.Uu mkBenchs data1M data10M = let enc1M = encode data1M enc10M = encode data10M in [ bench "enc uu 1M" $ nf encode data1M , bench "dec uu 1M" $ nf decode enc1M , bench "enc uu 10M" $ nf ...
ce24a336a5a064a59a604c6d3223c536079009f2e93f633f1732272991e7253b
mejgun/haskell-tdlib
SetChatMessageSender.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.SetChatMessageSender where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.MessageSender as MessageSender import qualified Utils as U -- | -- Selects a message sender to send messages in a chat @chat_id Chat iden...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/SetChatMessageSender.hs
haskell
# LANGUAGE OverloadedStrings # | | Selects a message sender to send messages in a chat @chat_id Chat identifier @message_sender_id New message sender for the chat | |
module TD.Query.SetChatMessageSender where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.MessageSender as MessageSender import qualified Utils as U data SetChatMessageSender = SetChatMessageSender message_sender_id :: Maybe MessageSender.MessageSender, chat_...
04898b81ddf7e70af439457df9ea52e559569f0472af5576fac36766313a5794
well-typed-lightbulbs/ocaml-esp32
recursive.ml
(* TEST * expect *) (* PR#7324 *) module rec T : sig type t = T.t end = T;; [%%expect{| Line 1, characters 15-35: 1 | module rec T : sig type t = T.t end = T;; ^^^^^^^^^^^^^^^^^^^^ Error: The type abbreviation T.t is cyclic |}]
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/typing-modules/recursive.ml
ocaml
TEST * expect PR#7324
module rec T : sig type t = T.t end = T;; [%%expect{| Line 1, characters 15-35: 1 | module rec T : sig type t = T.t end = T;; ^^^^^^^^^^^^^^^^^^^^ Error: The type abbreviation T.t is cyclic |}]
c5e8cc1483641ddd6050f66946dfb5b3664ba8e3f856be67e12c3a219bb8639a
shnarazk/mios
Clause.hs
| ( This is a part of MIOS . ) -- Clause, supporting pointer-based equality # LANGUAGE FlexibleInstances , MagicHash , MultiParamTypeClasses , RecordWildCards , ViewPatterns # FlexibleInstances , MagicHash , MultiParamTypeClasses , RecordWildCards , ViewPatterns #-} # LANGUAGE ...
null
https://raw.githubusercontent.com/shnarazk/mios/d032d761d73224f981a07ec2ea90936db6f495e8/src/SAT/Mios/Clause.hs
haskell
Clause, supporting pointer-based equality * Vector of Clause normal, null (and binary) clause. ^ literals and rank ^ another metrics of this clause ^ activity of this clause ^ protected from reduce as null pointer binary clause consists of only a propagating literal | The equality on 'Clause' is defined with ...
| ( This is a part of MIOS . ) # LANGUAGE FlexibleInstances , MagicHash , MultiParamTypeClasses , RecordWildCards , ViewPatterns # FlexibleInstances , MagicHash , MultiParamTypeClasses , RecordWildCards , ViewPatterns #-} # LANGUAGE Trustworthy # module SAT.Mios.Clause ...
4dd0a6b0fd8a698c1487c371e0eb01b331e122f3f80b7a29333d6dd72ed897ae
fishcakez/acceptor_pool
telnet_echo_conn.erl
-module(telnet_echo_conn). -behaviour(acceptor). -behaviour(gen_server). %% acceptor api -export([acceptor_init/3, acceptor_continue/3, acceptor_terminate/2]). %% gen_server api -export([init/1, handle_call/3, handle_cast/2, handle_info/2, code_change/3, ...
null
https://raw.githubusercontent.com/fishcakez/acceptor_pool/3cbc455c103b8885401f161fd765a9b2f18203f2/examples/telnet_echo/src/telnet_echo_conn.erl
erlang
acceptor api gen_server api monitor listen socket to gracefully close when it closes Something when wrong. Either the acceptor_pool is terminating or the accept failed. gen_server api Listen socket closed, receive all pending data then stop. In more advanced protocols will likely be able to do better. internal
-module(telnet_echo_conn). -behaviour(acceptor). -behaviour(gen_server). -export([acceptor_init/3, acceptor_continue/3, acceptor_terminate/2]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, code_change/3, terminate/2]). acceptor_init(_...
89030edf16b3c6e9b540fca3664d8f1ac2d4a668f4dd2a6fc7b09835a2b09fa4
2600hz/kazoo
kz_epmd.erl
%%%----------------------------------------------------------------------------- ( C ) 2012 - 2020 , 2600Hz @doc Monitors EPMD connection and restarts it when necessary %%% This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this ...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_apps/src/kz_epmd.erl
erlang
----------------------------------------------------------------------------- @end ----------------------------------------------------------------------------- node name of the running node, e.g. kazoo_apps local hostname of the running node in case we're using a custom epmd client module node's port to talk di...
( C ) 2012 - 2020 , 2600Hz @doc Monitors EPMD connection and restarts it when necessary This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kz_epmd). -behaviour(gen_server). -export(...
b64e29e1c27d64096250867dfc1ab1c61fa3937b1d4757d1266606f7165edd13
informatimago/lisp
driver.lisp
-*- mode : lisp;coding : utf-8 -*- ;;;;************************************************************************** FILE : driver.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; ;;;; A lisp driver similar to gcc. ;;;; ;;;; R...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/driver/driver.lisp
lisp
coding : utf-8 -*- ************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION A lisp driver similar to gcc. Right, that's silly. But some non-lispers may be lured into lisp by it. USAGE: LEGAL This progra...
FILE : driver.lisp USER - INTERFACE : < PJB > < > MODIFICATIONS 2013 - 07 - 01 < PJB > Created . AGPL3 Copyright 2013 - 2016 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the Lice...
0628efed2e8459d16ad8299071f09db680196ca39739f1647d895b7aebba3553
expipiplus1/vulkan
Internal.hs
module Vulkan.Utils.ShaderQQ.Backend.Internal ( messageProcess ) where import Data.ByteString ( ByteString ) import Data.List.Extra messageProcess :: (Applicative m, Monad m) => String -- ^ tool name -> (String -> m ()) -- ^ warning -> (String -> m ByteString) -- ^...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/utils/src/Vulkan/Utils/ShaderQQ/Backend/Internal.hs
haskell
^ tool name ^ warning ^ error ^ Spir-V bytecode with warnings or errors ^ Spir-V bytecode
module Vulkan.Utils.ShaderQQ.Backend.Internal ( messageProcess ) where import Data.ByteString ( ByteString ) import Data.List.Extra messageProcess :: (Applicative m, Monad m) => String -> (String -> m ()) -> (String -> m ByteString) -> ([String], Either [String] ByteSt...
d7de9c69fee097ccfc89cfb45d56f4dd8ac23646cdae2018c48b810411e749bd
justinmeiners/exercises
2_66.scm
(load "2_63.scm") (define (lookup key set) (cond ((null? set) '()) ((= key (entry set)) (entry set)) ((< key (entry set)) (lookup key (left-branch set))) ((> key (entry set)) (lookup key (right-branch set))))) (display (lookup 9 (test-tree)))
null
https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/sicp/2/2_66.scm
scheme
(load "2_63.scm") (define (lookup key set) (cond ((null? set) '()) ((= key (entry set)) (entry set)) ((< key (entry set)) (lookup key (left-branch set))) ((> key (entry set)) (lookup key (right-branch set))))) (display (lookup 9 (test-tree)))
5fd5984a4dd1580b40e1ac3383a3249c2ce69c284dd4a4954dc32353dafa3d7e
ocaml/oasis-db
TestLwtExt.ml
* Tests for LwtExt @author @author Sylvain Le Gall *) open TestCommon open OUnit open Lwt let tests = "LwtExt" >::: [ "IO" >::: [ "MemoryOut" >:: (fun () -> let apply chn = Lwt_io.write chn "abcd" in let ctnt_std = let fn = ...
null
https://raw.githubusercontent.com/ocaml/oasis-db/f8b19d431102b5c5b7dced00a5242a5366ad263f/test/TestLwtExt.ml
ocaml
* Tests for LwtExt @author @author Sylvain Le Gall *) open TestCommon open OUnit open Lwt let tests = "LwtExt" >::: [ "IO" >::: [ "MemoryOut" >:: (fun () -> let apply chn = Lwt_io.write chn "abcd" in let ctnt_std = let fn = ...
449ffc2032ac4e811c614d469ba0596f6f63f6b8f8c71d10c1396239d34be153
metaocaml/ber-metaocaml
envaux.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/typing/envaux.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt OCaml port by and Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Env type error = Module_not_found of Path.t e...
767039f02cf501846a57e6d0a18cdebf64d5f32c45036fbcf2ba630ae67bfd58
onedata/op-worker
page_identity_token.erl
%%%------------------------------------------------------------------- @author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module implements dynamic_pag...
null
https://raw.githubusercontent.com/onedata/op-worker/34607258e1b3fca71a1b0da2a0bc5f0134fe878e/src/http/gui/page_handlers/page_identity_token.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This module implements dynamic_page_behaviour and is called when identity token page is visited. @todo VFS-5554 Deprecated, included for backward compatibility configur...
@author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . Must be supported in the 19.09 . * line , later the counterpart in the -module(page_identity_token). -author("Lukasz Opiola"). -behaviour(dynamic_page_behaviour). -include("middleware/middleware...
f514c3382dc5a5e2e48f88672ee8faa2f5c2670c6fbf705bde93f737acb81385
ghosthamlet/algorithm-data-structure
dp_longest_increasing_subsequence.clj
(ns algorithm-data-structure.algorithms.sets.dp-longest-increasing-subsequence) (defn run [sequence] (apply max (loop [previous-element-index 0 current-element-index 1 lengths-array (repeat (count sequence) 1)] (if (= current-element-index (count sequence)) ...
null
https://raw.githubusercontent.com/ghosthamlet/algorithm-data-structure/017f41a79d8b1d62ff5a6cceffa1b0f0ad3ead6b/src/algorithm_data_structure/algorithms/sets/dp_longest_increasing_subsequence.clj
clojure
(ns algorithm-data-structure.algorithms.sets.dp-longest-increasing-subsequence) (defn run [sequence] (apply max (loop [previous-element-index 0 current-element-index 1 lengths-array (repeat (count sequence) 1)] (if (= current-element-index (count sequence)) ...
3520d937905013c0b4dfcb312ce56ecc204440e523884581638e84e588f5ca44
jrm-code-project/LISP-Machine
moby-micro.lisp
-*- Mode : Lisp ; Base : 8 ; Package : ( MICRO GLOBAL ) ; : ZL -*- Objects going to or from moby space are transferred uninterruptedly to buffer - area . ;This avoids timing errors if another process comes along and references a partially ;filled in object. (defvar *buffer-area* (make-area :name 'moby-buffer-area...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/mfile/moby-micro.lisp
lisp
Base : 8 ; Package : ( MICRO GLOBAL ) ; : ZL -*- This avoids timing errors if another process comes along and references a partially filled in object. buffer region unboxed size boxed size base base of buffer region. save copy. doing the entire copy operation before smashing anything to unreconciled is a bit more co...
Objects going to or from moby space are transferred uninterruptedly to buffer - area . (defvar *buffer-area* (make-area :name 'moby-buffer-area :gc :static)) assure moby - buffer - area has one region . (cond ((minusp (si:%area-region-list *buffer-area*)) (cons-in-area nil nil *buffer-area*))) (defvar *buff...
74d2caf58ea278317f201d3be106a8c69d343a75943034310f49302c81dfd314
racket/gui
wxme.rkt
#lang racket/base (require racket/class racket/contract racket/file (only-in racket/gui/base color% font% the-clipboard clipboard-client% key-event% mouse-event% [tex...
null
https://raw.githubusercontent.com/racket/gui/06a1c674d5127a639162c55f66ab7f2b6a46c60d/gui-test/tests/gracket/wxme.rkt
racket
---------------------------------------- String snips and lines ---------------------------------------- Line inserts and deletes ---------------------------------------- Line counts and positions ---------------------------------------- More line lines and positions ---------------------------------------- L...
#lang racket/base (require racket/class racket/contract racket/file (only-in racket/gui/base color% font% the-clipboard clipboard-client% key-event% mouse-event% [tex...
27b6571bda6ea7e4a01ee7cfc6b1f7ddeca82c3cb72c1dad04ae894d9d8d1e31
JKTKops/ProtoHaskell
PhType.hs
module Compiler.PhSyn.PhType where import Compiler.BasicTypes.SrcLoc import Utils.Outputable type LPhType id = Located (PhType id) data PhType id -- Type variable or type constructor = PhVarTy id | PhBuiltInTyCon BuiltInTyCon -- Built in type constructors: (), [], (->), (,), (,,) ... -- Cont...
null
https://raw.githubusercontent.com/JKTKops/ProtoHaskell/437c37d7bd6d862008f86d7e8045c7a60b12b532/src/Compiler/PhSyn/PhType.hs
haskell
Type variable or type constructor Built in type constructors: (), [], (->), (,), (,,) ... Context => type context (C in C => A) payload (A in C => A) parenthesized type
module Compiler.PhSyn.PhType where import Compiler.BasicTypes.SrcLoc import Utils.Outputable type LPhType id = Located (PhType id) data PhType id = PhVarTy id | PhAppTy (LPhType id) (LPhType id) | PhFunTy (LPhType id) (LPhType id) | PhListTy (LPhType id) | PhTupleTy [LPhType id] See ...
50fd4a3af061c5d386a9659f8f6454fb9c385e26d7876b3eecd19deef5deb3b2
gndl/graffophone
gMixingConsole.ml
* Copyright ( C ) 2015 * * All rights reserved . This file is distributed under the terms of the * GNU General Public License version 3.0 . * * This program is distributed in the hope that it will be useful , * but WITHOUT ANY WARRANTY ; without even the implied warranty of * MERCHANTABIL...
null
https://raw.githubusercontent.com/gndl/graffophone/71a12fcf8e799bb8ebfc37141b300ecbc9475c43/src/gMixingConsole.ml
ocaml
* Copyright ( C ) 2015 * * All rights reserved . This file is distributed under the terms of the * GNU General Public License version 3.0 . * * This program is distributed in the hope that it will be useful , * but WITHOUT ANY WARRANTY ; without even the implied warranty of * MERCHANTABIL...
04898b067fc78f17c3bf10b8aea4bb28ed042f4e8e854696b9334a8730e39c6e
lachenmayer/arrowsmith
Module.hs
module Arrowsmith.Module where import Data.Aeson import qualified Data.ByteString.Lazy as LazyBS import Data.Function (on) import Data.List (intercalate, sortBy) import qualified Data.Map as Map -- elm-compiler import qualified AST.Annotation as Annotation import qualified AST.Expression.Canonical as Canonical import...
null
https://raw.githubusercontent.com/lachenmayer/arrowsmith/34b6bdeddddb2d8b9c6f41002e87ec65ce8a701a/backend/Arrowsmith/Module.hs
haskell
elm-compiler Converts an elm-compiler Def to an Arrowsmith Definition. Converts an elm-compiler Module to an Arrowsmith Module. should be the "_save_the_environment!!!" variable. Any "normal" definition (ie. not an alias/type definition) will look like this. Reject all others - they don't have location informatio...
module Arrowsmith.Module where import Data.Aeson import qualified Data.ByteString.Lazy as LazyBS import Data.Function (on) import Data.List (intercalate, sortBy) import qualified Data.Map as Map import qualified AST.Annotation as Annotation import qualified AST.Expression.Canonical as Canonical import qualified AST.E...
98a5366eba7c2c2e352885d3241b6f7e7e4186f985514d4a56504025995e156b
the-little-typer/pie
parser.rkt
#lang racket ;;; This module contains the parsers that convert Pie concrete syntax ;;; into source-code-annotated Pie input ASTs. (require "basics.rkt" "typechecker.rkt" (prefix-in kw: "pie-info.rkt") racket/match syntax/parse (for-syntax syntax/parse) (for-syntax racket/s...
null
https://raw.githubusercontent.com/the-little-typer/pie/a698d4cacd6823b5161221596d34bd17ce5282b8/parser.rkt
racket
This module contains the parsers that convert Pie concrete syntax into source-code-annotated Pie input ASTs.
#lang racket (require "basics.rkt" "typechecker.rkt" (prefix-in kw: "pie-info.rkt") racket/match syntax/parse (for-syntax syntax/parse) (for-syntax racket/syntax)) (provide (all-defined-out)) (define-syntax-class pie-id #:description "valid Pie name" (pattern name:id ...
8daf7a6fd97cda08a38c8c8faa6791bf4e06ad3a367cf3d259affda0b10b2cb3
domenkozar/paddle
CreateModifier.hs
module Paddle.Client.CreateModifier where import Data.Aeson (ToJSON, toJSON, genericToJSON) import Protolude import Prelude () import Paddle.Amount (Amount) import Paddle.FieldModifier (customJSONOptions) data CreateModifier = CreateModifier { vendorId :: Int , vendorAuthCode :: Text , subscriptionId :: Text ...
null
https://raw.githubusercontent.com/domenkozar/paddle/2def5a4e84499d529c3b205b7a83d923e039e13a/src/Paddle/Client/CreateModifier.hs
haskell
module Paddle.Client.CreateModifier where import Data.Aeson (ToJSON, toJSON, genericToJSON) import Protolude import Prelude () import Paddle.Amount (Amount) import Paddle.FieldModifier (customJSONOptions) data CreateModifier = CreateModifier { vendorId :: Int , vendorAuthCode :: Text , subscriptionId :: Text ...
6daa9be865a95496a25ceb4a00eaed33c09465876884ff983e646205c93fed81
ocaml-ppx/ocamlformat
Conf_decl.ml
(**************************************************************************) (* *) (* OCamlFormat *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/41b6ec9e468150e795ea6e74fd90b7a680c0c5d6/lib/Conf_decl.ml
ocaml
************************************************************************ OCamlFormat ...
Copyright ( c ) Facebook , Inc. and its affiliates . This source code is licensed under the MIT license found in module Error = Conf_t.Error let ocaml_version_conv = let parse x = match Ocaml_version.of_string x with | Ok x -> `Ok x | Error (`Msg x) -> `Error x i...
d35fd9f2417fc91a3e6d941bcbcf772cf78bd9bced6299c5d6e458a34b33a72a
flyspeck/flyspeck
pa_j.ml
(* ------------------------------------------------------------------------- *) (* New version. *) (* ------------------------------------------------------------------------- *) (* camlp5r pa_macro.cmo *) $ I d : pa_o.ml , v 6.50 2013 - 07 - 02 16:12:43 d...
null
https://raw.githubusercontent.com/flyspeck/flyspeck/05bd66666b4b641f49e5131a37830f4881f39db9/azure/hol-light-nat/pa_j.ml
ocaml
------------------------------------------------------------------------- New version. ------------------------------------------------------------------------- camlp5r pa_macro.cmo --------------------------------------------------------------------...
$ I d : pa_o.ml , v 6.50 2013 - 07 - 02 16:12:43 deraugla Exp $ Copyright ( c ) INRIA 2007 - 2012 #load "pa_extend.cmo"; #load "q_MLast.cmo"; #load "pa_reloc.cmo"; open Pcaml; Pcaml.syntax_name.val := "OCaml"; Pcaml.no_constructors_arity.val := True; $ I d : reloc.ml , v 6.26 2012 - 03 - 09 14:01:54 deraugl...
f8682406035c676967e6ea78fb5c2910fd1676c3014290d784dae9efc880a26a
VERIMAG-Polyhedra/VPL
Qreduction.mli
open BinInt open BinNums open Datatypes open QArith_base val coq_Qred : coq_Q -> coq_Q
null
https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/extracted/Qreduction.mli
ocaml
open BinInt open BinNums open Datatypes open QArith_base val coq_Qred : coq_Q -> coq_Q
a889b87f4ba4f6bdd80430ee94818c348e7294738a6be005d0cc2e96bc0a0709
ygmpkk/house
Lexer.hs
-- #hide ----------------------------------------------------------------------------- -- | Module : Language . . Copyright : ( c ) The GHC Team , 1997 - 2000 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : experimental -- Portability : port...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/haskell-src/Language/Haskell/Lexer.hs
haskell
#hide --------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : portable --------------------------------------------------------------------------- ToDo: Use a lexica...
Module : Language . . Copyright : ( c ) The GHC Team , 1997 - 2000 for Haskell . ToDo : Introduce different tokens for decimal , octal and hexadecimal ( ? ) ToDo : FloatTok should have three parts ( integer part , fraction , exponent ) ( ? ) module Language.Haskell.Lexer (Token(..), lexer) w...
41954eff5e692db1511ff8b78a28f336f5dede96464c6cee0e0b554c5e18c760
kubernetes-client/haskell
CustomTypes.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} module Kubernetes.OpenAPI.CustomTypes where import Data.Aeson (FromJSON, ToJSON) import qualified Data.Aeson as A import Data.Data (Typeable) import Data.Text (Text) import GHC.Base (mzero) import GHC.Generics {- | `IntOrString` IntOrString is a type that...
null
https://raw.githubusercontent.com/kubernetes-client/haskell/e848bc0c5c8d4fe4d2c9e8555331c219814c8ec9/kubernetes/lib/Kubernetes/OpenAPI/CustomTypes.hs
haskell
# LANGUAGE DeriveAnyClass # | `IntOrString` IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.
# LANGUAGE DeriveGeneric # module Kubernetes.OpenAPI.CustomTypes where import Data.Aeson (FromJSON, ToJSON) import qualified Data.Aeson as A import Data.Data (Typeable) import Data.Text (Text) import GHC.Base (mzero) import GHC.Generics data IntOrString = IntOrStringS Text | IntOrStringI Int deriving (Show, E...
7ed80ab9dc7deb18d4fabb66b28f35fca5fd1708cbca935b6399c66a2c1a75e6
janestreet/core_unix
error_checking_mutex.ml
(* Error-checking mutexes. *) open! Core open! Import include Mutex (** [create] like {!Mutex.create}, but creates an error-checking mutex. Locking a mutex twice from the same thread, unlocking an unlocked mutex, or unlocking a mutex not held by the thread will result in a [Sys_error] exception. *) exter...
null
https://raw.githubusercontent.com/janestreet/core_unix/abfad608bb4ab04d16478a081cc284a88c3b3184/error_checking_mutex/src/error_checking_mutex.ml
ocaml
Error-checking mutexes. * [create] like {!Mutex.create}, but creates an error-checking mutex. Locking a mutex twice from the same thread, unlocking an unlocked mutex, or unlocking a mutex not held by the thread will result in a [Sys_error] exception.
open! Core open! Import include Mutex external create : unit -> Mutex.t = "unix_create_error_checking_mutex" let create = create let phys_equal = Stdlib.( == ) let equal (t : t) t' = phys_equal t t' let critical_section l ~f = lock l; Exn.protect ~f ~finally:(fun () -> unlock l) ;; let synchronize f = let m...
e0e880bbe97e5e9d2f9846f3accdd38fc928cedbcd7b112cc8c618e240db47cd
erlang-ls/erlang_ls
els_poi_type_definition.erl
-module(els_poi_type_definition). -behaviour(els_poi). -export([label/1, symbol_kind/0]). -include("els_lsp.hrl"). -opaque id() :: {atom(), arity()}. -export_type([id/0]). -spec label(els_poi:poi()) -> binary(). label(#{id := {Name, Arity}}) -> els_utils:to_binary(io_lib:format("~s/~p", [Name, Arity])). -spec ...
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/d19557a4018cde392006202be8407e4a983d5237/apps/els_lsp/src/els_poi_type_definition.erl
erlang
-module(els_poi_type_definition). -behaviour(els_poi). -export([label/1, symbol_kind/0]). -include("els_lsp.hrl"). -opaque id() :: {atom(), arity()}. -export_type([id/0]). -spec label(els_poi:poi()) -> binary(). label(#{id := {Name, Arity}}) -> els_utils:to_binary(io_lib:format("~s/~p", [Name, Arity])). -spec ...
b00afa5fd97004de4517ce1c116fbfc4c3fbf5f2f295fa3b3a4cdc701cb7ea22
NorfairKing/the-notes
Terms.hs
module Relations.Equivalence.Terms where import Notes makeDefs [ "equivalence relation" , "equivalence class" , "quotient set" ]
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Relations/Equivalence/Terms.hs
haskell
module Relations.Equivalence.Terms where import Notes makeDefs [ "equivalence relation" , "equivalence class" , "quotient set" ]
823e27e7477f3da9723d6f011a37f8bc860560a6a2a53135bc4a5b58a38c5fc2
smallmelon/sdzmmo
mod_user.erl
%%%------------------------------------ @Module : mod_user @Author : xyao %%% @Email : @Created : 2010.05.12 %%% @Description: 用户 %%%------------------------------------ -module(mod_user). -behaviour(gen_server). -export([start_link/0]). -export([init/1, handle_call/3, handle_cast/2, handle_in...
null
https://raw.githubusercontent.com/smallmelon/sdzmmo/254ff430481de474527c0e96202c63fb0d2c29d2/src/mod/mod_user.erl
erlang
------------------------------------ @Email : @Description: 用户 ------------------------------------
@Module : mod_user @Author : xyao @Created : 2010.05.12 -module(mod_user). -behaviour(gen_server). -export([start_link/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -include("common.hrl"). -include("record.hrl"). start_link() -> gen_server:...
f3556504e39de182cf81ae6b30319f79d7a0c58ee92e54118d22a4fee1200ac7
kadena-io/masala
Simple.hs
# LANGUAGE TemplateHaskell # -- | Backend implementation which mutates an 'ExtData', -- Runs in IO for debug logging. module Masala.Ext.Simple where import qualified Data.Map.Strict as M import qualified Data.Set as S import Masala.VM.Types import Masala.Word import Control.Lens import Control.Monad.IO.Class import C...
null
https://raw.githubusercontent.com/kadena-io/masala/9fb5bce2f0cacc2e92862f84110477514e7fb47a/src/Masala/Ext/Simple.hs
haskell
| Backend implementation which mutates an 'ExtData', Runs in IO for debug logging. | Backend data structure. | State-like get. | State-like set. | State-like modify. | Lensy state modify. | Lensy use. | Traversal on state. | Lensy read. | State-like exec. | State-like eval. # INLINE extLog #
# LANGUAGE TemplateHaskell # module Masala.Ext.Simple where import qualified Data.Map.Strict as M import qualified Data.Set as S import Masala.VM.Types import Masala.Word import Control.Lens import Control.Monad.IO.Class import Control.Monad data ExtData = ExtData { _edAccts :: M.Map Address ExtAccount , _...
7594f3cbe4700828295ddf17550d64db2a1c183936b72006689d41aacf96d3af
crategus/cl-cffi-gtk
gtk.text-mark.lisp
;;; ---------------------------------------------------------------------------- ;;; gtk.text-mark.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 binding is ...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/gtk/gtk.text-mark.lisp
lisp
---------------------------------------------------------------------------- gtk.text-mark.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 your opt...
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 ) 2009 - 2011 Copyright ( C ) 2011 - 2021 as published by the Free Software Foundation , either version 3 of...
2b778f30948c19ce5df5ee3e6f866feb6d8a0c53c295e7b6d2a50c42fff7ba0b
ayazhafiz/plts
core.ml
open Syntax open Support.Error (* ------------------------ EVALUATION ------------------------ *) let isval _ t = match t with | TmTrue _ -> true | TmFalse _ -> true | TmAbs (_, _, _, _) -> true | _ -> false exception NoRuleApplies let rec eval1 ctx t = match t with | TmApp (_, TmAbs (_, _, _, t12)...
null
https://raw.githubusercontent.com/ayazhafiz/plts/59b3996642f4fd5941c96a4987643303acc3dee6/tapl/11.5.1-letexercise/core.ml
ocaml
------------------------ EVALUATION ------------------------ ------------------------ TYPING ------------------------
open Syntax open Support.Error let isval _ t = match t with | TmTrue _ -> true | TmFalse _ -> true | TmAbs (_, _, _, _) -> true | _ -> false exception NoRuleApplies let rec eval1 ctx t = match t with | TmApp (_, TmAbs (_, _, _, t12), v2) when isval ctx v2 -> termSubstTop v2 t12 | TmLet (info, letNam...
20318c6ca16877aa75c63f99b6fbbbe21610499baf67206363fd2ed6bb4b86d6
stephenpascoe/hs-arrow
Constants.hs
# LANGUAGE PatternSynonyms , ScopedTypeVariables , ViewPatterns # | Copyright : , and License : LGPL-2.1 Maintainer : ( ) Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1 Maintainer : Iñaki García Etxebarria () -} #define ENABLE_OVERLOADING (MIN_VE...
null
https://raw.githubusercontent.com/stephenpascoe/hs-arrow/86c7c452a8626b1d69a3cffd277078d455823271/gi-arrow/GI/Arrow/Constants.hs
haskell
# LANGUAGE PatternSynonyms , ScopedTypeVariables , ViewPatterns # | Copyright : , and License : LGPL-2.1 Maintainer : ( ) Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1 Maintainer : Iñaki García Etxebarria () -} #define ENABLE_OVERLOADING (MIN_VE...
92b63e70c1507fc9d91aaa919ab29a91b8c13efe9979497308a23e19d918df63
rescript-lang/rescript-compiler
ModuleName.ml
type t = string let curry = "Curry" let rescriptPervasives = "RescriptPervasives" let sanitizeId s = let s = if String.contains s '.' || String.contains s '[' || String.contains s ']' then s |> String.map (function | '.' | '[' | ']' -> '_' | c -> c) else s in if s <...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/6c4514c4c80f440a9f7f9cf4ae7721bdac315b57/jscomp/gentype/ModuleName.ml
ocaml
type t = string let curry = "Curry" let rescriptPervasives = "RescriptPervasives" let sanitizeId s = let s = if String.contains s '.' || String.contains s '[' || String.contains s ']' then s |> String.map (function | '.' | '[' | ']' -> '_' | c -> c) else s in if s <...
ad8adb79bbe91c71cce250e8194f17c9c248b311902b124cb86fa085166f35ff
OCADml/OSCADml
triangle_polygon.ml
open OCADml open OSCADml let triangle_polygon = Scad.polygon [ v2 (-0.5) 0.; v2 0. 1.; v2 0.5 0. ] let () = print_string (Scad.to_string triangle_polygon)
null
https://raw.githubusercontent.com/OCADml/OSCADml/d2f64a3f6454ff37a3c725b619c6a89252af789d/test/triangle_polygon.ml
ocaml
open OCADml open OSCADml let triangle_polygon = Scad.polygon [ v2 (-0.5) 0.; v2 0. 1.; v2 0.5 0. ] let () = print_string (Scad.to_string triangle_polygon)
03b0233f4dd115e0995198b3b6a0fc24a19af7f8d19951ecc42949d593ba1065
manuel-serrano/bigloo
fs.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / bigloo / api / libuv / src / Llib / fs.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creatio...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/0c4e210bdeccc36b880f6e2e52512f205e7bd6af/api/libuv/src/Llib/fs.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * LIBUV fs */ *===========================...
* serrano / prgm / project / bigloo / bigloo / api / libuv / src / Llib / fs.scm * / * Author : * / * Creation : Thu Jul 10 11:28:07 2014 * / * Last change : Fri Nov 11 07:11:05 2022 ( serrano ) * / * ...
2061dd886b7a1c24c83a21d2e9cce175548e5a85933e1ebbf6a31c1532da8fb2
nojb/tortuga
tortu.ml
The MIT License ( MIT ) Copyright ( c ) 2014 - 2016 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rig...
null
https://raw.githubusercontent.com/nojb/tortuga/ab5b7bdbc6a3f59dd13a7d4ac8c96063a543fb36/src/tortu.ml
ocaml
print_endline "Tortuga 0.1";
The MIT License ( MIT ) Copyright ( c ) 2014 - 2016 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rig...
de79df68837d1a06910f077de9f4b7a7bfbd84418a0d2f4c28a31e97e6420274
ghc/ghc
CopySmallArray.hs
# LANGUAGE MagicHash , UnboxedTuples # -- !!! simple tests of copying/cloning primitive arrays -- module Main ( main ) where import GHC.Exts hiding (IsList(..)) import GHC.ST main :: IO () main = putStr (test_copyArray ++ "\n" ++ test_copyMutableArray ++ "\n" ++ test_copyMutableArrayOverlap ...
null
https://raw.githubusercontent.com/ghc/ghc/239202a2b14714740e016d7bbcd4f351356fcb00/testsuite/tests/codeGen/should_run/CopySmallArray.hs
haskell
!!! simple tests of copying/cloning primitive arrays ---------------------------------------------------------------------- Constants All allocated arrays are of this size We copy these many elements ---------------------------------------------------------------------- copySmallArray# Copy a slice of the source...
# LANGUAGE MagicHash , UnboxedTuples # module Main ( main ) where import GHC.Exts hiding (IsList(..)) import GHC.ST main :: IO () main = putStr (test_copyArray ++ "\n" ++ test_copyMutableArray ++ "\n" ++ test_copyMutableArrayOverlap ++ "\n" ++ test_cloneArray ++ "\n" ++ test_c...
8dca66eea97a2eadc2a5757d27364712bd37990dc1022d0cbf1cf89e347b18a9
witan-org/witan
pp.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2017 -- INRIA - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/popop_lib/pp.mli
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2017 -- INRIA - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception i $ I d : pp.mli , v 1.22 2009 - 10 - 19 11:55:33 bobot Exp $ i type formatter = Format.formatter type 'a...
9ee5f22aca8ce71fa9b826c7de50e13dc4bca067bebaac4f88f638b34a29414e
racket/rhombus-prototype
call-result-key.rkt
#lang racket/base (provide #%call-result #%call-results-at-arities) (define #%call-result #f) (define #%call-results-at-arities #f)
null
https://raw.githubusercontent.com/racket/rhombus-prototype/6a199e1fb79cbe7cc2031dc892a2a28d461f1e0c/rhombus/private/call-result-key.rkt
racket
#lang racket/base (provide #%call-result #%call-results-at-arities) (define #%call-result #f) (define #%call-results-at-arities #f)
d027622e53ffbc1715101c24346242405f1c3f3558bff1d35e2324cd228e3337
kupl/FixML
sub3.ml
type ae = CONST of int | VAR of string | POWER of string * int | TIMES of ae list | SUM of ae list let rec diff (ae, str) = let rec isThereStr ae str = match ae with CONST i -> false | VAR s -> (s = str) | POWER (s, i) -> (s = str) | TIMES l -> (match l with [] -> false |...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/differentiate/diff/submissions/sub3.ml
ocaml
type ae = CONST of int | VAR of string | POWER of string * int | TIMES of ae list | SUM of ae list let rec diff (ae, str) = let rec isThereStr ae str = match ae with CONST i -> false | VAR s -> (s = str) | POWER (s, i) -> (s = str) | TIMES l -> (match l with [] -> false |...
cbeff8f1264e6078876728476bacae9b088a8739fa33187f1c4fcbaae1c58260
biocad/hasbolt-extras
Get.hs
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # # O...
null
https://raw.githubusercontent.com/biocad/hasbolt-extras/279193edf8bec50d2facd2ec0ce5153600dcabc9/src/Database/Bolt/Extras/Graph/Internal/Get.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # # LANGUAGE RankNTypes # # LANGUAGE RecordWildCards # * Types for requesting nodes and relationships * Types for extracting nodes and relationships * Graph types * Helpers to extract entities from result graph ----------------------------...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - warn - orphans # module Database.Bolt.Extras.Graph.Internal.Get ( NodeGetter (..) , RelGetter (..) , GetterLike (..) ...
f04e59c64f8bfcf93dcb51faf5a60e2899e749871cbd9d708958a28eaeda84ea
njordhov/mclide
start-allegro.lisp
(in-package :mclide) ;; make new package for allegro plugin? (labels ((implementation-from-user () "Returns the portfile of a running implementation" (let* ((alias (full-pathname "Resources:allegro-executable")) (executable (if (probe-file alias) (truename alias))) ...
null
https://raw.githubusercontent.com/njordhov/mclide/fab77f3b3c856ef211bbaf1158127669759f6fff/mclide/PlugIns%20SRC/Start%20Allegro/MacOS/start-allegro.lisp
lisp
make new package for allegro plugin? always create alias to keep the latest: # alternative to the restarted bool is if app only contains open clients
(labels ((implementation-from-user () "Returns the portfile of a running implementation" (let* ((alias (full-pathname "Resources:allegro-executable")) (executable (if (probe-file alias) (truename alias))) (pathname (catch-cancel ...
c3ce53a330824cdd490b5a13efca0c39d347c19f1f2c4963c12cd9b70054c8db
hoon0612/Lisp-in-OCaml
main.ml
open Lexer open Types open String open Buffer open Environment open Builtin open Printexc let add_functions environment functions = List.iter (fun (name,fn) -> add_function_binding name fn environment) functions ;; let main() = let lexbuf = Lexing.from_channel stdin in let read () = Parser.pmain minilisp lexbu...
null
https://raw.githubusercontent.com/hoon0612/Lisp-in-OCaml/498ace173018af8f7772b3db803872e76b5902cf/main.ml
ocaml
open Lexer open Types open String open Buffer open Environment open Builtin open Printexc let add_functions environment functions = List.iter (fun (name,fn) -> add_function_binding name fn environment) functions ;; let main() = let lexbuf = Lexing.from_channel stdin in let read () = Parser.pmain minilisp lexbu...
b7f00d7aae53a43c4db4f81f3751c82e7c97cf10701cb041809651f6bc4d57a3
josephwilk/musical-creativity
t_network.clj
(ns musical-creativity.integration.t-network (:require [midje.sweet :refer :all] [musical-creativity.composers.network :refer :all])) (fact "it should compose musical events" (count (compose)) => 24)
null
https://raw.githubusercontent.com/josephwilk/musical-creativity/c2e6aab2a26d69ee2e51f4fad84fa3a71805e6ca/test/musical_creativity/integration/t_network.clj
clojure
(ns musical-creativity.integration.t-network (:require [midje.sweet :refer :all] [musical-creativity.composers.network :refer :all])) (fact "it should compose musical events" (count (compose)) => 24)
e4a01e09940fcf2f6ad9d9eee42f4ea9bd240c6ea8c5ba24215b3a23c4bac12a
iu-parfunc/HSBencher
Config.hs
{-# LANGUAGE CPP, NamedFieldPuns, RecordWildCards #-} -- | Code to deal with configuration information, including gathering it from the host environment. -- Also deals with command line arguments. -- Disabling some stuff until we can bring it back up after the big transition [2013.05.28]: #define DISABLED module H...
null
https://raw.githubusercontent.com/iu-parfunc/HSBencher/76782b75b3a4b276c45a2c159e0b4cb6bd8a2360/hsbencher/src/HSBencher/Internal/Config.hs
haskell
# LANGUAGE CPP, NamedFieldPuns, RecordWildCards # | Code to deal with configuration information, including gathering it from the host environment. Also deals with command line arguments. Disabling some stuff until we can bring it back up after the big transition [2013.05.28]: * Configurations` * Command line opt...
#define DISABLED module HSBencher.Internal.Config getConfig, augmentResultWithConfig, addPlugin, Flag(..), all_cli_options ) where import qualified Data.Map as M import Data.Time.Clock (getCurrentTime) import Data.Time.Clock.POSIX (utcTimeToPOSIXSeconds) import GHC.Conc (g...
799e0dd95b5ca84b73a2b855e2cb6210c9f47b0acb3fda8d37a315032112cd33
opencog/opencog
declarative.scm
; Determine declaratives , based on LG link types . ; (define declarative (BindLink (VariableList (var-decl "$interp" "InterpretationNode") (var-decl "$parse" "ParseNode") (var-decl "$wall-inst" "WordInstanceNode") (var-decl "$word-inst" "WordInstanceNode") ) (AndLink (interp-of-parse "$interp" ...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/nlp/relex2logic/rules/declarative.scm
scheme
then its declarative. Mark this as declarative.
Determine declaratives , based on LG link types . (define declarative (BindLink (VariableList (var-decl "$interp" "InterpretationNode") (var-decl "$parse" "ParseNode") (var-decl "$wall-inst" "WordInstanceNode") (var-decl "$word-inst" "WordInstanceNode") ) (AndLink (interp-of-parse "$interp" "$pa...
10554669b803c3686cc81155b159f19543cd1b9862c0e53ed49b653e711d9b94
LesBoloss-es/sorting
Insertionsort.ml
* { 1 Merges and Runs } This file is simply an OCaml version of -optimal-mergesort-code/blob/master/src/wildinter/net/mergesort/Insertionsort.java written by ( ) . The implementations and naming conventions are really not typical of OCaml but the goal is to be really close to the implement...
null
https://raw.githubusercontent.com/LesBoloss-es/sorting/40702b8ff99ac001261af424bd7e0834e2a26bf1/src/array/nearly-optimal-mergesort/Insertionsort.ml
ocaml
* Sort A[left..right] by straight-insertion sort (both endpoints inclusive)
* { 1 Merges and Runs } This file is simply an OCaml version of -optimal-mergesort-code/blob/master/src/wildinter/net/mergesort/Insertionsort.java written by ( ) . The implementations and naming conventions are really not typical of OCaml but the goal is to be really close to the implement...
8f9e921895b1be733a023c702333c5776464c5d4689ba457de185b6285248e77
rleonid/oml
oml_util.ml
Copyright 2015,2016 : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , softwa...
null
https://raw.githubusercontent.com/rleonid/oml/a857d67708827ed00df3f175a942044601ca50cf/src/util/oml_util.ml
ocaml
* type of default argument. * A default value used when not specified.
Copyright 2015,2016 : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , softwa...
f6ea5a63166a736cf13945c8f37ac29493f3b41b71ff1015b89696c73a97959f
basho/clique
clique_typecast.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may ob...
null
https://raw.githubusercontent.com/basho/clique/01a99227a4eb546a9beda763bb5aea6189285a4f/src/clique_typecast.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(...
29d98bd7962b96452e90c69d896a07ebe30c743c3885b7c931dc03d995af5a30
Smoltbob/Caml-Est-Belle
barmgen.ml
(** This module is used to test the backend only. It takes an .asml file as input, parses it and returns ARM code *) (** Calls toplevel_to_arm on the ast of an asml program to generate ARM code. @param l The output of the lexer for the program *) let print_arm l = let s = (Bparser.toplevel Blexer.token l) in ( B...
null
https://raw.githubusercontent.com/Smoltbob/Caml-Est-Belle/3d6f53d4e8e01bbae57a0a402b7c0f02f4ed767c/compiler/barmgen.ml
ocaml
* This module is used to test the backend only. It takes an .asml file as input, parses it and returns ARM code * Calls toplevel_to_arm on the ast of an asml program to generate ARM code. @param l The output of the lexer for the program
let print_arm l = let s = (Bparser.toplevel Blexer.token l) in ( Barmspillgenerator.toplevel_to_arm s ) ; print_newline ( ) print_string (Barmspillgenerator.toplevel_to_arm s); print_newline () * Opens the * .asml file and parses it in order to generate ARM @param f The * .asml file @param f The *.asml...
b5a9dbe1ffac4e19ac99e62212a064780253baa8a3295398de3978d78170ec76
BranchTaken/Hemlock
test_fold2_until_foldi2_until.ml
open! Basis.Rudiments open! Basis open Array let test () = let test_fold2_until uarr0 uarr1 = begin let _ = File.Fmt.stdout |> (fmt Uns.fmt) uarr0 |> Fmt.fmt " " |> (fmt Uns.fmt) uarr1 in let accum = fold2_until uarr0 uarr1 ~init:0L ~f:(fun accum elm0 elm1 -> (ac...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/array/test_fold2_until_foldi2_until.ml
ocaml
open! Basis.Rudiments open! Basis open Array let test () = let test_fold2_until uarr0 uarr1 = begin let _ = File.Fmt.stdout |> (fmt Uns.fmt) uarr0 |> Fmt.fmt " " |> (fmt Uns.fmt) uarr1 in let accum = fold2_until uarr0 uarr1 ~init:0L ~f:(fun accum elm0 elm1 -> (ac...
231b3e5f60cc7dcf70e0d3b2b999062afe6b8020009a2b231014395654f6dda5
msakai/toysolver
FOL.hs
# OPTIONS_GHC -Wall # ----------------------------------------------------------------------------- -- | Module : ToySolver . Arith . . Copyright : ( c ) 2011 - 2013 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -----------------------...
null
https://raw.githubusercontent.com/msakai/toysolver/6233d130d3dcea32fa34c26feebd151f546dea85/src/ToySolver/Arith/Cooper/FOL.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- | Eliminate quantifiers and returns equivalent quantifier-free for...
# OPTIONS_GHC -Wall # Module : ToySolver . Arith . . Copyright : ( c ) 2011 - 2013 module ToySolver.Arith.Cooper.FOL ( eliminateQuantifiers , solveFormula ) where import Control.Monad import ToySolver.Data.OrdRel import ToySolver.Data.Boolean import qualified ToySolver.Data.FOL.Arith ...
cea04c23b8b5caa551bcba7ef0833acc217a06b061123448cea8c579b0a332d2
glguy/advent2020
Bench.hs
{-# Language BlockArguments #-} {-# Options_GHC -Wno-orphans #-} | Module : Advent . Bench Description : Helper for running benchmarks Copyright : ( c ) , 2020 License : ISC Maintainer : Module : Advent.Bench Description : Helper for running benchmarks Copyright : (c) Eric Mertens...
null
https://raw.githubusercontent.com/glguy/advent2020/ed247131684efa699bd34b846b5d939e9db749fc/common/Advent/Bench.hs
haskell
# Language BlockArguments # # Options_GHC -Wno-orphans #
| Module : Advent . Bench Description : Helper for running benchmarks Copyright : ( c ) , 2020 License : ISC Maintainer : Module : Advent.Bench Description : Helper for running benchmarks Copyright : (c) Eric Mertens, 2020 License : ISC Maintainer : -} module Advent.Bench (...
b4a29950f58c0b5cb01c27217ab028b15a24863d830263270fae797247f565c8
paurkedal/batyr
data_sql.ml
Copyright ( C ) 2014 - -2022 Petter A. Urkedal < > * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later ver...
null
https://raw.githubusercontent.com/paurkedal/batyr/77abe7554044472943db577feff96d2a16039cba/batyr-core/lib/data_sql.ml
ocaml
Copyright ( C ) 2014 - -2022 Petter A. Urkedal < > * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later ver...
b35883be85576824c4cf1aa6b6ad0cb77492274a117b31a8840b7801c0cd17ab
simmone/racket-simple-qr
capacity-dic.rkt
#lang racket (provide (contract-out [*capacity_table* hash?] )) (define *capacity_table* '#hash( ("A-L" . ((1 . 25) (2 . 47) (3 . 77) (4 . 114) (5 . 154) (6 . 195) (7 . 224) (8 . 279) (9 . 335) (10 . 395) (11 . 468) (12 . 535) (13 . 619) (14 . 667) (15 . 758) (16 . 854) (17 . 938) (18 . 1046) (19 . 115...
null
https://raw.githubusercontent.com/simmone/racket-simple-qr/904f1491bc521badeafeabd0d7d7e97e3d0ee958/simple-qr/write/lib/func/capacity/capacity-dic.rkt
racket
#lang racket (provide (contract-out [*capacity_table* hash?] )) (define *capacity_table* '#hash( ("A-L" . ((1 . 25) (2 . 47) (3 . 77) (4 . 114) (5 . 154) (6 . 195) (7 . 224) (8 . 279) (9 . 335) (10 . 395) (11 . 468) (12 . 535) (13 . 619) (14 . 667) (15 . 758) (16 . 854) (17 . 938) (18 . 1046) (19 . 115...
6b5dc5f0c04955d2c82061a2f7d19c7b68265ddefc1cc745c83811209412193c
CSCfi/rems
pg_util.clj
(ns rems.db.pg-util (:require [clojure.test :refer [deftest is]]) (:import [java.util Calendar] [org.joda.time Period Duration] [org.postgresql.util PGInterval])) ;; TODO: the database layer could be made to support PGInterval<->Duration conversions automatically (defn ^Duration pg-interval-...
null
https://raw.githubusercontent.com/CSCfi/rems/644ef6df4518b8e382cdfeadd7719e29508a26f0/src/clj/rems/db/pg_util.clj
clojure
TODO: the database layer could be made to support PGInterval<->Duration conversions automatically
(ns rems.db.pg-util (:require [clojure.test :refer [deftest is]]) (:import [java.util Calendar] [org.joda.time Period Duration] [org.postgresql.util PGInterval])) (defn ^Duration pg-interval->joda-duration [^PGInterval interval] (let [calendar (doto (Calendar/getInstance) ...
cfe6f4ff6db6826ceb569ea08a2d2c1baa53b9efffe119eb3fd51f3f30443774
GNOME/gimp-tiny-fu
basic2-logo.scm
; HIGHLIGHT-DROP-SHADOW-LOGO ; draw the specified text over a background with a drop shadow and a highlight (define (apply-basic2-logo-effect img logo-layer bg-color text-color) (define (color-highlight color) ...
null
https://raw.githubusercontent.com/GNOME/gimp-tiny-fu/a64d85eec23b997e535488d67f55b44395ba3f2e/scripts/basic2-logo.scm
scheme
HIGHLIGHT-DROP-SHADOW-LOGO draw the specified text over a background with a drop shadow and a highlight
(define (apply-basic2-logo-effect img logo-layer bg-color text-color) (define (color-highlight color) (let ( (r (car color)) (g (cadr color)) (b (caddr color)) ) (set!...
4de00259b11a78695062f4b584f00247290c6d1d54b23dc0d75958af9a7e3819
argp/bap
piqi_main.ml
Copyright 2009 , 2010 , 2011 , 2012 , 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/libtracewrap/libtrace/piqi/piqi/piqilib/piqi_main.ml
ocaml
command-line parameters close previously opened output channel close previously opened input channel remove temporary files delete output file overwrite argv[1] to contain piqi command turn on extra debugging about source line number tracking top-level command sub-command subcommand -- skip argv[0] ...
Copyright 2009 , 2010 , 2011 , 2012 , 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing...
d1248e76f1edcff3fa172f426b43b77ed15a95a60c0bb089cdc9751848209ae8
huangjs/cl
plotdf.lisp
plotdf.mac - Adds a function plotdf ( ) to Maxima , which draws a Direction Field for an ordinary 1st order differential equation , or for a system of two autonomous 1st order equations . ;; Copyright ( C ) 2004 , 2008 < > ;; ;; This program is free software; you can redistribut...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/share/dynamics/plotdf.lisp
lisp
This program is free software; you can redistribute it and/or modify either version 2 of the 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 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTIC...
plotdf.mac - Adds a function plotdf ( ) to Maxima , which draws a Direction Field for an ordinary 1st order differential equation , or for a system of two autonomous 1st order equations . Copyright ( C ) 2004 , 2008 < > it under the terms of the GNU General Public License as publ...
9e092c126d7588ad02e6578fdff8deee8ded3afdddf8dda503c328adc131eb63
fractalide/fractalide
cardano-wallet.rkt
#!/usr/bin/env racket #lang racket (require fractalide/modules/rkt/rkt-fbp/graph) (define-graph (node "frame" ${gui.frame}) ;; (node "wcreate" ${cardano-wallet.wcreate}) ;; (edge "wcreate" "out" _ "frame" "in" _) (node "model" ${cardano-wallet.model}) (edge "model" "out" _ "frame" "in" _) (node "test" ${...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/cardano-wallet.rkt
racket
(node "wcreate" ${cardano-wallet.wcreate}) (edge "wcreate" "out" _ "frame" "in" _) (node "wallet" ${cardano-wallet.wallet}) (edge "wallet" "out" _ "frame" "in" _)
#!/usr/bin/env racket #lang racket (require fractalide/modules/rkt/rkt-fbp/graph) (define-graph (node "frame" ${gui.frame}) (node "model" ${cardano-wallet.model}) (edge "model" "out" _ "frame" "in" _) (node "test" ${cardano-wallet.temp.add}) (edge "model" "test" _ "test" "in" _) (edge "test" "out" _ "mod...
8c1ca1df9382e5688eeb882ba43e63f7af5c9c5fabc16c2b466a486a10fe5fc6
penpot/penpot
grid_layout.cljc
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.common.geom.shapes.grid-layout (:require [app.common.data.macros :as dm] [app.common.geom.shap...
null
https://raw.githubusercontent.com/penpot/penpot/c8360b19949a34a9b0878a3a6f2dd08529c9c4cb/common/src/app/common/geom/shapes/grid_layout.cljc
clojure
Copyright (c) KALEIDOS INC
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.common.geom.shapes.grid-layout (:require [app.common.data.macros :as dm] [app.common.geom.shapes.grid-layout.layout-data :as gl...
37a592caa2c4362e5783eb91b758389a18392b9876f51c0f5b71ba1d2a78ff71
0install/0install
constants.ml
Copyright ( C ) 2013 , the README file for details , or visit . * See the README file for details, or visit . *) * Some constant strings used in the XML ( to avoid typos ) module FeedAttr = struct let id = "id" let command = "command" let main = "main" let self_test = "self-test" le...
null
https://raw.githubusercontent.com/0install/0install/22eebdbe51a9f46cda29eed3e9e02e37e36b2d18/src/zeroinstall/constants.ml
ocaml
This is stripped out and moved into attr_version
Copyright ( C ) 2013 , the README file for details , or visit . * See the README file for details, or visit . *) * Some constant strings used in the XML ( to avoid typos ) module FeedAttr = struct let id = "id" let command = "command" let main = "main" let self_test = "self-test" le...
4a7b47a06289ff037e89939946483806744d51374f76d4bee3ed311e262b7cc1
parapluu/Concuerror
proxy2.erl
-module(proxy2). -export([proxy2/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. proxy2() -> C = self(), B = proxy(100, C), _A = spawn(fun() -> B ! world, C ! hello end), receive Msg1 -> ok end, receive Msg2 -> ok en...
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/dpor_tests/src/proxy2.erl
erlang
-module(proxy2). -export([proxy2/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. proxy2() -> C = self(), B = proxy(100, C), _A = spawn(fun() -> B ! world, C ! hello end), receive Msg1 -> ok end, receive Msg2 -> ok en...
972b1cd733d50fe85acb552eebcc30de94178b7c22032ed491ae99551732b481
nlamirault/cl-gdata
specials.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: specials.lisp ;;;; Purpose: cl-gdata-base specials informations. Programmer : < > ;;;; This file , part of ...
null
https://raw.githubusercontent.com/nlamirault/cl-gdata/1989b2919cc577c629fa65398a871cefd2229318/src/gdata/service/specials.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: specials.lisp Purpose: cl-gdata-base specials informations. cl-gdata users are granted the rights to distribute and use this software (), also known ...
Programmer : < > This file , part of cl - gdata , is Copyright ( c ) 2008 by as governed by the terms of the Lisp Lesser GNU Public License (in-package :cl-gdata-service) (defparameter *debug* nil "If T, active some logs.") (unless (boundp '+gdata-atom+) (defconstant +gdata-atom+ "application/at...
dc7adfba41c7d8f6a2ec8a09239a5e1cc11830701a09f39639bb2b8116129ee6
ocsigen/obrowser
printexc.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocsigen/obrowser/977c09029ea1e4fde4fb0bf92b4d893835bd9504/rt/caml/printexc.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : printexc.ml 10272 2010 - 04 -...
9e7164fbeff91a40fbb7863dca839c35235a93d2c3a78d52aa4652278217d59d
miraj-project/miraj
co_types.clj
(ns test.co-types (:require [miraj.core :refer :all] [miraj.html.polymer :as h :refer :all] [hiccup.page :refer [html5]] [clojure.tools.logging :as log :only [trace debug error info]] [clojure.pprint :as pp] [clojure.tools.reader :as reader] [clo...
null
https://raw.githubusercontent.com/miraj-project/miraj/bf6f7d4d1c383ac9294dcdef2ad48b3863b6d84f/testx/co_types.clj
clojure
the nasty html/js way - note the typo, namespace is ignored: [dashboard.components :html "components/my-greeting/my-greeting.html"] the cool clojure/clojurescript way: [theme.iron-list :html "styles/lib/page/page.js"] (log/trace (:name (meta (var my-foo))) (meta (var my-foo))) (pp/pprint my-foo) from iron-meta:...
(ns test.co-types (:require [miraj.core :refer :all] [miraj.html.polymer :as h :refer :all] [hiccup.page :refer [html5]] [clojure.tools.logging :as log :only [trace debug error info]] [clojure.pprint :as pp] [clojure.tools.reader :as reader] [clo...
df58357b794586d3a69257670f0efead160087c54fd4cc2e8bc24011df1b7197
txyyss/Project-Euler
Euler021.hs
-- Let d(n) be defined as the sum of proper divisors of n (numbers -- less than n which divide evenly into n). -- If d(a) = b and d(b) = a, where a b, then a and b are an amicable -- pair and each of a and b are called amicable numbers. For example , the proper divisors of 220 are 1 , 2 , 4 , 5 , 10 , 11 , 20 , 2...
null
https://raw.githubusercontent.com/txyyss/Project-Euler/d2f41dad429013868445c1c9c1c270b951550ee9/Euler021.hs
haskell
Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a b, then a and b are an amicable pair and each of a and b are called amicable numbers.
For example , the proper divisors of 220 are 1 , 2 , 4 , 5 , 10 , 11 , 20 , 22 , 44 , 55 and 110 ; therefore d(220 ) = 284 . The proper divisors of 284 are 1 , 2 , 4 , 71 and 142 ; so d(284 ) = 220 . Evaluate the sum of all the amicable numbers under 10000 . module Euler021 where properDivisors :: Int -> [...
1a3d0dd9aed493645d9f1f900eaf6ec5f22a4cb9efb6dfdef3494b9622077e3c
hercules-ci/legacy-old-hercules
Encryption.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # | A module for encrypting and decrypting data for Hercules -} module Hercules.Encryption ( encrypt , decrypt ) where import Control.Monad.Log import Control.Monad.Reader import Crypto.Cipher.Types import Crypto.Random.Entropy import Data.By...
null
https://raw.githubusercontent.com/hercules-ci/legacy-old-hercules/db10eb399a64355cdcbba0e18beb1514588772e9/backend/src/Hercules/Encryption.hs
haskell
# LANGUAGE OverloadedStrings # | Encrypt a 'ByteString' with a new IV. | Get a new random IV | Convert some bytes into an IV
# LANGUAGE ScopedTypeVariables # | A module for encrypting and decrypting data for Hercules -} module Hercules.Encryption ( encrypt , decrypt ) where import Control.Monad.Log import Control.Monad.Reader import Crypto.Cipher.Types import Crypto.Random.Entropy import Data.ByteArray as BA import Data.Byte...
469afab7b4eb1b31256b5906a2cc8efc9b24712529be2cd8e2f56d87d34368cd
janestreet/async_kernel
deferred_array.mli
open! Core * @inline
null
https://raw.githubusercontent.com/janestreet/async_kernel/9575c63faac6c2d6af20f0f21ec535401f310296/src/deferred_array.mli
ocaml
open! Core * @inline
4f30236ca65b798bde124db6511860366ac526be11e47f0823c87eabf10d564e
clingen-data-model/genegraph
condition.clj
(ns genegraph.source.graphql.condition (:require [genegraph.database.query :as q :refer [declare-query create-query ld-> ld1->]] [genegraph.source.graphql.common.cache :refer [defresolver]] [genegraph.source.graphql.common.curation :as curation] [com.walmartlabs.lacinia.schema :ref...
null
https://raw.githubusercontent.com/clingen-data-model/genegraph/8c217e4c3820b3bd0a0937a6e331a6e6a49b8c14/src/genegraph/source/graphql/condition.clj
clojure
DEPRECATED -- genetic condition concept used instead ACTIONABILITY DOSAGE DEPRECATED
(ns genegraph.source.graphql.condition (:require [genegraph.database.query :as q :refer [declare-query create-query ld-> ld1->]] [genegraph.source.graphql.common.cache :refer [defresolver]] [genegraph.source.graphql.common.curation :as curation] [com.walmartlabs.lacinia.schema :ref...
62ec2552710c22f6225f44f8d2595c2b66a8f3211f639d2a6802f0dd380f8e2c
camlp5/camlp5
warnings.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/camlp5/camlp5/fa55f7129107e122ed4fd2121fd036b215c07ec9/ocaml_stuff/4.13.0/utils/warnings.mli
ocaml
************************************************************************ OCaml ...
Pierre Weis & & Damien Doligez , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type loc = { loc_start: Lexing.position; loc_end: Lexing.position; loc_ghost: bool; } ...
fb0c9e95e08f85332e07e4dc9b36a2d9bff9a0808af74030b3f13f0241df4d8a
originrose/cortex
descent.clj
(ns cortex.optimise.descent "Contains API functions for performing gradient descent on pure functions using gradient optimisers. The README has lots of information about how to use the functions in this namespace." (:refer-clojure :exclude [+ - * / defonce]) (:require [clojure.core.matrix :as m] ...
null
https://raw.githubusercontent.com/originrose/cortex/94b1430538e6187f3dfd1697c36ff2c62b475901/examples/optimise/src/cortex/optimise/descent.clj
clojure
Config Interactive gradient descent this string will be passed to util/sformat with the function to regular maps if they appear in the tail of a merge, and the map returned by get-state might be lazy. Termination function builders 'out' transformations call the original termination function, Termination functio...
(ns cortex.optimise.descent "Contains API functions for performing gradient descent on pure functions using gradient optimisers. The README has lots of information about how to use the functions in this namespace." (:refer-clojure :exclude [+ - * / defonce]) (:require [clojure.core.matrix :as m] ...
5aa52fe04fc0bb815dacb88422c28c0430f333ccd3d7d6a4f48687235e37a26d
spechub/Hets
Logic_Framework.hs
# LANGUAGE MultiParamTypeClasses , TypeSynonymInstances , FlexibleInstances # | Module : ./Framework / Logic_Framework.hs Description : Instances of Logic and other classes for the logic Framework Copyright : ( c ) , DFKI Bremen 2009 License : GPLv2 or higher , see LICENSE.txt Maint...
null
https://raw.githubusercontent.com/spechub/Hets/b064f539cefe5d345b78c5888b85ed6a37ffdfb5/Framework/Logic_Framework.hs
haskell
lid for logical frameworks syntax for Framework sentences for Framework static analysis for Framework instance of logic for Framework ---------------------------------------------------------------------------- syntax for Framework sentences for Framework static analysis for Framework instance of logic for Fr...
# LANGUAGE MultiParamTypeClasses , TypeSynonymInstances , FlexibleInstances # | Module : ./Framework / Logic_Framework.hs Description : Instances of Logic and other classes for the logic Framework Copyright : ( c ) , DFKI Bremen 2009 License : GPLv2 or higher , see LICENSE.txt Maint...
6f10e8aaa99659bc087a1c5bac89ebc71f1e624a7b3485d7285b50df5572bc1c
dinosaure/bob
protocol.ml
let src = Logs.Src.create "bob.protocol" module Log = (val Logs.src_log src : Logs.LOG) type ctx = { mutable ic_buffer : bytes; mutable ic_pos : int; mutable ic_max : int; oc_buffer : bytes; mutable oc_pos : int; } let pp ppf ctx = Fmt.pf ppf "{ @[<hov>ic_buffer=@[<hov>%a@];@ ic_pos=%d;@ ic_max=%d;@ ...
null
https://raw.githubusercontent.com/dinosaure/bob/c9b3898e64d6dc64de89a15502acb54e0794d69e/lib/protocol.ml
ocaml
[%04x%02x]
let src = Logs.Src.create "bob.protocol" module Log = (val Logs.src_log src : Logs.LOG) type ctx = { mutable ic_buffer : bytes; mutable ic_pos : int; mutable ic_max : int; oc_buffer : bytes; mutable oc_pos : int; } let pp ppf ctx = Fmt.pf ppf "{ @[<hov>ic_buffer=@[<hov>%a@];@ ic_pos=%d;@ ic_max=%d;@ ...
a549c1a752f91898ba51ee027657802f9c78b2a0e8a7be0c9b7ab050d20a2812
kivra/email
email_adapter_mailgun.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright ( c ) 2012 - 2014 Kivra %%% %%% Permission to use, copy, modify, and/or distribute this software for any %%% purpose with or without fee is hereby granted, provided that the above %%% copyright notice and this permission notice ...
null
https://raw.githubusercontent.com/kivra/email/b62e070111e635e739628254eab8db2835631d28/src/email_adapters/email_adapter_mailgun.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EV...
Copyright ( c ) 2012 - 2014 Kivra THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(email_adapter_mailgun). -behaviour(email_adapter...
efa2764c3c29a39abc316bbc1cf7f3fe327ff3fab644bb2241595c0c0d570b93
melange-re/melange
test_let.ml
let a = 3 in print_int a let b = 3
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/test_let.ml
ocaml
let a = 3 in print_int a let b = 3
f257ab50c14068d32256273306d95ba4c57db9f80688bd9c6411e49d9436576c
hagmonk/depify
lein_pprint_cljs_devtools.clj
{:description "A collection of Chrome DevTools enhancements for ClojureScript developers.", :compile-path "/Users/test/src/other/cljs-devtools/target/classes", :deploy-repositories [["clojars" {:url "/", :password :gpg, :username :gpg}]], :group "binaryage", :license {:name "MIT License", :url "", ...
null
https://raw.githubusercontent.com/hagmonk/depify/b3f61517c860518c1990133aa6eb54caf1e4d591/test/depify/lein_pprint_cljs_devtools.clj
clojure
{:description "A collection of Chrome DevTools enhancements for ClojureScript developers.", :compile-path "/Users/test/src/other/cljs-devtools/target/classes", :deploy-repositories [["clojars" {:url "/", :password :gpg, :username :gpg}]], :group "binaryage", :license {:name "MIT License", :url "", ...
8e30fe47d97c75d0a02feae5c637ca8eec1cdbb75bb65df0097f615ca4743996
ghc/testsuite
TcCoercibleFail.hs
# LANGUAGE RoleAnnotations , RankNTypes , ScopedTypeVariables # import GHC.Prim (coerce, Coercible) import Data.Ord (Down) newtype Age = Age Int deriving Show type role Map nominal _ data Map a b = Map a b deriving Show foo1 = coerce $ one :: () foo2 :: forall m. Monad m => m Age foo2 = coerce $ (return one :: m I...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/TcCoercibleFail.hs
haskell
Do not test this; fills up memory This shoul fail with a context stack overflow
# LANGUAGE RoleAnnotations , RankNTypes , ScopedTypeVariables # import GHC.Prim (coerce, Coercible) import Data.Ord (Down) newtype Age = Age Int deriving Show type role Map nominal _ data Map a b = Map a b deriving Show foo1 = coerce $ one :: () foo2 :: forall m. Monad m => m Age foo2 = coerce $ (return one :: m I...
292aeca6e916d25663b8edc35d5b527f1c31246c9d3cf3d585ec38a56f894fcd
csabahruska/jhc-components
Time.hs
# OPTIONS_JHC -fffi # module System.Time ( ClockTime(), Month(..), Day(..), CalendarTime(..), TimeDiff(..), getClockTime, addToClockTime, diffClockTimes, toCalendarTime, toUTCTime, toClockTime, calendarTimeToString, formatCalendarTime ) where import Data.Char imp...
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/lib/haskell-extras/System/Time.hs
haskell
timezone and then printed. FIXME: This is arguably wrong, since we can't Functions on times can't fail, according to POSIX ----------------------------------------------------------------------------- | converts an internal clock time to a local time, modified by the timezone and daylight savings time settings i...
# OPTIONS_JHC -fffi # module System.Time ( ClockTime(), Month(..), Day(..), CalendarTime(..), TimeDiff(..), getClockTime, addToClockTime, diffClockTimes, toCalendarTime, toUTCTime, toClockTime, calendarTimeToString, formatCalendarTime ) where import Data.Char imp...
56594867bb8545e3c9fd0fcba1b61da2bc75ea6d4cf8d6a09aabd00f44354026
tonyg/racket-font
layout.rkt
#lang racket/base Copyright ( c ) 2011 < > ;; ;; Permission is hereby granted, free of charge, to any person ;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;; restriction, including without limitation the rights to use, copy, ;; mo...
null
https://raw.githubusercontent.com/tonyg/racket-font/ad38475a64ba09d4f483bc387812fd6e79a2e9a4/layout.rkt
racket
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following conditions: ...
#lang racket/base Copyright ( c ) 2011 < > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (re...
7dabdd3339c9c7057668a358591ae2d33c8e0c98463ac50440fa942d991610f6
threatgrid/ctia
core.clj
(ns flanders.core) (defmacro def-enum-type [name _values & _opts] `(def ~name)) (defmacro def-entity-type [name description & map-entries] `(do ~description ~map-entries (def ~name))) (defmacro def-eq [name value & opts] `(do ~value ~opts (def ~name))) (defmacro def-map-type [nam...
null
https://raw.githubusercontent.com/threatgrid/ctia/4d42a63f472490f36814c1855faf50beb45c75ba/.clj-kondo/flanders/core.clj
clojure
(ns flanders.core) (defmacro def-enum-type [name _values & _opts] `(def ~name)) (defmacro def-entity-type [name description & map-entries] `(do ~description ~map-entries (def ~name))) (defmacro def-eq [name value & opts] `(do ~value ~opts (def ~name))) (defmacro def-map-type [nam...
f07915b738573df3acf9653aaef4d26fe2e47f5ea55d2922401f38ea93ddff8c
cmoid/erlbutt
msg_store.erl
SPDX - License - Identifier : GPL-2.0 - only %% Copyright ( C ) 2018 Dionne Associates , LLC . -module(msg_store). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -include("ssb.hrl"). -export([persist/1, fetch_msg/1, fetch_msgs_author/1, fetch_latest_msg/1, fetc...
null
https://raw.githubusercontent.com/cmoid/erlbutt/014d332c15853d8c04ff6d814a3ec2c6534b83d1/apps/ssb/src/msg_store.erl
erlang
?? Makes no sense ?? Makes no sense not very performant, will need a better way to fetch tips of tangles this is pretty gross when you think about it should get the last message in the feed, regardless of sequence number as those could be a lie
SPDX - License - Identifier : GPL-2.0 - only Copyright ( C ) 2018 Dionne Associates , LLC . -module(msg_store). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -include("ssb.hrl"). -export([persist/1, fetch_msg/1, fetch_msgs_author/1, fetch_latest_msg/1, fetch_h...
c95aa8289f1e001b8417f9d4d47c387e55c64d5f0d2524b6f72ce6b629a9c3a0
15Galan/asignatura-204
PriorityQueueFIFOAxioms.hs
------------------------------------------------------------------------------- Axioms priority queue with FIFO behavior for equal priorities -- Data Structures . en Informática . UMA . , , 2012 ------------------------------------------------------------------------------- module DataStructures.PriorityQueu...
null
https://raw.githubusercontent.com/15Galan/asignatura-204/894f33ff8e0f52a75d8f9ff15155c656f1a8f771/Recursos/data.structures/haskell/DataStructures/PriorityQueue/PriorityQueueFIFOAxioms.hs
haskell
----------------------------------------------------------------------------- ----------------------------------------------------------------------------- --------------- --------------- --------------- --------------- este ultimo deja de verificarse para <= no ANTISIM (no todas las colas son "reducibles" a través ...
Axioms priority queue with FIFO behavior for equal priorities Data Structures . en Informática . UMA . , , 2012 module DataStructures.PriorityQueue.PriorityQueueFIFOAxioms where import . PriorityQueue . MaxiphobicHeapPriorityQueue import . PriorityQueue . WBLeftistHeapPriorityQueue import . Priorit...
bdb2772dca9999e1c3936b7d0a2382e16ecc1f5af66a3b446ca1eeae487ab6b4
micmarsh/re-frame-youtube-fx
core_test.cljs
(ns re-frame-youtube-fx.core-test (:require [clojure.test :refer :all] [re-frame-youtube-fx.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/micmarsh/re-frame-youtube-fx/dfbf2790930da2810da2ea8e21a1e72abf82f0d7/test/youtube_fx/core_test.cljs
clojure
(ns re-frame-youtube-fx.core-test (:require [clojure.test :refer :all] [re-frame-youtube-fx.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
de55d129c5528b2c1ad93daf8de707d13619fe5fb863ee8a6f3a7e9a3674b493
gigix/turing_machine
console.clj
(ns turing_machine.console (:use [turing_machine.core]) (:use [turing_machine.m_config]) (:use [turing_machine.tape]) (:use [turing_machine.loader]) (:gen-class) ) (defn execute_machine_with_tape_and_cursor [machine_description steps initial_tape initial_cursor] (def machine (update_cursor (load_machine machine...
null
https://raw.githubusercontent.com/gigix/turing_machine/c1d2e4d81aecbe51a8c35fff7d1b4741b45bdce0/clojure/domain/src/turing_machine/console.clj
clojure
(ns turing_machine.console (:use [turing_machine.core]) (:use [turing_machine.m_config]) (:use [turing_machine.tape]) (:use [turing_machine.loader]) (:gen-class) ) (defn execute_machine_with_tape_and_cursor [machine_description steps initial_tape initial_cursor] (def machine (update_cursor (load_machine machine...
aa6a1e1098d80a640f62565bd25b70b32ee718b98553996b820f9c4908c661d5
tadruj/SCHEMana-ocaml
schemana.ml
open Core.Std Note : MParser overwrites . Std operator < | > let symbol:(char, unit) MParser.t = MParser.any_of "!#$%&|*+-/:<=>?@^_~" let spaces':(unit, unit) MParser.t = MParser.skip_many1 MParser.space type lispVal = | Atom of string | List of lispVal list | DottedList of (lispVal list) * lispVal | Number o...
null
https://raw.githubusercontent.com/tadruj/SCHEMana-ocaml/fbaaee6e1e57ad7a8d4126686c3a2e03a0a27b6f/src/schemana.ml
ocaml
TODO: setVar should return lispVal; -> ( block ) might solve
open Core.Std Note : MParser overwrites . Std operator < | > let symbol:(char, unit) MParser.t = MParser.any_of "!#$%&|*+-/:<=>?@^_~" let spaces':(unit, unit) MParser.t = MParser.skip_many1 MParser.space type lispVal = | Atom of string | List of lispVal list | DottedList of (lispVal list) * lispVal | Number o...