repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/settings/PreferenceActivity.java | /*
* Copyright (c) 2015 Oleksandr Tyshkovets <[email protected]>
*
* 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
*
* Un... | 5,992 | 34.252941 | 102 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/settings/PreferenceHeadersFragment.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 1,106 | 29.75 | 75 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/settings/TransactionsPreferenceFragment.java | /*
* Copyright (c) 2012 - 2015 Ngewi Fet <[email protected]>
*
* 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 ... | 5,798 | 38.719178 | 131 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/settings/dialog/DeleteAllAccountsConfirmationDialog.java | /*
* Copyright (c) 2013 Ngewi Fet <[email protected]>
*
* 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 applica... | 2,518 | 39.629032 | 120 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/settings/dialog/DeleteAllTransactionsConfirmationDialog.java | /*
* Copyright (c) 2013 - 2014 Ngewi Fet <[email protected]>
* Copyright (c) 2014 Yongxin Wang <[email protected]>
*
* 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.a... | 3,893 | 45.357143 | 127 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/settings/dialog/DeleteBookConfirmationDialog.java | /*
* Copyright (c) 2017 Àlex Magaz Graça <[email protected]>
*
* 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 req... | 2,449 | 37.28125 | 100 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/settings/dialog/DoubleConfirmationDialog.java | /*
* Copyright (c) 2017 Àlex Magaz Graça <[email protected]>
*
* 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 req... | 3,408 | 33.785714 | 97 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/settings/dialog/OwnCloudDialogFragment.java | package org.gnucash.android.ui.settings.dialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.DialogFragment;
import android.support.v4.content.ContextCompat;
import android.support.v7... | 10,357 | 39.147287 | 116 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/OnTransactionClickedListener.java | /*
* Copyright (c) 2012 Ngewi Fet <[email protected]>
*
* 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 applica... | 1,342 | 31.756098 | 80 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/OnTransferFundsListener.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 1,020 | 30.90625 | 81 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/ScheduledActionsActivity.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 4,228 | 33.104839 | 108 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/ScheduledActionsListFragment.java | /*
* Copyright (c) 2013 - 2015 Ngewi Fet <[email protected]>
*
* 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 ... | 27,019 | 40.826625 | 182 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/SplitEditorFragment.java | /*
* Copyright (c) 2014 - 2016 Ngewi Fet <[email protected]>
*
* 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 ... | 20,599 | 39.873016 | 121 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/TransactionDetailActivity.java | package org.gnucash.android.ui.transaction;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflate... | 8,545 | 38.748837 | 153 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/TransactionFormFragment.java | /*
* Copyright (c) 2012 - 2015 Ngewi Fet <[email protected]>
*
* 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 ... | 44,599 | 39.955005 | 141 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/TransactionsActivity.java | /*
* Copyright (c) 2012 - 2015 Ngewi Fet <[email protected]>
* Copyright (c) 2014 Yongxin Wang <[email protected]>
*
* 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.a... | 21,101 | 37.719266 | 141 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/TransactionsListFragment.java | /*
* Copyright (c) 2012 - 2014 Ngewi Fet <[email protected]>
*
* 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 ... | 13,647 | 34.26615 | 124 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/dialog/BulkMoveDialogFragment.java | /*
* Copyright (c) 2012 Ngewi Fet <[email protected]>
*
* 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 applica... | 6,164 | 34.028409 | 123 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/dialog/TransactionsDeleteConfirmationDialogFragment.java | /*
* Copyright (c) 2013 - 2014 Ngewi Fet <[email protected]>
* Copyright (c) 2014 Yongxin Wang <[email protected]>
*
* 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.a... | 4,826 | 47.27 | 132 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/transaction/dialog/TransferFundsDialogFragment.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 10,918 | 41.486381 | 111 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/AccountBalanceTask.java | /*
* Copyright (c) 2014 Ngewi Fet <[email protected]>
* Copyright (c) 2014 Yongxin Wang <[email protected]>
*
* 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.o... | 2,750 | 35.197368 | 83 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/CursorRecyclerAdapter.java | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Matthieu Harlé
*
* 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 us... | 12,618 | 33.290761 | 111 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/RecurrenceParser.java | /*
* Copyright (c) 2014 Ngewi Fet <[email protected]>
*
* 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 applica... | 5,001 | 35.779412 | 153 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/RecurrenceViewClickListener.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 2,670 | 38.279412 | 110 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/ScrollingFABBehavior.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 2,681 | 36.25 | 112 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/TaskDelegate.java | /*
* Copyright (c) 2014 Ngewi Fet <[email protected]>
*
* 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 applica... | 986 | 30.83871 | 95 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/dialog/DatePickerDialogFragment.java | /*
* Copyright (c) 2012 Ngewi Fet <[email protected]>
*
* 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 applica... | 2,550 | 30.109756 | 98 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/dialog/DateRangePickerDialogFragment.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 4,727 | 37.129032 | 134 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/dialog/TimePickerDialogFragment.java | /*
* Copyright (c) 2012 Ngewi Fet <[email protected]>
*
* 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 applica... | 2,597 | 29.564706 | 97 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/widget/CalculatorEditText.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 11,907 | 34.335312 | 130 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/widget/CalculatorKeyboard.java | /**
* Copyright 2013 Maarten Pennings extended by SimplicityApks
*
* Modified by:
* Copyright 2015 Àlex Magaz Graça <[email protected]>
* Copyright 2015 Ngewi Fet <[email protected]>
*
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... | 8,400 | 37.013575 | 148 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/widget/CheckableLinearLayout.java | /*
* Copyright (c) 2013 - 2014 Ngewi Fet <[email protected]>
*
* 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 ... | 4,089 | 33.661017 | 132 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/widget/EmptyRecyclerView.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 2,674 | 31.228916 | 92 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/widget/ReselectSpinner.java | package org.gnucash.android.ui.util.widget;
import android.content.Context;
import android.support.v7.widget.AppCompatSpinner;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AdapterView;
import org.gnucash.android.ui.export.ExportFormFragment;
/**
* Spinner which fires OnItemSelec... | 1,873 | 39.73913 | 117 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/util/widget/TransactionTypeSwitch.java | /*
* Copyright (c) 2014 Ngewi Fet <[email protected]>
*
* 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 applica... | 7,706 | 38.523077 | 135 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/wizard/CurrencySelectFragment.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 3,539 | 31.777778 | 134 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/wizard/CurrencySelectPage.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 1,664 | 29.833333 | 101 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/wizard/FirstRunWizardActivity.java | /*
* Copyright 2012 Roman Nurik
* Copyright 2012 Ngewi Fet
*
* 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 ... | 15,084 | 36.90201 | 127 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/wizard/FirstRunWizardModel.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 3,405 | 43.233766 | 144 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/wizard/WelcomePage.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 1,333 | 27.382979 | 75 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/ui/wizard/WelcomePageFragment.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 1,265 | 31.461538 | 103 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/util/AmountParser.java | package org.gnucash.android.util;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.ParseException;
import java.text.ParsePosition;
/**
* Parses amounts as String into BigDecimal.
*/
public class AmountParser {
/**
* Parses {@code amount} and retur... | 1,181 | 35.9375 | 86 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/util/BackupJob.java | /* Copyright (c) 2018 Àlex Magaz Graça <[email protected]>
*
* 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 requir... | 1,590 | 32.851064 | 75 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/util/BackupManager.java | /* Copyright (c) 2018 Àlex Magaz Graça <[email protected]>
*
* 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 requir... | 7,970 | 40.087629 | 127 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/util/BookUtils.java | package org.gnucash.android.util;
import android.support.annotation.NonNull;
import org.gnucash.android.app.GnuCashApplication;
import org.gnucash.android.ui.account.AccountsActivity;
/**
* Utility class for common operations involving books
*/
public class BookUtils {
/**
* Activates the book with uniq... | 954 | 28.84375 | 100 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/util/CommoditiesCursorAdapter.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 2,361 | 41.178571 | 124 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/util/FileUtils.java | package org.gnucash.android.util;
import android.support.annotation.NonNull;
import android.util.Log;
import org.gnucash.android.export.ExportAsyncTask;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.chann... | 3,072 | 34.321839 | 92 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/util/PreferencesHelper.java | /*
* Copyright (c) 2015 Alceu Rodrigues Neto <[email protected]>
*
* 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 requ... | 4,047 | 38.686275 | 112 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/util/QualifiedAccountNameCursorAdapter.java | /*
* Copyright (c) 2013 - 2014 Ngewi Fet <[email protected]>
*
* 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 ... | 3,753 | 38.515789 | 115 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/util/RecursiveMoveFiles.java | /*
* Copyright (c) 2016 Ngewi Fet <[email protected]>
*
* 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 applica... | 3,608 | 34.732673 | 124 | java |
gnucash-android | gnucash-android-master/app/src/main/java/org/gnucash/android/util/TimestampHelper.java | /*
* Copyright (c) 2016 Alceu Rodrigues Neto <[email protected]>
*
* 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 requ... | 3,777 | 36.405941 | 112 | java |
gnucash-android | gnucash-android-master/app/src/release/java/org/gnucash/android/app/StethoUtils.java | package org.gnucash.android.app;
import android.app.Application;
/**
* Dummy utility class for overriding Stetho initializing in release build variants
*/
public class StethoUtils {
public static void install(Application application) {
//nothing to see here, move along
//check the debug versio... | 368 | 22.0625 | 83 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/db/AccountsDbAdapterTest.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 23,111 | 41.959108 | 141 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/db/BooksDbAdapterTest.java | /*
* Copyright (c) 2016 Ngewi Fet <[email protected]>
*
* 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 applica... | 7,720 | 35.419811 | 131 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/db/BudgetsDbAdapterTest.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 6,861 | 38.66474 | 123 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/db/MigrationHelperTest.java | /*
* Copyright (c) 2016 Alceu Rodrigues Neto <[email protected]>
*
* 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 requ... | 2,744 | 42.571429 | 114 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/db/PriceDbAdapterTest.java | package org.gnucash.android.test.unit.db;
import org.gnucash.android.db.adapter.CommoditiesDbAdapter;
import org.gnucash.android.db.adapter.PricesDbAdapter;
import org.gnucash.android.model.Price;
import org.gnucash.android.test.unit.testutil.ShadowCrashlytics;
import org.gnucash.android.test.unit.testutil.ShadowUserV... | 2,478 | 40.316667 | 114 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/db/ScheduledActionDbAdapterTest.java | package org.gnucash.android.test.unit.db;
import android.content.res.Resources;
import org.gnucash.android.R;
import org.gnucash.android.app.GnuCashApplication;
import org.gnucash.android.db.adapter.ScheduledActionDbAdapter;
import org.gnucash.android.model.BaseModel;
import org.gnucash.android.model.PeriodType;
impo... | 5,796 | 45.007937 | 114 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/db/SplitsDbAdapterTest.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 4,719 | 36.165354 | 114 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/db/TransactionsDbAdapterTest.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 5,961 | 38.483444 | 125 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/export/BackupTest.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 2,881 | 34.580247 | 141 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/export/GncXmlHelperTest.java | /*
* Copyright (c) 2014 - 2015 Ngewi Fet <[email protected]>
*
* 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 ... | 2,231 | 32.313433 | 81 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/export/OfxExporterTest.java | /*
* Copyright (c) 2016 Àlex Magaz Graça <[email protected]>
*
* 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 req... | 4,446 | 40.560748 | 102 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/export/QifExporterTest.java | /*
* Copyright (c) 2016 Àlex Magaz Graça <[email protected]>
*
* 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 req... | 8,463 | 41.964467 | 105 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/importer/GncXmlHandlerTest.java | /*
* Copyright (c) 2016 Àlex Magaz Graça <[email protected]>
*
* 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 b... | 20,255 | 48.525672 | 114 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/model/AccountTest.java | /*
* Copyright (c) 2012 - 2014 Ngewi Fet <[email protected]>
*
* 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 ... | 3,386 | 32.205882 | 114 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/model/BudgetTest.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 7,213 | 37.57754 | 122 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/model/CommodityTest.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 1,603 | 31.08 | 75 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/model/MoneyTest.java | /*
* Copyright (c) 2012 Ngewi Fet <[email protected]>
*
* 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 applica... | 5,809 | 31.640449 | 114 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/model/PriceTest.java | /*
* Copyright (c) 2016 Àlex Magaz Graça <[email protected]>
*
* 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 b... | 3,311 | 32.795918 | 92 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/model/RecurrenceTest.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 3,102 | 34.261364 | 113 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/model/ScheduledActionTest.java | /*
* Copyright (c) 2015 Ngewi Fet <[email protected]>
*
* 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 applica... | 8,960 | 42.289855 | 118 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/model/SplitTest.java | package org.gnucash.android.test.unit.model;
import org.gnucash.android.model.Commodity;
import org.gnucash.android.model.Money;
import org.gnucash.android.model.Split;
import org.gnucash.android.model.Transaction;
import org.gnucash.android.model.TransactionType;
import org.gnucash.android.test.unit.testutil.ShadowCr... | 3,951 | 37.745098 | 128 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/model/TransactionTest.java | package org.gnucash.android.test.unit.model;
import org.gnucash.android.model.Commodity;
import org.gnucash.android.model.Money;
import org.gnucash.android.model.Split;
import org.gnucash.android.model.Transaction;
import org.gnucash.android.model.TransactionType;
import org.gnucash.android.test.unit.testutil.ShadowCr... | 4,311 | 38.559633 | 114 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/service/ScheduledActionServiceTest.java | /*
* Copyright (c) 2016 Ngewi Fet <[email protected]>
*
* 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 applica... | 22,945 | 45.638211 | 141 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/testutil/ShadowCrashlytics.java | package org.gnucash.android.test.unit.testutil;
import android.content.Context;
import com.crashlytics.android.Crashlytics;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
/**
* Shadow class for crashlytics to prevent logging during testing
*/
@Implements(Crashlytic... | 539 | 23.545455 | 65 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/testutil/ShadowUserVoice.java | package org.gnucash.android.test.unit.testutil;
import android.content.Context;
import com.uservoice.uservoicesdk.Config;
import com.uservoice.uservoicesdk.UserVoice;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
/**
* Shadow class for uservoice during testing
*/
... | 491 | 21.363636 | 60 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/util/AmountParserTest.java | package org.gnucash.android.test.unit.util;
import org.gnucash.android.util.AmountParser;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.math.BigDecimal;
import java.text.ParseException;
import java.util.Locale;
import static org.assertj.core.api.Assertions.assertThat;
public cl... | 1,710 | 28.5 | 91 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/util/PreferencesHelperTest.java | /*
* Copyright (c) 2016 Alceu Rodrigues Neto <[email protected]>
*
* 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 requ... | 1,977 | 39.367347 | 114 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/test/unit/util/TimestampHelperTest.java | /*
* Copyright (c) 2016 Alceu Rodrigues Neto <[email protected]>
*
* 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 requ... | 4,142 | 45.033333 | 114 | java |
gnucash-android | gnucash-android-master/app/src/test/java/org/gnucash/android/util/BackupManagerTest.java | package org.gnucash.android.util;
import org.gnucash.android.R;
import org.gnucash.android.app.GnuCashApplication;
import org.gnucash.android.db.adapter.BooksDbAdapter;
import org.gnucash.android.importer.GncXmlImporter;
import org.gnucash.android.test.unit.testutil.ShadowCrashlytics;
import org.gnucash.android.test.u... | 3,024 | 35.445783 | 131 | java |
train-ticket | train-ticket-master/old-docs/Json2Shiviz/src/main/java/org/services/analysis/AggregateAllCases.java | package org.services.analysis;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class AggregateAllCases {
private static String ROOT_DIR = "C:\\Users\\dingding\\Desktop\\faults\\F13\\step3_fault_shiviz_traces";
private static String SINGLEAGGREGATEFILENAME = "all.txt";
private s... | 2,875 | 36.842105 | 129 | java |
train-ticket | train-ticket-master/old-docs/Json2Shiviz/src/main/java/org/services/analysis/AggregateEachCase.java | package org.services.analysis;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class AggregateEachCase {
private static String ROOT_DIR = "C:\\Users\\dingding\\Desktop\\tse debug exp\\F20\\shiviz\\4 scope failure elements\\shiviz_trace";
private static String AGGREGATEFILENAME = "a... | 3,470 | 38.443182 | 136 | java |
train-ticket | train-ticket-master/old-docs/Json2Shiviz/src/main/java/org/services/analysis/App.java | /*
* This Java source file was generated by the Gradle 'init' task.
*/
package org.services.analysis;
public class App {
public String getGreeting() {
return "Hello world.";
}
// public static void main(String[] args) {
// System.out.println(new App().getGreeting());
// }
}
| 310 | 17.294118 | 65 | java |
train-ticket | train-ticket-master/old-docs/Json2Shiviz/src/main/java/org/services/analysis/CalculateEventAndNode.java | package org.services.analysis;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class CalculateEventAndNode {
private static String ROOT_DIR = "C:\... | 1,906 | 37.14 | 136 | java |
train-ticket | train-ticket-master/old-docs/Json2Shiviz/src/main/java/org/services/analysis/CallAnalysis.java | /*
* This Java source file was generated by the Gradle 'init' task.
*/
package org.services.analysis;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedH... | 6,693 | 33.153061 | 99 | java |
train-ticket | train-ticket-master/old-docs/Json2Shiviz/src/main/java/org/services/analysis/Clock.java | package org.services.analysis;
import java.util.HashMap;
/**
* Created by Administrator on 2017/7/18.
*/
public class Clock {
private String type;
private String host;
private String src;
private String traceId;
private String spanId;
private String parentId;
private HashMap<String,Int... | 1,505 | 25.892857 | 135 | java |
train-ticket | train-ticket-master/old-docs/Json2Shiviz/src/main/java/org/services/analysis/Span.java | package org.services.analysis;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
/**
* Created by Administrator on 2017/7/22.
*/
public class Span {
private String traceId;
private String spanId;
private String parentId;
private String spanname;
private List<String> ch... | 1,390 | 20.075758 | 82 | java |
train-ticket | train-ticket-master/old-docs/Json2Shiviz/src/main/java/org/services/analysis/Test.java | package org.services.analysis;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Test {
private static String SRC_DIR = "D:\\workspace\\microservice\\faults\\F1\\step2_fault_origin_traces";
public static void ... | 1,348 | 38.676471 | 320 | java |
train-ticket | train-ticket-master/old-docs/Json2Shiviz/src/main/java/org/services/analysis/TraceTranslator.java | package org.services.analysis;
///**
// * Created by hh on 2017-07-08.
// */
///**
// * Created by Administrator on 2017/7/11.
// */
import java.io.*;
import java.sql.Timestamp;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import org.json.JSO... | 55,100 | 43.90709 | 181 | java |
train-ticket | train-ticket-master/old-docs/Json2Shiviz/src/main/java/org/services/analysis/TraceTranslatorQueue.java | ///**
// * Created by hh on 2017-07-08.
// */
///**
// * Created by Administrator on 2017/7/11.
// */
//package org.services.analysis;
//
//import java.io.*;
//import java.util.*;
//import java.util.stream.Collectors;
//import org.json.JSONArray;
//import org.json.JSONException;
//import org.json.JSONObject;
//import o... | 45,307 | 43.463199 | 163 | java |
train-ticket | train-ticket-master/old-docs/Json2Shiviz/src/test/java/org/services/analysis/AppTest.java | /*
* This Java source file was generated by the Gradle 'init' task.
*/
//package org.services.analysis;
//
//
//import org.junit.Test;
//import static org.junit.Assert.*;
//
//public class AppTest {
// @Test public void testAppHasAGreeting() {
// App classUnderTest = new App();
// assertNotNull("app... | 389 | 21.941176 | 84 | java |
train-ticket | train-ticket-master/old-docs/Lib/ms-monitoring-core/src/main/java/org/myproject/ms/monitoring/ChainCallable.java |
package org.myproject.ms.monitoring;
import java.util.concurrent.Callable;
public class ChainCallable<V> implements Callable<V> {
private final Chainer tracer;
private final ItemNamer spanNamer;
private final Callable<V> delegate;
private final String name;
private final Item parent;
public ChainCallable(C... | 1,527 | 18.341772 | 95 | java |
train-ticket | train-ticket-master/old-docs/Lib/ms-monitoring-core/src/main/java/org/myproject/ms/monitoring/ChainKeys.java |
package org.myproject.ms.monitoring;
import java.util.Collection;
import java.util.LinkedHashSet;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties("spring.sleuth.keys")
public class ChainKeys {
private Http http = new Http();
private Message message = new Me... | 5,970 | 16.158046 | 75 | java |
train-ticket | train-ticket-master/old-docs/Lib/ms-monitoring-core/src/main/java/org/myproject/ms/monitoring/ChainRunnable.java |
package org.myproject.ms.monitoring;
public class ChainRunnable implements Runnable {
private static final String DEFAULT_SPAN_NAME = "async";
private final Chainer tracer;
private final ItemNamer spanNamer;
private final Runnable delegate;
private final String name;
private final Item parent;
public Ch... | 1,677 | 18.511628 | 92 | java |
train-ticket | train-ticket-master/old-docs/Lib/ms-monitoring-core/src/main/java/org/myproject/ms/monitoring/Chainer.java |
package org.myproject.ms.monitoring;
import java.util.concurrent.Callable;
public interface Chainer extends ItemAccessor {
Item createSpan(String name);
Item createSpan(String name, Item parent);
Item createSpan(String name, Sampler sampler);
Item continueSpan(Item span);
void addTag(String key... | 480 | 12 | 47 | java |
train-ticket | train-ticket-master/old-docs/Lib/ms-monitoring-core/src/main/java/org/myproject/ms/monitoring/DefaultItemNamer.java |
package org.myproject.ms.monitoring;
import org.springframework.core.annotation.AnnotationUtils;
public class DefaultItemNamer implements ItemNamer {
@Override
public String name(Object object, String defaultValue) {
ItemName annotation = AnnotationUtils
.findAnnotation(object.getClass(), ItemName.class);... | 767 | 27.444444 | 80 | java |
train-ticket | train-ticket-master/old-docs/Lib/ms-monitoring-core/src/main/java/org/myproject/ms/monitoring/Item.java |
package org.myproject.ms.monitoring;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashM... | 14,705 | 24.311532 | 98 | java |
train-ticket | train-ticket-master/old-docs/Lib/ms-monitoring-core/src/main/java/org/myproject/ms/monitoring/ItemAccessor.java |
package org.myproject.ms.monitoring;
public interface ItemAccessor {
Item getCurrentSpan();
boolean isTracing();
}
| 128 | 7.6 | 36 | java |
train-ticket | train-ticket-master/old-docs/Lib/ms-monitoring-core/src/main/java/org/myproject/ms/monitoring/ItemAdjuster.java |
package org.myproject.ms.monitoring;
public interface ItemAdjuster {
Item adjust(Item span);
}
| 102 | 9.3 | 36 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.