content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
// Exercise 5-7. Outputting product records & cost
// Getting the alignment right is tricky.
// You have to adjust the field widths until it looks OK.
import <iostream>;
import <format>;
import <vector>;
#include <cctype>
int main()
{
std::vector<size_t> product_id;
std::vector<size_t> quantity;
std::vector<dou... | __label__POS | 0.914381 |
// Exercise 5-4 Print out characters entered by the user in reverse order
import <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
siz... | __label__POS | 0.658364 |
`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.721668 |
`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 |
package cm.aptoide.pt.view.app;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;
import cm.aptoide.pt.R;
import java.util.List;
import rx.subjects.PublishSubject;
/**
* Created by trinkes on 17/10/2017.
*/
class ListStoreAppsAdapter extends Recycl... | __label__POS | 0.943293 |
`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 |
`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 |
package cm.aptoide.pt.view.app;
import rx.Single;
/**
* Created by trinkes on 17/10/2017.
*/
public class AppCenter {
private final AppCenterRepository appCenterRepository;
public AppCenter(AppCenterRepository appRepository) {
this.appCenterRepository = appRepository;
}
public Single<AppsList> loadNe... | __label__POS | 0.993006 |
// 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.
import <iostream>;
int ... | __label__POS | 0.799964 |
package org.python.core;
public abstract class PyBuiltinFunction extends PyObject implements PyType.Newstyle {
public static final String exposed_name = "builtin_function_or_method";
public static void typeSetup(PyObject dict, PyType.Newstyle marker) {
dict.__setitem__("__name__", new PyGetSetDescr("... | __label__POS | 0.793614 |
`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.970657 |
// Exercise 4-05
// Using the conditional operator to select output.
import <iostream>;
import <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 >> brown;
... | __label__POS | 0.91202 |
package cm.aptoide.pt.view.app;
import cm.aptoide.pt.aab.Split;
import cm.aptoide.pt.dataprovider.model.v7.Malware;
import cm.aptoide.pt.dataprovider.model.v7.Obb;
import cm.aptoide.pt.dataprovider.model.v7.store.Store;
import java.util.List;
/**
* Created by D01 on 04/05/18.
*/
public class DetailedApp {
priva... | __label__POS | 0.831299 |
package cm.aptoide.pt.view.app;
/**
* Created by trinkes on 18/10/2017.
*/
public class Application {
private final String name;
private final String icon;
private final float rating;
private final int downloads;
private final long appId;
private final String packageName;
private final String tag;
p... | __label__POS | 0.829856 |
`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.957323 |
package cm.aptoide.pt.view.app;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import cm.aptoide.pt.R;
import cm.aptoide.pt.networking.image.ImageLoader;
import java.text.DecimalFormat;
import rx.subjects.PublishSubject;
/**
* Created by trinkes on 18/10/2017.
*/
public ... | __label__POS | 0.829146 |
<!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 |
`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.956518 |
package cm.aptoide.pt.view.app;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import rx.Observable;
import rx.Single;
/**
* Created by trinkes on 23/10/2017.
*/
public class AppCenterRepository {
private final AppService appService;
private final Map<Lon... | __label__POS | 0.611164 |
// 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'.
*******************************************************************/
import <iostrea... | __label__POS | 0.8725 |
`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 |
`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.618152 |
`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.721668 |
`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 |
// 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 ~.
import <iostream>;
import <format>;
/... | __label__POS | 0.766145 |
// 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.847054 |
`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 |
`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 |
`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.970657 |
`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.957323 |
/*
* Copyright (c) 2016.
* Modified by Neurophobic Animal on 28/06/2016.
*/
package cm.aptoide.pt.view.fragment;
import android.content.Context;
import android.view.WindowManager;
import androidx.recyclerview.widget.RecyclerView;
import cm.aptoide.pt.R;
import cm.aptoide.pt.crashreports.CrashReport;
import cm.apto... | __label__POS | 0.646876 |
package cm.aptoide.pt.view.fragment;
import android.app.Dialog;
import android.os.Bundle;
import androidx.annotation.Nullable;
import cm.aptoide.pt.AptoideApplication;
import cm.aptoide.pt.FlavourFragmentModule;
import cm.aptoide.pt.view.BaseActivity;
import cm.aptoide.pt.view.FragmentComponent;
import cm.aptoide.pt.v... | __label__POS | 0.832201 |
`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.956518 |
/*
* Copyright (c) 2016.
* Modified by Neurophobic Animal on 25/05/2016.
*/
package cm.aptoide.pt.view.fragment;
import androidx.annotation.NonNull;
import cm.aptoide.pt.R;
import cm.aptoide.pt.view.ReloadInterface;
import cm.aptoide.pt.view.recycler.BaseAdapter;
import cm.aptoide.pt.view.swipe.LoaderLayoutHandler... | __label__POS | 0.887798 |
`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 |
// Animal class and classes derived from Animal
export module animals;
import <string>;
import <string_view>;
import <iostream>;
export class Animal
{
public:
Animal(std::string_view name, int weight) // Constructor
: m_name{ name }, m_weight{ weight }
{}
protected:
void who() const /... | __label__POS | 0.619759 |
`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.662778 |
package cm.aptoide.pt.view.fragment;
import android.view.View;
import androidx.annotation.CallSuper;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import cm.aptoide.pt.R;
/**
* Created by neuro on 06-05-2016.
*/
public abstract cl... | __label__POS | 0.892817 |
/*******************************************************************
* Copyright(c) 2016 Chen Gonghao
* All rights reserved.
*
* chengonghao@yeah.net
*
* ļ:cghHeapIJԴ
******************************************************************/
#include "stdafx.h"
#include "cghHeap.h"
using namespace::std;
int _tmain(int ar... | __label__POS | 0.924302 |
package cm.aptoide.pt.view.fragment;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import androidx.annotation.AttrRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.DialogFragment;
import cm.apto... | __label__POS | 0.669237 |
`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 |
// Copyright (c) Corporation for National Research Initiatives
package org.python.core;
/**
* A faster Dictionary where the keys have to be strings.
* <p>
* This is the default for all __dict__ instances.
*/
public class PyStringMap extends PyObject {
//Table of primes to cycle through
private static fina... | __label__POS | 0.73584 |
`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.721668 |
`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 |
package cm.aptoide.pt.view.fragment;
import androidx.annotation.NonNull;
import cm.aptoide.pt.presenter.Presenter;
import cm.aptoide.pt.presenter.View;
import com.trello.rxlifecycle.LifecycleTransformer;
import com.trello.rxlifecycle.RxLifecycle;
import com.trello.rxlifecycle.android.FragmentEvent;
import rx.Observabl... | __label__POS | 0.640656 |
package org.python.core;
import java.io.IOException;
import java.io.InputStream;
public class FilelikeInputStream extends InputStream {
private PyObject filelike;
public FilelikeInputStream(PyObject filelike) {
this.filelike = filelike;
}
public int read() throws IOException {
byte[... | __label__POS | 0.991728 |
/*******************************************************************
* Copyright(c) 2016 Chen Gonghao
* All rights reserved.
*
* chengonghao@yeah.net
*
* ļݣcghStl_numeric.h еֵ㷨IJ
******************************************************************/
#include "stdafx.h"
//#include "cghVector.h"
//#include "cghStl_numer... | __label__POS | 0.903347 |
`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 |
package org.python.core;
public class PySlot extends PyDescriptor {
public PySlot(PyType dtype, String name, int index) {
this.name = name;
this.dtype = dtype;
this.index = index;
}
public boolean implementsDescrSet() {
return true;
}
public boolean isDataDescr() ... | __label__POS | 0.84623 |
`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 |
package cm.aptoide.pt.view.fragment;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.Toolbar;
import cm.aptoide.pt.AptoideApplication;
import cm.aptoide.pt.R;
import cm.aptoide.pt.v... | __label__POS | 0.990717 |
/*******************************************************************
* Copyright(c) 2016 Chen Gonghao
* All rights reserved.
*
* chengonghao@yeah.net
*
* ļ:stackIJԴ
******************************************************************/
#include "stdafx.h"
#include "deque_stack.h"
using namespace::std;
int _tmain(int... | __label__POS | 0.815082 |
`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.970657 |
/*******************************************************************
* Copyright(c) 2016 Chen Gonghao
* All rights reserved.
*
* chengonghao@yeah.net
*
* ļ:cgh_hash_tableIJ
******************************************************************/
#include "stdafx.h"
#include "cgh_hash_table.h"
using namespace::std;
int ... | __label__POS | 0.949216 |
/*******************************************************************
* Copyright(c) 2016 Chen Gonghao
* All rights reserved.
*
* chengonghao@yeah.net
*
* ļ:stackIJԴ
******************************************************************/
#include "stdafx.h"
#include "cghQueue.h"
using namespace::std;
int _tmain(int ar... | __label__POS | 0.882112 |
package cm.aptoide.pt.view.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.CallSuper;
import androidx.annotation.Nullable;
import cm.aptoide.pt.permission.PermissionServiceFragment;
/**
* Created by neuro on 1... | __label__POS | 0.885088 |
`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.957323 |
`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.956518 |
/*******************************************************************
* Copyright(c) 2016 Chen Gonghao
* All rights reserved.
*
* chengonghao@yeah.net
*
* ļ:cghDequeIJԴ
******************************************************************/
#include "stdafx.h"
#include "cghVector.h"
#include "cghDeque.h"
using namespace... | __label__POS | 0.974804 |
package org.python.parser;
import org.python.parser.ast.*;
import org.python.core.PyObject;
public class TreeBuilder implements PythonGrammarTreeConstants {
private JJTPythonGrammarState stack;
CtxVisitor ctx;
public TreeBuilder(JJTPythonGrammarState stack) {
this.stack = stack;
ctx = new... | __label__POS | 0.708927 |
// Exercise 20-5 Create a generic average() algorithm using std::accumulate()
import <iostream>;
import <numeric>;
import <utility>; // for std::pair<> (only required for Solution 2 below)
import <optional>;
import <vector>;
// Solution 1: simply use accumulate to sum, and determine the count using std::distance()... | __label__POS | 0.984889 |
`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 |
`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.753844 |
`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 |
// Exercise 20-2
// Replace a custom stack container by the standard stack container adapter
import <stack>;
import <iostream>;
import <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.988107 |
/* Generated By:JJTree: Do not edit this line. /Users/fwier/src/jython/org/python/parser/PythonGrammarTreeConstants.java */
package org.python.parser;
public interface PythonGrammarTreeConstants {
public int JJTSINGLE_INPUT = 0;
public int JJTFILE_INPUT = 1;
public int JJTEVAL_INPUT = 2;
public int JJ... | __label__POS | 0.846024 |
package cm.aptoide.pt.view.spannable;
import android.content.Context;
import android.text.ParcelableSpan;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.style.ForegroundColorSpan;
import android.text.style.StyleSpan;
import android.text.style.TextAppearanceSpan;
import androidx... | __label__POS | 0.986342 |
// Copyright (c) Corporation for National Research Initiatives
package org.python.parser;
import java.io.DataOutputStream;
import java.io.IOException;
import org.python.parser.ast.VisitorIF;
public class SimpleNode implements Node {
public int beginLine, beginColumn;
public boolean from_future_checked = fal... | __label__POS | 0.967593 |
`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.721668 |
`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: 17:13:22 11/23/2018
// Design Name:
// Module Name: npc
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Rev... | __label__POS | 0.664167 |
`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 |
`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.970657 |
// Exercise 15-1 Animals.cppm
// Animal classes
export module animals;
import <string>;
import <string_view>;
export class Animal
{
public:
Animal(std::string_view name, unsigned weight);// Constructor
virtual ~Animal() = default; // Very important: a virtual destructor!
virtual std::string w... | __label__POS | 0.612801 |
/*
* Copyright (c) 2016.
* Modified by Neurophobic Animal on 27/05/2016.
*/
package cm.aptoide.pt.view.recycler.widget;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import androidx.annotation.La... | __label__POS | 0.630433 |
/* Generated By:JJTree&JavaCC: Do not edit this line. PythonGrammarConstants.java */
package org.python.parser;
public interface PythonGrammarConstants {
int EOF = 0;
int SPACE = 1;
int CONTINUATION = 4;
int NEWLINE1 = 5;
int NEWLINE = 6;
int NEWLINE2 = 7;
int CRLF1 = 12;
int DEDENT = ... | __label__POS | 0.702511 |
`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.97072 |
`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.971308 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class ListModels {
public static void main(String[] args) {
try {
// Create URL object for the API endpoint
URL url = new URL("https://api.openai.com/v1/models");
... | __label__POS | 0.838281 |
package org.python.compiler;
public interface ClassConstants {
final static String $pyObj = "Lorg/python/core/PyObject;";
final static String $pyObjArr = "[Lorg/python/core/PyObject;";
final static String $pyStr = "Lorg/python/core/PyString;";
final static String $pyUnicode = "Lorg/python/core/PyUnico... | __label__POS | 0.955212 |
`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 |
// Copyright (c) Corporation for National Research Initiatives
package org.python.compiler;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
class Label {
int position;
int[] offsets, positions, sizes;
int noffsets;
Code code;
int stack;
publ... | __label__POS | 0.650148 |
// (C) Copyright 2001 Samuele Pedroni
package org.python.compiler;
import org.python.parser.*;
import org.python.parser.ast.*;
import java.util.*;
public class ScopesCompiler extends Visitor implements ScopeConstants {
private CompilationContext code_compiler;
private Stack scopes;
private ScopeInfo cu... | __label__POS | 0.649761 |
package cm.aptoide.pt.view.recycler.displayable;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.WindowManager;
import androidx.annotation.LayoutRes;
import androidx.annotation.Nullable;
import cm.aptoide.pt.dataprovider.model.v7.Type;
import cm.aptoide.pt.utils.AptoideUtils;
import... | __label__POS | 0.813134 |
<?php
namespace APY\DataGridBundle\Tests\Grid;
use APY\DataGridBundle\Grid\Filter;
use PHPUnit\Framework\TestCase;
class FilterTest extends TestCase
{
public function testCreateFilters()
{
$filter1 = new Filter('like', 'foo', 'column1');
$this->assertEquals('like', $filter1->getOperator());
... | __label__POS | 0.948661 |
// Copyright (c) Corporation for National Research Initiatives
package org.python.compiler;
import java.io.*;
import java.util.Vector;
class ExceptionLabel {
public Label start, end, handler;
public int exc;
public ExceptionLabel(Label start, Label end, Label handler, int exc) {
this.start = sta... | __label__POS | 0.864847 |
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
im... | __label__POS | 0.6292 |
// Copyright 2001 Finn Bock
package org.python.compiler;
import java.io.*;
import java.util.*;
public class LineNumberTable extends Attribute {
int attName;
ConstantPool pool;
Vector lines;
public LineNumberTable(ConstantPool pool) throws IOException {
this.pool = pool;
attName = poo... | __label__POS | 0.986988 |
package cm.aptoide.pt.view.configuration.implementation;
import android.os.Bundle;
import android.text.TextUtils;
import androidx.fragment.app.Fragment;
import cm.aptoide.pt.app.view.AppViewFragment;
import cm.aptoide.pt.dataprovider.model.v7.Event;
import cm.aptoide.pt.dataprovider.ws.v7.store.StoreContext;
import cm... | __label__POS | 0.962012 |
`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 |
public class AudioSplitter {
public static void main(String[] args) {
String inputFilePath = "path/to/file/sample.mp3";
String outputDirectory = "path/to/folder/";
int segmentDurationInSeconds = 600; // 10 minutes in seconds
try (FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(inputFilePath)) ... | __label__POS | 0.979378 |
`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 |
import java.io.IOException;
import okhttp3.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
public class DALLEClient {
public static void main(String[] args) {
String openAIKey = "";
String endpoint = "https://api.openai.com/v1/images... | __label__POS | 0.73942 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.