blob_id stringlengths 40 40 | content_id stringlengths 40 40 | repo_name stringlengths 5 114 | path stringlengths 5 318 | language stringclasses 5
values | extension stringclasses 12
values | length_bytes int64 200 200k | license_type stringclasses 2
values | content stringlengths 143 200k |
|---|---|---|---|---|---|---|---|---|
92defa1f2257ed2a225a0c21edbe0b53250e20ff | 40a198a80ea15e2e6dfc75569867e3a40be56cb1 | raynor73/MobileEngine3D | /app/src/main/cpp/engine/components/baselight.cpp | C++ | cpp | 419 | no_license | #include <engine/components/baselight.h>
#include <engine/rendering/renderingengine.h>
#include <engine/core/coreengine.h>
BaseLight::BaseLight(RenderingEngine &renderingEngine, const Vector3f &color, float intensity) :
GameComponent(),
m_renderingEngine(renderingEngine),
m_color(color),
m_intensity(intensity)... |
a515c71a696527c79b3e181ad546438c3b2734e2 | 7b3fcd89bc90693392cf2a307e296d2d60874ff7 | Specialsaucewc/HackathonGodot | /source/godot_bindings/include/gen/VisualShaderNodeCustom.hpp | C++ | hpp | 2,207 | no_license | #ifndef GODOT_CPP_VISUALSHADERNODECUSTOM_HPP
#define GODOT_CPP_VISUALSHADERNODECUSTOM_HPP
#include <gdnative_api_struct.gen.h>
#include <stdint.h>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include "VisualShaderNode.hpp"
namespace godot {
class VisualShaderNodeCustom : public VisualShaderNode {
struc... |
72eb73a69375e33c5763f586777dcf2bae4412d1 | 0c5034dab36a5e521ad85a2e586c4cab5ab794c7 | 0xF6/openvino | /docs/snippets/MULTI4.cpp | C++ | cpp | 1,022 | permissive | #include <inference_engine.hpp>
#include <multi-device/multi_device_config.hpp>
int main() {
using namespace InferenceEngine;
const std::map<std::string, std::string> hddl_config = { { PluginConfigParams::KEY_PERF_COUNT, PluginConfigParams::YES } };
const std::map<std::string, std::string> gpu_config = { { PluginCon... |
c42cc5143b5fbd99e1393f98926f4e3e3a7f327e | 35ccdcc9b55871928fd3c26458f5771e98be4506 | gautam1858/tensorflow | /tensorflow/core/kernels/data/zip_dataset_op.cc | C++ | cc | 10,158 | permissive | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
713f46af4fb6ef699d720d6e259f9c4ba10207f3 | 636440f36ebee2caf0c6d9fff07b94dd0546de98 | georeth/OJLIBS | /inc/ojlibs/ds/disjoint_set.hpp | C++ | hpp | 993 | permissive | #ifndef OJLIBS_INC_DISJOINT_SET_H_
#define OJLIBS_INC_DISJOINT_SET_H_
#include <vector>
namespace ojlibs { // TO_BE_REMOVED
struct disjoint_set {
std::vector<int> parent;
void reset(int size){
parent.resize(size);
for (int i = 0; i < (int)parent.size(); i++){
parent[i] = i;
... |
68fc5f44fd5a6e27b834e0c913611fd1ee276ff0 | ee3d9fb2fef90d3da84bfdb5b7bed679de37c2ab | AlexandreBurel/pwiz-mzdb | /pwiz_aux/sfcap/transient/maketrans.cpp | C++ | cpp | 4,569 | permissive | //
// $Id: maketrans.cpp 1195 2009-08-14 22:12:04Z chambm $
//
//
// Darren Kessner <darren@proteowizard.org>
//
// Copyright 2009 Spielberg Family Center for Applied Proteomics
// Cedars Sinai Medical Center, Los Angeles, California 90048
//
// Licensed under the Apache License, Version 2.0 (the "License");
// yo... |
0c8838768979b13d7cbfa92d82d2090fc123fb96 | 885c3b38e9d468847595180db397d0345ad5aef8 | proaholic/Win2K3 | /NT/printscan/faxsrv/clientconsole/import.cpp | C++ | cpp | 26,918 | no_license | //////////////////////////////////////////////////////////////////////////////////////
// W2K TIF files import support
//
#include "stdafx.h"
#include <tiff.h>
#include <Sddl.h>
#include <shlobjp.h> // LinkWindow control
#define __FILE_ID__ 75
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS... |
879054a08cbfb5fc9ac27d3a4912327357ad4de2 | 02f25ba76972277c2e1488d2d081c5fcf356166c | ftk/XXLDDRace | /src/game/client/components/console.cpp | C++ | cpp | 21,438 | permissive | /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <base/tl/sorted_array.h>
#include <math.h>
#include <game/generated/client_data.h>
#include <base/system.h>
#inclu... |
4b837942fdbed92a19cdee0017b33f26ea92a6f9 | bd907dabde8de12a7875a378155b1c3262acf36e | frix360/blockchain-demo | /Blockchain.hpp | C++ | hpp | 2,235 | no_license | //
// Created by Ignas on 10/17/2019.
//
#ifndef BLOCKCHAIN_BLOCKCHAIN_HPP
#define BLOCKCHAIN_BLOCKCHAIN_HPP
#include "Block.hpp"
class Blockchain {
private:
std::vector<Block> blocks;
public:
Blockchain() = default;
std::vector<Block> getBlocks() {
return blocks;
}
Block getLatestBlo... |
b27e213a4fcab28ed53bed420657e97585d42dd8 | cc621bd6d4be44842f0a34bd65ab599b27632c14 | billyfish/Spotless | /SimpleDebug/Process.cpp | C++ | cpp | 9,306 | no_license | #include <proto/exec.h>
#include <proto/dos.h>
#include <proto/elf.h>
#include "Process.hpp"
#include "Tracer.hpp"
#include <string>
#include <vector>
#include <string.h>
#include <iostream>
using namespace std;
ExceptionContext AmigaProcess::context;
struct MsgPort *AmigaProcess::port = 0;
uint8_t AmigaProcess::si... |
88560ab226ae46e65ea0963a0b5f942064dc07c2 | 2cff71b12998564270a62158392e4278b2e59661 | Mikhail-Z/MAI | /sem4/Discrete analysis/da9/da9.cpp | C++ | cpp | 1,135 | no_license | #include <iostream>
#include <stdbool.h>
using namespace std;
struct edge {
int begin;
int end;
int weight;
};
int main()
{
const long long INF = static_cast<long long>(1) << 60;
int n, m,start,finish;
cin>>n>>m>>start>>finish;
long int *d = new long int[n+1];
edge *graph = new edge[m... |
fd12153e54e14569b1d8dd4d5d6f3abee7771c5a | cdcf51fcf90a9d098f03e7b49fa1ce351be308e6 | PeiLeizzz/Algorithm-PAT-A | /分块和树状数组/1057(分块) Stack (30分).cpp | C++ | cpp | 1,219 | no_license | #include <bits/stdc++.h>
using namespace std;
const int maxn = 100005;
const int m = 316, q = 317; // sqrt(maxn) = 316 分成 317 块,前 316 块有 316 个元素,最后一块有 100005 - 316 * 316 个元素
int n;
int block[q], table[maxn];
stack<int> st;
string s;
int main() {
scanf("%d", &n);
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "... |
5a10ed36b16a1e881e5bcf213ab8d524ba2932f5 | 9c80fb0d3b3ae42b2846226be13495be096a0e6a | dslab-epfl/gist-static-analyzer | /lib/Support/Dwarf.cpp | C++ | cpp | 45,306 | permissive | //===-- llvm/Support/Dwarf.cpp - Dwarf Framework ----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
031020dd4df02ec7592453f4dee2970fcb713eb7 | 4d1a270725c2060badcff05c17b610290575e8f5 | Ksj7/Baekjoon-Online-Judge | /problem/1509.cpp | C++ | cpp | 1,022 | no_license | //
// 1509.cpp
// codingtest
//
#include <iostream>
#include <string>
using namespace std;
#define INF 987654321
void calcPalindrom(int n);
bool isPalindrom(int s, int e);
int solve(int pos);
char arr[2500];
int d[2500];
int dp[2500][2500];
int mmin = INF;
void calcPalindrom(int n){
for(int i = 0; i < n; i++){
... |
8c4df04b798ca379e796e44f386ee9dcecdd01d1 | ce1dfa21bb1b7afa4fdfbe80a66da3f1a4ada7eb | BedirT/Algorithms_and_DS | /Problems/Kattis/Trik.cpp | C++ | cpp | 478 | no_license | #include <iostream>
using namespace std;
int main (){
string s;
cin >> s;
int val = 1;
for(int i = 0 ; i < s.size(); ++i){
if(s[i] == 'A'){
if(val == 1) val = 2;
else if(val == 2) val = 1;
}else if(s[i] == 'B'){
if(val == 2) val = 3;
else ... |
108ecf27234e09fc2e03cf151ff2e84a9e6ffb52 | 8cedec3a8a296bd8f940957dd0269ffd7e617aaf | EmmCooke-zz/CS162-GroupProject | /RockPaperScissors/RPSGame.hpp | C++ | hpp | 1,116 | permissive | /*********************************************************************
** Program Name: Rock Paper Scissors Game
** Author: Group 15
** Date: 10/24/17
** Description: Main file for a dice game
**
** To run this program, simply execute the RPSGame file after compiling
****************************************************... |
9fbd6673e15d89a7b9c31ec33b5fefafb4c8318e | acb3cbd25561c6f155d34c407f51e915c521aa17 | KyplerEspiritu/Verkefni_C- | /main.cpp | C++ | cpp | 1,890 | no_license | #include <iostream>
#include <string>
using namespace std;
class Afangi {
private:
int numer;
string nafn;
Afangi *undanfarar;
int fjoldiUndanfara;
public:
Afangi() : numer(0), nafn(""), undanfarar(nullptr), fjoldiUndanfara(0) { }
Afangi(int numer, string nafn... |
1a2771da9592dc93ceac25b407aceec83c4616f1 | 71e465420b6013629505a07b4222023487eb48bd | marcelluethi/elastix | /src/Components/ImageSamplers/Full/elxFullSampler.cxx | C++ | cxx | 624 | no_license | /*======================================================================
This file is part of the elastix software.
Copyright (c) University Medical Center Utrecht. All rights reserved.
See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
details.
This software is distributed WITHOUT A... |
2a8f530682415ced2b778b6fc94487da7e7eb991 | 3427ca31d40d111b8c54356fc0722f546d4aabaf | vmarvakova/assignmentosc | /TestHeap.cc | C++ | cc | 4,134 | no_license | #include "heap.h"
#include <iostream>
using std::cout;
using std::endl;
#include <vector>
using std::vector;
class TestObject {
public:
int x;
int y;
TestObject() : x(0), y(1) {}
};
int main() {
Heap heap(1048576);
vector<char*> created(4);
{
cout ... |
f7424b2b988a230c5c52499dab98de8f34bcfd49 | a68e98468e85eb705d87da936f2771b2ea755df4 | mengyx-work/data_processing_package | /include/ProcessedPlotter.hh | C++ | hh | 783 | no_license | /*
Defines the ProcessedPlotter class to plot rwa waveforms
and some processed results for each channel
borrowed mostly from genroot
*/
#ifndef ProcessedPlotter_hh
#define ProcessedPlotter_hh
#include "EventData.hh"
#include "CfgReader.hh"
#include "RootGraphix.hh"
#include <string>
#include <iostream>
// ... |
9cfc4a0caba6eb5817fe66f2f6b681a84126dd9b | 4925c167c36dbb5aabdb1055f7ae7fbf8e4b7d9c | hcse/voice-token | /src/decay.cpp | C++ | cpp | 1,125 | no_license | #include <decay.hpp>
#include <cmath>
namespace hypha {
const DecayResult decay(
const uint64_t currentBalance,
const uint64_t lastPeriod,
const DecayConfig &config
) {
if (config.decayPerPeriod == 0 || config.decayPeriod == 0 || lastPeriod > config.evaluationTime) ... |
5207542b2bc1d6c48fbe29de075f77adadbfe8fd | 369951489e97a311750a9a353573a16c5ed56c3f | vinu9922/Algorithmic_tool | /week4_divide_and_conquer/2_majority_element/majority_element.cpp | C++ | cpp | 697 | no_license | #include <algorithm>
#include <iostream>
#include <vector>
#include <unordered_map>
using std::vector;
using namespace std;
int get_majority_element(vector<int> &a, int left, int right) {
unordered_map<int, int> myHashMap;
for(int i = 0; i < a.size(); i++)
myHashMap[a[i]]++;
int count = 0;
... |
62629ce5f9eb6ae983f67d9527f83c9e62be4131 | 5966b479ffef892579980027942cf3cb1fefb861 | Ysntska/8.1_rec | /UnitTest1/UnitTest1.cpp | C++ | cpp | 322 | no_license | #include "pch.h"
#include "CppUnitTest.h"
#include "../8.1_rec/8.1_rec.cpp"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTest1
{
TEST_CLASS(UnitTest1)
{
public:
TEST_METHOD(TestMethod1)
{
int t;
char k[] = { "*" };
t = Count(k, 0);
Assert::AreEqual(t, 0);
}
};
... |
8f071b16d3680229e23a949159f5ea1a947bafc9 | 94d357124d901b5b89e2955ec4e019e472ed67bf | Clever-Boy/fired | /include/object/object_base.hpp | C++ | hpp | 1,028 | no_license | /***********************************************************************
* File : object_base.hpp
* Created : Sep 03, 2013
* Copyright : (C) 2014 Achpile
* Author : Fedosov Alexander
* Email : achpile@gmail.com
****************************************************************... |
8ef6c406e73d470f455ceec4a1f80d721a88ec43 | 90522ad0391fbf574296ac6fb8b5a81f3ffbad4f | MBurenkov/mrayGStreamerUnity | /Plugin/sources/GstPipelineHandler.cpp | C++ | cpp | 8,785 | permissive |
#include "stdafx.h"
#include "GstPipelineHandler.h"
#include "UnityHelpers.h"
#include "GStreamerCore.h"
#include <gst/net/gstnet.h>
namespace mray
{
namespace video
{
class GstPipelineHandlerImpl
{
public:
GstPipelineHandlerImpl()
{
gstPipeline = 0;
closing = false;
paused = true;
Loaded = fals... |
c04d02ebd0ae46bd2b10e7dc1a3d61275e7ec4ca | d1de2e563050a89e87fb628f39dafb8d2758b039 | Maciej-Poleski/UED | /BasicEventDatabase/src/BasicEventDatabase.cxx | C++ | cxx | 2,136 | no_license | /*
* BasicEventDatabase.cxx
*
* Created on: 26-08-2010
* Author: evil
*/
#include <BasicEventDatabase.hxx>
#include <EventsWidget.hxx>
#include <Core.hxx>
#include <QtCore/QFile>
#include <QtCore/QDataStream>
#include <QtCore/QtPlugin>
namespace EventDatabase
{
BasicEventDatabase::BasicEventDatabase()
{... |
1e34ccab5cfdabf1d07a95140d79dc304a080cbb | 57435376855d2ae9447f97a3198c2bb2f4056ec2 | kmjp/procon | /2017-2021/2017/sinapusu/002/i.cpp | C++ | cpp | 1,176 | no_license | #include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;
#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#... |
8d0cb0d3d458a322778bb06466afbec67d0c3e4f | 25fdebc684f0dd8709f3b0d57785fc5aca0f18fe | rodrigobmg/Granite | /ui/slider.hpp | C++ | hpp | 3,182 | permissive | /* Copyright (c) 2017-2022 Hans-Kristian Arntzen
*
* 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 to use, copy, modify, me... |
1b319409fb6571088e495a60ee557a845c05b76c | 9bd77dd61d09a8216981f18028f4bcc551afbd25 | bitzhangmo/LearnOpenGL | /Chapter/01/main.cpp | C++ | cpp | 5,940 | no_license | #include <glad.h>
#include <glfw3.h>
#include <iostream>
#include "math.h"
using namespace std;
void framebuffer_size_callback(GLFWwindow* window,int width,int height);
void processInput(GLFWwindow *window);
void framebuffer_size_callback(GLFWwindow* window,int width,int height)
{
glViewport(0,0,width,height);
}
... |
0e4577de4d607803622127e098be6d3b496099c1 | e9b6e6b630466bc1e431e85e44260c711e42fdb7 | tais-antunes/exercicios-uri | /c++/uri-1050.cpp | C++ | cpp | 1,075 | no_license | #include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
switch (n){
case 61:
cout << "Brasilia" << endl;
break;
case 71:
cout << "Salvador" << endl;
brea... |
1088b8daae2a2b13b3c2c04f9ccc51587e890f0e | 4459e19adc891ba9d0957fb2478c7e345de06786 | dotnet/dotnet-api-docs | /snippets/cpp/VS_Snippets_Remoting/System.Runtime.Remoting.Channels.Tcp.TcpChannel2/CPP/common.cpp | C++ | cpp | 309 | permissive |
using namespace System;
using namespace System::Runtime::Remoting;
// Remote object.
public ref class RemoteObject: public MarshalByRefObject
{
private:
int callCount;
public:
RemoteObject()
: callCount( 0 )
{}
int GetCount()
{
callCount++;
return (callCount);
}
};
|
7e5b9cc7e3f66e749a84cd830665ac6e4c844faf | 5a5250e53c9dd58c7c96ead5aabd5a9b36539431 | zhangshuaiying/ogre | /PlugIns/ParticleFX/src/OgreScaleAffector.cpp | C++ | cpp | 4,152 | permissive | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obta... |
50178b2f6eee9cc9fc87e328331cf8c105761d93 | 58691622e1f97449781ad5af4fd5f41b269adad0 | jcfr/qRestAPI | /Testing/qXnatAPITest.cpp | C++ | cpp | 7,876 | no_license | /*==============================================================================
Library: qRestAPI
Copyright (c) 2013 University College London, Centre for Medical Image Computing
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BA... |
a2588028a92336cb9b3eaf8ba8061600b083de59 | 7817970a4e301c567978ee351731d33f507351c6 | KingsleyYau/LiveClient | /common-c-library/imghandle/PngWriter.cpp | C++ | cpp | 11,005 | no_license | /*
* PngWriter.cpp
*
* Created on: 2015-05-14
* Author: Samson
* desc: png写操作类
*/
#include "PngWriter.h"
#include <common/CheckMemoryLeak.h>
PngWriter::PngWriter()
{
m_file = NULL;
m_writePtr = NULL;
m_writeInfoPtr = NULL;
m_writeEndInfoPtr = NULL;
}
PngWriter::~PngWriter()
... |
ac4c06f87cdfce7822b0bff1cb0e2047d95ad795 | 465c10bdadd30f916fb29fc327508bbb0f733e2b | Sudhanshuo8/Day2-20-02 | /String1.cpp | C++ | cpp | 559 | no_license | /*use of string*/
#include<iostream>
#include<string>//change
using namespace std;
class student
{
int roll;
float marks;
char grade;
string name;//change
public:
void get();
void show();
};
void student::get()
{
cout<<"Enter the "<<"roll marks grade name"<<endl;
... |
661123d722d92819e0ccac67bd0e9ad4efe7ace6 | 96b683eeec6c7ec4e090baf1153992009c2d1f6d | svn2github/ngene | /trunk/Dependencies/Xerces/include/xercesc/validators/schema/identity/XPathException.hpp | C++ | hpp | 990 | no_license | /*
* Copyright 2001,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... |
57e5dbf9ef8877718759582ac1e198c6e25fdace | 82269c770018e497ee0b603730e3db0a24327e6c | reimeytal/pong | /src/ball/ball.cpp | C++ | cpp | 3,980 | no_license | #include <gl/glew.h>
#include <vector>
#include <cstdint>
#include <cmath>
#include <iostream>
#include <gml/gml.hpp>
#include "../bounding-box/bounding-box.hpp"
#include "../vertex.h"
#include "ball.hpp"
#define PONG_BALL_NUM_OF_POINTS 30
#define PONG_BALL_RADIUS 0.5f
#define PONG_BALL_SPEED 8.f
namespace pong{
... |
9ce03dc74e9810e26d78b6313aa30aef65d9a68b | afb99859bd6d8503b99cd7a81b37ce3272cf9b88 | motis-project/sol2 | /include/sol/stack_push.hpp | C++ | hpp | 40,555 | permissive | // sol3
// The MIT License (MIT)
// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors
// 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 limita... |
74a31145f26dad70cef4d3ef88dcdf72d77b390f | 894377d36e7da05c889b1b1f6c018307c6a19d34 | chromium/chromium | /components/leveldb_proto/public/proto_database.cc | C++ | cc | 907 | permissive | // Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/leveldb_proto/public/proto_database.h"
#include "base/system/sys_info.h"
namespace leveldb_proto {
namespace {
const size_t kDatabaseWriteBufferSizeBytes... |
106111ebf06f2410b7f6935c73d33d67aaf8bc93 | 9addfcd1a1114bc7bdcd7aa0674aa1311d9063d2 | romanzes/chromium | /components/policy/core/common/cloud/device_management_service.cc | C++ | cc | 23,902 | permissive | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/policy/core/common/cloud/device_management_service.h"
#include <utility>
#include "base/bind.h"
#include "base/compiler_specifi... |
1a0dd506b999e201b7903fe4a0a6993be84e94de | 52a30ab0a1bf9abb147db0eba27d74725938d42b | davidenglishmusic/comp2618_labs | /012/1212/ex12_12.cpp | C++ | cpp | 2,215 | no_license | #include <iostream>
#include <iomanip>
#include <vector>
#include <typeinfo>
#include <ctime>
#include "Starting Classes/Employee.h"
#include "Starting Classes/SalariedEmployee.h"
#include "Starting Classes/CommissionEmployee.h"
#include "Starting Classes/BasePlusCommissionEmployee.h"
using namespace std;
... |
b2c325d12fd88352f07be398cdf1333c500177ae | 51aaf53540a2aaf3ad866a56f9f2eb7d691f35bf | venkatarajasekhar/chromium-42.0.2311.135 | /third_party/skia/src/gpu/effects/GrTextureStripAtlas.cpp | C++ | cpp | 10,477 | permissive |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrTextureStripAtlas.h"
#include "SkPixelRef.h"
#include "SkTSearch.h"
#include "GrTexture.h"
#ifdef SK_DEBUG
#define VALIDATE this->validate()
#else
#defin... |
8894816844fccd73b5ab481ee2efcee7d39b7378 | 4e0eae5991400f61172b21cc9b58641093894011 | socket/vmss-lab | /qt-gui/moc_MainWindow.cpp | C++ | cpp | 2,065 | no_license | /****************************************************************************
** Meta object code from reading C++ file 'MainWindow.h'
**
** Created: Thu Apr 22 12:49:40 2010
** by: The Qt Meta Object Compiler version 62 (Qt 4.6.2)
**
** WARNING! All changes made in this file will be lost!
************************... |
6aedea65169e6990589b481f75866296abd1ac7e | 5205c2a54d48026bf508c5aa0f31d89ea0a080cd | rick00young/myFishJoy | /Classes/Bullet.cpp | C++ | cpp | 3,207 | no_license | #include "Bullet.h"
#include "Math.h"
#include "GameScene.h"
using namespace cocos2d;
Bullet::Bullet(void)
{
}
Bullet::~Bullet(void)
{
//CCLog("bullt is deleting....................................");
/*
if(_spriteBullet){
delete _spriteBullet;
_spriteBullet = NULL;
}
*/
}
Bull... |
72dcba4392d5224c660cf8dfcc655ae5690d077c | dcc66fde56705c238f86f15191a9f2ef604f9f89 | esmechang/CS225 | /lab_intro/cs225/HSLAPixel.cpp | C++ | cpp | 660 | no_license | /**
* @file HSLAPixel.cpp
* Implementation of the HSLAPixel class for use in with the PNG library.
*
* @author CS 225: Data Structures
* @version 2018r1-lab1
*/
#include "HSLAPixel.h"
#include <cmath>
#include <iostream>
using namespace std;
namespace cs225 {
HSLAPixel::HSLAPixel() {
h = 0;
s = 0;
... |
e3b2911fe13d07898ca92e37556395ed675aad82 | cd74e703ca29250b7feb2eeb6714f597453a6a1d | Vasiliy16/aip_lessons | /неделя 9-10/неделя 1 №1/неделя 1 №1/неделя 1 №1.cpp | C++ | cpp | 717 | no_license | #include <iostream>
#include <math.h>
#include <fstream>
#include <string>
using namespace std;
ofstream file;
void FileMaking();
int main() {
cout << " TaskNumber1 " << endl;
cout << " \n " << endl;
cout << " **** " << endl;
cout << " * * " << endl;
cout << " ***** " << end... |
c88c2d13a32809d7c53247a6759384886b86176f | a3ac98b560924e4b0b88948435f28558e984c9af | dvanaken/peloton-bwtree | /src/postgres/backend/catalog/pg_namespace.cpp | C++ | cpp | 2,918 | permissive | /*-------------------------------------------------------------------------
*
* pg_namespace.c
* routines to support manipulation of the pg_namespace relation
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
*... |
62d61e39e28e52893dc9469d1b52c41b43182e21 | 870044863625d8a2226c83d54321e5a0e9a18533 | stadie/Kalibri | /Parameters.cc | C++ | cc | 67,663 | no_license | // $Id: Parameters.cc,v 1.63 2011/06/23 07:53:36 stadie Exp $
#include <fstream>
#include <cassert>
#include <pwd.h>
#include <unistd.h>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <algorithm>
#include "Parameters.h"
#include "TFile.h"
#include "TH1.h"
#include "TH1D.h"
#include "TMath.h"
#includ... |
8928f17d94631d669b19919c1b21458c658b55fc | b3836cba89c0cfd5136d657526ad721b8f50c3bc | gideonmay/minervagis | /Source/Minerva/OsgTools/LegendItem.cpp | C++ | cpp | 11,244 | no_license |
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2006, Adam Kubach
// All rights reserved.
// BSD License: http://www.opensource.org/licenses/bsd-license.html
//
///////////////////////////////////////////////////////////////////////////////
#include "Min... |
2bccfcf039cb415eb33c74d5ab0f68bb1f1c7d49 | ae8e9f952838794929606332e67cdad6e059c46e | apolcyn/grpc | /src/core/lib/experiments/config.cc | C++ | cc | 4,864 | permissive | // Copyright 2022 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
d6c8660fd78351c2ea62948a4279cb89ec1498d2 | 6782c2220d1e0745d203d7fa0d0a596d2da5992f | ismdeep/ICPC | /2014训练/2014-05-10/F - Chess/main.cpp | C++ | cpp | 416 | no_license | /*
* main.cpp
*
* Created on: May 10, 2014
* Author: ismdeep
*/
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string.h>
#include <string>
#include <cstring>
using namespace std;
int a[100];
int main()
{
srand(10);
for (int i = 0; i < 10; i++)
{
a[i] = rand() % 100;
}
sort (a... |
ac1c29fc14e71aa37148d292175e8801c3699883 | f7878736e519f0c9156103b624be9d5d7c1aa5b2 | late0001/tradingStrategyGM | /StkUI/View/TechsView.cpp | C++ | cpp | 5,131 | no_license | // TechsView.cpp : implementation file
//
#include "stdafx.h"
#include "TechsView.h"
#include "GraphView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTechsView
IMPLEMENT_DYNCREATE... |
371ce957690fdc465a04644ae8ef8e3dc14833e5 | 4e34bb359c1902b0e039411129d933d4af325e6f | Michael-Sjogren/BullCowGame | /FBullCowGame.cpp | C++ | cpp | 2,918 | no_license | /* This is the BullCow class
this acts as the model in a MVC pattern , and is responsible for all
game logic.
*/
#pragma once
#include "FBullCowGame.h"
#include <algorithm>
#include <map>
// to make syntax fit unreal engine convention
#define TMap std :: map
using FString = std::string;
using int32 = int... |
6868ce2b0485a90432938535d5a6e6335f1ef82f | 4136e12b680bbf35137008eea3f4144eea1c4703 | toppic-suite/toppic-suite | /src/ms/feature/savitzky_golay.cpp | C++ | cpp | 2,800 | permissive | //Copyright (c) 2014 - 2020, The Trustees of Indiana University.
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by a... |
6692799ea1661326af47e5e14506e5f9e62f7b3d | 8148986b51dee0143e77950a1c85dd95fdb2e10b | 3s3s/marycoin | /src/qt/paymentserver.cpp | C++ | cpp | 28,975 | permissive | // Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <qt/paymentserver.h>
#include <qt/bitcoinunit... |
6e91f8cb91569e68e28a22d481ddee6de1c1bb66 | c0424dec9c356d31a78716b6138c1d0f8886426b | highras/fpnn-sdk-cpp | /src/base/httpcode.cpp | C++ | cpp | 2,443 | no_license | #include <map>
#include "httpcode.h"
#define HTTPCODES \
HCS(100, CONTINUE, "Continue") \
HCS(101, SWITCHING_PROTOCOLS, "Switching Protocols") \
\
HCS(200, OK, "OK") \
HCS(201, CREATED, "Created") \
HCS(202, ACCEPTED, "Accepted") \
HCS(203, NON_AUTHORITATIVE_INFORMATION, "No... |
79d71969d4a63421fa32f6ff0dd956b192f26757 | 3f74cb788b8a2421473a8125b816558684165b9a | kamiyo/RayTra | /RayTra/Shading.cpp | C++ | cpp | 7,111 | no_license | /*
* Lights.cpp
*
* Created on: Dec 3, 2011
* Author: kamiyo
*/
#include "Shading.h"
//constructor sets up default values in case of no parameters
Shading::Shading() {
init_genrand(time(NULL));
_recurs = 0;
_amb = Vector3d::Zero();
_shadows = false;
_refraction = 0;
_indirect = 0;
_russian = false;
... |
525f6ab162e57cde10c9d4719d3b81bbaf5959b0 | 3543c76419ee2ae91fd49c18a17df3a666203591 | sumanrakshit/Recursion | /sort.cpp | C++ | cpp | 535 | permissive | #include<bits/stdc++.h>
using namespace std;
void insert( vector<int> v,int temp)
{
if(v.size()==0 || v[v.size()-1]<=temp)
v.push_back(temp);
return;
int val=v[v.size()-1];
v.pop_back();
insert(v,temp);
v.push_back(val);
return;
}
void sort(vector<int> v)
{
if(v.size()==1)
return;
int temp=v[v.size()-1];
... |
e165951cf51f26878c8d825315d70ca2af27c0f8 | de958c382bcacd35d967b96fc8b25fe64ea7c4ab | face4/yukicoder | /Level4/0151.cpp | C++ | cpp | 4,378 | no_license | #include<iostream>
#include<random>
#include<vector>
#include<climits>
using namespace std;
// 0-indexed
template<class T, class F>
struct Treap{
struct Node{
T val, sum;
int pri;
int cnt;
Node* ch[2];
Node(T v, int p) : val(v), sum(v), pri(p){
cnt = 1;
... |
fcd352446050ce262543cbdf5187d20388528ef2 | 6d227ec1d08f9416ef94265cd4db9d464d3cde6f | covscript/covscript-launcher | /CovScript Launcher/CovScript Launcher.cpp | C++ | cpp | 1,507 | no_license | // CovScript Launcher.cpp : 定义应用程序的入口点。
//
#include "framework.h"
#include "CovScript Launcher.h"
#include <string>
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
char buffer[MAX_PATH];
ZeroMemory(buffer, size... |
784b55bbfc9451ff6045a14c7f5869efbec5c53d | b8006c52a333ae1ed32d869dae4a474435a662da | yondmn/algorithm014-algorithm014 | /Week_01/design-circular-deque.cpp | C++ | cpp | 2,030 | no_license | class MyCircularDeque {
private:
vector<int> arr;
int k, front, rear, len = 0;
public:
/** Initialize your data structure here. Set the size of the deque to be k. */
MyCircularDeque(int k): arr(k, 0), len(0), k(k), front(k - 1), rear(0) {
// front 和 rear 两根指针分别标记着前和后,并不是真的按照队头队尾插入的
// [... |
631cda6395d477ddeadc1e550ed8b3f85c346223 | b11fe2460068a641e71925e96644dee2f58ac6cc | smides-nest/openthread | /src/posix/platform/radio_spinel.cpp | C++ | cpp | 50,618 | permissive | /*
* Copyright (c) 2018, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... |
2c025f7c8eb4bdc900e5072b6ffd0e2dd19954cf | e6f2a358095069a8214661a4a341c70092463fdf | waternk/prepost-gui | /libs/pre/datamodel/preprocessorgeodatagroupdataitem.cpp | C++ | cpp | 43,794 | no_license | #include "../factory/geodatafactory.h"
#include "../misc/preprocessorlegendboxeditdialog.h"
#include "../misc/preprocessorscalarbareditdialog.h"
#include "../misc/preprocessorscalarbarlegendboxsettingdialog.h"
#include "../preobjectbrowserview.h"
#include "../preprocessordatamodel.h"
#include "../preprocessorgraphicsvi... |
e468f106aa12193be6bb22cfa80a48f5d241b438 | cd5660fde615dae152e50074aa32a3e2f4a26647 | jxgyzhang/ARK | /src/server/game/include/AFCLevelModule.hpp | C++ | hpp | 1,378 | permissive | /*
* This source file is part of ARK
* For the latest info, see https://github.com/ArkNX
*
* Copyright (c) 2013-2019 ArkNX authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"),
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... |
1d734d7d41a53d51a3191e3210a82e5bbd7bb4c2 | 76bba57fcb63d200caa4e0795a973b5a69d9453e | 34234344543255455465/aws-sdk-cpp | /aws-cpp-sdk-codecommit/source/model/PullRequestMergedStateChangedEventMetadata.cpp | C++ | cpp | 2,477 | permissive | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
367f2667c7d3845d23cb71ef72620adf50f88f2b | 7aab436de8280730f6259f2db6cc0fb9e153ced3 | tunling/WonderShareLearning | /qt/filmora/filmora/ui_filmora.cpp | C++ | cpp | 9,892 | no_license | #include "ui_filmora.h"
void Ui_filmoraClass::setupUi(QWidget *filmoraClass)
{
// 窗口设置
filmoraClass->setWindowModality(Qt::NonModal);
filmoraClass->setEnabled(true);
filmoraClass->resize(960, 640);
filmoraClass->setMaximumSize(QSize(16777215, 16777215));
// 设置基础布局
mainLayout = new QVBoxLayout();
filmoraCla... |
0673ae028387d4b7e732b7e05beb9b9b90a689f9 | e05c2bcf8b6e453c9a9ccca59f25e300bcce4aa8 | dimritium/Code | /Practise/pntr.cpp | C++ | cpp | 252 | no_license | #include<bits/stdc++.h>
using namespace std;
#define fl(a,b,c) for(a=b;a<c;a++)
#define flr(a,b,c) for(a=b-1;a>=0;a--)
#define ll long long int
#define MOD 1000000007
int main()
{
int a[5]={0},i;
fl(i,0,5)
a[i]=0;
int *pa=a;
*pa=5;
cout<<a[0];
} |
a9c4b44df4f54a83d65b1175f30a5526535c6780 | 577245dfcccb70d1ff578ce7131106ed698ffb10 | regu1yar/compilers-course-hw | /src/types/basic_type.cpp | C++ | cpp | 330 | no_license | #include "basic_type.h"
#include <string>
BasicType::~BasicType() = default;
std::string toString(Type type) {
switch (type) {
case Type::INT:
return "int";
case Type::BOOLEAN:
return "boolean";
case Type::INT_ARRAY:
return "int[]";
case Type::BOOLEAN_ARRAY:
return "boolean[... |
b081e62829645bbf601cfedda581381419101b5f | 43134344a9c595a69bdf143f7c7ae150e104660d | Jeonghwan-Yoo/BOJ | /DP/9657.cpp | C++ | cpp | 536 | no_license | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
freopen("in.txt", "r", stdin);
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin >> N;
vector<int> dp(max(5, N + 1));
dp[1] = 1;
dp[3] = 1;
dp[4] = 1;
dp[2] = 2;
for (i... |
095349c5beeaf872ded44d2dc1cd8951ee7460a5 | 98c051b39a013b489c2f686f8f5b82ba45425895 | SethRobinson/proton | /shared/util/boost/boost/algorithm/string/detail/formatter.hpp | C++ | hpp | 3,939 | permissive | // Boost string_algo library formatter.hpp header file ---------------------------//
// Copyright Pavol Droba 2002-2003.
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://... |
3c0ad0b184b9ea7ce308c4c50b6a0b603da5e6a0 | f0de35b260e96e668cc9e7eee45ba9b70db222ad | alexandrmruchok/DapWMSModulesTestProject | /main.cpp | C++ | cpp | 707 | no_license | #include <QGuiApplication>
#include <QQmlApplicationEngine>
#include "MainController.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
const QUrl url(QStringLiteral("forms/main.qml"));
... |
83a5335d02c5f2a61da3cb92f3c8d75eb59bddf2 | fb54fb951d1ce90d102f5d89293b1a5f042341a9 | MaxiHuesito/ClickHouse | /src/Functions/FunctionsCodingIP.cpp | C++ | cpp | 48,346 | permissive | #include <functional>
#pragma clang diagnostic ignored "-Wreserved-identifier"
#include <Functions/FunctionsCodingIP.h>
#include <Columns/ColumnArray.h>
#include <Columns/ColumnConst.h>
#include <Columns/ColumnFixedString.h>
#include <Columns/ColumnString.h>
#include <Columns/ColumnTuple.h>
#include <Columns/ColumnsN... |
6192dec0d70140461f717827f7c89d583a19a2cc | 389218cea353479278e2655da538e52c1b96f88e | t1707/vespa | /vespalib/src/vespa/vespalib/io/fileutil.cpp | C++ | cpp | 26,364 | permissive | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "fileutil.h"
#include <vespa/vespalib/util/exceptions.h>
#include <vespa/vespalib/stllike/asciistream.h>
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/fastos/file.h>
#include <os... |
a0e202172465f4ecffce3ffdf5915a25ac261503 | 51a8725c9a3be65077c6889d49a90c9339e88dc5 | thorikawa/ofxSpout | /libs/SpoutSDK/src/SpoutSenderNames.cpp | C++ | cpp | 29,747 | permissive | /**
spoutSenderNames.cpp
Spout sender management
LJ - leadedge@adam.com.au
Thanks and credit to Malcolm Bechard for modifications to this class
https://github.com/mbechard
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
25.04.14 - started class file
27.05.14 - cleanup ... |
5589d4ec5d771cc356cd521bafbc696d4e3917b0 | 09663bda5cef794c9f9b5a8c1bd10279ed82e338 | schinmayee/nimbus | /applications/physbam/physbam-lib/External_Libraries/Archives/boost/boost/algorithm/string/detail/util.hpp | C++ | hpp | 3,474 | permissive | // Boost string_algo library util.hpp header file ---------------------------//
// Copyright Pavol Droba 2002-2003. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See h... |
eb55db6f18b3a0e62235a6eb4df0654280d964e7 | 9f16b7447be889ce77450eb1cbbd3e770db5fbc1 | nunopato/rubinius | /vm/signal.hpp | C++ | hpp | 1,447 | permissive | #ifndef RBX_SIGNAL_HPP
#define RBX_SIGNAL_HPP
#include "lock.hpp"
#include "auxiliary_threads.hpp"
#include "gc/root.hpp"
#include <list>
#include <string>
namespace rubinius {
class VM;
class State;
class Configuration;
struct CallFrame;
class Thread;
class SignalHandler : public AuxiliaryThread, publ... |
c08f7a13a84c8d27e32377f1eeba5da3e4eaf1de | 0765c3bdfd5bd1c2f7ef9522950844684aa3793f | ric2b/Vivaldi-browser | /chromium/content/browser/renderer_host/media/in_process_video_capture_provider.cc | C++ | cc | 3,342 | permissive | // Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/renderer_host/media/in_process_video_capture_provider.h"
#include <utility>
#include "base/bind.h"
#include "content/browser/renderer_host/media/in_... |
b2a026ed53d726ba3fd69e6f8a90c52d4676349d | 06b463c46b844b40f49e2fdd45603a96c20cbf40 | jacobodden/learn_cpp | /src/pointers.cpp | C++ | cpp | 617 | no_license | #include <iostream>
typedef unsigned short int USHORT;
int main()
{
using namespace std;
USHORT myAge;
USHORT* pAge = 0;
myAge = 5;
cout << "myAge: " << myAge << endl;
pAge = &myAge; // assig address of myAge to pAge
cout << "*pAge: " << *pAge << endl << endl;
cout << "Setting *pAge = 7 ..." << en... |
55d5ad0924e5e151985fa291398b1d3be32b1c91 | a40ddbc28ede8b4ac43dc071b59a4b4b9dbe1986 | ebisenttt/atcoder | /abc166/d/main.cpp | C++ | cpp | 552 | no_license | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0; i < n; i++)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define ALL(x) (x).begin(),(x).end()
#define SIZE(x) ((ll)(x).size())
#define MAX(x) *max_element(ALL(x))
#define MIN(x) *min_element(ALL(x))
#define INF 1e9
typedef long long ll;
... |
6b5e5a008a3207caffbe4869744a6e55386a3954 | 8fedf9e258bca26c7513981a82ed72911fda8724 | norswap/grpc | /test/cpp/end2end/server_builder_plugin_test.cc | C++ | cc | 7,886 | permissive | /*
*
* Copyright 2016 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
6b9a4f8b61a9219fa0152e33ef96124e0a68be56 | 652dc0158cb4c2191c432379e272328491d399dd | navidkpr/Competitive-Programming | /CodeForces/591/A[ Wizards' Duel ].cpp | C++ | cpp | 30,017 | no_license | /EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="X-Csrf-Token" content="9b3367481ee93d2f1ce5bb0f0749ddf9"/>
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=0.01"/>
<script type="text/javascript" src="//st.codeforces.com/s/... |
07b711810b5f3b66cbb7879d8432b794a90b8694 | b05ed3d0b65fb9328dee69b5a855bc954b0c24b6 | leonhong/sitemon2 | /results_storage.cpp | C++ | cpp | 2,355 | no_license | /*
* results_storage.cpp
* sitemon
*
* Created by Peter Pearson on 02/04/2010.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
*/
#ifdef _MSC_VER
#include <direct.h>
#endif
#include "results_storage.h"
void ConcurrentHitResults::addResult(int step, HTTPResponse &response)
{
std::map<int, s... |
6a24ca2f2be3e1aecdb86a14234bb43948b52ebf | a821e866a747e3b900eb3432b2a0053d86dd1476 | Jimmy062006/Exilecoin | /src/qt/bitcoin.cpp | C++ | cpp | 9,162 | permissive | /*
* W.J. van der Laan 2011-2012
*/
#include "bitcoingui.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "guiutil.h"
#include "guiconstants.h"
#include "init.h"
#include "ui_interface.h"
#include "qtipcserver.h"
#include <QApplication>
#include <QMessageBox>
#include <QTextCo... |
0e725b7767a6d1a7047a7446298bbb7162a87b48 | b122265fb6720ee87f6e1255f914ea240d19af25 | novikov-ilia-softdev/thinking_cpp | /tom_1/chapter_12/08/main.cpp | C++ | cpp | 636 | no_license | #include <iostream>
class Int{
public:
Int( int i = 0): i_( i) {}
const Int operator+(const Int& right) const;
const Int operator-() const;
friend std::ostream& operator<<( std::ostream& stream, Int& i);
private:
int i_;
};
const Int Int::operator+(const Int& right) const
{
return Int( i_ + right.i_);
}
const... |
22671f945a686de7ab3b3953e9a07776ef7a4be4 | 9813105fd89624689afb79fb32ce1a7b1f107a83 | Takagi1/Retribution | /Retribution/Engine/Rendering/SceneGraph.cpp | C++ | cpp | 5,720 | permissive | #include "SceneGraph.h"
#include "../Graphics/ShaderHandler.h"
#include "../Math/Physics2D.h"
#include "../Rendering/Types/Image.h"
std::unique_ptr<SceneGraph> SceneGraph::sceneGraphInstance = nullptr;
std::map<std::string, std::shared_ptr<GameObject>> SceneGraph::sceneGameObjects = std::map<std::string, std::shared_... |
ec5f58cd2cac519aab0763d8b784be5ed495f261 | 3bb45c0940ce2880073b23390fbe17ed3a23a58e | Pavlograd/Piscine-CPP-2020 | /cpp_rush2_2019/include/Wrap.hpp | C++ | hpp | 688 | no_license | /*
** EPITECH PROJECT, 2020
** cpp_rush2
** File description:
** cpp_rush2
*/
#ifndef __WRAP_HPP__
# define __WRAP_HPP__
# include <iostream>
# include "Object.hpp"
class Wrap : public Object
{
public:
enum WrapStatus
{
OPEN,
CLOSE
};
Wrap(std::string const &n... |
03191da5f15c6d3e6e3ee3c14c42f8635031a6cf | 3b651689c5430b7c92bbc4c419b16f217ef873e4 | dyg540/chromium | /third_party/blink/renderer/modules/peerconnection/rtc_data_channel.cc | C++ | cc | 26,127 | permissive | /*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... |
5b36411d56e6a963e274be03cdde9c4ab6dd2126 | 56e14e029f4952d4b10d8689efd0b62f72c14c9f | AraragiEro/newk | /.history/HJ20_20210316173026.CPP | C++ | cpp | 503 | no_license | #include<iostream>
#include<string>
#include<vector>
using namespace std;
int main(){
string input;
while(cin>>input){
bool iseight=false;
bool isThreeType=false;
bool isNotex=false;
if(input.size()>8) iseight=true;
vector<int> mark(4);
for(auto i=inp... |
e585994d27494aab860993a3a2fc4f8f4c641205 | d82625fc34fe4d9340dda26cf65a6571a2195f20 | zanzo420/SDK-RadicalHeights | /src/SDK/RH_ConfettiGrenade_WeaponPackage_functions.cpp | C++ | cpp | 380 | no_license | // Radical Heights (ALPHA-1-201356) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "RH_ConfettiGrenade_WeaponPackage_parameters.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//--------------------------------------------------------------... |
587451287a5f770daecf39ad7ad48a3cb6c31a6c | 079d222f3349c4a3092c84a4603d6ea949bc6a21 | cksystemsgroup/zeta | /cpp/verifier/fifoExecuterUpperBound.cpp | C++ | cpp | 20,920 | permissive | // Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#include "fifoExecuterUpperBound.h"
#include "histogram.h"
#include <assert.h>
// go until last overlapping insert
int FifoExecuterUpperBound::semanticalError(const Operation* r... |
a65fdee9787f22647e1568448feef99caded418f | e354eda30871647090f65a0753b2c3c0fe33e671 | JavierIslas/First-Prototype | /CoopGameProt 4.20/Source/CoopGame/Private/MenuSystem/SServerRow.cpp | C++ | cpp | 398 | no_license | // Fill out your copyright notice in the Description page of Project Settings.
#include "SServerRow.h"
#include "WSUserWidget.h"
#include "Components/Button.h"
void USServerRow::Setup(UWSUserWidget * InParent, uint32 InIndex)
{
Parent = InParent;
Index = InIndex;
Server->OnClicked.AddDynamic(this, &USServerRow::O... |
f22fdcc736629cb43090b3720fbd03d253970e0b | ed5ceb25aa04354c8da4ac6fb3c5aaaa8318b5c3 | IngwarSV/FirstGameinCocos2d-x | /Classes/Player.cpp | C++ | cpp | 1,927 | no_license |
#include <vector>
#include "Player.h"
using namespace cocos2d;
Player::Player() {
//init();
}
Player::~Player() {
}
Color Player::getRandomColor(Color currentColor)
{
Color newColor = static_cast<Color>(_core->getRandom(1, 3));
/*for (; newColor == currentColor;) {
newColor = static_cast<Color>(uid(gen));
... |
1d36a89c0d560febc58959063ae62149963c7827 | 588e26cf7c40550f47da4f29839dc5abca64c7c1 | revathi1319/APS-2020 | /ANSLEAK.cpp | C++ | cpp | 537 | no_license | #include <iostream>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t,n,m,k,i,a;
cin>>t;
for(i=0;i<t;i++)
{
cin>>n>>m>>k;
for(int j=0;j<n;j++)
{
for(int d=0;d<k;d++)
{
cin>>a;
}
... |
f1aa2a9c1d69f7de294036b90ed94085f62413e1 | 057ca8ab08b5fe9170e64cb380d6a8ebee07df5c | Petr2141/beefweb | /server/src/response_headers_filter.cpp | C++ | cpp | 565 | permissive | #include "request.hpp"
#include "response.hpp"
#include "response_headers_filter.hpp"
namespace msrv {
ResponseHeadersFilter::ResponseHeadersFilter(SettingsDataPtr settings)
: settings_(settings) { }
ResponseHeadersFilter::~ResponseHeadersFilter() = default;
void ResponseHeadersFilter::endRequest(Request* reque... |
407c0b310a2ab74ab87bba1c338e6367f78f92cf | 617bdd5b55f87c11f92c0a613a0c3167e255aaf9 | soragami-asuka/CustomDeepNNMaker | /Layer/NeuralNetwork/GaussianNoise/GaussianNoise_CPU.cpp | C++ | cpp | 7,841 | no_license | //======================================
// フィードフォワードニューラルネットワークの統合処理レイヤー
// 結合、活性化
// CPU処理用
//======================================
#include"stdafx.h"
#include"GaussianNoise_DATA.hpp"
#include"GaussianNoise_FUNC.hpp"
#include"GaussianNoise_Base.h"
#include"GaussianNoise_CPU.h"
#include"GaussianNoise_LayerData_CPU.... |
b113a74fdec6aa453ad2607375665a3c928de061 | 2048c12d09db80efe4c29d76f4f95ee733c34bb6 | vladubogdan/LevelHelper2-Cocos2d-X.v3 | /cocos2d/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/CustomTest/CustomWidgetCallbackBindTest/CustomWidgetCallbackBindTest.cpp | C++ | cpp | 946 | permissive | #include "CustomWidgetCallbackBindTest.h"
#include "../../CustomGUIScene.h"
#include "editor-support/cocostudio/ActionTimeline/CSLoader.h"
#include "editor-support/cocostudio/CocoStudio.h"
#include "base/ObjectFactory.h"
#include "CustomRootNode.h"
#include "CustomRootNodeReader.h"
USING_NS_CC;
using namespace flatbu... |
4ecc437af12d00ad84dc353c5ccf6168fa6e401e | 759492628c96731f7d94f6b98c0d3c20738ae1ba | anighose25/pyschedcl-concurrent | /pyschedcl/passes/feature_pass/thrud/lib/FeatureExtraction.cpp | C++ | cpp | 3,666 | permissive | #include "thrud/FeatureExtraction.h"
#include "thrud/DivergenceAnalysis.h"
#include "thrud/Utils.h"
#include "llvm/Analysis/ScalarEvolution.h"
cl::opt<std::string> kernelName("count-kernel-name", cl::init(""), cl::Hidden,
cl::desc("Name of the kernel to analyze"));
extern cl::opt<uns... |
5b78ecb3ced119fbac7cf22ff74724d464acac0c | f13c3ba2dee3e4321b9b478c8d114339139be3e6 | Rajpratik71/compute-runtime | /opencl/source/device/device_info.cpp | C++ | cpp | 20,864 | permissive | /*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/device/device_info.h"
#include "shared/source/device/device.h"
#include "shared/source/helpers/get_info.h"
#include "shared/source/os_interface/os_time.h"
#include "opencl/source/device/cl_device.h"
#inc... |
bd5b3fef2a4367d2a78935a3f5cbd4495dc2fd20 | dc9d12432b8a94aa8f045a1949d6431c45028b92 | nashahid/Data-Structures | /a3_binary_search_tree.cpp | C++ | cpp | 8,883 | no_license | #include "a3_binary_search_tree.hpp"
#include <iostream>
using namespace std;
// Nabeel Shahid 20460189
// Jonathan Chan 20521786
//helper functions
unsigned int h_depth(BinarySearchTree::Node* node);
BinarySearchTree::Node* getParent(BinarySearchTree::DataType val, BinarySearchTree::Node* root);
Binary... |
d4525e447fcbe13f7a6047755a3d29778d118e28 | 569937963c635a2cc00cd3ec96b01378f4d3dfdb | pantphot/firos_examples | /PointHeader_to_fiware/cb_get_point.cpp | C++ | cpp | 1,435 | no_license | #include <iostream>
#include <sstream>
#include <string>
#include <unistd.h>
#include <curlpp/cURLpp.hpp>
#include <curlpp/Easy.hpp>
#include <curlpp/Options.hpp>
using namespace curlpp::options;
int main(int argc, char *argv[])
{
std::ostringstream os;
std::string url;
double freq = 1;
while(1){
try{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.