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 |
|---|---|---|---|---|---|---|---|---|
5ca8a99b2f7c9adf649f3f87e55a5fa1bc2e8bd5 | aae882d1e8b798b1b57d3872c137cad088b571f0 | Benito-0r/robotica | /ex1_publisher_subscriber/publisher_subscriber_custom/src/publisher.cpp | C++ | cpp | 1,415 | no_license | #include <ros/ros.h>
#include "publisher_subscriber_msgs/InfoJoint.h"
#include "publisher_subscriber_msgs/JointCustomMsg.h"
using namespace std;
int main(int argc,char ** argv){
ros::init(argc,argv,"talker");
ros::NodeHandle nh;
ros::Publisher chatterPublisher =
nh.advertise <publisher_subscriber_msgs:... |
f66312f18bc1599d9b6ca4a742f94671d04a951d | 8867435ee220203cdaab760bd40871bbfbeefd48 | Abrin09/Klondike | /klondike_v_1/Models/Card.cpp | C++ | cpp | 1,086 | no_license | //
// Created by ezsanab
//
#include "Card.h"
namespace Models {
Card::Card() {
this->number = -1;
this->visible = true;
this->suit = Enums::Suits::UNDEFINED;
setColor();
}
Card::Card(Enums::Suits suit, int num) {
this->suit = suit;
this->number = num;
... |
c20e43a3f5d28302ae1246c3b77670aac75eddb5 | 6889e570a8988ccdcd22da4899dbe7a128344bef | pawelbrzoza/mini-games-cpp | /arkanoid/include/ErrorFile.hpp | C++ | hpp | 720 | no_license | #pragma once
#include <memory>
#include "Common.hpp"
#include "GameSettings.hpp"
#include "Error.hpp"
#include <SFML/Graphics.hpp>
class ErrorFile : public Error
{
public:
virtual void error(const std::string errorMsg = "PROBLEM WITH FILE...")
{
sf::Text game_over(errorMsg, GameParam::font, 40);
... |
b4c254b042db4224c2057d0d7c49ff44f4620e8e | 432fe769ccb1bb3241a262fb6ecd4d050ad8dd60 | qomahisma/tugas-istiqomah | /project 2.cpp | C++ | cpp | 658 | no_license | #include <iostream>
using namespace std;
int main() {
int usia = 27 ;
float berat = 60.00 ;
char jenis = 'p' ;
string nama = "istiqomah" ;
bool hasil = false ;
cout <<"masukkan usia saya : " ;
cin>>usia;
cout<<"berat badan : " ;
cin>>berat;
cout<<"jenis kelamin saya : " ;
cin>>je... |
2b5826c9aff6ec6bbf4bb2a33f9e36860dc3cfc4 | 0ea7234036c24c82921ec575bbd9881768fa5049 | dogtwelve/eepp-clone | /include/eepp/ui/uiwinmenu.hpp | C++ | hpp | 2,883 | permissive | #ifndef EE_UICUIWINMENU_HPP
#define EE_UICUIWINMENU_HPP
#include <eepp/ui/base.hpp>
#include <eepp/ui/uicomplexcontrol.hpp>
#include <eepp/ui/uiselectbutton.hpp>
#include <eepp/ui/uipopupmenu.hpp>
namespace EE { namespace UI {
class EE_API UIWinMenu : public UIComplexControl {
public:
class CreateParams : public ... |
2fadfe2a54b9eed4ffdec981a7341e0789215ce6 | 090ed411c9030eadff5f27fbee2fb6417724ff40 | gary-robotics/UR10-dev | /frame_broadcaster/src/tf_broadcaster.cpp | C++ | cpp | 1,856 | permissive | #include <ros/ros.h>
#include <tf/transform_broadcaster.h>
#define PI 3.1415926
int main(int argc ,char** argv)
{
ros::init(argc,argv,"robot_tf_publisher");
ros::NodeHandle n;
ros::Rate r(50);
tf::TransformBroadcaster broadcaster1;
tf::TransformBroadcaster broadcaster2;
while(n.ok()){
broadcaster1.sen... |
103ca8b487c18db27cc0cc053b31e2be3a4a9ada | daff0308623d9441d08339cf2ede7cac0dfc9b72 | samueletorresani/1.0 | /PalindromString/PalindromStringMain.cpp | C++ | cpp | 682 | no_license | /*
Program that given a string,
prints out if is palindrome or not
*/
#include <iostream>
#include <cstring>
#include "PalindromString.hpp"
using namespace std;
#define L 100
int main()
{
cout << "Enter string to check: ";
char input[L];
// This instead of simple cin because it reads also space... |
8895a02252893130ff084e999faefa72be06beda | c68ae0c226eaa4064600c5157d986ea2e1e50df2 | yenting-chen/Algorithms-and-Data-Structures | /Huffman code (min max weighted path length), greedy.cpp | C++ | cpp | 637 | no_license | /*
Huffman code (min max weighted path length), greedy
Introduction to Algorithms (Fall 2018)
Assignment 14 - Merging Sets (Deadline: 11/24 23:59:59)
https://oj.nctu.edu.tw/problems/679/
*/
#include<cstdio>
#include<algorithm>
#include<queue>
using namespace std;
int main()
{
int d, n;
scanf("%d%d", &d, &n... |
211e192a9cf43b0fbf9c949ae890cf0c7149317e | 0c24193015cc6c6878460a3596f3287b278ba9ba | tjgolubi/emane | /shims/phyapitest/src/phyapitestshim.cc | C++ | cc | 17,935 | permissive | /*
* Copyright (c) 2012 - DRS CenGen, LLC, Columbia, Maryland
* 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
* no... |
26f1552363841810388712021448acb1f6366f59 | 882ac131e3d8cac845cc8febda319abcaf68d026 | oTreasureo47/MyMiniEngine | /WinMain.cpp | C++ | cpp | 3,948 | no_license | #define MINI_ENGINE // MINI_ENGINE COMMON_COMPUTE
#define IMPLEMENTED_IGAMEAPP 0
#define IMPLEMENTED_MODELVIEWER 1
#define IMPLEMENTED_GLTFVIEWER 2
#define IMPLEMENTED_SCENEVIEWER 3
#define IMPLEMENTED_OCEANVIEWER 4
#define IMPLEMENTED_VORONOITEXTURE 5
#define IMPLEMENTED IMPLEMENTED_MODELVIEWER
#include "MyBaseApp... |
b7e6d629da1d809ddd704b51e5d59eefecec6097 | 54b9206b605dfbb31b90d907d1348b1d3fa6d852 | P3Dr076/wrapper | /src/qt/askpassphrasedialog.cpp | C++ | cpp | 9,911 | permissive | // Copyright (c) 2011-2013 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 "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#inc... |
62f5796618dde0ef584f4ecf61263e284e295478 | 36785c81b54063670bc1a216bd5a53a1b2ef0f8f | chutz/libtorrent | /examples/client_test.cpp | C++ | cpp | 55,394 | permissive | /*
Copyright (c) 2003-2017, Arvid Norberg
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 ... |
5d6a0dd325580dc276f5537f3d696c3b26030d21 | cdd6864632d70a309c5fe8395da5fca3513bd49e | jpeach/trafficserver-plugins | /esi/lib/EsiParser.cc | C++ | cc | 24,619 | permissive | /** @file
A brief file description
@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 you und... |
f6f9099755f2f44a589d17a7757328769bfc5256 | ef01c9f0e03c1d42ea47e9842250e4f67f09384e | Sebo1971/minilogue-dsp | /lfo_rev/lfo.cpp | C++ | cpp | 2,171 | no_license | #include <logue/userrevfx.h>
#include <logue/dsp/simplelfo.hpp>
static dsp::SimpleLFO s_lfo;
enum
{
k_sin = 0,
k_tri,
k_saw,
k_sqr,
k_sin_uni,
k_tri_uni,
k_saw_uni,
k_sqr_uni,
k_sin_off,
k_tri_off,
k_saw_off,
k_sqr_off,
k_wave_count
};
static uint8_t s_lfo_wave;
static float s_param_z, s_pa... |
5b35d4e9ef7f9e02f245a8c44f1c91fac0f9f869 | 437b0633f7c308585208ffcac80c0e6ec053edd0 | JMAK13/McIntyreJosh_CSC_5_Fall2017 | /Projects/Project 1/Farkle/main.cpp | C++ | cpp | 7,182 | no_license | /*
* File: main.cpp
* Author: Josh McIntyre
* Created on October 19, 2017, 12:12 PM
* Purpose: Simple recreation of Farkle
*/
//System Libraries
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <fstream>
using namespace std;
//User Libraries
//Global Constants
//Function Prototypes
//Execut... |
11abe3a64d21c8ad0abe87dbc2367f4d26278c22 | 179ba4c6ac5b13d1a5cf1d5b7b3a9831fa5d6cb9 | mildrock/HisMonitorDM | /src/SwitchFind.cpp | C++ | cpp | 282 | no_license | #include "iostream"
#include "MyNet.h"
using namespace std;
int MainIpFind(string ip,string virtualIp)
{
return 1;
}
int main()
{
string ip = MyNet::getStaticInfo();
string virtualIp = "192.168.200.220";
int ret = MainIpFind(ip,virtualIp);
cout << ret << endl;
return 1;
}
|
31dd6e6b77063e0f009b9ab6a08b181dd9c7fdb7 | 3e04d9fee9aa822a3d54dcf9bec46eb3735ea996 | Tiba3195/LightScattering | /CPUT/CPUT/CPUTFrustum.cpp | C++ | cpp | 6,662 | permissive | ////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 Intel Corporation
//
// 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://w... |
35b32c1884a2d40c7e7e87879e2de0d9a8691732 | b7616c3214bd4e35cebfa5eb3fa63b6aaa06ece5 | TobiasKozel/GuitarD | /thirdparty/HIIR/PolyphaseIIR2Designer.cpp | C++ | cpp | 11,734 | permissive | /*****************************************************************************
PolyphaseIir2Designer.cpp
Author: Laurent de Soras, 2005
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it... |
1ffaec8b4d84f507f9354b0871256bea25e2ba31 | 038ab105222d29825a93bc1b5dc4120eb80e5728 | yonas/electron | /atom/browser/native_window_views_win.cc | C++ | cc | 7,239 | permissive | // Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/native_window_views.h"
#include "content/public/browser/browser_accessibility_state.h"
namespace atom {
namespace {
// Convert Win32 WM_APPCOMMANDS to strings... |
d18758350885e631f8d3d74ca75c2950aedd8e07 | fbb1abef66be923d1dd330386f1d702a9e55905f | ailyanlu/ACM-ICPC-9 | /套题/2015多校/2015 MUTC 8/1005.cpp | C++ | cpp | 3,152 | no_license | #include <queue>
#include <cstdio>
#include <set>
#include <string>
#include <stack>
#include <cmath>
#include <climits>
#include <map>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <algorithm>
#include <cstring>
#define LL long long
#define ULL unsigned long long
using namespace std;
char wen[11... |
6465a6b3c5552de255b8495687ba7a0a84ff8e1f | 23c67ffd869f7bb71796b2dc2b4f5d8f8fd06e78 | DroidSim/platform_art | /runtime/gc/space/large_object_space_test.cc | C++ | cc | 3,324 | permissive | /*
* Copyright (C) 2011 The Android Open Source Project
*
* 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 app... |
2932f63b2c590507620d3968dc49ad45da8c9bfb | a5a3a126654cca4271062418f3f6386262819206 | craig8/asneg | /src/OpcUaStackPubSub/DataSetDispatcher/DataSetDispatching.cpp | C++ | cpp | 921 | permissive | /*
Copyright 2017 Kai Huebl (kai@huebl-sgh.de)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0.
Sofern nicht gemäß geltendem Recht vorgeschri... |
d1c1a0d0c255b8d5d7dfb4f5b04a11dab6f42800 | 510f0241dac7a985b130861cbb739dd25c91b194 | TaurusGGBOY/AlgorithmCode | /src/LC1253.cpp | C++ | cpp | 972 | no_license | #include "vector"
#include <algorithm>
#include <vector>
using namespace std;
class Solution {
public:
vector<vector<int>> reconstructMatrix(int upper, int lower, vector<int>& colsum) {
vector<vector<int>> res;
int two = 0;
int sum = 0;
for (auto i = 0; i < colsum.size(); ++i) {
... |
5bc45e7887cb2ea8cb9885d1375114e9652e3a8a | b371a987ea61c1735c8dbd52c307ac4d6cc331c7 | iampreetsimar/dsa-practice | /16. Challenges - SortingSearching/13. bubbleSort.cpp | C++ | cpp | 490 | no_license | #include <iostream>
using namespace std;
void bubbleSort(int *a, int n) {
for(int i = 0; i < n-1; i++) {
for(int j = 0; j < n - i - 1; j++) {
if(a[j] > a[j+1])
swap(a[j], a[j+1]);
}
}
}
int main() {
// your code goes here
int n;
cin>>n;
int a[n];
... |
1350c7ead53844da2f3da1c81ae916736eba94d6 | 7dc69b850f64be73c238f9d2a4664d527ffef264 | ThePotato97/SoT-SDK | /SDK/SOT_Proposal_OOS_AllAtOnce_Rank05Reward_classes.hpp | C++ | hpp | 774 | no_license | #pragma once
// SOT: Sea of Thieves (1.0) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x4)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass Proposal_OOS_... |
6df7ddfd6f8ec9a763504481e49fb3376615e57b | a7c4b1d55dbafe563bc02e2bc6bc4c909b749762 | whiteibescu/CPP | /_2020_06_29Assignment/_2020_06_29Assignment/middle5.cpp | C++ | cpp | 230 | no_license | #include <iostream>
#include <cstring>
#include <string>
using namespace std;
int main()
{
char word[10];
while (1)
{
cout << "To exit, enter yes : ";
cin.getline(word, 10);
if (strcmp(word, "yes") == 0)
break;
}
} |
c0da00cf469079240540962489454e76c71a830c | 98c7692ae47b504d39743871951220472b5f5626 | jacksimuse/Study_Cpp | /소스.cpp | C++ | cpp | 975 | no_license | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include "cursor.h"
class RandNum
{
private:
int num;
public:
RandNum() { randomize(); }
void Generate() { num = random(100) + 1; }
BOOL Compare(int input) {
if (input == num) {
printf("맞췄습니다.\n");
return TRUE;
}
else if (input > num) {
printf("입력한... |
da700fda53429dc0cc74aff452f5d39a365830ed | 0cfdf9ab3394aca7253d13acd2ac8e1882ee90ae | NVIDIA/caffe | /src/caffe/layers/euclidean_loss_layer.cpp | C++ | cpp | 1,761 | permissive | #include <vector>
#include "caffe/layers/euclidean_loss_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Ftype, typename Btype>
void EuclideanLossLayer<Ftype, Btype>::Reshape(
const vector<Blob*>& bottom, const vector<Blob*>& top) {
LossLayer<Ftype, Btype>::Reshape(bottom,... |
a347ccf2c36c8ef6fd92a5d624850e2b6b5dd241 | 04bbab9ff99af4b91fa8e0b48319d61f0b114137 | Beniko95J/leetcode_new | /7.reverse-integer.cpp | C++ | cpp | 1,166 | no_license | /*
* @lc app=leetcode id=7 lang=cpp
*
* [7] Reverse Integer
*
* https://leetcode.com/problems/reverse-integer/description/
*
* algorithms
* Easy (25.49%)
* Likes: 2427
* Dislikes: 3772
* Total Accepted: 799.3K
* Total Submissions: 3.1M
* Testcase Example: '123'
*
* Given a 32-bit signed integer, r... |
8f15ad195e4364efdb38eed25fe98354194c6591 | 1724ee5d8694a30c33b34ba529c2fb7c0db948a9 | Csineneo/Vivaldi | /chromium/third_party/blink/renderer/bindings/core/v8/custom/v8_message_channel_custom.cc | C++ | cc | 2,995 | permissive | /*
* Copyright (C) 2009 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
6fc1b5228cc8df6fcc4f59600f8b313693065f4a | bface1fb455efddfc733d61daf87b8c10370d91a | dtbinh/UnitFormationAlgorithm | /src/ui/WindowEventHandler.cpp | C++ | cpp | 502 | permissive | #include "ui/WindowEventHandler.hpp"
namespace ufa
{
WindowEventHandler::WindowEventHandler(sf::Window &p_window)
:window_(p_window) { }
WindowEventHandler::~WindowEventHandler()
{
}
void WindowEventHandler::handleEvent(const sf::Event &p_event)
{
switch(p_event.type) {
case sf::Event::Closed:
wind... |
e2e0066af0f267ac854f20dc2fd96c890039ae50 | 8c1fb194c0c287bec9d2e2eb16c846b414e414ba | OjusWiZard/CompetitiveProgramming | /CodeForces/112-A.cpp | C++ | cpp | 399 | no_license | #include <iostream>
#include <cstring>
using namespace std;
int main()
{
char s1[100], s2[100] ;
int res=0 ;
int i ;
cin>>s1>>s2 ;
for( i=strlen(s1) ; i>=0 ; i-- )
{
if( s1[i]>='a' ) s1[i] = s1[i] - 32 ;
if( s2[i]>='a' ) s2[i] = s2[i] - 32 ;
if(s1[i]>s2[i]) res=1... |
8c5e7d07fdb4b48248580ab74612191d5c472dc3 | 502e9a70a13b59092244fbc8bd8f4d4f020d80f3 | jeanlucthumm/Jumper | /Geometry.cpp | C++ | cpp | 3,257 | no_license | #include "Geometry.h"
#include "Window.h"
#include <algorithm>
#include <fstream>
#include <sstream>
#include <iostream>
#include <glm/gtx/transform.hpp>
#include <glm/ext.hpp>
Geometry::Geometry(MeshBank::refID dataID, std::shared_ptr<Shader> shader)
: shader{std::move(shader)}, dataID{dataID},
data... |
0ba94edf03524b52b1d1ea98a86777ac3e1c852a | 293d09f8ea5da28eab5b6621ff596ae4ab420799 | mijara/darkness-engine | /sources/game/Constructor.cpp | C++ | cpp | 1,241 | no_license | #include "Constructor.h"
Room::Room(int x, int y, Room &other) :
x(x),
y(y),
width(other.width),
height(other.height),
dispersion(other.dispersion)
{
}
Room::Room(int width, int height, int r) :
x(0),
y(0),
width(width),
height(height),
... |
3444fa203d1fee9945627eb702c637d5f031c81d | 8c7aabf80ba857453cd09bfe7dbc1bf91adebff6 | 5G-Measurement/PCC-Uspace | /pcc-gradient/sender/src/buffer.cpp | C++ | cpp | 20,013 | permissive | /*****************************************************************************
Copyright (c) 2001 - 2011, The Board of Trustees of the University of Illinois.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
m... |
2bc839266a8a4769fc01b03bfbee372400e83786 | 62d8fc41d65766f99e6efc92b7137972f775a852 | yl3i/ACM | /2015多校/标程+数据(9)/标程/E.cpp | C++ | cpp | 2,129 | no_license | #include <cstdlib>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <fstream>
#include <numeric>
#include <ioman... |
306a3763b9fdc42594a9b56f44c8c908e563c088 | 6eaf9d8c1fc5c1c1c9f2b61b89882119c52f20ec | adrianer/VTK | /Rendering/OpenGL/vtkOpenGLState.cxx | C++ | cxx | 48,481 | permissive | #include "vtkOpenGLState.h"
#include "vtkOpenGLRenderWindow.h"
#include "vtkIndent.h"
#include "vtkOpenGLExtensionManager.h"
const char *ValueToString(GLint value,
int valueTable[],
const char *stringTable[],
int tableSize);
vtkOpenGLState:... |
a772090f0e03e652ac6a03aa351f3cf5867d548d | 8807e9493de5e0a913d34978999b43058f348767 | Betxoin/Betxoin | /src/wallet_ismine.cpp | C++ | cpp | 3,071 | permissive | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin developers
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2018 The BETXOIN Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.... |
1d2e994ab9b4729019822c2e3790293092df9460 | e89fe3502161d49ab17385a754fd0ef525ce6afd | VectorL1990/CollisionWarBackup | /Plugins/KBEnginePlugins/Source/KBEnginePlugins/Engine/EntityCallCommunicateStationBase.cpp | C++ | cpp | 5,855 | no_license | #include "EntityCallCommunicateStationBase.h"
#include "Bundle.h"
void EntityBaseEntityCall_CommunicateStationBase::reqExitBattle()
{
Bundle* pBundle = newCall("reqExitBattle");
if(!pBundle)
return;
sendCall(NULL);
}
void EntityBaseEntityCall_CommunicateStationBase::reqLevelInfos(const FString& arg1, const FStr... |
b5c7f243c1bce275f22babf9a82c8cece6519cbe | 63896b9872a0e5e3d5e61ffc182b5caf5e7468f9 | ccharly/constregex | /src/mseq/filter.hpp | C++ | hpp | 1,215 | permissive | #ifndef MSEQ_FILTER_HPP__
#define MSEQ_FILTER_HPP__
#include "seq.hpp"
#include "push.hpp"
namespace mseq {
namespace filter_st {
template <bool Tcond, typename Tthen, typename Telse>
struct if_else {
typedef typename Tthen::type type;
};
template <typename Tthen, ty... |
6ce151dc5dee1faae9721d20e0e23e2f3dfd72e9 | ce8adc365ae2cc99096f6bba9927ecd28fe5359c | NetBSD/pkgsrc | /games/ccgo/patches/patch-igs_game.hh | C++ | hh | 280 | no_license | $NetBSD: patch-igs_game.hh,v 1.1 2016/12/17 23:22:30 joerg Exp $
--- igs/game.hh.orig 2015-11-20 13:39:00.000000000 +0000
+++ igs/game.hh
@@ -11,7 +11,6 @@
#define IGS_GAME_HH
#include "player.hh"
#include <string>
-#include <sigc++/object.h>
namespace igs
{
class Game :
|
5df0bb572ba0f05e0b88ffa50460632ccf0dc96a | f4cedfc9ded5c3aab8130f8a2c3e220807d1322a | gotomypc/videoInput | /videoInputSrcAndDemos/libs/videoInput/videoInput.cpp | C++ | cpp | 75,302 | no_license | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, ... |
ba162f8495a4da8bca79e29f02975c29370a896a | 2857e9e2bcc63253e00151b10190c8cb0cb285aa | ludovicadelpop/MultiRate | /src/HyperbolicEquationRusanovFlux/HyperbolicEquationRusanovFlux.cpp | C++ | cpp | 5,828 | no_license | /*
* HyperbolicEquationRusanovFlux.cpp
*
* Created on: 19/gen/2016
* Author: ludovicadelpopolo
*/
#include "HyperbolicEquationRusanovFlux.h"
HyperbolicEquationRusanovFlux::HyperbolicEquationRusanovFlux() {
this->flux_func = NULL;
this->bc_func = NULL;
Nx = 200;
x0 = 0;
xL = 1;
}
HyperbolicEquationRu... |
d94ac99dd786d270cdacf7573569613850b03125 | 6e0953300de0e1e3b8f5afb2f3848bb545a33a9b | cjsmeele/matig | /src/environment.hh | C++ | hh | 961 | permissive | /**
* \file
* \brief Environment / symbol scope.
* \author Chris Smeele
* \copyright Copyright (c) 2016, Chris Smeele
* \license MIT, see LICENSE.
*/
#pragma once
#include "common.hh"
#include <map>
class Expr;
typedef std::shared_ptr<Expr> Eptr;
class Func;
typedef std::shared_ptr<Func> Fptr;
class ... |
02cb7a7026e2698cafbf4e895f7d02b0f6ca9af0 | 5cba309d41ac0c178fa0bcd0b3de7e63c760bc86 | junxzm1990/ASAN-- | /testcases/juliet_test_suite/testcases/CWE762_Mismatched_Memory_Management_Routines/s07/CWE762_Mismatched_Memory_Management_Routines__new_free_int_68a.cpp | C++ | cpp | 2,767 | no_license | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_free_int_68a.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_free.label.xml
Template File: sources-sinks-68a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routine... |
4792ff1331cb47900e371310bc3d805508341dcc | 3fca26462d002f2eaf34ad43ee688fdd14c6fd44 | cha63506/kocmoc-core | /src/renderer/Material.cpp | C++ | cpp | 503 | no_license | #include <kocmoc-core/renderer/Material.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <kocmoc-core/renderer/Shader.hpp>
using namespace kocmoc::core;
using namespace renderer;
Material::Material(glm::vec3 _diffuseColour)
: diffuseColour(_diffuseColour)
{
//
}
void Material::primeShader(Shader *shader)
{
shader-... |
4aa4f075b22f61d621c221a8d2f2a29dea8b54c6 | 4de3a286b47964010c6c10cf659bc9b93a970ffc | nguyenqphan/Ball | /Temp/il2cppOutput/il2cppOutput/UnityClassRegistration.cpp | C++ | cpp | 8,639 | no_license | struct ClassRegistrationContext;
void InvokeRegisterStaticallyLinkedModuleClasses(ClassRegistrationContext& context)
{
// Do nothing (we're in stripping mode)
}
void RegisterStaticallyLinkedModulesGranular()
{
void RegisterModule_Animation();
RegisterModule_Animation();
void RegisterModule_Audio();
RegisterModul... |
4a3044b7e405cac29b989a534f8d8c62a93c862e | 41cd2c87444b3dee999fb478aba223c90b37a1ee | IharY/CPP-LEV1 | /Lessons 01-06/Lesson_06/Lesson_06_HW.cpp | C++ | cpp | 606 | no_license | /*
даны 2 натуральных числа a и b
необходимо найти сумму чисел от a до b включительно
*/
//#include "stdafx.h"
#include <iostream>
using namespace std;
//int _tmain(int argc, _TCHAR* aggv[])
int main()
{
setlocale(LC_ALL, "Russian");
cout << "Введитие два целых числа (a и b)\n";
int a, b, sum = 0;
cin >> a >> b... |
5d00de76344f0a16b553bddcf24a19492a7d1d56 | a96e986964b159d0ee960349b8ae3fa79720c127 | Wepeel/Barak-Gonen-OS | /Chapter 5/Ex5_3/Source.cpp | C++ | cpp | 1,415 | no_license | #include <Windows.h>
#include <cstdio>
#define EXE_FILENAME "SinglePhilosopher\\Debug\\SinglePhilosopher.exe"
#define NUM_PROCESSES 5
constexpr INT size = 48; // length is increased by 3:
// space character- 1 byte,
// one digit number- 1 byte,
// string NULL terminator- 1 byte
constexpr INT length_mutex_na... |
a5f71682cec903488def7233d71e9aabe93cdf85 | 27e5300d11bc2e63a351dccba3171362f5124bc8 | MeeSeongIm/c_cpp_samples | /overload_op_nonmem_fns_ratl.cpp | C++ | cpp | 2,855 | no_license | // overload_op_nonmem_fns_ratl.cpp
// overloading operators with nonmember functions
// manipulating rational numbers.
#include <iostream>
class Rational {
int _n;
int _d;
public:
Rational ( int numerator = 0, int denominator = 1 ) : _n(numerator), _d(denominator) {};
Rational ( const Rational & rhs ) : _n(rhs._... |
01e227e0a7a61b26f2cbe6e21898437848c75a47 | bcfe240915d62b1bb286c480d12f7019ee5739eb | aayushvats/CPP_AllKindsOfStuff | /XII/Assignments/1. Classes and Objects/Q10.CPP | C++ | cpp | 1,201 | no_license | #include<iostream.h>
#include<conio.h>
#include<stdio.h>
class Batsman
{
char F_Name[30];
char L_Name[30];
int Runs_made,fours,sixes;
public:
void initial()
{
cout<<endl<<"\t Enter First Name: ";
gets(F_Name);
cout<<"\t Enter Last Name: ";
gets(L_Name);
cout<<"\t Enter The Runs Made: ";
cin... |
cfc28943c85621ba8d10254b55a8b374a4797b65 | 9a387526ac2b0982aa4c931a9d92d98b08fb4f98 | typhoonzero/Paddle | /paddle/framework/tensor_test.cc | C++ | cc | 7,685 | permissive | // Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.
//
// 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 ... |
c39796a3cb163bfcfe74ee541c2af2a86f8b5fc6 | 803eeb05055f30c0951cf87c8d4d5c99b8532052 | BarsukovDmitry/antitest | /src/UTestMenu.cpp | C++ | cpp | 1,527 | no_license | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "UTestMenu.h"
#include "UTemy.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFTestMenu *FTestMenu;
extern boo... |
2d2c12aac7f48a7e6d6e1ffcc4732df4083df1f8 | 14e85d7afb826c588cbbe702b129dfe695dc37cb | yuequal/iOS-FFMpeg-VideoPlayer | /ffmpeg_demo/iOS-AVVideoPlayer/AVDecodeThread.cpp | C++ | cpp | 1,795 | no_license | //
// AVDecodeThread.cpp
// ffmpeg_demo
//
// Created by yuxueqing on 2018/9/19.
// Copyright © 2018年 yuxueqing. All rights reserved.
//
#include "AVDecodeThread.hpp"
namespace AVVideoPlayer {
AVDecodeThread::AVDecodeThread(const AVDecodePtr& decodePtr, const int& maxSize)
{
m_decode = decodePtr;
max... |
ee9bd58cc080375acb3050383918a4db3fb3f0fb | 0c509288a51560f9a204edb3628122ccbf79866b | Esseh/Misc | /Parallel Processing/Parallel Processing/parallelsum.cpp | C++ | cpp | 719 | no_license | bool done = false;
int core_difference = 1;
int core_difference_lookahead = core_difference+1
int sum = my_value;
// Continue so long as there will be processors to work with in the future.
while(core_difference_lookahead <= p && !done){
// Check if if this is the last action to be performed by this core.
if(... |
50fbe4f147e904cd235373e3d041680aa8ef9b99 | ecccfe240d2e360f83f6b855247eb053155490a8 | roussukke/Yorozuya | /library/ATF/_limit_item_infoRegister.hpp | C++ | hpp | 691 | permissive | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_limit_item_infoDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Register
{
class _limit_item_infoRegister : public IRe... |
11ad6b114091b9d14f6fcf70e1151a12b908568f | 4524ce0f21b4d6a949e194f2fc8a198cfb345d8a | araujojr82/GEMS_Project1 | /STD_MAP/main.cpp | C++ | cpp | 10,022 | no_license | #include "cPerson.h"
#include <iostream>
#include "cSTD_Map.h"
cSTD_Map* theConteiner = new cSTD_Map();
int numberOfPeople = 1000;
void printVector( std::vector<sPerson*> &theVector )
{
std::cout << "ID\tage\thealth\tlocation\tfirst and last name" << std::endl;
for( int i = 0; i != theVector.size(); i++ )
{
std... |
a4c441ac2d1568e1e883d434ff6a4e0b6f0a65f7 | f8a18cc7b0323a4d86f1b68d8099212ea9a29e5e | runner42195/oneflow | /oneflow/ir/lib/OneFlow/Passes.cpp | C++ | cpp | 11,136 | permissive | /*
Copyright 2020 The OneFlow 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 agre... |
9079d0967daf018a7e915bf7b870b2527f617d9f | 5f4728a9e064150eb8092e204033f29f653f7fcf | HSHtime/myduilib1 | /duilib-master3/DuiLib/Utils/Utils.cpp | C++ | cpp | 19,827 | permissive | #include "..\StdAfx.h"
#include "Utils.h"
namespace DuiLib
{
/////////////////////////////////////////////////////////////////////////////////////
//
//
CPoint::CPoint()
{
x = y = 0;
}
CPoint::CPoint(const POINT& src)
{
x = src.x;
y = src.y;
}
CPoint::CPoint(int _x, int _y)
{
x = _x;
y = _y;
... |
e3b40b3906cd504f327a5a3c8ad738b32c94ddf2 | 5b921fbca4de7ad2ecdcb6c3f0a1d59c486d1f7e | Chaste/Chaste | /heart/test/bidomain/TestBidomainHeart.hpp | C++ | hpp | 4,125 | permissive | /*
Copyright (c) 2005-2023, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
f3be1104e4f5aa96c83cda783ee2ab08ebc6f77c | d3111b62d2cf97f3062cf4afdc136dc1e10068a7 | Daviswww/Submissions-by-UVa-etc | /volume126/UVA 12694 - [Greedy]Meeting Room Arrangement.cpp | C++ | cpp | 652 | no_license | /*
https://uva.onlinejudge.org/external/126/12694.pdf
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
for(int k = 0; k < n; k++)
{
int x, y, ary[15], sum = 0, day = 0;
for(int i = 0; i < 15; i++)
{
ary[i] = 11;
}
while(cin >> x >> y)
{
if(x == ... |
d714b32b3eeac33db958a4187c4e2871d6e40f7b | fd20348ae4608adc78afdcf9a633bb69993d538a | pliu/Cpp | /Miscellaneous/event_test.cpp | C++ | cpp | 539 | no_license | #include <event2/event.h>
#include <event2/event_struct.h>
static uint32_t c = 0;
void cb_func(evutil_socket_t fd, short what, void *arg)
{
c++;
printf("tick %d\n", c);
}
void run(struct event_base *base)
{
struct timeval one_sec = { 1, 0 };
struct event *ev;
ev = event_new(base, -1, EV_PERSIST, ... |
cdbf2c413cd920d5a3e854a65da6e76589ebefe3 | 2ae27b8b1dfa2e53c340c931def73df40a75ec36 | sousav/cpp_arcade | /lib/OpenGL/includes/IGLMoveable.hpp | C++ | hpp | 628 | no_license | //
// IGLMoveable.hpp for in /Users/vicostudio/Documents/Shared Folder/TEK2/CPP/cpp_arcade/lib/OpenGL/includes/
//
// Made by Sousa Victor
// Login <sousa_v@epitech.eu>
//
// Started on Sun Apr 9 03:22:12 2017 Sousa Victor
// Last update Sun Apr 9 03:22:46 2017 Sousa Victor
//
#ifndef IGLMOVEABLE_HPP_
#define IG... |
92a1bef838ad7af57e6c75ca3070c33bf00e6649 | 8667a2cf0005a4c2a0b37bc6fe31eadec33e2bff | elyo9381/practice | /boj/boj_15654_Back,recur_N&M6.cpp | C++ | cpp | 1,358 | no_license | #include <bits/stdc++.h>
#define endl "\n"
#define MX 10000
using namespace std;
typedef long long ll;
/*
*/
int n,m;
int input[MX] = {};
void func(int* ret, bool* isused, int k,int Idx){ // 현재 k개까지 수를 택했음.
if( k == m ){ // m개를 모두 택했으면
for(int i = 0; i < m; i++)
cout << ret[i] << ' '; ... |
5713888d714b9b26a6b05cbd86039343b66b1a2c | d62658087804a2f248906762077d2cdeeea28f07 | zmeeks/leet_code | /leet_medium_c++/leet_593/leet_593a.cpp | C++ | cpp | 2,771 | no_license | class Solution {
public:
bool validSquare(vector<int>& p1, vector<int>& p2, vector<int>& p3, vector<int>& p4) {
double mini, maxi;
if(p1 == p2 || p1 == p3 || p1 == p4) return false;
if(p2 == p3 || p2 == p4 || p3 == p4) return false;
mini = min( sqrt(pow(p1[0] - p2[0], 2) + p... |
d413be85147074c85525be0508ee8cd68d563b1c | 6acd43032f3739b7fed0cbd81502a6cde8e6aae9 | blank-27/C-coding | /G_2_Sort.cpp | C++ | cpp | 5,777 | no_license | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename... T>
void see(T &...args) { ((cin >> args), ...); }
template <typename... T>
void put(T &&..... |
af71faa5a3190a26f8a5d39a6701cab7124e6e27 | 0ea09db5594af2c33918bf508dd5e0750d55da27 | yury-fedorov/AoC | /AoC22/cpp/day08.cpp | C++ | cpp | 2,782 | permissive | #include "absl/container/flat_hash_map.h"
#include "common.h"
namespace day08 {
bool is_border(int x, int y, int max_x, int max_y) {
return x == 0 || y == 0 || (x == max_x - 1) || (y == max_y - 1);
};
} // namespace day08
TEST(AoC22, Day08) {
const auto data = ReadData("08");
using Point = std::pair<int, int>;
... |
064cd96037eba05e222490216619822798615624 | 10989c8e9079b8ee3d48fb9d8d9a1b8d3ed03069 | SourceEnginePlayground/source-sdk-2004 | /src_mod/public/bumpvects.cpp | C++ | cpp | 1,643 | no_license | //========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $Date: $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//===========================================... |
cbd3e334890c4e6ac642542503343bfdee7f16fb | 94e084e24ee47650bc26400ac5460a1018e3c3bc | amirblum/Game-Programming-Course | /Superhero/src/Controller.cpp | C++ | cpp | 4,755 | permissive | //
// Controller.cpp
// CGP-Ex1
//
// Created by Amir Blum on 3/17/15.
// Copyright (c) 2015 Amir Blum. All rights reserved.
//
#include "Controller.h"
#include <iostream>
#define PLAYER_HEIGHT (1.0f)
#define PLAYER_CROUCH_HEIGHT (0.5f)
#define MOVE_SPEED (4.0f)
#define MOVE_BOOST (5.5);
#define CROUCH_SPEED (0.4... |
1c1269463b2b5f09d5fc5a728263f158350772f2 | 81378dcdd801727d11bd1b72393d12140048859a | bubbleinwater/cpp-ppp | /chapter11/code_from_text/main.cpp | C++ | cpp | 638 | no_license | #include"Punct_stream.h"
int main()
//given text input, produce a sorted list of all words in that text
//ignore punctuation and case differences
//eliminate duplicates from the output
{
Punct_stream ps{ cin };
ps.whitespace(";:,.?!()\"{}<>/&$@#%^*|~");//note \" means " in string
ps.case_sensitive(false);
cout <<... |
015de5b60f17f2bb930a544b08bb08064d1d8461 | 712aea8e186604a9298e057d266755772845bed3 | gendestry/Bomber | /Level.cpp | C++ | cpp | 2,744 | no_license | #include "Level.h"
#include "Bomb.h"
#include "Explosion.h"
#include <SFML/Graphics.hpp>
#include <fstream>
#include <sstream>
#include <string>
Level::Level(int tilesize) : tilesize(tilesize) {
player = new Player(sf::Vector2f(48,48), tilesize, EntityType::PLAYER);
entities.push_back(player);
}
Level:... |
606ba52fddd0dbec71c19aa8b7c84f3b871ae657 | a97a9aaceb1917cffed5dee61738d318cbeab6ad | jnschulze/flutter-engine | /shell/platform/embedder/pixel_formats.cc | C++ | cc | 1,223 | permissive | // Copyright 2013 The Flutter 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 "flutter/shell/platform/embedder/pixel_formats.h"
#include "flutter/shell/platform/embedder/embedder.h"
std::optional<SkColorType> getSkColorType... |
ec383357289cd1820085c7c1e17b61a2ea5fd452 | 1cfa736e2d2d62f7a7b9316c2d74d4a0e5916abc | Leila4988/Algorithm_Combat | /C3_入门模拟/查找元素/B1004.cpp | C++ | cpp | 810 | no_license | #include <cstdio>
using namespace std;
struct student{
char name[15];
char id[15];
int score;
}max, min, temp;
//由于题目要求只需输出成绩最高和最低的两组,并且输出格式上也严格一致,
//所以可以只保留要输出的两组,不需要保留中间计算所需的所有数组
int main(){
max.score = -1;
min.score = 101;
int n;
scanf("%d", &n);
for(int i = 0; i < n; i++){
... |
01805006a43879fe459e08534814bafa542ac400 | b227caeb26425340e585ce22cbc7251ea1202a9f | KqSMea8/sstd_library | /sstd_boost/sstd/boost/units/systems/si/capacitance.hpp | C++ | hpp | 890 | permissive | // Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2003-2008 Matthias Christian Schabel
// Copyright (C) 2008 Steven Watanabe
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.tx... |
d04ee652af02824b8038ee77cf2030448a1b5b13 | 4a008def654de3f8178def998cb6e06a4d1435a3 | Hengle/DiligentCore | /Graphics/GraphicsEngineOpenGL/src/TextureCube_GL.cpp | C++ | cpp | 14,113 | permissive | /*
* Copyright 2019-2021 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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.... |
32e7b8896e8ffa34e1035458c75d0d2475bff54e | 22f2668e7440da13ee60b4aa4da7c765af95ee8c | mbowers98/MatthewBowers-CSC-5-Summer-2018 | /Book/MidTerm/Number to Words/main.cpp | C++ | cpp | 3,129 | no_license | /*
* File: main.cpp
* Author: YOUR NAME HERE
* Created on DATE AND TIME HERE
* Purpose: Convert a number to English check amount
*/
//System Libraries Here
#include <iostream>
using namespace std;
//User Libraries Here
//Global Constants Only, No Global Variables
//Like PI, e, Gravity, or conversions
//Fun... |
652b1d85da481b7d807dfab3da74fc066b98a52e | 078ec2d371fb12fadb84b136b7cd28171573ae26 | timolinn/zircon | /system/ulib/fidl/decoding.cpp | C++ | cpp | 19,246 | permissive | // Copyright 2017 The Fuchsia 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 <fidl/coding.h>
#include <stdalign.h>
#include <stdint.h>
#include <stdlib.h>
#include <fidl/internal.h>
#include <zircon/assert.h>
#include <zi... |
b0e3c535cc6d24e187f582e106ad97ba243500ae | e1c5c33e055d742bce9a33746367bbae5b2a412d | saengphetkevin/osquery | /osquery/main/run.cpp | C++ | cpp | 1,832 | permissive | /*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <e... |
d607c464a553ba8dba5674d92a97f5f6c3bafb42 | 454a8b365c3bc87bfe60c85ef8395a50502e5aff | lsgxeva/clang | /test/SemaCXX/typo-correction-delayed.cpp | C++ | cpp | 6,478 | permissive | // RUN: %clang_cc1 -fsyntax-only -verify -Wno-c++11-extensions %s
struct A {};
struct B {};
struct D {
A fizbin; // expected-note 2 {{declared here}}
A foobar; // expected-note 2 {{declared here}}
B roxbin; // expected-note 2 {{declared here}}
B toobad; // expected-note 2 {{declared here}}
void BooHoo();... |
eba3fa877ac65712480dc81885f77065b76770b6 | 55e662f2d4690a41b0af1eac4cefe4748f5fe11b | foolcodemonkey/chromium | /chrome/browser/ui/app_list/app_list_syncable_service.cc | C++ | cc | 49,450 | permissive | // Copyright 2013 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/app_list_syncable_service.h"
#include <algorithm>
#include <utility>
#include <vector>
#include "base/bind.h"
#incl... |
966466174cb30c88d3b2fb47b11d37fae7c8d135 | 87868854052587129a9bd8e446757cf0b1abdccb | theaustinthompson/maryjane | /build/Android/Preview1/app/src/main/jni/Fuse.Internal.Drawing.g.cpp | C++ | cpp | 18,897 | no_license | // This file was generated based on '(multiple files)'.
// WARNING: Changes might be lost if you edit this file directly.
#include <_root.DashedSolidColor.h>
#include <_root.FuseControls_bundle.h>
#include <Fuse.DrawContext.h>
#include <Fuse.Drawing.Brush.h>
#include <Fuse.Drawing.DynamicBrush.h>
#include <Fuse.Drawin... |
fe31dbba3f352cfc2c4554afea67b5be7d9c4a50 | 840b899f6132d10edaa8a6b7fbeded4df08f03b3 | shen9175/QueryParser | /OrQuery.cpp | C++ | cpp | 348 | no_license | #include <memory>
#include <set>
#include "OrQuery.h"
QueryResult OrQuery::eval(const TextQuery& text) const
{
auto left=lhs.eval(text), right=rhs.eval(text);
auto ret_lines=std::make_shared<std::set<line_no>>(left.begin(),left.end());
ret_lines->insert(right.begin(),right.end());
return QueryResult(rep(),ret_... |
28d7a6f47c9b5b299f676a06bc341f3eeae08921 | dc3126895e7a734a9fc85c9f10d68d9167bd6ba8 | niuxu18/logTracker-old | /second/download/collectd/gumtree/collectd_repos_function_585_collectd-5.6.1.cpp | C++ | cpp | 587 | no_license | static int sensu_send_msg(struct sensu_host *host, const char *msg) /* {{{ */
{
int status = 0;
size_t buffer_len;
status = sensu_connect(host);
if (status != 0)
return status;
buffer_len = strlen(msg);
status = (int) swrite(host->s, msg, buffer_len);
sensu_close_socket(host);
if (status != 0) {
char e... |
dde36d190cee6696e3f452dd086c774894340f84 | bfb51342a37a0d223cda031e291d125493296bc9 | BugiMgl/cyder | /src/miner.cpp | C++ | cpp | 20,040 | permissive | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013 The NovaCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "miner.h"... |
8dd1b256f61abb55cd05fc228d8241e5ca906877 | b5ea7ee7e3c74b8ae1122500810157efe36bc295 | blueprintmrk/hhvm | /hphp/runtime/base/concurrent-shared-store.cpp | C++ | cpp | 25,317 | permissive | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
4f0dd127961137ab0e3379c686bba2d33f10aee6 | a180000a27c1c541a781e5fdfd3f722cd16c6d3a | Crasader/ee-x | /src/ee/ironsource/IronSourceBridge.hpp | C++ | hpp | 1,951 | permissive | #ifndef EE_X_IRON_SOURCE_BRIDGE_HPP
#define EE_X_IRON_SOURCE_BRIDGE_HPP
#include <map>
#include <memory>
#include <string>
#include "ee/IronSourceFwd.hpp"
namespace ee {
namespace ironsource {
class IronSource final {
private:
using Self = IronSource;
public:
IronSource();
~IronSource();
explicit I... |
e4225549049c0e64dcff31a7a8571a0408b6d24d | bb8c06da6ede2272a48aaeb7d2b6a6d9d81ab4ba | random-rage/cmip_lab5 | /lab5/lab5.cpp | C++ | cpp | 2,335 | no_license | // lab5.cpp: определяет точку входа для консольного приложения.
//
#include <stdio.h>
#include "bignum.h"
#include "rsa.h"
#define STR_LEN 1024
#define MSG_LEN 256
void test_prime_num_gen()
{
mpi p;
mpi_init(&p);
clock_t start, end;
float diff;
srand(time(0));
for (size_t i = 256; i <= 2048; i <<= 1)
{
s... |
6845e230c314bede9d53d58d2bc071b7199531e9 | c87f915e31b8a2ed0ea35360df1e3125c4c114e2 | afmejia/cppInAction | /ObjectsAndScopes/embedded.cpp | C++ | cpp | 681 | no_license | #include <iostream>
class Matter {
public:
Matter(int id) : _identifier(id) {
std::cout << " Matter for " << _identifier << " created\n";
}
~Matter() { std::cout << " Matter in " << _identifier << " annihilated\n"; }
private:
const int _identifier;
};
class World {
public:
World(int id)
: _ident... |
0158000e4d0cab38b54701217a0802169b3f73f3 | 16ccd03e14602fe8a03488f79bd77ca706a7f0de | blueson/KingDom | /Classes/SlotMenu.cpp | C++ | cpp | 6,292 | no_license | //
// SlotMenu.cpp
// KingDom
//
// Created by gjmac-2 on 15/11/23.
//
//
#include "SlotMenu.h"
#include "GameView.h"
#define NEWGAME 7
#define LABEL_HINT 8
SlotMenu* SlotMenu::createMenu(int num)
{
auto slotMenu = new SlotMenu();
if (slotMenu && slotMenu->initWithNum(num)) {
slotMenu->autorelease... |
c18697d6851a833f3a85f589b447bc28a2ccda88 | e252aaf0c47b29c9e00a4cef2a87673ee3fec6f9 | bazhi/SG | /Source/SG/Interface/GSControllerInterface.cpp | C++ | cpp | 515 | permissive |
#include "GSControllerInterface.h"
// Add default functionality here for any IGSControllerInterface functions that are not pure virtual.
ACharacter* IGSControllerInterface::GetDebugInfo(bool& bDebugView, bool& bShowHUD, bool& bShowTraces, bool& bShowDebugShapes, bool& bShowLayerColors, bool& bSlomo, bool& bShowChar... |
698ad108baf2f604e56f918ad0233a76bd378836 | 6e81da86d314c41fad43d17f73bce2c2fa55f566 | sebastianlettner/a3c-cpp | /a3c/cc/predictor/predictor_test.cc | C++ | cc | 535 | no_license | // Testing the predictor
#include "gtest/gtest.h"
#include "a3c/cc/predictor/predictor.h"
TEST(Predictor, TestConfig) {
// Testing the Configuration values.
auto predictor = Predictor(
1, "/Users/sebastianlettner/GoogleDrive/MachineLearning/a3c-framework/a3c/cc/predictor/predictor.ini"
);
auto... |
b90b8f04174e92dd87ae602716a21ab46cfb5db5 | d59d5c29c9c503d2d666977ff0b25751f50394b5 | chrmhoffmann/android_kernel_fp_FP1 | /mediatek/platform/mt6589/hardware/camera/core/featureio/pipe/aaa/isp_mgr/isp_debug.cpp | C++ | cpp | 36,368 | no_license | #define LOG_TAG "isp_debug"
#ifndef ENABLE_MY_LOG
#define ENABLE_MY_LOG (1)
#endif
#include <cutils/properties.h>
#include <aaa_types.h>
#include <aaa_error_code.h>
#include <aaa_log.h>
#include <camera_custom_nvram.h>
#include <awb_feature.h>
#include <awb_param.h>
#include <ae_feature.h>
#include <ae_para... |
84925afcb63df914a6fd50ef7e16184311c500dc | 660220f7454eab139f8eb9facbe8947b268abcf7 | RalfKornmannEnvision/corert | /src/Native/Runtime/unix/UnwindHelpers.cpp | C++ | cpp | 22,699 | permissive | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "common.h"
#include "daccess.h"
#include "rhassert.h"
#define UNW_STEP_SUCCESS 1
#define UNW_STEP_END 0
#ifdef __APPLE__
#include <mach-o/getsect.h>
#endif
#include <... |
f539b4d5f4aee87ab0e97bf556534c93ca8724d7 | 5fc0cc61c33ba5cea55386ee1b306177373fb49b | rtohid/blaze | /blazetest/src/mathtest/dmatsmatsub/MHbMIa.cpp | C++ | cpp | 3,980 | permissive | //=================================================================================================
/*!
// \file src/mathtest/dmatsmatsub/MHbMIa.cpp
// \brief Source file for the MHbMIa dense matrix/sparse matrix subtraction math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This fi... |
847aaa4f6e9289aefee9ebd1f46ceddd11875a54 | b8a3cba45638d43ff727c0b1de828c5794536b7b | x-sheep/puzzles | /PuzzleModern.Phone/PuzzleKeyboard.xaml.cpp | C++ | cpp | 4,952 | permissive | //
// PuzzleKeyboard.xaml.cpp
// Implementation of the PuzzleKeyboard class
//
#include "pch.h"
#include "PuzzleKeyboard.xaml.h"
using namespace PuzzleModern::Phone;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
us... |
37d1a795bfd6b889d2397d046cba91b5145b4fb5 | 0a52eed04821a684a897d48dc9d893261a60a691 | VRGroupRWTH/Zytoskelett | /Plugins/CSVImport/Source/CSVImport/Private/Cell.cpp | C++ | cpp | 1,438 | permissive | // Fill out your copyright notice in the Description page of Project Settings.
#include "Cell.h"
#include "Engine/World.h"
#include "UObject/ConstructorHelpers.h"
#include "UObject/UObjectGlobals.h"
UCell::UCell(UFilament* filament)
:Super()
{}
UCell::UCell(const FObjectInitializer& objectInitializer)
: Super(ob... |
4692d94fc2c920ef8a24c0cfffb6046f71213ad8 | 592b2445fe5b880b238f84afaa19b80643a68e3b | varunjain4700/Competitive-Programming | /solved/A_K_th_Largest_Value.cpp | C++ | cpp | 1,284 | no_license | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define ub upper_bound
#define lb lower_bound
#define endl "\n"
#define mod 1000000007
#define rep(i, n) for (int i = 0; i < n; i++)
#define repr(i, n) for (int i = n - 1; i >= 0; i--)
void solve()
{
int n,... |
b869bd20b1d5887bc9c9d9507759090b192c0642 | e86f8b8785bdc0dccf4ff21d0f54d89eadb50cc6 | OuluLinux/pedigree | /src/system/kernel/machine/x86_common/Apic.cc | C++ | cc | 1,459 | permissive | /*
* Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "A... |
16ec7887d81bc526a0dea2c836b0018ae3e50eb0 | 3462205b22c6a78cc2775544dd841b7c8d6342b8 | GitMylou/omim | /routing/routing_tests/restriction_test.cpp | C++ | cpp | 49,028 | permissive | #include "testing/testing.hpp"
#include "routing/routing_tests/index_graph_tools.hpp"
#include "routing/geometry.hpp"
#include "routing/restriction_loader.hpp"
#include "geometry/point2d.hpp"
#include <memory>
#include <vector>
namespace routing_test
{
using namespace routing;
// Finis... |
abf8fb05296760dcec826a95506a6994134415a1 | 0ff5681d11a9035124228be6d76924f1adc61a6d | towhid1zaman/Problem__Solving | /codeforces/1373/A.cpp | C++ | cpp | 1,211 | no_license |
// </> : towhid1zaman
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair< int, int > pii;
typedef vector<pii>vip;
typedef pair< pii, int > ppi;
#define fill(a,b) memset(a,b,sizeof(a))
#define all(v) (v).begin(),(v).end()
#define sp(k) cout<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.