_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 |
|---|---|---|---|---|---|---|---|---|
ee18ea2bae9bfa64ea90fc6034b0be3db46e19364bfa7df62266f867ce34152b | oshyshko/adventofcode | D06.hs | # LANGUAGE DefaultSignatures , ,
DerivingStrategies , StandaloneDeriving #
DerivingStrategies, StandaloneDeriving #-}
module Y15.D06 where
import qualified Data.Array.Base as AB
import Data.Array.IO (IOUArray)
import Data.Array.MArray ... | null | https://raw.githubusercontent.com/oshyshko/adventofcode/fc0ce87c1dfffc30647763fa5b84ff9fcf58b8b3/src/Y15/D06.hs | haskell | TODO many1 space ...
fold
create, iterate + alter
create
iterate + alter
fold
solutions
best performance
monadic instances
pure instances
also see -perf/dictionaries | # LANGUAGE DefaultSignatures , ,
DerivingStrategies , StandaloneDeriving #
DerivingStrategies, StandaloneDeriving #-}
module Y15.D06 where
import qualified Data.Array.Base as AB
import Data.Array.IO (IOUArray)
import Data.Array.MArray ... |
5878b9cd6d08bf816f5008c7fe25306bae67093dfa25326afb65153b06ae178c | ulisses/Static-Code-Analyzer | Main.hs | {-# OPTIONS -XNoMonomorphismRestriction #-}
-- example folder: /Users/ulissesaraujocosta/ulisses/univ/msc/el/pi/Static-Code-Analyzer/sample_app/data/concursos/contest-1/en-1/user-1/tent-20110303163050/
module Main where
import Graphics.Rendering.Chart
import Graphics.Rendering.Chart.Gtk
import Graphics.Rendering.Cha... | null | https://raw.githubusercontent.com/ulisses/Static-Code-Analyzer/4c3f6423d43e1bccb9d1cf04e74ae60d9170186f/Haskell/graphForContest/Main.hs | haskell | # OPTIONS -XNoMonomorphismRestriction #
example folder: /Users/ulissesaraujocosta/ulisses/univ/msc/el/pi/Static-Code-Analyzer/sample_app/data/concursos/contest-1/en-1/user-1/tent-20110303163050/ |
module Main where
import Graphics.Rendering.Chart
import Graphics.Rendering.Chart.Gtk
import Graphics.Rendering.Chart.Plot
import Data.Colour
import Data.Colour.Names
import Data.Accessor
import System.Random
import System.Environment(getArgs)
import ExtractValues
main = getArgs >>= ren
ren _ = renderableToPNGFil... |
742eac9f3faafdbe80f83fe3f5b39baa6bc7eeca8cff9d1ed39ea5cc2e77d912 | onedata/op-worker | atm_list_store_content_browse_options.erl | %%%-------------------------------------------------------------------
@author
( C ) 2022 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
%%% @end
%%%-------------------------------------------------------------------
%%% @doc
%%% Record expressing store content br... | null | https://raw.githubusercontent.com/onedata/op-worker/2db1516da782d8acc6bdd2418a3791819ff19581/src/modules/automation/store/container/list/atm_list_store_content_browse_options.erl | erlang | -------------------------------------------------------------------
@end
-------------------------------------------------------------------
@doc
Record expressing store content browse options specialization for
list store used in automation machinery.
@end
---------------------------------------------------------... | @author
( C ) 2022 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
-module(atm_list_store_content_browse_options).
-author("Bartosz Walkowicz").
-behaviour(atm_store_content_browse_options).
-include("modules/automation/atm_execution.hrl").
-export([sanitize/1])... |
22ebbbb120394a6924faf4e686ed6b95ebe69b4b88347f28e5a2c7d40c1e2faf | souenzzo/souenzzo.github.io | hiete.clj | (ns br.com.souenzzo.hiete
(:require [io.pedestal.http.route :as route]
[br.com.souenzzo.dvm :as dvm]
[io.pedestal.http.csrf :as csrf]
[ring.util.mime-type :as mime]
[clojure.string :as string])
(:import (java.nio.charset StandardCharsets)))
(def ^String utf-8 (str (S... | null | https://raw.githubusercontent.com/souenzzo/souenzzo.github.io/30a811c4e5633ad07bba1d58d19eb091dac222e9/conduit/src/br/com/souenzzo/hiete.clj | clojure | (ns br.com.souenzzo.hiete
(:require [io.pedestal.http.route :as route]
[br.com.souenzzo.dvm :as dvm]
[io.pedestal.http.csrf :as csrf]
[ring.util.mime-type :as mime]
[clojure.string :as string])
(:import (java.nio.charset StandardCharsets)))
(def ^String utf-8 (str (S... | |
023ec0a7c06bce48e98924420b905069ec64072962d870ce721cbfb7348c57e3 | afiskon/simple-neural-networks | MainXorLogistic.hs | import AI.NeuralNetworks.Simple
import Text.Printf
import System.Random
import Control.Monad
calcXor net x y =
let [r] = runNeuralNetwork net [x, y]
in r
mse net =
let square x = x * x
e1 = square $ calcXor net 0 0
e2 = square $ calcXor net 1 0 - 1
e3 = square $ calcXor net 0 1 - ... | null | https://raw.githubusercontent.com/afiskon/simple-neural-networks/04856f5b47de170017405eadc0b71504b296dbaf/src/MainXorLogistic.hs | haskell | import AI.NeuralNetworks.Simple
import Text.Printf
import System.Random
import Control.Monad
calcXor net x y =
let [r] = runNeuralNetwork net [x, y]
in r
mse net =
let square x = x * x
e1 = square $ calcXor net 0 0
e2 = square $ calcXor net 1 0 - 1
e3 = square $ calcXor net 0 1 - ... | |
47871d8415bfc7253c6423b4e608f71c10248c1956bcfce539351c62ceeccf39 | mythical-linux/rktfetch | user.rkt | #!/usr/bin/env racket
#lang racket/base
(provide get-user)
(define (get-user)
(or (getenv "USER")
(getenv "USERNAME")
"nobody"
)
)
| null | https://raw.githubusercontent.com/mythical-linux/rktfetch/1f635e47274ff50d59d04d88a6509ee7170f4e33/rktfetch/private/get/user.rkt | racket | #!/usr/bin/env racket
#lang racket/base
(provide get-user)
(define (get-user)
(or (getenv "USER")
(getenv "USERNAME")
"nobody"
)
)
| |
f664d7bce7953fb96c3bc53a8f1d86173bdd03f962a2b5b84d32bbc122100696 | paurkedal/viz | ocaml_unicode.mli | Copyright ( C ) 2011 - -2016 Petter A. Urkedal < >
*
* This file is part of the Viz Standard Library < / > .
*
* The Viz Standard Library ( VSL ) 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 Softw... | null | https://raw.githubusercontent.com/paurkedal/viz/ab1f1071fafdc51eae69185ec55d7a6e7bb94ea9/vsl/compat/ocaml_unicode.mli | ocaml | Copyright ( C ) 2011 - -2016 Petter A. Urkedal < >
*
* This file is part of the Viz Standard Library < / > .
*
* The Viz Standard Library ( VSL ) 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 Softw... | |
92962531bd463e5e40181d1b0117e85ba982cf3c17f4a3390c71c11a8115609e | racket/frtime | frtime.rkt | #lang s-exp "lang-utils.rkt"
(provide value-nowable? behaviorof
(all-from-out "lang-ext.rkt")
(all-from-out "lang-utils.rkt")
(all-from-out "frp-snip.rkt"))
(require "frp-snip.rkt"
(as-is:unchecked (except-in frtime/core/frp undefined undefined?)
event-set... | null | https://raw.githubusercontent.com/racket/frtime/9b9db67581107f4d7b995541c70f2d08f03ae89e/frtime.rkt | racket | #lang s-exp "lang-utils.rkt"
(provide value-nowable? behaviorof
(all-from-out "lang-ext.rkt")
(all-from-out "lang-utils.rkt")
(all-from-out "frp-snip.rkt"))
(require "frp-snip.rkt"
(as-is:unchecked (except-in frtime/core/frp undefined undefined?)
event-set... | |
56e69709eb0da90b7da2b4c11586a3a247345180a68f8b679fb3803382f487f9 | joinr/spork | math.clj | ;;TODO->port this to core.matrix or something official.
;;Note: hollowed out, most stuff is in vecmath.
;I've been getting some crazy ideas from computational geometry....namely the
ability to unify 2d and 3d ops under a single set of rules and operations ..
;It's pretty cool...In any case, this is currently a library ... | null | https://raw.githubusercontent.com/joinr/spork/bb80eddadf90bf92745bf5315217e25a99fbf9d6/obe/geometry/math.clj | clojure | TODO->port this to core.matrix or something official.
Note: hollowed out, most stuff is in vecmath.
I've been getting some crazy ideas from computational geometry....namely the
It's pretty cool...In any case, this is currently a library based on the
nice macros to have...
with-coordinate-system
with-basis [x y z]
... | ability to unify 2d and 3d ops under a single set of rules and operations ..
canonical matrix - based linear algebra routines for defining transformations .
(ns spork.geometry.math
(:require [spork.util.vectors :refer :all]
[spork.util [vecmath :as math]]))
(declare make-matrix)
(defprotocol IDi... |
3151cb53e88e32b468a86a2dd6aa26fce3be7fcc9818fac28ae39d0948a44add | reborg/clojure-essential-reference | 5.clj | (require '[clojure.core.reducers :refer [fold]])
(require '[clojure.string :refer [blank? split split-lines lower-case]])
< 1 >
(if (blank? line)
freqs
(let [words (split (lower-case line) #"\s+")]
(reduce #(update %1 %2 (fnil inc 0)) freqs words))))
< 2 >
([] {})
([m1 m2] (merge-with + m1 m2)... | null | https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/Collections/Generalpurpose/frequencies/5.clj | clojure | <3> | (require '[clojure.core.reducers :refer [fold]])
(require '[clojure.string :refer [blank? split split-lines lower-case]])
< 1 >
(if (blank? line)
freqs
(let [words (split (lower-case line) #"\s+")]
(reduce #(update %1 %2 (fnil inc 0)) freqs words))))
< 2 >
([] {})
([m1 m2] (merge-with + m1 m2)... |
0b1479af6f111dbf82b8e8461a6582755cf8bd747021d816945b9f5a06ed3e02 | skynet-gh/skylobby | data.cljc | (ns skylobby.data
(:require
[clojure.string :as string]))
(defn filter-battles
[battles {:keys [filter-battles
hide-empty-battles
hide-locked-battles
hide-passworded-battles
hide-running-battles
users]}]
(let [
... | null | https://raw.githubusercontent.com/skynet-gh/skylobby/1d6b5f222e138512f8c974f86b97eada3e579508/graal/cljc/skylobby/data.cljc | clojure | (ns skylobby.data
(:require
[clojure.string :as string]))
(defn filter-battles
[battles {:keys [filter-battles
hide-empty-battles
hide-locked-battles
hide-passworded-battles
hide-running-battles
users]}]
(let [
... | |
d1ea3fcae908d2263ad8e07a55ea8988a81913e387d2938b19ad9012403d7c04 | dabrady/LittleLogicLangs | mk-stx.rkt | (module mk-stx racket
(require syntax/parse)
(provide
symbol
goal-cons
goal-expr
goal-seq
relation
builtin-relation?
relation-id?
valid-goal-cons?)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | null | https://raw.githubusercontent.com/dabrady/LittleLogicLangs/9735f17281e2362d36ad245a1558cce3f93437a7/mk/lib/mk-stx.rkt | racket |
List of built-in relations. Put any identifier here that you wish to sneak by the macro system.
Relations conventionally end in -o, and we are enforcing that condition
(define-syntax-class proc
#:description "a procedure"
(pattern x:expr
#:fail-unless (procedure? x)))
(define-syntax-class l... | (module mk-stx racket
(require syntax/parse)
(provide
symbol
goal-cons
goal-expr
goal-seq
relation
builtin-relation?
relation-id?
valid-goal-cons?)
(define BUILTIN-RELATIONS '(quote quasiquote fresh conde run run* == =/= d... |
f7125c95589bf3244cd9856dfad9e46689c0803d93f25d60fa03a21627eed129 | radicle-dev/radicle-alpha | CounterAppTest.hs | -- | Test the @example/radicle-counter@ app.
--
Requires access to an IPFS daemon .
module CounterAppTest
( test_counter_app
) where
import Protolude
import System.FilePath
import Test.E2ESupport
test_counter_app :: TestTree
test_counter_app = testCaseSteps "counter app" $ \st... | null | https://raw.githubusercontent.com/radicle-dev/radicle-alpha/b38a360d9830a938fa83fc066c1d131ec903b5e1/test/e2e/CounterAppTest.hs | haskell | | Test the @example/radicle-counter@ app.
| Requires access to an IPFS daemon .
module CounterAppTest
( test_counter_app
) where
import Protolude
import System.FilePath
import Test.E2ESupport
test_counter_app :: TestTree
test_counter_app = testCaseSteps "counter app" $ \step -> using RadDaemon1 $ do
machineId <- run... |
3b07e52d2b8145f1d06b15b35d7b247d39f4188a7626225eead36b4d11f9d741 | reborg/clojure-essential-reference | 6.clj | < 1 >
(defn rad [x] (Math/toRadians x))
(defn cos [x] (Math/cos (rad x)))
(defn sq-diff [x y] (sq (Math/sin (/ (rad (- x y)) 2))))
< 2 >
(let [earth-radius-km 6372.8
dlat (sq-diff lat2 lat1)
dlon (sq-diff lon2 lon1)
a (+ dlat (* dlon (cos lat1) (cos lat1)))]
(* earth-radius-km 2 (Math... | null | https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/OperationsonNumbers/max-keyandmin-key/6.clj | clojure | <3> | < 1 >
(defn rad [x] (Math/toRadians x))
(defn cos [x] (Math/cos (rad x)))
(defn sq-diff [x y] (sq (Math/sin (/ (rad (- x y)) 2))))
< 2 >
(let [earth-radius-km 6372.8
dlat (sq-diff lat2 lat1)
dlon (sq-diff lon2 lon1)
a (+ dlat (* dlon (cos lat1) (cos lat1)))]
(* earth-radius-km 2 (Math... |
0df4e02b78340b0beb84120b7649629319f296c7ddaa06d28737ec2c062156bf | stathissideris/positano | fun.clj | (ns positano.integration-test1.fun
(:require [positano.trace :as trace]))
(trace/deftrace baz [x]
(inc x))
(trace/deftrace bar [x]
(* (baz (/ x 2.0)) 3))
(trace/deftrace foo
"I don't do a whole lot."
[x]
(println "Hello World!")
(bar (first x)))
| null | https://raw.githubusercontent.com/stathissideris/positano/ca5126714b4bcf108726d930ab61a875759214ae/test/positano/integration_test1/fun.clj | clojure | (ns positano.integration-test1.fun
(:require [positano.trace :as trace]))
(trace/deftrace baz [x]
(inc x))
(trace/deftrace bar [x]
(* (baz (/ x 2.0)) 3))
(trace/deftrace foo
"I don't do a whole lot."
[x]
(println "Hello World!")
(bar (first x)))
| |
61d06ff828eb1ffa8ddf7fc78400882bede5e5d64b6d16b80020a2026039ae1c | htm-community/comportex | algo_graph.cljc | Copyright ( c ) . 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 epl-v10.html at the root of this distribution. By
;; using this software in any fashion, you are agreeing to be bound by t... | null | https://raw.githubusercontent.com/htm-community/comportex/cd318492cf2e43cb7f25238b116b90b8195ec5aa/src/org/nfrac/comportex/util/algo_graph.cljc | clojure | distribution terms for this software are covered by the Eclipse Public
License 1.0 (-1.0.php) which can
be found in the file epl-v10.html at the root of this distribution. By
using this software in any fashion, you are agreeing to be bound by the
terms of this license. You must not remove this notice, or an... | Copyright ( c ) . All rights reserved . The use and
straszheimjeffrey ( gmail )
Created 23 June 2009
(ns
^{:author "Jeffrey Straszheim",
:doc "Basic graph theory algorithms.
Copied from
because its available snapshot release does not have clojurescript support.
Updated to use records not structs... |
0e7de3631c064c28bea14480694484b539c936496d12f5666fd236c000784889 | alanz/ghc-exactprint | T6018Bfail.hs | # LANGUAGE TypeFamilies #
module T6018Bfail where
type family H a b c = (result :: *) | result -> a b c
| null | https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/T6018Bfail.hs | haskell | # LANGUAGE TypeFamilies #
module T6018Bfail where
type family H a b c = (result :: *) | result -> a b c
| |
a2e6347c253535f98e61e6344f2d431b886663cc43196c65a1b61710af90f451 | twosigma/waiter | async_request_test.clj | ;;
Copyright ( c ) Two Sigma Open Source , LLC
;;
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... | null | https://raw.githubusercontent.com/twosigma/waiter/fa1d028f61f92c8be15ddb45cfa743b92eeb4058/waiter/test/waiter/async_request_test.clj | clojure |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permi... | Copyright ( c ) Two Sigma Open Source , LLC
distributed under the License is distributed on an " AS IS " BASIS ,
(ns waiter.async-request-test
(:require [clojure.core.async :as async]
[clojure.string :as str]
[clojure.test :refer :all]
[plumbing.core :as pc]
[waiter... |
f94da1b74eb0ef4dbf4587d4a8de04b5272800575cc89253bc72186405eafa5c | INRIA/zelus | zlsolve.mli |
(* Abstract types for the vectors passed to the model functions. Elements
are accessed or changed by the functions given below. *)
module type ZELUS_SOLVER =
sig
(** Interface for compiled functions *)
(** Configuring and calling the D-C solver *)
(* Log simulation steps and continuous state values. *)
v... | null | https://raw.githubusercontent.com/INRIA/zelus/685428574b0f9100ad5a41bbaa416cd7a2506d5e/lib/std/zlsolve.mli | ocaml | Abstract types for the vectors passed to the model functions. Elements
are accessed or changed by the functions given below.
* Interface for compiled functions
* Configuring and calling the D-C solver
Log simulation steps and continuous state values.
The solver's minimum and maxmium step sizes.
The maximum ... |
module type ZELUS_SOLVER =
sig
val enable_logging : unit -> unit
val min_step_size : float option ref
val max_step_size : float option ref
val max_sim_time : float option ref
val speedup : float ref
val step : 's Zls.f_alloc
-> 's Zls.f_csize
-> 's Zls.f_... |
e26f26f5189170b519a512925b22531cdfd887ebb78176e40c02e4d0bfda5d08 | ds-wizard/engine-backend | Usages.hs | module Wizard.Database.Migration.Development.Usage.Data.Usages where
import Wizard.Api.Resource.Usage.UsageDTO
defaultUsage :: UsageDTO
defaultUsage =
UsageDTO
{ users = defaultUsageUsers
, activeUsers = defaultUsageActiveUsers
, knowledgeModels = defaultUsageKnowledgeModels
, branches = defaultUsag... | null | https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Database/Migration/Development/Usage/Data/Usages.hs | haskell | module Wizard.Database.Migration.Development.Usage.Data.Usages where
import Wizard.Api.Resource.Usage.UsageDTO
defaultUsage :: UsageDTO
defaultUsage =
UsageDTO
{ users = defaultUsageUsers
, activeUsers = defaultUsageActiveUsers
, knowledgeModels = defaultUsageKnowledgeModels
, branches = defaultUsag... | |
df339df1bda8ddaaf4f3705febdbb96d0cfeb2b4a63a559ceddf7c4dff479e8d | softwarelanguageslab/maf | R5RS_scp1_polynome-3.scm | ; Changes:
* removed : 0
* added : 0
* swaps : 0
* negated predicates : 1
* swapped branches : 2
; * calls to id fun: 0
(letrec ((make-point (lambda (x y)
(letrec ((dispatch (lambda (msg)
(if (eq? msg 'x-value)
... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_polynome-3.scm | scheme | Changes:
* calls to id fun: 0 | * removed : 0
* added : 0
* swaps : 0
* negated predicates : 1
* swapped branches : 2
(letrec ((make-point (lambda (x y)
(letrec ((dispatch (lambda (msg)
(if (eq? msg 'x-value)
x
... |
d710543dc278677a97fcc8c2dfd5999f6bc2084988fdf38c89adee94473e9148 | finnishtransportagency/harja | yllapitokohteet.cljs | (ns harja.tiedot.urakka.yllapitokohteet
"Ylläpitokohteiden tiedot"
(:require
[harja.loki :refer [log tarkkaile!]]
[cljs.core.async :refer [<!]]
[harja.asiakas.kommunikaatio :as k]
[harja.tiedot.urakka :as u]
[harja.domain.yllapitokohde :as yllapitokohteet-domain]
[harja.ui.kartta.esitettavat... | null | https://raw.githubusercontent.com/finnishtransportagency/harja/4c440de1d426efe3e39d069d33119ea25e52562d/src/cljs/harja/tiedot/urakka/yllapitokohteet.cljs | clojure | (ns harja.tiedot.urakka.yllapitokohteet
"Ylläpitokohteiden tiedot"
(:require
[harja.loki :refer [log tarkkaile!]]
[cljs.core.async :refer [<!]]
[harja.asiakas.kommunikaatio :as k]
[harja.tiedot.urakka :as u]
[harja.domain.yllapitokohde :as yllapitokohteet-domain]
[harja.ui.kartta.esitettavat... | |
f3c17d61ae720d542a7dbc3a1ce169cf315f71d63a5826a5df7b9a7c85123fb5 | c-cube/ocaml-containers | CCBV.mli | * Imperative Bitvectors .
A bitvector is stored in some form of internal array ( on the heap ) .
Is it a bit similar to a more storage - efficient version of [ bool
CCVector.vector ] , with additional operations .
{ b BREAKING CHANGES } since 1.2 :
size is now stored along with the bitve... | null | https://raw.githubusercontent.com/c-cube/ocaml-containers/a30e471a6fb6e59fcdbcfef406e577a0b46d69c1/src/data/CCBV.mli | ocaml | * A resizable bitvector
* Empty bitvector. Length is 0.
* Create a bitvector of given size, with given default value.
Length of result is [size].
* Copy of bitvector.
* Number of bits set to one, seen as a set of bits.
* Are there any true bits?
* Set i-th bit, extending the bitvector if needed.
* Is the i-t... | * Imperative Bitvectors .
A bitvector is stored in some form of internal array ( on the heap ) .
Is it a bit similar to a more storage - efficient version of [ bool
CCVector.vector ] , with additional operations .
{ b BREAKING CHANGES } since 1.2 :
size is now stored along with the bitve... |
44aa0b27e938716649bfbb107da40d8d42b05257611f2ee3b29037d9e14820b2 | Lambda-Logan/faker | Utils.hs | # LANGUAGE CPP #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE RecordWildCards #
|
Module : Faker . Utils
Description : Module with helper functions for all other ' Faker ' modules
Copyright : ( c ) , 2014 - 2018
License : MIT
Maintainer : ... | null | https://raw.githubusercontent.com/Lambda-Logan/faker/8935346192e67631b97c1a52f6644ba5ed48a1a2/src/Faker/Utils.hs | haskell | * Data types
* Helper functions for other 'Faker' modules
| Value represent locales
| Config for faker functions
^ Contains locale for 'Faker' functions
| Fake data storage, contains default and requested locales data and
stdGen
^ Fake data for default locale (for fallbacks)
^ Generator for fetching random val... | # LANGUAGE CPP #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE RecordWildCards #
|
Module : Faker . Utils
Description : Module with helper functions for all other ' Faker ' modules
Copyright : ( c ) , 2014 - 2018
License : MIT
Maintainer : ... |
d1976230a3c73d8ac4a433db12569c31aa5a3395672a52f72ef9d9b05ee5bd8c | rudymatela/tankode | html-palette.hs | -- |
Program : html-palette.hs
Copyright : ( c ) 2017
License : LGPL 2.1 ( see the file LICENSE )
--
Generate an HTML with the colour pallete for Tankode .
import Colour (Colour, showRGB)
import Colour (red,green,blue,cyan,magenta,yellow,black)
import Tankode.Palette
import Prelude hiding (head... | null | https://raw.githubusercontent.com/rudymatela/tankode/299ec6f78a9a18a8fc902be911a556d0497c30e1/runner/src/html-palette.hs | haskell | |
full palette : all primary , secondary and tertiary colors
full palette: all primary, secondary and tertiary colors | Program : html-palette.hs
Copyright : ( c ) 2017
License : LGPL 2.1 ( see the file LICENSE )
Generate an HTML with the colour pallete for Tankode .
import Colour (Colour, showRGB)
import Colour (red,green,blue,cyan,magenta,yellow,black)
import Tankode.Palette
import Prelude hiding (head,break)
... |
2232868d8e20f2447920844294aa5f26571cc0a4187eeae662b1322571a938b1 | kaznum/programming_in_ocaml_exercise | queue1.ml | module type QUEUE =
sig
type 'a t
val empty: 'a t
val add: 'a t -> 'a -> 'a t
val take: 'a t -> 'a * 'a t
val peek: 'a t -> 'a
exception Empty
end
;;
module Queue1 : QUEUE =
struct
type 'a t = 'a list
let empty = []
let peek = function [] -> raise Empty | x :: rest -> x
let add table x = table @ [x... | null | https://raw.githubusercontent.com/kaznum/programming_in_ocaml_exercise/6f6a5d62a7a87a1c93561db88f08ae4e445b7d4e/ex9.3/queue1.ml | ocaml | module type QUEUE =
sig
type 'a t
val empty: 'a t
val add: 'a t -> 'a -> 'a t
val take: 'a t -> 'a * 'a t
val peek: 'a t -> 'a
exception Empty
end
;;
module Queue1 : QUEUE =
struct
type 'a t = 'a list
let empty = []
let peek = function [] -> raise Empty | x :: rest -> x
let add table x = table @ [x... | |
422215ab0e3ead2b47aeda8c7252c2024e16ee402b41e9227d07ca03e57b7c05 | joinr/spork | sparse.clj | ;;Namespace for sparse persistent data structures, and
;;flyweight data structures, particularly for use with
;;spork.util.table.
(ns spork.data.sparse)
;;lookup the item associated with the nested vectors in xs.
;; (definline row-col [row col xs]
;; (let [xs (with-meta xs {:tag 'clojure.lang.PersistentVector})
... | null | https://raw.githubusercontent.com/joinr/spork/bb80eddadf90bf92745bf5315217e25a99fbf9d6/src/spork/data/sparse.clj | clojure | Namespace for sparse persistent data structures, and
flyweight data structures, particularly for use with
spork.util.table.
lookup the item associated with the nested vectors in xs.
(definline row-col [row col xs]
(let [xs (with-meta xs {:tag 'clojure.lang.PersistentVector})
`(let [~c (.nth ~xs ~col)]
... | (ns spork.data.sparse)
c ( with - meta ( " c " ) { : tag ' clojure.lang . PersistentVector } ) ]
(defn row-col [row col ^clojure.lang.IPersistentVector cols]
(.nth ^clojure.lang.Indexed (.nth cols col) row))
(definline row-col! [row col cols]
(let [column (with-meta (gensym "column") {:tag 'clojure.... |
6401d0df3c5b7f3e913ecf975ccee20c0cc58dc5fd887d58c795a5944d06b7ad | IBM/openai-gym-ocaml | json.mli |
* This file is part of the gym - http - api OCaml binding project .
*
* Copyright 2016 - 2017 IBM Corporation
*
* Licensed under the Apache License , Version 2.0 ( the " License " ) ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the License at
... | null | https://raw.githubusercontent.com/IBM/openai-gym-ocaml/7556dea6a189b0502e6832034104a3aff22a8ec1/openai-gym/json.mli | ocaml | * Json utilities.
* {3 Builders}
* The [null] value of JSON.
* [int n] build the value of JSON [n].
* [bool b] build the value of JSON [b].
* [string s] build the value of JSON [s].
* [assoc o] build the JSON object [o].
* [list l] build the JSON list [l].
*
[set o x v] add (or replace) the a field [x] of th... |
* This file is part of the gym - http - api OCaml binding project .
*
* Copyright 2016 - 2017 IBM Corporation
*
* 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
... |
02c247983c45db28ea7c3abb277704170b4f83e477d0dd7c251e1453939a2616 | alanz/ghc-exactprint | T9233a.hs | module T9233a where
data X = X {
f1 :: String,
f2 :: !Bool,
f3 :: !Bool,
f4 :: !Bool,
f5 :: !Bool,
f6 :: !Bool,
f7 :: !Bool,
f8 :: !Bool,
f9 :: !Bool,
f10 :: !Bool,
f11 :: !Bool,
f12 :: !Bool,
f13 :: !Bool,
f14 :: !Bool,
f15 :: !Bool,
f16 :: !Bool,
f17 :: !Bool,
f18 :: !Bool,
f19... | null | https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/T9233a.hs | haskell | module T9233a where
data X = X {
f1 :: String,
f2 :: !Bool,
f3 :: !Bool,
f4 :: !Bool,
f5 :: !Bool,
f6 :: !Bool,
f7 :: !Bool,
f8 :: !Bool,
f9 :: !Bool,
f10 :: !Bool,
f11 :: !Bool,
f12 :: !Bool,
f13 :: !Bool,
f14 :: !Bool,
f15 :: !Bool,
f16 :: !Bool,
f17 :: !Bool,
f18 :: !Bool,
f19... | |
37ea6126479e33e51db97462c81c22fa99527c81bffbe28cf52791fde49408a6 | bjornbm/astro | CroppedSpec.hs | module Astro.Trajectory.CroppedSpec where
import Test.Hspec
--import Test.QuickCheck (property, (==>))
import TestInstances
import Astro.Trajectory
import Astro.Trajectory.Cropped
import Astro.Trajectory.EphemTrajectory
import qualified Prelude
import Numeric.Units.Dimensional.Prelude
import Astro.Time
import Astro... | null | https://raw.githubusercontent.com/bjornbm/astro/f4fb2c4b739a0a8f68f51aa154285120d2230c30/test/Astro/Trajectory/CroppedSpec.hs | haskell | import Test.QuickCheck (property, (==>))
the test MEOEs are very random. We implement our own 'property'
instead which feed the test MEOEs.
----------------------------------------------------------------------
----------------------------------------------------------------------
---------------------------------... | module Astro.Trajectory.CroppedSpec where
import Test.Hspec
import TestInstances
import Astro.Trajectory
import Astro.Trajectory.Cropped
import Astro.Trajectory.EphemTrajectory
import qualified Prelude
import Numeric.Units.Dimensional.Prelude
import Astro.Time
import Astro.Time.At
import Data.AEq
import Data.List
... |
da688cd0e962e863537dd0fa4bbedb152d882c35cb4d6fa449e7eaf20028b558 | esl/MongooseIM | mod_inbox_utils.erl | %%%-------------------------------------------------------------------
( C ) 2018 , Erlang - Solutions
%%% @doc
%%%
%%% @end
Created : 30 . Jan 2018 13:22
%%%-------------------------------------------------------------------
-module(mod_inbox_utils).
-include("mod_inbox.hrl").
-include("jlib.hrl").
-type inbox_... | null | https://raw.githubusercontent.com/esl/MongooseIM/55233591ce2cac2e6c050b4828083bd1e3983117/src/inbox/mod_inbox_utils.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
no unread for a user because he writes new messages which assumes he read all previous messages.
Helpers | ( C ) 2018 , Erlang - Solutions
Created : 30 . Jan 2018 13:22
-module(mod_inbox_utils).
-include("mod_inbox.hrl").
-include("jlib.hrl").
-type inbox_fun() :: fun((mongooseim:host_type(),
jid:jid(),
jid:jid(),
exml:element(),
... |
78e47a546532e4309c5ce0f51e29cf45799944363d8c13f247cb5dde0e2dc347 | achirkin/vulkan | VK_AMD_shader_ballot.hs | # OPTIONS_HADDOCK not - home #
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE MagicHash #-}
# LANGUAGE PatternSynonyms #
{-# LANGUAGE Strict #-}
{-# LANGUAGE ViewPatterns #-}
module Graphics.Vulkan.Ext.VK_AMD_shader_ballot
* Vulkan extension : @VK_AMD_shader_ballot@
-- |
--
--... | null | https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_AMD_shader_ballot.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE MagicHash #
# LANGUAGE Strict #
# LANGUAGE ViewPatterns #
|
supported: @vulkan@
type: @device@
Extension number: @38@ | # OPTIONS_HADDOCK not - home #
# LANGUAGE PatternSynonyms #
module Graphics.Vulkan.Ext.VK_AMD_shader_ballot
* Vulkan extension : @VK_AMD_shader_ballot@
contact :
author :
VK_AMD_SHADER_BALLOT_SPEC_VERSION,
pattern VK_AMD_SHADER_BALLOT_SPEC_VERSION,
VK_AMD_SHADER_BALLOT_EXTENSION_NAME,
... |
c1faa6355527959e93b24f2ffec8e6aa30b744a0b84bcb690154a998298fb84e | shortishly/haystack | haystack_balance_random.erl | Copyright ( c ) 2016 < >
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicable law or agreed to in writing, software
distributed under... | null | https://raw.githubusercontent.com/shortishly/haystack/7ff0d737dcd90adf60c861b2cf755aee1355e555/src/haystack_balance_random.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissi... | Copyright ( c ) 2016 < >
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(haystack_balance_random).
-export([pick/2]).
pick(Hostname, Path) ->
haystack_metric:increment(
#{hostname => Hostname,
... |
49d25ee6586b5fa75e6e41e71b480bcea509454a803349cbd4afc3fbf960b131 | kayceesrk/ocaml5-tutorial | msg_passing.ml | let r = Atomic.make None
let sender () = Atomic.set r (Some "Hello")
let rec receiver () =
match Atomic.get r with
| None -> Domain.cpu_relax (); receiver ()
| Some m -> print_endline m
let main () =
let s = Domain.spawn sender in
let d = Domain.spawn receiver in
Domain.join s;
Domain.join d
let _ = m... | null | https://raw.githubusercontent.com/kayceesrk/ocaml5-tutorial/36989cd5ffe42d7fc0b2710443b612f27bc9af5d/src/msg_passing.ml | ocaml | let r = Atomic.make None
let sender () = Atomic.set r (Some "Hello")
let rec receiver () =
match Atomic.get r with
| None -> Domain.cpu_relax (); receiver ()
| Some m -> print_endline m
let main () =
let s = Domain.spawn sender in
let d = Domain.spawn receiver in
Domain.join s;
Domain.join d
let _ = m... | |
f26790bcc99a5176b521c019094519cbde4e7aab271c31111f5af607cbb702e6 | hipsleek/hipsleek | ex1.ml | type point2d = float * float
[@@deriving show]
let x = (2.0,3.0);;
print_endline (show_point2d x);;
(* ocamlfind ocamlc -package ppx_deriving.std -o ex1 ppx/ex1.ml *)
| null | https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/ppx/ex1.ml | ocaml | ocamlfind ocamlc -package ppx_deriving.std -o ex1 ppx/ex1.ml | type point2d = float * float
[@@deriving show]
let x = (2.0,3.0);;
print_endline (show_point2d x);;
|
528e65a3348a4a66eacdea00ff6db03b977c6933f6e884c0e092038ffcd3d409 | sadiqj/ocaml-esp32 | odoc_misc.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/ocamldoc/odoc_misc.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 2001 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
let no_blanks s =
let len = String.length s in
let buf = Buffer.create len in
for i = 0 to len - 1 do
... |
ce4e7e860f90184cde9fc533b4809cbbed6e2de2adbf6f7461fa6aa0445b5bdb | geophf/1HaskellADay | Solution.hs | {-# LANGUAGE OverloadedStrings #-}
module Y2018.M07.D10.Solution where
-
So , yesterday we explored JSON structure
( EVERYTHING IS A MAP ! ... EXCEPT WHAT ISN'T , BUT OKAY ! )
Today we 're going to explore TWO ( much smaller ) JSON structures and transform
one to another .
Because , like XML , JSON is al... | null | https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M07/D10/Solution.hs | haskell | # LANGUAGE OverloadedStrings #
}
the input JSON (being output from an analysis tool)
yeah, the input is the output of the analysis tool. Deal.
-
The input is in the following format:
Map EntityName { wiki_info: Wiki, scores: [related articles], queryEnt: Int }
where:
-
and out Analysis is a composition of the wik... |
module Y2018.M07.D10.Solution where
-
So , yesterday we explored JSON structure
( EVERYTHING IS A MAP ! ... EXCEPT WHAT ISN'T , BUT OKAY ! )
Today we 're going to explore TWO ( much smaller ) JSON structures and transform
one to another .
Because , like XML , JSON is all about transformation , !
-
So,... |
899396d261514088c0dd9610d46f380dbff4b3260d7024ff9d279faef84f9d3f | haskell/cabal | GenUtils.hs | # LANGUAGE DeriveFoldable #
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveTraversable #-}
# LANGUAGE FunctionalDependencies #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module GenUtils where
import Control.Lens (eac... | null | https://raw.githubusercontent.com/haskell/cabal/c21dbcd2a9d54962eb39f598dfce2d012ff7fd1c/cabal-dev-scripts/src/GenUtils.hs | haskell | # LANGUAGE DeriveFunctor #
# LANGUAGE DeriveGeneric #
# LANGUAGE DeriveTraversable #
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables #
-----------------------------------------------------------------------------
License List version
----------------------------------------... | # LANGUAGE DeriveFoldable #
# LANGUAGE FunctionalDependencies #
module GenUtils where
import Control.Lens (each, ix, (%~), (&))
import Data.Char (toUpper)
import Data.Maybe (fromMaybe)
import Data.Proxy (Proxy (..))
import Data.Text (Text)
import GHC.Generics (Generic)
import qualified Data.Algorit... |
1ab4639464a427f614e7bdf6d55034ec818f6c74bfb726ae2bf0523f38cca089 | silkapp/rest | Import.hs | {-# LANGUAGE OverloadedStrings #-}
# OPTIONS_GHC -fno - warn - unused - imports #
module Restexample.Client.Test.Import where
import Rest.Client.Internal
import qualified Restexample.Client.Test as Test
import qualified Rest.Types.Void
type Identifier = String
readId :: Identifier -> [String]
readId x = ["it", showUr... | null | https://raw.githubusercontent.com/silkapp/rest/f0462fc36709407f236f57064d8e37c77bdf8a79/rest-example/client/src/Restexample/Client/Test/Import.hs | haskell | # LANGUAGE OverloadedStrings # | # OPTIONS_GHC -fno - warn - unused - imports #
module Restexample.Client.Test.Import where
import Rest.Client.Internal
import qualified Restexample.Client.Test as Test
import qualified Rest.Types.Void
type Identifier = String
readId :: Identifier -> [String]
readId x = ["it", showUrl x]
byIt ::
ApiStateC m =>... |
bc2530dae642ae877293740a89c87532cacdef2107c1a58d70843bd7f640c2ae | jorinvo/letsdo.events | web.clj | (ns lde.web
(:require
[clojure.spec.alpha :as s]
[clojure.java.io :as io]
[reitit.ring :as ring]
[reitit.coercion.spec :as spec-coercion]
[reitit.ring.coercion :as ring-coericion]
[reitit.ring.middleware.parameters :refer [parameters-middleware]]
[reitit.ring.middleware.multipart :as multi... | null | https://raw.githubusercontent.com/jorinvo/letsdo.events/4cd2a5d401d37524c0bac265f48923ab5f91b220/src/lde/web.clj | clojure | (ns lde.web
(:require
[clojure.spec.alpha :as s]
[clojure.java.io :as io]
[reitit.ring :as ring]
[reitit.coercion.spec :as spec-coercion]
[reitit.ring.coercion :as ring-coericion]
[reitit.ring.middleware.parameters :refer [parameters-middleware]]
[reitit.ring.middleware.multipart :as multi... | |
2bd5751c327ff51e99b9ab2a49fe171d1d03c775a13f3e6bf657e6c0fefc13dd | Octachron/olivine | wayland.ml | type display
type surface
let wl_display: display Ctypes.structure Ctypes.typ =
Ctypes.structure "wl_display"
let wl_surface: surface Ctypes.structure Ctypes.typ =
Ctypes.structure "wl_surface"
| null | https://raw.githubusercontent.com/Octachron/olivine/e93df595ad1e8bad5a8af689bac7d150753ab9fb/wsl/wayland.ml | ocaml | type display
type surface
let wl_display: display Ctypes.structure Ctypes.typ =
Ctypes.structure "wl_display"
let wl_surface: surface Ctypes.structure Ctypes.typ =
Ctypes.structure "wl_surface"
| |
76eee2d7c08621ca40aa1d8aca3c6ed3cd7c01001a406d3379af8309ab0d0604 | gedge-platform/gedge-platform | lager_handler_watcher.erl | Copyright ( c ) 2011 - 2012 Basho Technologies , Inc. All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy of the License at
%%
%% -2.0
%%
%% Unless required... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/lager/src/lager_handler_watcher.erl | erlang |
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
@doc A process that does a gen... | Copyright ( c ) 2011 - 2012 Basho Technologies , Inc. All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
... |
4ab71ea4cc31592c79d7f0d7e327119966d02112c12e0ece20fd9d07d0d8ab50 | semilin/layoup | aptlf.lisp |
(MAKE-LAYOUT :NAME "aptlf" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL
:KEYBOARD NIL) | null | https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/aptlf.lisp | lisp |
(MAKE-LAYOUT :NAME "aptlf" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL
:KEYBOARD NIL) | |
ddc44999d7a85a60b9c60191d22dfd9aecc176e4acac1f588fd819780710265b | sentenai/reinforce | CartPoleV0.hs | --------------------------------------------------------------------------------
-- |
Module : Environment .
-- Copyright : (c) Sentenai 2017
-- License : BSD3
Maintainer :
-- Stability : experimental
-- Portability: non-portable
--
-- Environment description:
> A pole is attached by an un - actuat... | null | https://raw.githubusercontent.com/sentenai/reinforce/03fdeea14c606f4fe2390863778c99ebe1f0a7ee/reinforce-environments-gym/src/Environments/Gym/ClassicControl/CartPoleV0.hs | haskell | ------------------------------------------------------------------------------
|
Copyright : (c) Sentenai 2017
License : BSD3
Stability : experimental
Portability: non-portable
Environment description:
> frictionless track. The system is controlled by applying a force of +1 or -1
> to the cart. The pendul... | Module : Environment .
Maintainer :
> A pole is attached by an un - actuated joint to a cart , which moves along a
> remains upright . The episode ends when the pole is more than 15 degrees from
> vertical , or the cart moves more than 2.4 units from the center .
# LANGUAGE FlexibleInstances #
# OPT... |
3a54ee4b853cec6ca5ee55bff2dd3f62ed7724021c72220d4b4b73154ae0a7fd | mzp/coq-ruby | nametab.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/library/nametab.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
The visibility can be registered ei... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
$ I d : nametab.ml 10664 ... |
a8dc8f98a0025bf095b06870edd9f7ace40a2988e390d247b58afb4c3029558d | jordwalke/rehp | bdd.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/benchmarks/sources/ml/bdd.ml | ocaml | *********************************************************************
Objective Caml
... | , 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 Q Public License version 1.0 .
$ I d : bdd.ml 7017 2005 - 08 - 12 09... |
7762d02a194be377efea84deabd38d70dc01e5810a6aa1263f9a7a74d2c6217f | gfngfn/SATySFi | optionState.mli |
open MyUtil
type input_kind =
| SATySFi
| Markdown of string
val set_input_kind : input_kind -> unit
val get_input_kind : unit -> input_kind
val set_input_file : abs_path -> unit
val input_file : unit -> abs_path option
val job_directory : unit -> string
val set_output_file : abs_path -> unit
val output_file ... | null | https://raw.githubusercontent.com/gfngfn/SATySFi/9dbd61df0ab05943b3394830c371e927df45251a/src/backend/optionState.mli | ocaml |
open MyUtil
type input_kind =
| SATySFi
| Markdown of string
val set_input_kind : input_kind -> unit
val get_input_kind : unit -> input_kind
val set_input_file : abs_path -> unit
val input_file : unit -> abs_path option
val job_directory : unit -> string
val set_output_file : abs_path -> unit
val output_file ... | |
f35c51d07602af766e22653a30fd8bd2d474bda49d41f5e9067b7b1751bd156d | eerohele/enne | core.cljc | (ns enne.core
"Generate random Finnish names from data supplied by the Finnish Population Register Centre.
The data is extracted from Excel spreadsheets available at avoindata.fi. If new Excel spreadsheets are made available,
update the URLs in resource/source.edn and run (enne.retriever/retrieve!)"
(:require ... | null | https://raw.githubusercontent.com/eerohele/enne/07e9112261203631b55bfd742ae3f4ac4c3cbb71/src/enne/core.cljc | clojure | (ns enne.core
"Generate random Finnish names from data supplied by the Finnish Population Register Centre.
The data is extracted from Excel spreadsheets available at avoindata.fi. If new Excel spreadsheets are made available,
update the URLs in resource/source.edn and run (enne.retriever/retrieve!)"
(:require ... | |
0402c9e74112096cac57b8604f0bc7e3480f2db32a1cb913659fe36c35a542dc | ngorogiannis/cyclist | int.ml | module IntType : Utilsigs.BasicType with type t = int = struct
type t = int
let compare (i : t) (j : t) = if i < j then -1 else if i > j then 1 else 0
let equal (i : t) (j : t) = i = j
let hash (i : t) = Hashtbl.hash i
let to_string = string_of_int
let pp = Format.pp_print_int
end
include IntType
incl... | null | https://raw.githubusercontent.com/ngorogiannis/cyclist/c93a168d586b308ab2a2c730cd1b2375ab263167/src/lib/int.ml | ocaml | module IntType : Utilsigs.BasicType with type t = int = struct
type t = int
let compare (i : t) (j : t) = if i < j then -1 else if i > j then 1 else 0
let equal (i : t) (j : t) = i = j
let hash (i : t) = Hashtbl.hash i
let to_string = string_of_int
let pp = Format.pp_print_int
end
include IntType
incl... | |
5591bc83da1e2a0d0e8b3f7c60816cfcd6c13d0dd922199742b40f0775e00dad | haskell/statistics | Runs.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE FlexibleContexts #
-- | Goodness of fit runs tests.
module Statistics.Test.Runs (
runsTest
, module Statistics.Test.Types
) where
import qualified Data.Vector.Generic as G
import qualified Data.Vector.Unboxed as U
import Numeric.SpecFunctions (choose)
import Prelude hid... | null | https://raw.githubusercontent.com/haskell/statistics/a2aa25181e50cd63db4a785c20c973a3c4dd5dac/Statistics/Test/Runs.hs | haskell | # LANGUAGE BangPatterns #
| Goodness of fit runs tests.
| Goodness of fit test for binned data. It uses only sign of
deviations of observations from their expectations. Null
hypothesis is that all possible patterns of sign occurrences are
equiprobable.
It's asymptotically independent from chi-square test... | # LANGUAGE FlexibleContexts #
module Statistics.Test.Runs (
runsTest
, module Statistics.Test.Types
) where
import qualified Data.Vector.Generic as G
import qualified Data.Vector.Unboxed as U
import Numeric.SpecFunctions (choose)
import Prelude hiding (sum)
import Statistics.Sample.Internal (sum)
import Stati... |
df4136360fd50e18f2bf941531ca10bb33931f0b114c5f2fa137abf8f428fee3 | tov/shcaml | iVar.mli | * One - shot interprocess exceptions and variables .
(**
* {1 Interprocess Exceptions}
*)
* Relay exceptions from a subprocess .
[ with_interprocess_protect kont ] calls [ kont ] with one
argument , [ protect : ( unit - > ' a ) - > ' a ] .
The function [ kont ] { b must } fork into an { i observe... | null | https://raw.githubusercontent.com/tov/shcaml/43ae852a00e3a11520f90f2451baa71863409774/lib/iVar.mli | ocaml | *
* {1 Interprocess Exceptions}
can't happen
*
* {1 Interprocess Variables}
* The read-end of an interprocess variable.
* The write-end of an interprocess variable.
* Write to an {!IVar}. | * One - shot interprocess exceptions and variables .
* Relay exceptions from a subprocess .
[ with_interprocess_protect kont ] calls [ kont ] with one
argument , [ protect : ( unit - > ' a ) - > ' a ] .
The function [ kont ] { b must } fork into an { i observer } process and an
{ i observed }... |
5619049806e26479b4a69d83bb3c626c4204f730f3ffa5734f9fdf67e987905b | simongray/datalinguist | util.clj | (ns dk.simongray.datalinguist.util
"Various utility functions used from the other namespaces, along with
collections of more or less static data."
(:require [clojure.string :as str])
(:import [java.util Properties]
[edu.stanford.nlp.ling CoreLabel
CoreLabel$OutputFor... | null | https://raw.githubusercontent.com/simongray/datalinguist/a496d4bd9204c502d0e869a7098975f35d492657/src/dk/simongray/datalinguist/util.clj | clojure | TODO: document annotator support for the official language models
-languages.html
TODO: implement a spellcheck for annotators during pipeline creation
Adapted from configuration previously found on this page (now missing):
-languages.html#chinese | (ns dk.simongray.datalinguist.util
"Various utility functions used from the other namespaces, along with
collections of more or less static data."
(:require [clojure.string :as str])
(:import [java.util Properties]
[edu.stanford.nlp.ling CoreLabel
CoreLabel$OutputFor... |
00c1be3513899f7b684558dd8d23eb1083df2a7d02c22c08664e9c10ed8ff4df | static-analysis-engineering/codehawk | bCHMetricsHandler.mli | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Binary Analyzer
Author : and
------------------------------------------------------------------------------
The MIT License ( MIT )... | null | https://raw.githubusercontent.com/static-analysis-engineering/codehawk/dd2c3b9f84b4b5f3c88898505ee912e1e461e809/CodeHawk/CHB/bchlib/bCHMetricsHandler.mli | ocaml | chutil
bchlib | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Binary Analyzer
Author : and
------------------------------------------------------------------------------
The MIT License ( MIT )... |
49dc5837fb8c6ae3c4b7577f68555571ede738e342558eb7d474056a121ab484 | phadej/cabal-refact | SetVersion.hs | {-# LANGUAGE OverloadedStrings #-}
module Distribution.Refact.Refactoring.SetVersion (
setVersionRefactoring,
) where
import Prelude ()
import Distribution.Refact.Internal.Prelude
import Distribution.Refact.Types.Pos
import Distribution.Refact.Types.Refactoring
import Distribution.Refact.Types.Structure
import... | null | https://raw.githubusercontent.com/phadej/cabal-refact/9442736429e498f95dc24866c97be587113206ab/src/Distribution/Refact/Refactoring/SetVersion.hs | haskell | # LANGUAGE OverloadedStrings #
otherwise, update
fields and rest | module Distribution.Refact.Refactoring.SetVersion (
setVersionRefactoring,
) where
import Prelude ()
import Distribution.Refact.Internal.Prelude
import Distribution.Refact.Types.Pos
import Distribution.Refact.Types.Refactoring
import Distribution.Refact.Types.Structure
import Distribution.Refact.Types.Version
... |
9353330b8399ada1d4910780b9ba69f05e756dd9bad53cb71ff5dbf99724f013 | sealchain-project/sealchain | Model.hs | -- | Distributed Hash Table for peer discovery.
module Pos.Infra.DHT.Model
( module Pos.Infra.DHT.Model.Types
) where
import Pos.Infra.DHT.Model.Types
| null | https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/infra/src/Pos/Infra/DHT/Model.hs | haskell | | Distributed Hash Table for peer discovery. |
module Pos.Infra.DHT.Model
( module Pos.Infra.DHT.Model.Types
) where
import Pos.Infra.DHT.Model.Types
|
c94b312e21c1af03a26b42f207eadf978d1f88beb5dae0dbed8b88f7cdbbec58 | madvas/catlantis | config.cljs | (ns catlantis.config)
(def thecatapi-key "ODk2MzY")
(def app-name "Catlantis")
(def default-catapi-params
{:format "xml"
:size "med"
:api-key thecatapi-key})
| null | https://raw.githubusercontent.com/madvas/catlantis/b8880ec2cab27ecfcb3c0ab30e2bbc7767db0d1c/src/catlantis/config.cljs | clojure | (ns catlantis.config)
(def thecatapi-key "ODk2MzY")
(def app-name "Catlantis")
(def default-catapi-params
{:format "xml"
:size "med"
:api-key thecatapi-key})
| |
74453b740738a0051b696f612af18a0d2078373618b7453d6fff41ee54b3d2c5 | ocsigen/ojwidgets | ojw_completion_sigs.mli |
module type T = sig
(** A completion widget to complete on string value. *)
module D : Ojw_dom_sigs.T
module Dropdown : Ojw_dropdown_sigs.T
module Tr : Ojw_traversable_sigs.T
(** A [completion] widget is [dropdown] widget. The list of the
possible values are displayed using a [dropdown]. *)
class t... | null | https://raw.githubusercontent.com/ocsigen/ojwidgets/4be2233980bdd1cae187c749bd27ddbfff389880/src/internals/ojw_completion_sigs.mli | ocaml | * A completion widget to complete on string value.
* A [completion] widget is [dropdown] widget. The list of the
possible values are displayed using a [dropdown].
* You can retrieve the value of the [completion] widget or even
change it (you need to [refresh] explicitly the widget).
* Clear the list of... |
module type T = sig
module D : Ojw_dom_sigs.T
module Dropdown : Ojw_dropdown_sigs.T
module Tr : Ojw_traversable_sigs.T
class type completion = object
inherit Dropdown.dropdown
method value : Js.js_string Js.t Js.prop
method clear : unit Js.meth
method confirm : unit Lwt.t Js.meth
meth... |
dea82581b2348975a97b695022a63799eada0249db8b63cf7cc16f75c9336edd | Paczesiowa/hsenv | ArgDescr.hs | module Util.Args.ArgDescr ( DefaultValue(..)
, ArgDescr(..)
, KnownArgs
) where
-- default value for cli option
data DefaultValue = ConstValue String -- explicit default value
| DynValue String -- human readable descripti... | null | https://raw.githubusercontent.com/Paczesiowa/hsenv/b904436e10bde707a7838661a5ec30de430ca2b9/src/Util/Args/ArgDescr.hs | haskell | default value for cli option
explicit default value
human readable description of a process
that will provide default value
cli option description
switch
switch name (e.g. 'verbose' for --verbose)
human readable description of this switch
optional short version for this switch
(e.g. 'v' for '-v'
as a shortcu... | module Util.Args.ArgDescr ( DefaultValue(..)
, ArgDescr(..)
, KnownArgs
) where
data ArgDescr =
}
}
type KnownArgs = [ArgDescr]
|
1f9a8aa8b30675f7be5a1bb9107d5f3af85dae535eba2c2e6994b8335b1fbe66 | tlaplus/tlapm | tlapm.mli |
* tlapm.mli --- driver ( interface )
*
*
* Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation
* tlapm.mli --- driver (interface)
*
*
* Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
val main: string list -> unit
| null | https://raw.githubusercontent.com/tlaplus/tlapm/158386319f5b6cd299f95385a216ade2b85c9f72/src/tlapm.mli | ocaml |
* tlapm.mli --- driver ( interface )
*
*
* Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation
* tlapm.mli --- driver (interface)
*
*
* Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
val main: string list -> unit
| |
292ae3ea7d0780b9060ab3e9c0c4268d03ce87542bce8df2bce3df45f10b22e0 | protosens/monorepo.cljc | extra.clj | (ns extra)
| null | https://raw.githubusercontent.com/protosens/monorepo.cljc/1c7cc00cbfb7c7484521146bf998438d2867552f/module/deps.edn/resrc/test/src/extra/extra.clj | clojure | (ns extra)
| |
41a67a27936d12cb18c82bf8be5b4a2497bafd87b1c4ed447a20a6fddbf7cd34 | hstreamdb/hstream | WriterSpec.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
module HStream.Store.WriterSpec where
import qualified Data.ByteString as BS
import Test.Hspec
import Test.Hspec.QuickCheck
import Test.QuickCheck
import Test.QuickCheck.Instances.ByteStr... | null | https://raw.githubusercontent.com/hstreamdb/hstream/623ccb8577b992383cfacd7d6577616d245b8583/hstream-store/test/HStream/Store/WriterSpec.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE ScopedTypeVariables #
module HStream.Store.WriterSpec where
import qualified Data.ByteString as BS
import Test.Hspec
import Test.Hspec.QuickCheck
import Test.QuickCheck
import Test.QuickCheck.Instances.ByteString ()
import qualified HStream.Stor... |
bb1852c11b2e6d1fd80e88c508ef30936480b8641caaeabfc2c4d6ece966e99e | avatar29A/hs-aitubots-api | UserInfo.hs | # LANGUAGE DuplicateRecordFields #
# LANGUAGE RecordWildCards #
{-# LANGUAGE OverloadedStrings #-}
module Aitu.Bot.Forms.Content.UserInfo
( UserInfo(..)
)
where
import Data.Aeson hiding ( Options )
import Data.Text
import qualified Aitu.Bot.Forms.Content.Content
... | null | https://raw.githubusercontent.com/avatar29A/hs-aitubots-api/9cc3fd1e4e9e81491628741a6bbb68afbb85704e/src/Aitu/Bot/Forms/Content/UserInfo.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE DuplicateRecordFields #
# LANGUAGE RecordWildCards #
module Aitu.Bot.Forms.Content.UserInfo
( UserInfo(..)
)
where
import Data.Aeson hiding ( Options )
import Data.Text
import qualified Aitu.Bot.Forms.Content.Content
as... |
41ad92bac9000a1fd1a3ca9b44e3d1ab319de3057c6b2ddf7a7de9bcbf3d0588 | dparis/gen-phzr | canvas_mask_manager.cljs | (ns phzr.pixi.canvas-mask-manager
(:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]]
[phzr.impl.extend :as ex]
[cljsjs.phaser]))
(defn ->CanvasMaskManager
"A set of functions used to handle masking."
([]
(js/PIXI.CanvasMaskManager.)))
(defn pop-mask
"Restores the curr... | null | https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/pixi/canvas_mask_manager.cljs | clojure | (ns phzr.pixi.canvas-mask-manager
(:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]]
[phzr.impl.extend :as ex]
[cljsjs.phaser]))
(defn ->CanvasMaskManager
"A set of functions used to handle masking."
([]
(js/PIXI.CanvasMaskManager.)))
(defn pop-mask
"Restores the curr... | |
791fdffd3ff3c4bdf42a42853b59e3dca92164f800389669836b88761bda7dca | nachivpn/mt | g3.erl | -module(g3).
ceq(X,Y) -> X == Y.
cne(X,Y) -> X /= Y.
clte(X,Y) -> X =< Y.
clt(X,Y) -> X < Y.
cgte(X,Y) -> X >= Y.
cgt (X,Y) -> X > Y.
cee (X,Y) -> X =:= Y.
cene (X,Y) -> X =/= Y.
foo1() -> "hello" == "world".
foo2() -> "hello" =:= 1.
foo3() -> 1.0 =/= 1.
foo5() ->
X = 1 div 5,
X >= 5.0.
| null | https://raw.githubusercontent.com/nachivpn/mt/fcffbcb770cfe0b19c189e6c8ce2ccab61062195/test/good/g3.erl | erlang | -module(g3).
ceq(X,Y) -> X == Y.
cne(X,Y) -> X /= Y.
clte(X,Y) -> X =< Y.
clt(X,Y) -> X < Y.
cgte(X,Y) -> X >= Y.
cgt (X,Y) -> X > Y.
cee (X,Y) -> X =:= Y.
cene (X,Y) -> X =/= Y.
foo1() -> "hello" == "world".
foo2() -> "hello" =:= 1.
foo3() -> 1.0 =/= 1.
foo5() ->
X = 1 div 5,
X >= 5.0.
| |
89bdd473a239c72ff47e92d9ca1b272525d11c9e2fdf9490b099b0825f307352 | felipeZ/Haskell-abinitio | BasisOrthogonalization.hs |
|
Module : Science . QuantumChemistry . HartreeFock . DIIS
Description : DIIS acceleration Convergence
Copyright : tape
@2012,2015 Felipe Zapata core SCF machinery
Module: Science.QuantumChemistry.HartreeFock.DIIS
Description: DIIS acceleration Convergence
Copyright: @2012,2013... | null | https://raw.githubusercontent.com/felipeZ/Haskell-abinitio/c019bc37c8de78affddf97eb858c1ef18af76d83/Science/QuantumChemistry/HartreeFock/BasisOrthogonalization.hs | haskell | internal modules
========================> ORTHOGONALIZATION OF THE BASIS <================================== |
|
Module : Science . QuantumChemistry . HartreeFock . DIIS
Description : DIIS acceleration Convergence
Copyright : tape
@2012,2015 Felipe Zapata core SCF machinery
Module: Science.QuantumChemistry.HartreeFock.DIIS
Description: DIIS acceleration Convergence
Copyright: @2012,2013... |
ecff5f348433f4535eddaf2f5a3e018b1688ddaf5564b6dc123594281141b80b | toyokumo/tarayo | data_source_test.clj | (ns tarayo.mail.mime.multipart.data-source-test
(:require
[clojure.java.io :as io]
[clojure.test :as t]
[tarayo.mail.mime.multipart.data-source :as sut])
(:import
jakarta.activation.DataSource
java.io.ByteArrayOutputStream))
(t/deftest byte-array-data-source-test
(t/testing "default content-type"
... | null | https://raw.githubusercontent.com/toyokumo/tarayo/f9b10b85b7bc1a188d808c3955e258916cd0b38a/test/tarayo/mail/mime/multipart/data_source_test.clj | clojure | (ns tarayo.mail.mime.multipart.data-source-test
(:require
[clojure.java.io :as io]
[clojure.test :as t]
[tarayo.mail.mime.multipart.data-source :as sut])
(:import
jakarta.activation.DataSource
java.io.ByteArrayOutputStream))
(t/deftest byte-array-data-source-test
(t/testing "default content-type"
... | |
98502c4a79ed0dd30e1bafd4cb0ee877aecaa03d5208e9717655b3b34db6db17 | tweag/ormolu | tuples-out.hs | foo = (1, 2, 3)
bar =
( 1,
2,
3
)
handleStuff =
( let foo = foo
in foo,
let bar = bar
in bar
)
| null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/value/function/tuples-out.hs | haskell | foo = (1, 2, 3)
bar =
( 1,
2,
3
)
handleStuff =
( let foo = foo
in foo,
let bar = bar
in bar
)
| |
d9c1d48ddcfe227801d1ec3db224802bcf0abdd39c1c550fee45d565a00d1740 | coq/coq | univGen.ml | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * *... | null | https://raw.githubusercontent.com/coq/coq/1bacca2d42c3bab2c6826bd8cb50dd1805b310ea/engine/univGen.ml | ocaml | **********************************************************************
* The Coq Proof Assistant / The Coq Development Team
// * This file is distributed under the terms of the
* (see LICENSE file for the text of the license)
************************************... | v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GNU Lesser Gener... |
27b298953870699ebf614c1065003a216e0be702879d7be8d0432fbabed5ebca | hanshuebner/bos | packages.lisp | (in-package :cl-user)
(defpackage :bos.web
(:nicknames :web :worldpay-test)
(:use :cl
:date-calc
:cl-user
:cl-interpol
:cl-ppcre
:alexandria
:xhtml-generator
:cxml
:puri
:bknr.web
:bknr.web.frontend
:bknr.datastore
:bkn... | null | https://raw.githubusercontent.com/hanshuebner/bos/ab5944cc46f4a5ff5a08fd8aa4d228c0f9cfc771/web/packages.lisp | lisp | (in-package :cl-user)
(defpackage :bos.web
(:nicknames :web :worldpay-test)
(:use :cl
:date-calc
:cl-user
:cl-interpol
:cl-ppcre
:alexandria
:xhtml-generator
:cxml
:puri
:bknr.web
:bknr.web.frontend
:bknr.datastore
:bkn... | |
f14a6303a1692686f469bae83a674286733a09c4b74c0672257d44ae6ce18c45 | tdammers/sprinkles | Main.hs | # LANGUAGE NoImplicitPrelude #
{-#LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE LambdaCase #
# LANGUAGE CPP #
-- | CLI program that drives a Sprinkles instance.
module Main where
import Web.Sprinkles.Prelude hiding ( (<|>), try )
import Web.Sprinkles
import We... | null | https://raw.githubusercontent.com/tdammers/sprinkles/a9161e4506427a3cf5f686654edc7ed9aa3ea82b/app/Main.hs | haskell | #LANGUAGE OverloadedStrings #
| CLI program that drives a Sprinkles instance. | # LANGUAGE NoImplicitPrelude #
# LANGUAGE TemplateHaskell #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE LambdaCase #
# LANGUAGE CPP #
module Main where
import Web.Sprinkles.Prelude hiding ( (<|>), try )
import Web.Sprinkles
import Web.Sprinkles.Project (Project)
import Web.Sprinkles.Exceptions
import Text.Read (read,... |
647e45606b030ffd728204a854342c66a7b1a6dfbcdd857c9f254f9848eb9e0c | kupl/LearnML | original.ml | type lambda = V of var | P of (var * lambda) | C of (lambda * lambda)
and var = string
let rec envmt (e : lambda) : string list =
let lst : string list = [] in
match e with
| V v -> lst
| P (v, lambdar) -> (v :: envmt lambdar) @ lst
| C (lambda1, lambda2) -> envmt lambda1 @ envmt lambda2 @ lst
let rec ex... | null | https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/lambda/sub54/original.ml | ocaml | type lambda = V of var | P of (var * lambda) | C of (lambda * lambda)
and var = string
let rec envmt (e : lambda) : string list =
let lst : string list = [] in
match e with
| V v -> lst
| P (v, lambdar) -> (v :: envmt lambdar) @ lst
| C (lambda1, lambda2) -> envmt lambda1 @ envmt lambda2 @ lst
let rec ex... | |
ede27384af7c3187572d7557220adc07a88a3a33530e3527eb101d66b3088c7b | thelema/ocaml-community | jg_completion.ml | (*************************************************************************)
(* *)
(* OCaml LablTk library *)
(* *)
,... | null | https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/browser/jg_completion.ml | ocaml | ***********************************************************************
OCaml LablTk library
... | , Kyoto University RIMS
Copyright 1999 Institut National de Recherche en Informatique et
en Automatique and Kyoto University . All rights reserved .
This file is distributed under the terms of the GNU Library
$ Id$
let lt_string ?(nocase=false)... |
24bc178cfdb97ec28be7aef78336a4196dac0bec136fc5c127bc11869bfaa3b6 | art-w/ocaml-webdriver | test_any.ml | module Make (Webdriver : Webdriver.S) = struct
let url_of_file filename = "file://" ^ Sys.getcwd () ^ "/" ^ filename
let url_a = url_of_file "test/a.html"
let url_b = url_of_file "test/b.html"
let test name cmds = (name, cmds)
open Webdriver.Infix
let navigation = test "navigation"
begin
let o... | null | https://raw.githubusercontent.com/art-w/ocaml-webdriver/f7afeef4dc7db56055f70d0695623c08a10faccc/test/test_any.ml | ocaml | module Make (Webdriver : Webdriver.S) = struct
let url_of_file filename = "file://" ^ Sys.getcwd () ^ "/" ^ filename
let url_a = url_of_file "test/a.html"
let url_b = url_of_file "test/b.html"
let test name cmds = (name, cmds)
open Webdriver.Infix
let navigation = test "navigation"
begin
let o... | |
ad4076df4e3b1c01c0f1e11c26269122df0d78bb4b89ef05c1210e2145abbe3d | lingnand/VIMonad | Man.hs | -----------------------------------------------------------------------------
-- |
-- Module : XMonad.Prompt.Man
Copyright : ( c ) 2007
-- License : BSD3-style (see LICENSE)
--
Maintainer : < >
-- Portability : non-portable (uses "manpath" and "bash")
--
-- A manual page prompt for XMona... | null | https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Prompt/Man.hs | haskell | ---------------------------------------------------------------------------
|
Module : XMonad.Prompt.Man
License : BSD3-style (see LICENSE)
Portability : non-portable (uses "manpath" and "bash")
A manual page prompt for XMonad window manager.
* narrow completions by section number, if the one is... | Copyright : ( c ) 2007
Maintainer : < >
TODO
module XMonad.Prompt.Man (
manPrompt
, getCommandOutput
, Man
) where
import XMonad
import XMonad.Prompt
import XMonad.Util.Run
import XMonad.Prompt.... |
8acee4da22e11ca62459abfd71f22cc013c598d6fb98d5db8c2f4de8ff69def0 | dmitryvk/sbcl-win32-threads | mipsstrops.lisp | ;;;; string hacking functions that are stubs for things that might
;;;; be microcoded someday
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
;;;;... | null | https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/mipsstrops.lisp | lisp | string hacking functions that are stubs for things that might
be microcoded someday
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more information.
Compare the substrings specified by STRING1 and STRING2 a... |
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package "SB!IMPL")
NIL if the strings are STRING= , or the lowest index of STRING1 in
which the two differ . If one ... |
b0ddd2c14cc5170541a72268a0800595885913bc8455326d681047bebd63fd0b | melange-re/melange | res_compmisc.ml | Copyright ( C ) 2015 - 2020 , Authors of ReScript
*
* 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 late... | null | https://raw.githubusercontent.com/melange-re/melange/4929daafb7e8993337b0e1982d32c00065cbf806/jscomp/core/res_compmisc.ml | ocaml | Return the initial environment in which compilation proceeds.
Note: do not do init_path() in initial_env, this breaks
toplevel initialization (PR#1775) | Copyright ( C ) 2015 - 2020 , Authors of ReScript
*
* 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 late... |
64c9e1d9c182f309ddd70f334848c4e651ffbe7deb9378e0f7ed178ec18669fc | returntocorp/ocaml-tree-sitter-core | test.ml | (*
All the unit tests for this library.
*)
let test_suites : unit Alcotest.test list = [
Matcher.test;
Src_file.test;
Util_string.test;
]
| null | https://raw.githubusercontent.com/returntocorp/ocaml-tree-sitter-core/b2404ed27e053f23745f7b2335405134dcb087ab/src/run/test/test.ml | ocaml |
All the unit tests for this library.
|
let test_suites : unit Alcotest.test list = [
Matcher.test;
Src_file.test;
Util_string.test;
]
|
3da474fccdb0d1b79857ff2e57941eb43935471ce8e12f21f3418d432d9fcf2f | sysbio-bioinf/avatar | import.clj | Copyright ( c ) . All rights reserved .
; The use and distribution terms for this software are covered by the
Eclipse Public License 2.0 ( -v20.html )
; 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 ... | null | https://raw.githubusercontent.com/sysbio-bioinf/avatar/cbf9968485f96fb61725aaa7381dba53624d6189/src/clojure/avatar/data/import.clj | clojure | 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 remove this notice, or any other, from this software.
only tru... | Copyright ( c ) . All rights reserved .
Eclipse Public License 2.0 ( -v20.html )
(ns avatar.data.import
(:require
[clojure.java.io :as io]
[clojure.string :as str]
[clojure.set :as set]
[clojure.data.int-map :as im]
[avatar.util :as u]
[avatar.data.csv :as csv]
[avatar.algorithms.co... |
146df120d6789553d650ffeb7989549dbfc4da6cc8ae25046f15552319200bad | drlivingston/kabob | id_mapping.clj | (ns edu.ucdenver.ccp.kabob.build.id-mapping
(use edu.ucdenver.ccp.kr.variable
edu.ucdenver.ccp.kr.unify
edu.ucdenver.ccp.kr.kb
edu.ucdenver.ccp.kr.rdf
edu.ucdenver.ccp.kr.sparql
edu.ucdenver.ccp.kr.rule))
;; TODO - should log a warning if none of the conditions are met,
;; e.g. if... | null | https://raw.githubusercontent.com/drlivingston/kabob/7038076849744c959da9c8507e8a8ab7215410aa/kabob-build/src/main/clojure/edu/ucdenver/ccp/kabob/build/id_mapping.clj | clojure | TODO - should log a warning if none of the conditions are met,
e.g. if cls1 is a gene and cls2 is a protein
creates "PRO relation entity" triples where the relation is owl/sameAs if
the entity is a protein and kiao/hasIndirectTemplate if the entity is a gene
(assoc rule :query
'((_/record kiao/hasTemplate ... | (ns edu.ucdenver.ccp.kabob.build.id-mapping
(use edu.ucdenver.ccp.kr.variable
edu.ucdenver.ccp.kr.unify
edu.ucdenver.ccp.kr.kb
edu.ucdenver.ccp.kr.rdf
edu.ucdenver.ccp.kr.sparql
edu.ucdenver.ccp.kr.rule))
(defn determine-bio-relation [cls1 cls2]
(if (= cls1 cls2) 'owl/sameAs
... |
b520fc74f84e87b47400b78c55f16bc3391a3c6f1f6a6ec019c240213edd3a42 | aengelberg/clocop | solver.clj | (ns clocop.solver
"A namespace with functions for customizing the way the solver works."
(:import (JaCoP.core Var)
(JaCoP.search SimpleSelect
InputOrderSelect
ComparatorVariable
... | null | https://raw.githubusercontent.com/aengelberg/clocop/25c774c879fdc7d7565079880a940442d585877e/src/clocop/solver.clj | clojure | (ns clocop.solver
"A namespace with functions for customizing the way the solver works."
(:import (JaCoP.core Var)
(JaCoP.search SimpleSelect
InputOrderSelect
ComparatorVariable
... | |
a2f7c144ef7eb4aabec2d5068c23e0338fa8b10cc85b71b09f02f77ccaf0747a | nponeccop/HNC | Parser.hs | -----------------------------------------------------------------------------------------
{-| Module : Main
Copyright :
License : All Rights Reserved
Maintainer :
Stability :
Portability :
-}
-----------------------------------------------------------------------------------------
{-#... | null | https://raw.githubusercontent.com/nponeccop/HNC/d8447009a04c56ae2cba4c7c179e39384085ea00/Parser/Parser.hs | haskell | ---------------------------------------------------------------------------------------
| Module : Main
Copyright :
License : All Rights Reserved
Maintainer :
Stability :
Portability :
---------------------------------------------------------------------------------------
# LANGUAGE ... | # OPTIONS_GHC -fno - warn - unused - do - bind #
module Parser.Parser (program, identifier) where
import Control.Monad
import Text.Parsec.Prim
import Text.Parsec.Combinator
import Text.Parsec.Char
import Parser.AST
identifier
= liftM2 (:) xletter $ many $ xletter <|> digit where
xletter = letter <|> char '_'
nl ... |
a54425dc61103daae91426d52d2770dab9bd3c75f32f79a0c2fce5ab68d0c142 | comtihon/social_network_example | sn_contacts_logic.erl | %%%-------------------------------------------------------------------
@author tihon
( C ) 2017 , < COMPANY >
%%% @doc
This module is responsible for searching provided msisdn in user 's
%%% address book. If userA contacts contain userB and userB contacts
contain userA - they become friends . If only one of th... | null | https://raw.githubusercontent.com/comtihon/social_network_example/eed32f43947fc8d88c41e38fc2d31d2371be0c2b/src/business/friends/invite/sn_contacts_logic.erl | erlang | -------------------------------------------------------------------
@doc
address book. If userA contacts contain userB and userB contacts
other's msisdn - invite will be sent.
@end
-------------------------------------------------------------------
API | @author tihon
( C ) 2017 , < COMPANY >
This module is responsible for searching provided msisdn in user 's
contain userA - they become friends . If only one of them contains
-module(sn_contacts_logic).
-author("tihon").
-export([scan_contacts_get_friends/2]).
-spec scan_contacts_get_friends(list(), map()) ->... |
6e8adab7a775d0e8f86b771418337e8cd8baa981f35f1ab817e3c0a002453bd3 | ohua-dev/ohua-core | ALang.hs | |
Module : $ Header$
Description : Implementation for basic tail recrusion support .
Copyright : ( c ) , 2017 . All Rights Reserved .
License : EPL-1.0
Maintainer : ,
Stability : experimental
Portability : portable
This source code is licensed under the terms described in the as... | null | https://raw.githubusercontent.com/ohua-dev/ohua-core/8fe0ee90f4a1aea0c5bfabe922b290fed668a7da/core/src/Ohua/Feature/TailRec/Passes/ALang.hs | haskell | feedback edge : @e@
feedback edge: @e@
==== Implementation starts here
Currently not exposed by the frontend but only as the only part of recursion
at the backend.
allows me to use it in binding position
This is a compiler-internal higher-order function.
Phase 1:
for the assigment expr I add the reference an... | |
Module : $ Header$
Description : Implementation for basic tail recrusion support .
Copyright : ( c ) , 2017 . All Rights Reserved .
License : EPL-1.0
Maintainer : ,
Stability : experimental
Portability : portable
This source code is licensed under the terms described in the as... |
410ad19d0f04b6885e3b9e66b8c11a7313f3da4d08af5d21f6be47c4e6192e70 | seliopou/typo | Prelude.hs | module Language.Typo.Prelude
( prelude
) where
prelude :: String
prelude = "\
\-------------------------------------------------------------------------------\n\
\-- BEGIN PRELUDE --------------------------------------------------------------\n\
\-------------------------------------------------------------------... | null | https://raw.githubusercontent.com/seliopou/typo/cc64ec38603a50c6543b3834d47b4ff0431c2b3e/Language/Typo/Prelude.hs | haskell | -----------------------------------------------------------------------------\n\
BEGIN PRELUDE --------------------------------------------------------------\n\
-----------------------------------------------------------------------------\n\
-----------------------------------------------------------------------------... | module Language.Typo.Prelude
( prelude
) where
prelude :: String
prelude = "\
\\n\
# LANGUAGE NoImplicitPrelude #
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies #
# LANGUAGE FlexibleInstances , UndecidableInstances #
# LANGUAGE OverlappingInstances #
\\n\
\undefined = undefined\n\
\\n\
\data True\n\
\d... |
c26667607aed2edfa289ed39bc4c54c0c7bfdedc2f9d3c1086120b991f5bb1b1 | cstar/ejabberd-old | mod_last_sdb.erl | %%%----------------------------------------------------------------------
%%% File : mod_last_sdb.erl
Author : < >
%%% Purpose : jabber:iq:last support (JEP-0012)
Created : 26/02/09 by < >
%%%
ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne
%%%
%%% This program is free software; you can redistribu... | null | https://raw.githubusercontent.com/cstar/ejabberd-old/559f8b6b0a935710fe93e9afacb4270d6d6ea00f/src/mod_last_sdb.erl | erlang | ----------------------------------------------------------------------
File : mod_last_sdb.erl
Purpose : jabber:iq:last support (JEP-0012)
This program is free software; you can redistribute it and/or
License, or (at your option) any later version.
This program is distributed in the hope that it will be usef... | Author : < >
Created : 26/02/09 by < >
ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation ; either version 2 of the
You should have received a copy of the GNU General Public License
Foundatio... |
a845b806354c8c7109b90cbf7f93bc670302545db17183ba5e7221cb22c3d273 | rmculpepper/crypto | sodium.rkt | Copyright 2018
;;
;; 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 later version.
;;
;; This library is distributed in... | null | https://raw.githubusercontent.com/rmculpepper/crypto/fec745e8af7e3f4d5eaf83407dde2817de4c2eb0/crypto-lib/sodium.rkt | racket |
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
(at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCH... | Copyright 2018
by the Free Software Foundation , either version 3 of the License , or
GNU Lesser General Public License for more details .
You should have received a copy of the GNU Lesser General Public License
#lang racket/base
(require "private/sodium/factory.rkt")
(provide sodium-factory)
|
b417512ab3de4be4ed9e85e1011e75621c03d933f659fe6276c13fa2e16983a9 | mlcfp/zenacy-html | Filter.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE LambdaCase #
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
-- | Filters and transforms for HTML trees.
module Zenacy.HTML.Internal.Filter
( htmlSpaceRemove
) where
import Zenacy.HTML.Internal.Co... | null | https://raw.githubusercontent.com/mlcfp/zenacy-html/b4af86fecc6fbbe1c7501e2fa75e6aa28206ebcb/src/Zenacy/HTML/Internal/Filter.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE MultiWayIf #
# LANGUAGE OverloadedStrings #
| Filters and transforms for HTML trees.
| Removes whitespace and comments from an HTML structure.
Document elements are not accepted, and only non-empty text nodes
are passed without modification, since whitespace is typically
signif... | # LANGUAGE LambdaCase #
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
module Zenacy.HTML.Internal.Filter
( htmlSpaceRemove
) where
import Zenacy.HTML.Internal.Core
import Zenacy.HTML.Internal.HTML
import Zenacy.HTML.Internal.Oper
import Data.Maybe
( mapMaybe
)
and element nodes are kept . @... |
ee5f1363ca78d24eb0487173f1964d8a8ef1b9733c42f8a9e0a0414a4bcb5aa4 | ocaml-ppx/ocamlformat | exp_grouping.ml | let () =
Lwt_main.run
begin
let a = "a" in
let b = "b" in
let c = "c" in
Lwt.return "test"
end
let () =
Lwt_main.run
( let a = "a" in
let b = "b" in
let c = "c" in
Lwt.return "test" )
let () =
List.iter begin fun v ->
(* do a lot of things *)
let a =... | null | https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/1bc12c4101dd57644f03881aa809a31e9addac0a/test/passing/tests/exp_grouping.ml | ocaml | do a lot of things
do a lot of things
foo
foo
foo
foo | let () =
Lwt_main.run
begin
let a = "a" in
let b = "b" in
let c = "c" in
Lwt.return "test"
end
let () =
Lwt_main.run
( let a = "a" in
let b = "b" in
let c = "c" in
Lwt.return "test" )
let () =
List.iter begin fun v ->
let a = "a" in
let b = "b" in
... |
9404e8ffa19ab375e6b76f34ab45478b46eca66ca7e5614cb558dba3ff9d979f | 2600hz/kazoo | hon_util.erl | %%%-----------------------------------------------------------------------------
( C ) 2012 - 2020 , 2600Hz
%%% @doc
@author
%%%
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%%
%%% ... | null | https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/applications/hotornot/src/hon_util.erl | erlang | -----------------------------------------------------------------------------
@doc
@end
-----------------------------------------------------------------------------
how many chars to strip off the e164 DID
Private helper functions
Route options come from the client device
Rate options come from the carrier pro... | ( C ) 2012 - 2020 , 2600Hz
@author
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
-module(hon_util).
-export([candidate_rates/1, candidate_rates/2, candidate_rates/3
,matching... |
fcb733c5a5604233de948ce69ef4c669cd15039c4eb1183afe46a3795887ef69 | gsakkas/rite | 2577.ml |
let rec clone x n =
let rec helper a b acc = if b > 0 then helper a (b - 1) (a :: acc) else acc in
helper x n [];;
let padZero l1 l2 =
let l1_len = List.length l1 in
let l2_len = List.length l2 in
let l_diff = l1_len - l2_len in
if l_diff < 0
then (((clone 0 (l_diff * (-1))) @ l1), l2)
else (l1, ((clo... | null | https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14_min/2577.ml | ocaml |
let rec clone x n =
let rec helper a b acc = if b > 0 then helper a (b - 1) (a :: acc) else acc in
helper x n [];;
let padZero l1 l2 =
let l1_len = List.length l1 in
let l2_len = List.length l2 in
let l_diff = l1_len - l2_len in
if l_diff < 0
then (((clone 0 (l_diff * (-1))) @ l1), l2)
else (l1, ((clo... | |
b5e4fb1af2005b15b3148b41103388d808856c6b6ce50cfa6b215222fa66fb70 | madvas/emojillionaire | contact_page.cljs | (ns emojillionaire.components.contact-page
(:require
[cljs-react-material-ui.reagent :as ui]
[emojillionaire.components.emoji :refer [emoji]]
[emojillionaire.components.layout :refer [outer-paper row col headline]]
[emojillionaire.utils :as u]))
(defn contact-page []
[outer-paper
[headline "Cont... | null | https://raw.githubusercontent.com/madvas/emojillionaire/ee47e874db0c88b91985b6f9e72221f12d3010ff/src/cljs/emojillionaire/components/contact_page.cljs | clojure | (ns emojillionaire.components.contact-page
(:require
[cljs-react-material-ui.reagent :as ui]
[emojillionaire.components.emoji :refer [emoji]]
[emojillionaire.components.layout :refer [outer-paper row col headline]]
[emojillionaire.utils :as u]))
(defn contact-page []
[outer-paper
[headline "Cont... | |
869fa72c3f311a3e0f361b4a1be03ab67af774ca8acde494756c7a9be495e95c | cyverse-archive/DiscoveryEnvironmentBackend | callbacks.clj | (ns metadactyl.routes.callbacks
(:use [common-swagger-api.schema]
[metadactyl.routes.domain.callback]
[metadactyl.routes.params]
[ring.util.http-response :only [ok]])
(:require [metadactyl.service.callbacks :as callbacks]))
(defroutes* callbacks
(POST* "/de-job" []
:body [body (d... | null | https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/metadactyl-clj/src/metadactyl/routes/callbacks.clj | clojure | (ns metadactyl.routes.callbacks
(:use [common-swagger-api.schema]
[metadactyl.routes.domain.callback]
[metadactyl.routes.params]
[ring.util.http-response :only [ok]])
(:require [metadactyl.service.callbacks :as callbacks]))
(defroutes* callbacks
(POST* "/de-job" []
:body [body (d... | |
7c6d0c7d0e18bbcfd052614922ecac8f955e5779576058a92913df6a92a5dc84 | WhatsApp/erlt | erlt_enum.erl | Copyright Ericsson AB 1996 - 2020 . All Rights Reserved .
Copyright ( c ) 2020 Facebook , Inc. and its affiliates .
%%
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... | null | https://raw.githubusercontent.com/WhatsApp/erlt/616a4adc628ca8754112e659701e57f1cd7fecd1/erltc/src/erlt_enum.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | Copyright Ericsson AB 1996 - 2020 . All Rights Reserved .
Copyright ( c ) 2020 Facebook , Inc. and its affiliates .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(erlt_enum).
This module only traverses legal... |
adcbc8e7489109b4af8bef677054e654e23b69b4160fff70aa1f462f9c3f0227 | jaspervdj/fugacious | MailQueue.hs | {-# LANGUAGE OverloadedStrings #-}
module Fugacious.MailQueue
( DeliverMail
, Config (..)
, Handle (..)
, withHandle
, withHandles
) where
import qualified Data.Aeson as A
import qualified Fugacious.Logger as Logger
import qualified Fugacious.MailQueue.Amazon as ... | null | https://raw.githubusercontent.com/jaspervdj/fugacious/4e9c2d48174c852616fbfbf28bd9cc90812a1c95/lib/Fugacious/MailQueue.hs | haskell | # LANGUAGE OverloadedStrings # | module Fugacious.MailQueue
( DeliverMail
, Config (..)
, Handle (..)
, withHandle
, withHandles
) where
import qualified Data.Aeson as A
import qualified Fugacious.Logger as Logger
import qualified Fugacious.MailQueue.Amazon as Amazon
import Fugacious.M... |
98848aa689794403e5c2b93206768184dea1b6d6396fba0db563e2c6f92d0c07 | ocaml-ppx/ocamlformat | indent_empty.ml | module M = struct
let f =
end
let g =
fun x -> 3 + 4 *
| null | https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/3d1c992240f7d30bcb8151285274f44619dae197/test/failing/tests/indent_empty.ml | ocaml | module M = struct
let f =
end
let g =
fun x -> 3 + 4 *
| |
85b94c6f8840e44926a371a4432feb277bd42ad6264e63bbbc6c3c1bc0f7cc18 | MarchLiu/market | local_remote_test.clj | (ns liu.mars.market.local-remote-test
"run with local profile, place run `lein with-profile +local run` prepare the server in local"
(:require [clojure.test :refer :all])
(:require [clojure.java.jdbc :as j])
(:require [liu.mars.market.test-data :as data])
(:require [liu.mars.market.config :as cfg])
(:requir... | null | https://raw.githubusercontent.com/MarchLiu/market/7a7daf6c04b41e0f8494be6740da8d54785c5e77/counter/src/test/clojure/liu/mars/market/local_remote_test.clj | clojure | (ns liu.mars.market.local-remote-test
"run with local profile, place run `lein with-profile +local run` prepare the server in local"
(:require [clojure.test :refer :all])
(:require [clojure.java.jdbc :as j])
(:require [liu.mars.market.test-data :as data])
(:require [liu.mars.market.config :as cfg])
(:requir... | |
fac6e608efabcdeab2039b981e1e4b8b16cf8c1be08df4bbde5a2cd7c43a823a | archaelus/erms | erms_test_esme.erl | Copyright ( C ) 2004 Peña < >
%%%
%%% This library is free software; you can redistribute it and/or
%%% modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation ; either
version 2.1 of the License , or ( at your option ) any later version .
%%%
%%% This li... | null | https://raw.githubusercontent.com/archaelus/erms/5dbe5e79516a16e461e7a2a345dd80fbf92ef6fa/src/erms_test_esme.erl | erlang |
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU... | Copyright ( C ) 2004 Peña < >
License as published by the Free Software Foundation ; either
version 2.1 of the License , or ( at your option ) any later version .
You should have received a copy of the GNU Lesser General Public
Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 US... |
40b69f2776f4b4fe78a85109d318b396dff9b5714edd4a188c5ff0d4ac360b60 | arcfide/oleg | sxpath-plus.scm | ;; sxpath+ - a macro implementation of the sxpath function
$ I d : sxpath - plus.scm , v 1.3 2004/01/25 16:14:20 kl Exp kl $
;
This macro was proposed by on SSAX - SXML mail list 30/07/2003
;
;
; This is version is based on "binary" sxpath, where location step functions
have two parameters - nodeset and ... | null | https://raw.githubusercontent.com/arcfide/oleg/c6826870436925fd4c873c01d7fcc24a7a7f95dc/sxml-tools/sxpath-plus.scm | scheme | sxpath+ - a macro implementation of the sxpath function
This is version is based on "binary" sxpath, where location step functions
The "look and feel" is similar to the normal sxpath function. Instead of
(sxpath '(div // para))
one writes
(sxpath+ (div // para))
Please note that the location path... | $ I d : sxpath - plus.scm , v 1.3 2004/01/25 16:14:20 kl Exp kl $
This macro was proposed by on SSAX - SXML mail list 30/07/2003
have two parameters - nodeset and a list var bindings ( including * root * ) .
commited to SourceForge CVS Jan 13 2004
Note : location step functions are required to take 2 p... |
48e87801917480ca4a533e8d7d5073a773207678f4074e0231aeace283d578bc | input-output-hk/cardano-wallet-legacy | Conv.hs | # LANGUAGE LambdaCase #
-- | Convert to and from V1 types
module Cardano.Wallet.WalletLayer.Kernel.Conv (
-- * From V1 to kernel types
fromRootId
, fromAccountId
, fromAssuranceLevel
, fromRedemptionCode
, fromRedemptionCodePaper
-- * From kernel types to V1 types
, toAccountId
, toRootId
, to... | null | https://raw.githubusercontent.com/input-output-hk/cardano-wallet-legacy/143e6d0dac0b28b3274600c6c49ec87e42ec9f37/src/Cardano/Wallet/WalletLayer/Kernel/Conv.hs | haskell | | Convert to and from V1 types
* From V1 to kernel types
* From kernel types to V1 types
* Custom errors
* Convenience re-exports
Functions 'toWallet' and 'toEosWallet' contain duplications in 'where'
introduce the new one.
------------------------------------------------------------------------------
From V1 ... | # LANGUAGE LambdaCase #
module Cardano.Wallet.WalletLayer.Kernel.Conv (
fromRootId
, fromAccountId
, fromAssuranceLevel
, fromRedemptionCode
, fromRedemptionCodePaper
, toAccountId
, toRootId
, toAccount
, toWallet
, toEosWallet
, toAddress
, toCardanoAddress
, toAssuranceLevel
, toSyncSta... |
96c9bfb1c3efde3b73831cdf046d975b2ca9e2cc9d5e6ea63089d8ed6d48c6a2 | pedestal/pedestal | service_test.clj | Copyright 2014 - 2022 Cognitect , Inc.
; The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 ( )
; which can be found in the file epl-v10.html at the root of this distribution.
;
; By using this software in any fashion, you are agreeing to be bound by
; the terms of this... | null | https://raw.githubusercontent.com/pedestal/pedestal/53bfe70143a22cdfd2f0d183023334a199c9e9a2/samples/servlet-filters-gzip/test/gzip/service_test.clj | clojure | The use and distribution terms for this software are covered by the
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice, or any other, from this software. | Copyright 2014 - 2022 Cognitect , Inc.
Eclipse Public License 1.0 ( )
(ns gzip.service-test
(:require [clj-http.client :as http-cl]
[clojure.test :refer :all]
[io.pedestal.test :refer :all]
[io.pedestal.http :as http]
[io.pedestal.http.jetty :as jetty]
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.