_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
86cda1ff0f09d5d1e82797fe782303d339e7b04919bd842f0508f607d66e78ed
2600hz/kazoo
kazoo_modb_migrate_maintenance.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz @doc The Great Kazoo Migration ( TM ) 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...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_modb/src/kazoo_modb_migrate_maintenance.erl
erlang
----------------------------------------------------------------------------- @end ----------------------------------------------------------------------------- ============================================================================= ============================================================================= -...
( C ) 2010 - 2020 , 2600Hz @doc The Great Kazoo Migration ( TM ) This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kazoo_modb_migrate_maintenance). -export([migrate/0 ,migr...
bec08a67d3aecc0fa96284fb58678ed75acf02c8675fe542cbc2d3cbb7e1a124
owlbarn/light_actor
actor_book.ml
* Light Actor - Parallel & Distributed Engine of Owl System * Copyright ( c ) 2016 - 2019 < > * Light Actor - Parallel & Distributed Engine of Owl System * Copyright (c) 2016-2019 Liang Wang <> *) type t = (string, node) Hashtbl.t and node = { mutable uuid : string; mutable addr : string; mutable...
null
https://raw.githubusercontent.com/owlbarn/light_actor/d5ca76db0a58c61cd0ba019be458dada3ce9c36a/src/core/actor_book.ml
ocaml
* Light Actor - Parallel & Distributed Engine of Owl System * Copyright ( c ) 2016 - 2019 < > * Light Actor - Parallel & Distributed Engine of Owl System * Copyright (c) 2016-2019 Liang Wang <> *) type t = (string, node) Hashtbl.t and node = { mutable uuid : string; mutable addr : string; mutable...
eaf5e91e09a316ca83fd33fcdc86d2c1fdc34f007531f6521d7201571c4c5e04
avsm/platform
opamUpdate.mli
(**************************************************************************) (* *) Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA (* ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/opam-client.2.0.5%2Bdune/src/state/opamUpdate.mli
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA GNU Lesser General Public License version 2.1 , with the special open OpamTypes open OpamStateTypes val repository: rw repos_state -> repository -> ('a r...
c84675560e716ed86b3696663eb0dd54d6627ccb5966251453c9c05ba00ae840
Gopiandcode/guile-ocaml
guile.mli
GNU ( C ) 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 your option ) any later version . This program is distributed in the h...
null
https://raw.githubusercontent.com/Gopiandcode/guile-ocaml/247adf5a6adbbfd85696498b390167a9faa77779/lib/guile.mli
ocaml
* [with_continuation_barrier f] runs the function [f] preventing any non-local control flow beyond the current calling context. * [boolean_p b] returns #t if [b] is a boolean and #f otherwise. * [is_bool b] returns true if [b] is a boolean and false otherwise. * [not b] negates the boolean [b]. * [number_p v] re...
GNU ( C ) 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 your option ) any later version . This program is distributed in the h...
2fe464ea0a0962cc473c0962b6e216bb34e367a1ef3964f302d12fb1dabc5524
mefyl/dune-cache-daemon
daemon.ml
module Evt = Event module Utils = Utils module Log = Dune_util.Log open Stdune open Utils open Cache.Messages open Pp.O type 'a socket = ('a, Async.Socket.Address.Unix.t) Async.Socket.t type error = [ `Local_cache_error of string | `Fatal of string ] type client = { cache : Cache.Local.t ; commits : Digest...
null
https://raw.githubusercontent.com/mefyl/dune-cache-daemon/f6debe2598aaa97e31e37c93b3aa2fbff55f3137/src/sietch/daemon.ml
ocaml
FIXME: Hence we should probably lock.
module Evt = Event module Utils = Utils module Log = Dune_util.Log open Stdune open Utils open Cache.Messages open Pp.O type 'a socket = ('a, Async.Socket.Address.Unix.t) Async.Socket.t type error = [ `Local_cache_error of string | `Fatal of string ] type client = { cache : Cache.Local.t ; commits : Digest...
9f025d29418821f3147a458bf03df88923eac615fd0d60a95ba602aef4678785
TrustInSoft/tis-interpreter
cg.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/callgraph/cg.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
4e46468090412f3c4fe982cb0cb6edb8ac11096dc93993871f6d1297e4f22646
arttuka/reagent-material-ui
spatial_audio_off_rounded.cljs
(ns reagent-mui.icons.spatial-audio-off-rounded "Imports @mui/icons-material/SpatialAudioOffRounded 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 spatial-...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/spatial_audio_off_rounded.cljs
clojure
(ns reagent-mui.icons.spatial-audio-off-rounded "Imports @mui/icons-material/SpatialAudioOffRounded 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 spatial-...
e57e2de9e019ccd39ccab18e0f6ddec3b300b69f8218c78ec838c05a353e64fe
timbertson/vdoml
ui_.ml
open Js_of_ocaml open Js_of_ocaml_lwt open Log_ open Vdom_ open Ui_main_ open Util_ (* View module hides internals of `view` function, ensuring * all view invocations are cached *) module View : sig type ('state, 'message) t val init : skip: ('state -> 'state -> bool) -> ('state -> 'message Html.html) -> ...
null
https://raw.githubusercontent.com/timbertson/vdoml/fcbf81e89df989206bdad4a92327e593078525b2/src/ui_.ml
ocaml
View module hides internals of `view` function, ensuring * all view invocations are cached counter: int; * Top-level user-interface functionality * Assign an identity to a node. This will be used by the diffing algorithm to track potentially-reordered nodes across susequent renders. * Emit an update messag...
open Js_of_ocaml open Js_of_ocaml_lwt open Log_ open Vdom_ open Ui_main_ open Util_ module View : sig type ('state, 'message) t val init : skip: ('state -> 'state -> bool) -> ('state -> 'message Html.html) -> ('state, 'message) t val never : 'state -> 'state -> bool val mutate_view : ('state, 'mes...
7a476618e9018c8b39cfc1abed9a4b485d138a15c7e82063d658378ea147b0dc
potatosalad/erlang-jose
jose_jwk_set.erl
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- %% vim: ts=4 sw=4 ft=erlang noet %%%------------------------------------------------------------------- @author < > 2014 - 2022 , %%% @doc %%% %%% @end Created : 21 Jul 2015 by < > %%%---------------------------...
null
https://raw.githubusercontent.com/potatosalad/erlang-jose/dbc4074066080692246afe613345ef6becc2a3fe/src/jwk/jose_jwk_set.erl
erlang
vim: ts=4 sw=4 ft=erlang noet ------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API ==================================================================== API functions ===================================================...
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- @author < > 2014 - 2022 , Created : 21 Jul 2015 by < > -module(jose_jwk_set). -include("jose_jwk.hrl"). -export([from_map/1]). -export([to_map/2]). from_map(F=#{ <<"keys">> := Keys }) -> {[jose_jwk:from_map...
fb4c862e5c7cc97088494da856fbe01f6db5442616732deda1679f99dbdfc716
csabahruska/jhc-components
Instances.hs
----------------------------------------------------------------------------- -- | -- Module : Control.Monad.Instances Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability : por...
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/lib/haskell-extras/Control/Monad/Instances.hs
haskell
--------------------------------------------------------------------------- | Module : Control.Monad.Instances License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : portable 'Functor' instances for @(,) a@ and @'Either' a@.
Copyright : ( c ) The University of Glasgow 2001 ' Functor ' and ' ' instances for > ) r@ and module Control.Monad.Instances (Functor(..),Monad(..)) where instance Functor ((->) r) where fmap = (.) instance Monad ((->) r) where return = const f >>= k = \ r -> k (f r) r instance Fu...
f48154e0b78925262b6a2f3edf5d677f8e68514083475e3f7d08cd5d32be8c4e
WeiDUorg/weidu
arch_unix.ml
This file has been edited by , a.k.a . , starting from 18 December 2012 and WeiDU 231.06 . starting from 18 December 2012 and WeiDU 231.06. *) Note added due to LGPL terms . This file was edited by , AKA The Bigg , starting from 6 November 2005 . All changes for this file are listed in ...
null
https://raw.githubusercontent.com/WeiDUorg/weidu/9b984cb7153c4ff83fb23feff06a6d1ecd5e5761/src/arch_unix.ml
ocaml
no slash removal: helps make shell scripts work better
This file has been edited by , a.k.a . , starting from 18 December 2012 and WeiDU 231.06 . starting from 18 December 2012 and WeiDU 231.06. *) Note added due to LGPL terms . This file was edited by , AKA The Bigg , starting from 6 November 2005 . All changes for this file are listed in ...
d2e09b3e8bc803e195e8e1328933f93c11c6922a024bba9770fb7d509aefa9d8
benoitc/hackney
hackney_http_connect.erl
%%% -*- erlang -*- %%% This file is part of hackney released under the Apache 2 license . %%% See the NOTICE for more information. %%% Copyright ( c ) 2012 - 2014 < > %%% %%% -module(hackney_http_connect). -export([messages/1, connect/3, connect/4, recv/2, recv/3, send/2, setopts/2, controlling_proces...
null
https://raw.githubusercontent.com/benoitc/hackney/3e2b578d5d42534cc57f43749af6e8016f8e80fb/src/hackney_http_connect.erl
erlang
-*- erlang -*- See the NOTICE for more information. @doc Atoms used to identify messages in {active, once | true} mode. get the host and port to connect from the options filter connection options connect to the proxy, and upgrade the socket if needed. if we are connecting to a remote https source, we upgra...
This file is part of hackney released under the Apache 2 license . Copyright ( c ) 2012 - 2014 < > -module(hackney_http_connect). -export([messages/1, connect/3, connect/4, recv/2, recv/3, send/2, setopts/2, controlling_process/2, peername/1, close/1, shutdown/2, sockname/1]). -define(TIMEOUT...
c5a2d3f9aeeabf54620f3e373449ae3b86357772e18a16ac0367ad00b4cb066d
bobzhang/fan
compile_lex.mli
open Lexgen val output_entry: Locf.t -> (Astf.exp automata_entry * automata array) -> Astf.exp
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/cold/compile_lex.mli
ocaml
open Lexgen val output_entry: Locf.t -> (Astf.exp automata_entry * automata array) -> Astf.exp
6af949ef3aa0192b4ee5010dc72ae14a0f1ded8adb5ce2d52805e79cff6f3da4
mirage/irmin
atomic_write.ml
* Copyright ( c ) 2013 - 2022 < > * * 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...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/irmin-git/atomic_write.ml
ocaml
Make a best-effort attempt to check that the reference actually exists before [read]-ing it, since the [Error `Reference_not_found] case causes a spurious warning to be logged inside [ocaml-git]. We may still hit this case due to a race condition, but it's very unlikely.
* Copyright ( c ) 2013 - 2022 < > * * 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...
1500a6f16944e01bba969fac4f2ce189cae6f9a89df434d8bbf85ce2059187d7
agentm/project-m36
scripts.hs
read each .tutd file in the /scripts directory and execute it with the tutd interpreter import Test.HUnit import TutorialD.Interpreter.Import.TutorialD import System.Directory import Data.List (isSuffixOf) import System.Exit import qualified Data.Text as T import Text.URI testList :: IO Test testList = do let scri...
null
https://raw.githubusercontent.com/agentm/project-m36/57a75b35e84bebf0945db6dae53350fda83f24b6/test/scripts.hs
haskell
read each .tutd file in the /scripts directory and execute it with the tutd interpreter import Test.HUnit import TutorialD.Interpreter.Import.TutorialD import System.Directory import Data.List (isSuffixOf) import System.Exit import qualified Data.Text as T import Text.URI testList :: IO Test testList = do let scri...
e4246e7e0fd05cf38f5c328cecaa46ce0f430da3e0c2bb7580544b7ce31de651
factisresearch/mq-demo
Base.hs
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE BangPatterns #-} module Mgw.Util.ExitAction.Base ( ExitActionId, ExitActionBehavior, ExitActionDelay(..), ExitActionPriority(..) , registerExitAction, unregisterExitAction, runExitActions, withExitActions'' ...
null
https://raw.githubusercontent.com/factisresearch/mq-demo/0efa1991ca647a86a8c22e516a7a1fb392ab4596/server/src/lib/Mgw/Util/ExitAction/Base.hs
haskell
# LANGUAGE BangPatterns # 100ms using timeout currently doesn't work (hangs forever)
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # module Mgw.Util.ExitAction.Base ( ExitActionId, ExitActionBehavior, ExitActionDelay(..), ExitActionPriority(..) , registerExitAction, unregisterExitAction, runExitActions, withExitActions'' ) where #include "src/macro...
c5781402924263d33b35deef2fed66bc1bc37861c3e47156dc021058b006c6ed
Novus-School/novus
db.clj
(ns novus.conversation.db) (defn find-conversations-by-account-id []) (defn transact-message []) (defn transact-conversation []) (defn find-messages-by-conversation-id []) (defn read-messages [])
null
https://raw.githubusercontent.com/Novus-School/novus/c65b37a654173df52084253651edc87033409f4b/novus/src/main/novus/conversation/db.clj
clojure
(ns novus.conversation.db) (defn find-conversations-by-account-id []) (defn transact-message []) (defn transact-conversation []) (defn find-messages-by-conversation-id []) (defn read-messages [])
ba5da5798cc5b385a6162ef5f061c80af1af6b8b2cb0d94086f90de011a13ea2
spawnfest/eep49ers
ssl_app_env_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2019 - 2019 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/ssl/test/ssl_app_env_SUITE.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2019 - 2019 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ssl_app_env_SUITE). -behaviour(ct_suite). -include_lib("common_test/include/ct.hrl"). -include_lib("ssl/sr...
e562b49f5a3e3e5270d039058a54e2fa4a8034bbdd0d48f4391e44087f527d3c
SanderSpies/ocaml-gist
string_compat.ml
let capitalize_ascii = String.capitalize let lowercase_ascii = String.lowercase
null
https://raw.githubusercontent.com/SanderSpies/ocaml-gist/7dc229aebdf51310e8c7dae12df0cb55b5de5a32/ocaml_webworker/compat/4.02.3/string_compat.ml
ocaml
let capitalize_ascii = String.capitalize let lowercase_ascii = String.lowercase
0964cf024e1be0677c9cd9da5ad6f0dcebbe4a8052e01f802b2f1248fd383ecb
flavioc/cl-hurd
package.lisp
(defpackage #:translator-test (:use :cl :xlunit :hurd-common :flexi-streams :mach :hurd))
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/tests/package.lisp
lisp
(defpackage #:translator-test (:use :cl :xlunit :hurd-common :flexi-streams :mach :hurd))
0b748b55e811e74a25e5ffa139b0bdbf03924350d5359485e5fbc8b5c72222f5
koalaman/shellcheck
CFGAnalysis.hs
Copyright 2022 Vidar Holen This file is part of ShellCheck . ShellCheck 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...
null
https://raw.githubusercontent.com/koalaman/shellcheck/ae199edb680dd416790b7890fa52e64a11f2b4af/src/ShellCheck/CFGAnalysis.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE DeriveAnyClass, DeriveGeneric # There have been multiple bugs where bad caching caused oscillations. As a precaution, disable caching if there's this many iterations left. The number of cache entries to keep per node traceShowM log traceShowM log The result of the data flow anal...
Copyright 2022 Vidar Holen This file is part of ShellCheck . ShellCheck 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...
216320d41c77eba953977d46ddff22f530098e2bbb037b0d66ed137892d9d39f
lexi-lambda/hackett
typecheck.rkt
#lang curly-fn racket/base This module contains the core implementation of the typechecker . The typechecker ; operates using a mutable typechecker context implemented as a Racket parameter, which contains ; information about solutions for existing solver variables. ; ; The core typechecker implements typing subsu...
null
https://raw.githubusercontent.com/lexi-lambda/hackett/e90ace9e4a056ec0a2a267f220cb29b756cbefce/hackett-lib/hackett/private/typecheck.rkt
racket
operates using a mutable typechecker context implemented as a Racket parameter, which contains information about solutions for existing solver variables. The core typechecker implements typing subsumption rules and variable instantiation. Other and they provide the primary interface to the various typechecker func...
#lang curly-fn racket/base This module contains the core implementation of the typechecker . The typechecker functionality is deferred to the implementation site of forms . The functions that perform the actual process of type inference ( via recursive expansion ) are defined in / private / base , (require ...
a271161ae1d71004394e26225bc3bde1039de3ba77b46f1c60c4a9fd6528d008
RAttab/luger
luger_sup.erl
-module(luger_sup). -include("luger.hrl"). -export([start_link/0]). -behaviour(supervisor). -export([init/1]). %%----------------------------------------------------------------- %% API %%----------------------------------------------------------------- start_link() -> supervisor:start_link({local, ?MODULE}, ?M...
null
https://raw.githubusercontent.com/RAttab/luger/9f55c2f5c277ac8e00d9200381adcb1a2cfad97f/src/luger_sup.erl
erlang
----------------------------------------------------------------- API ----------------------------------------------------------------- ----------------------------------------------------------------- supervisor callbacks -----------------------------------------------------------------
-module(luger_sup). -include("luger.hrl"). -export([start_link/0]). -behaviour(supervisor). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). args() -> {ok, AppName} = application:get_env(luger, app_name), HostName = luger_utils:hostname(), MaxLen = case app...
dbc29b17263a659a8b4cd0b63cd7098ef1ad32b8709de6e1d4610d7550b232e4
patricoferris/jsoo-p5
constants.ml
let rgb = Sketch.get None "RGB" let hsb = Sketch.get None "HSB" let hsl = Sketch.get None "HSL"
null
https://raw.githubusercontent.com/patricoferris/jsoo-p5/743dccce67cd8d942e3028a526046f20c08306be/src/constants.ml
ocaml
let rgb = Sketch.get None "RGB" let hsb = Sketch.get None "HSB" let hsl = Sketch.get None "HSL"
658139620999d371a2eb5862e510449ac882a146242ad92c89744e84a7ee73ac
kelamg/HtDP2e-workthrough
ex304.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex304) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Abstraction/ex304.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex304) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/abstraction) (for/list ([i 2] [j '(a b...
4340a156514a05d902c5e5f0961cdf2b9a7508b30d6890a77a67b712ecea33d8
odis-labs/streaming
Stream_tests.ml
open Streaming module T = Nanotest module S = Stream let () = let verbose = true in let t = T.test T.int ~verbose in T.group "Stream.empty" [ t "empty length" ~actual:(S.len S.empty) ~expected:0; ]; let t = T.test T.(list int) ~verbose in T.group "Stream.single" [ t "same value" ~actual:(S.to_li...
null
https://raw.githubusercontent.com/odis-labs/streaming/62e9c494b501376924e38fb2db080fbc30ad594d/tests/Stream_tests.ml
ocaml
let t = T.test T.(pair (list char) (list int)) ~verbose in t "empty" ~expected:([], []) ~actual:begin end; end; end; ]; Results in infinite loop. Seems to be unavoidable. t "empty inner, infinite outer, take" ~expected:[] Results in infinite loop. Seems to be unavoidable. t "empty, take" ~exp...
open Streaming module T = Nanotest module S = Stream let () = let verbose = true in let t = T.test T.int ~verbose in T.group "Stream.empty" [ t "empty length" ~actual:(S.len S.empty) ~expected:0; ]; let t = T.test T.(list int) ~verbose in T.group "Stream.single" [ t "same value" ~actual:(S.to_li...
457e0e7f7eeab9b58688a7e0a26593138ec7a1e1c8ebcbf02ed7cfffb60e2b12
oriansj/mes-m2
as.scm
GNU --- Maxwell Equations of Software Copyright © 2016,2017,2018 Jan ( janneke ) Nieuwenhuizen < > ;;; This file is part of GNU . ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either ve...
null
https://raw.githubusercontent.com/oriansj/mes-m2/b44fbc976ae334252de4eb82a57c361a195f2194/module/mescc/i386/as.scm
scheme
you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Commentary: Code: signed ...
GNU --- Maxwell Equations of Software Copyright © 2016,2017,2018 Jan ( janneke ) Nieuwenhuizen < > This file is part of GNU . under the terms of the GNU General Public License as published by GNU is distributed in the hope that it will be useful , but You should have received a copy of the GNU General P...
630761693429ea6f5919bdc53ee7a39809b331adbeb2e90c5faaf474c6cec559
jaked/ocamljs
translcore.ml
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * This program is free software released under the QPL . * See LICENSE for more details . * * The Software is provided AS IS with NO WARRANTY OF ANY KIND , * INCLU...
null
https://raw.githubusercontent.com/jaked/ocamljs/378080ff1c8033bb15ed2bd29bf1443e301d7af8/src/jscomp/patches/3.11.1/translcore.ml
ocaml
********************************************************************* Objective Caml ...
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * This program is free software released under the QPL . * See LICENSE for more details . * * The Software is provided AS IS with NO WARRANTY OF ANY KIND , * INCLU...
f158017a4500cb38f4b9c10cfc94c7fea41ab0b0eeb509353942de97aa81f882
philnguyen/soft-contract
array-struct.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse) (only-in racket/fixnum fx+ fx*) (only-in "array-utils.rkt" array-shape-size check-array-shape-size check-array-shape next-indexes! unsafe-array-index->value-index) "data.rk...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/gradual-typing-benchmarks/synth/array-struct.rkt
racket
-- array-for-each -- array-struct This box's contents get replaced when the array we're constructing is made strict, so that the array stops referencing f. If we didn't do this, long chains of array computations would keep hold of references to all the intermediate procs, which is a memory leak. strict; that's ok...
#lang racket/base (require (for-syntax racket/base syntax/parse) (only-in racket/fixnum fx+ fx*) (only-in "array-utils.rkt" array-shape-size check-array-shape-size check-array-shape next-indexes! unsafe-array-index->value-index) "data.rk...
6074c9ef7c4ce50900d2cea2d5f4ec57997fb883c5e28b34111895a86f60498f
fakedata-haskell/fakedata
HarryPotter.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Faker.Provider.HarryPotter where import Config import Control.Monad.Catch import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Faker import...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/HarryPotter.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Provider.HarryPotter where import Config import Control.Monad.Catch import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Faker import Faker.Internal import Faker.Provid...
2cdc24bfe1908f09add4a66af38eef06ba6669904287ae80ea4b30a3f34aeddf
pcostanza/mop-features
reinit-finalize.lisp
(defclass test-class (standard-class) ()) (defmethod validate-superclass ((class test-class) (superclass standard-class)) t) (defvar *finalize-inheritance-count* 0) (defmethod finalize-inheritance :before ((class test-class)) (incf *finalize-inheritance-count*) (when (> *finalize-inher...
null
https://raw.githubusercontent.com/pcostanza/mop-features/a967752c885285b74473b940103f8cb2872aced8/tests/reinit-finalize.lisp
lisp
(defclass test-class (standard-class) ()) (defmethod validate-superclass ((class test-class) (superclass standard-class)) t) (defvar *finalize-inheritance-count* 0) (defmethod finalize-inheritance :before ((class test-class)) (incf *finalize-inheritance-count*) (when (> *finalize-inher...
bd0451ca3edc56aba70fcd923d919856c4a8e26c06774c9b15da3103ba81d633
bgamari/bayes-stack
DumpST.hs
{-# LANGUAGE OverloadedStrings #-} import Data.Monoid import Data.Foldable import Data.List import Data.Function (on) import Options.Applicative import qualified Data.Map as M import qualified Data.ByteString as BS import qualified Data.Text.Lazy.IO as TL import qual...
null
https://raw.githubusercontent.com/bgamari/bayes-stack/020df7bb7263104fdea254e57d6c7daf7806da3e/network-topic-models/DumpST.hs
haskell
# LANGUAGE OverloadedStrings #
import Data.Monoid import Data.Foldable import Data.List import Data.Function (on) import Options.Applicative import qualified Data.Map as M import qualified Data.ByteString as BS import qualified Data.Text.Lazy.IO as TL import qualified Data.Text.Lazy.Builder as TB ...
37ab761daf3c31654e7d28677d60f692623d8510b4f09ea2e4205bd8317569d8
bsansouci/bsb-native
discard_printf.ml
(***********************************************************************) (* *) (* ocamlbuild *) (* *) , , projet Galliu...
null
https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/ocamlbuild/discard_printf.ml
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . Original author : let discard_printf fmt = Forma...
11dd1696f861c3760d115046d1ec693aa77b1b7336ccc859a69c7e2c6e6fbb09
spawnfest/eep49ers
ssl_packet_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/ssl/test/ssl_packet_SUITE.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ssl_packet_SUITE). -behaviour(ct_suite). -include_lib("common_test/include/ct.hrl"). -export([all/0, ...
42f85aec54810f845bee0e0c7f22286e952bd5b32874247e3ae93e290f63f139
nuprl/gradual-typing-performance
trace.rkt
#lang typed/racket/base ;; Build a dynamic picture of a module graph. ;; ;; From the command-line: PROJECT - NAME ;; Prints out the number of calls across each boundary in the program. ;; ;; Calls/boundary is a coarse view of what this module provides. ;; A dynamic module graph has calls for each identifier. ...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/tools/summarize/trace.rkt
racket
Build a dynamic picture of a module graph. From the command-line: Prints out the number of calls across each boundary in the program. Calls/boundary is a coarse view of what this module provides. A dynamic module graph has calls for each identifier. Use the API to get them. (once we have an api) ==============...
#lang typed/racket/base PROJECT - NAME (provide ) (require gtp-summarize/modulegraph glob/typed trivial/regexp (only-in racket/string string-replace string-split) (only-in racket/file delete-directory/files) (only-in racket/port copy-port) (only-in racket/system system process) ) TODO (requi...
b531ba59fcdf0c524a163038d394ca4c796788e62b5a2bd62c752a90ca7facec
mzp/scheme-abc
cpool.ml
open Base open AbcType type namespace = [ `Namespace of string | `PackageNamespace of string | `PackageInternalNamespace of string | `ProtectedNamespace of string | `ExplicitNamespace of string | `StaticProtectedNamespace of string | `PrivateNamespace of string ] type namespace_set = namespace list type multiname ...
null
https://raw.githubusercontent.com/mzp/scheme-abc/2cb541159bcc32ae4d033793dea6e6828566d503/swflib/cpool.ml
ocaml
conversion assumption: - list has only unique element
open Base open AbcType type namespace = [ `Namespace of string | `PackageNamespace of string | `PackageInternalNamespace of string | `ProtectedNamespace of string | `ExplicitNamespace of string | `StaticProtectedNamespace of string | `PrivateNamespace of string ] type namespace_set = namespace list type multiname ...
28337f41f92392daa4fe3f33b04b1593f90b3a6ed9ab1ed7baf70ca42ea73f4e
EveryTian/Haskell-Codewars
valid-braces.hs
-- -braces module Codewars.Kata.Braces where validBraces :: String -> Bool validBraces xs = f xs "" f "" stack = null stack f (']':xs) stack = not (null stack) && head stack == '[' && f xs (tail stack) f ('}':xs) stack = not (null stack) && head stack == '{' && f xs (tail stack) f (')':xs) stack = not (null stack) &&...
null
https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/6kyu/valid-braces.hs
haskell
-braces
module Codewars.Kata.Braces where validBraces :: String -> Bool validBraces xs = f xs "" f "" stack = null stack f (']':xs) stack = not (null stack) && head stack == '[' && f xs (tail stack) f ('}':xs) stack = not (null stack) && head stack == '{' && f xs (tail stack) f (')':xs) stack = not (null stack) && head stack...
58c8ee806fbf2f383043fa55f59e02e1ce7b54c4c45aebd51416f9ddf06ffaaf
AdRoll/mero
mero_wrk_tcp_binary.erl
Copyright ( c ) 2014 , AdRoll %% 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 th...
null
https://raw.githubusercontent.com/AdRoll/mero/ed9d150ad38f1b61654d199f97531a016e450f35/src/mero_wrk_tcp_binary.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 ) 2014 , AdRoll THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLAR...
24da177aae0771bdc3029a9fc1b24afddfcc57005584b42d0217c536b1300c52
rowangithub/DOrder
append.ml
let rec append xs ys = match xs with | x::xs' -> x::(append xs' ys) | [] -> ys let main () = append [1;9;3] [4;5;2;6] let _ = main ()
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/reachability/append.ml
ocaml
let rec append xs ys = match xs with | x::xs' -> x::(append xs' ys) | [] -> ys let main () = append [1;9;3] [4;5;2;6] let _ = main ()
4cecb055dd3acb4c541f531a16886c30422e4f5ac521df9f6db3742816de162b
yogeshsajanikar/hspark
ReduceSpec.hs
# LANGUAGE TemplateHaskell # # LANGUAGE StaticPointers # module ReduceSpec where import Spark import qualified Data.Map as M import Data.List (sortBy) import Control.Distributed.Process import Control.Distributed.Static hiding (initRemoteTable) import Control.Distributed.Process.Closure import Control.Distributed.Pr...
null
https://raw.githubusercontent.com/yogeshsajanikar/hspark/43e150ec38a62be3d14a7072787d1a8992f1841e/test/ReduceSpec.hs
haskell
For output Key requires ordering Add the values to find the sum Generated inputs are in the same range, just return the same key Else, we should have been including hash
# LANGUAGE TemplateHaskell # # LANGUAGE StaticPointers # module ReduceSpec where import Spark import qualified Data.Map as M import Data.List (sortBy) import Control.Distributed.Process import Control.Distributed.Static hiding (initRemoteTable) import Control.Distributed.Process.Closure import Control.Distributed.Pr...
d0c66272602bdfb5fb11d1f7d4f35d0d6ee3b20a66800b4e45f1429314488493
sbcl/sbcl
early-globaldb.lisp
;;;; This file contains stuff that was split out from 'globaldb.lisp' ;;;; to satisfy build-order constraints. 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 relea...
null
https://raw.githubusercontent.com/sbcl/sbcl/3c2e45ddbdd9bf26959391d6f18600832a6be4cf/src/compiler/early-globaldb.lisp
lisp
This file contains stuff that was split out from 'globaldb.lisp' to satisfy build-order constraints. 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. Similar to FUNCTION, but the result type...
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-IMPL") if it is an object type , then the function returns exactly one (def!type sfunction (args &optional...
1d82709b25aaf5dc9615f5e57dbda275e869d8a1f2c993e20c61190fa2260597
krestenkrab/hanoidb
hanoidb_bloom.erl
The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in compliance with the License . You should have received a copy of the Erlang Public License %% along with this software. If not, it can be retrieved via the world wide web %%...
null
https://raw.githubusercontent.com/krestenkrab/hanoidb/68333fa51a6fdf27834fc84f42d4421f9627e3b7/src/hanoidb_bloom.erl
erlang
along with this software. If not, it can be retrieved via the world wide web at /. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Information Processing Letters Provides scalable bloom filters that can grow...
The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in compliance with the License . You should have received a copy of the Erlang Public License Software distributed under the License is distributed on an " AS IS " basis , ...
4be87eaad36683c616e75e9be54ae48f3bf0510f827374b281c88b519c84b3c7
dm3/manifold-cljs
stream_test.cljs
(ns manifold-cljs.stream-test (:require [manifold-cljs.stream :as s] [manifold-cljs.stream.core :as core] [manifold-cljs.deferred :as d] [manifold-cljs.time :as t] [manifold-cljs.test-util :refer [later no-success?]] [cljs.test :refer [deftest testing is asy...
null
https://raw.githubusercontent.com/dm3/manifold-cljs/85a2aee8a376f55b000739ee14acb073227422c8/test/manifold_cljs/stream_test.cljs
clojure
buffered-stream has an infinite-buffer stream backing it so all the takes complete immediately if one disregards the backpressure on the `put!`s. on-closed callbacks are triggered wait for the throttle timeout to realize
(ns manifold-cljs.stream-test (:require [manifold-cljs.stream :as s] [manifold-cljs.stream.core :as core] [manifold-cljs.deferred :as d] [manifold-cljs.time :as t] [manifold-cljs.test-util :refer [later no-success?]] [cljs.test :refer [deftest testing is asy...
8af2fb35a62475acde1535336a43f80f414a2059cc78884b06e7c30b7e980815
int-index/slay
Main.hs
module Main where import Slay.Gtk (example) main :: IO () main = example
null
https://raw.githubusercontent.com/int-index/slay/1c9d39b8cb4f32f0b4778677c21ebb85cc1cddf7/gtk/Main.hs
haskell
module Main where import Slay.Gtk (example) main :: IO () main = example
221790d55c00187c8e8a62ba43c68bced2c189bb499232b1f9e19f80ed2acc5b
qmuli/qmuli
CF.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Qi.AWS.CF where import Control.Monad.Fail (fail...
null
https://raw.githubusercontent.com/qmuli/qmuli/6ca147f94642b81ab3978d502397efb60a50215b/library/Qi/AWS/CF.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # The ugliness below is because AWS requires the PhysicalId field to be necessarily a String json type
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Qi.AWS.CF where import Control.Monad.Fail (fail) import Data.Aeson import qualified Data.Text as T import Protolude import Qi.AWS.Cognito im...
50fd13d11c6ad95d49bd29d55854bf4ee9c732bda8e8e2c69502b8d8ae48ac3d
gerritjvv/tcp-driver
policy_test.clj
(ns ^{:doc "Test the tcp-driver.routing.policy default implementation"} tcp-driver.routing.policy-test (:require [tcp-driver.routing.policy :as routing] [tcp-driver.io.conn :as tcp-conn]) (:use clojure.test)) (defn create-routing [host-names] (routing/create-default-routing-policy (mapv #(tcp-c...
null
https://raw.githubusercontent.com/gerritjvv/tcp-driver/2a9373cda20d176bfb5b00e63f4816fa83c88591/test/tcp_driver/routing/policy_test.clj
clojure
(ns ^{:doc "Test the tcp-driver.routing.policy default implementation"} tcp-driver.routing.policy-test (:require [tcp-driver.routing.policy :as routing] [tcp-driver.io.conn :as tcp-conn]) (:use clojure.test)) (defn create-routing [host-names] (routing/create-default-routing-policy (mapv #(tcp-c...
abafa323fc6a57fb171ab219b8e8e238128b51dd9174ed80417afda798e98653
cfredric/NumberTheory
NumberTheory.hs
# LANGUAGE ScopedTypeVariables , BangPatterns # -- |A library for doing number-theoretic computations. This includes computations in Z mod m ( henceforth also written Zm ) , Z , Z ( the Gaussian integers ) , -- and some computations with continued fractions. module NumberTheory ( -- text conversions toText,...
null
https://raw.githubusercontent.com/cfredric/NumberTheory/d20fd67d9df64b65c32787c5a39115eca175b425/NumberTheory.hs
haskell
|A library for doing number-theoretic computations. This includes computations and some computations with continued fractions. text conversions pythagorean triples Functions in Z mod m functions in Z arithmetic functions Gaussian Integer functions assorted combinatorics Continued fraction functions |Converts...
# LANGUAGE ScopedTypeVariables , BangPatterns # in Z mod m ( henceforth also written Zm ) , Z , Z ( the Gaussian integers ) , module NumberTheory ( toText, fromText, pythSide, pythLeg, pythHyp, primPythHyp, primPythLeg, canon, evalPoly, polyCong, exponentiate, invert,...
c2dc842ffc7ee4c07bb5ccaa3630b71edbe7da4c33de601d5490f9e91e45517f
deobald/sicp-clojure
ex2_23.clj
(ns sec2_2.ex2_23) (defn for-each [fn items] (fn (first items)) (if (empty? items) true (recur fn (rest items)))) (for-each #(println %) '(57 321 88))
null
https://raw.githubusercontent.com/deobald/sicp-clojure/fc24e5114604e7a0510dab779bbff962aac7ee7e/src/sec2_2/ex2_23.clj
clojure
(ns sec2_2.ex2_23) (defn for-each [fn items] (fn (first items)) (if (empty? items) true (recur fn (rest items)))) (for-each #(println %) '(57 321 88))
a7dfdb8e42c80e2fa2c639f4ac6c82eb21d4eb5aa1a932b3b0916f97156e7dcf
MLanguage/mlang
mast_to_mir.mli
Copyright ( C ) 2019 - 2021 Inria , contributor : < > This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later ...
null
https://raw.githubusercontent.com/MLanguage/mlang/cfea7d2050ad08bdab2d99dc856f614c5bc5908f/src/mlang/m_frontend/mast_to_mir.mli
ocaml
* The M language has a strange way of doing loops. We translate them by unrolling; but for that we need a context to hold the loop parameters, which consists of a mapping from characters to integers or other characters. * The values of the map can be either strings of integers * Map whose keys are loop parame...
Copyright ( C ) 2019 - 2021 Inria , contributor : < > This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later ...
c489420493bf0a19e22e7fb8249f55749c9b5ee9644b6db56fa7ebc2a4d1ecaa
haskell/haskell-language-server
ActionSpec.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module ActionSpec where import Control.Concurrent.STM import qualified Data.HashSet as HashSet import Development.IDE.Graph ...
null
https://raw.githubusercontent.com/haskell/haskell-language-server/94cd24d9e43a0f93f947075bb5a931b5d92a9f61/hls-graph/test/ActionSpec.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module ActionSpec where import Control.Concurrent.STM import qualified Data.HashSet as HashSet import Development.IDE.Graph (shakeOptions) import Development.IDE.Graph.Database ...
6b77fe023ece13435c8cbaeb76e4db17f2fcc2f37f727be963ac3c2d4817cd7f
SNePS/SNePS2
plantrace.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- Copyright ( C ) 1993 - -2013 Research Foundation of State University of New York Version : $ I d : plantrace.lisp , v 1.2 2013/08/28 19:07:28 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of this file...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snip/fns/plantrace.lisp
lisp
Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitations ...
Copyright ( C ) 1993 - -2013 Research Foundation of State University of New York Version : $ I d : plantrace.lisp , v 1.2 2013/08/28 19:07:28 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS "...
39356a2b4aed2e9c0b487be4de37cc861cf53f174b6701b3c8c7385e83fed899
dkochmanski/charming-clim
crash-course.lisp
(defpackage #:charming-clim/charms-crash-course (:use #:cl) (:export #:hello-world) (:nicknames #:ccc)) (in-package #:charming-clim/charms-crash-course) ;;; Higher level interface additions (defun draw-window-border (window &optional (ls #\|) (rs #\|) (ts ...
null
https://raw.githubusercontent.com/dkochmanski/charming-clim/931da8f7f888499d880ae22187ce1779d13dc11c/crash-course/crash-course.lisp
lisp
Higher level interface additions Process input Process input Process input asynchronous input hack (should be a mailbox!) don't be a pig to a processor color for text-input (inactive) color for text-input (active) color for button (inactive) color for button (active) gadget should be type of `window' or `pan...
(defpackage #:charming-clim/charms-crash-course (:use #:cl) (:export #:hello-world) (:nicknames #:ccc)) (in-package #:charming-clim/charms-crash-course) (defun draw-window-border (window &optional (ls #\|) (rs #\|) (ts #\-) (bs #\-) ...
8df344b34badcae409cd1f0f78e7e35ef475f6fcf635327f884b9278be8a4a95
Frama-C/Frama-C-snapshot
LogicSemantics.mli
(**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* *) Copyrigh...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/wp/LogicSemantics.mli
ocaml
************************************************************************ alternatives) ...
This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Software Foundation ,...
e9f008447a7bdd6b810120625ed62649bd12f4c983be0d145f290b720912ec0f
TyOverby/mono
apply_action.ml
open! Core open! Import type ('m, 'a) transition = schedule_event:(unit Effect.t -> unit) -> 'm -> 'a -> 'm type ('m, 'a) t = | Incremental : ('m, 'a) transition Incr.t -> ('m, 'a) t | Impossible : ('a -> Nothing.t) -> (_, 'a) t | Join : { incr : ('m1, 'a1) transition Incr.t ; witness : 'a2 -> Nothi...
null
https://raw.githubusercontent.com/TyOverby/mono/7666c0328d194bf9a569fb65babc0486f2aaa40d/vendor/janestreet-bonsai/src/apply_action.ml
ocaml
open! Core open! Import type ('m, 'a) transition = schedule_event:(unit Effect.t -> unit) -> 'm -> 'a -> 'm type ('m, 'a) t = | Incremental : ('m, 'a) transition Incr.t -> ('m, 'a) t | Impossible : ('a -> Nothing.t) -> (_, 'a) t | Join : { incr : ('m1, 'a1) transition Incr.t ; witness : 'a2 -> Nothi...
04f7c438a028842699208ee3a4d4ddc35ecebc69e4de94ab8459e36b0d655a3b
JohnLato/language-objc
Error.hs
# LANGUAGE ExistentialQuantification , DeriveDataTypeable # ----------------------------------------------------------------------------- -- | -- Module : Language.ObjC.Data.Error Copyright : ( c ) 2008 , -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : ...
null
https://raw.githubusercontent.com/JohnLato/language-objc/8e9455f15b32229f7caf13769c8945d8544c79f0/src/Language/ObjC/Data/Error.hs
haskell
--------------------------------------------------------------------------- | Module : Language.ObjC.Data.Error License : BSD-style Maintainer : Stability : experimental Base type for errors occurring in parsing, analysing and pretty-printing. ----------------------------------------------------...
# LANGUAGE ExistentialQuantification , DeriveDataTypeable # Copyright : ( c ) 2008 , Portability : ghc With ideas from " An extensible dynamically - typed hierarchy of execeptions [ 2006 ] " module Language.ObjC.Data.Error ( ErrorLevel(..), isHardError, Error(..), errorPos, errorLevel, e...
ea9977fe0d53452f2e297baa6d496f576458287efbbcaa6755e795a8e29b2a21
VERIMAG-Polyhedra/VPL
Profile.ml
(** This module implements a simple hand-made profiling tool. To use it, simply instantiate the fonctor Profile with a module D that contains a name. Example : module MyProfile = Profile(struct let name = "MyModuleName" end) The "name" variable is used to prefix the name of functions in the report. *) module type...
null
https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/misc/Profile.ml
ocaml
* This module implements a simple hand-made profiling tool. To use it, simply instantiate the fonctor Profile with a module D that contains a name. Example : module MyProfile = Profile(struct let name = "MyModuleName" end) The "name" variable is used to prefix the name of functions in the report. * Reset the whol...
module type Type = sig module D : sig val name : string end val reset : unit -> unit val start : string -> unit val stop : string -> unit val enable : unit -> unit val disable : unit -> unit end module MapPro = Map.Make(struct type t = string let compare = String.compare end) type element = { start : flo...
4dd9ba4d8de1de818f8b5e582fe355d71f2adcfefc283f540ddc4cfee232d272
yomimono/stitchcraft
stitchcraft.ml
# # # generation - ` textstitch ` - make a pattern from a list of strings - ` assemble ` - take a list of layers ( e.g. from ` ih ` ) and make a pattern - ` primitives ` : ` rect ` , ` backstitch ` , ` empty ` - simple figures or empty space # # # manipulation - ` embellish ` ( hcat , vcat , repeat_corner...
null
https://raw.githubusercontent.com/yomimono/stitchcraft/6b57efa8a145541e976c9cb1f04ffde984b318bd/src/stitchcraft.ml
ocaml
# # # generation - ` textstitch ` - make a pattern from a list of strings - ` assemble ` - take a list of layers ( e.g. from ` ih ` ) and make a pattern - ` primitives ` : ` rect ` , ` backstitch ` , ` empty ` - simple figures or empty space # # # manipulation - ` embellish ` ( hcat , vcat , repeat_corner...
6a8659b08f9bcc1960cad4247920afe7a60f70fbc69b8d3c674cfbed2ed91080
amnh/poy5
sequence.mli
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/sequence.mli
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
cc79ec88617abfbc927fb486c95fd0893436b857edeb8d1d63b5272e4df229e1
bvaugon/ocapic
soft.ml
(*************************************************************************) (* *) (* OCaPIC *) (* *) ...
null
https://raw.githubusercontent.com/bvaugon/ocapic/a14cd9ec3f5022aeb5fe2264d595d7e8f1ddf58a/tests/pprog/soft/soft.ml
ocaml
*********************************************************************** OCaPIC ...
This file is distributed under the terms of the CeCILL license . open Printf;; let usage () = eprintf "Usage: %s <file.hex>\n%!" Sys.argv.(0); exit 0; ;; if Array.length Sys.argv <> 2 then usage ();; let filename = Sys.argv.(1);; if not (Filen...
03435e697e46bb0f8f77898a0809c8b511af207dc25159196594fda79026d929
janestreet/file_path
file_path.ml
open! Core module Types = Types include Path module Absolute = Absolute module Relative = Relative module Part = Part module Operators = Operators module Stable = struct include Path.Stable module Absolute = Absolute.Stable module Relative = Relative.Stable module Part = Part.Stable end include File_path_intf...
null
https://raw.githubusercontent.com/janestreet/file_path/975cd0bd0460212b939016769aed2de28665b5a0/src/file_path.ml
ocaml
open! Core module Types = Types include Path module Absolute = Absolute module Relative = Relative module Part = Part module Operators = Operators module Stable = struct include Path.Stable module Absolute = Absolute.Stable module Relative = Relative.Stable module Part = Part.Stable end include File_path_intf...
7a43eadc195beaa299fc993d5fcfd4183c68912088d0df1e886e937b324a55e9
ronwalf/HTN-Translation
Translation.hs
{-# OPTIONS_GHC -freduction-depth=30 -Wall #-} # LANGUAGE FlexibleContexts , FlexibleInstances , FunctionalDependencies , IncoherentInstances , MultiParamTypeClasses , OverloadedStrings , ParallelListComp , ScopedTypeVariables , TypeOperators # FlexibleContexts, Fle...
null
https://raw.githubusercontent.com/ronwalf/HTN-Translation/dfe39a9444c944e2efd48306e122a17d6c0f2d89/src/HTNTranslation/Translation.hs
haskell
# OPTIONS_GHC -freduction-depth=30 -Wall # import qualified Data.Map as Map import Text.Printf Types and constants Predicates Predicate for order of free ID constants Predicate for order of free ID constants Predicate for stating id1 is not used freeP :: forall a f. (Atomic a :<: f) => a -> Expr f fre...
# LANGUAGE FlexibleContexts , FlexibleInstances , FunctionalDependencies , IncoherentInstances , MultiParamTypeClasses , OverloadedStrings , ParallelListComp , ScopedTypeVariables , TypeOperators # FlexibleContexts, FlexibleInstances, FunctionalDependencies, IncoherentIns...
3e1344c78b1a9eb672c0938939853788f97286f443eb194249b53dbd13990d26
RefactoringTools/HaRe
Class.hs
module Layout.Class where class Foo a where foo :: a -> Int -> Char instance Foo Double where foo p1 p2 = 'a'
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/Layout/Class.hs
haskell
module Layout.Class where class Foo a where foo :: a -> Int -> Char instance Foo Double where foo p1 p2 = 'a'
e70735e133701f36eee1c98f2fb688ab0a0c1d1565cc74e2e37e7e829b126c14
metabase/metabase
review.clj
(ns metabase-enterprise.content-management.api.review (:require [compojure.core :refer [POST]] [metabase.api.common :as api] [metabase.models.moderation-review :as moderation-review] [metabase.moderation :as moderation] [metabase.util.schema :as su] [schema.core :as s])) #_{:clj-kondo/ignore [:depr...
null
https://raw.githubusercontent.com/metabase/metabase/18d190cf05df4233aa6d14d6580faa68293ba980/enterprise/backend/src/metabase_enterprise/content_management/api/review.clj
clojure
(ns metabase-enterprise.content-management.api.review (:require [compojure.core :refer [POST]] [metabase.api.common :as api] [metabase.models.moderation-review :as moderation-review] [metabase.moderation :as moderation] [metabase.util.schema :as su] [schema.core :as s])) #_{:clj-kondo/ignore [:depr...
516f70d8a059ecfd1c8479de25eaad2470d2d96838d743e47ba9f1f251a43828
haskell-opengl/OpenGLRaw
Semaphore.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | Module : Graphics . GL.EXT.Semaphore Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/EXT/Semaphore.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Functions
# LANGUAGE PatternSynonyms # Module : Graphics . GL.EXT.Semaphore Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.EXT.Semaphore ( glGetEXTSemaphore, gl_EXT_semaphore, pattern GL_DEVICE_UUID_EXT, pattern GL_DRIVER_UUID_EXT, pattern GL_LAYOUT_COLOR_ATTACHMENT_EXT, patte...
1d15c202d11589dba461047cf278830bd67a5769b94bcc1d47611aad66bf352b
batebobo/fp1819
6-all.rkt
#lang racket (require rackunit) (require rackunit/text-ui) Искаме да проверим дали всички елементи на списък удовлетворяват (define (all? lst pred) (if (null? lst) #t (and (pred (car lst)) (all? (cdr lst) pred)))) (define tests (test-suite "All tests" (test-case "" (check-true (all? '(2 4...
null
https://raw.githubusercontent.com/batebobo/fp1819/2061b7e62a1a9ade3a5fff9753f9fe0da5684275/scheme/5/solutions/6-all.rkt
racket
#lang racket (require rackunit) (require rackunit/text-ui) Искаме да проверим дали всички елементи на списък удовлетворяват (define (all? lst pred) (if (null? lst) #t (and (pred (car lst)) (all? (cdr lst) pred)))) (define tests (test-suite "All tests" (test-case "" (check-true (all? '(2 4...
37043e48ee13e8b1cb0f25a12ff16a66ef4566d784441d1999b083d9c16a0d3d
anmonteiro/ocaml-h2
server_connection.ml
---------------------------------------------------------------------------- * Copyright ( c ) 2017 Inhabited Type LLC . * Copyright ( c ) 2019 . * * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided th...
null
https://raw.githubusercontent.com/anmonteiro/ocaml-h2/5a71d3acbfb081024b1412eb2f867cfd4db9d10e/lib/server_connection.ml
ocaml
Number of currently open client streams. Used for * MAX_CONCURRENT_STREAMS bookkeeping Keep track of number of SETTINGS frames that we sent and for which * we haven't eceived an acknowledgment from the client. TODO: Only write if not already shutdown. XXX: We need to allow lower numbered stream...
---------------------------------------------------------------------------- * Copyright ( c ) 2017 Inhabited Type LLC . * Copyright ( c ) 2019 . * * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided th...
8410b759c5b745813c46e01d70b9146f2a23c4cfe0bf19df9e2dcfa4f614eca5
zkincaid/duet
extGraph.ml
open Srk module type G = sig include Graph.Sig.G val vertices : t -> V.t BatEnum.t val edges : t -> (V.t * V.t) BatEnum.t val edges_e : t -> E.t BatEnum.t val enum_succ : t -> V.t -> V.t BatEnum.t val enum_succ_e : t -> V.t -> E.t BatEnum.t val enum_pred : t -> V.t -> V.t BatEnum.t val enum_pred_e : t ...
null
https://raw.githubusercontent.com/zkincaid/duet/eb3dbfe6c51d5e1a11cb39ab8f70584aaaa309f9/duet/extGraph.ml
ocaml
The following module is copied (and slightly modified) from ocamlgraph/blocks.ml, which isn't part of the standard API. ************************************************************************ ...
open Srk module type G = sig include Graph.Sig.G val vertices : t -> V.t BatEnum.t val edges : t -> (V.t * V.t) BatEnum.t val edges_e : t -> E.t BatEnum.t val enum_succ : t -> V.t -> V.t BatEnum.t val enum_succ_e : t -> V.t -> E.t BatEnum.t val enum_pred : t -> V.t -> V.t BatEnum.t val enum_pred_e : t ...
46ba23aba963c4b5bb904f24fc52045144c6e85048ce808e40bb937478cb1545
yenda/guix-packages
clojure.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/yenda/guix-packages/0675fe15e5fc1e00ca91f069a6e279cfcdb29f42/clojure.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (clojure) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use...
9cb9ba41911da1f03b988a7a8f6696348503f8d9472095fa9690d7f057b3d1e5
LambdaHack/LambdaHack
Faction.hs
# LANGUAGE DeriveGeneric , TupleSections # -- | Factions taking part in the game, e.g., a hero faction, a monster faction -- and an animal faction. module Game.LambdaHack.Common.Faction ( FactionDict, Faction(..), Diplomacy(..) , Status(..), Challenge(..) , tshowDiplomacy, tshowChallenge, gleader, isHorrorFact, n...
null
https://raw.githubusercontent.com/LambdaHack/LambdaHack/d1c429d729c503790c44dca43a8e57ae6354f801/engine-src/Game/LambdaHack/Common/Faction.hs
haskell
| Factions taking part in the game, e.g., a hero faction, a monster faction and an animal faction. * Internal operations | All factions in the game, indexed by faction identifier. | The faction datatype. ^ the player spec for this faction, do not update! it is morally read-only, but not represented and it's loo...
# LANGUAGE DeriveGeneric , TupleSections # module Game.LambdaHack.Common.Faction ( FactionDict, Faction(..), Diplomacy(..) , Status(..), Challenge(..) , tshowDiplomacy, tshowChallenge, gleader, isHorrorFact, noRunWithMulti , bannedPointmanSwitchBetweenLevels, isFoe, isFriend , difficultyBound, difficultyDefau...
1bb8ad0b6a1bf35888696b9cbea48e8aa726e8433581e364041ebe2598efda66
KIZI/sparqlab
handler.clj
(ns sparqlab.handler (:require [sparqlab.config :refer [env]] [sparqlab.env :refer [defaults]] [sparqlab.layout :as layout] [sparqlab.middleware :as middleware] [sparqlab.routes.home :refer [home-routes]] [sparqlab.routes.api :refer [api-routes]] ...
null
https://raw.githubusercontent.com/KIZI/sparqlab/33a80b13c0fa0eb9aa0edb294ad0510d2cf52abc/src/clj/sparqlab/handler.clj
clojure
(ns sparqlab.handler (:require [sparqlab.config :refer [env]] [sparqlab.env :refer [defaults]] [sparqlab.layout :as layout] [sparqlab.middleware :as middleware] [sparqlab.routes.home :refer [home-routes]] [sparqlab.routes.api :refer [api-routes]] ...
7ed4776db1b157bac8283b22ca5b494b6e6496ccc5cd979965247d707d3974de
axch/rules
load.scm
;;; This file is part of Rules, an extensible pattern matching, pattern dispatch , and term rewriting system for MIT Scheme . Copyright 2010 - 2013 , Massachusetts Institute of ;;; Technology ;;; ;;; Rules is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Publi...
null
https://raw.githubusercontent.com/axch/rules/21f25c86c19fcb0500e9f6f3905de86d59225d8e/load.scm
scheme
This file is part of Rules, an extensible pattern matching, Technology Rules is free software; you can redistribute it and/or modify it either version 3 of the License, or (at your option) any later version. This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even th...
pattern dispatch , and term rewriting system for MIT Scheme . Copyright 2010 - 2013 , Massachusetts Institute of under the terms of the GNU Affero General Public License as You should have received a copy of the GNU Affero General Public (define (self-relatively thunk) (if (current-eval-unit #f) (wi...
7dd42366c9f5b30f271fcbe35f484afc87a1a451ec60607169f353980f43d4aa
AdaCore/why3
why3session_latex.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/4441127004d53cf2cb0f722fed4a930ccf040ee4/src/why3session/why3session_latex.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception open Format open Why3 open Session_itp open Why3session_lib module Hprover = Whyconf.Hprover let opt_styl...
ffbf853c99cc2ed5f29bc249473fdb8033f034c586d2b678ca3190ce81a4688d
joearms/erlmediaserver
radioconnectionmanager.erl
%%% ------------------------------------------------------------------- %%% Author : ua %%% Description : %%% Created : May 4 , 2010 %%% ------------------------------------------------------------------- -module(radioconnectionmanager). -behaviour(gen_server). %% ---------------------------------------------------...
null
https://raw.githubusercontent.com/joearms/erlmediaserver/35ef0d8300c50a273ee0122ccce65973af4c3a73/src/radioconnectionmanager.erl
erlang
------------------------------------------------------------------- Author : ua Description : ------------------------------------------------------------------- -------------------------------------------------------------------- Include files ------------------------------------------------------------------...
Created : May 4 , 2010 -module(radioconnectionmanager). -behaviour(gen_server). -include_lib("eunit/include/eunit.hrl"). -export([get_nt/0, get_st/0, get_uri/0, get_service_type/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -export([start_link/0]). -record(state, ...
289d1261b56d9f8ff3e3b30f28807b9112928b0515d82a7722876fd5e2c49845
haskell/cabal
Cabal.hs
# LANGUAGE CPP # {-# OPTIONS_GHC -freduction-depth=0 #-} # OPTIONS_GHC -fno - warn - orphans # module Data.TreeDiff.Instances.Cabal () where import Data.TreeDiff import Data.TreeDiff.Instances.CabalLanguage () import Data.TreeDiff.Instances.CabalSPDX () import Data.TreeDiff.Instances.CabalVersion () ----------------...
null
https://raw.githubusercontent.com/haskell/cabal/64674078f42774e3ce56cb969daf6e8c32ac5597/Cabal-tree-diff/src/Data/TreeDiff/Instances/Cabal.hs
haskell
# OPTIONS_GHC -freduction-depth=0 # ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- instances -----------------------------------------------------------------------------
# LANGUAGE CPP # # OPTIONS_GHC -fno - warn - orphans # module Data.TreeDiff.Instances.Cabal () where import Data.TreeDiff import Data.TreeDiff.Instances.CabalLanguage () import Data.TreeDiff.Instances.CabalSPDX () import Data.TreeDiff.Instances.CabalVersion () import Distribution.Backpack (Ope...
969ae450372ca73cd7ebc149b6341e044828bf41df8b361990e08725c4156760
supki/liblastfm
desktop-authentication.hs
{-# LANGUAGE OverloadedStrings #-} -- | Desktop application authentication flow example -- -- Please remember to substitute __YOUR_API_KEY__ -- and __YOUR_SECRET__ for real values import Control.Lens -- lens import Data.Aeson.Lens -- lens-aeson import Data.Foldable (for_) -- base import Data.Text (unpac...
null
https://raw.githubusercontent.com/supki/liblastfm/754be163c4ce14c9b4819f1359b5f95a0f91a29d/example/desktop-authentication.hs
haskell
# LANGUAGE OverloadedStrings # | Desktop application authentication flow example Please remember to substitute __YOUR_API_KEY__ and __YOUR_SECRET__ for real values lens lens-aeson base text
liblastfm liblastfm main :: IO () main = withConnection $ \conn -> do r <- lastfm conn $ getToken <*> apiKey ak <* json for_ (r ^? folded.key "token"._String) $ \t -> do putStrLn $ "approve: " ++ link (apiKey ak <* token t) _ <- getChar r' <- lastfm conn . sign s $ getSession <*> token t <*> apiKe...
c7bb0d6203422b6246e0acd9837b1b6f5de90833e9fddc6b9e2746eade4a376b
mjambon/atdgen
ag_oj_emit.mli
val make_ocaml_files :opens:string list -> with_typedefs:bool -> with_create:bool -> with_fundefs:bool -> all_rec:bool -> std:bool -> unknown_field_handler:string option -> constr_mismatch_handler:string option -> pos_fname:string option -> pos_lnum:int option -> type_aliases:string option -> f...
null
https://raw.githubusercontent.com/mjambon/atdgen/9b031da2f182a1fa60bc76ff3a3228ff7b45a8a3/src/ag_oj_emit.mli
ocaml
val make_ocaml_files :opens:string list -> with_typedefs:bool -> with_create:bool -> with_fundefs:bool -> all_rec:bool -> std:bool -> unknown_field_handler:string option -> constr_mismatch_handler:string option -> pos_fname:string option -> pos_lnum:int option -> type_aliases:string option -> f...
10b4b3a39a0876f8112f4fd71a7459605fd9f956485259821ac70b38b8d03093
facebook/flow
diff_heaps.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/741104e69c43057ebd32804dd6bcc1b5e97548ea/src/state/heaps/diffing/diff_heaps.ml
ocaml
* The Diff Heap is specialized to store the patches used by the Replacement_printer * when updating files that have been transformed by a worker process.
* 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...
7ae256df3c753229b5e8ff467db9c3e9ef9a3a833da8e1497ebcbc563cfd8f76
tomcobley/haskell-final-exams
Examples.hs
module Examples where import Types -- Figure 2 ( left ) -- figure :: Trie figure = Node 16960 [Term 1830, SubTrie (Node 8208 [Term 73, SubTrie (Leaf [729,2521])]), Term 206] -- Figure 2 ( right ) -- figureHashed :: Trie figureHashed = Node 1...
null
https://raw.githubusercontent.com/tomcobley/haskell-final-exams/49807e0da0ee7121d19eacff3ccc5ff5d0e4d4a2/2020-hash-array-mapped-tries/Examples.hs
haskell
Test tries for insert from the spec Test tries for build from the spec
module Examples where import Types Figure 2 ( left ) figure :: Trie figure = Node 16960 [Term 1830, SubTrie (Node 8208 [Term 73, SubTrie (Leaf [729,2521])]), Term 206] Figure 2 ( right ) figureHashed :: Trie figureHashed = Node 16481 [Term 2...
98950f60b11bc9fccd3d9dc48c517949a521eb53c4b61fc4b2003dbfa3b7b6ad
theodormoroianu/SecondYearCourses
HaskellChurchMonad_20210415161325.hs
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} toBool :: CBool Bool -> Bool toBool b = cIf b True False The boolean constant true always chooses the first alternative cTrue :: CBool t cTrue = CBool $ \t f -> t The boolean consta...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurchMonad_20210415161325.hs
haskell
The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply it on them. A natural nu...
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} toBool :: CBool Bool -> Bool toBool b = cIf b True False The boolean constant true always chooses the first alternative cTrue :: CBool t cTrue = CBool $ \t f -> t The boolean consta...
355d462dae1e696bafcb3025e8993571125dde5671694a0b82bb96b346365982
dbuenzli/hyperbib
container_html.ml
--------------------------------------------------------------------------- Copyright ( c ) 2021 University of Bern . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/dbuenzli/hyperbib/b17d1ef8cc3a215d04c31c0e56c2de414911c55c/src/html/container_html.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2021 University of Bern . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
cf2a96db74880fc14d711546c3fdc95889dcf589e1d7473997f416055db62c85
ndmitchell/catch
Backward.hs
module Train.Backward(backward) where import Train.Type import Train.Template import Train.Propagate import Train.Reduce import Train.Fixp import System.IO import General.General import Control.Monad import Data.Proposition import Data.Maybe import Data.List import Hite import qualified Data.Map as Map backward :: ...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/src/Train/Backward.hs
haskell
solve all but propagate solve all but propagate
module Train.Backward(backward) where import Train.Type import Train.Template import Train.Propagate import Train.Reduce import Train.Fixp import System.IO import General.General import Control.Monad import Data.Proposition import Data.Maybe import Data.List import Hite import qualified Data.Map as Map backward :: ...
ba76ea0be24151f81e5c3dbe3e69f59a0bf21906df7b92fb8be9ea2d44f6a9d0
lvh/caesium
bench_utils.clj
(ns caesium.bench-utils) (defn print-title [& title-parts] (println) (apply println "~> " title-parts)) (defn fmt-bytes [n] (reduce (fn [n sym] (if (< n 1024) (reduced (str n sym)) (int (/ n 1024)))) n ["B" "kiB" "MiB" "GiB"]))
null
https://raw.githubusercontent.com/lvh/caesium/cb90a4325fa48a2e4fb6cad810f340125a53fc57/benchmarks/caesium/bench_utils.clj
clojure
(ns caesium.bench-utils) (defn print-title [& title-parts] (println) (apply println "~> " title-parts)) (defn fmt-bytes [n] (reduce (fn [n sym] (if (< n 1024) (reduced (str n sym)) (int (/ n 1024)))) n ["B" "kiB" "MiB" "GiB"]))
32694b9559a08763777769ffee781867e07c3292bac8c439df0ddaaa2a7ba152
haskell-opengl/OpenGL
SyncObjects.hs
-------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.SyncObjects Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- This module corresponds to section...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGL/f7af8fe04b0f19c260a85c9ebcad612737cd7c8c/src/Graphics/Rendering/OpenGL/GL/SyncObjects.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.Rendering.OpenGL.GL.SyncObjects License : BSD3 Stability : stable Portability : portable OpenGL 4.4 specs. ------------------------------------------------------------------------------ * Sync Obj...
Copyright : ( c ) 2019 Maintainer : < > This module corresponds to section 4.1 ( Sync Objects and Fences ) of the module Graphics.Rendering.OpenGL.GL.SyncObjects ( SyncObject, syncGpuCommandsComplete, WaitTimeout, WaitFlag(..), WaitResult(..), clientWaitSync, waitSync, maxServerWaitTimeou...
f681e423208ec83576b3e4317ec68e072142435a10e6e29d54029065deb0a409
totalperspective/oolon
module_test.clj
(ns oolon.module-test (:require [oolon.module :refer :all] [oolon.table :as t] [oolon.datalog :as d] [midje.sweet :refer :all])) (def sym (t/table :sym {:name :keyword})) (def perm (t/table :perm {:x :keyword :y :keyword})) (def make-perm (d/rule [:perm {:x :?x :y :?y}] ...
null
https://raw.githubusercontent.com/totalperspective/oolon/a457d2a2d440a25f663bd0508a95e6877eae6f81/test/clj/oolon/module_test.clj
clojure
(ns oolon.module-test (:require [oolon.module :refer :all] [oolon.table :as t] [oolon.datalog :as d] [midje.sweet :refer :all])) (def sym (t/table :sym {:name :keyword})) (def perm (t/table :perm {:x :keyword :y :keyword})) (def make-perm (d/rule [:perm {:x :?x :y :?y}] ...
2907b93f3f3e2f50c0ca901a6370e62ea82137c84186618a2fc27533351cb6f1
MinaProtocol/mina
fake_network.mli
open Async open Core open Gadt_lib open Network_peer open Mina_base module Sync_ledger = Mina_ledger.Sync_ledger module type CONTEXT = sig val logger : Logger.t val precomputed_values : Precomputed_values.t val constraint_constants : Genesis_constants.Constraint_constants.t val consensus_constants : Consens...
null
https://raw.githubusercontent.com/MinaProtocol/mina/d62a9e6acd56f1aad7b01a2c987687de32561091/src/lib/fake_network/fake_network.mli
ocaml
open Async open Core open Gadt_lib open Network_peer open Mina_base module Sync_ledger = Mina_ledger.Sync_ledger module type CONTEXT = sig val logger : Logger.t val precomputed_values : Precomputed_values.t val constraint_constants : Genesis_constants.Constraint_constants.t val consensus_constants : Consens...
87798539852f71fd2e8b2af5ced49094e26b669057c8491e6e2e66598cf61935
glguy/advent2021
Day24.hs
# Language BangPatterns , LambdaCase , ViewPatterns # | Module : Main Description : Day 24 solution Copyright : ( c ) , 2021 License : ISC Maintainer : < > These programs were composed of 14 nearly - identical program chunks each of which varies in 3 parameters . Some of these chun...
null
https://raw.githubusercontent.com/glguy/advent2021/5c82e4b390916c4973d50bd67ffb0518785cbc94/execs/Day24.hs
haskell
| >>> :main | Compute the input string that satisfies the given program. ^ input digit guesses in order of preference ^ program blocks | Compute the possible input choices and resulting z from each choice. ^ input digit guesses in order of preference ^ block parameters ^ selected input value and resulting o...
# Language BangPatterns , LambdaCase , ViewPatterns # | Module : Main Description : Day 24 solution Copyright : ( c ) , 2021 License : ISC Maintainer : < > These programs were composed of 14 nearly - identical program chunks each of which varies in 3 parameters . Some of these chun...
06e5cac2f6d94a15f6831b5ba94482fc37370091de657663ca37cdd09c0f0377
seereason/logic-classes
Clause.hs
|A series of transformations to convert first order logic formulas -- into (ultimately) Clause Normal Form. -- -- @ 1st order formula : ∀Y ( ∀X ( , X ) | wise(X ) ) = > wise(Y ) ) -- -- Simplify ∀Y ( ( , X ) | wise(X ) ) | wise(Y ) ) -- -- Move negations in - Negation Normal Form ∀Y ( ∃X ( ~taller...
null
https://raw.githubusercontent.com/seereason/logic-classes/819059218027c3ee77bd2ef3a873fcca230d54b4/Data/Logic/Normal/Clause.hs
haskell
into (ultimately) Clause Normal Form. @ Simplify Move negations in - Negation Normal Form Move quantifiers out - Prenex Normal Form Distribute disjunctions Convert to CNF { ~taller(Y,x(Y)) | wise(Y), ~wise(x(Y)) | wise(Y) } @ # OPTIONS -Wall # |Convert to Skolem Normal Form and then di...
|A series of transformations to convert first order logic formulas 1st order formula : ∀Y ( ∀X ( , X ) | wise(X ) ) = > wise(Y ) ) ∀Y ( ( , X ) | wise(X ) ) | wise(Y ) ) ∀Y ( ∃X ( ~taller(Y , X ) & ~wise(X ) ) | wise(Y ) ) ∀Y ( ∃X ( ( ~taller(Y , X ) & ~wise(X ) ) | wise(Y ) ) ) ∀Y ∃X ( ( ~ta...
06a2bfc48e505a56778da72c26306b8d71e81d2b30ea848268cfa6687ba9ade8
input-output-hk/project-icarus-importer
Block.hs
module Statistics.Block ( BlockHeader (..) , blockHeadersF , blockChain , blockChainF , txBlocksF , inBlockChainF , txCntInChainF , TxFate (..) , txFateF ) where import Control.Foldl (Fold (..), fold) import qualified Data.Map.Lazy as ML import qualified Data.Map.Stric...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/tools/src/post-mortem/Statistics/Block.hs
haskell
module Statistics.Block ( BlockHeader (..) , blockHeadersF , blockChain , blockChainF , txBlocksF , inBlockChainF , txCntInChainF , TxFate (..) , txFateF ) where import Control.Foldl (Fold (..), fold) import qualified Data.Map.Lazy as ML import qualified Data.Map.Stric...
f9bbeeaeb96310711e49a495cab2e22048ca65fc90e3dd706a22b621285293c6
taylorwood/advent-of-code
3.clj
(ns advent-of-code.2017.3) ;; this pattern became apparent after drawing out a larger spiral ;; and I'm sure there must be a better impl. for this predicate... (defn odd-perfect-square? [n] (and (odd? n) (= (Math/floor (Math/sqrt n)) (Math/sqrt n)))) ;; once we know what spiral level we're on, we n...
null
https://raw.githubusercontent.com/taylorwood/advent-of-code/c6b08f4b618875a45c8083a04ae2c669626c43bf/src/advent_of_code/2017/3.clj
clojure
this pattern became apparent after drawing out a larger spiral and I'm sure there must be a better impl. for this predicate... once we know what spiral level we're on, we need to know how far around the spiral we are hacky iterative regression follows... solving this with arithmetic was really challenging for me ...
(ns advent-of-code.2017.3) (defn odd-perfect-square? [n] (and (odd? n) (= (Math/floor (Math/sqrt n)) (Math/sqrt n)))) (defn steps-from-bottom-right [n] (loop [steps 0 n n] (cond (odd-perfect-square? n) steps (pos? n) (recur (inc steps) (dec n))))) and took several hours of futz...
4856455791c011c7c016e358a9f3a3ee9e640755bb1f7b16554aa3e269ab9533
racket/gui
graph.rkt
#lang racket/base (require racket/class racket/list racket/math racket/gui/base racket/match (for-syntax racket/base) racket/contract) (provide graph-snip<%> graph-snip-mixin graph-pasteboard<%> graph-pasteboard-mixin) (prov...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mrlib/private/graph.rkt
racket
(or-2v arg ...) truth value of each arg is #t if both args are #t and #f otherwise label is boolean or string add-links : (is-a?/c graph-snip<%>) (is-a?/c graph-snip<%>) -> void : (is-a?/c graph-snip<%>) (is-a?/c graph-snip<%>) pen pen brush brush -> void should be based on object=? invalidate-selecte...
#lang racket/base (require racket/class racket/list racket/math racket/gui/base racket/match (for-syntax racket/base) racket/contract) (provide graph-snip<%> graph-snip-mixin graph-pasteboard<%> graph-pasteboard-mixin) (prov...
13daf3bef509e83399ac81e663a10ff2a77b4a2fa4e5ed82a3617ba18ff39b19
Helium4Haskell/helium
UnifierFunctionBinding3.hs
test 0 | True = "hello" test x | True = 42
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeerrors/Heuristics/UnifierFunctionBinding3.hs
haskell
test 0 | True = "hello" test x | True = 42
2be1ae5da8ad721182d9cd213c003beda075cba2347a7facaf9ac2cd979a9cb3
GaloisInc/cryptol
MonoValues.hs
-- | Module : Cryptol . Transform . MonoValues Copyright : ( c ) 2013 - 2016 Galois , Inc. -- License : BSD3 -- Maintainer : -- Stability : provisional -- Portability : portable -- -- This module implements a transformation, which tries to avoid exponential -- slow down in some cases. What...
null
https://raw.githubusercontent.com/GaloisInc/cryptol/f8b55439467abe3e7427b80edc37ff95a13de62b/src/Cryptol/Transform/MonoValues.hs
haskell
| License : BSD3 Maintainer : Stability : provisional Portability : portable This module implements a transformation, which tries to avoid exponential slow down in some cases. What's the problem? Consider the following (common) patterns: The type of @fibs@ is: Here @a@ is the number of bits...
Module : Cryptol . Transform . MonoValues Copyright : ( c ) 2013 - 2016 Galois , Inc. > fibs = [ 0,1 ] # [ x + y | x < - fibs , y < - drop`{1 } fibs ] > { a } ( a > = 1 , fin a ) = > [ inf][a ] > fibs : { a } ( a > = 1 , fin a ) = > [ inf][a ] > fibs = \{a } ( a > = 1 , fin a ) ...
d6fa8f4e35c1138dd7bf74401a211dd580393afe233aac6c6749b4ff272c86a3
idris-hackers/idris-java
JTypes.hs
# LANGUAGE PatternGuards # # LANGUAGE ViewPatterns # module IRTS.Java.JTypes where import Idris.Core.TT import qualified Data.Text as T import IRTS.Lang import Language.Java.Syntax import qualified Language.Java.Syntax as J import Data.Maybe -----------------------------------...
null
https://raw.githubusercontent.com/idris-hackers/idris-java/c1ed11c4c3014ec3e8a4bfdd294826f1b6937d5c/src/IRTS/Java/JTypes.hs
haskell
--------------------------------------------------------------------- Primitive types --------------------------------------------------------------------- Boxed types --------------------------------------------------------------------- --------------------------------------------------------------------- ----------...
# LANGUAGE PatternGuards # # LANGUAGE ViewPatterns # module IRTS.Java.JTypes where import Idris.Core.TT import qualified Data.Text as T import IRTS.Lang import Language.Java.Syntax import qualified Language.Java.Syntax as J import Data.Maybe charType :: J.Type charType = Pr...
02478f2b871331ccf6077493ab3ac983a78c9a399d6358b58d7cf3fad81bf357
xsc/claro
engine.cljc
(ns claro.engine "Main resolution and engine logic. Claro's resolution engine is powerful and customizable, allowing for flexible introspection and manipulation of every resolution run. See the [Engine][1] documentation for details and examples. [1]: 03-engine.md " (:refer-clojure :exclude [run!])...
null
https://raw.githubusercontent.com/xsc/claro/16db75b7a775a14f3b656362e8ee4f65dd8b0d49/src/claro/engine.cljc
clojure
## Middlewares
(ns claro.engine "Main resolution and engine logic. Claro's resolution engine is powerful and customizable, allowing for flexible introspection and manipulation of every resolution run. See the [Engine][1] documentation for details and examples. [1]: 03-engine.md " (:refer-clojure :exclude [run!])...
eac36d6fcb20dea9adcf2db2e65c981bd652d3499001ef40e29e3943b0273615
ghosthamlet/algorithm-data-structure
detect_directed_cycle_test.clj
(ns algorithm-data-structure.algorithms.graph.detect-directed-cycle-test (:require [algorithm-data-structure.algorithms.graph.detect-directed-cycle :as ddc] [algorithm-data-structure.data-structures.graph :as g] [algorithm-data-structure.data-structures.graph-vertex :as gv] [algori...
null
https://raw.githubusercontent.com/ghosthamlet/algorithm-data-structure/017f41a79d8b1d62ff5a6cceffa1b0f0ad3ead6b/test/algorithm_data_structure/algorithms/graph/detect_directed_cycle_test.clj
clojure
(ns algorithm-data-structure.algorithms.graph.detect-directed-cycle-test (:require [algorithm-data-structure.algorithms.graph.detect-directed-cycle :as ddc] [algorithm-data-structure.data-structures.graph :as g] [algorithm-data-structure.data-structures.graph-vertex :as gv] [algori...
c36c4e5cca7b2e65610ddd5d2e8e34234d1c567ce26778260a0edcdc51bbada5
ericclack/overtone-loops
pattern_03_07.clj
(ns overtone-loops.dph-book.pattern-03-07 (:use [overtone.live] [overtone-loops.loops] [overtone-loops.samples])) ;; Stop any currently playing music and clear any patterns (set-up) BAR1 BAR2 BAR3 BAR4 ;; ...
null
https://raw.githubusercontent.com/ericclack/overtone-loops/54b0c230c1e6bd3d378583af982db4e9ae4bda69/src/overtone_loops/dph_book/pattern_03_07.clj
clojure
Stop any currently playing music and clear any patterns 1 & 2 & 3 & 4 & // 1 & 2 & 3 & 4 & // 1 & 2 & 3 & 4 & // 1 & 2 & 3 & 4 & (stop)
(ns overtone-loops.dph-book.pattern-03-07 (:use [overtone.live] [overtone-loops.loops] [overtone-loops.samples])) (set-up) BAR1 BAR2 BAR3 BAR4 (defloop closed-hhs 1/2 cymbal-closed [7 3 7 3 7 3 7 6 ]) (defloop ...
25e16f1025b1211ea59fcf21b23bcd7739971815c14d2ae1420bd07460d89995
argp/bap
piqic_ocaml_out.ml
pp camlp4o -I ` ocamlfind query piqi.syntax ` pa_labelscope.cmo pa_openin.cmo Copyright 2009 , 2010 , 2011 , 2012 , 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/libtracewrap/libtrace/piqi/piqi/piqic/piqic_ocaml_out.ml
ocaml
reuse several functions imported name need special handing for wire_type override gen generators for built-in types NOTE: overriding upper-level wire type even if this one is undefined optional + default fully-qualified field name field generation code flag generation code fully-qualified ca...
pp camlp4o -I ` ocamlfind query piqi.syntax ` pa_labelscope.cmo pa_openin.cmo Copyright 2009 , 2010 , 2011 , 2012 , 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at ...
03bca38e7a417f654bb38db29b95db5c72d6762fef6cb791e5a7b38f85255036
JackieMaHatesDogEyes/DreamOS
vga.scm
;;;;;;;;;;;;;;;;;; VGA Driver ; ; ; ;;;;;;;;;;;;;;;;;; (define VIDEO #xb8000) (define CRTC_ADDRESS #x03d4) (define CURSOR_LOC_HIGH_REG #x0e) (define CURSOR_LOC_LOW_REG #x0f) (define (cursor-offset row col) (+ (* row SCREEN_COLS) col)) (define (cursor-end-offset) (cursor-offset SCREEN_ROWS 0)) (define (vga-prep...
null
https://raw.githubusercontent.com/JackieMaHatesDogEyes/DreamOS/53d56a3ff263840d3a78142cf4431cbe4fc18509/src/vga.scm
scheme
; ; newline tab backspace Clear bottom row
(define VIDEO #xb8000) (define CRTC_ADDRESS #x03d4) (define CURSOR_LOC_HIGH_REG #x0e) (define CURSOR_LOC_LOW_REG #x0f) (define (cursor-offset row col) (+ (* row SCREEN_COLS) col)) (define (cursor-end-offset) (cursor-offset SCREEN_ROWS 0)) (define (vga-prepare-reg addr reg) (if addr (mov addr dx) (dec d...
b5cd9a93d4ae7652c04a75f0284e5972b69fe867329bf42cb81dcec8307e4498
JustusAdam/language-haskell
ImportIndentation.hs
SYNTAX TEST " source.haskell " " Indentation in imports " import -- ^^^^^^ keyword.other.import.haskell qualified -- ^^^^^^^^^ keyword.other.qualified.haskell I -- ^ entity.name.namespace.haskell as ^^ keyword.other.as.haskell J ...
null
https://raw.githubusercontent.com/JustusAdam/language-haskell/c9ee1b3ee166c44db9ce350920ba502fcc868245/test/tests/ImportIndentation.hs
haskell
^^^^^^ keyword.other.import.haskell ^^^^^^^^^ keyword.other.qualified.haskell ^ entity.name.namespace.haskell ^ entity.name.namespace.haskell ^^^^^^ keyword.other.hiding.haskell ^ entity.name.function.haskell ^ entity.name.function.haskell ^^^ entity.name.f...
SYNTAX TEST " source.haskell " " Indentation in imports " import qualified I as ^^ keyword.other.as.haskell J hiding ( f, A ^ storage.type.haskell , B, g, (:<), ^ storage.type.haskell ...
906eee630400bddd0785eb8c142052eaaffedcffadab2ec97539225cc0ba1f15
smallmelon/sdzmmo
timer_guild.erl
%%%------------------------------------ %%% @Module : timer_guild @Author : shebiao %%% @Email : @Created : 2010.06.24 %%% @Description: 帮派后台定时服务 %%%------------------------------------ -module(timer_guild). -compile(export_all). -include("common.hrl"). -include("record.hrl"). %%===============...
null
https://raw.githubusercontent.com/smallmelon/sdzmmo/254ff430481de474527c0e96202c63fb0d2c29d2/src/timer/timer_guild.erl
erlang
------------------------------------ @Module : timer_guild @Email : @Description: 帮派后台定时服务 ------------------------------------ ========================================================================= 一些定义 ========================================================================= 掉级自动解散处理间隔 每日建设处理间隔...
@Author : shebiao @Created : 2010.06.24 -module(timer_guild). -compile(export_all). -include("common.hrl"). -include("record.hrl"). TODO : 自定义状态 -record(state, {last_handle_expired_disband_time = 0, last_handle_auto_disband_time = 0, last_handle_daily_construction_time = 0}). 过期解散申请处理间隔...