_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
4a5d87069ad4459c49026943b5f5cd4c0752d5b6766f54dc12588d17ac3d28a1
RyanGlScott/eliminators
PolyRecTypes.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module PolyRecTypes where import Data.Kind import Data.Singletons.Base.TH import Internal $(singletons [d| type WeirdList :: Type -> Type data WeirdList a = WeirdNil | ...
null
https://raw.githubusercontent.com/RyanGlScott/eliminators/2e374acc4f451d3efcea240c37e7b165e413639b/tests/PolyRecTypes.hs
haskell
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module PolyRecTypes where import Data.Kind import Data.Singletons.Base.TH import Internal $(singletons [d| type WeirdList :: Type -> Type data WeirdList a = WeirdNil | ...
402b9e6462fccf71cd5992034c2445dcaf0575663e7c64893d5fb0a155a3eb5b
spell-music/csound-expression
Deserted.hs
module Csound.Catalog.Wave.Deserted( simpleMarimba, marimbaWave, phasingSynth, noiz, wind ) where import Csound.Base hiding (ramp, osc') | Simple marimba ( by ) with percussive envelope . -- -- > simpleMarimba noteDur cps simpleMarimba :: D -> Sig -> Sig simpleMarimba xdur = marimbaWave xdur kenv where k...
null
https://raw.githubusercontent.com/spell-music/csound-expression/29c1611172153347b16d0b6b133e4db61a7218d5/csound-catalog/src/Csound/Catalog/Wave/Deserted.hs
haskell
> simpleMarimba noteDur cps > marimba noteDur amp cps | Sound of the wind. ( 50 , 1000 ) ( 0 , 1 ) | > noiz cps |
module Csound.Catalog.Wave.Deserted( simpleMarimba, marimbaWave, phasingSynth, noiz, wind ) where import Csound.Base hiding (ramp, osc') | Simple marimba ( by ) with percussive envelope . simpleMarimba :: D -> Sig -> Sig simpleMarimba xdur = marimbaWave xdur kenv where kenv = expseg [0.0001, 0.03, 1, xdur...
81631004e1c4bf00fda312abfc7e7aa37be2f1b1eb6b7e24132b6a11722c3b98
hercules-ci/hercules-ci-agent
LogEntry.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE PatternSynonyms # module Hercules.API.Logs.LogEntry where import Control.Applicative import qualified Data.Aeson.Types as A import Data.Vector (Vector) import Data.Word (Word64) import Hercules.API.Prelu...
null
https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/f8c69ae32a02e82bc7b113247d0d12393d4bd2e6/hercules-ci-api-agent/src/Hercules/API/Logs/LogEntry.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE PatternSynonyms # module Hercules.API.Logs.LogEntry where import Control.Applicative import qualified Data.Aeson.Types as A import Data.Vector (Vector) import Data.Word (Word64) import Hercules.API.Prelude newtype ActivityId = Activit...
2dfdd8b415618de016a557a76c0c3486dc8ea536e4b6015bf5eee65b686be689
Clojure2D/clojure2d-examples
perlin.clj
(ns rt4.the-rest-of-your-life.ch06c.perlin (:require [fastmath.core :as m] [fastmath.vector :as v] [fastmath.random :as r]) (:import [fastmath.vector Vec3])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defrecord Perlin [ranvec perm-x...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/f47e1655902cc6bf1590aaecc144ac274ed3af66/src/rt4/the_rest_of_your_life/ch06c/perlin.clj
clojure
(ns rt4.the-rest-of-your-life.ch06c.perlin (:require [fastmath.core :as m] [fastmath.vector :as v] [fastmath.random :as r]) (:import [fastmath.vector Vec3])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defrecord Perlin [ranvec perm-x...
06a9fcc00719b4a4cf41a67b09881b45c8c41ca5c66940b189e115fa447c0c7f
nasa/Common-Metadata-Repository
json_query_search_test.clj
(ns cmr.system-int-test.search.json-query-search-test "Integration test for JSON Query specific search issues. General JSON query search tests will be included in other files by condition." (:require [clojure.test :refer :all] [cmr.common.util :as util] [cmr.system-int-test.utils.search-util :as search])...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/a7ee1fd2a2c730e572739b92bdd7bd6c32924d8b/system-int-test/test/cmr/system_int_test/search/json_query_search_test.clj
clojure
(ns cmr.system-int-test.search.json-query-search-test "Integration test for JSON Query specific search issues. General JSON query search tests will be included in other files by condition." (:require [clojure.test :refer :all] [cmr.common.util :as util] [cmr.system-int-test.utils.search-util :as search])...
a27ad70f80c83112db02425571284c5ed63467690cfb84688e761d6eb658a986
nilenso/time-tracker
routes.clj
(ns time-tracker.invited-users.routes (:require [time-tracker.invited-users.handlers :as handlers] [time-tracker.web.middleware :refer [with-rest-middleware]])) (defn routes [] {"" (with-rest-middleware {:get handlers/list-all :post handlers/create})})
null
https://raw.githubusercontent.com/nilenso/time-tracker/054d0dc6d6b89a4ed234d8f0b0a260b6deeef9e3/src/clj/time_tracker/invited_users/routes.clj
clojure
(ns time-tracker.invited-users.routes (:require [time-tracker.invited-users.handlers :as handlers] [time-tracker.web.middleware :refer [with-rest-middleware]])) (defn routes [] {"" (with-rest-middleware {:get handlers/list-all :post handlers/create})})
060313141fb14bc09d4d38a3d71a2bf086b1f9cc61cc59c62adb7baf83d3d33b
rescript-lang/rescript-compiler
bsb_db.ml
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/f25a373f7f42672dc1288c3eb206c476f622b6fa/jscomp/ext/bsb_db.ml
ocaml
* true means upper case intemediate state * indexed by the group
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later...
f9ebbb52ca5d8e0ef2975c437c6d46b4f6a69c38e163a3ffc7f0298f07a65cf2
DavidAlphaFox/RabbitMQ
rabbit_msg_store_ets_index.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_msg_store_ets_index.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
a8e4b71d0bc774e4a1f1f222b371d8b833b8c31fef14fc97ae53a48856f48814
CloudI/CloudI
ranch_tcp.erl
Copyright ( c ) 2011 - 2018 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/CloudI/CloudI/75b93bb0e7dc4734f5cd1ef913788e44b577a3d5/src/external/cloudi_x_ranch/src/ranch_tcp.erl
erlang
Permission to use, copy, modify, and/or 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. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2011 - 2018 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(ranch_tcp). -behaviour(ranch_transport). -ex...
ac5d2e220bb08d34cfc60e39801fdd354c77c52b8e09034645c961d1da4068de
gerritjvv/kafka-fast
schemas.clj
(ns kafka-clj.schemas (:require [schema.core :as s])) (def WORK-UNIT-SCHEMA {:len s/Int, :max-offset s/Int, :offset s/Int, :partition s/Int, (s/optional...
null
https://raw.githubusercontent.com/gerritjvv/kafka-fast/fd149d8744c8100b2a8f4d09f1a251812e7baf6a/kafka-clj/src/kafka_clj/schemas.clj
clojure
define single partition segment maps
(ns kafka-clj.schemas (:require [schema.core :as s])) (def WORK-UNIT-SCHEMA {:len s/Int, :max-offset s/Int, :offset s/Int, :partition s/Int, (s/optional...
2ddcb8c55590a0fcb27f9ae953e9d10c9571332ff3dfb641ee8b4f5a8ee09f31
Bannerets/camlproto
CamlReporter.mli
open! Base val pp_header: Formatter.t -> Logs.level * Logs.src * string option -> unit val reporter: ?app:Formatter.t -> ?dst:Formatter.t -> unit -> Logs.reporter
null
https://raw.githubusercontent.com/Bannerets/camlproto/0b31083b8c0103079ec2881176f63f8cb12abb73/src/camlproto/CamlReporter.mli
ocaml
open! Base val pp_header: Formatter.t -> Logs.level * Logs.src * string option -> unit val reporter: ?app:Formatter.t -> ?dst:Formatter.t -> unit -> Logs.reporter
5a58e8dbc1ac9d98a8639e3ecdfa587a199b1244e0a515b5912ef4c8f37ab5aa
ericfinster/opetopes
complex.ml
(*****************************************************************************) (* *) (* complex.ml - opetopic complexes *) (* *) ...
null
https://raw.githubusercontent.com/ericfinster/opetopes/52c419c913e4e56ac51f10d9142a64d2b5fecda7/lib/complex.ml
ocaml
*************************************************************************** complex.ml - opetopic complexes ****************...
open Idt open Base type 'a cmplx = | Base of 'a nst | Adjoin of 'a cmplx * 'a nst let (~>) n = Base n let (|>) t h = Adjoin (t,h) let rec dim_cmplx (c : 'a cmplx) : int = match c with | Base _ -> 0 | Adjoin (c',_) -> dim_cmplx c' + 1 let is_base (c : 'a cmplx) : bool = match c with | Base _ -> ...
9deeead4a1e727825b6090679d4e99d5738a670382de422683b246956932165f
input-output-hk/hydra
Tx.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DuplicateRecordFields # # LANGUAGE TypeApplications # | Smart constructors for creating Hydra protocol transactions to be used in the ' Hydra . Chain . Direct ' way of talking to the main - chain . -- -- This module also encapsulates the transaction format used when talk...
null
https://raw.githubusercontent.com/input-output-hk/hydra/ad3dd93ae3fcfee1be158a7042157d33d0ccd2ef/hydra-node/src/Hydra/Chain/Direct/Tx.hs
haskell
This module also encapsulates the transaction format used when talking to the cardano-node, which is currently different from the 'Hydra.Ledger.Cardano', thus we have not yet "reached" 'isomorphism'. | Needed on-chain data to create Head transactions. FIXME: sould not be hardcoded * Create Hydra Head transaction...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DuplicateRecordFields # # LANGUAGE TypeApplications # | Smart constructors for creating Hydra protocol transactions to be used in the ' Hydra . Chain . Direct ' way of talking to the main - chain . module Hydra.Chain.Direct.Tx where import Hydra.Cardano.Api import Hydra...
47ab7ec986dd39313ae08c61b25f473b569c8f55c265988b0fdfc3f512804a24
clojure-interop/aws-api
AWSServerlessApplicationRepositoryClient.clj
(ns com.amazonaws.services.serverlessapplicationrepository.AWSServerlessApplicationRepositoryClient "Client for accessing AWSServerlessApplicationRepository. All service calls made using this client are blocking, and will not return until the service call completes. The AWS Serverless Application Repository mak...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.serverlessapplicationrepository/src/com/amazonaws/services/serverlessapplicationrepository/AWSServerlessApplicationRepositoryClient.clj
clojure
(ns com.amazonaws.services.serverlessapplicationrepository.AWSServerlessApplicationRepositoryClient "Client for accessing AWSServerlessApplicationRepository. All service calls made using this client are blocking, and will not return until the service call completes. The AWS Serverless Application Repository mak...
1a33d5d5125228387dba2670bdcd0bb7100849104ef02fcf9c6ea02773ae5a30
panglesd/hockmd
hockmd.mli
* This library is a wrapper around { { : \@hackmd - api / developer - portal } hackmd API } . It provides a module for each version of the protocol , that is currently only the module { ! V1 } to speak the first version of the protocol . {{:\@hackmd-api/developer-portal} hackmd API}. It prov...
null
https://raw.githubusercontent.com/panglesd/hockmd/f6d4754288f7d897dc5187ca9353fcff598a965b/src/hockmd.mli
ocaml
* Type for the users id * Type for the teams id * Another way to reference users, used by some functions * Another way to reference teams, used by some functions * The type for teams * The type for users * How the published document open, for instance ["view"]. Will change shortly to a variant type. * Us...
* This library is a wrapper around { { : \@hackmd - api / developer - portal } hackmd API } . It provides a module for each version of the protocol , that is currently only the module { ! V1 } to speak the first version of the protocol . {{:\@hackmd-api/developer-portal} hackmd API}. It prov...
021b1c1bf761383a6764c32cce22dfbd13f7cc96cd831d4d1b65733332077e09
google/ormolu
record-multi-const-out.hs
module Main where -- | Something. data Foo = Foo { -- | X fooX :: Int , -- | Y fooY :: Int } | Bar { -- | X barX :: Int , -- | Y barY :: Int } deriving (Eq, Show)
null
https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/data/examples/declaration/data/record-multi-const-out.hs
haskell
| Something. | X | Y | X | Y
module Main where data Foo = Foo fooX :: Int fooY :: Int } | Bar barX :: Int barY :: Int } deriving (Eq, Show)
fe953547e475d89c6fdb87385f32448eb4780b72f879564a8bf5c937742c0d8b
spawnfest/eep49ers
ssh_agent_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 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 applicable law ...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/ssh/test/ssh_agent_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 . 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(ssh_agent_SUITE). -include_lib("common_test/include/ct.hrl"). -include("ssh.hrl"). -include("ssh_agent.hrl"). -in...
997fd3546261ca9ac2402364e7b6f2b5bc1b570bae9cd40f1094fbe94155e6d2
cblp/python5
calc.hs
Intuitive Interpretation Calculations are simple with Python , and expression syntax is straightforward : the operators + , - , * and / work as expected ; parentheses ( ) can be used for grouping . # Python 3 : Simple arithmetic > > > 1 / 2 0.5 > > > 2 * * 3 ...
null
https://raw.githubusercontent.com/cblp/python5/897b7bbb7b522fa5653eff10b9ae616a4e01b6ff/examples/calc.hs
haskell
Intuitive Interpretation Calculations are simple with Python , and expression syntax is straightforward : the operators + , - , * and / work as expected ; parentheses ( ) can be used for grouping . # Python 3 : Simple arithmetic > > > 1 / 2 0.5 > > > 2 * * 3 ...
b8dbe0c729875d0e3e99f1cfcb26b76c0482ff163d96eb40ea062df574566b8f
tsloughter/rebar3_tests
multi_app_hooks_sup.erl
%%%------------------------------------------------------------------- %% @doc multi_app_hooks top level supervisor. %% @end %%%------------------------------------------------------------------- -module('multi_app_hooks_sup'). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export(...
null
https://raw.githubusercontent.com/tsloughter/rebar3_tests/090bfef7d3a4790bb6b16e4c38df6e4c0460b4b2/multi_app_hooks/apps/multi_app_hooks/src/multi_app_hooks_sup.erl
erlang
------------------------------------------------------------------- @doc multi_app_hooks top level supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions =======================...
-module('multi_app_hooks_sup'). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). Child : : { Id , StartFunc , Restart , Shutdown , Type , Modules } init([]) -> {ok, { {one_for_all, 0, 1}...
286ec7205e866dd56392c9ee0ef6881a7f812d1f5716e16f17a967e4f3642ab0
janestreet/async_rpc_websocket
test_server_utils.mli
open! Core open! Async open! Import val rpc : (unit, unit) Rpc.Rpc.t val implementations : unit Rpc.Implementations.t val send_websocket_request : port:int -> unit Or_error.t Deferred.t val do_not_perform_global_logging : unit -> unit
null
https://raw.githubusercontent.com/janestreet/async_rpc_websocket/72226870fc364f39411e6c85b86205f35c5d5d84/src/test/test_server_utils.mli
ocaml
open! Core open! Async open! Import val rpc : (unit, unit) Rpc.Rpc.t val implementations : unit Rpc.Implementations.t val send_websocket_request : port:int -> unit Or_error.t Deferred.t val do_not_perform_global_logging : unit -> unit
03c56c46660d5a20953648779d10926901434f134f19727bd25cc0885f68f022
CSVdB/pinky
Reshape.hs
# OPTIONS_GHC -Wno - orphans # module Test.Pinky.Layers.Reshape where import Import import Pinky instance GenUnchecked Reshape instance GenValid Reshape
null
https://raw.githubusercontent.com/CSVdB/pinky/e77a4c0812ceb4b8548c41a7652fb247c2ab39e0/pinky-test-utils/src/Test/Pinky/Layers/Reshape.hs
haskell
# OPTIONS_GHC -Wno - orphans # module Test.Pinky.Layers.Reshape where import Import import Pinky instance GenUnchecked Reshape instance GenValid Reshape
9cbd95713be03e3dfcae7107c5c5b4df49196a47c1d767857d534ae0ecdf4211
arttuka/reagent-material-ui
psychology_alt_sharp.cljs
(ns reagent-mui.icons.psychology-alt-sharp "Imports @mui/icons-material/PsychologyAltSharp 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 psychology-alt-sh...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/psychology_alt_sharp.cljs
clojure
(ns reagent-mui.icons.psychology-alt-sharp "Imports @mui/icons-material/PsychologyAltSharp 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 psychology-alt-sh...
e504fd1cc48bdd5dfe4af1f609741d482d7effb8659245b71832a0b67f9a98d5
eareese/htdp-exercises
036-design-string-first.rkt
#lang htdp/bsl Exercise 36 . Design the function string - first , which extracts the first ; character from a non-empty string. Don’t worry about empty strings. 1 . how to represent information as data the input is some non - empty string , and the output is another string . a character is a string with length ...
null
https://raw.githubusercontent.com/eareese/htdp-exercises/a85ff3111d459dda0e94d9b463d01a09accbf9bf/part01-fixed-size-data/036-design-string-first.rkt
racket
character from a non-empty string. Don’t worry about empty strings. signature String -> String purpose statement non-empty string. header (define (string-first str) "a") String -> String given: "asdf", expect: "a" given: "hello world", expect: "h" (define (string-first str) "a") String -> String given: "as...
#lang htdp/bsl Exercise 36 . Design the function string - first , which extracts the first 1 . how to represent information as data the input is some non - empty string , and the output is another string . a character is a string with length 1 . 2 . signature , purpose statement , function header the func...
d46a0f18afb3cdf6568a66de60695cc0a0323994f389edd80af06e2593584e98
LexiFi/gen_js_api
union_and_enum.ml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] type enum_int = | Enum_int_0 | Enum_int_1 | Enum_int_other of int let rec enum_int_of_js : Ojs.t -> enum_int = fun (x3 : Ojs.t) -> let x4 = x3 in match Ojs.int_of_js x4 with | 0 -> Enum_int_0 | 1 ->...
null
https://raw.githubusercontent.com/LexiFi/gen_js_api/0321048c97ec645adfec18a5b966e0ae4080a043/ppx-test/expected/union_and_enum.ml
ocaml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] type enum_int = | Enum_int_0 | Enum_int_1 | Enum_int_other of int let rec enum_int_of_js : Ojs.t -> enum_int = fun (x3 : Ojs.t) -> let x4 = x3 in match Ojs.int_of_js x4 with | 0 -> Enum_int_0 | 1 ->...
66c816e4634337c5bcb5ffff192768c764e57ffa38adf93170ef086a2a5250f9
GaloisInc/daedalus
Free.hs
module Daedalus.Core.Free where import Data.Maybe (maybeToList) import Data.Set (Set) import qualified Data.Set as Set import Daedalus.Core.Basics import Daedalus.Core.ByteSet import Daedalus.Core.Decl...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/3f180d29441960e35386654ec79a2b205bddc157/daedalus-core/src/Daedalus/Core/Free.hs
haskell
| Compute value-level dependencies | Compute user-defined type dependencies
module Daedalus.Core.Free where import Data.Maybe (maybeToList) import Data.Set (Set) import qualified Data.Set as Set import Daedalus.Core.Basics import Daedalus.Core.ByteSet import Daedalus.Core.Decl...
0ac0a9723e2cd3ada1c60aeb3652490181db76a22c5c14af3d73b83546bc31d8
jaspervdj/planet-wars-haskell
planet-wars-client.hs
module Main where import System.Environment (getArgs) import System.IO (hSetBuffering, stdin, BufferMode(NoBuffering)) import Graphics.UI.Gtk hiding ( eventKeyName, eventButton, eventModifier, Menu, Rectangle, Widget) import Graphics.UI.Gtk.Gdk.Events ( eventX, eventY, eventKeyName, eventButton, eventDirection, e...
null
https://raw.githubusercontent.com/jaspervdj/planet-wars-haskell/83a3e9150a4ee11b5ef13be085191a4ebadf3ba7/planet-wars-client.hs
haskell
-------------------------------------------------------------------- The main program -------------------------------------------------------------------- and dy are wrong. -------------------------------------------------------------------- The main state of the program ---------------------------------------------...
module Main where import System.Environment (getArgs) import System.IO (hSetBuffering, stdin, BufferMode(NoBuffering)) import Graphics.UI.Gtk hiding ( eventKeyName, eventButton, eventModifier, Menu, Rectangle, Widget) import Graphics.UI.Gtk.Gdk.Events ( eventX, eventY, eventKeyName, eventButton, eventDirection, e...
d1dda8078f7efc109fc6f1802185a50f4e142c6d43bfc54b3bdd789ffa50011c
bjorng/esdl
testsprite.erl
Copyright ( c ) 2001 %% See the file "license.terms" for information on usage and redistribution %% of this file, and for a DISCLAIMER OF ALL WARRANTIES. %% %% $Id$ %% %%%---------------------------------------------------------------------- %%% File : testsprite.erl Author : < > %%% Purpose : tes...
null
https://raw.githubusercontent.com/bjorng/esdl/dbd8ce9228aa36828091df2e8706c364094a3e22/test/testsprite.erl
erlang
See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. $Id$ ---------------------------------------------------------------------- File : testsprite.erl Purpose : testing, this code should correspond to the testsprite.c ----------...
Copyright ( c ) 2001 Author : < > in sdl library Created : 26 Jun 2000 by < > -module(testsprite). -author(''). -compile(export_all). -include("sdl.hrl"). -include("sdl_events.hrl"). -include("sdl_video.hrl"). -include("sdl_keyboard.hrl"). -define(NUM_SPRITES, 100). -define(MAX_SPEED, ...
e1cb1b2611928aedc23d1d07704e6dd1ad9dd17cec10bb1bb3a283a779cb57ef
tomhanika/conexp-clj
json.clj
;; Copyright ⓒ the conexp-clj developers; all rights reserved. ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bou...
null
https://raw.githubusercontent.com/tomhanika/conexp-clj/195263bf56ff9ef38e0b71ffe255f3d029bccbef/src/main/clojure/conexp/io/json.clj
clojure
Copyright ⓒ the conexp-clj developers; all rights reserved. The use and distribution terms for this software are covered by the which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not re...
Eclipse Public License 1.0 ( -1.0.php ) (ns conexp.io.json "Provides functionality to read and process json files" (:require [json-schema.core :as json-schema] [clojure.data.json :as json])) (defn- read-schema "Returns the file content as Json object." [file] (json-schema/prepare-schema (...
3f8625edd0e94c5ce08cbb12eadde0930dd3ce79c0d432dd7c4dce307acd3b0d
Knewton/rifactor
Internal.hs
-- Module : Rifactor.Types.Internal Copyright : ( c ) 2015 Knewton , Inc < > ( c ) 2015 < > ( contributor ) License : Apache 2.0 -2.0 Maintainer : < > -- Stability : experimental Portability : non - portable ( GHC extensions ) module Rifactor.Types.Internal where import...
null
https://raw.githubusercontent.com/Knewton/rifactor/58a50e74bd5ed82e6cb3a7fdacd39696f50e0916/src/Rifactor/Types/Internal.hs
haskell
Module : Rifactor.Types.Internal Stability : experimental
Copyright : ( c ) 2015 Knewton , Inc < > ( c ) 2015 < > ( contributor ) License : Apache 2.0 -2.0 Maintainer : < > Portability : non - portable ( GHC extensions ) module Rifactor.Types.Internal where import Data.Aeson.TH (defaultOptions, fieldLabelModifier) import Data.Aeson.T...
b5308c8c50f1f8d187b02050c686518ce99e64176d843abd7608e528c95b2298
toschoo/mom
Sender.hs
module Sender (startSender) where import Types import Factory import Config import qualified Socket as S import State import Queue import Fifo hiding (empty) import qualified Fifo as FIFO (empty) import Exception import qua...
null
https://raw.githubusercontent.com/toschoo/mom/b58ca23d05c98ab50d9e981bd4ad2cdb76846399/src/broker/src/Sender.hs
haskell
module Sender (startSender) where import Types import Factory import Config import qualified Socket as S import State import Queue import Fifo hiding (empty) import qualified Fifo as FIFO (empty) import Exception import qua...
a60c1c9f3b1d852cb0a20f69a93987515f3fee9b9728486321a80af95c8cbe4d
marianoguerra/immutant-recipes
project.clj
(defproject storm-immutant "0.0.1" :source-paths ["src/clj"] :java-source-paths ["src/java"] :aot :all :main storm.immutant.clj.process :dependencies [[storm "0.9.0.1"] [cheshire "5.3.1"] [org.clojure/clojure "1.5.1"] [org.clojure/tools.logging "0.2.6"] ...
null
https://raw.githubusercontent.com/marianoguerra/immutant-recipes/6b05ad77f91826e8613421de5bee337fc1cc65d0/storm-integration/storm/project.clj
clojure
(defproject storm-immutant "0.0.1" :source-paths ["src/clj"] :java-source-paths ["src/java"] :aot :all :main storm.immutant.clj.process :dependencies [[storm "0.9.0.1"] [cheshire "5.3.1"] [org.clojure/clojure "1.5.1"] [org.clojure/tools.logging "0.2.6"] ...
3f0acdf1a70cfcd462380d24cf3d6205fc8f740c4f7defb7fce34bf0193248c6
protz/mezzo
patricia.mli
(*****************************************************************************) (* Mezzo, a programming language based on permissions *) Copyright ( C ) 2011 , 2012 and (* *) (* This program is free softwar...
null
https://raw.githubusercontent.com/protz/mezzo/4e9d917558bd96067437116341b7a6ea02ab9c39/lib/patricia.mli
ocaml
*************************************************************************** Mezzo, a programming language based on permissions This program is free software: you can redistribute it and/or modify (at your optio...
Copyright ( C ) 2011 , 2012 and it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License * This is an implementation of , fol...
bdcfb379b9770e836b30b63f19a1e72a5db2d349674102807815b5278bed96f0
fission-codes/fission
CLI.hs
module Fission.Test.CLI where import Fission.Test.CLI.Prelude spec :: Spec spec = describe "Fission.CLI" do it "runs at all" do 1 `shouldNotBe` 2
null
https://raw.githubusercontent.com/fission-codes/fission/9f28864905c1f39421ec08b05f31d1498770fe38/fission-cli/test/Fission/Test/CLI.hs
haskell
module Fission.Test.CLI where import Fission.Test.CLI.Prelude spec :: Spec spec = describe "Fission.CLI" do it "runs at all" do 1 `shouldNotBe` 2
dcc1a64a5ae409302354f9be2336a6aa80a32b30eb899b60dc940cb4d5c811a7
fakedata-haskell/fakedata
HarryPotter.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE OverloadedStrings #-} module Faker.Movie.HarryPotter where import Data.Text import Faker import Faker.Internal import Faker.Provider.HarryPotter import Faker.TH $(generateFakeField "harryPotter" "characters") $(generateFakeField "harryPotter" "locations") $(generateFakeFie...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/e6fbc16cfa27b2d17aa449ea8140788196ca135b/src/Faker/Movie/HarryPotter.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Movie.HarryPotter where import Data.Text import Faker import Faker.Internal import Faker.Provider.HarryPotter import Faker.TH $(generateFakeField "harryPotter" "characters") $(generateFakeField "harryPotter" "locations") $(generateFakeField "harryPotter" "quotes") $(gener...
ab6c2beea5cd8852dc408595c5a264781caead7f2d402c0cd3c8d5b9675cf5d3
kingcons/clones
util.lisp
(in-package :cl-user) (defpackage :clones.util (:use :cl) (:export #:*standard-optimize-settings* #:enable-sharpf-read-macro #:asset-path #:ub8 #:ub16 #:byte-vector #:make-byte-vector #:wrap-byte #:wrap-word #:flip-b...
null
https://raw.githubusercontent.com/kingcons/clones/a2f7d84ad6a12c0a33b50a453a377a1fb9e3afac/src/util.lisp
lisp
(in-package :cl-user) (defpackage :clones.util (:use :cl) (:export #:*standard-optimize-settings* #:enable-sharpf-read-macro #:asset-path #:ub8 #:ub16 #:byte-vector #:make-byte-vector #:wrap-byte #:wrap-word #:flip-b...
c0133b7112a4bc5721ef05972b8e80a49561a186146ef814cb0168dacab6dbe5
purescript/purescript
Utils.hs
module Language.PureScript.Publish.Utils where import Prelude import System.Directory import System.FilePath.Glob (Pattern, compile, globDir1) -- | Glob relative to the current directory, and produce relative pathnames. globRelative :: Pattern -> IO [FilePath] globRelative pat = getCurrentDirectory >>= globDir1 ...
null
https://raw.githubusercontent.com/purescript/purescript/02bd6ae60bcd18cbfa892f268ef6359d84ed7c9b/src/Language/PureScript/Publish/Utils.hs
haskell
| Glob relative to the current directory, and produce relative pathnames.
module Language.PureScript.Publish.Utils where import Prelude import System.Directory import System.FilePath.Glob (Pattern, compile, globDir1) globRelative :: Pattern -> IO [FilePath] globRelative pat = getCurrentDirectory >>= globDir1 pat | Glob pattern for PureScript source files . purescriptSourceFiles :...
dbf2adddbf8621d3d13d78e5da3265b06d997569b4ef74f34b7cdf682bccf989
ekataglobal/github-changelog
github.clj
(ns github-changelog.github (:require [clj-http.lite.client :as http] [clojure.spec.alpha :as s] [clojure.string :as str] [github-changelog.config :as config] [github-changelog.spec :as spec] [github-changelog.util :as util] [jsonista.core :as j]...
null
https://raw.githubusercontent.com/ekataglobal/github-changelog/29dcaab03407c69584549a79ed449bdddebc1e16/src/github_changelog/github.clj
clojure
(ns github-changelog.github (:require [clj-http.lite.client :as http] [clojure.spec.alpha :as s] [clojure.string :as str] [github-changelog.config :as config] [github-changelog.spec :as spec] [github-changelog.util :as util] [jsonista.core :as j]...
a4abfb0fe773ebc3dde73e35a63a68cdbb7b72a51d9b9266d8d36e77a8b801c9
ivan4th/cl-mqtt
message.lisp
Copyright ( c ) 2015 ;;; ;;; Permission is hereby granted, free of charge, to any person obtaining a copy ;;; of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights ;;; to use, copy, modify, merge, publish, distri...
null
https://raw.githubusercontent.com/ivan4th/cl-mqtt/9e744f144bb9afb43ec399eb8e8f48217dd0dea4/message.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( c ) 2015 in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIAB...
04dd052f0bdd1dcfae669433a26c0e5461fd1f90ffb9bb1fec28d65269b1a8c6
gnarroway/tako
tako_test.clj
(ns tako.tako-test "Core tests" (:require [clojure.test :refer :all] [tako.tako :as t])) (deftest test-load-one (testing "loads one key" (with-open [ld (t/start! identity)] (let [res (t/load-one ld :k)] (is (= :k @res))))) (testing "batches multiple calls" (let [calls (atom [...
null
https://raw.githubusercontent.com/gnarroway/tako/c59bc4a1f3fdeff1ab68bbc6cead86359fb298b8/test/tako/tako_test.clj
clojure
(ns tako.tako-test "Core tests" (:require [clojure.test :refer :all] [tako.tako :as t])) (deftest test-load-one (testing "loads one key" (with-open [ld (t/start! identity)] (let [res (t/load-one ld :k)] (is (= :k @res))))) (testing "batches multiple calls" (let [calls (atom [...
60aab0ff1db2fa42039b0253cfc512dc9732db978d1f194132051c573dccd309
purebred-mua/purebred
Keybindings.hs
-- This file is part of purebred Copyright ( C ) 2018 - 2019 -- -- purebred is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) any later versio...
null
https://raw.githubusercontent.com/purebred-mua/purebred/8473998d796dea121ef879c7f7b119284e1511f1/src/Purebred/UI/FileBrowser/Keybindings.hs
haskell
This file is part of purebred purebred is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ...
Copyright ( C ) 2018 - 2019 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Affero General Public License # LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Pur...
d6a5429481854c22df0d5696e8469e3dc56ede6530ed6baa4d6383f62042a113
dbuenzli/jsonc
location.ml
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/jsonc/b6adf836a2812f25d934e85ba3b6daa5fe77fd14/test-jsonm/location.ml
ocaml
Modeling the location datatype here: as an OCaml abstract data type.
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
d73aae23e8c1684c2b90f6a62640d73a7ca0cc12188a9bbdee2d21858e9600cb
zhugecaomao/AutoLISP
zbpyj-坐标标注.lsp
;;;本文件与bgao.lsp相比,可在用户坐标系下标示选取点的绝对坐标。 技巧:(按一下F8键试试,你可能会有一点惊喜哟 ) ;启动命令为zb (defun c:zb( / p0 pxx pyy px py pp ppp paa pbb alph alf alfa p1 p2 p3 p11 p22 p21) (command"style" "" "" 0 "" "" "" "" "") (setq ucsfl (getvar "ucsfollow")) (setvar "ucsfollow" 0) (setq os (getvar "osmode")) (while (equal h nil) (setq h (getr...
null
https://raw.githubusercontent.com/zhugecaomao/AutoLISP/3e97f911068124f3ea8a1cf6f1d8be9f8227c64b/zbpyj-%E5%9D%90%E6%A0%87%E6%A0%87%E6%B3%A8.lsp
lisp
本文件与bgao.lsp相比,可在用户坐标系下标示选取点的绝对坐标。 启动命令为zb (command "LAYER" "Make" "gaobz" "") 引出点pa 引出点pb 两点间距离 引出两点的弧度alph 求出角度值alf 将多余的线剪掉
技巧:(按一下F8键试试,你可能会有一点惊喜哟 ) (defun c:zb( / p0 pxx pyy px py pp ppp paa pbb alph alf alfa p1 p2 p3 p11 p22 p21) (command"style" "" "" 0 "" "" "" "" "") (setq ucsfl (getvar "ucsfollow")) (setvar "ucsfollow" 0) (setq os (getvar "osmode")) (while (equal h nil) (setq h (getreal "\n 请输入字体高度:")) ) (setvar "osmode"...
688013ee36dc47d3faa7abf515032a28d3da0aa8dcc27e1ba2b9b41718cbc9ad
chicken-mobile/chicken-sdl2-android-builder
joy-hat-event.scm
;; chicken - sdl2 : CHICKEN Scheme bindings to Simple DirectMedia Layer 2 ;; Copyright © 2013 , 2015 - 2016 . ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions ;; are met: ;; ;; - Redistributions...
null
https://raw.githubusercontent.com/chicken-mobile/chicken-sdl2-android-builder/90ef1f0ff667737736f1932e204d29ae615a00c4/eggs/sdl2/lib/sdl2-internals/accessors/events/joy-hat-event.scm
scheme
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. - Redistributio...
chicken - sdl2 : CHICKEN Scheme bindings to Simple DirectMedia Layer 2 Copyright © 2013 , 2015 - 2016 . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT N...
62e9efd7e630ca6b498310a490aaa3732565b3c7ef0c253fffee8520f3fd7f38
quoll/asami
flat_file.clj
(ns ^{:doc "Manages a memory-mapped file that holds write once data" :author "Paula Gearon"} asami.durable.flat-file (:require [clojure.java.io :as io] [clojure.string :as string] [asami.durable.common :refer [Paged refresh! read-byte read-bytes-into read-long ...
null
https://raw.githubusercontent.com/quoll/asami/e2d3b9354ecc2da2f5ba9d139e0ad0e8a95262c0/src/asami/durable/flat_file.clj
clojure
(set! *warn-on-reflection* true) the requested data is not currently mapped, so refresh finds a byte in a region if the bytes straddle regions, then read both bytes and combine into a short Unlike other types, a long is required to exist entirely in a region when the bytes occur entirely in a region, then return ...
(ns ^{:doc "Manages a memory-mapped file that holds write once data" :author "Paula Gearon"} asami.durable.flat-file (:require [clojure.java.io :as io] [clojure.string :as string] [asami.durable.common :refer [Paged refresh! read-byte read-bytes-into read-long ...
b82f1aa9b3ec9768a2d34935ad4d7592d6ed21a6af90c9872e220df06294be06
nilenso/honeysql-postgres
helpers.cljc
(ns honeysql-postgres.helpers (:refer-clojure :exclude [partition-by filter]) (:require [honeysql-postgres.format] [honeysql.helpers :as sqlh #?(:clj :refer :cljs :refer-macros) [defhelper]])) Extension of the honeysql helper functions for postgreSQL (defn do-nothing "Accepts a map and append {:do...
null
https://raw.githubusercontent.com/nilenso/honeysql-postgres/b25aed7f723dff1b478178bd1e1bc9c3be9bfc1b/src/honeysql_postgres/helpers.cljc
clojure
(ns honeysql-postgres.helpers (:refer-clojure :exclude [partition-by filter]) (:require [honeysql-postgres.format] [honeysql.helpers :as sqlh #?(:clj :refer :cljs :refer-macros) [defhelper]])) Extension of the honeysql helper functions for postgreSQL (defn do-nothing "Accepts a map and append {:do...
9108ad9c0c8fcfbf756b694ca6f328cb4489126cd6c21870dc78fbf6bce30553
xsc/claro
manifold.clj
(ns claro.runtime.impl.manifold (:require [manifold.deferred :as d])) (def impl {:deferrable? d/deferrable? :deferred? d/deferred? :->deferred d/->deferred :value d/success-deferred :chain #(apply d/chain % %2) :catch d/catch :zip #(apply d/zip %) :run #(d/...
null
https://raw.githubusercontent.com/xsc/claro/16db75b7a775a14f3b656362e8ee4f65dd8b0d49/src/claro/runtime/impl/manifold.clj
clojure
(ns claro.runtime.impl.manifold (:require [manifold.deferred :as d])) (def impl {:deferrable? d/deferrable? :deferred? d/deferred? :->deferred d/->deferred :value d/success-deferred :chain #(apply d/chain % %2) :catch d/catch :zip #(apply d/zip %) :run #(d/...
1449240adea7e1bf808d6dba3d4f9461a72b76e35cfb5dc7edbc30df57c65595
theodormoroianu/SecondYearCourses
HaskellChurchMonad_20210415134825.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_20210415134825.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 . An instance to show CPairs as regular pairs . builds a pair out of two val...
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...
3c6ddc6176449ed639a1b1fcc2583664e3f82ee7176e6561893f89abe881e3f5
zack-bitcoin/chalang
compiler_lisp3.erl
-module(compiler_lisp3). -export([test1/0, test2/1]). test1() -> F = "lisp.yrl", yecc:file(F). test2(S) -> %c("language.erl"), {ok, P, N} = erl_scan:string(S), lisp:parse(P).
null
https://raw.githubusercontent.com/zack-bitcoin/chalang/a728e6bb9a60ac6eca189ee7d6873a891825fa9a/src/compiler_lisp3.erl
erlang
c("language.erl"),
-module(compiler_lisp3). -export([test1/0, test2/1]). test1() -> F = "lisp.yrl", yecc:file(F). test2(S) -> {ok, P, N} = erl_scan:string(S), lisp:parse(P).
af5e1eaecb06e2937f738cc6ed4c37e1861481bc2168452ff6d8aff59d039b17
xxyzz/SICP
Exercise_1_28.rkt
#lang racket/base (define (square x) (* x x)) (define (expmod base exp m) (cond [(= exp 0) 1] [(even? exp) (check-nontrivial-root (expmod base (/ exp 2) m) m)] [else (remainder (* base (expmod base (- exp 1) m)) m)])) (define (check-nontrivi...
null
https://raw.githubusercontent.com/xxyzz/SICP/e26aea1c58fd896297dbf5406f7fcd32bb4f8f78/1_Building_Abstractions_with_Procedures/1.2_Procedures_and_the_Processes_They_Generate/Exercise_1_28.rkt
racket
#t #f #f #f #f #f #f #f
#lang racket/base (define (square x) (* x x)) (define (expmod base exp m) (cond [(= exp 0) 1] [(even? exp) (check-nontrivial-root (expmod base (/ exp 2) m) m)] [else (remainder (* base (expmod base (- exp 1) m)) m)])) (define (check-nontrivi...
b338a35623c4389da56652ec403de2bc6623806a7a8cea429431401f81e73af2
geophf/1HaskellADay
Exercise.hs
module Y2016.M12.D21.Exercise where import Data.Array -- below imports available via @1HaskellADay git repository import Data.SAIPE.USStates import Data.SAIPE.USCounties import Graph.ScoreCard import Graph.KMeans - So , now that we have the US county data , and as ScoreCard values . Cluster these data . - S...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2016/M12/D21/Exercise.hs
haskell
below imports available via @1HaskellADay git repository } }
module Y2016.M12.D21.Exercise where import Data.Array import Data.SAIPE.USStates import Data.SAIPE.USCounties import Graph.ScoreCard import Graph.KMeans - So , now that we have the US county data , and as ScoreCard values . Cluster these data . - So, now that we have the US county data, and as ScoreCard val...
4813eab9d769891ad3fabbd7f268f7d89bd6186da2fa54af1ef59d24ce132c59
Mushy-pea/Game-Dangerous
ImportModel.hs
Game : : Dangerous code by . You are free to use this software and view its source code . -- If you wish to redistribute it or use it as part of your own work, this is permitted as long as you acknowledge the work is by the abovementioned author. -- This is a development tool that transforms a simplified form of...
null
https://raw.githubusercontent.com/Mushy-pea/Game-Dangerous/f77bb6b9606dc326e89ab5b91abec978b0018898/app/ImportModel.hs
haskell
If you wish to redistribute it or use it as part of your own work, this is permitted as long as you acknowledge the work is by the abovementioned author. This is a development tool that transforms a simplified form of the OBJ file format into the model import format used by the engine.
Game : : Dangerous code by . You are free to use this software and view its source code . module Main where import System.IO import System.IO.Unsafe import System.Environment import Data.List import Data.List.Split import Control.Exception data Model = Model {vertex :: [[Char]], tex_coord :: [[Char]], normal ...
483cf96821c7e953af718f4aba93b2d6e6c2c659ba20e6c7cf3781731006adfa
kztk-m/sparcl
Desugar.hs
{-# LANGUAGE ConstraintKinds #-} module Language.Sparcl.Desugar ( desugarExp, desugarTopDecls, runDesugar ) where import Data.Function (on) import Data.List (groupBy) import Data.Void import Control.Monad.Reader import Contr...
null
https://raw.githubusercontent.com/kztk-m/sparcl/b96380b547efeb342a200a3f8604b5edd8a9df39/src/Language/Sparcl/Desugar.hs
haskell
# LANGUAGE ConstraintKinds # import Debug.Trace de Brujin levels go (S.Con (c,_ty) es) = C.Con c <$> mapM desugarExp es Removes apparent eta-redex. subst n e1 e | Untouched a deriving Functor returned a holed expression if so. | CPBang CPat | 'separatePat' sepa...
module Language.Sparcl.Desugar ( desugarExp, desugarTopDecls, runDesugar ) where import Data.Function (on) import Data.List (groupBy) import Data.Void import Control.Monad.Reader import Control.Monad.State import ...
8a37a40b34594f1ce8014d9386f56ec2248539904021063d6b1a5a6af70e87f2
brendanhay/amazonka
ModifyWorkspaceAccessProperties.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workspaces/gen/Amazonka/WorkSpaces/ModifyWorkspaceAccessProperties.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WorkSpaces.ModifyWorkspaceAccessProperties Stability : auto-generated Specifies which devices and operating systems users can use to access their WorkSpaces. For more information, see <-directory-details.html#control-device-access ...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
c07c9f1e77ecd319df5ed6980cc183ea3b8bd53545aafafce4b97277d20635ae
halturin/mx
mx_broker.erl
Copyright ( C ) 2015 < > %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights %% to use, copy, modify, merge, publish, distr...
null
https://raw.githubusercontent.com/halturin/mx/4ccce0f7233aea255576b9d01c0114d5ab4b199f/src/mx_broker.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( C ) 2015 < > in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR ...
d47ea0069fff23d26b3b1e2358be7ebae68ff0c978d59a8121cd1d7f629d3eab
multunus/dashboard-clj
core.cljs
(ns dashboard-clj.core (:require-macros [reagent.ratom :refer [reaction]] [cljs.core.async.macros :as asyncm :refer (go go-loop)]) (:require [reagent.core :as r :refer [atom]] [cljs.core.async :as async :refer (<! >! put! chan)] [taoensso.sente :as sente :refer (cb-succes...
null
https://raw.githubusercontent.com/multunus/dashboard-clj/14ec30d6eb4a2fdbaadfec52beb572f250b0c781/src/cljs/dashboard_clj/core.cljs
clojure
(ns dashboard-clj.core (:require-macros [reagent.ratom :refer [reaction]] [cljs.core.async.macros :as asyncm :refer (go go-loop)]) (:require [reagent.core :as r :refer [atom]] [cljs.core.async :as async :refer (<! >! put! chan)] [taoensso.sente :as sente :refer (cb-succes...
e2f1b0d8e13fa87c18c3a39a116183a8e27e8d57abb51320ba1fdcbf362f7980
gheber/kenzo
simplicial-sets.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 - * ;;; SIMPLICIAL-SETS SIMPLICIAL-SETS SIMPLICIAL-SETS ;;; SIMPLICIAL-SETS SIMPLICIAL-SETS SIMPLICIAL-SETS ;;; SIMPLICIAL-SETS SIMPLICIAL-SETS SIMPLICIAL-SETS (IN-PACKAGE #:cat-7) (PROVIDE "simplicial-sets") (DEFUN DGOP-EXT-INT (ext-dgop) (d...
null
https://raw.githubusercontent.com/gheber/kenzo/48e2ea398b80f39d3b5954157a7df57e07a362d7/src/kenzo-7/simplicial-sets.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 - * SIMPLICIAL-SETS SIMPLICIAL-SETS SIMPLICIAL-SETS SIMPLICIAL-SETS SIMPLICIAL-SETS SIMPLICIAL-SETS SIMPLICIAL-SETS SIMPLICIAL-SETS SIMPLICIAL-SETS (list fixnum) this function makes sense only in the simplicial context (list fixnum) 1dlop is an ordinary fixnum ...
(IN-PACKAGE #:cat-7) (PROVIDE "simplicial-sets") (DEFUN DGOP-EXT-INT (ext-dgop) (declare (list ext-dgop)) (when ext-dgop (unless (apply #'> ext-dgop) (error "In DGOP-EXT-INT, the external dgop ~A is not decreasing." ext-dgop))) (the fixnum (apply #'logxor (mapcar #'(l...
e1eedd46fe2cf18804b9e842d2afff16dcca08b1c3fa4a532e613b0fa3d22bf8
YoshikuniJujo/funpaala
trans.hs
import Data.Char (chr, ord) addUnitArg :: a -> (() -> a) addUnitArg v = \() -> v delUnitArg :: (() -> a) -> a delUnitArg f = f () addUnitTup :: a -> (a, ()) addUnitTup v = (v , ()) delUnitTup :: (a, ()) -> a delUnitTup = fst eight :: (Integer -> a) -> a eight f = f 8 eight = ($ 8) valToFun :: a -> ((a -> b) -> ...
null
https://raw.githubusercontent.com/YoshikuniJujo/funpaala/5366130826da0e6b1180992dfff94c4a634cda99/samples/31_trans/trans.hs
haskell
delArg :: ((b -> b) -> b -> c) -> b -> c delArg fun = fun id delArg2 :: ((b -> b) -> c -> (b -> d)) -> b -> c -> d delArg2 f = flip $ f id
import Data.Char (chr, ord) addUnitArg :: a -> (() -> a) addUnitArg v = \() -> v delUnitArg :: (() -> a) -> a delUnitArg f = f () addUnitTup :: a -> (a, ()) addUnitTup v = (v , ()) delUnitTup :: (a, ()) -> a delUnitTup = fst eight :: (Integer -> a) -> a eight f = f 8 eight = ($ 8) valToFun :: a -> ((a -> b) -> ...
819c3b95711317b2451a9084a63d8f81289073223e8957c5905e0edfcf9e13d0
ksseono/the-joy-of-clojure
reducibles.clj
(ns joy.reducibles) ;; Listing 15.11 ;; (defn empty-range? [start end step] (or (and (pos? step) (>= start end)) (and (neg? step) (<= start end)))) (defn lazy-range [i end step] (lazy-seq (if (empty-range? i end step) nil (cons i (lazy-range (+ i step) end step)))...
null
https://raw.githubusercontent.com/ksseono/the-joy-of-clojure/4fee3fb2750236b85b59ae9d7a83e0929040e4f0/src/clj/ch15/joy/reducibles.clj
clojure
=> [0 1 2 3 4] => [0 4 6 8] => [0 2 3 4] => [0 1 3 4] => [0 1 3 4] Measuring Performance Listing 15.17 => [0 1 3 4] => [0 1 3 4] => 0 monoid => [0 1 2 3 4 5 6 7 8 9] => (0 2 4 6 8)
(ns joy.reducibles) Listing 15.11 (defn empty-range? [start end step] (or (and (pos? step) (>= start end)) (and (neg? step) (<= start end)))) (defn lazy-range [i end step] (lazy-seq (if (empty-range? i end step) nil (cons i (lazy-range (+ i step) end step))))) (c...
eedf50573a897c88b7b2671eb377f8b3dbd69069dcbedf36ba52a494d079bb90
broom-lang/broom
Typing.ml
open Streaming open Asserts module TS = TyperSigs module Make (Env : TS.ENV) (ExpandPats : TS.EXPAND_PATS with type env = Env.t) (K : TS.KINDING with type env = Env.t) (M : TS.MATCHING with type env = Env.t) : TS.TYPING with type env = Env.t = struct module AExpr = Ast.Term.Expr module FExpr = Fc.Ter...
null
https://raw.githubusercontent.com/broom-lang/broom/36d4d9ae234a16bc4da287eef751e9447705ee58/compiler_prev/lib/Typechecker/Typing.ml
ocaml
# Synthesis forall a . () -> __cell a forall a . (__cell a, a) -> () forall a . __cell a -> a FIXME: Enforce argument purity NOTE: effect does not matter any more... NOTE: effect does not matter any more... NOTE: effect does not matter any more... NOTE: effect does not matter any more... OPTIMIZE: Fi...
open Streaming open Asserts module TS = TyperSigs module Make (Env : TS.ENV) (ExpandPats : TS.EXPAND_PATS with type env = Env.t) (K : TS.KINDING with type env = Env.t) (M : TS.MATCHING with type env = Env.t) : TS.TYPING with type env = Env.t = struct module AExpr = Ast.Term.Expr module FExpr = Fc.Ter...
34193c3931d9b12b536f54585623d89f957221009b95a80d67c57f8731934dec
mstksg/advent-of-code-2019
Solver.hs
-- | Module : AOC.Solver -- Copyright : (c) Justin Le 2018 -- License : BSD3 -- Maintainer : -- Stability : experimental -- Portability : non-portable -- -- Types to drive the challenge runner and help speed up/clean up -- solutions. -- module AOC.Solver ( (:~>)(..) , withSolver, withSolver'...
null
https://raw.githubusercontent.com/mstksg/advent-of-code-2019/df2b1c76ad26ad20306f705e923a09b14d538374/src/AOC/Solver.hs
haskell
| Copyright : (c) Justin Le 2018 License : BSD3 Stability : experimental Portability : non-portable Types to drive the challenge runner and help speed up/clean up solutions. | Abstracting over the type of a challenge solver to help with cleaner solutions. Consists of a parser, a shower, and a sol...
Module : AOC.Solver Maintainer : module AOC.Solver ( (:~>)(..) , withSolver, withSolver' , SomeSolution(.., MkSomeSol) , SolutionError(..) , runSolution , runSomeSolution , ssIsNF * ' ' , runSolutionWith , runSomeSolutionWith , dyno , dyno_ ) where import AOC.Util i...
f5d9c6fed4280500619fe2e9a7e78d9b7f9cc28acf02a4e153c52ad36a36b883
ohpauleez/themis
validators.clj
(ns themis.validators) ;; Handling Responses ;; ------------------- ;; Responses can come from three places : ;; ;; * The `:response` value in an opt-map ;; * Some response passed into validator directly ;; * The value of `*default-response*` # # # Why the ` * default - response * ` ? ;; ;; Often times in vali...
null
https://raw.githubusercontent.com/ohpauleez/themis/4d3fb3ccf5911c16148b2f1221af4e708dcd34b4/src/themis/validators.clj
clojure
Handling Responses ------------------- * The `:response` value in an opt-map * Some response passed into validator directly * The value of `*default-response*` Often times in validation, you want the base case to fit some representation. Most often this is `nil`, but perhaps your application uses some sp...
(ns themis.validators) Responses can come from three places : # # # Why the ` * default - response * ` ? (def ^:dynamic *default-response* nil) One of the key benefits in Themis is being able to use all of Clojure 's built - in functions as " validators " (defn response The value of :response in the opt-m...
201f952857974ef8935061a4b76ab0359ca1a42f60a4eb5bdcf2de2779d234de
dyzsr/ocaml-selectml
typedecl_unboxed.mli
(**************************************************************************) (* *) (* OCaml *) (* *) , proj...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/typing/typedecl_unboxed.mli
ocaml
************************************************************************ OCaml ...
, projet , INRIA Saclay , projet Deducteam , INRIA Saclay Copyright 2018 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Types val get_unboxed_type_representation: Env.t ...
4447af0265da4dba06d7e004b0d772cd1cce1b120178d5c592e601c39f3439ec
japonophile/synaptic
net_test.clj
(ns synaptic.net-test (:require [clojure.test :refer :all] [synaptic.net :refer :all] [synaptic.mlp :refer [mlp]] [synaptic.util :refer :all] [clatrix.core :as m])) (deftest test-layer-units (let [layers1 (instrument-layers [{:type :input :fieldsiz...
null
https://raw.githubusercontent.com/japonophile/synaptic/2739c4f37cb37fb2a93589f985823a1fcd4d7eb9/test/synaptic/net_test.clj
clojure
(ns synaptic.net-test (:require [clojure.test :refer :all] [synaptic.net :refer :all] [synaptic.mlp :refer [mlp]] [synaptic.util :refer :all] [clatrix.core :as m])) (deftest test-layer-units (let [layers1 (instrument-layers [{:type :input :fieldsiz...
8dc148d94dca03ef7e8b25c1c6ef11873a3b1f393a625243ff2ecc8a6146dd46
softwarelanguageslab/maf
matrix.scm
Changed representation of chez - box . ( source : " test / R5RS / gambit / matrix.scm " ) (define (map2 f l1 l2) (if (or (null? l1) (null? l2)) '() (if (and (pair? l1) (pair? l2)) (cons (f (car l1) (car l2)) (map2 f (cdr l1) (cdr l2))) (error "Cannot map2 over a non-list")))) MATR...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/44c2bcf6d14b766625e44b7647473b02648fcb03/test/changes/scheme/matrix.scm
scheme
Chez-Scheme compatibility stuff:
Changed representation of chez - box . ( source : " test / R5RS / gambit / matrix.scm " ) (define (map2 f l1 l2) (if (or (null? l1) (null? l2)) '() (if (and (pair? l1) (pair? l2)) (cons (f (car l1) (car l2)) (map2 f (cdr l1) (cdr l2))) (error "Cannot map2 over a non-list")))) MATR...
7a21a2b67ae3daf2f205e54c09cb7b003e5b6fea66ac9a25f47ddf4a6eba6a4a
TerrorJack/ghc-alter
readDouble001.hs
main :: IO () main = do f "Infinity" f "-Infinity" f " - Infinity " f "NaN" f "-NaN" f " - NaN " f :: String -> IO () f str = print (reads str :: [(Double, String)])
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/tests/readDouble001.hs
haskell
main :: IO () main = do f "Infinity" f "-Infinity" f " - Infinity " f "NaN" f "-NaN" f " - NaN " f :: String -> IO () f str = print (reads str :: [(Double, String)])
67e2d8afa01ab0ef29568047923a4405d8804211f8d8b7e4662cd73fcb6f3b51
Tim-ats-d/Suricate
formatter.ml
type t = Log.t -> string
null
https://raw.githubusercontent.com/Tim-ats-d/Suricate/bef2bbc8f3cd4420213e6263e3e15a0fe90edb29/lib/formatter.ml
ocaml
type t = Log.t -> string
c9f2b3ff1050f4477f52daa55bdb56c3a886b92a61b333d67f144a1d4a20e543
philnguyen/soft-contract
length.rkt
#lang racket (require soft-contract/fake-contract) (define (len xs) (if (empty? xs) 0 (+ 1 (len (cdr xs))))) (provide/contract [len (->i ([l #|HERE|# any/c]) (res (l) (and/c integer? (>=/c 0))))])
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/unsafe/softy/length.rkt
racket
HERE
#lang racket (require soft-contract/fake-contract) (define (len xs) (if (empty? xs) 0 (+ 1 (len (cdr xs))))) (provide/contract
8e4092a71ba1aa5c78e313abf1a31a6d99fee8156c522ee50958ddbdc3cf0fd8
LambdaHack/LambdaHack
WatchUpdAtomicM.hs
-- | Display atomic update commands received by the client. module Game.LambdaHack.Client.UI.Watch.WatchUpdAtomicM ( watchRespUpdAtomicUI #ifdef EXPOSE_INTERNAL -- * Internal operations , assignItemRole, Threat, createActorUI, destroyActorUI, spotItemBag , recordItemLid, moveActor, displaceActorUI, moveItemUI...
null
https://raw.githubusercontent.com/LambdaHack/LambdaHack/e988fafc52a762d5471a133fe9896adf5f277c03/engine-src/Game/LambdaHack/Client/UI/Watch/WatchUpdAtomicM.hs
haskell
| Display atomic update commands received by the client. * Internal operations | Visualize atomic updates sent to the client. This is done in the global state after the command is executed and after the client state is modified by the command. Doesn't modify client state (except a few fields), but only client se...
module Game.LambdaHack.Client.UI.Watch.WatchUpdAtomicM ( watchRespUpdAtomicUI #ifdef EXPOSE_INTERNAL , assignItemRole, Threat, createActorUI, destroyActorUI, spotItemBag , recordItemLid, moveActor, displaceActorUI, moveItemUI , discover, ppHearMsg, ppHearDistanceAdjective, ppHearDistanceAdverb #endif ) where ...
9ad37ee249353d36af26dc0b51a7181c2d2b1e10e5deeb9e26f37cc03497ba42
janestreet/core
fn_for_testing.ml
open Core module type S = sig type t [@@deriving sexp_of, compare] end module type Examples = sig type t val examples : t list end module Make (Input : S) (Output : S) (Examples : Examples with type t := Input.t) = struct open Examples type t = Input.t -> Output.t let to_alist f = List.map examples ~f...
null
https://raw.githubusercontent.com/janestreet/core/4b6635d206f7adcfac8324820d246299d6f572fe/core/test/fn_for_testing.ml
ocaml
open Core module type S = sig type t [@@deriving sexp_of, compare] end module type Examples = sig type t val examples : t list end module Make (Input : S) (Output : S) (Examples : Examples with type t := Input.t) = struct open Examples type t = Input.t -> Output.t let to_alist f = List.map examples ~f...
b2a240b1cd932bb748dd702c5f532e614623ce224f22177a4e4050bdb06468cf
evertedsphere/noether
TypeFu.hs
module Noether.Lemmata.TypeFu ( module X , type ($$>) ) where import GHC.Exts as X import GHC.Prim as X import GHC.TypeLits as X import Data.Coerce as X import Data.Proxy as X import Data.Kind as X hid...
null
https://raw.githubusercontent.com/evertedsphere/noether/c4223f64b9df5b0dbbeec1fea726bfff7f5810f5/library/Noether/Lemmata/TypeFu.hs
haskell
module Noether.Lemmata.TypeFu ( module X , type ($$>) ) where import GHC.Exts as X import GHC.Prim as X import GHC.TypeLits as X import Data.Coerce as X import Data.Proxy as X import Data.Kind as X hid...
a8c012d88e193eafed10e5f31ce584ba90957b4abbc4ef2aad77d3d010b374f7
sdiehl/kaleidoscope
Main.hs
module Main where import Parser import Codegen import Emit import Control.Monad.Trans import System.IO import System.Environment import System.Console.Haskeline import qualified LLVM.AST as AST initModule :: AST.Module initModule = emptyModule "my cool jit" process :: AST.Module -> String -> IO (Maybe AST.Module)...
null
https://raw.githubusercontent.com/sdiehl/kaleidoscope/682bdafe6d8f90caca4cdd0adb30bd3ebd9eff7b/src/chapter6/Main.hs
haskell
module Main where import Parser import Codegen import Emit import Control.Monad.Trans import System.IO import System.Environment import System.Console.Haskeline import qualified LLVM.AST as AST initModule :: AST.Module initModule = emptyModule "my cool jit" process :: AST.Module -> String -> IO (Maybe AST.Module)...
ddadb60e51080e6a3c99ea60f0fde1b88fcd6e62233b4c3ae2a69e4aeb5f938c
gyanaggarwal/erlang_crdt
ec_data_manager.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright ( c ) 2016 . All Rights Reserved . %% This file is provided ...
null
https://raw.githubusercontent.com/gyanaggarwal/erlang_crdt/e3f025027a177dfde08214dd2e57e10da52f340a/src/ec_data_manager.erl
erlang
Version 2.0 (the "License"); you may not use this file a copy of the License at ...
Copyright ( c ) 2016 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software di...
1f77fdac1c88d4e3556d3e9fd9e9b1eb05b31e1d3bcdefc6b7d324fe211bb7ed
incoherentsoftware/defect-process
WallProjectile.hs
module Enemy.All.Boss.WallProjectile ( mkWallProjectile ) where import Control.Monad.IO.Class (MonadIO) import Data.Maybe (fromMaybe) import qualified Data.Set as S import Attack import Collision import Constants import FileCache import Id import Msg import Particle.All.Simple import Projectile as...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Enemy/All/Boss/WallProjectile.hs
haskell
module Enemy.All.Boss.WallProjectile ( mkWallProjectile ) where import Control.Monad.IO.Class (MonadIO) import Data.Maybe (fromMaybe) import qualified Data.Set as S import Attack import Collision import Constants import FileCache import Id import Msg import Particle.All.Simple import Projectile as...
68274495c586813b261d35cccd7ad9a839b5556e0a1e232de32f93a63e71265d
camfort/camfort
Synthesis.hs
Copyright 2016 , , , , under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software distribute...
null
https://raw.githubusercontent.com/camfort/camfort/3421e85f6fbbcaa6503a266b3fae029a09d2ff24/src/Camfort/Specification/Units/Synthesis.hs
haskell
descendBiM finds the head of lists Should be invoked on the beginning of a list of blocks Process an individual block while building up a list of blocks (in reverse order) to ultimately replace the original list of blocks. We're looking for blocks containing declarations, in particular, in order to possibly inser...
Copyright 2016 , , , , under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software distribute...
2ab532631e4dcf3d62a6d356903fdc3e72285dc760bb7001e7db1b4699af1e2d
zero-one-group/geni-performance-benchmark
data.clj
(ns geni.data (:require [zero-one.geni.core :as g])) (def data-path "/data/performance-benchmark-data") (def skeleton-df (g/cache (g/table->dataset (repeat (int 2e6) [1]) [:dummy]))) (defn transaction-id-col [] (g/concat (g/str (g/random-int)) (g/lit "-") (g/str (g/random-int)) ...
null
https://raw.githubusercontent.com/zero-one-group/geni-performance-benchmark/ea3d92c69d78335e3e4d5f9d6772cb3e9c10b6b7/geni/src/geni/data.clj
clojure
(ns geni.data (:require [zero-one.geni.core :as g])) (def data-path "/data/performance-benchmark-data") (def skeleton-df (g/cache (g/table->dataset (repeat (int 2e6) [1]) [:dummy]))) (defn transaction-id-col [] (g/concat (g/str (g/random-int)) (g/lit "-") (g/str (g/random-int)) ...
71b1ba7327068427b3be30697e20474c5733ee206c4c84d7aabcb0be4b450627
webyrd/n-grams-for-synthesis
test-0001-MIT-Scheme.scm
;; srfi-48 format test for MIT / GNU Scheme ;; (define (x->number x) (cond ((number? x) x) ((string? x) (string->number x)) (else (error "x->number error")))) (define (nearly=? a b) (let* ((a1 (x->number a)) (b1 (x->number b)) (e1 (abs (- a1 b1)))) ( format # t " ( a1 = ~s , b1 = ~s ,...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-48/test/test-0001-MIT-Scheme.scm
scheme
" .333" OK ; " 32.0 " OK ; ok . converted in input to 3200000.0 ; " 3200.0 " OK (expect " 3.2e6" (format "~8F" 32e5)) incorrect mutation of literal list in example (expect "+inf.0" (format "~F" +inf.0)) (expect "-inf.0" (format "~F" -inf.0)) (expect "+inf.0" (format "~1F" +inf.0)) (expect ...
srfi-48 format test for MIT / GNU Scheme (define (x->number x) (cond ((number? x) x) ((string? x) (string->number x)) (else (error "x->number error")))) (define (nearly=? a b) (let* ((a1 (x->number a)) (b1 (x->number b)) (e1 (abs (- a1 b1)))) ( format # t " ( a1 = ~s , b1 = ~s , e1 = ...
db07a6b5f3205de2ada9c8037bad8cd2082bb14be1ecf5da765109fa4db8b292
deech/cabal-auto-expose
Internal.hs
module Lib.Internal.Internal where
null
https://raw.githubusercontent.com/deech/cabal-auto-expose/0e642c66c143d45012b611b94796bbbe175cdf0f/auto-expose-example-project/src/Lib/Internal/Internal.hs
haskell
module Lib.Internal.Internal where
7eb937b6b48268a6d69a9a2111d8bab5514cdadd95c5b7c5511fb15bb97a619f
UnkindPartition/tasty
ConsoleFormat.hs
-- | This module can be used by providers to perform colorful/formatted -- output and possibly re-use tasty's own output formats. -- -- @since 1.3.1 module Test.Tasty.Providers.ConsoleFormat ( ResultDetailsPrinter(..) , ConsoleFormat(..) , ConsoleFormatPrinter , noResultDetails , failFormat , infoFailFormat...
null
https://raw.githubusercontent.com/UnkindPartition/tasty/0debac85701560e8c96cd3705988c50197cb214e/core/Test/Tasty/Providers/ConsoleFormat.hs
haskell
| This module can be used by providers to perform colorful/formatted output and possibly re-use tasty's own output formats. @since 1.3.1 | Console output format @since 1.3.1 | Type of console format printer functions @since 1.3.1 ^ selected console format ^ action to be executed with active console format ...
module Test.Tasty.Providers.ConsoleFormat ( ResultDetailsPrinter(..) , ConsoleFormat(..) , ConsoleFormatPrinter , noResultDetails , failFormat , infoFailFormat , infoOkFormat , okFormat , skippedFormat ) where import System.Console.ANSI data ConsoleFormat = ConsoleFormat { consoleIntensity :: Co...
8b703651917cbb9398a5d09e41b287b14a475e4f768159341a1903bcda9cda5d
tisnik/clojure-examples
project.clj
; ( C ) Copyright 2016 , 2020 , 2021 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (defproject stream-pipe-5 "0....
null
https://raw.githubusercontent.com/tisnik/clojure-examples/a9976a44f4cdc332bf4e0ed7d9fbbef1a4b74523/kafka-stream-pipe-5/project.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2016 , 2020 , 2021 -v10.html (defproject stream-pipe-5 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.1"] ...
cbae0caeec183ccd7c9249a289a6fb8d41cb6247dd249cfa1572c1dbee887fd2
facebook/flow
provider_api.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/2cd54bfc70898f3643ed176be52b2ebaa8ce62fb/src/analysis/env_builder/provider_api.ml
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
76b97ad2f7340b84e439a2ef5a758e16e84de49d9fb770d85f2f2144e9836ce5
gstew5/snarkl
Dataflow.hs
module Dataflow ( remove_unreachable ) where import Data.List (foldl') import Data.Set (Set) import qualified Data.Set as Set import Data.IntMap.Lazy (IntMap) import qualified Data.IntMap.Lazy as Map import Control.Monad.State import Common import Constraints number_constraints :: Constra...
null
https://raw.githubusercontent.com/gstew5/snarkl/d6ce72b13e370d2965bb226f28a1135269e7c198/src/Dataflow.hs
haskell
|Map variables to the indices of the constraints in which the vars appear. ^ ConstraintId->Constraint ^ Roots to explore
module Dataflow ( remove_unreachable ) where import Data.List (foldl') import Data.Set (Set) import qualified Data.Set as Set import Data.IntMap.Lazy (IntMap) import qualified Data.IntMap.Lazy as Map import Control.Monad.State import Common import Constraints number_constraints :: Constra...
b18202ade6b0307bfad12cd71b7e57b2e48c612c5616a757ef3eb9218a5b101c
ekmett/succinct
Decoding.hs
# LANGUAGE CPP # {-# LANGUAGE RankNTypes #-} # LANGUAGE NoMonomorphismRestriction # ----------------------------------------------------------------------------- -- | Copyright : ( C ) 2013 - 15 -- License : BSD-style (see the file LICENSE) Maintainer : < > -- Stability : experimental -- Porta...
null
https://raw.githubusercontent.com/ekmett/succinct/7e884138c2e943f5ca08f56b58b409d08b870ab9/src/Succinct/Internal/Decoding.hs
haskell
# LANGUAGE RankNTypes # --------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable --------------------------------------------------------------------------- # INLINE (<*>) # # INLINE (>>=) #...
# LANGUAGE CPP # # LANGUAGE NoMonomorphismRestriction # Copyright : ( C ) 2013 - 15 Maintainer : < > module Succinct.Internal.Decoding ( Decoding(..) , runDecoding , skip , decodeBinary , decodeUnary , decodeGamma , decodeDelta ) where #if __GLASGOW_HASKELL__ < 710 import Control.Appl...
d59e22c606d393e21d00ecf3f1537c089f13b5eee9fededb788a1e21984028ba
wardle/hermes
store.clj
Copyright 2020 and Eldrix Ltd ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; -2.0 ; ; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/wardle/hermes/1c2a361e0828d95d7bfc70473a4fb91ba87347ea/src/com/eldrix/hermes/impl/store.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language g...
Copyright 2020 and Eldrix Ltd distributed under the License is distributed on an " AS IS " BASIS , (ns com.eldrix.hermes.impl.store "Store provides access to a key value store." (:require [clojure.core.async :as a] [clojure.set :as set] [clojure.spec.alpha :as s] [clojure...
410c735e65a6172f2f41c13742e4bf9fff00d17ee6f2798bdfb5eb5e0d2b6e76
GNOME/aisleriot
diamond-mine.scm
; AisleRiot - diamond_mine.scm Copyright ( C ) 2001 , 2003 < > ; ; 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. ...
null
https://raw.githubusercontent.com/GNOME/aisleriot/5ab7f90d8a196f1fcfe5a552cef4a4c1a4b5ac39/games/diamond-mine.scm
scheme
AisleRiot - diamond_mine.scm This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE...
Copyright ( C ) 2001 , 2003 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (use-modules (aisleriot interface) (aisleriot api)) (define foundation 0...
b599b11d7f5349fd9143434501718f4b11782add41df06510498165213899852
luc-tielen/eclair-lang
LSP.hs
# LANGUAGE RecordWildCards # module Eclair.LSP ( run ) where The code in this module all the modules in Eclair . LSP . * are heavily based on the Dhall LSP implementation : -lang/dhall-haskell/tree/master/dhall-lsp-server import Data.Aeson (fromJSON) import Data.Default import System.Exit (ExitCode(..)) impo...
null
https://raw.githubusercontent.com/luc-tielen/eclair-lang/f96fa7ac720e60bd6c6e460feff6707a1e95e0a0/src/lsp/Eclair/LSP.hs
haskell
corresponding notifications ourselves.
# LANGUAGE RecordWildCards # module Eclair.LSP ( run ) where The code in this module all the modules in Eclair . LSP . * are heavily based on the Dhall LSP implementation : -lang/dhall-haskell/tree/master/dhall-lsp-server import Data.Aeson (fromJSON) import Data.Default import System.Exit (ExitCode(..)) impo...
6c49af7d0304e4c05851f1d7f0be1a8144248992df12b5b10f5965cd5b86ce60
montelibero-org/veche
Common.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # -- | Common handler functions. module Handler.Common (getFaviconR, getRobotsR) where import Import import Data.FileEmbed (embedFile) -- These handlers embed fil...
null
https://raw.githubusercontent.com/montelibero-org/veche/0c57744e288b9cc2b7ece884dcf3fdc6aed1f842/veche-web/src/Handler/Common.hs
haskell
# LANGUAGE OverloadedStrings # | Common handler functions. These handlers embed files in the executable at compile time to avoid a runtime dependency, and for efficiency.
# LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Handler.Common (getFaviconR, getRobotsR) where import Import import Data.FileEmbed (embedFile) getFaviconR :: Handler TypedContent getFaviconR = do cache for a month pure $ ...
1d2a27fe21794c0834cf9269c45c27f94d228c160cf89f33fad83d8a4fae53e9
stuart-robinson/clojure-serverless-demo
core_test.clj
(ns clojure-serverless-demo.core-test (:require [clojure.test :refer :all] [clojure-serverless-demo.api :as api] [ring.mock.request :as mock]))
null
https://raw.githubusercontent.com/stuart-robinson/clojure-serverless-demo/d8d046bd79ccfe3dcea8823e8eddc3cb78a9f732/test/clj/clojure_serverless_demo/core_test.clj
clojure
(ns clojure-serverless-demo.core-test (:require [clojure.test :refer :all] [clojure-serverless-demo.api :as api] [ring.mock.request :as mock]))
c4e3dfe7fec2cd8ddf4376ead4c910ea4339ed4f29d55a933f8791fe6f3d15ed
triffon/fp-2022-23
10.fasterpow.rkt
#lang racket (require rackunit) (require rackunit/text-ui) # # # зад 10 на ` fastpow ` (define (square x) (* x x)) (define (fasterpow x n) (define (iter y i result) (cond ((= i 0) result) ((even? i) (iter (square y) (quotient i 2) result)) (else (iter y (- i 1) (* y result))))) ...
null
https://raw.githubusercontent.com/triffon/fp-2022-23/27f1575529dfd29ac756303e40c95cd3bd9098dc/exercises/cs2/02.scheme.rec-iter/solutions/10.fasterpow.rkt
racket
#lang racket (require rackunit) (require rackunit/text-ui) # # # зад 10 на ` fastpow ` (define (square x) (* x x)) (define (fasterpow x n) (define (iter y i result) (cond ((= i 0) result) ((even? i) (iter (square y) (quotient i 2) result)) (else (iter y (- i 1) (* y result))))) ...
d65ea4f305c589d264e084c9512a30cb8d63b6b4de508ec17d4f0cf192a20555
input-output-hk/cardano-ledger-byron
Compact.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Test.Cardano.Chain.UTxO.Compact ( tests ) where import Cardano.Prelude import Test.Cardano.Prelude import Hedgehog (MonadTest, assert, forAll, property, tripping) import Cardano.Chain.UTxO ( fromCompactTxId , toCompactTxId , fromCom...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/cardano-ledger/test/Test/Cardano/Chain/UTxO/Compact.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ Compact TxIn ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Compact TxId ------------------------...
# LANGUAGE TemplateHaskell # module Test.Cardano.Chain.UTxO.Compact ( tests ) where import Cardano.Prelude import Test.Cardano.Prelude import Hedgehog (MonadTest, assert, forAll, property, tripping) import Cardano.Chain.UTxO ( fromCompactTxId , toCompactTxId , fromCompactTxIn , toCompactTxIn , from...
6562947d89a21e7b9feebefe39ebecd53d0041ccbc1f4d8b105a55f84e119559
lockie/racket-engine
sdl-ttf.rkt
#lang racket/base (require ffi/unsafe ffi/unsafe/define sdl) (provide (all-defined-out)) (define-ffi-definer define-sdl-ttf (ffi-lib "libSDL2_ttf")) (define-sdl-ttf TTF_Linked_Version (_fun -> _SDL_version-pointer)) (define UNICODE_BOM_NATIVE #xFEFF) (define UNICODE_BOM_SWAPPED #xFFFE) (defin...
null
https://raw.githubusercontent.com/lockie/racket-engine/5ffc2c2ab57cb2795d1fde97fd0f27088171b27c/sdl-ttf.rkt
racket
#lang racket/base (require ffi/unsafe ffi/unsafe/define sdl) (provide (all-defined-out)) (define-ffi-definer define-sdl-ttf (ffi-lib "libSDL2_ttf")) (define-sdl-ttf TTF_Linked_Version (_fun -> _SDL_version-pointer)) (define UNICODE_BOM_NATIVE #xFEFF) (define UNICODE_BOM_SWAPPED #xFFFE) (defin...
aba3799d26e1b88f14c7c758311cd04c28787d6ef5ae5f125b072b5436f5e875
solita/mnt-teet
project_db.clj
(ns teet.project.project-db "Utilities for project datomic queries" (:require [datomic.client.api :as d] [teet.db-api.core :as db-api] [teet.project.project-model :as project-model] [teet.util.datomic :as du] [teet.comment.comment-model :as comment-model] ...
null
https://raw.githubusercontent.com/solita/mnt-teet/4a80d7d9e0d0a3c2d967bc371688d79f027d1d09/app/backend/src/clj/teet/project/project_db.clj
clojure
For all of these units the project
(ns teet.project.project-db "Utilities for project datomic queries" (:require [datomic.client.api :as d] [teet.db-api.core :as db-api] [teet.project.project-model :as project-model] [teet.util.datomic :as du] [teet.comment.comment-model :as comment-model] ...
7b98adbe3c6680e687462de1689822c9e4a783fb68847dba16b744b5773bedb9
soenkehahn/generics-eot
DatatypeSpec.hs
# LANGUAGE DeriveGeneric # module Generics.DatatypeSpec where import qualified GHC.Generics as GHC import Test.Hspec hiding (Selector) import Generics.Eot data TestType = A | B { a :: String } | C { a :: String, b :: Int, c :: Bool, d :: () } | D String deriving...
null
https://raw.githubusercontent.com/soenkehahn/generics-eot/cb001556d716deab72472f8c82f1b0eae326c25b/test/Generics/DatatypeSpec.hs
haskell
# LANGUAGE DeriveGeneric # module Generics.DatatypeSpec where import qualified GHC.Generics as GHC import Test.Hspec hiding (Selector) import Generics.Eot data TestType = A | B { a :: String } | C { a :: String, b :: Int, c :: Bool, d :: () } | D String deriving...
c401c47d6467618faf1590749abee8eaa55f4d058a41e96db565f9e197e1d35a
helium/ebus-gatt
gatt_service_device_information.erl
-module(gatt_service_device_information). -behavior(gatt_service). -export([init/1, uuid/0]). uuid() -> "180A". init([Info]) -> Keys = [ {manufacturer_name, "2A29"}, {model_number, "2A24"}, {serial_number, "2A25"}, {hardware_revision, "2A27"}, {fir...
null
https://raw.githubusercontent.com/helium/ebus-gatt/92732d7d7c153e46f4a7b9bde46c676b8d8476fd/src/gatt_service_device_information.erl
erlang
-module(gatt_service_device_information). -behavior(gatt_service). -export([init/1, uuid/0]). uuid() -> "180A". init([Info]) -> Keys = [ {manufacturer_name, "2A29"}, {model_number, "2A24"}, {serial_number, "2A25"}, {hardware_revision, "2A27"}, {fir...
704739eaaab756a0655e9f3c5bd4ee01b60abe37058d464ba9b727867f3b48e8
leksah/leksah
Log.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE MultiWayIf #-} module IDE.Web.Widget.Log ( logCss , logWidget ) where import Control.Lens (view) import qualified Data.Map as M (lookup, size, fromList) import Clay (lightbl...
null
https://raw.githubusercontent.com/leksah/leksah/ec95f33af27fea09cba140d7cddd010935a2cf52/src/IDE/Web/Widget/Log.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE MultiWayIf # fmap (M.fromList . zip [0..] . toList) <$> M.fromList . zip [ idx .. idx+num ] . ( < > repeat Nothing ) . fmap Just . toList . Seq.take num $ Seq.drop idx refs ' ) windowD refs -- refs <- fmap (M.fromList . zip [0..] . toList) <$> holdUniqD...
# LANGUAGE TypeFamilies # # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # module IDE.Web.Widget.Log ( logCss , logWidget ) where import Control.Lens (view) import qualified Data.Map as M (lookup, size, fromList) import Clay (lightblue, grey, green, red, color, fontFamily, overflowX, px,...
f1a9278cc71283bcba39d9c4cde1adbfcfd1667d1f13402998ff52894974a263
jellelicht/guix
gnu-pw-mgr.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 < > 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 ; e...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/gnu-pw-mgr.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 © 2013 < > 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 (gnu packages gnu-pw-mgr) #:use-module (guix packages) #:use-module ...
df294e0d76ba8faa32123b535ef44a580437cf1837a22c1919d2f840b3eba9d0
rowangithub/DOrder
strat.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and (* ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/external/ocamlgraph/src/strat.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and modify it under the terms of the GNU Library General Public License version 2 , with the special exception on linking $ Id:$ ...
bcaeec23a9ff28a616282ccf3b67eb89e656c92f24d7005d30bda35d60e52716
aoh/led
ui.scm
(define-library (led ui) (import (owl toplevel) (led screen) (led log)) (export start-ui ui-put-yank ui-get-yank) (begin (define (ui-put-yank text) (mail 'ui (tuple 'yank text))) (define (ui-get-yank) (interact 'ui (tuple 'get-...
null
https://raw.githubusercontent.com/aoh/led/b7f6f04b2e243ff8def0a2a90cc97cddea4905b5/led/ui.scm
scheme
manage threads and their views decide which ones get to draw on screen buffers are corresponding thread ids r[ight], buffers i[nformation], global data (log "got " msg " from " from) close current buffer (from outside), may leave zombies for now the only way this can occur is if we asked for cursor position afte...
(define-library (led ui) (import (owl toplevel) (led screen) (led log)) (export start-ui ui-put-yank ui-get-yank) (begin (define (ui-put-yank text) (mail 'ui (tuple 'yank text))) (define (ui-get-yank) (interact 'ui (tuple 'get-...
bf643cc109334eb48fb3546bf297ea96a171597e359ba41660a5209bcf191631
haskell-opengl/OpenGLRaw
InternalformatQuery2.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.ARB.InternalformatQuery2 Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -----------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/InternalformatQuery2.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.ARB.InternalformatQuery2 License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Fu...
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.InternalformatQuery2 ( glGetARBInternalformatQuery2, gl_ARB_internalformat_query2, pattern GL_AUTO_GENERATE_MIPMAP, pattern GL_CAVEAT_SUPPORT, pattern GL_CLEAR_BUFFER, pattern GL_COLOR_COMPONENTS, ...
e247ea0946b78efd0be69d79ff5e027e95b65f7014c02ac6a2a7aefa05bed1d9
diku-dk/futhark
Eval.hs
module Futhark.CLI.Eval (main) where import Control.Exception import Control.Monad import Control.Monad.Except import Control.Monad.Free.Church import Data.Map qualified as M import Data.Maybe import Data.Text qualified as T import Data.Text.IO qualified as T import Futhark.Compiler import Futhark.MonadFreshNames impo...
null
https://raw.githubusercontent.com/diku-dk/futhark/cb9d1c1765ea910cd4c732cc3f2f72d9038cb7a2/src/Futhark/CLI/Eval.hs
haskell
Use parseExp, checkExp, then interpretExp.
module Futhark.CLI.Eval (main) where import Control.Exception import Control.Monad import Control.Monad.Except import Control.Monad.Free.Church import Data.Map qualified as M import Data.Maybe import Data.Text qualified as T import Data.Text.IO qualified as T import Futhark.Compiler import Futhark.MonadFreshNames impo...
90190fa897615291f18de2514f926d722d9b0d5c3969e4c24fc6a8e93fac5d60
agentultra/rosby
Main.hs
module Main where import Rosby.Server main :: IO () main = start
null
https://raw.githubusercontent.com/agentultra/rosby/8e81794e44f38d6e8676ef022c6ec15611571fd7/rosby-server/app/Main.hs
haskell
module Main where import Rosby.Server main :: IO () main = start