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
brendanhay/gogol
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Product.hs
mpl-2.0
-- | Information about the party that created the label. mlDeprecatedMarketplaceDealParty :: Lens' MarketplaceLabel (Maybe MarketplaceDealParty) mlDeprecatedMarketplaceDealParty = lens _mlDeprecatedMarketplaceDealParty (\ s a -> s{_mlDeprecatedMarketplaceDealParty = a})
278
mlDeprecatedMarketplaceDealParty :: Lens' MarketplaceLabel (Maybe MarketplaceDealParty) mlDeprecatedMarketplaceDealParty = lens _mlDeprecatedMarketplaceDealParty (\ s a -> s{_mlDeprecatedMarketplaceDealParty = a})
221
mlDeprecatedMarketplaceDealParty = lens _mlDeprecatedMarketplaceDealParty (\ s a -> s{_mlDeprecatedMarketplaceDealParty = a})
133
true
true
0
8
34
49
25
24
null
null
BioHaskell/hRosetta
Rosetta/Fragments.hs
bsd-3-clause
groupFragments (f:fs) [] = groupFragments fs [f]
84
groupFragments (f:fs) [] = groupFragments fs [f]
84
groupFragments (f:fs) [] = groupFragments fs [f]
84
false
false
0
6
42
30
14
16
null
null
MaartenFaddegon/libgraph
Data/Graph/Libgraph/Cycles.hs
bsd-3-clause
getCycleNest :: (Show vertex, Ord vertex) => Graph vertex arc -> CycleNest vertex getCycleNest g = execState (analyse . reverse $ [1..n s0]) s0 where s0 = state0 g -- Part c of Havlak's algorithm
198
getCycleNest :: (Show vertex, Ord vertex) => Graph vertex arc -> CycleNest vertex getCycleNest g = execState (analyse . reverse $ [1..n s0]) s0 where s0 = state0 g -- Part c of Havlak's algorithm
198
getCycleNest g = execState (analyse . reverse $ [1..n s0]) s0 where s0 = state0 g -- Part c of Havlak's algorithm
116
false
true
0
9
37
77
38
39
null
null
bkoropoff/Idris-dev
src/Idris/Error.hs
bsd-3-clause
warnDisamb ist (PUnifyLog tm) = warnDisamb ist tm
49
warnDisamb ist (PUnifyLog tm) = warnDisamb ist tm
49
warnDisamb ist (PUnifyLog tm) = warnDisamb ist tm
49
false
false
0
7
7
22
10
12
null
null
deadfoxygrandpa/Elm
tests/hs/Tests/Compiler.hs
bsd-3-clause
mkCompileTest :: ((Either String String) -> Assertion) -- ^ Handler -> String -- ^ File Contents -> Assertion mkCompileTest handle = handle . Elm.compile
187
mkCompileTest :: ((Either String String) -> Assertion) -- ^ Handler -> String -- ^ File Contents -> Assertion mkCompileTest handle = handle . Elm.compile
187
mkCompileTest handle = handle . Elm.compile
43
false
true
0
10
57
51
25
26
null
null
nevrenato/HetsAlloy
CommonLogic/Parse_CLIF.hs
gpl-2.0
term_fun_cmt :: CharParser st TERM term_fun_cmt = parens (do ck <- try clCommentKey c <- (quotedstring <|> enclosedname) <?> "comment after \"cl-comment\"" t <- term <?> "term after \"cl-comment <comment>\"" return $ Comment_term t (Comment c $ Range $ rangeSpan c) $ Range $ joinRanges [range...
709
term_fun_cmt :: CharParser st TERM term_fun_cmt = parens (do ck <- try clCommentKey c <- (quotedstring <|> enclosedname) <?> "comment after \"cl-comment\"" t <- term <?> "term after \"cl-comment <comment>\"" return $ Comment_term t (Comment c $ Range $ rangeSpan c) $ Range $ joinRanges [range...
709
term_fun_cmt = parens (do ck <- try clCommentKey c <- (quotedstring <|> enclosedname) <?> "comment after \"cl-comment\"" t <- term <?> "term after \"cl-comment <comment>\"" return $ Comment_term t (Comment c $ Range $ rangeSpan c) $ Range $ joinRanges [rangeSpan ck, rangeSpan c, rangeSpan t] ...
674
false
true
0
19
179
275
125
150
null
null
mrakgr/futhark
src/Language/Futhark/Attributes.hs
bsd-3-clause
intValueType Int64Value{} = Int64
33
intValueType Int64Value{} = Int64
33
intValueType Int64Value{} = Int64
33
false
false
0
6
3
13
6
7
null
null
osa1/psc-lua
src/Language/PureScript/CodeGen/Lua.hs
mit
generateBinderStats bname (BooleanBinder False) rest = return [L.If [(L.Unop L.Not $ var bname, L.Block rest Nothing)] Nothing]
131
generateBinderStats bname (BooleanBinder False) rest = return [L.If [(L.Unop L.Not $ var bname, L.Block rest Nothing)] Nothing]
131
generateBinderStats bname (BooleanBinder False) rest = return [L.If [(L.Unop L.Not $ var bname, L.Block rest Nothing)] Nothing]
131
false
false
0
12
20
62
30
32
null
null
ben-schulz/Idris-dev
src/Idris/Reflection.hs
bsd-3-clause
-- | Idris tuples nest to the right rawTripleTy :: Raw -> Raw -> Raw -> Raw rawTripleTy a b c = rawPairTy a (rawPairTy b c)
123
rawTripleTy :: Raw -> Raw -> Raw -> Raw rawTripleTy a b c = rawPairTy a (rawPairTy b c)
87
rawTripleTy a b c = rawPairTy a (rawPairTy b c)
47
true
true
0
7
26
44
22
22
null
null
alexander-b/master-fun
src/virtualtennis/ScoreKeeper.hs
gpl-3.0
realScore :: Score -> Int -- | 'realScore' gets the effective score of a 'Score'. The 'Score's of -- a 'ScoreKeeper' are floating point numbers for the sake of adding and -- deducting points, but the effective score of a player is an integer. realScore s = floor s :: Int
272
realScore :: Score -> Int realScore s = floor s :: Int
55
realScore s = floor s :: Int
28
true
true
0
5
51
27
15
12
null
null
rueshyna/gogol
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Product.hs
mpl-2.0
-- | Creates a value of 'GetPublisherProFilesByAccountIdResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'gppfbairProFiles' getPublisherProFilesByAccountIdResponse :: GetPublisherProFilesByAccountIdResponse getPublisherPro...
431
getPublisherProFilesByAccountIdResponse :: GetPublisherProFilesByAccountIdResponse getPublisherProFilesByAccountIdResponse = GetPublisherProFilesByAccountIdResponse' { _gppfbairProFiles = Nothing }
213
getPublisherProFilesByAccountIdResponse = GetPublisherProFilesByAccountIdResponse' { _gppfbairProFiles = Nothing }
126
true
true
1
6
60
30
17
13
null
null
haasn/colour
Data/Colour/Names.hs
mit
readColourName "paleturquoise" = return paleturquoise
53
readColourName "paleturquoise" = return paleturquoise
53
readColourName "paleturquoise" = return paleturquoise
53
false
false
0
5
4
13
5
8
null
null
exercism/xhaskell
exercises/practice/binary-search-tree/.meta/examples/success-standard/src/BST.hs
mit
bstValue (Node _ v _) = Just v
30
bstValue (Node _ v _) = Just v
30
bstValue (Node _ v _) = Just v
30
false
false
0
6
7
23
10
13
null
null
dat2/haskell-scheme
src/Parser.hs
mit
spaces :: Parser () spaces = skipMany1 space
44
spaces :: Parser () spaces = skipMany1 space
44
spaces = skipMany1 space
24
false
true
0
6
7
19
9
10
null
null
ghc-android/ghc
testsuite/tests/ghci/should_run/ghcirun004.hs
bsd-3-clause
113 = 112
9
113 = 112
9
113 = 112
9
false
false
1
5
2
10
3
7
null
null
urbanslug/ghc
compiler/cmm/CmmType.hs
bsd-3-clause
widthInBits W128 = 128
22
widthInBits W128 = 128
22
widthInBits W128 = 128
22
false
false
0
5
3
9
4
5
null
null
fehu/h-logic-einstein
src/LogicProblem/Lang/Impl.hs
mit
rKCond :: (AccessibleEntry e a, AccessibleEntry e b, AccessibleEntry e v) => a -> b -> (Maybe v -> Maybe v -> Bool) -> Bool -> RuleContainer e rKCond a b f flip' = boxExpression $ RuleKnownCond1 (RuleKnown a b) (RuleCondition1 f) flip'
240
rKCond :: (AccessibleEntry e a, AccessibleEntry e b, AccessibleEntry e v) => a -> b -> (Maybe v -> Maybe v -> Bool) -> Bool -> RuleContainer e rKCond a b f flip' = boxExpression $ RuleKnownCond1 (RuleKnown a b) (RuleCondition1 f) flip'
239
rKCond a b f flip' = boxExpression $ RuleKnownCond1 (RuleKnown a b) (RuleCondition1 f) flip'
92
false
true
0
13
47
112
54
58
null
null
google/codeworld
codeworld-requirements/src/CodeWorld/Requirements/Checker/Types.hs
apache-2.0
getStage (MatchesRegex {}) = Source
35
getStage (MatchesRegex {}) = Source
35
getStage (MatchesRegex {}) = Source
35
false
false
0
6
4
17
8
9
null
null
Gabriel439/Haskell-Annah-Library
src/Annah/Parser.hs
bsd-3-clause
{-| Parse a type definition from `Text` or return a `ParseError` if parsing fails -} typesFromText :: Text -> Either ParseError [Type] typesFromText = runParser (fmap snd expr)
180
typesFromText :: Text -> Either ParseError [Type] typesFromText = runParser (fmap snd expr)
91
typesFromText = runParser (fmap snd expr)
41
true
true
0
8
31
40
19
21
null
null
edgarklerks/document-indexer
Init.hs
bsd-2-clause
deleteQuery :: Query Map () deleteQuery = query XDelete "documents"
67
deleteQuery :: Query Map () deleteQuery = query XDelete "documents"
67
deleteQuery = query XDelete "documents"
39
false
true
0
6
9
23
11
12
null
null
julienschmaltz/madl
src/Parser/MadlTypeChecker.hs
mit
typecheckProcessContent :: Context -> ProcessContext -> WithSourceInfo ProcessContent -> Checked (WithSourceInfo ProcessContent) typecheckProcessContent context pcontext content = fmap (flip setSourceInfo content) $ case removeSourceInfo content of InitialState state -> fmap InitialState (typecheckProcessState cont...
711
typecheckProcessContent :: Context -> ProcessContext -> WithSourceInfo ProcessContent -> Checked (WithSourceInfo ProcessContent) typecheckProcessContent context pcontext content = fmap (flip setSourceInfo content) $ case removeSourceInfo content of InitialState state -> fmap InitialState (typecheckProcessState cont...
711
typecheckProcessContent context pcontext content = fmap (flip setSourceInfo content) $ case removeSourceInfo content of InitialState state -> fmap InitialState (typecheckProcessState context pcontext (setSourceInfo state content) <* checkNoParams) where checkNoParams = case params of [] -> Right...
582
false
true
0
15
129
189
89
100
null
null
eklavya/Idris-dev
src/Idris/Reflection.hs
bsd-3-clause
reifyTTApp t [t', Constant (I i)] | t == reflm "Proj" = do t'' <- reifyTT t' return $ Proj t'' i
143
reifyTTApp t [t', Constant (I i)] | t == reflm "Proj" = do t'' <- reifyTT t' return $ Proj t'' i
143
reifyTTApp t [t', Constant (I i)] | t == reflm "Proj" = do t'' <- reifyTT t' return $ Proj t'' i
143
false
false
0
9
68
61
27
34
null
null
dysinger/amazonka
amazonka-datapipeline/gen/Network/AWS/DataPipeline/SetStatus.hs
mpl-2.0
-- | Identifies an array of objects. The corresponding objects can be either -- physical or components, but not a mix of both types. ssObjectIds :: Lens' SetStatus [Text] ssObjectIds = lens _ssObjectIds (\s a -> s { _ssObjectIds = a }) . _List
243
ssObjectIds :: Lens' SetStatus [Text] ssObjectIds = lens _ssObjectIds (\s a -> s { _ssObjectIds = a }) . _List
110
ssObjectIds = lens _ssObjectIds (\s a -> s { _ssObjectIds = a }) . _List
72
true
true
1
10
43
54
27
27
null
null
harendra-kumar/stack
src/main/Main.hs
bsd-3-clause
updateCmd :: () -> GlobalOpts -> IO () updateCmd () go = withConfigAndLock go $ getMinimalEnvOverride >>= Stack.PackageIndex.updateAllIndices
145
updateCmd :: () -> GlobalOpts -> IO () updateCmd () go = withConfigAndLock go $ getMinimalEnvOverride >>= Stack.PackageIndex.updateAllIndices
145
updateCmd () go = withConfigAndLock go $ getMinimalEnvOverride >>= Stack.PackageIndex.updateAllIndices
106
false
true
0
9
21
52
24
28
null
null
ArturB/Multilinear
src/Multilinear/Generic.hs
gpl-3.0
sequentialToGPU (Sequential.FiniteTensor i ts) = GPU.FiniteTensor i $ Boxed.map sequentialToGPU ts
98
sequentialToGPU (Sequential.FiniteTensor i ts) = GPU.FiniteTensor i $ Boxed.map sequentialToGPU ts
98
sequentialToGPU (Sequential.FiniteTensor i ts) = GPU.FiniteTensor i $ Boxed.map sequentialToGPU ts
98
false
false
0
8
10
35
16
19
null
null
startling/partly
System/Disk/Partitions/MBR/Gen.hs
bsd-3-clause
genBootloader :: Gen B.ByteString genBootloader = B.pack <$> vectorOf 446 arbitrary
83
genBootloader :: Gen B.ByteString genBootloader = B.pack <$> vectorOf 446 arbitrary
83
genBootloader = B.pack <$> vectorOf 446 arbitrary
49
false
true
0
6
10
27
13
14
null
null
flocc-net/flocc
v0.1/Compiler/Types/TypeAssignment.hs
apache-2.0
makeTupleOffsetFunType :: Int -> Int -> TyScheme makeTupleOffsetFunType sz off = Scheme [1..sz] (fun (tup inTypes) (Var off)) where inTypes = map Var [1..sz] -- |tupleOffsetFunctionTypes are the type schemes of all the -- |tuple accessor functions
251
makeTupleOffsetFunType :: Int -> Int -> TyScheme makeTupleOffsetFunType sz off = Scheme [1..sz] (fun (tup inTypes) (Var off)) where inTypes = map Var [1..sz] -- |tupleOffsetFunctionTypes are the type schemes of all the -- |tuple accessor functions
251
makeTupleOffsetFunType sz off = Scheme [1..sz] (fun (tup inTypes) (Var off)) where inTypes = map Var [1..sz] -- |tupleOffsetFunctionTypes are the type schemes of all the -- |tuple accessor functions
202
false
true
0
9
40
74
38
36
null
null
brendanhay/gogol
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/List.hs
mpl-2.0
-- | The maximum number of results per page that should be returned. If the -- number of available results is larger than \`maxResults\`, Compute -- Engine returns a \`nextPageToken\` that can be used to get the next page -- of results in subsequent list requests. Acceptable values are \`0\` to -- \`500\`, inclusive. (...
479
iglMaxResults :: Lens' InstanceGroupsList Word32 iglMaxResults = lens _iglMaxResults (\ s a -> s{_iglMaxResults = a}) . _Coerce
141
iglMaxResults = lens _iglMaxResults (\ s a -> s{_iglMaxResults = a}) . _Coerce
92
true
true
0
10
87
50
28
22
null
null
dougmvieira/MTSParser
MTS/Types.hs
apache-2.0
bidPrice :: Proposal -> Price bidPrice = pBidPrice
50
bidPrice :: Proposal -> Price bidPrice = pBidPrice
50
bidPrice = pBidPrice
20
false
true
0
5
7
15
8
7
null
null
asmyczek/hreviewboard
Tests/TestsWithServer.hs
bsd-3-clause
-- Test repositoryList repositoryListAction :: RBAction () repositoryListAction = do setErrorHandler error r <- repositoryList >>= return . assertOkStatus assertTrue "Repository list empty" ((length . R.repositories $ r) > 0) return () -- ---------------------------------------------------------------...
368
repositoryListAction :: RBAction () repositoryListAction = do setErrorHandler error r <- repositoryList >>= return . assertOkStatus assertTrue "Repository list empty" ((length . R.repositories $ r) > 0) return () -- --------------------------------------------------------------------------- -- User AP...
345
repositoryListAction = do setErrorHandler error r <- repositoryList >>= return . assertOkStatus assertTrue "Repository list empty" ((length . R.repositories $ r) > 0) return () -- --------------------------------------------------------------------------- -- User API tests -- Test userList
309
true
true
1
14
59
81
38
43
null
null
acamino/state-codes
src/Data/StateCodes/ISO31662US.hs
mit
toName TN = "Tennessee"
23
toName TN = "Tennessee"
23
toName TN = "Tennessee"
23
false
false
0
5
3
9
4
5
null
null
ku-fpg/ecc-ldpc
src/Data/Sparse/Matrix.hs
bsd-3-clause
sparseMatrix :: Num a => Int -> Int -> [(Int, [Int])] -> ((Int, Int) -> a) -> SparseM a sparseMatrix numRows numCols indices f = {-# SCC "sparseMatrix" #-} SparseM $ V.fromList (map go indices) where go (c, rs) = map (\r -> (r, f (r, c))) rs
250
sparseMatrix :: Num a => Int -> Int -> [(Int, [Int])] -> ((Int, Int) -> a) -> SparseM a sparseMatrix numRows numCols indices f = {-# SCC "sparseMatrix" #-} SparseM $ V.fromList (map go indices) where go (c, rs) = map (\r -> (r, f (r, c))) rs
250
sparseMatrix numRows numCols indices f = {-# SCC "sparseMatrix" #-} SparseM $ V.fromList (map go indices) where go (c, rs) = map (\r -> (r, f (r, c))) rs
162
false
true
2
13
56
141
73
68
null
null
eronde/Dotfiles
xmonad/xmonad.hs
mit
myWorkspaceIndices = M.fromList $ zipWith (,) myWorkspaces [1..]
64
myWorkspaceIndices = M.fromList $ zipWith (,) myWorkspaces [1..]
64
myWorkspaceIndices = M.fromList $ zipWith (,) myWorkspaces [1..]
64
false
false
0
7
7
25
13
12
null
null
brendanhay/gogol
gogol-replicapool/gen/Network/Google/ReplicaPool/Types/Product.hs
mpl-2.0
-- | [Output Only] Human-readable details about the current state of the -- replica rsDetails :: Lens' ReplicaStatus (Maybe Text) rsDetails = lens _rsDetails (\ s a -> s{_rsDetails = a})
188
rsDetails :: Lens' ReplicaStatus (Maybe Text) rsDetails = lens _rsDetails (\ s a -> s{_rsDetails = a})
104
rsDetails = lens _rsDetails (\ s a -> s{_rsDetails = a})
58
true
true
0
9
32
49
26
23
null
null
ctford/Idris-Elba-dev
src/Idris/REPL.hs
bsd-3-clause
process h fn (SetOpt _) = iPrintError "Not a valid option"
58
process h fn (SetOpt _) = iPrintError "Not a valid option"
58
process h fn (SetOpt _) = iPrintError "Not a valid option"
58
false
false
0
7
10
22
10
12
null
null
charlesrosenbauer/Bzo-Compiler
src/BzoParserRules.hs
gpl-3.0
parserIter fname tokens ((BzS_Token _ (TkNewline p1)) :(BzS_Token _ (TkStartDo p0)):stk) = parserIter fname tokens ((BzS_Token p0 (TkStartDo p0)):stk)
189
parserIter fname tokens ((BzS_Token _ (TkNewline p1)) :(BzS_Token _ (TkStartDo p0)):stk) = parserIter fname tokens ((BzS_Token p0 (TkStartDo p0)):stk)
189
parserIter fname tokens ((BzS_Token _ (TkNewline p1)) :(BzS_Token _ (TkStartDo p0)):stk) = parserIter fname tokens ((BzS_Token p0 (TkStartDo p0)):stk)
189
false
false
0
12
57
80
40
40
null
null
DavidAlphaFox/ghc
libraries/containers/Data/Map/Base.hs
bsd-3-clause
{-------------------------------------------------------------------- List variations --------------------------------------------------------------------} -- | /O(n)/. -- Return all elements of the map in the ascending order of their keys. -- Subject to list fusion. -- -- > elems (fromList [(5,"a"), (3,"b")]) == ["b...
395
elems :: Map k a -> [a] elems = foldr (:) []
44
elems = foldr (:) []
20
true
true
0
8
55
47
25
22
null
null
kim/amazonka
amazonka-lambda/gen/Network/AWS/Lambda/UpdateFunctionCode.hs
mpl-2.0
-- | The runtime environment for the Lambda function. ufcrRuntime :: Lens' UpdateFunctionCodeResponse (Maybe Runtime) ufcrRuntime = lens _ufcrRuntime (\s a -> s { _ufcrRuntime = a })
182
ufcrRuntime :: Lens' UpdateFunctionCodeResponse (Maybe Runtime) ufcrRuntime = lens _ufcrRuntime (\s a -> s { _ufcrRuntime = a })
128
ufcrRuntime = lens _ufcrRuntime (\s a -> s { _ufcrRuntime = a })
64
true
true
0
9
27
46
25
21
null
null
danr/hipspec
testsuite/prod/zeno_version/PropT48.hs
gpl-3.0
fac :: Nat -> Nat fac Z = S Z
29
fac :: Nat -> Nat fac Z = S Z
29
fac Z = S Z
11
false
true
0
7
9
27
11
16
null
null
cabrera/ghc-mod
Language/Haskell/GhcMod/Monad.hs
bsd-3-clause
getCompilerMode :: IOish m => GhcModT m CompilerMode getCompilerMode = gmCompilerMode <$> gmsGet
96
getCompilerMode :: IOish m => GhcModT m CompilerMode getCompilerMode = gmCompilerMode <$> gmsGet
96
getCompilerMode = gmCompilerMode <$> gmsGet
43
false
true
0
6
12
27
13
14
null
null
bitemyapp/blpapi-hs
examples/SimpleSubscriptionExample.hs
mit
getSubscriptionList :: [Subscription] getSubscriptionList = [Subscription (TopicString "IBM US Equity" ["BID", "ASK"]) Nothing Nothing]
137
getSubscriptionList :: [Subscription] getSubscriptionList = [Subscription (TopicString "IBM US Equity" ["BID", "ASK"]) Nothing Nothing]
137
getSubscriptionList = [Subscription (TopicString "IBM US Equity" ["BID", "ASK"]) Nothing Nothing]
99
false
true
0
10
15
45
22
23
null
null
rueshyna/gogol
gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types/Product.hs
mpl-2.0
-- | The display name of the user. varDisplayName :: Lens' VerifyAssertionResponse (Maybe Text) varDisplayName = lens _varDisplayName (\ s a -> s{_varDisplayName = a})
175
varDisplayName :: Lens' VerifyAssertionResponse (Maybe Text) varDisplayName = lens _varDisplayName (\ s a -> s{_varDisplayName = a})
140
varDisplayName = lens _varDisplayName (\ s a -> s{_varDisplayName = a})
79
true
true
1
9
32
52
25
27
null
null
gnn/hsgsom
Data/Datamining/Clustering/Gsom/node.hs
bsd-3-clause
-- | Calculates the neighbourhood of the given size of the given node. -- A neighbourhood size of @0@ means that only the given node will be -- an element of the returned set while a size of one will return the -- given node and it's immediate neighbours and so on. -- It's not very efficient so you shouldn't try big ne...
538
neighbourhood :: Node -> Int -> STM Neighbourhood neighbourhood Leaf _ = error "in neighbhourhood: neighbourhood shouldn't be called on leaves."
146
neighbourhood Leaf _ = error "in neighbhourhood: neighbourhood shouldn't be called on leaves."
96
true
true
0
7
93
42
21
21
null
null
DavidAlphaFox/ghc
libraries/haskeline/System/Console/Haskeline/Vi.hs
bsd-3-clause
killAndStoreI :: MonadIO m => KillHelper -> Command (ViT m) (ArgMode CommandMode) InsertMode killAndStoreI = storedIAction . killFromArgHelper
142
killAndStoreI :: MonadIO m => KillHelper -> Command (ViT m) (ArgMode CommandMode) InsertMode killAndStoreI = storedIAction . killFromArgHelper
142
killAndStoreI = storedIAction . killFromArgHelper
49
false
true
0
10
17
51
23
28
null
null
brownplt/strobe-old
src/BrownPLT/TypedJS/TypeTheory.hs
bsd-2-clause
isTObject :: Type -> Bool isTObject (TObject{}) = True
54
isTObject :: Type -> Bool isTObject (TObject{}) = True
54
isTObject (TObject{}) = True
28
false
true
0
7
8
25
13
12
null
null
vTurbine/ghc
compiler/basicTypes/BasicTypes.hs
bsd-3-clause
fIRST_TAG :: ConTag -- ^ Tags are allocated from here for real constructors -- or for superclass selectors fIRST_TAG = 1
123
fIRST_TAG :: ConTag fIRST_TAG = 1
34
fIRST_TAG = 1
14
true
true
0
4
23
13
8
5
null
null
SimSaladin/hajong
hajong-site/GameServer.hs
mit
getRegisteredUser, getNewAnonUser :: Text -> Handler (Either Text (Int, G.ClientRecord)) getRegisteredUser user = do acid <- getAcid token <- liftIO G.randomToken liftIO $ acid `update` G.RegisterLoggedInPlayer user token
233
getRegisteredUser, getNewAnonUser :: Text -> Handler (Either Text (Int, G.ClientRecord)) getRegisteredUser user = do acid <- getAcid token <- liftIO G.randomToken liftIO $ acid `update` G.RegisterLoggedInPlayer user token
233
getRegisteredUser user = do acid <- getAcid token <- liftIO G.randomToken liftIO $ acid `update` G.RegisterLoggedInPlayer user token
144
false
true
0
10
39
78
39
39
null
null
gallais/dailyprogrammer
intermediate/011/Main.hs
mit
rotate :: [Int] -> [Maybe Int] rotate = reverse . fmap (flip lookup helper) where helper :: [(Int,Int)] helper = [ (0, 0), (1, 1), (2, 2), (5, 5) , (6, 9), (8, 8), (9, 6)]
186
rotate :: [Int] -> [Maybe Int] rotate = reverse . fmap (flip lookup helper) where helper :: [(Int,Int)] helper = [ (0, 0), (1, 1), (2, 2), (5, 5) , (6, 9), (8, 8), (9, 6)]
186
rotate = reverse . fmap (flip lookup helper) where helper :: [(Int,Int)] helper = [ (0, 0), (1, 1), (2, 2), (5, 5) , (6, 9), (8, 8), (9, 6)]
155
false
true
0
9
50
130
76
54
null
null
amirci/aoc2016-hs
src/Day5.hs
bsd-3-clause
toMd5 = show . md5 . B.pack
27
toMd5 = show . md5 . B.pack
27
toMd5 = show . md5 . B.pack
27
false
false
0
6
6
16
8
8
null
null
DavidAlphaFox/darcs
src/Darcs/Repository/Format.hs
gpl-2.0
identifyRepoFormat :: String -> IO RepoFormat identifyRepoFormat = either fail return <=< tryIdentifyRepoFormat
111
identifyRepoFormat :: String -> IO RepoFormat identifyRepoFormat = either fail return <=< tryIdentifyRepoFormat
111
identifyRepoFormat = either fail return <=< tryIdentifyRepoFormat
65
false
true
0
7
12
33
14
19
null
null
lynnard/reflex-cocos2d
src/Reflex/Cocos2d/Misc/Chipmunk.hs
mit
collisionMask :: (MonadIO m, ShapePtr a s) => Attrib' s m Word64 collisionMask = liftStateVar $ H.collisionMask . toShape
121
collisionMask :: (MonadIO m, ShapePtr a s) => Attrib' s m Word64 collisionMask = liftStateVar $ H.collisionMask . toShape
121
collisionMask = liftStateVar $ H.collisionMask . toShape
56
false
true
0
7
18
45
23
22
null
null
nevrenato/HetsAlloy
Comorphisms/QVTR2CASL.hs
gpl-2.0
getStringObjects (f : restF) = case sentence f of Sort_gen_ax [Constraint _ listObj _] _ -> Set.union (getObjNamesFromOp listObj) (getStringObjects restF) _ -> getStringObjects restF
197
getStringObjects (f : restF) = case sentence f of Sort_gen_ax [Constraint _ listObj _] _ -> Set.union (getObjNamesFromOp listObj) (getStringObjects restF) _ -> getStringObjects restF
197
getStringObjects (f : restF) = case sentence f of Sort_gen_ax [Constraint _ listObj _] _ -> Set.union (getObjNamesFromOp listObj) (getStringObjects restF) _ -> getStringObjects restF
197
false
false
3
7
39
72
35
37
null
null
AlexanderPankiv/ghc
compiler/deSugar/Check.hs
bsd-3-clause
is_var_lit :: HsLit -> Pat Id -> Bool is_var_lit _ (WildPat _) = True
73
is_var_lit :: HsLit -> Pat Id -> Bool is_var_lit _ (WildPat _) = True
73
is_var_lit _ (WildPat _) = True
35
false
true
0
10
17
39
17
22
null
null
cmh/boggle
boggleMain.hs
bsd-3-clause
_PROGRAM_VERSION = "0.1"
24
_PROGRAM_VERSION = "0.1"
24
_PROGRAM_VERSION = "0.1"
24
false
false
1
5
2
10
3
7
null
null
dkandalov/katas
haskell/p99/src/p9x/p00/P00.hs
unlicense
-- P12 decode :: [(Int, a)] -> [a] decode [] = []
49
decode :: [(Int, a)] -> [a] decode [] = []
42
decode [] = []
14
true
true
0
7
11
35
20
15
null
null
fffej/haskellprojects
newton/Orbit.hs
bsd-2-clause
magnitude :: Vec a -> Double magnitude (Vec x y) = sqrt (x*x + y*y)
67
magnitude :: Vec a -> Double magnitude (Vec x y) = sqrt (x*x + y*y)
67
magnitude (Vec x y) = sqrt (x*x + y*y)
38
false
true
0
9
14
52
24
28
null
null
Concomitant/LambdaHack
Game/LambdaHack/Common/ActorState.hs
bsd-3-clause
getCarriedAssocs :: Actor -> State -> [(ItemId, Item)] getCarriedAssocs b s = bagAssocs s $ EM.unionsWith const [binv b, beqp b, borgan b]
140
getCarriedAssocs :: Actor -> State -> [(ItemId, Item)] getCarriedAssocs b s = bagAssocs s $ EM.unionsWith const [binv b, beqp b, borgan b]
140
getCarriedAssocs b s = bagAssocs s $ EM.unionsWith const [binv b, beqp b, borgan b]
85
false
true
0
8
24
65
33
32
null
null
expipiplus1/vulkan
src/Vulkan/Core10/Enums/BufferViewCreateFlags.hs
bsd-3-clause
showTableBufferViewCreateFlags :: [(BufferViewCreateFlags, String)] showTableBufferViewCreateFlags = []
103
showTableBufferViewCreateFlags :: [(BufferViewCreateFlags, String)] showTableBufferViewCreateFlags = []
103
showTableBufferViewCreateFlags = []
35
false
true
0
6
6
22
13
9
null
null
beni55/language-c-inline
tests/objc/app/AppDelegate.hs
bsd-3-clause
-- Haskell code used from Objective-C. launchMsg :: String launchMsg = "HSApp did finish launching!"
101
launchMsg :: String launchMsg = "HSApp did finish launching!"
61
launchMsg = "HSApp did finish launching!"
41
true
true
0
4
15
12
7
5
null
null
owestphal/LootLanguage
src/Category.hs
bsd-3-clause
-- two different PrimCats always overlap satisfiable :: Ord a => [(Ordering, a)] -> [a] -> Bool satisfiable = check or and
123
satisfiable :: Ord a => [(Ordering, a)] -> [a] -> Bool satisfiable = check or and
81
satisfiable = check or and
26
true
true
0
8
22
44
24
20
null
null
arthurmgo/regex-ftc
app/Main.hs
bsd-3-clause
main :: IO () main = menu []
28
main :: IO () main = menu []
28
main = menu []
14
false
true
0
6
7
21
10
11
null
null
ezyang/ghc
compiler/prelude/THNames.hs
bsd-3-clause
infixPName = libFun (fsLit "infixP") infixPIdKey
48
infixPName = libFun (fsLit "infixP") infixPIdKey
48
infixPName = libFun (fsLit "infixP") infixPIdKey
48
false
false
0
7
5
17
8
9
null
null
micknelso/language-c
src/Language/CFamily/C/Analysis/TypeCheck.hs
bsd-3-clause
compositeSize s1 (UnknownArraySize _) = return s1
49
compositeSize s1 (UnknownArraySize _) = return s1
49
compositeSize s1 (UnknownArraySize _) = return s1
49
false
false
0
7
6
20
9
11
null
null
dagit/mattermost-api
src/Network/Mattermost/WebSocket/Types.hs
bsd-3-clause
nullable :: Alternative f => f a -> f (Maybe a) nullable p = (Just <$> p) <|> pure Nothing
90
nullable :: Alternative f => f a -> f (Maybe a) nullable p = (Just <$> p) <|> pure Nothing
90
nullable p = (Just <$> p) <|> pure Nothing
42
false
true
3
10
19
58
27
31
null
null
meiersi/blaze-builder
Blaze/ByteString/Builder/Html/Utf8.hs
bsd-3-clause
-- | /O(n)/. Serialize a HTML escaped Unicode 'TL.Text' using the UTF-8 encoding. -- fromHtmlEscapedLazyText :: TL.Text -> Builder fromHtmlEscapedLazyText = fromHtmlEscapedString . TL.unpack
190
fromHtmlEscapedLazyText :: TL.Text -> Builder fromHtmlEscapedLazyText = fromHtmlEscapedString . TL.unpack
105
fromHtmlEscapedLazyText = fromHtmlEscapedString . TL.unpack
59
true
true
0
7
23
32
15
17
null
null
scslab/iterIO
Examples/httpsEcho.hs
bsd-3-clause
echoFilePage :: Html echoFilePage = page t $ toHtml [ h1 << t , form ! [ action "/echo-file", method "POST", enctype (S.unpack multipart) ] << [ paragraph << "Please select a file to echo. The server will send it right back to you." , afile "input" , submit "what" "Echo" ] ] where t = ...
333
echoFilePage :: Html echoFilePage = page t $ toHtml [ h1 << t , form ! [ action "/echo-file", method "POST", enctype (S.unpack multipart) ] << [ paragraph << "Please select a file to echo. The server will send it right back to you." , afile "input" , submit "what" "Echo" ] ] where t = ...
333
echoFilePage = page t $ toHtml [ h1 << t , form ! [ action "/echo-file", method "POST", enctype (S.unpack multipart) ] << [ paragraph << "Please select a file to echo. The server will send it right back to you." , afile "input" , submit "what" "Echo" ] ] where t = "Echo a file"
312
false
true
0
12
92
94
48
46
null
null
DavidAlphaFox/darcs
src/Darcs/Repository/Prefs.hs
gpl-2.0
getCaches :: UseCache -> String -> IO Cache getCaches useCache repodir = do here <- parsehs `fmap` getPreffile sourcesFile there <- (parsehs . lines . BC.unpack) `fmap` (gzFetchFilePS (repodir </> sourcesFile) Cachable `catchall` return B.empty) oldGlobalcachedir <- o...
1,893
getCaches :: UseCache -> String -> IO Cache getCaches useCache repodir = do here <- parsehs `fmap` getPreffile sourcesFile there <- (parsehs . lines . BC.unpack) `fmap` (gzFetchFilePS (repodir </> sourcesFile) Cachable `catchall` return B.empty) oldGlobalcachedir <- o...
1,893
getCaches useCache repodir = do here <- parsehs `fmap` getPreffile sourcesFile there <- (parsehs . lines . BC.unpack) `fmap` (gzFetchFilePS (repodir </> sourcesFile) Cachable `catchall` return B.empty) oldGlobalcachedir <- oldGlobalCacheDir globalcachedir <- globa...
1,849
false
true
3
16
664
551
266
285
null
null
jsnajder/hofm
test/hofm-de.hs
bsd-3-clause
t1 = pfx "ge" & rifx "i" "a" & dsfx "en" :: TransfDefault
57
t1 = pfx "ge" & rifx "i" "a" & dsfx "en" :: TransfDefault
57
t1 = pfx "ge" & rifx "i" "a" & dsfx "en" :: TransfDefault
57
false
false
0
7
12
28
13
15
null
null
TomMD/irc-core
src/Irc/Message.hs
bsd-3-clause
defaultIrcMessage :: IrcMessage defaultIrcMessage = IrcMessage { _mesgType = PrivMsgType "" , _mesgSender = UserInfo "" Nothing Nothing , _mesgStamp = posixSecondsToUTCTime 0 , _mesgMe = False , _mesgModes = "" , _mesgStatus = "" }
245
defaultIrcMessage :: IrcMessage defaultIrcMessage = IrcMessage { _mesgType = PrivMsgType "" , _mesgSender = UserInfo "" Nothing Nothing , _mesgStamp = posixSecondsToUTCTime 0 , _mesgMe = False , _mesgModes = "" , _mesgStatus = "" }
245
defaultIrcMessage = IrcMessage { _mesgType = PrivMsgType "" , _mesgSender = UserInfo "" Nothing Nothing , _mesgStamp = posixSecondsToUTCTime 0 , _mesgMe = False , _mesgModes = "" , _mesgStatus = "" }
213
false
true
0
8
49
66
37
29
null
null
ezyang/ghc
libraries/template-haskell/Language/Haskell/TH/Lib/Internal.hs
bsd-3-clause
notStrict = bang noSourceUnpackedness noSourceStrictness
56
notStrict = bang noSourceUnpackedness noSourceStrictness
56
notStrict = bang noSourceUnpackedness noSourceStrictness
56
false
false
0
5
4
11
5
6
null
null
beni55/texmath
src/Text/TeXMath/Readers/TeX.hs
gpl-2.0
tilde :: Char -> String tilde 'A' = "Ã"
39
tilde :: Char -> String tilde 'A' = "Ã"
39
tilde 'A' = "Ã"
15
false
true
0
7
8
24
10
14
null
null
supermario/stack
src/Stack/Types/Docker.hs
bsd-3-clause
-- | Docker repo arg argument name. dockerRepoArgName :: Text dockerRepoArgName = "repo"
88
dockerRepoArgName :: Text dockerRepoArgName = "repo"
52
dockerRepoArgName = "repo"
26
true
true
0
4
12
12
7
5
null
null
jpotecki/LogicTableauChecker
test/ProverTest.hs
bsd-3-clause
runRobinsTests :: [(Bool, Bool)] runRobinsTests = map (\(fmla, expected) -> (satisfiable' fmla, expected)) robinsInput
118
runRobinsTests :: [(Bool, Bool)] runRobinsTests = map (\(fmla, expected) -> (satisfiable' fmla, expected)) robinsInput
118
runRobinsTests = map (\(fmla, expected) -> (satisfiable' fmla, expected)) robinsInput
85
false
true
0
9
13
48
28
20
null
null
rahulmutt/ghcvm
compiler/Eta/TypeCheck/TcType.hs
bsd-3-clause
isFloatedTouchableMetaTyVar :: TcLevel -> TcTyVar -> Bool isFloatedTouchableMetaTyVar ctxt_tclvl tv = ASSERT2( isTcTyVar tv, ppr tv ) case tcTyVarDetails tv of MetaTv { mtv_tclvl = tv_tclvl } -> tv_tclvl `strictlyDeeperThan` ctxt_tclvl _ -> False
264
isFloatedTouchableMetaTyVar :: TcLevel -> TcTyVar -> Bool isFloatedTouchableMetaTyVar ctxt_tclvl tv = ASSERT2( isTcTyVar tv, ppr tv ) case tcTyVarDetails tv of MetaTv { mtv_tclvl = tv_tclvl } -> tv_tclvl `strictlyDeeperThan` ctxt_tclvl _ -> False
264
isFloatedTouchableMetaTyVar ctxt_tclvl tv = ASSERT2( isTcTyVar tv, ppr tv ) case tcTyVarDetails tv of MetaTv { mtv_tclvl = tv_tclvl } -> tv_tclvl `strictlyDeeperThan` ctxt_tclvl _ -> False
206
false
true
0
10
51
76
38
38
null
null
blanu/arbre-go
Arbre/OldNative.hs
gpl-2.0
arbre_if params = typeError params
34
arbre_if params = typeError params
34
arbre_if params = typeError params
34
false
false
1
5
4
15
5
10
null
null
guoy34/ampersand
src/Database/Design/Ampersand/Input/ADL1/Parser.hs
gpl-3.0
pRelationNew :: AmpParser (String,P_Sign,Props) pRelationNew = (,,) <$ pKey "RELATION" <*> pVarid <*> pSign <*> return []
182
pRelationNew :: AmpParser (String,P_Sign,Props) pRelationNew = (,,) <$ pKey "RELATION" <*> pVarid <*> pSign <*> return []
182
pRelationNew = (,,) <$ pKey "RELATION" <*> pVarid <*> pSign <*> return []
134
false
true
0
9
77
51
27
24
null
null
cartazio/omega
src/NarrowData.hs
bsd-3-clause
inject (ConN (NStar n) []) = Star n
35
inject (ConN (NStar n) []) = Star n
35
inject (ConN (NStar n) []) = Star n
35
false
false
0
9
7
28
13
15
null
null
nadavshemer/buildsome
src/Lib/List.hs
gpl-2.0
unprefixed :: Eq a => [a] -> [a] -> Maybe [a] unprefixed prefix full | prefix `isPrefixOf` full = Just $ drop (length prefix) full | otherwise = Nothing
156
unprefixed :: Eq a => [a] -> [a] -> Maybe [a] unprefixed prefix full | prefix `isPrefixOf` full = Just $ drop (length prefix) full | otherwise = Nothing
156
unprefixed prefix full | prefix `isPrefixOf` full = Just $ drop (length prefix) full | otherwise = Nothing
110
false
true
1
9
32
78
39
39
null
null
technogeeky/d-A
include/base-4.5.0.0/Data/Either.hs
gpl-3.0
-- | Partitions a list of 'Either' into two lists -- All the 'Left' elements are extracted, in order, to the first -- component of the output. Similarly the 'Right' elements are extracted -- to the second component of the output. partitionEithers :: [Either a b] -> ([a],[b]) partitionEithers = foldr (either left righ...
672
partitionEithers :: [Either a b] -> ([a],[b]) partitionEithers = foldr (either left right) ([],[]) where left a ~(l, r) = (a:l, r) right a ~(l, r) = (l, a:r) {- {-------------------------------------------------------------------- Testing --------------------------------------------------------------------} pr...
440
partitionEithers = foldr (either left right) ([],[]) where left a ~(l, r) = (a:l, r) right a ~(l, r) = (l, a:r) {- {-------------------------------------------------------------------- Testing --------------------------------------------------------------------} prop_partitionEithers :: [Either Int Int] -> Boo...
394
true
true
0
9
104
132
69
63
null
null
roberth/uu-helium
lib/simple/Maybe.hs
gpl-3.0
maybeToList :: Maybe a -> [a] maybeToList Nothing = []
67
maybeToList :: Maybe a -> [a] maybeToList Nothing = []
67
maybeToList Nothing = []
27
false
true
0
6
22
26
13
13
null
null
snapframework/snap
src/Snap/Snaplet/Internal/Lensed.hs
bsd-3-clause
------------------------------------------------------------------------------ runLensed :: Monad m => Lensed t1 b m t -> ALens' t1 b -> t1 -> m (t, t1) runLensed (Lensed f) l s = do (a, v', s') <- f l (s ^# l) s return (a, storing l v' s')
288
runLensed :: Monad m => Lensed t1 b m t -> ALens' t1 b -> t1 -> m (t, t1) runLensed (Lensed f) l s = do (a, v', s') <- f l (s ^# l) s return (a, storing l v' s')
209
runLensed (Lensed f) l s = do (a, v', s') <- f l (s ^# l) s return (a, storing l v' s')
95
true
true
0
12
91
121
59
62
null
null
databrary/databrary
src/View/Volume.hs
agpl-3.0
htmlVolumeViewLink :: QueryLike q => VolumeRow -> q -> H.Html htmlVolumeViewLink v q = H.a H.! actionLink viewVolume (HTML, volumeId v) q $ H.text $ volumeName v
167
htmlVolumeViewLink :: QueryLike q => VolumeRow -> q -> H.Html htmlVolumeViewLink v q = H.a H.! actionLink viewVolume (HTML, volumeId v) q $ H.text $ volumeName v
167
htmlVolumeViewLink v q = H.a H.! actionLink viewVolume (HTML, volumeId v) q $ H.text $ volumeName v
105
false
true
0
10
32
70
34
36
null
null
robrix/ui-effects
src/UI/Font.hs
bsd-3-clause
contourToPath :: [CurvePoint] -> Path FWord contourToPath [] = Z
64
contourToPath :: [CurvePoint] -> Path FWord contourToPath [] = Z
64
contourToPath [] = Z
20
false
true
0
8
9
31
14
17
null
null
RoboNickBot/interactive-tree-demos
src/Heap.hs
bsd-2-clause
qForm :: HeapNode -> Color -> (HyperForm, LineForm) qForm h c = let (t,line) = nodeForm h r = rekt (-150,-100) (300,200) True c o = rekt (-150,-100) (300,200) False Black in (combine [r,o,t], line)
242
qForm :: HeapNode -> Color -> (HyperForm, LineForm) qForm h c = let (t,line) = nodeForm h r = rekt (-150,-100) (300,200) True c o = rekt (-150,-100) (300,200) False Black in (combine [r,o,t], line)
241
qForm h c = let (t,line) = nodeForm h r = rekt (-150,-100) (300,200) True c o = rekt (-150,-100) (300,200) False Black in (combine [r,o,t], line)
189
false
true
0
11
79
135
72
63
null
null
thomaseding/radix
src/Radix.hs
bsd-3-clause
padWith :: Char -> Int -> String -> String padWith c n str = replicate (n - length front) c ++ front ++ end where (front, end) = span (not . isSpace) str
168
padWith :: Char -> Int -> String -> String padWith c n str = replicate (n - length front) c ++ front ++ end where (front, end) = span (not . isSpace) str
167
padWith c n str = replicate (n - length front) c ++ front ++ end where (front, end) = span (not . isSpace) str
124
false
true
0
10
47
84
41
43
null
null
maoe/text-keepalived
src/Text/Keepalived/Parser.hs
bsd-3-clause
pAlpha :: Stream s Identity Token => Parsec s u () pAlpha = () <$ identifier "alpha"
84
pAlpha :: Stream s Identity Token => Parsec s u () pAlpha = () <$ identifier "alpha"
84
pAlpha = () <$ identifier "alpha"
33
false
true
2
8
16
46
20
26
null
null
lancelet/bored-robot
src/CI/ProgName.hs
apache-2.0
runProgName :: MemberU2 Lift (Lift IO) r => Eff (ProgName ': r) a -> Eff r a runProgName = handleRelay return (\ProgName k -> lift (fmap T.pack getProgName) >>= k)
163
runProgName :: MemberU2 Lift (Lift IO) r => Eff (ProgName ': r) a -> Eff r a runProgName = handleRelay return (\ProgName k -> lift (fmap T.pack getProgName) >>= k)
163
runProgName = handleRelay return (\ProgName k -> lift (fmap T.pack getProgName) >>= k)
86
false
true
5
12
29
86
41
45
null
null
shlevy/ghc
compiler/codeGen/StgCmmPrim.hs
bsd-3-clause
translateOp dflags AddrEqOp = Just (mo_wordEq dflags)
59
translateOp dflags AddrEqOp = Just (mo_wordEq dflags)
59
translateOp dflags AddrEqOp = Just (mo_wordEq dflags)
59
false
false
0
7
12
22
9
13
null
null
robdockins/edison
edison-core/src/Data/Edison/Coll/StandardSet.hs
mit
maxElem = DS.findMax
31
maxElem = DS.findMax
31
maxElem = DS.findMax
31
false
false
0
5
13
8
4
4
null
null
kmate/raw-feldspar
src/Feldspar/Optimize.hs
bsd-3-clause
isExact :: ASTF FeldDomain a -> Bool isExact = isJust . witInteger
66
isExact :: ASTF FeldDomain a -> Bool isExact = isJust . witInteger
66
isExact = isJust . witInteger
29
false
true
0
6
11
24
12
12
null
null
MaxGabriel/path-pieces
Web/PathPieces.hs
bsd-2-clause
fromSinglePiece :: PathPiece p => S.Text -> Maybe p fromSinglePiece = fromPathPiece
83
fromSinglePiece :: PathPiece p => S.Text -> Maybe p fromSinglePiece = fromPathPiece
83
fromSinglePiece = fromPathPiece
31
false
true
0
7
11
27
13
14
null
null
isaiah/cis194
test/Ch04Spec.hs
mit
spec :: Spec spec = do describe "fun1'" $ do it "do the same as fun1" $ do let a = [3..10] fun1' a `shouldBe` fun1 a describe "xor" $ do it "returns True only if there are an odd number of True" $ do xor [False, True, False] `shouldBe` True xor [False, True, False, False, True] `sho...
332
spec :: Spec spec = do describe "fun1'" $ do it "do the same as fun1" $ do let a = [3..10] fun1' a `shouldBe` fun1 a describe "xor" $ do it "returns True only if there are an odd number of True" $ do xor [False, True, False] `shouldBe` True xor [False, True, False, False, True] `sho...
332
spec = do describe "fun1'" $ do it "do the same as fun1" $ do let a = [3..10] fun1' a `shouldBe` fun1 a describe "xor" $ do it "returns True only if there are an odd number of True" $ do xor [False, True, False] `shouldBe` True xor [False, True, False, False, True] `shouldBe` False
319
false
true
0
16
95
128
64
64
null
null
felipeZ/Dynamics
src/OptsCheck.hs
bsd-3-clause
heck_version :: Options -> OptsResult check_version optsR = return $ optsR { optShowVersion = True }
101
check_version :: Options -> OptsResult check_version optsR = return $ optsR { optShowVersion = True }
101
check_version optsR = return $ optsR { optShowVersion = True }
62
false
true
0
7
16
35
17
18
null
null
mapinguari/SC_HS_Proxy
src/Proxy/Query/Unit.hs
mit
maxShields TerranNuclearSilo = 0
32
maxShields TerranNuclearSilo = 0
32
maxShields TerranNuclearSilo = 0
32
false
false
0
5
3
9
4
5
null
null
GregorySchwartz/modify-fasta
src/FilterCloneMap.hs
gpl-3.0
-- | Check if the data structure is Right isRight' :: Either a b -> Bool isRight' (Right _) = True
104
isRight' :: Either a b -> Bool isRight' (Right _) = True
62
isRight' (Right _) = True
31
true
true
0
7
26
30
15
15
null
null
kmate/HaRe
old/testing/unfoldAsPatterns/B6_TokOut.hs
bsd-3-clause
buildtree :: (Monad m, Ord a) => [a] -> m (BTree a) buildtree [] = return Empty
79
buildtree :: (Monad m, Ord a) => [a] -> m (BTree a) buildtree [] = return Empty
79
buildtree [] = return Empty
27
false
true
0
9
16
50
25
25
null
null
kwanghoon/MySmallBasic
MySmallBasic/docs/Main.hs
gpl-3.0
helloworld = StmtExpr (ExprStmt (ExprMethodCall (MethodCallExpr "TextWindow" "WriteLine" [ExprCond (CondExprLit (Lit "Hello World"))])))
162
helloworld = StmtExpr (ExprStmt (ExprMethodCall (MethodCallExpr "TextWindow" "WriteLine" [ExprCond (CondExprLit (Lit "Hello World"))])))
162
helloworld = StmtExpr (ExprStmt (ExprMethodCall (MethodCallExpr "TextWindow" "WriteLine" [ExprCond (CondExprLit (Lit "Hello World"))])))
162
false
false
0
17
38
49
24
25
null
null
mdsteele/fallback
src/Fallback/State/Item.hs
gpl-3.0
potionIconCoords Mushroom = (3, 6)
34
potionIconCoords Mushroom = (3, 6)
34
potionIconCoords Mushroom = (3, 6)
34
false
false
1
5
4
18
8
10
null
null
kawu/partage
src/NLP/Partage/Earley/Base.hs
bsd-2-clause
labNonTerm (O.Sister y) = Just y
32
labNonTerm (O.Sister y) = Just y
32
labNonTerm (O.Sister y) = Just y
32
false
false
0
8
5
20
9
11
null
null
prowdsponsor/esqueleto
src/Database/Esqueleto/Internal/Sql.hs
bsd-3-clause
uncommas :: [TLB.Builder] -> TLB.Builder uncommas = intersperseB ", "
69
uncommas :: [TLB.Builder] -> TLB.Builder uncommas = intersperseB ", "
69
uncommas = intersperseB ", "
28
false
true
0
7
9
25
13
12
null
null