content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
package cm.aptoide.pt.ads; import cm.aptoide.pt.logger.Logger; import com.mopub.mobileads.MoPubErrorCode; import com.mopub.mobileads.MoPubInterstitial; import rx.subjects.PublishSubject; public class MoPubInterstitialAdListener implements MoPubInterstitial.InterstitialAdListener { private PublishSubject<MoPubInter...
__label__POS
0.865146
// Exercise 7-8 // Practice string concatenation, looping over strings, and stoi()-like functions #include <iostream> #include <string> int main() { std::string numbers; std::cout << "Enter a sequence of numbers terminated by #:\n"; while (true) { std::string number; // Read strings one by one std:...
__label__POS
0.933909
// Using a reference parameter import std; using std::string; using std::vector; void find_words(vector<string>& words, const string& str, const string& separators); void list_words(const vector<string>& words); int main() { std::string text; // The string to be searched std::println("Enter some text ter...
__label__POS
0.702116
/* global describe, it, expect */ import { dropRight, last, takeRight } from '../../src/util/array' describe('Util', () => { describe('Array', () => { describe('#dropRight', () => { it('drops the last element from the array', () => { const a = dropRight([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) ...
__label__POS
0.936834
// Exercise 7-4 Check for anagrams. // There's more than one way to do this. // We chose to delete characters in one word that are common to both. // If the length of the word that has characters deleted is zero, they are anagrams. #include <iostream> #include <cctype> #include <string> int main() { std::string wo...
__label__POS
0.805722
// Exercise 7-3 Replacing a word in text by asterisks. // Because we are looking for the word regardless of case, // the best way is to scan the text character by character. #include <iostream> #include <string> #include <cctype> int main() { std::string text; // The text to...
__label__POS
0.704277
// Overloading a function import std; // Function prototypes double largest(const double data[], std::size_t count); double largest(const std::vector<double>& data); int largest(const std::vector<int>& data); std::string largest(const std::vector<std::string>& words); /* The following function overload would not comp...
__label__POS
0.786796
// Exercise 7-6 Finding words that begin with a given letter. // If you wanted the words ordered by the first letter, you could sort the contents of letter first. // You could also retain all the sets of words for each letter in a separate vector for each set; // for this you could in other words use a std::vector<std:...
__label__POS
0.912306
package cm.aptoide.pt.notification; import android.app.NotificationManager; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import cm.aptoide.pt.AptoideApplication; import com.jakewharton.rxrelay.PublishRelay; public class Notification...
__label__POS
0.996056
// Exercise 7-1 Storing student names and grades. // This uses a vector of string objects to store the names. #include <iostream> #include <iomanip> #include <cctype> #include <vector> #include <string> int main() { std::vector<std::string> names; std::vector<double> grades; size_t max_length {}; ...
__label__POS
0.876332
package cm.aptoide.pt.notification; import androidx.annotation.NonNull; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.implementation.navigation.NavigationTracker; import cm.aptoide.pt.link.AptoideInstall; import cm.aptoide.pt.link.AptoideInstallParser; import java.util.HashMap; import java....
__label__POS
0.976253
// Sorting words recursively import std; using Words = std::vector<std::shared_ptr<std::string>>; void swap(Words& words, std::size_t first, std::size_t second); void sort(Words& words); void sort(Words& words, std::size_t start, std::size_t end); Words extract_words(const std::string& text, const std::string& separa...
__label__POS
0.846581
package cm.aptoide.pt.notification; import androidx.annotation.IntDef; import cm.aptoide.pt.database.room.RoomNotification; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * Created by trinkes on 03/05/2017. */ public class AptoideNotification { public static final int CAM...
__label__POS
0.960437
export function abbreviateNumber(num: number, decimals: number = 1): string { if (isNaN(num)) return String(num); if (num >= 1_000_000_000) { const result = num / 1_000_000_000; return result.toFixed(result % 1 !== 0 ? decimals : 0) + 'B'; } else if (num >= 1_000_000) { const result ...
__label__POS
0.909935
// Exercise 4-1 Testing for exact division of one integer by another. // We can use an if statement to check that the input is valid // and we can use another to arrange the input as we need. // Then we use an if-else to generate the appropriate output. #include <iostream> int...
__label__POS
0.856391
package cm.aptoide.pt.notification; public class NotificationIdsMapper { public NotificationIdsMapper() { } int getNotificationId(@AptoideNotification.NotificationType int notificationType) throws RuntimeException { switch (notificationType) { case AptoideNotification.CAMPAIGN: return 0;...
__label__POS
0.80869
package cm.aptoide.pt.notification; import cm.aptoide.pt.notification.policies.CampaignPolicy; import cm.aptoide.pt.notification.policies.DefaultPolicy; import cm.aptoide.pt.notification.policies.SocialPolicy; /** * Created by trinkes on 16/05/2017. */ public class NotificationPolicyFactory { private Notificati...
__label__POS
0.729904
package cm.aptoide.pt.notification; import cm.aptoide.accountmanager.AptoideAccountManager; import cm.aptoide.pt.crashreports.CrashReport; import cm.aptoide.pt.database.RoomNotificationPersistence; import cm.aptoide.pt.database.room.RoomNotification; import java.util.ArrayList; import java.util.Calendar; import java.u...
__label__POS
0.654703
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <script type="text/javascript" src="//use.typekit.net/jbn8qxr.js"></script> <scri...
__label__POS
0.977552
// Exercise 8-2 Reversing the order of a string of characters. /****************************************************************** The reverse() function works with an argument of type string, or a C-style string terminated with '\0'. *******************************************************************/ #include <iostr...
__label__POS
0.950897
"""Mutual exclusion -- for use with module sched A mutex has two pieces of state -- a 'locked' bit and a queue. When the mutex is not locked, the queue is empty. Otherwise, the queue contains 0 or more (function, argument) pairs representing functions (or methods) waiting to acquire the lock. When the mutex is unlocke...
__label__POS
0.647377
package cm.aptoide.pt.notification; import java.util.List; import rx.Completable; import rx.Observable; /** * Created by trinkes on 09/05/2017. */ public class NotificationCenter { private NotificationSyncScheduler notificationSyncScheduler; private NotificationPolicyFactory notificationPolicyFactory; priva...
__label__POS
0.764079
package cm.aptoide.pt.notification; import androidx.annotation.NonNull; import cm.aptoide.pt.database.RoomNotificationPersistence; import cm.aptoide.pt.database.room.RoomNotification; import java.util.List; import rx.Completable; import rx.Observable; import rx.Scheduler; import rx.Single; /** * Created by trinkes o...
__label__POS
0.655704
// Constraint based specialization import <concepts>; // For the std::equality_comparable<> concept import <iterator>; // The iterator concepts and the iter_difference_t<>() trait import <vector>; import <list>; import <iostream>; // Precondition: incrementing first eventually leads to last template <std::input_or_o...
__label__POS
0.82962
// Working with maps import std; // Type aliases using Words = std::vector<std::string_view>; using WordCounts = std::map<std::string_view, std::size_t>; // Function prototypes Words extractWords(std::string_view text, std::string_view separators = " ,.!?\"\n"); WordCounts countWords(const Words& words); void showWor...
__label__POS
0.843544
package cm.aptoide.pt.abtesting; import cm.aptoide.pt.database.RoomExperimentPersistence; import java.util.HashMap; import rx.Completable; import rx.Observable; import rx.schedulers.Schedulers; /** * Created by franciscocalado on 18/06/18. */ public class ABTestCenterRepository implements AbTestRepository { pri...
__label__POS
0.975448
// Exercise 3-2. Calculating the number of boxes that can be stored on a shelf, without overhang. // We have to calculate how many boxes we can get into a row, // and how many rows we can have, and then multiply these numbers together. // The 'no overhang' problem is easily handled: casting from double to long // (us...
__label__POS
0.899437
// Inserting in and erasing from sequence containers import std; int main() { std::vector numbers{ 2, 4, 5 }; // Deduced type: std::vector<int> numbers.insert(numbers.begin(), 1); // Add single element to the beginning of the sequence std::println("{}", numbers); // [1, 2, 4, 5] numbers.insert(numb...
__label__POS
0.929827
package cm.aptoide.pt.abtesting; /** * Created by franciscocalado on 15/06/18. */ public class Experiment { private static final long TWENTY_FOUR_HOURS = 86400000; public static final long MAX_CACHE_TIME_IN_MILLIS = TWENTY_FOUR_HOURS * 30; private long requestTime; private String assignment; private Stri...
__label__POS
0.985122
package cm.aptoide.pt.abtesting; import rx.Observable; /** * Created by franciscocalado on 15/06/18. */ public class ABTestManager { private AbTestRepository abTestRepository; public ABTestManager(AbTestRepository abTestRepository) { this.abTestRepository = abTestRepository; } public Observable<Exper...
__label__POS
0.995852
#include "Truckload.h" // Constructor Truckload::Truckload(const std::vector<SharedBox>& boxes) { for (auto pBox : boxes) { addBox(pBox); } } // Output all Box objects in the list void Truckload::listBoxes() const { const size_t boxesPerLine = 5; size_t count {}; for (Package* package{pHead}; packag...
__label__POS
0.725782
// Creating and working with Standard iterators import <vector>; import <iostream>; int main() { std::vector<char> letters{ 'a', 'b', 'c', 'd', 'e' }; auto my_iter{ letters.begin() }; std::cout << *my_iter << std::endl; // a *my_iter = 'x'; std::cout << letters[0] << std::endl; // x ++my_iter;...
__label__POS
0.862952
// Removing all elements that satisfy a certain condition // while iterating over a container import <vector>; import <string_view>; import <iostream>; std::vector<int> fillVector_1toN(size_t N); // Fill a vector with 1, 2, ..., N void printVector(std::string_view message, const std::vector<int>& numbers); void rem...
__label__POS
0.798292
// Inserting in and erasing from sequence containers import <iostream>; import <vector>; void printVector(const std::vector<int>& v); int main() { std::vector numbers{ 2, 4, 5 }; // Deduced type: std::vector<int> numbers.insert(numbers.begin(), 1); // Add single element to the beginning of the sequence prin...
__label__POS
0.8336
package cm.aptoide.pt.socialmedia import cm.aptoide.analytics.AnalyticsManager import cm.aptoide.analytics.implementation.navigation.NavigationTracker import cm.aptoide.aptoideviews.socialmedia.SocialMediaView import java.util.* open class SocialMediaAnalytics(val analyticsManager: AnalyticsManager, ...
__label__POS
0.940795
// Exercise 11-5 Integer.cpp /*****************************************************************\ To implement printCount(), you first need a static member variable to store the object count. Every constructor should then increment this count, and you need to add a destructor that decrements it. \*******************...
__label__POS
0.887257
export function getFrameworkIcon(framework: string) { switch (true) { case framework.toLocaleLowerCase().includes('sveltekit'): return 'svelte'; case framework.toLocaleLowerCase().includes('nuxt'): return 'nuxt'; case framework.toLocaleLowerCase().includes('vue'): ...
__label__POS
0.956174
// Removing all elements that satisfy a certain condition // usign the remove-erase idiom import <vector>; import <string_view>; import <iostream>; import <algorithm>; std::vector<int> fillVector_1toN(size_t N); // Fill a vector with 1, 2, ..., N void printVector(std::string_view message, const std::vector<int>& num...
__label__POS
0.686558
package cm.aptoide.pt.install; import cm.aptoide.pt.database.room.RoomInstalled; import java.util.List; import rx.Completable; import rx.Observable; import rx.Single; public interface InstalledPersistence { Observable<List<RoomInstalled>> getAllInstalled(); /** * @return all the entries from this table even ...
__label__POS
0.776728
module truckload; import std; // Constructor - vector of Boxes Truckload::Truckload(const std::vector<SharedBox>& boxes) { for (const auto& box : boxes) { addBox(box); } } // Copy constructor Truckload::Truckload(const Truckload& src) { for (Package* package{ src.m_head }; package; package = package->get...
__label__POS
0.660923
package cm.aptoide.pt.install; import android.os.Build; import cm.aptoide.pt.install.installer.Installation; import cm.aptoide.pt.install.installer.RootCommandOnSubscribe; import cm.aptoide.pt.install.installer.RootInstaller; import java.io.File; import rx.Observable; public class RootInstallerProvider { private f...
__label__POS
0.70646
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.996535
// Exercise 11-4 Integer.cpp /****************************************************************\ Implementing compare() as a friend is quite simple. We must declare the function as a friend in the class definition. We now need both objects as arguments and the code in the body of the function just compares the n me...
__label__POS
0.714295
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.866413
package cm.aptoide.pt.install; import cm.aptoide.pt.crashreports.CrashReport; import com.jakewharton.rxrelay.PublishRelay; import java.util.ArrayList; import java.util.List; /** * Created by trinkes on 27/06/2017. */ public class InstallCompletedNotifier { private final List<App> appToCheck; private final Publ...
__label__POS
0.988028
module truckload; import std; // Constructor - vector of Boxes Truckload::Truckload(const std::vector<SharedBox>& boxes) { for (const auto& box : boxes) { addBox(box); } } // Copy constructor Truckload::Truckload(const Truckload& src) { for (Package* package{ src.m_head }; package; package = package->m_ne...
__label__POS
0.62469
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.989804
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.928365
// Using the explicit keyword // Uncomment "explicit" to make the compilation of // the expression "box1.hasLargerVolumeThan(50.0)" fail import std; class Cube { public: /*explicit*/ Cube(double side); // Constructor double volume(); // Calculate volume of a cube bool hasLargerVolumeT...
__label__POS
0.886923
package cm.aptoide.pt.install; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import cm.aptoide.pt.AptoideApplication; import cm.aptoide.pt.crashreports.CrashReport; public class RootInstallNotificationEventReceiver extends BroadcastReceiver { public static ...
__label__POS
0.848958
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.93702
// Avoid resource leaks due to exceptions using std::unique_ptr<> // Note: this example is given but not named in the text. // Instead of a custom RAII class DoubleArrayRAII, it uses std::unique_ptr<>. // Unlike the former, the latter can be returned from computeValues() as well. import std; import troubles; double co...
__label__POS
0.665656
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.990467
// Avoid resource leaks due to exceptions using std::unique_ptr<> // Note: this example is given but not named in the text. // Instead of a custom RAII class DoubleArrayRAII, it uses std::vector<>. // Unlike the former, the latter can of course be returned from computeValues() as well. import std; import troubles; dou...
__label__POS
0.66023
package cm.aptoide.pt.install; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import cm.aptoide.pt.AptoideApplication; import cm.aptoide.pt.crashreports.CrashReport; import rx.schedulers.Schedulers; /** * Created by trinkes on 07/06/2017. */ public class Ch...
__label__POS
0.854286
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.946773
package cm.aptoide.pt.install import android.os.Build import android.os.Environment import android.os.StatFs import cm.aptoide.pt.database.room.RoomDownload import cm.aptoide.pt.utils.FileUtils class InstallAppSizeValidator(val filePathProvider: FilePathProvider) { fun hasEnoughSpaceToInstallApp(download: RoomDown...
__label__POS
0.992405
package cm.aptoide.pt.install; import android.content.SharedPreferences; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.implementation.navigation.NavigationTracker; import cm.aptoide.pt.packageinstaller.InstallStatus; import cm.aptoide.pt.preferences.managed.ManagerPreferences; import cm.apt...
__label__POS
0.914149
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.998504
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.997484
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.998307
package cm.aptoide.pt.install; 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.navigat...
__label__POS
0.855501
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.998285
package cm.aptoide.pt.install; import androidx.annotation.IntRange; import androidx.annotation.Nullable; /** * Created by trinkes on 10/04/2017. */ public class Install { private final int progress; private final InstallationStatus state; private final InstallationType type; private final boolean isIndeter...
__label__POS
0.956634
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.99887
// Using the explicit keyword // Uncomment "explicit" to make the compilation of // the expression "box1.hasLargerVolumeThan(50.0)" fail import <iostream>; class Cube { public: /*explicit*/ Cube(double side); // Constructor double volume(); // Calculate volume of a cube bool hasLarger...
__label__POS
0.813935
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.997674
// Using a stack defined by a class template with a nested class // (with improvement suggested in the "A Better Stack" section: see Stack<> source) import stack; import std; int main() { std::string words[] {"The", "quick", "brown", "fox", "jumps"}; Stack<std::string> wordStack; // A stack of strings ...
__label__POS
0.999067
// Exercise 14-6 Exercising Shape classes #include "Shapes.h" #include <iostream> #include <vector> double calculateSumAreas(const std::vector<Shape*>& shapes); double calculateSumPerimeters(const std::vector<Shape*>& shapes); void printSums(const std::vector<Shape*>& shapes); int main() { Circle c1{Point{1, 1}, 1...
__label__POS
0.881873
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project source="2.7.1" version="1.0"> This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). <lib desc="#Wiring" name="0"/> <lib desc="#Gates" name="1"/> <lib desc="#Plexers" name="2"/> <lib desc="#Arithmetic" name="3"/> <lib desc=...
__label__POS
0.99753
#include<stdio.h> #include<string.h> int main() { char s1[400],s2[400]; FILE* fp1; FILE* fp2; FILE* fp3; fp1=fopen("1.txt","r"); fp2=fopen("2.txt","r"); fp3=fopen("3.txt","w"); int i=0,j=0; int n=0; int l1=0,l2=0; while(fgets(s1,400,fp1)){ if(s1[0]=='I'){ fgets(s1,400,fp1); fgets(s1,400,fp1); } ...
__label__POS
0.996121
// Exercise 14-1 Animals.h // Animal classes #ifndef ANIMALS_H #define ANIMALS_H #include <string> #include <string_view> class Animal { private: std::string name; // Name of the animal unsigned weight; // Weight of the animal public: Animal(std::...
__label__POS
0.765415
import array; import box; import std; int main() { try { try { const std::size_t size {21}; // Number of array elements const int start {-10}; // Index for first element const int end {start + static_cast<int>(size) - 1}; // Index for...
__label__POS
0.75221
package cm.aptoide.pt.search.analytics; import androidx.annotation.NonNull; import cm.aptoide.analytics.AnalyticsManager; import cm.aptoide.analytics.implementation.navigation.NavigationTracker; import cm.aptoide.pt.search.model.SearchQueryModel; import cm.aptoide.pt.search.model.Source; import java.util.HashMap; impo...
__label__POS
0.981172
package cm.aptoide.pt.search.view; import android.view.LayoutInflater; import android.view.ViewGroup; import androidx.recyclerview.widget.RecyclerView; import cm.aptoide.pt.R; import cm.aptoide.pt.search.model.Suggestion; import cm.aptoide.pt.search.suggestions.SearchQueryEvent; import cm.aptoide.pt.search.view.item.S...
__label__POS
0.921676
// Using a stack defined by a class template with a nested class // (using std::unique_ptr<>: see Stack<> source) // Note: this is a bonus example that is only hinted at in the text (and not explicitly named). // It requires the use of std::move(), seen only in Chapter 18. import stack; import std; int main() { std...
__label__POS
0.989298
import array; import box; import std; int main() { try { try { const std::size_t size {21}; // Number of array elements const int start {-10}; // Index for first element const int end {start + static_cast<int>(size) - 1}; // Index for...
__label__POS
0.75221
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Cities.Infrastructure.TagHelpers; using Microsoft.AspNetCore.Razor.TagHelpers; using Xunit; namespace Cities.Tests { public class TagHelperTests { [Fact] public void TestTagHelper() { // Arrange ...
__label__POS
0.983187
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 16:57:34 11/24/2018 // Design Name: // Module Name: forward_mux // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: /...
__label__POS
0.997942
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:31:53 11/23/2018 // Design Name: // Module Name: mux // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.641721
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 11:13:10 11/30/2018 // Design Name: // Module Name: Mult_Div // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // /...
__label__POS
0.711269
// Using a stack defined by a class template with a nested class import stack; import std; int main() { std::string words[] {"The", "quick", "brown", "fox", "jumps"}; Stack<std::string> wordStack; // A stack of strings for (const auto& word : words) wordStack.push(word); Stack<std::string> new...
__label__POS
0.999842
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 16:57:57 11/23/2018 // Design Name: // Module Name: dm // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.983991
// Using a stack defined by nested class templates // (with improvement suggested in the "A Better Stack" section: see Stack<> source) import stack; import <iostream>; import <string>; int main() { std::string words[]{ "The", "quick", "brown", "fox", "jumps" }; Stack<std::string> wordStack; // A stack...
__label__POS
0.998365
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 11:53:56 11/24/2018 // Design Name: // Module Name: controller // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: //...
__label__POS
0.759245
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:30:22 11/23/2018 // Design Name: // Module Name: WB // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.947191
using System; using System.Linq; using System.Reflection; using System.Threading.Tasks; using Cities.Models; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Razor.TagHelpers; namespace Cities.Infrastructure.TagHelpers { [HtmlTargetElement("select", Attributes = "model-for")] public cl...
__label__POS
0.617824
#include "Truckload.h" SharedBox Truckload::nullBox {}; // Initialize static class member // Constructor Truckload::Truckload(const std::vector<SharedBox>& boxes) { for (const auto& pBox : boxes) { addBox(pBox); } } // Copy constructor Truckload::Truckload(const Truckload& src) { for (P...
__label__POS
0.641812
using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Razor.TagHelpers; namespace Cities.Infrastructure.TagHelpers { [HtmlTargetElement("div", Attributes = "title")] public class ContentWrapperTagHelper : TagHelper { public bool IncludeHeader { get; set; } = true; public bool ...
__label__POS
0.675535
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 23:01:11 12/05/2018 // Design Name: // Module Name: controller2 // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: /...
__label__POS
0.75789
package cm.aptoide.pt.search.model; import cm.aptoide.aptoideviews.filters.Filter; import cm.aptoide.pt.search.view.SearchResultView; import java.util.List; import org.parceler.Parcel; @SuppressWarnings("WeakerAccess") @Parcel public class SearchViewModel implements SearchResultView.Model { SearchQueryModel se...
__label__POS
0.824062
using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Razor.TagHelpers; namespace Cities.Infrastructure.TagHelpers { [HtmlTargetElement("label", Attributes = "helper-for")] [HtmlTargetElement("input", Attributes = "helper-for")] public class LabelAndInputTagHelper : TagHelper { ...
__label__POS
0.824988
// Using a stack defined by nested class templates // (using std::unique_ptr<>: see Stack<> source) // Note: this is a bonus example that is only hinted at in the text (and not explicitly named). // It requires the use of std::move(), seen only in Chapter 18. import stack; import <iostream>; import <string>; int main...
__label__POS
0.9876
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:21:31 11/23/2018 // Design Name: // Module Name: EX // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revi...
__label__POS
0.949697
<!DOCTYPE html> <html> <head> <meta charset='UTF-8'> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Toastify JS - Pure JavaScript Toast Notificaton Library</title> <meta name="description" content="Toastify is a pu...
__label__POS
0.693018
package cm.aptoide.pt.search.suggestions; import java.util.List; import java.util.concurrent.TimeUnit; import rx.Scheduler; import rx.Single; public class SearchSuggestionManager { private final SearchSuggestionService service; private final Scheduler ioScheduler; private final int timeout; private final Tim...
__label__POS
0.927618
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 17:27:06 11/23/2018 // Design Name: // Module Name: MEM // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Rev...
__label__POS
0.949242
package cm.aptoide.pt.search.suggestions; import android.content.SharedPreferences; import cm.aptoide.pt.dataprovider.aab.AppBundlesVisibilityManager; import cm.aptoide.pt.dataprovider.interfaces.TokenInvalidator; import cm.aptoide.pt.dataprovider.model.v7.ListApps; import cm.aptoide.pt.dataprovider.ws.BodyInterceptor...
__label__POS
0.749165
package cm.aptoide.pt.search.suggestions; import cm.aptoide.pt.dataprovider.model.v7.listapp.App; import cm.aptoide.pt.search.model.Suggestion; import java.util.List; import rx.Single; /** * Created by franciscocalado on 11/9/17. */ public class TrendingManager { private static final int SUGGESTION_COUNT = 10; ...
__label__POS
0.985841
// Using a stack defined by nested class templates import stack; import <iostream>; import <string>; int main() { std::string words[]{ "The", "quick", "brown", "fox", "jumps" }; Stack<std::string> wordStack; // A stack of strings for (const auto& word : words) wordStack.push(word); Stack<std...
__label__POS
0.999583