content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
//
// TaskListProtocols.swift
// VIPER_MyToDos
//
// Created by Raúl Ferrer on 16/8/22.
//
import UIKit
// MARK: Router Input
protocol PresenterToRouterTaskListProtocol {
static func createScreenFor(list: TasksListModel) -> UIViewController
func presentAddTaskOn(view: PresenterToViewTaskListProtocol, ... | __label__POS | 0.802001 |
//
// TaskListPresenter.swift
// VIPER_MyToDos
//
// Created by Raúl Ferrer on 16/8/22.
//
import Foundation
class TaskListPresenter: ViewToPresenterTaskListProtocol {
var view: PresenterToViewTaskListProtocol?
var interactor: PresenterToInteractorTaskListProtocol?
var router: PresenterToRouterTaskLis... | __label__POS | 0.785282 |
> nasm -f elf64 symbols.asm
> nasm -f elf64 executable_object.asm
> ld symbols.o executable_object.o -o main
> objdump -tf main
main: file format elf64-x86-64
architecture: i386:x86-64, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x0000000000000000
SYMBOL TABLE:
00000000004000b0 l d .text 0000... | __label__POS | 0.741214 |
//
// HomePresenter.swift
// VIPER_MyToDos
//
// Created by Raúl Ferrer on 16/8/22.
//
import Foundation
class HomePresenter: ViewToPresenterHomeProtocol {
var view: PresenterToViewHomeProtocol?
var interactor: PresenterToInteractorHomeProtocol?
var router: PresenterToRouterHomeProtocol?
var l... | __label__POS | 0.728918 |
//
// HomeInteractor.swift
// VIPER_MyToDos
//
// Created by Raúl Ferrer on 16/8/22.
//
import Foundation
class HomeInteractor: PresenterToInteractorHomeProtocol {
var presenter: InteractorToPresenterHomeProtocol?
var lists: [TasksListModel] = [TasksListModel]()
var tasksListService: TasksListServ... | __label__POS | 0.828428 |
//
// HomeProtocols.swift
// VIPER_MyToDos
//
// Created by Raúl Ferrer on 16/8/22.
//
import UIKit
// MARK: Router Input
protocol PresenterToRouterHomeProtocol {
static func createScreen() -> UINavigationController
func pushToAddListOn(view: PresenterToViewHomeProtocol)
func pushToTaskListOn(view... | __label__POS | 0.708713 |
const addItem = (state, event) => {
const text = event.payload
if (!text) {
return state
}
return [...state, {
text,
completed: false
}]
}
const updateItem = (state, event) => {
const { text, index } = event.payload
if (!text) {
return state
}
if (index < 0) {
return state
}
... | __label__POS | 0.844332 |
export default state => {
const addItem = text => {
if (!text) {
return
}
state.todos = [...state.todos, {
text,
completed: false
}]
}
const updateItem = (index, text) => {
if (!text) {
return
}
if (index < 0) {
return
}
if (!state.todos[index]... | __label__POS | 0.622984 |
const addItem = (state, action) => {
const text = action.payload
if (!text) {
return state
}
return {
...state,
todos: [...state.todos, {
text,
completed: false
}]
}
}
const updateItem = (state, action) => {
const { text, index } = action.payload
if (!text) {
return state... | __label__POS | 0.731636 |
export default state => {
const addItem = text => {
if (!text) {
return
}
state.todos = [...state.todos, {
text,
completed: false
}]
}
const updateItem = (index, text) => {
if (!text) {
return
}
if (index < 0) {
return
}
if (!state.todos[index]... | __label__POS | 0.622984 |
const cloneDeep = x => {
return JSON.parse(JSON.stringify(x))
}
const INITIAL_STATE = {
todos: [],
currentFilter: 'All'
}
const addItem = (state, event) => {
const text = event.payload
if (!text) {
return state
}
return {
...state,
todos: [...state.todos, {
text,
completed: fals... | __label__POS | 0.611505 |
package com.example.Chapter05;
import com.example.Chapter05.batch.ExploringTasklet;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.annotatio... | __label__POS | 0.658557 |
//-------------------------------------------------
// Ch04_01_.s
//-------------------------------------------------
// extern "C" int CalcSumA_(const int* x, int n);
.text
.global CalcSumA_
CalcSumA_:
mov r2,#0 // sum = 0
cmp r... | __label__POS | 0.884839 |
//-------------------------------------------------
// Ch04_01.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <cstdint>
using namespace std;
extern "C" int CalcSumA_(const int* x, int n);
extern "C" uint64_t CalcSumB_(const uint32_t* x, uint32_t ... | __label__POS | 0.954454 |
//-------------------------------------------------
// Ch04_02_.s
//-------------------------------------------------
// extern "C" int32_t CalcZ_(int32_t* z const int8_t* x, const int16_t* y, int32_t n);
.text
.global CalcZ_
CalcZ_: push {r4-r9}
mov r4,#0 ... | __label__POS | 0.773509 |
//-------------------------------------------------
// Ch04_02.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <random>
using namespace std;
int32_t g_Val1 = 2;
int32_t g_Val2 = 100;
extern "C" int32_t CalcZ_(int32_t* z, const int8_t* x, const in... | __label__POS | 0.779639 |
//-------------------------------------------------
// Ch04_03.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
using namespace std;
extern "C" void CalcMatrixSquares_(int* y, const int* x, int m, int n);
void CalcMatrixSquares(int* y, const int* x, int m,... | __label__POS | 0.962892 |
//-------------------------------------------------
// Ch04_05.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <random>
using namespace std;
extern "C" void ReverseArrayA_(int* y, const int* x, int n);
extern "C" void ReverseArrayB_(int* x, int n)... | __label__POS | 0.969957 |
//-------------------------------------------------
// Ch04_04.cpp
//-------------------------------------------------
#include <iostream>
#include <random>
using namespace std;
// Ch04_04_.s
extern "C" bool CalcMatrixRowColSums_(int* row_sums, int* col_sums, const int* x, int nrows, int ncols);
// Ch... | __label__POS | 0.967937 |
package io.spring.batch.helloworld;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.StepContribution;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.an... | __label__POS | 0.752795 |
//------------------------------------------------
// Ch03_05_.s
//------------------------------------------------
// extern "C" bool CompareSumA_(int a, int b, int c, int* sum);
.text
.global CompareSumA_
CompareSumA_:
// Calculate a + b + c and save sum
add r0,r0,... | __label__POS | 0.665395 |
//------------------------------------------------
// Ch03_06.cpp
//------------------------------------------------
#include <iostream>
using namespace std;
const int c_ArgnMin = 1;
const int c_ArgnMax = 1023;
// Ch03_06_.s
extern "C" void CalcSum_(int n, int* sum1, int* sum2);
// Ch03_06_Misc.cpp
e... | __label__POS | 0.991168 |
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
[System.Serializable, VolumeComponentMenu("Examples/World Scanner")]
public class WorldScanSettings : VolumeComponent, IPostProcessComponent
{
[Tooltip("Is the effect active?")]
public BoolParameter enabled = new BoolParamet... | __label__POS | 0.609947 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class JpaJob {
//
// @Autowired
// private JobBuilderFactory jobBuilderFactory;... | __label__POS | 0.937273 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class SpringDataRepositoryJob {
//
// @Autowired
// private JobBuilderFactory j... | __label__POS | 0.96132 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class HibernateCursorJob {
//
// @Autowired
// private JobBuilderFactory jobBui... | __label__POS | 0.976105 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class HibernatePagingJob {
//
// @Autowired
// private JobBuilderFactory jobBui... | __label__POS | 0.975395 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.annotation.JobBuilderFactory;
import org.springframework.batch.core.configuration.annotation.StepBuilderFactory;
import org.springframework.beans.fact... | __label__POS | 0.858963 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class JdbcPagingJob {
//
// @Autowired
// private JobBuilderFactory jobBuilderF... | __label__POS | 0.91044 |
package com.example.Chapter07;
import com.example.Chapter07.batch.CustomerItemListener;
import com.example.Chapter07.batch.CustomerItemReader;
import com.example.Chapter07.domain.Customer;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.conf... | __label__POS | 0.65768 |
//-------------------------------------------------
// Ch14_03.cpp
//-------------------------------------------------
#include <iostream>
#include <string>
#include "Vec128.h"
using namespace std;
extern "C" bool PackedMulA_(Vec128* x, const Vec128& a, const Vec128& b, int16_t c);
void PackedMulA(voi... | __label__POS | 0.613418 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Global</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<... | __label__POS | 0.691833 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class ExistingServiceJob {
//
// @Autowired
// private JobBuilderFactory jobBui... | __label__POS | 0.971048 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class JsonJob {
//
// @Autowired
// private JobBuilderFactory jobBuilderFactory... | __label__POS | 0.929597 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class XmlJob {
//
// @Autowired
// private JobBuilderFactory jobBuilderFactory;... | __label__POS | 0.917107 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class FixedWidthJob {
//
// @Autowired
// private JobBuilderFactory jobBuilderF... | __label__POS | 0.852527 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class StoredProcedureJob {
//
// @Autowired
// private JobBuilderFactory jobBui... | __label__POS | 0.951026 |
//-------------------------------------------------
// Ch14_06_Macros_.inc
//-------------------------------------------------
// Macro UpdateSums
//
// Input: Vreg - image pixel block
//
// Data registers: v16 - loop_packed pixel_sum
// v17 - loop_packed pixel_sum_squares
//
... | __label__POS | 0.683636 |
package com.example.Chapter07;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class JdbcCursorJob {
//
// @Autowired
// private JobBuilderFactory jobBuilderF... | __label__POS | 0.940087 |
<!DOCTYPE html>
<html>
<head>
<title>Game Physics Engine Integration: RigidBody Physics Engine </title>
<link rel ="icon" type ="image/x-icon" href="./assets/favicon.png">
<!-- the following says there are javascript source code contained in
the external source files
-... | __label__POS | 0.792732 |
//-------------------------------------------------
// Ch06_03.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <random>
#include <cmath>
using namespace std;
extern "C" double CalcDist_(double x1, double y1, double z1, double x2, double y2, double... | __label__POS | 0.664795 |
//-------------------------------------------------
// Ch06_07.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <string>
#include <random>
using namespace std;
extern "C" bool CalcTrace_(double* trace, const double* x, int nrows, int ncols);
void ... | __label__POS | 0.917799 |
//-------------------------------------------------
// Ch06_06.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
extern "C" bool CalcMeanStdev_(double* mean, double* stdev, const double* x, int n);
bool CalcMeanStdev(do... | __label__POS | 0.632556 |
package com.example.Chapter06;
//@EnableBatchProcessing
//@SpringBootApplication
public class RestApplication {
//
// @Autowired
// private JobBuilderFactory jobBuilderFactory;
//
// @Autowired
// private StepBuilderFactory stepBuilderFactory;
//
// @Bean
// public Job job() {
// return this.jobBuilderFactory.get("jo... | __label__POS | 0.74018 |
//-------------------------------------------------
// Ch13_07.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <string>
#include <random>
using namespace std;
extern "C" bool CalcTrace_(double* trace, const double* x, int nrows, int ncols);
void ... | __label__POS | 0.931358 |
//-------------------------------------------------
// Ch13_03.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <random>
#include <cmath>
using namespace std;
extern "C" double CalcDist_(double x1, double y1, double z1, double x2, double y2, double... | __label__POS | 0.644161 |
//-------------------------------------------------
// Ch13_06.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
extern "C" bool CalcMeanStdev_(double* mean, double* stdev, const double* x, int n);
bool CalcMeanStdev(do... | __label__POS | 0.632581 |
/* File: Arena.js
*
*/
/*jslint node: true, vars: true */
/*global gEngine, Scene, GameObjectset, TextureObject, Camera, vec2,
FontRenderable, SpriteRenderable, LineRenderable,
GameObject */
/* find out more about jslint: http://www.jslint.com/help.html */
"use strict";
function Arena(x,y,w,h,res,frct,s1,s2, a... | __label__POS | 0.811043 |
//------------------------------------------------
// Ch13_08.cpp
//------------------------------------------------
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
extern "C" void CalcBSA_(double bsa[3], double ht, double wt);
void CalcBSA(double bsa[3], double ht, double... | __label__POS | 0.864946 |
//-------------------------------------------------
// Ch11_06_Misc.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <bitset>
#include <string>
#include <cstdint>
using namespace std;
string ToHexString(unsigned int a)
{
ostringstream oss;
... | __label__POS | 0.810451 |
package com.example.Chapter13.domain;
public class Customer {
private final long id;
private final String firstName;
private final String middleName;
private final String lastName;
private final String address1;
private final String address2;
private final String city;
private final String state;
private fin... | __label__POS | 0.912269 |
//-------------------------------------------------
// Ch09_02.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <limits>
#include "Vec128.h"
using namespace std;
extern "C" void PackedCompareF32_(Vec128 x[8], const Vec128& a, const Vec128& b);
con... | __label__POS | 0.899355 |
//-------------------------------------------------
// Ch09_01.cpp
//-------------------------------------------------
#include <iostream>
#include "Vec128.h"
using namespace std;
extern "C" void PackedMathF32_(Vec128 x[7], const Vec128& a, const Vec128& b);
void PackedMathF32(void)
{
Vec128 x[7],... | __label__POS | 0.940753 |
/*
* File: CameraShake.js
* Defines a damped simple harmonic motion to simulate camera shakie
*/
/*jslint node: true, vars: true, bitwise: true */
/*global gEngine, vec2, ShakePosition */
/* find out more about jslint: http://www.jslint.com/help.html */
"use strict";
/**
* Defines a damped simple harmonic motion... | __label__POS | 0.803081 |
//-------------------------------------------------
// Ch15_02.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <cmath>
#include "Vec128.h"
using namespace std;
extern "C" void PackedCompareF32_(Vec128 x[8], const Vec128& a, const Vec128& b);
exter... | __label__POS | 0.628183 |
//-------------------------------------------------
// Ch15_01.cpp
//-------------------------------------------------
#include <iostream>
#include <cmath>
#include "Vec128.h"
using namespace std;
extern "C" void PackedMathF32_(Vec128 x[9], const Vec128& a, const Vec128& b);
extern "C" void PackedMathF... | __label__POS | 0.751137 |
package com.example.Chapter08;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class ScriptItemProcessorJob {
//
//
// @Autowired
// public JobBuilderFactory ... | __label__POS | 0.922335 |
package com.example.Chapter08;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class ClassifierCompositeItemProcessorJob {
//
//
// @Autowired
// public JobBu... | __label__POS | 0.72381 |
package com.example.Chapter08;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class ItemProcessorAdapterJob {
//
//
// @Autowired
// public JobBuilderFactory... | __label__POS | 0.926967 |
package com.example.Chapter08;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class CompositeItemProcessorJob {
//
//
// @Autowired
// public JobBuilderFacto... | __label__POS | 0.691548 |
//-------------------------------------------------
// Ch08_05.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <random>
#include "Ch08_05.h"
#include "AlignedMem.h"
using namespace std;
uint32_t g_NumElementsMax = c_NumElementsMax;
void Init(uint... | __label__POS | 0.841918 |
package com.example.Chapter08;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableBatchProcessing
@SpringBootApplication
public class ValidationJob {
//
//
// @Autowired
// public JobBuilderFactory jobBuilde... | __label__POS | 0.905129 |
//-------------------------------------------------
// Ch12_05_.s
//-------------------------------------------------
// extern "C" int CalcArraySumA_(const int* x, int n);
.text
.global CalcArraySumA_
CalcArraySumA_:
mov w2,0 // sum = 0
... | __label__POS | 0.93272 |
//-------------------------------------------------
// Ch12_05.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <cstdint>
using namespace std;
extern "C" int CalcArraySumA_(const int* x, int n);
extern "C" uint64_t CalcArraySumB_(const uint64_t* x,... | __label__POS | 0.877754 |
package com.apress.batch.chapter10;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Chapter10Application {
public static v... | __label__POS | 1.000009 |
//-------------------------------------------------
// Ch12_06.cpp
//-------------------------------------------------
#include <iostream>
#include <iomanip>
#include <cstdint>
#include <random>
using namespace std;
extern "C" bool CalcMatrixRowColSums_(int64_t* row_sums, int64_t* col_sums, const int64... | __label__POS | 0.633855 |
package com.apress.batch.chapter10.domain;
public class Customer {
private final long id;
private final String firstName;
private final String middleName;
private final String lastName;
private final String address1;
private final String address2;
private final String city;
private final String state;
privat... | __label__POS | 0.912257 |
<!DOCTYPE html>
<html>
<head>
<title>Game Physics Engine Integration: RigidBody Physics Engine </title>
<link rel ="icon" type ="image/x-icon" href="./assets/favicon.png">
<!-- the following says there are javascript source code contained in
the external source files
-... | __label__POS | 0.889959 |
/* File: Arena.js
*
*/
/*jslint node: true, vars: true */
/*global gEngine, Scene, GameObjectset, TextureObject, Camera, vec2,
FontRenderable, SpriteRenderable, LineRenderable,
GameObject */
/* find out more about jslint: http://www.jslint.com/help.html */
"use strict";
function Arena(x,y,w,h,res,frct,s1,s2, a... | __label__POS | 0.810612 |
/*
* File: CameraShake.js
* Defines a damped simple harmonic motion to simulate camera shakie
*/
/*jslint node: true, vars: true, bitwise: true */
/*global gEngine, vec2, ShakePosition */
/* find out more about jslint: http://www.jslint.com/help.html */
"use strict";
/**
* Defines a damped simple harmonic motion... | __label__POS | 0.803081 |
<!DOCTYPE html>
<html>
<head>
<title>Game Physics Engine Integration: RigidBody Physics Engine </title>
<link rel ="icon" type ="image/x-icon" href="./assets/favicon.png">
<!-- the following says there are javascript source code contained in
the external source files
-... | __label__POS | 0.939964 |
function [h, array] = display_network(A, opt_normalize, opt_graycolor, cols, opt_colmajor)
% This function visualizes filters in matrix A. Each column of A is a
% filter. We will reshape each column into a square image and visualizes
% on each cell of the visualization panel.
% All other parameters are optional, usual... | __label__POS | 0.619262 |
/*
* File: CameraShake.js
* Defines a damped simple harmonic motion to simulate camera shakie
*/
/*jslint node: true, vars: true, bitwise: true */
/*global gEngine, vec2, ShakePosition */
/* find out more about jslint: http://www.jslint.com/help.html */
"use strict";
/**
* Defines a damped simple harmonic motion... | __label__POS | 0.803081 |
<!DOCTYPE html>
<html>
<head>
<title>Game Physics Engine Integration: RigidBody Physics Engine </title>
<link rel ="icon" type ="image/x-icon" href="./assets/favicon.png">
<!-- the following says there are javascript source code contained in
the external source files
-... | __label__POS | 0.833687 |
//CardGroup class (playing cards)
// -- from C++ for Lazy Programmers
#include "stdafx.h"
#define IM_COMPILING_MY_CARD_LIBRARY_RIGHT_NOW
//see setup.h. Must come before card
// related includes, after "stdafx.h" if any
#include "cardgroup.h"
using namespace std;
namespace Cards
{
DECLSPEC const Ca... | __label__POS | 0.902231 |
//CardGroup class (playing cards)
// -- from C++ for Lazy Programmers
#include "stdafx.h"
#define IM_COMPILING_MY_CARD_LIBRARY_RIGHT_NOW
//see setup.h. Must come before card
// related includes, after "stdafx.h" if any
#include "cardgroup.h"
using namespace std;
namespace Cards
{
const CardGroup& ... | __label__POS | 0.930451 |
//CardGroup class (playing cards)
// -- from C++ for Lazy Programmers
#include "stdafx.h"
#define IM_COMPILING_MY_CARD_LIBRARY_RIGHT_NOW
//see setup.h. Must come before card
// related includes, after "stdafx.h" if any
#include "cardgroup.h"
using namespace std;
namespace Cards
{
DECLSPEC const Ca... | __label__POS | 0.902231 |
//CardGroup class (playing cards)
// -- from C++ for Lazy Programmers
#include "cardgroup.h"
using namespace std;
namespace Cards
{
const CardGroup& CardGroup::operator= (const CardGroup& other)
{
howMany_ = other.size(); //copy howMany_...
for (unsigned int i = 0; i < size(); ++i) //...and t... | __label__POS | 0.967532 |
//CardGroup class (playing cards)
// -- from C++ for Lazy Programmers
#include "stdafx.h"
#include "cardgroup.h"
using namespace std;
namespace Cards
{
const CardGroup& CardGroup::operator= (const CardGroup& other)
{
howMany_ = other.size(); //copy howMany_...
for (unsigned int i = 0; i < siz... | __label__POS | 0.95882 |
/*
* File: CameraShake.js
* Defines a damped simple harmonic motion to simulate camera shakie
*/
/*jslint node: true, vars: true, bitwise: true */
/*global gEngine, vec2, ShakePosition */
/* find out more about jslint: http://www.jslint.com/help.html */
"use strict";
/**
* Defines a damped simple harmonic motion... | __label__POS | 0.803081 |
//A program to print an appointment time, and demonstrate the Date class
// ...doesn't do that much (yet)
// -- from _C++ for Lazy Programmers_
#include <iostream>
using namespace std;
enum Month {JANUARY=1, FEBRUARY, MARCH, APRIL, MAY, JUNE,
JULY, AUGUST, SEPTEMBER, OCTOBER, DECEMBER};
bool isLeapYea... | __label__POS | 0.716441 |
//A program to print an appointment time, and demonstrate the Date class
// ...doesn't do that much (yet)
// -- from _C++ for Lazy Programmers_
#include <iostream>
using namespace std;
enum Month {JANUARY=1, FEBRUARY, MARCH, APRIL, MAY, JUNE,
JULY, AUGUST, SEPTEMBER, OCTOBER, DECEMBER};
bool isLeapYea... | __label__POS | 0.775459 |
//Program to test Manager and Employee classes
// -- from _C++ for Lazy Programmers_
#include "manager.h"
using namespace std;
int main ()
{
enum { A_MERE_PITTANCE = 1, OBSCENELY_LARGE_SALARY = 2147483647 };
Employee george ("George P.", "Burdell", Date (10, 3,1885),
A_MERE_PITTANCE);
... | __label__POS | 0.954046 |
//class Date -- functions
// -- from _C++ for Lazy Programmers_
#include "date.h"
bool isLeapYear (int year)
{
//If a year is divisible by 4, it's a leap year
//Except if it's also divisible by 100, it's not
//Except if it's also divisible by 400, it is
//Not simple, but there it is
bool result ... | __label__POS | 0.906707 |
//CardGroup class (playing cards)
// -- from C++ for Lazy Programmers
#include "cardgroup.h"
using namespace std;
const CardGroup& CardGroup::operator= (const CardGroup& other)
{
howMany_ = other.size (); //copy howMany_...
for (unsigned int i = 0; i < size(); ++i) //...and the contents
... | __label__POS | 0.920033 |
<!DOCTYPE html>
<html>
<head>
<title>Game Physics Engine Integration: RigidBody Physics Engine </title>
<link rel ="icon" type ="image/x-icon" href="./assets/favicon.png">
<!-- the following says there are javascript source code contained in
the external source files
-... | __label__POS | 0.833881 |
//class Date -- functions
// -- from _C++ for Lazy Programmers_
#include "date.h"
bool isLeapYear (int year)
{
//If a year is divisible by 4, it's a leap year
//Except if it's also divisible by 100, it's not
//Except if it's also divisible by 400, it is
//Not simple, but there it is
bool result ... | __label__POS | 0.906707 |
// CardGroup class (playing cards)
// -- from C++20 for Lazy Programmers
#include "cardgroup.h"
using namespace std;
namespace Cards
{
void CardGroup::copy(const CardGroup& other)
{
howMany_ = other.size(); // copy howMany_...
for (unsigned int i = 0; i < size(); ++i)... | __label__POS | 0.669945 |
// CardGroup class (playing cards)
// -- from _C++20 for Lazy Programmers_
#include "cardgroup.h"
using namespace std;
namespace cards
{
void CardGroup::copy(const CardGroup& other)
{
howMany_ = other.size(); // copy howMany_...
for (unsigned int i = 0; i < size(); ++... | __label__POS | 0.669873 |
//Program to find the difference between two files
// -- from _C++ for Lazy Programmers_
#include <iostream>
#include <fstream>
#include <cstdlib> //for EXIT_FAILURE, EXIT_SUCCESS
#include <string>
using namespace std;
int main (int argc, char** argv)
{
//Did we get right # of arguments? If not, complain and qu... | __label__POS | 0.661078 |
/*
* File: CameraShake.js
* Defines a damped simple harmonic motion to simulate camera shakie
*/
/*jslint node: true, vars: true, bitwise: true */
/*global gEngine, vec2, ShakePosition */
/* find out more about jslint: http://www.jslint.com/help.html */
"use strict";
/**
* Defines a damped simple harmonic motion... | __label__POS | 0.803081 |
// CardGroup class (playing cards)
// -- from _C++20 for Lazy Programmers_
#include "pch.h"
#include "cardgroup.h"
using namespace std;
namespace cards
{
void CardGroup::copy(const CardGroup& other)
{
howMany_ = other.size(); // copy howMany_...
for (unsigned int i = ... | __label__POS | 0.647667 |
// A program to test the Date class
// -- from _C++20 for Lazy Programmers_
#include <iostream>
using namespace std;
enum class Month {JANUARY=1, FEBRUARY, MARCH, APRIL, MAY, JUNE,
JULY, AUGUST, SEPTEMBER, OCTOBER, DECEMBER};
bool isLeapYear (int year);
int daysPerYear (int year);
int day... | __label__POS | 0.690849 |
// CardGroup class (playing cards)
// -- from _C++20 for Lazy Programmers_
#include "cardgroup.h"
using namespace std;
void CardGroup::copy(const CardGroup& other)
{
howMany_ = other.size(); // copy howMany_...
for (unsigned int i = 0; i < size(); ++i) // ...and the contents
... | __label__POS | 0.807966 |
// CardGroup class (playing cards)
// -- from _C++20 for Lazy Programmers_
#include "cardgroup.h"
using namespace std;
void CardGroup::copy(const CardGroup& other)
{
howMany_ = other.size(); // copy howMany_...
for (unsigned int i = 0; i < size(); ++i) // ...and the contents
... | __label__POS | 0.807966 |
// CardGroup class (playing cards)
// -- from _C++20 for Lazy Programmers_
#include "cardgroup.h"
using namespace std;
void CardGroup::copy(const CardGroup& other)
{
howMany_ = other.size(); // copy howMany_...
for (unsigned int i = 0; i < size(); ++i) // ...and the contents
(... | __label__POS | 0.807966 |
<!DOCTYPE html>
<html>
<head>
<title>Game Physics Engine Integration: RigidBody Physics Engine </title>
<link rel ="icon" type ="image/x-icon" href="./assets/favicon.png">
<!-- the following says there are javascript source code contained in
the external source files
-... | __label__POS | 0.822993 |
// Program to test Manager and Employee classes
// -- from _C++20 for Lazy Programmers_
#include "manager.h"
using namespace std;
int main ()
{
static constexpr long int A_MERE_PITTANCE = 1,
OBSCENELY_LARGE_SALARY = 2147483647;
Employee george ("George P.", "Burdell", Date (... | __label__POS | 0.88278 |
// class Date -- functions
// -- from _C++20 for Lazy Programmers_
#include "date.h"
bool isLeapYear (int year)
{
// If a year is divisible by 4, it's a leap year
// Except if it's also divisible by 100, it's not
// Except if it's also divisible by 400, it is
// Not simple, but there it is
bool... | __label__POS | 0.879862 |
/*
* File: CameraShake.js
* Defines a damped simple harmonic motion to simulate camera shakie
*/
/*jslint node: true, vars: true, bitwise: true */
/*global gEngine, vec2, ShakePosition */
/* find out more about jslint: http://www.jslint.com/help.html */
"use strict";
/**
* Defines a damped simple harmonic motion... | __label__POS | 0.803081 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.