text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```java
package com.wooplr.spotlight.target;
import android.graphics.Point;
import android.graphics.Rect;
import android.view.View;
/**
* Created by jitender on 10/06/16.
*/
public class ViewTarget implements Target {
private View view;
public ViewTarget(View view) {
this.view = view;
}
... | /content/code_sandbox/Spotlight-library/src/main/java/com/wooplr/spotlight/target/ViewTarget.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 328 |
```java
package com.wooplr.spotlight.shape;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Point;
import com.wooplr.spotlight.target.Target;
/**
* Created by jitender on 10/06/16.
*/
public class Circle {
private Target target;
private int radius;
private Point... | /content/code_sandbox/Spotlight-library/src/main/java/com/wooplr/spotlight/shape/Circle.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 323 |
```java
package com.wooplr.spotlight.shape;
import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.animation.ValueAnimator;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import andro... | /content/code_sandbox/Spotlight-library/src/main/java/com/wooplr/spotlight/shape/NormalLineAnimDrawable.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 1,599 |
```java
package com.wooplr.spotlight.utils;
import android.content.res.Resources;
/**
* Created by jitender on 10/06/16.
*/
public class Utils {
public static int pxToDp(int px) {
return (int) (px / Resources.getSystem().getDisplayMetrics().density);
}
public static int dpToPx(int dp) {
... | /content/code_sandbox/Spotlight-library/src/main/java/com/wooplr/spotlight/utils/Utils.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 99 |
```java
package com.wooplr.spotlight.utils;
/**
* Created by Carlos Reyna on 30/07/16.
*/
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.Vi... | /content/code_sandbox/Spotlight-library/src/main/java/com/wooplr/spotlight/utils/SpotlightSequence.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 1,215 |
```java
package com.wooplr.spotlight.utils;
/**
* Created by jitender on 10/06/16.
*/
public interface SpotlightListener {
void onUserClicked(String spotlightViewId);
}
``` | /content/code_sandbox/Spotlight-library/src/main/java/com/wooplr/spotlight/utils/SpotlightListener.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 43 |
```java
package com.wooplr.spotlight.prefs;
import android.content.Context;
import android.content.SharedPreferences;
public class PreferencesManager {
private static final String PREFERENCES_NAME = "spotlight_view_preferences";
private SharedPreferences sharedPreferences;
public PreferencesManager(Con... | /content/code_sandbox/Spotlight-library/src/main/java/com/wooplr/spotlight/prefs/PreferencesManager.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 150 |
```java
package com.wooplr.spotlight;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="path_to_url">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorre... | /content/code_sandbox/Spotlight-library/src/test/java/com/wooplr/spotlight/ExampleUnitTest.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 90 |
```java
package com.wooplr.spotlight;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.filters.MediumTest;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
... | /content/code_sandbox/Spotlight-library/src/androidTest/java/com/wooplr/spotlight/ExampleInstrumentationTest.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 164 |
```java
package com.example.spotlight;
import android.content.Context;
import android.graphics.Typeface;
import java.util.HashMap;
import java.util.Map;
/**
* Adapted from github.com/romannurik/muzei/
* <p/>
* Also see path_to_url
*/
public class FontUtil {
private FontUtil() {
}
private static fin... | /content/code_sandbox/app/src/main/java/com/example/spotlight/FontUtil.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 170 |
```java
package com.wooplr.spotlight;
import android.animation.Animator;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphic... | /content/code_sandbox/Spotlight-library/src/main/java/com/wooplr/spotlight/SpotlightView.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 8,475 |
```java
package com.example.spotlight;
import android.content.res.Configuration;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import androi... | /content/code_sandbox/app/src/main/java/com/example/spotlight/MainActivity.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 1,356 |
```java
package com.example.spotlight;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="path_to_url">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorr... | /content/code_sandbox/app/src/test/java/com/example/spotlight/ExampleUnitTest.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 87 |
```java
package com.example.spotlight;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.filters.MediumTest;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**... | /content/code_sandbox/app/src/androidTest/java/com/example/spotlight/ExampleInstrumentationTest.java | java | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 157 |
```qmake
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/JVillella/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more detail... | /content/code_sandbox/greedo-layout/proguard-rules.pro | qmake | 2016-02-05T20:57:07 | 2024-06-26T02:59:30 | greedo-layout-for-android | 500px/greedo-layout-for-android | 1,638 | 142 |
```java
package com.fivehundredpx.greedolayout;
/**
* Created by Julian Villella on 16-02-23.
*/
public class Size {
int mWidth;
int mHeight;
public Size(int width, int height) {
mWidth = width;
mHeight = height;
}
public int getWidth() {
return mWidth;
}
public... | /content/code_sandbox/greedo-layout/src/main/java/com/fivehundredpx/greedolayout/Size.java | java | 2016-02-05T20:57:07 | 2024-06-26T02:59:30 | greedo-layout-for-android | 500px/greedo-layout-for-android | 1,638 | 94 |
```java
package com.fivehundredpx.greedolayout;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Julian Villella on 15-08-24.
*/
public class GreedoLayoutSizeCalculator {
public interface SizeCalculatorDelegate {
double aspectRatioForIndex(int index);
}
private static final ... | /content/code_sandbox/greedo-layout/src/main/java/com/fivehundredpx/greedolayout/GreedoLayoutSizeCalculator.java | java | 2016-02-05T20:57:07 | 2024-06-26T02:59:30 | greedo-layout-for-android | 500px/greedo-layout-for-android | 1,638 | 2,028 |
```java
package com.fivehundredpx.greedolayout;
import android.graphics.Rect;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
/**
* Created by Julian Villella on 15-07-30.
*/
public class GreedoSpacingItemDecoration extends RecyclerView.ItemDecoration {
private static final String T... | /content/code_sandbox/greedo-layout/src/main/java/com/fivehundredpx/greedolayout/GreedoSpacingItemDecoration.java | java | 2016-02-05T20:57:07 | 2024-06-26T02:59:30 | greedo-layout-for-android | 500px/greedo-layout-for-android | 1,638 | 583 |
```java
package com.fivehundredpx.greedolayout;
import android.util.Log;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.fivehundredpx.greedolayout.GreedoLayoutSizeCalculator.Siz... | /content/code_sandbox/greedo-layout/src/main/java/com/fivehundredpx/greedolayout/GreedoLayoutManager.java | java | 2016-02-05T20:57:07 | 2024-06-26T02:59:30 | greedo-layout-for-android | 500px/greedo-layout-for-android | 1,638 | 3,907 |
```java
package com.fivehundredpx.greedo_layout_sample;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.ToggleButton;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import com.fiv... | /content/code_sandbox/greedo-layout-sample/src/main/java/com/fivehundredpx/greedo_layout_sample/SampleActivity.java | java | 2016-02-05T20:57:07 | 2024-06-26T02:59:30 | greedo-layout-for-android | 500px/greedo-layout-for-android | 1,638 | 321 |
```java
package com.fivehundredpx.greedo_layout_sample;
import android.app.ActivityManager;
import android.app.Application;
import com.squareup.picasso.LruCache;
import com.squareup.picasso.Picasso;
import static android.content.pm.ApplicationInfo.FLAG_LARGE_HEAP;
import static android.os.Build.VERSION.SDK_INT;
impo... | /content/code_sandbox/greedo-layout-sample/src/main/java/com/fivehundredpx/greedo_layout_sample/App.java | java | 2016-02-05T20:57:07 | 2024-06-26T02:59:30 | greedo-layout-for-android | 500px/greedo-layout-for-android | 1,638 | 259 |
```java
package com.fivehundredpx.greedo_layout_sample;
import android.content.Context;
import android.graphics.BitmapFactory;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.recyclerview.widget.RecyclerView;
import com.fivehundredpx.greedolayout.GreedoLayoutSizeCalculator.SizeCalcula... | /content/code_sandbox/greedo-layout-sample/src/main/java/com/fivehundredpx/greedo_layout_sample/PhotosAdapter.java | java | 2016-02-05T20:57:07 | 2024-06-26T02:59:30 | greedo-layout-for-android | 500px/greedo-layout-for-android | 1,638 | 552 |
```java
package com.fivehundredpx.greedo_layout_sample;
import android.content.Context;
import android.util.TypedValue;
/**
* Created by Julian Villella on 15-08-05.
*/
public class MeasUtils {
public static int pxToDp(int px, Context context) {
return (int)TypedValue.applyDimension(TypedValue.COMPLEX_U... | /content/code_sandbox/greedo-layout-sample/src/main/java/com/fivehundredpx/greedo_layout_sample/MeasUtils.java | java | 2016-02-05T20:57:07 | 2024-06-26T02:59:30 | greedo-layout-for-android | 500px/greedo-layout-for-android | 1,638 | 134 |
```java
package com.fivehundredpx.greedo_layout_sample;
import androidx.annotation.DrawableRes;
/**
* Created by Julian Villella on 16-02-24.
*/
public class Constants {
public static final @DrawableRes int[] IMAGES = new int[] {
R.drawable.photo_1,
R.drawable.photo_2,
R.draw... | /content/code_sandbox/greedo-layout-sample/src/main/java/com/fivehundredpx/greedo_layout_sample/Constants.java | java | 2016-02-05T20:57:07 | 2024-06-26T02:59:30 | greedo-layout-for-android | 500px/greedo-layout-for-android | 1,638 | 177 |
```python
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Author : XueWeiHan
# E-mail : 595666367@qq.com
# Date : 16/10/21 1:41
# Desc : HelloGitHub
"""
HelloGitHub
"""
from __future__ import print_function
import sys
import os
CONTENT_FLAG = '{{ hello_github_content }}'
NUM_FLAG = '{{ h... | /content/code_sandbox/script/make_content/make_content.py | python | 2016-05-04T06:24:11 | 2024-08-16T19:26:01 | HelloGitHub | 521xueweihan/HelloGitHub | 89,301 | 564 |
```python
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Author : XueWeiHan
# E-mail : 595666367@qq.com
# Date : 16/8/30 10:43
# Desc : Github Bot
import os
import logging
import smtplib
import datetime
from operator import itemgetter
from email.mime.text import MIMEText
from email.header impo... | /content/code_sandbox/script/github_bot/github_bot.py | python | 2016-05-04T06:24:11 | 2024-08-16T19:26:01 | HelloGitHub | 521xueweihan/HelloGitHub | 89,301 | 1,387 |
```javascript
// ==UserScript==
// @name GitHub
// @description GitHub
// @copyright 2016, (path_to_url
// @icon path_to_url
// @version 1.6.4
// @author
// @license MIT
// @homepageURL path_to_url
// @match path_to_url
// @match path_to_url
// @require path_... | /content/code_sandbox/main.js | javascript | 2016-01-21T15:31:55 | 2024-08-16T15:12:40 | github-hans | 52cik/github-hans | 1,646 | 1,979 |
```javascript
var I18N = {};
I18N.conf = {
/**
*
*/
rePageClass: /\b(vis-public|page-(dashboard|profile|account|new-repo|create-org)|homepage|signup|session-authentication|oauth)\b/,
/**
* pathname
*
* /notifications
* /watching
* /stars
* /issues
* /pu... | /content/code_sandbox/locals.js | javascript | 2016-01-21T15:31:55 | 2024-08-16T15:12:40 | github-hans | 52cik/github-hans | 1,646 | 12,817 |
```ruby
#
# Be sure to run `pod lib lint Pulley.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see path_to_url
#
Pod::Spec.new do |s|
s.name = 'Pulley'
s.version = ENV['LIB_V... | /content/code_sandbox/Pulley.podspec | ruby | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 390 |
```swift
// swift-tools-version:5.0
//
// Package.swift
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, c... | /content/code_sandbox/Package.swift | swift | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 436 |
```swift
//
// PulleyPassthroughScrollView.swift
// Pulley
//
// Created by Brendan Lee on 7/6/16.
//
import UIKit
protocol PulleyPassthroughScrollViewDelegate: AnyObject {
func shouldTouchPassthroughScrollView(scrollView: PulleyPassthroughScrollView, point: CGPoint) -> Bool
func viewToReceiveTouch(sc... | /content/code_sandbox/PulleyLib/PulleyPassthroughScrollView.swift | swift | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 229 |
```swift
//
// UIView+constrainToParent.swift
// Pulley
//
// Created by Mathew Polzin on 8/22/17.
//
import UIKit
extension UIView {
func constrainToParent() {
constrainToParent(insets: .zero)
}
func constrainToParent(insets: UIEdgeInsets) {
guard let parent = superview else ... | /content/code_sandbox/PulleyLib/UIView+constrainToParent.swift | swift | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 190 |
```swift
//
// UIViewController+PulleyViewController.swift
// Pulley
//
// Created by Guilherme Souza on 4/28/18.
//
import UIKit
public extension UIViewController {
/// If this viewController pertences to a PulleyViewController, return it.
var pulleyViewController: PulleyViewController? {
var pare... | /content/code_sandbox/PulleyLib/UIViewController+PulleyViewController.swift | swift | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 125 |
```swift
//
// PrimaryTransitionTargetViewController.swift
// Pulley
//
// Created by Brendan Lee on 7/8/16.
//
import UIKit
import Pulley
class PrimaryTransitionTargetViewController: UIViewController {
@IBAction func goBackButtonPressed(sender: AnyObject) {
// Uncomment the bellow code to create a se... | /content/code_sandbox/Pulley/PrimaryTransitionTargetViewController.swift | swift | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 203 |
```swift
//
// DrawerPreviewContentViewController.swift
// Pulley
//
// Created by Brendan Lee on 7/6/16.
//
import UIKit
import Pulley
class DrawerContentViewController: UIViewController {
// Pulley can apply a custom mask to the panel drawer. This variable toggles an example.
private var shouldDisplayCu... | /content/code_sandbox/Pulley/DrawerContentViewController.swift | swift | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 1,621 |
```swift
//
// ViewController.swift
// Pulley
//
// Created by Brendan Lee on 7/6/16.
//
import UIKit
import MapKit
import Pulley
class PrimaryContentViewController: UIViewController {
@IBOutlet var mapView: MKMapView!
@IBOutlet var controlsContainer: UIView!
@IBOutlet var temperatureLabel: UILabe... | /content/code_sandbox/Pulley/PrimaryContentViewController.swift | swift | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 802 |
```objective-c
#import <UIKit/UIKit.h>
//! Project version number for Pulley.
FOUNDATION_EXPORT double PulleyVersionNumber;
//! Project version string for Pulley.
FOUNDATION_EXPORT const unsigned char PulleyVersionString[];
// In this header, you should import all the public headers of your framework using statement... | /content/code_sandbox/Pulley/Pulley.h | objective-c | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 69 |
```swift
//
// CustomMaskExample.swift
// Pulley
//
// Created by Connor Power on 19.08.18.
//
import UIKit
struct CustomMaskExample {
// MARK: - Constants
private struct Constants {
static let cornerRadius: CGFloat = 8.0
static let cutoutDistanceFromEdge: CGFloat = 32.0
static le... | /content/code_sandbox/Pulley/CustomMaskExample.swift | swift | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 607 |
```swift
//
// AppDelegate.swift
// Pulley
//
// Created by Brendan Lee on 7/6/16.
//
import UIKit
import Pulley
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [U... | /content/code_sandbox/Pulley/AppDelegate.swift | swift | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 590 |
```swift
//
// PulleyViewController.swift
// Pulley
//
// Created by Brendan Lee on 7/6/16.
//
import UIKit
/**
* The base delegate protocol for Pulley delegates.
*/
@objc public protocol PulleyDelegate: AnyObject {
/** This is called after size changes, so if you care about the bottomSafeArea property... | /content/code_sandbox/PulleyLib/PulleyViewController.swift | swift | 2016-07-08T21:57:00 | 2024-08-10T19:44:06 | Pulley | 52inc/Pulley | 2,009 | 15,471 |
```qmake
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in D:\0_0DevTools\Android\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# ... | /content/code_sandbox/jgraph/proguard-rules.pro | qmake | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 143 |
```java
package com.jonas.jgraph.inter;
/**
* @author yun.
* @date 2016/7/17
* @des []
* @since [path_to_url
* <p><a href="path_to_url">github</a>
*/
public interface OnGraphItemListener {
void onItemClick(int position);
void onItemLongClick(int position);
}
``` | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/inter/OnGraphItemListener.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 78 |
```java
package com.jonas.jgraph.inter;
import com.jonas.jgraph.models.Jchart;
import java.util.List;
/**
* @author yun.
* @date 2016/6/8
* @des []
* @since [path_to_url
* <p><a href="path_to_url">github</a>
*/
public interface IChart {
/**
*
*/
public void cmdFill(Jchart... jcharts);
... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/inter/IChart.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 114 |
```java
package com.jonas.jgraph.graph;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphics.LinearGradient;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathMeasure;
import... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/graph/MultiGraph.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 6,962 |
```java
package com.jonas.jgraph.inter;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphic... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/inter/BaseGraph.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 7,930 |
```java
package com.jonas.jgraph.graph;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.LinearGradient;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PointF;
import android.graphics.RectF;
import android.graph... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/graph/LineChar.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 3,227 |
```java
package com.jonas.jgraph.graph;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.util.AttributeSe... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/graph/PieGraph.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 1,162 |
```java
package com.jonas.jgraph.graph;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.PointF;
import... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/graph/JcoolGraph.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 9,338 |
```java
package com.jonas.jgraph.models;
import java.util.Random;
/**
* @author yun.
* @date 2016/6/8
* @des [ ]
* @since [path_to_url
* <p><a href="path_to_url">github</a>
*/
public class Apiece {
/**
*
*/
private String describe;
/**
*
*/
private Float num;
/**
*... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/models/Apiece.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 514 |
```java
package com.jonas.jgraph.models;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PointF;
import android.graphics.RectF;
import a... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/models/Jchart.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 3,549 |
```java
package com.jonas.jgraph.graph;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.CornerPathEffect;
import android.graphics.DashPathEffect;
import android.graphics.Lin... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/graph/NChart.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 9,307 |
```java
package com.jonas.jgraph.models;
import android.graphics.Color;
import android.graphics.PointF;
import android.graphics.RectF;
/**
* @author yun.
* @date 2016/6/8
* @des []
* @since [path_to_url
* <p><a href="path_to_url">github</a>
*/
public class NExcel {
private float mWidth;//
private floa... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/models/NExcel.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 830 |
```java
package com.jonas.jgraph.utils;
import android.content.Context;
/**
* @author jiangzuyun.
* @date 2016/7/14
* @des []
* @since [/]
*/
public class MathHelper {
/**
* @param num
* @return num 5
*/
public static int getRound5(float num){
return ( (int)( num+2.5 ) )/5*5;
... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/utils/MathHelper.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 580 |
```java
package com.jonas.jgraph.utils;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PointF;
import android.graphics.RectF;
import android.support.annotation.NonNull;
import com.jonas.jgraph.models.Jchart;
/... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/utils/CalloutHelper.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 1,086 |
```java
package com.jonas.jgraph.utils;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PointF;
import android.support.annotation.Size;
import java.security.SecureRandom;
/**
* @author yun.
* @date 2016/7/13
* @des []
* @since [path_to_url
* <p... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/utils/DrawHelper.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 631 |
```java
package com.jonas.jgraph;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an And... | /content/code_sandbox/jgraph/src/androidTest/java/com/jonas/jgraph/ExampleInstrumentedTest.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 145 |
```java
package com.jonas.schart;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
``` | /content/code_sandbox/app/src/test/java/com/jonas/schart/ExampleUnitTest.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 72 |
```java
package com.jonas.jgraph.utils;
/*
* File Name: MyFlowLayout.java
* History:
* Created by mwqi on 2014-4-18
*/
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import java.util.ArrayList;
import java... | /content/code_sandbox/jgraph/src/main/java/com/jonas/jgraph/utils/FlowLayout.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 1,812 |
```java
package com.jonas.schart;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
public class EntActivity extends ListActivity {
String[] items = new String[]{"NChart", "Cha... | /content/code_sandbox/app/src/main/java/com/jonas/schart/EntActivity.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 184 |
```java
package com.jonas.schart;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.SeekBar;
import com.jonas.jgraph.graph.NChart;
import com.jonas.jgraph.models.NExcel;
import java.util.ArrayList;
import java.uti... | /content/code_sandbox/app/src/main/java/com/jonas/schart/MainActivity.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 830 |
```java
package com.jonas.schart;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AbsListView;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.CheckBox;
import android.... | /content/code_sandbox/app/src/main/java/com/jonas/schart/ChartActivity.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 1,736 |
```java
package com.jonas.schart;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="path_to_url">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
``` | /content/code_sandbox/app/src/androidTest/java/com/jonas/schart/ApplicationTest.java | java | 2016-05-07T12:57:27 | 2024-08-03T07:47:51 | Jgraph | 5hmlA/Jgraph | 1,290 | 60 |
```java
package easymvp.weaver;
import javax.inject.Inject;
import javax.inject.Provider;
import easymvp.annotation.Presenter;
import javassist.CannotCompileException;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtField;
import javassist.CtMethod;
import javassist.NotFoundException;
import ... | /content/code_sandbox/easymvp-weaver/src/main/java/easymvp/weaver/Dagger2Extension.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 910 |
```java
package easymvp.weaver;
import java.util.List;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtMethod;
import javassist.NotFoundException;
/**
* @author Saeed Masoumi (saeed@6thsolution.com)
*/
final class JavassistUtils {
static CtClass[] stringToCtClass(ClassPool pool, String... | /content/code_sandbox/easymvp-weaver/src/main/java/easymvp/weaver/JavassistUtils.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 320 |
```java
package easymvp;
import rx.Subscription;
import rx.subscriptions.CompositeSubscription;
/**
* A base class for implementing a {@link Presenter} with RxJava functionality.
*
* @author Saeed Masoumi (saeed@6thsolution.com)
*/
public abstract class RxPresenter<V> extends AbstractPresenter<V> {
private ... | /content/code_sandbox/easymvp-rx-api/src/main/java/easymvp/RxPresenter.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 138 |
```java
package easymvp.usecase;
import javax.annotation.Nullable;
import easymvp.executer.PostExecutionThread;
import easymvp.executer.UseCaseExecutor;
import rx.Completable;
/**
* Reactive version of a {@link UseCase}.
* <p>
* It's useful for use-cases without any response value.
*
* @param <Q> The request v... | /content/code_sandbox/easymvp-rx-api/src/main/java/easymvp/usecase/CompletableUseCase.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 270 |
```java
package easymvp.usecase;
import javax.annotation.Nullable;
import easymvp.executer.PostExecutionThread;
import easymvp.executer.UseCaseExecutor;
import rx.Scheduler;
/**
* Each {@code UseCase} of the system orchestrate the flow of data to and from the entities.
* <p>
* Outer layers of system can execute u... | /content/code_sandbox/easymvp-rx-api/src/main/java/easymvp/usecase/UseCase.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 402 |
```java
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*
*/
package easymvp.weaver;
import easymvp.annotation.ActivityView;
import easymvp.annotation.CustomView;
import easymvp.annotatio... | /content/code_sandbox/easymvp-weaver/src/main/java/easymvp/weaver/ViewDelegateBinder.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 3,224 |
```java
package easymvp.boundary;
import rx.functions.Func1;
/**
* {@code DataMapper} transforms entities from the format most convenient for the use cases, to the
* format most convenient for the presentation layer.
*
* @author Saeed Masoumi (saeed@6thsolution.com)
*/
public abstract class DataMapper<T, R> impl... | /content/code_sandbox/easymvp-rx-api/src/main/java/easymvp/boundary/DataMapper.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 84 |
```java
package easymvp.usecase;
import javax.annotation.Nullable;
import easymvp.executer.PostExecutionThread;
import easymvp.executer.UseCaseExecutor;
import rx.Observable;
/**
* Reactive version of a {@link UseCase}.
* <p>
* The presenter simply subscribes to {@link Observable} returned by the {@link #execute(... | /content/code_sandbox/easymvp-rx-api/src/main/java/easymvp/usecase/ObservableUseCase.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 325 |
```java
package easymvp.executer;
import rx.Scheduler;
/**
* When the use case execution is done in its executor thread, It's time to update UI on the Event
* Dispatch thread.
* <p>
* An implementation of this interface will change the execution context and update the UI.
*
* @author Saeed Masoumi (saeed@6thsol... | /content/code_sandbox/easymvp-rx-api/src/main/java/easymvp/executer/PostExecutionThread.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 94 |
```java
package easymvp.executer;
import rx.Scheduler;
/**
* Represents an asynchronous execution for {@link easymvp.usecase.UseCase}. It's useful to execute use cases out of
* the UI thread to prevent it from freezing.
*
* @author Saeed Masoumi (saeed@6thsolution.com)
*/
public interface UseCaseExecutor {
S... | /content/code_sandbox/easymvp-rx-api/src/main/java/easymvp/executer/UseCaseExecutor.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 83 |
```qmake
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/Saeed/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, s... | /content/code_sandbox/easymvp-test/proguard-rules.pro | qmake | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 141 |
```java
package com.sixthsolution.easymvp.test.usecase;
import easymvp.executer.PostExecutionThread;
import easymvp.executer.UseCaseExecutor;
import easymvp.usecase.ObservableUseCase;
import rx.Observable;
import rx.functions.Func0;
/**
* @author Saeed Masoumi (saeed@6thsolution.com)
*/
public class IsNumberOdd e... | /content/code_sandbox/easymvp-test/src/test/java/com/sixthsolution/easymvp/test/usecase/IsNumberOdd.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 182 |
```java
package com.sixthsolution.easymvp.test.usecase;
import org.junit.Before;
import org.junit.Test;
import easymvp.executer.PostExecutionThread;
import easymvp.executer.UseCaseExecutor;
import rx.Scheduler;
import rx.observers.TestSubscriber;
import rx.schedulers.Schedulers;
/**
* @author Saeed Masoumi (saeed@6... | /content/code_sandbox/easymvp-test/src/test/java/com/sixthsolution/easymvp/test/usecase/UseCaseTest.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 256 |
```java
package com.sixthsolution.easymvp.test;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.RelativeLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import easymvp.annotation.ActivityView;
import easym... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/SimpleAppCompatActivity.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 257 |
```java
package com.sixthsolution.easymvp.test;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import easymvp.annotation.FragmentView;
import easymvp.annotation.Presenter;
... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/SimpleFragment.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 265 |
```java
package com.sixthsolution.easymvp.test;
import android.util.Log;
import easymvp.AbstractPresenter;
/**
* @author Saeed Masoumi (saeed@6thsolution.com)
*/
public class TestPresenter extends AbstractPresenter<View1> {
private boolean isOnViewAttachedCalled = false;
private boolean isOnViewDetachedC... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/TestPresenter.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 254 |
```java
package com.sixthsolution.easymvp.test;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import com.sixthsolution.easymvp.test.di.ActivityComponent;
import com.sixthsolution.easymvp.test.di.CustomViewComponent;
import java... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/SimpleCustomViewWithDagger.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 337 |
```java
package com.sixthsolution.easymvp.test;
/**
* @author Saeed Masoumi (saeed@6thsolution.com)
*/
public interface View1 {
}
``` | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/View1.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 40 |
```java
package com.sixthsolution.easymvp.test;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.LinearLayout;
import com.sixthsolution.easymvp.test.di.ActivityComponent;
import com.sixthsolution.easy... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/AppCompatActivityWithMultiViewsWithDagger.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 565 |
```java
package com.sixthsolution.easymvp.test;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import easymvp.annotation.ActivityView;
import easymvp.annotation.Presenter;
import static junit.framework.Assert.assertFalse;
import static junit.fra... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/SimpleAppCompatActivityWithCustomView.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 247 |
```java
package com.sixthsolution.easymvp.test;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import easymvp.annotation.CustomView;
import easymvp.annotation.Presenter;
import easymvp.annotation.PresenterId;
import static junit... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/SimpleCustomView.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 266 |
```java
package com.sixthsolution.easymvp.test;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import easymvp.annotation.ActivityView;
import easymvp.annotation.Presenter;
import static junit.framework.Assert.assertFalse;
import static junit.fra... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/SimpleAppCompatActivityWithFragment.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 261 |
```java
package com.sixthsolution.easymvp.test;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.RelativeLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import easymvp.annotation.ActivityView;
import easymvp.annotation.Presen... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/SimpleActivity.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 277 |
```java
package com.sixthsolution.easymvp.test;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.LinearLayout;
import java.util.HashSet;
import java.util.Set;
import butterknife.BindView;
import butt... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/AppCompatActivityWithMultiViews.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 435 |
```java
package com.sixthsolution.easymvp.test.di;
import com.sixthsolution.easymvp.test.AppCompatActivityWithMultiViewsWithDagger;
import javax.inject.Singleton;
import dagger.Component;
/**
* @author Saeed Masoumi (s-masoumi@live.com)
*/
@Singleton
@Component
public interface ActivityComponent {
CustomView... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/di/ActivityComponent.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 97 |
```java
package com.sixthsolution.easymvp.test.di;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Scope;
/**
* @author Saeed Masoumi (s-masoumi@live.com)
*/
@Scope
@Retention(RetentionPolicy.RUNTIME)
public @interface CustomScope {
}
``` | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/di/CustomScope.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 72 |
```java
package com.sixthsolution.easymvp.test.di;
import com.sixthsolution.easymvp.test.TestPresenter;
import dagger.Module;
import dagger.Provides;
/**
* @author Saeed Masoumi (s-masoumi@live.com)
*/
@Module
public class CustomModule {
@CustomScope
@Provides
public TestPresenter providePresenter() {... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/di/CustomModule.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 91 |
```java
package com.sixthsolution.easymvp.test.di;
import com.sixthsolution.easymvp.test.SimpleCustomViewWithDagger;
import dagger.Subcomponent;
/**
* @author Saeed Masoumi (s-masoumi@live.com)
*/
@CustomScope
@Subcomponent(modules = CustomModule.class)
public interface CustomViewComponent {
void injectTo(Sim... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/di/CustomViewComponent.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 115 |
```java
package com.sixthsolution.easymvp.test.conductor;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import com.bluelinelabs.conductor.Conductor;
import com.bluelinelabs.con... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/conductor/ConductorActivity.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 233 |
```java
package com.sixthsolution.easymvp.test.conductor;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bluelinelabs.conductor.Controller;
/**
* @author Saeed Masoumi (s-masoumi@live.com)
*/
public class BaseContr... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/conductor/BaseController.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 103 |
```java
package com.sixthsolution.easymvp.test.conductor;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.sixthsolution.easymvp.test.R;
import com.sixthsolution.easymvp.test.TestPresenter;
import com.sixthsolution.easymv... | /content/code_sandbox/easymvp-test/src/main/java/com/sixthsolution/easymvp/test/conductor/TestController.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 314 |
```java
package com.sixthsolution.easymvp.test;
import android.support.test.filters.MediumTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static android.support.test.espres... | /content/code_sandbox/easymvp-test/src/androidTest/java/com/sixthsolution/easymvp/test/AppCompatActivityViewTest.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 204 |
```java
package com.sixthsolution.easymvp.test;
import android.support.test.filters.MediumTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static android.support.test.espres... | /content/code_sandbox/easymvp-test/src/androidTest/java/com/sixthsolution/easymvp/test/MultipleChildViewsTest.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 206 |
```java
package com.sixthsolution.easymvp.test;
import android.support.test.filters.MediumTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static android.support.test.espres... | /content/code_sandbox/easymvp-test/src/androidTest/java/com/sixthsolution/easymvp/test/ActivityViewTest.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 202 |
```java
package com.sixthsolution.easymvp.test;
import android.support.test.rule.ActivityTestRule;
import android.view.View;
import org.junit.Rule;
import org.junit.Test;
/**
* @author Saeed Masoumi (saeed@6thsolution.com)
*/
public class CustomViewTest {
@Rule
public ActivityTestRule<SimpleAppCompatActi... | /content/code_sandbox/easymvp-test/src/androidTest/java/com/sixthsolution/easymvp/test/CustomViewTest.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 129 |
```java
package com.sixthsolution.easymvp.test;
import android.support.test.filters.MediumTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static android.support.test.espres... | /content/code_sandbox/easymvp-test/src/androidTest/java/com/sixthsolution/easymvp/test/FragmentViewTest.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 234 |
```java
package com.sixthsolution.easymvp.test;
import android.support.test.filters.MediumTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static android.support.test.espres... | /content/code_sandbox/easymvp-test/src/androidTest/java/com/sixthsolution/easymvp/test/MultipleChildViewsTestWithDagger.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 215 |
```java
package com.sixthsolution.easymvp.test.conductor;
import android.support.test.filters.MediumTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import com.sixthsolution.easymvp.test.R;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner... | /content/code_sandbox/easymvp-test/src/androidTest/java/com/sixthsolution/easymvp/test/conductor/ConductorTest.java | java | 2016-04-18T07:36:33 | 2024-07-24T13:57:59 | EasyMVP | 6thsolution/EasyMVP | 1,296 | 219 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.