_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
9fb4e5d6971d5714cd73fb82160390503fe81e69ac34b37bcf2d26c757e85181
danielholmes/wolf3d-haskell
Hero.hs
module Wolf3D.Hero ( lastTimeWeaponUsed, simUpdateHero, staticHeroActionsState, createHeroFromTilePosition, modifyHeroActionState, heroSize, createHero, rotateHero, moveHero -- for specs only ) where import Wolf3D.WorldData import Wolf3D.Geom import Data.Vector import Data.Maybe import Data.List ...
null
https://raw.githubusercontent.com/danielholmes/wolf3d-haskell/de934f657f1fb4351591448bb4e25aaa4923571f/src/Wolf3D/Hero.hs
haskell
for specs only ---------------------------------------------------------------------------------------------------------------------- Hero ---------------------------------------------------------------------------------------------------------------------- if ( buttonstate[bt_use] ) Cmd_Use (); ...
module Wolf3D.Hero ( lastTimeWeaponUsed, simUpdateHero, staticHeroActionsState, createHeroFromTilePosition, modifyHeroActionState, heroSize, createHero, rotateHero, ) where import Wolf3D.WorldData import Wolf3D.Geom import Data.Vector import Data.Maybe import Data.List import Data.Bits simUpdateW...
54135381ef25ab572ebf538ddcdac92887d93cd3d2a2e48ecd52162bdf29ae4d
erlang/otp
httpd_test_lib.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2001 - 2023 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/lib/inets/test/httpd_test_lib.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific l...
Copyright Ericsson AB 2001 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(httpd_test_lib). -include("inets_test_lib.hrl"). -export([verify_request/6, verify_request/7, verify_reques...
b00fec1816a4b6cecff154b254356179b12d184b9f0379a5052efc11070e6ae8
juxt/bolt
buddy_user_authenticator.clj
(ns bolt.user.buddy-user-authenticator (:require [buddy.hashers :as hs] [bolt.user.protocols :refer (UserAuthenticator UserPasswordHasher)])) (defrecord BuddyUserAuthenticator [] UserAuthenticator (authenticate-user [_ user credential] (hs/check (:password credential) (:password user))) UserPassword...
null
https://raw.githubusercontent.com/juxt/bolt/f77be416f82c1ca19d5dc20a15942375edc9b740/src/bolt/user/buddy_user_authenticator.clj
clojure
(ns bolt.user.buddy-user-authenticator (:require [buddy.hashers :as hs] [bolt.user.protocols :refer (UserAuthenticator UserPasswordHasher)])) (defrecord BuddyUserAuthenticator [] UserAuthenticator (authenticate-user [_ user credential] (hs/check (:password credential) (:password user))) UserPassword...
74502961c43d5ccd74953ad220b10591f84a3fde2ce09014c379b698765e1270
Tim-ats-d/Punchboy
widgets.ml
open Js_of_ocaml open Js_of_ocaml_tyxml class palette ~default ~initial_clr = object val mutable color = Js.string initial_clr method color = color method default = Js.string default method make_picker : [< Html_types.input ] Tyxml_js.Html.elt = let open Tyxml_js in let html = Ht...
null
https://raw.githubusercontent.com/Tim-ats-d/Punchboy/775df73b9b868eab8985f0d0ccef11355feb39ba/src/widgets.ml
ocaml
open Js_of_ocaml open Js_of_ocaml_tyxml class palette ~default ~initial_clr = object val mutable color = Js.string initial_clr method color = color method default = Js.string default method make_picker : [< Html_types.input ] Tyxml_js.Html.elt = let open Tyxml_js in let html = Ht...
60487153c72808ef204cbb1537b4aefb5fbd467621d6d03b7fb1beb7362c645d
arcadia-unity/ArcadiaGodot
genclass.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/arcadia-unity/ArcadiaGodot/d9881c8132c46f21efde4eb4eb9a534d808cdb20/Clojure/clojure/genclass.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . DM : This is one of the few bootstrap * .clj files where I did not even try to do a line - by - line modification of the JVM version . Too many differences . I put more of the support into C # rather than in Clojure , just so I could bang out the code...
6c8a86fe33c8f50e3a3676d2891f2812a307401b0b4fe290a2522d0b37353e82
reenberg/wobot
Signals.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # Copyright ( c ) 2008 ...
null
https://raw.githubusercontent.com/reenberg/wobot/ce7f112096ba1abd43b8d29da7e8944c2a004125/flask/flask/Flask/Signals.hs
haskell
# LANGUAGE RankNTypes # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the documen...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # Copyright ( c ) 2008 The President and Fellows o...
01bb7011238d7df768b68c637cb1564049f225e3e45a1976df8ed337484d2950
facebook/flow
codemod_annotator.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/3087a6613a614e5a08f1fe2a7cb2b65edd07fff8/src/codemods/utils/codemod_annotator.ml
ocaml
Types with more nodes than this number will cause a warning. Skip keys, qualified identifiers NOTE simplify before validating to avoid flagging spurious empty's, * eg. empty's that will be simplified away as parts of unions. * Do not simplify empties. Ignoring some of the attendant upper bounds * might le...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
d759bd22864adca67a1693f1e8b9a5067b13670c9acfb6e2ce837706b79f41cd
uim/uim
i18n.scm
;;; i18n.scm: Internationalization functions for uim ;;; Copyright ( c ) 2003 - 2013 uim Project ;;; ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: 1 . Redistributions of source ...
null
https://raw.githubusercontent.com/uim/uim/d1ac9d9315ff8c57c713b502544fef9b3a83b3e5/scm/i18n.scm
scheme
i18n.scm: Internationalization functions for uim All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditio...
Copyright ( c ) 2003 - 2013 uim Project 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of authors nor the names of its contributors THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTOR...
ede45938aecc9ebc747ca9df77a8b27b8a10375a4420732961505565255f0246
agocorona/TCache
basicSample.hs
{-# LANGUAGE DeriveDataTypeable #-} module Main where import Data.TCache import Data.TCache.DefaultPersistence import Data.ByteString.Lazy.Char8(pack,unpack) import Control.Concurrent import Data.Foldable (for_) import Data.Typeable import Debug.Trace debug :: a -> String -> a debug a b= trace b a -- The data elem...
null
https://raw.githubusercontent.com/agocorona/TCache/72158de657f72c3b480cea1878b5cebfbfd65d13/demos/basicSample.hs
haskell
# LANGUAGE DeriveDataTypeable # The data elements to be used in the example: A user will repeatedly buy Items. defining prototypes to make missing-fields warning useful again to extract the unique key, to serializa to string to deserialize from string key prefix (or , if use "/", directory wh...
module Main where import Data.TCache import Data.TCache.DefaultPersistence import Data.ByteString.Lazy.Char8(pack,unpack) import Control.Concurrent import Data.Foldable (for_) import Data.Typeable import Debug.Trace debug :: a -> String -> a debug a b= trace b a data Data= User{uname::String, uid::String, spent...
b1eced48b9804ad8c5e238268b75fcdfe6cf5dfb67e23db204ee9e5f20707d52
darrenldl/ProVerif-ATP
selfun.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/darrenldl/ProVerif-ATP/7af6cfb9e0550ecdb072c471e15b8f22b07408bd/proverif2.00/src/selfun.ml
ocaml
v2 is a message variable; the matching works only if t1 is a message Standard, equivalent to the old version without selection function The conclusion is never selected if an hypothesis can be The conclusion can be selected if we don't find better in the hypothesis Very good for skeme, but slightly slow...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
55753cb1b3f97701910f1534f0d159eb47a10538decd6e91f0244d95b80626b4
metabase/metabase
send_pulses.clj
(ns metabase.task.send-pulses "Tasks related to running `Pulses`." (:require [clj-time.core :as time] [clj-time.predicates :as timepr] [clojurewerkz.quartzite.jobs :as jobs] [clojurewerkz.quartzite.schedule.cron :as cron] [clojurewerkz.quartzite.triggers :as triggers] [metabase.driver :as driver] ...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/src/metabase/task/send_pulses.clj
clojure
------------------------------------------------- PULSE SENDING -------------------------------------------------- ------------------------------------------------------ Task ------------------------------------------------------ determine what time it is right now (hour-of-day & day-of-week) in reporting timezone ...
(ns metabase.task.send-pulses "Tasks related to running `Pulses`." (:require [clj-time.core :as time] [clj-time.predicates :as timepr] [clojurewerkz.quartzite.jobs :as jobs] [clojurewerkz.quartzite.schedule.cron :as cron] [clojurewerkz.quartzite.triggers :as triggers] [metabase.driver :as driver] ...
2aa7d59c09b28631b0bed2c081fe68517b01ffba5d1a72ccfe813d4c2ed4be50
rkaippully/gamgee
Main.hs
module Main (main) where import qualified Data.Aeson as Aeson import qualified Data.Time.Clock.POSIX as Clock import qualified Gamgee.Effects as Eff import qualified Gamgee.Operation as Operation import qualified Gamgee.Program.CommandLine as Cmd import qualified Gamgee.Progr...
null
https://raw.githubusercontent.com/rkaippully/gamgee/9e510c24b221181e78cd3bdd79c76b4030ddcc23/app/Main.hs
haskell
module Main (main) where import qualified Data.Aeson as Aeson import qualified Data.Time.Clock.POSIX as Clock import qualified Gamgee.Effects as Eff import qualified Gamgee.Operation as Operation import qualified Gamgee.Program.CommandLine as Cmd import qualified Gamgee.Progr...
9353d9eaa3a773cacf068c61ec8f530640313cf5a4f42e0710059ebcbd632aa9
geremih/xcljb
composite.clj
This file is automatically generated . DO NOT MODIFY . (clojure.core/ns xcljb.gen.composite (:require xcljb.conn-ext xcljb.gen.composite-types)) (def -XCLJB {:minor-version 3, :major-version 0, :header "composite", :extension-multiword false, :extension-name "Composite", :extension-xname "Composite"})...
null
https://raw.githubusercontent.com/geremih/xcljb/59e9ff795bf00595a3d46231a7bb4ec976852396/src/xcljb/gen/composite.clj
clojure
Manually written.
This file is automatically generated . DO NOT MODIFY . (clojure.core/ns xcljb.gen.composite (:require xcljb.conn-ext xcljb.gen.composite-types)) (def -XCLJB {:minor-version 3, :major-version 0, :header "composite", :extension-multiword false, :extension-name "Composite", :extension-xname "Composite"})...
b2c423aa7cbc7a7937c54ba7fa88b049b72aba5aadc3d598affda68877938b83
srstrong/erlawys
aws_ec2_test.erl
%%% Copyright ( c ) 2007 %%% All rights reserved. %%% Developed by : at gmail dot com %%% / %%% %%% Permission is hereby granted, free of charge, to any person obtaining a %%% copy of this software and associated documentation files (the " Software " ) , to dea...
null
https://raw.githubusercontent.com/srstrong/erlawys/18bb4ffdc44710b08433bcab304a266a0ef81e5b/src/aws_ec2_test.erl
erlang
All rights reserved. / Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the following conditions: Redistributions of source code must ...
Copyright ( c ) 2007 Developed by : at gmail dot com " Software " ) , to deal with the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to Neither...
0099a4aa6815c2edc96f045b3e0f54036a64d338e158884729ef36bc8ea983a7
sadiqj/ocaml-esp32
typetexp.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/typing/typetexp.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Types val transl_simple_type: Env.t -> bool -> Parsetree.core_type -> Typedtree.core_type ...
2d634e6961e3aeb54a3f66252fb41cae6a9c4edf6dfa64648be76ae87138853c
day8/re-frame-10x
defaults.cljs
(ns day8.re-frame-10x.inlined-deps.spade.git-sha-93ef290.runtime.defaults (:require [day8.re-frame-10x.inlined-deps.spade.git-sha-93ef290.container.dom :as dom])) (defn create-container [] (dom/create-container))
null
https://raw.githubusercontent.com/day8/re-frame-10x/e7105ccc00b8458cdb2e5696eecc4b8602b53bca/gen-src/day8/re_frame_10x/inlined_deps/spade/git_sha_93ef290/runtime/defaults.cljs
clojure
(ns day8.re-frame-10x.inlined-deps.spade.git-sha-93ef290.runtime.defaults (:require [day8.re-frame-10x.inlined-deps.spade.git-sha-93ef290.container.dom :as dom])) (defn create-container [] (dom/create-container))
f79a111cf3eb0ab4d15536ced264f770f55ebc4e6764574343247291f2c19b28
triffon/fp-2021-22
10.maximum-digit-sum.rkt
#lang racket (require rackunit) (require rackunit/text-ui) (require "common.03.rkt") # # # Зад 10 Най - голямата сума на цифрите на цяло число от интервала [ a , b ] . (define (max x y) (if (> y x) y x)) (define (digit-sum n) (if (< n 10) n (+ (remainder n 10) (digit-sum (quotient n 1...
null
https://raw.githubusercontent.com/triffon/fp-2021-22/63733648cf49c333ca41365abc86c208545059f9/exercises/6/03-higher-order--accumulate/solutions/10.maximum-digit-sum.rkt
racket
#lang racket (require rackunit) (require rackunit/text-ui) (require "common.03.rkt") # # # Зад 10 Най - голямата сума на цифрите на цяло число от интервала [ a , b ] . (define (max x y) (if (> y x) y x)) (define (digit-sum n) (if (< n 10) n (+ (remainder n 10) (digit-sum (quotient n 1...
d5ac519071a0849549995f7a9f1e00b3e60f1035b01880954b5490671fc21639
facebook/duckling
SW_XX.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. An additional grant of patent rights can be found in the PATENTS file in the same directory . -------------...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Ranking/Classifiers/SW_XX.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. An additional grant --------------------------------------------------------------- Auto-generated by regenClassifiers DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW W...
Copyright ( c ) 2016 - present , Facebook , Inc. of patent rights can be found in the PATENTS file in the same directory . @generated module Duckling.Ranking.Classifiers.SW_XX (classifiers) where import Data.String import Prelude import qualified Data.HashMap.Strict as HashMap import Duckling.Ranking.Types cla...
868e60abd182e1791bbe3699e0feacd9aa06f6b44b3efd51ce449814f565596e
yzhs/ocamlllvm
includestruct.ml
(* Test for "include <module-expr>" inside structures *) module A = struct type t = int let x = (1 : t) let y = (2 : t) let f (z : t) = (x + z : t) end module B = struct include A type u = t * t let p = ((x, y) : u) let g ((x, y) : u) = ((f x, f y) : u) end let _ = let print...
null
https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/tests/basic/includestruct.ml
ocaml
Test for "include <module-expr>" inside structures With a functor Exceptions and classes
module A = struct type t = int let x = (1 : t) let y = (2 : t) let f (z : t) = (x + z : t) end module B = struct include A type u = t * t let p = ((x, y) : u) let g ((x, y) : u) = ((f x, f y) : u) end let _ = let print_pair (x,y) = print_int x; print_string ", "; print_i...
8b8f178656cda3d6332fcd319237f6d4306a4aa1268ee96b506d981d42c65f1a
EFanZh/EOPL-Exercises
exercise-2.26-test.rkt
#lang racket/base (require rackunit) (require "../solutions/exercise-2.26.rkt") (check-equal? (mark-leaves-with-red-depth (red-node (blue-node (list (leaf-node 26) (leaf-node 12))) (red-node (leaf-...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-2.26-test.rkt
racket
#lang racket/base (require rackunit) (require "../solutions/exercise-2.26.rkt") (check-equal? (mark-leaves-with-red-depth (red-node (blue-node (list (leaf-node 26) (leaf-node 12))) (red-node (leaf-...
864264f7c010540a3410d3bb0dd2cbafcafde29524ad314f328ccff97efac60f
ucsd-progsys/nate
lexer.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/lex/lexer.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : lexer.mli , v 1.6 2004/04/21 ...
4a6df1df9b96418fe88ae760fd8de5934ffda5eaaeebf9af7c1b281930787133
yesodweb/persistent
Model2.hs
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell #...
null
https://raw.githubusercontent.com/yesodweb/persistent/6de3ffe570911fdbf66c2a760c4c5dab084166c4/persistent/test/Database/Persist/TH/PersistWith/Model2.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LA...
8a6175e55ee68d7bb073937487d7814437c19bade10e75926b6ebac5eed9c5a9
jasonhemann/microKanren
microKanren-test-programs.scm
(define-syntax test-check (syntax-rules () ((_ title tested-expression expected-result) (begin (printf "Testing ~s\n" title) (let* ((expected expected-result) (produced tested-expression)) (or (equal? expected produced) (errorf 'test-check "Fa...
null
https://raw.githubusercontent.com/jasonhemann/microKanren/0f4505db0d2525fc3d567c5183e45f28992cfe72/microKanren-test-programs.scm
scheme
(define-syntax test-check (syntax-rules () ((_ title tested-expression expected-result) (begin (printf "Testing ~s\n" title) (let* ((expected expected-result) (produced tested-expression)) (or (equal? expected produced) (errorf 'test-check "Fa...
47d3aebb6fc4576dedfa000a4870aeb547da92670165c398e2113e2f5574458d
arttuka/reagent-material-ui
noise_control_off.cljs
(ns reagent-mui.icons.noise-control-off "Imports @mui/icons-material/NoiseControlOff as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def noise-control-off (crea...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/noise_control_off.cljs
clojure
(ns reagent-mui.icons.noise-control-off "Imports @mui/icons-material/NoiseControlOff as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def noise-control-off (crea...
e91e23462592cb6ac377377db64d3ac971bfe68d293cba8d5a705e4a2220e4c2
ghcjs/ghcjs
allocLimit4.hs
module Main (main) where import GHC.Conc import Control.Concurrent import Control.Exception import System.Exit import Control.Monad -- check that +RTS -xq is doing the right thing: the test requires -- +RTS -xq300k main = do m <- newEmptyMVar let action = do e <- try $ do setAllocationCounter ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/concurrent/allocLimit4.hs
haskell
check that +RTS -xq is doing the right thing: the test requires +RTS -xq300k
module Main (main) where import GHC.Conc import Control.Concurrent import Control.Exception import System.Exit import Control.Monad main = do m <- newEmptyMVar let action = do e <- try $ do setAllocationCounter (10*1024) enableAllocationLimit print (length [1..]) c...
01671522b26e2d218cc31261afe33962cbc2063bc744e29e2ae79a17343e59cf
clojure-lsp/clojure-lsp
formatting.clj
( ns sample-test.formatting) (def foo 123) (defn bar [ ] ( + 1 foo)) (bar)
null
https://raw.githubusercontent.com/clojure-lsp/clojure-lsp/fe232a719707258ee53d72bf44166d5149e6ee0b/cli/integration-test/sample-test/src/sample_test/formatting.clj
clojure
( ns sample-test.formatting) (def foo 123) (defn bar [ ] ( + 1 foo)) (bar)
f154b76636e166402a373201cfb5fffbb7ee9a43d902368ed2d0e94147740ffe
tweag/asterius
T5719.hs
# LANGUAGE ConstraintKinds , TypeFamilies , FlexibleInstances # module Main where import GHC.Exts (Constraint) import Prelude hiding (Functor, fmap) import Data.Set (Set) import qualified Data.Set as S (map, fromList) class Functor f where type C f a :: Constraint type C f a = () fmap :: (C f...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/indexed-types/T5719.hs
haskell
type C [] a = ()
# LANGUAGE ConstraintKinds , TypeFamilies , FlexibleInstances # module Main where import GHC.Exts (Constraint) import Prelude hiding (Functor, fmap) import Data.Set (Set) import qualified Data.Set as S (map, fromList) class Functor f where type C f a :: Constraint type C f a = () fmap :: (C f...
a45ec4d87c98a8ef9b5e5cc802b28798b13c7f147a3d454c6462fa0192c0c781
hexlet-basics/exercises-clojure
index.clj
(ns index) ;BEGIN (defn humanize-permission [v] (case v "x" "execute" "w" "write" "r" "read")) ;END
null
https://raw.githubusercontent.com/hexlet-basics/exercises-clojure/ede14102d01f9ef736e0af811cd92f5b22a83bc2/modules/20-logic/35-case/index.clj
clojure
BEGIN END
(ns index) (defn humanize-permission [v] (case v "x" "execute" "w" "write" "r" "read"))
96106064d553c88a72e19eaf0559f14788285aea4ba3fa22bd7c5fbaaacafd6d
sol/doctest
Run.hs
# LANGUAGE CPP # module Run ( doctest #ifdef TEST , doctestWithOptions , Summary , expandDirs #endif ) where import Prelude () import Prelude.Compat import Control.Monad (when, unless) import System.Directory (doesFileExist, doesDirectoryExist, getDirectoryContents) import ...
null
https://raw.githubusercontent.com/sol/doctest/8d594a8751cfd26cef7ccf813c8eea08b3ef23f2/src/Run.hs
haskell
| Run doctest with given list of arguments. Example: ... project. If a directory is given, it is traversed to find all .hs and .lhs files inside of it, ignoring hidden entries. | Expand a reference to a directory to all .hs and .lhs files within it. directory, if present.
# LANGUAGE CPP # module Run ( doctest #ifdef TEST , doctestWithOptions , Summary , expandDirs #endif ) where import Prelude () import Prelude.Compat import Control.Monad (when, unless) import System.Directory (doesFileExist, doesDirectoryExist, getDirectoryContents) import ...
4b739ec1a763e92dde233f6228030cf39a9193afbfac7087d0d38a601d63f116
codinuum/cca
parsesrc.ml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
null
https://raw.githubusercontent.com/codinuum/cca/c22bbe5b4d8824695a5844b23309a8652d371e70/src/ast/analyzing/parsesrc.ml
ocaml
let verbose_msg = Xprint.verbose options#verbose_flag setters output cache "-localcachename", Arg.String options#set_local_cache_name, sprintf "DIR\tlocal cache name (default: %s)" options#local_cache_name; mode fact Python try
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
f7ca4a6b8c0c92a00b9e8c08dc0dfc08b7702eba48594b6c71582089ca994c09
syallop/DHT
ID.hs
# LANGUAGE PatternSynonyms , TypeOperators , , DeriveGeneric , GeneralizedNewtypeDeriving # PatternSynonyms , TypeOperators , GeneralizedNewtypeDeriving , DeriveGeneric , GeneralizedNewtypeDeriving #-} | Stability : experimental An ID is a fixed length string of ' Bit 's that ...
null
https://raw.githubusercontent.com/syallop/DHT/a376cf5a423f50212cfd856dcf733eb5177fc00c/DHT/Core/ID.hs
haskell
* Bits | An ID is a string of Bits used to uniquely identify a resource.
# LANGUAGE PatternSynonyms , TypeOperators , , DeriveGeneric , GeneralizedNewtypeDeriving # PatternSynonyms , TypeOperators , GeneralizedNewtypeDeriving , DeriveGeneric , GeneralizedNewtypeDeriving #-} | Stability : experimental An ID is a fixed length string of ' Bit 's that ...
523ee134a9e2d4f66e866cadafc07deddbf1af32dc20e0df8b2ca908a4196bb1
daveliepmann/uruk
core_test.clj
(ns uruk.core-test (:require [clojure.test :refer :all] [uruk.core :refer :all]) (:import [java.util.logging Logger] [java.util Locale TimeZone] [com.marklogic.xcc RequestOptions ContentSource])) ;; FIXME You'll have to fill in database credentials that work for ;; your system: (d...
null
https://raw.githubusercontent.com/daveliepmann/uruk/767dbec658005f76ac4a05abe98459f6a029fe1a/test/uruk/core_test.clj
clojure
FIXME You'll have to fill in database credentials that work for your system: Request options Session configuration false otherwise." XXX DEPRECATED, will be removed in a future version (testing "session creation with connectionProvider content source" (with-open [sess (create-session ...
(ns uruk.core-test (:require [clojure.test :refer :all] [uruk.core :refer :all]) (:import [java.util.logging Logger] [java.util Locale TimeZone] [com.marklogic.xcc RequestOptions ContentSource])) (def db {:uri "xdbc:8383/" :user "uruk-tester" :password "password" ...
a6eb767aebca2e12c019d624b928f6992566f343aa2fb627c6480635a961c0e2
Kappa-Dev/KappaTools
mvbdu_sanity.ml
* * mvbdu_sanity.ml * openkappa * , projet Abstraction , INRIA Paris - Rocquencourt * * Creation : 08/03/2010 * Last modification : Time - stamp : < Jan 01 2017 > * * * This library provides primitives to check that set of finite maps are well - formed * * Copyright 2...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/KaSa_rep/sanity_test/mvbdu_sanity.ml
ocaml
check that mvbdu is uniquely represented in memory check that mvbdu is maximally compressed sibbling should be different successive true_sibbling should be different
* * mvbdu_sanity.ml * openkappa * , projet Abstraction , INRIA Paris - Rocquencourt * * Creation : 08/03/2010 * Last modification : Time - stamp : < Jan 01 2017 > * * * This library provides primitives to check that set of finite maps are well - formed * * Copyright 2...
d7254c7293b5b68857892d604a9e66ddde007f7148b086018831515dc51e2f83
piranha/ecomspark
user.clj
(ns user (:require [mount.core :as mount] [ecomspark.main])) (def start mount/start) (def stop mount/stop)
null
https://raw.githubusercontent.com/piranha/ecomspark/633625c6e9ca592465f1e464b178ea305c323ff5/dev/user.clj
clojure
(ns user (:require [mount.core :as mount] [ecomspark.main])) (def start mount/start) (def stop mount/stop)
d627bede3ece15d57f71ea79a428290844f8a192b7875339d066eaa0ea27471e
footprintanalytics/footprint-web
splice_params_in_response.clj
(ns metabase.query-processor.middleware.splice-params-in-response (:require [metabase.driver :as driver])) (defn- splice-params-in-metadata [{{:keys [params]} :native_form, :as metadata}] no need to i18n this since this message is something only developers who break the QP by changing middleware ;; order will se...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/query_processor/middleware/splice_params_in_response.clj
clojure
order will see we do not want to execute the query with literals spliced
(ns metabase.query-processor.middleware.splice-params-in-response (:require [metabase.driver :as driver])) (defn- splice-params-in-metadata [{{:keys [params]} :native_form, :as metadata}] no need to i18n this since this message is something only developers who break the QP by changing middleware (assert driver/*...
2d85c3e323e182434af010e7d73d501bdaf94fc10c54fc8ba8e1eb6941a3983a
brendanzab/language-garden
Basic.mli
(** A basic scene, implemented using signed distance fields. *) module Make : Scene.F
null
https://raw.githubusercontent.com/brendanzab/language-garden/810679169efd4ee236df35f2efd95df7a2e7de6b/lang-shader-graphics/examples/Basic.mli
ocaml
* A basic scene, implemented using signed distance fields.
module Make : Scene.F
c69f616912f3a15a7b703cb9988c3225b5f753af3caa572f5ef3751e6144a15d
BillHallahan/G2
M16.hs
{-@ LIQUID "--no-termination" @-} module M16 (main) where @ main : : Int - > Int - > { b : | b } @ main :: Int -> Int -> Bool main i j = case while (i, j, i, j) of (i', j', x, y) -> if i' == j' then y == 0 else True while :: (Int, Int, Int, Int) -> (Int, Int, Int, Int) while (i, j, x, y) = if x /= 0...
null
https://raw.githubusercontent.com/BillHallahan/G2/f2584eb2ec211aed73b3ccd88c6e232c3cf4386d/tests/LiquidInf/Paper/Eval/Compare/M16.hs
haskell
@ LIQUID "--no-termination" @
module M16 (main) where @ main : : Int - > Int - > { b : | b } @ main :: Int -> Int -> Bool main i j = case while (i, j, i, j) of (i', j', x, y) -> if i' == j' then y == 0 else True while :: (Int, Int, Int, Int) -> (Int, Int, Int, Int) while (i, j, x, y) = if x /= 0 then while (i, j, x - 1, y - 1) e...
4db22e9a0fa5d7f0b9258e3b118971a6a56a163df657289e26f5eb5d65513d75
bcc32/advent-of-code
main.mli
open! Core open! Async open! Import val game_command : Command.t
null
https://raw.githubusercontent.com/bcc32/advent-of-code/653c0f130e2fb2f599d4e76804e02af54c9bb19f/2019/13/main.mli
ocaml
open! Core open! Async open! Import val game_command : Command.t
705cbfe65eea1b8c3699dab78e5f9783f7917fc2c8184f78daa74ee64dd0484c
lpeterse/haskell-hummingbird
SimpleAuthenticator.hs
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # {-# LANGUAGE TypeFamilies #-} module Hummingbird.SimpleAuthenticator where -------------------------------------------------------------------------------- -- | Module : Hummi...
null
https://raw.githubusercontent.com/lpeterse/haskell-hummingbird/1e380d53cc5bc06ca2cbac2ff8359dc5aab6b199/src/Hummingbird/SimpleAuthenticator.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # ------------------------------------------------------------------------------ | Maintainer : Stability : experimental ------------------------------------------------------------------------------ The user is authenticated if username _and_ suppl...
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE TupleSections # module Hummingbird.SimpleAuthenticator where Module : Hummingbird . SimpleAuthenticator Copyright : ( c ) 2017 License : MIT import Control.Applicative import Control.Exception...
860fbcbcc73601fea9189f8699443656219a767d21ce3214abfccfa73c2a228c
seL4/capdl
PrintUtils.hs
-- Copyright 2020 , Data61 , CSIRO ( ABN 41 687 119 230 ) -- SPDX - License - Identifier : BSD-2 - Clause -- # LANGUAGE FlexibleInstances # {-# LANGUAGE TypeSynonymInstances #-} module CapDL.PrintUtils where import CapDL.Model import CapDL.State (objSizeBits) import Prelude () import Prelude.Compat hiding ((<>)...
null
https://raw.githubusercontent.com/seL4/capdl/ad6f24ee93553f9096f48daa05092087ac1191f8/capDL-tool/CapDL/PrintUtils.hs
haskell
# LANGUAGE TypeSynonymInstances # FIXME: This should check if the obj is in the irqNode | Helper for sorting function. Return results in 'Left', so they sort before non-results.
Copyright 2020 , Data61 , CSIRO ( ABN 41 687 119 230 ) SPDX - License - Identifier : BSD-2 - Clause # LANGUAGE FlexibleInstances # module CapDL.PrintUtils where import CapDL.Model import CapDL.State (objSizeBits) import Prelude () import Prelude.Compat hiding ((<>)) import Text.PrettyPrint import qualified Data...
767de333b9f0285cd4eb62fe32198b1ceae778cccfb54af355ded2d29692c901
TomMD/hs-ed25519-donna
Pure.hs
# LANGUAGE GeneralizedNewtypeDeriving # module Crypto.Ed25519.Pure ( PrivateKey , PublicKey , Signature(..) , generatePrivate , generatePublic , generateKeyPair , sign, valid -- , makeShared -- * Import/Export interfac...
null
https://raw.githubusercontent.com/TomMD/hs-ed25519-donna/7fe438d3e290cfe058e9217a0ecf925169017646/Crypto/Ed25519/Pure.hs
haskell
, makeShared * Import/Export interface |The type of a Ed25519 private key. |The type of a Ed25519 public key. Randomly generate an Ed25519 private key | Returns true if the signature is valid ------------------------------------------------------------------------------ Lifted-C Functions XXX Use c2hs or some ...
# LANGUAGE GeneralizedNewtypeDeriving # module Crypto.Ed25519.Pure ( PrivateKey , PublicKey , Signature(..) , generatePrivate , generatePublic , generateKeyPair , sign, valid , importPublic, importPrivate , exportPubli...
0e2fd0381c13215e28544b467a4e893939d6db0e42150977aba6e5e4a25783a6
SimulaVR/godot-haskell
NativeScript.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.NativeScript (Godot.Core.NativeScript.get_class_docu...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/NativeScript.hs
haskell
# NOINLINE bindNativeScript_get_method_documentation # # NOINLINE bindNativeScript_new #
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.NativeScript (Godot.Core.NativeScript.get_class_docu...
5cd11eee60870f29ab576ccfcb52e314208c875d9ec3a1968a2870411b60961a
thelema/ocaml-community
optionmenu.mli
##ifdef CAMLTK (* Support for tk_optionMenu *) val create: ?name: string -> widget -> textVariable -> string list -> widget * widget (** [create ?name parent var options] creates a multi-option menubutton and its associated menu. The option is also stored in the variable. Both widgets (menubutton and menu) are...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/builtin/optionmenu.mli
ocaml
Support for tk_optionMenu * [create ?name parent var options] creates a multi-option menubutton and its associated menu. The option is also stored in the variable. Both widgets (menubutton and menu) are returned. Support for tk_optionMenu * [create ~parent ~var ~name options] creates a multi-option menubutto...
##ifdef CAMLTK val create: ?name: string -> widget -> textVariable -> string list -> widget * widget ##else val create: parent:'a widget -> variable:textVariable -> ?name: string -> string list -> menubutton widget * menu widget ##endif
233d2ccba1da55546a70bbd38fb095344637bbd0a3a813ef5534102b1da03688
rescript-association/genType
EmitJs.ml
open GenTypeCommon type env = { requiresEarly : (ImportPath.t * bool) ModuleNameMap.t; requires : (ImportPath.t * bool) ModuleNameMap.t; (** For each .cmt we import types from, keep the map of exported types *) cmtToExportTypeMap : CodeItem.exportTypeMap StringMap.t; (** Map of types imported from ...
null
https://raw.githubusercontent.com/rescript-association/genType/1c85cc3b3e212a93080ccb156e407f2be0eb135e/src/EmitJs.ml
ocaml
* For each .cmt we import types from, keep the map of exported types * Map of types imported from other files emit an import {... as ...} immediately add an early require(...) * Read the cmt file referenced in an import type, and recursively for the import types obtained from reading the cmt file. cmt file...
open GenTypeCommon type env = { requiresEarly : (ImportPath.t * bool) ModuleNameMap.t; requires : (ImportPath.t * bool) ModuleNameMap.t; cmtToExportTypeMap : CodeItem.exportTypeMap StringMap.t; exportTypeMapFromOtherFiles : CodeItem.exportTypeMap; importedValueOrComponent : bool; } let requireModule ~import...
c7c5a4e3bd835d27e4a736c56385836f9a7e4a5efd484ce94ce967c7cd099912
NathanReb/ppx_yojson
pattern.mli
(** Pattern rewriting *) val expand : loc:Ppxlib.Location.t -> path:string -> Ppxlib.pattern -> Ppxlib.pattern
null
https://raw.githubusercontent.com/NathanReb/ppx_yojson/085844cbbbc199689faeeee0c9bc1f4d9bc5f4f9/lib/pattern.mli
ocaml
* Pattern rewriting
val expand : loc:Ppxlib.Location.t -> path:string -> Ppxlib.pattern -> Ppxlib.pattern
22d3475df3102da6b5a4d9ccf2b1909b5caaa9b0029a5a55ce2614ced345462d
grin-compiler/ghc-grin
Analysis.hs
# LANGUAGE RecordWildCards , LambdaCase , TupleSections , OverloadedStrings # module Stg.DeadFunctionElimination.Analysis where import Control.Monad import Data.Map (Map) import qualified Data.Map as Map import qualified Data.ByteString as BS import System.Directory import System.FilePath import System.Process import...
null
https://raw.githubusercontent.com/grin-compiler/ghc-grin/ebc4dca2e1f5b3581d4b84726730564ce909d786/patched-lambda-to-ghc-stg/mini-ghc-grin/src/Stg/DeadFunctionElimination/Analysis.hs
haskell
TODO: done - collect module facts done - run analysis done - write module liveness prepare input facts run liveness analysis
# LANGUAGE RecordWildCards , LambdaCase , TupleSections , OverloadedStrings # module Stg.DeadFunctionElimination.Analysis where import Control.Monad import Data.Map (Map) import qualified Data.Map as Map import qualified Data.ByteString as BS import System.Directory import System.FilePath import System.Process import...
0068c04a143c84403f34232f513d08a4e4a3e74055699e170088342c68aa2b74
anoma/juvix-circuits
main.lisp
(in-package :alu) ;; We can generate out our image with ;; (asdf:make :alu) (defparameter +command-line-spec+ '((("input" #\i) :type string :optional t :documentation "Input alucard file location") (("output" #\o) :type string :optional t :documentation "Sets compiler to compile mode and output vampir...
null
https://raw.githubusercontent.com/anoma/juvix-circuits/22afdbaf5b38185fdc221fcd790a04c659a3ee2b/app/main.lisp
lisp
We can generate out our image with (asdf:make :alu) (("check" #\c) :type string :optional t :documentation "a --check or -c flag that takes a string") :type boolean :optional t :documentation "multiple spellings possible") :type boolean :optional t :documentation "--version or -V, you get the idea") really j...
(in-package :alu) (defparameter +command-line-spec+ '((("input" #\i) :type string :optional t :documentation "Input alucard file location") (("output" #\o) :type string :optional t :documentation "Sets compiler to compile mode and output vampir file location") (("help" #\h #\?) :type boolean ...
564c284b13136214f0cd489c5250c056e4357728c420ad7dc0f9581f55741d5f
ndmitchell/shake
Build.hs
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards , PatternGuards , ScopedTypeVariables , NamedFieldPuns , GADTs # # LANGUAGE Rank2Types , ConstraintKinds , TupleSections , ViewPatterns # module Development.Shake.Internal.Core.Build( getDatabaseValue, getDatabaseValueGeneric, historyIsEnabled, historySave, hi...
null
https://raw.githubusercontent.com/ndmitchell/shake/90a52d939d7c0c4cbb1ab6edfc2a53c9be839874/src/Development/Shake/Internal/Core/Build.hs
haskell
------------------------------------------------------------------- LOW-LEVEL OPERATIONS ON THE DATABASE actually safe because we only lose the Locked to enter the diagnostic context ------------------------------------------------------------------- QUERIES ----------------------------------------------------------...
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards , PatternGuards , ScopedTypeVariables , NamedFieldPuns , GADTs # # LANGUAGE Rank2Types , ConstraintKinds , TupleSections , ViewPatterns # module Development.Shake.Internal.Core.Build( getDatabaseValue, getDatabaseValueGeneric, historyIsEnabled, historySave, hi...
2f97bfc4ae3ff79d65d448a9c9c64feadfe32e755d7a710d710e62142af97129
CrossRef/cayenne
category.clj
(ns cayenne.tasks.category (:use [cayenne.ids.issn :only [normalize-issn]] [cayenne.item-tree]) (:require [somnium.congomongo :as m] [clojure.core.memoize :as memoize] [dk.ative.docjure.spreadsheet :as sheet] [cayenne.conf :as conf] [clojure.string :as string]...
null
https://raw.githubusercontent.com/CrossRef/cayenne/02321ad23dbb1edd3f203a415f4a4b11ebf810d7/src/cayenne/tasks/category.clj
clojure
(ns cayenne.tasks.category (:use [cayenne.ids.issn :only [normalize-issn]] [cayenne.item-tree]) (:require [somnium.congomongo :as m] [clojure.core.memoize :as memoize] [dk.ative.docjure.spreadsheet :as sheet] [cayenne.conf :as conf] [clojure.string :as string]...
f83bac9cff4ea203073801e561f35a1947f0d423eb8bd450727630edcbd43ae1
kompendium-ano/factom-haskell-client
UnlockWallet.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeOperators #-} module Factom.RPC.Types.UnlockWallet where import Control.Applicative import Control.M...
null
https://raw.githubusercontent.com/kompendium-ano/factom-haskell-client/87a73bb9079859f6223f8259da0dc9da568d1233/src/Factom/RPC/Types/UnlockWallet.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE TypeOperators # ------------------------------------------------------------------------------
# LANGUAGE DeriveGeneric # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Factom.RPC.Types.UnlockWallet where import Control.Applicative import Control.Monad (forM_, join, mzero) import Data.Aeson (FromJSON (..), To...
e482781268af959e3a5fe667241f798ff282919bdeb755512b5ff3fe64e34d9f
stuhlmueller/jschurch
_head.html.scm
(head (title "BiwaScheme : Scheme interpreter for browsers") (meta :http-equiv "Content-Type" :content "text/html; charset=utf-8" ) (link :href "css/screen.css" :rel "stylesheet" :type "text/css"))
null
https://raw.githubusercontent.com/stuhlmueller/jschurch/58a94802ba987c92cb81e556341f86dba66a8fd1/external/biwascheme/website/_head.html.scm
scheme
(head (title "BiwaScheme : Scheme interpreter for browsers") (meta :http-equiv "Content-Type" :content "text/html; charset=utf-8" ) (link :href "css/screen.css" :rel "stylesheet" :type "text/css"))
c2e748f9db1e0ad803db2ec3dc646009a7499c031b7d8ba8804d132005e341f2
cxphoe/SICP-solutions
table.rkt
(define (make-table) (let ((local-table (list '*table*))) (define (lookup key1 key2) (let ((subtable (assoc key1 (cdr local-table)))) (if subtable (let ((record (assoc key2 (cdr subtable)))) (if record (cdr record) false)) fal...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%204-Metalinguistic%20Abstraction/4.Logical%20Programing/table.rkt
racket
(define (make-table) (let ((local-table (list '*table*))) (define (lookup key1 key2) (let ((subtable (assoc key1 (cdr local-table)))) (if subtable (let ((record (assoc key2 (cdr subtable)))) (if record (cdr record) false)) fal...
6e7c69057a9c8d9ab91d0fa49576bb8635dc9fb025383d8a08d1da6daa0428fc
theasp/parseit
outputs.cljs
(ns parseit.outputs (:require ["js-yaml" :as yaml] [cljs.pprint :as pprint] [parseit.errors :as errors] [cognitect.transit :as transit])) (defn edn-output [data] (pr data)) (defn edn-pretty-output [data] (pprint/pprint data)) (defn json-output [data] (-> (clj->js data) (js/JSON.stringify) ...
null
https://raw.githubusercontent.com/theasp/parseit/7f7002012936a43f64d16d081ee8a0ee0c0b8e50/src/parseit/outputs.cljs
clojure
(ns parseit.outputs (:require ["js-yaml" :as yaml] [cljs.pprint :as pprint] [parseit.errors :as errors] [cognitect.transit :as transit])) (defn edn-output [data] (pr data)) (defn edn-pretty-output [data] (pprint/pprint data)) (defn json-output [data] (-> (clj->js data) (js/JSON.stringify) ...
04b131fd7d197ca25434dd7c008971d3e00d1c30f50c1fee2255a031bff0b134
andrewvc/engulf
core.clj
(ns engulf.core (:require [engulf.settings :as settings] [engulf.database :as database] [engulf.utils :as utils] [engulf.job-manager :as jmgr] [engulf.migrations :as migrations] [engulf.control :as ctrl] [engulf.worker-client :as w-client] ...
null
https://raw.githubusercontent.com/andrewvc/engulf/31c71c1e0b304a6c99189d0448105299ef05619c/src/engulf/core.clj
clojure
These really will only change *once*
(ns engulf.core (:require [engulf.settings :as settings] [engulf.database :as database] [engulf.utils :as utils] [engulf.job-manager :as jmgr] [engulf.migrations :as migrations] [engulf.control :as ctrl] [engulf.worker-client :as w-client] ...
5af4e2876ad73bed8d07c38fac95e20420e7e7fe8660e9d502e8a9e5b60d1d27
electric-sql/vaxine
antidotec_pb_management.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 SyncFree Consortium . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain...
null
https://raw.githubusercontent.com/electric-sql/vaxine/872a83ea8d4935a52c7b850bb17ab099ee9c346b/apps/antidotec_pb/src/antidotec_pb_management.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 SyncFree Consortium . 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(anti...
1cd3c0c1ab28236903a354418646d0d5946cdd5d1df4bec15a615faf483d1936
atomvm/atomvm_lib
lora_sender.erl
%% Copyright ( c ) 2021 dushin.net %% All rights reserved. %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in wr...
null
https://raw.githubusercontent.com/atomvm/atomvm_lib/0a35b8efc334a97fcc4e23d4d948962160e5fd4d/examples/lora_example/src/lora_sender.erl
erlang
All rights reserved. you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific ...
Copyright ( c ) 2021 dushin.net Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(lora_sender). -export([start/0]). start() -> LoraConfig = config:lora_config(sx126x), {ok, Lora} = lora:start(LoraConfig), ...
3f50f736e9d2ccd2322035862485cc595d73133ef5e0ccf6b22849a2976302bd
libguestfs/virt-v2v
target_bus_assignment.ml
virt - v2v * Copyright ( C ) 2009 - 2020 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
null
https://raw.githubusercontent.com/libguestfs/virt-v2v/d2b01e487ff4ef56d139a5e0f22efd9b2ed9b64c/convert/target_bus_assignment.ml
ocaml
Wild guess, but should be safe. Insert a slot into the bus array, making the array bigger if necessary. Insert a slot into the bus, but if the desired slot is not empty, then * increment the slot number until we find an empty one. Returns * true if we got the desired slot. Return true if slot i is empty in t...
virt - v2v * Copyright ( C ) 2009 - 2020 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
67a5ca84e77625ac72335922af16b5c375f00bf4ed338a58fa41e8730faca8ce
gtrak/no.disassemble
r.clj
(ns no.disassemble.r "Low-level disassembly of classes. Uses the Eclipse jdt disassembler, but coerces its object graph into idiomatic Clojure data structures. The motherlode: " (:refer-clojure :exclude [methods]) (:import (org.eclipse.jdt core.JavaCore core.Signature ...
null
https://raw.githubusercontent.com/gtrak/no.disassemble/5adfcf23d7825fe660b492d9db4d238290df6506/src/no/disassemble/r.clj
clojure
These protocols are required for the bytecode visitor Keyword name for fun, without leading _ Drop types Not defined in this version of the jar :( _invokedynamic ( int pc, int index, IConstantPoolEntry nameEntry, Not defined in this version of the jar. :( ...
(ns no.disassemble.r "Low-level disassembly of classes. Uses the Eclipse jdt disassembler, but coerces its object graph into idiomatic Clojure data structures. The motherlode: " (:refer-clojure :exclude [methods]) (:import (org.eclipse.jdt core.JavaCore core.Signature ...
b2f523c77a7c81653ec43148312644554d61524f483f8ac93a9b3c78abfded7f
backtracking/ocaml-bazaar
pmpq.mli
* Poor man 's priority queue . Straightforward implementation using ` Set ` from 's standard library . Yet allows duplicate elements i.e. the priority queue is a bag . Straightforward implementation using `Set` from OCaml's standard library. Yet allows duplicate elements i.e. the priority queu...
null
https://raw.githubusercontent.com/backtracking/ocaml-bazaar/672c72961eb490b4baccf5632339d39b371d11ad/pmpq.mli
ocaml
* Poor man 's priority queue . Straightforward implementation using ` Set ` from 's standard library . Yet allows duplicate elements i.e. the priority queue is a bag . Straightforward implementation using `Set` from OCaml's standard library. Yet allows duplicate elements i.e. the priority queu...
1d7dd9fd4113188eca164f8b63153fa9ed69b8dba238894c3c151e6d10984544
dyoo/whalesong
hello.rkt
#lang whalesong/cs019 "hello world"
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/examples/cs019/hello.rkt
racket
#lang whalesong/cs019 "hello world"
79d0f9748421c3ed977458659166ec03e0226fcc87751a553c28e330a8d64fb6
monadbobo/ocaml-core
fd_by_descr.mli
(** [Fd_by_descr] is a table of the open [Fd.t]s, indexed by file descriptor number. In this interface, we use [Raw_fd.t] rather than [Fd.t] to avoid a dependency cycle, because the [Fd] module can't be defined yet. *) open Core.Std open Import type t with sexp_of val invariant : t -> unit val create : num...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/async/unix/lib/fd_by_descr.mli
ocaml
* [Fd_by_descr] is a table of the open [Fd.t]s, indexed by file descriptor number. In this interface, we use [Raw_fd.t] rather than [Fd.t] to avoid a dependency cycle, because the [Fd] module can't be defined yet.
open Core.Std open Import type t with sexp_of val invariant : t -> unit val create : num_file_descrs:int -> t val add : t -> Raw_fd.t -> unit val find : t -> File_descr.t -> Raw_fd.t option val remove : t -> Raw_fd.t -> unit
9ba1b6de265824ccffdad35510ac9dbe371624b77e24e147b640e491bfeba712
joearms/crypto_tutorial
segmenting.erl
-module(segmenting). %% this is the module comment -compile(export_all). -import(lists,[reverse/1]). %% crude attempt to segment a file %% We only consider files that are compilable The first step is to parse all forms etc . test() -> segment("./segmenting.erl"). this comment is for erl2emod -spec erl2emod...
null
https://raw.githubusercontent.com/joearms/crypto_tutorial/e487699017dbd102f67d18f466ff44445d10ba3e/src/segmenting.erl
erlang
this is the module comment crude attempt to segment a file We only consider files that are compilable Here are some test cases elib2_misc:dump("raw_forms1.tmp",Z1), elib2_misc:dump("segments.tmp",Segments), summarise classifies the parse tree fallback is used if the form is illegal and cannot be used sneaky r...
-module(segmenting). -compile(export_all). -import(lists,[reverse/1]). The first step is to parse all forms etc . test() -> segment("./segmenting.erl"). this comment is for erl2emod -spec erl2emod(string()) -> boolean(). erl2emod(File) -> J = segment(File), elib1_misc:dump(Z = File ++ ".tmp", J), ...
7c8f8d36a264b565b87ce175030ecfcdd63a88326595495543f5215d196388de
csabahruska/gpipe-quake3
Main.hs
# LANGUAGE OverloadedStrings , , TupleSections # import "linear" Linear import Text.Show.Pretty import Data.Attoparsec.ByteString.Char8 import Data.Maybe import Data.Char import Data.List (isPrefixOf,partition) import System.Directory import System.Environment import System.FilePath import qualified Data.ByteString....
null
https://raw.githubusercontent.com/csabahruska/gpipe-quake3/cf625599b6220cf8b4b27a931f94446a080529e6/Main.hs
haskell
extract spawn points load textures return [ ( 1 / t / fromIntegral ( length imgs),cycle $ zip ( repeat ( uniformFTexture2D texSlotName slotU ) ) txList ) ] return [(1 / t / fromIntegral (length imgs),cycle $ zip (repeat (uniformFTexture2D texSlotName slotU)) txList)] pk3 handling
# LANGUAGE OverloadedStrings , , TupleSections # import "linear" Linear import Text.Show.Pretty import Data.Attoparsec.ByteString.Char8 import Data.Maybe import Data.Char import Data.List (isPrefixOf,partition) import System.Directory import System.Environment import System.FilePath import qualified Data.ByteString....
d235cf40afefe9dfc29e4ef73fab281fc168c0181d0d5c60a29b85e6065a223e
BTowersCoding/sort
heap.cljs
(ns sort.heap) (defn tree-height "Returns the number of levels high a binary tree or heap consisting of n elements must be, or what level node n is on." [n] (inc (.floor js/Math (.log2 js/Math n)))) (defn tree-width "Returns the number of nodes wide a binary tree or heap consisting of n elements must...
null
https://raw.githubusercontent.com/BTowersCoding/sort/5c8748782fa2c89d24403f5d9c75f2c250432061/src/sort/heap.cljs
clojure
x-offsets for specific widths y-offsets for specific heights
(ns sort.heap) (defn tree-height "Returns the number of levels high a binary tree or heap consisting of n elements must be, or what level node n is on." [n] (inc (.floor js/Math (.log2 js/Math n)))) (defn tree-width "Returns the number of nodes wide a binary tree or heap consisting of n elements must...
45068a10c6d5248b4d0c7339c2a3411bcdadbd79f296d44573937fec7e252814
ghc/ghc
BlockLayout.hs
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE MultiWayIf #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # -- Copyright ( c ) 2018 -- module GHC.CmmToAsm.BlockLayout ( sequenceTop, backendMaintainsCfg) where import GHC.Prelude hiding (head, init, last, tail) ...
null
https://raw.githubusercontent.com/ghc/ghc/93f0e3c49cea484bd6e838892ff8702ec51f34c3/compiler/GHC/CmmToAsm/BlockLayout.hs
haskell
# LANGUAGE MultiWayIf # --------------------------------------------------------------------------- --------------------------------------------------------------------------- --------------------------------------------------------------------------- ---------------------------------------------------------------...
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # Copyright ( c ) 2018 module GHC.CmmToAsm.BlockLayout ( sequenceTop, backendMaintainsCfg) where import GHC.Prelude hiding (head, init, last, tail) import qualified GHC.Prelude as Pa...
4993773149e9490b274c45a8132e8915dc64c14bbb11516907a293f3def919be
vlstill/hsExprTest
script.nok.hs
foo = undefined
null
https://raw.githubusercontent.com/vlstill/hsExprTest/391fc823c1684ec248ac8f76412fefeffb791865/test/script.nok.hs
haskell
foo = undefined
2141865f5be2b6b8a51a5c2f2ece0334fb79352d7e89b952d0ae6d929d80b40b
nuprl/gradual-typing-performance
medians.rkt
#lang racket (require ;"data.rkt" glob math/statistics plot/no-gui ) ;(define data* (list GREGOR - DATA KCFA - DATA LNM - DATA MBTA - DATA MORSECODE - DATA QUAD - DATA SIEVE - DATA ; SNAKE-DATA SUFFIXTREE - DATA ; SYNTH-DATA TETRIS - DATA ZORDOZ - DATA ;)) ;(for ([d (in-list d...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/paper/popl-2016/poster/img/medians.rkt
racket
"data.rkt" (define data* (list SNAKE-DATA SYNTH-DATA )) (for ([d (in-list data*)]) (system (format "racket6.3 scripts/sort-configurations.rkt '~a'" d))) (for ([g (in-glob "*-worst*")]) (for ([d (in-list d2)]) (for ([d (in-list d2)]) [ticks-default-number (length proj)] [md (in-list median*)]
#lang racket (require glob math/statistics plot/no-gui ) GREGOR - DATA KCFA - DATA LNM - DATA MBTA - DATA MORSECODE - DATA QUAD - DATA SIEVE - DATA SUFFIXTREE - DATA TETRIS - DATA ZORDOZ - DATA ( " order : " ) ( ) ) ( define d2 ( for / list ( [ g ( in - glob " * -worst.rktd...
4aa371610f5103b54aea74c1f5a00e43454aec4b047c8bebdc8c342372e215e3
yi-editor/yi
Region.hs
# LANGUAGE CPP # {-# OPTIONS_HADDOCK show-extensions #-} -- | -- Module : Yi.Buffer.Region -- License : GPL-2 -- Maintainer : -- Stability : experimental -- Portability : portable -- -- This module defines buffer operation on regions module Yi.Buffer.Region ( module Yi.Region , swapRegionsB , ...
null
https://raw.githubusercontent.com/yi-editor/yi/58c239e3a77cef8f4f77e94677bd6a295f585f5f/yi-core/src/Yi/Buffer/Region.hs
haskell
# OPTIONS_HADDOCK show-extensions # | Module : Yi.Buffer.Region License : GPL-2 Maintainer : Stability : experimental Portability : portable This module defines buffer operation on regions | Delete an arbitrary part of the buffer | Replace a region with a given rope. | Map the given functio...
# LANGUAGE CPP # module Yi.Buffer.Region ( module Yi.Region , swapRegionsB , deleteRegionB , replaceRegionB , readRegionB , mapRegionB , modifyRegionB , winRegionB , inclusiveRegionB , blockifyRegion , joinLinesB , concatLinesB , linesOfRegionB ) where import Control.Monad ...
a96666b805df7835e0048ea01a2c721a540d2ab36ac8e582c9f898e1f7c2a923
MisakaCenter/RayTracer.ml
Setting.ml
open Raytracerml.Vec open Raytracerml.Hittable_list open Raytracerml.World (* Image *) let aspect_ratio = 1.0 /. 1.0 let image_width : int = 600 let image_height : int = int_of_float (float_of_int image_width /. aspect_ratio) let color : int = 255 let max_depth : int = 50 let focal_length : float = 1.0 let sampl...
null
https://raw.githubusercontent.com/MisakaCenter/RayTracer.ml/07bacba1ae3f46e1055465a7b79af5cfbf5d2010/src/Setting.ml
ocaml
Image Camera vertical field-of-view in degrees world let world: hittable_list = random_scene
open Raytracerml.Vec open Raytracerml.Hittable_list open Raytracerml.World let aspect_ratio = 1.0 /. 1.0 let image_width : int = 600 let image_height : int = int_of_float (float_of_int image_width /. aspect_ratio) let color : int = 255 let max_depth : int = 50 let focal_length : float = 1.0 let samples_per_pixel...
1e4043bd02e4446d55bf6faeb2d001a689dbbb0d90b1b7a2a74bed7b2acef40f
pedropramos/PyonR
files.rkt
(module files racket (provide (all-defined-out)) (require "engine.rkt") (struct file_obj python-object (port)) (define (wrap-port port) (file_obj py-file port)) (define (unwrap-port file) (file_obj-port file)) (define (py-file-write file data) (void (write-string data (unwr...
null
https://raw.githubusercontent.com/pedropramos/PyonR/16edd14f3950fd5a01f8b0237e023536ef48d17b/engine/files.rkt
racket
(module files racket (provide (all-defined-out)) (require "engine.rkt") (struct file_obj python-object (port)) (define (wrap-port port) (file_obj py-file port)) (define (unwrap-port file) (file_obj-port file)) (define (py-file-write file data) (void (write-string data (unwr...
781275daf47c8bd40031d671bb930f08495b559148002c608451ec70b51918d2
namin/inc
tests-4.1-req.scm
(load "tests-4.1.3-req.scm") (load "tests-4.1.2-req.scm") (load "tests-4.1.1-req.scm")
null
https://raw.githubusercontent.com/namin/inc/3f683935e290848485f8d4d165a4f727f6658d1d/src/tests-4.1-req.scm
scheme
(load "tests-4.1.3-req.scm") (load "tests-4.1.2-req.scm") (load "tests-4.1.1-req.scm")
f94d00539c51f290a9429cb0ab41d43a3ed95f16c27a0417d13ca64c4e1d530f
xh4/web-toolkit
memory.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; memory.lisp --- Tests for memory referencing. ;;; Copyright ( C ) 2005 - 2006 , < > ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal ...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/cffi_0.20.1/tests/memory.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- memory.lisp --- Tests for memory referencing. 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, distribut...
Copyright ( C ) 2005 - 2006 , < > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (in-package ...
23862fb3422b2df574658ba75bf69c7fbc7de726259840fe1fb338a4be8dc609
sbcl/sbcl
float.pure.lisp
;;;; floating-point-related tests with no side effects This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This so...
null
https://raw.githubusercontent.com/sbcl/sbcl/e569f241d803da615dca464675f646eedc60e806/tests/float.pure.lisp
lisp
floating-point-related tests with no side effects more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. ANSI: FLOAT-RADIX should signal an error ...
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (with-test (:name (:infinities :comparison)) (dolist (ifnis (list (cons single-float-positive-infinity single-float-negative-infinity) ...
d0ca4651a58239d94f2bdc477de36ab6a83c73aa65fe675ad324052b6fc7d4fb
lispbuilder/lispbuilder
error.lisp
(in-package #:lispbuilder-sdl-cffi) (cffi:defcfun ("SDL_GetError" SDL-Get-Error) :string) (cffi:defcfun ("SDL_ClearError" SDL-Clear-Error) :void) (cffi:defcenum SDL-error-code :SDL-ENOMEM :SDL-EFREAD :SDL-EFWRITE :SDL-EFSEEK :SDL-UNSUPPORTED :SDL-LASTERROR) (cffi:defcfun ("SDL_Error" SDL-Error) :void (code...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/cffi/error.lisp
lisp
(in-package #:lispbuilder-sdl-cffi) (cffi:defcfun ("SDL_GetError" SDL-Get-Error) :string) (cffi:defcfun ("SDL_ClearError" SDL-Clear-Error) :void) (cffi:defcenum SDL-error-code :SDL-ENOMEM :SDL-EFREAD :SDL-EFWRITE :SDL-EFSEEK :SDL-UNSUPPORTED :SDL-LASTERROR) (cffi:defcfun ("SDL_Error" SDL-Error) :void (code...
99b87d22a1559f26a4efd561b15f3f43d72848641da4b5d0311d7526b85f6dbb
greghendershott/frog
scribble.rkt
#lang racket/base (require (only-in scribble/core style) (only-in scribble/manual para) (only-in scribble/html-properties attributes alt-tag) (only-in scribble/base literal)) (provide pygment-code) (module+ test (require rackunit)) For use in Scribble source file . Lets you create a <...
null
https://raw.githubusercontent.com/greghendershott/frog/93d8b442c2e619334612b7e2d091e4eb33995021/frog/scribble.rkt
racket
a language tag that can be syntax highlighted by Pygments. Example usage: } }
#lang racket/base (require (only-in scribble/core style) (only-in scribble/manual para) (only-in scribble/html-properties attributes alt-tag) (only-in scribble/base literal)) (provide pygment-code) (module+ test (require rackunit)) For use in Scribble source file . Lets you create a <...
9f855c0a78f9f9e0f63712f2c50d9aa28435134c8284b6750a88ab3622ac4747
elastic/eui-cljs
pagination.cljs
(ns eui.pagination (:require ["@elastic/eui/lib/components/pagination/pagination.js" :as eui])) (def EuiPagination eui/EuiPagination)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/pagination.cljs
clojure
(ns eui.pagination (:require ["@elastic/eui/lib/components/pagination/pagination.js" :as eui])) (def EuiPagination eui/EuiPagination)
983baed5f86b70e7429baee9d42fe3e1414d054be65a3da461c9750a1f11b447
rabbitmq/rabbitmq-shovel
amqp10_SUITE.erl
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 ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(amqp10_SUITE). -include_lib("common_test...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-shovel/f9f4e95343a81aea093687b0fd610711bd3f70ac/test/amqp10_SUITE.erl
erlang
------------------------------------------------------------------- Testsuite setup/teardown. ------------------------------------------------------------------- ------------------------------------------------------------------- Testcases. ------------------------------------------------------------------- ne...
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 ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(amqp10_SUITE). -include_lib("common_test/inclu...
9254cfff5f8c6cc82d6fcdad5b92bd7611b4190ad564632ead57c48ea105184a
chaoxu/fancy-walks
C.hs
{-# OPTIONS_GHC -O2 #-} import Data.List import Data.Maybe import Data.Char import Data.Array import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteString.Char8 (ByteString) import qualified Dat...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/code.google.com/codejam/Google%20Code%20Jam%202011/Qualification%20Round/C.hs
haskell
# OPTIONS_GHC -O2 #
import Data.List import Data.Maybe import Data.Char import Data.Array import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as BS...
73fb28880d9b271cb8410f4e333d5338571e6a8b014de3679d6b53be38e37e8a
theodormoroianu/SecondYearCourses
Imp.hs
module Imp where type Name = String data BinAop = Add | Mul | Sub | Div | Mod deriving (Show) data BinCop = Lt | Lte | Gt | Gte deriving (Show) data BinEop = Eq | Neq deriving (Show) data BinLop = And | Or deriving (Show) data Exp = Id Name | I Integer | B Bool | UMin Exp | BinA BinAop...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%205/Imp.hs
haskell
module Imp where type Name = String data BinAop = Add | Mul | Sub | Div | Mod deriving (Show) data BinCop = Lt | Lte | Gt | Gte deriving (Show) data BinEop = Eq | Neq deriving (Show) data BinLop = And | Or deriving (Show) data Exp = Id Name | I Integer | B Bool | UMin Exp | BinA BinAop...
802c8f9cc44845dedad1e390fcdd0eae738ae2410f34f0ee314104aac1f9d7b1
jakubfijalkowski/hlibsass
Types.hs
{-# LANGUAGE EmptyDataDecls #-} module Bindings.Libsass.Types where import Foreign import Foreign.C -- From sass/base.h -- | Defines output style of compiled CSS. data SassOutputStyle = SassStyleNested | SassStyleExpanded | SassStyleCompact ...
null
https://raw.githubusercontent.com/jakubfijalkowski/hlibsass/aac28a320f4b7435dbb91af11413762679631f0f/Bindings/Libsass/Types.hs
haskell
# LANGUAGE EmptyDataDecls # From sass/base.h | Defines output style of compiled CSS. ^ Marked as internal ^ Marked as internal ^ Marked as internal From sass/context.h From sass/functions.h From sass/values.h ^ Marked as internal
module Bindings.Libsass.Types where import Foreign import Foreign.C data SassOutputStyle = SassStyleNested | SassStyleExpanded | SassStyleCompact | SassStyleCompressed deriving (Eq, Show) instance Enum SassOutput...
9937f9fc320ec2b771512a3ae79dd55ebfd7af4729c6540c6f7de909779b2488
andreas/ocaml-graphql-server
graphql_intf.ml
(* IO signature *) module type IO = sig type +'a t val return : 'a -> 'a t val bind : 'a t -> ('a -> 'b t) -> 'b t module Stream : sig type 'a t type +'a io val map : 'a t -> ('a -> 'b io) -> 'b t val iter : 'a t -> ('a -> unit io) -> unit io val close : 'a t -> unit end with type...
null
https://raw.githubusercontent.com/andreas/ocaml-graphql-server/e893bf30908d88adb684f2f9315c5ba3960e96ba/graphql/src/graphql_intf.ml
ocaml
IO signature Field_error signature * GraphQL schema signature Map.S with type key = String.t Argument constructors * [execute schema ctx variables doc] evaluates the [doc] against [schema] with the given context [ctx] and [variables].
module type IO = sig type +'a t val return : 'a -> 'a t val bind : 'a t -> ('a -> 'b t) -> 'b t module Stream : sig type 'a t type +'a io val map : 'a t -> ('a -> 'b io) -> 'b t val iter : 'a t -> ('a -> unit io) -> unit io val close : 'a t -> unit end with type 'a io := 'a t end ...
9e87bb2457c2782b6b69f88f09bb1ce02299bd2b3bd14ade8f47bba868c68922
guibou/smallPTHS
ReallySmallPTHS.hs
Haskell 2020 ? {-# LANGUAGE MultiWayIf #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NamedFieldPuns # # LANGUAGE TupleSections # # LANGUAGE ScopedTypeVariables # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} 40s versus 7s par 4spp at 1024x768 ;) {-# LANGUAGE Strict #-}...
null
https://raw.githubusercontent.com/guibou/smallPTHS/90896bab9fd1df93281eab96b9771416f0e6dc21/app/ReallySmallPTHS.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # # LANGUAGE DeriveAnyClass # # LANGUAGE Strict # # LANGUAGE StrictData # # OPTIONS -Wall # Type aliases to help readability during the talk In real life, I'll use newtype and smart deriving of the important operations | A ray P = origin + t * direction | A bit ...
Haskell 2020 ? # LANGUAGE PatternSynonyms # # LANGUAGE NamedFieldPuns # # LANGUAGE TupleSections # # LANGUAGE ScopedTypeVariables # # LANGUAGE DeriveGeneric # 40s versus 7s par 4spp at 1024x768 ;) module Main where import Data.Foldable (for_) import System.IO (withFile, IOMode(..), hPutStr) import Data.Foldable ...
0ed0508f8e846704db1eb78fd17448671b93867a2695666f5989d3f9b7d10603
jrm-code-project/LISP-Machine
sysdef.lisp
-*- Mode : LISP ; Package : SYSTEM - INTERNALS ; Base:8 ; : ZL -*- (DEFSYSTEM TS (:PATHNAME-DEFAULT "TS:SOURCE;") (:MODULE DEFS "DEFS") (:Module main "main") (:module setup "setup") (:COMPILE-LOAD DEFS) (:compile-load main (:fasload defs) (:fasload defs)) (:compile-load setup (:fasload defs) (:fasloa...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjcx/ts/sysdef.lisp
lisp
Package : SYSTEM - INTERNALS ; Base:8 ; : ZL -*-
(DEFSYSTEM TS (:PATHNAME-DEFAULT "TS:SOURCE;") (:MODULE DEFS "DEFS") (:Module main "main") (:module setup "setup") (:COMPILE-LOAD DEFS) (:compile-load main (:fasload defs) (:fasload defs)) (:compile-load setup (:fasload defs) (:fasload main)))
a0e1c0e3848aba7cafa164b955ad38bebc406eb69efe78c14946b5d259af2bab
haskell-suite/haskell-src-exts
NoStartNumIdents.hs
1a = ()
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/tests/examples/NoStartNumIdents.hs
haskell
1a = ()
e983a197e68ce224bff0aee715a267080ba78b042fc1a502859548e6ef6b957c
karimarttila/clojure
user_dynamodb.clj
(ns simpleserver.user.user-dynamodb (:require [simpleserver.user.user-interface :as ss-user-i] [clojure.tools.logging :as log] [cognitect.aws.client.api :as aws] [simpleserver.util.config :as ss-config] [simpleserver.user.user-common :as ss-user-common])) (defn -get-co...
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/webstore-demo/simple-server/src/simpleserver/user/user_dynamodb.clj
clojure
NOTE: Remember to refresh everything if you make changes, since protocol and config needs to be loaded before this class.
(ns simpleserver.user.user-dynamodb (:require [simpleserver.user.user-interface :as ss-user-i] [clojure.tools.logging :as log] [cognitect.aws.client.api :as aws] [simpleserver.util.config :as ss-config] [simpleserver.user.user-common :as ss-user-common])) (defn -get-co...
25fe83380d33ad29561e4fce399fcb6001c8220871272ee19a0c8b87d7a4e02d
ChrisCoffey/haskell-opentracing-light
ClientSpec.hs
{-# LANGUAGE NamedFieldPuns, OverloadedStrings #-} module DataDog.ClientSpec ( ddSpec ) where import Tracing.DataDog import Tracing.Core import Instances() import Data.Maybe (fromMaybe, maybe, isJust) import Data.Aeson import Data.Aeson.Types (parseMaybe) import qualified Data.Text as T import Test.HUnit imp...
null
https://raw.githubusercontent.com/ChrisCoffey/haskell-opentracing-light/82a4dfa757a7cbbbbef82e68e766e0f1a9411570/test/DataDog/ClientSpec.hs
haskell
# LANGUAGE NamedFieldPuns, OverloadedStrings #
module DataDog.ClientSpec ( ddSpec ) where import Tracing.DataDog import Tracing.Core import Instances() import Data.Maybe (fromMaybe, maybe, isJust) import Data.Aeson import Data.Aeson.Types (parseMaybe) import qualified Data.Text as T import Test.HUnit import Test.QuickCheck hiding (sample) import Test.Tas...
a04f4d914fdf7163769a283166815f0ab65f31d2c94294048cb2def7a590dffb
lpeterse/koka
Promote.hs
------------------------------------------------------------------------------ Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the ro...
null
https://raw.githubusercontent.com/lpeterse/koka/43feefed258b9a533f07967d3f8867b02384df0e/src/Syntax/Promote.hs
haskell
---------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- Peform implicit promotions: * Quantify over free type variables in type signature...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . module Syntax.Promote( promote, promoteType, quantify ) where import Data.List( partition ) import Common.NamePrim( nameTpOptional,...
a5b71a7fbfbab48df5851e04eccf63689c211962998a4a0ebf8436f1b6e2e08d
let-def/menhir
listMonad.mli
(**************************************************************************) (* *) Menhir (* *) , INRIA Ro...
null
https://raw.githubusercontent.com/let-def/menhir/e8ba7bef219acd355798072c42abbd11335ecf09/src/listMonad.mli
ocaml
************************************************************************ et en Automatique. All rig...
Menhir , INRIA Rocquencourt , PPS , Université Paris Diderot Copyright 2005 - 2008 Institut National de Recherche en Informatique under the terms of the Q Public License versi...
d77a909a413fbc696f434170150e3d68cbfbe8c35410e7068cfa9659dc64cad5
mikelevins/categories
protocol.scm
;;;; *********************************************************************** ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: protocol.scm ;;;; Project: Categories ;;;; Purpose: the Categories object system ;;;; Author: mikel evins Copyright : 2013 by mikel evins ;;;; ;;;; *******************...
null
https://raw.githubusercontent.com/mikelevins/categories/66e3861071e4d88b7b27421a78ab497e1fb5fa0c/0.4/src/protocol.scm
scheme
*********************************************************************** FILE IDENTIFICATION Name: protocol.scm Project: Categories Purpose: the Categories object system Author: mikel evins ***********************************************************************
Copyright : 2013 by mikel evins
23022ee8fe2e6bc63472bba52e66951834a1af741effbc9edc3e8c90ca985950
roburio/albatross
albatross_client_local.ml
( c ) 2017 , 2018 , all rights reserved open Lwt.Infix let socket t = function | Some x -> x | None -> Vmm_core.socket_path t let process fd = Vmm_lwt.read_wire fd >|= function | Error `Eof -> Error Albatross_cli.Success | Error _ -> Error Albatross_cli.Communication_failed | Ok wire -> Albatross_cli...
null
https://raw.githubusercontent.com/roburio/albatross/83dff4a3fe6a4a1486d935550136c59a35645c34/client/albatross_client_local.ml
ocaml
now we busy read and process output
( c ) 2017 , 2018 , all rights reserved open Lwt.Infix let socket t = function | Some x -> x | None -> Vmm_core.socket_path t let process fd = Vmm_lwt.read_wire fd >|= function | Error `Eof -> Error Albatross_cli.Success | Error _ -> Error Albatross_cli.Communication_failed | Ok wire -> Albatross_cli...
7fa88cfb3cac7a292d99e73d2f41c9750df976f6e82854220af3906c92575fda
brownplt/judgmental-resugaring
demo.rkt
#lang racket (require redex) (require "../sweet-t.rkt") ;; This is a super-simple resugaring demo to demonstrate the API. (define-resugarable-language demo #:keywords(if true false Bool) (e ::= .... (if e e e)) (v ::= .... true false) (t ::= .... Bool) (s ::= .... (not s))) (defin...
null
https://raw.githubusercontent.com/brownplt/judgmental-resugaring/a05e572bd3d80de87e8ad9a25e87f99f8c283d41/examples/demo.rkt
racket
This is a super-simple resugaring demo to demonstrate the API.
#lang racket (require redex) (require "../sweet-t.rkt") (define-resugarable-language demo #:keywords(if true false Bool) (e ::= .... (if e e e)) (v ::= .... true false) (t ::= .... Bool) (s ::= .... (not s))) (define-core-type-system demo [(⊢ Γ e_1 t_1) (⊢ Γ e_2 t_2) (⊢ Γ ...
3681828694bdfdf0f550c3c5346fa2c2f76f37fc6ae34ac08825287cf62dde72
synduce/Synduce
min_max.ml
* @synduce --no - lifting type itree = Leaf of int | Node of int * itree * itree let rec is_symmetric = function Leaf x -> true | Node (a, l, r) -> symm1 l r and symm1 l = function Leaf x -> is_leaf x l | Node (ar, rl, rr) -> symm2 ar rl rr l and symm2 ar rl rr = function | Leaf x -> false | Node (al, ll, lr) -...
null
https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/benchmarks/incomplete/symmetric_tree/min_max.ml
ocaml
* @synduce --no - lifting type itree = Leaf of int | Node of int * itree * itree let rec is_symmetric = function Leaf x -> true | Node (a, l, r) -> symm1 l r and symm1 l = function Leaf x -> is_leaf x l | Node (ar, rl, rr) -> symm2 ar rl rr l and symm2 ar rl rr = function | Leaf x -> false | Node (al, ll, lr) -...
174e274b167119217c57aa79dcb4d3a52e5e5be231a635291c8d5d9eed089a1b
2600hz/kazoo
kazoo_numbers_sup.erl
%%%----------------------------------------------------------------------------- ( C ) 2013 - 2020 , 2600Hz %%% @doc @author @author 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 /. ...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_numbers/src/kazoo_numbers_sup.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- API Supervisor callbacks Helper macro for declaring children of supervisor =========================================================================...
( C ) 2013 - 2020 , 2600Hz @author @author 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(kazoo_numbers_sup). -behaviour(supervisor). -export([start_link/0]). -export([i...
5433f2f137afada7135eeefa98804fb19f0ffc4f152ecaeea3136ee69f6bab71
uwplse/rake
log.rkt
#lang racket (provide (all-defined-out)) ;; Variables (define logging-flag-set? #f) (define log-file (void)) ;; Functions (define (init-logging fp) (set! logging-flag-set? #t) (set! log-file (open-output-file fp #:exists 'replace))) (define (log str) (when logging-flag-set? (display str log-file))) (defi...
null
https://raw.githubusercontent.com/uwplse/rake/0fb9b46ae8ac64f95a4c0e89060ffdb043229a5b/rake/internal/log.rkt
racket
Variables Functions
#lang racket (provide (all-defined-out)) (define logging-flag-set? #f) (define log-file (void)) (define (init-logging fp) (set! logging-flag-set? #t) (set! log-file (open-output-file fp #:exists 'replace))) (define (log str) (when logging-flag-set? (display str log-file))) (define (close-log-file) (clo...
adacec0b31a00fbdcbae89d79c7dedd0192f30ac695825e3d27be86507641be2
rob7hunter/lawnelephant
serve.scm
(require (planet "leftparen.scm" ("vegashacker" "leftparen.plt" 5 (= 1))) "app.scm" "main.scm") (load-server-settings) (serve my-app)
null
https://raw.githubusercontent.com/rob7hunter/lawnelephant/9d3fdec5568e8f7a2165009debfd7a7075e750b3/serve.scm
scheme
(require (planet "leftparen.scm" ("vegashacker" "leftparen.plt" 5 (= 1))) "app.scm" "main.scm") (load-server-settings) (serve my-app)
48d7738de822cfab28dabadfd325d83e5c18a55e8ad2f4df96a69dc45c65da29
jrm-code-project/LISP-Machine
ppatch.lisp
-*- Mode : LISP ; Package : SYSTEM - INTERNALS ; ; Patch - File : T ; : ZL -*- (DEFVAR *STRING-PRINLENGTH* NIL) ;;; Print a string, and if slashification is on, slashify it appropriately. (DEFUN PRINT-QUOTED-STRING (STRING STREAM FASTP &AUX LENGTH CHAR HACK) (COND ((NOT *PRINT-ESCAPE*) (PRINT-RAW-STRI...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjc/ppatch.lisp
lisp
Package : SYSTEM - INTERNALS ; ; Patch - File : T ; : ZL -*- Print a string, and if slashification is on, slashify it appropriately. There are no double quotes, and so no slashifying.
(DEFVAR *STRING-PRINLENGTH* NIL) (DEFUN PRINT-QUOTED-STRING (STRING STREAM FASTP &AUX LENGTH CHAR HACK) (COND ((NOT *PRINT-ESCAPE*) (PRINT-RAW-STRING STRING STREAM FASTP)) (T (SEND STREAM ':TYO (PTTBL-OPEN-QUOTE-STRING *READTABLE*)) (SETQ LENGTH (ARRAY-ACTIVE-LENGTH STRING)) ...
ea21236c2c1d63d31f874838884e77b5c5999ab7946969bda4ab382379b62e53
jellelicht/guix
sets.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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 Lice...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/sets.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix sets) #:use-module (srfi srfi-1) #:use-module (srfi srfi-9) #:use-module (srfi srfi-26)...
55e58bda8b5034708544bf734ed22be21bb5209647fe14c6054cd275b3fe7e4e
verement/etamoo
Crypt.hs
# LANGUAGE ForeignFunctionInterface # module MOO.Builtins.Crypt (crypt) where import Control.Applicative ((<$>)) import Control.Concurrent.MVar (MVar, newMVar, takeMVar, putMVar) import Control.Exception (bracket) import Foreign (nullPtr) import Foreign.C (CString, withCString, peekCString) import System.IO.Unsafe (...
null
https://raw.githubusercontent.com/verement/etamoo/af65e2581ab5d093c9490f43692ef89bafc2efc1/src/MOO/Builtins/Crypt.hs
haskell
| Encrypt a password using the POSIX @crypt()@ function. ^ key ^ salt ^ encrypted password (or 'Nothing' on error) Shared mutex to prevent simultaneous calls to non-reentrant C crypt()
# LANGUAGE ForeignFunctionInterface # module MOO.Builtins.Crypt (crypt) where import Control.Applicative ((<$>)) import Control.Concurrent.MVar (MVar, newMVar, takeMVar, putMVar) import Control.Exception (bracket) import Foreign (nullPtr) import Foreign.C (CString, withCString, peekCString) import System.IO.Unsafe (...
2fd25bfd0a914f650bd64418937d14f20548da917e342dcf7b11e1bd050208bc
hemmi/coq2scala
indfun_common.ml
open Names open Pp open Libnames let mk_prefix pre id = id_of_string (pre^(string_of_id id)) let mk_rel_id = mk_prefix "R_" let mk_correct_id id = Nameops.add_suffix (mk_rel_id id) "_correct" let mk_complete_id id = Nameops.add_suffix (mk_rel_id id) "_complete" let mk_equation_id id = Nameops.add_suffix id "_equation...
null
https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2-old/plugins/funind/indfun_common.ml
ocaml
*************************************************************** Copy of the standart save mechanism but without the much too slow reduction function *************************************************************** ******************** Has this function been defined using gener...
open Names open Pp open Libnames let mk_prefix pre id = id_of_string (pre^(string_of_id id)) let mk_rel_id = mk_prefix "R_" let mk_correct_id id = Nameops.add_suffix (mk_rel_id id) "_correct" let mk_complete_id id = Nameops.add_suffix (mk_rel_id id) "_complete" let mk_equation_id id = Nameops.add_suffix id "_equation...
ce12875436d3ca996395062b4e010108c6358ba97f813d96b56e3398dcfcbdf2
rschlaikjer/erlang-atrace-flamegraphs
aflame_parser_sup.erl
-module(aflame_parser_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). -define(SERVER, ?MODULE). %%==================================================================== %% API functions %%==================================================================== st...
null
https://raw.githubusercontent.com/rschlaikjer/erlang-atrace-flamegraphs/e1818100c9cae4eedf6d37c6ee2b094312938c8f/src/aflame_parser_sup.erl
erlang
API Supervisor callbacks ==================================================================== API functions ==================================================================== ==================================================================== Supervisor callbacks =================================================...
-module(aflame_parser_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). child_spec() -> { aflame_trace_parser, {aflame_trace_parser, start_link, []}, transient, 3000, worker, [...