content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
package cm.aptoide.pt.editorial; import android.view.LayoutInflater; import android.view.ViewGroup; import androidx.recyclerview.widget.RecyclerView; import cm.aptoide.pt.R; import java.text.DecimalFormat; import java.util.List; import rx.subjects.PublishSubject; /** * Created by D01 on 28/08/2018. */ class Editor...
__label__POS
0.862651
package cm.aptoide.pt.editorial; import java.text.DecimalFormat; public class ViewsFormatter { private static final int NUMBER_OF_SUFFIXES = 2; public static String formatNumberOfViews(String views) { int length = views.length() / 4; if (length > NUMBER_OF_SUFFIXES) length = NUMBER_OF_SUFFIXES; doub...
__label__POS
0.995487
package com.example.android.architecture.blueprints.todoapp.test.chapter11.tests import com.example.android.architecture.blueprints.todoapp.test.BaseTest import com.example.android.architecture.blueprints.todoapp.test.chapter11.screens.ToDoListScreen import com.example.android.architecture.blueprints.todoapp.test.chap...
__label__POS
0.860913
package com.example.android.architecture.blueprints.todoapp.test.chapter11.tests import com.example.android.architecture.blueprints.todoapp.test.BaseTest import com.example.android.architecture.blueprints.todoapp.test.chapter11.screens.ToDoListScreen import com.example.android.architecture.blueprints.todoapp.test.chap...
__label__POS
0.804022
package cm.aptoide.pt.editorial import rx.Single class EditorialRepository(private val editorialService: EditorialService) { private var cachedEditorialViewModel: EditorialViewModel? = null fun loadEditorialViewModel(editorialLoadSource: EditorialLoadSource): Single<EditorialViewModel> { return if (cachedEd...
__label__POS
0.942261
/** * Copyright (c) 2005-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Eclipse Public License (EPL). * Please see the license.txt included with this distribution for details. * Any modifications to this file must keep this entire header intact. */ /* * Created on 13/07/2005 */...
__label__POS
0.89612
package cm.aptoide.pt.networking; import cm.aptoide.pt.dataprovider.ws.BodyInterceptor; import cm.aptoide.pt.dataprovider.ws.v3.BaseBody; import cm.aptoide.pt.preferences.AptoideMd5Manager; import rx.Single; import rx.schedulers.Schedulers; public class NoAuthenticationBodyInterceptorV3 implements BodyInterceptor<Bas...
__label__POS
0.963058
IDENTIFICATION DIVISION. PROGRAM-ID. Listing5-10. AUTHOR. Michael Coughlan. DATA DIVISION. WORKING-STORAGE SECTION. 01 PlayerGuess-A PIC 9 VALUE 1. 88 Rock-A VALUE 1. 88 Paper-A VALUE 2. 88 Scissors-A VALUE 3. 01 PlayerGuess-B PIC 9 VALUE 2. 88 Rock-B VALUE 1. 88 Paper-B ...
__label__POS
0.797689
package cm.aptoide.pt.networking; import cm.aptoide.pt.dataprovider.interfaces.TokenInvalidator; import java.io.IOException; import okhttp3.HttpUrl; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; public class Pnp1AuthorizationInterceptor implements Interceptor { public static final Str...
__label__POS
0.835432
IDENTIFICATION DIVISION. PROGRAM-ID. Listing15-6. AUTHOR. Michael Coughlan. DATA DIVISION. WORKING-STORAGE SECTION. 01 DateStr PIC X(15). 01 DateRec. 02 DayStr PIC XX. 02 MonthStr PIC XX. 02 YearStr PIC X(4). PROCEDURE DIVISION. Begin. *>Unstring example 2 MOVE "19-08-2012" TO DateStr. ...
__label__POS
0.628373
package cm.aptoide.pt.networking; public class Authentication { private final String email; private final String refreshToken; private final String accessToken; private final String password; private final String type; public Authentication(String email, String refreshToken, String accessToken, String pa...
__label__POS
0.98062
/** * Copyright (c) 2005-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Eclipse Public License (EPL). * Please see the license.txt included with this distribution for details. * Any modifications to this file must keep this entire header intact. */ /* * Created on 03/09/2005 */...
__label__POS
0.994871
package com.example.android.architecture.blueprints.todoapp.test.chapter15.drawablematchers import android.graphics.drawable.Drawable import android.support.test.InstrumentationRegistry import android.support.test.espresso.Espresso.onView import android.support.test.espresso.assertion.ViewAssertions.matches import and...
__label__POS
0.893444
package cm.aptoide.pt.networking; import android.accounts.AccountManager; import cm.aptoide.pt.account.AndroidAccountProvider; import rx.Completable; import rx.Single; public class AuthenticationPersistence { public static final String ACCOUNT_ACCESS_TOKEN = "access_token"; public static final String ACCOUNT_REF...
__label__POS
0.949499
package cm.aptoide.pt.networking; import android.text.TextUtils; import android.util.DisplayMetrics; import cm.aptoide.pt.crashreports.CrashReport; import java.io.IOException; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; public class UserAgentInterceptor implements Interceptor { pri...
__label__POS
0.700223
package cm.aptoide.pt.networking; import android.content.SharedPreferences; import android.text.TextUtils; import cm.aptoide.pt.dataprovider.NetworkOperatorManager; import cm.aptoide.pt.dataprovider.ws.BodyInterceptor; import cm.aptoide.pt.dataprovider.ws.v3.BaseBody; import cm.aptoide.pt.preferences.AptoideMd5Manager...
__label__POS
0.777157
package com.example.android.architecture.blueprints.todoapp.test.chapter2.screenshotwatcher; import android.graphics.Bitmap; import android.support.test.runner.screenshot.ScreenCapture; import android.support.test.runner.screenshot.Screenshot; import org.junit.rules.TestWatcher; import org.junit.runner.Description; ...
__label__POS
0.617646
package cm.aptoide.pt.networking; import cm.aptoide.pt.dataprovider.util.HashMapNotNull; import cm.aptoide.pt.dataprovider.ws.BodyInterceptor; import cm.aptoide.pt.dataprovider.ws.v7.store.RequestBodyFactory; import okhttp3.RequestBody; import rx.Single; import rx.schedulers.Schedulers; public class MultipartBodyInte...
__label__POS
0.84145
package com.example.android.architecture.blueprints.todoapp.test.chapter2.custommatchers; import android.graphics.Color; import com.example.android.architecture.blueprints.todoapp.R; import com.example.android.architecture.blueprints.todoapp.test.BaseTest; import org.junit.Test; import static android.support.test.e...
__label__POS
0.740088
package com.example.android.architecture.blueprints.todoapp.test.chapter2.custommatchers; import android.support.test.espresso.matcher.BoundedMatcher; import android.view.View; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.TextView; import com.example.android.architecture.b...
__label__POS
0.993223
package com.example.android.architecture.blueprints.todoapp.test.chapter2.custommatchers; import android.support.test.espresso.intent.Checks; import android.support.test.espresso.matcher.BoundedMatcher; import android.support.v7.widget.RecyclerView; import android.widget.TextView; import com.example.android.architect...
__label__POS
0.97045
package cm.aptoide.pt.editorialList; import cm.aptoide.pt.AppCoinsManager; import cm.aptoide.pt.reactions.ReactionsManager; import cm.aptoide.pt.reactions.network.LoadReactionModel; import cm.aptoide.pt.reactions.network.ReactionsResponse; import hu.akarnokd.rxjava.interop.RxJavaInterop; import java.util.List; import ...
__label__POS
0.795171
package cm.aptoide.pt.editorialList; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.implementation.navigation.NavigationTracker; import java.util.HashMap; import java.util.Map; import static cm.aptoide.analytics.AnalyticsManager.Action.OPEN; import static cm.aptoide.pt.editorial.EditorialAn...
__label__POS
0.922751
package com.example.android.architecture.blueprints.todoapp.test.chapter2.customswipe; import android.os.SystemClock; import android.support.test.espresso.UiController; import android.support.test.espresso.action.MotionEvents; import android.support.test.espresso.action.Swiper; import android.util.Log; import android....
__label__POS
0.745751
package com.example.android.architecture.blueprints.todoapp.test.chapter2.customactions; import android.support.test.espresso.ViewAction; import android.support.test.espresso.action.CoordinatesProvider; import android.support.test.espresso.action.GeneralLocation; import android.support.test.espresso.action.GeneralSwip...
__label__POS
0.84587
package cm.aptoide.pt.editorialList; import android.view.LayoutInflater; import android.view.ViewGroup; import androidx.recyclerview.widget.RecyclerView; import cm.aptoide.pt.R; import cm.aptoide.pt.bonus.BonusAppcModel; import cm.aptoide.pt.editorial.CaptionBackgroundPainter; import cm.aptoide.pt.home.bundles.base.Ho...
__label__POS
0.737642
using System.Linq; using SportsStore.Models; using Xunit; namespace SportsStore.Tests { public class CartTests { [Fact] public void Can_Add_New_Lines() { // Arrange - create some test products Product p1 = new Product { ProductID = 1, Name = "P1" }; Product p...
__label__POS
0.638653
using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.AspNetCore.Razor.TagHelpers; using Moq; using SportsStore.Infrastructure; using SportsStore.Models.ViewModels; using Xunit; namespace SportsStore.Tests { public ...
__label__POS
0.898823
using Microsoft.AspNetCore.Mvc; using Moq; using SportsStore.Controllers; using SportsStore.Models; using Xunit; namespace SportsStore.Tests { public class OrderControllerTests { [Fact] public void Cannot_Checkout_Empty_Cart() { // Arrange - create a mock repository Mock<...
__label__POS
0.610877
package cm.aptoide.pt.editorialList; import cm.aptoide.pt.reactions.data.TopReaction; import java.util.Collections; import java.util.List; public class CurationCard { private final String id; private final String subTitle; private final String icon; private final String title; private final String views; ...
__label__POS
0.681606
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Razor.TagHelpers; using SportsStore.Models.ViewModels; using System.Collections.Generic; namespace SportsStore.Infrastructure { ...
__label__POS
0.670637
package cm.aptoide.pt.editorialList; import java.util.ArrayList; import java.util.List; import rx.Single; public class EditorialCardListRepository { private final EditorialCardListService editorialCardListService; private EditorialCardListModel cachedEditorialCardListModel; public EditorialCardListRepository(...
__label__POS
0.993275
package cm.aptoide.pt.search import androidx.recyclerview.widget.DiffUtil import cm.aptoide.pt.search.model.SearchItem class SearchItemDiffCallback(private val oldSearchResultList: List<SearchItem>?, private val newSearchResultList: List<SearchItem>?) : DiffUtil.Callback() { overri...
__label__POS
0.967855
/***************************************************//** * @file FeatureFamilies.h * @date March 2017 * @author Ocean Optics, Inc. * * This provides a way to get references to different kinds * of features (e.g. spectrometer, TEC) generically. * * LICENSE: * * SeaBreeze Copyright (C) 2017, Ocean Optics...
__label__POS
0.943468
package cm.aptoide.pt.search; import android.content.Context; import android.database.Cursor; import android.database.MatrixCursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.cursoradap...
__label__POS
0.755925
using Microsoft.AspNetCore.Mvc; using SportsStore.Models; using System.Linq; namespace SportsStore.Controllers { public class OrderController : Controller { private IOrderRepository repository; private Cart cart; public OrderController(IOrderRepository repoService, Cart cartService) { ...
__label__POS
0.938334
using System.Linq; using Microsoft.AspNetCore.Mvc; using SportsStore.Models; using SportsStore.Models.ViewModels; namespace SportsStore.Controllers { public class CartController : Controller { private IProductRepository repository; private Cart cart; public CartController(IProductReposit...
__label__POS
0.7421
package cm.aptoide.pt.download; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.implementation.navigation.NavigationTracker; import java.util.HashMap; public class AppValidationAnalytics { public final static String INVALID_DOWNLOAD_PATH_EVENT = "Invalid_Download_Path"; private final An...
__label__POS
0.964624
package cm.aptoide.pt.download; import cm.aptoide.pt.database.room.RoomDownload; public class DownloadApkPathsProvider { private static final String UPDATE_ACTION = "?action=update"; private static final String INSTALL_ACTION = "?action=install"; private static final String DOWNGRADE_ACTION = "?action=downgrad...
__label__POS
0.954686
/** * Copyright (c) 2005-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Eclipse Public License (EPL). * Please see the license.txt included with this distribution for details. * Any modifications to this file must keep this entire header intact. */ /* * Author: atotic * Created...
__label__POS
0.999991
package cm.aptoide.pt.download; import cm.aptoide.pt.downloadmanager.Constants; import cm.aptoide.pt.install.InstallAnalytics; import java.io.IOException; import okhttp3.Headers; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; /** * Created by marcelobenites on 20/04/17. */ public class...
__label__POS
0.973105
package cm.aptoide.pt.download; import cm.aptoide.pt.downloadmanager.Constants; import cm.aptoide.pt.downloadmanager.FileDownloadCallback; import cm.aptoide.pt.downloadmanager.FileDownloader; import com.liulishuo.filedownloader.BaseDownloadTask; import rx.Completable; import rx.Observable; /** * Created by filipegon...
__label__POS
0.919656
package cm.aptoide.pt.download; import android.net.ConnectivityManager; import android.telephony.TelephonyManager; import androidx.annotation.NonNull; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.implementation.navigation.NavigationTracker; import cm.aptoide.analytics.implementation.naviga...
__label__POS
0.821537
package org.python.pydev.shared_ui.dialogs; import java.util.List; import org.eclipse.core.runtime.IStatus; import org.eclipse.jface.dialogs.IDialogSettings; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.LabelProvider; import org.eclipse.jface.window.Window; import org.eclipse.swt....
__label__POS
0.835517
package org.python.pydev.shared_ui.dialogs; import org.eclipse.jface.dialogs.IInputValidator; import org.eclipse.jface.dialogs.InputDialog; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.window.Window; import org.eclipse.swt.widgets.Shell; import org.python.pydev.shared_ui.EditorUtils; publi...
__label__POS
0.980811
package cm.aptoide.pt.download; import cm.aptoide.pt.downloadmanager.AppDownloadStatus.AppDownloadState; import cm.aptoide.pt.downloadmanager.FileDownloadCallback; import cm.aptoide.pt.downloadmanager.FileDownloadProgressResult; /** * Created by filipegoncalves on 8/29/18. */ public class FileDownloadTaskStatus im...
__label__POS
0.957986
package cm.aptoide.pt.download; import cm.aptoide.pt.downloadmanager.FileDownloadCallback; import cm.aptoide.pt.downloadmanager.FileDownloader; import cm.aptoide.pt.downloadmanager.FileDownloaderProvider; import rx.subjects.PublishSubject; /** * Created by filipegoncalves on 8/2/18. */ public class FileDownloadMan...
__label__POS
0.996845
/* * Copyright (c) 2016. * Modified on 04/08/2016. */ package cm.aptoide.pt.download; import androidx.annotation.Nullable; import cm.aptoide.pt.aab.DynamicSplit; import cm.aptoide.pt.aab.Split; import cm.aptoide.pt.database.room.RoomDownload; import cm.aptoide.pt.database.room.RoomFileToDownload; import cm.aptoide...
__label__POS
0.748365
package cm.aptoide.pt.store; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.implementation.navigation.NavigationTracker; import cm.aptoide.pt.utils.AptoideUtils; import java.util.HashMap; import java.util.Map; /** * Created by pedroribeiro on 26/06/17. */ public class StoreAnalytics { ...
__label__POS
0.979481
package cm.aptoide.pt.store; import cm.aptoide.pt.database.room.RoomStore; import java.util.List; import rx.Completable; import rx.Observable; import rx.Single; public class RoomStoreRepository { private final StorePersistence storePersistence; public RoomStoreRepository(StorePersistence storePersistence) { ...
__label__POS
0.85098
package cm.aptoide.pt.store; import androidx.annotation.Nullable; import cm.aptoide.pt.database.room.RoomStore; import cm.aptoide.pt.dataprovider.ws.v7.BaseRequestWithStore; import cm.aptoide.pt.dataprovider.ws.v7.V7Url; /** * Created by neuro on 03-01-2017. */ public class StoreCredentialsProviderImpl implements ...
__label__POS
0.957336
import { words, allowed } from './words.server'; export class Game { /** * Create a game object from the player's cookie, or initialise a new game * @param {string | undefined} serialized */ constructor(serialized = undefined) { if (serialized) { const [index, guesses, answers] = serialized.split('-'); ...
__label__POS
0.625432
/* * Copyright (c) 2016. * Modified on 21/07/2016. */ package cm.aptoide.pt.util; import android.content.Context; import android.view.LayoutInflater; import android.widget.LinearLayout; import android.widget.TableLayout; import android.widget.TableRow; import android.widget.TextView; import cm.aptoide.pt.R; import...
__label__POS
0.615919
package cm.aptoide.pt.util; import android.content.res.XmlResourceParser; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.xmlpull.v1.XmlPullParserException; public class PreferencesXmlParser { private final String NAMESPACE = "http://schemas.android.com/apk/res/android"; ...
__label__POS
0.99879
package cm.aptoide.pt.util; import cm.aptoide.pt.crashreports.CrashReport; import cm.aptoide.pt.logger.Logger; import java.util.ArrayList; /** * this class should have all the utils methods related to crashlytics */ public class ScreenTrackingUtils { static final String SCREEN_HISTORY = "SCREEN_HISTORY"; static...
__label__POS
0.762472
package cm.aptoide.pt.util; import cm.aptoide.pt.utils.BaseException; import rx.Observable; import rx.Subscriber; import rx.exceptions.Exceptions; import rx.plugins.RxJavaObservableExecutionHook; /** * Created on 25/09/16. * * https://github.com/ReactiveX/RxJava/issues/3521 * * https://github.com/Cookizz/RxJavaS...
__label__POS
0.838656
<!DOCTYPE html> <!-- To change the theme, change the class on the html tag below to one of: - theme-auto: Automatically switches based on user's system preferences - theme-light: Forces light theme - theme-dark: Forces dark theme --> <html class="theme-auto" lang="en"> <!-- Update`class="theme-auto" with you...
__label__POS
0.698751
package cm.aptoide.pt.util; import androidx.collection.LongSparseArray; import cm.aptoide.pt.comments.CommentNode; import cm.aptoide.pt.dataprovider.model.v7.Comment; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Stack; public class CommentOperations { /** * Use...
__label__POS
0.945951
package cm.aptoide.pt.database; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.implementation.data.Event; import cm.aptoide.pt.database.room.RoomEvent; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackso...
__label__POS
0.907027
package cm.aptoide.pt.database; import cm.aptoide.pt.database.room.RoomUpdate; import cm.aptoide.pt.database.room.UpdateDao; import cm.aptoide.pt.updates.UpdatePersistence; import hu.akarnokd.rxjava.interop.RxJavaInterop; import io.reactivex.BackpressureStrategy; import java.util.ArrayList; import java.util.List; impo...
__label__POS
0.640048
package org.python.pydev.shared_ui.field_editors; import org.eclipse.jface.preference.FieldEditor; import org.eclipse.swt.SWT; import org.eclipse.swt.events.DisposeEvent; import org.eclipse.swt.events.DisposeListener; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.widgets.Button; import org.ec...
__label__POS
0.657928
package cm.aptoide.pt.database; import cm.aptoide.pt.database.room.RoomStoredMinimalAd; import cm.aptoide.pt.database.room.StoredMinimalAdDAO; import hu.akarnokd.rxjava.interop.RxJavaInterop; import io.reactivex.BackpressureStrategy; import io.reactivex.schedulers.Schedulers; import rx.Observable; public class RoomSt...
__label__POS
0.896111
package cm.aptoide.pt.database; import cm.aptoide.pt.abtesting.Experiment; import cm.aptoide.pt.abtesting.ExperimentModel; import cm.aptoide.pt.abtesting.ExperimentPersistence; import cm.aptoide.pt.database.room.ExperimentDAO; import hu.akarnokd.rxjava.interop.RxJavaInterop; import io.reactivex.Single; import io.react...
__label__POS
0.641981
package cm.aptoide.pt.updates; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.implementation.navigation.NavigationTracker; import cm.aptoide.pt.app.AppViewAnalytics; import cm.aptoide.pt.install.InstallAnalytics; import java.util.HashMap; import java.util.Map; /** * Created by pedroribeiro...
__label__POS
0.972936
package cm.aptoide.pt.updates import cm.aptoide.pt.database.room.RoomSplit import cm.aptoide.pt.database.room.RoomUpdate import cm.aptoide.pt.dataprovider.model.v7.Split import cm.aptoide.pt.dataprovider.model.v7.listapp.App class UpdateMapper { fun mapAppUpdateList(appList: List<App>): List<RoomUpdate> { val ...
__label__POS
0.897046
package cm.aptoide.pt.app; import java.util.Date; /** * Created by D01 on 22/05/2018. */ public class AppReview { private final long id; private final String title; private final String body; private final Date added; private final Date modified; private final ReviewStats reviewStats; private final R...
__label__POS
0.930019
package cm.aptoide.pt.app; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.implementation.navigation.NavigationTracker; import cm.aptoide.analytics.implementation.navigation.ScreenTagHistory; import cm.aptoide.pt.ads.WalletAdsOfferManager; import cm.aptoide.pt.ads.data.ApplicationAd; import c...
__label__POS
0.763243
// Sizing a pond for happy fish #include <iostream> #include <cmath> // For square root function int main() { // 2 square feet pond surface for every 6 inches of fish const double fish_factor { 2.0/0.5 }; // Area per unit length of fish const double inches_per_foot { 12.0 }; const double...
__label__POS
0.944081
package cm.aptoide.pt.app; import cm.aptoide.analytics.AnalyticsManager; import java.util.Map; public class CampaignAnalytics { private final Map<String, CampaignEvent> cache; private final AnalyticsManager analyticsManager; public CampaignAnalytics(Map<String, CampaignEvent> cache, AnalyticsManager analyticsM...
__label__POS
0.947703
package cm.aptoide.pt.app; import cm.aptoide.pt.app.view.AppCoinsViewModel; /** * This class holds the essential info/state of the AppView. * This means that only info that is needed and shared throughout other appview components is here. * * Self-contained models, such as reviews, should not be here. */ public ...
__label__POS
0.852189
package cm.aptoide.pt.app; import android.content.SharedPreferences; import cm.aptoide.pt.dataprovider.interfaces.TokenInvalidator; import cm.aptoide.pt.dataprovider.ws.BodyInterceptor; import cm.aptoide.pt.dataprovider.ws.v2.GenericResponseV2; import cm.aptoide.pt.dataprovider.ws.v3.AddApkFlagRequest; import cm.aptoi...
__label__POS
0.960978
package cm.aptoide.pt.app; import static cm.aptoide.pt.app.DownloadModel.Action.DOWNGRADE; import static cm.aptoide.pt.app.DownloadModel.Action.INSTALL; import static cm.aptoide.pt.app.DownloadModel.Action.UPDATE; /** * Created by filipegoncalves on 5/9/18. */ public class DownloadModel { private final Action a...
__label__POS
0.687321
package cm.aptoide.pt.app; import android.os.Bundle; import android.text.TextUtils; import cm.aptoide.pt.app.view.AppCoinsInfoFragment; import cm.aptoide.pt.app.view.AppViewFragment; import cm.aptoide.pt.navigator.FragmentNavigator; import cm.aptoide.pt.search.model.SearchAdResult; import org.parceler.Parcels; /** *...
__label__POS
0.869847
// Program 3.4a Converting uppercase to lowercase #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { char letter = 0; // Stores a character printf("Enter an uppercase letter:"); // Prompt for input scanf("%c", &letter); // Read a character /...
__label__POS
0.918959
// Calculating primes using pointer notation #include <iostream> #include <iomanip> int main() { const size_t max {100}; // Number of primes required long primes[max] {2L}; // First prime defined size_t count {1}; // Count of primes found so far long trial {3L}; ...
__label__POS
0.658132
// Dereferencing pointers // Calculates the purchase price for a given quantity of items #include <iostream> #include <iomanip> int main() { int unit_price{ 295 }; // Item unit price in cents int count{}; // Number of items ordered int discount_threshold{ 25 }; /...
__label__POS
0.835029
// Using smart pointers #include <iostream> #include <iomanip> #include <memory> // For smart pointers #include <vector> // For vector container #include <cctype> // For toupper() int mai...
__label__POS
0.88799
// Generating multiplication tables using nested loops #include <iostream> #include <iomanip> #include <cctype> // for std::tolower() int main() { size_t table{}; // Table size const size_t table_min{ 2 }; // Minimum table size - at least up to the 2-times const size_t table_max{ 12 }; // Maximum...
__label__POS
0.655409
package cm.aptoide.pt.app; import cm.aptoide.pt.ads.data.ApplicationAd; import cm.aptoide.pt.ads.data.ApplicationAdError; import cm.aptoide.pt.view.app.Application; import cm.aptoide.pt.view.app.AppsList; import java.util.List; /** * Created by D01 on 07/05/18. */ public class SimilarAppsViewModel { private fin...
__label__POS
0.905422
// Program 12.1 Writing a file a character at a time #define __STDC_WANT_LIB_EXT1__ 1 #include <stdio.h> #include <string.h> #include <stdlib.h> #define LENGTH 81 // Maximum input length int main(void) { char mystr[LENGTH]; // Input string int mychar = 0; /...
__label__POS
0.880255
// Program 11.7 Sorting integers using a binary tree #define __STDC_WANT_LIB_EXT1__ 1 #include <stdio.h> #include <stdlib.h> #include <ctype.h> typedef struct Node Node; // Defines a node in a binary tree sotring integers struct Node { long item; // The data item ...
__label__POS
0.942743
package cm.aptoide.pt.widget; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.widget.RemoteViews; import cm.aptoide.pt.DeepLinkIntentReceiver; i...
__label__POS
0.950414
// Using the continue statement to display ASCII character codes #include <iostream> #include <iomanip> #include <cctype> #include <limits> int main() { // Output the column headings std::cout << std::setw(11) << "Character " << std::setw(13) << "Hexadecimal " << std::setw(9) << "Decimal " << std::endl...
__label__POS
0.930998
// Using a do-while loop to manage input #include <iostream> #include <locale> // For tolower() function int main() { char reply{}; // Stores response to prompt for input int count{}; // Counts the number ...
__label__POS
0.988121
/* * Copyright (c) 2016. * Modified by Marcelo Benites on 07/07/2016. */ package cm.aptoide.pt.toolbox; import android.content.pm.PackageManager; import android.content.pm.Signature; /** * Created by marcelobenites on 7/7/16. */ public class ToolboxSecurityManager { private final PackageManager packageManage...
__label__POS
0.902575
// Allocating an array at runtime // This example does not work with some compilers (such as Visual C++) // because dynamic arrays is not standard C++ (it is valid C though). #include <iostream> #include <iomanip> // for std::setprecision() int main() { size_t count {}; std::cout << "How many heights will you...
__label__POS
0.662255
// Classifying the letters in a C-style string #include <iostream> #include <cctype> int main() { const int max_length {100}; // Array size char text[max_length] {}; // Array to hold input string std::cout << "Enter a line of text:" << std::endl; // Read a line of characters inclu...
__label__POS
0.82813
package cm.aptoide.pt.appview; import android.content.SharedPreferences; /** * Created by filipegoncalves on 5/7/18. */ public class PreferencesPersister { private SharedPreferences sharedPreferences; public PreferencesPersister(SharedPreferences sharedPreferences) { this.sharedPreferences = sharedPrefer...
__label__POS
0.98494
// Searching a string for characters from a set #include <iostream> #include <iomanip> #include <string> #include <vector> int main() { std::string text; // The string to be searched std::cout << "Enter some text terminated by *:\n"; std::getline(std::cin, text, '*'...
__label__POS
0.90029
package cm.aptoide.pt.preferences; import android.content.SharedPreferences; import cm.aptoide.pt.preferences.secure.SecureCoderDecoder; import rx.Completable; import rx.Observable; import rx.Single; /** * Created by marcelobenites on 08/03/17. */ public class SecurePreferences extends Preferences { private fin...
__label__POS
0.990312
// Comparing strings #include <iostream> // For stream I/O #include <iomanip> // For stream manipulators #include <string> // For the string type #include <cctype> // for std::isalpha() and tolower() #include <vector> ...
__label__POS
0.774681
package cm.aptoide.pt.preferences; import android.content.SharedPreferences; import rx.Completable; import rx.Observable; import rx.Single; import rx.Subscriber; import rx.subscriptions.Subscriptions; public class Preferences { private final SharedPreferences preferences; public Preferences(SharedPreferences pr...
__label__POS
0.770295
package cm.aptoide.pt.preferences; import rx.Completable; import rx.Observable; public class LocalPersistenceAdultContent { private static final String ADULT_CONTENT_PIN_PREFERENCES_KEY = "Maturepin"; private static final String ADULT_CONTENT_PREFERENCES_KEY = "matureChkBox"; private final Preferences preferen...
__label__POS
0.873665
package cm.aptoide.pt.preferences; import android.content.pm.PackageManager; import cm.aptoide.pt.appview.PreferencesPersister; import cm.aptoide.pt.utils.AptoideUtils; import static cm.aptoide.pt.preferences.managed.ManagedKeys.APTOIDE_MD5; public class AptoideMd5Manager { private PreferencesPersister preference...
__label__POS
0.840138
// Program 6.5 Comparing strings #define __STDC_WANT_LIB_EXT1__ 1 // Make optional versions of functions available #include <stdio.h> #include <string.h> #define MAX_LENGTH 21 // Maximum char array length int main(void) { char word1[MAX_LENGTH]; ...
__label__POS
0.918546
// Using decltype() inside a function template #include <iostream> #include <vector> #include <algorithm> // for std::min() // Template that computes a so-called "inner product" of two vectors. // Both vectors are supposed to be equally long, // but the function will cope if they aren't. template<typename T1, typenam...
__label__POS
0.816387
package cm.aptoide.pt.account; import android.accounts.AccountManager; import cm.aptoide.accountmanager.Account; import cm.aptoide.accountmanager.AccountFactory; import cm.aptoide.accountmanager.AccountPersistence; import cm.aptoide.accountmanager.Store; import cm.aptoide.pt.crashreports.CrashReport; import cm.aptoide...
__label__POS
0.968965
package cm.aptoide.pt.account; import cm.aptoide.accountmanager.Account; import cm.aptoide.accountmanager.AdultContent; import cm.aptoide.accountmanager.Store; import java.util.List; public class MatureContentAccount implements Account { private final Account wrappedAccount; private final AdultContent adultConte...
__label__POS
0.985059
package cm.aptoide.pt.account; import cm.aptoide.accountmanager.Store; import cm.aptoide.pt.database.room.RoomStore; import cm.aptoide.pt.logger.Logger; import cm.aptoide.pt.store.RoomStoreRepository; import java.util.List; import rx.Completable; import rx.Observable; import rx.Single; public class DatabaseStoreDataP...
__label__POS
0.879963
// Using string_view parameters #include <iostream> #include <iomanip> #include <string> #include <string_view> #include <vector> using std::string; using std::vector; void find_words(vector<string>& words, std::string_view str, std::string_view separators); void list_words(const vector<string>& words); int main(...
__label__POS
0.788085