_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
5b9473bf542377bcb6a37fd2b04a18a5a5f148fb3fc40f24c1552f522e0eb452
cram2/cram
cloud-interface.lisp
;;; Copyright ( c ) 2017 , < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_knowrob/cram_knowrob_assembly/src/cloud-interface.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redi...
Copyright ( c ) 2017 , < > * Neither the name of the Institute for Artificial Intelligence/ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ...
560baf4155fb96fcdbbe4c504aab6c930517f0386289cdae1187620a8c6d3198
bcc32/projecteuler-ocaml
sol_004.ml
open! Core open! Import let is_palindrome s = String.( = ) s (String.rev s) let main () = let ans = ref 0 in for i = 100 to 999 do for j = 100 to 999 do let digits = i * j |> Int.to_string in if is_palindrome digits && i * j > !ans then ans := i * j done done; printf "%d\n" !ans ;; let%ex...
null
https://raw.githubusercontent.com/bcc32/projecteuler-ocaml/712f85902c70adc1ec13dcbbee456c8bfa8450b2/sol/sol_004.ml
ocaml
open! Core open! Import let is_palindrome s = String.( = ) s (String.rev s) let main () = let ans = ref 0 in for i = 100 to 999 do for j = 100 to 999 do let digits = i * j |> Int.to_string in if is_palindrome digits && i * j > !ans then ans := i * j done done; printf "%d\n" !ans ;; let%ex...
d5cf3d406edfb97751b117c0a8140ca24f2f1554761ff95a383cc1dcfb56b1b7
ocamllabs/ocaml-modular-implicits
testsieve.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/lib-threads/testsieve.ml
ocaml
********************************************************************* OCaml ...
, 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 . let sieve primes= Event.sync (Event.s...
a43eeee78126ee64252db491a18bada07f90ae7b753f900687b82228d895f19b
Rotaerk/vulkanTest
Getter.hs
module Graphics.VulkanAux.Getter where import Control.Monad.IO.Class import Data.Function import Data.Functor import Foreign.Marshal.Alloc import Foreign.Ptr import Foreign.Storable import Graphics.Vulkan.Core_1_0 import Graphics.VulkanAux.Exception type VkaGetter vk r = Ptr vk -> IO r vkaGet :: (MonadIO io, Storabl...
null
https://raw.githubusercontent.com/Rotaerk/vulkanTest/228007f3f56ce4200f9fe841ac85292cae044c97/sandbox/sandbox/src/Graphics/VulkanAux/Getter.hs
haskell
module Graphics.VulkanAux.Getter where import Control.Monad.IO.Class import Data.Function import Data.Functor import Foreign.Marshal.Alloc import Foreign.Ptr import Foreign.Storable import Graphics.Vulkan.Core_1_0 import Graphics.VulkanAux.Exception type VkaGetter vk r = Ptr vk -> IO r vkaGet :: (MonadIO io, Storabl...
ff532e037c6bd6c4301710c2852179e91718000b1cc6de4c0dd4d13a4689d6e4
EMSL-NMR-EPR/Haskell-MFAPipe-Executable
Numeric.hs
# LANGUAGE DeriveFunctor , , DeriveTraversable # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # ----------------------------------------------------------------------------- -- | -- Module : Data.Inject...
null
https://raw.githubusercontent.com/EMSL-NMR-EPR/Haskell-MFAPipe-Executable/8a7fd13202d3b6b7380af52d86e851e995a9b53e/injective-numeric/src/Data/Injective/Numeric.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Injective.Numeric License : ECL-2.0 (see the LICENSE file in the distribution) Maintainer : Stability : experimental Portability : portable This module exports classes and types that are used for the i...
# LANGUAGE DeriveFunctor , , DeriveTraversable # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # Copyright : 2016 - 17 Pacific Northwest National Laboratory by , /Journal of functional progr...
9e864ba451dc5d4809df591170d0fe6c58c1f4e17c0471ed3a9808e5ac143121
jimweirich/sicp-study
ex1_46.scm
SICP 1.46 Exercise 1.46 . Several of the numerical methods described in this ;; chapter are instances of an extremely general computational ;; strategy known as iterative improvement. Iterative improvement says ;; that, to compute something, we start with an initial guess for the ;; answer, test if the guess is ...
null
https://raw.githubusercontent.com/jimweirich/sicp-study/bc5190e04ed6ae321107ed6149241f26efc1b8c8/scheme/chapter1/ex1_46.scm
scheme
chapter are instances of an extremely general computational strategy known as iterative improvement. Iterative improvement says that, to compute something, we start with an initial guess for the answer, test if the guess is good enough, and otherwise improve the guess and continue the process using the improved gu...
SICP 1.46 Exercise 1.46 . Several of the numerical methods described in this guess . Write a procedure iterative - improve that takes two (define (iterative-improve close-enough? f) (lambda (first-guess) (define (try guess) (let ((next (f guess))) (if (close-enough? guess next) ...
0a09ba041ee0858f2e9cc7d00ff570af39ce8d686ce5440c46aac102bfdc3df6
tiagodalloca/city-weather-clj
system.clj
(ns user.system #_{:clj-kondo/ignore [:unused-referred-var]} (:require [city-weather-clj.system] [integrant.core :as ig] [integrant.repl :refer [clear go halt init prep reset reset-all]] [integrant.repl.state :as state])) (def config {:http/server {:opts {:port 8989} ...
null
https://raw.githubusercontent.com/tiagodalloca/city-weather-clj/63b54aef5243ef3fc346df26832a293111b47a78/development/src/user/system.clj
clojure
(ns user.system #_{:clj-kondo/ignore [:unused-referred-var]} (:require [city-weather-clj.system] [integrant.core :as ig] [integrant.repl :refer [clear go halt init prep reset reset-all]] [integrant.repl.state :as state])) (def config {:http/server {:opts {:port 8989} ...
47e5ce64548766d7d4cadff319868f32649544e04b1ac220c727ee885811060e
erlang/otp
crashdump_viewer.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2003 - 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 applicab...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/lib/observer/src/crashdump_viewer.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2003 - 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(crashdump_viewer). storing Address - > Start Position in this table . The hex value of wordsize : 4 | 8 ...
cce6215e5385498dd30f3c2fcb9256b5db7e442de3d4b3f88edbf41c28099537
jeapostrophe/lux
info.rkt
#lang info (define collection "lux") (define deps '("draw-lib" "drracket" ["gui-lib" #:version "1.13"] "htdp-lib" "pict-lib" ["base" #:version "6.3.0.2"] "rackunit-lib")) (define build-deps '("draw-doc" "gui-d...
null
https://raw.githubusercontent.com/jeapostrophe/lux/f5d7c1276072f9ea4107b3f8a2d049e0b174c7ba/info.rkt
racket
#lang info (define collection "lux") (define deps '("draw-lib" "drracket" ["gui-lib" #:version "1.13"] "htdp-lib" "pict-lib" ["base" #:version "6.3.0.2"] "rackunit-lib")) (define build-deps '("draw-doc" "gui-d...
5fcccd67ceed5fe8a8c25a634b19c0092fec1335c6def82b2a4b01fe58d43bbf
icfpcontest2021/icfpcontest2021.github.io
HillClimb.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE RecordWildCards # module BrainWall.JasperSolver.HillClimb ( Options (..) , defaultOptions , hillClimb ) where import System.Random (RandomGen) data Options g s a = Options { oScore :: a -> s , oNeighbour :: a -> g -> (a, g) , oGiveU...
null
https://raw.githubusercontent.com/icfpcontest2021/icfpcontest2021.github.io/fb23fea2a8ecec7740017d3dda78d921c1df5a26/toolchain/lib/BrainWall/JasperSolver/HillClimb.hs
haskell
# LANGUAGE BangPatterns #
# LANGUAGE RecordWildCards # module BrainWall.JasperSolver.HillClimb ( Options (..) , defaultOptions , hillClimb ) where import System.Random (RandomGen) data Options g s a = Options { oScore :: a -> s , oNeighbour :: a -> g -> (a, g) , oGiveUp :: Maybe Int } defaultO...
571b55901d942723f553162b92994f7342c7e236dbac9cb7b0f1094802ea85fa
andreasabel/helf
Monolith.hs
{- | Monolithic monad for everything. -} -- A type checker instance with -- (*) values as explicit closures and -- (*) environments as finite maps # LANGUAGE FlexibleContexts , FlexibleInstances , TypeSynonymInstances , MultiParamTypeClasses , OverlappingInstances , IncoherentInstances , UndecidableInstances , ...
null
https://raw.githubusercontent.com/andreasabel/helf/ffd5d9fe9d08477fed336878337aaf1036c57ba5/src/Monolith.hs
haskell
| Monolithic monad for everything. A type checker instance with (*) values as explicit closures and (*) environments as finite maps testing | Evaluation monad * Context * Type checking monad runReader comp <$> asks globals traceM (showM tr) . checkType t * Declarations StateT (MapSig Val) (ExceptT String ...
# LANGUAGE FlexibleContexts , FlexibleInstances , TypeSynonymInstances , MultiParamTypeClasses , OverlappingInstances , IncoherentInstances , UndecidableInstances , PatternGuards , TupleSections # OverlappingInstances, IncoherentInstances, UndecidableInstances, PatternGuards, TupleSections #-} mo...
23553623972fcdbda5ab319c3bc2b33555e767fbb4a082ad806824e9f293ee24
tonymorris/fp-course
Interactive.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} module Course.Interactive where import Course.Core import Course.Functor import Course.Applicative import Course.Monad import Course.Traversable import Course.List import Course.Optional -- | Eliminates any value over ...
null
https://raw.githubusercontent.com/tonymorris/fp-course/73a64c3d4d0df58654a1a9a0ee9d9b11c3818911/src/Course/Interactive.hs
haskell
# LANGUAGE OverloadedStrings # | Eliminates any value over which a functor is defined. | A version of @bind@ that ignores the result of the effect. | Runs an action until a result of that action satisfies a given predicate. ^ The predicate to satisfy to stop running the action. ^ The action to run until the predic...
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module Course.Interactive where import Course.Core import Course.Functor import Course.Applicative import Course.Monad import Course.Traversable import Course.List import Course.Optional vooid :: Functor m => m a -> m () vooid = (<$>) (const ())...
4ec3485020c97bc2ba7d1ae411d6d81bd9d4cfba59258e1b183447316fc8fff2
hercules-ci/hercules-ci-agent
Setup.hs
import Data.Function ((&)) import Distribution.PkgConfigVersionHook as PV import Distribution.Simple main :: IO () main = defaultMainWithHooks $ simpleUserHooks & PV.addHook (PV.mkSettings "nix-store") { PV.macroName = "NIX", PV.flagPrefixName = "nix" }
null
https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/20d596a6bacdc40ed9ac896a417aa8ebc5741a5b/hercules-ci-cnix-expr/Setup.hs
haskell
import Data.Function ((&)) import Distribution.PkgConfigVersionHook as PV import Distribution.Simple main :: IO () main = defaultMainWithHooks $ simpleUserHooks & PV.addHook (PV.mkSettings "nix-store") { PV.macroName = "NIX", PV.flagPrefixName = "nix" }
02157b7510ab556aba1d6355e2d3b92c5c35c1b97a38c4d321d3107dc702fb4b
realworldocaml/book
pprintast.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ppxlib/astlib/pprintast.mli
ocaml
************************************************************************ OCaml ...
( University of Pennsylvania ) Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Ast_414 type space_formatter = (unit, Format.formatter, unit) format val toplevel_phrase : Format....
8b6f0217e48d98bb047b9d9969be04e7d177bc1f526a25fca2fcc1def2f94b13
perf101/rage
soms_handler.ml
open! Core.Std open Utils let t ~args = object (self) inherit Json_handler.t ~args method private write_body = let query = "SELECT tc_fqn,description FROM test_cases ORDER BY tc_fqn" in let tcs = Sql.exec_exn ~conn ~query in let json_of_tc tc = sprintf "\"%s\":{\"desc\":\"%s\"}" tc.(0) tc.(1) in...
null
https://raw.githubusercontent.com/perf101/rage/e8630659b2754b6621df7c49f3663fa7c4fac5eb/src/soms_handler.ml
ocaml
open! Core.Std open Utils let t ~args = object (self) inherit Json_handler.t ~args method private write_body = let query = "SELECT tc_fqn,description FROM test_cases ORDER BY tc_fqn" in let tcs = Sql.exec_exn ~conn ~query in let json_of_tc tc = sprintf "\"%s\":{\"desc\":\"%s\"}" tc.(0) tc.(1) in...
2918d533d664096ac9311dabc12d1f6ac5102ba17c33391dc7e3964f0cf39837
imitator-model-checker/imitator
State.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine ,...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/State.ml
ocaml
********************************************************** Modules ********************************************************** ********************************************************** * Reachable states ********************************************************** * Concrete state: location and px-valuation * State: ...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine ,...
600989da89b5f8802c32b0ca340096eca2794041e5434652a9daf23d88ce140f
Shirakumo/kandria
language.lisp
(in-package #:org.shirakumo.fraf.kandria) (defvar *cached-dialogue-assemblies* (make-hash-table :test 'equal)) (defgeneric extract-language (thing)) (defgeneric refresh-language (thing)) (defun useful-language-string-p (thing) (and thing (string/= "" thing) (string/= "-" thing) (string/= "<unknown>" thing))) (def...
null
https://raw.githubusercontent.com/Shirakumo/kandria/26b88c6963b2d2e3457628abbee44604cf11c7db/language.lisp
lisp
(in-package #:org.shirakumo.fraf.kandria) (defvar *cached-dialogue-assemblies* (make-hash-table :test 'equal)) (defgeneric extract-language (thing)) (defgeneric refresh-language (thing)) (defun useful-language-string-p (thing) (and thing (string/= "" thing) (string/= "-" thing) (string/= "<unknown>" thing))) (def...
8024beb35e3b73dd1c9a730c880b4ac7c483a28d96f4a2fc8779ba879c5f6b88
xtdb/xtdb
document_store_test.clj
(ns xtdb.document-store-test (:require [clojure.test :as t] [xtdb.document-store :as ds] [xtdb.fixtures :as fix] [xtdb.fixtures.document-store :as fix.ds] [xtdb.system :as sys]) (:import java.io.File)) (t/deftest test-document-store (fix/with-tmp-dirs #{doc-store-d...
null
https://raw.githubusercontent.com/xtdb/xtdb/e2f51ed99fc2716faa8ad254c0b18166c937b134/test/src/xtdb/document_store_test.clj
clojure
(ns xtdb.document-store-test (:require [clojure.test :as t] [xtdb.document-store :as ds] [xtdb.fixtures :as fix] [xtdb.fixtures.document-store :as fix.ds] [xtdb.system :as sys]) (:import java.io.File)) (t/deftest test-document-store (fix/with-tmp-dirs #{doc-store-d...
13d4c15a6a3bd689832826c4c845cf01be42fe4ecfb699c801d63ed619537d6e
TrustInSoft/tis-interpreter
operational_inputs.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/inout/operational_inputs.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
16612688fa2ec3be8629a8528bb9143416a1991c0d8159dffa4eeaded6e1c7d2
huangz1990/SICP-answers
44-iter-smooth-n-times.scm
;;; 44-iter-smooth-n-times.scm (load "44-smooth.scm") (define (smooth-n-times f n) (define (iter i smoothed-f) (if (= i 0) smoothed-f (iter (- i 1) (smooth smoothed-f)))) (iter n f))
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/44-iter-smooth-n-times.scm
scheme
44-iter-smooth-n-times.scm
(load "44-smooth.scm") (define (smooth-n-times f n) (define (iter i smoothed-f) (if (= i 0) smoothed-f (iter (- i 1) (smooth smoothed-f)))) (iter n f))
60cb2bf939953b017605a8a9fdcddf908be72324b78e35211519ad29e47d38fd
Kappa-Dev/KappaTools
raw_mixture.mli
(******************************************************************************) (* _ __ * The Kappa Language *) | |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF (* | ' / ********************************************************************...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/term/raw_mixture.mli
ocaml
**************************************************************************** _ __ * The Kappa Language | ' / ******************************************************************** | . \ * This file is distributed under the terms of the |_|\_\ * GN...
| |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF type internal = int option type link = FREE | VAL of int type agent = { a_type: int; a_ports: link array; a_ints: internal array; } type t = agent list val copy_agent : agent -> agent val print : noCounters:bool -> created:bool -> ...
7a8b20a8b307e3bb3ec5679d4da7b5cc0ce368485c09c3018838b19b3723b4ce
glguy/advent
10.hs
| Module : Main Description : Day 10 solution Copyright : ( c ) , 2015 License : ISC Maintainer : < > Module : Main Description : Day 10 solution Copyright : (c) Eric Mertens, 2015 License : ISC Maintainer : <> -} module Main where import Advent.Input (getInputLines) ...
null
https://raw.githubusercontent.com/glguy/advent/7fbe59ff60695fed4caa57abe2f65bf59ea9b132/solutions/src/2015/10.hs
haskell
| >>> :main | Look and say process. >>> lookAndSay "1" >>> lookAndSay "11" >>> lookAndSay "21" "111221" >>> lookAndSay "111221"
| Module : Main Description : Day 10 solution Copyright : ( c ) , 2015 License : ISC Maintainer : < > Module : Main Description : Day 10 solution Copyright : (c) Eric Mertens, 2015 License : ISC Maintainer : <> -} module Main where import Advent.Input (getInputLines) ...
a3a74cc6b01c9d7b3c792da0ab7b8af5478a1d4707040209bf0ae0616028e4cf
c-cube/trustee
kernel.mli
(** {1 Kernel of trust} *) open Sigs type ctx type expr type ty = expr type const_def type const type ty_const = const type thm type theory type var = { v_name: string; v_ty: ty; } type ty_var = var type bvar = { bv_idx: int; bv_ty: ty; } type expr_set (** A set of expressions. *) * A sequent [ hyps ] ...
null
https://raw.githubusercontent.com/c-cube/trustee/3cce2f89860146b167b59046088111d5e3a15ca8/src/core/kernel.mli
ocaml
* {1 Kernel of trust} * A set of expressions. * Main view on expressions reified sequent * Logic constants * Choice constant * Constant definitions. The definition of a constant is saved separately and might be saved on disk, erased (forgotten), stored remotely, etc. * An approximation of the definitio...
open Sigs type ctx type expr type ty = expr type const_def type const type ty_const = const type thm type theory type var = { v_name: string; v_ty: ty; } type ty_var = var type bvar = { bv_idx: int; bv_ty: ty; } type expr_set * A sequent [ hyps ] . It does not necessarily represent a valid theore...
74485496f5987c981beb88453452f22c83359b04092edf9a5777864f8ce91579
mlabs-haskell/plutus-pioneer-program
Signed.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # L...
null
https://raw.githubusercontent.com/mlabs-haskell/plutus-pioneer-program/b50b196d57dc35559b7526fe17b49dd2ba4790bc/code/week05/src/Week05/Signed.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators # # INLINABLE mkPolicy #
# LANGUAGE DeriveGeneric # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Week05.Signed where import Control.Monad hiding (fmap) import Control.Monad...
6d944ca582964371adfccf6eb313a55f79e5e1b1281f841b3a704b1711b10f59
conal/shaped-types
Add.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # #include "Circat/AbsTy.inc" AbsTyPragmas # OPTIONS_GHC -Wall # # OPTIONS_GHC -fno - warn - unused - imports # -- | Adders module ShapedTypes.Add where import Prelude hiding (zipWith) imp...
null
https://raw.githubusercontent.com/conal/shaped-types/3778974bca793fa810195546e0d4362151aa9a6b/src/ShapedTypes/Add.hs
haskell
| Adders TODO: generalize from single-bit addends, while keeping the single-bit carry in and out. TODO: generalize from pairs and single-bit carry, to perhaps tries and key-valued carries. ----------------------------------------------------------------- -----------------------------------------------------------...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # #include "Circat/AbsTy.inc" AbsTyPragmas # OPTIONS_GHC -Wall # # OPTIONS_GHC -fno - warn - unused - imports # module ShapedTypes.Add where import Prelude hiding (zipWith) import Data.Tup...
86a49afb5623899afd106fdb6b1e0001b071db677f788c271bb6d10ee99fcd6c
s-cerevisiae/leetcode-racket
322-coin-change.rkt
#lang racket (define (coin-change coins amount) (define memo (make-hasheq)) (let loop ([amount amount]) (cond [(zero? amount) 0] [(hash-has-key? memo amount) (hash-ref memo amount)] [else (define counts (for/list ([c (in-list coins)] ...
null
https://raw.githubusercontent.com/s-cerevisiae/leetcode-racket/4de17b9b4740705580d9d937480b589655a04a18/322-coin-change.rkt
racket
#lang racket (define (coin-change coins amount) (define memo (make-hasheq)) (let loop ([amount amount]) (cond [(zero? amount) 0] [(hash-has-key? memo amount) (hash-ref memo amount)] [else (define counts (for/list ([c (in-list coins)] ...
f9298a7f01df47065311c0fca3c7e61dc1e88c245bb95a6cb252d3006a430349
dixonary/hove-letter
Cards.hs
module Cards where import Shared defaultDeck :: [Card] defaultDeck = concatMap (\c -> replicate (numInDeck c) c) allCards allCards :: [Card] allCards = [minBound..maxBound] value :: Card -> Int value = (+1) . fromEnum rulesText :: Card -> String rulesText Guard = "Pick an opponent and name a (non-guard) card. If...
null
https://raw.githubusercontent.com/dixonary/hove-letter/ac733b5049735a7ab1e295e7a672b84a930e6db0/src/Cards.hs
haskell
module Cards where import Shared defaultDeck :: [Card] defaultDeck = concatMap (\c -> replicate (numInDeck c) c) allCards allCards :: [Card] allCards = [minBound..maxBound] value :: Card -> Int value = (+1) . fromEnum rulesText :: Card -> String rulesText Guard = "Pick an opponent and name a (non-guard) card. If...
505e44d7f2af885e1786855322436e8bb7ea0e4bf0fb383852b29d9076d40919
travelping/capwap
capwap_wtp_fsm_SUITE.erl
Copyright ( C ) 2013 - 2023 , Travelping GmbH < > %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or %% (at your option) any later version. %% Thi...
null
https://raw.githubusercontent.com/travelping/capwap/76dbd075a4bfd7a4b78af6a9d7fc757357bf85ae/test/capwap_wtp_fsm_SUITE.erl
erlang
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General P...
Copyright ( C ) 2013 - 2023 , Travelping GmbH < > it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Affero General Public License -module(capwap_wtp_fsm_SUITE). -compile...
3d8396835ffcb6095ad3d7bb7b4e2494e4c846908378b5ac123d543535d5c8e7
Stratus3D/programming_erlang_exercises
try_test.erl
-module(try_test). -export([generate_exception/1, demo1/0, demo2/0, demo3/0, polite_and_detailed_messages/0]). generate_exception(1) -> a; generate_exception(2) -> throw(a); generate_exception(3) -> exit(a); generate_exception(4) -> {'EXIT', a}; generate_exception(5) -> error(a). demo1() -> [catcher(I) || I <- [...
null
https://raw.githubusercontent.com/Stratus3D/programming_erlang_exercises/e4fd01024812059d338facc20f551e7dff4dac7e/chapter_6/exercise_2/try_test.erl
erlang
exception. To do that I duplicated the catcher function above for the developer. The last item in the tuple is the stacktrace. In order to demonstrate the polite_and_detailed_message function, I created this function called polite_and_detailed_messages. It is almost the same as demo1/0.
-module(try_test). -export([generate_exception/1, demo1/0, demo2/0, demo3/0, polite_and_detailed_messages/0]). generate_exception(1) -> a; generate_exception(2) -> throw(a); generate_exception(3) -> exit(a); generate_exception(4) -> {'EXIT', a}; generate_exception(5) -> error(a). demo1() -> [catcher(I) || I <- [...
5375a61fe36a8c1b68afa323bb4503141c5a09d0e077c17c0150564c07563839
hiroshi-unno/coar
context.ml
open Core open Ast open Ident open Common.Ext type version = { graph : ClauseGraph.t; truth_table : TruthTable.t; problem : PCSP.Problem.t ; senv : Logic.sort_env_map } type t = { version_stack : version Stack.t; mutable version : version option } module type ContextType = sig val context : t end let cr...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/PCSat/common/context.ml
ocaml
open Core open Ast open Ident open Common.Ext type version = { graph : ClauseGraph.t; truth_table : TruthTable.t; problem : PCSP.Problem.t ; senv : Logic.sort_env_map } type t = { version_stack : version Stack.t; mutable version : version option } module type ContextType = sig val context : t end let cr...
b2e7ebdc87ccf5e7de2dfe60cd5b888c8b8cc6d204d58c9f6ba52b0ed5b8eb43
axelarge/advent-of-code
day06.clj
(ns advent-of-code.y2022.day06 (:require [advent-of-code.support :refer :all])) (def input (get-input 2022 6)) (defn solve [n input] (->> input (partition n 1) (index-where #(= n (count (set %)))) (+ n))) (defn solve1 [input] (solve 4 input)) (defn solve2 [input] (solve 14 input))
null
https://raw.githubusercontent.com/axelarge/advent-of-code/66ba1f908c97fd9d4beedc05e6eec6e58b151905/src/advent_of_code/y2022/day06.clj
clojure
(ns advent-of-code.y2022.day06 (:require [advent-of-code.support :refer :all])) (def input (get-input 2022 6)) (defn solve [n input] (->> input (partition n 1) (index-where #(= n (count (set %)))) (+ n))) (defn solve1 [input] (solve 4 input)) (defn solve2 [input] (solve 14 input))
73a69aafae8b55967ff1b880ec4591c0f2444ce9b5e996836c571d026c2e6faf
NorfairKing/easyspec
RelevantEquations.hs
module EasySpec.Evaluate.Evaluate.Evaluator.RelevantEquations ( relevantEquationsEvaluator ) where import Import import EasySpec.Evaluate.Evaluate.Evaluator.Types import EasySpec.Evaluate.Evaluate.Evaluator.Utils relevantEquationsEvaluator :: Evaluator relevantEquationsEvaluator = Evaluator { evaluat...
null
https://raw.githubusercontent.com/NorfairKing/easyspec/b038b45a375cc0bed2b00c255b508bc06419c986/easyspec-evaluate/src/EasySpec/Evaluate/Evaluate/Evaluator/RelevantEquations.hs
haskell
module EasySpec.Evaluate.Evaluate.Evaluator.RelevantEquations ( relevantEquationsEvaluator ) where import Import import EasySpec.Evaluate.Evaluate.Evaluator.Types import EasySpec.Evaluate.Evaluate.Evaluator.Utils relevantEquationsEvaluator :: Evaluator relevantEquationsEvaluator = Evaluator { evaluat...
343887e351d8391d335ee7ef96bbd09f8a2824de5c016b93ec20e78cf401f777
Helium4Haskell/helium
LegeWhere.hs
class LegeWhere a where z = 3
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeClassesParse/LegeWhere.hs
haskell
class LegeWhere a where z = 3
88264912e1070b26c5df17b21b56da3a026efe87ceb98e91cbb984b1045bfbbc
pirapira/coq2rust
NMake_gen.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/theories/Numbers/Natural/BigN/NMake_gen.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * , , INRIA , 2...
a3201b8c238cdcd86076ea0e3702573d40bedf918beebe0a91c9f5b6f49d8dd1
mzp/bs-lwt
test_lwt_engine.ml
Lightweight thread library for OCaml * * Copyright ( C ) 2016 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation , with linking exceptions ; * either version 2.1 ...
null
https://raw.githubusercontent.com/mzp/bs-lwt/f37a3c47d038f4efcd65912c41fab95d1e6633ce/lwt/tests/unix/test_lwt_engine.ml
ocaml
Lightweight thread library for OCaml * * Copyright ( C ) 2016 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation , with linking exceptions ; * either version 2.1 ...
e288fb4123260657939427787e4b1e4650a19ab8bdef24fb38cb31a40aeb3727
tezos/tezos-mirror
client_baking_denunciation.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/1f21d1fdc2e4330f701f93c41b1676da0b80fc75/src/proto_alpha/lib_delegate/client_baking_denunciation.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
0ebdf72edbb9de3ada4a5136e582acbe6b4784b96e021282ac5a94ba74351727
rescript-lang/rescript-compiler
js_arr.mli
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * Copyright ( C ) 2016 - , Authors of ReScript * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/e60482c6f6a69994907b9bd56e58ce87052e3659/jscomp/core/js_arr.mli
ocaml
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * Copyright ( C ) 2016 - , Authors of ReScript * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the...
7dea9efbcab54ec4bbe45142a08042f5ef44af63e76b60c8ce2b77d3b24e5638
dparis/gen-phzr
plugin.cljs
(ns phzr.impl.accessors.plugin) (def plugin-get-properties {:active "active" :game "game" :has-post-render "hasPostRender" :has-post-update "hasPostUpdate" :has-pre-update "hasPreUpdate" :has-render "hasRender" :has-update "hasUpdate" :parent "parent" :visible "visible"}) (def plugin-set-pro...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/impl/accessors/plugin.cljs
clojure
(ns phzr.impl.accessors.plugin) (def plugin-get-properties {:active "active" :game "game" :has-post-render "hasPostRender" :has-post-update "hasPostUpdate" :has-pre-update "hasPreUpdate" :has-render "hasRender" :has-update "hasUpdate" :parent "parent" :visible "visible"}) (def plugin-set-pro...
53ecf35587c70412fb7f5de7c7764b301e480b85780c7926619a40d7bc1729b1
yetanalytics/pedestal-oidc
service.clj
(ns com.yetanalytics.pedestal-oidc.service (:require [io.pedestal.http :as http] [io.pedestal.http.route :as route] [io.pedestal.http.body-params :as body-params] [ring.util.response :as ring-resp] [com.yetanalytics.pedestal-oidc.interceptor :as i] [com.yeta...
null
https://raw.githubusercontent.com/yetanalytics/pedestal-oidc/75cd14db14e1433cbf1f6cb37835ade41578bb06/src/dev/com/yetanalytics/pedestal_oidc/service.clj
clojure
:8080/auth/realms/test/.well-known/openid-configuration Example API decoding claims How you retrieve/cache the config & keyset is up to you the interceptor gives this function the context in case you need access to something in there to get it the issuer Derive the config uri go get the config go get the keyse...
(ns com.yetanalytics.pedestal-oidc.service (:require [io.pedestal.http :as http] [io.pedestal.http.route :as route] [io.pedestal.http.body-params :as body-params] [ring.util.response :as ring-resp] [com.yetanalytics.pedestal-oidc.interceptor :as i] [com.yeta...
c0d6c161a9c4d8b7492b154917cb8944aacde3909b3587225c32b0363fc18c2b
onedata/op-worker
cdmi_encoder.erl
%%%-------------------------------------------------------------------- @author ( C ) 2015 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%-------------------------------------------------------------------- %%% @doc CDMI encoding and decoding functio...
null
https://raw.githubusercontent.com/onedata/op-worker/b09f05b6928121cec4d6b41ce8037fe056e6b4b3/src/http/cdmi/cdmi_encoder.erl
erlang
-------------------------------------------------------------------- @end -------------------------------------------------------------------- @doc @end -------------------------------------------------------------------- API =================================================================== API =================...
@author ( C ) 2015 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . CDMI encoding and decoding functions . -module(cdmi_encoder). -author("Tomasz Lichon"). -include_lib("ctool/include/errors.hrl"). -export([encode/2, decode/2, decode/3]). @doc Encodes data...
7ee14e6693ece7f37a229a8be7f685da190e6285b6886e1435ac8f1d9825fbbb
ankushdas/Nomos
TpError.ml
module A = Ast module PP = Pprint let error = ErrorMsg.error ErrorMsg.Type;; let error_unknown_var ((v,_m),ext) = error ext ("unbound variable " ^ v) let error_unknown_var_right ((v,_m),ext) = error ext ("unbound variable " ^ v ^ " on the right") let error_unknown_var_ctx ((v,_m),ext) = error ext ("unbound va...
null
https://raw.githubusercontent.com/ankushdas/Nomos/db678f3981e75a1b3310bb55f66009bb23430cb1/rast/TpError.ml
ocaml
module A = Ast module PP = Pprint let error = ErrorMsg.error ErrorMsg.Type;; let error_unknown_var ((v,_m),ext) = error ext ("unbound variable " ^ v) let error_unknown_var_right ((v,_m),ext) = error ext ("unbound variable " ^ v ^ " on the right") let error_unknown_var_ctx ((v,_m),ext) = error ext ("unbound va...
e6006b225696028ceecdece9a4d8675e479e56154a24fc48535c8922bd90dd24
nick8325/twee
Rule.hs
-- | Term rewriting. # LANGUAGE TypeFamilies , FlexibleContexts , RecordWildCards , BangPatterns , OverloadedStrings , MultiParamTypeClasses , ScopedTypeVariables , GeneralizedNewtypeDeriving # module Twee.Rule where import Twee.Base import Twee.Constraints hiding (funs) import qualified Twee.Index as Index import Twe...
null
https://raw.githubusercontent.com/nick8325/twee/29a6a4b21ec214c3ac40889c418386ce3eaf70cd/src/Twee/Rule.hs
haskell
| Term rewriting. ------------------------------------------------------------------------------ * Rewrite rules. ------------------------------------------------------------------------------ | A rewrite rule. | Information about whether and how the rule is oriented. Invariant: | A proof that the rule holds. | ...
# LANGUAGE TypeFamilies , FlexibleContexts , RecordWildCards , BangPatterns , OverloadedStrings , MultiParamTypeClasses , ScopedTypeVariables , GeneralizedNewtypeDeriving # module Twee.Rule where import Twee.Base import Twee.Constraints hiding (funs) import qualified Twee.Index as Index import Twee.Index(Index) import...
24b0ef3d24a5926dab5232e21cdcfeed4fc44d968bfb27e48b55798f963406d4
clojure-interop/java-jdk
UndoableEditSupport.clj
(ns javax.swing.undo.UndoableEditSupport "A support class used for managing UndoableEdit listeners." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.undo UndoableEditSupport])) (defn ->undoable-edit-support "Constructor. Constructs an UndoableEditSupport object. r - an Object - `ja...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/undo/UndoableEditSupport.clj
clojure
(ns javax.swing.undo.UndoableEditSupport "A support class used for managing UndoableEdit listeners." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.undo UndoableEditSupport])) (defn ->undoable-edit-support "Constructor. Constructs an UndoableEditSupport object. r - an Object - `ja...
f9dd9a24fbe75fe7e57680c1fb23e2105adaf9b3e7a5a6e6e06a868bd1127b76
conscell/hugs-android
HsSyn.hs
module HsSyn # DEPRECATED " This module has moved to Language . Haskell . Syntax " # (module Language.Haskell.Syntax) where import Language.Haskell.Syntax
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/oldlib/HsSyn.hs
haskell
module HsSyn # DEPRECATED " This module has moved to Language . Haskell . Syntax " # (module Language.Haskell.Syntax) where import Language.Haskell.Syntax
8ae60395f848fcdc252b43226f6f5d162adac46876a12036b8c4f529831fec22
hargettp/hh-web
localehandlers.lisp
Copyright ( c ) 2010 ;; Permission is hereby granted, free of charge, to any person obtaining a copy ;; of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights ;; to use, copy, modify, merge, publish, distribute, ...
null
https://raw.githubusercontent.com/hargettp/hh-web/d877398493196adffbd5d3e31fc1eaa60f331b36/meta/localehandlers.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice an...
Copyright ( c ) 2010 in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR L...
b53881961cff7e95850dbb5cf38a880010d213f0e6ebb5200335151f63e6590a
adamdoupe/find_ear_rails
sharp.ml
open Sharp_parser open Sharp_lexer let () = Printf.printf " Example of dynamic changes to the grammar Initial grammar : S -> E E -> int E -> ( E ) E -> A E A -> & * { action : add rule E -> E # E which action is multiplication and no shift if the action is executed } A -> & + { action : ad...
null
https://raw.githubusercontent.com/adamdoupe/find_ear_rails/38f892f9962ad415a583973caf24fbab1a011be1/diamondback-ruby-0.20090726/dypgen-20070627/demos/sharp/sharp.ml
ocaml
open Sharp_parser open Sharp_lexer let () = Printf.printf " Example of dynamic changes to the grammar Initial grammar : S -> E E -> int E -> ( E ) E -> A E A -> & * { action : add rule E -> E # E which action is multiplication and no shift if the action is executed } A -> & + { action : ad...
61103c88a4d28011c3e9074ee75f7a74fb33a60e0798c56c426f49aa3734b5e8
timothypratley/snakelake
ainit.cljs
(ns snakelake.ainit) (enable-console-print!)
null
https://raw.githubusercontent.com/timothypratley/snakelake/2479f800d37645a18d0ae535a6c7712fbd814cef/src/snakelake/ainit.cljs
clojure
(ns snakelake.ainit) (enable-console-print!)
fc2d7f78108c37a7d5f5d73a29c8b58acffdbb6720aa68f13348cde9f1a254e7
flavioc/cl-hurd
functions.lisp
(in-package :hurd-common) ;; ;; This files declares some foreign functions that ;; still don't deserve a single file. ;; (defcfun ("strerror" %strerror) :string (code err)) (defun error->string (error-code) "Translates an error code to a string." (%strerror error-code)) (defcfun ("getpid" %getpid) pid-t) (def...
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/common/functions.lisp
lisp
This files declares some foreign functions that still don't deserve a single file.
(in-package :hurd-common) (defcfun ("strerror" %strerror) :string (code err)) (defun error->string (error-code) "Translates an error code to a string." (%strerror error-code)) (defcfun ("getpid" %getpid) pid-t) (defun getpid () "Returns current Process ID." (%getpid)) (defcfun ("getppid" %getppid) pid-t)...
5e2225e0df88e0faafe7a9513c3d7d41923359459ebe560971dddc14cebcc1bf
Perry961002/SICP
exe1.31-product.scm
给定在给定范围中各点的某个函数值的乘积 (define (product term a next b) (if (> a b) 1 (* (term a) (product term (next a) next b)))) ;定义factorial (define (factorial n) (define (f x) (if (= (remainder x 2) 1) (/ (+ x 1) (+ x 2)) (/ (+ x 2) (+ x 1)))) (define (inc k) (+ ...
null
https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap1/exercise/exe1.31-product.scm
scheme
定义factorial --------------------------------------------------------------------------
给定在给定范围中各点的某个函数值的乘积 (define (product term a next b) (if (> a b) 1 (* (term a) (product term (next a) next b)))) (define (factorial n) (define (f x) (if (= (remainder x 2) 1) (/ (+ x 1) (+ x 2)) (/ (+ x 2) (+ x 1)))) (define (inc k) (+ k 1)) (pr...
e096bc969f4e5ad9278f9a8bb6adabcdb384b2c092f87f63fa1345f4c43dfbd5
astrada/ocaml-extjs
ext_util_AbstractMixedCollection.mli
(** ... {% %} *) class type t = object('self) inherit Ext_Base.t inherit Ext_util_Observable.t method isMixedCollection : bool Js.t Js.prop * { % < p><code > true</code > in this class to identify an object as an instantiated MixedCollection , or subclass thereof.</p > % } Defaults to : [ tr...
null
https://raw.githubusercontent.com/astrada/ocaml-extjs/77df630a75fb84667ee953f218c9ce375b3e7484/lib/ext_util_AbstractMixedCollection.mli
ocaml
* ... {% %} * {% <p>Adds all elements of an Array or an Object to the collection.</p> %} {b Parameters}: {ul {- objs: [_ Js.t] {% <p>An Object containing properties which will be added to the collection, or an Array of values, each of which are added to the collection. Functions references will...
class type t = object('self) inherit Ext_Base.t inherit Ext_util_Observable.t method isMixedCollection : bool Js.t Js.prop * { % < p><code > true</code > in this class to identify an object as an instantiated MixedCollection , or subclass thereof.</p > % } Defaults to : [ true ] Defa...
98d2239437011e8589864c7f147750f0870783085817a5054904ef8252807139
j14159/eSpacewar
ws_handler.erl
-module(ws_handler). -behaviour(cowboy_websocket_handler). -export([init/3, websocket_init/3, websocket_handle/3, websocket_info/3, websocket_terminate/3]). init({tcp, http}, _Req, _Opts) -> {upgrade, protocol, cowboy_websocket}. websocket_init(TransportName, Req, _Opts) -> {PlayerName, Req2} = cowboy_req:qs...
null
https://raw.githubusercontent.com/j14159/eSpacewar/1feda7ef6e87f0ac4c3f4154e5b24394bbdaa852/src/ws_handler.erl
erlang
strips out < and > in case user's submitted HTML/scripts.
-module(ws_handler). -behaviour(cowboy_websocket_handler). -export([init/3, websocket_init/3, websocket_handle/3, websocket_info/3, websocket_terminate/3]). init({tcp, http}, _Req, _Opts) -> {upgrade, protocol, cowboy_websocket}. websocket_init(TransportName, Req, _Opts) -> {PlayerName, Req2} = cowboy_req:qs...
4b050aa3ec6a05b3fa73748fda1a99faed3c5fd74c32c43ae59fc0f8d0c1f051
Verites/verigraph
InterLevelCP.hs
{-| Module : InterLevelCP Description : Implements the inter-level critical pairs -} module Analysis.Interlevel.InterLevelCP ( interLevelCP, InterLevelCP(..), danglingExtension ) where import Data.List (nubBy) import Abstract.Category import A...
null
https://raw.githubusercontent.com/Verites/verigraph/754ec08bf4a55ea7402d8cd0705e58b1d2c9cd67/src/library/Analysis/Interlevel/InterLevelCP.hs
haskell
| Module : InterLevelCP Description : Implements the inter-level critical pairs defines the dangling extension for L and L'', gets all relevant graphs from L | For a relevant graph, gets all matches and check conflict thesis def paper definition For each orphan node in the received morphism l, it must add all...
module Analysis.Interlevel.InterLevelCP ( interLevelCP, InterLevelCP(..), danglingExtension ) where import Data.List (nubBy) import Abstract.Category import Abstract.Category.Adhesive import Abstract.Category.FindMorphism import ...
06befa2701279d08856cf471322e8fc20563cd62463b162cf375ac5e9d2074a6
xmppjingle/snatch
claws_xmpp_comp_tests.erl
-module(claws_xmpp_comp_tests). -compile([warnings_as_errors, debug_info]). -behaviour(snatch_throttle). -export([get_whitelist/1, get_params/2, dropped/2]). -include_lib("eunit/include/eunit.hrl"). -include_lib("fast_xml/include/fxml.hrl"). -include("snatch.hrl"). -define(AUTH, <<"<stream:stream " "...
null
https://raw.githubusercontent.com/xmppjingle/snatch/da32ed1f17a05685461ec092800c4cb111a05f0b/test/claws_xmpp_comp_tests.erl
erlang
-module(claws_xmpp_comp_tests). -compile([warnings_as_errors, debug_info]). -behaviour(snatch_throttle). -export([get_whitelist/1, get_params/2, dropped/2]). -include_lib("eunit/include/eunit.hrl"). -include_lib("fast_xml/include/fxml.hrl"). -include("snatch.hrl"). -define(AUTH, <<"<stream:stream " "...
741aa09bd5c2eb51d1e0e2571684852842bab520379095ebe1c08dc93283b383
maxhbr/LDBcollector
Comparator.hs
module Comparator where import qualified Prelude as P import MyPrelude import Control.Monad import qualified Data.Vector as V import GHC.IO.Encoding import System.Environment import qualified Data.Map as M import qualified Data.HashMap.Strict as HM import qualified Data.List as...
null
https://raw.githubusercontent.com/maxhbr/LDBcollector/51d940f0af00b2acdd7de246b2be16fa30fc8a6b/app/Comparator.hs
haskell
createDirectoryIfNotExists (outDirectory </> "_stats")
module Comparator where import qualified Prelude as P import MyPrelude import Control.Monad import qualified Data.Vector as V import GHC.IO.Encoding import System.Environment import qualified Data.Map as M import qualified Data.HashMap.Strict as HM import qualified Data.List as...
28138cf3519a5d57889529482d370349fe00e520a0897b975275946cc145af3c
mvdcamme/meta-tracing-JIT
file-outputting.scm
(module file-outputting racket (provide make-full-output-directory-name make-full-output-file-name append-to-file write-to-file) (require racket/date) (define (get-datetime-string) (let ((milliseconds (modulo (current-milliseconds) 1000))) (define (milliseconds...
null
https://raw.githubusercontent.com/mvdcamme/meta-tracing-JIT/640af917e473f3793ab12791dcb2c80f617b8a0d/file-outputting.scm
scheme
(module file-outputting racket (provide make-full-output-directory-name make-full-output-file-name append-to-file write-to-file) (require racket/date) (define (get-datetime-string) (let ((milliseconds (modulo (current-milliseconds) 1000))) (define (milliseconds...
ad04b68c64b75f0872c5d12a2c959c59eba66ca7e9ffdf3a816505ad07c017d1
rm-hull/project-euler
euler030.clj
EULER # 030 ;; ========== Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits : ;; 1634 = 1 ^ 4 + 6 ^ 4 + 3 ^ 4 + 4 ^ 4 8208 = 8 ^ 4 + 2 ^ 4 + 0 ^ 4 + 8 ^ 4 9474 = 9 ^ 4 + 4 ^ 4 + 7 ^ 4 + 4 ^ 4 ;; As 1 = 1 ^ 4 is not a sum it is not include...
null
https://raw.githubusercontent.com/rm-hull/project-euler/04e689e87a1844cfd83229bb4628051e3ac6a325/src/euler030.clj
clojure
========== Find the sum of all the numbers that can be written as the sum of
EULER # 030 Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits : 1634 = 1 ^ 4 + 6 ^ 4 + 3 ^ 4 + 4 ^ 4 8208 = 8 ^ 4 + 2 ^ 4 + 0 ^ 4 + 8 ^ 4 9474 = 9 ^ 4 + 4 ^ 4 + 7 ^ 4 + 4 ^ 4 As 1 = 1 ^ 4 is not a sum it is not included . The sum of the...
186d72222d5447ea8d975edbb60c2417e6131089abd89413ee82c0fbb8e0149a
poscat0x04/telegram-types
Stickers.hs
module Web.Telegram.Types.API.Stickers ( UploadStickerFile (..), CreateNewStickerSet (..), AddStickerToSet (..), SetStickerPositionInSet (..), DeleteStickerFromSet (..), SetStickerSetThumb (..), ) where import Web.Telegram.Types.Internal.API.AddStickerToSet import Web.Telegram.Types.Internal.AP...
null
https://raw.githubusercontent.com/poscat0x04/telegram-types/c09ccc81cff10399538894cf2d1273022c797e18/src/Web/Telegram/Types/API/Stickers.hs
haskell
module Web.Telegram.Types.API.Stickers ( UploadStickerFile (..), CreateNewStickerSet (..), AddStickerToSet (..), SetStickerPositionInSet (..), DeleteStickerFromSet (..), SetStickerSetThumb (..), ) where import Web.Telegram.Types.Internal.API.AddStickerToSet import Web.Telegram.Types.Internal.AP...
05ab5b9049511be14f8dd37bbc73a0fcee0cbce35511bd3cdba90b68e6190f42
yetanalytics/dl4clj
utils.clj
(ns dl4clj.utils (:require [clojure.core.match :refer [match]]) (:import [org.deeplearning4j.util ModelSerializer])) (defn obj-or-code? ;; rename to eval? [as-code? code] (if as-code? code (eval code))) (defn shuffle* "deterministic shuffle is supplied a seed. Otherwise random shuffle" [& {:key...
null
https://raw.githubusercontent.com/yetanalytics/dl4clj/9ef055b2a460f1a6246733713136b981fd322510/src/dl4clj/utils.clj
clojure
rename to eval? needs doc string look into refactor using list* we have our unique methods and repeated methods seperated out allows us to control the shape of the end data structure need to make note of required data structure for indicating a single method gets called multiple times
(ns dl4clj.utils (:require [clojure.core.match :refer [match]]) (:import [org.deeplearning4j.util ModelSerializer])) (defn obj-or-code? [as-code? code] (if as-code? code (eval code))) (defn shuffle* "deterministic shuffle is supplied a seed. Otherwise random shuffle" [& {:keys [^java.util.Collect...
a396cc242c61a3fb7c3be3a6da7af68bd19c32887528163e53d2a73bb03e7702
keera-studios/haskell-game-programming
Raindrops.hs
A demo game put together in less than 2 hours to show how easy game programming is in Haskell . -- -- If you want to use the wiimote, compile the game with the flag -- -rtsopts -- and run it with -- +RTS -V0 import Control . Concurrent import Control.Monad import Graphics.UI.SDL as SDL import Graphics.UI.SD...
null
https://raw.githubusercontent.com/keera-studios/haskell-game-programming/d4998decb4664a978c87199347f53b420d763b1e/examples/raindrops/Raindrops.hs
haskell
If you want to use the wiimote, compile the game with the flag -rtsopts and run it with +RTS -V0 * Game State * Runtime environment (resources, devices) Load with a mask Load with a mask Create window, no mouse Create Random number generator Game loop IO: Sense (input) IO: Sense (time) Physics (movement)...
A demo game put together in less than 2 hours to show how easy game programming is in Haskell . import Control . Concurrent import Control.Monad import Graphics.UI.SDL as SDL import Graphics.UI.SDL.Image as SDL import Graphics.UI.SDL.TTF as TTF import System.CWiid import System.Random data GameState = Ga...
e757f2e4c0f14273a0eb5004a57cfda2d566f4f0d0ff7e9620d2f5a92874a340
defaultxr/cl-alsaseq
easy-api.lisp
(in-package :cl-alsaseq.quick) (defmacro def-event-func (event args &body body) `(defun ,(intern (format nil "SEND-~A" event)) ,args ,@body)) (eval-when (:load-toplevel :compile-toplevel :execute) (mapcar (lambda (event-type) (let ((ctrl-type (intern (format nil "SND_SEQ_EVENT_~A" event-type) :keyw...
null
https://raw.githubusercontent.com/defaultxr/cl-alsaseq/f447cfbed80b8b1735010de55e3e4c6191f89515/easy-api.lisp
lisp
(in-package :cl-alsaseq.quick) (defmacro def-event-func (event args &body body) `(defun ,(intern (format nil "SEND-~A" event)) ,args ,@body)) (eval-when (:load-toplevel :compile-toplevel :execute) (mapcar (lambda (event-type) (let ((ctrl-type (intern (format nil "SND_SEQ_EVENT_~A" event-type) :keyw...
9cfe5fc6ed78359864c52b11ede366576cdc6d0b7c3640389ef2ba501e12ef0e
ocaml/ocaml-lsp
main.ml
let workspace_B = "workspace_B"
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/e57b34d129fe36e86cb1ac6aad6c53b2e1901b49/ocaml-lsp-server/test/e2e/__tests__/workspace_symbol_B/main.ml
ocaml
let workspace_B = "workspace_B"
481b53b63a6aac1793edd442cf243294262e7fbbcf1ed2eb2031a4c1e2cc9bee
metaocaml/ber-metaocaml
gpr1223_foo.mli
module type S = sig type t = T end
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-short-paths/gpr1223_foo.mli
ocaml
module type S = sig type t = T end
b4e1920000b781084994251460df6d86222f8481f9511db496598fda723f36b8
plewto/Cadejo
noise_editor.clj
(ns cadejo.instruments.cobalt.editor.noise-editor (:require [cadejo.instruments.cobalt.editor.noise-freq-panel :as nfp]) (:require [cadejo.instruments.cobalt.editor.noise-amp-panel :as nap :reload true]) (:require [cadejo.instruments.cobalt.editor.op-env-panel :as env]) (:require [cadejo.instruments.cobalt.edit...
null
https://raw.githubusercontent.com/plewto/Cadejo/2a98610ce1f5fe01dce5f28d986a38c86677fd67/src/cadejo/instruments/cobalt/editor/noise_editor.clj
clojure
ignore not implemented
(ns cadejo.instruments.cobalt.editor.noise-editor (:require [cadejo.instruments.cobalt.editor.noise-freq-panel :as nfp]) (:require [cadejo.instruments.cobalt.editor.noise-amp-panel :as nap :reload true]) (:require [cadejo.instruments.cobalt.editor.op-env-panel :as env]) (:require [cadejo.instruments.cobalt.edit...
43be3d54fbf051176d7516f56095346020f7bd6056bc4a3b6c012a7acdc8ae89
csabahruska/manual-stg-experiment
StgSample.hs
module StgSample where import StgLoopback Compiler import GHC import DynFlags import Outputable -- Stg Types import Name import Id import Unique import OccName import StgSyn import CostCentre import ForeignCall import FastString import BasicTypes import CoreSyn (AltCon(..)) import PrimOp import TysWiredIn import ...
null
https://raw.githubusercontent.com/csabahruska/manual-stg-experiment/07b5222acafaeb41d1c372a0712fcce911f6a459/StgSample.hs
haskell
Stg Types ----------------------------------------------------------------------------- Utility ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ------------------------------------------------------------------...
module StgSample where import StgLoopback Compiler import GHC import DynFlags import Outputable import Name import Id import Unique import OccName import StgSyn import CostCentre import ForeignCall import FastString import BasicTypes import CoreSyn (AltCon(..)) import PrimOp import TysWiredIn import Literal impor...
3605c6d2f37c173565187ced96df7a1125e74f4b77e84a0370d739c923f973e9
shop-planner/shop3
p01-manual.lisp
(in-package :shop-openstacks) (defproblem os-sequencedstrips-p5_1 openstacks-sequencedstrips-ADL ((count n0) (count n1) (count n2) (count n3) (count n4) (count n5) (order o1) (order o2) (order o3) (order o4) (order o5) (product p1) (product p2) (product p3) (product p4) ...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/examples/openstacks-adl/p01-manual.lisp
lisp
(in-package :shop-openstacks) (defproblem os-sequencedstrips-p5_1 openstacks-sequencedstrips-ADL ((count n0) (count n1) (count n2) (count n3) (count n4) (count n5) (order o1) (order o2) (order o3) (order o4) (order o5) (product p1) (product p2) (product p3) (product p4) ...
e591a4605db0776ca9ef0b4bd25fa5fe03d25145de8e9b96c50178ca1209e7bd
lesguillemets/sicp-haskell
1.2.5.hs
module GCD where import Prelude hiding (gcd) -- | GCD > > > gcd 206 40 2 gcd a b = if b == 0 then a else gcd b (a `mod` b)
null
https://raw.githubusercontent.com/lesguillemets/sicp-haskell/df524a1e28c45fb16a56f539cad8babc881d0431/text/chap01/sect2/1.2.5.hs
haskell
| GCD
module GCD where import Prelude hiding (gcd) > > > gcd 206 40 2 gcd a b = if b == 0 then a else gcd b (a `mod` b)
bdcbda28cacaca4cc8e47679a27b98ae025a1883afd3f3a2278756e4559c8457
ftovagliari/ocamleditor
cmt_view.ml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor 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 y...
null
https://raw.githubusercontent.com/ftovagliari/ocamleditor/a6d1e69b14dfd4466ac842a3ed97d1423a3883e6/src/cmt_view.ml
ocaml
* empty * widget ~stock:`REFRESH ~stock:`SORT_ASCENDING ~stock:`SORT_DESCENDING child_paths Replace foreground color when row is selected Tooltips Events Buttons Preferences.save(); Sort model_sort_default#set_sort_column_id col_default_sort.GTree.index `ASCENDING; model_sort_name#set_sort_column_...
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor 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 y...
f0b1203714d329fdcc8f4d40d577b58b99be4ae5c2f6b4812f36735433f71e70
conreality/conreality
abstract.mli
(* This is free and unencumbered software released into the public domain. *) #if OCAMLVERSION < 4020 type bytes = string #endif (* Device driver interface for cameras. *) module Camera : sig class virtual interface : object inherit Device.interface (* Device interface: *) method reset : unit method...
null
https://raw.githubusercontent.com/conreality/conreality/e03328ef1f0056b58e4ffe181a279a1dc776e094/src/consensus/machinery/abstract.mli
ocaml
This is free and unencumbered software released into the public domain. Device driver interface for cameras. Device interface: Camera interface: Device interface: GPIO.Chip interface: Device interface: GPIO.Pin interface: Device driver interface for PWM control. Device interface: PWM interface: F...
#if OCAMLVERSION < 4020 type bytes = string #endif module Camera : sig class virtual interface : object inherit Device.interface method reset : unit method parent : Device.t option method is_privileged : bool method virtual driver_name : string method virtual device_name : string method ...
11af0ed8c70dd0ab6fff0eb6814c9af6e47f57986e4c5321897bd3d6bb1f70db
oofp/Beseder
TimerHandlerTH.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE KindSignatures # # LANGUAGE MonoLocalBinds # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE Par...
null
https://raw.githubusercontent.com/oofp/Beseder/a0f5c5e3138938b6fa18811d646535ee6df1a4f4/Examples/Timer/TimerHandlerTH.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DefaultSignatures # # LANGUAGE FlexibleContexts # # LANGUAGE PartialTypeSignatures # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE PartialTypeSignatures # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables ...
# LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE KindSignatures # # LANGUAGE MonoLocalBinds # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # # LANGUAGE MonoLocalBinds # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds ...
1f3a565eef44d1d58a927ea754391d2d6efc010ca4b6d9dcfc739af9f9fa5848
wh5a/thih
Unify.hs
----------------------------------------------------------------------------- -- Unify: Unification -- Part of ` Typing Haskell in ' , version of November 23 , 2000 Copyright ( c ) and the Oregon Graduate Institute of Science and Technology , 1999 - 2000 -- This program is distributed as Fre...
null
https://raw.githubusercontent.com/wh5a/thih/dc5cb16ba4e998097135beb0c7b0b416cac7bfae/src/Unify.hs
haskell
--------------------------------------------------------------------------- Unify: Unification in the file "License" that is included in the distribution of this software, copies of which may be obtained from: /~mpj/thih/ -----------------------------------------------------------------...
Part of ` Typing Haskell in ' , version of November 23 , 2000 Copyright ( c ) and the Oregon Graduate Institute of Science and Technology , 1999 - 2000 This program is distributed as Free Software under the terms module Unify where import Control.Monad (foldM) import Kind import Type impor...
4e72f41dbbe1bbf6650cf1579f9be04de4951d3d112158ea3474662e0a2592fb
abcdw/rde
lisp.scm
;; rde --- Reproducible development environment. ;;; Copyright © 2023 conses < > ;;; ;;; This file is part of rde. ;;; ;;; rde 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 Licens...
null
https://raw.githubusercontent.com/abcdw/rde/9175c7b37b6861095bae4a696aa1faadf9dc572a/src/rde/features/lisp.scm
scheme
rde --- Reproducible development environment. This file is part of rde. rde is free software; you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. rde is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the im...
Copyright © 2023 conses < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (define-module (rde features lisp) #:use-module (rde features) #:use-module (rde features emacs) #:use-module (rde features predicates) #:use-mo...
84bd0f525137d58ac5bf6ab0873b515e3659e3f11c82089a9b062784b58d8e82
eslick/cl-registry
flashex.lisp
(in-package :flashex) ;; Utility (defun update-package () (flashex::import-all-registry)) ;; Plugin top level (defwidget flashex (flash-widget) ((src :accessor flashex-source :initarg :src))) (define-plugin flash-explorer (site-app) :tab-name 'explore :create 'make-explorer) (defun make-explorer (&rest ar...
null
https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/src/plugins/flashex/flashex.lisp
lisp
Utility Plugin top level =============================================== =============================================== Return the latest UI state on the server
(in-package :flashex) (defun update-package () (flashex::import-all-registry)) (defwidget flashex (flash-widget) ((src :accessor flashex-source :initarg :src))) (define-plugin flash-explorer (site-app) :tab-name 'explore :create 'make-explorer) (defun make-explorer (&rest args) (declare (ignore args)) ...
ff5a52ae9faf600b50b90547090ba4dd81d92b5e01f2ea1e8d49853cbbb6b357
fluree/db
query.cljc
(ns fluree.db.api.query "Primary API ns for any user-invoked actions. Wrapped by language & use specific APIS that are directly exposed" (:require [clojure.core.async :as async] [fluree.db.time-travel :as time-travel] [fluree.db.query.fql :as fql] [fluree.db.query.fql.parse :as...
null
https://raw.githubusercontent.com/fluree/db/7ffa94c78e8824b2c1fccf4f99f10ee974e180a4/src/fluree/db/api/query.cljc
clojure
from and to are positive ints, need to convert to negative or fill in default values either (:from or :to) filter flakes for history pattern annotate with commit details we're already done just commits over a range of time if true, need to collect meta for each query to total up update individual queries for :m...
(ns fluree.db.api.query "Primary API ns for any user-invoked actions. Wrapped by language & use specific APIS that are directly exposed" (:require [clojure.core.async :as async] [fluree.db.time-travel :as time-travel] [fluree.db.query.fql :as fql] [fluree.db.query.fql.parse :as...
e8d51dbf976a11825937669d2cea1cd28731aa409fb1c9220c5e32e898c95f42
sgbj/MaximaSharp
dtrsv.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/blas/dtrsv.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp 20d (20D Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ " " f2cl6.l , v 1d5cbacbb...
aabce2ac3f02891007be2bef2eb00e1456a6aa61caf912e0d9e2d65528ee81e9
cbaggers/cepl.examples
shared-context.lisp
(in-package :cepl.examples) (defparameter *running* nil) (defparameter *quad-stream* nil) (defparameter *some-sampler* nil) (defun-g pass-through-vert ((vert g-pt)) (values (v! (pos vert) 1) (tex vert))) (defun-g blit-frag ((uv :vec2) &uniform (sam :sampler-2d)) (texture sam uv)) (defpipeline-g blit-it () (pa...
null
https://raw.githubusercontent.com/cbaggers/cepl.examples/87ac3def3e674632662350c809edf09f4820fbd1/examples/shared-context.lisp
lisp
can be used on the other.
(in-package :cepl.examples) (defparameter *running* nil) (defparameter *quad-stream* nil) (defparameter *some-sampler* nil) (defun-g pass-through-vert ((vert g-pt)) (values (v! (pos vert) 1) (tex vert))) (defun-g blit-frag ((uv :vec2) &uniform (sam :sampler-2d)) (texture sam uv)) (defpipeline-g blit-it () (pa...
73b69607a077a07de5218dc610235292254234d5ac852a6e90162f6436aea628
kahua/Kahua
mysql.scm
-*- mode : scheme ; coding : utf-8 -*- ;; Persistent on MySQL storage ;; Copyright ( c ) 2003 - 2007 Scheme Arts , L.L.C. , All rights reserved . Copyright ( c ) 2003 - 2007 Time Intermedia Corporation , All rights reserved . ;; See COPYING for terms and conditions of using this software ;; (define-module kah...
null
https://raw.githubusercontent.com/kahua/Kahua/c90fe590233e4540923e4e5cc9f61da32873692c/src/kahua/persistence/mysql.scm
scheme
coding : utf-8 -*- Persistent on MySQL storage See COPYING for terms and conditions of using this software Now support :MyISAM and :InnoDB ID counter in database. Class table counter Class - Table mapping table. Always should lock the table. Index handling for maintainance database structure.
Copyright ( c ) 2003 - 2007 Scheme Arts , L.L.C. , All rights reserved . Copyright ( c ) 2003 - 2007 Time Intermedia Corporation , All rights reserved . (define-module kahua.persistence.mysql (use srfi-1) (use kahua.persistence.dbi)) (select-module kahua.persistence.mysql) (define-class <kahua-db-mysql> (<...
b1bcd1e34fae80b8eac0c99a2ab807dd4689580a3d1a6fd5ad291278aee79f88
wgnet/sheep2
encode_decode_handler.erl
-module(encode_decode_handler). -behaviour(sheep_http). -export([init/2, read/2, sheep_init/2 ]). -include("sheep.hrl"). -spec init(cowboy_req:req(), term()) -> tuple(). init(Req, Opts) -> {sheep_http, Req, Opts}. -spec sheep_init(sheep_request(), term()) -> {sheep_response(), term()}. sheep_init(_Request, _Op...
null
https://raw.githubusercontent.com/wgnet/sheep2/2812752f278c49721f2c7e2946c239f4dc60d9da/test/sheep_http_SUITE_data/encode_decode_handler.erl
erlang
-module(encode_decode_handler). -behaviour(sheep_http). -export([init/2, read/2, sheep_init/2 ]). -include("sheep.hrl"). -spec init(cowboy_req:req(), term()) -> tuple(). init(Req, Opts) -> {sheep_http, Req, Opts}. -spec sheep_init(sheep_request(), term()) -> {sheep_response(), term()}. sheep_init(_Request, _Op...
8d77b7acfeef67e5976944d112d442ca4c71b317b31b9d34942e3398cee3a0e2
timowest/symbol
includes_test.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/timowest/symbol/30b88b382ddc722061a63276f0762efb764093cf/test/symbol/includes_test.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 . (ns symbol.includes-test (:require [symbol.types :as types]) (:use [symbol.includes :only (include)] midje.sweet)) (defn get-types [env form] (get env form)) (def get-type (comp first get-types)) 228 350 118 1059 (doseq [[name type](co...
228e6928b8dbda2d39436ece6ac30c10e57d3bb9d7de62e4e7eee3769fe6d3f5
chumsley/jwacs
test-static-analysis.lisp
test-static-analysis.lisp ;;; ;;; Unit tests for the static analysis utility functions ;;; Copyright ( c ) 2006 ;;; See LICENSE for full licensing details. ;;; (in-package :jwacs-tests) (defnote static-analysis "Tests for the simple static-analysis utility functions") (deftest static-analysis/explicitly-termina...
null
https://raw.githubusercontent.com/chumsley/jwacs/c25adb3bb31fc2dc6e8c8a58346949ee400633d7/tests/test-static-analysis.lisp
lisp
Unit tests for the static analysis utility functions See LICENSE for full licensing details. ") ") ") // Not an 'escaping' break, because it terminates the while but not the whole list // Not an escaping continue, similarly ") // Not an 'escaping' break, because it terminates the while but not the whole l...
test-static-analysis.lisp Copyright ( c ) 2006 (in-package :jwacs-tests) (defnote static-analysis "Tests for the simple static-analysis utility functions") (deftest static-analysis/explicitly-terminated-p/1 :notes static-analysis (explicitly-terminated-p (test-parse " '(:return :throw :break :continue :...
18937d6633e29b511e7090bd4f92344691125ff751ea4d8a49631de046294019
ghcjs/ghcjs
integerBits.hs
module Main (main) where import Data.Bits Do some bitwise operations on some large numbers . These number are designed so that they are likely to exercise all the interesting split - up cases for implementations that implement Integer as some sort of sequence of roughly word - sized values . They are essen...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/integer/integerBits.hs
haskell
module Main (main) where import Data.Bits Do some bitwise operations on some large numbers . These number are designed so that they are likely to exercise all the interesting split - up cases for implementations that implement Integer as some sort of sequence of roughly word - sized values . They are essen...
cf272d1c699dbace6f7dca9e44555b804b70324ff2bb1f9d8944cdf06a6af7d2
kelsey-sorrels/robinson
storylet.clj
(ns robinson.storylet (:require [robinson.random :as rr] [robinson.crafting :as rcrafting] [clojure.walk :as walk] [taoensso.timbre :as log])) ;;; Predicate helpers (defn- past-event-ids [state] (->> state rcrafting/current-recipe :events (map :event/id) (remov...
null
https://raw.githubusercontent.com/kelsey-sorrels/robinson/337fd2646882708331257d1f3db78a3074ccc67a/src/robinson/storylet.clj
clojure
Predicate helpers Predicate evaluation returns [result score] where result is a boolean and score is a number where higher = more relevant Quality based narrative for storylets keep results which evaluate true map to [score storylet]
(ns robinson.storylet (:require [robinson.random :as rr] [robinson.crafting :as rcrafting] [clojure.walk :as walk] [taoensso.timbre :as log])) (defn- past-event-ids [state] (->> state rcrafting/current-recipe :events (map :event/id) (remove nil?) set)) (d...
be14b0cd7a4324d0efd6586ee110c2c71464cec6b887f56eb5492fe21807f8b8
unisonweb/unison
Serialize.hs
# LANGUAGE PatternSynonyms # module Unison.Runtime.Serialize where import Control.Applicative (liftA2) import Control.Monad (replicateM) import Data.Bits (Bits) import qualified Data.ByteString as B import Data.Bytes.Get hiding (getBytes) import qualified Data.Bytes.Get as Ser import Data.Bytes.Put import Data.Bytes....
null
https://raw.githubusercontent.com/unisonweb/unison/cf278f9fb66ccb9436bf8a2eb4ab03fc7a92021d/parser-typechecker/src/Unison/Runtime/Serialize.hs
haskell
Some basics, moved over from V1 serialization
# LANGUAGE PatternSynonyms # module Unison.Runtime.Serialize where import Control.Applicative (liftA2) import Control.Monad (replicateM) import Data.Bits (Bits) import qualified Data.ByteString as B import Data.Bytes.Get hiding (getBytes) import qualified Data.Bytes.Get as Ser import Data.Bytes.Put import Data.Bytes....
9f5a04ef45426c273cfbdf417c3c6628c22c4e97be949358577240fc407f40e8
blarney-lang/blarney
Stream.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # | Module : . Stream Description : Stream library Copyright : ( c ) , 20...
null
https://raw.githubusercontent.com/blarney-lang/blarney/abc7f91485e48a6013b1a05c1b5e6a71dd55f68f/Haskell/Blarney/Stream.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DeriveAnyClass # | Stream interface | Convert to a Stream | Null stream | Apply a guard to a stream | ToSP instance for (Sink, Source) pairs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # | Module : . Stream Description : Stream library Copyright : ( c ) , 2019 License : MIT Maintainer : Stability : experimental Module : Blarney.Stream Description : Str...
8ebb5a5fc28d506a22b60ffd121184d7973e329aeec05ac863c18c4be70a78e9
arclanguage/Clamp
conditionals.lisp
;;;; These are utilities for conditional branching. (in-package :clamp) (use-syntax :clamp) (mac iflet (var &body branches) "Same as clamp:if but if a predicate is true, the value of predicate is bound to VAR in the corresponding branch." (if (no branches) nil (single branches) (car branc...
null
https://raw.githubusercontent.com/arclanguage/Clamp/9f165b057a109564cd0e836cf611d1e81e43cb12/src/conditionals.lisp
lisp
These are utilities for conditional branching. the test returns true. the test returns true.
(in-package :clamp) (use-syntax :clamp) (mac iflet (var &body branches) "Same as clamp:if but if a predicate is true, the value of predicate is bound to VAR in the corresponding branch." (if (no branches) nil (single branches) (car branches) :else (w/uniq val Since the lis...
2b4d4c955a47ebd2726bef71ef1c5e6214214a69749bcff3f9267bb35d9e3390
logseq/logseq
lang.clj
(ns logseq.tasks.lang "Tasks related to language translations" (:require [clojure.set :as set] [clojure.string :as string] [frontend.dicts :as dicts] [frontend.modules.shortcut.dicts :as shortcut-dicts] [logseq.tasks.util :as task-util] [babashka.process :...
null
https://raw.githubusercontent.com/logseq/logseq/2cace8894c5ee725cefd9796f39b900910f55757/scripts/src/logseq/tasks/lang.clj
clojure
Shorten values Command to check for manual entries: grep -E -oh '\(t [^ ):]+' -r src/main shortcuts related so can ignore shortcuts related shortcuts related All args to ui/make-confirm-modal are not keywords This currently assumes all ui translations use (t and src/main. This can easily be tweaked as needed
(ns logseq.tasks.lang "Tasks related to language translations" (:require [clojure.set :as set] [clojure.string :as string] [frontend.dicts :as dicts] [frontend.modules.shortcut.dicts :as shortcut-dicts] [logseq.tasks.util :as task-util] [babashka.process :...
a3d1bca4d540a55aaa5129f4e801f76f3d3f76b254ef881f68a1b6633f74d0d8
ros/roslisp
pprint.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Software License Agreement (BSD License) ;; Copyright ( c ) 2008 , Willow Garage , Inc. ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with ;; or without modification, are permitted provided that the ;; following cond...
null
https://raw.githubusercontent.com/ros/roslisp/559355a8d695e34e6dedae071a9af2c065411687/src/pprint.lisp
lisp
Software License Agreement (BSD License) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions...
Copyright ( c ) 2008 , Willow Garage , Inc. * Neither the name of Willow Garage , Inc. nor the names CONTRIBUTORS " AS IS " AND ANY EXPRESS OR COPYRIGHT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN (in-package :roslisp) (de...
6e4f508582c327c4a723c32de6f9452aec7d8713ffdb2d38afdb505fe22be23b
seckcoder/iu_c311
ll1.rkt
#lang racket (require "parsing-table.rkt" "demos.rkt" "ds.rkt") ; top down parsing (define (make-parser grammar) (let ((parsing-tbl (build-parsing-table grammar))) (define (token-ended? tokens) (equal? tokens '($))) (define (parse es tokens) (cond ((and (null? es) ...
null
https://raw.githubusercontent.com/seckcoder/iu_c311/a1215983b6ab08df32058ef1e089cb294419e567/racket/compiler/demos/parser/ll1.rkt
racket
top down parsing
#lang racket (require "parsing-table.rkt" "demos.rkt" "ds.rkt") (define (make-parser grammar) (let ((parsing-tbl (build-parsing-table grammar))) (define (token-ended? tokens) (equal? tokens '($))) (define (parse es tokens) (cond ((and (null? es) (token-en...
3331637ac10c190a791346627f5ac0f223964b427ba57e25e6128d45e1b11ef5
pariyatti/kosa
job.clj
(ns kuti.job (:require [mount.core :as mount :refer [defstate]] [clojure.tools.logging :as log] [kuti.support.time :as time] [kuti.mailer :as mailer] [kosa.config :as config] [chime.core :as chime]) (:import [java.time Instant])) (defn default-error-handler [job-name] (fn [e] (log/error ...
null
https://raw.githubusercontent.com/pariyatti/kosa/c9bb7eb563ec13cd9bf8d8269a97b7084128525b/src/kuti/job.clj
clojure
TODO: Should we consider cron-style recurring events instead, so they are more consistent, regardless of when the server was started? -sd -cup (mount/only #{#'jobs}) (mount/start #{#'jobs}) (mount/stop #{#'jobs})
(ns kuti.job (:require [mount.core :as mount :refer [defstate]] [clojure.tools.logging :as log] [kuti.support.time :as time] [kuti.mailer :as mailer] [kosa.config :as config] [chime.core :as chime]) (:import [java.time Instant])) (defn default-error-handler [job-name] (fn [e] (log/error ...
1a797344015e02a5e14795d4c1c27d120dd86aa87851975e63bc6e2ab5a03140
SquidDev/illuaminate
lint_use_discard.mli
(** Warns when a term uses the [_] variable. *) include Linter.S
null
https://raw.githubusercontent.com/SquidDev/illuaminate/da18b101b4710881b71c42554d70a3a7d17c3cd6/src/lint/lint_use_discard.mli
ocaml
* Warns when a term uses the [_] variable.
include Linter.S
adddae55d7aea07a4c121b4c3e50c320fe0f25c6e0caa05a07262bd5904d8306
richmit/mjrcalc
tst-pov.lisp
;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; @file tst-pov.lisp @author < > ;; @brief Unit Tes...
null
https://raw.githubusercontent.com/richmit/mjrcalc/96f66d030034754e7d3421688ff201f4f1db4833/tst-pov.lisp
lisp
-*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- @file tst-pov.lisp @brief Unit Tests.@EOL @std Common Lisp @see use-pov.lisp Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditi...
@author < > @parblock Copyright ( c ) 1997,1998,2004,2012,2013,2015 , < > All rights reserved . 1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer . 2 . Redistributions in binary form must reproduce the above cop...
0f31ebf177890a40d13b1b54860408db8b29e016fc3dcf630b4c6fd41d507fb9
0xYUANTI/stdlib2
s2_csets.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% @doc Counting sets. %%% -us/people/aguilera/walter-sosp2011.pdf %%% @end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%_* Module declaration =============================================== -modul...
null
https://raw.githubusercontent.com/0xYUANTI/stdlib2/0c334200fd9c7ddd79f6dcc3a63c0aa5de5d3a33/src/s2_csets.erl
erlang
@doc Counting sets. -us/people/aguilera/walter-sosp2011.pdf @end _* Module declaration =============================================== _* Exports ========================================================== gen_lattice callbacks API Types _* Includes ========================================================= _* Co...
-module(s2_csets). -behaviour(s2_gen_lattice). -export([ new/0 , compare/2 , merge/2 , update/2 , value/1 ]). -export([ add_element/2 , cnt_element/2 , del_element/2 , is_cset/1 , is_element/2 , is_mode/1 , is_subset/2 ...
f76996fa6af04242252c513e5d77036a82ca6393ce8bde420968217d41d66264
erlang/corba
OrberApp_IFR_impl.erl
%%-------------------------------------------------------------------- %% %% %CopyrightBegin% %% Copyright Ericsson AB 1999 - 2016 . 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 ...
null
https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/orber/src/OrberApp_IFR_impl.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...
Copyright Ericsson AB 1999 - 2016 . 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('OrberApp_IFR_impl'). -include_lib("orber/src/orber_iiop.hrl"). -include_lib("orber/include/ifr_types.hrl")...
8855f91e0b9efcc637b65261e3df197672cb35ee6ea9028d1699ded4584608c6
janestreet/core_bench
bench_command.mli
* A module internal to [ Core_bench ] . Please look at { ! Bench } . Generates the command line interface to [ Core_bench ] . Generates the command line interface to [Core_bench]. *) open! Core open! Core_bench_internals type callback_bench = ?run_config:Run_config.t -> ?analysis_configs:Analysis_conf...
null
https://raw.githubusercontent.com/janestreet/core_bench/746d2440aa10795f1ef286df64be46e7d4ff768c/src/bench_command.mli
ocaml
* A module internal to [ Core_bench ] . Please look at { ! Bench } . Generates the command line interface to [ Core_bench ] . Generates the command line interface to [Core_bench]. *) open! Core open! Core_bench_internals type callback_bench = ?run_config:Run_config.t -> ?analysis_configs:Analysis_conf...
6e35a57c5dda4d6de0b7b18666b77f4dad80c8df16a3fd0011b8f2a042864ef4
haskell/cabal
Semaphore.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# OPTIONS_GHC -funbox-strict-fields #-} module Distribution.Client.Compat.Semaphore ( QSem , newQSem , waitQSem , signalQSem ) where import Prelude (IO, return, Eq (..), Int, Bool (..), ($), ($!), Num (..), flip) import Control.Concurrent.STM (TVar, atomically...
null
https://raw.githubusercontent.com/haskell/cabal/63841fb3380b902d12118fc272b5421a923cd647/cabal-install/src/Distribution/Client/Compat/Semaphore.hs
haskell
# LANGUAGE DeriveDataTypeable # # OPTIONS_GHC -funbox-strict-fields # | 'QSem' is a quantity semaphore in which the resource is acquired and released in units of one. It provides guaranteed FIFO ordering the block queue. mask_, because we need a chance to set up an exception handler after the join returns. very...
module Distribution.Client.Compat.Semaphore ( QSem , newQSem , waitQSem , signalQSem ) where import Prelude (IO, return, Eq (..), Int, Bool (..), ($), ($!), Num (..), flip) import Control.Concurrent.STM (TVar, atomically, newTVar, readTVar, retry, writeTVar) import C...
9148ae61e013f5e9414c52ff4c968672f047c7b64cc3234a70cf2cce75cca538
tisnik/clojure-examples
project.clj
; ( C ) Copyright 2016 , 2020 , 2021 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (defproject stream-pipe-1 "0....
null
https://raw.githubusercontent.com/tisnik/clojure-examples/0a4bb47a820bcdb5ad9bccefe8900b9a573d3dd5/kafka-stream-pipe-1/project.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2016 , 2020 , 2021 -v10.html (defproject stream-pipe-1 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.1"] ...
df3602c3e49676ecd5b6f86ec30ce6b32dfca11f9bc40a8ab0d23173c7e1ffbd
dongcarl/guix
digital-ocean.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2019 < > Copyright © 2020 < > ;;; ;;; 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 ; e...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/gnu/machine/digital-ocean.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 © 2019 < > Copyright © 2020 < > 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 (gnu machine digital-ocean) #:use-module (gnu machine ssh) #:use-mod...
a5cf3e35d78076fc0cf8225bbde919304a680384629503b6c9127ecb9ef78f21
fccm/OCamlSDL2
dir_sep.ml
print_endline Filename.dir_sep
null
https://raw.githubusercontent.com/fccm/OCamlSDL2/01fa29187cab90052d2581eb509d1bca1a85418f/src/dir_sep.ml
ocaml
print_endline Filename.dir_sep
efdda5b5ac405cd53b2b16fcf6c11cf3c0efde94fda32df81ed5c717c191d291
haskell/cabal
UnitTests.hs
module Main (main) where import Test.Tasty import qualified UnitTests.Distribution.Solver.Modular.MessageUtils main :: IO () main = defaultMain $ testGroup "Unit Tests" [ testGroup "UnitTests.Distribution.Solver.Modular.MessageUtils" UnitTests.Distribution.Solver.Modular.MessageUtils.tests ]
null
https://raw.githubusercontent.com/haskell/cabal/3c4023f52cd582199c220eae7a0fd55d50ea7a73/cabal-install-solver/tests/UnitTests.hs
haskell
module Main (main) where import Test.Tasty import qualified UnitTests.Distribution.Solver.Modular.MessageUtils main :: IO () main = defaultMain $ testGroup "Unit Tests" [ testGroup "UnitTests.Distribution.Solver.Modular.MessageUtils" UnitTests.Distribution.Solver.Modular.MessageUtils.tests ]
93f1f70b3dda9492f69d8f8b840a599b376bbb92a4213e351b7f9dc542b60f95
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.AmountOfMoney.VI.Corpus ( corpus ) where import Dat...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/AmountOfMoney/VI/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.AmountOfMoney.VI.Corpus ( corpus ) where import Data.String import Prelude import Duckling.AmountOfMoney.Types import Duckling.Locale import Duckling.Resolve import Duckling.Testing.Types corpus :: Corpus corpus = (testContext {locale = makeLo...
ad3777f28f179614ba23b49738c064a6ff30411fa3df3b98040b2295aced8d33
SonarQubeCommunity/sonar-erlang
lines_of_code.erl
-module(lines_of_code). vattapamacs(A,B) -> {error, B}.
null
https://raw.githubusercontent.com/SonarQubeCommunity/sonar-erlang/279eb7ccd84787c1c0cfd34b9a07981eb20183e3/erlang-squid/src/test/resources/metrics/lines_of_code.erl
erlang
-module(lines_of_code). vattapamacs(A,B) -> {error, B}.