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 |
|---|---|---|---|---|---|---|---|---|
a675948a7fa1c539e02c7b3ff272c3c628270ad1 | 27daa020a4969e7c75e0a30167c6caf057566453 | samuel-olivier/Animation | /Mesh.cpp | C++ | cpp | 5,059 | no_license | #include "Mesh.h"
#include <QGLBuffer>
#include "Renderer.h"
Mesh::Mesh(Node *parent) : Node(parent)
{
_GLVertices = new QGLBuffer(QGLBuffer::VertexBuffer);
_GLFaces = new QGLBuffer(QGLBuffer::IndexBuffer);
_drawMode = Fill;
_isWireFrame = false;
_material = new Material(this);
setType("Mesh");
}
... |
0d8b979f3c3a99bf3ebd8aebaeef25e56070fa23 | 4943c7c861effce914a24d40e685c6696b272d3e | bouffa/meshlab | /meshlab/src/meshlab/ml_render_gui.cpp | C++ | cpp | 22,008 | no_license | #include "ml_render_gui.h"
#include <QPushButton>
#include <QLayout>
#include <QLabel>
#include <QHeaderView>
MLRenderingToolbar::MLRenderingToolbar(bool exclusive,QWidget* parent )
:QToolBar(parent),_meshid(-1),_exclusive(exclusive),_previoussel(NULL)
{
connect(this,SIGNAL(actionTriggered(QAction*)),... |
be2f2016fbbe8ca77e117b8e89088f5e44d480ff | 2e37ca598ca00d0012a0cf9355323b3526234ace | stir001/DirectX12Library | /DirectX12/DescriptorHeap/Dx12DescriptorHeapObject.cpp | C++ | cpp | 3,786 | no_license | #include "stdafx.h"
#include "Dx12DescriptorHeapObject.h"
#include "Buffer/Dx12BufferObject.h"
#include "ViewDesc/Dx12BufferViewDesc.h"
#include "Util/CharToWChar.h"
#include "CommandList/Dx12CommandList.h"
#include <d3d12.h>
#include <cassert>
D3D12_GPU_DESCRIPTOR_HANDLE operator +(const D3D12_GPU_DESCRIPTOR_HANDLE&... |
93e49f6b8e4c0ba4def4e4905772601b3ebb64b9 | 2775af14181f12ac1c05d29b5ca85a91a6b0a3a6 | noll115/loki-box | /box/src/arduinoOTA.cpp | C++ | cpp | 1,531 | no_license | #include <Arduino.h>
#include <ArduinoOTA.h>
#include "LittleFS.h"
void StartOTA(const char *personalssid, const char *personalpass)
{
WiFi.begin(personalssid, personalpass);
while (WiFi.waitForConnectResult() != WL_CONNECTED)
{
Serial.println("Connection Failed! Rebooting...");
delay(3000)... |
adb1295619b8284a2b5cb97e442ca107a11db298 | 4dbf8496657606c717c36d9170499d7d3f10a010 | SupraBitKid/mrpt | /libs/nav/src/tpspace/CPTG_Holo_Blend.cpp | C++ | cpp | 24,784 | permissive | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
25e72d75f6ddfabba984cb3bf72f4223546d8290 | b82ac5cb323b43078b6b484358535dfe92ceb7be | Har01d/ClickHouse | /dbms/src/Interpreters/InterpreterSelectQuery.cpp | C++ | cpp | 48,331 | permissive | #include <experimental/optional>
#include <DB/DataStreams/ExpressionBlockInputStream.h>
#include <DB/DataStreams/FilterBlockInputStream.h>
#include <DB/DataStreams/LimitBlockInputStream.h>
#include <DB/DataStreams/PartialSortingBlockInputStream.h>
#include <DB/DataStreams/MergeSortingBlockInputStream.h>
#include <DB/D... |
0bfbf8d34851dafdb5cea3e7413b34f1d2b8c782 | 1c7881b83128e616e957a6058ff1cd6fd2f12e8c | Andor233/SubtitleFontHelper | /SubtitleFontHelper/Common.cpp | C++ | cpp | 6,945 | permissive | #include "Common.h"
#include <codecvt>
#include <cassert>
#include <vector>
#include <locale>
#include <Windows.h>
#include <Shlobj.h>
#include <Knownfolders.h>
const static char default_conf[] = u8R"_(<?xml version="1.0" encoding="UTF-8"?><ConfigFile></ConfigFile>)_" u8"\n";
constexpr size_t default_con... |
8ce2d1bab66feb47e7c84f72e8f9b3da77b20b16 | f4c789d980de7c34abff15e2feaa51d7f7ab62f5 | glodfinch/Matter | /animContainer.cpp | C++ | cpp | 976 | no_license | #include "animContainer.h"
#include <iostream>
AnimContainer::AnimContainer( std::vector<std::string>& files, std::vector<int>& del )
{
type = 2;
for( unsigned int i = 0; i < files.size(); i++ )
{
sf::Texture tempText;
if( !tempText.loadFromFile( files[ i ] ) )
{
std::... |
3b2bec1229350aec902134c1740820b446dd234d | 7090ac2df306890fdbc3abbcfa3e55f482b06d30 | zephyrer/dreamskin | /DreamSkin/DreamSkinComboLBox.cpp | C++ | cpp | 13,177 | no_license | // DreamSkinComboLBox.cpp
#include <windows.h>
#include "WinGdiEx.h"
#include "DreamSkinMain.h"
#include "DreamSkinLoader.h"
#include "DreamSkinWindow.h"
#include "DreamSkinScrollBar.h"
#include "DreamSKinComboBox.h"
#include "DreamSkinComboLBox.h"
//static member declaration
WNDPROC CDreamSkinC... |
7d1f1521c1d90ca09d00c9ca6841f8641e844a38 | 5b31a57c5771f3955901b475cefcf1f5e19bfd78 | ViktorJordanov/tudat | /Tudat/JsonInterface/UnitTests/unitTestSimulationThrustAlongVelocityVector.cpp | C++ | cpp | 11,628 | permissive | <<<<<<< HEAD
/* Copyright (c) 2010-2018, Delft University of Technology
=======
/* Copyright (c) 2010-2019, Delft University of Technology
>>>>>>> origin/master
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification,... |
16b9bab60f656f9c52dafd1a7f12b3e8a38ee201 | 04108cff5b2710723291e50e140c0e5b62e8e068 | adityaeth/BeginnerPrograms | /c language/test.cpp | C++ | cpp | 781 | no_license | #include <stdio.h>
int check_armstrong(int);
int power(int, int);
int main () {
int c, a, b;
printf("Input two integers\n");
scanf("%d%d", &a, &b);
for (c = a; c <= b; c++) {
if (check_armstrong(c) == 1)
printf("%d\n", c);
}
return 0;
}
int check_armstrong(int n) {
... |
bf1c2d95500b62ed194908a94e2dc89fd476f205 | 81a3849f9c38350ef374efe05d70a37e69603c53 | sachaaaaa/loki | /src/cryptonote_core/service_node_deregister.cpp | C++ | cpp | 12,142 | permissive | // Copyright (c) 2018, The Loki Project
//
// 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
// ... |
782a87ca90c1199391fd9830a46bc2c051f147ca | d9e1094ce102403b846ab7bd2cf307718feca304 | rohitshakya/CodeBucket | /1. Placements/3. Bitwise Algorithm/2. Power of 2.cpp | C++ | cpp | 298 | no_license | /*
* Author : Rohit Shakya
* Date : April-2020
* Compiler : g++ 4.9.2
* flags : -std=c++14
* time complexity : O(1)
* title : PowerOFTwo
*/
class Solution {
public:
bool isPowerOfTwo(int n) {
if(n<=0) return false; //0ms solution
return !(n&(n-1));
}
};
|
3290beee0b75b66763226404c36a9ed74545eac2 | c1ef84c99349a13c803a36f502ce047edfc4beb2 | zzhou292/chrono-collision | /src/chrono_synchrono/agent/SynEnvironmentAgent.cpp | C++ | cpp | 4,408 | permissive | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2020 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
eff8924915e547ed05fe086516b8673e76dd1a79 | 6b1a69485b8b9d3dbc1bfff5f5c0c9e09b0591e3 | montreal91/graphics | /circles/circles/application.cpp | C++ | cpp | 3,253 | no_license |
#include "application.h"
AnApplication* AnApplication::current_instance;
AnApplication::AnApplication( int argc, char** argv ) {
this->SIZE.width = 800;
this->SIZE.height = 600;
this->CreateWindow( argc, argv );
this->rings_v = std::vector<ARing>();
}
AnApplication::~AnAppli... |
ab615d1d2dde20eb9ca459ce2e33574c2c94d684 | 1782d2e291420807f62f192a0277f4070d62185e | lanctot/open_spiel | /open_spiel/python/pybind11/games_backgammon.cc | C++ | cc | 2,198 | permissive | // Copyright 2021 DeepMind Technologies Limited
//
// 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 l... |
88fb6296ec4dae5b0a991efe2b100f14cc7e50d2 | a3cd428612b3a328041ee5d022c9c4d8f79bc14d | projectinazuma/inazuma | /src/qt/test/uritests.cpp | C++ | cpp | 2,842 | permissive | #include "uritests.h"
#include "../guiutil.h"
#include "../walletmodel.h"
#include <QUrl>
void URITests::uriTests()
{
SendCoinsRecipient rv;
QUrl uri;
uri.setUrl(QString("inazuma:LQDPC5rbjDB72fGFVHu4enYhxGAZuRiFh9?req-dontexist="));
QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv));
uri.setUrl(QString... |
43e88f04bb8eb5d64d279bd634a78b37177048b0 | 02609410095f08f77282989adb7b672929dec14f | erikvanhamme/wayfire | /src/view/xwayland.cpp | C++ | cpp | 24,445 | permissive | #include "wayfire/debug.hpp"
#include <wayfire/util/log.hpp>
#include "wayfire/core.hpp"
#include "wayfire/output.hpp"
#include "wayfire/workspace-manager.hpp"
#include "wayfire/decorator.hpp"
#include "wayfire/output-layout.hpp"
#include "wayfire/signal-definitions.hpp"
#include "../core/core-impl.hpp"
#include "view-... |
b33f978dc7dad65b4de59168059b81d3b4b4c004 | 9a3bd1708001ddaae53cb4fa083160267237a12f | zxzql/ouzel | /ouzel/input/android/InputSystemAndroid.cpp | C++ | cpp | 14,899 | permissive | // Copyright 2015-2018 Elviss Strazdins. All rights reserved.
#include <stdexcept>
#include <android/input.h>
#include "InputSystemAndroid.hpp"
#include "GamepadDeviceAndroid.hpp"
#include "core/android/EngineAndroid.hpp"
#include "core/Window.hpp"
namespace ouzel
{
namespace input
{
InputSystemAndroi... |
7871532e712461d15d1ebd03014f01fe4cd45ac6 | 50478176e62fc8d17045eb4ae15b9e25376a7287 | huanghailiang/vxl-1.17.0 | /contrib/brl/bpro/core/bbas_pro/processes/bbas_estimate_irradiance_process.cxx | C++ | cxx | 4,079 | no_license | //This is brl/bpro/core/bbas_pro/processes/bbas_estimate_irradiance_process.cxx
//:
// \file
#include <bprb/bprb_func_process.h>
#include <bprb/bprb_parameters.h>
#include <bsta/bsta_histogram.h>
#include <vil/vil_image_view_base.h>
#include <vil/vil_image_view.h>
#include <vil/vil_convert.h>
#include <vil/vil_save.h>
... |
c646a17aca413ca21fae339d1458b90f7cf4767a | c51cee457e0e9aec220a37e4d0466ea0145fdaa6 | Cirno-baka/Solution | /Code/stick_final.cpp | C++ | cpp | 1,629 | no_license | #include <cstdio>
#include <cstdlib>
int n, tot, sum, cnt[59], maxn, minn=99;
bool use[69];
inline int read()
{
char ch=getchar();
int figure=0;
while(ch<'0'||ch>'9')
{
ch=getchar();
}
while(ch>='0'&&ch<='9')
{
figure=((figure<<3)+(figure<<1))+ch-'0';
ch=getchar();
... |
43c52521a3e62150a5fb896203d1c5f79be052c4 | eaab34ac9ca880602e9740b7bcddf4ac7b775b3c | iamclock/LyapasLib | /compilers/compilers.bak/24.11.2015/ltc.cpp | C++ | cpp | 65,041 | no_license | #include <map>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <string>
#include <stdlib.h>
#include <regex.h>
#include <vector>
#include <string.h>
using namespace std;
char FileName[500];
//********************************************************************************
void Debug(string s) {
... |
10fe578f58af950c96386ec26830a8312ae653f5 | 3f59bebaee9cb651c2e8ded5371f6d0f34181eb9 | BobDeng1974/FL-Essentials | /src/Fle_BoxWindow.cpp | C++ | cpp | 4,389 | no_license | /*********************************************************************************
created: 2017/08/28 11:41PM
filename: Fle_BoxWindow.h
file base: Fle_BoxWindow
file ext: h
author: Furqan Ullah (Post-doc, Ph.D.)
website: http://real3d.pk
CopyRight: All Rights Reserved
purpose: Customized window with an image b... |
fa66a898701d33f4e0ab88e03415dd3673171009 | 670e449c48bb4664f5d828c72190ef94dba30b9e | zaddan/cache_coherency | /sim/iu.cpp | C++ | cpp | 36,037 | no_license | // iu.cpp
// by Derek Chiou
// March 4, 2007
//
// STUDENTS: YOU ARE EXPECTED TO MAKE MOST OF YOUR MODIFICATIONS IN THIS FILE.
// for 382N-10
#include "types.h"
#include "helpers.h"
#include "my_fifo.h"
#include "cache.h"
#include "iu.h"
// added by Ben
#include "directory.h"
#include <stdlib.h>
#include <as... |
6e5162c918085715e5733b3923704bef95ee4385 | 546c95d1eaba735af4e4b677b24160a9d138d833 | AlexanderMilton/Mattelabb | /Main.cpp | C++ | cpp | 3,060 | no_license | #include <iostream>
#include <math.h>
#include <vector>
#include <stdlib.h>
#include <ctime>
#include "dice.h"
#include "binom.h"
#include "coin.h"
using namespace std;
int inputN();
int inputM();
int inputX();
int main()
{
Reset:
Dice::generate_seed();
Coin::generate_seed();
int input = 0;
int n = 0;
int m... |
a80879537f8e90f6d77982563f8a11dd088f56fb | 43c650b508056b2ac4210b24a003904663d037e0 | greenplum-db/gporca | /libnaucrates/src/parser/CParseHandlerOp.cpp | C++ | cpp | 2,453 | permissive | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2010 Greenplum, Inc.
//
// @filename:
// CParseHandlerOp.cpp
//
// @doc:
// Implementation of the base SAX parse handler class for parsing DXL operators.
//---------------------------------------------... |
8638d36139a11550b9ae99b139fa9891e38c6abb | d03b83c2eb194cc622b481d4ddadb2cda9620b7d | gasparfm/anapache | /lib/gcommon/cfileutils.cpp | C++ | cpp | 4,928 | permissive | /**
*************************************************************
* @file cfileutils.cpp
* @brief C File tools
*
*
* @author Gaspar Fernández <blakeyed@totaki.com>
* @version
* @date 30 feb 2012
* Changelog:
* - 20120530 Doc in English
* - 20120531 Renamed as cfileutils.cpp to build correctly with Makefile
*
******... |
20f6ff5b04172d28d5593820ce449127db0bf733 | b617af3098305e1804daf276ed53046ef1ab3883 | theboz1419/HeaterMeter | /arduino/heatermeter/hmmenus.cpp | C++ | cpp | 15,069 | permissive | // HeaterMeter Copyright 2011 Bryan Mayland <bmayland@capnbry.net>
#include "hmcore.h"
#include "grillpid.h"
#include "strings.h"
static state_t menuHome(button_t button);
static state_t menuSetpoint(button_t button);
static state_t menuProbename(button_t button);
static state_t menuProbeOffset(button_t button);
stati... |
9624c00e8ddc36ade305e4e42efad51774026e2e | 65bbc20b7d7035e9c6f7df080c1196d2b0dddaa0 | 15831944/barry_dev | /src/Util/FileTypes.cpp | C++ | cpp | 3,396 | no_license | ////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2005
// Packet Engineering, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification is not permitted unless authorized in writing by a duly
// appointed officer of ... |
7f6ca9fbd827ffcd9dfd32c50ee51e902acd2d43 | 36f16ccbf1119c8d1c4f0dd0b5c7efb83658b085 | missgreenwood/masterarbeit | /src/Tests/BloomFilter.hpp | C++ | hpp | 1,450 | no_license | // BloomFilter.hpp, Judith Greif
// Description: Header for class BloomFilter
#ifndef BloomFilter_hpp
#define BloomFilter_hpp
#include <iostream>
#include <vector>
#include <cstdlib>
#include <random>
#include <math.h>
using namespace std;
// TODO
const int filtersize = 10; // # of bits in Bloom filter
const in... |
c119793d6060cb98350658fdf0663937e74cd6ff | 9ad843cfdd4f5fc660ae05210e64171415cdddc9 | puuparta/miscellaneous_work | /ChessEngine_AfterEight/AfterEight/square.cpp | C++ | cpp | 980 | permissive | /*
Copyright (c) 2011 Pasi Heinonen, AfterEight Team
All Rights Reserved.
Use and copying of this software and preparation of derivative works
based upon this software are permitted. Any copy of this software or
of any derivative work must include the above copyright notice, this
paragraph and the one af... |
39f0cad42d4002cfc974f9eedb133e4c84c2b3cb | 62f1e3f1639f3527a980ccab9eaa3943d3202ab2 | saniahamid/AlgorithmicToolbox | /week2_algorithmic_warmup/3_greatest_common_divisor/gcd.cpp | C++ | cpp | 735 | no_license | #include <iostream>
int gcd_naive(int a, int b) {
int current_gcd = 1;
for (int d = 2; d <= a && d <= b; d++) {
if (a % d == 0 && b % d == 0) {
if (d > current_gcd) {
current_gcd = d;
}
}
}
return current_gcd;
}
int gcd_fast(int a, int b)
{
int divisor, remainder, dividend;
if (a <= b)
{
diviso... |
a93a2b215b16c6fc8d0228632ce2137d7e09541d | ecf78ed01de2aeecda16c906d398fe21e435bbb6 | FutureMillennium/imgview | /imgview.cpp | C++ | cpp | 31,635 | permissive | // TODO gifs, rotate, crop
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <shellscalingapi.h>
#include <stdint.h>
#include <shlwapi.h>
#include <shlobj.h>
#include <exdisp.h>
#include <GdiPlus.h>
using namespace Gdiplus;
using namespace Gdiplus::DllExports;
//////////////... |
b3cda8b210e2e147ce5f5bfe93d8cd01790d76fe | f2610fc3c597bca344335b7cbed858ff3c615503 | ChronisYan/Algorithms-Data-Structures | /C++/data-structures/linkedList.cpp | C++ | cpp | 1,425 | no_license | #include <iostream>
#include <stdexcept>
template <typename T>
class List
{
public:
List() : head_(nullptr){};
const T &operator[](unsigned index)
{
Node *cur_node = head_;
while (index > 0)
{
if (cur_node == nullptr || cur_node->next == nullptr)
throw s... |
30945eaf3f711792488f67e08513e3bbb4103715 | c1a933dc92da5cf4d1256b14daa9af958f8914ec | fangohr/oommf | /oommf/app/oxs/ext/rectangularmesh.cc | C++ | cc | 41,186 | no_license | /* FILE: rectangularmesh.cc -*-Mode: c++-*-
*
* Rectangular mesh, derived from Oxs_Mesh class.
*
*/
#include "nb.h"
#include "vf.h"
#include "atlas.h"
#include "meshvalue.h"
#include "oxsexcept.h"
#include "rectangularmesh.h"
#include "director.h"
#include "nb.h"
#include "energy.h" // Needed t... |
5c70dd09225f1c5cf1718563d39b7a8068045495 | dbba96641a774528e1a04b8069d2da2a2c5d4570 | TanvirHossenShishir/190041119_CSE_4302 | /Lab-10/119 task 1.cpp | C++ | cpp | 813 | no_license | #include <iostream>
using namespace std;
class Car
{
public:
virtual void getDetails()
{
cout << "Total no of Car Brands: 2" << endl;
}
};
class Honda: public Car
{
public:
void getDetails()
{
cout << "Total no of Car Models: 5" << endl;
}
};
class Toyota: public Car
{
public:
virtual void getEngineInfo()... |
444061fdd1bab6b29115f008277c42f35aa6adde | d82394d7fdf45e6e7c3db4fed1589fa92dd30df8 | liang0/chromium | /chrome/browser/ash/login/demo_mode/demo_session_browsertest.cc | C++ | cc | 5,491 | permissive | // Copyright 2018 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 "chrome/browser/ash/login/demo_mode/demo_session.h"
#include "base/macros.h"
#include "chrome/browser/ash/login/demo_mode/demo_setup_controller.... |
0ee4d20b0be74331c1113231753e23b049b9a54b | 98907a4774e9b0501099b66c713acba035a3c4ee | lrcQAQ/computer-graphics-bounding-volume-hierarchy | /src/ray_intersect_box.cpp | C++ | cpp | 1,686 | no_license | #include "ray_intersect_box.h"
#include <iostream>
bool ray_intersect_box(
const Ray & ray,
const BoundingBox& box,
const double min_t,
const double max_t)
{
////////////////////////////////////////////////////////////////////////////
// indices
double x_e = ray.origin[0];
double y_e = ray.origin[1];
... |
9daaaa16d605f111e5d8aca5b4648476b4a10a3a | 8653e3a97d3db819cbee0dede0248b7f50a0f423 | a7med-m7md/Interesting-Algorithms-and-Data-Structures | /AVL Tree.cpp | C++ | cpp | 7,323 | no_license | /// Ahmed Nasser Mohamed
/// 09/08/2020
/*
--Description : AVL tree is a balanced binary search tree that can perform all operations in O(log(n))
--Operations : Insert - Search - Delete - Range
--Time complexity : O(log(n))
*/
#include<bits/stdc++.h>
#define FIO ios_base::sync_with_stdio(0);cin.tie(0);
using namespac... |
f4e00d12da9cc27742750852656f3885c2d8df8d | 2ef1c92adf6ce7967fe2135ce7457809f2b68db4 | bsella/Darwinia-and-Multiwinia-Source-Code | /multiwinia/code/lib/ogl_extensions_sdl.cpp | C++ | cpp | 2,988 | no_license | #include "lib/universal_include.h"
#include "lib/ogl_extensions.h"
#include <SDL.h>
#include <string.h>
#include <OpenGL/glu.h>
#include "lib/netlib/net_thread.h"
#include "app.h"
const GLubyte *g_openGLExtensions = NULL;
MultiTexCoord2fARB gglMultiTexCoord2fARB = NULL;
ActiveTextureARB gglActiveTextur... |
dc2db63425c53fd314b77e42b5c1d4c6b9138e58 | 9d098afcd6b5e2f93e279e294ac87fac187df4bf | jon-karve/MAMR-Game-Server | /MAMR Game Server/Server/jehadServer/MapGroupKernel/Network/MsgAnnounceList.cpp | C++ | cpp | 2,887 | no_license | // MsgAnnounceList.cpp: implementation of the CMsgAnnounceList class.
//
//////////////////////////////////////////////////////////////////////
#include "AllMsg.h"
#include "MsgAnnounceList.h"
#include "mapgroup.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////... |
3ec438a8f6afaf710f281ecacffb6a10b9c792c7 | da5bb1e0de6a34816aa042843d533b4bf369a376 | ArisKarastergiou/ARTEMIS-AMPP | /src/lib/test/src/PPF_ProfileTest.cpp | C++ | cpp | 5,109 | no_license | #include "PPFChanneliser.h"
#include "SpectrumDataSet.h"
#include "TimeSeriesDataSet.h"
#include "pelican/utility/ConfigNode.h"
#include <QtCore/QTime>
#include <QtCore/QFile>
#include <QtCore/QTextStream>
#include <QtCore/QFile>
#include <cstdio>
#include <complex>
#include <vector>
#include <cmath>
using namespac... |
5cc8d3e91e13f38cf4a1e8558bfcafc6ad63e9ba | 7e16a8125da02930e47af48ad0b96280c57c5794 | fx-ha/dogechain | /src/qt/sidechainwtprimehistorydialog.cpp | C++ | cpp | 2,533 | permissive | // Copyright (c) 2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/sidechainwtprimehistorydialog.h>
#include <qt/forms/ui_sidechainwtprimehistorydialog.h>
#include <QScrollBar>
#incl... |
599a39c0aac7c59825ad6fcb6b0fbeebb90f7d7c | b4054479ae9be5e35e0080bc3e4e0e87d103315a | roguzman/mpmlink | /RpcUtils.cpp | C++ | cpp | 10,610 | no_license | ///////////////////////////////////////////////////////////////////////////////
//
// $Workfile: RpcUtils.cpp$
//
// $Author: Jim Fox $
// $Revision: 1 $
// $Date: 11/15/11 8:50a $
//
// Copyright 2011 - Speedline Technologies, Inc.
//
// Description: Implementations of some basic functionality common to most RPC
/... |
4c2c749c4624d3d5f2761ade20ec23e80a6e453b | cf4f8541825afa992d9021dbf96e22d8a034801a | GerHobbelt/tesseract | /src/svpaint.cpp | C++ | cpp | 9,565 | permissive | // Copyright 2007 Google Inc. All Rights Reserved.
//
// Author: Joern Wanke
// 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 ... |
b705398ab59eba0af2d0522e0faaf9765ab15f42 | 686014f595946ac338f16bb4dacf0283fcf75124 | cnsuhao/ouzel | /ouzel/localization/Language.hpp | C++ | hpp | 456 | permissive | // Copyright (C) 2018 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include <cstdint>
#include <map>
#include <string>
#include <vector>
namespace ouzel
{
class Language
{
public:
bool init(const std::string& filename);
bool init(const std::vector<uint8_t>& data... |
27e10bcbe876814d79ad9c8c69029b15675110f3 | 5c9a2e881e4074428205f84ee26402159f5a20a7 | bravesoftdz/cbuilder-vcl | /Include/Vcl/dblocal.hpp | C++ | hpp | 5,794 | no_license | // Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'DBLocal.pas' rev: 6.00
#ifndef DBLocalHPP
#define DBLocalHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Provider.... |
1f2fa21703ffe0e7939252f6e770ada4c6e91b87 | 3e0c9ef84c45d2a7bd4808da34479e24ddf02c07 | ngthanhvinh/competitive-programming | /usaco/2017/USOPEN-2017/art.cpp | C++ | cpp | 1,541 | no_license | #include <iostream>
#include <fstream>
#define MAX_N 1000
#define MAX_C (MAX_N*MAX_N)
using namespace std;
int upper[MAX_C+1], lower[MAX_C+1], leftside[MAX_C+1], rightside[MAX_C+1];
int N, total, art[MAX_N+1][MAX_N+1], count[MAX_C+1];
int P[MAX_N+1][MAX_N+1], A[MAX_N+1][MAX_N+1];
int main(void)
{
ifstream fin("art.... |
8943d5c0c74f75456b19033b223c1e2bd7ab2e1a | e3ecff261ae17726e57664c6958970ed9f34be4f | webosce/db8 | /test/db/MojDbTestRunner.cpp | C++ | cpp | 2,909 | permissive | // Copyright (c) 2009-2018 LG Electronics, Inc.
//
// 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... |
ca59cddb3b36feeabf05716f5d4808cb9dfb4921 | b07a3478cd3e0dc7d6e8f9e82b93fdace68dc803 | ric2b/Vivaldi-browser | /update_notifier/thirdparty/wxWidgets/src/qt/menu.cpp | C++ | cpp | 9,016 | permissive | /////////////////////////////////////////////////////////////////////////////
// Name: src/qt/menu.cpp
// Author: Peter Most, Mariano Reingart
// Copyright: (c) 2010 wxWidgets dev team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// For c... |
7eb8cbf6ed2839979e251e9afaec5ae59fed885e | 341fb6317da623bc3d430a5894df352b208bda95 | hex-hex/ZxLib | /GDAL/include/xercesc/dom/deprecated/DOM_CDATASection.hpp | C++ | hpp | 3,860 | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... |
ed6da5e9c46d00e2aebaa3f56de70c5696ff84e8 | 05b706e53b6c07a4ef118a95f320dceaccad5c0b | geobir/spaceWars | /Level.class.hpp | C++ | hpp | 1,306 | no_license | /* \
/ / \
/ / \
/ / \ \ Name: Level.class.hpp
/ / / \ \
/ / /\ \ \ by: gbir
/ / / \ \ \
/ /__/____\ \ \
/____________\ \ \
\________________\*/
#ifndef LEVEL_CLASS_HPP
# define LEVEL_CLASS_HPP
# include <iostream... |
c6af850801310e74164109af32ad31a92569041a | 191a07baa06d2dca8eb2fd672c674b5272a75ae1 | TJArk-Robotics/coderelease_2017 | /Util/SimRobot/Src/SimRobotCore2/Simulation/Sensors/Camera.cpp | C++ | cpp | 7,043 | permissive | /**
* @file Simulation/Sensors/Camera.cpp
* Implementation of class Camera
* @author Colin Graf
*/
#include "Platform/OpenGL.h"
#include "Simulation/Sensors/Camera.h"
#include "Simulation/Body.h"
#include "Simulation/Scene.h"
#include "Platform/Assert.h"
#include "Platform/OffscreenRenderer.h"
#include "Tools/OpenGLT... |
fb2a9a1e521f4b91ab71de9105a3c2b8cb3c575e | ca26f9ac26364caf192b8e249daf211896f9faec | Se2015HardCording/Mobile-Robot-Controller | /RobotControllerUI/DE/MainFlow.cpp | C++ | cpp | 923 | no_license |
#include <fstream>
#include <iostream>
#include"moveManager.h"
#include"MainFlow.h"
//paragmaOnce
using namespace std;
MovementInterface::MovementInterface()
{
}
void MovementInterface::init(int startY, int startX, int mapHeight, int mapWidth)
{
MoveManager::GetManager()->InitMoveManager(startY, startX, mapHeight... |
f03da0aa8ff196c7029473325ef80796c8df4577 | c0f1b3be9336149d240131d9f96095e5d13b5206 | hjl19911127/v8 | /src/compiler/backend/ia32/instruction-selector-ia32.cc | C++ | cc | 91,314 | permissive | // Copyright 2014 the V8 project 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 "src/base/adapters.h"
#include "src/compiler/backend/instruction-selector-impl.h"
#include "src/compiler/node-matchers.h"
#include "src/compile... |
dc0745a85839db9d8e4de1d8857bcb6e93f1a155 | 7edff2f846318d29defc227a83f9346017f12103 | yair-k/Win2000SRC | /private/inet/urlmon/eapp/urlcf.hxx | C++ | hxx | 1,251 | no_license | //+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1995.
//
// File: urlcf.hxx
//
// Contents:
//
// Classes:
//
// Functions:
//
// History: 12-22-95 JohannP (Johann Posch) Created
//
//--------------... |
0c404b84617a9f34ecb64e7a2cc08351c99e6449 | 220773b5ad4051df8beed994138fe202e141417f | vargaz/lldb | /source/Core/Module.cpp | C++ | cpp | 61,361 | permissive | //===-- Module.cpp ----------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
1a02840255cb5c7f2137afd884f30a63bcd26ac8 | cbf4e428eefdc488317a114893845b1960d25a33 | fanzcsoft/windows_embedded_compact_2013_2015M09 | /windows_embedded_compact_2013_2015M09/WINCE800/private/test/BaseOS/pqoal/cetk/kitl/Client/kitltestdriverdev.cpp | C++ | cpp | 19,700 | no_license | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft shared
// source or premium shared source license agreement under which you licensed
// this source code. If you did not accept the terms of the license agreement,
// you are... |
536e029e06a7c2c48ff1f15cfefd54b13752ff9e | dfa8e22d4a216dd55d6fdfc79fa990b3556a2809 | rationalcoder/IceRunner | /src/icerunner/rendering/comptrhack.hpp | C++ | hpp | 1,022 | permissive | #ifndef COMPTRHACK_HPP
#define COMPTRHACK_HPP
#include <d3d11.h>
//! ComPtr workaround until we get atlbase.h from wine (assuming that it does what we want)
template <typename COMObj_>
class ComPtr
{
public:
ComPtr()
: obj_(nullptr)
{}
~ComPtr()
{
if (obj_)
{
obj_->... |
8ef9f1ec6fcb0ad714f24d501ac7bde37051e855 | 67cf4901f18afb34ccc40eee8118094a4bda4aff | UCSBRoboticsClub/micromouse-2014 | /Micromouse/drv8833.cpp | C++ | cpp | 770 | no_license | #include "drv8833.h"
#include <WProgram.h>
#include <cmath>
Motor::Motor(int pin1, int pin2) : pin1(pin1), pin2(pin2)
{
pinMode(pin1, OUTPUT);
pinMode(pin2, OUTPUT);
// Set up PWM
analogWriteFrequency(pin1, 20000);
analogWriteFrequency(pin2, 20000);
analogWriteResolution(16);
analogWr... |
750a0caaf9980152360c82807cf4c0a9861fe803 | 616e8b60a687ae7f103c77a5747b3bf823ddff05 | petamaj/node-tracer | /deps/v8/src/code-stubs.cc | C++ | cc | 21,346 | permissive | // Copyright 2012 the V8 project 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 "src/code-stubs.h"
#include <sstream>
#include "src/arguments.h"
#include "src/assembler-inl.h"
#include "src/ast/ast.h"
#include "src/bootst... |
e89dbc91fc8e77a79ceb59cfb8dad1d42ff0bcbf | 16d38c60b657eaf40c3e9b88a35dcd3f5e215075 | fmanea/joule-code-samples | /exploring-cpp/lesson_7_classes_and_encapsulation/cpp/lesson_7.cpp | C++ | cpp | 3,499 | permissive | /*
Copyright (c) 2015 - 2016 Intel Corporation.
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, merge, publish,
d... |
ff27917a98183a7c999d266aef26a9fa1f69fefa | 59cc8d10f616c51e58f39e26568645b095fde832 | ElderOrb/hifi | /domain-server/src/DomainGatekeeper.cpp | C++ | cpp | 47,987 | permissive | //
// DomainGatekeeper.cpp
// domain-server/src
//
// Created by Stephen Birarda on 2015-08-24.
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "DomainGatekeeper.h"
... |
6dc9dfdc7460c80ed2462fd6a9f4823375df4083 | 6898b50c4cc6df40ca900729b6f422cd7e619a55 | dakoller123/Egyetem | /oop/zh1/main.cpp | C++ | cpp | 1,945 | no_license | #include <iostream>
#include "adoptionEnor.h"
#include "adoptionDayEnor.h"
int main()
{
std::string filename;
std::cout<<"Enter the name of the input file, please:";
std::cin>>filename;
//std::string filename = "input.txt";
try{
AdoptionDayEnor adoptionDayEnor = AdoptionDayEnor(filenam... |
167fb6f77ceae1ffc46da906f8dc25d7673e8b19 | ac7783c72d8fa784670387c207936e3f92031557 | flores-jacob/exercism | /cpp/roman-numerals/roman_numerals_test.cpp | C++ | cpp | 2,003 | no_license | #include "roman_numerals.h"
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(one_yields_I)
{
BOOST_REQUIRE_EQUAL("I", roman::convert(1));
}
BOOST_AUTO_TEST_CASE(two_yields_II)
{
BOOST_REQUIRE_EQUAL("II", roman::convert(2));
}
BOOST_AUTO_TEST_CASE(three_yields_III)
{
BOOST_... |
b63b494728b15f7551f71bff5574b4c37114e10e | 1a9bfe93292b345fd8fbad977afbd9c0b0d6d425 | devangsaxena/DSA-Standard-Repo | /Binary Search Trees/09-binary-tree-to-bst.cpp | C++ | cpp | 2,138 | no_license |
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define setbits(x) __builtin_popcountll(x)
#define mod 1000000007
#define FIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
struct Node
{
int data;
Node *left, *right;
};
// Func... |
fbf53b1723c597fdeadb8c640bb2d49692abbf88 | 709ba7950bea31f37881ae4a3d9bee02953f8086 | gittyup69/milltoken | /src/checkpoints.cpp | C++ | cpp | 5,012 | permissive | // Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>
#include "checkpoints.h"
#include "m... |
8d3e57eeaf14f623b178ac05c41ca3892956d3dd | d7f83ffc78115f52a5ce2a5bb74a2456d0f78d01 | chillpert/matrix | /matrix/src/platform/window/Window_SDL2.cpp | C++ | cpp | 4,554 | no_license | #include "Window_SDL2.h"
#include "KeyboardEvent.h"
#include "MouseEvent.h"
#include "WindowEvent.h"
#include "Controller.h"
#include "World.h"
#include "Application.h"
#ifdef MX_IMGUI_ACTIVE
#include <imgui.h>
#include <imgui_impl_sdl.h>
#endif
namespace MX
{
static std::string SDL_ErrorMessage;
bool Window... |
a246d3c02616eef21868bc65510696c2e5fc176a | 711ac45ab87f01a57dc4087609f6444882559d4d | Antilurker77/DragonStar3 | /DragonStar/ui/tooltip.cpp | C++ | cpp | 14,913 | no_license | // ================================================================
//
// tooltip.cpp
//
// ================================================================
#include "tooltip.hpp"
#include "wordWrap.hpp"
#include "../core/assetManager.hpp"
#include "../core/records.hpp"
#include "../core/settings.hpp"
#include "../da... |
2cb6f387d9cf2bfd7804f521414a7aa586d1d06b | 2ab3d0360650cddace9a3533523257314ca5cb5d | chitianhao/trafficserver | /proxy/ReverseProxy.cc | C++ | cc | 5,160 | permissive | /** @file
Definitions for reverse proxy
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to yo... |
ffbddf2a045768fe3c15e13dd575975dc2d7ce2a | 61d24446e47aa0df590d3fa97b09d1c1b23ad507 | briancpark/deitel-cpp | /VCB600ENU1/MSDN_VCB/SAMPLES/VC98/SDK/COM/INOLE2/CHAP23/COSMO/IPERSTOR.CPP | C++ | cpp | 14,513 | no_license | /*
* IPERSTOR.CPP
* Cosmo Chapter 23
*
* Implementation of the IPersistStorage interface that we expose on
* the CFigure compound document object. This ties into the
* functionality of CPolyline.
*
* Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
*
* Kraig Brockschmidt, Microsoft... |
614a34fb69f8f2ea093f6b8be5473ad763181a41 | 8cae7a4ebc6085812f57680c6755fbb7ea5df19e | mcderdan/c-plus-plus | /quadratic solver.cpp | C++ | cpp | 854 | no_license | # include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
double a, b, c, x, d, x2;
int decimal;
cout << "ax^2 + bx + c = 0" << endl << "Input a" << endl;
cin >> a;
cout << "Input b" << endl;
cin >> b;
cout << "Input c" << endl;
cin >> c;
cout << "How many decim... |
a92b8ea23db82fcd568379341f6c6fa6baf45e7e | a3ef1f7196fc96f5fabbbfe4de608ba40752a281 | s1042992/UVa-Code | /488.cpp | C++ | cpp | 595 | no_license | #include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
while(n--)
{
int a,f;
cin>>f>>a;
for(int i=0;i<a;i++)
{
for(int j=1;j<=f;j++)
{
int t=j;
while(t--) cout<<j;
cout<<e... |
1d9dd206b0603935f7879976812b6a7f53fa4ea9 | bda323338b79cbb3a8de87a5f318c80691b875db | proggerkz/CSES | /CoinCombinationsI.cpp | C++ | cpp | 1,560 | no_license | #include <bits/stdc++.h>
using namespace std;
template<class T> void ckmin(T &a, T b) { a = min(a, b); }
template<class T> void ckmax(T &a, T b) { a = max(a, b); }
#define pb push_back
#define mp make_pair
#define cotu cout
#define itn int
#define Red ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define... |
52392c22604efdf0041e5a1e2e631afd5d68ee23 | cfa58800f1cd1b9ce3125005b4969cd4a7be87d4 | p-lots/kattis | /alphabetspam/alphabetspam.cpp | C++ | cpp | 906 | no_license | #include <cctype>
#include <iomanip>
#include <iostream>
int main(int argc, char *argv[])
{
std::string line;
std::cin >> line;
double len = line.length();
double whitespace_count = 0, lowercase_count = 0;
double uppercase_count = 0, symbol_count = 0;
double whitespace_ratio, lowercase_ratio;
double uppercase... |
5aee7325e4161f66edd722f85c90f963d947a272 | a52c7af1e4a15cfef9618e98142fa0e12b16e0e4 | waaberi/chromium | /chrome/browser/ui/app_list/search/search_result_ranker/chip_ranker_unittest.cc | C++ | cc | 6,760 | permissive | // Copyright 2020 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 "chrome/browser/ui/app_list/search/search_result_ranker/chip_ranker.h"
#include <list>
#include <vector>
#include "ash/public/cpp/app_list/app_... |
ee8fc9d1a2e13b8cc540f0578513dd5fb6960802 | f2afb705c46980fb67774606c1ccff495d6acdd0 | LaRamono/BRAINSTools | /DWIConvert/DWIDICOMConverterBase.cxx | C++ | cxx | 18,932 | permissive | //
// Created by Johnson, Hans J on 11/24/16.
//
#include "DWIDICOMConverterBase.h"
/**
* @brief Return common fields. Does nothing for FSL
* @return empty map
*/
DWIDICOMConverterBase::CommonDicomFieldMapType
DWIDICOMConverterBase::GetCommonDicomFieldsMap() const
{
return this->m_CommonDicomFieldsMap;
}
DWIDICO... |
6317cde3bc1fe8545c993f0b702e04ca8c0b63cf | 56e2089288b42515f3d607dca0a9bd47d2d3dc4b | clickteam-plugin/TileMapViewport | /DisplayRunObject.cpp | C++ | cpp | 18,627 | no_license | #include "Common.h"
#include "Helpers.h"
#define assignSubLayerSettingLink(name, minCellSize) \
assignSubLayerLink(layer.settings.subLayerLink, name, minCellSize)
#define assignSubLayerCallbackLink(name, minCellSize) \
assignSubLayerLink(r... |
dcbf04279a559231f4cdb9a0954732bef482196c | 043f0c41d154858d1adb31f2050b0eb0008c9dc3 | rundel/carto-generator | /include/gen_style.hpp | C++ | hpp | 2,085 | no_license | #ifndef GEN_STYLE_HPP
#define GEN_STYLE_HPP
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/fusion/include/adapt_adt.hpp>
#include <boost/spirit/include/karma.hpp>
#include <boost/spirit/include/support_adapt_adt_attributes.hpp>
#include <mapnik/rule.hpp>
#include <mapnik/expression_string.hpp>
#incl... |
4ccae8623c09216dbf74523c6fa2282314b4d2e3 | f8675136c5f97c24244a3cdff0ff6033b86d97b4 | longlongwaytogo/FireNET | /src/server/UI/mainwindow.cpp | C++ | cpp | 10,681 | permissive | // Copyright (C) 2014-2017 Ilya Chernetsov. All rights reserved. Contacts: <chernecoff@gmail.com>
// License: https://github.com/afrostalin/FireNET/blob/master/LICENSE
#include "global.h"
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "UILogger.h"
#include "Core/tcpserver.h"
#include "Core/remoteserver.h... |
4aeb5c5ddaaadf4c2e23796e12a6c15cbd6949a4 | 808220d24bfb8453c106cc6466e00342b21fa97c | britus/tvision | /source/platform/ncurdisp.cpp | C++ | cpp | 6,631 | permissive | #ifdef HAVE_NCURSES
#define Uses_TScreen
#include <tvision/tv.h>
#include <internal/ncurdisp.h>
#include <internal/codepage.h>
#include <internal/textattr.h>
#include <internal/stdioctl.h>
#include <internal/terminal.h>
#include <ncurses.h>
#include <clocale>
NcursesDisplay::NcursesDisplay() :
definedPairs(0),
... |
c06391c6aaaddf6fac4cd6665ee9458b61656c37 | d5a669de50a45f3b89a48d6f7b683999d47d1e80 | starbug4546/chromium | /base/timer/timer.cc | C++ | cc | 11,933 | 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 "base/timer/timer.h"
#include <stddef.h>
#include <utility>
#include "base/check.h"
#include "base/memory/ptr_util.h"
#include "base/memor... |
8a0666abbad43abbd584743e1426aa0e7c526a65 | 32b6440ccf89c1c709dba8d97dfb5fee49f919e7 | srpape/IntroVirt | /include/introvirt/windows/kernel/nt/syscall/types/offset_iterator.hh | C++ | hh | 4,653 | permissive | /*
* Copyright 2021 Assured Information Security, Inc.
*
* 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... |
452d67a45d4a7275653325cc7265ebf16090b0c1 | ac4a4bf651af99e0584ea9a4f9faa778d0782e7f | Meghag5/Beginner-CPP-Submissions | /Urvashi/milestone-24(stl)/Maps-Stl.cpp | C++ | cpp | 540 | no_license | #include <iostream>
#include <map>
#include <algorithm>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int q,type,marks;
string name;
cin>>q;
map<string,int>m;
while(q--)
{
cin>>type>>name;
if(type==1)... |
f239d48ad92e217d69e0311b10fc696533ba042d | b7f2a9bf5f2fb186f3addc1512f67da17d52fb73 | reelrobotics/SMACC | /smacc/src/smacc/smacc_client_behavior.cpp | C++ | cpp | 740 | permissive | #include <smacc/smacc_client_behavior.h>
namespace smacc
{
SmaccClientBehavior::SmaccClientBehavior()
{
stateMachine_ = nullptr;
currentState = nullptr;
}
SmaccClientBehavior::~SmaccClientBehavior()
{
ROS_WARN("Client behavior deallocated.");
}
std::string SmaccClientBehavior::getName() const
{
retur... |
d449c1ba2b05a93f08d8ca067799f68a21838db6 | dab912f32bdcc1c0274b2f9fb7847adb3f360b1e | borntoleave/PersonalSolution2CTCI | /16MODERATE/xinfuMax.cpp | C++ | cpp | 241 | no_license | #include<iostream>
//#include<bitset>
using namespace std;
void Max(int a, int b){
int arr[2]={a,b};
cout << arr[(((a-b)>>31)&1)] << endl;
}
int main(int argc, char *argv[]){
int a=atoi(argv[1]),b=atoi(argv[2]);
Max(a,b);
return 0;
}
|
b5cad1f387d077d05e78a093f193dfc044cc09c7 | 5ac750ff20406cdba2dd9382f0b300aabf6ba824 | CycCoder/OpenUniverse | /src/chromium/patch-81.0.4044.92-20201220/third_party/blink/renderer/core/html/html_element.cc | C++ | cc | 67,157 | no_license | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved.
* Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
* (http://www.torchmobile.com/)
* Copyright (C) 2011 Motorola Mobility. All ri... |
3a6f97ac3fe0e4afdf0c3d2a8e523e8d267c230e | d3a02172571fd3237ad6a285b7d40da38d0d821f | suryak/Advanced-Data-Structures | /ass02/hw02_tree01/FibonacciList.cpp | C++ | cpp | 7,046 | no_license | #include "FibonacciList.h"
#include <iostream>
using namespace std;
void FibonacciList::merge(FibonacciList *list1){
//cout << "\nthis fibonacci merge:";
//this->print();
//cout <<"\n given list";
//list1->print();
for(int i = (int(list1->getHeader()->size()) -1); i>0;i--){
... |
52624e1b77d41b69a01487ac12910002341b1259 | 75b31f79aded9e9af673a2917deebf430f342e40 | kripken/llvm-js | /lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | C++ | cpp | 124,164 | permissive | //===----- LegalizeIntegerTypes.cpp - Legalization of integer types -------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
0671da217197b7d7b6256460fb769f64d4407295 | c1c8001a7b4f528a04502f3af3d7fad0476eacd9 | Boklazhenko/itstephomework | /ps/week18/task4/neradovskiy/task4.cpp | C++ | cpp | 342 | no_license | #include <iostream>
#include "Flat.h"
int main()
{
Flat home("Malkova 30", 32, 1000);
home.print();
Flat bar("Lenina 2a", 150, 1);
bar.print();
home = bar;
if (home == bar)
std::cout << "Home == bar" << std::endl;
bar.changePrice(100);
if (home < bar)
std::cout << "Home ... |
924330c1160fbd1aa46d482730d8f616a4915de9 | ae9b1d5174e6b39995bde80034ad426dcf4478c8 | romanzes/chromium | /ui/events/platform/x11/x11_event_source.cc | C++ | cc | 16,169 | permissive | // Copyright 2014 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 "ui/events/platform/x11/x11_event_source.h"
#include <algorithm>
#include <memory>
#include <type_traits>
#include "base/auto_reset.h"
#include... |
4c1be9d1f361a0c07bad1253d123aa094269ebf8 | 35cfbaf1bae3be6e92eb9e11d9aff478c651732c | SREERAGI18/chromium | /media/gpu/v4l2/test/vp9_decoder.cc | C++ | cc | 15,240 | permissive | // Copyright 2021 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 "media/gpu/v4l2/test/vp9_decoder.h"
#include <linux/media/vp9-ctrls.h>
#include <sys/ioctl.h>
#include "base/files/memory_mapped_file.h"
#inclu... |
be511caa31a8f2d8ea31f68a0b70b2072e5ee7a9 | d10200abbe505db0d2176b80a6c4bc3690b0c1f6 | organicmaps/organicmaps | /3party/osrm/osrm-backend/extractor/extraction_helper_functions.hpp | C++ | hpp | 3,980 | permissive | /*
Copyright (c) 2015, Project OSRM contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of conditions and the f... |
a66c2c593c37d1aaaa2728b28c061d7eabb9cf3d | c30977d2a7304390b936598d3c0c7e4513619d40 | zpooky/cppmeta | /tokenizer.cpp | C++ | cpp | 4,437 | permissive | /*
* wasd
*/
#include "tokenizer.h"
#include "String.h"
#include <array>
#include <forward_list>
#include <fstream>
#include <initializer_list>
#include "ArrayList.h"
/*Util*/
bool is_newline(char c);
String read_line(std::ifstream &);
bool contains(char, const std::initializer_list<char> &);
bool is_token(LineMe... |
507b5a37cf00735933bef4abcbfc2543c90bd07b | 4149a9b09b8336c5d90b688fdb6b72c5aa885a32 | SR-dude/AvP-Wine | /3dc/avp/win95/gadgets/consvar.hpp | C++ | hpp | 3,448 | no_license | /*
consvar.hpp
Console variables : i.e. values that can be adjusted at the console
*/
#ifndef _consvar_hpp
#define _consvar_hpp 1
#if ( defined( __WATCOMC__ ) || defined( _MSC_VER ) )
#pragma once
#endif
#ifndef _conssym_hpp
#include "conssym.hpp"
#endif
#ifdef __cplusplus
extern "... |
55e54b2ef5f0b134ffd00ee0cba4f538bcfc41dc | 1499e82126b44f2953befdc25f8fa33b77956a01 | Satish-SaGo/functions | /dynamic programming-- factorial.cpp | C++ | cpp | 292 | no_license | #include<iostream>
using namespace std;
int dp[1000005];
int fact(int n)
{
if(n<=1)
return 1;
if(dp[n]!=-1)
return dp[n];
return dp[n]=n*fact(n-1);
}
int main()
{
int n;
cout<<"enter a number:";
cin>>n;
for(int i=0;i<=n;i++)
{
dp[i]=-1;
}
cout<<fact(n);
return 0;
} |
ca5568c0d9bcf22a4f1b85e77289b24a44e7049a | bd8390829d67e42dd635d1c9e26dd4e54067e4b0 | bravesoftdz/realwork | /shared/ContextSearch/impl/Relevancy_i/Algorithm_i.cpp | C++ | cpp | 32,931 | no_license | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Модуль: "w:/shared/ContextSearch/impl/Relevancy_i/Algorithm_i.cpp"
// генератор файлов реализации C++ (.cpp)
// Generated from UML model, root element: <<Servant::Class>> shared::ContextSearch:... |
a51e438e64847676fbb9ea389421deea6988be4c | 6ffe5af9b399929dfaa47438c61f7164c3998013 | koovsh96/Coursework | /Курсовой проект/Курсовой проект/kursach.cpp | C++ | cpp | 5,880 | no_license | #include <iostream> // подключаем заголовочный файл с классами, функциями и переменными для организации ввода-вывода
#include <fstream> // набор классов, методов и функций, которые предоставляют интерфейс для чтения/записи данных из/в файл
#include <string> // для организации работы со строками
using namespace std; // ... |
3488666cb79805c079d317abb423473a007c5d22 | 24cf539b7b4beaed01b75a1552a0641d94f29685 | AdamSzerszen/Data_Compression | /Hamming/Encoder.cpp | C++ | cpp | 2,546 | no_license | #include "Encoder.h"
CEncoder::CEncoder()
{
}
string CEncoder::setLastParityBit(string block)
{
string tempBlock = block;
int counter = 0;
for (int i = 0; i < 7; i++)
{
if (block[i] == '1')
{
counter++;
}
}
if (counter % 2 != 0)
{
tempBlock[7] ... |
207833cffc24853404cac62c1e65078440bdd4d2 | 3d4999f8a12f409a80eee5c1e3f88e3b1713a82d | Kun4lpal/CrossPGui | /Sockets/old/Sockets.cpp | C++ | cpp | 15,633 | no_license | /////////////////////////////////////////////////////////////////////
// Sockets.cpp - Provides basic network communication services //
// ver 2.1 //
// Language: Visual C++, 2005 //
// Platform: Dell Dimension 9150, W... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.