blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
060373b3ee4890570513dba1e860c15d5b81ee9b | aacdd7f3ba3e68db680b282f8a529cff4839520b | /src/robot/Frame.cpp | dd1f60dff785bd5ea90a932ec7bcb76a4b5ae56d | [
"BSD-3-Clause"
] | permissive | jrl-umi3218/tvm | aa6ea9a2c367e993c375f5a8acd4e8dfe38a9487 | d3fdb0e4fce11df7642f00c2b230ff11c8322c7c | refs/heads/master | 2023-07-20T20:48:03.741249 | 2023-07-12T05:20:59 | 2023-07-12T05:20:59 | 162,399,400 | 24 | 10 | BSD-3-Clause | 2023-07-14T08:54:19 | 2018-12-19T07:30:06 | C++ | UTF-8 | C++ | false | false | 2,588 | cpp | Frame.cpp | /** Copyright 2017-2020 CNRS-AIST JRL and CNRS-UM LIRMM */
#include <tvm/robot/Frame.h>
#include <tvm/Robot.h>
namespace
{
Eigen::Matrix3d hat(const Eigen::Vector3d & v)
{
Eigen::Matrix3d ret;
ret << 0., -v.z(), v.y(), v.z(), 0., -v.x(), -v.y(), v.x(), 0.;
return ret;
}
} // namespace
namespace tvm
{
namespa... |
385c3c9f4807ba9aedc743d5d7069c7756bcdcf7 | 6fb0a9730e5e43182fb252512f0be0f77dc7f503 | /src/CommandError.cpp | 5d6d9b67d6106f74d06efd8fee71c2fe24c9d16b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | eried/SimpleCLI | 47c0805a38abb20c1889f4a11fa63c2531879e32 | f628eb8a19e176bb41a9435a7903a122785a9e97 | refs/heads/master | 2022-12-20T20:19:31.126231 | 2020-09-30T14:41:17 | 2020-09-30T14:41:17 | 299,949,463 | 1 | 0 | MIT | 2020-09-30T14:38:43 | 2020-09-30T14:38:43 | null | UTF-8 | C++ | false | false | 5,486 | cpp | CommandError.cpp | /*
Copyright (c) 2019 Stefan Kremser
This software is licensed under the MIT License. See the license file for details.
Source: github.com/spacehuhn/SimpleCLI
*/
#include "CommandError.h"
extern "C" {
#include "c/cmd_error.h" // cmd_error_create, cmd_error_destroy
}
CommandError::CommandError(cmd_error* ... |
fd7afd15f3f48417019c2d11c65d03006191251a | 3364697d5507fc120c38b491c88b7d454d039b20 | /FileSharing/filesystem.cpp | 1c65ee34d2b14fc3a0a54604b3fc95b7fb97a7c1 | [] | no_license | andrei-datcu/-homework-IP-File-Sharing-QT | acd98bd120bdfc31c04b57d2c87d1040201e2e59 | 9216c41d2a5f44595234ec1b14a595acef6a8a51 | refs/heads/master | 2021-03-12T22:57:10.292830 | 2014-05-16T21:43:05 | 2014-05-16T21:43:05 | 30,667,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,775 | cpp | filesystem.cpp | #include "filesystem.h"
FileSystem::FileSystem()
{
nrFiles = 0;
fileList = new QJsonObject();
fileList->insert("files", QJsonArray());
fileList->insert("dirName", QString("root"));
}
void FileSystem::addFile(const QString &file, const QString &relativePath)
{
QJsonObject newFile, newDir, *temp = fileList;
QF... |
d1f975b01e08a0540b93e1803346bff8e4aa5a2d | 81b342a6e03dc924dc4ef924e2d6402effbbeecd | /project/source/threecpp/material/Material.h | d26d3e7384019cef31adb97230cbd291192b3653 | [] | no_license | geoeo/Engine | 19f7674bf97cfa367837db064e3f147e91140d80 | 5327a4e8a5c2ab349bd3404a5c69c774300b273f | refs/heads/master | 2020-04-19T08:21:44.947938 | 2016-09-23T16:37:54 | 2016-09-23T16:37:54 | 67,553,608 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | h | Material.h | #pragma once
#include "common.h"
#include "SOIL.h"
class Material {
private:
static const int NUMBER_OF_SUPPORTED_TEXTURES = 3;
protected:
void compileShaders();
public:
static const int DIFFUSE_TEXTURE_INDEX = 0;
static const int SPECULAR_TEXTURE_INDEX = 1;
static const int NORMAL_TEXTURE_INDEX = 2;
... |
1508a9ab9dcbaa44ce5a851f0531b907068d1c6a | 3976b5a7d7c85c7fece8a44508abd3aa25a3abd1 | /lib/SSD1306/SSD1306.h | f50cf2b1c2194cd0b1b25cb4511e350dc37a8fe9 | [] | no_license | KerbalJeb/cortex-m-base | a98a1b9ffa53af38c93edd8555287099704cd58e | 3c6aba4391fdd134b6cc11ff561468d718ec737a | refs/heads/main | 2023-03-30T17:57:44.223411 | 2021-04-13T20:40:05 | 2021-04-13T20:40:05 | 350,927,905 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,118 | h | SSD1306.h | /** @file SSD1306.h
* @brief Created on 2021-03-15 by Ben
*/
#pragma once
/**********************************************************************
* Includes
**********************************************************************/
#include <cstdint>
#include "i2c.h"
#include "fonts.h"
/*******************************... |
b0ad4aaceea712f37a1ceb836e3a1b3987d4199f | bf1038361627ec02e323515dede62162de08274a | /1000_A+B_Problem.cc | 13fc22ec2a1a67b5801fb30203e4ca75cbd6abb3 | [] | no_license | minrockli/poj | 0861f7c5608e9f6ab2bf9d2a2d649fc663c299e3 | 73c007d9130a25f6565e3df055769c41b33fe345 | refs/heads/master | 2020-04-15T06:56:17.556596 | 2013-02-19T20:23:02 | 2013-02-19T20:23:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 710 | cc | 1000_A+B_Problem.cc | #include <iostream>
#include <algorithm>
using namespace std;
int main() {
string a;
string b;
string c;
string left;
cin >> a;
cin >> b;
int add = 0;
int pos = 0;
for (; pos < b.length(); ++pos) {
int num = a[a.length() - 1 - pos] - '0' + add + b[b.length() - 1 - pos] - '0';
add = num >= ... |
8c725c1f2f7f795cb5eb0ab63a690bba94e06b9d | 8a0a3d2e0a6655d3c2c835e5970b6b44d4b644bd | /score.h | 7d922e43a702848276b6390b454415c90e924c04 | [] | no_license | cwy990909/codingKing | 096c91232a7877da48bb407252ed86ec20378a83 | b07629015df5cf2a6b6b28d336d8296f14d6ef31 | refs/heads/master | 2020-06-25T20:57:26.858459 | 2019-07-29T09:27:42 | 2019-07-29T09:27:42 | 199,420,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,045 | h | score.h | #pragma warning (disable : 4996)
#include <iostream>
#include <io.h>
#include <cstring>
#include <iomanip>
#include <conio.h>
#include <iomanip>
#include<iostream>
#include <iomanip>
#include<stdlib.h>
#include<fstream>
#include<string>
#include<string.h>
#include<time.h>
#include<winsock2.h>
#include<Windows.h>
usi... |
84ee133167ea5d819a066dc16997ee8539f21bb9 | 2d1d1c05b3ec78dd6ce2ec6a4fe8158e679b6c52 | /AdvancedProgramDesign/函数/2.cpp | 106132a5e27c6913e236af0cb80b391dec1721a3 | [
"Apache-2.0"
] | permissive | Leon-Francis/NCEPU-CS-COURSES | 65e797cae0ae364309470972c937edf9bc840027 | 65a186c9f5dc88fef4eb3fd7a550500c0d27b38c | refs/heads/master | 2023-01-30T13:16:50.076628 | 2020-12-14T12:46:10 | 2020-12-14T12:46:10 | 320,846,194 | 0 | 0 | Apache-2.0 | 2020-12-14T12:46:11 | 2020-12-12T14:13:22 | C++ | UTF-8 | C++ | false | false | 254 | cpp | 2.cpp | #include<iostream>
#include<cmath>
using namespace std;
float hanshu(float a)
{float b=0;
if(a<=0)
b=sin(a)+1;
if(a>0&&a<10)
b=a*a+3/a;
if(a>=10)
b=pow(a+4,0.5);
return b;
}
int main()
{ float a;
cin>>a;
cout<<hanshu(a)<<endl;
return 0;
}
|
0f33b36702e784c491ecde40f90f2e39659cfe95 | 8dbcef241b16387a73090f308e51759c7849c928 | /textures/PictureTexture.cpp | 60244f97fab7864545a9602df27882c67623e884 | [] | no_license | Khallimero/myrt_tuple | 0e0974cfbbe48b9a2fb494799063346df99ae730 | 94d37996d58f6eea709519656a66d6db06a8df81 | refs/heads/master | 2023-06-07T23:31:01.281161 | 2023-06-04T12:55:08 | 2023-06-04T12:55:08 | 216,005,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | cpp | PictureTexture.cpp | #include "PictureTexture.h"
PictureTexture::PictureTexture(SmartPointer<const Picture> p)
:Texture(),p(p)
{}
PictureTexture::PictureTexture(const char* fileName)
:Texture(),p(new Picture(fileName))
{}
PictureTexture::~PictureTexture() {}
Color PictureTexture::getColor(const Point& c)const
{
return p->ge... |
2b82318612359b1a03c64215b9a04ec1628775ee | 05e1f94ae1a5513a222d38dfe4c3c6737cb84251 | /Mulberry/branches/users/shared/externals/v4.1d1/XMLLib/Source/XMLAttribute.h | 105e0f73624b5940e338da05d1caf05432fe4a3e | [
"Apache-2.0"
] | permissive | eskilblomfeldt/mulberry-svn | 16ca9d4d6ec05cbbbd18045c7b59943b0aca9335 | 7ed26b61244e47d4d4d50a1c7cc2d31efa548ad7 | refs/heads/master | 2020-05-20T12:35:42.340160 | 2014-12-24T18:03:50 | 2014-12-24T18:03:50 | 29,127,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,795 | h | XMLAttribute.h | /*
Copyright (c) 2007 Cyrus Daboo. 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 re... |
ae274aa3382b6c81fb72a1e77e4fdc7d56c742e1 | d243d9b7a6e1291e6867cfbca035ca858ba605ca | /Test.cpp | 3689ee070f8be280a215248aa3b49154b0b857f5 | [
"MIT"
] | permissive | dvirs12345/cpp-iter2 | b566930b213f4b2425ca0ebe829dae760d46b1be | 8d1ec905bc31418113d5bd3dadccee97c2e121c4 | refs/heads/master | 2022-11-24T03:09:17.279193 | 2020-07-26T02:38:58 | 2020-07-26T02:38:58 | 282,562,041 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,148 | cpp | Test.cpp | // Author - Dvir Sadon
#include "doctest.h"
#include "range.hpp"
#include "accumulate.hpp"
#include "filterfalse.hpp"
#include "compress.hpp"
#include <iostream>
#include <vector>
using namespace std;
using namespace itertools;
TEST_CASE("Test range")
{
int c = 0;
for(int num : range(0, 10))
{
C... |
134e0c6b897105193d11c21f724952743f59364a | e8f43b5cbecf3e49caa89d163d506e8483f40c9d | /大富翁银行系统/CSelectView.cpp | 25fb6b97c3153d5aa7e8ea279209ad3a73f7d001 | [] | no_license | gugeaini/tiantian | 5ef843b2ad2073e1f21cd2b09d73b313bdaf292e | 08beb764a1b4caca89d8d7b1948dc15869b10ee2 | refs/heads/master | 2021-01-05T16:34:52.062516 | 2020-02-17T10:40:53 | 2020-02-17T10:40:53 | 241,076,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,721 | cpp | CSelectView.cpp | // CSelectView.cpp: 实现文件
//
#include "pch.h"
#include "大富翁银行系统.h"
#include "CSelectView.h"
#include "MainFrm.h"
// CSelectView
IMPLEMENT_DYNCREATE(CSelectView, CTreeView)
CSelectView::CSelectView()
{
}
CSelectView::~CSelectView()
{
}
BEGIN_MESSAGE_MAP(CSelectView, CTreeView)
ON_NOTIFY_REFLECT(TVN_SELCHANGED, ... |
5a1ef15ae5a47562883004abb348148edb9acb13 | c20c4812ac0164c8ec2434e1126c1fdb1a2cc09e | /Source/Source/Common/SO3World/Test/TestProject/KMathTest/KMathStressTest/KMathStressTest.h | 1aa510ebd74c7975fadf13d500557a06f011e5d0 | [
"MIT"
] | permissive | uvbs/FullSource | f8673b02e10c8c749b9b88bf18018a69158e8cb9 | 07601c5f18d243fb478735b7bdcb8955598b9a90 | refs/heads/master | 2020-03-24T03:11:13.148940 | 2018-07-25T18:30:25 | 2018-07-25T18:30:25 | 142,408,505 | 2 | 2 | null | 2018-07-26T07:58:12 | 2018-07-26T07:58:12 | null | UTF-8 | C++ | false | false | 1,186 | h | KMathStressTest.h | ///////////////////////////////////////////////////////////////
// Copyright(c) Kingsoft
//
// FileName : KMathStressTest
// Creator : ChenShiCai
// Date : 2008-10-27
// Comment :
//
///////////////////////////////////////////////////////////////
struct IKG_SocketStream;
class KMathStressTest
{
public:
in... |
e63b6afb803c58098f2925f3c8406f9b9e691ef4 | 6348b3b6ceacd7dac91f44036b3df8ad5192a136 | /include/sol/unicode.hpp | 3eedb70de002e6d1e48ed54e1a1867d818ec3f66 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ThePhD/sol2 | b0167676fecf9c65f371f6319833393cdbda0bbe | 9c882a28fdb6f4ad79a53a4191b43ce48a661175 | refs/heads/develop | 2023-08-22T21:48:22.328223 | 2023-08-06T21:47:47 | 2023-08-06T21:47:47 | 49,177,547 | 3,912 | 572 | MIT | 2023-07-18T17:46:18 | 2016-01-07T03:09:13 | C++ | UTF-8 | C++ | false | false | 9,954 | hpp | unicode.hpp | #pragma once
#include <sol/string_view.hpp>
#include <array>
#include <cstring>
namespace sol {
// Everything here was lifted pretty much straight out of
// ogonek, because fuck figuring it out=
namespace unicode {
enum class error_code {
ok = 0,
invalid_code_point,
invalid_code_unit,
i... |
0df57ff97eb58764bb1fa62216b8b2cb824cfef6 | 71cd4b9d45b307227136b4c44f3ab454fa8156ca | /scheduler.h | 002f4747718cdea7c14dd675700869b2c1c4ec3a | [] | no_license | newmangonzala/simOS | f701317956f125ec17c8d44da9ac4604bebf39b5 | c4dd093633ef9be5592ef1c7e1f8983d03522ad2 | refs/heads/master | 2020-04-01T00:53:12.117320 | 2018-12-03T05:02:37 | 2018-12-03T05:02:37 | 152,717,383 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,522 | h | scheduler.h | #ifndef SCHEDULER_H
#define SCHEDULER_H
#include <iostream>
#include <string>
#include <queue>
#include <exception>
#include <vector>
#include <fstream>
#include <iomanip>
//#include "rapidxml.hpp"
//#include "linkedlist.h"
#include "pcb.h"
#include "io.h"
//class Io;
#include <windows.h>
void ClearScreen(... |
3a8603bcd65593a164016b4779a925f81d3eb90a | 6cf6a03d247e2b730c7ea99a2d6064f8cae4e9a6 | /include/core-mesh/meshData.cpp | f7b75c6506ed7044e2da334aac7dae76bd648c3d | [
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | niessner/mLib | ef21ac961d4c29339b6258f8849e740b475e66e9 | fe89d9beeb4905f277e5db769f7f0a31d550c67f | refs/heads/master | 2022-10-31T13:40:10.691292 | 2022-10-11T12:57:16 | 2022-10-11T12:57:16 | 65,689,305 | 89 | 52 | MIT | 2023-08-25T14:12:49 | 2016-08-14T22:31:26 | C++ | UTF-8 | C++ | false | false | 32,068 | cpp | meshData.cpp |
#ifndef CORE_MESH_MESHDATA_INL_H_
#define CORE_MESH_MESHDATA_INL_H_
namespace ml {
template<class FloatType>
std::ostream& operator<<(std::ostream& os, const MeshData<FloatType>& meshData) {
os << "MeshData:\n"
<< "\tVertices: " << meshData.m_Vertices.size() << "\n"
<< "\tColors: " << meshData.m... |
25cdb1b002052fef5bd9093e77f90956b100f682 | 1e89d671e96c9e9890112ef142a7cad77a53bd7a | /CanadianExperience/TimelineDlg.h | d353cd40df68b28cabb4c18afc3fb61be01b7a35 | [] | no_license | Hutecker/The-Canadian-Experience | fbf85c4df13b608064aab8bab655cdc869b0a805 | b3b92fd0b629f76ca133a9584373d7960d489091 | refs/heads/master | 2020-05-17T18:07:47.533929 | 2014-11-15T21:01:52 | 2014-11-15T21:01:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,199 | h | TimelineDlg.h | /**
* \file TimelineDlg.h
*
* \author Stephan Hutecker
*
* \brief Our timeline dialog
*/
#pragma once
#include "Timeline.h"
/** \brief Our timeline dialog */
class CTimelineDlg : public CDialog
{
DECLARE_DYNAMIC(CTimelineDlg)
public:
/**
* \brief constructor
*/
CTimelineDlg(CWnd* pParent = NULL); // s... |
b747df8e4ba7084671023f428fc7311cca9874c5 | c188ce6bb0408f5047a8911e35d7e02951f1807e | /src/session_base.hpp | 8c4513539cf576b45357d1862fce463ab757ff60 | [
"Apache-2.0"
] | permissive | kspine/poseidon | ee30f3260095c32af23c854ffacc6c8a87932f8d | dced8125095aeea88a66ccbe35920491bba45c56 | refs/heads/master | 2021-01-21T18:11:45.535961 | 2016-08-18T04:56:21 | 2016-08-18T04:56:21 | 65,966,396 | 2 | 0 | null | 2016-08-18T04:58:35 | 2016-08-18T04:58:34 | null | UTF-8 | C++ | false | false | 1,099 | hpp | session_base.hpp | // 这个文件是 Poseidon 服务器应用程序框架的一部分。
// Copyleft 2014 - 2016, LH_Mouse. All wrongs reserved.
#ifndef POSEIDON_SESSION_BASE_HPP_
#define POSEIDON_SESSION_BASE_HPP_
#include "cxx_util.hpp"
#include <cstddef>
#include "stream_buffer.hpp"
#include "virtual_shared_from_this.hpp"
namespace Poseidon {
class StreamBuffer;
cla... |
46606d009b93731e142a2e8d25d754a240d03f43 | ef768de46808ebdd401c3bfac6e6ef628581d327 | /model/PortRequired.h | bae88b9ab7abd7c0db50f315ffb6521631fed530 | [] | no_license | cloudiator/cpp-rest-client | bf2bf0d7a3d575ade2d6a26d584a325c4e014256 | 5a7b4dd2357026c7766c6dd545fed8d8c1a116d7 | refs/heads/master | 2020-04-01T17:49:48.026257 | 2018-11-15T13:14:48 | 2018-11-15T13:14:48 | 153,453,413 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,278 | h | PortRequired.h | /**
* Cloudiator REST Api
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 0.2.0
* Contact: daniel.baur@uni-ulm.de
*
* NOTE: This class is auto generated by the swagger code generator 2.3.0-SNAPSHOT.
* https://github.com/swagger-ap... |
a97311a80e6efcd830b50fbf3206d93bcc4f7f5f | 3fa30972b98e69d62984a55d484875999aaef82a | /include/Application.h | 4c12faa401b39fad926e2c34d9d34719154fd7ad | [] | no_license | AdriannaCencora/DataStructuresAndAlgorithms | d378e67afff39850bd524e3ea441f78edf032002 | b57124e54efe1e8fc7de756ade144c60f29b58d6 | refs/heads/master | 2021-01-07T13:59:21.704578 | 2020-05-24T18:32:25 | 2020-05-24T18:32:25 | 241,715,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | h | Application.h | #pragma once
#include "GenericStructure.h"
#include <memory>
class Application {
public:
Application() = default;
~Application() = default;
void run();
private:
std::unique_ptr<GenericStructure> structure{};
char userChoice{};
char operationChosen{1};
bool isRunning{true};
void display... |
8c5e003a22bc05a71fd4a778a82a0ad5eb86b657 | c3e4a3c56a1db1c344072d303406ac44dc8afc1d | /rat_dungeon/rat_dungeon/calculations.h | 2925bb4ec0ee24e78a4da619bfd936f8f4da9fbb | [] | no_license | MorozO2/Zero-Rat-Kingdom-Dungeon | 8258d3cddb1234b547ae387109f92542dc263ee2 | c89645f8d0d583b2336c024d953c7e5b2c4c5141 | refs/heads/master | 2020-03-29T21:47:59.986910 | 2018-11-16T09:47:51 | 2018-11-16T09:47:51 | 150,388,127 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,412 | h | calculations.h | #pragma once
#include "pch.h"
#include "modes.h"
#include "encounters.h"
#include "calculations.h"
#include <iostream>
#pragma warning(disable:4996)
#define d2 2
#define d4 4
#define d6 6
#define d8 8
#define d10 10
#define d12 12
#define d20 20
int atck(int mod, int ac);
int roll(int high);
int attack_scale(int lvl);... |
64b303d91a1336a506672b4860300b85d8f43aac | 6693c202f4aa960b05d7dfd0ac8e19a0d1199a16 | /Caribbean-Training-Camp-2017/Contest_2/Solutions/D2.cpp | 0ffeda5890badfc20a88ee089fde3d1b9324df4f | [] | no_license | eliogovea/solutions_cp | 001cf73566ee819990065ea054e5f110d3187777 | 088e45dc48bfb4d06be8a03f4b38e9211a5039df | refs/heads/master | 2020-09-11T11:13:47.691359 | 2019-11-17T19:30:57 | 2019-11-17T19:30:57 | 222,045,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,427 | cpp | D2.cpp | #include <bits/stdc++.h>
using namespace std;
struct node;
typedef node* pnode;
struct node{
int v;
pnode ls, rs;
node( int v ){
this->v = v;
ls = rs = NULL;
}
};
const int MAXN = 400100;
pnode roots[MAXN];
void build_st( pnode &root, int l, int r ){
root = new node( 0 );
... |
291d2ce75664860e1e770995604e6db358a01a9f | a3ba01b16afc2b74b73ca94d5530658574d93e86 | /Headers/Volume.h | f360a84e9f7c51a09c10ca62ec26c185da3d9552 | [] | no_license | iggalot/Application-Framework | c961e1898f937555a9a1088f91365934f0cd317c | 5cf3773ecaf841a3ce2aea35bb008cebf65abb6a | refs/heads/master | 2021-10-28T21:30:41.048650 | 2015-06-09T15:31:06 | 2015-06-09T15:31:06 | 183,354,916 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,550 | h | Volume.h | #ifndef _Volume_H
#define _Volume_H
#define MAX_VOL_MESHES 4 // the number of member meshes to hold in each volume
#include "../Headers/Main.h"
class Volume
{
public:
GLuint VolumeID; // stores the Volume ID
GLuint VolumeType; // stores the type of Volume as defined in Application.h
Mesh *MemberMesh... |
745a46345d5971af45596c7e62bd4a3891a05d04 | 5b95018192cac406366d764c97df948f8808662a | /02-线性结构3 Reversing Linked List/源.cpp | b56b7584f014a7191df6cf9f206f64499ec27893 | [] | no_license | Zhmoll/DSA-PTA | 724ae526e4e000d63e551ab8471536a435e7d046 | 46aeeb89a3f52e197b514b3b1da4544e88c692d9 | refs/heads/master | 2021-01-20T07:36:31.486346 | 2017-05-13T06:11:54 | 2017-05-13T06:11:54 | 90,017,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,633 | cpp | 源.cpp | #include <stdio.h>
#include <stdlib.h>
struct TreeNode {
int data;
int next;
};
int q1[100005];
int q2[100005];
int q1_size = 0;
int q2_size = 0;
void enqueue(int address, int q) {
if (q == 1) {
q1[q1_size] = address;
q1_size++;
}
if (q == 2) {
q2[q2_size] = address;
... |
630b16f305ae83543b4c1b3b17ad78e5e719081c | 2f29655b4daef4c8d13a0c6563394cf4ee68e01e | /sample/generator.cpp | 65d9d7aeeef35d8ce3034653fd6c50824efc835f | [] | no_license | piyushdubey490/Auto-Tester | 164ca0249e3a81688b0bd056b788bc361fd542d5 | a044611f4b53757a38e591c4f666814d7dec14d0 | refs/heads/master | 2023-07-13T12:20:33.626889 | 2021-08-10T08:08:25 | 2021-08-10T08:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | cpp | generator.cpp | #include "bits/stdc++.h"
using namespace std;
const int MAX = 3;
int main()
{
srand(time(NULL));
int l = rand() % MAX + 1;
int r = rand() % MAX + 1;
if(l > r) swap(l, r);
cout << l << " " << r;
} |
e805094b98fa5d00be498dacac382679122a0658 | 13dab8a118f8ff847991fd146b2d53530da0bc42 | /src/epee/include/misc_language.h | cdcf2cb2f8ca601149f3cea14cca3550b55911bb | [] | no_license | andyspb/private | 1bed3a5744aa32835c75137a97ebaa35d2cfb277 | 6bb4783ee220c3a82c8b942ecdd453d15ad795dd | refs/heads/master | 2020-06-14T17:40:17.629769 | 2013-12-08T20:15:01 | 2013-12-08T20:15:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,300 | h | misc_language.h | // Copyright (c) 2006-2013, Andrey N. Sabelnikov, www.sabelnikov.net
// All rights reserved.
//
#ifndef MISC_LANGUAGE_H
#define MISC_LANGUAGE_H
#include <limits>
namespace epee {
#define STD_TRY_BEGIN() try {
#define STD_TRY_CATCH(where_, ret_val) \
} \
catch (const std::exception &e) \
{ \
LOG_ERROR("EXCEPTIO... |
a5f28e3733c382ad0220552ecea91e3eccd8a3da | 0dc422e71d2b51ea1870baa41a2d0bc6e565b713 | /PTA&PAT_note&code/exercise_list/1001_A+B_Format.cpp | c3ddbb3b7646780528fed83a5a708e9f3f441369 | [] | no_license | grovekingli/PTA-PAT_note-code | a0e6c071df2e644860244d800678c5078abc8eae | f533c4ceb63379d8418233e950dad7b617e55bf2 | refs/heads/main | 2023-03-05T07:59:18.034373 | 2021-02-08T14:15:23 | 2021-02-08T14:15:23 | 327,314,623 | 0 | 0 | null | 2021-02-08T14:15:25 | 2021-01-06T13:08:12 | C++ | UTF-8 | C++ | false | false | 748 | cpp | 1001_A+B_Format.cpp | //
// 1001_A+B_Format.cpp
// PTA&PAT_note&code
//
// Created by Groveking Li on 2021/1/6.
//
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
string FormatNum (int a, int b)
{
string res;
int resNum = a + b;
string sumStr = resNum >= 0 ? to_string(resNum) : to_string(0-resN... |
9406346717a6b4e513e6f39281627b22332b0857 | 7ed28dffc9e1287cf504fdef5967a85fe9f564e7 | /construction/abc92_d.cpp | bd0c863254eb9be94cb36ca04ff89833582b5d98 | [
"MIT"
] | permissive | Takumi1122/data-structure-algorithm | 0d9cbb921315c94d559710181cdf8e3a1b8e62e5 | 6b9f26e4dbba981f034518a972ecfc698b86d837 | refs/heads/master | 2021-06-29T20:30:37.464338 | 2021-04-17T02:01:44 | 2021-04-17T02:01:44 | 227,387,243 | 0 | 0 | null | 2020-02-23T12:27:52 | 2019-12-11T14:37:49 | C++ | UTF-8 | C++ | false | false | 1,362 | cpp | abc92_d.cpp | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Graph = vector<vector<int>>;
// まずどのくらい余裕があるのかを概算
// この問題だと市松模様に塗ることで A = B = 5000が達成できる
// A,B <= 500 は余裕があることがわかる
// 構築問題
/*
参考リンク
ABC 92 D - Grid Components
... |
f7accf7e00a4dc74f855f695286e2c266dea4b55 | 5823d1e8d579d0d6d4e830794a68c61096c52367 | /src/kokkos/PdV.cpp | d0a3b8ab2bf1a02a901e29c3c3eb9969c8ad96f4 | [] | no_license | UoB-HPC/CloverLeaf | 74a1ab7748be406641f35fb0ddd5f3ae9ce07a92 | 4306b008eb21b0dbdad7bd241dfb6a5a337609ca | refs/heads/main | 2023-08-21T13:32:13.089304 | 2023-08-13T06:34:39 | 2023-08-13T06:34:39 | 61,378,073 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,923 | cpp | PdV.cpp | /*
Crown Copyright 2012 AWE.
This file is part of CloverLeaf.
CloverLeaf is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your option)
any later version.
CloverLeaf... |
bd07d8457d29a276679608740b146985e86f0a0b | dc37fe84633264f6c829d69d3f41b64760584a64 | /Dialog/layerattributetabledialog.h | 5bb8cbee49fbeeacc534f5e051af3fad565edaee | [] | no_license | Hyperionlucky/SuperGis | fa958be38ed369ab659d9ad778c5e04f4b9f29c6 | 99fb4ca20a68328745d4c2d6440cdf424154720d | refs/heads/master | 2020-12-27T14:30:12.030399 | 2020-02-03T10:29:50 | 2020-02-03T10:29:50 | 237,936,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 998 | h | layerattributetabledialog.h | #ifndef LAYERATTRIBUTETABLEDIALOG_H
#define LAYERATTRIBUTETABLEDIALOG_H
#include <QDialog>
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QToolBar>
#include <QAction>
#include "geolayer.h"
class LayerAttributeTableDialog : public QDialog
{
Q_OBJECT
public:
LayerAttributeTableDialog(GeoLayer* ... |
7a417ce216e545ca5a1ca302a47dd2403ddb2158 | a2637ebf462068a0fc3637246005bafd0b447f07 | /StreamlinedMastermind/include/BehaviorTree/Behavior.h | 9e41a103afb59209612dc3125edc6e9fd72e76a2 | [
"MIT"
] | permissive | DavidtKate/Crime-Engine | 08a063e80f4d0073f11365acb3e76d2244ff31d6 | 128529634011d41a1f7fc1a356245d7f7ef77cb3 | refs/heads/main | 2023-03-18T23:17:13.235494 | 2021-03-08T10:52:07 | 2021-03-08T10:52:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 276 | h | Behavior.h | #pragma once
#include "BehaviorTree/IBehavior.h"
namespace bt
{
class Behavior : public IBehavior
{
public:
Behavior();
virtual ~Behavior() = default;
EStatus Tick(float a_deltaTime = 0);
EStatus Status() { return m_status; };
private:
EStatus m_status;
};
}
|
f809d85988c93154988aa73bcf20273cd4fcfa37 | 0114ec2eda509daedd2d8ae80ad02e0384332507 | /search.cc | e9b70317f624dd5e8d267231ed8526fd24b33e72 | [] | no_license | hkocinneide/chord | 5feab22d881e59db7513e838cd73c464c1961c31 | 528bec0468f1906145e9abcacc4520720f85e3f9 | refs/heads/master | 2020-05-17T22:50:17.451057 | 2014-12-16T01:25:59 | 2014-12-16T01:25:59 | 27,414,132 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 473 | cc | search.cc | #include "search.hh"
#include "fileshare.hh"
Search *Search::search = NULL;
Search::Search(QListWidget *list)
{
search = this;
searchList = list;
}
void Search::searchFiles(QString term)
{
QMap<QString, quint64> *files = FileShare::share->sharedFiles;
QMap<QString, quint64>::iterator i;
for (i = files->beg... |
40a4df22b494d06e7560e3e65fef744c1d0eafaa | ac0d7292e8921bee1f6f04b02b7f4f8207623ea1 | /TRAB2/geradorDeTestes.cpp | 539472aae3401db41909b7f1e11cf2ac44fbd295 | [] | no_license | dell2duo/Data-Structure | c82329fc8b843553abe5d841966e1ad38713bf5a | 323e365a42abbd28093ba2e0e185d82068c0294e | refs/heads/master | 2022-12-11T07:46:31.095137 | 2020-09-14T18:40:25 | 2020-09-14T18:40:25 | 191,229,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 279 | cpp | geradorDeTestes.cpp | #include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char* argv[]){
ofstream out(argv[1]);
if(!out.is_open()) cout << "-não abriu-" << endl;
for(int i=0;i<255;i++){
char temp = (char)i;
out << temp;
}
return 0;
} |
be8e7000c18b272ce9f6f16afdf07aa6979fdffa | a39b242d3a07b4611c8ca2b050f9ddd51496d2c8 | /UVA 10773 - Back to intermidiate math.cpp | e7c9be461f0ffa39180c50428e6431fd9e39bd57 | [] | no_license | abdullahalrifat/contest | 28b14c92894d5f388fe7182426980a5dc84795a8 | 063fda623cb9f5f020cc1ac7195e63344497e33f | refs/heads/master | 2020-12-20T16:41:16.049119 | 2019-06-26T11:51:12 | 2019-06-26T11:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | cpp | UVA 10773 - Back to intermidiate math.cpp | #include<cstdio>
#include<cmath>
int main(){
int test;
int d, u, v;
scanf("%d", &test);
for (int i=1; i<=test;i++){
scanf("%d %d %d",&d,&v,&u);
printf("Case %d: ",i);
if (u>v && v)
printf("%.3f\n",d*(1.0/sqrt(u*u-v*v)-1.0/u)); ... |
0d97b0449e10a431f1a9c5acbe640f4c7a23377b | 46529637c8c8a366195a82f09533d51e99ff6cff | /treinos/treino2/respostas_aceitas/G.cpp | 5c98c48522355d7c238c2b7d0c2644ddf2d31b53 | [] | no_license | GabrielFrizzo/MProg2019 | eb90536c90149b0eb8de40ef443d2c39f4362dd0 | a7a9e686fa49e016cf9f6463e432e091d49e6ec4 | refs/heads/master | 2020-06-23T17:22:16.522316 | 2019-10-03T23:00:06 | 2019-10-03T23:00:06 | 198,694,523 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cpp | G.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
set<string> dicionario;
string palavra;
char c;
palavra="";
while(scanf("%c", &c)!=EOF)
{
c=tolower(c);
if(isalpha(c))
palavra+=c;
else{
if(palavra!="")
{
palavra+='\0';
dicionario.insert(palavra);
}
palavra="";
}
}
f... |
ea34696ea6c01bbfe59cef020863dd0c72d6d902 | b2feba8c1139f8ef3ad4808afc65085341d33f07 | /include/qr.h | 1640c4f216978e199a8ea581ad853c33009cfc09 | [] | no_license | zrdthu/Parted-QR-Code-Recognition | e8eecaf3137132f757febfca551ebdee807f8318 | a7fb0a203952c68afa08e77e2c71c5da881e003b | refs/heads/master | 2020-07-05T01:39:28.516547 | 2019-08-15T06:38:06 | 2019-08-15T06:38:06 | 202,485,273 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,063 | h | qr.h | // ------------------------
// zrd: zhangr.d.1996@gmail.com
#ifndef _QR_H
#define _QR_H
#include <iostream>
#include <string>
#include <vector>
#include <zbar.h>
#include <opencv2/objdetect.hpp>
#include <opencv2/opencv.hpp>
// #include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
... |
5908c08071358a615e62523c76a8aabb65a5085e | fd9a7602061b00b009f8a359f388f103f6f85cf6 | /src/main/cpp/system.cpp | 67239f57123afc2839db85abafd801912da1f509 | [
"Apache-2.0"
] | permissive | apache/logging-log4cxx | 8d3a7ba683b226695187e0986f62a9407fa78481 | c8d9a6a15ae540786260503d98a20926b754a366 | refs/heads/master | 2023-09-05T08:59:37.739702 | 2023-08-21T06:05:38 | 2023-08-21T06:10:27 | 87,689,450 | 247 | 138 | Apache-2.0 | 2023-09-14T07:52:55 | 2017-04-09T07:00:07 | C++ | UTF-8 | C++ | false | false | 2,652 | cpp | system.cpp | /*
* 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 may ... |
6f2123cf7135c0663c1d83b8238ea82b9bc4fbca | f57891c586e6d07cefaac99769d1260895d504a6 | /geo_analysis_server.cpp | a37cc225841fbdcb9be1c398f2a2ed417dfd92be | [] | no_license | christophanneser/GeoServer | 7315f6d186192344770045982e9c8e5cae7d1621 | f6fd37836926b4bc7a41ba8a6b5714fe7d1b143a | refs/heads/master | 2022-01-14T00:22:36.565591 | 2019-02-05T23:04:42 | 2019-02-05T23:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,175 | cpp | geo_analysis_server.cpp | //
// Created by Christoph Anneser on 10.12.18.
//
//uncomment for debug output
//#define __DEBUG
#include <iostream>
#include <memory>
#include <string>
#include <grpcpp/grpcpp.h>
#include "geoanalysis.grpc.pb.h"
#include "geoanalysis.pb.h"
#include <s2/s2contains_point_query.h>
#include <s2/s2latlng.h>
#include <s2... |
b7cd1d884cd7d9bc8998d866e49131cdd1f5503d | b0e126b9ee6f5f36587694ecc5aa3bf34a354888 | /Pract_03/Task10.cpp | 47be3430149a5e19b0607855bdf483a9889eda05 | [] | no_license | Prisadashki/Introduction_to_programming_FMI_2021-2022 | 14a6661afe4bbaa4fbf16729c84da5911d5d4a18 | a3f3bbf6248848f923661fe8ae4b84b277e868ad | refs/heads/main | 2023-08-30T22:05:44.987105 | 2021-11-05T09:26:50 | 2021-11-05T09:26:50 | 424,585,504 | 0 | 0 | null | 2021-11-04T12:22:08 | 2021-11-04T12:22:08 | null | UTF-8 | C++ | false | false | 684 | cpp | Task10.cpp | #include <iostream>
using namespace std;
int main()
{
int n, initialSum;
cin >> n;
initialSum = n;
int oneHundredLeva = 0;
int fiftyLeva = 0;
int twentyLeva = 0;
int tenLeva = 0;
int fiveLeva = 0;
int twoLeva = 0;
int oneLev = 0;
oneHundredLeva = n / 100;
n %= 100;
fiftyLeva = n / 50;... |
45c20a52127c3fe14e302758ea9c082e0937ce8b | d41a540849323acb9e26d6962937dfbbdfed9d88 | /serveur/src/ActionCommand.cpp | 04bbbff03f86da7f009ed2a3b0e6a5a591f98a41 | [] | no_license | alahache/tp-serveur-vod | 565344fd96b3d3543d90c5fd3366b9d2443d6a65 | 6113337a4fb7ecdfd3d5aae41b1dd9d3f1a17b43 | refs/heads/master | 2021-01-19T18:07:45.032214 | 2011-04-04T14:16:21 | 2011-04-04T14:16:21 | 1,393,249 | 1 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,455 | cpp | ActionCommand.cpp | /*************************************************************************
ActionCommand - description
-------------------
début : ...
copyright : (C) 2011 par Arnaud Lahache
*****************************************************... |
44310f43486694f5f2b3ef971a1c82bba5102afe | 05f1d96ddb0225755bd072f6d5fa3cec9ce944e9 | /utility/CommandDispatcherBase.cpp | e3e60911523579becdc1647c7c8d218b0ca5c3ea | [] | no_license | gstark307/MLP | 32a7db3a42d94ed3b5d5df3a9e1493190a20cd91 | a9a07eec7c889d116b12f42ff2ad24b72ad88d55 | refs/heads/master | 2020-12-30T20:52:03.484826 | 2015-03-08T09:36:21 | 2015-03-08T09:36:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,127 | cpp | CommandDispatcherBase.cpp | #include "CommandDispatcherBase.h"
#include <avr/pgmspace.h>
using namespace MLP;
CommandDispatcherBase::CommandDispatcherBase( CommandCallback *pCallbackBuffer, uint8_t uCallbackBufferLength )
: m_uMaxCommands(uCallbackBufferLength), m_pCommands(pCallbackBuffer)
{
m_uLastCommand = 0;
m_fnDefaultHandler = NULL... |
acf75e0b83edd887651e0a4f17fcd6dd4806368f | 10c14356b27d4ae01c340f1f0d14cba9fbe48f65 | /Utilities.h | 49be61c3d7e03f2edb89071c369d9c1c3bed68b4 | [] | no_license | Zikomo/BerryCam | e8081079adc40fc66e07e6e37317e09d69a3133b | eae712ade92b93c0f9ab9d7065d653603fb0dc1e | refs/heads/master | 2020-08-02T03:59:22.063832 | 2019-10-25T05:38:40 | 2019-10-25T05:38:40 | 211,226,759 | 0 | 0 | null | 2019-10-25T05:38:41 | 2019-09-27T03:15:00 | C++ | UTF-8 | C++ | false | false | 2,830 | h | Utilities.h | //
// Created by Zikomo Fields on 2019-03-27.
//
#ifndef BERRYCAM_UTILITIES_H
#define BERRYCAM_UTILITIES_H
#include <boost/property_tree/ptree.hpp>
#include <cmath>
//Camera Keys
#define CAMERA_STILLS_WIDTH "camera.stills.width"
#define CAMERA_STILLS_HEIGHT "camera.stills.height"
#define CAMERA_STILLS_YUV422 "camera... |
c51d9c84440b3965d1e6d1ba45dfff6924c9e68f | afa59b7b69f09b924061eade6ecfd77bed61ebac | /controllers/ros44/RosDifferentialWheels.hpp | bf850383d790c696a4cc9684e28643f6bb93e366 | [] | no_license | ekuo1/rovey2 | a8ead58269be266a7f880c6cac2da7dbc5fc5270 | db883dd7ae6b96465a16c83a57394cc2acb9b139 | refs/heads/master | 2020-04-13T14:25:15.274334 | 2019-01-05T07:29:52 | 2019-01-05T07:29:52 | 163,262,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,503 | hpp | RosDifferentialWheels.hpp | #ifndef ROS_DIFFERENTIAL_WHEELS_HPP
#define ROS_DIFFERENTIAL_WHEELS_HPP
#include <webots/DifferentialWheels.hpp>
#include <webots_ros/get_float.h>
#include <webots_ros/set_float_array.h>
#include <webots_ros/differential_wheels_subscribe_twist_commands.h>
#include <webots_ros/differential_wheels_get_speed.h>
#inclu... |
c93f98dcf518067cb3ad9b6e57b223ee382c2dcf | a08a97e327c6d915ce94e2ab9af0ecbcddb14979 | /src/WanStemCellCycleModel.hpp | e2e3477c0817d4ee6b2be65d6e17924a3ed3ff8c | [] | no_license | mmattocks/SMME | b415920bde3c4809bda20e394b50573dbe017f09 | ae3f1284efde9756c8856fa81fc255745df427b2 | refs/heads/master | 2022-03-11T10:54:37.404353 | 2022-02-20T04:28:27 | 2022-02-20T04:28:27 | 148,137,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,743 | hpp | WanStemCellCycleModel.hpp | #ifndef WANSTEMCELLCYCLEMODEL_HPP_
#define WANSTEMCELLCYCLEMODEL_HPP_
#include "AbstractCellPopulation.hpp"
#include "AbstractSimpleCellCycleModel.hpp"
#include "RandomNumberGenerator.hpp"
#include "Cell.hpp"
#include "StemCellProliferativeType.hpp"
#include "SmartPointers.hpp"
#include "ColumnDataWriter.hpp"
#include... |
549ba67bdb6bd72eed55b502c578bba7f0c14c09 | 0674e81a160161996251fb4b063c801330ccd1e2 | /codeforces/ABBYY cup 3.0/C2.cpp | e1934988483525338d54652c23b6fd718d6ed955 | [] | no_license | joshuabezaleel/cp | 8a2c9b44605810da4367efeb981f822ae5e1e9a2 | 57f365458cca38c3c0fb1f5af1c6b44b74f3b53e | refs/heads/master | 2022-07-19T00:39:34.395495 | 2020-05-23T20:37:20 | 2020-05-23T20:37:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,372 | cpp | C2.cpp | #include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <algorithm>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cassert... |
d81e60e6526f5c055b312b43846fa07a00f790eb | 526824bfb1341e62b53bc280f7dd85042efce915 | /test1/dice.h | 5986fa54ba1a5b379a8b12f649ee42ab0b133fae | [] | no_license | improvshark/diceRoller | a3f87c1929b54c9ae427d15c25c1253491b8a690 | 0bcb62709109d34755daea50f5a2ccb1d099025c | refs/heads/master | 2021-01-16T00:27:45.354491 | 2013-08-29T16:44:02 | 2013-08-29T16:44:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | h | dice.h | #ifndef DICE_H
#define DICE_H
#include <gtkmm/hvbox.h>
#include <gtkmm/grid.h>
#include "die.h"
#include <gtkmm/textview.h>
class Dice : public Gtk::HBox
{
private:
Die m_d3;
Die m_d4;
Die m_d6;
Die m_d8;
Die m_d10;
Die m_d20;
Die m_d100;
Gtk::TextBuffer *m_refTextBuffer;
public:
Dice();
void set_b... |
f053a9c747410dd42d8dcbd2ddc9ed6e8b711995 | 9d164088aa2d5a65215b77186c45da093ad68cb1 | /src/CGnuPlotContour.h | 404f5a5d0aaf8c714be35278239862e49be06e77 | [
"MIT"
] | permissive | colinw7/CQGnuPlot | 9c247a7ff8afd0060fd99d7f4c12d4f105dfc9d9 | c12ad292932a2116ab7fbb33be158adcf6c32674 | refs/heads/master | 2023-04-14T07:29:43.807602 | 2023-04-03T15:59:36 | 2023-04-03T15:59:36 | 26,377,931 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,718 | h | CGnuPlotContour.h | #ifndef CGnuPlotContour_H
#define CGnuPlotContour_H
#include <CRGBA.h>
#include <COptVal.h>
#include <CLine3D.h>
#include <CAlignType.h>
#include <vector>
#include <map>
#include <CGnuPlotContourData.h>
class CGnuPlot;
class CGnuPlotPlot;
class CGnuPlotRenderer;
class CGnuPlotContour {
public:
typedef std::vecto... |
5cb2807b257363a92636e699f1ef5df1a8aaef6a | a3878da41a87a3640ace3f2d3e98cfb197ea3b41 | /Cylinder.cpp | ec50a9b84ab9e616cdca20f559e3a084805c84c4 | [] | no_license | moustafa-mk/Shapes-calc | 0b2e598a9c39a102d0e94b2daca12a4ddc22dbe3 | b816de8f68f723a4ac05d22ca623d68c087c0f7a | refs/heads/master | 2020-04-04T08:03:57.203373 | 2018-11-01T20:16:11 | 2018-11-01T20:16:11 | 155,770,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 325 | cpp | Cylinder.cpp | #include "Cylinder.h"
Cylinder::Cylinder()
{
radius = 0;
height = 0;
}
Cylinder::Cylinder(double r, double h)
{
radius = r;
height = h;
}
double Cylinder::volume(){
return 3.14 * radius * radius * height;
}
double Cylinder::surfaceArea(){
return 4 * 3.14 * radius * height;... |
c4c6eeeaecff100f11bc68f47c427bb9f79e5859 | 13f2c704b386a8507f43a6fab34b3aefcf9311c8 | /movie_project/movie_project.cpp | 4450daf934b1dbd373b550b42e6a2481da21244d | [] | no_license | boldijar/mvc-movie-console-app | 3b96439e41a85cd549ca9f74527c5a26b13aa2a4 | 7fb4287c7c94e238d1105eef870168e62a2fa6e8 | refs/heads/master | 2021-06-01T06:24:02.551250 | 2016-05-08T22:47:49 | 2016-05-08T22:47:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 459 | cpp | movie_project.cpp | // movie_project.cpp : Defines the entry point for the console application.
//
#include <fstream>
#include "MoviesFileRepository.h"
#include <algorithm>
#include "TestApp.h"
#include "ViewConsole.h"
using namespace std;
int main()
{
TestApp test;
//test.runAll();
MoviesFileRepository repo = MoviesFileRepository();... |
ee9b60d53ef921dc48075272c63772907ba0eb8e | 733828a444a05d99d2f215aa25ad50016aa88c20 | /61-A.cpp | ed9a5ae9114d772414672a1ec24d176a6ac62fa8 | [] | no_license | razoltheren/codeforces | 0cf2f72a015b340fc49d39b8b13cc0563199110f | ecf1744f998f3f9de75533c45df4a9f260789f84 | refs/heads/master | 2023-02-07T02:36:54.118045 | 2020-12-27T09:36:21 | 2020-12-27T09:36:21 | 268,250,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | cpp | 61-A.cpp | #include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int x[100];
string a,b;
cin>>a>>b;
int k=a.length();
for(int i=0;i<k;i++)
{
if(a[i]!=b[i])
{
x[i]=1;
}
else{
x[i]=0;
}
}
for(int i=0;i<k;i++)
{
cout<<x[i]... |
93b98aebcc3d55dc70106456d23cadb237c7e391 | df790a3d2250c270e74b85de7829e6af54314d81 | /bubsort.cpp | cd1ea643f8c303405d39da663fcebf887dba944d | [] | no_license | shiks25/1BM18CS149-ADA | 38804b0309427e687853423931207cad3b7841ac | 1bf815eb15c5cc952f46156e57867d0bae3b26b5 | refs/heads/master | 2020-12-23T12:43:15.219679 | 2020-05-02T14:30:42 | 2020-05-02T14:30:42 | 237,156,093 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,259 | cpp | bubsort.cpp | /*Sort a given set of N integer elements using Bubble Sort technique and compute its time taken. Run the program
for different values of N and record the time taken to sort.*/
#include <bits/stdc++.h>
using namespace std;
void bubblesort(int arr[],int n)
{ int temp;
for(int i=0;i<n;i++)
{
for(int j=0;j<n-i-1;j++... |
5c08e70db25d08a8bf28e370bd65d7ef02f6b3b7 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chromeos/ash/components/network/network_state_test_helper.h | 67c0e98a6452ce468f75a6c6742463a2b66e7366 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 2,210 | h | network_state_test_helper.h | // Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_ASH_COMPONENTS_NETWORK_NETWORK_STATE_TEST_HELPER_H_
#define CHROMEOS_ASH_COMPONENTS_NETWORK_NETWORK_STATE_TEST_HELPER_H_
#include "chromeos/ash/components/net... |
b9805fd0ac5a4b6158a096bae4283b2e896ec184 | 87f4cac7090ef2b71af287f02a1d3519bca0cbfd | /src/waylandintegration.h | 1982ac108a1bf2b09ab88f8518cdc6640c83189f | [] | no_license | KDE/xdg-desktop-portal-kde | 58241c227539c4b2ac686d5c54517c4fcd385582 | 0a4237549debf9518f8cfbaf531456850c0729bd | refs/heads/master | 2023-09-01T15:51:53.597549 | 2023-08-31T19:58:12 | 2023-08-31T20:09:38 | 81,065,519 | 43 | 11 | null | null | null | null | UTF-8 | C++ | false | false | 2,704 | h | waylandintegration.h | /*
* SPDX-FileCopyrightText: 2018 Red Hat Inc
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*
* SPDX-FileCopyrightText: 2018 Jan Grulich <jgrulich@redhat.com>
*/
#ifndef XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_H
#define XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_H
#include <QDBusArgument>
#include <QObject>... |
8e8e2e15bfff0c11dc075800f6e31e1a7d16ae72 | adc45392939a52bb3133b8e7055efa00d399fbd6 | /lab3/node.h | daa3345ca20231909fc86a681c3a9b9092d1923b | [] | no_license | YanzheL/hit-compiler-lab | 9aa6dfc5f26fddfebc3bfcd04b4c1a2570b9c2aa | 7bc47d8829e5882b3eac061de15584c0e4f0fe0b | refs/heads/master | 2020-05-24T06:56:14.344666 | 2020-05-17T17:54:46 | 2020-05-17T17:54:46 | 187,149,599 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,325 | h | node.h | // =======================================================================
// Copyright (c) 2016-2020 by LI YANZHE. All rights reserved.
// Author: LI YANZHE <lee.yanzhe@yanzhe.org>
// Created by LI YANZHE on 5/16/19.
// =======================================================================
#ifndef LAB2_NODE_H
#define... |
8e2819af08c335de58f0473dfc85e90d73b8dfba | bab45d092ab55c890f3e76e1cee28ab4442fc286 | /SO2/projekt/include/App.hpp | d4b76a291d9ae2b5dd999ebe37b7076b66d0a109 | [] | no_license | GrimReaperPL/PwrWekaInf | a798011b4c1bbfc36a272b12fd9a8ff4829c1be1 | 88aa6d38f91b1f6c0a155dc7f4f86efa69c09c17 | refs/heads/master | 2021-01-10T17:41:08.547860 | 2018-05-29T15:39:01 | 2018-05-29T15:39:01 | 36,255,701 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | hpp | App.hpp | #pragma once
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include <iostream>
#include <string>
#include <memory>
#include "Timer.hpp"
#include "Screen.hpp"
class App
{
public:
App(unsigned int width, unsigned int height, unsigned int customers);
~App();
int run();
private:
b... |
7a208fc92606761bbe074be93dce4c04735c2c95 | 76ca52991ca1a1e50d066e9f7c4827b6a4453414 | /cmds/statsd/tests/statsd_test_util.cpp | 2c4f3c7692c904cbb28e926d3416c9ab67d231e6 | [
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | ResurrectionRemix/android_frameworks_base | 3126048967fa5f14760664bea8002e7911da206a | 5e1db0334755ba47245d69857a17f84503f7ce6f | refs/heads/Q | 2023-02-17T11:50:11.652564 | 2021-09-19T11:36:09 | 2021-09-19T11:36:09 | 17,213,932 | 169 | 1,154 | Apache-2.0 | 2023-02-11T12:45:31 | 2014-02-26T14:52:44 | Java | UTF-8 | C++ | false | false | 34,786 | cpp | statsd_test_util.cpp | // Copyright (C) 2017 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 applic... |
5b76aa9835121f891a76e816367d2bbf6b9a12e5 | 5bfb0e4e9af134c70be3f51b494fd01c4acf26cf | /config/acml_version.cc | 34668991e86a8bc37ad841e81614c397de2b253a | [] | no_license | haampie/blaspp | cfb081dbe99963fd03d10ddc56eec8683c557311 | 03516b89f9c0551b2d459df032fe8a3140004710 | refs/heads/master | 2022-04-23T12:36:54.267376 | 2020-04-16T16:18:29 | 2020-04-16T16:18:29 | 256,492,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | cc | acml_version.cc | // Copyright (c) 2017-2020, University of Tennessee. All rights reserved.
// SPDX-License-Identifier: BSD-3-Clause
// This program is free software: you can redistribute it and/or modify it under
// the terms of the BSD 3-Clause license. See the accompanying LICENSE file.
#include <stdio.h>
#include <mkl.h>
int main(... |
1b23cdcedbde008b521b23533d1f6d89a160a9a6 | 0c141972d779ec44c1f252194514ad9c464aef2e | /mailnews/mime/src/nsStreamConverter.cpp | 710709e501ca002bad1d05c8260742ab83d0c34e | [] | no_license | mozilla/releases-comm-central | 6a47ae14f6e24b4ff22998ca957078b7956b04e2 | d4838a15a8dbad6d5d9b7e6f486e43bf1511f87a | refs/heads/master | 2022-02-12T03:24:52.518381 | 2022-02-12T00:34:15 | 2022-02-12T00:34:15 | 4,578,344 | 137 | 101 | null | 2023-07-25T20:56:40 | 2012-06-06T21:42:18 | JavaScript | UTF-8 | C++ | false | false | 34,727 | cpp | nsStreamConverter.cpp | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsCOMPtr.h"
#include <std... |
2f70c02f96ec6f32cae393373d72f30c82bedee5 | d9a709405ff4501ce562dfeaadee740f0058925d | /tasks/tsdb/src/tasks/multiple.h | 4dff51a807f7ba4a2b13aa66fac1e6754f61c7e5 | [
"MIT"
] | permissive | solosTec/node | c8682e62ea48cca2917d57f8b7c3e092cbd7ced5 | e35e127867a4f66129477b780cbd09c5231fc7da | refs/heads/master | 2023-07-21T23:39:22.138190 | 2019-05-13T14:55:11 | 2019-05-13T14:55:11 | 115,028,931 | 3 | 2 | MIT | 2021-08-10T14:48:41 | 2017-12-21T17:07:59 | C++ | UTF-8 | C++ | false | false | 1,296 | h | multiple.h | /*
* The MIT License (MIT)
*
* Copyright (c) 2019 Sylko Olzscher
*
*/
#ifndef NODE_TSDB_TASK_MULTIPLE_H
#define NODE_TSDB_TASK_MULTIPLE_H
#include <cyng/log.h>
#include <cyng/async/mux.h>
#include <cyng/async/policy.h>
#include <cyng/intrinsics/version.h>
namespace node
{
class multiple
{
public:
using ms... |
d0414b2256f7bba07390e32c966dfae4dde32509 | a030405173d3ad8a2b6416d970a6caa858111c14 | /randomNumberTests/sprng_mpi/sprng_mpi_normal.cpp | fc91cc555a7d11e80d1f5613f955c1876157cee3 | [] | no_license | cobalt2000/CompPhysics | 0e748ed4bcdd962b08be3426aa7a51eabe428add | fb95c7cff9abf531e3dc6d9067e6b60bf815a45d | refs/heads/master | 2021-01-20T18:57:29.719068 | 2018-04-04T14:18:51 | 2018-04-04T14:18:51 | 62,254,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,100 | cpp | sprng_mpi_normal.cpp | /***************************************************************************/
/* Demonstrates sprng use with one stream per process */
/* A distinct stream is created on each process, then prints a few */
/* random numbers. */
/*******... |
9f033873d2c9e1cc84b270cd4b086a479dee61a8 | a6df05566f9794c4ae3b54b6b3cdd2a8fba85763 | /include/utils/iParms.h | 4d09b20c41d15869dfec698152df3f76562804e8 | [] | no_license | AlexVaq/Axitons | c128009281ae455557390dfcfea54a16fc4dcc38 | f8887fe936f41221f29811529f88a75d791c5067 | refs/heads/master | 2020-12-04T06:54:14.520641 | 2020-01-22T20:29:09 | 2020-01-22T20:29:09 | 231,666,154 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 616 | h | iParms.h | #ifndef InitialParametersGuard
#define InitialParametersGuard
#include <string>
#include"enum-vars.h"
struct iParms
{
int procArgs;
int nSize;
FieldPrecision fPrec;
PropagatorType pType;
FieldType fMod;
double wDz;
InitialCond cType;
double parm1;
int parm2;
FieldExpansion fExp;
dou... |
fd56167f14f11b82c583e11ccf40341e48750439 | 4c22b3fdacaf7b925f0324bf1c54713396237491 | /src/ai.h | 7f7989e9304adfcfb25972c0c91a9b16c0c77016 | [
"MIT"
] | permissive | stjordanis/connect-four | 903f83df63d11b9cf858e1cb6e19cfb367ed5517 | db8a11f4c6ad18f681dde44b447d53710875b113 | refs/heads/master | 2022-04-16T10:51:32.777857 | 2020-04-13T22:53:30 | 2020-04-13T22:53:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,713 | h | ai.h | #ifndef AI_H
#define AI_H
#include "game.h"
#include <memory>
#include <random>
#include <vector>
// A playout can have 3 different results
enum class Result { YellowWin, RedWin, Draw };
// A node in the game tree
struct Node {
Node(Node* parent, int action, Color color);
Node* parent;
std::vector<Node> ... |
cf9a696eae08a2ce8af40839486e918c8f08aede | c130fc29c48af4b36bc0c51ea9135e1660e9c318 | /API_GAME/my_lib/05_InputMgrC.h | ce2285203c2acd7dfcefd60a5068bbe22acbc92d | [] | no_license | kimisaak0/indi_project | 74ba40bb08317a910c8595efa6901120ee31eeca | 24a5adf6ad4eca30fc8ff5aec85813a089af3831 | refs/heads/master | 2020-03-25T17:24:50.839546 | 2018-10-25T14:07:46 | 2018-10-25T14:07:46 | 143,976,532 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 880 | h | 05_InputMgrC.h | #pragma once
#pragma once
#include "01_header.h"
//싱글톤패턴을 상속받음.
class InputMgrC : public SingleMgr<InputMgrC>
{
//부모 클래스를 Friend지정
//friend class SingleMgr<inputClass>;
private:
DWORD m_dwKeyState[256]; //키보드의 버튼 각각에 대한 상태를 저장하기 위한 버퍼
POINT m_MousePos; //마우스 위치값.
private:
DWORD Key... |
916f7934b21e8cfc189ac7ad811b28e6c397bc3e | 50c985d4f5d985e4ef283eca80cf292372b8b3b1 | /c2021/src/main/cpp/Shooter.cpp | 78004ce820b0d4f40587a7c09c77739677ac5691 | [] | no_license | Eaglestrike/robot-code | ede7437b34c9aec1fbe0af5c557251fdd7b86739 | 8986dad7f4cb4bd0ab588b950d9d6a63fda8a97c | refs/heads/master | 2022-02-04T18:06:36.224732 | 2022-01-22T02:19:34 | 2022-01-22T02:19:34 | 156,928,307 | 3 | 6 | null | 2021-10-19T22:44:48 | 2018-11-09T23:14:30 | C++ | UTF-8 | C++ | false | false | 24 | cpp | Shooter.cpp | #include "Shooter.h"
|
0d528ae5de83c0b2cc44d72bdc413f11ddd72730 | fcdd70cdfadd0d5fe8d52e460c99d2421709250b | /GameServer.h | bae205d43dac06d176d15b29fc760a4ed5fa5c55 | [] | no_license | YukinoHayakawa/SWCUServerPlugin | 254a543b70c3a405f7fa1d2136d4fbbe59cebe4c | 8cb90c7ad0387ec899391e117a155f1e6b4fc3f4 | refs/heads/master | 2020-12-05T08:22:32.189064 | 2014-08-15T14:52:24 | 2014-08-15T15:38:20 | 21,978,568 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,076 | h | GameServer.h | /*
* Copyright 2014 Yukino Hayakawa<tennencoll@gmail.com>
*
* 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... |
658d498545eece3bdc81437ec44e30a528f98707 | d1895a5024d1a319838fa66c8072379bfb3fb811 | /bot/leg/floatLegUnitedStates/floatLegUnitedStatesObject.hpp | f8e46d2c138f8a98236d7e45b129ad1242140c8e | [] | no_license | vermosen/xlObjectTools | 9b5b47e4a0176bf34d92567142d26656a5ef7985 | e43210c73076b7fb226d70716e9946eba72b1edd | refs/heads/master | 2021-07-03T17:43:32.741980 | 2020-10-28T16:33:15 | 2020-10-28T16:33:15 | 18,273,901 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,238 | hpp | floatLegUnitedStatesObject.hpp | /*
* xlObjectTools
*
* Created by Jean-Matthieu VERMOSEN on 31/05/09
* Copyright 2009. All rights reserved.
*
*/
#ifndef float_leg_united_states_object_hpp
#define float_leg_united_states_object_hpp
#include <qlo/leg.hpp>
#include <ql/indexes/IborIndex.hpp>
#include <ql/cashflows/cashflows.hpp>
#include <q... |
12252b2832414de23eda2c8c215738f7963ead42 | 738790ebd457082a5771bffd9d3df6f1e88338ed | /main.cpp | 6e22c81c821dcb619516068561f4596712a7296b | [
"MIT"
] | permissive | MatthewDuddington/MG1_01_LSystems | 1e17f3345244d107e7b4d240085d1446bce5849f | 5aa0f657452705ee4960e4859f04192d121cc960 | refs/heads/master | 2021-06-08T06:00:11.944774 | 2016-12-05T23:22:58 | 2016-12-05T23:22:58 | 69,477,547 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | cpp | main.cpp | ////////////////////////////////////////////////////////////////////////////////
//
// (c) Matthew Duddington 2016
//
// Using Octet framework (c) Andy Thomason 2012 - 2014
//
// Using some code with modifications from:
// Octet Invaiderers example (c) Andy Thomason 2012 - 2014
//
//#ifdef WIN32
//// This is the "... |
a6d442ae94e0ab9dfc1714073090b5278bedc314 | 9ad27673520135821a8aa9b7c4f0127f8fd042ca | /ns3/traffic-control/model/l4s-cred-queue-disc.cc | 37d579ab9193f59a1a7828673ae0b5a81052b9b7 | [] | no_license | QiuXuHui/ns3-aqm-l4s | ef66cc208cc95bcaf17690848bf969a236b8783d | b7ad27cd4e33c9c8bc175dd6d3484b8a1eb329c5 | refs/heads/master | 2023-03-16T05:34:32.706507 | 2017-10-23T20:47:43 | 2017-10-23T20:47:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,305 | cc | l4s-cred-queue-disc.cc | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2016 NITK Surathkal
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is di... |
8fba9930af02e05d0b84edb8693acfc688b9d426 | 029d28fb28e81fe71a2f3b369543ce65bcfb0998 | /diff_parser.cpp | f02771f3f7acdae59dd7cf1ab0718e2b656b2022 | [
"MIT"
] | permissive | d0k/diffcolor | b0a86a282e1fe334dc38435dd3c39d13845fdb00 | fd8a0a5134ffb443ceb4427e1365309f61a79bd3 | refs/heads/master | 2016-09-06T12:01:45.229550 | 2009-10-01T17:57:51 | 2009-10-01T17:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,137 | cpp | diff_parser.cpp | //===========================================================================//
// (c) Benjamin Kramer
// This file is distributed under the MIT License. See LICENSE for details.
//===========================================================================//
#include "diff_parser.h"
#include "diff_consumer.h"
void Di... |
a5a580a903578eea956f26778f58e185e3659060 | 51e58e4f240e39fb5770ebe97f194b2478b28db2 | /src/Characters/Monsters/States.cpp | 2864c6a3b2ba31b9032ed156f3d3e4ebcca29356 | [] | no_license | nilkun/wasmGameOfJam | 1441f09b4cc813404f40c685b8da4efbf3b14215 | f139d146f3b927651748d5ae336c687fec691045 | refs/heads/master | 2020-07-02T03:03:11.903655 | 2019-08-09T05:36:13 | 2019-08-09T05:36:13 | 201,395,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,515 | cpp | States.cpp | #include "../Monsters.hpp"
void StateMachine::setState(State* newState, Monster* owner) {
// std::cout << "SETTING STATE" << std::endl;
state = newState;
state -> owner = owner;
// std::cout << "setState()" << std::endl;
state -> enter();
};
void StateMachine::changeState(State *newState) {
st... |
8178537d0baced43fcf38a9b325545686c28d5e9 | fc5a9e37bc8d11cf29350757bb59c24cd2591fd6 | /Particle5/electron.cpp | 4c98066ec1e620877bf1e559b00f42cf9267cbec | [] | no_license | Pfhoenix/ParticleSim_2007 | 43e18b103f3343136fee5f895d6b94288688486f | a7936a62dc15693424a1ab44a3b8374e14bae37c | refs/heads/master | 2023-04-20T03:21:33.847376 | 2021-05-07T22:44:10 | 2021-05-07T22:44:10 | 365,362,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 162 | cpp | electron.cpp | #include "includes.h"
Electron::Electron()
{
Charge = -5500.0f;
T = Textures[ELECTRON_TEX];
Init(1.0f, 8.0f);
return;
}
Electron::~Electron()
{
return;
}
|
855b94c7a5cd48f1251242001b6f26deabc5348a | 52bcada7e6ccc55adb2896e9960dcc70d7c9942c | /268. Missing Number.cpp | cc51c2c26c8fc1524a7d2e135b251b61e65c1d11 | [] | no_license | RockyYan1994/Algorithm | fab75db170ab59446bf478ad2f9b76bd0d8c4b43 | 1d0edb009ec566cc917ee732c5d7b3ac281f3a61 | refs/heads/master | 2021-10-02T18:53:12.273993 | 2018-11-30T08:16:35 | 2018-11-30T08:16:35 | 114,224,825 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 994 | cpp | 268. Missing Number.cpp | /*
方法一:最简单,直接采用排序之后寻找。
方法二:用和桶排序类似的方法
方法三:用异或实现
*/
//version 1(20 ms)
class Solution {
public:
int missingNumber(vector<int>& nums) {
int miss = -1;
sort (nums.begin(), nums.end()) ;
for (int i=0; i<nums.size(); i++) {
if (nums[i] != i) return i;
}
return nums... |
c4bf137604c9c9d752d31bf815853d39f503789d | 21ee682069221c695443427ae4d01629a2ed06be | /Assignment4/transaction.cpp | b661923ba9cce78b1d01be9ea075bb3067120473 | [] | no_license | Ali-Omrani/Advanced-Programming | 923c213ec56973d366facbee95b338b89728fa82 | f97d27b21b4a5b944ff0f0d0c187e29b5bebce99 | refs/heads/master | 2020-04-05T03:10:59.255958 | 2018-11-07T09:26:21 | 2018-11-07T09:26:21 | 156,504,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,230 | cpp | transaction.cpp | #include "transaction.h"
#include "account.h"
using namespace std;
transaction :: transaction (account* _src_account , account* _dest_account,int _amount,int _id)
{
id = _id;
amount=_amount;
src_account=_src_account;
dest_account= _dest_account;
status="pending";
num_of_approved=0;
decline_flag=false;
}
void t... |
3258864be8bf8cf77c8130d880dbb8e647da0ebf | 053b4c06171c08d4ca77b08b54b4820c40a4812d | /src/IsrUtil.h | 7e596c28d68e0014316493ba4aee27be9f6bb3b3 | [
"MIT"
] | permissive | mbed-libraries/mbed-extended | e650fa7e3b6f4a7023ce823f1df85f941a74ec3f | 2932b2d24f27312763dd03798b1d0756414e1d42 | refs/heads/master | 2022-11-20T00:30:39.870653 | 2020-07-20T11:41:07 | 2020-07-20T11:41:07 | 280,886,034 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,711 | h | IsrUtil.h | #ifndef _MBED_EXT_ISR_UTIL_H_
#define _MBED_EXT_ISR_UTIL_H_
#include <mbed.h>
#include <LinkedList.h>
/**
* Provides means to easily decouple long running code segments from running in ISRs by executing them in the main loop.
*/
class IsrUtil {
/**
* Container for the callbacks
*/
struct isruti... |
49eba5ca65cd3eb5389c7b1673cdb1a648305e34 | 41d1f26a16caa7ece85d96747a9a48fef5d07cd0 | /brg_testRoutines.h | 1fe1a0852bac08b54aed362a875d6cf97e09aaea | [] | no_license | elligno/Burger1DWaveSimulator | c45c0a8308213a65269f36a2c7c04e0b4da1ea37 | b9e1de03f26917275349a4f3bb75e0a12e01094e | refs/heads/master | 2022-09-12T18:32:21.275984 | 2020-06-02T21:52:50 | 2020-06-02T21:52:50 | 268,915,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 559 | h | brg_testRoutines.h | #pragma once
#include "brg_UtilityFct.h"
namespace brg
{
/** Some test routines for numerical algorithm to test.
*
*/
class testRoutines
{
// Design Note:
// These tests should be in a separate unit test project (Google Unit test)
public:
// test of reconstruction routine ()
static void test_recons... |
26c8132f604d25bfac9ce199455192feb227f4fd | ad8271700e52ec93bc62a6fa3ee52ef080e320f2 | /CatalystRichPresence/CatalystSDK/PresencePrivacyPermissionServiceData.h | 603b65c32219376dc544d48003701c9132537d4d | [] | no_license | RubberDuckShobe/CatalystRPC | 6b0cd4482d514a8be3b992b55ec143273b3ada7b | 92d0e2723e600d03c33f9f027c3980d0f087c6bf | refs/heads/master | 2022-07-29T20:50:50.640653 | 2021-03-25T06:21:35 | 2021-03-25T06:21:35 | 351,097,185 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 518 | h | PresencePrivacyPermissionServiceData.h | //
// Generated with FrostbiteGen by Chod
// File: SDK\PresencePrivacyPermissionServiceData.h
// Created: Wed Mar 10 19:02:56 2021
//
#ifndef FBGEN_PresencePrivacyPermissionServiceData_H
#define FBGEN_PresencePrivacyPermissionServiceData_H
#include "PresenceServiceData.h"
class PresencePrivacyPermissionServiceData :... |
0d8a56b1202b44d676b3b9b9291bd69d381520d9 | a16f8d76f3f376ae63461b11ff588182b14b3f49 | /src/linad99/gradstak.cpp | 45dd581b488074acce7172b7a5f8b65e9a7a718b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | admb-project/admb | 2782c74ed8d49c73e9735f8e0ce95f01d581bf2e | f6b42b0846da23f35c6ffbd28e42ec3cc2f306f0 | refs/heads/main | 2023-08-19T04:23:21.572292 | 2023-08-08T20:34:10 | 2023-08-08T20:34:10 | 29,162,042 | 90 | 24 | NOASSERTION | 2023-08-07T19:17:15 | 2015-01-12T23:14:31 | C++ | UTF-8 | C++ | false | false | 13,850 | cpp | gradstak.cpp | /*
* $Id$
*
* Author: David Fournier
* Copyright (c) 2008-2012 Regents of the University of California
*/
/**
* \file
* Description not yet available.
*/
#include <iostream>
#include <fcntl.h>
#include "fvar.hpp"
#include <adstring.hpp>
#if defined (__WAT32__)
#include <io.h>
#endif
#ifdef _MSC_VER
#defin... |
2aa4b4f063558386bb591977c1b302892ab55f55 | a2edddc09740e8c2ff3a483f26c786eba6f14806 | /impgears/camera/StrategicCamera.h | d97b4e5b9a292371225fdc4f68c37cbf6207a612 | [
"MIT"
] | permissive | BtPht/ImpGears | 233c97947a452ac6f17b68a3a3263014564b4e74 | 199f2648982a0aa555f15d3d4f9414d7033243a0 | refs/heads/master | 2021-01-18T09:02:20.468306 | 2015-02-22T22:37:48 | 2015-02-22T22:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | h | StrategicCamera.h | #ifndef IMP_STRATEGICCAMERA_H
#define IMP_STRATEGICCAMERA_H
#include "graphics/GLcommon.h"
#include "camera/Camera.h"
IMPGEARS_BEGIN
/// \brief Defines a strategic camera.
class StrategicCamera : public Camera
{
public:
StrategicCamera();
virtual ~StrategicCamera();
virtual void initiali... |
22c6e653886397d0329b0e156b5594ccf3686449 | 5f7b2dfaa679a7bc32533c0a681d6c7aa6f5301c | /Source/EscapeHouse/Grabber.cpp | 631464b4184ccd1e96d8eac8dc7ebdf4fc1ebacf | [] | no_license | teriologia/3D-puzzle | 1f97b0dd49adc0a35d04640088b8714fb9de51bd | ca90c268c152e482264c0ff30ce446795ac181b5 | refs/heads/master | 2020-03-26T14:02:19.681998 | 2018-08-16T10:04:39 | 2018-08-16T10:04:39 | 144,968,726 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,426 | cpp | Grabber.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Grabber.h"
#define OUT
// Sets default values for this component's properties
UGrabber::UGrabber()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// of... |
29bb4a233f5f3ff655ff26b5f68e7b34200b022d | de8472c3d42011f440ccc3dc13474a697a13695f | /HEPGenPlusPlus-1.2-RC1/libhepgen/hMosseGen.cpp | a68e891d120529221a8e886d9d80a0c4117740ac | [] | no_license | drewkenjo/hepgen | 17ebfd8c9007662033a1b8c9b9ad57a4fa427d2c | 030e2ac23c47d1e3edb4fc6b1900d6aec33eefa1 | refs/heads/master | 2023-05-25T09:17:33.014437 | 2023-05-20T06:16:04 | 2023-05-20T06:16:04 | 162,611,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,169 | cpp | hMosseGen.cpp | #include "hMosseGen.h"
#define DEBUG 0
const Complexe me(0.511e-3,0.);
const Complexe mmu(0.105,0.);
const Complexe i(0.,1.);
const Complexe ni(0.,-1.);
const Complexe PI(3.14159265359);
const Complexe ELEC(0.3028619);
const CMatrix g0("gamma0",0);
const CMatrix g1("gamma1",1);
const CMatrix g2("gamma2",2);
const CM... |
8143dfa63d6514d8f0ad91d8849cace40697856a | c6b5af8587d1d6179bd6cc13889552db4a56a128 | /10533.cpp | 8d67075a8084b2d269188be69096e830d49e80c7 | [] | no_license | mju/acm | b997b1d766e165e092226f57600003cf4f8f8414 | b5714c53c5fbfc77852598330ca11fb36feda59f | refs/heads/master | 2016-09-06T06:13:50.174023 | 2012-06-02T03:09:30 | 2012-06-02T03:09:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,401 | cpp | 10533.cpp | #include <iostream>
using std::cout;
using std::cin;
using std::endl;
void initial(bool *p)
{
int i;
for (i=0;i<1001;i++)
p[i]=1;
p[0]=p[1]=0;
}
int summation(int key)
{
int total=0;
while (key)
total+=key%10,key/=10;
return total;
}
main()
{
bool prime[1001];
int record[1000001... |
082ea66f8ba4a1a9e640bee551881e9c1bd2fd92 | 9f9660f318732124b8a5154e6670e1cfc372acc4 | /Case_save/Case20/Case/case8/400/U | 3581a0164fcccb37956cad9a19061cfe3c79dbf7 | [] | no_license | mamitsu2/aircond5 | 9a6857f4190caec15823cb3f975cdddb7cfec80b | 20a6408fb10c3ba7081923b61e44454a8f09e2be | refs/heads/master | 2020-04-10T22:41:47.782141 | 2019-09-02T03:42:37 | 2019-09-02T03:42:37 | 161,329,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,135 | U | // -*- C++ -*-
// File generated by PyFoam - sorry for the ugliness
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "400";
object U;
}
dimensions [ 0 1 -1 0 0 0 0 ];
internalField nonuniform List<vector> 459
(
(0.0397454 0.0839405 0)
(-0.163004 0.0236287 0)
(-0.184243 0.0174027 0)
(... | |
c8e27f2bac717560561c08306812fccd47467b1b | 4610baf9a7e81cad6e52fe49289a5f234861732b | /planner/rndf_edit/src/RELane.cpp | da9f505e6bdbe77e2f6e2b1061e61063ff5c015c | [] | no_license | kuasha/stanley | 07f924f6ff61413f5baabd5b6605d4289e93c68d | b6b6d3a9efd4611258b2a6337ef25007f406bd80 | refs/heads/master | 2021-01-19T00:57:09.752337 | 2016-08-15T02:36:18 | 2016-08-15T02:36:18 | 65,698,509 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,720 | cpp | RELane.cpp | /********************************************************
Stanford Driving Software
Copyright (c) 2011 Stanford University
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... |
6b16bc889079406373b99117ff55b344fbea9c98 | 92b6a07d9afeba475693ad4bb7b73ad5542e6be8 | /wumpus_expressions/autogenerated/src/Plans/Reset.cpp | 5b83c1d332f402bb386269cdb8967aba3368de88 | [
"MIT"
] | permissive | dasys-lab/wumpus-ai | 60935d809ed6f1c88ca52650fe53dee4f2d1a216 | da5c3b56f9dd6ef852c7fe5195ec6455d50d6142 | refs/heads/master | 2021-06-28T14:24:29.318165 | 2020-02-23T10:56:02 | 2020-02-23T10:56:02 | 145,139,339 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,860 | cpp | Reset.cpp | using namespace std;
#include "Plans/Reset.h"
/*PROTECTED REGION ID(inccpp1572878618173) ENABLED START*/ // Add additional includes here
#include <asp_solver_wrapper/ASPSolverWrapper.h>
#include <aspkb/TermManager.h>
#include <engine/AlicaEngine.h>
#include <reasoner/asp/Solver.h>
#include <wumpus/model/Agent.h>
/*PRO... |
8b0844872fa6e7b428c3ac35dd42cb267de6d5a2 | effd304753cf7791ebe73e4a5d09e2bc2eb86995 | /10082_WERTYU.cpp | a68efd715f1f857dbb3862b451c24603103c6711 | [] | no_license | leo2105/UVa | 06cff58cbfde0009ac2c92162a03ed0a51ddd0b5 | 4303a88c832e1b4d840d79bf5d2b5f00fa080784 | refs/heads/master | 2021-01-23T03:03:55.795973 | 2017-03-24T08:03:38 | 2017-03-24T08:03:38 | 86,042,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | cpp | 10082_WERTYU.cpp | #include <bits/stdc++.h>
using namespace std;
static const string kb = "`1234567890-=QWERTYUIOP[]ASDFGHJKL;'ZXCVBNM,./";
int main(){
string S;
while(getline(S, cin)){
}
return 0;
}
|
d796fe24bd1a493a090b9b9a02ee3aa659095a88 | 35db28b0c22eb3a4a4502e60636c88b7d72befe3 | /客户端组件/游戏广场/PlatformEvent.h | 683e5cfba9028f4f5055435d051e6ff56f797d6d | [] | no_license | lemontreehuang/system | 9ca091bcc89c421be6a9a5827617414a6e400636 | 55d33f6c5c65f93c018af37aa15a3da589dbb2b1 | refs/heads/master | 2020-05-19T14:43:48.703852 | 2019-04-24T08:29:43 | 2019-04-24T08:29:43 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,577 | h | PlatformEvent.h | #ifndef PLAT_FORM_EVENT_HEAD_FILE
#define PLAT_FORM_EVENT_HEAD_FILE
#pragma once
#include "Stdafx.h"
//////////////////////////////////////////////////////////////////////////////////
//事件定义
//用户事件
#define EVENT_USER_LOGON 1 //登录成功
#define EVENT_USER_LOGOUT 2 //注销成功
#define EVENT_USER_INFO_UPDAT... |
59e0262d70f1bb38999cf66dd3475346b808d8f9 | ef3fa8e089c53422db4a5bbff9721268976bae53 | /project/mfr/79/p | c5eec7fab4e953e6ce7eb3fde391063cc23ffd3e | [] | no_license | will214/CFDcourse | 6b22f00a86f5ac83378e059074eb907e288693f2 | 37bd665013d77095f85ea4e6bc464caa11f91db1 | refs/heads/master | 2021-05-09T18:51:12.192394 | 2016-11-20T10:02:50 | 2016-11-20T10:02:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,236,396 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
... | |
9e30a2672a2f6f7ae13379af2af25c7cb58f06b0 | 8289a2a1ffc9152826a50bc5cddbd91638564c42 | /kgui/clientthread.h | b9c811b1939444e1a6f20bbd224db2b73f422e56 | [] | no_license | maciekgajewski/rufusdc | 05b092fd618ca252061452bec85a935e651acc75 | 6920d8c287439ed35621568d5804b07d93fee940 | refs/heads/master | 2021-01-21T22:26:38.376386 | 2009-07-15T19:42:21 | 2009-07-15T19:42:21 | 32,141,786 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,078 | h | clientthread.h | // Copyright (C) 2009 Maciek Gajewski <maciej.gajewski0@gmail.com>
// Uses code from Linux DC++, Copyright © 2004-2008 Jens Oknelid, paskharen@gmail.com
//
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Soft... |
b5ddd781fd0380cfb627d4beae46e0f2c07e07fe | e549fa7f97f979bbdfadd7a030a3f5191065d5b2 | /SATIP-Client/mainwindow.cpp | 6757b53f1293433ba366275ccc335cfbcb3b4d5d | [] | no_license | mgandi/SAT-IP-Tools | 6cec86148bfb379125b8cc19e2f01ec32e18536c | 748c94527037374dc504f90c9f1f71199397de37 | refs/heads/master | 2021-01-25T06:36:53.282165 | 2014-03-21T16:31:08 | 2014-03-21T16:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,350 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "gatewaydevice.h"
#include "gatewaywidget.h"
#include "ssdpclient.h"
#include "severselectionwidget.h"
#include "objectpool.h"
#include "settings.h"
#include "programrecorderwidget.h"
#include "programtesterwidget.h"
#include <QNetworkInterface>
#... |
52913075fbe9ae7f38f6ce93e39538caf2aec71d | 096712a2330d94440df440a9c01151b35bd2d1c5 | /step7/test3/src/stat.cpp | 2d3812dec1a50528dbd08e722ac1e2a8f2185e4f | [] | no_license | sharparrow003/theArchitect | 3350361f806996296ac23087ac2b1b7ea7b9e17e | a2f5651e2e574ae099aa33ec6a3b7a4fe0ccfd4f | refs/heads/master | 2021-01-21T12:39:57.168008 | 2015-12-09T07:28:08 | 2015-12-09T07:28:08 | 42,426,436 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | cpp | stat.cpp | #include "stat.h"
#include <list>
#include <string>
using namespace std;
statement::statement(){}
statement::statement(string code){this->code = code;}
|
80871079f4d1f2adf5a7a2427bf15b6dc53bd31f | 540ea101b2fcb235fd50d3ac1ef0d93cdc78b4cf | /main.cpp | 0e456988a03170835f9c875f225a61ec17aa6fb9 | [] | no_license | lnarolski/BlueDetector | 55ee5a1108ff7583d79e929edd59da9f8f12a3ad | 8a3a0df2b64efb304504f561069aa7afdbb94b38 | refs/heads/master | 2023-06-02T17:30:26.251141 | 2021-06-21T15:54:24 | 2021-06-21T15:54:24 | 376,141,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,178 | cpp | main.cpp | //#define DEBUG
#define DOMOTICZ // Send detection results to Domoticz home automation system
#define V4l2RTSPSERVER // Turn on/off V4l2RTSPSERVER based on detection results
#define TIME_BETWEEN_PINGS_SEC 30
#define MAX_PING_ATTEMPTS 7
#include <iostream>
#include <fstream>
#include <vector>
#include <csignal>
#inclu... |
2483faaf9e855284f769967c5bbe9ae0cd0a1497 | 380d022e4a1d445224c24dbd6598b649702314cd | /wxwidgets/wxsitemundobuffer.h | 93c8f91de19874b635c1d7c1f8e1ca3ae99d36ee | [] | no_license | kusupudiswamy/svn2git | bb5f1259a64097ba48c1e0eb992cad04ffd22d01 | baa15e1defee620a5d942885bc5c0f5901fd9170 | refs/heads/master | 2020-05-19T12:45:42.269239 | 2019-05-05T11:42:05 | 2019-05-05T11:42:05 | 185,012,905 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,138 | h | wxsitemundobuffer.h | #ifndef WXSITEMUNDOBUFFER_H
#define WXSITEMUNDOBUFFER_H
#include <wx/arrstr.h>
/** \brief This class is used to handle all Undo and Redo actions.
*
* This class bases on idea that any class can be represented
* as Xml structure which can be hold inside simple string.
* Each uundo position entry holds whole struct... |
1e3ecbf73525021c89103ec5bc38de08e055364e | 9e1cb9af0a32a8a49c0942763b3ef2cb552b9c71 | /key.h | d85181d63893c557e885f84b7c03cf7f489d8ab1 | [] | no_license | ILya-Lev/words_search | f2a2afbd2d4c6752079becdb25f435d118bd0fba | a1296bad944559f7a81acdc32ce579703e1fc1e1 | refs/heads/master | 2021-01-02T09:20:33.523967 | 2013-04-18T09:06:23 | 2013-04-18T09:06:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,235 | h | key.h | #pragma once
#include <string>
#include <iostream>
#include <functional>
#include <algorithm>
using std::string;
using std::cout;
using std::cin;
using std::endl;
class Key{
public:
explicit Key(const string &freqT);
string getKeyDubl() const {return wdublKey;}
string getKeySimplif() const {return simplifKey;}
pri... |
10afebf9e8c7f39a454365fb8f7bb9347d150ece | da9413b67142c563a3f14f53134a21b16f81705f | /Engine/Mesh.h | b7e34509f7bd14cc82c112b385ade3a4acd1f32d | [] | no_license | albinopapa/MVC_Chili_2016_Framework | 16a4ca24e1b3e075de367e5ef807b8fe8614974f | d4096559b733f51299150a65b126b145db76ea30 | refs/heads/master | 2020-05-28T00:04:33.813710 | 2016-07-27T04:05:45 | 2016-07-27T04:05:45 | 64,082,947 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | h | Mesh.h | #pragma once
#include "Includes.h"
#include "Utilities.h"
#include "PrimitiveMaker.h"
class Mesh
{
public:
Mesh() = default;
virtual ~Mesh() = default;
void Init();
void VertexBuffer(ID3D11Buffer *pVertexBuffer);
void IndexBuffer(ID3D11Buffer *pIndexBuffer);
ID3D11Buffer *VertexBuffer()const;
ID3D11Buffer *... |
d639b3c85691252645752478401f018ddd325b1f | 71fa3fabf89d9cfac4f20e2e3fd14d2a56c34a6b | /src/Model/CheckableModel/CheckableModel.cpp | 6329342dd52d203a68d157bc61c40daf69dfaedc | [] | no_license | sprakhar77/NewsLee | 18ca96351c2b22c7d5789a59e503b91505e7b306 | a7d003c967412f345f092f5d722ab520aa8a3c18 | refs/heads/master | 2020-08-05T14:08:11.342986 | 2019-12-14T09:49:12 | 2019-12-14T09:49:12 | 212,573,653 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,147 | cpp | CheckableModel.cpp | #include "CheckableModel.h"
CheckableModel::CheckableModel(QObject* parent)
: QAbstractListModel(parent)
{
}
int CheckableModel::rowCount(const QModelIndex& parent) const
{
Q_UNUSED(parent);
return m_items.count();
}
QVariant CheckableModel::data(const QModelIndex& index, int role) const
{
Q_ASSERT(i... |
62149dd22e942f26c446dea2596e4e0054a0f940 | 5ad92e61fd0b5b238a95b922e111cbae79584e1b | /src/Plugins/NodeDebuggerPlugin/NodeDebuggerModule.cpp | 57a7aba52eccf9b5860412798e78fc8715845c4e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hsjsjsjdjwksks/Mengine | f44022d19411ff67514de5efe2ef166a63189b85 | 41c659ccf76236ee8cb206b8aa6849aa83f8ca26 | refs/heads/master | 2022-12-16T23:29:25.644129 | 2020-09-15T22:25:25 | 2020-09-15T22:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 59,098 | cpp | NodeDebuggerModule.cpp | #include "NodeDebuggerModule.h"
#include "Interface/OptionsServiceInterface.h"
#include "Interface/PlayerServiceInterface.h"
#include "Interface/RenderServiceInterface.h"
#include "Interface/RenderSystemInterface.h"
#include "Interface/ApplicationInterface.h"
#include "Interface/ResourceServiceInterface.h"
#include "I... |
2ac25c79192d7a7ad971b532a7135e3210bf0ca1 | 7e095e3c2d644f1e3b6128784a55a0e25eb2f15f | /test/TestSubscriber.cpp | 4e20c143577cd32e9dcc72a18afb5c0451ca7b8a | [
"Apache-2.0"
] | permissive | furuholm/AltRxCpp | 1bc35252dfe1c6b700174a4587e87c44f7ad7925 | 62a8dc892724ec463fc715f162cfdc9209e390a0 | refs/heads/master | 2016-09-06T12:12:08.510505 | 2014-10-13T06:20:18 | 2014-10-13T06:20:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 420 | cpp | TestSubscriber.cpp | #include <gtest/gtest.h>
#include "rx/Subscriber.hpp"
namespace {
TEST(Subscriber, ReferenceEquality)
{
auto s1 = Subscriber<int>([](const int& x){
// do nothing
});
auto s2 = s1;
ASSERT_EQ(s1, s1);
std::list<Subscriber<int>> subscribers;
subscribers.push_back(s1);
auto it = std::find(s... |
0aed1d268d6e61e3bafe3e4baf7c7de439c34a07 | afb7006e47e70c1deb2ddb205f06eaf67de3df72 | /third_party/aom/third_party/libyuv/include/libyuv/scale.h | e586b66cc7cde4ffd8e83c6e5967a74dbbed01e4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | marco-c/gecko-dev-wordified | a66383f85db33911b6312dd094c36f88c55d2e2c | 3509ec45ecc9e536d04a3f6a43a82ec09c08dff6 | refs/heads/master | 2023-08-10T16:37:56.660204 | 2023-08-01T00:39:54 | 2023-08-01T00:39:54 | 211,297,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,359 | h | scale.h | /
*
*
Copyright
(
c
)
2016
Alliance
for
Open
Media
.
All
rights
reserved
*
*
This
source
code
is
subject
to
the
terms
of
the
BSD
2
Clause
License
and
*
the
Alliance
for
Open
Media
Patent
License
1
.
0
.
If
the
BSD
2
Clause
License
*
was
not
distributed
with
this
source
code
in
the
LICENSE
file
you
can
*
obtain
it
at
ww... |
e21bb5a0ce75228f24f1f0ca11d7f1867a08a288 | 630e4e524d83b56a4c2877bfab1a3decd7c5bbc0 | /Arduino_Serial_RGB.ino | 01262ee2b78eae015d7317b38e9de0f39e596f02 | [] | no_license | henrymound/RGB-Arduino | 13479bb0f9d7651b6dd103964f9a652f7151adda | cd6d49ff36a59545f8aac157ebde73055ade6a45 | refs/heads/master | 2021-06-18T06:41:37.835799 | 2017-01-08T06:50:40 | 2017-01-08T06:50:40 | 15,353,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,498 | ino | Arduino_Serial_RGB.ino | #include <Adafruit_NeoPixel.h>
#include <SoftwareSerial.h>
#define PIN 6
SoftwareSerial impSerial(10, 9); // RX on 8, TX on 9
String code = "";
String prevCode = "";
String type = "";
String where = "";
boolean isRed = false;
boolean isBlue = false;
boolean isGreen = false;
int r = -1;
int g = -1;
int b = -1;
int c... |
5c1602958a47e2693c24f9ca3ae489077a706c66 | cd99ca9461435d1417cb146d966e54272fbcc7ad | /3rd party/maxsdk/samples/maxscript/mxsagni/mxs_variables.cpp | 755ea2d168133f589a0b3451f0781012b163e7c3 | [] | no_license | mortany/xray15 | eacce7965e785dd71d1877eae25c1f9eff680eec | 72a13fb24e9b388850bc769427c231da8f599228 | refs/heads/master | 2020-08-02T20:45:23.493981 | 2019-10-14T18:48:48 | 2019-10-14T18:48:48 | 211,499,718 | 0 | 0 | null | 2019-09-28T12:50:47 | 2019-09-28T12:50:46 | null | UTF-8 | C++ | false | false | 7,372 | cpp | mxs_variables.cpp | /**********************************************************************
*<
FILE: mxs_variables.cpp
DESCRIPTION:
CREATED BY: Larry Minton
HISTORY: Created 15 April 2007
*> Copyright (c) 2007, All Rights Reserved.
**********************************************************************/
#include <maxscri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.