Project Name
stringclasses
422 values
Package Name
stringlengths
1
89
Type Name
stringlengths
1
112
NOF
int64
0
1.33k
NOPF
int64
0
1.33k
NOM
int64
0
778
NOPM
int64
0
656
LOC
int64
0
9.42k
WMC
int64
0
2.05k
NC
int64
0
203
DIT
int64
0
9
LCOM
float64
-1
1
FANIN
int64
0
350
FANOUT
int64
0
139
Line no
int64
1
94.8k
code
stringlengths
12
4.03M
diamond
com.taobao.diamond.client
SubscriberListener
0
0
2
2
12
2
0
0
-1
2
1
17
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.client
DiamondConfigure
16
0
35
35
248
40
0
0
0.457143
5
2
21
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.client
BatchHttpResult
3
0
6
6
27
6
0
0
0.5
1
0
8
/** Copyright 2013-2023 步步高商城. */ package com.taobao.diamond.client; import java.util.List; import com.taobao.diamond.domain.ConfigInfoEx; /** * * @author <a href="mailto:takeseem@gmail.com">杨浩</a> * @since 0.1.0 */ public class BatchHttpResult { private boolean success = true; private String statusCode; pri...
diamond
com.taobao.diamond.client.impl
DefaultSubscriberListener
2
0
9
7
114
21
0
0
0.222222
0
4
21
package com.taobao.diamond.client.impl; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.Executor; import org.apache.commons.lang.StringUtils; impor...
diamond
com.taobao.diamond.client.impl
DiamondUnitSite
1
0
1
1
16
3
0
0
0
0
1
7
/** Copyright 2013-2023 步步高商城. */ package com.taobao.diamond.client.impl; import java.util.HashMap; import java.util.Map; /** * * @author <a href="mailto:takeseem@gmail.com">杨浩</a> * @since 0.1.0 */ public class DiamondUnitSite { private static Map<String, DiamondEnv> envs = new HashMap<>(); public static Dia...
diamond
com.taobao.diamond.client.impl
DiamondClientFactory
1
0
1
1
10
1
0
0
0
2
1
15
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.client.impl
DiamondEnvRepo
1
1
0
0
7
0
0
0
-1
0
1
4
/** Copyright 2013-2023 步步高商城. */ package com.taobao.diamond.client.impl; /** * * @author <a href="mailto:takeseem@gmail.com">杨浩</a> * @since 0.1.0 */ public class DiamondEnvRepo { public static DiamondEnv defaultEnv = DiamondUnitSite.getDiamondUnitEnv(""); }
diamond
com.taobao.diamond.client.impl
DiamondEnv
2
0
8
7
55
13
0
0
0.25
2
4
19
/** Copyright 2013-2023 步步高商城. */ package com.taobao.diamond.client.impl; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.taobao.diamond.clien...
diamond
com.taobao.diamond.client.impl
DefaultDiamondSubscriber
20
0
57
25
0
167
0
0
0
0
12
64
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.client.processor
ServerAddressProcessor
7
0
14
5
302
55
0
0
0
1
3
42
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.client.processor
LocalConfigInfoProcessor
5
0
9
4
171
33
0
0
0
1
9
35
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.client.processor
SnapshotConfigInfoProcessor
1
0
7
4
127
26
0
0
0.428571
1
1
26
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.md5
MD5
6
0
9
8
110
16
0
0
0.444444
3
1
24
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.io
FileSystem
2
0
3
3
22
3
0
0
0.666667
1
0
15
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.io
Path
1
0
48
48
153
48
0
0
0.041667
4
1
24
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.io.watch
Watchable
0
0
1
1
7
1
0
0
-1
0
3
12
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.io.watch
StandardWatchEventKind
4
4
8
8
54
8
0
0
1
2
1
15
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.io.watch
WatchService
4
0
9
8
92
17
0
0
0
4
3
25
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.io.watch
WatchService.CheckThread
0
0
0
0
5
0
0
0
-1
0
0
46
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.io.watch
WatchEvent
3
0
4
4
29
4
0
0
0
5
0
12
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.io.watch
WatchEvent.Kind
0
0
0
0
4
0
0
0
-1
0
0
19
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.io.watch
WatchKey
5
0
12
6
160
40
0
0
0
3
5
23
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.io.watch.util
PathNode
4
1
8
8
39
8
0
0
0
1
1
18
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.utils
SimpleCache
4
2
4
4
41
7
0
0
0.5
1
1
18
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.utils
SimpleCache.CacheEntry
2
2
0
0
8
0
0
0
-1
0
0
31
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.utils
FileUtils
0
0
6
6
74
15
0
0
-1
1
1
19
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.utils
LoggerInit
4
2
3
1
58
7
0
0
0
2
0
24
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.utils
TimeUtils
0
0
1
1
6
1
0
0
-1
1
0
7
package com.taobao.diamond.utils; import java.sql.Timestamp; import java.util.Date; public class TimeUtils { public static Timestamp getCurrentTime() { Date date = new Date(); return new Timestamp(date.getTime()); } }
diamond
com.taobao.diamond.utils
ResourceUtils
0
0
10
10
131
22
0
0
-1
3
0
21
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
diamond
com.taobao.diamond.utils
JSONUtils
1
0
3
3
12
3
0
0
0
2
0
7
package com.taobao.diamond.utils; import org.codehaus.jackson.map.ObjectMapper; import org.codehaus.jackson.type.TypeReference; public class JSONUtils { static ObjectMapper mapper = new ObjectMapper(); public static String serializeObject(Object o) throws Exception { return mapper.writeValueAsString(...
diamond
com.taobao.diamond.common
Constants
36
36
2
1
125
13
0
0
0
18
0
30
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
SwipeBack
com.hannesdorfmann.swipeback.example
SwipeBackActivity
0
0
4
4
26
5
0
0
-1
0
0
10
package com.hannesdorfmann.swipeback.example; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.util.Log; import android.view.MenuItem; import com.hannesdorfmann.swipeback.R; /** * Created by Hannes Dorfmann on 03.01.14. */ public class SwipeBackActivity extends ActionBarAct...
SwipeBack
com.hannesdorfmann.swipeback.example
MainActivity
3
0
20
10
128
32
0
0
0.15
0
0
21
package com.hannesdorfmann.swipeback.example; import android.content.Intent; import android.content.res.Configuration; import android.os.Bundle; import android.support.v4.app.ActionBarDrawerToggle; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarActivity; import android.view.View;...
SwipeBack
com.hannesdorfmann.swipeback.example.slide
SlideActivity
0
0
2
2
10
2
0
0
-1
0
2
11
package com.hannesdorfmann.swipeback.example.slide; import android.os.Bundle; import com.hannesdorfmann.swipeback.Position; import com.hannesdorfmann.swipeback.SwipeBack; import com.hannesdorfmann.swipeback.example.R; import com.hannesdorfmann.swipeback.example.SwipeBackActivity; import com.hannesdorfmann.swipeback.t...
SwipeBack
com.hannesdorfmann.swipeback.example.viewpager
FragmentAdapter
1
0
3
3
12
3
0
0
1
0
1
8
package com.hannesdorfmann.swipeback.example.viewpager; import android.graphics.Color; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; public class FragmentAdapter extends FragmentPagerAdapter { private final int colors[] = {...
SwipeBack
com.hannesdorfmann.swipeback.example.viewpager
SimpleFragment
3
0
2
2
18
2
0
0
0
1
0
12
package com.hannesdorfmann.swipeback.example.viewpager; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.hannesdorfmann.swipeback.example.R; public class SimpleFrag...
SwipeBack
com.hannesdorfmann.swipeback.example.viewpager
ViewPagerActivity
3
0
3
3
26
5
0
0
0
0
2
15
package com.hannesdorfmann.swipeback.example.viewpager; import android.graphics.Color; import android.os.Bundle; import android.support.v4.view.ViewPager; import android.support.v4.view.ViewPager.SimpleOnPageChangeListener; import android.view.View; import com.hannesdorfmann.swipeback.Position; import com.hannesdorfm...
SwipeBack
com.hannesdorfmann.swipeback.example.simple
SimpleActivity
0
0
1
1
9
1
0
0
-1
0
2
10
package com.hannesdorfmann.swipeback.example.simple; import android.os.Bundle; import com.hannesdorfmann.swipeback.Position; import com.hannesdorfmann.swipeback.SwipeBack; import com.hannesdorfmann.swipeback.example.R; import com.hannesdorfmann.swipeback.example.SwipeBackActivity; /** * Created by hannes on 03.01.1...
SwipeBack
com.hannesdorfmann.swipeback.example.dragcontent
DragContentActivity
0
0
1
1
6
1
0
0
-1
0
2
11
package com.hannesdorfmann.swipeback.example.dragcontent; import android.os.Bundle; import com.hannesdorfmann.swipeback.Position; import com.hannesdorfmann.swipeback.SwipeBack; import com.hannesdorfmann.swipeback.SwipeBack.Type; import com.hannesdorfmann.swipeback.example.R; import com.hannesdorfmann.swipeback.exampl...
SwipeBack
com.hannesdorfmann.swipeback.example.overlay
OverlayActivity
0
0
1
1
6
1
0
0
-1
0
2
11
package com.hannesdorfmann.swipeback.example.overlay; import android.os.Bundle; import com.hannesdorfmann.swipeback.Position; import com.hannesdorfmann.swipeback.SwipeBack; import com.hannesdorfmann.swipeback.SwipeBack.Type; import com.hannesdorfmann.swipeback.example.R; import com.hannesdorfmann.swipeback.example.Sw...
SwipeBack
com.hannesdorfmann.swipeback.example.bottom
BottomActivity
0
0
2
2
10
2
0
0
-1
0
2
11
package com.hannesdorfmann.swipeback.example.bottom; import android.os.Bundle; import com.hannesdorfmann.swipeback.Position; import com.hannesdorfmann.swipeback.SwipeBack; import com.hannesdorfmann.swipeback.SwipeBack.Type; import com.hannesdorfmann.swipeback.example.R; import com.hannesdorfmann.swipeback.example.Swi...
SwipeBack
com.hannesdorfmann.swipeback.example.bottom
BottomSwipeBackTransformer
1
0
4
4
26
6
0
0
0.5
0
2
14
package com.hannesdorfmann.swipeback.example.bottom; import android.annotation.SuppressLint; import android.app.Activity; import android.os.Build; import android.view.View; import android.widget.TextView; import com.hannesdorfmann.swipeback.SwipeBack; import com.hannesdorfmann.swipeback.example.R; import com.hannesdo...
SwipeBack
com.hannesdorfmann.swipeback
OverlaySwipeBack
3
0
28
8
0
141
0
2
0.392857
1
2
14
package com.hannesdorfmann.swipeback; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.drawable.GradientDrawable; import android.os.Build; import android.util.AttributeSet; import android.view.MotionEvent; import a...
SwipeBack
com.hannesdorfmann.swipeback
FloatScroller
9
0
13
13
119
15
0
0
0
0
0
22
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
SwipeBack
com.hannesdorfmann.swipeback
BuildLayerFrameLayout
4
0
10
5
70
19
1
0
0.4
1
1
11
package com.hannesdorfmann.swipeback; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.content.Context; import android.graphics.Canvas; import android.os.Build; import android.util.AttributeSet; import android.widget.FrameLayout; /** * FrameLayout which caches the hardware ...
SwipeBack
com.hannesdorfmann.swipeback
SlideDrawable
4
0
31
28
118
35
0
0
0.096774
0
0
10
package com.hannesdorfmann.swipeback; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.PorterDuff; import android.graphics.Rect; import android.graphics.Region; import android.graphics.drawable.Drawable; public class SlideDrawable extends Drawable implements Drawable.Callba...
SwipeBack
com.hannesdorfmann.swipeback
Scroller
33
0
26
24
355
35
0
0
0.115385
1
0
27
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
SwipeBack
com.hannesdorfmann.swipeback
DraggableSwipeBack
26
0
46
20
505
84
2
1
0.347826
0
3
18
package com.hannesdorfmann.swipeback; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.os.Build; import android.os.SystemClock; import android.util.AttributeSet; import android.view.MotionEvent; import android.view....
SwipeBack
com.hannesdorfmann.swipeback
SlidingSwipeBack
1
0
23
7
0
126
0
2
0.434783
1
3
12
package com.hannesdorfmann.swipeback; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.os.Build; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.VelocityTracker; public class SlidingS...
SwipeBack
com.hannesdorfmann.swipeback
ViewHelper
0
0
6
5
34
11
0
0
-1
4
1
8
package com.hannesdorfmann.swipeback; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.os.Build; import android.view.View; @TargetApi(Build.VERSION_CODES.HONEYCOMB) @SuppressLint("NewApi") final class ViewHelper { private ViewHelper() { } public static int getL...
SwipeBack
com.hannesdorfmann.swipeback
Position
2
0
0
0
23
0
0
0
-1
8
0
5
package com.hannesdorfmann.swipeback; import android.util.SparseArray; /** * Enums used for positioning the drawer. */ public enum Position { // Positions the drawer to the left of the content. LEFT(0), // Positions the drawer above the content. TOP(1), // Positions the drawer to the right of ...
SwipeBack
com.hannesdorfmann.swipeback
NoClickThroughFrameLayout
0
0
4
4
17
4
0
1
-1
1
0
7
package com.hannesdorfmann.swipeback; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; /** * FrameLayout which doesn't let touch events propagate to views positioned behind it in the view hierarchy. */ class NoClickThroughFrameLayout extends BuildLayerFrameLayout { ...
SwipeBack
com.hannesdorfmann.swipeback
SwipeBack
54
10
94
68
0
162
1
0
0.255319
15
8
31
package com.hannesdorfmann.swipeback; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Rect; import android.graphics.drawable.Drawabl...
SwipeBack
com.hannesdorfmann.swipeback
SwipeBack.OnStateChangeListener
0
0
0
0
17
0
0
0
-1
0
0
33
package com.hannesdorfmann.swipeback; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Rect; import android.graphics.drawable.Drawabl...
SwipeBack
com.hannesdorfmann.swipeback
SwipeBack.OnInterceptMoveEventListener
0
0
0
0
14
0
0
0
-1
0
0
59
package com.hannesdorfmann.swipeback; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Rect; import android.graphics.drawable.Drawabl...
SwipeBack
com.hannesdorfmann.swipeback
SwipeBack.Type
0
0
0
0
7
0
0
0
-1
0
0
78
package com.hannesdorfmann.swipeback; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Rect; import android.graphics.drawable.Drawabl...
SwipeBack
com.hannesdorfmann.swipeback
ColorDrawable
5
0
12
11
111
17
0
0
0.25
1
0
26
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
SwipeBack
com.hannesdorfmann.swipeback
ColorDrawable.ColorState
3
0
0
0
20
0
0
0
-1
0
0
142
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
SwipeBack
com.hannesdorfmann.swipeback.interpolator
SmoothInterpolator
0
0
1
1
6
1
0
0
-1
0
0
5
package com.hannesdorfmann.swipeback.interpolator; import android.view.animation.Interpolator; public class SmoothInterpolator implements Interpolator { @Override public float getInterpolation(float t) { t -= 1.0f; return t * t * t * t * t + 1.0f; } }
SwipeBack
com.hannesdorfmann.swipeback.interpolator
PeekInterpolator
2
0
1
1
18
3
0
0
0
0
1
5
package com.hannesdorfmann.swipeback.interpolator; import android.view.animation.Interpolator; public class PeekInterpolator implements Interpolator { private static final String TAG = "PeekInterpolator"; private static final SinusoidalInterpolator SINUSOIDAL_INTERPOLATOR = new SinusoidalInterpolator(); ...
SwipeBack
com.hannesdorfmann.swipeback.interpolator
SinusoidalInterpolator
0
0
1
1
8
1
0
0
-1
1
0
5
package com.hannesdorfmann.swipeback.interpolator; import android.view.animation.Interpolator; /** * Interpolator which, when drawn from 0 to 1, looks like half a sine-wave. Used for smoother opening/closing when * peeking at the drawer. */ public class SinusoidalInterpolator implements Interpolator { @Overri...
SwipeBack
com.hannesdorfmann.swipeback.util
MathUtils
0
0
4
4
72
10
0
0
-1
3
0
3
package com.hannesdorfmann.swipeback.util; /** * Little helper class that provides some useful mathematical methods * * @author Hannes Dorfmann * */ public class MathUtils { /** * This method maps a number x, which is in the range [sourceStart, * sourceEnd], to a new range [targetStart, targetEnd] * ...
SwipeBack
com.hannesdorfmann.swipeback.transformer
SwipeBackTransformer
0
0
4
4
31
4
2
0
-1
1
1
8
package com.hannesdorfmann.swipeback.transformer; import android.app.Activity; import android.view.View; import com.hannesdorfmann.swipeback.SwipeBack; /** * A {@link SwipeBackTransformer} is responsible to manipulate the * swipe back view according to its current state (opening or closing) * {@link #onSwiping(co...
SwipeBack
com.hannesdorfmann.swipeback.transformer
SlideSwipeBackTransformer
3
0
4
4
33
6
0
1
0.5
0
2
13
package com.hannesdorfmann.swipeback.transformer; import android.annotation.SuppressLint; import android.app.Activity; import android.os.Build; import android.view.View; import android.widget.TextView; import com.hannesdorfmann.swipeback.R; import com.hannesdorfmann.swipeback.SwipeBack; import com.hannesdorfmann.swip...
SwipeBack
com.hannesdorfmann.swipeback.transformer
DefaultSwipeBackTransformer
3
0
4
4
30
6
0
1
0.5
0
2
13
package com.hannesdorfmann.swipeback.transformer; import android.annotation.SuppressLint; import android.app.Activity; import android.os.Build; import android.view.View; import android.widget.TextView; import com.hannesdorfmann.swipeback.R; import com.hannesdorfmann.swipeback.SwipeBack; import com.hannesdorfmann.swip...
SwipeBack
com.hannesdorfmann.swipeback.view
VerticalTextView
1
0
3
1
36
5
0
0
0.666667
0
0
12
package com.hannesdorfmann.swipeback.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.text.TextPaint; import android.util.AttributeSet; import android.util.Log; import android.view.Gravity; import android.widget.TextView; /** * Created by Hannes Dorf...
Tingle
(default package)
ApkSig
2
0
3
1
120
20
0
0
1
0
0
12
import java.io.IOException; import java.io.InputStream; import java.lang.ref.WeakReference; import java.security.Signature; import java.security.cert.*; import java.util.Enumeration; import java.util.jar.JarEntry; import java.util.jar.JarFile; import java.util.logging.Level; import java.util.logging.Logger; public cla...
yahoofinance-api
yahoofinance
FxQuoteRequestTest
0
0
2
2
30
2
0
0
-1
0
4
14
package yahoofinance; import org.junit.Test; import yahoofinance.mock.MockedServersTest; import yahoofinance.quotes.fx.FxQuote; import yahoofinance.quotes.fx.FxSymbols; import java.io.IOException; import java.math.BigDecimal; import java.util.Map; import static org.junit.Assert.*; /** * * @author Stijn Strickx *...
yahoofinance-api
yahoofinance
HistoricalQuoteRequestTest
2
0
7
7
107
8
0
0
0.285714
0
5
17
package yahoofinance; import org.junit.Before; import org.junit.Test; import yahoofinance.histquotes.HistoricalQuote; import yahoofinance.histquotes.Interval; import yahoofinance.mock.MockedServersTest; import java.io.IOException; import java.math.BigDecimal; import java.util.Calendar; import java.util.List; import j...
yahoofinance-api
yahoofinance
QuoteRequestFlowTest
0
0
4
4
47
4
0
0
-1
0
2
13
package yahoofinance; import org.junit.Test; import yahoofinance.mock.MockedServersTest; import java.io.IOException; import java.math.BigDecimal; import java.util.Calendar; import java.util.Map; import static org.junit.Assert.*; /** * * @author Stijn Strickx */ public class QuoteRequestFlowTest extends MockedSer...
yahoofinance-api
yahoofinance
SimpleQuoteRequestTest
0
0
3
3
111
3
0
0
-1
0
2
14
package yahoofinance; import org.junit.Test; import yahoofinance.mock.MockedServersTest; import java.io.IOException; import java.math.BigDecimal; import java.util.Calendar; import java.util.TimeZone; import static org.junit.Assert.*; /** * * @author Stijn Strickx */ public class SimpleQuoteRequestTest extends M...
yahoofinance-api
yahoofinance
Utils
5
4
19
16
304
56
0
0
0.263158
14
1
18
package yahoofinance; import java.io.UnsupportedEncodingException; import java.math.BigDecimal; import java.math.RoundingMode; import java.net.URLEncoder; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Locale; import java.util.Map; import java.util.Map.E...
yahoofinance-api
yahoofinance
YahooFinance
20
20
19
16
249
28
0
0
0.105263
15
8
17
package yahoofinance; import java.io.IOException; import java.util.Calendar; import java.util.HashMap; import java.util.List; import java.util.Map; import yahoofinance.histquotes.HistQuotesRequest; import yahoofinance.histquotes.Interval; import yahoofinance.quotes.fx.FxQuote; import yahoofinance.quotes.csv.FxQuotesRe...
yahoofinance-api
yahoofinance
Stock
11
0
36
35
347
49
0
0
0
6
12
26
package yahoofinance; import java.io.IOException; import java.lang.reflect.Field; import java.util.Calendar; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import yahoofinance.histquotes.HistQuotesRequest; import yahoofinance.histquotes.HistoricalQuote; import yahoofinance.histquotes...
yahoofinance-api
yahoofinance.mock
MockedServersTest
4
2
1
1
33
2
0
0
0
2
1
13
package yahoofinance.mock; import okhttp3.mockwebserver.Dispatcher; import okhttp3.mockwebserver.MockWebServer; import org.junit.BeforeClass; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import yahoofinance.YahooFinance; import java.io.IOException; /** * * @author Stijn Strickx */ public class Mocked...
yahoofinance-api
yahoofinance.mock
YahooFinanceDispatcher
2
0
3
2
35
5
0
0
0
1
0
18
package yahoofinance.mock; import com.google.common.base.Charsets; import com.google.common.io.Resources; import okhttp3.mockwebserver.Dispatcher; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.RecordedRequest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.yaml.snakeyaml...
yahoofinance-api
yahoofinance.mock
ResponseResource
3
0
3
3
26
3
0
0
0
0
0
13
package yahoofinance.mock; import com.google.common.base.Charsets; import com.google.common.io.Resources; import okhttp3.mockwebserver.MockResponse; import java.io.IOException; import java.net.URL; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * * @author Stijn Strickx */ public class ResponseReso...
yahoofinance-api
yahoofinance.histquotes
HistoricalQuote
8
0
19
19
89
19
0
0
0.105263
4
0
8
package yahoofinance.histquotes; import java.math.BigDecimal; import java.text.SimpleDateFormat; import java.util.Calendar; /** * All getters can return null in case the data is not available from Yahoo Finance. * * @author Stijn Strickx */ public class HistoricalQuote { private String symbol; ...
yahoofinance-api
yahoofinance.histquotes
Interval
1
0
0
0
11
0
0
0
-1
6
0
4
package yahoofinance.histquotes; /** * * @author Stijn Strickx */ public enum Interval { DAILY("d"), WEEKLY("w"), MONTHLY("m"); private final String tag; Interval(String tag) { this.tag = tag; } public String getTag() { return this.tag; } }
yahoofinance-api
yahoofinance.histquotes
HistQuotesRequest
8
3
9
7
89
11
0
0
0
2
5
22
package yahoofinance.histquotes; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.LinkedHashMap; import java.util.List; import j...
yahoofinance-api
yahoofinance.query2v8
HistQuotesQuery2V8Request
9
3
9
8
109
13
0
0
0
0
5
29
package yahoofinance.query2v8; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; import java.net.URL; import java.net.URLConnection; import java.net.URLEncoder; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import j...
yahoofinance-api
yahoofinance.util
RedirectableRequest
4
0
12
12
0
19
0
0
0
8
0
8
package yahoofinance.util; import java.io.IOException; import java.net.*; import java.util.HashMap; import java.util.Map; /** * * @author Stijn Strickx */ public class RedirectableRequest { private URL request; private int protocolRedirectLimit; private int connectTimeout = 10000; private int rea...
yahoofinance-api
yahoofinance.quotes.query1v7
FxQuotesQuery1V7Request
0
0
2
1
13
2
0
1
-1
1
1
9
package yahoofinance.quotes.query1v7; import com.fasterxml.jackson.databind.JsonNode; import yahoofinance.Utils; import yahoofinance.quotes.fx.FxQuote; import java.math.BigDecimal; /** * * @author Stijn Strickx */ public class FxQuotesQuery1V7Request extends QuotesRequest<FxQuote> { public FxQuotesQuery1V7Re...
yahoofinance-api
yahoofinance.quotes.query1v7
StockQuotesQuery1V7Request
1
0
6
1
93
15
0
1
0.333333
2
6
15
package yahoofinance.quotes.query1v7; import com.fasterxml.jackson.databind.JsonNode; import yahoofinance.Stock; import yahoofinance.Utils; import yahoofinance.exchanges.ExchangeTimeZone; import yahoofinance.quotes.stock.StockDividend; import yahoofinance.quotes.stock.StockQuote; import yahoofinance.quotes.stock.Stock...
yahoofinance-api
yahoofinance.quotes.query1v7
QuotesRequest
3
0
5
4
52
8
2
0
0
0
3
20
package yahoofinance.quotes.query1v7; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import yahoofinance.Utils; import yahoofinance.YahooFinance; import yahoofinance.util.RedirectableRequest; import java.io.I...
yahoofinance-api
yahoofinance.quotes.fx
FxQuote
2
0
8
8
47
9
0
0
0
1
1
9
package yahoofinance.quotes.fx; import yahoofinance.quotes.csv.FxQuotesRequest; import java.io.IOException; import java.math.BigDecimal; /** * * @author Stijn Strickx */ public class FxQuote { private String symbol; private BigDecimal price; public FxQuote(String symbol) { this.symb...
yahoofinance-api
yahoofinance.quotes.fx
FxSymbols
89
89
0
0
94
0
0
0
-1
1
0
3
package yahoofinance.quotes.fx; /** * * @author Stijn Strickx */ public class FxSymbols { public static final String USDGBP = "USDGBP=X"; public static final String USDEUR = "USDEUR=X"; public static final String USDAUD = "USDAUD=X"; public static final String USDCHF = "USDCHF=X"; public st...
yahoofinance-api
yahoofinance.quotes.csv
FxQuotesRequest
1
1
2
1
20
3
0
1
1
2
3
10
package yahoofinance.quotes.csv; import java.util.ArrayList; import java.util.List; import yahoofinance.Utils; import yahoofinance.YahooFinance; import yahoofinance.quotes.fx.FxQuote; /** * * @author Stijn Strickx */ public class FxQuotesRequest extends QuotesRequest<FxQuote> { public static final List<Q...
yahoofinance-api
yahoofinance.quotes.csv
StockQuotesData
1
0
6
6
83
7
0
0
0
2
8
10
package yahoofinance.quotes.csv; import yahoofinance.Stock; import yahoofinance.Utils; import yahoofinance.exchanges.ExchangeTimeZone; import yahoofinance.quotes.stock.StockDividend; import yahoofinance.quotes.stock.StockQuote; import yahoofinance.quotes.stock.StockStats; /** * * @author Stijn Strickx */ public cl...
yahoofinance-api
yahoofinance.quotes.csv
StockQuotesRequest
1
1
2
1
143
10
0
1
1
3
2
6
package yahoofinance.quotes.csv; import java.util.ArrayList; import java.util.List; /** * * @author Stijn Strickx */ public class StockQuotesRequest extends QuotesRequest<StockQuotesData> { /** * Yahoo Finance is responding with formatted numbers in some cases. Because * of this, those number may co...
yahoofinance-api
yahoofinance.quotes.csv
QuotesRequest
3
0
8
6
69
12
2
0
0
0
3
20
package yahoofinance.quotes.csv; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org...
yahoofinance-api
yahoofinance.quotes.csv
QuotesProperty
1
0
0
0
11
0
0
0
-1
3
0
3
package yahoofinance.quotes.csv; /** * * @author Stijn Strickx */ public enum QuotesProperty { AfterHoursChangeRealtime("c8"), // After Hours Change (Realtime) AnnualizedGain("g3"), // Annualized Gain Ask("a"), // Ask AskRealtime("b2"), // Ask (Realtime) AskSize("a5"), // Ask Size ...
yahoofinance-api
yahoofinance.quotes.stock
StockQuote
21
0
54
54
249
59
0
0
0.222222
3
1
9
package yahoofinance.quotes.stock; import java.math.BigDecimal; import java.util.Calendar; import java.util.TimeZone; import yahoofinance.Utils; /** * All getters can return null in case the data is not available from Yahoo Finance. * * @author Stijn Strickx */ public class StockQuote { private final S...
yahoofinance-api
yahoofinance.quotes.stock
StockStats
19
0
40
40
149
41
0
0
0.4
3
1
9
package yahoofinance.quotes.stock; import java.math.BigDecimal; import java.util.Calendar; import yahoofinance.Utils; /** * All getters can return null in case the data is not available from Yahoo Finance. * * @author Stijn Strickx */ public class StockStats { private final String symbol; pri...
yahoofinance-api
yahoofinance.quotes.stock
StockDividend
5
0
12
12
63
15
0
0
0
3
0
7
package yahoofinance.quotes.stock; import java.math.BigDecimal; import java.util.Calendar; /** * All getters can return null in case the data is not available from Yahoo Finance. * * @author Stijn Strickx */ public class StockDividend { private final String symbol; private Calendar payDate; ...
yahoofinance-api
yahoofinance.exchanges
ExchangeTimeZone
3
2
2
2
173
5
0
0
0
2
0
11
package yahoofinance.exchanges; import java.util.HashMap; import java.util.Map; import java.util.TimeZone; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * * @author Stijn Strickx */ public class ExchangeTimeZone { private static final Logger log = LoggerFactory.getLogger(ExchangeTimeZone.clas...
yahoofinance-api
yahoofinance.histquotes2
HistQuotes2Request
8
3
12
10
95
14
0
0
0
1
8
20
package yahoofinance.histquotes2; import yahoofinance.Utils; import yahoofinance.YahooFinance; import yahoofinance.histquotes.HistoricalQuote; import yahoofinance.histquotes.Interval; import yahoofinance.util.RedirectableRequest; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamRea...
yahoofinance-api
yahoofinance.histquotes2
HistoricalSplit
4
0
12
12
53
12
0
0
0.166667
1
0
8
package yahoofinance.histquotes2; import java.math.BigDecimal; import java.math.RoundingMode; import java.text.SimpleDateFormat; import java.util.Calendar; /** * All getters can return null in case the data is not available from Yahoo Finance. * * @author Randle McMurphy */ public class HistoricalSplit { p...
yahoofinance-api
yahoofinance.histquotes2
IntervalMapper
0
0
1
1
16
4
0
0
-1
1
2
5
package yahoofinance.histquotes2; import yahoofinance.histquotes.Interval; /** * * @author Stijn Strickx */ public class IntervalMapper { public static QueryInterval get(Interval interval) { switch(interval) { case DAILY: return QueryInterval.DAILY; case WEEKLY: return QueryInt...
yahoofinance-api
yahoofinance.histquotes2
CrumbManager
3
0
5
3
143
24
0
0
0
3
2
27
package yahoofinance.histquotes2; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.CookieHandler; import java.net.CookieManager; import java.net.CookieStore; import java.net.HttpCookie; import java.net.HttpURLConnection; imp...