_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
f113c4c68977f93318eb4f59dc91e07f25f7dddee70337162887b1fd3b9dcf9c
mtolly/onyxite-customs
ShiftJIS.hs
# LANGUAGE CPP # module Onyx.Util.ShiftJIS (decodeShiftJIS, kakasi) where import qualified Data.ByteString as B import qualified Data.HashMap.Strict as HM import Data.Maybe (fromMaybe) import Data.Tuple (swap) import Onyx.Kakasi import Onyx.Resources (...
null
https://raw.githubusercontent.com/mtolly/onyxite-customs/0c8acd6248fe92ea0d994b18b551973816adf85b/haskell/packages/onyx-lib/src/Onyx/Util/ShiftJIS.hs
haskell
black square (■)
# LANGUAGE CPP # module Onyx.Util.ShiftJIS (decodeShiftJIS, kakasi) where import qualified Data.ByteString as B import qualified Data.HashMap.Strict as HM import Data.Maybe (fromMaybe) import Data.Tuple (swap) import Onyx.Kakasi import Onyx.Resources (...
181b75ab4397ca5676f63bcdf754620de0259ea215a9299b1cbd8c07df83998f
shmookey/solpb
Types.hs
{-# LANGUAGE OverloadedStrings #-} module Types where import Data.Map (Map) import Data.Text (Text) import Data.Semigroup ((<>)) import qualified Data.Map as Map import qualified Data.Text as T import Control.Monad.Resultant type App = ResultantT IO Options String type Name = Text type Code = Text data Field = ...
null
https://raw.githubusercontent.com/shmookey/solpb/4263050f9436e0a1d541ac99ab52970e9c2132c6/src/Types.hs
haskell
# LANGUAGE OverloadedStrings # the protobuf field number, may skip values consecutive index of the fields Basic type name, library name Config state ---------------------------------------------------------------------
module Types where import Data.Map (Map) import Data.Text (Text) import Data.Semigroup ((<>)) import qualified Data.Map as Map import qualified Data.Text as T import Control.Monad.Resultant type App = ResultantT IO Options String type Name = Text type Code = Text data Field = Field , fieldName :: Name , fi...
c90229e184f0bef691846190a0f5a62a5aa814b9f6519efeb053beb23fa217b7
err0r500/realworld-app-simple-haskell
Lib.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE RankNTypes #-} module Adapter.Http.Lib where import Data.Aeson import Data.List (stripPrefix) import qualified Domain.User as D import qualified Network.Wai as Wai import RIO import qualified Usecase.Interactor as UC import qualified Usecase.LogicHandler as UC the shared Rou...
null
https://raw.githubusercontent.com/err0r500/realworld-app-simple-haskell/e499fd2eb03f6bcde5ac99a136d1907700cf026d/src/Adapter/Http/Lib.hs
haskell
# LANGUAGE RankNTypes # User (wrapper) helper removes the given prefix from field names
# LANGUAGE DeriveGeneric # module Adapter.Http.Lib where import Data.Aeson import Data.List (stripPrefix) import qualified Domain.User as D import qualified Network.Wai as Wai import RIO import qualified Usecase.Interactor as UC import qualified Usecase.LogicHandler as UC the shared Router type type Router m = (...
c52981346ded5d38ea80ed50ea0f73624b4ac3ac5c1b88e7ea62fed556abb218
2600hz-archive/whistle
ecallmgr_diagnostics.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2010 , VoIP , INC %%% @doc %%% Given a diagnostics record, create a diagnostics proplist to return %%% @end Created : 25 Oct 2010 by < > %%%------------------------------------------------------------------- -module(ec...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/ecallmgr/src/ecallmgr_diagnostics.erl
erlang
------------------------------------------------------------------- @doc Given a diagnostics record, create a diagnostics proplist to return @end -------------------------------------------------------------------
@author < > ( C ) 2010 , VoIP , INC Created : 25 Oct 2010 by < > -module(ecallmgr_diagnostics). -export([get_diagnostics/1]). -include("ecallmgr.hrl"). -spec get_diagnostics/1 :: (Stats) -> [{'active_channels' | 'created_channels' | 'destroyed_channels' | 'last_heartbeat' | 'lookups_...
5e689766a33d7e673cdb05f56646085c4ca1be68cc8f9b7a37db741fa537c3e2
bobzhang/fan
test_fan_patt.ml
open Format; #load "fan_patt.cma"; open Fan_patt;
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/test_fan_patt.ml
ocaml
open Format; #load "fan_patt.cma"; open Fan_patt;
bf6cf0c28f9de34660f221b94e059d619e63de128932e8852d9e089fd01458d2
lem-project/lem
typeout.lisp
(in-package :lem) (define-minor-mode typeout-mode (:name "typeout" :keymap *typeout-mode-keymap* :enable-hook (lambda () (setf (variable-value 'line-wrap :buffer (current-buffer)) nil)))) (define-key *typeout-mode-keymap* "q" 'dismiss-typeout-window) (define-key *typeout-mode-keymap*...
null
https://raw.githubusercontent.com/lem-project/lem/cceb43508b7c17aaa8a7176ada7c92af38243062/src/typeout.lisp
lisp
(in-package :lem) (define-minor-mode typeout-mode (:name "typeout" :keymap *typeout-mode-keymap* :enable-hook (lambda () (setf (variable-value 'line-wrap :buffer (current-buffer)) nil)))) (define-key *typeout-mode-keymap* "q" 'dismiss-typeout-window) (define-key *typeout-mode-keymap*...
43574d16eb98cbf2f4df22c4db9b1701fc7f9e975f16364d57e9f36f8bdc31d3
josefs/Gradualizer
gradualizer_cli.erl
%% @doc %% Gradualizer command line interface. %% @end -module(gradualizer_cli). -export([main/1, handle_args/1]). -spec main([string()]) -> ok. main(Args) -> case handle_args(Args) of help -> print_usage(); version -> print_version(); {error, Message} -> io:format(standard_e...
null
https://raw.githubusercontent.com/josefs/Gradualizer/22a8e19f1c88a00399eaeda41cf8ddde302061bd/src/gradualizer_cli.erl
erlang
@doc Gradualizer command line interface. @end An explicit load makes sure any options defined in a *.config file are set before we call `application:set_env/3'. A load after set_env overrides anything set with set_env. We could start the tracer based on a CLI flag, but it's config is compile-time anyway. gradual...
-module(gradualizer_cli). -export([main/1, handle_args/1]). -spec main([string()]) -> ok. main(Args) -> case handle_args(Args) of help -> print_usage(); version -> print_version(); {error, Message} -> io:format(standard_error, "~s~n", [Message]), halt(1); ...
580e728368e38b14e755b9b1812710c72d9e4dee905fdb59d3caafada52aea0d
basho/riak-erlang-client
riakc_utils_tests.erl
%% ------------------------------------------------------------------- %% %% riakc_utils_tests %% Copyright ( c ) 2016 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with th...
null
https://raw.githubusercontent.com/basho/riak-erlang-client/ea4fcd062f55a67e31c7294a1b8b8ccd957526c8/test/riakc_utils_tests.erl
erlang
------------------------------------------------------------------- riakc_utils_tests Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language...
Copyright ( c ) 2016 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -ifdef(T...
560985ee5861cce7a254e231f309517fd6ff19e47e7c8a62d5b4ebaac645c05b
cwearl/fulmar
core-chunk-tests.rkt
#lang racket (require rackunit) (require "../private/fulmar-core.rkt") (require "../private/core-chunk.rkt") ;unit tests for core-chunk.rkt ;helper functions (define/provide-test-suite test-combine-strings (test-case "Test combine-strings" (check-equal? (combine-strings "asdf") "asdf") (check-equal? (com...
null
https://raw.githubusercontent.com/cwearl/fulmar/4cf60699558b3bb28fa813443456993d1563bfb2/tests/core-chunk-tests.rkt
racket
unit tests for core-chunk.rkt helper functions nekot-building chunks context-aware chunks
#lang racket (require rackunit) (require "../private/fulmar-core.rkt") (require "../private/core-chunk.rkt") (define/provide-test-suite test-combine-strings (test-case "Test combine-strings" (check-equal? (combine-strings "asdf") "asdf") (check-equal? (combine-strings 'asdf) "asdf") (check-equal? (com...
0da75fd9cf5c3f997b19081e155874dfdcd2f2ae441b8a7665342dabbb46ed6e
fpottier/mpri-2.4-projet-2022-2023
Linear2Surface.ml
open Surface (* -------------------------------------------------------------------------- *) (* Variable and function names. *) let translate_var (Linear.U x) = x let translate_vars uxs = List.map translate_var uxs let translate_binding (ux, _ty) = translate_var ux let translate_bindings ubs = List.map t...
null
https://raw.githubusercontent.com/fpottier/mpri-2.4-projet-2022-2023/1ce08cadfb3a8ec8bc72609bc82873b29d2ce241/src/Linear2Surface.ml
ocaml
-------------------------------------------------------------------------- Variable and function names. -------------------------------------------------------------------------- Expressions. -------------------------------------------------------------------------- Declarations.
open Surface let translate_var (Linear.U x) = x let translate_vars uxs = List.map translate_var uxs let translate_binding (ux, _ty) = translate_var ux let translate_bindings ubs = List.map translate_binding ubs let transport_binding (ux, ty) = translate_var ux, ty let transport_bindings ubs = List.m...
c001385c58c535e33f05e271f6c03cc2bf078bb0fb8576d96a755124b0d7a1dc
roelvandijk/numerals
Exp.hs
{-# language CPP #-} module Text.Numeral.Exp ( Exp(..) , showExp -- , eval , evalScale , Side(L, R) ) where ------------------------------------------------------------------------------- -- Imports ------------------------------------------------------------------------------- #if !(MIN_VERS...
null
https://raw.githubusercontent.com/roelvandijk/numerals/b1e4121e0824ac0646a3230bd311818e159ec127/src/Text/Numeral/Exp.hs
haskell
# language CPP # , eval ----------------------------------------------------------------------------- Imports ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Expression type -----------------------------------...
module Text.Numeral.Exp ( Exp(..) , showExp , evalScale , Side(L, R) ) where #if !(MIN_VERSION_base(4,8,0)) import "base" Control.Applicative ( (<$>) ) #endif import qualified "this" Text.Numeral.Grammar as G data Exp = Unknown | Lit Integer Example in English : > " three " = Lit 3 ...
46b6ded8ff638093808ceaea820df500076cdeabda29741d397426f634c181a3
epgsql/epgsql
epgsql_codec_hstore.erl
%%% @doc %%% Codec for `hstore' type. %%% %%% Hstore codec can take a jiffy-style object or map() as input. %%% Output format can be changed by providing `return' option. See {@link return_format()}. %%% Values of hstore can be `NULL'. NULL representation can be changed by providing %%% `nulls' option, semantics is sim...
null
https://raw.githubusercontent.com/epgsql/epgsql/f811a09926892dbd1359afe44a9bfa8f6907b322/src/datatypes/epgsql_codec_hstore.erl
erlang
@doc Codec for `hstore' type. Hstore codec can take a jiffy-style object or map() as input. Output format can be changed by providing `return' option. See {@link return_format()}. Values of hstore can be `NULL'. NULL representation can be changed by providing `nulls' option, semantics is similar to {@link epgsql...
XXX : is not a part of postgresql builtin datatypes , it 's in contrib . It should be enabled in postgresql by command ` CREATE EXTENSION hstore ' . Created : 14 Oct 2017 by < > -module(epgsql_codec_hstore). -behaviour(epgsql_codec). -export([init/2, names/0, encode/3, decode/3, decode_text/3]). -include("...
4eff86413ac154d15be8264711f5053da07fe4389de99f18ccc8d79e5a563b7e
bobzhang/ocaml-book
test.mli
type 'a tree = Leaf of 'a | Node of 'a * 'a tree * 'a tree module Show_tree : functor (M_a : Deriving_Show.Show) -> sig type a = M_a.a tree val format : Format.formatter -> a -> unit val format_list : Format.formatter -> a list -> unit val show : a -> string val show_list : a list ->...
null
https://raw.githubusercontent.com/bobzhang/ocaml-book/09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75/library/code/deriving/_build/test.mli
ocaml
type 'a tree = Leaf of 'a | Node of 'a * 'a tree * 'a tree module Show_tree : functor (M_a : Deriving_Show.Show) -> sig type a = M_a.a tree val format : Format.formatter -> a -> unit val format_list : Format.formatter -> a list -> unit val show : a -> string val show_list : a list ->...
64603549b1646363f81809578b4e2e0e4fbdefa9e0aaee22b2b2072d593b3609
walkable-server/realworld-fulcro
account.cljs
(ns conduit.ui.account (:require [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.algorithms.form-state :as fs] [com.fulcrologic.fulcro.ui-state-machines :as uism] [com.fulcrologic.fulcro.mutations :as m :refer [defmutation]] [com.fulcrologic.fulcro.routing.dynamic-ro...
null
https://raw.githubusercontent.com/walkable-server/realworld-fulcro/91c73e3a27621b528906d12bc22971caa9ea8d13/src/conduit/ui/account.cljs
clojure
(ns conduit.ui.account (:require [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.algorithms.form-state :as fs] [com.fulcrologic.fulcro.ui-state-machines :as uism] [com.fulcrologic.fulcro.mutations :as m :refer [defmutation]] [com.fulcrologic.fulcro.routing.dynamic-ro...
88d994b4fa423200de68900db1e2d5ef8ffa459deb7df8e9ce37fb1bb476c69f
waymonad/waymonad
Keyboard.hs
waymonad A wayland compositor in the spirit of xmonad Copyright ( C ) 2017 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your op...
null
https://raw.githubusercontent.com/waymonad/waymonad/18ab493710dd54c330fb4d122ed35bc3a59585df/src/Waymonad/Input/Keyboard.hs
haskell
# LANGUAGE OverloadedStrings # # SOURCE # This handler is called for every key pressed on a keyboard. We dispatch keybinds from this handler. To prevent weirdness that X had with keyboard layouts, this uses an approach If [Win]+[Shift]+2 is pressed this will match: [Win]+@ on us layout Though other k...
waymonad A wayland compositor in the spirit of xmonad Copyright ( C ) 2017 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your op...
5036f959fc9b591721762c014ac73ab498b45e831be494a06f767338a6334e47
bevuta/pepa
tasks.clj
(ns pepa.tasks (:require [pepa.tasks.schema :as schema]) (:gen-class)) (def tasks {"schema" schema/run}) (defn -main [task & args] (if-let [run-task (get tasks task)] (run-task args) (binding [*out* *err*] (print "Invalid pepa task") (when (seq (str task)) (print (str " '" task "'"...
null
https://raw.githubusercontent.com/bevuta/pepa/0a9991de0fd1714515ca3def645aec30e21cd671/src/pepa/tasks.clj
clojure
(ns pepa.tasks (:require [pepa.tasks.schema :as schema]) (:gen-class)) (def tasks {"schema" schema/run}) (defn -main [task & args] (if-let [run-task (get tasks task)] (run-task args) (binding [*out* *err*] (print "Invalid pepa task") (when (seq (str task)) (print (str " '" task "'"...
12572ca3bdba5ac3d8ac041b716112b0a778de147128674faf1026cd0e28b227
ligurio/elle-cli
comments.clj
(ns elle-cli.comments "Checks for a strict serializability anomaly in which T1 < T2, but T2 is visible without T1. We perform concurrent blind inserts across n tables, and meanwhile, perform reads of both tables in a transaction. To verify, we replay the history, tracking the writes which were known to have c...
null
https://raw.githubusercontent.com/ligurio/elle-cli/c660bce8c10041aa3353f4fb8269eca7f3ffb228/src/elle_cli/comments.clj
clojure
Done We know this value is definitely written Write is beginning; record precedence Write is completing; we can now expect to see it
(ns elle-cli.comments "Checks for a strict serializability anomaly in which T1 < T2, but T2 is visible without T1. We perform concurrent blind inserts across n tables, and meanwhile, perform reads of both tables in a transaction. To verify, we replay the history, tracking the writes which were known to have c...
171404508c955e66b0d3273f2fcb20b7f20450b9265cd3d40ea10dd887b42401
yesodweb/yesod
Fields.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE CPP # -- | Field functions allow you to easily create and validate forms, cleanly handl...
null
https://raw.githubusercontent.com/yesodweb/yesod/e3381d590fd706f9edd9940d233779945b4a49df/yesod-form/Yesod/Form/Fields.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings # | Field functions allow you to easily create and validate forms, cleanly handling the uncertainty of parsing user input. * i18n * Fields * Options $optionsOverview | Creates an input with @type="date"@, validating the input using the 'parseDate' functi...
# LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE CPP # When possible , the field functions use a specific input type ( e.g. " number " ) , allowing supporting browsers to validate the input before form ...
b32e901f753f2875df897d502255f159f66d2d6f371c890fca092184a6ffe914
rjray/advent-2020-clojure
day07_test.clj
(ns advent-of-code.day07-test (:require [clojure.test :refer [deftest testing is]] [advent-of-code.day07 :refer [part-1 part-2]] [clojure.java.io :refer [resource]])) (deftest part1 (let [expected 4] (is (= expected (part-1 (slurp (resource "day07-example.txt"))))))) (deftest part2 (...
null
https://raw.githubusercontent.com/rjray/advent-2020-clojure/631b36545ae1efdebd11ca3dd4dca032346e8601/test/advent_of_code/day07_test.clj
clojure
(ns advent-of-code.day07-test (:require [clojure.test :refer [deftest testing is]] [advent-of-code.day07 :refer [part-1 part-2]] [clojure.java.io :refer [resource]])) (deftest part1 (let [expected 4] (is (= expected (part-1 (slurp (resource "day07-example.txt"))))))) (deftest part2 (...
b3f9a121d68db87a22757898a17d765d66af477b96bf737613a9c38005ac41f1
patoline/patoline
TableOfContents.ml
Copyright Florian Hatat , , , Pierre - Etienne Meunier , , 2012 . This file is part of Patoline . Patoline 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 th...
null
https://raw.githubusercontent.com/patoline/patoline/3dcd41fdff64895d795d4a78baa27d572b161081/typography/TableOfContents.ml
ocaml
Copyright Florian Hatat , , , Pierre - Etienne Meunier , , 2012 . This file is part of Patoline . Patoline 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 th...
7a9ce9223bee5781f0ad7f7173198a4edb746cfe7f11c953257bd6b50c62c4ea
kafka4beam/kflow
kflow_wf_chunks_to_local_file.erl
%%%=================================================================== 2019 Klarna Bank AB ( publ ) %%% %%% @doc This workflow assembles chunked transmissions into local %%% files. %%% %%% @end %%%=================================================================== -module(kflow_wf_chunks_to_local_file). -include("k...
null
https://raw.githubusercontent.com/kafka4beam/kflow/2c44379a2934385a17fb504e7a933c859da7ab06/src/workflows/kflow_wf_chunks_to_local_file.erl
erlang
=================================================================== @doc This workflow assembles chunked transmissions into local files. @end =================================================================== API =================================================================== Types =========================...
2019 Klarna Bank AB ( publ ) -module(kflow_wf_chunks_to_local_file). -include("kflow_int.hrl"). -export([workflow/2]). -export_type([config/0, predicate/0]). -type predicate() :: fun((Key :: binary()) -> boolean()). -type config() :: #{ kafka_client => atom() , consumer_config => proplists:...
7d16aeb125bc91dd08f41e2f8699e9bc3812fa0d809de0b7efc6b4a73966825d
Elzair/nazghul
fields.scm
;;---------------------------------------------------------------------------- ;; fields.scm - field types supported by the game ;;---------------------------------------------------------------------------- ;;---------------------------------------------------------------------------- ;; kern-mk-field-type <tag> <nam...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/template/lib/fields.scm
scheme
---------------------------------------------------------------------------- fields.scm - field types supported by the game ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- kern-mk-field-type <tag> <name> <sprite>...
(kern-mk-field-type 'F_illum "glowing mote" s_magic 1024 5 pclass-none nil mmode-field) (kern-mk-field-type 'F_fire "fire field" s_field_fire 512 20 pclass-none 'burn mmode-field) (kern-mk-field-type 'F_poison "poison field" s_field_poison 256 20 pclass-none 'apply-poison mmode-field) (kern-...
a9978cb3cb4ebea6b0f1da36e0daf04b1a1a99ac3fc005cb1a973375ab83d823
meooow25/haccepted
KMPBench.hs
module KMPBench where import qualified Data.ByteString.Char8 as C import Criterion import KMP ( prefixFuncBS ) import Util ( evalR, randASCIIString, sizedBench ) benchmark :: Benchmark benchmark = bgroup "KMP" Generate the KMP prefix function for a string of size n bgroup "prefixFuncBS" $ map benchPrefixFun...
null
https://raw.githubusercontent.com/meooow25/haccepted/2bc153ca95038de3b8bac83eee4419b3ecc116c5/bench/KMPBench.hs
haskell
module KMPBench where import qualified Data.ByteString.Char8 as C import Criterion import KMP ( prefixFuncBS ) import Util ( evalR, randASCIIString, sizedBench ) benchmark :: Benchmark benchmark = bgroup "KMP" Generate the KMP prefix function for a string of size n bgroup "prefixFuncBS" $ map benchPrefixFun...
96075fba0ffe59bc60ea03153bc96560010fde17f0f168d3aa3881c6299a59b0
Decentralized-Pictures/T4L3NT
op.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_protocol/test/helpers/op.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
32301cfd8a39cffe999f71a2d345c60050e12f60db8d5039f3507e20a7b04a2c
shayan-najd/QFeldspar
Lifting.hs
module QFeldspar.Expression.Conversions.Lifting (cnvHOFOF,cnvFOHO,cnvFOHOF) where import QFeldspar.MyPrelude import QFeldspar.Conversion import QFeldspar.Singleton import QFeldspar.Variable.Typed as VT import QFeldspar.Environment.Typed as ET import qualified QFelds...
null
https://raw.githubusercontent.com/shayan-najd/QFeldspar/ed60ce02794a548833317388f6e82e2ab1eabc1c/QFeldspar/Expression/Conversions/Lifting.hs
haskell
module QFeldspar.Expression.Conversions.Lifting (cnvHOFOF,cnvFOHO,cnvFOHOF) where import QFeldspar.MyPrelude import QFeldspar.Conversion import QFeldspar.Singleton import QFeldspar.Variable.Typed as VT import QFeldspar.Environment.Typed as ET import qualified QFelds...
674fad9ce83dcd92596ac2dad82035041c1a701e2b1f750bc254dcad229571f9
mzp/coq-for-ipad
jg_config.mli
(*************************************************************************) (* *) (* Objective Caml LablTk library *) (* *) ,...
null
https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/otherlibs/labltk/browser/jg_config.mli
ocaml
*********************************************************************** Objective Caml LablTk library ...
, Kyoto University RIMS Copyright 1999 Institut National de Recherche en Informatique et en Automatique and Kyoto University . All rights reserved . This file is distributed under the terms of the GNU Library $ I d : 2001 - 12 - 07 13:41:02Z x...
203d916cede670f328ce1f4455a9d64532be73f459ca310a950e7ef996b52bfe
pascal-knodel/haskell-craft
SelfComposition.hs
-- Self composition of an unary function. Primitive Recursion. module SelfComposition where selfCompose :: Integer -> (a -> a) -> (a -> a) selfCompose 0 _ = id selfCompose times function = function . selfCompose (times - 1) function GHCi > ( selfCompose 0 ( + 1 ) ) 1 ( selfCompose 1 ( + 1 ) )...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Examples/%C2%B7%C2%A0Recursion/%C2%B7%20Primitive%20Recursion/Higher%20Order%20Functions/SelfComposition.hs
haskell
Self composition of an unary function. Primitive Recursion.
module SelfComposition where selfCompose :: Integer -> (a -> a) -> (a -> a) selfCompose 0 _ = id selfCompose times function = function . selfCompose (times - 1) function GHCi > ( selfCompose 0 ( + 1 ) ) 1 ( selfCompose 1 ( + 1 ) ) 1 ( selfCompose 2 ( + 1 ) ) 1 ( selfCompose 0 (+ 1) ) 1 ...
4e2755f25a0889cbb7110afe6a8c1f6abc2588ce98b8db2884472caff1fbb9c4
arttuka/reagent-material-ui
face_4.cljs
(ns reagent-mui.icons.face-4 "Imports @mui/icons-material/Face4 as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def face-4 (create-svg-icon [(e "path" #js {"d" ...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/face_4.cljs
clojure
(ns reagent-mui.icons.face-4 "Imports @mui/icons-material/Face4 as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def face-4 (create-svg-icon [(e "path" #js {"d" ...
b2f7c46fd32f237747271b90c4fd11f79e29ccaf9dc7d2004eb12779b55c8427
futurice/haskell-mega-repo
ScheduleEmployee.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE InstanceSigs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # {-# LANGUAGE TypeOperators #-} -- | TODO move to personio-proxy module Per...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/95fe8e33ad6426eb6e52a9c23db4aeffd443b3e5/personio-client/src/Personio/Types/ScheduleEmployee.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # | TODO move to personio-proxy
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE InstanceSigs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Personio.Types.ScheduleEmployee where import FUM.Types.Login import Futurice.Email import Futurice.Generics i...
7270f85ccfb10afd99f38bf450deee506f04ba7a0491822aa101057f7299fb35
matijapretnar/eff
graphs.ml
open Bechamel open Toolkit let instance = Instance.monotonic_clock let limit = 5000 let second_quota = 10.0 module StringMap = Map.Make (String) module IntMap = Map.Make (Int) let measure_benchmark benchmark baseline = let ols = Analyze.ols ~bootstrap:0 ~r_square:true ~predictors:Measure.[| run |] in let...
null
https://raw.githubusercontent.com/matijapretnar/eff/0b0ec7a83e7db4d040ed8fdfc1ac6e3c0f344be1/misc/code-generation-benchmarks/generate-graphs/graphs.ml
ocaml
open Bechamel open Toolkit let instance = Instance.monotonic_clock let limit = 5000 let second_quota = 10.0 module StringMap = Map.Make (String) module IntMap = Map.Make (Int) let measure_benchmark benchmark baseline = let ols = Analyze.ols ~bootstrap:0 ~r_square:true ~predictors:Measure.[| run |] in let...
2042203be8fdc818c5366df6cc473350ae1dc2dafa709fbe4524be8633724210
afiniate/aws_async
awsa_sign.ml
open Core.Std open Cryptokit let algo = "AWS4-HMAC-SHA256" let hex_encode x = let nibble x = char_of_int (if x < 10 then int_of_char '0' + x else int_of_char 'a' + (x - 10)) in let result = String.make (String.length x * 2) ' ' in for i = 0 to String.length x - 1 do let...
null
https://raw.githubusercontent.com/afiniate/aws_async/44c27bf9f18f76e9e6405c2252098c4aa3d9a8bc/lib/auth/awsa_sign.ml
ocaml
open Core.Std open Cryptokit let algo = "AWS4-HMAC-SHA256" let hex_encode x = let nibble x = char_of_int (if x < 10 then int_of_char '0' + x else int_of_char 'a' + (x - 10)) in let result = String.make (String.length x * 2) ' ' in for i = 0 to String.length x - 1 do let...
f1483edd623aa1d969ceff70dc2d28e65cdcdb9a50d4853dd4e5749a55045f60
ghc/ghc
T19847a.hs
# LANGUAGE LambdaCase , GADTs , ScopedTypeVariables , TypeAbstractions # module T19847a where data T a b c where MkT :: forall c y x b. (x~y, c~[x], Ord x) => x -> y -> T (x,y) b c f :: forall b c. (T (Int,Int) b c -> Bool) -> (b,c) f = error "urk" h = f (\case { MkT @_ @_ @_ @Int p q -> True }) -- Check that the...
null
https://raw.githubusercontent.com/ghc/ghc/354aa47d313113855aff9e5c5476fcb56f80e3bf/testsuite/tests/gadt/T19847a.hs
haskell
Check that the @Int argument can affect the type at which `f` is instantiated So h :: forall c. (Int,c)
# LANGUAGE LambdaCase , GADTs , ScopedTypeVariables , TypeAbstractions # module T19847a where data T a b c where MkT :: forall c y x b. (x~y, c~[x], Ord x) => x -> y -> T (x,y) b c f :: forall b c. (T (Int,Int) b c -> Bool) -> (b,c) f = error "urk" h = f (\case { MkT @_ @_ @_ @Int p q -> True })
e3b0190fab13fc6d7688fc23129344153277b5189ea0196f2f6fd0a2da7f9c8b
coalton-lang/coalton
red-black-tests.lisp
(cl:in-package #:coalton-native-tests) ;; invariant checking (coalton-toplevel (define-type (InvariantError :elt) (RedWithRedLeftChild (red-black/tree:Tree :elt)) (RedWithRedRightChild (red-black/tree:Tree :elt)) (DifferentCountToBlack UFix (red-black/tree:Tree :elt) UFix (red-...
null
https://raw.githubusercontent.com/coalton-lang/coalton/57e5622346add6aca753e3c4830afaed65e6d6df/tests/red-black-tests.lisp
lisp
invariant checking
(cl:in-package #:coalton-native-tests) (coalton-toplevel (define-type (InvariantError :elt) (RedWithRedLeftChild (red-black/tree:Tree :elt)) (RedWithRedRightChild (red-black/tree:Tree :elt)) (DifferentCountToBlack UFix (red-black/tree:Tree :elt) UFix (red-black/tree:Tree :elt))...
ae7700d0b97d86d2c0c4de314afd7b1c5691de439083b5775d5f30a345283c80
OCamlPro/ez_api
ezReq_lwt.ml
(**************************************************************************) (* *) Copyright 2018 - 2022 OCamlPro (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/ez_api/5253f7dd8936e923290aa969ee43ebd3dc6fce2d/src/request/unix/curl/ezReq_lwt.ml
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2018 - 2022 OCamlPro GNU Lesser General Public License version 2.1 , with the special include EzCurl_lwt
e05eb71d598a97d9548f8864a3fddf130eebb643ffa3711e71fdbbafd15ba7b7
Chris00/mesh
export.ml
open Bigarray let pi = acos(-1.) let pslg_disk = let n = 100 in let point = Array2.create float64 fortran_layout 2 n in let segment = Array2.create int fortran_layout 2 n in let dt = 2. *. pi /. float n in for i = 1 to n do let t = float(i - 1) *. dt in point.{1,i} <- cos t; point.{2,i} <- sin t...
null
https://raw.githubusercontent.com/Chris00/mesh/305efa28209c6d5b081459338d84bcd985254bca/tests/export.ml
ocaml
open Bigarray let pi = acos(-1.) let pslg_disk = let n = 100 in let point = Array2.create float64 fortran_layout 2 n in let segment = Array2.create int fortran_layout 2 n in let dt = 2. *. pi /. float n in for i = 1 to n do let t = float(i - 1) *. dt in point.{1,i} <- cos t; point.{2,i} <- sin t...
e30aea0dd36dec91a9b2815e33981a642637f864809e93a37ac6b1b828d2be5b
jwiegley/notes
memoize-edwardk.hs
{-# LANGUAGE BangPatterns #-} module Main where import Control.Monad.Instances import Data.List import Data.Function (fix) col :: (Int -> (Int,Integer)) -> Int -> (Int,Integer) col mf 1 = (1,0) col mf !n | mod n 2 == 0 = let (x,y) = mf (n `div` 2) in (x+1,y+1) | otherwise = let (x,y) = mf (n * 3 + 1) in (x+1,...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/memoize-edwardk.hs
haskell
# LANGUAGE BangPatterns #
module Main where import Control.Monad.Instances import Data.List import Data.Function (fix) col :: (Int -> (Int,Integer)) -> Int -> (Int,Integer) col mf 1 = (1,0) col mf !n | mod n 2 == 0 = let (x,y) = mf (n `div` 2) in (x+1,y+1) | otherwise = let (x,y) = mf (n * 3 + 1) in (x+1,y+1) f_list :: [(Int,Integer)...
9205503b7add5ad5874ef7307f608778936a7afc857ff7911a64a62fac1ed5e8
TiltMeSenpai/Discord.hs
hello_world.hs
{-# LANGUAGE OverloadedStrings #-} import Data.Maybe import Network.URL import Pipes.Core ((+>>)) import Network.Discord.Types import Network.Discord.Gateway import Network.Discord.Rest data LogClient = LClient instance Client LogClient where getAuth _ = Bot "TOKEN" main :: IO () main = runWebsocket (fromJust $ ...
null
https://raw.githubusercontent.com/TiltMeSenpai/Discord.hs/91f688f03813982bbf7c37d048bd7bcc08671d8e/examples/hello_world.hs
haskell
# LANGUAGE OverloadedStrings #
import Data.Maybe import Network.URL import Pipes.Core ((+>>)) import Network.Discord.Types import Network.Discord.Gateway import Network.Discord.Rest data LogClient = LClient instance Client LogClient where getAuth _ = Bot "TOKEN" main :: IO () main = runWebsocket (fromJust $ importURL "wss") LClient $ do fet...
9cd65710e2bb1727a12bf7f6938f70a6441212b009ea276da5ff98958b93afcf
everpeace/programming-erlang-code
server1.erl
-module(server1). -export([start/2, rpc/2]). start(Name, Mod) -> register(Name, spawn(fun() -> loop(Name, Mod, Mod:init()) end)). rpc(Name, Request) -> Name ! {self(), Request}, receive {Name, Response} -> Response end. loop(Name, Mod, State) -> receive {From, Request} -> {Re...
null
https://raw.githubusercontent.com/everpeace/programming-erlang-code/8ef31aa13d15b41754dda225c50284915c29cb48/code/server1.erl
erlang
-module(server1). -export([start/2, rpc/2]). start(Name, Mod) -> register(Name, spawn(fun() -> loop(Name, Mod, Mod:init()) end)). rpc(Name, Request) -> Name ! {self(), Request}, receive {Name, Response} -> Response end. loop(Name, Mod, State) -> receive {From, Request} -> {Re...
9ced417320a272d6b71b124d6688359cee2bddfaf658a304298a5ee705099ac1
lamdu/lamdu
BuiltinEdit.hs
module Lamdu.GUI.Expr.BuiltinEdit ( make ) where import qualified Control.Lens as Lens import Data.Property (Property(..)) import qualified Data.Text as Text import GUI.Momentu (noMods) import qualified GUI.Momentu as M import GUI.Momentu.Element.Id (ElemId) import qualified GUI.M...
null
https://raw.githubusercontent.com/lamdu/lamdu/5b15688e53ccbf7448ff11134b3e51ed082c6b6c/src/Lamdu/GUI/Expr/BuiltinEdit.hs
haskell
module Lamdu.GUI.Expr.BuiltinEdit ( make ) where import qualified Control.Lens as Lens import Data.Property (Property(..)) import qualified Data.Text as Text import GUI.Momentu (noMods) import qualified GUI.Momentu as M import GUI.Momentu.Element.Id (ElemId) import qualified GUI.M...
612bedb4de7c015068a417a8ada4efbfccb5ce77efead2ece5ca4a2c809d72fd
appleshan/cl-http
sysdcl.lisp
-*- Syntax : Ansi - Common - Lisp ; Package : cl - user ; Base : 10 ; Mode : lisp -*- ;;; File: sysdcl.lisp Last edited by smishra on Thu Oct 22 17:27:33 1998 ( c ) Copyright 1996 - 98 , ( ) ;;; All Rights Reserved (in-package :cl-user) #-(or Allegro LispWorks Genera MCL) (error "System definitions inc...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/html-parser/v10/sysdcl.lisp
lisp
Package : cl - user ; Base : 10 ; Mode : lisp -*- File: sysdcl.lisp All Rights Reserved ------------------------------------------------------------------- ------------------------------------------------------------------- ------------------------------------------------------------------- Genera syste...
Last edited by smishra on Thu Oct 22 17:27:33 1998 ( c ) Copyright 1996 - 98 , ( ) (in-package :cl-user) #-(or Allegro LispWorks Genera MCL) (error "System definitions included here are for the following platforms: * Allegro * LispWorks * Genera * MCL If you write a system definition for another setup, p...
df102b5197227cff4a9e8380151130ff5331783763fc2122f675e23f57fc5b68
lingnand/VIMonad
Types.hs
{-# LANGUAGE DeriveDataTypeable #-} ----------------------------------------------------------------------------- -- | -- Module : XMonad.Util.Types Copyright : ( c ) ( 2009 ) -- License : BSD3-style (see LICENSE) -- Maintainer : < > -- Stability : unstable -- Portability : unportable -...
null
https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Util/Types.hs
haskell
# LANGUAGE DeriveDataTypeable # --------------------------------------------------------------------------- | Module : XMonad.Util.Types License : BSD3-style (see LICENSE) Stability : unstable Portability : unportable Miscellaneous commonly used types. -------------------------------------------...
Copyright : ( c ) ( 2009 ) Maintainer : < > module XMonad.Util.Types (Direction1D(..) ,Direction2D(..) ) where import Data.Typeable (Typeable) | One - dimensional directions : data Direction1D = Next | Prev deriving (Eq,Read,Show,Typeable) | Tw...
23320c41baab81fe9fcd6c1914621987e5020c17dddc6e124478a50a980cbed9
digitallyinduced/ihp
Edit.hs
module IHP.IDE.SchemaDesigner.View.Enums.Edit where import IHP.ViewPrelude import IHP.IDE.SchemaDesigner.Types import IHP.IDE.ToolServer.Types import IHP.IDE.SchemaDesigner.View.Layout data EditEnumView = EditEnumView { statements :: [Statement] , enumName :: Text , enumId :: Int } instance View Edit...
null
https://raw.githubusercontent.com/digitallyinduced/ihp/756c95328bdfea3bd8bc7d087a8d45303da40a60/IHP/IDE/SchemaDesigner/View/Enums/Edit.hs
haskell
module IHP.IDE.SchemaDesigner.View.Enums.Edit where import IHP.ViewPrelude import IHP.IDE.SchemaDesigner.Types import IHP.IDE.ToolServer.Types import IHP.IDE.SchemaDesigner.View.Layout data EditEnumView = EditEnumView { statements :: [Statement] , enumName :: Text , enumId :: Int } instance View Edit...
62ac14143ead4d138ba9befb462e51649422572e15f00d1dd307487b1c1cfef4
pirapira/coq2rust
wg_Notebook.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/ide/wg_Notebook.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * class ['a] typed_notebook : ...
85bed7642d3f3d13fd2cc0630790db3980da4cdfe237d77243207c47e91f5fa9
Octachron/codept
b.ml
module C = struct end
null
https://raw.githubusercontent.com/Octachron/codept/2d2a95fde3f67cdd0f5a1b68d8b8b47aefef9290/ocamlbuild/src/b.ml
ocaml
module C = struct end
84b24c871a2ae538aeb2efad6b5b2f4ead29c50625ca366b6a2d1e5260581c58
SjVer/Lamb
lower.ml
open Anf module SMap = Map.Make(String) let ctx = Llvm.create_context () let bld = Llvm.builder ctx let mdl = Llvm.create_module ctx "module" let i64 = Llvm.i64_type ctx let malloc = let fty = Llvm.function_type (Llvm.pointer_type i64) [|i64|] in Llvm.declare_function "malloc" fty mdl let func_ty arity = let ar...
null
https://raw.githubusercontent.com/SjVer/Lamb/1e901d8ae14d969a65da52e9f5f141b3fd260462/bin/lower.ml
ocaml
malloc the tuple set each of the tuple's items convert the tuple to an i64 so it can be used create function gather args build blocks
open Anf module SMap = Map.Make(String) let ctx = Llvm.create_context () let bld = Llvm.builder ctx let mdl = Llvm.create_module ctx "module" let i64 = Llvm.i64_type ctx let malloc = let fty = Llvm.function_type (Llvm.pointer_type i64) [|i64|] in Llvm.declare_function "malloc" fty mdl let func_ty arity = let ar...
1c699001a40a94c34b41fdec5a5cc9900ae52442ad29c9b97a4e361122f057d8
GaloisInc/renovate
ISA.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # {-# LANGUAGE RankNTypes #-} # LANGUAGE StandaloneDeriving # {-# LANGUAGE TypeInType #-} # LANGUAGE UndecidableInstances # | This module defines the interface required for describing...
null
https://raw.githubusercontent.com/GaloisInc/renovate/c85c7c472c8ed9b45656e9555093a35dd819c550/renovate/src/Renovate/ISA.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE TypeInType # to the rewriter. | Constraints that must be available for an architecture Note that this differs from 'RCI.InstructionConstraints' in that these constraints do not (and cannot) mention the @tp@ type parameter marking t...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # # LANGUAGE StandaloneDeriving # # LANGUAGE UndecidableInstances # | This module defines the interface required for describing an ' ISA ' Implementations of ' ISA 's are in separate @renovate-<arch>@ packages . module Renovate.ISA ( I...
db4313df07bd7032c5d7ce5a4924403e9538a470f90e07acb63d813eeb3c34b4
codinuum/volt
simple.ml
let main () = LOG "entering main" LEVEL TRACE; if (Array.length Sys.argv) = 0 then LOG "no %s" "argument" LEVEL WARN; for i = 1 to pred (Array.length Sys.argv) do try LOG "getting variable " LEVEL DEBUG; print_endline (Sys.getenv Sys.argv.(i)) with | Not_found -> LOG "undefined...
null
https://raw.githubusercontent.com/codinuum/volt/546207693ef102a2f02c85af935f64a8f16882e6/tests/01-syntax/simple.ml
ocaml
let main () = LOG "entering main" LEVEL TRACE; if (Array.length Sys.argv) = 0 then LOG "no %s" "argument" LEVEL WARN; for i = 1 to pred (Array.length Sys.argv) do try LOG "getting variable " LEVEL DEBUG; print_endline (Sys.getenv Sys.argv.(i)) with | Not_found -> LOG "undefined...
6ae50840e99941daf2b09377d8631f8fe0a5bc320440b22dffc13126adadb2ff
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} # LANGUAGE NoRebindableSyntax # {-# LANGUAGE OverloadedStrings #-} module Duckling.T...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Time/NL/BE/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE NoRebindableSyntax # module Duckling.Time.NL.BE.Rules ( rules ) where import Duckling.Time.Helpers import Duckling.Types ruleHolidays :: [Rule] ruleHolidays = mkRuleHolidays [ ( "Sinterklaas", "sinterklaas", monthDay 12 6 ) ] rules :: [Rule] ru...
1c5a9e436d42a0c2dc932fba87d387bf2aba2272f9654c11e973dbc41aa7f9d6
softwarelanguageslab/maf
R5RS_scp1_josephus-problem-4.scm
; Changes: * removed : 1 * added : 5 * swaps : 1 ; * negated predicates: 0 * swapped branches : 1 * calls to i d fun : 2 (letrec ((result ()) (output (lambda (i) (set! result (cons i result)))) (make-ring (lambda (n) (let ((last (cons 0 ()))) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_josephus-problem-4.scm
scheme
Changes: * negated predicates: 0
* removed : 1 * added : 5 * swaps : 1 * swapped branches : 1 * calls to i d fun : 2 (letrec ((result ()) (output (lambda (i) (set! result (cons i result)))) (make-ring (lambda (n) (let ((last (cons 0 ()))) (letrec ((build-list...
2e6d2b7a6f98b2b09798be884860e859ce258e82828e6ac90abefb176cf4bc2c
ghc/ghc
Desugar.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # # LANGUAGE DisambiguateRecordFields # | Desugaring step of the -- [Lower Your Guards paper](). -- source syntax into guard tree variants Pm * . In terms of the paper , this module is concerned with Sections 3.1 ,...
null
https://raw.githubusercontent.com/ghc/ghc/d0c7bbedb741e6bf947bcdc0e097070242ab56e1/compiler/GHC/HsToCore/Pmc/Desugar.hs
haskell
# LANGUAGE GADTs # [Lower Your Guards paper](). in particular. # SOURCE # # SOURCE # | Smart constructor that eliminates trivial lets For example: @mkListGrds "a" "[(x, True <- x),(y, !y)]"@ to @"[(x:b) <- a, True <- x, (y:c) <- b, !y, [] <- c]"@ variable. See Note [Order of guards matters] fo...
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE DisambiguateRecordFields # | Desugaring step of the source syntax into guard tree variants Pm * . In terms of the paper , this module is concerned with Sections 3.1 , Figure 4 , module GHC.HsToCore.Pmc.Desugar ( desugarPatBind, de...
e163f0f4f2695ae3a34624d644cd2f2f3c146b792eb922a2711471720bec7263
SquidDev/illuaminate
lint_unknown_global.mli
* Warn when using an unknown global . Ideally this 'd be merged with { ! } , with some complex description of " other " modules , but this is a good " first " approximation . Ideally this'd be merged with {!Lint_unresolved_reference}, with some complex description of "other" modules, but this is ...
null
https://raw.githubusercontent.com/SquidDev/illuaminate/da18b101b4710881b71c42554d70a3a7d17c3cd6/src/lint/lint_unknown_global.mli
ocaml
* Warn when using an unknown global . Ideally this 'd be merged with { ! } , with some complex description of " other " modules , but this is a good " first " approximation . Ideally this'd be merged with {!Lint_unresolved_reference}, with some complex description of "other" modules, but this is ...
e3cd818a4cdb3c6f36538491fc2cb37ee11a7b12a275abd8ab453bb29de66b13
jayunit100/RudolF
web.clj
(ns demo.web (:use [ring.adapter.jetty] [BioClojure.seqUtils] [BioClojure.nmrSampleSchedule])) (defn demo [] (let [random_motif (apply str (rand-motif-str (rand-int 30))) random_aa (rand-aa-str (rand-int 40)) translated_aa (aa-to-3-letter random_aa)] ["rand dna = " random_motif ...
null
https://raw.githubusercontent.com/jayunit100/RudolF/8936bafbb30c65c78b820062dec550ceeea4b3a4/bioclojure/src/demo/web.clj
clojure
(ns demo.web (:use [ring.adapter.jetty] [BioClojure.seqUtils] [BioClojure.nmrSampleSchedule])) (defn demo [] (let [random_motif (apply str (rand-motif-str (rand-int 30))) random_aa (rand-aa-str (rand-int 40)) translated_aa (aa-to-3-letter random_aa)] ["rand dna = " random_motif ...
b298a74eee4b7d6010ac791503d008f98f160bcb9e60be6da24eb327044088a1
jackfirth/racket-expect
main.rkt
#lang reprovide "context.rkt" "convert-base.rkt" "convert.rkt" "data-dict.rkt" "data-sequence.rkt" "data-set.rkt" "data-syntax.rkt"
null
https://raw.githubusercontent.com/jackfirth/racket-expect/9530df30537ae05400b6a3add9619e5f697dca52/private/data/main.rkt
racket
#lang reprovide "context.rkt" "convert-base.rkt" "convert.rkt" "data-dict.rkt" "data-sequence.rkt" "data-set.rkt" "data-syntax.rkt"
7dfc12646dc0231b0f1509d20bcebee00e988dc0d0a74f0b6104e30e41899814
BetterThanTomorrow/joyride
require_extension_test.cljs
(ns integration-test.require-extension-test (:require [cljs.test :refer [testing is]] [promesa.core :as p] ["ext" :as ns-required-extension] [integration-test.macros :refer [deftest-async]])) #_{:clj-kondo/ignore [:duplicate-require]} (require '["ext" :as top-level-required-extens...
null
https://raw.githubusercontent.com/BetterThanTomorrow/joyride/c67cc35d3ea2c8662380371b11d4a5617d71913f/vscode-test-runner/workspace-1/.joyride/src/integration_test/require_extension_test.cljs
clojure
(ns integration-test.require-extension-test (:require [cljs.test :refer [testing is]] [promesa.core :as p] ["ext" :as ns-required-extension] [integration-test.macros :refer [deftest-async]])) #_{:clj-kondo/ignore [:duplicate-require]} (require '["ext" :as top-level-required-extens...
4b39064739c703e6063d0e470e4e4bfc9649be01da1a17c3f8e46a4730d22293
o1-labs/snarkette
mnt6_80.ml
open Core_kernel open Fields module N = Nat module Fq = Make_fp (N) (struct let order = N.of_string "475922286169261325753349249653048451545124878552823515553267735739164647307408490559963137" end) let non_residue = Fq.of_int 5 module Fq3 = struct module Params = struct le...
null
https://raw.githubusercontent.com/o1-labs/snarkette/c4af4a5f654497183871b5f2ee99005020be20d8/src/mnt6_80.ml
ocaml
open Core_kernel open Fields module N = Nat module Fq = Make_fp (N) (struct let order = N.of_string "475922286169261325753349249653048451545124878552823515553267735739164647307408490559963137" end) let non_residue = Fq.of_int 5 module Fq3 = struct module Params = struct le...
1c3e53ceb993c22605749562179fa28489168d4dc5d1dcce325f8561728a1ccd
ovotech/ring-jwt
token.clj
(ns ring.middleware.token (:require [cheshire.core :as json] [clojure.walk :refer [postwalk]] [ring.middleware.jwk :as jwk] [clojure.spec.alpha :as s]) (:import (com.auth0.jwt.algorithms Algorithm) (com.auth0.jwt JWT) (com.auth0.jwt.exceptions JWTDecodeExcep...
null
https://raw.githubusercontent.com/ovotech/ring-jwt/6977423b57a16bcf67761531dabea1edfd3b3371/src/ring/middleware/token.clj
clojure
(ns ring.middleware.token (:require [cheshire.core :as json] [clojure.walk :refer [postwalk]] [ring.middleware.jwk :as jwk] [clojure.spec.alpha :as s]) (:import (com.auth0.jwt.algorithms Algorithm) (com.auth0.jwt JWT) (com.auth0.jwt.exceptions JWTDecodeExcep...
56300aa174a33a35d3c0d78bb52836325f58b836ff033c0fef7de32679d645d7
penpot/penpot
radius.cljc
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.common.types.shape.radius (:require [app.common.pages.common :refer [editable-attrs]] [app.c...
null
https://raw.githubusercontent.com/penpot/penpot/5463671db13441ba3f730a34118547d34a5a36f1/common/src/app/common/types/shape/radius.cljc
clojure
Copyright (c) KALEIDOS INC There are some shapes that admit border radius, as rectangles values :rx and :ry because svg uses it this way). - radius-4 each corner (top-left, top-right, bottom-right, bottom-left) has an independent value. SVG does not allow this directly, so we emulate it with paths. A shap...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.common.types.shape.radius (:require [app.common.pages.common :refer [editable-attrs]] [app.common.spec :as us] [clojure.s...
4bd7f868254843203c3e9a5bb77ba368d223a54316ff6760cf42fda0a7c4e982
dwincort/AdaptiveFuzz
primml.ml
file name : primml.ml created by : Last modified : 12/20/2015 Description : This file contains code for interpreting primitives as if they were direct ocaml functions . created by: Daniel Winograd-Cort Last modified: 12/20/2015 Description: This file contains code for in...
null
https://raw.githubusercontent.com/dwincort/AdaptiveFuzz/ec937e1ea028e17216928dbdd029a5b9b04a0533/src/primml.ml
ocaml
Returns a file as a list of strings in reverse &-pair destruction Logical Operators clip creation String operations Show functions Read functions Testing Utilities Probability monad operations Data zone activation primitives Bag primitives Differential Privacy mechanisms Guaranteed to fail! Wha...
file name : primml.ml created by : Last modified : 12/20/2015 Description : This file contains code for interpreting primitives as if they were direct ocaml functions . created by: Daniel Winograd-Cort Last modified: 12/20/2015 Description: This file contains code for in...
0c72583b66f64e81b16e02991e613e6a2cc55e8a1c31e56b44fc2cbeeab54dd9
gregr/racket-misc
cursor.rkt
#lang racket/base (provide (struct-out cursor) ;; cursor notation ::0 ; create a new cursor focusing on the given datum ascend one level or optionally to the same depth as another cursor ::^. ; ascend as in ::^ then retrieve the focus ::^* ; ascend completely ::^*. ; ascend completely then retrieve t...
null
https://raw.githubusercontent.com/gregr/racket-misc/0a5c9d4875288795e209d06982b82848c989d08b/cursor.rkt
racket
cursor notation create a new cursor focusing on the given datum ascend as in ::^ then retrieve the focus ascend completely ascend completely then retrieve the focus descend through a given path like ::@ but return left (unmatchable path) or right (cursor) descend as in ::@ then retrieve the focus descend as in...
#lang racket/base (provide (struct-out cursor) ascend one level or optionally to the same depth as another cursor merge a list of paths into one path ) (require "dict.rkt" "either.rkt" "function.rkt" "list.rkt" "record.rkt" "sugar.rkt" racket/dict racket/function racket/list racket/mat...
317bb371921b9b3706f347ebb5112d1c8894b4e4fd98b1374ecfbaa77ef8b85e
wdebeaum/step
valid.lisp
;;;; ;;;; W::valid ;;;; (define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::valid (wordfeats (W::morph (:FORMS (-LY)))) (SENSES ((meta-data :origin task-learning :entry-date 20050823 :change-date 20090731 :comments nil) (EXAMPLE "the return address on spam is usually not valid") (lf-...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/valid.lisp
lisp
W::valid
(define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::valid (wordfeats (W::morph (:FORMS (-LY)))) (SENSES ((meta-data :origin task-learning :entry-date 20050823 :change-date 20090731 :comments nil) (EXAMPLE "the return address on spam is usually not valid") (lf-parent ont::valid-val) ...
bace5c0f1b650a17a84c56b039e78479239616e574f365bb1e0a69a062fc2d6a
epiccastle/spire
silent.clj
(ns spire.output.silent (:require [spire.output.core :as output])) (set! *warn-on-reflection* true) (defmethod output/print-thread :silent [driver]) (defmethod output/print-form :silent [driver file form file-meta host-config]) (defmethod output/print-result :silent [driver file form file-meta host-config result]...
null
https://raw.githubusercontent.com/epiccastle/spire/f1161ae5ff74124d603c1679507fc0a1b31c26eb/src/clj/spire/output/silent.clj
clojure
(ns spire.output.silent (:require [spire.output.core :as output])) (set! *warn-on-reflection* true) (defmethod output/print-thread :silent [driver]) (defmethod output/print-form :silent [driver file form file-meta host-config]) (defmethod output/print-result :silent [driver file form file-meta host-config result]...
e2ef0682973a77582d7eace078a6ca17481657e0243562121a4756b79c52812e
synduce/Synduce
count_between.ml
* @synduce -s 2 -NB type 'a tree = | Leaf of 'a | Node of 'a * 'a tree * 'a tree let rec tree_min = function | Leaf x -> x | Node (a, l, r) -> min a (min (tree_min l) (tree_min r)) ;; let rec tree_max = function | Leaf x -> x | Node (a, l, r) -> max a (max (tree_max l) (tree_max r)) ;; let repr x = x l...
null
https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/benchmarks/incomplete/misc/count_between.ml
ocaml
* @synduce -s 2 -NB type 'a tree = | Leaf of 'a | Node of 'a * 'a tree * 'a tree let rec tree_min = function | Leaf x -> x | Node (a, l, r) -> min a (min (tree_min l) (tree_min r)) ;; let rec tree_max = function | Leaf x -> x | Node (a, l, r) -> max a (max (tree_max l) (tree_max r)) ;; let repr x = x l...
7539737986ebe364e23c5fdfbfc1360aa87ab5edf66338664bffcc8f533b0966
dharrigan/startrek
generators.clj
(ns startrek.test.generators {:author "David Harrigan"} (:require [startrek.core.domain.starship.model :as starship])) (defn starship [& overrides] (starship/gen-starship overrides))
null
https://raw.githubusercontent.com/dharrigan/startrek/ee15b048c3a89d28161d77c36cb96db07082e98f/test/startrek/test/generators.clj
clojure
(ns startrek.test.generators {:author "David Harrigan"} (:require [startrek.core.domain.starship.model :as starship])) (defn starship [& overrides] (starship/gen-starship overrides))
57b862a7563cf2155713a2df9e06921b4ab24774bc55056f73dbf39d4747bc82
jayrbolton/coursework
Conat.hs
{-# LANGUAGE EmptyDataDecls , ExistentialQuantification , ScopedTypeVariables , NoMonomorphismRestriction #-} module MAlonzo.Data.Conat where import qualified Unsafe.Coerce import qualified MAlonzo.Coinduction import qualified MAlonzo.Data.Nat import qualified MAlonzo.Relation.Binary ...
null
https://raw.githubusercontent.com/jayrbolton/coursework/f0da276527d42a6751fb8d29c76de35ce358fe65/computability_and_formal_languages/project__/agda/MAlonzo/Data/Conat.hs
haskell
# LANGUAGE EmptyDataDecls , ExistentialQuantification , ScopedTypeVariables , NoMonomorphismRestriction #
module MAlonzo.Data.Conat where import qualified Unsafe.Coerce import qualified MAlonzo.Coinduction import qualified MAlonzo.Data.Nat import qualified MAlonzo.Relation.Binary import qualified MAlonzo.Relation.Binary.Core name2 = ("Data.Conat.Co\8469") d2 = (()) data T2 a0 = C3 | C5 a0 name3 = ("Data.Conat....
473e60093d9975d0abf1c65b22e1a3892dc24ee62f45628f224c64b3b6ecba73
replikativ/datahike
js.cljs
(ns ^:no-doc datahike.js (:refer-clojure :exclude [filter]) (:require [goog.object :as go] [datahike.core :as d] [clojure.walk :as walk] [cljs.reader])) ;; Conversions (defn- keywordize [s] (if (and (string? s) (= (subs s 0 1) ":")) (keyword (subs s 1)) s)) (defn- schema->clj [schema] (->...
null
https://raw.githubusercontent.com/replikativ/datahike/7e60af807dd4db1d0eb73b75ac2f010e31361a3a/src/datahike/js.cljs
clojure
Conversions Public API
(ns ^:no-doc datahike.js (:refer-clojure :exclude [filter]) (:require [goog.object :as go] [datahike.core :as d] [clojure.walk :as walk] [cljs.reader])) (defn- keywordize [s] (if (and (string? s) (= (subs s 0 1) ":")) (keyword (subs s 1)) s)) (defn- schema->clj [schema] (->> (js->clj sche...
bfe58732a79095856c1a121cd8ef129d4d77ccab77ea179db199de6a0ddbd82d
screenshotbot/screenshotbot-oss
types.lisp
;; -*- mode: lisp; syntax: common-lisp -*- (in-package :libssh2) (defcenum +DISCONNECT-CODE+ (:HOST-NOT-ALLOWED-TO-CONNECT 1) (:PROTOCOL-ERROR 2) (:KEY-EXCHANGE-FAILED 3) (:RESERVED 4) (:MAC-ERROR 5) (:C...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/66a28bdf73558bd9dfa0b96dde8d46c9abae5182/third-party/cl-libssh2/src/types.lisp
lisp
-*- mode: lisp; syntax: common-lisp -*- this please contact the SFTP related types
(in-package :libssh2) (defcenum +DISCONNECT-CODE+ (:HOST-NOT-ALLOWED-TO-CONNECT 1) (:PROTOCOL-ERROR 2) (:KEY-EXCHANGE-FAILED 3) (:RESERVED 4) (:MAC-ERROR 5) (:COMPRESSION-ERROR 6) (:...
b5662c6a37df2325d7821c7054c7b300bf74d9304af097d89009653e25b041b3
mrphlip/aoc
21a.hs
root :: Integer jntc = tzrz * jmgz chsl = rbmj + chpp tmjp = rlbw + prhj rllz = wrgr * jplq bttz = hslv + jsph pbcg = frwf - vzrg gfhs = 4 sglc = 8 rqmt = 2 fltv = 2 zggp = thct * ddvm cqdj = 8 mslt = gsnz + blhq mrqj = vzvz * sdnf bqfd = jtlf - hmfq pgsr = 2 bgmj = vhqn + nnrs qjgh = 2 vbwn = 2 dftr = 2 rphr = tnjt + ...
null
https://raw.githubusercontent.com/mrphlip/aoc/d7e3717370229ed0a7584bcf657fb3b72c33631c/2022/21a.hs
haskell
root :: Integer jntc = tzrz * jmgz chsl = rbmj + chpp tmjp = rlbw + prhj rllz = wrgr * jplq bttz = hslv + jsph pbcg = frwf - vzrg gfhs = 4 sglc = 8 rqmt = 2 fltv = 2 zggp = thct * ddvm cqdj = 8 mslt = gsnz + blhq mrqj = vzvz * sdnf bqfd = jtlf - hmfq pgsr = 2 bgmj = vhqn + nnrs qjgh = 2 vbwn = 2 dftr = 2 rphr = tnjt + ...
52aba4e0152dcf3af88dfe2db6b00317daa6259c3d8f99a37339d655e8068a56
ftrain/anxietybox
mail.clj
(ns anxietybox.mail (:require [environ.core :as env] [taoensso.timbre :as timbre] [anxietybox.bot :as bot] [clj-http.client :as client])) (timbre/refer-timbre) (timbre/set-config! [:appenders :spit :enabled?] true) TODO put this in env . (timbre/set-config! [:shared-appender-config :spi...
null
https://raw.githubusercontent.com/ftrain/anxietybox/cee9286931465f345e22aec162fb8610a00b6977/anxietybox/src/anxietybox/mail.clj
clojure
(send-anxiety (data/box-select ""))
(ns anxietybox.mail (:require [environ.core :as env] [taoensso.timbre :as timbre] [anxietybox.bot :as bot] [clj-http.client :as client])) (timbre/refer-timbre) (timbre/set-config! [:appenders :spit :enabled?] true) TODO put this in env . (timbre/set-config! [:shared-appender-config :spi...
01b49868d9e112a37ea3bf6e7e01b41cc42cff8a9b16e6c89d3d459a813e0b07
dyoo/whalesong
runtime.rkt
#lang s-exp "../lang/js/js.rkt" (require "structs.rkt") (declare-implementation #:racket "racket-impl.rkt" #:javascript ("js-impl.js") #:provided-values (resource->url))
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/resource/runtime.rkt
racket
#lang s-exp "../lang/js/js.rkt" (require "structs.rkt") (declare-implementation #:racket "racket-impl.rkt" #:javascript ("js-impl.js") #:provided-values (resource->url))
01bfd5ee4c528f2e73e77df04995f523ae6c7a99009a544d225c1bb4dc3d1d67
elaforge/karya
TrackTree.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt module Ui.TrackTree where import qualified Data.List as List import qualified Data.Map as Map import qualified Data.Set as Set import qualified Data.Traversable as Traversable import qual...
null
https://raw.githubusercontent.com/elaforge/karya/de1b6e8cb0a17870801cc4dd49de8de62eb6c5fe/Ui/TrackTree.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | This is like 'parents_children_of', but only the children, and it doesn't include the given TrackId. | Combine the skeleton with the tracks to create a TrackTree. away. But that would mean redoing all th...
Copyright 2013 module Ui.TrackTree where import qualified Data.List as List import qualified Data.Map as Map import qualified Data.Set as Set import qualified Data.Traversable as Traversable import qualified Data.Tree as Tree import qualified Util.Pretty as Pretty import qualified Util.Trees as Trees import quali...
a1f15a037b6818c00ab2703e2a56c325e88bfb9c493dd3728fe577f8a257ec7e
vbmithr/ocaml-text
regexp.ml
* regexp.ml * --------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of ocaml - text . * regexp.ml * --------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of ocaml-text. *) let digit3 = <:re< ["0".."9"]{1-3} >> let (...
null
https://raw.githubusercontent.com/vbmithr/ocaml-text/631d2dadbe73477e085490c70c8c4a3116ddc2ab/examples/regexp.ml
ocaml
* regexp.ml * --------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of ocaml - text . * regexp.ml * --------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of ocaml-text. *) let digit3 = <:re< ["0".."9"]{1-3} >> let (...
02399f5b823617b4858bbbd37b711855283973c8e81d9242b051fea4018775e8
racket/gui
editor-autoload.rkt
#lang racket/unit (require "sig.rkt" "editor-sig.rkt" "../preferences.rkt" "focus-table.rkt" string-constants mred/mred-sig racket/class racket/match file/sha1) (import mred^ [prefix frame: framework:frame^] [prefix editor: edit...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/framework/private/editor-autoload.rkt
racket
open-dialogs : hash[tlw -o> (cons/c dialog boolean)] the dialogs that are currently being shown, paired with a boolean that indicates if the initial dialog has a checkbox editors where we are waiting for a reply from the user invariant: (hash-ref pending-editors tlw '()) = (cons ed eds) ⟺ (hash-ref open-di...
#lang racket/unit (require "sig.rkt" "editor-sig.rkt" "../preferences.rkt" "focus-table.rkt" string-constants mred/mred-sig racket/class racket/match file/sha1) (import mred^ [prefix frame: framework:frame^] [prefix editor: edit...
2a06c9cf73198fb11b1b953c15b4b30aac0a45efeae53ba26fe4a699d86d1660
yuce/teacup
teacup_utils.erl
Copyright ( c ) 2016 , < > . % All rights reserved. % Redistribution and use in source and binary forms, with or without % modification, are permitted provided that the following conditions are % met: % * Redistributions of source code must retain the above copyright % notice, this list of conditions and the f...
null
https://raw.githubusercontent.com/yuce/teacup/2ab8a3c09b0dc44190c09ff7681bfe7fa8c88506/src/teacup_utils.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in...
Copyright ( c ) 2016 , < > . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , THEORY OF...
ef88f330a7c274ca32c3a112a5ec84ea0b644c14ca93527dfc7a599367605bb8
erkin/gophwr
main.rkt
#lang racket/base (require racket/cmdline) (require (only-in openssl ssl-available? ssl-load-fail-reason)) (require "const.rkt" "config.rkt" "window.rkt") (define addresses (command-line #:program project-name #:once-each (("--ssl" "--tls") "Start with TLS mode enab...
null
https://raw.githubusercontent.com/erkin/gophwr/b4001202fa001fe0b486cb756bc9681f1880dc8f/src/main.rkt
racket
List of arguments to navigate to at startup. The reason we do it with a list is to be able to handle multiple addresses as separate tabs in the future. Go to homepage if no argument is given.
#lang racket/base (require racket/cmdline) (require (only-in openssl ssl-available? ssl-load-fail-reason)) (require "const.rkt" "config.rkt" "window.rkt") (define addresses (command-line #:program project-name #:once-each (("--ssl" "--tls") "Start with TLS mode enab...
fb3e176d867842ea2c230e8dab7be4cab4cc8185934c75b51df0f5af774f2a71
mstksg/backprop-learn
State.hs
# LANGUAGE ApplicativeDo # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplic...
null
https://raw.githubusercontent.com/mstksg/backprop-learn/59aea530a0fad45de6d18b9a723914d1d66dc222/src/Backprop/Learn/Model/State.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE PatternSynonyms # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeInType # # LANGUAGE TypeOperators # * To and from statelessness * Manipulate model states | Make a model stateless by converting the state to a...
# LANGUAGE ApplicativeDo # # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Backprop.Learn.Model.State ( trainState, deState, deState...
9f95ec956f9391243a21f770bbcbbd9bd2b28aab2f27ac138f67a5bd52c5552b
ruricolist/serapeum
hooks.lisp
(in-package #:serapeum) (defvar *hook* nil "The hook currently being run.") (defgeneric add-hook (hook fn &key append) (:documentation "Add FN to the value of HOOK.") (:method ((hook symbol) fn &key append) (declare (type (or function symbol) fn)) (synchronized (hook) (if (not append) (p...
null
https://raw.githubusercontent.com/ruricolist/serapeum/d98b4863d7cdcb8a1ed8478cc44ab41bdad5635b/hooks.lisp
lisp
(in-package #:serapeum) (defvar *hook* nil "The hook currently being run.") (defgeneric add-hook (hook fn &key append) (:documentation "Add FN to the value of HOOK.") (:method ((hook symbol) fn &key append) (declare (type (or function symbol) fn)) (synchronized (hook) (if (not append) (p...
a1ec9b6e0d8c4f76e90d1d043959cbfdbacdd5d36cdbd36fbb0f9469ce4e9bb8
mirage/mirage
config_dash_in_name.ml
open Mirage let main = main "App" job let key = let doc = Key.Arg.info ~doc:"How to say hello." [ "hello" ] in Key.(create "hello" Arg.(opt string "Hello World!" doc)) let () = register ~keys:[ Key.v key ] ~src:`None "noop-functor.v0" [ main ]
null
https://raw.githubusercontent.com/mirage/mirage/662bdef6e0cf3ded5ced597f0fa517542873c6db/test/mirage/query/config_dash_in_name.ml
ocaml
open Mirage let main = main "App" job let key = let doc = Key.Arg.info ~doc:"How to say hello." [ "hello" ] in Key.(create "hello" Arg.(opt string "Hello World!" doc)) let () = register ~keys:[ Key.v key ] ~src:`None "noop-functor.v0" [ main ]
dd6c3a7f68fb9df54f6a5a60aae5368a98aa0acce43a7506cfb8ae9945eb0096
robertmeta/cowboy-examples
hello_world_chunked_handler.erl
-module(hello_world_chunked_handler). -export([init/3, handle/2, terminate/2]). init({tcp, http}, Req, _Opts) -> {ok, Req, undefined_state}. handle(Req, State) -> {ok, Reply} = cowboy_http_req:chunked_reply(200, Req), cowboy_http_req:chunk("Hello\r\n", Reply), timer:sleep(1000), cowboy_http_req:ch...
null
https://raw.githubusercontent.com/robertmeta/cowboy-examples/d03c289c9fb0d750eca11e3f1671e74d1841bd09/apps/hello_world_chunked/src/hello_world_chunked_handler.erl
erlang
-module(hello_world_chunked_handler). -export([init/3, handle/2, terminate/2]). init({tcp, http}, Req, _Opts) -> {ok, Req, undefined_state}. handle(Req, State) -> {ok, Reply} = cowboy_http_req:chunked_reply(200, Req), cowboy_http_req:chunk("Hello\r\n", Reply), timer:sleep(1000), cowboy_http_req:ch...
1a99a9869a6df9ea11d9458c0deca0dc734104d0d09d9ef6c081340244a0e234
rabbitmq/rabbitmq-mochiweb
rabbit_web_dispatch_util.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 WARRANTY OF ...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-mochiweb/4dfbdd9b39e5c7fef64c230562305eead0c61973/src/rabbit_web_dispatch_util.erl
erlang
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 / 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 Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is VMware , Inc. Copyright ( c ) 2010 - 2013 VMware , Inc. All rights reserved . -module(rabbi...
426851378fa9d54c5d6788a7583538cd4a38e7b35f0b874200a38fab68d938cb
tatut/ripley
main.clj
(ns filetree.main (:require [org.httpkit.server :as server] [compojure.core :refer [routes GET]] [ripley.html :as h] [ripley.live.context :as context] [ripley.live.source :as source] [ripley.live.protocols :as p] [ripley.js :as js] [c...
null
https://raw.githubusercontent.com/tatut/ripley/a934cb13f4ddac22e39b71c0bab79bbdaeef952d/examples/filetree/src/filetree/main.clj
clojure
Some file utilities UI components Expand all paths and parents that contain matching files
(ns filetree.main (:require [org.httpkit.server :as server] [compojure.core :refer [routes GET]] [ripley.html :as h] [ripley.live.context :as context] [ripley.live.source :as source] [ripley.live.protocols :as p] [ripley.js :as js] [c...
6d97ead2cf4a0fd350b038b6bc6f65cc2f3ac924723473329d5a2b7543ae5d12
clojure/tools.analyzer
add_binding_atom.clj
Copyright ( c ) , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clojure/tools.analyzer/5d1d0dcf3dfe693e71ef36a44f50d4aa944dc65f/src/main/clojure/clojure/tools/analyzer/passes/add_binding_atom.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , Rich Hickey & contributors . (ns clojure.tools.analyzer.passes.add-binding-atom (:require [clojure.tools.analyzer.ast :refer [prewalk]] [clojure.tools.analyzer.passes.uniquify :refer [uniquify-locals]])) (defn add-binding-atom "Adds an atom-backed-map to every local binding,the...
13cd956b25472768c4b60926c758dea1411332e22a1eb406a653caa92b17273b
racket/redex
binding-forms-test.rkt
#lang racket (module+ test) (require rackunit) (require redex/reduction-semantics) (check-equal? (term (asdf«5000» a«1» b«1a1» c«1☺» c«1☹»)) '( asdf«5000☺» a«1☺» b«1a1» c«1☹» c«1☹☺»)) (define (all-distinct? . lst) (equal? lst (remove-duplicates lst))) (define-language lc-withou...
null
https://raw.githubusercontent.com/racket/redex/51df9c14a820a3eaa111b330ec612d8eb63e5ea9/redex-test/redex/tests/binding-forms-test.rkt
racket
put the wrong behavior in the cache... make sure cache doesn't leak between languages test that it's not just the top-level binding form that gets freshened, when we're opening naively-written substitution (should be capture-avoiding, thanks to #:binding-forms) == more complex stuff == it would be nice if this ga...
#lang racket (module+ test) (require rackunit) (require redex/reduction-semantics) (check-equal? (term (asdf«5000» a«1» b«1a1» c«1☺» c«1☹»)) '( asdf«5000☺» a«1☺» b«1a1» c«1☹» c«1☹☺»)) (define (all-distinct? . lst) (equal? lst (remove-duplicates lst))) (define-language lc-withou...
d84eb8748700058801e0f262cb2cc22c4065cc72a3bebaa3858a2fed59e2ad98
winterland1989/magic-haskell
Calculator.hs
# LANGUAGE FlexibleContexts # import Control.Monad.State.Strict import Control.Monad.Writer.Strict import Control.Monad.Trans import Control.Monad import Text.Read (readMaybe) calculator :: WriterT String (StateT Double IO) () calculator = do result <- get liftIO $ print result (op:input) <- liftIO getLin...
null
https://raw.githubusercontent.com/winterland1989/magic-haskell/027362d7feb175b10eafa6f12873009ae7e0fb57/code/Calculator.hs
haskell
# LANGUAGE FlexibleContexts # import Control.Monad.State.Strict import Control.Monad.Writer.Strict import Control.Monad.Trans import Control.Monad import Text.Read (readMaybe) calculator :: WriterT String (StateT Double IO) () calculator = do result <- get liftIO $ print result (op:input) <- liftIO getLin...
81ceb9022243cf53275cdcaf117b69eac1096cf2e9fcb6441f3ceb0cf97e5c24
symbiont-io/detsys-testkit
Random.hs
module StuntDouble.Random ( Seed , RandomInterval , makeSeed , interval , exponential , add , detRandomInterval , isLessThan ) where import Data.Fixed (mod') import System.Random ------------------------------------------------------------------------ newtype Seed = Seed StdGen instance RandomGe...
null
https://raw.githubusercontent.com/symbiont-io/detsys-testkit/930edda1ac10feaa7054c25f9d28326a236f2be5/src/runtime-prototype/src/StuntDouble/Random.hs
haskell
----------------------------------------------------------------------
module StuntDouble.Random ( Seed , RandomInterval , makeSeed , interval , exponential , add , detRandomInterval , isLessThan ) where import Data.Fixed (mod') import System.Random newtype Seed = Seed StdGen instance RandomGen Seed where split (Seed g) = let (g', g'') = split g in (Seed g', Seed...
7cd654afbf426a3891216eeb876afedf33add7b2d5a8138d35ff306d66c40f40
97jaz/gregor
clock.rkt
#lang racket/base (require racket/contract/base "generics.rkt" "moment.rkt" "datetime.rkt" "date.rkt" "time.rkt") (define (now/moment #:tz [tz (current-timezone)]) (posix->moment ((current-clock)) tz)) (define (now/moment/utc) (now/moment #:tz "Etc/UTC")) (define (no...
null
https://raw.githubusercontent.com/97jaz/gregor/91d71c6082fec4197aaf9ade57aceb148116c11c/gregor-lib/gregor/private/clock.rkt
racket
#lang racket/base (require racket/contract/base "generics.rkt" "moment.rkt" "datetime.rkt" "date.rkt" "time.rkt") (define (now/moment #:tz [tz (current-timezone)]) (posix->moment ((current-clock)) tz)) (define (now/moment/utc) (now/moment #:tz "Etc/UTC")) (define (no...
278ccdb7d89ab6fcc982a2820baee182bb74928d2696eb08e5675dd8e991c53e
project-oak/hafnium-verification
QualifiedCppName.mli
* Copyright ( c ) Facebook , Inc. and its 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) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/IR/QualifiedCppName.mli
ocaml
* empty qualified name * attempts to parse the argument into a list::of::possibly::templated<T>::qualifiers * returns qualified name as a string with "::" as a separator between qualifiers * append qualifier to the end (innermost scope) of the qualified name * returns last (innermost scope) qualifier and qualified ...
* Copyright ( c ) Facebook , Inc. and its 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) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
02d64304786f99ab3ec442bb9320240e2cb7506fce6cce046acea21b802948fe
CSCfi/rems
organization.cljs
(ns rems.administration.organization (:require [clojure.string :as str] [re-frame.core :as rf] [rems.administration.administration :as administration] [rems.administration.components :refer [inline-info-field]] [rems.administration.status-flags :as status-flags] ...
null
https://raw.githubusercontent.com/CSCfi/rems/2865219d752be85c3d5073e4e311ecec2e81ac25/src/cljs/rems/administration/organization.cljs
clojure
looks good when empty
(ns rems.administration.organization (:require [clojure.string :as str] [re-frame.core :as rf] [rems.administration.administration :as administration] [rems.administration.components :refer [inline-info-field]] [rems.administration.status-flags :as status-flags] ...
ebbb95d235929d8fdfdadf393b57029eda881694bd5464eb7b2af4d0918dcf0d
rabbitmq/rabbitmq-common
mirrored_supervisor.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2011 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(mirrored_supervisor). pg2 is deprecate...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-common/67c4397ffa9f51d87f994aa4db4a68e8e95326ab/src/mirrored_supervisor.erl
erlang
Mirrored Supervisor =================== This module implements a new type of supervisor. It acts like a normal supervisor, but at creation time you also provide the name of a process group to join. All the supervisors within the process group act like a single large distributed supervisor: supervisor withi...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2011 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(mirrored_supervisor). pg2 is deprecated in O...
95ebbc1c256c67a1514496f92139b0a7143f4d9e9a14eee3e14c5a6fe9e8cf2f
qiao/sicp-solutions
2.58.scm
(define (deriv exp var) (cond ((number? exp) 0) ((variable? exp) (if (same-variable? exp var) 1 0)) ((sum? exp) (make-sum (deriv (addend exp) var) (deriv (augend exp) var))) ((product? exp) (make-sum (make-product (multiplier exp) ...
null
https://raw.githubusercontent.com/qiao/sicp-solutions/a2fe069ba6909710a0867bdb705b2e58b2a281af/chapter2/2.58.scm
scheme
(define (deriv exp var) (cond ((number? exp) 0) ((variable? exp) (if (same-variable? exp var) 1 0)) ((sum? exp) (make-sum (deriv (addend exp) var) (deriv (augend exp) var))) ((product? exp) (make-sum (make-product (multiplier exp) ...
99635f788601a0838b219c5f6547f2b8f1b8e02e1a3ba2820d84e28ec4348547
maximedenes/native-coq
goptions.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/library/goptions.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** This module manages customization p...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Uti...
888891732b40245a50b8abc19b1eba788628e25f7ed32148f0ec9d78a19aeaa7
LeiWangHoward/Common-Lisp-Playground
trie_lw.lisp
(defpackage "trie" (:use "common-lisp") (:export "trie" "add-word" "mapc-trie" "read-words" "subtrie" "trie-count" "trie-word") (in-package trie) (defclass trie () ((value :initform nil :accessor trie-value) (branches :initform (make-hash-table) :accessor trie-branches))) ...
null
https://raw.githubusercontent.com/LeiWangHoward/Common-Lisp-Playground/4130232954f1bbf8aa003d856ccb2ab382da0534/croosword-boggles/trie_lw.lisp
lisp
(defstruct trie (b(make-hash-table)))
(defpackage "trie" (:use "common-lisp") (:export "trie" "add-word" "mapc-trie" "read-words" "subtrie" "trie-count" "trie-word") (in-package trie) (defclass trie () ((value :initform nil :accessor trie-value) (branches :initform (make-hash-table) :accessor trie-branches))) ...
e3b74564336eaea6dd2235a6c8ec04061226af0e377063a57c1735dbb158fdd8
ribelo/danzig
danzig_test.cljc
(ns ribelo.danzig-test (:require [ribelo.danzig :as dz :refer [=>>]] #?(:clj [clojure.test :as t] :cljs [cljs.test :as t :include-macros true]))) (comment (def data [0 1 2])) (t/deftest comp-some (let [data [0 1 2]] (t/is (= [1 2 3] (into [] (dz/comp-some (map inc) (...
null
https://raw.githubusercontent.com/ribelo/danzig/7936688d033b4d09f5fa6dfebda2f402e458592c/test/ribelo/danzig_test.cljc
clojure
(ns ribelo.danzig-test (:require [ribelo.danzig :as dz :refer [=>>]] #?(:clj [clojure.test :as t] :cljs [cljs.test :as t :include-macros true]))) (comment (def data [0 1 2])) (t/deftest comp-some (let [data [0 1 2]] (t/is (= [1 2 3] (into [] (dz/comp-some (map inc) (...
8986a3bfdb06865da8f48cecd7ef08570be66a613a7f26a6cadcf2a983b74989
exercism/haskell
Binary.hs
{-# LANGUAGE BangPatterns #-} module Binary (toDecimal) where import Control.Monad (foldM) import Data.Maybe (fromMaybe) toDecimal :: String -> Int toDecimal = fromMaybe 0 . foldM go 0 where go !n c = (n * 2 +) `fmap` toDigit c toDigit '0' = Just 0 toDigit '1' = Just 1 toDigit _ = Nothing
null
https://raw.githubusercontent.com/exercism/haskell/ae17e9fc5ca736a228db6dda5e3f3b057fa6f3d0/exercises/practice/binary/.meta/examples/success-standard/src/Binary.hs
haskell
# LANGUAGE BangPatterns #
module Binary (toDecimal) where import Control.Monad (foldM) import Data.Maybe (fromMaybe) toDecimal :: String -> Int toDecimal = fromMaybe 0 . foldM go 0 where go !n c = (n * 2 +) `fmap` toDigit c toDigit '0' = Just 0 toDigit '1' = Just 1 toDigit _ = Nothing
2e41e62492f43c01e8d59ded6b189022199064d9f31f65a830dd00d2092e26f4
oklm-wsh/MrMime
msgID.ml
type local = Rfc822.local type word = Rfc822.word type domain = Rfc822.domain type msg_id = Rfc822.msg_id let pp = Format.fprintf let pp_lst ~sep pp_data fmt lst = let rec aux = function | [] -> () | [ x ] -> pp_data fmt x | x :: r -> pp fmt "%a%a" pp_data x sep (); aux r in aux lst let pp_local =...
null
https://raw.githubusercontent.com/oklm-wsh/MrMime/4d2a9dc75905927a092c0424cff7462e2b26bb96/lib/msgID.ml
ocaml
type local = Rfc822.local type word = Rfc822.word type domain = Rfc822.domain type msg_id = Rfc822.msg_id let pp = Format.fprintf let pp_lst ~sep pp_data fmt lst = let rec aux = function | [] -> () | [ x ] -> pp_data fmt x | x :: r -> pp fmt "%a%a" pp_data x sep (); aux r in aux lst let pp_local =...
35d8955548393ad7fe70280a949de221eef9b3bb2e95de345ddfffeadc908fe0
dmitryvk/sbcl-win32-threads
life.lisp
;;;; This file contains the lifetime analysis phase in the compiler. This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The softw...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/life.lisp
lisp
This file contains the lifetime analysis phase in the compiler. 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. utilities the CURRENT-CONFLICT to point to the new conflict. Since we scan o...
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 into the (in-package "SB!C") Link in a GLOBAL - CONFLICTS structure for TN in BLOCK with NUMBER as the LTN number . The conflic...
83c92cb0f8b7b5935cdd64749894881edd3d71e0d4928ef64dd56d1f717e884f
REMath/mit_16.399
baexp.mli
(* baexp.mli *) open Abstract_Syntax open Avalues open Aenv (* backward evaluation of arithmetic operations *) val b_aexp : aexp -> Aenv.t -> Avalues.t -> Aenv.t
null
https://raw.githubusercontent.com/REMath/mit_16.399/3f395d6a9dfa1ed232d307c3c542df3dbd5b614a/project/Initialization-Simple-Sign-FB-LDI-BA/baexp.mli
ocaml
baexp.mli backward evaluation of arithmetic operations
open Abstract_Syntax open Avalues open Aenv val b_aexp : aexp -> Aenv.t -> Avalues.t -> Aenv.t
2259864b8b65a8c26b2eba70fd53f58d51fee60e49c12452f2563f3caeb954da
jcclinton/wow-emulator
spell_callbacks.erl
This is a World of Warcraft emulator written in erlang , supporting client 1.12.x %% Copyright ( C ) 2014 < jamieclinton.com > %% %% 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 Found...
null
https://raw.githubusercontent.com/jcclinton/wow-emulator/21bc67bfc9eea131c447c67f7f889ba040dcdd79/src/handlers/spell_callbacks.erl
erlang
This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU G...
This is a World of Warcraft emulator written in erlang , supporting client 1.12.x Copyright ( C ) 2014 < jamieclinton.com > it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy...
861c9a5c9cfebcd6702758d471035dbaa985e712cf53841a38c501be453d0f33
NetComposer/nksip
uas_test_server2.erl
%% ------------------------------------------------------------------- %% %% uas_test: Basic Test Suite %% Copyright ( c ) 2013 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License ....
null
https://raw.githubusercontent.com/NetComposer/nksip/7fbcc66806635dc8ecc5d11c30322e4d1df36f0a/test/callbacks/uas_test_server2.erl
erlang
------------------------------------------------------------------- uas_test: Basic Test Suite Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific...
Copyright ( c ) 2013 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(uas_test_server2). ...
b2efa6232c63b83bc43f46cd5f4bfc212161aed7d70ad2cbdb59dd080bc1ebb2
kadena-io/pact
Bench.hs
module Main where import qualified Pact.Bench as Bench main :: IO () main = Bench.main
null
https://raw.githubusercontent.com/kadena-io/pact/e2f3dd1fd1952bb4f736042083769b52dbb2a819/executables/Bench.hs
haskell
module Main where import qualified Pact.Bench as Bench main :: IO () main = Bench.main
b4108de5353029fb5ad4db06ccf2384ea2caf10ed16f5cb550c66d2190ff06cc
fredfeng/CS162
eval.ml
open Ast (** Variable set. Based on OCaml standard library Set. *) module VarSet = Set.Make (String) (* Helper function for parsing an expression. Useful for testing. *) let parse (s: string) : Ast.expr = Parser.main Scanner.token (Lexing.from_string s) (*************************************************************...
null
https://raw.githubusercontent.com/fredfeng/CS162/3e868a98e2b2b1ffc749a46a98b62df75ca4d46c/homework/hw4/eval.ml
ocaml
* Variable set. Based on OCaml standard library Set. Helper function for parsing an expression. Useful for testing. ******************************************************************| |********************** Interpreter ****************************| |**************************************************************...
open Ast module VarSet = Set.Make (String) let parse (s: string) : Ast.expr = Parser.main Scanner.token (Lexing.from_string s) exception Stuck of string let im_stuck msg = raise (Stuck msg) let todo () = failwith "TODO" let assert_value e = if is_value e then () else im_stuck (string_of_expr e ^ " is not a va...