Search is not available for this dataset
repo_name
string
path
string
license
string
full_code
string
full_size
int64
uncommented_code
string
uncommented_size
int64
function_only_code
string
function_only_size
int64
is_commented
bool
is_signatured
bool
n_ast_errors
int64
ast_max_depth
int64
n_whitespaces
int64
n_ast_nodes
int64
n_ast_terminals
int64
n_ast_nonterminals
int64
loc
int64
cycloplexity
int64
awbraunstein/you-ate-my-fractal
src/Fractals.hs
mit
defaultMaxIteration :: Int defaultMaxIteration = 200
52
defaultMaxIteration :: Int defaultMaxIteration = 200
52
defaultMaxIteration = 200
25
false
true
0
4
5
11
6
5
null
null
csrhodes/pandoc
src/Text/Pandoc/Parsing.hs
gpl-2.0
mathDisplay :: (HasReaderOptions st, Stream s m Char) => ParserT s st m String mathDisplay = (guardEnabled Ext_tex_math_dollars >> mathDisplayWith "$$" "$$") <|> (guardEnabled Ext_tex_math_single_backslash >> mathDisplayWith "\\[" "\\]") <|> (guardEnabled Ext_tex_math_double_backslash >> ...
357
mathDisplay :: (HasReaderOptions st, Stream s m Char) => ParserT s st m String mathDisplay = (guardEnabled Ext_tex_math_dollars >> mathDisplayWith "$$" "$$") <|> (guardEnabled Ext_tex_math_single_backslash >> mathDisplayWith "\\[" "\\]") <|> (guardEnabled Ext_tex_math_double_backslash >> ...
357
mathDisplay = (guardEnabled Ext_tex_math_dollars >> mathDisplayWith "$$" "$$") <|> (guardEnabled Ext_tex_math_single_backslash >> mathDisplayWith "\\[" "\\]") <|> (guardEnabled Ext_tex_math_double_backslash >> mathDisplayWith "\\\\[" "\\\\]")
266
false
true
6
8
71
103
50
53
null
null
BartAdv/Idris-dev
src/Idris/AbsSyntaxTree.hs
bsd-3-clause
declared (PNamespace _ _ ds) = concatMap declared ds
52
declared (PNamespace _ _ ds) = concatMap declared ds
52
declared (PNamespace _ _ ds) = concatMap declared ds
52
false
false
0
7
8
24
11
13
null
null
fredokun/piccolo
src/Core/Compilation.hs
gpl-3.0
compileBranchAction _ br@BOutput { brChanIndex = c, brData = d } = do expr <- compileExpr d return $ comment br # (begin $ var chan ChannelType # chan <-- unboxChannelValue(getEnv(pt, c)) # ifthenelse (Not (channelArrayLockAndRegister(chans, nbChans, pt, chan))) ...
1,071
compileBranchAction _ br@BOutput { brChanIndex = c, brData = d } = do expr <- compileExpr d return $ comment br # (begin $ var chan ChannelType # chan <-- unboxChannelValue(getEnv(pt, c)) # ifthenelse (Not (channelArrayLockAndRegister(chans, nbChans, pt, chan))) ...
1,071
compileBranchAction _ br@BOutput { brChanIndex = c, brData = d } = do expr <- compileExpr d return $ comment br # (begin $ var chan ChannelType # chan <-- unboxChannelValue(getEnv(pt, c)) # ifthenelse (Not (channelArrayLockAndRegister(chans, nbChans, pt, chan))) ...
1,071
false
false
0
21
538
249
128
121
null
null
brendanhay/gogol
gogol-websecurityscanner/gen/Network/Google/Resource/WebSecurityScanner/Projects/ScanConfigs/Patch.hs
mpl-2.0
-- | JSONP pscpCallback :: Lens' ProjectsScanConfigsPatch (Maybe Text) pscpCallback = lens _pscpCallback (\ s a -> s{_pscpCallback = a})
138
pscpCallback :: Lens' ProjectsScanConfigsPatch (Maybe Text) pscpCallback = lens _pscpCallback (\ s a -> s{_pscpCallback = a})
127
pscpCallback = lens _pscpCallback (\ s a -> s{_pscpCallback = a})
67
true
true
1
9
21
50
25
25
null
null
josuf107/Adverb
Adverb/Common.hs
gpl-3.0
snuffingly = id
15
snuffingly = id
15
snuffingly = id
15
false
false
0
4
2
6
3
3
null
null
jaiyalas/haha
src/Lambda/Text/Num.hs
mit
scS = \n f x -> f n
19
scS = \n f x -> f n
19
scS = \n f x -> f n
19
false
false
1
5
7
22
9
13
null
null
ganeti/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
htKvmSpiceVideoStreamDetectionFilter :: String htKvmSpiceVideoStreamDetectionFilter = "filter"
94
htKvmSpiceVideoStreamDetectionFilter :: String htKvmSpiceVideoStreamDetectionFilter = "filter"
94
htKvmSpiceVideoStreamDetectionFilter = "filter"
47
false
true
0
4
5
11
6
5
null
null
forste/haReFork
refactorer/RefacIntroPattern.hs
bsd-3-clause
flatternT (Typ (HsTyApp t1 t2)) = flatternT t1
46
flatternT (Typ (HsTyApp t1 t2)) = flatternT t1
46
flatternT (Typ (HsTyApp t1 t2)) = flatternT t1
46
false
false
0
9
7
26
12
14
null
null
dblia/nosql-ganeti
test/hs/Test/Ganeti/Utils.hs
gpl-2.0
-- | Test 'chompPrefix' returns Nothing when the prefix doesn't match. prop_chompPrefix_nothing :: Property prop_chompPrefix_nothing = forAll (choose (1, 20)) $ \len -> forAll (vectorOf len arbitrary) $ \pfx -> forAll (arbitrary `suchThat` (\s -> not (pfx `isPrefixOf` s) && s /= init pfx)) $ \str -> c...
350
prop_chompPrefix_nothing :: Property prop_chompPrefix_nothing = forAll (choose (1, 20)) $ \len -> forAll (vectorOf len arbitrary) $ \pfx -> forAll (arbitrary `suchThat` (\s -> not (pfx `isPrefixOf` s) && s /= init pfx)) $ \str -> chompPrefix pfx str ==? Nothing
279
prop_chompPrefix_nothing = forAll (choose (1, 20)) $ \len -> forAll (vectorOf len arbitrary) $ \pfx -> forAll (arbitrary `suchThat` (\s -> not (pfx `isPrefixOf` s) && s /= init pfx)) $ \str -> chompPrefix pfx str ==? Nothing
242
true
true
0
19
69
117
63
54
null
null
mumuki/mulang
src/Language/Mulang/Inspector/Plain.hs
gpl-3.0
isDeclaration p (LValue i _) = p i
42
isDeclaration p (LValue i _) = p i
42
isDeclaration p (LValue i _) = p i
42
false
false
0
7
15
22
10
12
null
null
facebookincubator/duckling
Duckling/Numeral/KA/Rules.hs
bsd-3-clause
ruleToNineteen :: Rule ruleToNineteen = Rule { name = "integer (0..19)" , pattern = [ regex "(წყვილ(ებ)?ი|ცოტა|რამდენიმე|რამოდენიმე|ნოლი?|ნული?|ერთი|ორი?|სამი?|ოთხი?|ხუთი?|ექვსი?|შვიდი?|რვა|თერთმეტი?|თორმეტი?|ცამეტი?|თოთხმეტი?|თხუთმეტი?|თექვსმეტი?|ჩვიდმეტი?|თვრამეტი?|ცხრამეტი?|ცხრა|ა?ათი)" ] , prod = \cas...
565
ruleToNineteen :: Rule ruleToNineteen = Rule { name = "integer (0..19)" , pattern = [ regex "(წყვილ(ებ)?ი|ცოტა|რამდენიმე|რამოდენიმე|ნოლი?|ნული?|ერთი|ორი?|სამი?|ოთხი?|ხუთი?|ექვსი?|შვიდი?|რვა|თერთმეტი?|თორმეტი?|ცამეტი?|თოთხმეტი?|თხუთმეტი?|თექვსმეტი?|ჩვიდმეტი?|თვრამეტი?|ცხრამეტი?|ცხრა|ა?ათი)" ] , prod = \cas...
565
ruleToNineteen = Rule { name = "integer (0..19)" , pattern = [ regex "(წყვილ(ებ)?ი|ცოტა|რამდენიმე|რამოდენიმე|ნოლი?|ნული?|ერთი|ორი?|სამი?|ოთხი?|ხუთი?|ექვსი?|შვიდი?|რვა|თერთმეტი?|თორმეტი?|ცამეტი?|თოთხმეტი?|თხუთმეტი?|თექვსმეტი?|ჩვიდმეტი?|თვრამეტი?|ცხრამეტი?|ცხრა|ა?ათი)" ] , prod = \case (Token RegexMat...
542
false
true
0
18
101
132
68
64
null
null
schnecki/HaskellMachineLearning
src/Data/ML/DecisionTree/Ops.hs
gpl-3.0
entropy :: (Ord a, Floating a) => [a] -> a entropy p = sum (map (\x -> if x <= 0.00 then 0.00 else x * logBase 2 (1/x)) p)
176
entropy :: (Ord a, Floating a) => [a] -> a entropy p = sum (map (\x -> if x <= 0.00 then 0.00 else x * logBase 2 (1/x)) p)
176
entropy p = sum (map (\x -> if x <= 0.00 then 0.00 else x * logBase 2 (1/x)) p)
133
false
true
0
14
83
89
45
44
null
null
fmapfmapfmap/amazonka
amazonka-cloudsearch/gen/Network/AWS/CloudSearch/Types/Product.hs
mpl-2.0
-- | Whether the contents of the field are searchable. loSearchEnabled :: Lens' LiteralOptions (Maybe Bool) loSearchEnabled = lens _loSearchEnabled (\ s a -> s{_loSearchEnabled = a})
182
loSearchEnabled :: Lens' LiteralOptions (Maybe Bool) loSearchEnabled = lens _loSearchEnabled (\ s a -> s{_loSearchEnabled = a})
127
loSearchEnabled = lens _loSearchEnabled (\ s a -> s{_loSearchEnabled = a})
74
true
true
0
9
26
46
25
21
null
null
mzini/TcT
source/Tct/Encoding/ArgumentFiltering.hs
gpl-3.0
isCollapsing :: (Eq l, Ord l) => Symbol -> PropFormula l isCollapsing = propAtom . Collapsing
93
isCollapsing :: (Eq l, Ord l) => Symbol -> PropFormula l isCollapsing = propAtom . Collapsing
93
isCollapsing = propAtom . Collapsing
36
false
true
1
8
15
44
20
24
null
null
facebookincubator/duckling
Duckling/Time/NB/Rules.hs
bsd-3-clause
ruleNamedmonthDayofmonthOrdinal :: Rule ruleNamedmonthDayofmonthOrdinal = Rule { name = "<named-month> <day-of-month> (ordinal)" , pattern = [ Predicate isAMonth , Predicate isDOMOrdinal ] , prod = \tokens -> case tokens of (Token Time td:token:_) -> Token Time <$> intersectDOM td token _ ...
334
ruleNamedmonthDayofmonthOrdinal :: Rule ruleNamedmonthDayofmonthOrdinal = Rule { name = "<named-month> <day-of-month> (ordinal)" , pattern = [ Predicate isAMonth , Predicate isDOMOrdinal ] , prod = \tokens -> case tokens of (Token Time td:token:_) -> Token Time <$> intersectDOM td token _ ...
334
ruleNamedmonthDayofmonthOrdinal = Rule { name = "<named-month> <day-of-month> (ordinal)" , pattern = [ Predicate isAMonth , Predicate isDOMOrdinal ] , prod = \tokens -> case tokens of (Token Time td:token:_) -> Token Time <$> intersectDOM td token _ -> Nothing }
294
false
true
0
14
75
96
50
46
null
null
dimara/ganeti
src/Ganeti/Types.hs
bsd-2-clause
localDiskStatusName DiskStatusOk = "ok"
39
localDiskStatusName DiskStatusOk = "ok"
39
localDiskStatusName DiskStatusOk = "ok"
39
false
false
0
4
3
10
4
6
null
null
dysinger/amazonka
amazonka-opsworks/gen/Network/AWS/OpsWorks/DeleteApp.hs
mpl-2.0
-- | The app ID. daAppId :: Lens' DeleteApp Text daAppId = lens _daAppId (\s a -> s { _daAppId = a })
101
daAppId :: Lens' DeleteApp Text daAppId = lens _daAppId (\s a -> s { _daAppId = a })
84
daAppId = lens _daAppId (\s a -> s { _daAppId = a })
52
true
true
0
9
22
40
22
18
null
null
Gurrt/software-testing
week-6/Lecture6.hs
mit
a_decode:: (Integer, Integer) -> Integer -> Integer rsa_decode = rsa_encode
79
rsa_decode:: (Integer, Integer) -> Integer -> Integer rsa_decode = rsa_encode
77
rsa_decode = rsa_encode
23
false
true
0
6
13
25
14
11
null
null
pseudonom/haskell-mechanism
src/Mechanism.hs
agpl-3.0
incentiveCompatible :: (Ord ty, Narrow con, Ord u) => Equilibrium out con ty ty u -> DirectGame out con ty u -> Bool incentiveCompatible eq gm = F.any (F.all isHonest) $ equilibria eq gm
226
incentiveCompatible :: (Ord ty, Narrow con, Ord u) => Equilibrium out con ty ty u -> DirectGame out con ty u -> Bool incentiveCompatible eq gm = F.any (F.all isHonest) $ equilibria eq gm
226
incentiveCompatible eq gm = F.any (F.all isHonest) $ equilibria eq gm
69
false
true
0
9
73
87
42
45
null
null
GaloisInc/halvm-ghc
compiler/deSugar/DsBinds.hs
bsd-3-clause
{-********************************************************************** * * Desugaring a MonoBinds * * *******************************************************************...
580
dsTopLHsBinds :: LHsBinds Id -> DsM (OrdList (Id,CoreExpr)) dsTopLHsBinds binds = fmap (toOL . snd) (ds_lhs_binds binds)
120
dsTopLHsBinds binds = fmap (toOL . snd) (ds_lhs_binds binds)
60
true
true
0
9
200
57
30
27
null
null
free2tedy/PP
Tema2PP/IOManager.hs
mit
wrapIO :: (Input -> Output -> Output) -> IO () wrapIO f = readInput >>= return . uncurry f >>= writeOutput
106
wrapIO :: (Input -> Output -> Output) -> IO () wrapIO f = readInput >>= return . uncurry f >>= writeOutput
106
wrapIO f = readInput >>= return . uncurry f >>= writeOutput
59
false
true
0
8
20
49
24
25
null
null
jkozlowski/kdb-haskell
src/Database/Kdb/Internal/IPC.hs
mit
qBytes v@(V (KCharV !x)) = putListHeader v <> fromWord8V (unsafeCoerce x)
79
qBytes v@(V (KCharV !x)) = putListHeader v <> fromWord8V (unsafeCoerce x)
79
qBytes v@(V (KCharV !x)) = putListHeader v <> fromWord8V (unsafeCoerce x)
79
false
false
1
11
16
45
20
25
null
null
mightymoose/liquidhaskell
benchmarks/llrbtree-0.1.1/Data/Set/Splay.hs
bsd-3-clause
deleteMin (Node x Leaf r) = (x,r)
47
deleteMin (Node x Leaf r) = (x,r)
47
deleteMin (Node x Leaf r) = (x,r)
47
false
false
0
7
20
25
13
12
null
null
tamaralipowski/courseography
hs/Css/Constants.hs
gpl-3.0
grey1 :: Color grey1 = parse "#222"
35
grey1 :: Color grey1 = parse "#222"
35
grey1 = parse "#222"
20
false
true
0
6
6
20
8
12
null
null
phischu/fragnix
builtins/base/Foreign.C.Error.hs
bsd-3-clause
eDEADLK = Errno (35)
28
eDEADLK = Errno (35)
28
eDEADLK = Errno (35)
28
false
false
0
6
11
12
6
6
null
null
nickbart1980/pandoc
src/Text/Pandoc/Writers/LaTeX.hs
gpl-2.0
blockToLaTeX (DefinitionList []) = return empty
47
blockToLaTeX (DefinitionList []) = return empty
47
blockToLaTeX (DefinitionList []) = return empty
47
false
false
0
8
5
20
9
11
null
null
SAdams601/HaRe
old/testing/introCase/SubPatternIn1_TokOut.hs
bsd-3-clause
f :: [Int] -> Int f x@[] = hd x + hd (tl x)
43
f :: [Int] -> Int f x@[] = hd x + hd (tl x)
43
f x@[] = hd x + hd (tl x)
25
false
true
5
7
13
45
22
23
null
null
jystic/language-scala
src/Language/Scala/Tokens.hs
bsd-3-clause
floatTokenValue t = error ("floatTokenValue: not a float token: " <> show t)
76
floatTokenValue t = error ("floatTokenValue: not a float token: " <> show t)
76
floatTokenValue t = error ("floatTokenValue: not a float token: " <> show t)
76
false
false
0
8
12
22
10
12
null
null
prasmussen/glot-www
Glot/Snippet.hs
mit
titleFromText :: Text -> Either Text Title titleFromText text = if length text < 1 then Left "field must contain at least one character" else if length text > 100 then Left "field must contain 100 characters or less" else Right (Title text)
278
titleFromText :: Text -> Either Text Title titleFromText text = if length text < 1 then Left "field must contain at least one character" else if length text > 100 then Left "field must contain 100 characters or less" else Right (Title text)
278
titleFromText text = if length text < 1 then Left "field must contain at least one character" else if length text > 100 then Left "field must contain 100 characters or less" else Right (Title text)
235
false
true
0
9
80
68
33
35
null
null
FranklinChen/hugs98-plus-Sep2006
packages/xhtml/Text/XHtml/Strict/Elements.hs
bsd-3-clause
thediv = tag "div"
32
thediv = tag "div"
32
thediv = tag "div"
32
false
false
0
5
17
9
4
5
null
null
GaloisInc/sk-dev-platform
libs/SCD/src/SCD/M4/Dependencies.hs
bsd-3-clause
callGraphStmt (NodeStmt _) = Set.empty
51
callGraphStmt (NodeStmt _) = Set.empty
51
callGraphStmt (NodeStmt _) = Set.empty
51
false
false
0
7
17
17
8
9
null
null
forsyde/forsyde-atom
src/ForSyDe/Atom/MoC/DE/Lib.hs
bsd-3-clause
delay :: (Num t, Ord t, Eq t) => t -- ^ time delay -> a -- ^ initial value -> SignalBase t a -- ^ input signal -> SignalBase t a -- ^ output signal delay t v = MoC.delay (unit (t, v))
222
delay :: (Num t, Ord t, Eq t) => t -- ^ time delay -> a -- ^ initial value -> SignalBase t a -- ^ input signal -> SignalBase t a delay t v = MoC.delay (unit (t, v))
200
delay t v = MoC.delay (unit (t, v))
35
true
true
0
10
82
84
43
41
null
null
abakst/liquidhaskell
src/Language/Haskell/Liquid/Transforms/ANF.hs
bsd-3-clause
normalize γ (Cast e τ) = do e' <- normalizeName γ e return $ Cast e' τ
82
normalize γ (Cast e τ) = do e' <- normalizeName γ e return $ Cast e' τ
82
normalize γ (Cast e τ) = do e' <- normalizeName γ e return $ Cast e' τ
82
false
false
0
8
28
43
19
24
null
null
brendanhay/gogol
gogol-dialogflow/gen/Network/Google/Resource/DialogFlow/Projects/Locations/Agents/List.hs
mpl-2.0
-- | The maximum number of items to return in a single page. By default 100 -- and at most 1000. plalPageSize :: Lens' ProjectsLocationsAgentsList (Maybe Int32) plalPageSize = lens _plalPageSize (\ s a -> s{_plalPageSize = a}) . mapping _Coerce
252
plalPageSize :: Lens' ProjectsLocationsAgentsList (Maybe Int32) plalPageSize = lens _plalPageSize (\ s a -> s{_plalPageSize = a}) . mapping _Coerce
155
plalPageSize = lens _plalPageSize (\ s a -> s{_plalPageSize = a}) . mapping _Coerce
91
true
true
0
10
48
56
29
27
null
null
rrnewton/accelerate
Data/Array/Accelerate/Trafo.hs
bsd-3-clause
convertSeqWith :: Typeable s => Phase -> Seq s -> DelayedSeq s convertSeqWith Phase{..} s = Fusion.convertSeq enableAccFusion $ Vectorise.vectoriseSeq `when` vectoriseSequences $ Rewrite.convertSegmentsSeq `when` convertOffsetOfSegment $ Sharing.convertSeq recoverAccSharing recoverExpSharing recoverSeqSharing f...
343
convertSeqWith :: Typeable s => Phase -> Seq s -> DelayedSeq s convertSeqWith Phase{..} s = Fusion.convertSeq enableAccFusion $ Vectorise.vectoriseSeq `when` vectoriseSequences $ Rewrite.convertSegmentsSeq `when` convertOffsetOfSegment $ Sharing.convertSeq recoverAccSharing recoverExpSharing recoverSeqSharing f...
343
convertSeqWith Phase{..} s = Fusion.convertSeq enableAccFusion $ Vectorise.vectoriseSeq `when` vectoriseSequences $ Rewrite.convertSegmentsSeq `when` convertOffsetOfSegment $ Sharing.convertSeq recoverAccSharing recoverExpSharing recoverSeqSharing floatOutAccFromExp $ s
280
false
true
8
8
43
96
45
51
null
null
folsen/anne-droid
src/Anne/Web.hs
mit
-- | This is the main spinner for out web application. It reads all the -- parameters that are fed into `SlackData` (by the use of the -- RecordWildCards language pragma) as well as the text from which we want -- to parse a command. We handle the resulting command and feed that into -- a response. The response is 200 i...
1,133
web :: WebConfig -> IO () web WebConfig {..} = scotty configPort $ do post "/" $ do teamId <- param "team_id" channelId <- param "channel_id" channelName <- param "channel_name" timestamp <- param "timestamp" userId <- param "user_id" userName <- param "user_name" triggerW...
699
web WebConfig {..} = scotty configPort $ do post "/" $ do teamId <- param "team_id" channelId <- param "channel_id" channelName <- param "channel_name" timestamp <- param "timestamp" userId <- param "user_id" userName <- param "user_name" triggerWord <- param "trigger_word...
673
true
true
0
18
277
228
104
124
null
null
garetxe/cabal
cabal-install/Distribution/Client/SetupWrapper.hs
bsd-3-clause
determineSetupMethod :: SetupScriptOptions -> BuildType -> SetupMethod determineSetupMethod options buildType' -- This order is picked so that it's stable. The build type and -- required cabal version are external info, coming from .cabal -- files and the command line. Those do switch between the -- ext...
1,089
determineSetupMethod :: SetupScriptOptions -> BuildType -> SetupMethod determineSetupMethod options buildType' -- This order is picked so that it's stable. The build type and -- required cabal version are external info, coming from .cabal -- files and the command line. Those do switch between the -- ext...
1,089
determineSetupMethod options buildType' -- This order is picked so that it's stable. The build type and -- required cabal version are external info, coming from .cabal -- files and the command line. Those do switch between the -- external and self & internal methods, but that info itself can -- be c...
1,018
false
true
1
12
244
126
66
60
null
null
expipiplus1/vulkan
src/Vulkan/Extensions/VK_KHR_synchronization2.hs
bsd-3-clause
-- No documentation found for TopLevel "vkCmdWriteTimestamp2KHR" cmdWriteTimestamp2KHR = cmdWriteTimestamp2
107
cmdWriteTimestamp2KHR = cmdWriteTimestamp2
42
cmdWriteTimestamp2KHR = cmdWriteTimestamp2
42
true
false
0
4
9
7
4
3
null
null
bergey/gooey
diagrams-minimal/src/Main.hs
bsd-3-clause
main :: IO () main = do Just doc <- currentDocument Just body <- getBody doc setInnerHTML body $ Just initialHtml ctx <- getContextById "dia" renderDia Canvas (CanvasOptions (dims2D 200 200) ctx) dia
209
main :: IO () main = do Just doc <- currentDocument Just body <- getBody doc setInnerHTML body $ Just initialHtml ctx <- getContextById "dia" renderDia Canvas (CanvasOptions (dims2D 200 200) ctx) dia
209
main = do Just doc <- currentDocument Just body <- getBody doc setInnerHTML body $ Just initialHtml ctx <- getContextById "dia" renderDia Canvas (CanvasOptions (dims2D 200 200) ctx) dia
195
false
true
1
12
42
92
38
54
null
null
elieux/ghc
compiler/nativeGen/PPC/Ppr.hs
bsd-3-clause
pprFFormat _ = panic "PPC.Ppr.pprFFormat: no match"
58
pprFFormat _ = panic "PPC.Ppr.pprFFormat: no match"
58
pprFFormat _ = panic "PPC.Ppr.pprFFormat: no match"
58
false
false
0
5
13
13
5
8
null
null
nushio3/ghc
compiler/prelude/TysWiredIn.hs
bsd-3-clause
{- ************************************************************************ * * The Bool type * * **********************************************************************...
1,810
boolTy :: Type boolTy = mkTyConTy boolTyCon
43
boolTy = mkTyConTy boolTyCon
28
true
true
0
6
467
21
9
12
null
null
hiratara/hs-rtb-bidder
src/Web/RTBBidder/Protocol/Adx/BidRequest/Video/VideoFormat.hs
bsd-3-clause
toMaybe'Enum 5 = Prelude'.Just AUDIO_MP3
40
toMaybe'Enum 5 = Prelude'.Just AUDIO_MP3
40
toMaybe'Enum 5 = Prelude'.Just AUDIO_MP3
40
false
false
0
6
4
14
6
8
null
null
yangsiwei880813/CS644
src/CodeConstruct.hs
gpl-2.0
genExprLhsAsm sd (ArrayAccess sym expr expri) = genExprAsm sd (FunctionCall sym [expr, expri])
94
genExprLhsAsm sd (ArrayAccess sym expr expri) = genExprAsm sd (FunctionCall sym [expr, expri])
94
genExprLhsAsm sd (ArrayAccess sym expr expri) = genExprAsm sd (FunctionCall sym [expr, expri])
94
false
false
0
8
12
40
20
20
null
null
faineance/hay
src/Vector.hs
mit
dot :: Vector -> Vector -> Double dot (Vector x y z) (Vector x' y' z') = (x * x') + (y * y') + (z * z')
103
dot :: Vector -> Vector -> Double dot (Vector x y z) (Vector x' y' z') = (x * x') + (y * y') + (z * z')
103
dot (Vector x y z) (Vector x' y' z') = (x * x') + (y * y') + (z * z')
69
false
true
0
10
27
79
39
40
null
null
harendra-kumar/asyncly
src/Streamly/Internal/Memory/Unicode/Array.hs
bsd-3-clause
lines :: (MonadIO m, IsStream t) => t m Char -> t m (Array Char) lines = S.lines A.write
88
lines :: (MonadIO m, IsStream t) => t m Char -> t m (Array Char) lines = S.lines A.write
88
lines = S.lines A.write
23
false
true
0
9
18
53
26
27
null
null
Paow/encore
src/ir/AST/Desugarer.hs
bsd-3-clause
desugar :: Expr -> Expr -- Unfold sequenced declarations into let-expressions desugar seq@Seq{eseq} = seq{eseq = expandMiniLets eseq}
134
desugar :: Expr -> Expr desugar seq@Seq{eseq} = seq{eseq = expandMiniLets eseq}
79
desugar seq@Seq{eseq} = seq{eseq = expandMiniLets eseq}
55
true
true
0
8
18
39
21
18
null
null
AccelerateHS/accelerate-cuda
Data/Array/Accelerate/CUDA/CodeGen.hs
bsd-3-clause
prj (SuccIdx ix) (Push val _) = prj ix val
42
prj (SuccIdx ix) (Push val _) = prj ix val
42
prj (SuccIdx ix) (Push val _) = prj ix val
42
false
false
0
7
9
30
14
16
null
null
yi-editor/yi
yi-core/src/Yi/Buffer/Indent.hs
gpl-2.0
indentAsPreviousB :: BufferM () indentAsPreviousB = indentAsNeighborLineB Backward
82
indentAsPreviousB :: BufferM () indentAsPreviousB = indentAsNeighborLineB Backward
82
indentAsPreviousB = indentAsNeighborLineB Backward
50
false
true
0
6
7
19
9
10
null
null
jstolarek/ghc
libraries/base/GHC/List.hs
bsd-3-clause
foldr2_left :: (a -> b -> c -> d) -> d -> a -> ([b] -> c) -> [b] -> d foldr2_left _k z _x _r [] = z
104
foldr2_left :: (a -> b -> c -> d) -> d -> a -> ([b] -> c) -> [b] -> d foldr2_left _k z _x _r [] = z
104
foldr2_left _k z _x _r [] = z
34
false
true
0
12
33
78
39
39
null
null
tchagnon/cs636-raytracer
a6/Math.hs
apache-2.0
mag4f :: Vec4f -> RealT mag4f v = sqrt (magSq4f v)
54
mag4f :: Vec4f -> RealT mag4f v = sqrt (magSq4f v)
54
mag4f v = sqrt (magSq4f v)
26
false
true
0
7
14
27
13
14
null
null
vbalalla/financial_contract_language
valuation.hs
mit
u5 = Contract "5" $ american (0 Month, 5 Months) (Scale (konst 100) $ One $ 1 USD)
83
u5 = Contract "5" $ american (0 Month, 5 Months) (Scale (konst 100) $ One $ 1 USD)
83
u5 = Contract "5" $ american (0 Month, 5 Months) (Scale (konst 100) $ One $ 1 USD)
83
false
false
1
12
18
56
25
31
null
null
jeden-universe/jeden-compiler
tools/alonzo/src/Phase3/Type.hs
mit
{-| Build the identity substitutions over the given set of variables. -} idSubst :: Set TVar -> Subst idSubst = Subst . M.fromAscList . map (\v -> (v,TyVar v)) . S.toAscList
173
idSubst :: Set TVar -> Subst idSubst = Subst . M.fromAscList . map (\v -> (v,TyVar v)) . S.toAscList
100
idSubst = Subst . M.fromAscList . map (\v -> (v,TyVar v)) . S.toAscList
71
true
true
0
11
30
55
29
26
null
null
litherum/cereal-conduit
Test/Main.hs
bsd-2-clause
putter :: Putter Char putter c = put x >> put (x + 1) where x = (fromIntegral $ (fromEnum c) - (fromEnum 'a') :: Word8)
121
putter :: Putter Char putter c = put x >> put (x + 1) where x = (fromIntegral $ (fromEnum c) - (fromEnum 'a') :: Word8)
121
putter c = put x >> put (x + 1) where x = (fromIntegral $ (fromEnum c) - (fromEnum 'a') :: Word8)
99
false
true
0
9
27
68
34
34
null
null
aretoky/egison2
hs-src/Language/Egison/Primitives.hs
mit
closePort _ = throwError $ Default $ "closePort: invalid arguments"
67
closePort _ = throwError $ Default $ "closePort: invalid arguments"
67
closePort _ = throwError $ Default $ "closePort: invalid arguments"
67
false
false
0
6
9
17
8
9
null
null
pmiddend/sneakyterm
src/System/Console/SneakyTerm/Rect.hs
gpl-3.0
-- | Rectangle from left top and right bottom rectFromPoints :: V2 a -> V2 a -> Rect a rectFromPoints = Rect
108
rectFromPoints :: V2 a -> V2 a -> Rect a rectFromPoints = Rect
62
rectFromPoints = Rect
21
true
true
0
7
21
29
14
15
null
null
bitemyapp/blpapi-hs
src/Finance/Blpapi/Session.hs
mit
-- | Similar to 'sendAuthorizationRequest' except that the messages are -- returned in specified 'MessageHandler'' sendAuthorizationRequest' :: Request -> Identity -> Maybe CorrelationId -> MessageHandler -> Blpapi (...
2,625
sendAuthorizationRequest' :: Request -> Identity -> Maybe CorrelationId -> MessageHandler -> Blpapi () sendAuthorizationRequest' r i cid h = do newCid <- createNewCorrelationIfNeeded cid addCidAndHandlerToMap new...
2,510
sendAuthorizationRequest' r i cid h = do newCid <- createNewCorrelationIfNeeded cid addCidAndHandlerToMap newCid h sendAuthorizationRequest r i (Just newCid) -- | Send the specified 'Request' and update the specified -- 'Identity' with the results asynchronously. If the optionally specified -- 'CorrelationId' is...
2,303
true
true
0
10
621
118
75
43
null
null
cocreature/leksah
src/IDE/Package.hs
gpl-2.0
packageRun :: PackageAction packageRun = ask >>= (interruptSaveAndRun . packageRun' True)
89
packageRun :: PackageAction packageRun = ask >>= (interruptSaveAndRun . packageRun' True)
89
packageRun = ask >>= (interruptSaveAndRun . packageRun' True)
61
false
true
0
8
10
25
13
12
null
null
bitemyapp/bloodhound
src/Database/Bloodhound/Internal/Highlight.hs
bsd-3-clause
postHighPairs (Just (PostingsHighlight pCom)) = ("type" .= String "postings") : commonHighlightPairs pCom
113
postHighPairs (Just (PostingsHighlight pCom)) = ("type" .= String "postings") : commonHighlightPairs pCom
113
postHighPairs (Just (PostingsHighlight pCom)) = ("type" .= String "postings") : commonHighlightPairs pCom
113
false
false
2
8
19
40
18
22
null
null
pparkkin/Hagl
Hagl/Strategy.hs
bsd-3-clause
-- | Selects the elements correspondings to all completed iterations. completedGames' :: GameM m g => m (ByGame a) -> m [a] completedGames' = liftM completedGames
162
completedGames' :: GameM m g => m (ByGame a) -> m [a] completedGames' = liftM completedGames
92
completedGames' = liftM completedGames
38
true
true
0
10
25
48
22
26
null
null
GaloisInc/halvm-ghc
compiler/simplCore/SetLevels.hs
bsd-3-clause
newLvlVar :: LevelledExpr -- The RHS of the new binding -> Bool -- Whether it is bottom -> LvlM Id newLvlVar lvld_rhs is_bot = do { uniq <- getUniqueM ; return (add_bot_info (mkLocalIdOrCoVar (mk_name uniq) rhs_ty)) } where add_bot_info var -- We could call anno...
666
newLvlVar :: LevelledExpr -- The RHS of the new binding -> Bool -- Whether it is bottom -> LvlM Id newLvlVar lvld_rhs is_bot = do { uniq <- getUniqueM ; return (add_bot_info (mkLocalIdOrCoVar (mk_name uniq) rhs_ty)) } where add_bot_info var -- We could call anno...
666
newLvlVar lvld_rhs is_bot = do { uniq <- getUniqueM ; return (add_bot_info (mkLocalIdOrCoVar (mk_name uniq) rhs_ty)) } where add_bot_info var -- We could call annotateBotStr always, but the is_bot -- flag just tells us when we don't need to do so | is_bot = annotateBotStr...
525
false
true
2
13
195
153
71
82
null
null
kmate/HaRe
old/testing/unfoldDef/D1_TokOut.hs
bsd-3-clause
sumSquares [] = 0
21
sumSquares [] = 0
21
sumSquares [] = 0
21
false
false
1
5
7
15
5
10
null
null
dan-t/layers
src/GameData/Data.hs
bsd-3-clause
atLastLevel :: Data -> Bool atLastLevel = GZ.atLast . levels
60
atLastLevel :: Data -> Bool atLastLevel = GZ.atLast . levels
60
atLastLevel = GZ.atLast . levels
32
false
true
0
6
9
21
11
10
null
null
stefanocerruti/haskell-primer-alpha
src/Playground27b.hs
bsd-3-clause
serverScore :: Maybe Int serverScore = Just 9001
48
serverScore :: Maybe Int serverScore = Just 9001
48
serverScore = Just 9001
23
false
true
0
6
7
23
9
14
null
null
vincenthz/language-c
src/Language/C/Analysis/AstAnalysis.hs
bsd-3-clause
tStmt _ (CGoto l ni) = do dt <- getDefTable case lookupLabel l dt of Just _ -> return voidType Nothing -> typeError ni $ "undefined label in goto: " ++ identToString l
200
tStmt _ (CGoto l ni) = do dt <- getDefTable case lookupLabel l dt of Just _ -> return voidType Nothing -> typeError ni $ "undefined label in goto: " ++ identToString l
200
tStmt _ (CGoto l ni) = do dt <- getDefTable case lookupLabel l dt of Just _ -> return voidType Nothing -> typeError ni $ "undefined label in goto: " ++ identToString l
200
false
false
0
12
65
70
31
39
null
null
olorin/amazonka
amazonka-ec2/gen/Network/AWS/EC2/Types/Product.hs
mpl-2.0
-- | Indicates whether this Elastic IP address is for use with instances in -- EC2-Classic ('standard') or instances in a VPC ('vpc'). aDomain :: Lens' Address (Maybe DomainType) aDomain = lens _aDomain (\ s a -> s{_aDomain = a})
229
aDomain :: Lens' Address (Maybe DomainType) aDomain = lens _aDomain (\ s a -> s{_aDomain = a})
94
aDomain = lens _aDomain (\ s a -> s{_aDomain = a})
50
true
true
0
9
39
47
26
21
null
null
keithodulaigh/Hets
Proofs/QualifyNames.hs
gpl-2.0
properEdge :: LEdge a -> Bool properEdge (x, y, _) = x /= y
59
properEdge :: LEdge a -> Bool properEdge (x, y, _) = x /= y
59
properEdge (x, y, _) = x /= y
29
false
true
2
8
13
42
20
22
null
null
dpwright/z80
src/Z80/Operations.hs
mit
rld, rrd :: Z80ASM rld = code [0xed, 0x6f]
42
rld, rrd :: Z80ASM rld = code [0xed, 0x6f]
42
rld = code [0xed, 0x6f]
23
false
true
2
6
8
32
14
18
null
null
joecrayne/cipher-cast5
Crypto/Cipher/SBox.hs
bsd-3-clause
(#) :: SBox -> Word8 -> Word32 v # i = v V.! (fromIntegral i )
62
(#) :: SBox -> Word8 -> Word32 v # i = v V.! (fromIntegral i )
62
v # i = v V.! (fromIntegral i )
31
false
true
0
7
15
39
20
19
null
null
AlexeyRaga/eta
compiler/ETA/Main/HscTypes.hs
bsd-3-clause
pprTargetId (TargetFile f _) = text f
37
pprTargetId (TargetFile f _) = text f
37
pprTargetId (TargetFile f _) = text f
37
false
false
0
7
6
20
9
11
null
null
spl/http-client-request-modifiers
test/Main.hs
bsd-3-clause
-------------------------------------------------------------------------------- tests :: TestTree tests = testGroup "tests" [ setUri_tests , setUriRelative_tests , setQueryBS_tests , setQuery_tests , addQuery_tests , addQueryPair_tests , setMethodBS_tests , setMethod_tests , setHeaders_tests , set...
482
tests :: TestTree tests = testGroup "tests" [ setUri_tests , setUriRelative_tests , setQueryBS_tests , setQuery_tests , addQuery_tests , addQueryPair_tests , setMethodBS_tests , setMethod_tests , setHeaders_tests , setHeader_tests , addHeader_tests , setContentTypeHeader_tests , setAcceptHeade...
400
tests = testGroup "tests" [ setUri_tests , setUriRelative_tests , setQueryBS_tests , setQuery_tests , addQuery_tests , addQueryPair_tests , setMethodBS_tests , setMethod_tests , setHeaders_tests , setHeader_tests , addHeader_tests , setContentTypeHeader_tests , setAcceptHeader_tests , setBod...
382
true
true
0
5
75
66
41
25
null
null
nushio3/ghc
compiler/main/ErrUtils.hs
bsd-3-clause
getInvalids :: [Validity] -> [MsgDoc] getInvalids vs = [d | NotValid d <- vs]
77
getInvalids :: [Validity] -> [MsgDoc] getInvalids vs = [d | NotValid d <- vs]
77
getInvalids vs = [d | NotValid d <- vs]
39
false
true
0
8
13
38
20
18
null
null
ml9951/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
sYSTEM_IO = mkBaseModule (fsLit "System.IO")
50
sYSTEM_IO = mkBaseModule (fsLit "System.IO")
50
sYSTEM_IO = mkBaseModule (fsLit "System.IO")
50
false
false
0
7
10
15
7
8
null
null
kawamuray/ganeti
src/Ganeti/Constants.hs
gpl-2.0
-- * Confd request query fields confdReqqLink :: String confdReqqLink = ConstantUtils.confdReqqLink
100
confdReqqLink :: String confdReqqLink = ConstantUtils.confdReqqLink
67
confdReqqLink = ConstantUtils.confdReqqLink
43
true
true
0
5
12
14
8
6
null
null
pminten/xhaskell
go-counting/example.hs
mit
territoryFor :: [[Char]] -> Coord -> Maybe (Set Coord, Maybe Color) territoryFor ls c = let b = buildBoard ls s = groupContaining b c o = groupOwner b s in if Set.null s then Nothing else Just (s, o)
239
territoryFor :: [[Char]] -> Coord -> Maybe (Set Coord, Maybe Color) territoryFor ls c = let b = buildBoard ls s = groupContaining b c o = groupOwner b s in if Set.null s then Nothing else Just (s, o)
239
territoryFor ls c = let b = buildBoard ls s = groupContaining b c o = groupOwner b s in if Set.null s then Nothing else Just (s, o)
171
false
true
0
9
79
101
51
50
null
null
ulricha/dsh-sql
src/Database/DSH/Backend/Sql/MultisetAlgebra/Lang.hs
bsd-3-clause
lit :: VL.PType -> S.Seq VL.TExpr -> Build MA AlgNode lit ty vs = insert (NullaryOp (Lit (ty, vs)))
99
lit :: VL.PType -> S.Seq VL.TExpr -> Build MA AlgNode lit ty vs = insert (NullaryOp (Lit (ty, vs)))
99
lit ty vs = insert (NullaryOp (Lit (ty, vs)))
45
false
true
0
9
18
63
30
33
null
null
h4ck3rm1k3/gcc-ontology
tests/test_haskell1_a.hs
gpl-3.0
--import FakeAst f x = parseOK(Module ( SrcSpanInfo {srcInfoSpan = SrcSpan "test_haskell1.hs" 1 1 6 1, srcInfoPoints = [SrcSpan "test_haskell1.hs" 1 1 1 1,SrcSpan "test_haskell1.hs" 1 1 1 1,SrcSpan "test_haskell1.hs" 1 1 1 1,SrcSpan "test_haskell1.hs" 2 1 2 1,SrcSpan "test_haskell1.hs" 3 1 3 1,SrcSpan "test_has...
6,264
f x = parseOK(Module ( SrcSpanInfo {srcInfoSpan = SrcSpan "test_haskell1.hs" 1 1 6 1, srcInfoPoints = [SrcSpan "test_haskell1.hs" 1 1 1 1,SrcSpan "test_haskell1.hs" 1 1 1 1,SrcSpan "test_haskell1.hs" 1 1 1 1,SrcSpan "test_haskell1.hs" 2 1 2 1,SrcSpan "test_haskell1.hs" 3 1 3 1,SrcSpan "test_haskell1.hs" 5 1 5 1...
6,247
f x = parseOK(Module ( SrcSpanInfo {srcInfoSpan = SrcSpan "test_haskell1.hs" 1 1 6 1, srcInfoPoints = [SrcSpan "test_haskell1.hs" 1 1 1 1,SrcSpan "test_haskell1.hs" 1 1 1 1,SrcSpan "test_haskell1.hs" 1 1 1 1,SrcSpan "test_haskell1.hs" 2 1 2 1,SrcSpan "test_haskell1.hs" 3 1 3 1,SrcSpan "test_haskell1.hs" 5 1 5 1...
6,247
true
false
1
25
1,290
2,302
1,255
1,047
null
null
siddhanathan/ghc
compiler/main/DynFlags.hs
bsd-3-clause
allFlags :: [String] allFlags = [ '-':flagName flag | flag <- flagsAll , ok (flagOptKind flag) ] where ok (PrefixPred _ _) = False ok _ = True {- - Below we export user facing symbols for GHC dynamic flags for use with the - GHC API. -} -- All dynamic flags present in GHC.
312
allFlags :: [String] allFlags = [ '-':flagName flag | flag <- flagsAll , ok (flagOptKind flag) ] where ok (PrefixPred _ _) = False ok _ = True {- - Below we export user facing symbols for GHC dynamic flags for use with the - GHC API. -} -- All dynamic flags present in GHC.
312
allFlags = [ '-':flagName flag | flag <- flagsAll , ok (flagOptKind flag) ] where ok (PrefixPred _ _) = False ok _ = True {- - Below we export user facing symbols for GHC dynamic flags for use with the - GHC API. -} -- All dynamic flags present in GHC.
291
false
true
0
9
93
81
39
42
null
null
mariefarrell/Hets
OMDoc/XmlInterface.hs
gpl-2.0
readCD :: Show a => a -> String -> OMCD readCD _ s = case splitBy '?' s of [b, cd] -> cdFromList [b, cd] _ -> error $ "readCD: The value " ++ "has to contain exactly one '?'"
232
readCD :: Show a => a -> String -> OMCD readCD _ s = case splitBy '?' s of [b, cd] -> cdFromList [b, cd] _ -> error $ "readCD: The value " ++ "has to contain exactly one '?'"
232
readCD _ s = case splitBy '?' s of [b, cd] -> cdFromList [b, cd] _ -> error $ "readCD: The value " ++ "has to contain exactly one '?'"
192
false
true
0
9
97
81
39
42
null
null
jhnesk/project-euler
src/Utils.hs
unlicense
digitSum :: Integral n => n -> n digitSum = sum . digits 10
59
digitSum :: Integral n => n -> n digitSum = sum . digits 10
59
digitSum = sum . digits 10
26
false
true
0
6
13
29
14
15
null
null
clample/lamdabtc
backend/src/Protocol/Network.hs
bsd-3-clause
putAddr :: Addr -> Put putAddr (Addr (a, b, c, d) port) = do putServices Put.putByteString ipAddressMagicStr Put.putWord8 . fromIntegral $ a Put.putWord8 . fromIntegral $ b Put.putWord8 . fromIntegral $ c Put.putWord8 . fromIntegral $ d Put.putWord16be . fromIntegral $ port where ipAddressMagicStr =...
362
putAddr :: Addr -> Put putAddr (Addr (a, b, c, d) port) = do putServices Put.putByteString ipAddressMagicStr Put.putWord8 . fromIntegral $ a Put.putWord8 . fromIntegral $ b Put.putWord8 . fromIntegral $ c Put.putWord8 . fromIntegral $ d Put.putWord16be . fromIntegral $ port where ipAddressMagicStr =...
362
putAddr (Addr (a, b, c, d) port) = do putServices Put.putByteString ipAddressMagicStr Put.putWord8 . fromIntegral $ a Put.putWord8 . fromIntegral $ b Put.putWord8 . fromIntegral $ c Put.putWord8 . fromIntegral $ d Put.putWord16be . fromIntegral $ port where ipAddressMagicStr = fst . decode $ "000000...
339
false
true
2
10
69
139
64
75
null
null
eklavya/Idris-dev
src/Idris/REPL.hs
bsd-3-clause
runIdeModeCommand h id orig fn modes (IdeMode.TermNormalise bnd tm) = do ctxt <- getContext ist <- getIState let tm' = normaliseAll ctxt [] tm ptm = annotate (AnnTerm bnd tm') (pprintPTerm (ppOptionIst ist) bnd [] ...
621
runIdeModeCommand h id orig fn modes (IdeMode.TermNormalise bnd tm) = do ctxt <- getContext ist <- getIState let tm' = normaliseAll ctxt [] tm ptm = annotate (AnnTerm bnd tm') (pprintPTerm (ppOptionIst ist) bnd [] ...
621
runIdeModeCommand h id orig fn modes (IdeMode.TermNormalise bnd tm) = do ctxt <- getContext ist <- getIState let tm' = normaliseAll ctxt [] tm ptm = annotate (AnnTerm bnd tm') (pprintPTerm (ppOptionIst ist) bnd [] ...
621
false
false
0
15
274
182
87
95
null
null
GaloisInc/ivory
ivory-backend-c/src/Ivory/Compile/C/Gen.hs
bsd-3-clause
-------------------------------------------------------------------------------- -- | Get prototypes for memory areas. extractAreaProto :: Visibility -> I.Area -> Compile extractAreaProto visibility area = do let aty = toType (I.areaType area) ty | I.areaConst area = [cty| const $ty:aty |] ...
613
extractAreaProto :: Visibility -> I.Area -> Compile extractAreaProto visibility area = do let aty = toType (I.areaType area) ty | I.areaConst area = [cty| const $ty:aty |] | otherwise = aty if visibility == Public then putHdrSrc [cedecl| extern $ty:ty $id:(I.areaSym area)...
494
extractAreaProto visibility area = do let aty = toType (I.areaType area) ty | I.areaConst area = [cty| const $ty:aty |] | otherwise = aty if visibility == Public then putHdrSrc [cedecl| extern $ty:ty $id:(I.areaSym area); |] else putSrc [cedecl| static $ty:ty $id:(...
442
true
true
0
14
134
108
59
49
null
null
githubhector/haskport
Main.hs
gpl-2.0
-- | Maps command names to their command functions cmdMap :: [(String, CmdProcessor)] cmdMap = [ ("help", helpCmd), ("quit", quitCmd), ("echo", echoCmd), ("info", infoCmd), ("activity", activityCmd) ]
224
cmdMap :: [(String, CmdProcessor)] cmdMap = [ ("help", helpCmd), ("quit", quitCmd), ("echo", echoCmd), ("info", infoCmd), ("activity", activityCmd) ]
173
cmdMap = [ ("help", helpCmd), ("quit", quitCmd), ("echo", echoCmd), ("info", infoCmd), ("activity", activityCmd) ]
138
true
true
0
6
50
66
43
23
null
null
tdammers/ginger
src/Text/Ginger/Parse.hs
mit
scriptIncludeP :: Monad m => Parser m (Statement SourcePos) scriptIncludeP = do try $ keyword "include" spacesOrComment char '(' sourceName <- stringLiteralP spacesOrComment char ')' spacesOrComment char ';' spacesOrComment include sourceName
282
scriptIncludeP :: Monad m => Parser m (Statement SourcePos) scriptIncludeP = do try $ keyword "include" spacesOrComment char '(' sourceName <- stringLiteralP spacesOrComment char ')' spacesOrComment char ';' spacesOrComment include sourceName
282
scriptIncludeP = do try $ keyword "include" spacesOrComment char '(' sourceName <- stringLiteralP spacesOrComment char ')' spacesOrComment char ';' spacesOrComment include sourceName
222
false
true
0
8
70
82
33
49
null
null
eXeDK/dpt908e14
KMeans/KMeansHaskell.hs
mit
parseArgs _ = putStrLn "usage: KMeansHaskell number-of-threads\ \ number-of-centroids dataset-filepath" >> exitFailure
122
parseArgs _ = putStrLn "usage: KMeansHaskell number-of-threads\ \ number-of-centroids dataset-filepath" >> exitFailure
122
parseArgs _ = putStrLn "usage: KMeansHaskell number-of-threads\ \ number-of-centroids dataset-filepath" >> exitFailure
122
false
false
0
6
15
16
7
9
null
null
ulricha/algebra-sql
src/Database/Algebra/SQL/Tile.hs
bsd-3-clause
translateAVal :: A.AVal -> Q.Value translateAVal v = case v of A.VInt i -> Q.VInteger i A.VStr s -> Q.VText s A.VBool b -> Q.VBoolean b A.VDouble d -> Q.VDoublePrecision d A.VDec d -> Q.VDecimal d A.VDate d -> Q.VDate $ A.unDate d
285
translateAVal :: A.AVal -> Q.Value translateAVal v = case v of A.VInt i -> Q.VInteger i A.VStr s -> Q.VText s A.VBool b -> Q.VBoolean b A.VDouble d -> Q.VDoublePrecision d A.VDec d -> Q.VDecimal d A.VDate d -> Q.VDate $ A.unDate d
285
translateAVal v = case v of A.VInt i -> Q.VInteger i A.VStr s -> Q.VText s A.VBool b -> Q.VBoolean b A.VDouble d -> Q.VDoublePrecision d A.VDec d -> Q.VDecimal d A.VDate d -> Q.VDate $ A.unDate d
250
false
true
7
6
97
112
56
56
null
null
griba2001/tree23-map-set
test/TestSortedSet.hs
bsd-3-clause
propSortedAfterDeletes :: [Int] -> Bool propSortedAfterDeletes xs = compare (S.toList tr2) orderedSeq == EQ where tr1 = S.insertAll xs S.empty xs' = L.nub xs ys = L.drop (length xs' `div` 2) xs' orderedSeq = L.sort (xs' L.\\ ys) tr2...
341
propSortedAfterDeletes :: [Int] -> Bool propSortedAfterDeletes xs = compare (S.toList tr2) orderedSeq == EQ where tr1 = S.insertAll xs S.empty xs' = L.nub xs ys = L.drop (length xs' `div` 2) xs' orderedSeq = L.sort (xs' L.\\ ys) tr2...
341
propSortedAfterDeletes xs = compare (S.toList tr2) orderedSeq == EQ where tr1 = S.insertAll xs S.empty xs' = L.nub xs ys = L.drop (length xs' `div` 2) xs' orderedSeq = L.sort (xs' L.\\ ys) tr2 = S.deleteAll ys tr1
301
false
true
0
10
130
119
61
58
null
null
mcmaniac/ghc
compiler/llvmGen/Llvm/Types.hs
bsd-3-clause
pVarLower (LMLocalVar s t ) = LMLocalVar s (pLower t)
62
pVarLower (LMLocalVar s t ) = LMLocalVar s (pLower t)
62
pVarLower (LMLocalVar s t ) = LMLocalVar s (pLower t)
62
false
false
0
7
18
28
13
15
null
null
NicolasDP/maild
Network/SMTP/Auth.hs
bsd-3-clause
-- | auth to a server clientAuth :: AuthType -> BC.ByteString -> UserName -> Password -> BC.ByteString clientAuth PLAIN _ u p = clientPlain u p
190
clientAuth :: AuthType -> BC.ByteString -> UserName -> Password -> BC.ByteString clientAuth PLAIN _ u p = clientPlain u p
168
clientAuth PLAIN _ u p = clientPlain u p
43
true
true
0
9
72
46
23
23
null
null
ArekCzarnik/Uthenga
src/Handlers/Subscriber.hs
bsd-3-clause
parseSubscriber :: ActionT Text IO (Maybe Subscriber) parseSubscriber = do b <- body return (decode b :: Maybe Subscriber)
126
parseSubscriber :: ActionT Text IO (Maybe Subscriber) parseSubscriber = do b <- body return (decode b :: Maybe Subscriber)
126
parseSubscriber = do b <- body return (decode b :: Maybe Subscriber)
72
false
true
0
9
22
49
23
26
null
null
d3zd3z/harchive
src/System/Backup/Pool/FileIndex.hs
gpl-2.0
emptyPackedIndex :: PackedIndex emptyPackedIndex = PackedIndex { piTop = U.listArray (0, 255) $ replicate 256 0, piHashes = Hashes B.empty, piOffsets = Offsets $ U.listArray (0, -1) [], piKinds = Kinds B.empty }
223
emptyPackedIndex :: PackedIndex emptyPackedIndex = PackedIndex { piTop = U.listArray (0, 255) $ replicate 256 0, piHashes = Hashes B.empty, piOffsets = Offsets $ U.listArray (0, -1) [], piKinds = Kinds B.empty }
223
emptyPackedIndex = PackedIndex { piTop = U.listArray (0, 255) $ replicate 256 0, piHashes = Hashes B.empty, piOffsets = Offsets $ U.listArray (0, -1) [], piKinds = Kinds B.empty }
191
false
true
0
10
44
88
48
40
null
null
necrobious/hS3
Network/AWS/Authentication.hs
bsd-3-clause
-- | Extract resource name, as required for signing. canonicalizeResource :: S3Action -> String canonicalizeResource a = bucket ++ uri ++ subresource where uri = '/' : s3object a bucket = case (s3bucket a) of b@(_:_) -> '/' : map toLower b otherwise -> "" ...
633
canonicalizeResource :: S3Action -> String canonicalizeResource a = bucket ++ uri ++ subresource where uri = '/' : s3object a bucket = case (s3bucket a) of b@(_:_) -> '/' : map toLower b otherwise -> "" subresource = case (subresource_match) of ...
580
canonicalizeResource a = bucket ++ uri ++ subresource where uri = '/' : s3object a bucket = case (s3bucket a) of b@(_:_) -> '/' : map toLower b otherwise -> "" subresource = case (subresource_match) of [] -> "" ...
537
true
true
0
12
237
162
87
75
null
null
christiaanb/clash
clash/CLasH/VHDL/VHDLTools.hs
bsd-3-clause
mkTyconTy :: HType -> TypeSession TypeMapRec mkTyconTy htype = case htype of (AggrType name enum_field_maybe fieldss) -> do let (labelss, elem_htypess) = unzip (map unzip fieldss) elemTyMaybess <- mapM (mapM vhdlTyMaybe) elem_htypess let elem_tyss = map Maybe.catMaybes elemTyMaybess case c...
3,323
mkTyconTy :: HType -> TypeSession TypeMapRec mkTyconTy htype = case htype of (AggrType name enum_field_maybe fieldss) -> do let (labelss, elem_htypess) = unzip (map unzip fieldss) elemTyMaybess <- mapM (mapM vhdlTyMaybe) elem_htypess let elem_tyss = map Maybe.catMaybes elemTyMaybess case c...
3,323
mkTyconTy htype = case htype of (AggrType name enum_field_maybe fieldss) -> do let (labelss, elem_htypess) = unzip (map unzip fieldss) elemTyMaybess <- mapM (mapM vhdlTyMaybe) elem_htypess let elem_tyss = map Maybe.catMaybes elemTyMaybess case concat elem_tyss of [] -> -- No non-em...
3,278
false
true
3
24
968
808
386
422
null
null
wavewave/lhc-analysis-collection
exe/2013-07-03-XQLD.hs
gpl-3.0
massset_2sg = mesh
18
massset_2sg = mesh
18
massset_2sg = mesh
18
false
false
0
4
2
6
3
3
null
null
chrisdone/ace
test/Main.hs
bsd-3-clause
complVs = do it "complVPI" (parsed complV "<pintrans-verb> <pparticle>" == Right (ComplVPI (PhrasalIntransitiveV "<pintrans-verb>") (PhrasalParticle "<pparticle>"))) it "complVIV" (parsed complV "<intrans-verb>" == Right (ComplVIV (IntransitiveV "<intran...
1,964
complVs = do it "complVPI" (parsed complV "<pintrans-verb> <pparticle>" == Right (ComplVPI (PhrasalIntransitiveV "<pintrans-verb>") (PhrasalParticle "<pparticle>"))) it "complVIV" (parsed complV "<intrans-verb>" == Right (ComplVIV (IntransitiveV "<intran...
1,964
complVs = do it "complVPI" (parsed complV "<pintrans-verb> <pparticle>" == Right (ComplVPI (PhrasalIntransitiveV "<pintrans-verb>") (PhrasalParticle "<pparticle>"))) it "complVIV" (parsed complV "<intrans-verb>" == Right (ComplVIV (IntransitiveV "<intran...
1,964
false
false
1
21
705
455
215
240
null
null
seckcoder/lang-learn
haskell/lambda-calculus/src/Eval1.hs
unlicense
panic :: (MonadTrans t) => String -> t (Either String) a panic = lift . Left
76
panic :: (MonadTrans t) => String -> t (Either String) a panic = lift . Left
76
panic = lift . Left
19
false
true
1
10
15
46
21
25
null
null
emwap/feldspar-compiler
lib/Feldspar/Compiler/ExternalProgram.hs
bsd-3-clause
compileFile' :: Options -> (String, B.ByteString) -> (String, B.ByteString) -> (Maybe CompiledModule, Maybe CompiledModule) compileFile' opts (hfilename, hfile) (cfilename, cfile) = case parseFile hfilename hfile [] of Nothing -> (Nothing, Nothing) Just hprg -> case parseFile cfilename cfile (enti...
980
compileFile' :: Options -> (String, B.ByteString) -> (String, B.ByteString) -> (Maybe CompiledModule, Maybe CompiledModule) compileFile' opts (hfilename, hfile) (cfilename, cfile) = case parseFile hfilename hfile [] of Nothing -> (Nothing, Nothing) Just hprg -> case parseFile cfilename cfile (enti...
980
compileFile' opts (hfilename, hfile) (cfilename, cfile) = case parseFile hfilename hfile [] of Nothing -> (Nothing, Nothing) Just hprg -> case parseFile cfilename cfile (entities hprg) of Nothing -> (Just hres, Nothing) Just cprg -> (Just hres', Just cres) ...
844
false
true
0
13
332
211
110
101
null
null
madebyjeffrey/HerbiePlugin
test/Tests.hs
bsd-3-clause
herbie9 :: Float -> Float herbie9 x1 = go 4 x1 where go :: Float -> Float -> Float go 0 b = b go a b = go (a-1) (sqrt (b-1)) -- Herbie should not get run on any of the functions in this section. #define f2(a,b) a+b*(a+b*a)+a*b
256
herbie9 :: Float -> Float herbie9 x1 = go 4 x1 where go :: Float -> Float -> Float go 0 b = b go a b = go (a-1) (sqrt (b-1)) -- Herbie should not get run on any of the functions in this section. #define f2(a,b) a+b*(a+b*a)+a*b
256
herbie9 x1 = go 4 x1 where go :: Float -> Float -> Float go 0 b = b go a b = go (a-1) (sqrt (b-1)) -- Herbie should not get run on any of the functions in this section. #define f2(a,b) a+b*(a+b*a)+a*b
230
false
true
4
9
78
86
44
42
null
null
josuf107/Adverb
Adverb/Common.hs
gpl-3.0
probingly = id
14
probingly = id
14
probingly = id
14
false
false
0
4
2
6
3
3
null
null