content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
#include <iostream>
#include <vector>
using namespace std;
bool isPowerOf2(int num) {
if((num & (num-1)) == 0) {
return true;
} else {
return false;
}
}
void updateIthBit(int num, int i, int val) {
num = num & ~(1 << i);
int mask = val << i;
num = num | mask;
cout << num... | __label__POS | 0.999918 |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
class Node {
public:
int data;
Node* next;
Node(int data) {
this->data = data;
next = NULL;
}
// ~Node() {
// if(next != NULL) {
// delete next;
// next = NULL;
// ... | __label__POS | 0.997901 |
#include <iostream>
using namespace std;
class Node {
public:
int data;
Node* next;
Node* prev;
Node(int data) {
this->data = data;
next = prev = NULL;
}
};
class DoublyList {
public:
Node* head;
Node* tail;
DoublyList() {
head = NULL;
tail = NULL;
... | __label__POS | 1.000005 |
#include <iostream>
#include <vector>
using namespace std;
void printArr(int arr[], int n) {
for(int i=0; i<n; i++) {
cout << arr[i] << " ";
}
cout << endl;
}
void merge(int arr[], int si, int mid, int ei) {
vector<int> temp;
int i=si, j=mid+1;
while(i <= mid && j <= ei) {
if(... | __label__POS | 0.999679 |
#include <iostream>
#include <cmath>
using namespace std;
int main() {
//Print the largest of 2 numbers
int a = 3, b = 5;
if(a >= b) {
cout << "a is larger" << endl;
} else {
cout << "b is larger" << endl;
}
//Print if a number is Odd or Even
int num = 5;
if(num % 2 == ... | __label__POS | 0.949242 |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void printArr(int arr[], int n) {
for(int i=0; i<n; i++) {
cout << arr[i] << " ";
}
cout << endl;
}
void changeArr(int arr[], int n, int i) {
if(i == n) {
printArr(arr, n);
return;
}
arr[i] =... | __label__POS | 0.999871 |
#include <iostream>
using namespace std;
//max sum subarray (brute force - O(N^3))
int maxSumSubarray(int *arr, int n) {
int maxSum = INT_MIN;
for(int start=0; start<n; start++) {
for(int end=start; end<n; end++) {
int sum = 0;
for(int i=start; i<=end; i++) {
su... | __label__POS | 0.999923 |
#include <iostream>
#include <string>
using namespace std;
//Tiling Problem
int countWays(int n) {
if(n == 0 || n == 1) {
return 1;
}
//vertical choice
int ways1 = countWays(n-1);
//horizonal choice
int ways2 = countWays(n-2);
return ways1 + ways2;
}
//Remove Duplicates
void rem... | __label__POS | 0.999995 |
#include <iostream>
using namespace std;
//Simple Function
void sayHello() {
cout << "Hello from Apna College\n";
}
//Sum of 2 numbers
int sum(int a, int b) {
return a + b;
}
//Sum of 2 float - Function Overloading
float sum(float x, float y) {
return x + y;
}
//Product of 2 numbers
int prod(int a, int ... | __label__POS | 0.999562 |
#include <iostream>
using namespace std;
//Print Array
void printArr(int arr[], int n) {
for(int i=0; i<n; i++) {
cout << arr[i] << " ";
}
cout << endl;
}
void printArr(char arr[], int n) {
for(int i=0; i<n; i++) {
cout << arr[i] << " ";
}
cout << endl;
}
void bubbleSort(int a... | __label__POS | 0.999792 |
#include <iostream>
#include <cstring>
#include <string>
using namespace std;
//Convert to UpperCase
void toUpper(char str[], int n) {
for(int i=0; i<n; i++) {
if(str[i] >= 'A' && str[i] <= 'Z') {
continue;
} else {
int diff = str[i] - 'a';
str[i] = 'A' + diff;
... | __label__POS | 0.999952 |
#include <iostream>
using namespace std;
int main() {
//Qs : Factorial of a number n
int n = 6;
int fact = 1;
for(int i=1; i<=n; i++) {
fact *= i;
}
cout << "factorial of " << n << " = " << fact << "\n";
//Qs : Multiplication Table of n
n = 8;
for(int i=1; i<=10; i++) ... | __label__POS | 0.999602 |
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int n = 10;
//Print numbers from 1 to n
// for(int i=1; i<=n; i++) {
// cout << i << " ";
// }
// cout << endl;
//Print numbers from n to 1 (reverse order)
// for(int i=n; i>0; i--) {
// cout << i << " "... | __label__POS | 0.998943 |
#include <iostream>
#include <string>
using namespace std;
class Student {
private:
float cgpa;
public:
string name;
//Setter
void setCgpa(float newCgpa) {
if(newCgpa < 0) {
cout << "Invalid Data\n";
return;
}
cgpa = newCgpa;
}
//Getter
flo... | __label__POS | 0.997551 |
#include <iostream>
using namespace std;
void printArr(int *arr, int n) {
for(int i=0; i<n; i++) {
cout << arr[i] << ",";
}
cout << endl;
}
int linearSearch(int *arr, int n, int key) {
for(int i=0; i<n; i++) {
if(arr[i] == key) {
return i;
}
}
return -1;
}
... | __label__POS | 0.999953 |
#include <iostream>
using namespace std;
int main() {
int n = 4;
//Number Square Pattern
for(int i=1; i<=n; i++) {
for(int j=1; j<=n; j++) {
cout << i;
}
cout << endl;
}
// Star Pattern
for(int i=1; i<=n; i++) {
for(int j=1; j<=i; j++) {
... | __label__POS | 1.000007 |
#include <iostream>
#include <string>
using namespace std;
//Function Overloading
class Print {
public:
void show(int x) {
cout << "int : " << x << endl;
}
void show(string str) {
cout << "string : " << str << endl;
}
};
//Operator Overloading
class Complex {
int real;
int img... | __label__POS | 0.999464 |
#include <iostream>
using namespace std;
void printSpiral(int matrix[][4], int n, int m) {
int scol = 0, srow = 0;
int ecol = m-1, erow = n-1;
while(srow <= erow && scol <= ecol) {
//top
for(int j=scol; j<=ecol; j++) {
cout << matrix[srow][j] << " ";
}
//right
... | __label__POS | 0.998409 |
/*
* CoinAPI Indexes REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Contact: support@apibricks.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* h... | __label__POS | 0.623456 |
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import ... | __label__POS | 0.837128 |
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import ... | __label__POS | 0.904266 |
package org.openapitools.client.infrastructure
enum class ResponseType {
Success, Informational, Redirection, ClientError, ServerError
}
interface Response
abstract class ApiResponse<T>(val responseType: ResponseType): Response {
abstract val statusCode: Int
abstract val headers: Map<String,List<String>>... | __label__POS | 0.619605 |
import React from "react";
function Hero() {
return (
<section className="container-fluid" id="supportHero">
<div className="p-5 " id="supportWrapper">
<h4>Support Portal</h4>
<a href="">Track Tickets</a>
</div>
<div className="row p-5 m-3">
<div className="col-6 p-3">
... | __label__POS | 0.846486 |
/**
* CoinAPI Indexes REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Contact: support@apibricks.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* ... | __label__POS | 0.688182 |
/**
* CoinAPI Indexes REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Contact: support@apibricks.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* ... | __label__POS | 0.847288 |
/**
* CoinAPI Indexes REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Contact: support@apibricks.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* ... | __label__POS | 0.732795 |
/**
* CoinAPI Indexes REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Contact: support@apibricks.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* ... | __label__POS | 0.931156 |
/**
* CoinAPI Indexes REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Contact: support@apibricks.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* ... | __label__POS | 0.776055 |
/**
* CoinAPI Indexes REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Contact: support@apibricks.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* ... | __label__POS | 0.847781 |
/**
* CoinAPI Indexes REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Contact: support@apibricks.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* ... | __label__POS | 0.651213 |
/**
* CoinAPI Indexes REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Contact: support@apibricks.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* ... | __label__POS | 0.860048 |
/**
* CoinAPI Indexes REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Contact: support@apibricks.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* ... | __label__POS | 0.660173 |
/**
* CoinAPI Indexes REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Contact: support@apibricks.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* ... | __label__POS | 0.837229 |
/* eslint-disable react/no-unescaped-entities */
"use client";
import React from "react";
import Button from "components/con/common/Button";
import useDynamicRefs from "hooks/con/useDynamicRefs";
import ReviewItem from "components/con/review/ReviewItem";
import LinedTitle from "components/con/common/typography/LinedTit... | __label__POS | 0.652836 |
using QuickFix;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace COINAPI.FIX.V2
{
class Program
{
[STAThread]
static void Main(string[] args)
{
try
{
QuickFix.SessionSet... | __label__POS | 0.946084 |
require 'ostruct'
require 'waterfall/version'
require 'waterfall/predicates/base'
require 'waterfall/predicates/on_dam'
require 'waterfall/predicates/when_falsy'
require 'waterfall/predicates/when_truthy'
require 'waterfall/predicates/chain'
WATERFALL_PATH = "lib/waterfall"
module Waterfall
attr_reader :error_pool... | __label__POS | 0.93378 |
/*
EMS - REST API
This section will provide necessary information about the `CoinAPI EMS REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> Implemented Standards: * [HTTP1.0](https://datatracker.... | __label__POS | 0.643706 |
class UploadsController < ApplicationController
def show
@upload = Upload.find(params[:id])
end
def create
@upload = Upload.new(params[:upload])
if @upload.save
render :json => { :pic_path => @upload.picture.url.to_s , :name => @upload.picture.instance.attributes["picture_file_name"] }, :con... | __label__POS | 0.768741 |
/**
* EMS - REST API
* This section will provide necessary information about the `CoinAPI EMS REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> Implemented Standards: * [HTTP1.0](https://datatr... | __label__POS | 0.709968 |
/**
* EMS - REST API
* This section will provide necessary information about the `CoinAPI EMS REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> Implemented Standards: * [HTTP1.0](https://datatr... | __label__POS | 0.743751 |
const footer = [
{
title: "footer.previous_edition.title",
links: [
{
title: "footer.previous_edition.links.review",
link: "/{{locale}}/con/2022/review",
},
{
title: "footer.previous_edition.links.archive",
link: "/{{locale}}/con/2022/",
},
{
... | __label__POS | 0.644539 |
package org.voltdb;
import java.io.IOException;
import java.math.BigDecimal;
import java.nio.ByteBuffer;
import java.util.concurrent.Semaphore;
import org.voltdb.messaging.FastSerializer;
import org.voltdb.types.TimestampType;
import edu.brown.profilers.TransactionProfiler;
/**
* Special VoltTable wrapper class fo... | __label__POS | 0.926043 |
#ifndef _SPECWRITERIMPL_H_
#define _SPECWRITERIMPL_H_
#include <string>
namespace apngasm {
class APNGAsm;
namespace listener { class IAPNGAsmListener; }
namespace spec {
namespace priv {
// Interface.
class ISpecWriterImpl
{
public:
// Destructor.
virtual ~ISpecWr... | __label__POS | 0.873283 |
package org.voltdb.types;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
/**
* AntiCache Database Types (based upon SpeculationConflictCheckerType)
* @author giardino
*/
public enum AntiCacheDBType {
/*
* No AntiCacheDB (intended to disable second or subsequent levels)
*/
... | __label__POS | 0.981953 |
package org.voltdb.types;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
/**
* Type that specifies what kind of conflict exists between transactions
*/
public enum ConflictType {
INVALID (0), // For Parsing...
READ_WRITE (1),
WRITE_READ (2),
WRITE_WRITE (3);
Con... | __label__POS | 0.945815 |
package org.voltdb.types;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
/**
* Speculative Execution Conflict Checking Types
* @author pavlo
*/
public enum SpeculationConflictCheckerType {
/**
* Table-level Conflict Detection
*/
TABLE,
/**
* Markov-model Row-le... | __label__POS | 0.790178 |
package org.voltdb.types;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
/**
* Speculative Execution Stall Point Types
* This corresponds to where in the distributed txn that the executor is stalling.
*/
public enum SpeculationType {
/**
* Invalid/null stall point
*/
... | __label__POS | 0.671608 |
/* This file is part of VoltDB.
* Copyright (C) 2008-2010 VoltDB L.L.C.
*
* VoltDB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version... | __label__POS | 0.999902 |
note
description: "Summary description for {JSON_BASIC_REFLECTOR_DESERIALIZER}."
date: "$Date$"
revision: "$Revision$"
class
JSON_BASIC_REFLECTOR_DESERIALIZER
inherit
JSON_DESERIALIZER
redefine
reset
end
JSON_TYPE_UTILITIES_EXT
feature -- Conversion
from_json (a_json: detachable JSON_VALUE; ctx: JSON... | __label__POS | 0.625568 |
package org.voltdb.sysprocs;
import java.util.List;
import java.util.Map;
import org.voltdb.DependencySet;
import org.voltdb.ParameterSet;
import org.voltdb.ProcInfo;
import org.voltdb.VoltSystemProcedure;
import org.voltdb.VoltTable;
import org.voltdb.VoltTable.ColumnInfo;
import org.voltdb.VoltType;
import org.volt... | __label__POS | 0.703158 |
/* This file is part of VoltDB.
* Copyright (C) 2008-2010 VoltDB L.L.C.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights ... | __label__POS | 0.807314 |
/* This file is part of VoltDB.
* Copyright (C) 2008-2010 VoltDB L.L.C.
*
* VoltDB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version... | __label__POS | 0.860298 |
/* This file is part of VoltDB.
* Copyright (C) 2008-2010 VoltDB L.L.C.
*
* VoltDB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version... | __label__POS | 0.681889 |
/* This file is part of VoltDB.
* Copyright (C) 2008-2012 VoltDB Inc.
*
* VoltDB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
... | __label__POS | 0.66885 |
public class OAS {
private static final String HEADER_CONTENT_TYPE = 'Content-Type';
private static final String HEADER_ACCEPT = 'Accept';
private static final String HEADER_ACCEPT_DELIMITER = ',';
private static final Map<String, String> DELIMITERS = new Map<String, String> {
'csv' => ',',
... | __label__POS | 0.807744 |
package org.voltdb.utils;
import java.io.Writer;
import java.util.Arrays;
import java.util.Collection;
import org.voltdb.VoltTable;
import org.voltdb.VoltType;
import org.voltdb.catalog.Column;
import org.voltdb.catalog.Table;
import org.voltdb.types.SortDirectionType;
import au.com.bytecode.opencsv.CSVWriter;
impor... | __label__POS | 0.7859 |
package org.voltdb.utils;
import java.util.Iterator;
import org.voltdb.VoltTable;
import org.voltdb.VoltTableRow;
public class ReduceInputIterator<K> implements Iterator<VoltTableRow> {
final VoltTable table;
boolean isAdvanced;
int jump;
boolean isFinish;
boolean isStart;
K oldKey;... | __label__POS | 0.952497 |
--[[
EMS - REST API
This section will provide necessary information about the `CoinAPI EMS REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> Implemented Standards: * [HTTP1.0](https://datatr... | __label__POS | 0.703116 |
package org.voltdb.exceptions;
import java.io.IOException;
import java.nio.ByteBuffer;
import org.voltdb.messaging.FastDeserializer;
import org.voltdb.messaging.FastSerializer;
/**
* Special exception that is thrown by the EE when somebody tries to have it
* read in a block from the anti-cache database that doesn'... | __label__POS | 0.756326 |
package org.voltdb.exceptions;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
/**
*
* @author pavlo
*/
public class ServerFaultException extends SerializableException {
private static final long serialVersionUID = 1L;
private final String errorMessage;
/**
* Th... | __label__POS | 0.846307 |
# InfoSystem
首先是对登陆进行抓包,发现发送了两个数据包,一个是登陆前台,一个是登陆后台:


访问后台路由`/admin/externalLogin`,重定向到`/ad... | __label__POS | 0.990619 |
package org.voltdb.exceptions;
import java.nio.ByteBuffer;
import edu.brown.statistics.FastIntHistogram;
import edu.brown.statistics.Histogram;
/**
* Thrown internally when we mispredicted a transaction as being single-partitioned
* This will cause the transaction to get restarted as multi-partitioned
* @author ... | __label__POS | 0.645327 |
package tech.portal.api.gateway.filter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.st... | __label__POS | 0.940148 |
module.exports = {
'getImages': function (recipe) {
var images = [];
var serviceNames = Object.keys(recipe.services || []);
for (var serviceName of serviceNames) {
if (recipe.services[serviceName].image) {
images.push(recipe.services[serviceName].image);
}
}
return images;
}... | __label__POS | 0.907139 |
package tech.portal.api.actuator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.... | __label__POS | 0.946179 |
package tech.portal.api.actuator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.HandlerInte... | __label__POS | 0.994554 |
class Service {
/**
* Creates a new Service object
* @param {WhmcsHttpClient} whmcsHttpClient
*/
constructor(whmcsHttpClient) {
this.whmcsHttpClient = whmcsHttpClient;
}
/**
* Runs a change package action for a given service.
* https://developers.whmcs.com/api-reference/modulechangepackage/... | __label__POS | 0.625578 |
class Module {
/**
* Creates a new Module object
* @param {WhmcsHttpClient} whmcsHttpClient
*/
constructor(whmcsHttpClient) {
this.whmcsHttpClient = whmcsHttpClient;
}
/**
* Activates a given module.
* https://developers.whmcs.com/api-reference/activatemodule/
* @param {Object} parameter... | __label__POS | 0.681839 |
package edu.brown.workload;
import java.util.HashSet;
import java.util.Set;
import org.apache.log4j.Logger;
import org.voltdb.catalog.Database;
import edu.brown.utils.ArgumentsParser;
public abstract class VerifyWorkload {
private static final Logger LOG = Logger.getLogger(VerifyWorkload.class);
public... | __label__POS | 0.630568 |
package edu.brown.workload;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.J... | __label__POS | 0.653121 |
package edu.brown.plannodes;
import org.voltdb.plannodes.AbstractPlanNode;
import edu.brown.utils.AbstractTreeWalker;
/**
* @author pavlo
*/
public abstract class PlanNodeTreeWalker extends AbstractTreeWalker<AbstractPlanNode> {
private final boolean include_inline;
private final boolean reverse;
/**... | __label__POS | 0.99709 |
package edu.brown.plannodes;
import org.voltdb.catalog.Procedure;
import org.voltdb.catalog.Statement;
import org.voltdb.plannodes.AbstractPlanNode;
import edu.brown.gui.common.GraphVisualizationPanel;
import edu.brown.utils.ArgumentsParser;
import edu.uci.ics.jung.graph.DelegateForest;
public class PlanNodeGraph ex... | __label__POS | 0.799538 |
package edu.brown.statistics;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;
import org.apache.log4j.Logger;
import edu.bro... | __label__POS | 0.875624 |
package edu.brown.statistics;
import java.util.Collection;
import java.util.Map;
import edu.brown.utils.JSONSerializable;
public interface Histogram<X> extends JSONSerializable {
// ----------------------------------------------------------------------------
// INTERNAL DATA CONTROL METHODS
// ---------... | __label__POS | 0.962411 |
package edu.brown.statistics;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import org.voltdb.catalog.Database;
import edu.brown.utils.ArgumentsParser;
import edu.brown.utils.ProjectType;
public abstract class FixStatistics {
/** java.util.logging logger. */
private static ... | __label__POS | 0.710551 |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Curvature
{
[DataContract(Namespace = "")]
public class ScenarioLocation : Scenario.IScenarioMember
{
[DataMember]... | __label__POS | 0.764057 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Curvature
{
public partial class EditWidgetInputs : UserControl
{
Project Edit... | __label__POS | 0.635358 |
package edu.brown.statistics;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
import org.json.JSONArray;
impor... | __label__POS | 0.660753 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Curvature.Forms
{
public partial class EnumerationEditorForm : Form
{
private ... | __label__POS | 0.800475 |
package edu.brown.markov;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import org.apache.commons.collections15.EnumerationUtils;
import org.apache.commons.collections15.set.ListOrderedSet;
import weka.core.At... | __label__POS | 0.877043 |
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Curvature
{
[DataContract(Namespace = "")]
public class InputParameterEnumeration : InputParameter
{
[DataMember]
public HashSet<string> ValidValues;
[DataMember]
public bool ScoreOnMatch;
... | __label__POS | 0.923889 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Curvature
{
[DataContract(Namespace = "")]
public class BehaviorSet : INameable
{
[DataMember]
publi... | __label__POS | 0.625694 |
package edu.brown.logging;
import org.apache.log4j.spi.LocationInfo;
public class FastLocationInfo extends LocationInfo {
private static final long serialVersionUID = -7253756673938361338L;
private final String lineNumber;
private final String fileName;
private final String className;
private... | __label__POS | 0.992575 |
package edu.brown.catalog;
import org.voltdb.catalog.CatalogType;
/**
* Special utility class for PlanFragment ids
* @author pavlo
*/
public abstract class PlanFragmentIdGenerator {
private static final int READONLY_OFFSET = 16;
private static final int FASTAGGREGATE_OFFSET = 17;
private static fi... | __label__POS | 0.991555 |
<?php
$sql = 'SELECT week_day, dayname, (gross_output/weeks) gross, (net_output/weeks) net, (payable/weeks) tax, weeks '
.'FROM (SELECT weekday(trans_date) week_day,'
.'date_format(trans_date, \'\%W\') dayname,'
.'sum(gross_output) gross_output,'
.'sum(net_outpu... | __label__POS | 0.858588 |
package edu.brown.catalog;
import java.util.Comparator;
import org.voltdb.catalog.CatalogType;
/**
* Comparator for CatalogTypes that examines one particular field
*/
public final class CatalogFieldComparator<T extends CatalogType> implements Comparator<T> {
private final String field;
public CatalogField... | __label__POS | 0.9828 |
package edu.brown.catalog;
import java.util.Collection;
import org.voltdb.catalog.CatalogType;
import org.voltdb.types.ExpressionType;
import org.voltdb.types.QueryType;
import org.voltdb.utils.Pair;
import edu.brown.expressions.ExpressionUtil;
public class CatalogPair extends Pair<CatalogType, CatalogType> {
p... | __label__POS | 0.964371 |
package edu.brown.profilers;
import java.util.LinkedHashMap;
import java.util.Map;
import edu.brown.hstore.PartitionLockQueue.QueueState;
import edu.brown.statistics.FastIntHistogram;
public class PartitionLockQueueProfiler extends AbstractProfiler {
/**
* The amount of time that a txn has to spend waiting... | __label__POS | 0.867895 |
package edu.brown.profilers;
import java.util.Collection;
import java.util.TreeSet;
import org.voltdb.exceptions.EvictedTupleAccessException;
import org.voltdb.utils.EstTime;
import edu.brown.hstore.txns.LocalTransaction;
/**
* Anti-Cache Profiler Information
* There should be one of these per partition.
* @auth... | __label__POS | 0.985781 |
package edu.brown.profilers;
import edu.brown.statistics.FastIntHistogram;
public class SpecExecProfiler extends AbstractProfiler {
/**
* The total amount time spent in SpecExecScheduler.next()
*/
public final ProfileMeasurement total_time = new ProfileMeasurement("TOTAL_TIME", true);
... | __label__POS | 0.996961 |
package edu.brown.profilers;
import java.util.HashSet;
import java.util.Set;
import edu.brown.statistics.FastIntHistogram;
public class TransactionQueueManagerProfiler extends AbstractProfiler {
public final FastIntHistogram concurrent_dtxn = new FastIntHistogram();
public final Set<Long> concurrent_dtx... | __label__POS | 0.999999 |
package edu.brown.profilers;
import java.util.concurrent.TimeUnit;
import org.apache.log4j.Logger;
import edu.brown.logging.LoggerUtil;
import edu.brown.logging.LoggerUtil.LoggerBoolean;
import edu.brown.utils.StringUtil;
public abstract class ProfileMeasurementUtil {
private static final Logger LOG = Logger.ge... | __label__POS | 0.90535 |
package edu.brown.profilers;
import edu.brown.statistics.Histogram;
import edu.brown.statistics.ObjectHistogram;
public class PartitionExecutorProfiler extends AbstractProfiler {
/**
* Simple counter of the total number of transactions that the corresponding
* PartitionExecutor has executed. This is on... | __label__POS | 0.869908 |
package edu.brown.profilers;
import edu.brown.statistics.FastIntHistogram;
public class HStoreSiteProfiler extends AbstractProfiler {
/**
*
*/
public final ProfileMeasurement network_processing = new ConcurrentProfileMeasurement("PROCESSING");
/**
* How much time the site spends ... | __label__POS | 0.999835 |
package edu.brown.designer;
import java.util.HashSet;
import java.util.Set;
import org.voltdb.catalog.Database;
import org.voltdb.catalog.Procedure;
import org.voltdb.types.PartitionMethodType;
import edu.brown.graphs.AbstractDirectedTree;
/**
* @author Andy Pavlo <pavlo@cs.brown.edu>
*/
public class PartitionTre... | __label__POS | 0.874396 |
#include "esphome.h"
class Megadesk : public Component, public Sensor, public UARTDevice {
public:
Megadesk(UARTComponent *parent) : UARTDevice(parent) {}
Sensor *raw_height = new Sensor();
Sensor *min_height = new Sensor();
Sensor *max_height = new Sensor();
void setup() override {}
int digits=0;
i... | __label__POS | 0.843761 |
package edu.brown.designer;
import java.io.File;
import java.util.Map.Entry;
import org.apache.commons.collections15.map.ListOrderedMap;
import org.apache.log4j.Logger;
import edu.brown.costmodel.AbstractCostModel;
import edu.brown.costmodel.LowerBoundsCostModel;
import edu.brown.costmodel.SingleSitedCostModel;
impo... | __label__POS | 0.901408 |
package edu.brown.designer;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.voltdb.catalog.Column;
import org.voltdb.catalog.Database;
import edu.brown.graphs.AbstractUndirectedGraph;
import edu.brown.utils.PredicatePairs;
/*... | __label__POS | 0.944933 |
package edu.brown.designer;
import java.util.Collection;
import java.util.Map;
import java.util.TreeMap;
import edu.brown.graphs.AbstractEdge;
import edu.brown.graphs.IGraph;
public class DesignerEdge extends AbstractEdge {
public enum Members {
WEIGHTS,
}
private transient Double total_weight ... | __label__POS | 0.648079 |
package edu.brown.designer;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util... | __label__POS | 0.72675 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.