_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 |
|---|---|---|---|---|---|---|---|---|
38880fa8af20c917c42e0985daf94ee76e3453c64c0cf207fcb4f8301b9ab1ed | andorp/bead | Data.hs | {-# LANGUAGE OverloadedStrings #-}
module Bead.View.Content.Assignment.Data where
import Data.Time (UTCTime)
import Bead.View.Content
-- * Content Handlers
data PageData
= PD_Course {
pdTimeZone :: UserTimeConverter
, pdTime :: UTCTime
, pdCourse :: (CourseKey, Cour... | null | https://raw.githubusercontent.com/andorp/bead/280dc9c3d5cfe1b9aac0f2f802c705ae65f02ac2/src/Bead/View/Content/Assignment/Data.hs | haskell | # LANGUAGE OverloadedStrings #
* Content Handlers
True, the evalution type can be modified
True, the evalution type can be modified | module Bead.View.Content.Assignment.Data where
import Data.Time (UTCTime)
import Bead.View.Content
data PageData
= PD_Course {
pdTimeZone :: UserTimeConverter
, pdTime :: UTCTime
, pdCourse :: (CourseKey, Course)
, pdTestScripts :: Maybe [(TestScriptKey, TestScr... |
60c4a493defc49abb133e4ef227d9327845e019486514f9367d40870722ffbb7 | vyzo/gerbil | optimize__1.scm | (declare (block) (standard-bindings) (extended-bindings))
(begin
(define |gxc[1]#_g34959_|
(gx#make-syntax-quote
'optimizer-info::t
#f
(gx#current-expander-context)
'()))
(define |gxc[1]#_g34960_|
(gx#make-syntax-quote
'optimizer-info::t
#f
(gx#current-expander-context)
... | null | https://raw.githubusercontent.com/vyzo/gerbil/17fbcb95a8302c0de3f88380be1a3eb6fe891b95/src/bootstrap/gerbil/compiler/optimize__1.scm | scheme | <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... | (declare (block) (standard-bindings) (extended-bindings))
(begin
(define |gxc[1]#_g34959_|
(gx#make-syntax-quote
'optimizer-info::t
#f
(gx#current-expander-context)
'()))
(define |gxc[1]#_g34960_|
(gx#make-syntax-quote
'optimizer-info::t
#f
(gx#current-expander-context)
... |
2367b7221540e668600750f2db604093a4b14bb6472a5815cff5220197d62d5b | sharplispers/montezuma | field-infos.lisp | (in-package #:montezuma)
-1 in java int
(defparameter +is-indexed+ 0)
(defparameter +store-term-vector+ 1)
(defparameter +store-position+ 2)
(defparameter +store-offset+ 3)
(defparameter +omit-norms+ 4)
(defclass field-infos ()
((fi-array :initform (make-array (list 0) :fill-pointer 0 :adjustable T))
(fi-ha... | null | https://raw.githubusercontent.com/sharplispers/montezuma/ee2129eece7065760de4ebbaeffaadcb27644738/src/index/field-infos.lisp | lisp | Automatically adds all of the fields from the document if they
haven't been added already. Or it will update the values.
method:
<#L67>
Or maybe I'm misunderstanding. | (in-package #:montezuma)
-1 in java int
(defparameter +is-indexed+ 0)
(defparameter +store-term-vector+ 1)
(defparameter +store-position+ 2)
(defparameter +store-offset+ 3)
(defparameter +omit-norms+ 4)
(defclass field-infos ()
((fi-array :initform (make-array (list 0) :fill-pointer 0 :adjustable T))
(fi-ha... |
e1952d89a27d61507a42d40ed9e5325a66ad47d87c43455c33b5662f40a1c437 | Metaxal/MrEd-Designer | widget.rkt | #lang racket
(require "../../mred-plugin.rkt"
"../../default-values.rkt"
racket/gui/base)
(make-plugin
[type 'gauge]
[tooltip "Gauge"]
[button-group "Controls"]
[widget-class gauge%]
[parent-class container-classes]
[necessary '(label parent range)] ; necessary properties
[options '(callback)... | null | https://raw.githubusercontent.com/Metaxal/MrEd-Designer/220833b738a1d46fbe309ea124ef61b825e42e68/mred-designer/widgets/gauge/widget.rkt | racket | necessary properties
widget properties
optional | #lang racket
(require "../../mred-plugin.rkt"
"../../default-values.rkt"
racket/gui/base)
(make-plugin
[type 'gauge]
[tooltip "Gauge"]
[button-group "Controls"]
[widget-class gauge%]
[parent-class container-classes]
[options '(callback)]
[label (prop:false-or-string "Gauge")]
[range 100]
... |
f6037e1eac3c731612139c8413275986ca19f89ea62dc988ad1d812bf3feb51e | joearms/paradis | client2.erl | -module(client2).
-export([test/0]).
test() ->
{ok, Pid} = simple_client_server:connect_to_server("localhost", 5123, hello_joe),
Val = rpc(Pid, {fac,50}),
io:format("Fac(50) = ~p~n",[Val]),
Pid ! close,
io:format("Client2 :: test completed~n").
rpc(Pid, Query) ->
Msg = {rpc, Query},
io:f... | null | https://raw.githubusercontent.com/joearms/paradis/62055b8db643926fd86c8b79f038beb9ac50916f/client_server_lecture/client2.erl | erlang | -module(client2).
-export([test/0]).
test() ->
{ok, Pid} = simple_client_server:connect_to_server("localhost", 5123, hello_joe),
Val = rpc(Pid, {fac,50}),
io:format("Fac(50) = ~p~n",[Val]),
Pid ! close,
io:format("Client2 :: test completed~n").
rpc(Pid, Query) ->
Msg = {rpc, Query},
io:f... | |
37437aa38d45a42ff4d87d78d9432ab3d58b9886b96c7ee5e5babf4292ab7a85 | S8A/htdp-exercises | ex441.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 ex441) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-... | null | https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex441.rkt | racket | about the language level of this file in a form that our tools can easily process.
[List-of Number] -> [List-of Number]
produces a sorted version of alon
assume the numbers are all distinct
[List-of Number] Number -> [List-of Number]
produces a list of those numbers from the given list that
are larger than n
[... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex441) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(define (quick-sort< alon)
(cond
[(empty? alon) '... |
c1595e69c27601cd04cec12ac67f1fae7655eb3c5886c619414fe97970da888a | braidchat/braid | impl.cljs | (ns braid.emoji-emojione.impl
(:require
[garden.units :refer [rem em px ex]]
[braid.emoji-emojione.ref :as refs]))
;; Taken from #L1
(def emojione-styles
[:.emojione
{:font-size "inherit"
:height (ex 3)
:width (ex 3.1)
:min-height (px 20)
:min-width (px 20)
:display "inline-block"
... | null | https://raw.githubusercontent.com/braidchat/braid/2e44eb6e77f1d203115f9b9c529bd865fa3d7302/src/braid/emoji_emojione/impl.cljs | clojure | Taken from #L1
Taken from -awesome.css#L24 | (ns braid.emoji-emojione.impl
(:require
[garden.units :refer [rem em px ex]]
[braid.emoji-emojione.ref :as refs]))
(def emojione-styles
[:.emojione
{:font-size "inherit"
:height (ex 3)
:width (ex 3.1)
:min-height (px 20)
:min-width (px 20)
:display "inline-block"
:margin [[(ex -0... |
9c29cd889157b5a03788ccbf5a2f4107b19a4d3e30cfa8727b5500b5c2c61b7c | ghc/packages-containers | SetOperations.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE ScopedTypeVariables #
module SetOperations (benchmark) where
import Gauge (bench, defaultMain, whnf)
import Data.List (partition, sortBy)
import Data.Ord (comparing)
import Data.Tuple as Tuple
-- | Benchmark a set operation for the given container.
-- Takes the following argu... | null | https://raw.githubusercontent.com/ghc/packages-containers/97fe43c54c5c8a9b93ecf5abd7509e8085b63d41/containers-tests/benchmarks/SetOperations/SetOperations.hs | haskell | # LANGUAGE BangPatterns #
| Benchmark a set operation for the given container.
Takes the following arguments:
* A way to construct the container
* Flag if we should benchmark the operations with reversed arguments.
* A list of operations.
Sort benchmark inputs by (data variant, data sizes)
Data size descriptions... | # LANGUAGE ScopedTypeVariables #
module SetOperations (benchmark) where
import Gauge (bench, defaultMain, whnf)
import Data.List (partition, sortBy)
import Data.Ord (comparing)
import Data.Tuple as Tuple
benchmark :: forall container. (Show container, Eq container) => ([Int] -> container) -> Bool -> [(String, contai... |
7c9f9dcb7763d527113fc40dbe5be448133e8cd27a0f7241dc60b303b3da6daf | zchn/ethereum-analyzer | BigWord.hs | # LANGUAGE FlexibleInstances #
{-# LANGUAGE EmptyDataDecls #-}
module Legacy.Haskoin.V0102.Network.Haskoin.Crypto.BigWord
( TxHash
, BlockHash
, Word512
, Word256
, Word160
, Word128
, FieldP
, FieldN
, BigWord(..)
, BigWordMod(..)
, inverseP
, inverseN
, quadraticResidue
, isIntegerValidKe... | null | https://raw.githubusercontent.com/zchn/ethereum-analyzer/f2a60d8b451358971f1e3b1a61658f5741c4c099/ethereum-analyzer-deps/src/Legacy/Haskoin/V0102/Network/Haskoin/Crypto/BigWord.hs | haskell | # LANGUAGE EmptyDataDecls #
Useful type aliases
Data types
Functions
| Type representing a transaction hash.
| Type representing a block hash.
Fractional is only defined for prime orders
Binary instances for serialization / deserialization
-T/studygroups/com17/languages/X.690-0207.pdf
Section 2.3.6 -780/sec1... | # LANGUAGE FlexibleInstances #
module Legacy.Haskoin.V0102.Network.Haskoin.Crypto.BigWord
( TxHash
, BlockHash
, Word512
, Word256
, Word160
, Word128
, FieldP
, FieldN
, BigWord(..)
, BigWordMod(..)
, inverseP
, inverseN
, quadraticResidue
, isIntegerValidKey
, encodeTxHashLE
, decodeT... |
22c4c6155d4ecc03578ec6a2f670f841ea9914d748efe813d9e3852a5271c986 | esl/MongooseIM | mongoose_graphql_session_helper.erl | -module(mongoose_graphql_session_helper).
-export([format_session/1, format_sessions/1, format_status_user/1, format_status_users/1]).
-ignore_xref([format_session/1, format_status_user/1]).
-type session_data() :: map().
-type session_list() :: [{ok, session_data()}].
-type status_user_data() :: map().
-type status... | null | https://raw.githubusercontent.com/esl/MongooseIM/398d39aa4decc413b60ab62441ea14f3418c4d93/src/graphql/mongoose_graphql_session_helper.erl | erlang | -module(mongoose_graphql_session_helper).
-export([format_session/1, format_sessions/1, format_status_user/1, format_status_users/1]).
-ignore_xref([format_session/1, format_status_user/1]).
-type session_data() :: map().
-type session_list() :: [{ok, session_data()}].
-type status_user_data() :: map().
-type status... | |
eceb5645710d5238833f74bea1d6876f98e774cb6fa30cd2c3b99b917d54adb9 | distrap/lambdadrive | Client.hs | module LDrive.Client where
| null | https://raw.githubusercontent.com/distrap/lambdadrive/2bbf6b173fbc1c6d1f809ee4f95ec0bf737d7064/client/src/ODrive/Client.hs | haskell | module LDrive.Client where
| |
6138f0668662d9c8a59ac7a06d4996d5e78ee1a4889f5e18ee2e183f557dc770 | Shadytel/osmo_ss7 | osmo_ss7_app.erl | -module(osmo_ss7_app).
-behaviour(application).
-author('Harald Welte <>').
% application behaviour callbacks
-export([start/2, start_phase/3, prep_stop/1, stop/1, config_change/3]).
-export([reload_config/0]).
start(normal, StartArgs) ->
supervisor:start_link({local, osmo_ss7_sup}, osmo_ss7_sup, StartArgs).
star... | null | https://raw.githubusercontent.com/Shadytel/osmo_ss7/eef6ce439727436febc67692c145e07847cc4c89/src/osmo_ss7_app.erl | erlang | application behaviour callbacks
FIXME: do something | -module(osmo_ss7_app).
-behaviour(application).
-author('Harald Welte <>').
-export([start/2, start_phase/3, prep_stop/1, stop/1, config_change/3]).
-export([reload_config/0]).
start(normal, StartArgs) ->
supervisor:start_link({local, osmo_ss7_sup}, osmo_ss7_sup, StartArgs).
start_phase(_Phase, _StartType, _Phase... |
a88d1ab96df77ad14d46c7cf4925919d9fb8b68ef817fa636fac3cb1f95e9290 | Chris00/ocaml-docker | bind.ml | open Printf
module C = Docker.Container
let () =
Common.install_image "debian" ~tag:"latest";
(* The bind.dir directory will be created with root ownership. *)
let c = C.create "debian:latest" ["dash"; "-s"] ~open_stdin: true
~host:(C.host () ~binds:[C.Mount("bind.dir", "/tmp/b")]) in
C.start c;
... | null | https://raw.githubusercontent.com/Chris00/ocaml-docker/ec5a4c430085f7956e5c41ea3c28567846fab335/test/bind.ml | ocaml | The bind.dir directory will be created with root ownership.
Allow a non-root user to remove the dir: | open Printf
module C = Docker.Container
let () =
Common.install_image "debian" ~tag:"latest";
let c = C.create "debian:latest" ["dash"; "-s"] ~open_stdin: true
~host:(C.host () ~binds:[C.Mount("bind.dir", "/tmp/b")]) in
C.start c;
ignore(C.Exec.(start (create c ["chmod"; "ugo+w"; "/tmp/b"])));
ig... |
4b6876cfff9b11ddc59270f8c3b67c04ecf743bbf42595ab0374a5e0a2a71656 | mfikes/fifth-postulate | ns325.cljs | (ns fifth-postulate.ns325)
(defn solve-for01 [xs v]
(for [ndx0 (range 0 (- (count xs) 3))
ndx1 (range (inc ndx0) (- (count xs) 2))
ndx2 (range (inc ndx1) (- (count xs) 1))
ndx3 (range (inc ndx2) (count xs))
:when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))]
(list (x... | null | https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns325.cljs | clojure | (ns fifth-postulate.ns325)
(defn solve-for01 [xs v]
(for [ndx0 (range 0 (- (count xs) 3))
ndx1 (range (inc ndx0) (- (count xs) 2))
ndx2 (range (inc ndx1) (- (count xs) 1))
ndx3 (range (inc ndx2) (count xs))
:when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))]
(list (x... | |
d9df92fb0921ac4afb41184b821b2b6ad4e196607a2795eb13dd72e847cb1d43 | satori-com/mzbench | signal_error2.erl | [
{pool, [{size, {var, "nodes_num"}},
{worker_type, dummy_worker}],
[
{parallel, [{wait_signal, 'A'}]}
]}
]. | null | https://raw.githubusercontent.com/satori-com/mzbench/02be2684655cde94d537c322bb0611e258ae9718/acceptance_tests/scripts/signal_error2.erl | erlang | [
{pool, [{size, {var, "nodes_num"}},
{worker_type, dummy_worker}],
[
{parallel, [{wait_signal, 'A'}]}
]}
]. | |
d1505e353b17cadfb5ae11f34f992d9fe1a4628fb16b8e4839e54829338ebc1e | uw-unsat/serval | decode.rkt | #lang rosette
(require
(prefix-in core: "../lib/core.rkt")
"../lib/bvarith.rkt"
"base.rkt")
(provide
add-decoder decode (struct-out exclude) nonzero disassemble)
(define decoders null)
( exclude elems size ) is guard that recognizes bitvectors of a size
; excluding some list of (concrete) values.
(struct ... | null | https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/serval/riscv/decode.rkt | racket | excluding some list of (concrete) values.
Recognizes a non-zero bitvector of a particular size.
To construct an instruction, a decoder checks that constant fields match
and extracts values for symbolic fields:
- ctor: an instruction struct;
- spec: a list of bitvector types (symbolic fields) or values (constant f... | #lang rosette
(require
(prefix-in core: "../lib/core.rkt")
"../lib/bvarith.rkt"
"base.rkt")
(provide
add-decoder decode (struct-out exclude) nonzero disassemble)
(define decoders null)
( exclude elems size ) is guard that recognizes bitvectors of a size
(struct exclude (elems size)
#:transparent
#:pro... |
746128ff1e1f9d156280dc214d6c301e679e9e279257612a5cc9c15479ee844e | jackdoe/bzzz | util.clj | (ns bzzz.util
(:require [clojure.data.json :as json])
(:import (java.io File))
(use bzzz.const)
(use [clojure.repl :only (pst)])
(use [clojure.string :only (split join)]))
(defn as-str ^String [x]
(if (keyword? x)
(subs (str x) 1)
(str x)))
(defn mapply [f & args]
(apply f (apply concat (butlast... | null | https://raw.githubusercontent.com/jackdoe/bzzz/ae98708056e39ada28f22aad9e43ea91695b346b/src/bzzz/util.clj | clojure | Ref: -kitchensink/commit/32a1a3a98ad08d521e58ccf88062eb7209992973
=> {:foo {:bar :baz, :fuzz :buzz}}" | (ns bzzz.util
(:require [clojure.data.json :as json])
(:import (java.io File))
(use bzzz.const)
(use [clojure.repl :only (pst)])
(use [clojure.string :only (split join)]))
(defn as-str ^String [x]
(if (keyword? x)
(subs (str x) 1)
(str x)))
(defn mapply [f & args]
(apply f (apply concat (butlast... |
1c24775b193d7a9c12cb0ef8cf11121a2699896e296d3d17049b3de86bfd0b41 | ninjudd/cake | classpath.clj | (ns cake.tasks.classpath
(:use [cake :only [*classloader*]]
[cake.core :only [deftask]]
[classlojure.core :only [get-classpath base-classloader ext-classloader]]))
(deftask classpath
"Print the classpath for the cake and project classloaders."
(println "\ncake classpath:")
(doseq [path (get-cla... | null | https://raw.githubusercontent.com/ninjudd/cake/3a1627120b74e425ab21aa4d1b263be09e945cfd/src/cake/tasks/classpath.clj | clojure | (ns cake.tasks.classpath
(:use [cake :only [*classloader*]]
[cake.core :only [deftask]]
[classlojure.core :only [get-classpath base-classloader ext-classloader]]))
(deftask classpath
"Print the classpath for the cake and project classloaders."
(println "\ncake classpath:")
(doseq [path (get-cla... | |
64c751d31f61b7943897a7a32865df1e2752e993786300aef2668cafd316a35d | alang9/deque | LessTyped.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE DataKinds #
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE GADTs #-}
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
# LANGUAGE ViewPatterns #
{-# OPTIONS -Wall #-}
module Data.Deque.NonCat.LessTyped where
i... | null | https://raw.githubusercontent.com/alang9/deque/c53371d3f658c2e7a8e41606e227d8481db79758/Data/Deque/NonCat/LessTyped.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE EmptyDataDecls #
# LANGUAGE GADTs #
# OPTIONS -Wall #
- INLINE pushB #
- INLINE popB #
- INLINE pushB2 #
- INLINE popB2 #
- INLINE injectB #
- INLINE ejectB #
- INLINE injectB2 #
- INLINE ejectB2 #
- INLINE overUnder #
- INLINE toFringe #
- INLINE combine #
- INLINE combineGG #
- IN... | # LANGUAGE DataKinds #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
# LANGUAGE ViewPatterns #
module Data.Deque.NonCat.LessTyped where
import Data.Type.Bool
import qualified Data.Sequence as Seq
data Nat = Z | S Nat deriving (Read, Show, Eq, ... |
7431ed0ba78b6f2732c787e6c28f0408144769ff5db4740ecacead745845a27d | originrose/cortex | util.clj | (ns cortex.loss.util
(:require [cortex.loss.core :as loss]
[cortex.graph :as graph]))
(defn generate-loss-term-stream-definitions
"Some loss terms have a constraint that the stream ecount must match the node's
output ecount. For those loss terms generating a stream definition is possible."
[graph lo... | null | https://raw.githubusercontent.com/originrose/cortex/94b1430538e6187f3dfd1697c36ff2c62b475901/src/cortex/loss/util.clj | clojure | (ns cortex.loss.util
(:require [cortex.loss.core :as loss]
[cortex.graph :as graph]))
(defn generate-loss-term-stream-definitions
"Some loss terms have a constraint that the stream ecount must match the node's
output ecount. For those loss terms generating a stream definition is possible."
[graph lo... | |
e229b448ef449dc62e3588051e70828210f9fce890e16a465ab56c12cc3cde57 | bobzhang/fan | c.ml |
let a = 3
(* let () = !a *)
a:=b
(* local variables: *)
(* compile-command: "ocamlc -dparsetree -c c.ml" *)
(* end: *)
| null | https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/unitest/suites/c.ml | ocaml | let () = !a
local variables:
compile-command: "ocamlc -dparsetree -c c.ml"
end: |
let a = 3
a:=b
|
3b6462e54f40e81f2bb12455961a57b7568fe70411af544dd20bd50b617b4ea6 | mvoidex/hsdev | Resolve.hs | {-# LANGUAGE RankNTypes #-}
module HsDev.Symbols.Resolve (
RefineTable, refineTable, refineSymbol, refineSymbols,
symbolUniqId
) where
import Control.Lens
import qualified Data.Map.Strict as M
import Data.Maybe (fromMaybe)
import Data.Text (Text)
import HsDev.Symbols
type RefineTable = M.Map (Text, Text, SymbolI... | null | https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/src/HsDev/Symbols/Resolve.hs | haskell | # LANGUAGE RankNTypes # |
module HsDev.Symbols.Resolve (
RefineTable, refineTable, refineSymbol, refineSymbols,
symbolUniqId
) where
import Control.Lens
import qualified Data.Map.Strict as M
import Data.Maybe (fromMaybe)
import Data.Text (Text)
import HsDev.Symbols
type RefineTable = M.Map (Text, Text, SymbolInfo) Symbol
refineTable :: ... |
5abc34800bd71be792af97685d205668500368bd43ba47f645165c6b6525ccac | aiju/lilith | types.ml | module H = Hashtbl
open Ast
open Type
type meta = {
mutable typ: typ
}
let analyse t =
let symtab = H.create 0 in
List.iter (fun (a,b,c) -> match b with
| TypeLit t -> H.add symtab a t
| _ -> ()) Builtin.vars;
let unktype () = TypeVar (Symbol.temp ("$t")) in
let rec subst a =
match a with
| TypeVar s -> ... | null | https://raw.githubusercontent.com/aiju/lilith/56a34309abb016d75c7aa25937f9350f337287d7/eva/types.ml | ocaml | module H = Hashtbl
open Ast
open Type
type meta = {
mutable typ: typ
}
let analyse t =
let symtab = H.create 0 in
List.iter (fun (a,b,c) -> match b with
| TypeLit t -> H.add symtab a t
| _ -> ()) Builtin.vars;
let unktype () = TypeVar (Symbol.temp ("$t")) in
let rec subst a =
match a with
| TypeVar s -> ... | |
4048857801d2258e4548f496875ba56dea7849225511572343134acb17bd4c8f | xtdb/core2 | datalog_test.clj | ;; THIRD-PARTY SOFTWARE NOTICE
This file is derivative of test files found in the DataScript
;; project. The Datascript license is copied verbatim in this
;; directory as `LICENSE`.
;;
(ns core2.datalog.datalog-test
(:require [clojure.test :as t :refer [deftest]]
[core2.api :as c2]
[core2.... | null | https://raw.githubusercontent.com/xtdb/core2/f0fd8c74bc47a053b553988aea2951ca4ffdcf84/src/test/clojure/core2/datalog/datalog_test.clj | clojure | THIRD-PARTY SOFTWARE NOTICE
project. The Datascript license is copied verbatim in this
directory as `LICENSE`.
#L12-L36
#L14-L39
TODO what to do if arg var isn't used, either remove it from the join
or convert the anti-join to an apply and param all the args
going over the chunk boundary
Matthew 2015+
tx0
... | This file is derivative of test files found in the DataScript
(ns core2.datalog.datalog-test
(:require [clojure.test :as t :refer [deftest]]
[core2.api :as c2]
[core2.james-bond :as bond]
[core2.node :as node]
[core2.test-util :as tu]
[core2.util :as util... |
0772b123d83f80c493ed37432a621124599dcadac1c00ae4b1e750e5029e1542 | coccinelle/herodotos | reltime.ml | open Helper
let get_expertise vlist idx name =
if name = "Linus Torvalds" && idx=0 then
Ignore initial import to git done by .
None
else
try
let (contact, since, until, totaltimespan, sum, duration, abspct, tmspan) =
Git.author_info vlist idx name
in
Some (tmspan)
with Not_found ->
... | null | https://raw.githubusercontent.com/coccinelle/herodotos/5da230a18962ca445ed2368bc21abe0a8402e00f/herodotos/graph/reltime.ml | ocaml | open Helper
let get_expertise vlist idx name =
if name = "Linus Torvalds" && idx=0 then
Ignore initial import to git done by .
None
else
try
let (contact, since, until, totaltimespan, sum, duration, abspct, tmspan) =
Git.author_info vlist idx name
in
Some (tmspan)
with Not_found ->
... | |
8342aa3f5509b354d6332bf28310143b23cb29d48da450bcf56e09acb1826e4d | xsc/lexington | lexer.clj | (ns ^{ :doc "Lexington Lexer Facade"
:author "Yannick Scherer" }
lexington.lexer
;; Potemkin for Import
(:use [potemkin :only [import-vars]])
;; Namespaces to import
(:require [lexington.lexer.core :as c]
[lexington.lexer.seq-matchers :as sqm]
[lexington.lexer.utils :as u]))... | null | https://raw.githubusercontent.com/xsc/lexington/b7b30617b15cbdc83c0d4e65bfcf63b27cfc945a/src/lexington/lexer.clj | clojure | Potemkin for Import
Namespaces to import | (ns ^{ :doc "Lexington Lexer Facade"
:author "Yannick Scherer" }
lexington.lexer
(:use [potemkin :only [import-vars]])
(:require [lexington.lexer.core :as c]
[lexington.lexer.seq-matchers :as sqm]
[lexington.lexer.utils :as u]))
(import-vars
[lexington.lexer.utils
disc... |
f0f92f0a0a29a7702ae102105363ea7f66d79117e3777210c818ae2fa2815302 | camfort/fortran-src | Analysis.hs | # OPTIONS_GHC -Wno - orphans #
-- |
Common data structures and functions supporting analysis of the AST .
module Language.Fortran.Analysis
( initAnalysis, stripAnalysis, Analysis(..), Constant(..)
, varName, srcName, lvVarName, lvSrcName, isNamedExpression
, genVar, puName, puSrcName, blockRhsExprs, rhsExprs
... | null | https://raw.githubusercontent.com/camfort/fortran-src/118e54097775543af53bada6e6ec446e9010e3ba/src/Language/Fortran/Analysis.hs | haskell | |
------------------------------------------------
| Basic block
| Basic block graph.
^ the underlying graph
^ the entry node(s)
^ the exit node(s)
| Empty basic block graph
| Call function on the underlying graph
| Monadically call function on the underlying graph
Allow graphs to reside inside of annotations... | # OPTIONS_GHC -Wno - orphans #
Common data structures and functions supporting analysis of the AST .
module Language.Fortran.Analysis
( initAnalysis, stripAnalysis, Analysis(..), Constant(..)
, varName, srcName, lvVarName, lvSrcName, isNamedExpression
, genVar, puName, puSrcName, blockRhsExprs, rhsExprs
, Mo... |
01d3c980d1920afb66a9424bbb2708135e9206ac8b26e78566809dce4143a736 | documented/Clex | application.clj | (ns cljex.controllers.application) | null | https://raw.githubusercontent.com/documented/Clex/3eeec8669cb7ae3898600a8ba472f150bba98d8d/src/cljex/controllers/application.clj | clojure | (ns cljex.controllers.application) | |
c325991b7ae92e9a30a6ee0283554c07e6c50caa474afb57b8ad3b192cf88d37 | johnwickerson/memalloy | pp_comparator.ml |
MIT License
Copyright ( c ) 2017 by , and
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 , mo... | null | https://raw.githubusercontent.com/johnwickerson/memalloy/aa15776873fe3440cb7f5dae8e174466689d4fba/src/pp_comparator.ml | ocaml | * Compares memory models |
MIT License
Copyright ( c ) 2017 by , and
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 , mo... |
dc97a5d7c9bb6a159486ee6afc80762d76c9cc0d001acd069d16f6a303d62033 | mejgun/haskell-tdlib | GetChatInviteLink.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
module TD.Query.GetChatInviteLink where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
-- |
-- Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to get own lin... | null | https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/GetChatInviteLink.hs | haskell | # LANGUAGE OverloadedStrings #
|
|
Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links
| Invite link to get
| Chat identifier |
module TD.Query.GetChatInviteLink where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
data GetChatInviteLink = GetChatInviteLink
invite_link :: Maybe String,
chat_id :: Maybe Int
}
deriving (Eq)
instance Show GetChatInviteLink where
show
GetCha... |
a98ea2f09fbb87c4a410bb956dc6db68c9da4f6a94cbff2b1be38d4270665f65 | axellang/axel | SourcemapSpec.hs | HLINT ignore " Redundant do "
module Axel.Test.SourcemapSpec where
import Axel.Prelude
import Axel.Sourcemap
import Data.Foldable
import Test.Hspec
spec_Sourcemap :: Spec
spec_Sourcemap = do
describe "findOriginalPosition" $ -- TODO Convert these into property tests
do
let (output, line', column') `was` ... | null | https://raw.githubusercontent.com/axellang/axel/1dc3c0b162f844e5ee3d4fb491a8cb5c5884ee9c/test/Axel/Test/SourcemapSpec.hs | haskell | TODO Convert these into property tests | HLINT ignore " Redundant do "
module Axel.Test.SourcemapSpec where
import Axel.Prelude
import Axel.Sourcemap
import Data.Foldable
import Test.Hspec
spec_Sourcemap :: Spec
spec_Sourcemap = do
do
let (output, line', column') `was` expected =
findOriginalPosition output (Position line' column') `sho... |
3e299a3a65d02a9950a3f4ed8adc431ffa709648fa889009087315d6927778a9 | dongcarl/guix | openkinect.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2020 < >
Copyright © 2021 < >
;;;
;;; 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 ; ... | null | https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/packages/openkinect.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 © 2020 < >
Copyright © 2021 < >
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 openkinect)
#:use-module (guix packages)
#:use-module... |
01adeaba44c70135331ee9e2ee97b7f40233f58edfb428ba378a937d8d7f4d3f | MarcKaufmann/congame | info.rkt | #lang info
(define collection "tests")
(define deps '())
(define build-deps '("base"
"component-lib"
"congame-core"
"congame-pjb-studies"
"congame-web"
"db-lib"
"deta-lib"
... | null | https://raw.githubusercontent.com/MarcKaufmann/congame/396efb849e8b723fa5325e7c9de05bd5c0e6a16c/congame-tests/info.rkt | racket | #lang info
(define collection "tests")
(define deps '())
(define build-deps '("base"
"component-lib"
"congame-core"
"congame-pjb-studies"
"congame-web"
"db-lib"
"deta-lib"
... | |
bb860b87c2c55e71659c52326d121bef3abeba06b15988e9188c7df75b550a19 | telostat/haspara | Account.hs | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
{-# LANGUAGE OverloadedStrings #-}
-- | This module provides definitions for acccounts and types of accounts as
-- they are used in accounting reporting.
module Haspara.Accounting.Account where
import qualified Data.Aeson as Aeson
import Data.Hashable (Hashable)
impor... | null | https://raw.githubusercontent.com/telostat/haspara/562c9fb81d1add6e920a298aa59176510ca348b4/src/Haspara/Accounting/Account.hs | haskell | # LANGUAGE OverloadedStrings #
| This module provides definitions for acccounts and types of accounts as
they are used in accounting reporting.
* Account Kind
| Type encoding for ledger account type.
This type covers both balance sheet and income statement account types:
>>> :set -XTypeApplications
>>> Data.... | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
module Haspara.Accounting.Account where
import qualified Data.Aeson as Aeson
import Data.Hashable (Hashable)
import qualified Data.Text as T
import GHC.Generics (Generic)
import Haspara.Internal.Aeson (aesonOptionsForSingleTag, commonAesonOptions)
1 . For balanc... |
e626ce968c1bca4b30dd48e53c97b239bffd43f1e848bc2b616c593850180c3f | reactiveml/rml | dom_html.ml | Js_of_ocaml library
* /
* Copyright ( C ) 2010
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking ... | null | https://raw.githubusercontent.com/reactiveml/rml/d178d49ed923290fa7eee642541bdff3ee90b3b4/toplevel-alt/js/js-of-ocaml/lib/dom_html.ml | ocaml | The toplevel object
**
**
XXX Should provide creation functions a la lablgtk...
**
** | Js_of_ocaml library
* /
* Copyright ( C ) 2010
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking ... |
73c8f764d2b1bb278ba459cf9833bdcdc6fce2d1108c391ceacfaa62960d41ae | xvw/planet | uuid.mli | * Module to build Unique identifiers
type t = string
* { 2 Requirement }
module type GENERATOR = sig
val name : unit -> string
val pid : unit -> int
val time : unit -> float
end
* { 2 Global API }
(** Create an [UUID]. *)
val make : (module GENERATOR) -> unit -> t
(** {2 Functor} *)
module Generator (G : G... | null | https://raw.githubusercontent.com/xvw/planet/c2a77ea66f61cc76df78b9c2ad06d114795f3053/src/bedrock/uuid.mli | ocaml | * Create an [UUID].
* {2 Functor} | * Module to build Unique identifiers
type t = string
* { 2 Requirement }
module type GENERATOR = sig
val name : unit -> string
val pid : unit -> int
val time : unit -> float
end
* { 2 Global API }
val make : (module GENERATOR) -> unit -> t
module Generator (G : GENERATOR) : sig
type t = string
val mak... |
08ac219214151f0153425557cde8fee559c09acc8f53b67f422a2910cb368521 | takikawa/racket-ppa | pre-base.rkt | ;; A sane "core" for finishing up the "racket/base" library
(module pre-base '#%kernel
(#%require (for-syntax '#%kernel
"stx.rkt"
"qq-and-or.rkt"))
(#%require "more-scheme.rkt"
"misc.rkt"
(all-except "define.rkt" define define-syntax defin... | null | https://raw.githubusercontent.com/takikawa/racket-ppa/caff086a1cd48208815cec2a22645a3091c11d4c/collects/racket/private/pre-base.rkt | racket | A sane "core" for finishing up the "racket/base" library
shadows #%kernel bindings
so it's attached
Convert (apply ...) without keyword args to primitive `apply',
so that oher optimizations are available.
for symmetry with single-flonum?
to get the right name
no args, random float
necessary checking
There's ... |
(module pre-base '#%kernel
(#%require (for-syntax '#%kernel
"stx.rkt"
"qq-and-or.rkt"))
(#%require "more-scheme.rkt"
"misc.rkt"
(all-except "define.rkt" define define-syntax define-for-syntax)
"letstx-scheme.rkt"
... |
0a02cd795210f258461c3bba0d72150a978522d1cd87ad3afb570819f6562120 | mobius-eng/numerics | operator.clj | ;
Copyright ( c ) 2015 .
This file is licensed under Lesser General Public License v.3
; The text of the license can be found at -3.0.txt
;
(ns numerics.linear.operator
(:refer-clojure :exclude [+ - * / ==])
(:require [numerics.fixed-point :refer :all]
[clojure.core.matrix :refer :all]
... | null | https://raw.githubusercontent.com/mobius-eng/numerics/962d8fb96b9704aef71d5016491049ad01dbf6d1/src/numerics/linear/operator.clj | clojure |
The text of the license can be found at -3.0.txt
| Copyright ( c ) 2015 .
This file is licensed under Lesser General Public License v.3
(ns numerics.linear.operator
(:refer-clojure :exclude [+ - * / ==])
(:require [numerics.fixed-point :refer :all]
[clojure.core.matrix :refer :all]
[clojure.core.matrix.operators :refer :all]
... |
061cc8db42d1e013b7b74be9b718e491accf2c2288f189c3ea15340f72e23c5a | zed-throben/erlangeos | test_consult.erl | - module('test_consult').
- compile(export_all).
test() ->
A = [{a , [1,2,3] },{b , [{aa , 100 },{bb , 200 },{cc , {4,5,6} },{dd , "str" },{ee , 'alpha-beta-gamma' }] }],
BB = <<" #{\n a=[1,2,3]\n b=#{\n aa=100\n bb=200\n cc={4,5,6}\n dd=\"str\"\n ... | null | https://raw.githubusercontent.com/zed-throben/erlangeos/44e50e442f5d396c69ae90db530b0b60b01d692a/test/test_consult.erl | erlang | - module('test_consult').
- compile(export_all).
test() ->
A = [{a , [1,2,3] },{b , [{aa , 100 },{bb , 200 },{cc , {4,5,6} },{dd , "str" },{ee , 'alpha-beta-gamma' }] }],
BB = <<" #{\n a=[1,2,3]\n b=#{\n aa=100\n bb=200\n cc={4,5,6}\n dd=\"str\"\n ... | |
3481443fdbd9fb8e0f4307cf9be041b61676ff150dc530308b2bd6bc97797406 | guicho271828/eazy-project | cl-test-more.lisp |
(plan nil)
;; blah blah blah.
(finalize)
| null | https://raw.githubusercontent.com/guicho271828/eazy-project/518c8b6792975893a351ae6f76c0a2b5eb412773/skeleton/%3C%25%20%40var%20name%20%25%3E/%3C%25%20%40var%20test-dir%20%25%3E/includes/cl-test-more.lisp | lisp | blah blah blah. |
(plan nil)
(finalize)
|
107a1234d7c086e19ef6bf4489febd7ba83f1908ed9934afc24ac384148cad78 | anmonteiro/gluten | gluten_lwt.ml | ----------------------------------------------------------------------------
* Copyright ( c ) 2018 Inhabited Type LLC .
* Copyright ( c ) 2018
* Copyright ( c ) 2019 - 2020 .
*
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
* mod... | null | https://raw.githubusercontent.com/anmonteiro/gluten/a793fc44bfcd6613a4a111e90db07b5155cafcdb/lwt/gluten_lwt.ml | ocaml | ----------------------------------------------------------------------------
* Copyright ( c ) 2018 Inhabited Type LLC .
* Copyright ( c ) 2018
* Copyright ( c ) 2019 - 2020 .
*
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
* mod... | |
89c6c9afcf1b0528f2c0c6990191fb40222b3de8622922671d5fcb9af632ad5e | nha/temporal | testing.clj | (ns nha.temporal.testing
"kept in a different namespace.
Requiring this ns means that should be on the classpath"
(:import
[io.temporal.activity Activity ActivityInterface ActivityMethod ActivityOptions]
[io.temporal.client WorkflowClient WorkflowOptions WorkflowClientOptions]
[io.temporal.common RetryOp... | null | https://raw.githubusercontent.com/nha/temporal/f44b135a6b96b5aa25f622f691ce9a669c142daf/src/nha/temporal/testing.clj | clojure | <-- separate dependency
^WorkflowServiceStubs service nil
^WorkerFactory factory nil
:service service
:factory factory | (ns nha.temporal.testing
"kept in a different namespace.
Requiring this ns means that should be on the classpath"
(:import
[io.temporal.activity Activity ActivityInterface ActivityMethod ActivityOptions]
[io.temporal.client WorkflowClient WorkflowOptions WorkflowClientOptions]
[io.temporal.common RetryOp... |
9dcfee0c1353cb9736f698815ab11a86dec695aace06cb3e971deed308c67b7c | ocaml-multicore/tezos | stake_storage.mli | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2021 Nomadic Labs , < >
(* ... | null | https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_protocol/stake_storage.mli | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2021 Nomadic Labs , < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETHER IN A... |
0a0d488757440cd03adae2e8de48aa218849606b0b96f5385e8b1d55d2254f05 | spawnfest/eep49ers | xref.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2000 - 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 applic... | null | https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/tools/src/xref.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 l... | Copyright Ericsson AB 2000 - 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(xref).
-behaviour(gen_server).
-export([start/1, start/2, stop/1]).
-export([m/1, d/1,
add_release/2, a... |
c04a9e7a2a2c36b59b07a99d283d03664b73918245a94c56368b6ceed27688d7 | patricoferris/ocaml-multicore-monorepo | caqti_lwt.ml | Copyright ( C ) 2014 - -2021 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... | null | https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/ocaml-caqti/lib-lwt/caqti_lwt.ml | ocaml | Copyright ( C ) 2014 - -2021 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... | |
a8e95074dc6886e39b0edf432406487c8ffec906a73465859ce63ee9603f7ea1 | huangz1990/SICP-answers | test-group.scm | ;;; ----------------------------------------------------------------------
Copyright 2007 - 2008 .
;;; ----------------------------------------------------------------------
;;; This file is part of Test Manager.
;;;
;;; Test Manager is free software; you can redistribute it and/or modify
it under the terms of t... | null | https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/test-manager/test-group.scm | scheme | ----------------------------------------------------------------------
----------------------------------------------------------------------
This file is part of Test Manager.
Test Manager is free software; you can redistribute it and/or modify
(at your option) any later version.
Test Manager is distributed ... | Copyright 2007 - 2008 .
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
(define-record-type single-test
(make-single-test name thunk docstring)
single... |
c2bff1ffef9133e4b83b01524459559c4425c2e5236ebabd9b5e2458a3955c7a | spechub/Hets | RawSym.hs | |
Module : ./HasCASL / RawSym.hs
Description : raw symbol functions
Copyright : ( c ) and Uni Bremen 2002 - 2003
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : provisional
Portability : portable
raw symbols bridge symb items and the symbols o... | null | https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/HasCASL/RawSym.hs | haskell | check here which symbol is in the signature | |
Module : ./HasCASL / RawSym.hs
Description : raw symbol functions
Copyright : ( c ) and Uni Bremen 2002 - 2003
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : provisional
Portability : portable
raw symbols bridge symb items and the symbols o... |
d71453a00dc78b58de4d8ced741fe9d303da8766b10c19ed55edc8636696d9fe | erlang-ls/erlang_ls | diagnostics_parse_transform_usage.erl | -module(diagnostics_parse_transform_usage).
-export([ main/1 ]).
-compile({parse_transform, diagnostics_parse_transform}).
main(Args) ->
ok.
| null | https://raw.githubusercontent.com/erlang-ls/erlang_ls/36bf0815e35db5d25a76e80f98f306f25fff7d8c/apps/els_lsp/priv/code_navigation/src/diagnostics_parse_transform_usage.erl | erlang | -module(diagnostics_parse_transform_usage).
-export([ main/1 ]).
-compile({parse_transform, diagnostics_parse_transform}).
main(Args) ->
ok.
| |
20bb13961ca2c25aadc306bfaaf05f6412398333a6d31eaa36c11dfa7a1f6fc9 | footprintanalytics/footprint-web | ssh.clj | (ns metabase.util.ssh
"SSH tunnel support for JDBC-based DWs. TODO -- it seems like this code is JDBC-specific, or at least big parts of
this all. We should consider moving some or all of this code to a new namespace like
`metabase.driver.sql-jdbc.connection.ssh-tunnel` or something like that."
(:require [cloju... | null | https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/util/ssh.clj | clojure | This parameter is set dynamically when the connection is established
SSH tunnel will always be through localhost
the input port is not known until the connection is opened
no ssh tunnel in use
tunnel in use, and is open
tunnel in use, and is not open
TODO -- I think `with-ssh-tunnel-details` or something like th... | (ns metabase.util.ssh
"SSH tunnel support for JDBC-based DWs. TODO -- it seems like this code is JDBC-specific, or at least big parts of
this all. We should consider moving some or all of this code to a new namespace like
`metabase.driver.sql-jdbc.connection.ssh-tunnel` or something like that."
(:require [cloju... |
3dc3037003270030ab5373c8637cc4b197592b338a5ec5816d716282cde17ad6 | 8thlight/hyperion | redis_spec.clj | (ns hyperion.redis-spec
(:require [speclj.core :refer :all ]
[hyperion.api :refer :all ]
[hyperion.log :as log]
[hyperion.dev.spec :refer [it-behaves-like-a-datastore]]
[hyperion.redis.spec-helper :refer [with-testable-redis-datastore]]
[taoensso.carmine :as... | null | https://raw.githubusercontent.com/8thlight/hyperion/b1b8f60a5ef013da854e98319220b97920727865/redis/spec/hyperion/redis_spec.clj | clojure | (ns hyperion.redis-spec
(:require [speclj.core :refer :all ]
[hyperion.api :refer :all ]
[hyperion.log :as log]
[hyperion.dev.spec :refer [it-behaves-like-a-datastore]]
[hyperion.redis.spec-helper :refer [with-testable-redis-datastore]]
[taoensso.carmine :as... | |
d000eec4d5d42b56bdbb126d35420e0ab74bcb5e3eda7656c4fab09ce6c08c51 | rd--/hsc3 | oneZero.help.hs | -- oneZero
let n = whiteNoiseId 'α' ar in oneZero (n * 0.1) 0.5
-- oneZero
let n = whiteNoiseId 'α' ar in oneZero (n * 0.1) (-0.5)
-- oneZero
let n = whiteNoiseId 'α' ar
c = line kr (-0.5) 0.5 10 RemoveSynth
in oneZero (n * 0.1) c
| null | https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/oneZero.help.hs | haskell | oneZero
oneZero
oneZero | let n = whiteNoiseId 'α' ar in oneZero (n * 0.1) 0.5
let n = whiteNoiseId 'α' ar in oneZero (n * 0.1) (-0.5)
let n = whiteNoiseId 'α' ar
c = line kr (-0.5) 0.5 10 RemoveSynth
in oneZero (n * 0.1) c
|
2048f54079443b7ca6778dfbf61f83bb6637b8d7ef8709782142e20fc77ebd76 | samueldurantes/haildo | Primitives.hs | module Core.Primitives
( primitives
) where
import Prelude hiding (print)
import Core.Interpreter (eval)
import Data.Text (Text)
import Data.IORef (modifyIORef)
import Syntax.Tree (SExpr(..), Value(..), Context(..), Ret(..))
import System.Posix (dlopen, RTLDFlags (RTLD_LAZY), dlsym)
isInt :: Value -> Bool
isInt ... | null | https://raw.githubusercontent.com/samueldurantes/haildo/dcdb1c5e7aa502fb55bedc3e71f3bed253aa7dd3/src/Core/Primitives.hs | haskell | module Core.Primitives
( primitives
) where
import Prelude hiding (print)
import Core.Interpreter (eval)
import Data.Text (Text)
import Data.IORef (modifyIORef)
import Syntax.Tree (SExpr(..), Value(..), Context(..), Ret(..))
import System.Posix (dlopen, RTLDFlags (RTLD_LAZY), dlsym)
isInt :: Value -> Bool
isInt ... | |
5d2f4b7921a20745d0e64e826c5df0c275d97554ab83250d4538d2e85e531c89 | janestreet/incr_dom | text_input_example_test.ml | open! Core
open! Incr_dom_testing
module App = Incr_dom_text_input_example_lib.App
let make_helpers () =
let driver =
Driver.create
~initial_model:App.initial_model
~sexp_of_model:App.Model.sexp_of_t
~initial_state:()
(module App)
in
Helpers.make driver
;;
let%expect_test "default mo... | null | https://raw.githubusercontent.com/janestreet/incr_dom/f2dfcf932d252aec523ccbe3da02b5d264e4a1a2/example/text_input/test/text_input_example_test.ml | ocaml | open! Core
open! Incr_dom_testing
module App = Incr_dom_text_input_example_lib.App
let make_helpers () =
let driver =
Driver.create
~initial_model:App.initial_model
~sexp_of_model:App.Model.sexp_of_t
~initial_state:()
(module App)
in
Helpers.make driver
;;
let%expect_test "default mo... | |
0087e14bbbe8f8f3e3048f3073e726104f0a7c4daca321b7ede5fc7d7b4c639f | staples-sparx/kits | csv_test.clj | (ns kits.csv-test
(:use
kits.foundation
clojure.test)
(:require
[clojure.java.io :as clj-io]
[kits.io :as io]
[kits.csv :as csv]
[kits.foundation :as f]))
(defn sample-csv []
(io/tmp-file-with "sample" ".csv"
"\"id\" \"left\" \"right\" \"split_var\" \"split_point\" \"status\" \"predictio... | null | https://raw.githubusercontent.com/staples-sparx/kits/66ae99bce83e8fd1248cc5c0da1f23673f221073/test/kits/csv_test.clj | clojure | (ns kits.csv-test
(:use
kits.foundation
clojure.test)
(:require
[clojure.java.io :as clj-io]
[kits.io :as io]
[kits.csv :as csv]
[kits.foundation :as f]))
(defn sample-csv []
(io/tmp-file-with "sample" ".csv"
"\"id\" \"left\" \"right\" \"split_var\" \"split_point\" \"status\" \"predictio... | |
271d4a67b4b1ecb6330ea9cdb29a70e599ab89ac51bec38cc540b62d0eee7d26 | oofp/Beseder | CommProv.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE InstanceSigs #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE PartialTypeSignatures #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies ... | null | https://raw.githubusercontent.com/oofp/Beseder/a0f5c5e3138938b6fa18811d646535ee6df1a4f4/src/Beseder/Resources/Comm/CommProv.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE TypeSynonymInstances #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE LambdaCase # | # LANGUAGE FlexibleInstances #
# LANGUAGE InstanceSigs #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE PartialTypeSignatures #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
module Beseder.Resources.Comm.Com... |
c6a7d43e3924e15e1e6703ceb180c943d7e8f8d1c09f4d5b8ca4b7ee1c0cdca6 | id774-2/maeve | ack_general.scm | (define (ack m n)
(if (zero? m)
(+ n 1)
(if (zero? n)
(ack (- m 1) 1)
(ack (- m 1)
(ack m (- n 1))))))
(display (ack 3 12))
| null | https://raw.githubusercontent.com/id774-2/maeve/a9442c3479b0d575f896b898eb889297f30e1a96/for-others/ack_general.scm | scheme | (define (ack m n)
(if (zero? m)
(+ n 1)
(if (zero? n)
(ack (- m 1) 1)
(ack (- m 1)
(ack m (- n 1))))))
(display (ack 3 12))
| |
51e501208a9a515d145b7810a000848f6647b43094f9cfacf83284d97e0dd115 | ucsd-progsys/liquidhaskell | Laws.hs | module Language.Haskell.Liquid.Bare.Laws ( makeInstanceLaws ) where
import qualified Data.Maybe as Mb
import qualified Data.List as L
import qualified Data.HashMap.Strict as M
import Control.Monad ((<=<))
import qualifie... | null | https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/8d905ff44e3b5c8b94d7ca561a1f1db1452caeec/src/Language/Haskell/Liquid/Bare/Laws.hs | haskell | module Language.Haskell.Liquid.Bare.Laws ( makeInstanceLaws ) where
import qualified Data.Maybe as Mb
import qualified Data.List as L
import qualified Data.HashMap.Strict as M
import Control.Monad ((<=<))
import qualifie... | |
315a1d96f44f5192e4d5fb463a254b80b69cf3ddab5cecae6a9c54287b71899e | xumingming/house | util.clj | (ns house.util)
;; earth radius
(def ^:const EARTH-RADIUS 6378.137)
(defn rad [d]
(/ (* d (Math/PI))
180.0))
(defn cal-distance
"Calculates the distance between two geo-location."
[lat1 lng1 lat2 lng2]
(let [rad-lat1 (rad lat1)
rad-lat2 (rad lat2)
a (- rad-lat1 rad-lat2)
b (- (ra... | null | https://raw.githubusercontent.com/xumingming/house/e4813880b11e0fadf9c00b9a6b9deabc1f7de525/src/house/util.clj | clojure | earth radius | (ns house.util)
(def ^:const EARTH-RADIUS 6378.137)
(defn rad [d]
(/ (* d (Math/PI))
180.0))
(defn cal-distance
"Calculates the distance between two geo-location."
[lat1 lng1 lat2 lng2]
(let [rad-lat1 (rad lat1)
rad-lat2 (rad lat2)
a (- rad-lat1 rad-lat2)
b (- (rad lng1) (rad lng... |
426c7a2f213a029dd1cf26bf81f4ac814ffe156211af76c3c09375152a2e9bbc | Octachron/olivine | fn.ml |
module Aliases= struct
module L = Info.Linguistic
module B = Lib
module Ty = B.Ty
module H = Ast_helper
module Exp = H.Exp
module P = Parsetree
module C = Common
module M = Info.Common.StringMap
end
open Aliases
open Item
open Utils
let debug fmt = ( " Debug:"^^ fmt ^^ " @.% ! " )
let unique, re... | null | https://raw.githubusercontent.com/Octachron/olivine/b9d64b2a0157d79de5b85bb7f18380a0ad75874e/aster/fn.ml | ocaml | | Option Ptr Name _ -> may (C.addr exp)
Allocate composite fields |
module Aliases= struct
module L = Info.Linguistic
module B = Lib
module Ty = B.Ty
module H = Ast_helper
module Exp = H.Exp
module P = Parsetree
module C = Common
module M = Info.Common.StringMap
end
open Aliases
open Item
open Utils
let debug fmt = ( " Debug:"^^ fmt ^^ " @.% ! " )
let unique, re... |
7d0468ba3b3200d7b757d0c2af8ef05d2ad2a0d8bb330dfe911078d2ba124f7e | lambdaisland/kaocha-cljs | hierarchy.clj | (ns kaocha.cljs.hierarchy
(:require [kaocha.hierarchy :as hierarchy]))
(defmacro known-keys []
(get-in hierarchy/hierarchy [:descendants :kaocha/known-key]))
| null | https://raw.githubusercontent.com/lambdaisland/kaocha-cljs/b6a7aa143f95e828ee758c09a2f719b279a33b0c/src/kaocha/cljs/hierarchy.clj | clojure | (ns kaocha.cljs.hierarchy
(:require [kaocha.hierarchy :as hierarchy]))
(defmacro known-keys []
(get-in hierarchy/hierarchy [:descendants :kaocha/known-key]))
| |
0c8333654ed53877f867d1442ea96188e4b85119c0bfea70fb1c164e7c8a5e88 | EligiusSantori/L2Apf | select_server.scm | (module system racket/base
(provide login-client-packet/select-server)
(require "../../packet.scm")
(define (login-client-packet/select-server struct)
(let ((s (open-output-bytes)))
(begin
(write-byte #x02 s)
(write-bytes (or (cdr (assoc 'login-key struct)) (make-bytes 8)) s)
(write-byte (... | null | https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/login/client/select_server.scm | scheme | (module system racket/base
(provide login-client-packet/select-server)
(require "../../packet.scm")
(define (login-client-packet/select-server struct)
(let ((s (open-output-bytes)))
(begin
(write-byte #x02 s)
(write-bytes (or (cdr (assoc 'login-key struct)) (make-bytes 8)) s)
(write-byte (... | |
c7a020d661ea61131b2ca0210bb9c42a5b7d29ff78becd4c05e2c50dc7908e78 | Concordium/concordium-client | Commands.hs | module Concordium.Client.Commands
( optsParser
, backendParser
, allowedValuesDelegationTargetAsString
, Verbose
, Options(..)
, Backend(..)
, Cmd(..)
, ConfigCmd(..)
, AccountExportFormat(..)
, ConfigAccountCmd(..)
, TransactionOpts(..)
, Interval(..)
, InteractionOpts(..)
, TransactionCmd(... | null | https://raw.githubusercontent.com/Concordium/concordium-client/c1d23d2779579df9af82b7fffdf2c88e296a7fc6/src/Concordium/Client/Commands.hs | haskell | groups 'config account' commands
365 days
|Path to a contract schema, used to display the transaction event info.
^Eiher total amount, interval, number of intervals and starting time or a raw list of timestamps and amounts.
| Address of the receiver.
| Amount to send.
| Which indices to use as inputs to the encr... | module Concordium.Client.Commands
( optsParser
, backendParser
, allowedValuesDelegationTargetAsString
, Verbose
, Options(..)
, Backend(..)
, Cmd(..)
, ConfigCmd(..)
, AccountExportFormat(..)
, ConfigAccountCmd(..)
, TransactionOpts(..)
, Interval(..)
, InteractionOpts(..)
, TransactionCmd(... |
5c7046d7b22bed0aa9d9bb25e52f939ab7a9ebb0e19aa00b57391c078edf75d7 | NorfairKing/habitscipline | Worker.hs | # LANGUAGE RecordWildCards #
module Habitscipline.TUI.Worker where
import Brick.BChan
import Control.Monad
import Control.Monad.IO.Class
import Data.Map (Map)
import qualified Data.Map as M
import Database.Persist
import Database.Persist.Sql
import Habitscipline.Client.Data
import Habitscipline.Data
import Habitscipl... | null | https://raw.githubusercontent.com/NorfairKing/habitscipline/56637f324fbdf9c7983c2180fcdea89518e27500/habitscipline-tui/src/Habitscipline/TUI/Worker.hs | haskell | # LANGUAGE RecordWildCards #
module Habitscipline.TUI.Worker where
import Brick.BChan
import Control.Monad
import Control.Monad.IO.Class
import Data.Map (Map)
import qualified Data.Map as M
import Database.Persist
import Database.Persist.Sql
import Habitscipline.Client.Data
import Habitscipline.Data
import Habitscipl... | |
eea013094aeb91e8b2a799c4bbb60cad09897b5b51f71d92e163bb3d1a676590 | ericnormand/hindley-milner | syntax.clj | (ns hindley-milner.syntax
(:require [clojure.string :as string]
[clojure.set :as set]
[clojure.walk :as walk]))
;; util
(defn vmap [f mp]
(into {} (for [[k v] mp] [k (f v)])))
;; value code
(defn application?
"Is this form a function application?
Function applications are seqs whose ... | null | https://raw.githubusercontent.com/ericnormand/hindley-milner/954aef9d40d530ea8af192e1e539067a7577a3a5/src/hindley_milner/syntax.clj | clojure | util
value code
type code | (ns hindley-milner.syntax
(:require [clojure.string :as string]
[clojure.set :as set]
[clojure.walk :as walk]))
(defn vmap [f mp]
(into {} (for [[k v] mp] [k (f v)])))
(defn application?
"Is this form a function application?
Function applications are seqs whose first elements are not... |
295b676f5333a030ee26646a50c044bd9e139c8733884cb2dc3cfb4517bf9d51 | xxyzz/SICP | Exercise_1_30.rkt | #lang racket/base
(define (sum term next n)
(define (coefficient k)
(cond [(zero? k) 1]
[(= k n) 1]
[(even? k) 2]
[else 4]))
(define (iter k result)
(if (> k n)
result
(iter
(add1 k)
(+ result (* (... | null | https://raw.githubusercontent.com/xxyzz/SICP/e26aea1c58fd896297dbf5406f7fcd32bb4f8f78/1_Building_Abstractions_with_Procedures/1.3_Formulating_Abstractions_with_Higher-Order_Procedures/Exercise_1_30.rkt | racket | 1 / 4 | #lang racket/base
(define (sum term next n)
(define (coefficient k)
(cond [(zero? k) 1]
[(= k n) 1]
[(even? k) 2]
[else 4]))
(define (iter k result)
(if (> k n)
result
(iter
(add1 k)
(+ result (* (... |
4c92efa01bbc8baa1af682662a841970dc30bc63d5299e2cf3f17e1798976111 | michiakig/sicp | ex-1.18.scm | ;;;; Structure and Interpretation of Computer Programs
Chapter 1 Section 2 Procedures and the Processes They Generate
Exercise 1.18
Using the results of exercises 1.16 and 1.17 , devise a procedure that generates an iterative process for multiplying two integers in terms of adding , doubling , and halving and ... | null | https://raw.githubusercontent.com/michiakig/sicp/1aa445f00b7895dbfaa29cf6984b825b4e5af492/ch1/ex-1.18.scm | scheme | Structure and Interpretation of Computer Programs | Chapter 1 Section 2 Procedures and the Processes They Generate
Exercise 1.18
Using the results of exercises 1.16 and 1.17 , devise a procedure that generates an iterative process for multiplying two integers in terms of adding , doubling , and halving and uses a logarithmic number of steps .
(define fast-mult... |
19985ac405cc4bfae0e34e092875abf32d907b57e47eb1ee5052e0d80adcb454 | re-path/studio | core.cljs | (ns repath.studio.history.core
(:require [repath.studio.history.events]
[repath.studio.history.subs]
[repath.studio.history.handlers])) | null | https://raw.githubusercontent.com/re-path/studio/0841056ef12689cffb226a99a9dfe58d7f2c4778/src/repath/studio/history/core.cljs | clojure | (ns repath.studio.history.core
(:require [repath.studio.history.events]
[repath.studio.history.subs]
[repath.studio.history.handlers])) | |
6a8ab4ea6e77cacf87c6c0242a020d3d0b3105179c71ce7d9379b1383975dab8 | rururu/rete4frames | grid3x3-p1.clj | ;;; The puzzle is:
;;;
* * * 3 * * * * 6
* 8 * * * * 9 1 *
3 1 * 7 * 9 * 2 *
;;;
6 2 7 * * 4 3 * *
* * * * 5 * * * *
* * 8 6 * * 2 7 4
;;;
* 6 * 4 * 1 * 9 8
* 4 5 * * * * 6 *
9 * * * * 5 * * *
;;;
;;; The solution is:
;;;
5 9 2 3 1... | null | https://raw.githubusercontent.com/rururu/rete4frames/b4c19af125db0918c1cf57240b1dafd768ffc52a/examples/sudoku/grid3x3-p1.clj | clojure | The puzzle is:
The solution is:
Rules used:
Naked Single | * * * 3 * * * * 6
* 8 * * * * 9 1 *
3 1 * 7 * 9 * 2 *
6 2 7 * * 4 3 * *
* * * * 5 * * * *
* * 8 6 * * 2 7 4
* 6 * 4 * 1 * 9 8
* 4 5 * * * * 6 *
9 * * * * 5 * * *
5 9 2 3 1 8 7 4 6
7 8 4 5 2 6 9 1 3
3 1 6 7 4 9 8 ... |
9578ba4367962e18f57e4ec5b3846d1728f2aeca88ed12e31704013c02042475 | zotonic/z_stdlib | z_convert.erl | @author
@copyright Copyright ( c ) 2008 - 2009 , Copyright ( c ) 2009 - 2021
%%
%% @doc Conversion functions for all kinds of data types. Changes to
's version : added date conversion , undefined handling and more
%% to_bool cases.
Copyright 2009 - 2021
%%
Licensed under the Apache License , Version... | null | https://raw.githubusercontent.com/zotonic/z_stdlib/328723d6fba9f37d1da6cdda92963c45a0f46fd0/src/z_convert.erl | erlang |
@doc Conversion functions for all kinds of data types. Changes to
to_bool cases.
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, ... | @author
@copyright Copyright ( c ) 2008 - 2009 , Copyright ( c ) 2009 - 2021
's version : added date conversion , undefined handling and more
Copyright 2009 - 2021
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BAS... |
42e4ac29d53b64c90b30150964ca6db3e1cd8d0315e63fbaa1fe678dc3bb587c | smallhadroncollider/taskell-2.0 | TestData.hs | module TestData where
import RIO
import qualified RIO.HashMap as HM
import qualified RIO.Seq as Seq
import Taskell.Data.Taskell (Taskell(..))
import Taskell.Data.Types.Contributor (Contributor(..), ContributorID(..), Contributors)
import Taskell.Data.Types.List (List(..), ListID(..), ListIDs, Lists)
import Taskell.Da... | null | https://raw.githubusercontent.com/smallhadroncollider/taskell-2.0/9e55622faa7279a60534a4f4e26bd8465dbd7b9a/test/data/TestData.hs | haskell | contributors
tasks
lists
tags
ids
full | module TestData where
import RIO
import qualified RIO.HashMap as HM
import qualified RIO.Seq as Seq
import Taskell.Data.Taskell (Taskell(..))
import Taskell.Data.Types.Contributor (Contributor(..), ContributorID(..), Contributors)
import Taskell.Data.Types.List (List(..), ListID(..), ListIDs, Lists)
import Taskell.Da... |
07191ecbf799cf8b1b66725f0da80916cb2e754600342392f5d9eec2570b5a93 | grin-compiler/ghc-wpc-sample-programs | FindFile.hs | ------------------------------------------------------------------------
-- | Functions which map between module names and file names.
--
Note that file name lookups are cached in the ' TCState ' . The code
assumes that no Agda source files are added or removed from the
-- include directories while the code is bein... | null | https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/Agda-2.6.1/src/full/Agda/Interaction/FindFile.hs | haskell | ----------------------------------------------------------------------
| Functions which map between module names and file names.
include directories while the code is being type checked.
----------------------------------------------------------------------
| Type aliases for source files and interface files.
d... | Note that file name lookups are cached in the ' TCState ' . The code
assumes that no Agda source files are added or removed from the
module Agda.Interaction.FindFile
( SourceFile(..), InterfaceFile(intFilePath)
, toIFile, mkInterfaceFile
, FindError(..), findErrorToTypeError
, findFile, findFile', findFile... |
3d03f42caa0a98c523634275ab1a5951c446b5e8a71629d102162e1ce2d3b362 | cemerick/austin | bcrepl_sample.cljs | (ns cemerick.austin.bcrepl-sample
(:require [clojure.browser.repl]))
(defn hello
[]
(js/alert "hello"))
(defn whoami
[]
(.-userAgent js/navigator))
| null | https://raw.githubusercontent.com/cemerick/austin/424bca352286bed3f3324177651ca2b914851407/browser-connected-repl-sample/src/cljs/cemerick/austin/bcrepl_sample.cljs | clojure | (ns cemerick.austin.bcrepl-sample
(:require [clojure.browser.repl]))
(defn hello
[]
(js/alert "hello"))
(defn whoami
[]
(.-userAgent js/navigator))
| |
eddc69ef4a8fc0c76611575540b289a5a9a826af93aa7788de8951d19d0eab79 | Eduap-com/WordMat | divp.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ "
" f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $... | null | https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/hompack/lisp/divp.lisp | lisp | Compiled by f2cl version:
Using Lisp CMU Common Lisp snapshot-2020-04 (21D Unicode)
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':array)
(:array-slicing t) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ "
" f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ "
" f2cl6.l , v 1d5cbacbb9... |
bd426e4bae967037478fdebe0e0d1223960a4da6b6ad3bcb3b5832f35fb9a415 | yansh/MoanaML | moana_lists.ml |
* Copyright ( c ) 2014
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS... | null | https://raw.githubusercontent.com/yansh/MoanaML/c9843c10a0624e1c06e185e3dd1e7d877270d0d7/moana_lists.ml | ocaml | List based storage |
* Copyright ( c ) 2014
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS... |
33c9061e597a8422443f58c01de6bb2586d8b4a9ddbc427b023174a659b2fca1 | picty/parsifal | enum-13.ml | enum test (8, Exception) =
| 0 -> A, "First constructor A"
| 1 -> B, "BBB"
| 2 -> C
| 3 -> A, "First constructor A"
| null | https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/syntax/unit/enum-13.ml | ocaml | enum test (8, Exception) =
| 0 -> A, "First constructor A"
| 1 -> B, "BBB"
| 2 -> C
| 3 -> A, "First constructor A"
| |
4bfdb2e3ecd0f624858e5d71cbe6cb60134f8eae943e9da7da65acf6996bc78f | janestreet/memtrace_viewer_with_deps | file.ml | open! Base
open Import
module Name : sig
type t [@@deriving_inline sexp, compare]
include sig
[@@@ocaml.warning "-32"]
include Ppx_sexp_conv_lib.Sexpable.S with type t := t
val compare : t -> t -> int
end
[@@ocaml.doc "@inline"]
[@@@end]
val relative_to : dir:string -> t -> string
inclu... | null | https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/ppx_expect/common/file.ml | ocaml | open! Base
open Import
module Name : sig
type t [@@deriving_inline sexp, compare]
include sig
[@@@ocaml.warning "-32"]
include Ppx_sexp_conv_lib.Sexpable.S with type t := t
val compare : t -> t -> int
end
[@@ocaml.doc "@inline"]
[@@@end]
val relative_to : dir:string -> t -> string
inclu... | |
47fe4c1155b21109e42babb6c3369d2cef42b0565954feaf54f0a0298a285875 | robert-strandh/SICL | constantp-defun.lisp | (cl:in-package #:sicl-evaluation-and-compilation)
(let* ((global-environment (env:global-environment environment))
(constant-variable-function (fdefinition 'env:constant-variable)))
(defun constantp (form &optional environment)
(or (and (not (symbolp form))
(not (consp form)))
(keywor... | null | https://raw.githubusercontent.com/robert-strandh/SICL/406638d1b8c82fc2c551f90086a4157a15f05cd5/Code/Evaluation-and-compilation/constantp-defun.lisp | lisp | (cl:in-package #:sicl-evaluation-and-compilation)
(let* ((global-environment (env:global-environment environment))
(constant-variable-function (fdefinition 'env:constant-variable)))
(defun constantp (form &optional environment)
(or (and (not (symbolp form))
(not (consp form)))
(keywor... | |
fe0fc4dd181b4ef59cb4c1b49c3f45a778b3f7776ff6e25901187377d49f4dd2 | ocaml-community/zed | zed_char.ml |
* zed_char.ml
* -----------
* Copyright : ( c ) 2019 , DoYe < >
* Licence : BSD3
*
* This file is a part of , an editor engine .
* zed_char.ml
* -----------
* Copyright : (c) 2019, ZAN DoYe <>
* Licence : BSD3
*
* This file is a part of Zed, an editor engine.
*)
open Result
type t... | null | https://raw.githubusercontent.com/ocaml-community/zed/bb78fec8999a7c205fd060288544a0065dc1cc14/src/zed_char.ml | ocaml |
* zed_char.ml
* -----------
* Copyright : ( c ) 2019 , DoYe < >
* Licence : BSD3
*
* This file is a part of , an editor engine .
* zed_char.ml
* -----------
* Copyright : (c) 2019, ZAN DoYe <>
* Licence : BSD3
*
* This file is a part of Zed, an editor engine.
*)
open Result
type t... | |
219a1bf9740ccedb36b4c97564af599482bfb0ef222b45eb0df1f15cf906afc7 | rd--/hsc3 | eventVoicer.help.hs | -- event ; c=freq ; harmonics of A2
let f (c,g,_,_,_,_,_,_,_,_,_) = sinOsc ar (110 * (constant c + 1)) 0 * g
in mix (voicer 16 f) * control kr "gain" 0.05
event ; x = freq ; 0 - 1 = full range ; i.e. mpe controller or large touch controller
let f (_,g,x,_,_,_,_,_,_,_,_) = sinOsc ar (midiCps (x * 127)) 0 * g
in mix (... | null | https://raw.githubusercontent.com/rd--/hsc3/e1c9377f4985f4cc209a9cb11421bc8f1686c6f2/Help/Ugen/eventVoicer.help.hs | haskell | event ; c=freq ; harmonics of A2
event ; p+px=freq
event ; p=freq z=amp
event ; simple frequency modulation
carrier ratio
modulation ratio
modulation index
-- ; reference tones | let f (c,g,_,_,_,_,_,_,_,_,_) = sinOsc ar (110 * (constant c + 1)) 0 * g
in mix (voicer 16 f) * control kr "gain" 0.05
event ; x = freq ; 0 - 1 = full range ; i.e. mpe controller or large touch controller
let f (_,g,x,_,_,_,_,_,_,_,_) = sinOsc ar (midiCps (x * 127)) 0 * g
in mix (voicer 16 f) * control kr "gain" 0.1... |
f36f30dc0ead2c0ab38674d139d6869c6681e412692db7215fa1f76b4cdcaa3d | YoshikuniJujo/test_haskell | makeEnumVkAttachmentLoadOp.hs | # OPTIONS_GHC -Wall -fno - warn - tabs #
module Main where
import MakeEnum
main :: IO ()
main = makeEnum
"/usr/include/vulkan/vulkan_core.h"
"AttachmentLoadOp" "VkAttachmentLoadOp" ""
| null | https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/b292ae30a9fee99235d1009d70973664f871604f/themes/gui/vulkan/try-my-vulkan/tools/makeEnumVkAttachmentLoadOp.hs | haskell | # OPTIONS_GHC -Wall -fno - warn - tabs #
module Main where
import MakeEnum
main :: IO ()
main = makeEnum
"/usr/include/vulkan/vulkan_core.h"
"AttachmentLoadOp" "VkAttachmentLoadOp" ""
| |
d747314dddff323527456d4103bb5c27b0e5c523b7f6d31b5a880e91d5697b87 | toolslive/camltc | bdb_test.ml | open Printf
module Bdb = Camltc.Bdb
let nuke db fn =
Bdb.close db;
Bdb.delete db;
Sys.remove fn
let () =
let fn = "/tmp/test.tc" in
let db = Bdb.create fn [] in
Bdb.put db "key" "value";
Bdb.put db "key0" "value0";
Bdb.put db "key1" "value1";
Bdb.put db "key2" "value2";
assert(Bdb.get db "key" = ... | null | https://raw.githubusercontent.com/toolslive/camltc/0f23bfb5b98e481f69c1ed548b3fc48376f8967c/example/bdb_test.ml | ocaml | open Printf
module Bdb = Camltc.Bdb
let nuke db fn =
Bdb.close db;
Bdb.delete db;
Sys.remove fn
let () =
let fn = "/tmp/test.tc" in
let db = Bdb.create fn [] in
Bdb.put db "key" "value";
Bdb.put db "key0" "value0";
Bdb.put db "key1" "value1";
Bdb.put db "key2" "value2";
assert(Bdb.get db "key" = ... | |
30fd6f39fbf329db9f31078c8a96a478455a8474d6a408441dabcdb3979c3872 | evincarofautumn/kitten | Layoutness.hs | |
Module : Kitten . Layoutness
Description : Whether a block is a layout block
Copyright : ( c ) , 2016
License : MIT
Maintainer :
Stability : experimental
Portability : GHC
Module : Kitten.Layoutness
Description : Whether a block is a layout block
Copyright : (c) Jon Purdy,... | null | https://raw.githubusercontent.com/evincarofautumn/kitten/a5301fe24dbb9ea91974abee73ad544156ee4722/lib/Kitten/Layoutness.hs | haskell | | A display hint for whether a block was originally written with 'Layout'
(@:@) or 'Nonlayout' (@{}@) syntax. | |
Module : Kitten . Layoutness
Description : Whether a block is a layout block
Copyright : ( c ) , 2016
License : MIT
Maintainer :
Stability : experimental
Portability : GHC
Module : Kitten.Layoutness
Description : Whether a block is a layout block
Copyright : (c) Jon Purdy,... |
6cc8b5a2c03df1e17b0033b14b209cee65f6e64cd5fcb8d16f52e38d572ff692 | dbuenzli/vg | graph.ml | ---------------------------------------------------------------------------
Copyright ( c ) 2013 The vg programmers . 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/vg/2d0cd56636a17280fe938ecaafc6402383dca1f3/db/graph.ml | ocaml | ---------------------------------------------------------------------------
Copyright ( c ) 2013 The vg programmers . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) 20... | |
5e218f19fed989e346b493c1a354807439b5a1ac428a67a84ffd6155d669d985 | swaywm/chicken-wlroots | getopt.scm | ;;; "getopt.scm" POSIX command argument processing
Copyright ( C ) 1993 , 1994 , 2002
;
;Permission to copy this software, to modify it, to redistribute it,
;to distribute modified versions, and to use it for any purpose is
;granted, subject to the following restrictions and understandings.
;
1 . Any copy made of t... | null | https://raw.githubusercontent.com/swaywm/chicken-wlroots/649f200126102b1247ba638eb797d14b46bafc0b/src/slib/getopt.scm | scheme | "getopt.scm" POSIX command argument processing
Permission to copy this software, to modify it, to redistribute it,
to distribute modified versions, and to use it for any purpose is
granted, subject to the following restrictions and understandings.
in full.
this software will be error-free, and I am under no obligat... | Copyright ( C ) 1993 , 1994 , 2002
1 . Any copy made of this software must include this copyright notice
2 . I have made no warranty or representation that the operation of
3 . In conjunction with products arising from the use of this
Packaged for R7RS Scheme by , 2017
(module (slib getopt)
(getop... |
d694b1d80e67daf63c1f22b53aea3cb69c90298d88703f39ecab66c5e79dbde9 | FranklinChen/learn-you-some-erlang | dev_event_tests.erl | -module(dev_event_tests).
-include_lib("eunit/include/eunit.hrl").
Very minimal tests , only verifying that the two implementations of
%%% timeouts work the same in their final and primitive versions
%%% as in the final module. The rest is rather cruft to emulate the normal
%%% event.erl module. Little is tested, bec... | null | https://raw.githubusercontent.com/FranklinChen/learn-you-some-erlang/878c8bc2011a12862fe72dd7fdc6c921348c79d6/reminder/src/tests/dev_event_tests.erl | erlang | timeouts work the same in their final and primitive versions
as in the final module. The rest is rather cruft to emulate the normal
event.erl module. Little is tested, because little needs to be tested. | -module(dev_event_tests).
-include_lib("eunit/include/eunit.hrl").
Very minimal tests , only verifying that the two implementations of
-record(state, {server,
name="",
to_go=[0]}).
timeout_test_() ->
{inorder,
[fun() -> timeout(loop1, 2) end,
fun() -> timeout(loop2, [... |
1af8abca658a21ca182596ab55e4dc6f016c8ec1a03cfa4a1a60163cc0755d3f | heidegger/JSConTest | TCssEffJS.mli | * Module that transforms CssEffects into JavaScript
* Complies an Css effect into a JavaScript expression
val js_of_t : Testlib.varname -> Csseff.t -> 'a AST.expression
| null | https://raw.githubusercontent.com/heidegger/JSConTest/7c807a76af998da25775fba1f5cbe1cf8031d121/ocaml/transform/TCssEffJS.mli | ocaml | * Module that transforms CssEffects into JavaScript
* Complies an Css effect into a JavaScript expression
val js_of_t : Testlib.varname -> Csseff.t -> 'a AST.expression
| |
cb3fa422ab342bbbe8f88e2a3ad794a7c4d344d0821b202405efa91e6f805737 | klutometis/clrs | 10.4-3.scm | (require-extension syntax-case check)
(require '../10.4/section)
(import section-10.4)
(check (tree-map/iter tree-node-key exercise-10.4-1)
=> '(7 5 4 12 2 21 10 18))
| null | https://raw.githubusercontent.com/klutometis/clrs/f85a8f0036f0946c9e64dde3259a19acc62b74a1/10.4/10.4-3.scm | scheme | (require-extension syntax-case check)
(require '../10.4/section)
(import section-10.4)
(check (tree-map/iter tree-node-key exercise-10.4-1)
=> '(7 5 4 12 2 21 10 18))
| |
a2fe4e079f227be585641fff346260c3ea3e5ce29cdbd0110602c01aad346fd7 | jaspervdj/tweetov | Markov.hs | -- | Markov chain data structure
--
module Tweetov.Data.Markov
( Sample (..)
, Distribution
, Model
, fromSamples
, sentence
) where
import Data.Map (Map)
import qualified Data.Map as M
import Data.Monoid
-- | A sample to build a model. In our case, this is simply a tweet.
--
newtype Sample a ... | null | https://raw.githubusercontent.com/jaspervdj/tweetov/b310da0844ed9bfe8696ffba6f70ea0194dd6144/src/Tweetov/Data/Markov.hs | haskell | | Markov chain data structure
| A sample to build a model. In our case, this is simply a tweet.
| This represents an element in the markov chain. 'End' is a symbolic
representation of the virtual last element.
| A 'Distribution' represents the odds for taking an element as next element.
It contains the total s... | module Tweetov.Data.Markov
( Sample (..)
, Distribution
, Model
, fromSamples
, sentence
) where
import Data.Map (Map)
import qualified Data.Map as M
import Data.Monoid
newtype Sample a = Sample { unSample :: [a] }
deriving (Eq, Ord, Show)
data Element a = Element a
... |
34279049fe558507a4a0890ed0efb9bea7d24104bfafd996c6c231f763cf288a | brendanhay/gogol | List.hs | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
{-# LANGUAGE St... | null | https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-dataflow/gen/Gogol/Dataflow/Projects/Jobs/Messages/List.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
|
Stability : auto-generated
/See:/ < Dataflow API Reference> for @dataflow.projects.jobs.messages.list@.
* Resource
** Constructing a Request
| A resource alias for @dataflow.projects.jobs.messages.list@ method which the
'DataflowProjectsJobsMessagesLis... | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators... |
ff8f7d5d00c05d14e9f1ced42e844a260861913fb65f9415ccbed40761787a69 | thomasbhatia/hss | hss_test_lib.erl | $ I d : hss_test_lib.erl , v 1.4 2008/02/18 05:34:31 vances Exp $
%%%--------------------------------------------------------------------
%%%
Copyright ( c ) 2008 , Motivity Telecom Inc.
%%%
%%% All rights reserved.
%%%
%%% Redistribution and use in source and binary forms, with or without
%%% modification, are p... | null | https://raw.githubusercontent.com/thomasbhatia/hss/0d06b844ccb5929a8a7e9cecf62da8db64203972/test/hss_test_lib.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
n... | $ I d : hss_test_lib.erl , v 1.4 2008/02/18 05:34:31 vances Exp $
Copyright ( c ) 2008 , Motivity Telecom Inc.
- Neither the name of Motivity Telecom nor the names of its
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL ,
SPECIAL , EX... |
8586493665d92fcd26bed76869751845602c3b2da7f6fab410a5a666703a3276 | ucsd-progsys/dsolve | printf.mli | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
and , projet Cris... | null | https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/stdlib/printf.mli | ocaml | *********************************************************************
Objective Caml
... | and , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Public License , with
$ I d : printf.mli , v 1.54.6.2 2008/01/11 10:5... |
d6b8c346f135540503c599ba005be059c10e65072239855e26249839f7685323 | amnh/PCG | Evaluate.hs | ------------------------------------------------------------------------------
-- |
Module : . Report . Evaluate
Copyright : ( c ) 2015 - 2021 Ward Wheeler
-- License : BSD-style
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--
------------------------------------... | null | https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/app/pcg/PCG/Command/Report/Evaluate.hs | haskell | ----------------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : provisional
Portability : portable
---------------------------------------------------------------------------
# LANGUAGE FlexibleContexts #
|
specified location(s).
} | Module : . Report . Evaluate
Copyright : ( c ) 2015 - 2021 Ward Wheeler
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
module PCG.Command.Report.Evaluate
( evaluate
) where
import Bio.Graph
import Control.Arrow ((***))
import Control.Evaluation
import C... |
11fcca25f706a768d55b27b76b931b900c86a690e28eac29515609f687ff0198 | eliassona/bitcoinrpc | project.clj | (defproject bitcoinrpc "0.1.0-SNAPSHOT"
:description "Clojure and Java API for Bitcoin RPC"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:java-source-paths ["java/src"]
:dependencies [[org.clojure/clojure "1.9.0-alpha17"]
[clj-http "3.7.0"]
[... | null | https://raw.githubusercontent.com/eliassona/bitcoinrpc/ad8ad03f503b07c10c45e20fa4c92ffdf0d920ab/project.clj | clojure | (defproject bitcoinrpc "0.1.0-SNAPSHOT"
:description "Clojure and Java API for Bitcoin RPC"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:java-source-paths ["java/src"]
:dependencies [[org.clojure/clojure "1.9.0-alpha17"]
[clj-http "3.7.0"]
[... | |
77c67b6dd70c2e14f0167ff05cacdd032a36793a5ccbee7720abbdd3c4620e9a | facebook/pyre-check | query.ml |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | null | https://raw.githubusercontent.com/facebook/pyre-check/a0075f92ce9e9ab26c0aec67d38d2169e11c0390/source/server/query.ml | ocaml | TODO(T132410158) Add a module-level doc comment.
TODO(T65923817): Eliminate the need of creating a dummy context here
Return untracked so we can specifically message the user about them.
We don't yet support a syntax for fetching property setters.
We don't yet support a syntax for fetching property setters.
... |
* 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... |
fee484206159b32c75afff54ccf0e997d9281debf793adc48e24a5111bfa7447 | cedlemo/OCaml-GI-ctypes-bindings-generator | Status_icon.ml | open Ctypes
open Foreign
type t = unit ptr
let t_typ : t typ = ptr void
let create =
foreign "gtk_status_icon_new" (void @-> returning (ptr t_typ))
let create_from_file =
foreign "gtk_status_icon_new_from_file" (string @-> returning (ptr t_typ))
(*Not implemented gtk_status_icon_new_from_gicon type interface not ... | null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Status_icon.ml | ocaml | Not implemented gtk_status_icon_new_from_gicon type interface not implemented
Not implemented gtk_status_icon_set_from_gicon type interface not implemented | open Ctypes
open Foreign
type t = unit ptr
let t_typ : t typ = ptr void
let create =
foreign "gtk_status_icon_new" (void @-> returning (ptr t_typ))
let create_from_file =
foreign "gtk_status_icon_new_from_file" (string @-> returning (ptr t_typ))
let create_from_icon_name =
foreign "gtk_status_icon_new_from_icon... |
87e6d0ee6afbccd24ab62bc63b3929a8c516ba5b6187a8a960abe37727b9f3c0 | xh4/web-toolkit | package.lisp | (in-package :cl-user)
(defpackage :websocket
(:nicknames :ws :wt.ws :wt.websocket)
(:use :cl :alexandria)
#+sb-package-locks
(:lock t)
(:export
;; endpoint
:define-endpoint
;; session
:session
:define-session
:session-class
:session-open-p
:send-text
:send-binary
:ping
:close... | null | https://raw.githubusercontent.com/xh4/web-toolkit/039ca3c1a9fa401134ad5dcde9af038945df4742/websocket/package.lisp | lisp | endpoint
session
client | (in-package :cl-user)
(defpackage :websocket
(:nicknames :ws :wt.ws :wt.websocket)
(:use :cl :alexandria)
#+sb-package-locks
(:lock t)
(:export
:define-endpoint
:session
:define-session
:session-class
:session-open-p
:send-text
:send-binary
:ping
:close-session
:connect)
(:imp... |
329f926bfd8c408a741061a44e07c6cece0fd450c5e8730afe35c282e1e763dc | csgordon/cayenne | Env.hs | module Env(Env, Bind, BindExpr, initEnv,
lookupType, lookupValue, lookupNonCons, extendEnv, extendEnvs, addAlias,
lookupTypeG, lookupValueG, extendEnvG, extendEnvGs,
lookupUId,
ppEnv, ppEnvVars,
local, defn, mdefn, defnot) where
import Libs.ListUtil(mapFst)
import PPrint
... | null | https://raw.githubusercontent.com/csgordon/cayenne/7fdf59b5e21124b5caa9f776199a30cd0e5d88b2/Env.hs | haskell | module Env(Env, Bind, BindExpr, initEnv,
lookupType, lookupValue, lookupNonCons, extendEnv, extendEnvs, addAlias,
lookupTypeG, lookupValueG, extendEnvG, extendEnvGs,
lookupUId,
ppEnv, ppEnvVars,
local, defn, mdefn, defnot) where
import Libs.ListUtil(mapFst)
import PPrint
... | |
dcf6720891168890ddc2b465882313085df9fecdfb09d674ca503e30758bc00c | tensorflow/haskell | Nodes.hs | Copyright 2016 TensorFlow authors .
--
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
distr... | null | https://raw.githubusercontent.com/tensorflow/haskell/d088e30b80f1508281e400975bec9d14b431a22c/tensorflow/src/TensorFlow/Nodes.hs | haskell |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | Copyright 2016 TensorFlow authors .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE ScopedTy... |
d287d69a3c62fec4dae415d58d4b99240f165ddbd59f0673425765fa3aa893d3 | ocsigen/obrowser | server.ml | let table = Hashtbl.create 20 and mutex = Mutex.create ()
let with_clients f =
Mutex.lock mutex ;
try let r = f table in Mutex.unlock mutex ; r
with e -> Mutex.unlock mutex ; raise e
let timeout = 20.
let client id =
with_clients
(fun clients ->
let alive = ref true in
Hashtbl.replace clien... | null | https://raw.githubusercontent.com/ocsigen/obrowser/977c09029ea1e4fde4fb0bf92b4d893835bd9504/examples/scribble/server.ml | ocaml | let table = Hashtbl.create 20 and mutex = Mutex.create ()
let with_clients f =
Mutex.lock mutex ;
try let r = f table in Mutex.unlock mutex ; r
with e -> Mutex.unlock mutex ; raise e
let timeout = 20.
let client id =
with_clients
(fun clients ->
let alive = ref true in
Hashtbl.replace clien... | |
03e25344e3d1b9aaf28dd94ed7cfd985bfc441133d0acdcf44cd9df044260530 | fox000002/hy-fluent | video.scm | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; panel
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Syntax:
;;
;; video-picture-summary
;; video-summary
;; cx-video-use-preset
;; cx-video-show-picture
;; cx-video-set-picture
;; cx-video
;; cx-video... | null | https://raw.githubusercontent.com/fox000002/hy-fluent/a26358455f92e304f3d62202587ccf5682a156f4/fluent_gui/video.scm | scheme |
panel
Syntax:
video-picture-summary
video-summary
cx-video-use-preset
cx-video-show-picture
cx-video-set-picture
cx-video
cx-video-show-options
cx-video-set-options
cx-video-close
cx-video-open
cx-video-panel
cx-video-enable
*cx-video*
cxvideo.provided
cx-windows/v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.