content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class List extends exprType implements expr_contextType {
public exprType[] elts;
public int ctx;
public List(exprType[] elts, int ctx) {
... | __label__POS | 0.967253 |
package cm.aptoide.pt.repository.request;
import android.content.SharedPreferences;
import cm.aptoide.pt.dataprovider.interfaces.TokenInvalidator;
import cm.aptoide.pt.dataprovider.ws.BodyInterceptor;
import cm.aptoide.pt.dataprovider.ws.v7.BaseBody;
import cm.aptoide.pt.dataprovider.ws.v7.BaseRequestWithStore;
import... | __label__POS | 0.779745 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Suite extends modType {
public stmtType[] body;
public Suite(stmtType[] body) {
this.body = body;
}
public Suite(stmtType[] ... | __label__POS | 0.954671 |
`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.693174 |
package cm.aptoide.pt.repository.request;
import android.content.SharedPreferences;
import cm.aptoide.pt.dataprovider.interfaces.TokenInvalidator;
import cm.aptoide.pt.dataprovider.ws.BodyInterceptor;
import cm.aptoide.pt.dataprovider.ws.v7.BaseBody;
import cm.aptoide.pt.dataprovider.ws.v7.store.ListStoresRequest;
imp... | __label__POS | 0.829326 |
`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 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class While extends stmtType {
public exprType test;
public stmtType[] body;
public stmtType[] orelse;
public While(exprType test, stmtType... | __label__POS | 0.836272 |
package cm.aptoide.pt.repository.request;
import android.content.SharedPreferences;
import cm.aptoide.pt.dataprovider.interfaces.TokenInvalidator;
import cm.aptoide.pt.dataprovider.ws.BodyInterceptor;
import cm.aptoide.pt.dataprovider.ws.v7.BaseBody;
import cm.aptoide.pt.dataprovider.ws.v7.store.GetRecommendedStoresRe... | __label__POS | 0.941124 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class listcompType extends SimpleNode {
public exprType target;
public exprType iter;
public exprType[] ifs;
public listcompType(exprType t... | __label__POS | 0.905591 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class keywordType extends SimpleNode {
public String arg;
public exprType value;
public keywordType(String arg, exprType value) {
this.... | __label__POS | 0.868713 |
package cm.aptoide.pt.repository.request;
import android.content.SharedPreferences;
import cm.aptoide.pt.dataprovider.interfaces.TokenInvalidator;
import cm.aptoide.pt.dataprovider.ws.BodyInterceptor;
import cm.aptoide.pt.dataprovider.ws.v7.BaseBody;
import cm.aptoide.pt.dataprovider.ws.v7.GetRecommendedRequest;
impor... | __label__POS | 0.856102 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class For extends stmtType {
public exprType target;
public exprType iter;
public stmtType[] body;
public stmtType[] orelse;
public For... | __label__POS | 0.843497 |
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:13:22 11/23/2018
// Design Name:
// Module Name: npc
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Rev... | __label__POS | 0.664167 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Yield extends stmtType {
public exprType value;
public Yield(exprType value) {
this.value = value;
}
public Yield(exprType v... | __label__POS | 0.952975 |
`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.753453 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Delete extends stmtType {
public exprType[] targets;
public Delete(exprType[] targets) {
this.targets = targets;
}
public De... | __label__POS | 0.963927 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Raise extends stmtType {
public exprType type;
public exprType inst;
public exprType tback;
public Raise(exprType type, exprType inst... | __label__POS | 0.854355 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Subscript extends exprType implements expr_contextType {
public exprType value;
public sliceType slice;
public int ctx;
public Subscr... | __label__POS | 0.909575 |
`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.963491 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Assign extends stmtType {
public exprType[] targets;
public exprType value;
public Assign(exprType[] targets, exprType value) {
t... | __label__POS | 0.890355 |
package cm.aptoide.pt.repository.request;
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.AppCoinsCampaign;
import cm.aptoide.pt.dataprovider.model.v7.D... | __label__POS | 0.626434 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Attribute extends exprType implements expr_contextType {
public exprType value;
public String attr;
public int ctx;
public Attribute(... | __label__POS | 0.919492 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class ExtSlice extends sliceType {
public sliceType[] dims;
public ExtSlice(sliceType[] dims) {
this.dims = dims;
}
public ExtSlic... | __label__POS | 0.967615 |
package cm.aptoide.pt.ads.data;
import java.util.Arrays;
import org.parceler.Parcel;
@Parcel public class Payout {
double appcAmount;
double fiatAmount;
String fiatCurrency;
String fiatSymbol;
public Payout() {
}
public Payout(double appcAmount, double fiatAmount, String fiatCurrency, String fiatSymbo... | __label__POS | 0.673956 |
`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.950622 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class TryExcept extends stmtType {
public stmtType[] body;
public excepthandlerType[] handlers;
public stmtType[] orelse;
public TryExcept(... | __label__POS | 0.848816 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Call extends exprType {
public exprType func;
public exprType[] args;
public keywordType[] keywords;
public exprType starargs;
pub... | __label__POS | 0.705168 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Expr extends stmtType {
public exprType value;
public Expr(exprType value) {
this.value = value;
}
public Expr(exprType valu... | __label__POS | 0.954314 |
`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.94849 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Exec extends stmtType {
public exprType body;
public exprType globals;
public exprType locals;
public Exec(exprType body, exprType gl... | __label__POS | 0.890349 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Module extends modType {
public stmtType[] body;
public Module(stmtType[] body) {
this.body = body;
}
public Module(stmtType... | __label__POS | 0.952746 |
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:02:24 11/23/2018
// Design Name:
// Module Name: grf
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Rev... | __label__POS | 0.79872 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class ClassDef extends stmtType {
public String name;
public exprType[] bases;
public stmtType[] body;
public ClassDef(String name, exprTyp... | __label__POS | 0.855339 |
package cm.aptoide.pt.timeline.view.follow;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import cm.aptoide.pt.AptoideApplication;
import cm.aptoide.pt.R;
import cm.aptoide.pt.dataprovider.WebService;
import cm.aptoide.pt.dataprovider.interfaces.TokenInvalidator;
im... | __label__POS | 0.612494 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class ImportFrom extends stmtType {
public String module;
public aliasType[] names;
public ImportFrom(String module, aliasType[] names) {
... | __label__POS | 0.903387 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class excepthandlerType extends SimpleNode {
public exprType type;
public exprType name;
public stmtType[] body;
public excepthandlerType(e... | __label__POS | 0.781702 |
// Autogenerated AST node
package org.python.parser.ast;
import org.python.parser.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class Slice extends sliceType {
public exprType lower;
public exprType upper;
public exprType step;
public Slice(exprType lower, exprType u... | __label__POS | 0.874594 |
package cm.aptoide.pt.timeline.view.follow;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import cm.aptoide.analytics.implementation.navigation.ScreenTagHistory;
import cm.apto... | __label__POS | 0.927291 |
package cm.aptoide.pt.timeline.view.follow;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentManager;
import cm.aptoide.pt.R;
import cm.aptoide.pt.store.view.AddStoreDialog;
import cm.aptoide.pt.timeline.view.displayable.FollowStoreDisplayable;
import cm.aptoide.pt.vie... | __label__POS | 0.614722 |
package cm.aptoide.pt.timeline.view.displayable;
import android.text.TextUtils;
import cm.aptoide.pt.AptoideApplication;
import cm.aptoide.pt.R;
import cm.aptoide.pt.dataprovider.model.v7.GetFollowers;
import cm.aptoide.pt.dataprovider.model.v7.store.Store;
import cm.aptoide.pt.navigator.FragmentNavigator;
import cm.a... | __label__POS | 0.881718 |
/*
* Copyright 2000 Finn Bock
*
* This program contains material copyrighted by:
* Copyright (c) 1997-2000 by Secret Labs AB. All rights reserved.
*
* This version of the SRE library can be redistributed under CNRI's
* Python 1.6 license. For any other use, please contact Secret Labs
* AB (info@pythonware.com... | __label__POS | 0.630297 |
/*
* Copyright 2000 Finn Bock
*
* This program contains material copyrighted by:
* Copyright (c) 1997-2000 by Secret Labs AB. All rights reserved.
*
* This version of the SRE library can be redistributed under CNRI's
* Python 1.6 license. For any other use, please contact Secret Labs
* AB (info@pythonware.com... | __label__POS | 0.661208 |
package cm.aptoide.pt.comments.view;
import android.view.View;
import cm.aptoide.pt.R;
import cm.aptoide.pt.dataprovider.model.v7.Comment;
import cm.aptoide.pt.navigator.FragmentNavigator;
import cm.aptoide.pt.store.view.StoreFragment;
import cm.aptoide.pt.view.FragmentProvider;
import cm.aptoide.pt.view.recycler.disp... | __label__POS | 0.907673 |
package cm.aptoide.pt.comments.view;
import cm.aptoide.pt.view.recycler.BaseAdapter;
import cm.aptoide.pt.view.recycler.displayable.Displayable;
/**
* Created by trinkes on 8/5/16.
*/
public class CommentsAdapter<T extends Displayable> extends BaseAdapter {
private final Class<T> clazz;
public CommentsAdapter... | __label__POS | 0.999709 |
/*
* Copyright (c) 2016.
* Modified on 09/08/2016.
*/
package cm.aptoide.pt.comments.view;
import cm.aptoide.pt.R;
import cm.aptoide.pt.comments.CommentAdder;
import cm.aptoide.pt.view.recycler.displayable.Displayable;
/**
* Created by trinkes on 8/5/16.
*/
public class CommentsReadMoreDisplayable extends Displ... | __label__POS | 0.900283 |
package cm.aptoide.pt.comments.view;
import cm.aptoide.pt.comments.CommentAdder;
import cm.aptoide.pt.dataprovider.model.v7.Comment;
import cm.aptoide.pt.view.recycler.displayable.Displayable;
import java.util.ArrayList;
import java.util.List;
public class SimpleReviewCommentAdder extends CommentAdder {
private fi... | __label__POS | 0.997809 |
package cm.aptoide.pt.comments.view;
import cm.aptoide.pt.comments.CommentAdder;
import cm.aptoide.pt.dataprovider.model.v7.Comment;
import cm.aptoide.pt.view.recycler.displayable.Displayable;
import java.util.ArrayList;
import java.util.List;
public class ConcreteItemCommentAdder<T> extends CommentAdder {
private... | __label__POS | 0.894681 |
// Exercise 6-2. Traversing arrays using pointer arithmetics
// An exercise to further deepen your understanding of the relation
// between pointers, pointer arithmetic, and arrays.
#include <iostream>
#include <format>
int main()
{
const size_t n {50};
size_t odds[n];
for (size_t i {}; i < n; ++i)
odds[i]... | __label__POS | 0.751491 |
package cm.aptoide.pt.notification.sync;
import cm.aptoide.pt.notification.NotificationSyncScheduler;
import cm.aptoide.pt.sync.SyncScheduler;
public class NotificationSyncManager implements NotificationSyncScheduler {
private final SyncScheduler syncScheduler;
private final NotificationSyncFactory notificationS... | __label__POS | 0.960352 |
// Exercise 5-7. Outputting product records & cost
// Getting the alignment right is tricky.
// You have to adjust the field widths until it looks OK.
#include <iostream>
#include <format>
#include <cctype>
#include <vector>
int main()
{
std::vector<size_t> product_id;
std::vector<size_t> quantity;
std::vector<d... | __label__POS | 0.978107 |
package cm.aptoide.pt.notification.sync;
import androidx.annotation.StringRes;
import cm.aptoide.pt.notification.AptoideNotification;
import cm.aptoide.pt.notification.NotificationProvider;
import cm.aptoide.pt.sync.Sync;
import rx.Completable;
public class LocalNotificationSync extends Sync {
public static final S... | __label__POS | 0.896757 |
// Exercise 5-4 Print out characters entered by the user in reverse order
#include <iostream>
int main()
{
const size_t max_num_characters {1'000};
char string[max_num_characters];
std::cout << "Please enter a string: ";
std::cin.getline(string, max_num_characters);
// Count the number of characters
si... | __label__POS | 0.75019 |
package cm.aptoide.pt.notification.sync;
import androidx.annotation.StringRes;
import cm.aptoide.pt.notification.NotificationProvider;
import cm.aptoide.pt.sync.SyncScheduler;
public class LocalNotificationSyncManager {
public static final long FIVE_MINUTES = 5 * 60 * 1000;
public static final long TWO_MINUTES =... | __label__POS | 0.988925 |
// Exercise 7-2 Frequency of words in text.
#include <iostream>
#include <format>
#include <string>
#include <vector>
int main()
{
std::string text; // The text to be searched
std::cout << "Enter some text terminated by *:\n";
std::getline(std::cin, text, '*');
const ... | __label__POS | 0.796709 |
package cm.aptoide.pt.notification.sync;
import cm.aptoide.pt.BuildConfig;
import cm.aptoide.pt.notification.NotificationProvider;
import cm.aptoide.pt.notification.NotificationService;
import cm.aptoide.pt.sync.Sync;
public class NotificationSyncFactory {
public static final String CAMPAIGN_NOTIFICATION_SYNC_PERI... | __label__POS | 0.896705 |
package cm.aptoide.pt.notification.view;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;
import cm.aptoide.pt.R;
import cm.aptoide.pt.notification.AptoideNotification;
import java.util.List;
import rx.subjects.PublishSubject;
/**
* Created by pedro... | __label__POS | 0.948908 |
package cm.aptoide.pt.notification.view;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.LinearLayout;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recycler... | __label__POS | 0.803097 |
// 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 be searched
std::string word; ... | __label__POS | 0.720692 |
// 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.92259 |
package cm.aptoide.pt.notification.policies;
import androidx.annotation.NonNull;
import cm.aptoide.pt.notification.AptoideNotification;
import cm.aptoide.pt.notification.NotificationProvider;
import cm.aptoide.pt.notification.Policy;
import java.util.concurrent.TimeUnit;
import rx.Single;
/**
* Created by trinkes on... | __label__POS | 0.916168 |
// Exercise 7-7
// Practice string concatenation, looping over strings, and stoi()-like functions
#include <iostream>
#include <string>
int main()
{
std::cout << "Enter a sequence of numbers terminated by #:\n";
// Read a long string containing any number of integers
std::string numbers;
std::getline(std::c... | __label__POS | 0.922047 |
// Exercise 7-1 Storing student names and grades.
// This uses a vector of string objects to store the names.
#include <iostream>
#include <format>
#include <cctype>
#include <vector>
#include <string>
int main()
{
std::vector<std::string> names;
std::vector<double> grades;
size_t max_length {}; // Lo... | __label__POS | 0.827697 |
package cm.aptoide.pt.install.installer;
import cm.aptoide.pt.database.room.RoomFileToDownload;
import cm.aptoide.pt.install.InstallerAnalytics;
import cm.aptoide.pt.install.exception.InstallationException;
import cm.aptoide.pt.logger.Logger;
import java.io.File;
import java.util.Locale;
import java.util.regex.Matcher... | __label__POS | 0.732373 |
// Exercise 9-4. Using std::optional<>
#include <iostream>
#include <string>
#include <vector>
#include <array>
#include <span>
#include <optional>
// Function prototypes
std::optional<double> largest(std::span<const double> data);
std::optional<int> largest(std::span<const int> data);
std::optional<std::string> large... | __label__POS | 0.799144 |
package cm.aptoide.pt.install.installer;
import android.app.PendingIntent;
import android.graphics.Bitmap;
import androidx.core.app.NotificationCompat;
public class RootInstallErrorNotification {
public final int notificationId;
private final Bitmap icon;
private final String message;
private final Notificat... | __label__POS | 0.955196 |
package cm.aptoide.pt.install.installer;
import android.app.PendingIntent;
import android.content.Context;
import android.graphics.Bitmap;
import androidx.annotation.NonNull;
import androidx.core.app.NotificationCompat;
import cm.aptoide.pt.R;
import cm.aptoide.pt.install.Install;
import java.util.List;
public class ... | __label__POS | 0.903877 |
// Exercise 4-2 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.87568 |
// Exercise 4-05
// Using the conditional operator to select output.
#include <iostream>
#include <format>
int main()
{
int mice {}; // Count of all mice
int brown {}; // Count of brown mice
int white {}; // Count of white mice
std::cout << "How many brown mice do you have? ";
std::cin >> bro... | __label__POS | 0.955916 |
package cm.aptoide.pt.install.installer;
/**
* Created by trinkes on 10/04/2017.
*/
public class InstallationState {
private static final int DEFAULT_APP_SIZE = 0;
private final String packageName;
private final int versionCode;
private final String versionName;
private final int status;
private final i... | __label__POS | 0.964787 |
namespace GetInjectedThreads.Enums
{
// https://docs.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-token_information_class
enum TOKEN_INFORMATION_CLASS
{
TokenUser = 1,
TokenGroups,
TokenPrivileges,
TokenOwner,
TokenPrimaryGroup,
TokenDefaultDacl,
... | __label__POS | 0.652238 |
namespace GetInjectedThreads.Enums
{
public enum PRIVILEGE_CONSTANT
{
SeCreateTokenPrivilege = 1,
SeAssignPrimaryTokenPrivilege,
SeLockMemoryPrivilege,
SeIncreaseQuotaPrivilege,
SeUnsolicitedInputPrivilege,
SeMachineAccountPrivilege,
SeTcbPrivilege,
... | __label__POS | 0.956307 |
using GetInjectedThreads.Enums;
using System;
namespace GetInjectedThreads.Structs
{
// MEMORY_BASIC_INFORMATION struct required for VirtualQueryEx - to read state and type fields
// https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-memory_basic_information
public struct MEMORY_BASIC_INF... | __label__POS | 0.690812 |
// 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.951069 |
// Exercise 8_4 An overloaded plus() function.
#include <iostream>
#include <string>
int plus(int a, int b);
double plus(double x, double y);
std::string plus(const std::string& s1, const std::string& s2);
int main()
{
const int n {plus(3, 4)};
std::cout << "plus(3, 4) returns " << n << std::endl;
const dou... | __label__POS | 0.789172 |
// Exercise 3-1. Output an integer and its complements in binary and decimal.
// This tests how well you remember string formatting using std::format()
// (see Chapter 2 if you forgot some of the formatting options),
// as well as two's complement binary encoding and bitwise ~.
#include <iostream>
#include <format>
... | __label__POS | 0.885558 |
// 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 |
// Exercise 14-4 Working with Employee and Executive objects
#include <iostream>
#include <vector>
#include "Person.h"
int main()
{
std::vector<Employee> employees
{
Employee{ 21, "Randy Marathon", Gender::male, 34567 },
Employee{ 32, "Anna Pothecary", Gender::female, 34578 },
Employee{ 46, "Peter Out... | __label__POS | 0.824342 |
'''
Functions for exact distribution
of day in week (or useful for small
sample Benford tests)
'''
import numpy as np
from math import comb
# composition function generated via Claude
def compositions(n, m):
"""
Calculate all possible compositions of n items into m bins.
A composition is a way of wr... | __label__POS | 0.780712 |
### Examples
It's our goal to create a wide variety of example of how Tether
can be used. Here's what we have so far, please send a PR with
any examples you might create.
#### Beginner
- [simple](../../examples/simple): A simple example to get you started
- [out-of-bounds](../../examples/out-of-bounds): How to hide... | __label__POS | 0.941365 |
/**
*
*/
package com.apress.demo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.domain.Page;
import org.springframework.test.context.junit4.SpringRunn... | __label__POS | 0.906563 |
/**
*
*/
package com.apress.demo.entities;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
im... | __label__POS | 0.647544 |
// Exercise 21-5 Recreating std::advance() using constraint-based specialisation
#include <iostream>
#include <iterator>
#include <vector>
#include <list>
#include <forward_list>
template <std::random_access_iterator Iter>
auto my_advance(Iter iter, std::iter_difference_t<Iter> n)
{
return iter + n;
}
template <s... | __label__POS | 0.997718 |
// Exercise 20-14: the hard nut
#include <iostream>
#include <algorithm>
#include <ranges>
#include <iterator>
#include <cmath>
using namespace std::ranges::views;
bool isPrime(unsigned number)
{
return number >= 2
&& std::ranges::none_of(
iota(2u, static_cast<unsigned>(std::sqrt(number) + 1)),
... | __label__POS | 0.6623 |
/**
*
*/
package com.apress.demo.rest.model;
import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.springframework.data.domain.Page;
import com.apress.demo.entities.Post;
/**
* @author Siva
*
*/
@XmlRootElement
public class PostsResponseDTO implements... | __label__POS | 0.930938 |
// Copyright (C) 2023 Intel Corporation
// SPDX-License-Identifier: MIT
#include <iostream>
#include <sycl/sycl.hpp>
using namespace std;
int my_selector(int isgpu, string foo) {
int score = -1;
// We prefer non-Martian GPUs, especially ACME GPUs
if (isgpu) {
if (foo.find("ACME") != std::string::npos) sco... | __label__POS | 0.629393 |
<!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 20-5 Create a generic average() algorithm using std::accumulate()
#include <iostream>
#include <numeric>
#include <utility> // for std::pair<> (only required for Solution 2 below)
#include <optional>
#include <vector>
// Solution 1: simply use accumulate to sum, and determine the count using std::dista... | __label__POS | 0.995479 |
// Exercise 20-10: exercising projection with range-based algorithms
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
int main()
{
std::vector<std::string> names{"Frodo Baggins", "Gandalf the Gray",
"Aragon", "Samwise Gamgee", "Peregrin Took", "Meriadoc Brandybuck",
"Gimli", "Le... | __label__POS | 0.926141 |
// Exercise 20-2
// Replace a custom stack container by the standard stack container adapter
#include <stack>
#include <iostream>
#include <string>
/*
Two challenges:
- std::stack<>::pop() is a void function.
To access the top of the stack, you use std::stack<>::top().
- std::stack<const T> is not allowed
*... | __label__POS | 0.995593 |
# Applied Deep Learning - A Case-Based Approach to Understanding Deep Neural Networks
### By Umberto Michelucci
Welcome to the github repository for the book "Applied Deep Learning - A Case-Based Approach to Understanding Deep Neural Networks". Here you will find the jupyter notebooks that I used during the completio... | __label__POS | 0.623387 |
// Exercise 15-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}, ... | __label__POS | 0.798953 |
// Exercise 15-1 Animals.h
// Animal classes
#ifndef ANIMALS_H
#define ANIMALS_H
#include <string>
#include <string_view>
class Animal
{
public:
Animal(std::string_view name, unsigned weight);// Constructor
virtual ~Animal() = default; // Very important: a virtual destructor!
virtual std::str... | __label__POS | 0.784392 |
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 16:56:51 11/23/2018
// Design Name:
// Module Name: ID
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revi... | __label__POS | 0.603928 |
`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.998473 |
`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.675673 |
`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.693174 |
`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 |
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 22:40:05 12/12/2018
// Design Name:
// Module Name: DEV1
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Re... | __label__POS | 0.73065 |
/**
*
*/
package com.apress.demo.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.Validator;
... | __label__POS | 0.815456 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.