_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
3ea31962ffb8ec2cdcf51afd9b0961cd7bf7ad900e02c6ef4f7aecf3b7e08bc9
c-cube/zulip-log-viewer
zulip_log_view.ml
module Fmt = CCFormat module H = Tyxml_html module Log = (val Logs.src_log (Logs.Src.create "zulip_log_view")) module DJ = Decoders_yojson.Basic.Decode let spf = Printf.sprintf module Date = struct type t = float let now = Unix.gettimeofday let to_string self = let t = Unix.gmtime self in spf "%d-%02d-...
null
https://raw.githubusercontent.com/c-cube/zulip-log-viewer/d0a128506cf63abd1dd2deee4ee179ce3c6d578c/src/zulip_log_view.ml
ocaml
raw html the weird '.' encoding into files for topics render a single message txt (spf "topic id=%d %s/%s" id strname name) cache hit
module Fmt = CCFormat module H = Tyxml_html module Log = (val Logs.src_log (Logs.Src.create "zulip_log_view")) module DJ = Decoders_yojson.Basic.Decode let spf = Printf.sprintf module Date = struct type t = float let now = Unix.gettimeofday let to_string self = let t = Unix.gmtime self in spf "%d-%02d-...
e98a94acdf0c287080cc8f42e4ebb022bd2b17b407d3b59f9cc3d3d508400acc
maxhbr/LDBcollector
IfrOSS.hs
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Collectors.IfrOSS ( loadIfrOSSFacts , ifrOSSLFC , ifrOSSKindToText ) where import qualified Prelude as P import MyPrelude hiding (id) import qualified Data.Text as T import qualified Data.Vector as V import...
null
https://raw.githubusercontent.com/maxhbr/LDBcollector/51d940f0af00b2acdd7de246b2be16fa30fc8a6b/src/Collectors/IfrOSS.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # module Collectors.IfrOSS ( loadIfrOSSFacts , ifrOSSLFC , ifrOSSKindToText ) where import qualified Prelude as P import MyPrelude hiding (id) import qualified Data.Text as T import qualified Data.Vector as V import Model.License import ...
0a33ba4bdd087c6e58271e32d321b320de7017cdf15519c2396b9adf44e7a523
asmala/clj-simple-form
test_support.clj
(ns clj-simple-form.test-support (:require [taoensso.tower :as tower] [clj-simple-form.util :as util])) (def dictionary {:en {:missing "Translation missing" :simple-form {:profile {:labels {:email "Email"} :hints {:email "Double-check your email address."}} ...
null
https://raw.githubusercontent.com/asmala/clj-simple-form/b1c566b1f0fe532639b15832b557f1608598a0a2/clj-simple-form-core/test/clj_simple_form/test_support.clj
clojure
(ns clj-simple-form.test-support (:require [taoensso.tower :as tower] [clj-simple-form.util :as util])) (def dictionary {:en {:missing "Translation missing" :simple-form {:profile {:labels {:email "Email"} :hints {:email "Double-check your email address."}} ...
2f52b088600e794f66dd9737e4f9a6199a0b08b6511d76fda4009422c7669c20
facebook/duckling
Tests.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. module Duckling.Numeral.TR.Tests ( tests ) where import Prelude import Data.String import Test.Tasty imp...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Numeral/TR/Tests.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.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Numeral.TR.Tests ( tests ) where import Prelude import Data.String import Test.Tasty import Duckling.Dimensions.Types import Duckling.Numeral.TR.Corpus import Duckling.Testing.Asserts tests :: TestTree tests = testGroup "TR Tests" [ makeCorpusT...
57f0a5d7e4173b637bff24318d80666cd24b623f217cf0da55a5160897971d9c
sgbj/MaximaSharp
derf.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 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 46c1f6a93b0d 2012/05/03 04:40:28 toy $...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/numerical/slatec/derf.lisp
lisp
Compiled by f2cl version: "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $" Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':simple-array) (:array-slicing nil) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 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 $ " " f2cl6.l , v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $ " " macros.l , v fceac53...
f04b773949db441c92e3f098065b82cc1cae8db24acf0eb4c70646f7533050f7
vimus/libmpd-haskell
PlaybackControlSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Network.MPD.Applicative.PlaybackControlSpec (main, spec) where import TestUtil import Network.MPD.Applicative.PlaybackControl import Network.MPD.Commands.Types main :: IO () main = hspec spec spec :: Spec spec = do describe "next" $ do ...
null
https://raw.githubusercontent.com/vimus/libmpd-haskell/1ec02deba33ce2a16012d8f0954e648eb4b5c485/tests/Network/MPD/Applicative/PlaybackControlSpec.hs
haskell
# LANGUAGE OverloadedStrings #
module Network.MPD.Applicative.PlaybackControlSpec (main, spec) where import TestUtil import Network.MPD.Applicative.PlaybackControl import Network.MPD.Commands.Types main :: IO () main = hspec spec spec :: Spec spec = do describe "next" $ do it "sends a next request" $ do...
1fafc8a99e8038cf5a68861cafe236ab9f2911b0d8299875e23b8149732da646
ekmett/rcu
IncCounterExperiment.hs
# LANGUAGE CPP # # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # ----------------------------------------------------------------------------- -- | Copyright : ( C ) 2015 and -- License : BSD-style (see the file LICENSE) Maintainer : < > , < > -- Stability : experimenta...
null
https://raw.githubusercontent.com/ekmett/rcu/d81f03d7fcf3267f6efa0da14b8e91984bfdb7df/examples/IncCounterExperiment.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable Which counter increment is faster? --------------------------------------------------------------------------- | Counter for causal...
# LANGUAGE CPP # # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # Copyright : ( C ) 2015 and Maintainer : < > , < > module Main where import Control.Monad (forM_) import Control.Monad.Primitive (primitive) import Criterion.Main (bench, bgroup, defaultMain, nfIO) import Data.Wor...
7e62567fdfe5b9090c9d55a1392fbc08abca899d0013270ed95d09599211dd54
joinr/spork
tags.clj
;;an abstract set of functions for working on maps, treating them as ;;simple tag databases. tags are categories applied to multiple ;;subjects. Subjects are unique identifiers that are subjected to a tag. ;;Tags are basically meta-data....except it's explicit. Update Feb 2017 - Looking to revisit this . There a...
null
https://raw.githubusercontent.com/joinr/spork/bb80eddadf90bf92745bf5315217e25a99fbf9d6/src/spork/util/tags.clj
clojure
an abstract set of functions for working on maps, treating them as simple tag databases. tags are categories applied to multiple subjects. Subjects are unique identifiers that are subjected to a tag. Tags are basically meta-data....except it's explicit. ways to store tags. Additionally, the original use-case may n...
Update Feb 2017 - Looking to revisit this . There are more effecient (ns spork.util.tags (:require [spork.util [general :as gen]] [clojure.set :as cljset])) (defprotocol ITagStore (get-tags [store subject] "Fetch any tags associated with a subject from database m.") (get-subjects [store tag] "Fet...
ffeb2ef6ea83e2c751ae72c6d0f2ec4f7ba3f1074bb93ebf07d09d6cd01d942a
joelburget/lvca
DeBruijn_2d.ml
open Base open Lvca_util open Option.Let_syntax type 'info term = | Operator of 'info * string * 'info scope list | BoundVar of 'info * int * int | FreeVar of 'info * string | Primitive of 'info Primitive.All.t and 'info scope = Scope of 'info Pattern.t list * 'info term let rec to_nominal' ctx = function ...
null
https://raw.githubusercontent.com/joelburget/lvca/f8a3b8e294f564d1fc9836af63e6169b26ca0234/experimental/DeBruijn_2d.ml
ocaml
open Base open Lvca_util open Option.Let_syntax type 'info term = | Operator of 'info * string * 'info scope list | BoundVar of 'info * int * int | FreeVar of 'info * string | Primitive of 'info Primitive.All.t and 'info scope = Scope of 'info Pattern.t list * 'info term let rec to_nominal' ctx = function ...
b9e67eea9bb7c35a9788403b1115ce78a92a00ae6b79510d6184a5e510936505
chenyukang/eopl
06.scm
;; How many different evaluation orders are possible for the procedure ;; calls in (lambda (x y) (+ (f (g x)) (h (j y))))? For each evaluation order , write a CPS expression that calls the procedures in that order . 4 ! ? for function f , , h , j. (lambda (x y) (+ (f (g x)) (h (j y)))) ;; g -> j -> f ...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch6/06.scm
scheme
How many different evaluation orders are possible for the procedure calls in (lambda (x y) (+ (f (g x)) (h (j y))))? For each evaluation g -> j -> f -> h -> + j -> g -> f -> h g -> j -> h -> f j -> g -> h -> f g -> f -> j -> h j -> h -> g -> f
order , write a CPS expression that calls the procedures in that order . 4 ! ? for function f , , h , j. (lambda (x y) (+ (f (g x)) (h (j y)))) (lambda (x y cont) (g x (lambda (val) (j y (lambda (val2) (f val (lambda (val3) (h val2 (lambda (val4) (cont (+ val3 val4))))))))))) (lambda...
7a314c6ed1c06d9deb24f44ab0f692b22fab0d7159d1a6809c19d5e30f4affe2
nextjournal/clerk-slideshow
simple_slideshow.clj
# Hello there 👋 ;; ;; `clerk-slideshow` enables you to create beautiful interactive slide decks ;; using Clerk notebooks. ;; --- ;; ## How does it work? ;; ;; Simply require `clerk-slideshow` (ns simple-slideshow (:require [nextjournal.clerk :as clerk] [nextjournal.clerk-slideshow :as slideshow])) ;...
null
https://raw.githubusercontent.com/nextjournal/clerk-slideshow/562f634494a1e1a9149ed78d5d39fd9486cc00ba/notebooks/simple_slideshow.clj
clojure
`clerk-slideshow` enables you to create beautiful interactive slide decks using Clerk notebooks. --- ## How does it work? Simply require `clerk-slideshow` and add it to Clerk’s existing viewers --- ## What now? Use Markdown rulers (`---`) to separate your slides. You can use everything that you’ll normally...
# Hello there 👋 (ns simple-slideshow (:require [nextjournal.clerk :as clerk] [nextjournal.clerk-slideshow :as slideshow])) ^{::clerk/visibility {:code :hide :result :hide}} (clerk/add-viewers! [slideshow/viewer]) With that in place , you can use comments to write your slides ’ content . Press...
8f5f80e8080a9ae4e826c1434bfc4ff768708023af9c79a8fde3def27cbf1e5f
fmthoma/vgrep
KeybindingMap.hs
# LANGUAGE GeneralizedNewtypeDeriving # module Vgrep.KeybindingMap where import Data.Map.Strict (Map) import qualified Data.Map.Strict as M import Vgrep.Command import qualified Vgrep.Key as Key newtype KeybindingMap = KeybindingMap { unKeybindingMap :: Map Key.Chord Command } deriving (S...
null
https://raw.githubusercontent.com/fmthoma/vgrep/f3b140bf3150a3699234469c34ff8c13a298998e/src/Vgrep/KeybindingMap.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # module Vgrep.KeybindingMap where import Data.Map.Strict (Map) import qualified Data.Map.Strict as M import Vgrep.Command import qualified Vgrep.Key as Key newtype KeybindingMap = KeybindingMap { unKeybindingMap :: Map Key.Chord Command } deriving (S...
1cda4e8e722bbfc5f56459d18fcede051ffa5bcbb90aa18729965eeada969e15
Frama-C/Frama-C-snapshot
split_return.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/partitioning/split_return.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
e9d62db714ce16ac355017a435b50479d38e273667b86f23a6c1958b52af7e16
geoffder/dometyl-keyboard
bottom.mli
open OCADml open OSCADml type bump_loc * [ thumb ? loc col row ] Compute a bumpon location under the thumb key at [ col ] and [ row ] with a relative position of [ loc ] in a coordinate space where the origin of the key is [ ( v2 0.5 0.5 ) ] . Compute a bumpon location under the thumb key at [...
null
https://raw.githubusercontent.com/geoffder/dometyl-keyboard/5efa847361e0ceb80de5b03dd28a702d6b42412d/lib/bottom.mli
ocaml
* [point p] Specify a a bumpon location at the absolute xy coordinate [p]. * A list of default relative (placed under keyholes) bumpon locations
open OCADml open OSCADml type bump_loc * [ thumb ? loc col row ] Compute a bumpon location under the thumb key at [ col ] and [ row ] with a relative position of [ loc ] in a coordinate space where the origin of the key is [ ( v2 0.5 0.5 ) ] . Compute a bumpon location under the thumb key at [...
ce70656ae2c2141d92248219d835ccb7c8c4ed2c1d9828317082977d20db5615
kelamg/HtDP2e-workthrough
ex205.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex205) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decima...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Arbitrarily-Large-Data/ex205.rkt
racket
about the language level of this file in a form that our tools can easily process. itunes export file from: (define list-tracks – '() An LAssoc is one of: – '() – Boolean – Number – String – Date Helpers for creating associations BDSN (String) -> Association produce a name association BDSN (String)...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex205) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/batch-io) (require 2htdp/itunes) (define ITU...
897a6f91a73b66a66ece2a7061c99a165989f8646e45b8ec3951cdffe8cdd3e0
GaloisInc/network-hans
Types.hs
module Network.Socket.Types( Socket , newSocket , connectIP4 , bindIP4 , listen , acceptIP4 , SocketStatus(..) , getSocketStatus , Direction(..) , directionOpen , withTcpSocket , withUdpSocket , socketToHandle , Shutdown...
null
https://raw.githubusercontent.com/GaloisInc/network-hans/5bc00507ca34cc33c57065f420c9e4742abf0397/src/Network/Socket/Types.hs
haskell
module Network.Socket.Types( Socket , newSocket , connectIP4 , bindIP4 , listen , acceptIP4 , SocketStatus(..) , getSocketStatus , Direction(..) , directionOpen , withTcpSocket , withUdpSocket , socketToHandle , Shutdown...
a7d77e4813676a5423704ad8fd72dd760043176605e1b152d31e803e552fd1f2
facebook/pyre-check
aliasEnvironmentTest.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/b01273d38792dc2b92ea6b2aa37668c4e86651fb/source/analysis/test/aliasEnvironmentTest.ml
ocaml
TypedDicts are treated as proper classes, not aliases. Recursive alias. Forbid directly-recursive aliases. Aliases referring to recursive aliases. An alias containing "..." should not mistake the "..." for some unknown alias. Allow the union syntax in type aliases. Even if the route to the alias changed, n...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
5a52b1c8718ccc0d2d6a8cc73ddd4a05ceb0dc428019ed5cdb4709887633de36
HaskellCNOrg/snap-web
Tests.hs
{-# LANGUAGE OverloadedStrings #-} module Views.Tests (tests) where import Test.Framework (Test, testGroup) import qualified Views.PaginationSplicesTest (tests) import qualified Views.ReplySplicesTest (tests) tests :: Test tests = testGroup "Test.Views" [ Views.ReplySplicesTest.test...
null
https://raw.githubusercontent.com/HaskellCNOrg/snap-web/f104fd9b8fc5ae74fc7b8002f0eb3f182a61529e/tests/Views/Tests.hs
haskell
# LANGUAGE OverloadedStrings #
module Views.Tests (tests) where import Test.Framework (Test, testGroup) import qualified Views.PaginationSplicesTest (tests) import qualified Views.ReplySplicesTest (tests) tests :: Test tests = testGroup "Test.Views" [ Views.ReplySplicesTest.tests , Views.PaginationSplicesTest...
af889fb86a2a20b6e9383e19fe6e217f3f45a184a7963d98795f069c213f8f72
samply/blaze
all.clj
(ns blaze.db.impl.search-param.all "A internal search parameter returning all resources of a type. This search param is used to put the date search param on _lastUpdated into second position if no other search param is available for the first position. The date search param on _lastUpdated can't be in first p...
null
https://raw.githubusercontent.com/samply/blaze/ccfad24c890c25a87ba4e3cde035ba8dbfd4d239/modules/db/src/blaze/db/impl/search_param/all.clj
clojure
(ns blaze.db.impl.search-param.all "A internal search parameter returning all resources of a type. This search param is used to put the date search param on _lastUpdated into second position if no other search param is available for the first position. The date search param on _lastUpdated can't be in first p...
6b6ef053b9df539417cb35c67fb9557c84d1799fbde1e27994fab743617c734a
jgm/texmath
OMML.hs
# LANGUAGE PatternGuards # {-# LANGUAGE OverloadedStrings #-} Copyright ( C ) 2014 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your o...
null
https://raw.githubusercontent.com/jgm/texmath/0f95c7d61a76491d9dce219763323d6f3173df21/src/Text/TeXMath/Readers/OMML.hs
haskell
# LANGUAGE OverloadedStrings # documentation of this, so we just unwrap any w:tag immediately beneath oMath. Note that this shouldn't affect the "w" tags in elemToOMathRunElem(s) because, those are underneath an "m:r" tag. --- And now the TeXMath Creation default to wide hat. see default to overbrace bot is def...
# LANGUAGE PatternGuards # Copyright ( C ) 2014 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This...
f7b07fa195c226046f164d5c2c39611b50ed5ad7b28cbf40d6bc4e1d53d6ddda
haskell-repa/repa
JSON.hs
# OPTIONS_GHC -fno - warn - orphans # | Conversion of Repa queries to JSON format for interfacing with -- client systems. -- Conversion is done by providing instances for the ` ToJSON ` and ` FromJSON ` classes form the package . -- module Data.Repa.Query.Graph.JSON (encode, toJSON, fromJSON, Res...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-query/Data/Repa/Query/Graph/JSON.hs
haskell
client systems. ------------------------------------------------------------------------------------------- Graph -------------------------------------------------------------------------------------------- Node ------------------------------------------------------------------------------------------ Source Sou...
# OPTIONS_GHC -fno - warn - orphans # | Conversion of Repa queries to JSON format for interfacing with Conversion is done by providing instances for the ` ToJSON ` and ` FromJSON ` classes form the package . module Data.Repa.Query.Graph.JSON (encode, toJSON, fromJSON, Result(..)) where import Contro...
3330158fd22d219d4f0fd66a9dd9bb83ab38301ff3f396b98a221c246abbc753
mejgun/haskell-tdlib
InlineQueryResult.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.InlineQueryResult where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.Animation as Animation import qualified TD.Data.Audio as Audio import qualified TD.Data.Contact as Contact import qualified TD.Data.Document a...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Data/InlineQueryResult.hs
haskell
# LANGUAGE OverloadedStrings # | | Represents a single result of an inline query | Represents a link to an article or web page | Result thumbnail in JPEG format; may be null | | Title of the result | True, if the URL must be not shown | URL of the result, if it exists | Unique identifier of the query result |...
module TD.Data.InlineQueryResult where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.Animation as Animation import qualified TD.Data.Audio as Audio import qualified TD.Data.Contact as Contact import qualified TD.Data.Document as Document import qualified TD.Data.Game...
9158a360be6c19dd124c15536fac8d9258da37be8f0a21c2fd57713d562a1b6d
plumatic/grab-bag
logging.clj
(ns service.logging (:use plumbing.core) (:require [clojure.pprint :as pprint] [clojure.string :as str] [clojure.tools.logging :as clj-log] [plumbing.html-gen :as html-gen] [plumbing.logging :as log] [plumbing.parallel :as parallel] [plumbing.resource :as resource] [store.mongo :as mongo] ...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/service/src/service/logging.clj
clojure
Private: helpers TODO: way to configure target email, either service-wide and/or via :to in log entry. the only unbounded string fields, see plumbing.logging/throwable->map Private: Writing to mongo in aggregate and stream Private: github urls Private: Error emails Public
(ns service.logging (:use plumbing.core) (:require [clojure.pprint :as pprint] [clojure.string :as str] [clojure.tools.logging :as clj-log] [plumbing.html-gen :as html-gen] [plumbing.logging :as log] [plumbing.parallel :as parallel] [plumbing.resource :as resource] [store.mongo :as mongo] ...
512da20aa684b2ac7573fc5de868df8dded439a10b8c7297894145217c4ed828
softlab-ntua/bencherl
basic_utils_test.erl
Copyright ( C ) 2003 - 2014 % This file is part of the Ceylan Erlang library . % % This library is free software: you can redistribute it and/or modify % it under the terms of the GNU Lesser General Public License or the GNU General Public License , as they are published by the Free Software Foundation , eith...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/sim-diasca/common/src/utils/basic_utils_test.erl
erlang
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License or any later version. You can also redistribute it and/or modify it under the terms of the This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; w...
Copyright ( C ) 2003 - 2014 This file is part of the Ceylan Erlang library . the GNU General Public License , as they are published by the Free Software Foundation , either version 3 of these Licenses , or ( at your option ) Mozilla Public License , version 1.1 or later . GNU Lesser General Public License...
8272782f2c91bca7f30a5c2d5241c558c043bb77f9c7084bf1979cd65060bed8
alexandergunnarson/quantum
core.cljc
(ns quantum.apis.google.places.core #_(:require-quantum [:lib conv http auth])) (def search-url "") (defrecord GeoCoordinate [lat long]) ( GeoCoordinate . 0 0 # _ lat # _ long ) (def valid-place-types #{"accounting" "airport" "amusement_park" "aquarium" "art_gallery" "atm" "bakery" ...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/apis/google/places/core.cljc
clojure
Defines the distance (in meters) within which to return place results. Optional parameters language — The language code, indicating in which language the results should be returned, if possible. See the list of supported languages and their codes. Note that we often update supported languages so this list may not be...
(ns quantum.apis.google.places.core #_(:require-quantum [:lib conv http auth])) (def search-url "") (defrecord GeoCoordinate [lat long]) ( GeoCoordinate . 0 0 # _ lat # _ long ) (def valid-place-types #{"accounting" "airport" "amusement_park" "aquarium" "art_gallery" "atm" "bakery" ...
e714557ec2b72231d14dcd43884604123ccd95ee75e1b77d5482d0796040ba40
theodormoroianu/SecondYearCourses
lab6-sol_20210115144738.hs
-- / import Data.Char import Data.List import Test.QuickCheck 1 . rotate :: Int -> [Char] -> [Char] rotate n l | n > 0 , n < length l = suf ++ pre where (pre, suf) = splitAt n l rotate _ _ = error "număr negativ sau prea mare" 2 . prop_rotate :: Int -> String -> Bool prop_rotate k str = rotate (l ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/99185b0e97119135e7301c2c7be0f07ae7258006/Haskell/l/.history/lab6/lab6-sol_20210115144738.hs
haskell
/
import Data.Char import Data.List import Test.QuickCheck 1 . rotate :: Int -> [Char] -> [Char] rotate n l | n > 0 , n < length l = suf ++ pre where (pre, suf) = splitAt n l rotate _ _ = error "număr negativ sau prea mare" 2 . prop_rotate :: Int -> String -> Bool prop_rotate k str = rotate (l + 2 -...
879ec1a79a6dee4834b775676234155d1e0df26e340c2393f879d25b93ce1910
scalaris-team/scalaris
db_util.erl
2015 Zuse Institute Berlin , Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distrib...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/db_util.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2015 Zuse Institute Berlin , Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @author < > -module(db_util). -author(''). -author(''). -include("scalaris.hrl"). -export([get_name/1, get_subscrib...
d17633debc0bb2768b19b2b9d272e64d8b4e576ba7a55cae4787b35c94966d05
morpheusgraphql/morpheus-graphql
App.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TupleSections # # LANGUAGE UndecidableInstances # # LANGUAGE NoImplicitPrelude # module Data.Morpheus.Ser...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/c176cc86e590ae5cecadb8ee02bd608be8b88c5f/morpheus-graphql-server/src/Data/Morpheus/Server/Deriving/App.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs #
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TupleSections # # LANGUAGE UndecidableInstances # # LANGUAGE NoImplicitPrelude # module Data.Morpheus.Server.Deriving.App ( RootResolverConstraint, deriveS...
0c285dd865949743fb60807ae6a0c87a84a558542e050cde9c9913674b381b98
cloudamqp/rabbitmq-vshovel
rabbit_vshovel_parameters.erl
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WA...
null
https://raw.githubusercontent.com/cloudamqp/rabbitmq-vshovel/c439a10efdc518eb930dcccdd0a7334f1ca859ce/src/rabbit_vshovel_parameters.erl
erlang
compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ---------------------------------------------------------------------------- ...
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. ...
fe89ad7c8c0dfd6462bac09afb3c062e54a5e0d5f06e15cc63b298a40f1aae09
nikodemus/SBCL
parse-defmacro-errors.lisp
error - handling machinery for PARSE - DEFMACRO , separated from PARSE - DEFMACRO code itself because the happy path can be handled ;;;; earlier in the bootstrap sequence than DEFINE-CONDITION can be This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/code/parse-defmacro-errors.lisp
lisp
earlier in the bootstrap sequence than DEFINE-CONDITION can be more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Set up appropriate prettying and indentation on STREAM, print some boilerplate...
error - handling machinery for PARSE - DEFMACRO , separated from PARSE - DEFMACRO code itself because the happy path can be handled This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released...
14eb34543773ccfb63eb23ad945f238c5aeec499aa83ae3f934b70bdf229d518
adventuring/tootsville.net
lil-mc.lisp
;;;; -*- lisp -*- ;;; src / characters / named / lil - mc.lisp is part of ;;; Copyright © 2008 - 2017 Bruce - Robert Pocock ; © 2018 - 2021 The Corporation for Inter - World Tourism and Adventuring ( ciwta.org ) . ;;; This program is Free Software : you can redistribute it and/or ...
null
https://raw.githubusercontent.com/adventuring/tootsville.net/985c11a91dd1a21b77d7378362d86cf1c031b22c/src/characters/named/lil-mc.lisp
lisp
-*- lisp -*- © 2018 - 2021 The either version 3 of 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 Public License for more det...
src / characters / named / lil - mc.lisp is part of Corporation for Inter - World Tourism and Adventuring ( ciwta.org ) . This program is Free Software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License the License , or ( at your option ) any lat...
508d01268f2e6eadbda4bf939555fa3d3049fa3656724f98aa4e7c45ba4152d3
racket/macro-debugger
reductions-util.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse) racket/stxparam racket/contract/base racket/list syntax/stx racket/match racket/pretty "deriv-util.rkt" "stx-util.rkt" "pattern.rkt" "context.rk...
null
https://raw.githubusercontent.com/racket/macro-debugger/d4e2325e6d8eced81badf315048ff54f515110d5/macro-debugger-text-lib/macro-debugger/model/reductions-util.rkt
racket
============================================================ Hiding configuration ============================================================ Expansion Context (Parameterof HonestyMask) PRE: hm <= (honesty) -- that is, honesty is only decreased or left unchanged Invariant: (honesty) = 'T iff (the-vt) = #f ho...
#lang racket/base (require (for-syntax racket/base syntax/parse) racket/stxparam racket/contract/base racket/list syntax/stx racket/match racket/pretty "deriv-util.rkt" "stx-util.rkt" "pattern.rkt" "context.rk...
4993001fb4a5f4f4b285b61847c907acda02d8444ecafd41db7710abb4d80d41
buntine/Simply-Scheme-Exercises
5-19.scm
; Write a procedure insert-and that takes a sentence of items and returns a new ;sentence with an “and” in the right place: ; > ( insert - and ’ ( ) ) ( JOHN BILL WAYNE FRED AND ) (define (insert-and sent) (sentence (bl sent) 'and (last sent)))
null
https://raw.githubusercontent.com/buntine/Simply-Scheme-Exercises/c6cbf0bd60d6385b506b8df94c348ac5edc7f646/05-words-and-sentences/5-19.scm
scheme
Write a procedure insert-and that takes a sentence of items and returns a new sentence with an “and” in the right place:
> ( insert - and ’ ( ) ) ( JOHN BILL WAYNE FRED AND ) (define (insert-and sent) (sentence (bl sent) 'and (last sent)))
92253550386a84da3d53ea9560477a372bae3c7293a1bb3fdfa7def200897c22
fpco/ide-backend
Update.hs
# LANGUAGE FlexibleContexts , , ScopedTypeVariables , TemplateHaskell , OverloadedStrings # -- | IDE session updates -- -- We should only be using internal types here (explicit strictness/sharing) module IdeSession.Update ( -- * Starting and stopping initSession , initSessionWithCallbacks , SessionInitPara...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/IdeSession/Update.hs
haskell
| IDE session updates We should only be using internal types here (explicit strictness/sharing) * Starting and stopping * Session updates Abstract * Running code * Debugging ------------------------------------------------------------------------------ Session initialization ----------------------------------...
# LANGUAGE FlexibleContexts , , ScopedTypeVariables , TemplateHaskell , OverloadedStrings # module IdeSession.Update ( initSession , initSessionWithCallbacks , SessionInitParams(..) , defaultSessionInitParams , shutdownSession , forceShutdownSession , restartSession , updateSession , updateSourceFi...
66c27ab7bc3ee785caf457788adbcee338cac4b333f325019f8ee425ed937e76
bhauman/figwheel-main
watching.clj
(ns figwheel.main.watching (:require [clojure.java.io :as io] [clojure.string :as string] [nextjournal.beholder :as beholder])) (def ^:dynamic *watcher* (atom {:watcher nil :watches {}})) (defn stop-watchers! [watchers] (doseq [watcher watchers] (beholder/stop watcher))) (defn alter-watches [{:keys ...
null
https://raw.githubusercontent.com/bhauman/figwheel-main/8db5e58c6e951d9db08600f2552d0170a7cc2932/src/figwheel/main/watching.clj
clojure
is this needed now?
(ns figwheel.main.watching (:require [clojure.java.io :as io] [clojure.string :as string] [nextjournal.beholder :as beholder])) (def ^:dynamic *watcher* (atom {:watcher nil :watches {}})) (defn stop-watchers! [watchers] (doseq [watcher watchers] (beholder/stop watcher))) (defn alter-watches [{:keys ...
119a0dcc79664a3a371507d1722ec66aba65a731ec1dc5d632889f9129aa8fa6
adamdoupe/find_ear_rails
scope_cfg_tests.ml
open OUnit open Cfg_test_helper open Config let succ_scope_test (desc,pre,post) = conf.error_raises_exc <- true; let d = desc ^ ": " ^ pre in d >:: (fun () -> Cfg_refactor.re_init (); let loader = File_loader.create File_loader.EmptyCfg [] in let scoper = Cfg_scope.create loader in le...
null
https://raw.githubusercontent.com/adamdoupe/find_ear_rails/38f892f9962ad415a583973caf24fbab1a011be1/diamondback-ruby-0.20090726/tests/cfg/scope_cfg_tests.ml
ocaml
just want this to be accepted, I don't think we want to change the self to a ::A
open OUnit open Cfg_test_helper open Config let succ_scope_test (desc,pre,post) = conf.error_raises_exc <- true; let d = desc ^ ": " ^ pre in d >:: (fun () -> Cfg_refactor.re_init (); let loader = File_loader.create File_loader.EmptyCfg [] in let scoper = Cfg_scope.create loader in le...
1a8d3fa7b8bfe4f8cb32b9553e784fdc5b68b829ede4282a053c21b4f85c8334
mzp/coq-ruby
coqmktop.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/scripts/coqmktop.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Objects to link environment Bui...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : coqmktop.ml 12874...
83e888939a381c2d449adfbcd2ffdf90035861d13f84242423b7ad0f9b1833c3
walmartlabs/lacinia
documentation_test.clj
Copyright ( c ) 2017 - present Walmart , Inc. ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; -2.0 ; ; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/walmartlabs/lacinia/88bf46f197bfed645d7767fcfe2bfa39e8b00b27/test/com/walmartlabs/lacinia/documentation_test.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2017 - present Walmart , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) distributed under the License is distributed on an " AS IS " BASIS , (ns com.walmartlabs.lacinia.documentation-test "Tests that documentation for fields and field args can be inhertited from interf...
219eee00326375427636005c5ffc63f6db150ce88e8158540101a7bbf8bf1bb8
alex-gutev/tridash
parser.lisp
;;;; parser.lisp ;;;; ;;;; Tridash Programming Language. Copyright ( C ) 2018 - 2021 ;;;; ;;;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;;; (at ...
null
https://raw.githubusercontent.com/alex-gutev/tridash/1d6163f8bda3908e8a2f197245b07511efa68e78/test/parser.lisp
lisp
parser.lisp Tridash Programming Language. 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 PAR...
Copyright ( C ) 2018 - 2021 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (defpackage :tridash/test.parser (:use :generic-cl :alexandria ...
bf9f8edf9e9e848100c7b88a887b5cd4d61a3eca986e211d00aff9df82cc4bc5
barrucadu/yukibot
Mongo.hs
{-# LANGUAGE OverloadedStrings #-} -- | Module : . Mongo Copyright : ( c ) 2016 License : MIT -- Stability : experimental -- Portability : OverloadedStrings module Yukibot.Mongo where import Data.Maybe (fromMaybe) import Data.Monoid ((<>)) import Data.Text (Text) import qualified Data.Text as...
null
https://raw.githubusercontent.com/barrucadu/yukibot/7b12153e2cc71b62f86ab3a851a250dce83343b8/yukibot-core/Yukibot/Mongo.hs
haskell
# LANGUAGE OverloadedStrings # | Stability : experimental Portability : OverloadedStrings | Connection information for MongoDB. | Extract MongoDB configuration. | Run a query. This automatically namespaces by backend signature. The current backend signature is added as a \"_backendsig\" field to the selecto...
Module : . Mongo Copyright : ( c ) 2016 License : MIT module Yukibot.Mongo where import Data.Maybe (fromMaybe) import Data.Monoid ((<>)) import Data.Text (Text) import qualified Data.Text as T import Database.MongoDB ((=:)) import qualified Database.MongoDB as M import Yukibot.Configuration im...
224707193c0ae2de1742a30eac33f6f9920195e15284d23671f1fb36943129e6
emanjavacas/cosycat
annotations.cljs
(ns cosycat.backend.handlers.annotations (:require [re-frame.core :as re-frame] [schema.core :as s] [ajax.core :refer [POST GET]] [cosycat.schemas.annotation-schemas :refer [annotation-schema]] [cosycat.app-utils :refer [deep-merge is-last-partition token-i...
null
https://raw.githubusercontent.com/emanjavacas/cosycat/a7186363d3c0bdc7b714af126feb565f98793a6e/src/cljs/cosycat/backend/handlers/annotations.cljs
clojure
Incoming annotations; query-panel found hit by id found hit for annotation couldn't find hit for annotation generic handler general annotation fetcher for query hits annotation fetcher for issue hits annotation fetcher for review pages Outgoing annotations project-level error (e.g. insufficient rights)
(ns cosycat.backend.handlers.annotations (:require [re-frame.core :as re-frame] [schema.core :as s] [ajax.core :refer [POST GET]] [cosycat.schemas.annotation-schemas :refer [annotation-schema]] [cosycat.app-utils :refer [deep-merge is-last-partition token-i...
a08dbe2309efd9a5ef1e477c7aee730bfaa1da709ab710da1ddad82e0500d2b9
bennn/iPoe
reader.rkt
#lang ipoe #:name cinquain #:rhyme-scheme ((2 4 6 8 2))
null
https://raw.githubusercontent.com/bennn/iPoe/4a988f6537fb738b4fe842c404f9d78f658ab76f/ipoe/cinquain/lang/reader.rkt
racket
#lang ipoe #:name cinquain #:rhyme-scheme ((2 4 6 8 2))
59ac2d53d3fc29e1e7869e860c5fdaa3316ac49dc25c9ee52cd4c9a960d93ec5
rlepigre/pml
pos.ml
(** Source code position management. This module can be used to map the elements of an abstract syntax tree to sequences of characters in a source file. *) open Earley_core * Type of a position corresponding to a continuous range of characters in a ( utf8 encoded ) source file . For denoting a zero - le...
null
https://raw.githubusercontent.com/rlepigre/pml/cdfdea0eecc6767b16edc6a7bef917bc9dd746ed/src/util/pos.ml
ocaml
* Source code position management. This module can be used to map the elements of an abstract syntax tree to sequences of characters in a source file. * File name for the position. * Line number of the starting point. * Column number (utf8) of the starting point. * Line number of the ending p...
open Earley_core * Type of a position corresponding to a continuous range of characters in a ( utf8 encoded ) source file . For denoting a zero - length position is to have [ end_col ] equal to [ start_col - 1 ] . a (utf8 encoded) source file. For denoting a zero-length position is to have [end_co...
e50a0bee311178a1cd2441a3e224933cba00fd6b8c6ae3e2895530c54245d9a5
ocaml-flambda/flambda-backend
set_of_closures.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/61abb3f595c93a7d411726aff04c1d1ce2d54e40/middle_end/flambda2/terms/set_of_closures.ml
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2019 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the type t = { function_decls : Function_declarations.t; value_slo...
7e408b9b583802daea591918c34d9b14767cf0d750718de295c7e06f7e063a73
VincentToups/racket-lib
demon-name-generator.rkt
#lang racket (define bom-names (list "Aaron" "Aaron" "Abinadi" "Abinadom" "Abish" "Aha" "Ahah" "Akish" "Alma" "Alma" "Amaleki" "Amaleki" "Amalickiah" "Amaron" "Aminadab" "Aminadi" "Amlici" "Ammah" "Ammaron" "Ammon" "Ammon" "Ammoron" "Amnigaddah" "Amnor" "Amoron" "Amos" "Amos" "Amulek" "Amulon" "Antiomno" "Antionah" ...
null
https://raw.githubusercontent.com/VincentToups/racket-lib/d8aed0959fd148615b000ceecd7b8a6128cfcfa8/ensorcelled/demon-name-generator.rkt
racket
(string->triples "test") (populate-transition-table demon-names)
#lang racket (define bom-names (list "Aaron" "Aaron" "Abinadi" "Abinadom" "Abish" "Aha" "Ahah" "Akish" "Alma" "Alma" "Amaleki" "Amaleki" "Amalickiah" "Amaron" "Aminadab" "Aminadi" "Amlici" "Ammah" "Ammaron" "Ammon" "Ammon" "Ammoron" "Amnigaddah" "Amnor" "Amoron" "Amos" "Amos" "Amulek" "Amulon" "Antiomno" "Antionah" ...
280970954d7a03b7cea88e74d1cd666200cdb87bc084a75327d4deeddb3e93f3
day8/re-frame-10x
server.cljs
(ns ^{:mranderson/inlined true} day8.re-frame-10x.inlined-deps.reagent.v1v0v0.reagent.dom.server (:require ["react-dom/server" :as dom-server] [day8.re-frame-10x.inlined-deps.reagent.v1v0v0.reagent.impl.util :as util] [day8.re-frame-10x.inlined-deps.reagent.v1v0v0.reagent.impl.template :as tmp...
null
https://raw.githubusercontent.com/day8/re-frame-10x/d8dcb17e217449aba2cf64b9f843b0e9f86cfcb6/gen-src/day8/re_frame_10x/inlined_deps/reagent/v1v0v0/reagent/dom/server.cljs
clojure
(ns ^{:mranderson/inlined true} day8.re-frame-10x.inlined-deps.reagent.v1v0v0.reagent.dom.server (:require ["react-dom/server" :as dom-server] [day8.re-frame-10x.inlined-deps.reagent.v1v0v0.reagent.impl.util :as util] [day8.re-frame-10x.inlined-deps.reagent.v1v0v0.reagent.impl.template :as tmp...
771f17db9053d361c9a30f8104c7e5273a85331d0649698659548a3069ecb642
pflanze/chj-schemelib
weak-srfi-1.scm
Copyright 2010 , 2011 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require (te...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/weak-srfi-1.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. variants of srfi-1 functions that don't complain if the list ends too early
Copyright 2010 , 2011 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or (require (test) (lazy) (cj-typed)) (define-typed (weak-take lis #(integer? k)) (let recur ((lis lis) (k k)) ...
44cd742fc14e0cfa008b7201492c5138cde1a85bf90209bb9757d32de4642a87
haskell-effectful/effectful
ThTests.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE CPP # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # module Main where import Data.Kind (Type) import GHC.TypeLits import Effectful import Effectful.TH main :: IO () main = pure () -- only compilation tests data SimpleADT (m :: Type -> Type) (a :: Type) = SimpleADT...
null
https://raw.githubusercontent.com/haskell-effectful/effectful/b77e9c3d65dbd4df4ff02fdd326c0b843dbf684e/effectful-th/tests/ThTests.hs
haskell
only compilation tests
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE CPP # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # module Main where import Data.Kind (Type) import GHC.TypeLits import Effectful import Effectful.TH main :: IO () data SimpleADT (m :: Type -> Type) (a :: Type) = SimpleADTC1 Int | SimpleADTC2 String makeEffect...
46ed8a7d69ee68439447a743a31afd7dad5a58ad16b34d871a23e4c2e4bcfc99
tezos/tezos-mirror
script_interpreter_defs.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 - 2022 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/32c9ef7c4ad3c6ec14e16ab3d75e353266925fb1/src/proto_alpha/lib_protocol/script_interpreter_defs.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 - 2022 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN ...
9951dc6c6b0f5a58b982e816981256ae6daacc043a7b794a0226cc33612a6867
clash-lang/clash-prelude
BlockRam.hs
| Copyright : ( C ) 2013 - 2016 , University of Twente , 2016 - 2017 , Myrtle Software Ltd , 2017 , Google Inc. License : BSD2 ( see the file LICENSE ) Maintainer : < > BlockRAM primitives = Using RAMs # usingrams # We will show a rather elabora...
null
https://raw.githubusercontent.com/clash-lang/clash-prelude/5645d8417ab495696cf4e0293796133c7fe2a9a7/src/Clash/Prelude/BlockRam.hs
haskell
^ Register bank ^ ( Memory output , Current instruction ) Current instruction pointer Decoder ALU next instruction update registers ^ Read address ^ ( write address , data in ) ^ data out Compute GCD of 4 and 6 0 : = 4 1 : = 6 A : = 4 B : = 6 start ( a > b ) ( b > a ) end ^ ( Regi...
| Copyright : ( C ) 2013 - 2016 , University of Twente , 2016 - 2017 , Myrtle Software Ltd , 2017 , Google Inc. License : BSD2 ( see the file LICENSE ) Maintainer : < > BlockRAM primitives = Using RAMs # usingrams # We will show a rather elabora...
f027b96775a5de6347bdb21c1d7bdbc4b88885d68c01115aff29a312d20ca4f0
teamwalnut/graphql-ppx
mutation.ml
open Test_shared module MyQuery = [%graphql {| mutation { mutationWithError { value { stringField } errors { field message } } } |}] let printed_query () = match Str.search_forward (Str.regexp "^mutation") MyQuery.query 0 with | 0 -> Pass | (exception...
null
https://raw.githubusercontent.com/teamwalnut/graphql-ppx/8276452ebe8d89a748b6b267afc94161650ab620/tests_native/mutation.ml
ocaml
open Test_shared module MyQuery = [%graphql {| mutation { mutationWithError { value { stringField } errors { field message } } } |}] let printed_query () = match Str.search_forward (Str.regexp "^mutation") MyQuery.query 0 with | 0 -> Pass | (exception...
0ebb9b2b53b13ce710dd1a71140d995003bbb02b339c7a118d962cfe422add10
exercism/ocaml
space_age.ml
type planet = Mercury | Venus | Earth | Mars | Jupiter | Saturn | Neptune | Uranus let age_on _ _ = failwith "'age_on' is missing"
null
https://raw.githubusercontent.com/exercism/ocaml/bfd6121f757817865a34db06c3188b5e0ccab518/exercises/practice/space-age/space_age.ml
ocaml
type planet = Mercury | Venus | Earth | Mars | Jupiter | Saturn | Neptune | Uranus let age_on _ _ = failwith "'age_on' is missing"
4c5c24250727314afa2a3c9993b0e6b0fa6393d43f000f376aa0053a38a84a11
jtuple/riak_zab
riak_zab_backend.erl
%% ------------------------------------------------------------------- %% %% riak_zab_backend: Copy of riak_kv_backend to avoid requiring %% entire riak_kv app as a dependency. %% %% ------------------------------------------------------------------- %% riak_kv_backend : backend behaviour %% Copy...
null
https://raw.githubusercontent.com/jtuple/riak_zab/ebd54aa540cf65e49d6e0890005e714ee756914a/src/riak_zab_backend.erl
erlang
------------------------------------------------------------------- riak_zab_backend: Copy of riak_kv_backend to avoid requiring entire riak_kv app as a dependency. ------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a c...
riak_kv_backend : backend behaviour Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WI...
e5f60df8840e2c626a99617deef7ee8c1a0f02746e6a5d20021d97e925979d73
donaldsonjw/bigloo
setup.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Cfa / setup.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Cfa/setup.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * We setup the ast for the Cfa. */ *===========================...
* serrano / prgm / project / bigloo / comptime / Cfa / setup.scm * / * Author : * / * Creation : Tue Jun 25 14:08:53 1996 * / * Last change : Mon Nov 11 09:54:14 2013 ( serrano ) * / * Copy...
75a63d4d61f0212d4358ea567840862e282c81e158f82453245aeb313ebfe867
treep/hactors
Tests.hs
module Control.Concurrent.Actor.Tests where import Control.Concurrent.Actor hiding ( receive, spawnReceive ) import Control.Concurrent.Actor.Debug -- ----------------------------------------------------------------------------- -- * @receive@ is non busy testReceive1 :: IO () testReceive1 = do act <- spawnReceive...
null
https://raw.githubusercontent.com/treep/hactors/149730838d67414c86ee4a1d741054598ab148f6/Control/Concurrent/Actor/Tests.hs
haskell
----------------------------------------------------------------------------- * @receive@ is non busy > testReceive1 ok ok nothing Thus, the @receive@ function don't perform busy waiting. ----------------------------------------------------------------------------- * @tolerant@ handle exceptions > testToleran...
module Control.Concurrent.Actor.Tests where import Control.Concurrent.Actor hiding ( receive, spawnReceive ) import Control.Concurrent.Actor.Debug testReceive1 :: IO () testReceive1 = do act <- spawnReceive $ \msg -> case msg of "ok?" -> putStrLn "ok" _ -> putStrLn "nothing" act ! "ok?" ac...
47155eec2db195348da0ec72e1700f6f4210ce7d86871897047752d59829b054
apache/couchdb-couch
couch_compress_tests.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-couch/21c8d37ac6ee1a7fed1de1f54f95a4d3cd9f5248/test/couch_compress_tests.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(couch_compress_tests). -include_lib("couch/include/couch_eunit.hrl"). -include_lib("couch/include/couch_db.hrl"). -define(TERM, {[{a, 1}, {b, 2}, ...
4309fc34e5cb718367f593c7d651274e8589af86215da93fd6905ade0508af7e
martijnbastiaan/doctest-parallel
Foo.hs
# LANGUAGE TemplateHaskell # module TemplateHaskell.Foo where import Language.Haskell.TH import Text.Printf -- | Report an error. -- -- >>> :set -XTemplateHaskell > > > $ ( logError " Something bad happened ! " ) -- ERROR <interactive>: Something bad happened! logError :: String -> Q Exp logError msg = do loc <- ...
null
https://raw.githubusercontent.com/martijnbastiaan/doctest-parallel/f70d6a1c946cc0ada88571b90a39a7cd4d065452/test/integration/TemplateHaskell/Foo.hs
haskell
| Report an error. >>> :set -XTemplateHaskell ERROR <interactive>: Something bad happened!
# LANGUAGE TemplateHaskell # module TemplateHaskell.Foo where import Language.Haskell.TH import Text.Printf > > > $ ( logError " Something bad happened ! " ) logError :: String -> Q Exp logError msg = do loc <- location let s = (printf "ERROR %s: %s" (loc_filename loc) msg) :: String [| putStrLn s |]
d91be8e362d04b1a04004158f962985c75c12a9f5f78623c903dfb69c20d9b7f
fortytools/holumbus
Search.hs
-- ---------------------------------------------------------------------------- | Module : SimpleSearch Copyright : Copyright ( C ) 2007 , 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.5 A simple example of Ho...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/searchengine/examples/hayoo/source/Search.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- # OPTIONS -fno-warn-type-defaults # nothing used nothing used | Walk through the whole index to remove laziness. | Startup using local index. | Startup using ...
| Module : SimpleSearch Copyright : Copyright ( C ) 2007 , 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.5 A simple example of Holumbus , providing a command line search with the default query language . ...
6eddf2964df7514848a3712d81d20b3911935fb2338d56cccfe787fbaa827e39
flotsfacetieux/cl-entity-system
packages.lisp
(in-package #:cl-user) (defpackage #:cl-entity-system (:use #:cl :alexandria) (:nicknames #:cl-es) (:export ;;#:entity ;;#:entity-id ;;#:entity-group #:defcomponent #:component #:system ;;#:system-entity-manager ;;#:dt-accumulator ;;#:dt-max ;;#:update ;; Entity Manager ...
null
https://raw.githubusercontent.com/flotsfacetieux/cl-entity-system/6f4e00722f1a666c563e457bfbd7c03924f9e0b8/packages.lisp
lisp
#:entity #:entity-id #:entity-group #:system-entity-manager #:dt-accumulator #:dt-max #:update Entity Manager #:components-types #:find-entities-single-type #:find-entities-by-group #:find-entities-multiple-types
(in-package #:cl-user) (defpackage #:cl-entity-system (:use #:cl :alexandria) (:nicknames #:cl-es) #:defcomponent #:component #:system #:entity-manager #:entities #:lowest-unassigned-id #:make-entity #:add-component #:del-component #:del-components #:entity-component ...
b8091686167fc94b8699366a1bb48cc64682130bd5770ff903905e419f1bb9ea
spechub/Hets
Formula.hs
| Module : ./CASL / Formula.hs Description : Parser for CASL terms and formulae Copyright : ( c ) , Uni Bremen 2002 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable parse terms and formulae Module ...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/CASL/Formula.hs
haskell
| when-else terms optional arguments commas are not allowed
| Module : ./CASL / Formula.hs Description : Parser for CASL terms and formulae Copyright : ( c ) , Uni Bremen 2002 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable parse terms and formulae Module ...
0490a6b0cb35b0c408525b7bdff2f4564cc29ef9331d595fd3446f501f3156af
clj-bots/pin-ctrl
implementation.clj
(ns clj-bots.pin-ctrl-simulator.implementation (:require [clj-bots.pin-ctrl [protocols :as pcp] [implementation :as impl]] [clojure.core.async :as async :refer [chan >!! <!! go <! >! go-loop]])) ;; This stuff really needs to be part of the core library (def available-modes #...
null
https://raw.githubusercontent.com/clj-bots/pin-ctrl/1d4aac384061bbb0cb5e01a4ddc51fc0e432c576/src/clj_bots/pin_ctrl_simulator/implementation.clj
clojure
This stuff really needs to be part of the core library Here we're going to declare some of the things we'll need in the implementation that we'd rather leave at the end of this namespace for logical flow. In addition to the standard protocol functions, we also need something which let's us set the state of _input_...
(ns clj-bots.pin-ctrl-simulator.implementation (:require [clj-bots.pin-ctrl [protocols :as pcp] [implementation :as impl]] [clojure.core.async :as async :refer [chan >!! <!! go <! >! go-loop]])) (def available-modes #{:input :output :ain :pwm}) (declare pin-mode writeable-...
8d10067b8a1aef8dde0bcfa137f572caab989c95921ed7893e14f2debfdddffa
victornicolet/parsynt
Normalize.ml
* This file is part of Parsynt . Author : < > Parsynt is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later ver...
null
https://raw.githubusercontent.com/victornicolet/parsynt/d3f530923c0c75537b92c2930eb882921f38268c/src/lang/Normalize.ml
ocaml
============================================================================== Normalization rules. RULES min(a,b) > c -> a > c and b > c c > min(a,b) -> a > c or b > c min(a,b) < c -> a < c or b < c c < min(a,b) -> c< a and c < b Main entry points.
* This file is part of Parsynt . Author : < > Parsynt is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later ver...
f95e6ac0e20325a62a165b4b9d2b7e65d2be3bcde7ee8069c0c84eab5cd8b4b8
flodihn/NextGen
libstd_sup.erl
%%---------------------------------------------------------------------- @author < > %% @doc This is the supervisor for the standard library ' ' . %% @end %%---------------------------------------------------------------------- -module(libstd_sup). -behaviour(supervisor). -export([ start_link/0, ...
null
https://raw.githubusercontent.com/flodihn/NextGen/3da1c3ee0d8f658383bdf5fccbdd49ace3cdb323/AreaServer/src/libstd/libstd_sup.erl
erlang
---------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------
@author < > This is the supervisor for the standard library ' ' . -module(libstd_sup). -behaviour(supervisor). -export([ start_link/0, init/1 ]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> RestartStrategy = one_for_one, MaxRestarts = 10, ...
f8b6a433bb2324d1b8bab92c27f9739fa7f9fa6f498edcaf74d72cd36cf5e392
lwhjp/racket-asm
register.rkt
#lang racket/base (require racklog "operand.rkt") (provide (all-defined-out)) (define %general-register (let ([regs '((0 al ax eax rax) (3 bl bx ebx rbx) (1 cl cx ecx rcx) (2 dl dx edx rdx) (6 sil si esi rsi) (7 dil di edi rdi...
null
https://raw.githubusercontent.com/lwhjp/racket-asm/57abd235fcb8c7505990f8e9731c01c716324ee5/x86/private/register.rkt
racket
#lang racket/base (require racklog "operand.rkt") (provide (all-defined-out)) (define %general-register (let ([regs '((0 al ax eax rax) (3 bl bx ebx rbx) (1 cl cx ecx rcx) (2 dl dx edx rdx) (6 sil si esi rsi) (7 dil di edi rdi...
9e4823558c168135a5782a59cabdd58830792de49c869dace8c1a78c51b605ba
discus-lang/ddc
Compounds.hs
{-# OPTIONS_HADDOCK hide #-} -- | Utilities for constructing and destructing compound expressions. -- For the annotated version of the AST . -- module DDC.Core.Exp.Annot.Compounds ( module DDC.Type.Exp.Simple.Compounds -- * Annotations , annotOfExp , mapAnnotOfExp -- * ...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core/DDC/Core/Exp/Annot/Compounds.hs
haskell
# OPTIONS_HADDOCK hide # | Utilities for constructing and destructing compound expressions. * Annotations * Lambdas ** Parameters * Applications ** Arguments * Lets * Alternatives * Patterns * Casts * Witnesses * Data Constructors * Bound Variables Annotations -------------------------------------------...
For the annotated version of the AST . module DDC.Core.Exp.Annot.Compounds ( module DDC.Type.Exp.Simple.Compounds , annotOfExp , mapAnnotOfExp , xLAMs , xLams , makeXLamFlags , takeXLAMs , takeXLams , takeXLamFlags , bindOfParam ...
a4d4c95b0dec23ef81285d9dd25fd4cc0305cbddc5912e4f2a3ec141bbf0d4c9
Incanus3/ExiL
generic-node.lisp
(in-package :exil-rete) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; RETE is the algorithm that matches facts of the knowledge base of an ;; expert system against conditions of its productions (inferences rules). ;; Without this algorithm, matching of each rule against each set o...
null
https://raw.githubusercontent.com/Incanus3/ExiL/de0f7c37538cecb7032cc1f2aa070524b0bc048d/src/rete/rete-nodes/generic-node.lisp
lisp
RETE is the algorithm that matches facts of the knowledge base of an expert system against conditions of its productions (inferences rules). Without this algorithm, matching of each rule against each set of facts would have unfeasible computational complexity even for medium-sized expert systems. this is needed...
(in-package :exil-rete) updated using pusnew : test # ' exil - equal - p , or similar (defmethod exil-equal-p ((list1 list) (list2 list)) (every (lambda (object) (member object list2 :test #'exil-equal-p)) list1)) (defclass node () ((children :accessor children :initform ()))) (defgeneric add-child (node child...
9a9766485758a334c62933cae340b0d8b208584459b03edf521d22986795a4b5
ztellman/sleight
project.clj
(defproject sleight "0.2.2" :description "whole-program transformations for clojure" :dependencies [] :profiles {:dev {:dependencies [[org.clojure/clojure "1.9.0-alpha15"] [riddley "0.1.12"]]}} :plugins [[lein-sleight "0.2.2"]] :sleight {:default {:transforms [sleight.transfo...
null
https://raw.githubusercontent.com/ztellman/sleight/788d7c11164713cc393058cc8fc5f6ec9c441d7f/project.clj
clojure
(defproject sleight "0.2.2" :description "whole-program transformations for clojure" :dependencies [] :profiles {:dev {:dependencies [[org.clojure/clojure "1.9.0-alpha15"] [riddley "0.1.12"]]}} :plugins [[lein-sleight "0.2.2"]] :sleight {:default {:transforms [sleight.transfo...
5ca08cba65f0af8fa63404e129c3117a955dc96265671654d12c4c09b0d02cd4
haskellari/edit-distance
STUArray.hs
# LANGUAGE PatternGuards , ScopedTypeVariables , BangPatterns , FlexibleContexts # module Text.EditDistance.STUArray ( levenshteinDistance, levenshteinDistanceWithLengths, restrictedDamerauLevenshteinDistance, restrictedDamerauLevenshteinDistanceWithLengths ) where import Text.EditDistance.EditCosts impor...
null
https://raw.githubusercontent.com/haskellari/edit-distance/5521afd4f4966a947499a16cfc7ce6d9e0a028ee/Text/EditDistance/STUArray.hs
haskell
Create string arrays Create array of costs for a single row. Say we index costs by (i, j) where i is the column index and j the row index. Return an actual answer Create string arrays Create array of costs for a single row. Say we index costs by (i, j) where i is the column index and j the row index. We defer all...
# LANGUAGE PatternGuards , ScopedTypeVariables , BangPatterns , FlexibleContexts # module Text.EditDistance.STUArray ( levenshteinDistance, levenshteinDistanceWithLengths, restrictedDamerauLevenshteinDistance, restrictedDamerauLevenshteinDistanceWithLengths ) where import Text.EditDistance.EditCosts impor...
6fab48fab85d319d58fd5494d70e714af8537133058e799f55b87a41a107bdd6
ocaml-multicore/kcas
tx_stack.ml
module Loc = Kcas.Loc module Tx = Kcas.Tx type 'a t = 'a list Loc.t let create () = Loc.make [] let is_empty s = s |> Tx.get_as @@ ( == ) [] let push s x = Tx.modify s @@ List.cons x let pop s = Tx.update_as List.hd s @@ function [] -> raise Exit | _ :: xs -> xs
null
https://raw.githubusercontent.com/ocaml-multicore/kcas/ecf1658e905cacae567ecd03a79011a32a9932e6/test/tx_stack.ml
ocaml
module Loc = Kcas.Loc module Tx = Kcas.Tx type 'a t = 'a list Loc.t let create () = Loc.make [] let is_empty s = s |> Tx.get_as @@ ( == ) [] let push s x = Tx.modify s @@ List.cons x let pop s = Tx.update_as List.hd s @@ function [] -> raise Exit | _ :: xs -> xs
065e6fd1d9ddfcca923f62f15189cb7faa4ea983d72d091867dcd51aeb709156
valderman/aoc21
Dec8.hs
# LANGUAGE FlexibleInstances # import Common import Data.Function (on) import Data.List (sort, sortBy, (\\), intersect) import Data.Maybe (fromJust) data Configuration = Configuration { patterns :: [String] , output :: [String] } instance Input Configuration where readInput str = Configuration { pat...
null
https://raw.githubusercontent.com/valderman/aoc21/84528b4358c14087adf080fff000128c81753a18/Dec8.hs
haskell
Lord, forgive me, for I don't know what I'm doing
# LANGUAGE FlexibleInstances # import Common import Data.Function (on) import Data.List (sort, sortBy, (\\), intersect) import Data.Maybe (fromJust) data Configuration = Configuration { patterns :: [String] , output :: [String] } instance Input Configuration where readInput str = Configuration { pat...
82d4edf1a2130be7a20318e6495becb33ab2f2857fd1d33f1ad2738cfc41d4ce
ghcjs/jsaddle-dom
GlobalPerformance.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.GlobalPerformance (getPerformance, GlobalPerformance(..), gTypeGlobalPerformance, IsGlobalPerformance, toGl...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/GlobalPerformance.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.GlobalPerformance (getPerformance, GlobalPerformance(..), gTypeGlobalPerformance, IsGlobalPerformance, toGlobalPerformance) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Boo...
5cce4bf6cdd4dfe7bd607431aabb8dc53336ec547dc2044a103376306eb8e47d
bjorng/wings
wpc_bend.erl
%% %% wpc_bend.erl -- %% %% Plug-in for bending vertices %% Copyright ( c ) 2005 - 2011 %% %% See the file "license.terms" for information on usage and redistribution %% of this file, and for a DISCLAIMER OF ALL WARRANTIES. %% %% $Id$ %% -module(wpc_bend). -export([init/0,menu/2,command/2]). -import(...
null
https://raw.githubusercontent.com/bjorng/wings/dec64a500220359dbc552600af486be47c45d301/plugins_src/commands/wpc_bend.erl
erlang
wpc_bend.erl -- Plug-in for bending vertices See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. $Id$ Uncomment the following line to turn on debugging. -define(DEBUG_BEND, 1). normal along the rod length from center to...
Copyright ( c ) 2005 - 2011 -module(wpc_bend). -export([init/0,menu/2,command/2]). -import(lists, [foldl/3]). -include_lib("wings/src/wings.hrl"). -define(HUGE, 1.0E307). fixed_length or fixed_radius rodCenter, ( rotation axis ) init() -> true. menu({vertex}, Menu) -> M...
aa10d326a4575c9709dd28b994d360af2f88e18bcc50d7b173054afe8f746b74
tfausak/blunt
Style.hs
{-# LANGUAGE OverloadedStrings #-} module Blunt.App.Style where import Clay import Data.Monoid ((<>)) import qualified Data.Text.Lazy as Text style :: Text.Text style = renderWith compact [] css css :: Css css = do html <> body ? do backgroundColor "#f5f5f5" color "#151515" fontFam...
null
https://raw.githubusercontent.com/tfausak/blunt/a44af0e06138bae94d7fd51330eb5602e7f3d5a3/library/Blunt/App/Style.hs
haskell
# LANGUAGE OverloadedStrings #
module Blunt.App.Style where import Clay import Data.Monoid ((<>)) import qualified Data.Text.Lazy as Text style :: Text.Text style = renderWith compact [] css css :: Css css = do html <> body ? do backgroundColor "#f5f5f5" color "#151515" fontFamily [] [sansSerif] lineH...
406800c18c68d01d690a3b028eec09588dd8021da74ce9eb733c0902afac1693
snapframework/io-streams
Concurrent.hs
module System.IO.Streams.Tests.Concurrent (tests) where ------------------------------------------------------------------------------ import Control.Concurrent import Control.Monad import Prelude hiding (lines, read, takeWhile, unlines, unwords, unwords, word...
null
https://raw.githubusercontent.com/snapframework/io-streams/ae692fee732adea9fe843fb3efe0dd43a6993844/test/System/IO/Streams/Tests/Concurrent.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------------...
module System.IO.Streams.Tests.Concurrent (tests) where import Control.Concurrent import Control.Monad import Prelude hiding (lines, read, takeWhile, unlines, unwords, unwords, words) import qualified System.IO.Streams as Streams import qual...
b7f6c9c042cb81e06b11228bcb91a0d2b83ccd730cbc8c03a425b8e93605f256
static-analysis-engineering/codehawk
bCHARMAssemblyBlock.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/c1b3158e0d73cda7cfc10d75f6173f4297991a82/CodeHawk/CHB/bchlibarm32/bCHARMAssemblyBlock.mli
ocaml
chutil bchlib bchlibarm32 function address first address of the basic block last address of the basic block addresses of successor blocks * [make_ctxt_arm_assembly_block ctxt blk succ] returns a new arm basic block that is a copy of [blk] with added context [ctxt] and added successors [succ]. This...
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
3d042a56796d92b11d46cea336b8bf6a964f833e1c1f800fa4b7cc5604960a6d
apache/dubbo-erlang
dubbo_java_type_defined.erl
%%------------------------------------------------------------------------------ Licensed to the Apache Software Foundation ( ASF ) under one or more %% contributor license agreements. See the NOTICE file distributed with %% this work for additional information regarding copyright ownership. The ASF licenses this ...
null
https://raw.githubusercontent.com/apache/dubbo-erlang/24e0c1a9028b50d2e9e05e3fe26f4e3335384acc/src/dubbo_java_type_defined.erl
erlang
------------------------------------------------------------------------------ contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES ...
Licensed to the Apache Software Foundation ( ASF ) under one or more The ASF licenses this file to You under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at distributed under the License is distr...
fc2b107fdfbc011f1e4ff28f08e8c9f639dd4b07b3555a698ec3ccbc85af26b8
nuvla/api-server
credential_infrastructure_service_registry_lifecycle_test.clj
(ns sixsq.nuvla.server.resources.credential-infrastructure-service-registry-lifecycle-test (:require [clojure.data.json :as json] [clojure.test :refer [deftest is use-fixtures]] [peridot.core :refer [content-type header request session]] [sixsq.nuvla.server.app.params :as p] [sixsq.nuvla.server.mi...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/test/sixsq/nuvla/server/resources/credential_infrastructure_service_registry_lifecycle_test.clj
clojure
admin/user query should succeed but be empty (no credentials created yet) anonymous credential collection query should not succeed creating a new credential without reference will fail for all types of users expect 400 because href can not be accessed create a credential as a normal user resource id and the uri (...
(ns sixsq.nuvla.server.resources.credential-infrastructure-service-registry-lifecycle-test (:require [clojure.data.json :as json] [clojure.test :refer [deftest is use-fixtures]] [peridot.core :refer [content-type header request session]] [sixsq.nuvla.server.app.params :as p] [sixsq.nuvla.server.mi...
67d3a981fb1a3d0a5dcc1cca5523f723b18c3aea79b206944d6447d500574468
falsetru/htdp
20.2.3.scm
(define-struct ir (name price)) (define (filter1 rel-op alon t) (cond [(empty? alon) empty] [(rel-op (first alon) t) (cons (first alon) (filter1 rel-op (rest alon) t))] [else (filter1 rel-op (rest alon) t)])) (define (filter-non-car xs) (filter1 ne-ir? xs 'car)) (define (ne-ir? i...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/20/20.2.3.scm
scheme
(define-struct ir (name price)) (define (filter1 rel-op alon t) (cond [(empty? alon) empty] [(rel-op (first alon) t) (cons (first alon) (filter1 rel-op (rest alon) t))] [else (filter1 rel-op (rest alon) t)])) (define (filter-non-car xs) (filter1 ne-ir? xs 'car)) (define (ne-ir? i...
1b5832d20f472810a1ee53889ea734dfdc30f4a9586c4988f424ce8d8a303cd9
processone/grapherl
graph_utils.erl
-module(graph_utils). -export([get_args/2 ,get_args/3 ,open_port/2 ,get_socket/2 ,to_binary/1 ,mean/1 ,gauge/1 ,counter/1 ,binary_to_realNumber/1 ,run_threads/3 ]). -include_lib("grapherl.hrl"). %%%=======================================...
null
https://raw.githubusercontent.com/processone/grapherl/a45174ff9ffc8b68877b6985d6d05c4fbb868620/grapherl/apps/grapherl/src/graph_utils.erl
erlang
=================================================================== API functions =================================================================== TL : TupleList NOT IN USE the list is expected to contains binary elements N : numbers of thread Fun : fun({Key,Value}) -> op end
-module(graph_utils). -export([get_args/2 ,get_args/3 ,open_port/2 ,get_socket/2 ,to_binary/1 ,mean/1 ,gauge/1 ,counter/1 ,binary_to_realNumber/1 ,run_threads/3 ]). -include_lib("grapherl.hrl"). get specified params in ParamList from ...
9d0f386aac670078faadac8995aa997a1bd2c6338cc0d481e3f33858922a15fd
aeternity/aesim
aesim_config.erl
-module(aesim_config). %=== INCLUDES ================================================================== -include_lib("stdlib/include/assert.hrl"). -include("aesim_types.hrl"). %=== EXPORTS =================================================================== -export([new/0]). -export([get/2]). -export([get_option/4])...
null
https://raw.githubusercontent.com/aeternity/aesim/20d89621a0994e1b6cf2b766d188ec29283e77e1/src/aesim_config.erl
erlang
=== INCLUDES ================================================================== === EXPORTS =================================================================== === TYPES ===================================================================== === API FUNCTIONS ============================================================= ...
-module(aesim_config). -include_lib("stdlib/include/assert.hrl"). -include("aesim_types.hrl"). -export([new/0]). -export([get/2]). -export([get_option/4]). -export([parse/3, parse/4]). -export([print_config/1]). -type opt_name() :: atom(). -type opt_type() :: string | integer | integer_infinity | atom | time ...
778d56aa9d6bb43291aecdf4141be3c4e81eebf77e94b6134500ca1c28c974bc
lispm/FRL
declare.lisp
;;;*********************************************************************** Compiler Initilization for FRL files ( execpt util and lisp ) . ;;;*********************************************************************** (include ldeclar) (eval-when (compile) (setq interpret-mode nil) (frl-basic-macro-load)) ...
null
https://raw.githubusercontent.com/lispm/FRL/1a2aadf71062a89474b1164e4539911011b3b63e/declare.lisp
lisp
*********************************************************************** ***********************************************************************
Compiler Initilization for FRL files ( execpt util and lisp ) . (include ldeclar) (eval-when (compile) (setq interpret-mode nil) (frl-basic-macro-load))
1ab16b553e9aae667ffd14b201701cb88d132c7b6b8e317e4a6f2a4f95caaeb6
mrkkrp/megaparsec
Main.hs
module Main (main) where import Control.DeepSeq import Criterion.Main import Data.ByteString (ByteString) import qualified Data.ByteString as B import qualified ParsersBench.CSV.Attoparsec as A import qualified ParsersBench.CSV.Megaparsec as M import qualified ParsersBench.Json.Attoparsec as A import qualified Parsers...
null
https://raw.githubusercontent.com/mrkkrp/megaparsec/69d4c46e36732df5072782903610e0bee5df34e8/parsers-bench/bench/speed/Main.hs
haskell
module Main (main) where import Control.DeepSeq import Criterion.Main import Data.ByteString (ByteString) import qualified Data.ByteString as B import qualified ParsersBench.CSV.Attoparsec as A import qualified ParsersBench.CSV.Megaparsec as M import qualified ParsersBench.Json.Attoparsec as A import qualified Parsers...
36e2658367a4afee2c0add55c2a52b72703d0a698228d23a33898a9d1dc85c52
karimarttila/clojure
dynamodb_utils.clj
(ns simpleserver.test-utils.dynamodb-utils (:require [simpleserver.test-utils.test-data :as test-data] [simpleserver.test-utils.test-service :as test-service] [simpleserver.service.user.user-common :as ss-user-common] [cognitect.aws.client.api :as aws] [clojure.tools.lo...
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/webstore-demo/re-frame-demo/test/clj/simpleserver/test_utils/dynamodb_utils.clj
clojure
****************************************************** Domain ****************************************************** Session ****************************************************** User
(ns simpleserver.test-utils.dynamodb-utils (:require [simpleserver.test-utils.test-data :as test-data] [simpleserver.test-utils.test-service :as test-service] [simpleserver.service.user.user-common :as ss-user-common] [cognitect.aws.client.api :as aws] [clojure.tools.lo...
3e9c573e6ad8ca8b67b1ffcae569e47b600cd9bf188eca85dc1b867a241cf4d5
bintracker/bintracker
mml-impl.scm
(module mml (mml::read mml::dialog) (import scheme (chicken base) (chicken string) (chicken condition) srfi-1 srfi-13 srfi-14 pstk comparse coops bt-state bt-types bt-gui) ;; Define PEG parser rules to parse MML strings using comparse (define (digits+dots) (sequence* ((digits (as-string (sequenc...
null
https://raw.githubusercontent.com/bintracker/bintracker/402d727a7edb14ce1ca59e39473fe8b91bde9bdc/plugins/mml/mml-impl.scm
scheme
Define PEG parser rules to parse MML strings using comparse The main tokenizer procedure (print "tokenize-mml " str) value. Rests are moved field node values. If QUANTIZE-TO is specified and denotes how many steps
(module mml (mml::read mml::dialog) (import scheme (chicken base) (chicken string) (chicken condition) srfi-1 srfi-13 srfi-14 pstk comparse coops bt-state bt-types bt-gui) (define (digits+dots) (sequence* ((digits (as-string (sequence (maybe (in char-set:digit)) (maybe (in char-set:digit...
d533300037137023cf9af18e91aa1840deccdb70b2ef598405f1a9d9acfc3acb
TrustInSoft/tis-kernel
printer_builder.ml
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/kernel_services/ast_printing/printer_builder.ml
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
b600956606763e5155502343d67c4248d34ab7960f0052e7e8499ab7ff56699e
buildsome/buildsome
ClangCommands.hs
module Buildsome.ClangCommands ( make ) where import Prelude.Compat hiding (FilePath) import Buildsome.BuildMaps (TargetRep) import Buildsome.Stats (Stats) import Data.Aeson ((.=)) import Data.Aeson.Encode.Pretty (encodePretty) import Data.Functor.Identity (Identity(..)) import Data.Maybe (fromMaybe) import Lib.F...
null
https://raw.githubusercontent.com/buildsome/buildsome/479b92bb74a474a5f0c3292b79202cc850bd8653/src/Buildsome/ClangCommands.hs
haskell
ok because some dependencies have no rule?
module Buildsome.ClangCommands ( make ) where import Prelude.Compat hiding (FilePath) import Buildsome.BuildMaps (TargetRep) import Buildsome.Stats (Stats) import Data.Aeson ((.=)) import Data.Aeson.Encode.Pretty (encodePretty) import Data.Functor.Identity (Identity(..)) import Data.Maybe (fromMaybe) import Lib.F...
31eb2f79ebc904356e1d7dbd59804a037ffd95398a8563ba129f1541ac677e27
ucsd-progsys/nate
widget.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of Objective Caml (* *) , , and ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/support/widget.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of Objective Caml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
abe676652ce71b52b47c2fc038b470858e22f0496dfdfe0dac60bc4b0c64a141
georgewsinger/cljs-callback-heaven
project.clj
" SNAPSHOT " is a maven term ; it means " development version " , and is contrasted with " release " searchable fields :description "A small clojurescript library that helps you escape callback hell when interoping with javascript and core.async." :url "N/A" :license {:name "MIT" ...
null
https://raw.githubusercontent.com/georgewsinger/cljs-callback-heaven/664bc44a7c4cf62853430f08da6cc28e7ed59c80/project.clj
clojure
it means " development version " , and is contrasted with " release " cljs.core.async lives here non-teletype repl; needed for vim-fireplace lein specific plugins required to launch the node repl required to compile cljs to js lein interface with npm (see below) the current "standard" testing framework package...
searchable fields :description "A small clojurescript library that helps you escape callback hell when interoping with javascript and core.async." :url "N/A" :license {:name "MIT" :url ""} Maven , Clojars dependencies :dependencies [[org.clojure/clojure "1.8.0" ] ...
6a15acbeb7be82f085d0cbb1fdc7513f2f7b702311c80ebe693d909befbd8815
bennn/dissertation
for-each.rkt
#lang typed/racket (require racket/performance-hint "../unsafe.rkt" "utils.rkt") (provide (all-defined-out)) (define-syntax-rule (for-each-array+data-index ds-expr f-expr) (let*: ([ds : Indexes ds-expr] [dims : Index (vector-length ds)]) (define-syntax-rule (f js j) ((ann f-...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/QA/math-test/array-map/natural/math/private/array/for-each.rkt
racket
#lang typed/racket (require racket/performance-hint "../unsafe.rkt" "utils.rkt") (provide (all-defined-out)) (define-syntax-rule (for-each-array+data-index ds-expr f-expr) (let*: ([ds : Indexes ds-expr] [dims : Index (vector-length ds)]) (define-syntax-rule (f js j) ((ann f-...
507fdfc8efeaed6a939ffebacf622400f79511924a7cc6a559baa19a93333538
cedlemo/OCaml-GI-ctypes-bindings-generator
Font_button.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_font_button_new" (void @-> returning (ptr Widget.t_typ)) let create_with_font = foreign "gtk_font_button_new_with_font" (string @-> returning (ptr Widget.t_typ)) let get_font_name = foreign "gtk_font_button_get_fon...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Font_button.ml
ocaml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_font_button_new" (void @-> returning (ptr Widget.t_typ)) let create_with_font = foreign "gtk_font_button_new_with_font" (string @-> returning (ptr Widget.t_typ)) let get_font_name = foreign "gtk_font_button_get_fon...
12a59009881396344774537f13dca8a22dc3cee03faac891e0d3596678a00e31
Nazar65/guix-phps-channel
php.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2016 - 2020 < > Copyright © 2016 < > Copyright © 2018 , 2020 , 2021 < > Copyright © 2018 < > Copyright © 2019 < > Copyright © 2020 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistrib...
null
https://raw.githubusercontent.com/Nazar65/guix-phps-channel/04c182b5c254c3f89d680af1d6cd44e1a4f5d9ce/packages/php.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 © 2016 - 2020 < > Copyright © 2016 < > Copyright © 2018 , 2020 , 2021 < > Copyright © 2018 < > 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 alo...
a28bf60661644b0ecd2860ab919958599631f1d467ca452b93fabaebfdc0134b
avsm/platform
root.ml
* Copyright ( c ) 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/odoc.1.4.2/src/model/root.ml
ocaml
* Copyright ( c ) 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
db4beeecde09ca554bf6ec93399d60673b7862af0b72ee0c260403c7d6c01fdd
richcarl/eunit
eunit_striptests.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may %% not use this file except in compliance with the License. You may obtain %% a copy of the License at <-2.0> %% %% Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/richcarl/eunit/cb7eb2bc2cec01e405c717b6f6b551be7d256f06/src/eunit_striptests.erl
erlang
not use this file except in compliance with the License. You may obtain a copy of the License at <-2.0> Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and ...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may distributed under the License is distributed on an " AS IS " BASIS , General Public License ( the " LGPL " ) as published by the Free Software Foundation ; either version 2.1 , or ( at your option ) any later version . either the Ap...
53a63f739adb2c7873aad59183384c01034e022a4a4043cfd1f43ddc986aef9e
facebook/flow
lspCommand.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/b918b06104ac1489b516988707431d98833ce99f/src/commands/lspCommand.ml
ocaml
********************************************************************* *********************************************************************
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
42f9acd83293385f85db5f24bba7115a18aadf56237e13ab0ca688c3cf93db64
cronburg/antlr-haskell
lang_demo.hs
# LANGUAGE TypeFamilies # module LangDemo where -- If you never change the base value and are only adding expressions data BaseVal = IntV Int data BaseExp = ValE BaseVal | AddE BaseExp BaseExp data ExtExp = BaseE BaseExp | SubE ExtExp ExtExp class Lang lang where eval :: lang -> ...
null
https://raw.githubusercontent.com/cronburg/antlr-haskell/7a9367038eaa58f9764f2ff694269245fbebc155/lang_demo.hs
haskell
If you never change the base value and are only adding expressions if you want to be able to change the set of values you can evaluate to when extending the language can use type families to suspend the value kind until later. define at some time t1 for the base language extend at some later time t2 for the extend...
# LANGUAGE TypeFamilies # module LangDemo where data BaseVal = IntV Int data BaseExp = ValE BaseVal | AddE BaseExp BaseExp data ExtExp = BaseE BaseExp | SubE ExtExp ExtExp class Lang lang where eval :: lang -> BaseVal instance Lang BaseExp where eval (ValE i) = i eval (AddE ...
26fdba59c75087298d7e71f6d80f11451e208c4814a72a5908e3926d034a9552
hedgehogqa/haskell-hedgehog-classes
Equation.hs
# LANGUAGE CPP # {-# LANGUAGE RankNTypes #-} # LANGUAGE StandaloneDeriving # # LANGUAGE QuantifiedConstraints # # LANGUAGE UndecidableInstances # # LANGUAGE ViewPatterns # module Hedgehog.Classes.Common.Equation ( LinearEquation(..), runLinearEquation, genLinearEquation , LinearEquationTwo(..), runLinearEquationTw...
null
https://raw.githubusercontent.com/hedgehogqa/haskell-hedgehog-classes/4d97b000e915de8ba590818f551bce7bd862e7d4/src/Hedgehog/Classes/Common/Equation.hs
haskell
# LANGUAGE RankNTypes # This show instance does not actually provide a way to create an equation. Instead, it makes it look like a lambda.
# LANGUAGE CPP # # LANGUAGE StandaloneDeriving # # LANGUAGE QuantifiedConstraints # # LANGUAGE UndecidableInstances # # LANGUAGE ViewPatterns # module Hedgehog.Classes.Common.Equation ( LinearEquation(..), runLinearEquation, genLinearEquation , LinearEquationTwo(..), runLinearEquationTwo, genLinearEquationTwo , ...
63ebfa599fd97eeb934addbf2c0ad32eda75bd75d2c9a9f76aa23f8e3c8b2fc0
input-output-hk/project-icarus-importer
Local.hs
{-# LANGUAGE Rank2Types #-} module Pos.Ssc.Logic.Local ( sscGetLocalPayload , sscNormalize -- * 'Inv|Req|Data' processing. , sscIsDataUseful , sscProcessCommitment , sscProcessOpening , sscProcessShares , sscProcessCertificate -- * Garbage c...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/ssc/Pos/Ssc/Logic/Local.hs
haskell
# LANGUAGE Rank2Types # * 'Inv|Req|Data' processing. * Garbage collection | Get local payload to be put into main block and for given empty payload can be returned. | Make 'SscLocalData' valid for given epoch, richmen and global state. of best known chain. This function is assumed to be called after applying blo...
module Pos.Ssc.Logic.Local ( sscGetLocalPayload , sscNormalize , sscIsDataUseful , sscProcessCommitment , sscProcessOpening , sscProcessShares , sscProcessCertificate , sscGarbageCollectLocalData ) where import Universum import ...
6a3c1c1f3e3bb760d033878343c8728a7b15892303e9da01d473b9016322f47f
exercism/haskell
Tests.hs
import Test.Hspec (Spec, it, shouldBe) import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith) import ZebraPuzzle (Resident(..), Solution(..), solve) main :: IO () main = hspecWith defaultConfig {configFastFail = True} specs specs :: Spec specs = it "solve" $ solve `shouldBe` Solution { waterDrink...
null
https://raw.githubusercontent.com/exercism/haskell/f81ee7dc338294b3dbefb7bd39fc193546fcec26/exercises/practice/zebra-puzzle/test/Tests.hs
haskell
import Test.Hspec (Spec, it, shouldBe) import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith) import ZebraPuzzle (Resident(..), Solution(..), solve) main :: IO () main = hspecWith defaultConfig {configFastFail = True} specs specs :: Spec specs = it "solve" $ solve `shouldBe` Solution { waterDrink...
b4422e7a55fc326f2befb2129795aa21f4dda73f300053ec8f8961e61e500a17
reasonml-old/bs-containers
camlinternalFormatBasics.mli
(* No comments, OCaml stdlib internal use only. *) type padty = Left | Right | Zeros type int_conv = | Int_d | Int_pd | Int_sd | Int_i | Int_pi | Int_si | Int_x | Int_Cx | Int_X | Int_CX | Int_o | Int_Co | Int_u type float_conv = | Float_f | Float_pf | Float_sf | Float_e | Float_pe | Float_se | Float_E | Flo...
null
https://raw.githubusercontent.com/reasonml-old/bs-containers/dfd1360dc74ede57c09e9f9d837ce59285af6fd2/doc/stdlib-cmi/camlinternalFormatBasics.mli
ocaml
No comments, OCaml stdlib internal use only. %c %s %d %ld %nd %Ld %f %B %{...%} %(...%) %a %t Used for custom formats Scanf specific constructor. %r * List of format elements. %c %C %s %S %[dixXuo] %l[dixXuo] %n[dixXuo] %L[dixXuo] %[feEgGF] %! x %{...%} ...
type padty = Left | Right | Zeros type int_conv = | Int_d | Int_pd | Int_sd | Int_i | Int_pi | Int_si | Int_x | Int_Cx | Int_X | Int_CX | Int_o | Int_Co | Int_u type float_conv = | Float_f | Float_pf | Float_sf | Float_e | Float_pe | Float_se | Float_E | Float_pE | Float_sE | Float_g | Float_pg | Float_sg ...
18473b71520b2a368f2831baa7f861ae02e110f1f49cceaf88baa00bcbedb8c1
huffyhenry/sync.soccer
Tracab.hs
module Tracab where import qualified Data.IntMap as Map import qualified Data.List.Split as Split import Data.Maybe (maybe, Maybe, listToMaybe) import System.IO (openFile, hGetContents, hClose, IOMode(ReadMode)) import System.Environment (getArgs) import Text.XML.Light.Types (Element) import Text.Printf (printf) impo...
null
https://raw.githubusercontent.com/huffyhenry/sync.soccer/c740446a65a8ff50d67a9110af7d0fcffb01b900/src/Tracab.hs
haskell
The position information of a single player/ball in a single snapshot A single complete snapshot of tracking data Split input data into chunks Assemble parsed data Might be able to do better than this.
module Tracab where import qualified Data.IntMap as Map import qualified Data.List.Split as Split import Data.Maybe (maybe, Maybe, listToMaybe) import System.IO (openFile, hGetContents, hClose, IOMode(ReadMode)) import System.Environment (getArgs) import Text.XML.Light.Types (Element) import Text.Printf (printf) impo...