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
woodsjc/hackerrank-challenges
crosswords.hs
gpl-3.0
pad xs n = merge (map (\x -> x ++ [n]) xs) [0..(length xs - 1)]
63
pad xs n = merge (map (\x -> x ++ [n]) xs) [0..(length xs - 1)]
63
pad xs n = merge (map (\x -> x ++ [n]) xs) [0..(length xs - 1)]
63
false
false
0
11
15
54
28
26
null
null
smaccm/capDL-tool
CapDL/State.hs
bsd-2-clause
capTyp (ASIDPoolCap {}) = ASIDPool_T
36
capTyp (ASIDPoolCap {}) = ASIDPool_T
36
capTyp (ASIDPoolCap {}) = ASIDPool_T
36
false
false
0
7
4
16
8
8
null
null
jpbetz/protolang
haskell/Codegen.hs
apache-2.0
setBlock :: Name -> Codegen Name setBlock bname = do modify $ \s -> s { currentBlock = bname } return bname
111
setBlock :: Name -> Codegen Name setBlock bname = do modify $ \s -> s { currentBlock = bname } return bname
111
setBlock bname = do modify $ \s -> s { currentBlock = bname } return bname
78
false
true
0
11
25
52
24
28
null
null
arirahikkala/straylight-divergence
src/Compound.hs
gpl-3.0
-- Here be functions for managing data related to compounds (sets of rooms which are connected and which have some gameplay significance, including that the "normal" AI will prefer to stay inside a compound, and the mapgen prefers not to make doors between compounds; perhaps more to come). -- almost the same deal with...
725
numberCompounds cs = zip [CompoundRef 1..] cs
49
numberCompounds cs = zip [CompoundRef 1..] cs
49
true
false
1
6
121
29
13
16
null
null
imh/plover
src/Language/Plover/Expressions.hs
mit
e6 = seqList [ "x" := Vec "i" 1 (2 * 3), "y" := (- (normalize "x")) ]
74
e6 = seqList [ "x" := Vec "i" 1 (2 * 3), "y" := (- (normalize "x")) ]
74
e6 = seqList [ "x" := Vec "i" 1 (2 * 3), "y" := (- (normalize "x")) ]
74
false
false
0
11
22
48
25
23
null
null
abakst/liquidhaskell
src/Language/Haskell/Liquid/Types/RefType.hs
bsd-3-clause
addPds ps t = foldl' (flip rPred) t ps
48
addPds ps t = foldl' (flip rPred) t ps
48
addPds ps t = foldl' (flip rPred) t ps
48
false
false
0
7
18
25
11
14
null
null
urbanslug/ghc
compiler/prelude/PrimOp.hs
bsd-3-clause
mkMonadic str ty = Monadic (mkVarOccFS str) ty
46
mkMonadic str ty = Monadic (mkVarOccFS str) ty
46
mkMonadic str ty = Monadic (mkVarOccFS str) ty
46
false
false
1
7
7
27
10
17
null
null
NickAger/LearningHaskell
haskellForMacMiscPlayground/MonadTransformers.hsproj/MonadTransformers.hs
mit
eval2a env (Var n) = maybeToEither ("undefined: '" ++ n ++ "'") (Map.lookup n env)
82
eval2a env (Var n) = maybeToEither ("undefined: '" ++ n ++ "'") (Map.lookup n env)
82
eval2a env (Var n) = maybeToEither ("undefined: '" ++ n ++ "'") (Map.lookup n env)
82
false
false
0
8
14
43
21
22
null
null
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_R16UI :: GLenum gl_R16UI = 0x8234
36
gl_R16UI :: GLenum gl_R16UI = 0x8234
36
gl_R16UI = 0x8234
17
false
true
0
4
5
11
6
5
null
null
KazumaSATO/digitalocean-kzs
src/DigitalOcean/Image.hs
mit
-- | List all Distribution Images -- -- @ -- do -- tkn <- getEnv "DIGITAL_OCEAN_PERSONAL_ACCESS_TOKEN" -- maybeImages <- listAllDistributionImages $ Authentication tkn -- print $ show $ isJust maybeImages -- @ -- listAllDistributionImages :: Authentication -> (MonadIO m) => m (Maybe [Image]) listAllDistribu...
424
listAllDistributionImages :: Authentication -> (MonadIO m) => m (Maybe [Image]) listAllDistributionImages a = liftM toList $ liftM decode (requestGet "images?page=1&per_page=100&type=distribution" a)
199
listAllDistributionImages a = liftM toList $ liftM decode (requestGet "images?page=1&per_page=100&type=distribution" a)
119
true
true
0
10
65
68
38
30
null
null
dsorokin/aivika-experiment-chart
examples/SingleLaneTraffic/Experiment.hs
bsd-3-clause
startQueueCountStats = T.tr $ T.resourceQueueCountStats start
67
startQueueCountStats = T.tr $ T.resourceQueueCountStats start
67
startQueueCountStats = T.tr $ T.resourceQueueCountStats start
67
false
false
0
7
11
17
8
9
null
null
acharal/hopes
src/prover/CoreLang.hs
gpl-2.0
fv (Exists a e) = filter (/= a) $ fv e
38
fv (Exists a e) = filter (/= a) $ fv e
38
fv (Exists a e) = filter (/= a) $ fv e
38
false
false
2
6
10
33
15
18
null
null
rimmington/cabal
cabal-install/Distribution/Client/Configure.hs
bsd-3-clause
planLocalPackage :: Verbosity -> Compiler -> Platform -> ConfigFlags -> ConfigExFlags -> InstalledPackageIndex -> SourcePackageDb -> IO (Progress String String InstallPlan) planLocalPackage verbosity comp platform configFlags configExF...
3,220
planLocalPackage :: Verbosity -> Compiler -> Platform -> ConfigFlags -> ConfigExFlags -> InstalledPackageIndex -> SourcePackageDb -> IO (Progress String String InstallPlan) planLocalPackage verbosity comp platform configFlags configExF...
3,220
planLocalPackage verbosity comp platform configFlags configExFlags installedPkgIndex (SourcePackageDb _ packagePrefs) = do pkg <- readPackageDescription verbosity =<< defaultPackageDesc verbosity solver <- chooseSolver verbosity (fromFlag $ configSolver configExFlags) (compilerInfo comp) let -- W...
2,962
false
true
0
23
937
455
227
228
null
null
markuspf/Idris-dev
src/Idris/Core/TT.hs
bsd-3-clause
internalNS :: String internalNS = "(internal)"
46
internalNS :: String internalNS = "(internal)"
46
internalNS = "(internal)"
25
false
true
0
6
5
18
7
11
null
null
dkensinger/haskell
haskellbook/determineTypes.hs
gpl-3.0
example = 1
11
example = 1
11
example = 1
11
false
false
1
5
2
10
3
7
null
null
facebookincubator/duckling
Duckling/Numeral/ZH/Rules.hs
bsd-3-clause
ruleInteger :: Rule ruleInteger = Rule { name = "integer (0..10)" , pattern = [ regex "(〇|零|一|二|两|兩|三|四|五|六|七|八|九|十|壹|貳|參|肆|伍|陸|柒|捌|玖|拾)" ] , prod = \case (Token RegexMatch (GroupMatch (match:_)):_) -> HashMap.lookup match integerMap >>= integer _ -> Nothing }
296
ruleInteger :: Rule ruleInteger = Rule { name = "integer (0..10)" , pattern = [ regex "(〇|零|一|二|两|兩|三|四|五|六|七|八|九|十|壹|貳|參|肆|伍|陸|柒|捌|玖|拾)" ] , prod = \case (Token RegexMatch (GroupMatch (match:_)):_) -> HashMap.lookup match integerMap >>= integer _ -> Nothing }
296
ruleInteger = Rule { name = "integer (0..10)" , pattern = [ regex "(〇|零|一|二|两|兩|三|四|五|六|七|八|九|十|壹|貳|參|肆|伍|陸|柒|捌|玖|拾)" ] , prod = \case (Token RegexMatch (GroupMatch (match:_)):_) -> HashMap.lookup match integerMap >>= integer _ -> Nothing }
276
false
true
0
17
71
91
48
43
null
null
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/AutoScalingPlansScalingPlanCustomizedLoadMetricSpecification.hs
mit
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-customizedloadmetricspecification.html#cfn-autoscalingplans-scalingplan-customizedloadmetricspecification-unit aspspclmsUnit :: Lens' AutoScalingPlansScalingPlanCustomizedLoadMetricSpecification (Maybe (Val Te...
497
aspspclmsUnit :: Lens' AutoScalingPlansScalingPlanCustomizedLoadMetricSpecification (Maybe (Val Text)) aspspclmsUnit = lens _autoScalingPlansScalingPlanCustomizedLoadMetricSpecificationUnit (\s a -> s { _autoScalingPlansScalingPlanCustomizedLoadMetricSpecificationUnit = a })
275
aspspclmsUnit = lens _autoScalingPlansScalingPlanCustomizedLoadMetricSpecificationUnit (\s a -> s { _autoScalingPlansScalingPlanCustomizedLoadMetricSpecificationUnit = a })
172
true
true
0
9
22
52
28
24
null
null
tylerwx51/StartStopFRP
frpzoo.hs
bsd-3-clause
count :: EvStream t x -> Hold t (Behavior t Int) count e = foldEs' (\v _ -> v + 1) e 0
86
count :: EvStream t x -> Hold t (Behavior t Int) count e = foldEs' (\v _ -> v + 1) e 0
86
count e = foldEs' (\v _ -> v + 1) e 0
37
false
true
0
8
22
57
28
29
null
null
csabahruska/q3demo
src/Q3Demo/Graphics/GLBackend.hs
bsd-3-clause
getNameTypeSize :: GLuint -> (GLuint -> GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLint -> Ptr GLenum -> Ptr GLchar -> IO ()) -> (GLuint -> Ptr GLchar -> IO GLint) -> GLenum -> GLenum -> IO [(ByteString,GLint,GLenum,GLint)] getNameTypeSize a b c d e = do st "BEGIN[getNameTypeSize]" r <- getName...
382
getNameTypeSize :: GLuint -> (GLuint -> GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLint -> Ptr GLenum -> Ptr GLchar -> IO ()) -> (GLuint -> Ptr GLchar -> IO GLint) -> GLenum -> GLenum -> IO [(ByteString,GLint,GLenum,GLint)] getNameTypeSize a b c d e = do st "BEGIN[getNameTypeSize]" r <- getName...
382
getNameTypeSize a b c d e = do st "BEGIN[getNameTypeSize]" r <- getNameTypeSize' a b c d e st "END[getNameTypeSize]" return r
141
false
true
0
16
95
167
77
90
null
null
jmacmahon/syllabify
Linguisticks.hs
agpl-3.0
formatParam (c, n1, n2, p, cmp) = printf "| %s | %s | %s | %s | %s %c %s | %.2e |\n" c n1 n2 (significance p) n1 (cmpSign cmp) n2 p
131
formatParam (c, n1, n2, p, cmp) = printf "| %s | %s | %s | %s | %s %c %s | %.2e |\n" c n1 n2 (significance p) n1 (cmpSign cmp) n2 p
131
formatParam (c, n1, n2, p, cmp) = printf "| %s | %s | %s | %s | %s %c %s | %.2e |\n" c n1 n2 (significance p) n1 (cmpSign cmp) n2 p
131
false
false
0
7
32
55
29
26
null
null
jprider63/aeson-ios-0.8.0.2
tests/Properties/Deprecated.hs
bsd-3-clause
genericToFromJSON :: (Arbitrary a, Eq a, Data a) => a -> Bool genericToFromJSON x = case G.fromJSON . G.toJSON $ x of Error _ -> False Success x' -> x == x'
188
genericToFromJSON :: (Arbitrary a, Eq a, Data a) => a -> Bool genericToFromJSON x = case G.fromJSON . G.toJSON $ x of Error _ -> False Success x' -> x == x'
188
genericToFromJSON x = case G.fromJSON . G.toJSON $ x of Error _ -> False Success x' -> x == x'
126
false
true
0
8
63
77
38
39
null
null
gcampax/ghc
compiler/coreSyn/CoreUtils.hs
bsd-3-clause
mkCast expr co = let Pair from_ty _to_ty = coercionKind co in -- if to_ty `eqType` from_ty -- then expr -- else WARN(not (from_ty `eqType` exprType expr), text "Trying to coerce" <+> text "(" <> ppr expr $$ text "::" <+> ppr (exprType expr) <> text ")" $$ ppr co $$ ppr (coercionType co)) (Ca...
331
mkCast expr co = let Pair from_ty _to_ty = coercionKind co in -- if to_ty `eqType` from_ty -- then expr -- else WARN(not (from_ty `eqType` exprType expr), text "Trying to coerce" <+> text "(" <> ppr expr $$ text "::" <+> ppr (exprType expr) <> text ")" $$ ppr co $$ ppr (coercionType co)) (Ca...
331
mkCast expr co = let Pair from_ty _to_ty = coercionKind co in -- if to_ty `eqType` from_ty -- then expr -- else WARN(not (from_ty `eqType` exprType expr), text "Trying to coerce" <+> text "(" <> ppr expr $$ text "::" <+> ppr (exprType expr) <> text ")" $$ ppr co $$ ppr (coercionType co)) (Ca...
331
false
false
0
16
84
132
62
70
null
null
kawamuray/ganeti
test/hs/Test/Ganeti/Network.hs
gpl-2.0
-- | Checks if one bit vector subsumes the other one. bitVectorSubsumes :: V.Vector Bool -> V.Vector Bool -> Bool bitVectorSubsumes v1 v2 = V.and $ V.zipWith (\a b -> not b || a) v1 v2
210
bitVectorSubsumes :: V.Vector Bool -> V.Vector Bool -> Bool bitVectorSubsumes v1 v2 = V.and $ V.zipWith (\a b -> not b || a) v1 v2
156
bitVectorSubsumes v1 v2 = V.and $ V.zipWith (\a b -> not b || a) v1 v2
96
true
true
0
10
61
67
33
34
null
null
vikraman/ghc
compiler/typecheck/TcGenDeriv.hs
bsd-3-clause
ltResult OrdLT = true_Expr
31
ltResult OrdLT = true_Expr
31
ltResult OrdLT = true_Expr
31
false
false
0
5
8
9
4
5
null
null
ruslantalpa/postgrest
src/PostgREST/DbStructure.hs
mit
synonymousColumns :: [(Column,Column)] -> [Column] -> [[Column]] synonymousColumns allSyns cols = synCols' where syns = case headMay cols of Just firstCol -> sort $ filter ((== colTable firstCol) . colTable . fst) allSyns Nothing -> [] synCols  = transpose $ map (\c -> map snd $ filter...
549
synonymousColumns :: [(Column,Column)] -> [Column] -> [[Column]] synonymousColumns allSyns cols = synCols' where syns = case headMay cols of Just firstCol -> sort $ filter ((== colTable firstCol) . colTable . fst) allSyns Nothing -> [] synCols  = transpose $ map (\c -> map snd $ filter...
549
synonymousColumns allSyns cols = synCols' where syns = case headMay cols of Just firstCol -> sort $ filter ((== colTable firstCol) . colTable . fst) allSyns Nothing -> [] synCols  = transpose $ map (\c -> map snd $ filter ((== c) . fst) syns) cols synCols' = (filter sameTable . fil...
484
false
true
7
14
135
264
124
140
null
null
sdiehl/ghc
compiler/GHC/StgToCmm/ArgRep.hs
bsd-3-clause
toArgRep IntRep = N
30
toArgRep IntRep = N
30
toArgRep IntRep = N
30
false
false
0
4
14
10
4
6
null
null
lukexi/cabal
Cabal/Distribution/Simple/GHC.hs
bsd-3-clause
getRPaths :: LocalBuildInfo -> ComponentLocalBuildInfo -- ^ Component we are building -> IO (NubListR FilePath) getRPaths lbi clbi | supportRPaths hostOS = do libraryPaths <- depLibraryPaths False (relocatable lbi) lbi clbi let hostPref = case hostOS of OSX -> "@loader_p...
1,712
getRPaths :: LocalBuildInfo -> ComponentLocalBuildInfo -- ^ Component we are building -> IO (NubListR FilePath) getRPaths lbi clbi | supportRPaths hostOS = do libraryPaths <- depLibraryPaths False (relocatable lbi) lbi clbi let hostPref = case hostOS of OSX -> "@loader_p...
1,712
getRPaths lbi clbi | supportRPaths hostOS = do libraryPaths <- depLibraryPaths False (relocatable lbi) lbi clbi let hostPref = case hostOS of OSX -> "@loader_path" _ -> "$ORIGIN" relPath p = if isRelative p then hostPref </> p else p rpaths = toNubL...
1,580
false
true
17
13
516
304
152
152
null
null
rueshyna/gogol
gogol-slides/gen/Network/Google/Slides/Types/Product.hs
mpl-2.0
-- | The hyperlink destination of the image. If unset, there is no link. ipLink :: Lens' ImageProperties (Maybe Link) ipLink = lens _ipLink (\ s a -> s{_ipLink = a})
165
ipLink :: Lens' ImageProperties (Maybe Link) ipLink = lens _ipLink (\ s a -> s{_ipLink = a})
92
ipLink = lens _ipLink (\ s a -> s{_ipLink = a})
47
true
true
0
9
30
46
25
21
null
null
akru/haste-compiler
libraries/haste-lib/src/Haste/Graphics/Canvas.hs
bsd-3-clause
-- | Draw an arc. An arc is specified as a drawn portion of an imaginary -- circle with a center point, a radius, a starting angle and an ending -- angle. -- For instance, @arc (0, 0) 10 0 pi@ will draw a half circle centered at -- (0, 0), with a radius of 10 pixels. arc :: Point -> Double -> Angle -> Angle -> ...
401
arc :: Point -> Double -> Angle -> Angle -> Shape () arc (x, y) radius from to = Shape $ \ctx -> jsArc ctx x y radius from to
125
arc (x, y) radius from to = Shape $ \ctx -> jsArc ctx x y radius from to
72
true
true
0
11
94
78
41
37
null
null
siddhanathan/ghc
compiler/main/GhcMake.hs
bsd-3-clause
multiRootsErr dflags summs@(summ1:_) = throwOneError $ mkPlainErrMsg dflags noSrcSpan $ text "module" <+> quotes (ppr mod) <+> text "is defined in multiple files:" <+> sep (map text files) where mod = ms_mod summ1 files = map (expectJust "checkDup" . ml_hs_file . ms_location) summs
318
multiRootsErr dflags summs@(summ1:_) = throwOneError $ mkPlainErrMsg dflags noSrcSpan $ text "module" <+> quotes (ppr mod) <+> text "is defined in multiple files:" <+> sep (map text files) where mod = ms_mod summ1 files = map (expectJust "checkDup" . ml_hs_file . ms_location) summs
318
multiRootsErr dflags summs@(summ1:_) = throwOneError $ mkPlainErrMsg dflags noSrcSpan $ text "module" <+> quotes (ppr mod) <+> text "is defined in multiple files:" <+> sep (map text files) where mod = ms_mod summ1 files = map (expectJust "checkDup" . ml_hs_file . ms_location) summs
318
false
false
0
10
78
107
51
56
null
null
haskell-tinc/tinc
src/Tinc/Sandbox.hs
bsd-3-clause
registerPackageConfigs :: (MonadIO m, MonadProcess m) => Path PackageDb -> [Path PackageConfig] -> m () registerPackageConfigs _packageDb [] = return ()
152
registerPackageConfigs :: (MonadIO m, MonadProcess m) => Path PackageDb -> [Path PackageConfig] -> m () registerPackageConfigs _packageDb [] = return ()
152
registerPackageConfigs _packageDb [] = return ()
48
false
true
0
9
20
60
29
31
null
null
testexplode/testexplode
doc/examples/Te52.hs
lgpl-3.0
checkNotOkCp = emptyCp { shortDesc = "Check: Failure", longDesc = "Check: Failure", codeFkt = checkNotOKCode, condition = checkNotOkCondition, condDesc = "> 10 %, > 1 s" }
258
checkNotOkCp = emptyCp { shortDesc = "Check: Failure", longDesc = "Check: Failure", codeFkt = checkNotOKCode, condition = checkNotOkCondition, condDesc = "> 10 %, > 1 s" }
258
checkNotOkCp = emptyCp { shortDesc = "Check: Failure", longDesc = "Check: Failure", codeFkt = checkNotOKCode, condition = checkNotOkCondition, condDesc = "> 10 %, > 1 s" }
258
false
false
0
6
113
38
24
14
null
null
TorosFanny/kaleidoscope
src/chapter4/Emit.hs
mit
toSig :: [String] -> [(AST.Type, AST.Name)] toSig = map (\x -> (double, AST.Name x))
84
toSig :: [String] -> [(AST.Type, AST.Name)] toSig = map (\x -> (double, AST.Name x))
84
toSig = map (\x -> (double, AST.Name x))
40
false
true
0
10
13
60
31
29
null
null
relrod/dd-wrchart
Main.hs
bsd-2-clause
downloadToInteger :: Download -> Integer downloadToInteger (Download (Megabytes x)) = x
87
downloadToInteger :: Download -> Integer downloadToInteger (Download (Megabytes x)) = x
87
downloadToInteger (Download (Megabytes x)) = x
46
false
true
0
9
10
30
15
15
null
null
kayuri/HNC
Utils.hs
lgpl-3.0
xtrace _ b = b
14
xtrace _ b = b
14
xtrace _ b = b
14
false
false
0
5
4
11
5
6
null
null
ekmett/bitwise
src/Data/Array/BitArray.hs
bsd-3-clause
elems :: Ix i => BitArray i -> [Bool] elems a = runST (ST.unsafeGetElems =<< ST.unsafeThaw a)
93
elems :: Ix i => BitArray i -> [Bool] elems a = runST (ST.unsafeGetElems =<< ST.unsafeThaw a)
93
elems a = runST (ST.unsafeGetElems =<< ST.unsafeThaw a)
55
false
true
0
9
16
53
24
29
null
null
contivero/hasmin
src/Hasmin/Types/Dimension.hs
bsd-3-clause
isZeroLen :: Length -> Bool isZeroLen (Length 0 _) = True
57
isZeroLen :: Length -> Bool isZeroLen (Length 0 _) = True
57
isZeroLen (Length 0 _) = True
29
false
true
0
7
10
26
13
13
null
null
k-bx/stack
src/Stack/GhcPkg.hs
bsd-3-clause
unregisterGhcPkgId :: (MonadIO m, MonadLogger m, MonadThrow m, MonadCatch m, MonadBaseControl IO m) => EnvOverride -> Path Abs Dir -- ^ package database -> GhcPkgId -> m () unregisterGhcPkgId menv pkgDb gid = do eres <- ghcPkg menv [pkg...
653
unregisterGhcPkgId :: (MonadIO m, MonadLogger m, MonadThrow m, MonadCatch m, MonadBaseControl IO m) => EnvOverride -> Path Abs Dir -- ^ package database -> GhcPkgId -> m () unregisterGhcPkgId menv pkgDb gid = do eres <- ghcPkg menv [pkg...
653
unregisterGhcPkgId menv pkgDb gid = do eres <- ghcPkg menv [pkgDb] args case eres of Left e -> $logWarn $ T.pack $ show e Right _ -> return () where -- TODO ideally we'd tell ghc-pkg a GhcPkgId instead args = ["unregister", "--user", "--force", packageIdentifierString $ ghcPkgIdPackage...
400
false
true
1
12
202
174
83
91
null
null
brendanhay/gogol
gogol-sqladmin/gen/Network/Google/SQLAdmin/Types/Product.hs
mpl-2.0
-- | The URI of this resource. brSelfLink :: Lens' BackupRun (Maybe Text) brSelfLink = lens _brSelfLink (\ s a -> s{_brSelfLink = a})
135
brSelfLink :: Lens' BackupRun (Maybe Text) brSelfLink = lens _brSelfLink (\ s a -> s{_brSelfLink = a})
104
brSelfLink = lens _brSelfLink (\ s a -> s{_brSelfLink = a})
61
true
true
1
9
25
50
25
25
null
null
ghorn/hois
OIS/OISMouse.hs
bsd-3-clause
mouse_getEventCallback :: Mouse -> IO MouseListener mouse_getEventCallback p1 = c_mouse_getEventCallback p1
109
mouse_getEventCallback :: Mouse -> IO MouseListener mouse_getEventCallback p1 = c_mouse_getEventCallback p1
109
mouse_getEventCallback p1 = c_mouse_getEventCallback p1
57
false
true
0
6
12
24
11
13
null
null
fmapfmapfmap/amazonka
amazonka-opsworks/test/Test/AWS/Gen/OpsWorks.hs
mpl-2.0
testDescribeApps :: DescribeApps -> TestTree testDescribeApps = req "DescribeApps" "fixture/DescribeApps.yaml"
118
testDescribeApps :: DescribeApps -> TestTree testDescribeApps = req "DescribeApps" "fixture/DescribeApps.yaml"
118
testDescribeApps = req "DescribeApps" "fixture/DescribeApps.yaml"
73
false
true
0
5
17
21
10
11
null
null
chaosim/peasy
coffee/samples/latex.hs
mit
rawLaTeXBlock :: Parser [Char] ParserState String rawLaTeXBlock = snd <$> try (withRaw (environment <|> blockCommand))
118
rawLaTeXBlock :: Parser [Char] ParserState String rawLaTeXBlock = snd <$> try (withRaw (environment <|> blockCommand))
118
rawLaTeXBlock = snd <$> try (withRaw (environment <|> blockCommand))
68
false
true
3
9
14
48
21
27
null
null
spechub/Hets
HasCASL/ParseItem.hs
gpl-2.0
progItems :: AParser st BasicItem progItems = hasCaslItemList programS (patternTermPair [equalS] (WithIn, []) equalS) ProgItems
131
progItems :: AParser st BasicItem progItems = hasCaslItemList programS (patternTermPair [equalS] (WithIn, []) equalS) ProgItems
131
progItems = hasCaslItemList programS (patternTermPair [equalS] (WithIn, []) equalS) ProgItems
97
false
true
0
9
18
51
24
27
null
null
brendanhay/gogol
gogol-vision/gen/Network/Google/Vision/Types/Product.hs
mpl-2.0
-- | Creates a value of 'ProductSearchResults' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'psrProductGroupedResults' -- -- * 'psrResults' -- -- * 'psrIndexTime' productSearchResults :: ProductSearchResults productSearchResults...
452
productSearchResults :: ProductSearchResults productSearchResults = ProductSearchResults' { _psrProductGroupedResults = Nothing , _psrResults = Nothing , _psrIndexTime = Nothing }
201
productSearchResults = ProductSearchResults' { _psrProductGroupedResults = Nothing , _psrResults = Nothing , _psrIndexTime = Nothing }
152
true
true
0
7
82
50
30
20
null
null
fmthoma/ghc
compiler/basicTypes/RdrName.hs
bsd-3-clause
-- demoteRdrName lowers the NameSpace of RdrName. -- see Note [Demotion] in OccName demoteRdrName :: RdrName -> Maybe RdrName demoteRdrName (Unqual occ) = fmap Unqual (demoteOccName occ)
186
demoteRdrName :: RdrName -> Maybe RdrName demoteRdrName (Unqual occ) = fmap Unqual (demoteOccName occ)
102
demoteRdrName (Unqual occ) = fmap Unqual (demoteOccName occ)
60
true
true
0
9
26
44
21
23
null
null
dimara/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
HS-Carbon/hs-carbon-aggregator
3rd-party/python-pickle/Language/Python/Pickle.hs
apache-2.0
binint1 = string "K" *> (BININT1 . fromIntegral <$> anyWord8)
61
binint1 = string "K" *> (BININT1 . fromIntegral <$> anyWord8)
61
binint1 = string "K" *> (BININT1 . fromIntegral <$> anyWord8)
61
false
false
0
8
9
24
12
12
null
null
diku-dk/futhark
src/Futhark/CodeGen/ImpGen/GPU/Base.hs
isc
compileGroupResult space pe (RegTileReturns _ dims_n_tiles what) = do constants <- kernelConstants <$> askEnv let gids = map fst $ unSegSpace space (dims, group_tiles, reg_tiles) = unzip3 dims_n_tiles group_tiles' = map toInt64Exp group_tiles reg_tiles' = map toInt64Exp reg_tiles -- Which grou...
1,413
compileGroupResult space pe (RegTileReturns _ dims_n_tiles what) = do constants <- kernelConstants <$> askEnv let gids = map fst $ unSegSpace space (dims, group_tiles, reg_tiles) = unzip3 dims_n_tiles group_tiles' = map toInt64Exp group_tiles reg_tiles' = map toInt64Exp reg_tiles -- Which grou...
1,413
compileGroupResult space pe (RegTileReturns _ dims_n_tiles what) = do constants <- kernelConstants <$> askEnv let gids = map fst $ unSegSpace space (dims, group_tiles, reg_tiles) = unzip3 dims_n_tiles group_tiles' = map toInt64Exp group_tiles reg_tiles' = map toInt64Exp reg_tiles -- Which grou...
1,413
false
false
0
16
325
348
169
179
null
null
geocurnoff/nikki
src/Sorts/Robots/PathRobots/Platform.hs
lgpl-3.0
robotEyesState :: Path -> RobotEyesState robotEyesState p = case p of Path{} -> Active (SingleNode _ Nothing) -> Idle (SingleNode _ (Just _)) -> Idle
161
robotEyesState :: Path -> RobotEyesState robotEyesState p = case p of Path{} -> Active (SingleNode _ Nothing) -> Idle (SingleNode _ (Just _)) -> Idle
161
robotEyesState p = case p of Path{} -> Active (SingleNode _ Nothing) -> Idle (SingleNode _ (Just _)) -> Idle
120
false
true
2
5
36
48
33
15
null
null
ozgurakgun/Idris-dev
src/Idris/Core/CaseTree.hs
bsd-3-clause
conRule :: [Name] -> [Clause] -> SC -> CaseBuilder SC conRule (v:vs) cs err = do groups <- groupCons cs caseGroups (v:vs) groups err
159
conRule :: [Name] -> [Clause] -> SC -> CaseBuilder SC conRule (v:vs) cs err = do groups <- groupCons cs caseGroups (v:vs) groups err
159
conRule (v:vs) cs err = do groups <- groupCons cs caseGroups (v:vs) groups err
105
false
true
0
9
50
73
36
37
null
null
pikajude/explain
src/Main.hs
mit
explainDec RulePragmaDecl{} = empty
37
explainDec RulePragmaDecl{} = empty
37
explainDec RulePragmaDecl{} = empty
37
false
false
0
6
5
13
6
7
null
null
urv/fixhs
src/Data/FIX/Spec/FIX43.hs
lgpl-2.1
tTotNoOrders :: FIXTag tTotNoOrders = FIXTag { tName = "TotNoOrders" , tnum = 68 , tparser = toFIXInt , arbitraryValue = FIXInt <$> arbitrary }
156
tTotNoOrders :: FIXTag tTotNoOrders = FIXTag { tName = "TotNoOrders" , tnum = 68 , tparser = toFIXInt , arbitraryValue = FIXInt <$> arbitrary }
156
tTotNoOrders = FIXTag { tName = "TotNoOrders" , tnum = 68 , tparser = toFIXInt , arbitraryValue = FIXInt <$> arbitrary }
133
false
true
0
8
37
45
26
19
null
null
vTurbine/ghc
compiler/utils/Pretty.hs
bsd-3-clause
colon = char ':'
17
colon = char ':'
17
colon = char ':'
17
false
false
0
5
4
9
4
5
null
null
ndmitchell/hlint
src/Apply.hs
bsd-3-clause
applyHints {- PUBLIC -} :: [Classify] -> Hint -> [ModuleEx] -> [Idea] applyHints cs = applyHintsReal $ map SettingClassify cs
125
applyHints {- PUBLIC -} :: [Classify] -> Hint -> [ModuleEx] -> [Idea] applyHints cs = applyHintsReal $ map SettingClassify cs
125
applyHints cs = applyHintsReal $ map SettingClassify cs
55
false
true
0
8
19
45
24
21
null
null
brendanhay/gogol
gogol-vision/gen/Network/Google/Vision/Types/Product.hs
mpl-2.0
-- | Opaque entity ID. gcvvwdweEntityId :: Lens' GoogleCloudVisionV1p1beta1WebDetectionWebEntity (Maybe Text) gcvvwdweEntityId = lens _gcvvwdweEntityId (\ s a -> s{_gcvvwdweEntityId = a})
195
gcvvwdweEntityId :: Lens' GoogleCloudVisionV1p1beta1WebDetectionWebEntity (Maybe Text) gcvvwdweEntityId = lens _gcvvwdweEntityId (\ s a -> s{_gcvvwdweEntityId = a})
172
gcvvwdweEntityId = lens _gcvvwdweEntityId (\ s a -> s{_gcvvwdweEntityId = a})
85
true
true
1
9
29
51
25
26
null
null
endhrk/whois-haskell
Network/Whois.hs
bsd-3-clause
whois :: String -> IO BS.ByteString whois ip = withSocketsDo $ do hSetBuffering stdout NoBuffering h <- connectTo (getWhoisServer ip) (PortNumber 43) hSetBuffering h LineBuffering hPutStrLn h ip c <- BSLC.hGetContents h return $ toS $ convert (getWhoisCharCode ip) "UTF-8" c
298
whois :: String -> IO BS.ByteString whois ip = withSocketsDo $ do hSetBuffering stdout NoBuffering h <- connectTo (getWhoisServer ip) (PortNumber 43) hSetBuffering h LineBuffering hPutStrLn h ip c <- BSLC.hGetContents h return $ toS $ convert (getWhoisCharCode ip) "UTF-8" c
298
whois ip = withSocketsDo $ do hSetBuffering stdout NoBuffering h <- connectTo (getWhoisServer ip) (PortNumber 43) hSetBuffering h LineBuffering hPutStrLn h ip c <- BSLC.hGetContents h return $ toS $ convert (getWhoisCharCode ip) "UTF-8" c
262
false
true
2
11
64
117
50
67
null
null
JacquesCarette/literate-scientific-software
code/drasil-gen/Language/Drasil/Generate.hs
bsd-2-clause
writeDoc :: PrintingInformation -> Format -> Filename -> Document -> Doc writeDoc s TeX _ doc = genTeX doc s
110
writeDoc :: PrintingInformation -> Format -> Filename -> Document -> Doc writeDoc s TeX _ doc = genTeX doc s
110
writeDoc s TeX _ doc = genTeX doc s
37
false
true
0
8
21
41
20
21
null
null
JacquesCarette/literate-scientific-software
code/drasil-example/Drasil/SWHS/IMods.hs
bsd-2-clause
-- heatEInWtrL htWtrRel :: Relation htWtrRel = apply1 watE time $= sy htCapW * sy wMass * (apply1 tempW time - sy tempInit)
126
htWtrRel :: Relation htWtrRel = apply1 watE time $= sy htCapW * sy wMass * (apply1 tempW time - sy tempInit)
110
htWtrRel = apply1 watE time $= sy htCapW * sy wMass * (apply1 tempW time - sy tempInit)
89
true
true
0
8
25
50
24
26
null
null
cocreature/leksah
src/IDE/Workspaces.hs
gpl-2.0
workspaceTry :: WorkspaceAction -> IDEAction workspaceTry f = do maybeWorkspace <- readIDE workspace case maybeWorkspace of Just ws -> runWorkspace f ws Nothing -> do mainWindow <- getMainWindow defaultWorkspace <- liftIO $ (</> "leksah.lkshw") <$> getHomeDirectory ...
1,903
workspaceTry :: WorkspaceAction -> IDEAction workspaceTry f = do maybeWorkspace <- readIDE workspace case maybeWorkspace of Just ws -> runWorkspace f ws Nothing -> do mainWindow <- getMainWindow defaultWorkspace <- liftIO $ (</> "leksah.lkshw") <$> getHomeDirectory ...
1,903
workspaceTry f = do maybeWorkspace <- readIDE workspace case maybeWorkspace of Just ws -> runWorkspace f ws Nothing -> do mainWindow <- getMainWindow defaultWorkspace <- liftIO $ (</> "leksah.lkshw") <$> getHomeDirectory resp <- liftIO $ do def...
1,858
false
true
0
23
749
406
184
222
null
null
gregsymons/learn-you-a-haskell
chapter-3.hs
apache-2.0
tell :: (Show a) => [a] -> String tell [] = "The list is empty"
63
tell :: (Show a) => [a] -> String tell [] = "The list is empty"
63
tell [] = "The list is empty"
29
false
true
0
9
14
38
18
20
null
null
phischu/fragnix
tests/packages/scotty/Data.ByteString.Lazy.Search.Internal.BoyerMoore.hs
bsd-3-clause
lazySplitDrop :: S.ByteString -> [S.ByteString] -> [[S.ByteString]] lazySplitDrop pat = splitter where !patLen = S.length pat breaker = lazyBreak pat splitter [] = [] splitter strs = splitter' strs splitter' [] = [[]] splitter' strs = case breaker strs of (pre,mtch) -> ...
2,313
lazySplitDrop :: S.ByteString -> [S.ByteString] -> [[S.ByteString]] lazySplitDrop pat = splitter where !patLen = S.length pat breaker = lazyBreak pat splitter [] = [] splitter strs = splitter' strs splitter' [] = [[]] splitter' strs = case breaker strs of (pre,mtch) -> ...
2,313
lazySplitDrop pat = splitter where !patLen = S.length pat breaker = lazyBreak pat splitter [] = [] splitter strs = splitter' strs splitter' [] = [[]] splitter' strs = case breaker strs of (pre,mtch) -> pre : case mtch of ...
2,245
false
true
5
15
734
177
99
78
null
null
mbakke/ganeti
src/Ganeti/Types.hs
bsd-2-clause
-- | Format a submit priority as string. fmtSubmitPriority :: OpSubmitPriority -> String fmtSubmitPriority OpPrioLow = "low"
127
fmtSubmitPriority :: OpSubmitPriority -> String fmtSubmitPriority OpPrioLow = "low"
86
fmtSubmitPriority OpPrioLow = "low"
38
true
true
0
5
19
23
11
12
null
null
cabrera/hdbc
testsrc/TestSqlValue.hs
bsd-3-clause
ztparsef = (HU.@=?) testZonedTimeFrac (fromSql (SqlString testZonedTimeFracStr))
84
ztparsef = (HU.@=?) testZonedTimeFrac (fromSql (SqlString testZonedTimeFracStr))
84
ztparsef = (HU.@=?) testZonedTimeFrac (fromSql (SqlString testZonedTimeFracStr))
84
false
false
1
9
10
32
14
18
null
null
mbernat/aoc16-haskell
src/Day2.hs
bsd-3-clause
process :: [[Direction]] -> [Position] process = scanl (foldl (move valid1)) initial1
85
process :: [[Direction]] -> [Position] process = scanl (foldl (move valid1)) initial1
85
process = scanl (foldl (move valid1)) initial1
46
false
true
0
9
11
41
22
19
null
null
brendanhay/gogol
gogol-dialogflow/gen/Network/Google/Resource/DialogFlow/Projects/Operations/Get.hs
mpl-2.0
-- | OAuth access token. pogAccessToken :: Lens' ProjectsOperationsGet (Maybe Text) pogAccessToken = lens _pogAccessToken (\ s a -> s{_pogAccessToken = a})
163
pogAccessToken :: Lens' ProjectsOperationsGet (Maybe Text) pogAccessToken = lens _pogAccessToken (\ s a -> s{_pogAccessToken = a})
138
pogAccessToken = lens _pogAccessToken (\ s a -> s{_pogAccessToken = a})
79
true
true
1
9
29
51
25
26
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/HTMLAllCollection.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection.item Mozilla HTMLAllCollection.item documentation> item :: (MonadDOM m) => HTMLAllCollection -> Word -> m (Maybe Element) item self index = liftDOM ((self ^. jsf "item" [toJSVal index]) >>= fromJSVal)
281
item :: (MonadDOM m) => HTMLAllCollection -> Word -> m (Maybe Element) item self index = liftDOM ((self ^. jsf "item" [toJSVal index]) >>= fromJSVal)
156
item self index = liftDOM ((self ^. jsf "item" [toJSVal index]) >>= fromJSVal)
80
true
true
0
12
38
71
36
35
null
null
Megaleo/Minehack
src/Input.hs
bsd-3-clause
handleInput ws c ForceHitUp = A.Action (loadTile c ws) (Just $ loadTile (c |-| (0, 1)) ws) (A.Hit Nothing)
113
handleInput ws c ForceHitUp = A.Action (loadTile c ws) (Just $ loadTile (c |-| (0, 1)) ws) (A.Hit Nothing)
113
handleInput ws c ForceHitUp = A.Action (loadTile c ws) (Just $ loadTile (c |-| (0, 1)) ws) (A.Hit Nothing)
113
false
false
0
11
25
63
32
31
null
null
ducis/haAni
hs/common/Graphics/UI/GLUT/Raw/Tokens.hs
gpl-2.0
glut_VISIBLE :: CInt glut_VISIBLE = 0x0001
42
glut_VISIBLE :: CInt glut_VISIBLE = 0x0001
42
glut_VISIBLE = 0x0001
21
false
true
0
4
5
11
6
5
null
null
brendanhay/gogol
gogol-factchecktools/gen/Network/Google/Resource/FactCheckTools/Pages/Delete.hs
mpl-2.0
-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\"). pdUploadType :: Lens' PagesDelete (Maybe Text) pdUploadType = lens _pdUploadType (\ s a -> s{_pdUploadType = a})
185
pdUploadType :: Lens' PagesDelete (Maybe Text) pdUploadType = lens _pdUploadType (\ s a -> s{_pdUploadType = a})
114
pdUploadType = lens _pdUploadType (\ s a -> s{_pdUploadType = a})
67
true
true
0
9
28
48
25
23
null
null
iblumenfeld/cryptol
src/Cryptol/Symbolic/Prims.hs
bsd-3-clause
-- | Merge two values given a binop. This is used for and, or and xor. logicBinary :: (SBool -> SBool -> SBool) -> (SWord -> SWord -> SWord) -> Binary logicBinary bop op = loop . toTypeVal where loop ty l r = case ty of TVBit -> VBit (bop (fromVBit l) (fromVBit r)) TVSeq _ TVBit -> ...
771
logicBinary :: (SBool -> SBool -> SBool) -> (SWord -> SWord -> SWord) -> Binary logicBinary bop op = loop . toTypeVal where loop ty l r = case ty of TVBit -> VBit (bop (fromVBit l) (fromVBit r)) TVSeq _ TVBit -> VWord (op (fromVWord l) (fromVWord r)) TVSeq _ t -> VSeq Fal...
699
logicBinary bop op = loop . toTypeVal where loop ty l r = case ty of TVBit -> VBit (bop (fromVBit l) (fromVBit r)) TVSeq _ TVBit -> VWord (op (fromVWord l) (fromVWord r)) TVSeq _ t -> VSeq False (zipWith (loop t) (fromSeq l) (fromSeq r)) TVStream t -> VStream (...
619
true
true
1
13
227
366
176
190
null
null
deontologician/orbRPG
Game/OrbRPG/Combinations.hs
gpl-3.0
Null @>> _ = Null
21
Null @>> _ = Null
21
Null @>> _ = Null
21
false
false
2
5
8
14
6
8
null
null
vladimir-ipatov/ganeti
src/Ganeti/Constants.hs
gpl-2.0
socatEscapeCode :: String socatEscapeCode = "0x1d"
50
socatEscapeCode :: String socatEscapeCode = "0x1d"
50
socatEscapeCode = "0x1d"
24
false
true
0
6
5
18
7
11
null
null
jml/language-python
src/Language/Python/Common/ParserMonad.hs
bsd-3-clause
returnP :: a -> P a returnP = return
36
returnP :: a -> P a returnP = return
36
returnP = return
16
false
true
0
7
8
24
10
14
null
null
brendanhay/gogol
gogol-slides/gen/Network/Google/Slides/Types/Product.hs
mpl-2.0
-- | The element properties for the chart. When the aspect ratio of the -- provided size does not match the chart aspect ratio, the chart is scaled -- and centered with respect to the size in order to maintain aspect ratio. -- The provided transform is applied after this operation. cscrElementProperties :: Lens' Create...
469
cscrElementProperties :: Lens' CreateSheetsChartRequest (Maybe PageElementProperties) cscrElementProperties = lens _cscrElementProperties (\ s a -> s{_cscrElementProperties = a})
186
cscrElementProperties = lens _cscrElementProperties (\ s a -> s{_cscrElementProperties = a})
100
true
true
0
9
75
51
28
23
null
null
juodaspaulius/clafer
src/Language/Clafer/Generator/Html.hs
mit
printExp (EEq _ exp'1 exp'2) indent irMap html comments = (printExp exp'1 indent irMap html comments) ++ " = " ++ printExp exp'2 indent irMap html comments
162
printExp (EEq _ exp'1 exp'2) indent irMap html comments = (printExp exp'1 indent irMap html comments) ++ " = " ++ printExp exp'2 indent irMap html comments
162
printExp (EEq _ exp'1 exp'2) indent irMap html comments = (printExp exp'1 indent irMap html comments) ++ " = " ++ printExp exp'2 indent irMap html comments
162
false
false
1
8
33
62
29
33
null
null
Min-/fourseq
src/lib/Util.hs
bsd-3-clause
groupDes :: Ord a => [a] -> [[a]] groupDes x = L.reverse . L.sortBy (comparing length) . L.group . L.reverse . L.sort $ x
121
groupDes :: Ord a => [a] -> [[a]] groupDes x = L.reverse . L.sortBy (comparing length) . L.group . L.reverse . L.sort $ x
121
groupDes x = L.reverse . L.sortBy (comparing length) . L.group . L.reverse . L.sort $ x
87
false
true
0
12
23
73
37
36
null
null
ygale/timezone-olson
hzdump.hs
bsd-3-clause
parseArgs :: [String] -> (Option, [FilePath]) parseArgs args | "--version" `elem` args = (Version, [])
102
parseArgs :: [String] -> (Option, [FilePath]) parseArgs args | "--version" `elem` args = (Version, [])
102
parseArgs args | "--version" `elem` args = (Version, [])
56
false
true
0
9
14
56
29
27
null
null
sulami/hmenu
src/FuzzyFinder.hs
bsd-3-clause
match :: [Char] -> ([Char], [Char]) -> (Bool, [Int]) match i s = match' i (snd s) [] where match' :: [Char] -> [Char] -> [Int] -> (Bool, [Int]) match' [] _ r = (True, r) match' (x:xs) s r | fst check = match' xs (drop used s) $ r ++ [used] | otherwise = (False, r) where ...
370
match :: [Char] -> ([Char], [Char]) -> (Bool, [Int]) match i s = match' i (snd s) [] where match' :: [Char] -> [Char] -> [Int] -> (Bool, [Int]) match' [] _ r = (True, r) match' (x:xs) s r | fst check = match' xs (drop used s) $ r ++ [used] | otherwise = (False, r) where ...
370
match i s = match' i (snd s) [] where match' :: [Char] -> [Char] -> [Int] -> (Bool, [Int]) match' [] _ r = (True, r) match' (x:xs) s r | fst check = match' xs (drop used s) $ r ++ [used] | otherwise = (False, r) where used = snd check check = partOf x s 0
317
false
true
7
10
130
208
112
96
null
null
zhiyuanshi/fcore
examples/case_studies/FOLogic.hs
bsd-2-clause
--function "iequivalent" give the list of i-equivalent valuation of a valuation iequivalent :: Valuation -> Ide -> [Valuation] iequivalent v@((Asg i1 c1):vs) i = map (:(deleteIE v i)) (map (Asg i) (getConsV v))
210
iequivalent :: Valuation -> Ide -> [Valuation] iequivalent v@((Asg i1 c1):vs) i = map (:(deleteIE v i)) (map (Asg i) (getConsV v))
130
iequivalent v@((Asg i1 c1):vs) i = map (:(deleteIE v i)) (map (Asg i) (getConsV v))
83
true
true
0
10
32
83
44
39
null
null
UU-ComputerScience/uulib
src/UU/PPrint.hs
bsd-3-clause
text "" = Empty
23
text "" = Empty
23
text "" = Empty
23
false
false
0
5
11
9
4
5
null
null
noughtmare/yi
yi-keymap-vim/src/Yi/Keymap/Vim/Ex/Commands/Number.hs
gpl-2.0
actionSet (BoolOptionSet b) = BufferA $ setDisplayLineNumbersLocal (Just b)
75
actionSet (BoolOptionSet b) = BufferA $ setDisplayLineNumbersLocal (Just b)
75
actionSet (BoolOptionSet b) = BufferA $ setDisplayLineNumbersLocal (Just b)
75
false
false
0
8
8
29
13
16
null
null
dmp1ce/Haskell-Programming-Exercises
Chapter 23/Chapter exercises.hs
unlicense
-- 2. Construct a State where the resulting state is the argument provided and -- the value is defaulted to unit. put :: s -> Moi s () put s = Moi (\_ -> ((), s))
166
put :: s -> Moi s () put s = Moi (\_ -> ((), s))
48
put s = Moi (\_ -> ((), s))
27
true
true
0
9
39
50
26
24
null
null
beni55/LambdaHack
Game/LambdaHack/Server/DungeonGen/Place.hs
bsd-3-clause
tilePlace :: Area -- ^ the area to fill -> PlaceKind -- ^ the place kind to construct -> EM.EnumMap Point Char tilePlace area pl@PlaceKind{..} = let (x0, y0, x1, y1) = fromArea area xwidth = x1 - x0 + 1 ywidth = y1 - y0 + 1 dxcorner ...
2,059
tilePlace :: Area -- ^ the area to fill -> PlaceKind -- ^ the place kind to construct -> EM.EnumMap Point Char tilePlace area pl@PlaceKind{..} = let (x0, y0, x1, y1) = fromArea area xwidth = x1 - x0 + 1 ywidth = y1 - y0 + 1 dxcorner ...
2,059
tilePlace area pl@PlaceKind{..} = let (x0, y0, x1, y1) = fromArea area xwidth = x1 - x0 + 1 ywidth = y1 - y0 + 1 dxcorner = case ptopLeft of [] -> assert `failure` (area, pl) l : _ -> T.length l (dx, dy) = assert (xwidth >= dxcorner && ywidth >= length ptopLeft ...
1,881
false
true
81
11
817
746
406
340
null
null
da-x/ghc
compiler/hsSyn/HsExpr.hs
bsd-3-clause
ppr_expr (SectionL expr op) = case unLoc op of HsVar v -> pp_infixly v _ -> pp_prefixly where pp_expr = pprDebugParendExpr expr pp_prefixly = hang (hsep [text " \\ x_ ->", ppr op]) 4 (hsep [pp_expr, ptext (sLit "x_ )")]) pp_infixly v = (sep [pp_expr, pprInfixOcc...
324
ppr_expr (SectionL expr op) = case unLoc op of HsVar v -> pp_infixly v _ -> pp_prefixly where pp_expr = pprDebugParendExpr expr pp_prefixly = hang (hsep [text " \\ x_ ->", ppr op]) 4 (hsep [pp_expr, ptext (sLit "x_ )")]) pp_infixly v = (sep [pp_expr, pprInfixOcc...
324
ppr_expr (SectionL expr op) = case unLoc op of HsVar v -> pp_infixly v _ -> pp_prefixly where pp_expr = pprDebugParendExpr expr pp_prefixly = hang (hsep [text " \\ x_ ->", ppr op]) 4 (hsep [pp_expr, ptext (sLit "x_ )")]) pp_infixly v = (sep [pp_expr, pprInfixOcc...
324
false
false
2
10
104
136
62
74
null
null
lawilog/internal
one_run_stuff/language_beginning/test.hs
lgpl-3.0
anwenden :: (a->b) -> [a] -> [b] anwenden f [] = []
51
anwenden :: (a->b) -> [a] -> [b] anwenden f [] = []
51
anwenden f [] = []
18
false
true
0
9
11
47
23
24
null
null
tjakway/ghcjvm
compiler/typecheck/TcBinds.hs
bsd-3-clause
lhsBindArity :: LHsBind Name -> NameEnv Arity -> NameEnv Arity lhsBindArity (L _ (FunBind { fun_id = id, fun_matches = ms })) env = extendNameEnv env (unLoc id) (matchGroupArity ms)
183
lhsBindArity :: LHsBind Name -> NameEnv Arity -> NameEnv Arity lhsBindArity (L _ (FunBind { fun_id = id, fun_matches = ms })) env = extendNameEnv env (unLoc id) (matchGroupArity ms)
183
lhsBindArity (L _ (FunBind { fun_id = id, fun_matches = ms })) env = extendNameEnv env (unLoc id) (matchGroupArity ms)
120
false
true
0
11
31
78
39
39
null
null
nevrenato/HetsAlloy
Comorphisms/Modal2CASL.hs
gpl-2.0
-- needs to be changed once modal symbols are added transSchemaMFormulas :: ModMapEnv -> SORT -> PRED_NAME -> [AnModFORM] -> [Named CASLFORMULA] transSchemaMFormulas mapEnv fws relSymb = mapMaybe (transSchemaMFormula (mapTERM mapEnv) fws relSymb worldVars)
282
transSchemaMFormulas :: ModMapEnv -> SORT -> PRED_NAME -> [AnModFORM] -> [Named CASLFORMULA] transSchemaMFormulas mapEnv fws relSymb = mapMaybe (transSchemaMFormula (mapTERM mapEnv) fws relSymb worldVars)
229
transSchemaMFormulas mapEnv fws relSymb = mapMaybe (transSchemaMFormula (mapTERM mapEnv) fws relSymb worldVars)
115
true
true
0
10
59
65
33
32
null
null
wehu/hw
src/Resolver.hs
apache-2.0
importFile_ ps file fs pos poses = do fn <- foldM (\acc p -> foldM (\a f -> do if a == "" then do e <- doesFileExist f if e then return f else return a else return a ) acc ...
2,059
importFile_ ps file fs pos poses = do fn <- foldM (\acc p -> foldM (\a f -> do if a == "" then do e <- doesFileExist f if e then return f else return a else return a ) acc ...
2,059
importFile_ ps file fs pos poses = do fn <- foldM (\acc p -> foldM (\a f -> do if a == "" then do e <- doesFileExist f if e then return f else return a else return a ) acc ...
2,059
false
false
0
28
1,143
604
300
304
null
null
atsukotakahashi/wi
src/library/Yi/Buffer/HighLevel.hs
gpl-2.0
incrementNextNumberByB :: Int -> BufferM () incrementNextNumberByB n = do start <- pointB untilB_ (not <$> isNumberB) (moveXorSol 1) untilB_ (isNumberB) (moveXorEol 1) begin <- pointB beginIsEol <- atEol untilB_ (not <$> isNumberB) (moveXorEol 1) end <- pointB if beginIsEol then moveTo s...
449
incrementNextNumberByB :: Int -> BufferM () incrementNextNumberByB n = do start <- pointB untilB_ (not <$> isNumberB) (moveXorSol 1) untilB_ (isNumberB) (moveXorEol 1) begin <- pointB beginIsEol <- atEol untilB_ (not <$> isNumberB) (moveXorEol 1) end <- pointB if beginIsEol then moveTo s...
449
incrementNextNumberByB n = do start <- pointB untilB_ (not <$> isNumberB) (moveXorSol 1) untilB_ (isNumberB) (moveXorEol 1) begin <- pointB beginIsEol <- atEol untilB_ (not <$> isNumberB) (moveXorEol 1) end <- pointB if beginIsEol then moveTo start else do modifyRegionB (increment n)...
405
false
true
0
12
109
153
71
82
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/showInt_1.hs
mit
primEqInt (Neg (Succ x)) (Neg (Succ y)) = primEqNat x y
55
primEqInt (Neg (Succ x)) (Neg (Succ y)) = primEqNat x y
55
primEqInt (Neg (Succ x)) (Neg (Succ y)) = primEqNat x y
55
false
false
0
9
10
40
19
21
null
null
probcomp/haxcat
Types.hs
apache-2.0
view_row_only_uninc :: RowID -> Row a -> View a -> View a view_row_only_uninc r_id (Row _ cell) View{..} = View view_partition view_columns' where cluster_id = fromJust $ crp_seq_lookup r_id view_partition view_columns' = M.mapWithKey col_uninc view_columns -- col_uninc :: ColID -> Column a ...
559
view_row_only_uninc :: RowID -> Row a -> View a -> View a view_row_only_uninc r_id (Row _ cell) View{..} = View view_partition view_columns' where cluster_id = fromJust $ crp_seq_lookup r_id view_partition view_columns' = M.mapWithKey col_uninc view_columns -- col_uninc :: ColID -> Column a ...
559
view_row_only_uninc r_id (Row _ cell) View{..} = View view_partition view_columns' where cluster_id = fromJust $ crp_seq_lookup r_id view_partition view_columns' = M.mapWithKey col_uninc view_columns -- col_uninc :: ColID -> Column a -> Column a (same a) col_uninc col_id (Column h m...
501
false
true
5
10
161
181
81
100
null
null
brendanhay/gogol
gogol-books/gen/Network/Google/Resource/Books/Onboarding/ListCategories.hs
mpl-2.0
-- | JSONP olcCallback :: Lens' OnboardingListCategories (Maybe Text) olcCallback = lens _olcCallback (\ s a -> s{_olcCallback = a})
134
olcCallback :: Lens' OnboardingListCategories (Maybe Text) olcCallback = lens _olcCallback (\ s a -> s{_olcCallback = a})
123
olcCallback = lens _olcCallback (\ s a -> s{_olcCallback = a})
64
true
true
0
9
21
48
25
23
null
null
christiaanb/clash-tryout
src/CLaSH/Util/Pretty/CoreHW.hs
bsd-3-clause
prec :: Rational prec = 1
25
prec :: Rational prec = 1
25
prec = 1
8
false
true
0
4
5
11
6
5
null
null
bitc/hs-watchman
src/System/Directory/Watchman/Expression.hs
mit
wholename :: HasPathScopeOption a => a -> a wholename = setPathScope BaseName
77
wholename :: HasPathScopeOption a => a -> a wholename = setPathScope BaseName
77
wholename = setPathScope BaseName
33
false
true
0
6
11
25
12
13
null
null
osa1/Idris-dev
src/Idris/AbsSyntaxTree.hs
bsd-3-clause
highestFC (PPatvar fc _) = Just fc
34
highestFC (PPatvar fc _) = Just fc
34
highestFC (PPatvar fc _) = Just fc
34
false
false
0
6
6
21
9
12
null
null
allanderek/ipclib
peped/Peped.hs
gpl-2.0
printSystemEquation :: MainSystem -> String printSystemEquation (EmptyMainSystem) = "'undefined'"
97
printSystemEquation :: MainSystem -> String printSystemEquation (EmptyMainSystem) = "'undefined'"
97
printSystemEquation (EmptyMainSystem) = "'undefined'"
53
false
true
0
5
8
25
12
13
null
null
gcampax/ghc
compiler/hsSyn/HsDecls.hs
bsd-3-clause
pp_fam_inst_lhs :: OutputableBndr name => Located name -> HsTyPats name -> HsContext name -> SDoc pp_fam_inst_lhs thing (HsWB { hswb_cts = typats }) context -- explicit type patterns = hsep [ pprHsContext context, pprPrefixOcc (unLoc thing) , hsep (map (pprParendHsType.unLoc) typats)]
310
pp_fam_inst_lhs :: OutputableBndr name => Located name -> HsTyPats name -> HsContext name -> SDoc pp_fam_inst_lhs thing (HsWB { hswb_cts = typats }) context -- explicit type patterns = hsep [ pprHsContext context, pprPrefixOcc (unLoc thing) , hsep (map (pprParendHsType.unLoc) typats)]
310
pp_fam_inst_lhs thing (HsWB { hswb_cts = typats }) context -- explicit type patterns = hsep [ pprHsContext context, pprPrefixOcc (unLoc thing) , hsep (map (pprParendHsType.unLoc) typats)]
200
false
true
0
11
65
99
49
50
null
null
alanz/cloud-haskell-play
src/ThymeUtil.hs
unlicense
delayToDiffTime Infinity = error "trying to convert Delay.Infinity to a NominalDiffTime"
90
delayToDiffTime Infinity = error "trying to convert Delay.Infinity to a NominalDiffTime"
90
delayToDiffTime Infinity = error "trying to convert Delay.Infinity to a NominalDiffTime"
90
false
false
0
5
12
12
5
7
null
null
phischu/fragnix
tests/packages/scotty/Data.Aeson.Encoding.Internal.hs
bsd-3-clause
text :: Text -> Encoding' a text = Encoding . EB.text
53
text :: Text -> Encoding' a text = Encoding . EB.text
53
text = Encoding . EB.text
25
false
true
1
7
10
31
13
18
null
null
ahmadsalim/p3-tool
p3-tool/TVL/Parser.hs
gpl-3.0
pFeatureDecl :: Parser st FeatureDecl pFeatureDecl = do (root, name) <- ((,) <$> (reserved "root" *> return True) <*> identifier) <|> ((,) False <$> pLongId) (FtGroup root name <$> (reserved "group" *> pCardinality) <*> braces (commaSep1 pFtHiDecl)) <|> (FtFeature root name <$> braces (many1 p...
360
pFeatureDecl :: Parser st FeatureDecl pFeatureDecl = do (root, name) <- ((,) <$> (reserved "root" *> return True) <*> identifier) <|> ((,) False <$> pLongId) (FtGroup root name <$> (reserved "group" *> pCardinality) <*> braces (commaSep1 pFtHiDecl)) <|> (FtFeature root name <$> braces (many1 p...
360
pFeatureDecl = do (root, name) <- ((,) <$> (reserved "root" *> return True) <*> identifier) <|> ((,) False <$> pLongId) (FtGroup root name <$> (reserved "group" *> pCardinality) <*> braces (commaSep1 pFtHiDecl)) <|> (FtFeature root name <$> braces (many1 pFtBodyItem)) <?> "feature declaratio...
322
false
true
3
14
75
145
70
75
null
null