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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4345ceba0f3195ee546f859f66a21cd17d21a500 | c9e65ff00c69b38d92aa3494f353a01465c4e3bc | /AuthenticationController.h | 65aab96b4895e283a5614a7ae98d293a554f52c6 | [
"MIT"
] | permissive | VeronikaDmytryk/UserAuthentificationController | 14f4412df9465f0e8549305451243697d974fe45 | 3471e933c8b2b2fc394e4f4143405442ed5bb23f | refs/heads/master | 2020-09-14T07:35:23.699526 | 2019-12-06T01:18:02 | 2019-12-06T01:18:02 | 223,066,795 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,941 | h | AuthenticationController.h |
/*
Author: Veronika Dmytryk
Date: Fall 2019
Description: A definition of AuthenticationController class
*/
#ifndef CONTROLLER_H
#define CONTROLLER_H
#include <iostream>
#include <string>
#include "RegistrationModule.h"
#include "LoginModule.h"
using namespace std;
class AuthenticationController {
... |
af36c6ec5dea82fcd6a187692a4fbf3d3d0848bd | 1f83a9f585d94df5d797c18097e12b0296b0e5a3 | /src/AccessMessageMetadata/ev42/ev42_Extractor.cpp | 022c3c3a9cda33132d423f049f9ccf41f6997f34 | [
"BSD-2-Clause"
] | permissive | ess-dmsc/kafka-to-nexus | 75f1de21732d4d1afe1c0c1bd7ee8cefe79a0b2e | cc883d4eeb7095224c000c2987918fe2bce10ba7 | refs/heads/main | 2023-08-14T03:35:09.174014 | 2023-08-01T14:26:24 | 2023-08-01T14:26:24 | 81,435,658 | 2 | 6 | BSD-2-Clause | 2023-08-31T08:18:08 | 2017-02-09T09:55:55 | C++ | UTF-8 | C++ | false | false | 1,223 | cpp | ev42_Extractor.cpp | // SPDX-License-Identifier: BSD-2-Clause
//
// This code has been produced by the European Spallation Source
// and its partner institutes under the BSD 2 Clause License.
//
// See LICENSE.md at the top level for license information.
//
// Screaming Udder! https://esss.se
#include "ev42_Ex... |
f9066ad2fc205d2b54d0a29fac1177d3dcb06056 | fd87f3a14a04ccefa817b02bc48173668428dfeb | /include/IMvector.h | 5d011979c16f3da1df791fd7a09bfa4c7d0ec9d6 | [
"Apache-2.0"
] | permissive | TimerChen/Tank-Plus | f78bc7e0f13ddff9607cd661a5e34ae897a05c96 | 5e9695a23644f1d48eb84c3c54874c98a7870e2a | refs/heads/master | 2021-01-19T04:32:46.964665 | 2016-08-21T15:08:00 | 2016-08-21T15:08:00 | 65,307,386 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,336 | h | IMvector.h | #ifndef IMVECTOR_H
#define IMVECTOR_H
#include "IndexManager.h"
#include <stdexcept>
namespace GAME
{
template<typename T> class IMvector
{
private:
std::vector<T> value;
IndexManager im;
public:
int insert(const T &x)
{
int id = im.GetNew();
if (id >= value.size())
value.p... |
01a8a9053a2b76ecb7b372119935117706730c69 | 8fbc0a30921bee6ec0161b9e263fb3cef2a3c0a4 | /bzoj/1925.cpp | 1067c4930f00d7a81607f83313b44aa3b67e99c8 | [
"WTFPL"
] | permissive | swwind/code | 57d0d02c166d1c64469e0361fc14355d866079a8 | c240122a236e375e43bcf145d67af5a3a8299298 | refs/heads/master | 2023-06-17T15:25:07.412105 | 2023-05-29T11:21:31 | 2023-05-29T11:21:31 | 93,724,691 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,362 | cpp | 1925.cpp | #include <bits/stdc++.h>
using namespace std;
int n, p, f[2][5000];
int main(){
scanf("%d%d", &n, &p);
f[1][1] = 1;
for(int i = 2, k=0; i <= n; i++,k^=1)
for(int j = 1; j <= i; j++)
f[k][j] = (f[k][j-1]+f[!k][i-j])%p;
printf("%d\n", (f[n&1][n]<<1)%p);
}
/*โญโฌโใโโฎโโใโโโฎโโฌโโโโโญโโโฎใโใใใใโญโโโฎโโโโโโใโฎโโโฌโฎโโโฎใใใโโคโโผโ... |
3aa68ab9a196b6bc554d3f938fe974647e7a970c | 810fcadbb217b1e7fd58c68f576ca205218ab1e7 | /Media/VoIP/Nequeo.Sip/Nequeo.PjSip/Nequeo.PjSip/ConnectionMapper.cpp | 34e0273abc9d065cb2a973a857a9df0e0f15024b | [
"MIT"
] | permissive | drazenzadravec/projects | ac0706d67de944b6ac5cd74798e3af3588446c0d | 8b7f1653c70c2104462b8c1660175caf96e80885 | refs/heads/master | 2021-08-10T21:42:26.366786 | 2021-01-02T03:57:29 | 2021-01-02T03:57:29 | 56,288,488 | 5 | 4 | MIT | 2020-07-07T03:52:39 | 2016-04-15T03:34:33 | JavaScript | WINDOWS-1252 | C++ | false | false | 27,789 | cpp | ConnectionMapper.cpp | /* Company : Nequeo Pty Ltd, http://www.nequeo.com.au/
* Copyright : Copyright ยฉ Nequeo Pty Ltd 2015 http://www.nequeo.com.au/
*
* File : ConnectionMapper.cpp
* Purpose : SIP Connectio nMapper class.
*
*/
/*
Permission is hereby granted, free of charge, to any person
obtaining a copy of thi... |
6e73c95abac42200b5266b1b0895c6e89e8e921f | 105097a2d4218219314dcbc07357c342be669345 | /Examples/Template/num_to_str.cc | a35c7c020de2d691be2f5278a8f02693fb141040 | [] | no_license | Chris7462/Cpp-project | be39c44942a9ff7b68481227dc58b0db84c8c7cd | d4692f22b8d18a8f48a649d7c1ced1834d769d15 | refs/heads/master | 2020-02-26T15:32:41.104422 | 2019-12-23T01:54:32 | 2019-12-23T01:54:32 | 70,015,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | cc | num_to_str.cc | #include <iostream>
#include <sstream>
#include <string>
template <typename T>
std::string num_to_str(const T& x){
std::ostringstream number;
number << x;
return number.str();
}
template <typename T>
T str_to_num(const std::string& foo ){
T num;
std::istringstream(foo) >> num;
return num;
}
int main(){
... |
28ca3c40acd1c5fec5a0a4a2204b579f5e6acb23 | bcf138c82fcba9acc7d7ce4d3a92618b06ebe7c7 | /gta5/0xF0BC12401061DEA0.cpp | ab27285b367c0771bd4f05a39d5a706874ee6549 | [] | no_license | DeepWolf413/additional-native-data | aded47e042f0feb30057e753910e0884c44121a0 | e015b2500b52065252ffbe3c53865fe3cdd3e06c | refs/heads/main | 2023-07-10T00:19:54.416083 | 2021-08-12T16:00:12 | 2021-08-12T16:00:12 | 395,340,507 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 886 | cpp | 0xF0BC12401061DEA0.cpp | // agency_heist3a.ysc @ L129206
void func_956()
{
switch (iLocal_4843)
{
case 0:
if (func_598(PLAYER::PLAYER_PED_ID(), 126.562f, -737.4702f, 235.1521f, "V_FIB04_st1", "v_fib04"))
{
AUDIO::TRIGGER_MUSIC_EVENT("AH3A_STAIRWELL");
iLocal_4843++;
}
break;
case 1:
... |
edaec04d8f78cae12b75b54e7d8b8e81dc1928cb | 5fc4c9bb1b41f899f54f21bb17d083d51de88e2d | /tecladito.cpp | 18735aa93c03512eeaa359ea18702856c1c3be1e | [] | no_license | cosimani/kronos | 9b3464b1e1007b09c80b8ec7feb4c2f5dfa8a0a2 | ae9caaea5f21d803052e8c3c4aa97c11c719f110 | refs/heads/master | 2021-01-22T08:29:03.710546 | 2017-05-31T17:03:33 | 2017-05-31T17:03:33 | 92,619,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,829 | cpp | tecladito.cpp | #include "tecladito.h"
#include <QLine>
#include <QPoint>
#include <QFontMetrics>
Tecladito::Tecladito(QWidget *parent) : QWidget(parent),
num0( new Numerito( this ) ),
num1( new Numerito( this ) ),
... |
df048e53b5ca754e58477043767903c3f584f736 | 16498cac8fc2b8f14b425537cdf33d4b10971282 | /main.cpp | ad15e2efa8d03f9191bdd6c82b17d5c7cff9b0ed | [] | no_license | Preston12321/roman-numerals | a0e7e412d2358953213213edcd4f695a6ea627e9 | efc9f8b39c49ae5eb50fd55a1fb6ca1dd4d8a8f9 | refs/heads/master | 2020-03-19T01:12:26.529815 | 2018-05-31T04:14:28 | 2018-05-31T04:14:28 | 135,529,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,951 | cpp | main.cpp | #include <iostream>
#include <string>
#include <sstream>
#include <regex>
using namespace std;
int romanToInt(const string &input);
string intToRoman(int input);
int main() {
while (true) {
cout << endl;
cout << "1: Convert from roman numeral to integer" << endl;
cout << "2: Convert fro... |
329b8145b078a9c9fa2a4574d24047b0ac3418f0 | a6589aad075014bca394c8f5385ba948443eada6 | /include/shiny/compute.hpp | 8f725301ded0fadd43531c112f0a99c571547ca7 | [
"MIT"
] | permissive | omnigoat/shiny | ee6dbec6dd318297c0e57663a4ceee7b28859fc9 | e5ecaeaca7fdacf660939b2bb21de6e9f97b9463 | refs/heads/master | 2021-01-24T06:13:40.900853 | 2018-09-09T06:13:18 | 2018-09-09T06:13:18 | 7,682,780 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,134 | hpp | compute.hpp | #pragma once
#include <shiny/compute_shader.hpp>
#include <shiny/resource_view.hpp>
#include <atma/vector.hpp>
#include <atma/thread/engine.hpp>
namespace shiny
{
struct compute_context_t
{
compute_context_t(renderer_ptr const& rndr, bound_constant_buffers_t const& cbs, bound_input_views_t const& i... |
1af0d13c9be9bc747801433cdd41648598523e7a | a2e99cceafdd609532c725637749db6aedd7d9c6 | /JohnKuceraProject2/module3.cpp | 4ac16e446b0f6d85f95877b6968f377bdc52c1e0 | [] | no_license | johnkucera00/CMSC-330-Project-2-ExpressionInterpreter | e0e8d440401f4e9387b662dd8ff6768f1f9030c1 | 7885741f3bb781673a3ab8946e4e2528c340de26 | refs/heads/master | 2022-11-27T20:03:33.166284 | 2020-08-06T15:50:40 | 2020-08-06T15:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,821 | cpp | module3.cpp | /*
* File: module3.cpp
* Author: John Kucera
* Date: May 6, 2020
* Purpose: This C++ program is meant to read in arithmetic expressions from a
* file and encode them as binary trees. After the expressions are read in, the
* variable assignments are read in and the variables and their values of the
* variables ar... |
e1ac51ab2e30379b11816d8b8710cecb40c6012e | 208dc2c582bdbd41c511b5d1f01f3d31271ad593 | /src/mixsqp.cpp | ae7153a33c25b4f428c0b9c63295da054dde0e0c | [
"MIT"
] | permissive | stephenslab/mixsqp | 1f73033c758ef067a8ec0c3cdb53c94ea1d1ff09 | 0da946b1bda52e3efc91a84acabb9b8d1c15fb2d | refs/heads/master | 2022-12-17T03:00:40.185245 | 2022-11-16T02:35:10 | 2022-11-16T02:35:10 | 151,778,082 | 11 | 3 | NOASSERTION | 2019-07-02T03:33:15 | 2018-10-05T21:06:58 | R | UTF-8 | C++ | false | false | 13,341 | cpp | mixsqp.cpp | // This is included to suppress the warnings from solve() when the
// system is singular or close to singular.
#define ARMA_DONT_PRINT_ERRORS
#include "objective.h"
#include "mixem.h"
using namespace Rcpp;
using namespace arma;
// FUNCTION DECLARATIONS
// ---------------------
void compute_grad (const mat& L, const ... |
6c67e3097defe08878d8056623e5fe9f4f0001a3 | 94169f5aed668268231bed9c710f8878aff3a638 | /Toilet/Sleep.h | 55ae8b7e60ce608ee15a242aee8223bc1d3f5e29 | [
"MIT"
] | permissive | shark926/Toilet | c2b601a31b01fbdfd2815868921d92500dc216ad | 334dc8134cd88d0e39aeee2e36d6b321d00ec820 | refs/heads/main | 2023-01-30T10:34:50.389569 | 2020-12-14T12:55:23 | 2020-12-14T12:55:23 | 318,985,467 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 226 | h | Sleep.h | #pragma once
#include "MyGpio.h"
namespace Washlet
{
class Sleep
{
public:
Sleep(gpio_num_t gpio, uint8_t mode, int level);
~Sleep();
void Start();
void PrintWakeupInfo();
};
} |
eb11fd305353a96f2e34186d23c3df91dd8822a4 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /components/signin/core/browser/oauth_multilogin_token_fetcher_unittest.cc | a40df52a3d620983fae338994d4fa25dbb44f2d7 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | C++ | false | false | 9,400 | cc | oauth_multilogin_token_fetcher_unittest.cc | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/signin/core/browser/oauth_multilogin_token_fetcher.h"
#include <map>
#include <memory>
#include "base/bind.h"
#include "base/bind_h... |
cdc2a051219c5c219170f9311d9c29490441a648 | c708222fdabfdd97015c5e26f94098ecc0a54037 | /deps/djinni/example-test/generated-src/nodejs/NJSNodeInterface.cpp | c7b173f2cbdffb67937291887cced08bfcece329 | [
"Apache-2.0",
"MIT"
] | permissive | meriadec/ledger-test-library-nodejs | 1b0aebf5fbe336e391bb16852ea2533974963d5b | ffb503d12d9d1bdffc6255e3f36cb51cfe4a5022 | refs/heads/master | 2021-01-24T11:57:49.130099 | 2018-02-28T17:15:24 | 2018-02-28T17:15:24 | 123,107,896 | 0 | 0 | null | 2018-02-27T09:47:56 | 2018-02-27T09:47:56 | null | UTF-8 | C++ | false | false | 2,249 | cpp | NJSNodeInterface.cpp | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from example.djinni
#include "NJSNodeInterface.hpp"
using namespace v8;
using namespace node;
using namespace std;
int32_t NJSNodeInterface::getNodeVersion(const std::string & version)
{
//Wrap parameters
auto arg_0 = Nan::New<String>(v... |
46cf216020c4eea80eeda9f6beb003ac4bef39ea | ae911d1a299eae7e7b1f62a0a32a3e9f2ce535a5 | /src/SAIDA/DeepLearning/Supervised.h | 95e49e04c6ab9d51d7ee022948dec08b2a5d9451 | [] | no_license | dgant/SAIDA | 24631a7193bb06b5976e3fef52debbf885c7cd6c | 1f674f9e3559c44531ac235afeabebc8ae7005c9 | refs/heads/master | 2020-08-09T07:00:27.887011 | 2019-10-09T21:30:58 | 2019-10-09T21:30:58 | 214,028,422 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,027 | h | Supervised.h | #pragma once
#include "../Common.h"
#include "../UnitData.h"
#include "../SaidaUtil.h"
#include "../InformationManager.h"
#define SUPER Supervised::Instance()
namespace MyBot
{
class Supervised
{
Supervised();
~Supervised();
public:
static Supervised &Instance();
void update(Player p);
... |
789a9797e92dd564c7347cb8e1465a3c23327f67 | 956d99f3c58441c96e2f19565be3474377c9952c | /SolveCommand.cpp | 39334e8727aa41bdd67edb39aa597fa860d61109 | [] | no_license | coralrubilar/oopProjectMaze2D | 9458da575a8e787a599f75a767fa853a9be21b0a | 3a7e552cf2687792694df45145d96812d8d0fbc5 | refs/heads/master | 2022-12-04T12:21:38.827748 | 2020-08-25T20:08:21 | 2020-08-25T20:08:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 248 | cpp | SolveCommand.cpp | #include "SolveCommand.h"
void SolveCommand::doCommand(std::vector<std::string> tokens)
{
/*solve the wanted maze with : a-star or bfs and save the solution*/
if (tokens.size() != 3)
return;
m_model->solve(tokens[1], tokens[2]);
}
|
0c63f6e7d56fce4471d78b2f2dabc24feb46e1d4 | bc82865ffb1caf191a5b1537d5c6fa1f33a81fa5 | /src/loader.h | 6ff82c611bbe4fa719bb48d1ec5560afee2108ee | [
"Apache-2.0"
] | permissive | yytdfc/cpp-torch | de64f3d7cc332e36ab843aca14a1f26c27e2e75b | 8eebba4bece2811079d61a20f51f56b14094a729 | refs/heads/master | 2021-01-19T10:54:27.253638 | 2017-08-07T06:06:41 | 2017-08-07T06:06:41 | 99,531,797 | 4 | 1 | null | 2017-08-07T03:11:29 | 2017-08-07T03:11:29 | null | UTF-8 | C++ | false | false | 2,044 | h | loader.h | #pragma once
#include "../include/builder.h"
#include <cmath>
class object_loader
{
public:
object_loader();
std::shared_ptr<cpptorch::object> read_object(std::istream &is);
static int read_int(std::istream &is)
{
int v;
read_raw(is, &v, sizeof(int));
return v;
}
... |
376a593d6d990b1893147533468a85efd59e8231 | f90920085074e79a37048155750b80e5e884c5d2 | /tsrc/testdriver/siptester/src/TCmdGetConnectionState.cpp | 5ee476b71d7d68057378d5b6a5c7416eeb423e39 | [] | no_license | piashishi/mce | fec6847fc9b4e01c43defdedf62ef68f55deba8e | 8c0f20e0ebd607fb35812fd02f63a83affd37d74 | refs/heads/master | 2021-01-25T06:06:18.042653 | 2016-08-13T15:38:09 | 2016-08-13T15:38:09 | 26,538,858 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,215 | cpp | TCmdGetConnectionState.cpp | /*
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.h... |
cbc69b95797026fdddecebf30a4c73910d76fdfd | 07b73cd7a7a00829a3c234d73f9e14cdd1a774d9 | /lib/include/xnetwork/algorithms/assortativity/tests/test_correlation.h | cbd6bbf87924b4eef845814e6d25438b0986d170 | [
"MIT"
] | permissive | luk036/xnetwork | b70b0a27e46f9a78c82925786b35d9122ad28180 | 462c25da3aead6b834e6027f4d679dc47965b134 | refs/heads/master | 2021-07-23T18:42:16.184275 | 2021-07-13T10:41:07 | 2021-07-13T10:41:07 | 136,568,996 | 2 | 1 | MIT | 2021-06-29T06:43:39 | 2018-06-08T05:07:19 | C++ | UTF-8 | C++ | false | false | 3,459 | h | test_correlation.h | // !file C++17
from nose.tools import *
from nose import SkipTest
#include <xnetwork.hpp> // as xn
from base_test import BaseTestAttributeMixing, BaseTestDegreeMixing
from xnetwork.algorithms.assortativity.correlation import attribute_ac
class TestDegreeMixingCorrelation(BaseTestDegreeMixing) {
/// @classmethod
... |
ba08116a0c5dee1d6c1377ea14f84903cfc624d9 | d6370638707745153989568694fd0abfee78078a | /chap3/exec3_25.cpp | a06604e9ade3054b1b9f736ca2a716e5c2e4bc9a | [] | no_license | kuangtu/cplusplus | 087c6ef9af95962b44ff6377702f4a1c6ac71725 | 01d24df9f52da05bb3afbb786632ba09856b01a8 | refs/heads/master | 2021-06-13T02:47:19.913034 | 2020-04-02T14:12:00 | 2020-04-02T14:12:00 | 134,506,725 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | exec3_25.cpp | #include <iostream>
#include <string>
#include <vector>
using std::cin;
using std::endl;
using std::cout;
using std::string;
using std::vector;
int
main(int argc, char *argv[])
{
vector<unsigned> scores(11, 0);
unsigned grade;
while(cin >> grade)
{
if (grade <= 100)
{
++(*(scores.begin() + grade /10));... |
71d1e0c72bc1d43b2c80ba914f630e8638b00f7a | 17fe08a8e9fce9d0f71f1b6f28192cb7373ab88c | /zookeeper/server/persistence/FileSnap.cpp | 9e5da25892066c30ccc5aa3e8646aacf420edf02 | [
"Apache-2.0"
] | permissive | cxxjava/CxxZookeeper | dcf31c6638afc37c1ebe1ba4351b31c10d991364 | 149677c785627aff839b2102ab265c745882fa52 | refs/heads/master | 2021-01-25T13:23:45.102771 | 2018-10-25T17:33:33 | 2018-10-25T17:33:33 | 123,562,911 | 19 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 257 | cpp | FileSnap.cpp | /*
* FileSnap.cpp
*
* Created on: 2017-11-22
* Author: cxxjava@163.com
*/
#include "./FileSnap.hh"
namespace efc {
namespace ezk {
sp<ELogger> FileSnap::LOG = ELoggerManager::getLogger("FileSnap");
} /* namespace ezk */
} /* namespace efc */
|
7e31e19ddad4e44417151aec3a0a184dfc776594 | b990472f40baeb93934ae2287f7b42fd6cfb9c48 | /tests/tst_main.cpp | 189f3a56e09889abfc5ef4e112a28f0cf52f202e | [
"MIT"
] | permissive | lacriment/Hayyam | 30f930c4be718b803e5e813caf1cfaafe98b37d7 | 488f274944df61562e19b02145a6fdbcf7dc88b1 | refs/heads/master | 2020-12-31T04:55:39.872839 | 2016-05-26T20:35:38 | 2016-05-26T20:35:38 | 57,824,368 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | cpp | tst_main.cpp | #include <QString>
#include <QtTest>
class MainTest : public QObject
{
Q_OBJECT
public:
MainTest();
private Q_SLOTS:
void testCase1();
};
MainTest::MainTest()
{
}
void MainTest::testCase1()
{
QVERIFY2(true, "Failure");
}
QTEST_APPLESS_MAIN(MainTest)
#include "tst_main.moc"
|
a336bb299f09e0013c4775bc96054f31608ec94c | 1d050f9c44d5b671bfd2a0ca039f7c5ac4153186 | /DymonProject/DymonProject/swap.h | 777463c4c65fdc2e248c719e3cd0e00661b8434d | [] | no_license | haoyuli/DymonRepo | 7e724b1a1b03e073d56fb6d3b3096287bd95e2c6 | 3d867268c20e78cafc029d37a5fd8f597744ef4f | refs/heads/master | 2021-01-17T22:54:57.525673 | 2013-02-23T09:11:18 | 2013-02-23T09:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,152 | h | swap.h | //created by Hu Kun on 30 Nov 2012
//class for standard IRS with fix to floating legs in one Market.
//rates for fixed and floating in private data members are all in terms of annual rates
//rewrote again with cashflow constructs by Kun 16 Dec 2012
//revamped by Jianwei on 23/2/2012
#ifndef SWAP_H
#define SWAP_H
#incl... |
e9175b509513f7a8c7107f31b045250a05abcb9b | 7caaa47efceb78d0463797e7137b0b3b360261f9 | /School/c++/lab1/calculator.cpp | 65a1632be07988ba84d1893ff23b24884e4f5107 | [
"Apache-2.0"
] | permissive | kmykoh97/Basic-Programming-SJTU | cc41de600e4450aa3724579560c47f3538f5a354 | be3887c45b92e32427336ad4ff8252b63991d9f2 | refs/heads/master | 2022-01-06T08:23:16.968380 | 2019-05-15T03:55:35 | 2019-05-15T03:55:35 | 104,031,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,075 | cpp | calculator.cpp | /* Calculator by Meng Yit Koh
517030990022
Shanghai Jiao Tong University */
#include <iostream>
#include <cmath>
#include <string>
#include <iomanip>
using namespace std;
// do some definitions and declarations here
const string prompt = "> ";
const string result = "= ";
const char number = '8';
const char quit = 'q... |
2750cd0a053b1f10cf1eb7a1a4972f6c2fdf682f | 6d9505842ce8cc5f04273470da111db544d1ffef | /A. Matrix Game.cpp | 4d273641cdb15be944a8b7d63faa2cfae79de76e | [] | no_license | masudursourav/Codeforces-Slove | 78108f99c86532fcba403752d169d9eada4e4b64 | 673c1fdcef0af1d01c900335e6684cadebe60f57 | refs/heads/master | 2023-07-12T16:56:44.593392 | 2021-08-20T08:04:15 | 2021-08-20T08:04:15 | 364,823,899 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | cpp | A. Matrix Game.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
set<int>r,c;
int n,m,cu=0;
cin>>n>>m;
int a[n][m];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
cin>>a[i][j];
if(a[i][j]==1){
... |
005cb497101f87d0ffca6db2f434321ba9f68274 | 92507ab534e5428b83c2a48d218ad7ab84baddf2 | /771. Jewels and Stones/code.cpp | 39f5c0f14f8f20562bd36826d873c06f01098515 | [] | no_license | xyua0528/leetcode-easy | b80d6b71001e84c2d8ef7f0c3a1e6b7dba4a040f | ceea47da88b4669b7ff0512fccef05fa2db6042d | refs/heads/main | 2023-02-26T00:24:55.706440 | 2021-01-28T04:40:03 | 2021-01-28T04:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 325 | cpp | code.cpp | class Solution {
public:
int numJewelsInStones(string J, string S) {
int s[80] = {0};
int re = 0;
for(auto i : S) {
++s[i - 'A'];
}
for(auto i : J) {
if(s[i - 'A'] > 0) {
re += s[i - 'A'];
}
}
return re;
... |
19b8396a6d2220247dbb9dce6d600ebcbde4a584 | 67ed24f7e68014e3dbe8970ca759301f670dc885 | /win10.19042/System32/MiracastInputMgr.dll.cpp | fe0dcd3939c0a7c88114bb33870fe3e8b2f2be11 | [] | no_license | nil-ref/dll-exports | d010bd77a00048e52875d2a739ea6a0576c82839 | 42ccc11589b2eb91b1aa82261455df8ee88fa40c | refs/heads/main | 2023-04-20T21:28:05.295797 | 2021-05-07T14:06:23 | 2021-05-07T14:06:23 | 401,055,938 | 1 | 0 | null | 2021-08-29T14:00:50 | 2021-08-29T14:00:49 | null | UTF-8 | C++ | false | false | 228 | cpp | MiracastInputMgr.dll.cpp | #pragma comment(linker, "/export:DllCanUnloadNow=\"C:\\Windows\\System32\\MiracastInputMgr.DllCanUnloadNow\"")
#pragma comment(linker, "/export:DllGetClassObject=\"C:\\Windows\\System32\\MiracastInputMgr.DllGetClassObject\"")
|
e07c6c955f12b4d2dadfdd989d7d575de7ee9c3f | 07ee17f9fb57c0ccc9e4fe2c18410bd3f3eeec34 | /darkstar/SimObjects/Code/move.cpp | e1ca1febf3bd11394ab090c3a66de7c36c97140b | [] | no_license | AlexHuck/TribesRebirth | 1ea6ba27bc2af10527259d4d6cd4561a1793bccd | cf52c2e8c63f3da79e38cb3c153288d12003b123 | refs/heads/master | 2021-09-11T00:35:45.407177 | 2021-08-29T14:36:56 | 2021-08-29T14:36:56 | 226,741,338 | 0 | 0 | null | 2019-12-08T22:30:13 | 2019-12-08T22:30:12 | null | UTF-8 | C++ | false | false | 899 | cpp | move.cpp | //---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <sim.h>
#include "move.h"
void MoveLinear::update(SimTime dt)
{
pos.x += dt * vel.x;
pos.y += dt * vel.y;
pos.z += dt * vel.z;
}
void MoveAcc::... |
d6a7d255ce6ee52d6a9331c96bfe52f31bc29b69 | b5f796726dc14134bfd61f176cf8bb9b8093d276 | /POJ/POJ2406.cpp | ac4021eef8d76db196c687d8d535282bba234402 | [] | no_license | zjbztianya/ACMCode | bd3c46cddb2fadace5ace0099c2ba23803324916 | f7f1deced7a3a0773f577fbfdba0672834f5a26d | refs/heads/master | 2021-05-16T02:56:59.007684 | 2016-12-03T09:34:07 | 2016-12-03T09:34:07 | 18,875,924 | 4 | 0 | null | null | null | null | GB18030 | C++ | false | false | 594 | cpp | POJ2406.cpp | // POJ2406.cpp : ๅฎไนๆงๅถๅฐๅบ็จ็จๅบ็ๅ
ฅๅฃ็นใ
//
#include "stdafx.h"
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
#define MAXN 1000005
int f[MAXN];
char p[MAXN];
int main()
{
int n,j;
while(scanf("%s",p)!=EOF&&p[0]!='.')
{
int len=strlen(p);
f[0]=j=-1;
... |
a4e7920cd4a0d73fab1f00f7c6087d7899d8d09e | 76071ace3c434dc6f33faa458786f5117ea01ac3 | /d04/ex04/StripMiner.hpp | 341f9028caf5299e78e49b594c70328e350caea3 | [] | no_license | sayakura/42--PiscineCPP | d88bffd68bd64e8cb0f330018de0e9fd2857ddb9 | 9fc8e50f09d7c3791b5c8579268c647a0e2893cb | refs/heads/master | 2020-05-18T03:11:26.465077 | 2019-05-13T03:46:19 | 2019-05-13T03:46:19 | 184,135,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,239 | hpp | StripMiner.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* StripMiner.hpp :+: :+: :+: ... |
87e26ed1d4fe5d15f6363c7468622f838750ee52 | c01ab71f681efdeb9f4e7d52ed083745b6d42590 | /competitive_programming/Frequent_values/main.cpp~ | 917d5436f83e68f59ae2e97e1167596fe08cd997 | [] | no_license | anant-pushkar/competetive_programming_codes | 398a39c85a761c8d242f42f368933239a438ac06 | 127c67d7d4e2cef2d1f25189b6535606f4523af6 | refs/heads/master | 2021-01-20T11:57:07.528790 | 2014-11-14T08:29:21 | 2014-11-14T08:29:21 | 23,577,655 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,974 | main.cpp~ | /*
Project name : Frequent_values
Created on : Wed Sep 3 17:16:57 2014
Author : Anant Pushkar
http://www.spoj.com/problems/FREQUENT/
*/
#include<iostream>
#include<cstring>
#include<cstdio>
#include<deque>
#include<queue>
#include<utility>
#include<vector>
#include<climits>
#include<algorithm>
#include<stack>
using na... | |
63f828332c69ead2e7d47410d4e458ab61c4bf67 | 3678ea845d2411dceda100ec1a74eed39d90d36f | /LogicServer/GameService.h | 2935a023007e228d988e0bec4040f8e6a3a04603 | [] | no_license | FreeSky996/SimpleGameServer | c3befce742ed3355e48e595c27f5463dfaa8c74f | aff5629d1dbc37208690d31494fc498b873c9159 | refs/heads/master | 2023-03-23T17:05:59.473884 | 2020-12-17T09:37:31 | 2020-12-17T09:37:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,197 | h | GameService.h | #ifndef __GAME_SERVICE__
#define __GAME_SERVICE__
#include "./ServerEngine/EasyTcpServer.hpp"
#include "google/protobuf/message.h"
#include "./ServerEngine/DBInterFace/CppMysql.h"
#include "Agent.h"
class CGameService : public EasyTcpServer
{
private:
CGameService();
virtual ~CGameService();
public:
static CGameSe... |
c9030aa2150db22515a3567fad9e735adb73af2e | 1bebf24e3707026f070f1df66106bd8cd10eac7a | /Ex4/MlpNetwork.h | a377c9bb7717f56514a860bf8802b52ca3ee8bb6 | [] | no_license | Hadar933/C-CPP-Projects | 8d7b1da194210efd66f0aeb2b996b4db350fca33 | 96fe2df1d6d51794703cb3393909e2599bc55520 | refs/heads/master | 2023-06-26T10:53:32.033652 | 2021-07-12T20:10:48 | 2021-07-12T20:10:48 | 256,844,789 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,236 | h | MlpNetwork.h | //MlpNetwork.h
#ifndef MLPNETWORK_H
#define MLPNETWORK_H
#include "Digit.h"
#include "Matrix.h"
#include "Dense.h"
#define MLP_SIZE 4
#define R4_LEN 10 // size of r4 - last layer
# define START_IDX 0 // index of number guessed my MLP
# define START_PROB 0 // probability of MLP guess
const MatrixDims imgDims = {28, ... |
bb5546e6087b4344db4633e005a14b16dbb3aaa7 | 2fda9e8e3cce71f0b11c72df92d1b931b57ba572 | /tests/pxScene2d/test_external.cpp | fd245f6f6fda1df88fabc8051247e00c0fb6ac7c | [
"Apache-2.0"
] | permissive | mateusz-hobgarski-red/pxCore | 519385eabd37e23818c37b73577d232356001a22 | dddf99ed360c7fa4a98a40c92fc3d0ded864e841 | refs/heads/master | 2020-08-09T19:59:56.287360 | 2019-11-20T13:37:18 | 2019-11-20T13:37:18 | 214,161,586 | 1 | 0 | NOASSERTION | 2019-10-10T11:11:26 | 2019-10-10T11:11:23 | null | UTF-8 | C++ | false | false | 1,533 | cpp | test_external.cpp | /*
pxCore Copyright 2005-2018 John Robinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... |
6d51e4ae9278d346bb8a858d5f5d5e9d8e3eb656 | e77f8c0500790bbf5059b1e2dcfce1957a34dc2f | /CodeView/CodeViewPopup1.cpp | 005d573fcfc2c0db6a3297a24f26c5515d025bd3 | [] | no_license | pmosoft/CodeView | f5b7b69729501a6c3b8627a43b6d61084d0757a3 | 3944e29ae6c5960fb1eb9e06ec22ea2953b822ad | refs/heads/master | 2021-01-17T18:10:53.559409 | 2017-01-23T14:52:00 | 2017-01-23T14:52:00 | 71,216,217 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 645 | cpp | CodeViewPopup1.cpp | // CodeViewPopup1.cpp : ๊ตฌํ ํ์ผ์
๋๋ค.
//
#include "stdafx.h"
#include "CodeView.h"
#include "CodeViewPopup1.h"
#include "afxdialogex.h"
// CodeViewPopup1 ๋ํ ์์์
๋๋ค.
IMPLEMENT_DYNAMIC(CodeViewPopup1, CDialogEx)
CodeViewPopup1::CodeViewPopup1(CWnd* pParent /*=NULL*/)
: CDialogEx(CodeViewPopup1::IDD, pParent)
{
m_edit1... |
82c2550db9e851a82c7125a731923887bbc135e8 | 7aeafcf14c90a120b14afe0feac3775483f4bdd0 | /main.cpp | 4f29e468a4e87a3633191fff62db0203f72349a6 | [] | no_license | mattrouss/hash_code_2020 | a0d8da7a98c4980255cf3a0bfbf3eebbf9b75094 | 4c1f8b1e7acb1d83fb89b0eaff68005f4b718d19 | refs/heads/master | 2021-01-08T04:48:28.772789 | 2020-02-20T20:35:12 | 2020-02-20T20:35:12 | 241,917,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,198 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <numeric>
using namespace std;
using int_vec = vector<int>;
int library_id_count = 0;
struct Library {
int id;
int N;
int T;
int M;
int_vec books;
};
struct lib_ratio
{
Library l;
int ratio;
};
using lib_vectratio = vector<lib_ratio>;
b... |
9bbc23b75bd5901a169bd66226a126ba31745866 | a0337230a1b879e1cb4d7c864392a510fe99dd54 | /system/database/connections/statements/SQLiteStatement.cpp | 5d0635021a5032c0f7a662b000b39a8dbad9259e | [] | no_license | amrittb/lms-gtk | 4247dc9169a09695baf7d5449cdb732629980797 | 40362b60e7eac2b63e0e9d4de3860bbd27302524 | refs/heads/master | 2021-06-06T18:50:16.289186 | 2016-08-09T12:26:10 | 2016-08-09T12:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,075 | cpp | SQLiteStatement.cpp | #include <gtk/gtk.h>
#include <system/database/connections/statements/SQLiteStatement.h>
#include <system/database/Binding.h>
#include <system/facades/Facades.h>
namespace tuber{
SQLiteStatement::SQLiteStatement(sqlite3* connection) : m_connection(connection){}
sqlite3_stmt* SQLiteStatement::getRawStatement(){
re... |
8414a758713e37256b83cf0ab264de93a3948f32 | 895c9e22ca063119e5ddeeb99067b3089c190d31 | /OOPS/classes_datamember_fuction.cpp | 89d6df2fba6a834a8c65ea30b2aea71a4e42fb74 | [] | no_license | shivamgoel008/Data-Structure-and-Algorithms | 5c543877c6201d89de5a5393d748fa27025282b1 | 82b4694a92f8383ae867b98f2e0f2e6bfbe862b1 | refs/heads/main | 2023-08-22T20:06:20.270832 | 2021-10-09T06:02:04 | 2021-10-09T06:02:04 | 352,412,307 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | classes_datamember_fuction.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mod 1000000007
#define mp make_pair
#define pb push_back
#define set(a) memset(a,0,sizeof(a))
#define sort(a) sort(a,a+n)
#define fo(i,n) for(i=0;i<n;i++)
#define PI 3.1415926535897932384626
class car
{
public:
int price;
char ... |
539e1104b771c21532ecd218f79db954a87f6ab1 | d8d4de0f70cae2f76485681defadda4a23f969e4 | /grandchild.cpp | 022d71e12d5cc9a3d39d6c1b0b257ce436340273 | [] | no_license | jonathan-pasco-arnone/ICS3U-Unit3-07-CPP | fb3a89e1620247d94c0f9473bfc5c8cd70691a43 | 2b3bc2eacea79b2d04ec93591982ffb6bb8282e4 | refs/heads/main | 2023-01-20T05:52:42.766107 | 2020-12-03T18:11:46 | 2020-12-03T18:11:46 | 318,275,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 962 | cpp | grandchild.cpp | // Copyright (c) 2020 Jonathan Pasco-Arnone all rights reserved
//
// Created by Jonathan Pasco-Arnone
// Created on December 2020
// This program determines whether the user can date the grandchild
#include <iostream>
int main() {
// This function determines whether the user can date the grandchild
int age;... |
c859fedd5449251772108d5f41af95c76c79f21f | b39770295155ae515ee0ed397687a8f5fd85aa2c | /Sobrecarga_burbuja.cpp | 33a497bfe344c07ba9873f5f94995b46fd9109a9 | [] | no_license | Cristhian-Sierra/POO-C- | 406550fcd4903f2a5d54cedb05dfd78c83c98c2f | 1e3e8faac6b27d3d7f7bbd48f3c53fc2327900b4 | refs/heads/master | 2023-03-27T03:12:37.960517 | 2021-03-25T03:39:20 | 2021-03-25T03:39:20 | 351,298,949 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,619 | cpp | Sobrecarga_burbuja.cpp | #include<iostream>
using namespace std;
class uno{
public:
void leer(int,int*,int*);
void leer(int,float*,float*);
void leer(int,char*,char*);
void hacer(int,int*,int*);
void hacer(int,float*,float*);
void hacer(int,char*,char*);
void ver(int,int*,int*);
void ver(int,float*,float*);
void ver(int,char*,char*);
};
... |
db7d28dda90cd6b82541f433fc7bddc34437f99f | 58908b853019a16797de19eebca453988e200273 | /JobDu1041.cpp | 7d5d8d842fa1ef027b2cec9b8d0be109b8112dd3 | [] | no_license | BasicCoder/JobDu1 | 7b165c9caa490e35024899515047750448bddb06 | 00ec5a5d86df3857c6bbe23adce7b8e44ce6e481 | refs/heads/master | 2021-01-20T16:18:19.851151 | 2017-03-28T11:59:32 | 2017-03-28T11:59:32 | 82,774,776 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | cpp | JobDu1041.cpp | #include <iostream>
#include <stdio.h>
#include <algorithm>
#include <set>
#include <string.h>
using namespace std;
int a[1010];
int main(){
int n;
while(scanf("%d", &n) != EOF){
memset(a, 0, sizeof(a));
set<int> s;
for(int i = 0; i < n; ++i){
cin >> a[i];
s.insert(a[i]);
}
set<int>::iterator it;
... |
fd5778da6934825875ae80f1ee9465dc0adf34d5 | a59797fa7a1c193839549b9910253de0349b8f53 | /src/kfx/resources/ShaderManager.cpp | d34210ca221e485370c68600dce02f2fe7b1d9ce | [] | no_license | khan-22/kfx | 5d0ccba213098183742b39d81957568bb4858f6d | 3f1ceac410ac223af6854039e2a09b9b842a73f7 | refs/heads/master | 2020-12-03T00:04:07.469614 | 2017-09-04T14:18:15 | 2017-09-04T14:18:15 | 95,981,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,847 | cpp | ShaderManager.cpp |
#include "kfx/resources/ShaderManager.h"
#include "kfx/resources/FileUtil.h"
#include "kfx/resources/ShaderUtil.h"
namespace kfx {
Handle ShaderManager::loadShaderFromFile(const fs::path path) {
std::string shader_name = path.filename();
Handle found_handle = getShaderByName(shader_name);
if (found_handle != ... |
1c30cdb8aad0e6252f048e5730471e9aa59f27c3 | 84de9423c003e22631a549dd767f7f88006f73d5 | /tests/render/mipmap/TextureShader.h | 60135c33aced67a95cdf908056328cf08f84dd0b | [
"Apache-2.0"
] | permissive | Go0zx/NyuziProcessor | 7c23cdad06cff0e0d6f77264e54b1fa826231e91 | 35264d91dafbf0455e551e3e1f3cd1a0f429c991 | refs/heads/master | 2020-08-07T20:51:04.594123 | 2019-10-05T13:07:29 | 2019-10-05T15:27:20 | 213,583,543 | 1 | 0 | Apache-2.0 | 2019-10-08T08:04:20 | 2019-10-08T08:04:19 | null | UTF-8 | C++ | false | false | 1,663 | h | TextureShader.h | //
// Copyright 2011-2015 Jeff Bush
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... |
78cf9c76c546ecb8df3d3f5f0a840bba8c6babd9 | f83654206f28e58b5c7473b49a43336b477ee9e3 | /PETCS/Basic/hungry.cpp | 1a0166cb859b3d79a9447c27b9965dcfc9c5757c | [
"MIT"
] | permissive | TimothyW553/Competitive-Programming | 180c80105dab59942819217aef50b3832875f8f1 | 2d17e10fad597e148dc28ffb1dcfe5a5950ffe6d | refs/heads/master | 2022-12-20T05:00:32.120465 | 2020-10-15T17:13:21 | 2020-10-15T17:13:21 | 115,227,938 | 2 | 2 | MIT | 2020-10-15T17:13:22 | 2017-12-23T23:29:10 | C++ | UTF-8 | C++ | false | false | 931 | cpp | hungry.cpp | #include <bits/stdc++.h>
using namespace std;
bool tasty(pair<int, pair<int, int>> a, pair<int, pair<int, int>> b) { // b
return a.second.second < b.second.second;
}
bool filling(pair<int, pair<int, int>> a, pair<int, pair<int, int>> b) { // a
return a.second.first < b.second.first;
}
int N;
vect... |
d32ed5b8c70a642a77448831afab5ef5482e850c | e6559d3224fe992f7249d1b57a3e315da962f91a | /src/cutfunc.h | 3828a067f4db838f55b19c5cb032c58970b45063 | [] | no_license | YotaIshigaki/GPLUM-1.1 | aa0192eb850cfba77c287dda78fe4e88e29f09ff | 195b78f3654e24af47701e1f66449adf658b2562 | refs/heads/master | 2021-06-10T07:57:28.051510 | 2019-04-22T02:39:14 | 2019-04-22T02:39:14 | 179,237,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,210 | h | cutfunc.h | #pragma once
inline PS::F64 cutoff_f(PS::F64 y){
const PS::F64 g = EPGrav::gamma;
const PS::F64 g2 = EPGrav::g2;
PS::F64 y2 = y*y;
PS::F64 y3 = y2*y;
PS::F64 y4 = y2*y2;
PS::F64 y5 = y3*y2;
PS::F64 y6 = y3*y3;
PS::F64 y7 = y4*y3;
PS::F64 f = 0.0;
f =( -10.0*y7/3.0 +14... |
316ff3b6c5ff64f9f00e0bfb98cba38d527cb14a | 602dab0925af232f18be0c2fb9dddb287385bf3e | /hackerearth/warehouse.cpp | ae26bca1f11c27a021b05f0592eecf3c484075f6 | [] | no_license | srnit/codeon | c5af9cd3de6f5f7e2bd63251451fc1e1e3b2b23e | fa51c809d263fb99d947d58a1a838dd9e1c2e7ad | refs/heads/master | 2021-01-12T12:40:55.879728 | 2018-01-14T20:06:40 | 2018-01-14T20:06:40 | 69,899,399 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324 | cpp | warehouse.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int x,y,p,q;
int t;
cin>>t;
while(t--)
{
cin>>x>>y;
cin>>p>>q;
int difference1=abs(x-p);
int diff2=abs(y-q);
int ans=diff2+difference1;
int difference3=(difference1-diff2);
ans+=difference3;
if(ans%2==0)
cout<<ans<<"\n";
else
cout<<ans-1<<"\n";... |
ac2c86e19ebe4a09407607c25d8c22347ddb4526 | d2a258b02cb941d012273558f4b6c2281ca56eeb | /cpp/01_cpp_concepts/003_string/cstring001.cpp | a98e9e250bfe7f8abbd9b5a7610e28aa70d1b59d | [] | no_license | jitendrakr54/Learning | 7b379e4c015d47063d797042f4e83ffbdebef483 | 58e1443e91a644381e63bf9847c281043b23c5f8 | refs/heads/master | 2023-07-26T16:09:51.352594 | 2021-09-06T09:54:20 | 2021-09-06T09:54:20 | 391,670,709 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,067 | cpp | cstring001.cpp | #include <iostream>
#include <cstring>
// int main() {
// Point 1:
// you can initialize the string upon creation, but you can not assign values to it using the assignment operator after that!
// char myString[]{"string"};
// myString = "hello"; // not allowed
// char myString1[9] = "st... |
1aeeb2e3ea871f79afc43d16752d28b3dca0a3af | 2070459f4d7b6f54059986582f613ca5a1d4d4fb | /MZApi/Mapper.h | 5b58b7e24ff12e4cf5ce8f6944f7f221aeb40e93 | [] | no_license | TheEdward162/Apo-Light-Control | 8b9e6d6bd4bc9f07864e489df5c12a1c37803fc4 | ff9c90c662969871474a68f97e4ef17f6998434b | refs/heads/master | 2021-07-08T01:00:33.478971 | 2020-09-01T11:09:14 | 2020-09-01T11:09:14 | 176,382,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,018 | h | Mapper.h | //
// Created by klara on 14.4.18.
//
#pragma once
#include <stdio.h>
/**
@addtogroup unit
@{
*/
/**
@brief A class that handles the mapping of peripheral physical regions to virtual addresses.
**/
class Mapper {
public:
/**
* Constructor for Mapper.
* @param base The base region of the peripheral.... |
2cc1f383b10d07e9b6e809051ee94135dfcd6eb6 | 45d8a9ba1fe907a8b2f0bb128f4fed8d09cfa8ee | /src/blacknot/memory_win32.cpp | 3ec8aa671f419470e3415785ad18af18333c321d | [
"MIT"
] | permissive | home3d2001/blacknot | 2a33fc70b1a423603261bcd375ad779ab052d3b6 | 58f2bc4264aae8c4300159c33ac0929edf07d36c | refs/heads/master | 2020-03-10T03:59:42.864662 | 2015-09-05T21:34:49 | 2015-09-05T21:34:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,197 | cpp | memory_win32.cpp | //======================================================================
// This is part of Project Blacknot:
// https://github.com/yzt/blacknot
//======================================================================
#include <blacknot/memory.hpp>
//==================================================================... |
1556c590297535f8ba4dd5ace5fe8572bbf038c5 | e44143f9c414193afc563971f73bd00e86b6ac69 | /ABC006/B.cpp | 5cae00e8663991d6510dfc15c7b144f2adbff25b | [] | no_license | Kotaro666-dev/atcoder | 88b1452e43ee7ed0fa67d6e531d72012bbd995fb | 91b23815e2b1d48edd9390b2b7c666ac2f23946e | refs/heads/master | 2021-10-10T09:32:19.545393 | 2021-10-09T03:38:29 | 2021-10-09T03:38:29 | 240,242,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,411 | cpp | B.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* B.cpp :+: :+: :+: ... |
b34b0847882d2b91b451f393bd7e98f288a031dc | dc42a65f63ca8327ee74675c7606a9b6e3b39d40 | /TemplePlus/mainloop.cpp | 324bf97e327d0518056761ac0c3c8982a1a347c3 | [
"MIT"
] | permissive | anatoliy-savchak/TemplePlus | 03cda558de2fd30d34305b7e5b548d202ba97f76 | 50922bb14cc2d7dcf8fceeccf45c3b905c1b512f | refs/heads/master_old | 2023-04-28T12:01:06.205497 | 2021-09-25T13:03:51 | 2021-09-25T13:03:51 | 172,583,383 | 2 | 0 | MIT | 2019-02-25T20:56:01 | 2019-02-25T20:56:00 | null | UTF-8 | C++ | false | false | 17,343 | cpp | mainloop.cpp |
#include "stdafx.h"
#include <graphics/device.h>
#include <graphics/textengine.h>
#include <graphics/dynamictexture.h>
#include <graphics/shaperenderer2d.h>
#include <debugui.h>
#include "mainloop.h"
#include <temple/dll.h>
#include "mainwindow.h"
#include "tig/tig_console.h"
#include "tig/tig_mouse.h"
#include "ti... |
69c8e0a2e5d3419618b6185fb76590fbb2b67f1b | 7fc063e8af2daf7ff807e9f3d16f5005ca73ccc7 | /Lab (c++)/CS_Lab_Ans/Sit-In_2/Group.h | af99caf5e9a8aadc2e43f49479b0a26e063b5de0 | [] | no_license | boxme/cs1020 | 572f1b54ca3baf99da107dfc4a1b70e3efcd8790 | 5b5662e13aea008020c8c49a33522b47c18bc06b | refs/heads/master | 2021-01-22T05:33:43.384248 | 2013-11-30T13:46:14 | 2013-11-30T13:46:14 | 14,821,579 | 1 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 683 | h | Group.h | //
// Group.h
// helloworld
//
// Created by Desmond on 22/2/13.
// Copyright (c) 2013 Desmond . All rights reserved.
//
#ifndef Group_h
#define Group_h
#include "Person.h"
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
using namespace std;
class Group{
private:
int id... |
961e588a58b16fb46a8297b5e5b1f500bcafc4a1 | 485c4ccd99754a2fb7cd5b75fc8e97c80bbd4a6e | /wuzazu/Renderer.cpp | 23248573de5344ec60b4b0708dddc6b5f9c97f37 | [] | no_license | p9kim/wuzazu | 700eb630109aa8ce289d0c1c11afb812f77cacd0 | e0d33dc6817493b0c50c8fda73507627615c9fba | refs/heads/master | 2020-04-21T11:21:19.916429 | 2019-04-26T12:38:09 | 2019-04-26T12:38:09 | 169,521,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,207 | cpp | Renderer.cpp | #include "Render.hpp"
Render::Render(const char* title, int xpos, int ypos, int width, int height, bool fullscreen)
{
int flags = 0;
if (fullscreen)
int flag = SDL_WINDOW_FULLSCREEN;
if (SDL_Init(SDL_INIT_EVERYTHING) == 0)
{
cout << "SDL initialization success" << endl;
window = SDL_CreateWindow(title, xpos... |
db5693d03bb2149041fdc1949683f0d9c5910ea6 | 1ee1ef164d2568d3fc99c100c1464628ead29d4d | /PSS/LTESpecific/SRoHC/Code/Src/RohcDeCompRtpPktDecoder.cpp | 93098d8185b257407cb20c170b9f7bc952d41499 | [] | no_license | cen123456/shannon_s5000 | 0f2ec3ba5a8ad8343ec16d57440c2f8ec6bc035e | cf61944f3d2904fd4190ce3d3f9950c820907e4a | refs/heads/master | 2022-04-06T19:31:24.568193 | 2020-01-31T15:49:25 | 2020-01-31T15:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,016 | cpp | RohcDeCompRtpPktDecoder.cpp | Line 74: RohcDeCompRtpPktDecoder::CalculateTs
Line 85: [ROHC-DECOMP] TS_STRIDE is Zero
Line 99: [ROHC-DECOMP] Wrap Around Case for RTP SN
Line 111: [ROHC-DECOMP] May be out of order packet
Line 117: [ROHC-DECOMP] TS_STRIDE is Zero
Line 153: In function RohcRepairSnUpdates
Line 185: TS_STRIDE is Zero
Line 192: Wrap Aro... |
7644e6edfaf9115c48f2868aa2817867f407dcbb | 73b80a1074ad8b9999e4dd78c86a6baad32bfce5 | /Core/Shared/browserdlg.h | 9b9192debc2639aefb8e0e5a5bb61f4c1cdf8a78 | [] | no_license | abstractspoon/ToDoList_Dev | 25f463dea727b71ae30ca8de749570baa451aa13 | 29d038a7ff54150af21094f317e4f7c7d2dd118d | refs/heads/master | 2023-08-31T21:18:16.238149 | 2023-08-29T01:24:16 | 2023-08-29T01:24:16 | 66,343,401 | 87 | 26 | null | 2023-09-09T08:16:35 | 2016-08-23T07:19:50 | C++ | UTF-8 | C++ | false | false | 1,884 | h | browserdlg.h | #if !defined(AFX_BROWSERDLG_H__3AD7A73A_4A17_4625_92E9_F74C6D930C34__INCLUDED_)
#define AFX_BROWSERDLG_H__3AD7A73A_4A17_4625_92E9_F74C6D930C34__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// browserdlg.h : header file
//
#include "RuntimeDlg.h"
#include "WebBrowserctrl.h"
///////////////////... |
e64dc58eb2c4c1e29348c92ab21a5294cdae8430 | 82646fb7fe40db6dcdf238548128f7b633de94c0 | /nyoj/148.cpp | 3f704c450787c5d5b24eadf247946a56e022c180 | [] | no_license | jtahstu/iCode | a7873618fe98e502c1e0e2fd0769d71b3adac756 | 42d0899945dbc1bab98092d21a1d946137a1795e | refs/heads/master | 2021-01-10T22:55:47.677615 | 2016-10-23T12:42:38 | 2016-10-23T12:42:38 | 70,316,051 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,088 | cpp | 148.cpp | #include<iostream>
using namespace std;
const int MOD=10000;
void mult(int A[2][2],int B[2][2],int C[2][2])
{
C[0][0]=(A[0][0]*B[0][0]+A[0][1]*B[1][0])%MOD;
C[0][1]=(A[0][0]*B[0][1]+A[0][1]*B[1][1])%MOD;
C[1][0]=(A[1][0]*B[0][0]+A[1][1]*B[1][0])%MOD;
C[1][1]=(A[1][0]*B[0][1]+A[1][1]*B[1][1])%MOD... |
bea37b9c9afdc84ba09bd7c885e14e18bd0794da | 03f037d0f6371856ede958f0c9d02771d5402baf | /graphics/meshlab/src/meshlabplugins/filter_dirt/filter_dirt.cpp | 666e4345964bdc906017c35dd1c39bc6334518ad | [
"BSD-3-Clause"
] | permissive | hlzz/dotfiles | b22dc2dc5a9086353ed6dfeee884f7f0a9ddb1eb | 0591f71230c919c827ba569099eb3b75897e163e | refs/heads/master | 2021-01-10T10:06:31.018179 | 2016-09-27T08:13:18 | 2016-09-27T08:13:18 | 55,040,954 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,344 | cpp | filter_dirt.cpp | /****************************************************************************
* MeshLab o o *
* An extendible mesh processor o o *
* _ O _ *
* Copyri... |
e486cdb816da2ec3ba923317f8e1281a1e87fa0c | 7a3fb6fafb5dff31d998d8db529361d462acca1d | /Engine/Code/Engine/Rendering/LowLevel/VideoCardDescription.hpp | 7ccda1ed9e47024394f7c02ba5800dc00f169899 | [] | no_license | jholan/Kaleidoscope | 643cc65bdcf43cfac292137f08ba5789396d51dc | 5aa3c91c75d73c8ed3718c031ae449b6199e1d44 | refs/heads/master | 2020-05-23T08:55:00.707693 | 2019-06-26T20:05:08 | 2019-06-26T20:05:08 | 186,697,847 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | hpp | VideoCardDescription.hpp | #pragma once
#include <string>
#include "Engine/Core/Types.hpp"
#include "Engine/Rendering/LowLevel/D3D11PreDefines.hpp"
class VideoCardDescription
{
public:
// Composition
VideoCardDescription();
VideoCardDescription(uint index, const DXGI_ADAPTER_DESC& adapterDesc);
// Properties
const std::string& GetNa... |
ac6f8132c32496d13cc148e452945de18f458661 | fda0a8540382e038c932b280199c293a2581a4cb | /benchmarks/ubench/inline_tm.h | c7a69380f6dfb561d139eeadeb9a75a6ee17938a | [] | no_license | AbhishekUoR/llvm-transmem | a93cdc22da384e73120ca5cb70c5cad26c92d3ec | 600cd5eb6940d74127215e1bebe453140fa4f8a5 | refs/heads/master | 2020-08-17T06:01:30.557020 | 2019-09-21T19:39:33 | 2019-09-21T19:39:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,689 | h | inline_tm.h | #pragma once
#include <functional>
#include "../../include/tm.h"
#include "common/config.h"
// six functions are not inline
// lookup, insert, remove call 2, 4, 6 functions respectively
// when r == 34, this class is going to call those numbers of function equally
template <typename T> class not_inline_tm {
__attr... |
27c07c551cd3da17b3d4663dee6298b00e44632f | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /components/optimization_guide/decision_tree_prediction_model.cc | 4b1324e1709b0baece463a0c143ba57c663ef113 | [
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | C++ | false | false | 8,097 | cc | decision_tree_prediction_model.cc | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/optimization_guide/decision_tree_prediction_model.h"
#include <utility>
namespace optimization_guide {
DecisionTreePredictionModel... |
400400fab994c2119d810a0c370343dc3f5b50b4 | 80db239af828381855fab2553423ef7c9a775936 | /Client/Common/ZakanMove.cpp | 53ba328d12545f62c2c02c2e881858b33315a85e | [] | no_license | NalMak/Nalmak_PersonalProject | c4d703c5a1bb2cfd3c24a9e00f13cc35089881b0 | b992c2b6734798516210810f66561324958ed29d | refs/heads/main | 2023-04-30T04:40:51.396731 | 2021-05-23T22:23:04 | 2021-05-23T22:23:04 | 352,413,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | cpp | ZakanMove.cpp | #include "stdafx.h"
#include "ZakanMove.h"
ZakanMove::ZakanMove()
{
}
ZakanMove::~ZakanMove()
{
}
void ZakanMove::Initialize()
{
}
void ZakanMove::EnterState()
{
m_animController->Play("Zakan_B_Std_RunFront");
}
void ZakanMove::UpdateState()
{
if (m_info->GetTarget())
{
float distance = m_info->GetDistanceToT... |
48bcd9552f4ad74d197b1750a96d2a2487d0a780 | 19e3ec9d1d6c53599fefb492e881af10622a6f39 | /Aergis/MissingDependencyException.hpp | d70fa7a1abf44879f735fb984ff25826cc7d1e75 | [] | no_license | Agrabski/Aergia | 38ec921a15539ea7e4776e5df8870358f104ea17 | a4010e4ddb2263eb8caf5be301a8b0c738d82a42 | refs/heads/master | 2020-05-04T01:53:53.528718 | 2019-11-17T16:30:11 | 2019-11-17T16:30:11 | 178,726,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 428 | hpp | MissingDependencyException.hpp | #pragma once
#include <stdexcept>
#include <string>
namespace Aergia::Exceptions
{
class MissingDependencyException : public std::runtime_error
{
static std::string formatException( std::string const& assembly, std::string const& dependencyName );
public:
MissingDependencyException( std::string const& assembly,... |
c7a4af11bfdc0084add91c3afc1a073bda4c5f4f | a7ec9bc79b337a77875b7202bfb5f01c3fb79f9a | /Test_Ballistic/Kilinc2000.h | cb1cdb756fd39551b36c1410a6d82bbe20d4baa9 | [] | no_license | ugrrelaise/TrajectoryInterface | 70760fe1fe2a6f8d73e38c9b47b53ec312e7f63b | 8619fa87ad665e86d55ec30860fef0327d26652f | refs/heads/master | 2020-12-23T00:27:54.990822 | 2020-01-29T13:56:11 | 2020-01-29T13:56:11 | 236,975,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | h | Kilinc2000.h | #ifndef KILINC2000_H
#define KILINC2000_H
#include "Gun.h"
class LIB_BALLISTIC_EXPORT Kilinc2000: public Gun
{
public:
Kilinc2000()
{
gun_dragfunction = "G6";
gun_muzzle_velocity = 354.0;
gun_balcoefficient = 0.160;
gun_heightofsight = 0.0;
gun_gunelevation1 = 0... |
ef571200f84ea9a7c955e2ac075fac860fd7ada5 | 90f62b0a8cf6cf973fd6aad168bf247cf07939ca | /iteration2/src/position.h | f5703455ebebfa869391ebfe20de130df1f73294 | [] | no_license | cealvar/Robot-Game-Simulator | cb7c0298512ce31bebef36b2825cc5e3788d35be | bf3df35b8cc83173efd5c82535e5ac8e20c44195 | refs/heads/master | 2020-04-30T05:50:38.997011 | 2019-03-27T02:44:45 | 2019-03-27T02:44:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | h | position.h | /**
* @file position.h
*
* @copyright 2017 3081 Staff, All rights reserved.
*/
#ifndef PROJECT_ITERATION2_SRC_POSITION_H_
#define PROJECT_ITERATION2_SRC_POSITION_H_
/*******************************************************************************
* Includes
*******************************************************... |
3b2f2ba9cdfc9fbdeecdab355b5558bc8b2909aa | 14491d038c51779e51b1f888b98e3ffb46887893 | /Option.cpp | 3d0abdd4d7a2ced4e3a1233a4303914aa225d60c | [] | no_license | physics-paul/cpp-project | f4ed7be18d376093e0ced5ae4e6402a81ab4459e | 4be69d660730c3938d438e5d2c992d02a6f83a7f | refs/heads/main | 2022-12-30T00:14:51.671555 | 2020-10-19T23:53:13 | 2020-10-19T23:53:13 | 301,617,550 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,076 | cpp | Option.cpp | #include <iostream>
#include <cmath>
#include "Option.h"
#include <boost/date_time.hpp>
using namespace std;
using namespace boost::gregorian;
Option::Option()
{
// initialize option values.
strikePrice = 100;
assetPrice = 100;
riskRate = 0.05;
maturityTime = 2;
sigma = 0.10;
callPutFlag = 1;
}
Opti... |
28e42073e2e3b2b0ccefc5aa9983309046fc19e1 | c459fb8062c1beaf465384274cbdf30de10b4227 | /chartwindow.h | 42cf0407e7f3642fc7b9fb97c2d92b5c28814750 | [] | no_license | rntlqvnf/MCM_Simulator | fd521b38fd3c3344d8edb3c68a6e5504c2c50ecc | d9ee76b494f50de92b7f70f2b2f59454bebea33c | refs/heads/master | 2022-12-06T21:25:27.597507 | 2020-08-26T00:22:12 | 2020-08-26T00:22:12 | 290,353,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,081 | h | chartwindow.h | #ifndef CHARTWINDOW_H
#define CHARTWINDOW_H
#include "default.h"
#include "datacalculation.h"
#include "datareceive.h"
#include "soundmanage.h"
#include "switchbutton.h"
#include "dataformat.h"
#include "settingwidget.h"
#include "RangeSlider.h"
#include "graph.h"
#include "servertimer.h"
#include <QThread>
#include <... |
c3c18604e6f251dbce99d1a0227f297c4d898b80 | 4165ea367a64199b2bc874af00dd4997345ad3bc | /PreRequisites/Chakri.cpp | 13f5403079c73e4a0b46d44bc0e6dfff1d293ab6 | [] | no_license | yash04g/PlacementPrep | e5aaf1ff3c40098af74e66df0cb93a8c9a272fe1 | 0216c6f382850dd5e120e2b3d53870a4f5df2c3a | refs/heads/master | 2020-07-04T15:34:57.713339 | 2020-06-02T17:14:35 | 2020-06-02T17:14:35 | 202,325,848 | 2 | 2 | null | 2020-03-11T18:40:02 | 2019-08-14T10:10:57 | C++ | UTF-8 | C++ | false | false | 774 | cpp | Chakri.cpp | #include <bits/stdc++.h>
#include<unordered_map>
#include<unordered_set>
using namespace std;
#define ll long long int
#define vvi vector<vector<int>>
#define pb push_back
#define vi vector<int>
#define vll vector<ll>
#define fo(i,n) for(int i=0;i<n;i++)
#define Fo(i,k,n) for(int i=k;i<n;i++)
#define deb(x) cout<<#x<<"... |
d15f948fa22a74d4639cb27ec487526f4054b7bd | 1301fbebaa9a706da1de44dd4ee8c6a2389a3214 | /CppBasics/ch04/ch04cl09.cpp | f748f4611cb326a5003ce4c7aea1f4725106382d | [] | no_license | c0untzer0/CppClasses | 251b641a996574ce2ff68e99d11769389f646af0 | 36cdfb8a1dd7db5e5db1a81b281f4fb15346d159 | refs/heads/master | 2020-06-09T00:35:16.989148 | 2015-10-26T23:03:45 | 2015-10-26T23:03:45 | 41,121,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | cpp | ch04cl09.cpp | //
// Created by pjcabrer on 10/17/15.
// Copyright (c) 2015 Johan Cabrera. All rights reserved.
//
// Listing 4.9 - demonstrates the conditional operator
//
#include "ch04cl09.h"
#include <iostream>
using namespace std;
int main() {
int x, y, z;
std::cout << "Enter two numbers.\n";
std::cout << "First: ";... |
a7233865c216d0af7fdc154ce21354e56657c902 | a1cd77c3fcc6b48ec49dadfaf96ca6a578a22501 | /Code_mikroC/MyProject.cp | 0721b39fc35039fe0ed8eb0eac22a237d76671b1 | [] | no_license | thiphan94/Distance-meter-using-HC-SR04-Ultrasonic-Sensor-with-PIC18F45K22-Microcontroller | c47c047abdb0c738db9aeb56ca67cab568c93a3f | c53c7dce48ff177f17b935e5791faab45553a84d | refs/heads/main | 2023-04-19T14:16:27.881669 | 2021-05-15T09:04:17 | 2021-05-15T09:04:17 | 367,584,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,803 | cp | MyProject.cp | #line 1 "C:/Users/Public/Documents/Mikroelektronika/mikroC PRO for PIC/Examples/Projet_Thi/MyProject.c"
void afficheChiffre(char chiffre,int position){
LATA = 0x01 << position;
switch(chiffre){
case 0:LATD0_bit = 1;LATD1_bit = 1;LATD2_bit = 1;LATD3_bit = 1;
LATD4_bit = 1;LATD5_bit = 1;LATD6_bit = 0;LATD7_bit = 0... |
369d6e99f8a4af9406bce37e7392de9b14f151ae | c8fdaf321b29dc884b2ded676c6e33c29989690f | /src/logica_Validator.cpp | 90b8004188b407691e4fa820cd0bd0d7532c41dc | [] | no_license | meister4ever/mi-biografia | 88543265ac0c03591264136671f2e81aaef880ed | faa693b34553c8d8f2e186f1d7cc9672c8cfc728 | refs/heads/master | 2020-05-30T11:41:04.321597 | 2014-06-29T03:00:25 | 2014-06-29T03:00:25 | 32,522,889 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 736 | cpp | logica_Validator.cpp | #include "logica_Validator.h"
#include <iostream>
#include <sstream>
#include "logica_Utils.h"
int Validator::validateOpcion(std::string op){
std::stringstream s(op);
int i;
if ( (s >> i).fail() || (i<0 || i>16)){
return 0;
}else{
return i;
}
}
int Validator::validateHeader(std::... |
f59c8d6d2b783ab6fe5938d1fa290faa83a7e118 | 0886566578f5c0bcc799e9b15d310222204b89d1 | /Laboratorio 6/Lab6_Codeblocks/src/Calcular.h.cpp | 4c92ab68d8e3b2a00ad4768a02ddf856d5ce8d75 | [] | no_license | Gerardo11011/Calidad_Laboratorio | 72a5e2d44888a034743c80098e2e863c98f955d3 | d14603db8a53e2af9b364a185204fa5e8b9fcf5c | refs/heads/master | 2020-04-28T19:48:47.708332 | 2019-05-08T03:59:10 | 2019-05-08T03:59:10 | 175,523,038 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 107 | cpp | Calcular.h.cpp | #include "Calcular.h.h"
Calcular.h::Calcular.h()
{
//ctor
}
Calcular.h::~Calcular.h()
{
//dtor
}
|
e7aa0d6c691c1c5bd9ee68c7990e27ad0a8f3b4f | 596e5fb3a205e846771ef1c0c7c285dc5856af93 | /Week 1/pairwise.cpp | 05eb92a7a8a13ad7f192f258358d169e0cf8cf0d | [
"Apache-2.0"
] | permissive | tanishqsngl/Data-Structures | c5385b77c5444ecefebb0c9ff7c8adfeae8f42a5 | fce9c9777f3c500194761b3d31727517e09ba224 | refs/heads/master | 2021-04-06T11:51:36.241678 | 2018-08-20T05:39:00 | 2018-08-20T05:39:00 | 124,389,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | cpp | pairwise.cpp | #include <iostream>
#include <vector>
using std::vector;
using std::cin;
using std::cout;
using std::max;
int MaxPairWiseProduct(const vector<int>& numbers)
{
int product=0;
int n=numbers.size();
for(int i=0; i<n; ++i){
for(int j = i+1; j<n;++j){
product = max(product, numbers[i]*numbe... |
25dfaf3f57671bd949f59eb9d8a48a72f32e160b | 013e7f1f7481e4def02223b0b8f98334a538572d | /src/main.cpp | 4d8b85471622906393991a6e22cb969a5a77b78d | [] | no_license | hapakj/nonogram-solver | befe4e0267aed5387e464f1fc542022f53bc47d0 | b1fa04fffbf80a69307e6a059498967655776b42 | refs/heads/master | 2023-02-08T18:59:07.987582 | 2021-01-04T00:50:48 | 2021-01-04T00:50:48 | 312,948,193 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,132 | cpp | main.cpp | #include "puzzle.h"
#include "puzzle_solver.h"
#include <filesystem>
#include <iostream>
#include <fstream>
int main(int argc, char** argv)
{
std::string working_directory = ".";
if (argc > 1)
{
working_directory = argv[1];
}
std::vector<std::filesystem::path> puzzle_pathes;
for (con... |
6e0f723554f7e46249393d4120533cf795bf7107 | 42c9fc81ffbdb22bfde3976578337a1fe5f17c2a | /transform/DepthEstimate/pnp/dense_mono/build_depth_test.cpp | 438ac337cf331993fec2c5fff426f6590284958c | [
"MIT"
] | permissive | LiuFG/UpdatingHDmapByMonoCamera | 988524461287bfa8b663cba756a787e4440268ef | dc8f06795a12669da1a8096e38851f78b2e26a62 | refs/heads/master | 2022-06-01T08:33:53.034821 | 2020-04-26T05:32:38 | 2020-04-26T05:32:38 | 258,131,871 | 0 | 0 | MIT | 2020-04-26T05:32:43 | 2020-04-23T07:49:14 | Python | UTF-8 | C++ | false | false | 6,149 | cpp | build_depth_test.cpp | #include <iostream>
#include <vector>
#include "build_depth.h"
#include "consts.h"
#include "ReadHDMap.h"
int main (int argc, char** argv) {
if (argc != 8) {
cout << "Usage: build_depth_test curr_index path_to_test_dataset" << endl;
return -1;
}
// inputs
const int ref_gps_index = atoi... |
bb1ed18264815be7031b0ff7c8ada90042aa5fa7 | 2a8ebb0015dd8f6a70bcd2a39d8798bb8ed3d676 | /src/cpp11/Map.cpp | 36fe422c3a73a76a6faf03cada9c9084a5a85cc3 | [] | no_license | lllkc/cpp-practice | 1acc9693e745203c532cbc9a77707754a79e1eea | e597fb05b1aea4aca170eb589f4ae0cfbf65552e | refs/heads/master | 2021-09-01T07:16:33.847378 | 2017-12-25T16:23:42 | 2017-12-25T16:23:42 | 104,764,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 881 | cpp | Map.cpp | #include <functional>
#include <iostream>
#include <string>
#include <unordered_map>
struct KEY {
int first;
int second;
KEY(int f, int s)
: first(f)
, second(s)
{
}
};
struct KeyHash {
std::size_t operator()(const KEY& key) const
{
using std::size_t;
using ... |
fa260c3e1e36f32d1f5e879cca3df7349be27586 | 0d162622629171f7b805a2ad41044c2433e5a188 | /CH6_LocalsAndGlobals/VariablesParameters.cpp | f3ce4e2605107be13dae5adc112678f0799116c0 | [] | no_license | RFI-CSI/CS1-Demos | 9987bdb952b6d2f1509f2b127dbbdbcc7023b58f | 2ddb7c82081970adb6b5bc09dbbcf2b796b8dd78 | refs/heads/master | 2020-04-09T15:23:59.406628 | 2018-12-04T21:54:43 | 2018-12-04T21:54:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,516 | cpp | VariablesParameters.cpp |
#include <iostream>
using namespace std;
//Function ProtoType(Declarations)
void myFunction1();
int myFunction2();
int myFunction3(int = 20, int=30);
void myFunction4(int &);
int Square(int);
float Square(float);
void myExitFunction();
//Global Variables
int X = 32;
int Y = 64;
int main()
{
//myFunction1();
//i... |
9dfe98f5549ab79055ae4a2e805453aaded96eec | 9da91e063e1330cb47e01fe6e1c1438b33110557 | /tools/driver-tool/imp_sam_dump.cpp | 95b74ef4a4fe1194ea9a0745f23d296944268e86 | [
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-ncbi",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rlpires/sra-tools | 3ffa2841d458ccb79ec256454b4b0b7341474c4a | 7277dd2d1f82412b9281646cfca40f1504cded65 | refs/heads/master | 2021-11-25T01:13:50.047692 | 2021-10-25T19:24:30 | 2021-10-25T19:24:30 | 190,575,604 | 0 | 0 | null | 2019-06-06T12:13:45 | 2019-06-06T12:13:44 | null | UTF-8 | C++ | false | false | 16,131 | cpp | imp_sam_dump.cpp | /* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United States Copyright Act. ... |
2b842767ee35544e529690086cccf17ce41b415e | ae68bec970bc779c9138caf18c6b81e1bb9c7e13 | /tools/calibration/test/test_utilities.cc | 49e98fa90fe3dd96f6a1a26c4e9af3b4b3fbefaf | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-only",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"MIT",
"LGPL-3.0-only",
"CC-BY-NC-4.0",
"GPL-3.0-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
... | permissive | Pedro-Roque/astrobee | 797195481fb7a59538bed99250895dce1970a0fc | a9aa0a7e9a7dd5a28c264acfd06ccde18103190a | refs/heads/master | 2022-01-19T08:06:40.320924 | 2021-12-07T23:51:41 | 2021-12-07T23:51:41 | 127,426,321 | 0 | 1 | Apache-2.0 | 2018-03-30T12:33:55 | 2018-03-30T12:33:55 | null | UTF-8 | C++ | false | false | 9,745 | cc | test_utilities.cc | /* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
*
* All rights reserved.
*
* The Astrobee platform is licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with t... |
6fabf91232b2cfb8e74727bc7a896837cb9cb3aa | 6f23e9b23f192168305200ba48de63e1b386faab | /c++/IM/src/server.cpp | a19edf8a3e70886b02295f9c4c4857264565e68a | [] | no_license | jolygit/code | 7379af9a1d2954d116316d8f87e4f0de9de7172c | fd6c31f44e83bcb5a68f34e13a0044a312b2dedd | refs/heads/master | 2021-01-18T23:51:39.494582 | 2017-08-01T21:44:32 | 2017-08-01T21:44:32 | 38,246,088 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,919 | cpp | server.cpp | /* include fig01 */
#include "serverProcessor.h"
int
main(int argc, char **argv)
{
int i, maxi, listenfd, connfd, sockfd,udpfd;
int nready;
ssize_t n;
char buf[MAXLINE];
socklen_t clilen;
int myOPEN_MAX = sysconf (_SC_OPEN_MAX);
printf("%d\n",myOPEN_MAX);
struct pollfd client[myOPEN_MAX... |
5a8905600ed4da844ef6d42424e826a83a8ce09d | 726df6fc883aa216b81f8e0682ec427febdbf89d | /FGNew/IPTFGApp.cpp | 557be88d8ae34b8ffbef7978a1c597035e3daf7d | [] | no_license | Qmax/QUTE | 48ac34384885558ea4f6310f122b2e4f6450853d | 09d65671d4280d6cd9b9f97243846708d7968cff | refs/heads/master | 2021-01-01T05:33:53.379760 | 2014-12-04T11:38:05 | 2014-12-04T11:38:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 136 | cpp | IPTFGApp.cpp |
#include "IPTFGApp.h"
QWidget* IPTFGApp::getFGApp(){
obj=new FG;
return obj;
}
Q_EXPORT_PLUGIN2(IPTFGAppInterface,IPTFGApp);
|
b18bff7b0a0d47436aa5ad31825a84a0b22e0270 | f20dcefaed51837c60429da518f80c765b72ca87 | /OpenGLFramework/lkogl/scene/components/link_component.cpp | 34d8ed62aeb9c3742650f1a88f78dd3904fbeafb | [] | no_license | ReiiSky/opengl-framework-1 | f77c63b6a23704ca6ffc38e3d1121bd6bc9e2b73 | bab262ec45951bdc5feae9bdc4f285431b75b652 | refs/heads/master | 2023-01-09T16:18:50.581266 | 2017-12-30T18:44:01 | 2017-12-30T18:44:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,336 | cpp | link_component.cpp | //
// link_component.cpp
// OpenGLFramework
//
// Created by Laszlo Korte on 25.08.14.
// Copyright (c) 2014 Laszlo Korte. All rights reserved.
//
#include "./link_component.h"
#include "../entity.h"
namespace lkogl {
namespace scene {
namespace components {
LinkComponent::LinkComponent(st... |
a4496e14ab778f964deb64d129f16c40579b39a4 | 016be6f22c7f599fd2eced2ded0f2812668a6051 | /hw_04_audio_data_process/src/ofApp.cpp | a211b57096b4487f1e0c4469182ebd4dbabde837 | [] | no_license | JerryWaaaaaaaa/jerry_advancedcc_2019 | d5aee28af4517535614381729b4dd08a22bf4a4a | 6a1250bed4867319631a7187e634a1c2beedd03b | refs/heads/master | 2022-02-23T02:31:25.618168 | 2019-10-07T01:42:06 | 2019-10-07T01:42:06 | 168,372,410 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,190 | cpp | ofApp.cpp | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
aud.setMultiPlay(true);
ofSoundStreamSettings settings;
sampleRate = 44100;
bufferSize = 512;
settings.setInListener(this);
settings.setOutListener(this);
settings.sampleRate = sam... |
5398c899d350ca125612ff09ad79f04b4dacf668 | 7c9136d87b8895ac6532ef2af58edf3ecc29d175 | /PSheetAvailOrders.cpp | bda67e362f461ce94a7a32c8c98d5c7afe13ecde | [] | no_license | khhubb/csda-new-ssb | 038d75858cba1e029f4f1315d6ebba95e5d9fb91 | 96eaf896ba6c91914f69671171f5488cf0fb5d3f | refs/heads/master | 2020-07-01T03:36:45.777439 | 2016-08-17T22:00:09 | 2016-08-17T22:00:09 | 74,102,071 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,474 | cpp | PSheetAvailOrders.cpp | // PSheetAvailOrders.cpp : implementation file
//
#include "stdafx.h"
#include "csda.h"
#include "PSheetAvailOrders.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include "OrderSelection.h"
#include "CastStringEditorMvc.h"
//////////////... |
8853fa3700c18f1d5a0fbc04aba2859f2a787c91 | cfac50855e6256c6927060463d036b2a8f647611 | /src/ast/node.hpp | 32161dce242b18677e5cb432798b1353018ef7d7 | [] | no_license | PJK/lisp | 1370a0b05ff41bc9b3a1e40afec5b6893a530f16 | e59195505b8e4d6377b301a9cf211495d685d2eb | refs/heads/master | 2016-09-08T01:57:20.950363 | 2015-02-28T14:29:39 | 2015-02-28T14:29:39 | 31,464,927 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 205 | hpp | node.hpp | #include <iostream>
#include <string>
#ifndef _NODE_HPP
#define _NODE_HPP
class Node {
public:
virtual ~Node() {}
virtual void print(std::ostream &, std::string, bool last = false) = 0;
};
#endif
|
c15e6ca0454b140bd0b92c3ee34f96bff514132c | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/svtools/workben/browser.cxx | ec1dd022e7158b4bbcb467229ce0c248759adbbe | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | permissive | apache/openoffice | b9518e36d784898c6c2ea3ebd44458a5e47825bb | 681286523c50f34f13f05f7b87ce0c70e28295de | refs/heads/trunk | 2023-08-30T15:25:48.357535 | 2023-08-28T19:50:26 | 2023-08-28T19:50:26 | 14,357,669 | 907 | 379 | Apache-2.0 | 2023-08-16T20:49:37 | 2013-11-13T08:00:13 | C++ | UTF-8 | C++ | false | false | 23,696 | cxx | browser.cxx | /**************************************************************
*
* 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 y... |
7564c26faa424a4fb3c428e9c13c8527f3c708a1 | 52f43816cfad34f99ada552c263c5d3912efdc6f | /Types/CUDATypes/Array2D.h | 320d64a86640fbf11b94a19eaf01c7676e9d53b4 | [] | no_license | SinisSem/MCSAS | cd706c914dac9970e05706af5cdfbc8092655bf5 | 7871bb3a6e651a392167ed40c9f718bcf677c2b3 | refs/heads/master | 2021-01-01T05:38:11.538731 | 2015-07-30T08:39:28 | 2015-07-30T08:39:28 | 34,770,018 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 935 | h | Array2D.h | #pragma once
#include "Data.h"
namespace MCSAS
{
namespace Types
{
namespace CUDATypes
{
template<typename Type>
class CArray2D :
public CData<Type>
{
private:
size_t array_size; // ะ ะฐะทะผะตั ะผะฐััะธะฒะฐ (ะฒ ะฑะฐะนัะฐั
)
size_t length0;
size_t length1;
size_t pitch;
public:
... |
40419e33c8e0eb7891ce3441c90f3be924f144bd | 17cbb65058a5d5883ba6275afd15c1556fe4f87b | /124_binary_tree_maximum_path_sum.cc | a69db0ae793986df3013f5e37c5510d7300b6976 | [] | no_license | yyzYLMF/myleetcode | 3d79b1606e6bc65509e0ebd329b50daf6f0669cd | cb85b775859d5793116ef859eefcd2f41b9e8834 | refs/heads/master | 2021-01-19T01:58:03.127188 | 2016-09-23T11:55:30 | 2016-09-23T11:55:30 | 28,772,034 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,651 | cc | 124_binary_tree_maximum_path_sum.cc | /*
* @yang 2015/3/29
*
* Given a binary tree, find the maximum path sum.
*
* The path may start and end at any node in the tree.
*
* For example:
* Given the below binary tree,
1
/ \
2 3
* Return 6.
*/
#include <iostream>
#include <cstdlib>
#include <climits>
using namespace std;
struct TreeNode {
... |
9455f72a062edc10a1c91b340199950e7da4235f | 41035c05b9c5d4ee464af493393de262c4243e89 | /src/exception.cpp | 4023ed59b53c55e9115beaa207ddb2efe76bdf96 | [] | no_license | kekimmo/tuk | 36d0fc9029f9cd3c4cf6a564d993d78104794624 | 0a0e85ecae44b1432b677bbc7b21960994ef1c8f | refs/heads/master | 2021-01-23T13:29:24.570853 | 2013-05-17T13:50:33 | 2013-05-17T13:50:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | exception.cpp |
#include "exception.hpp"
Exception::Exception (const char* file, const int line, const char* func, const char* fmt, ...) {
va_list ap;
va_list aq;
va_start(ap, fmt);
va_copy(aq, ap);
const char* prefix_fmt = "%s:%d %s(): ";
const int prefix_size = snprintf(NULL, 0, prefix_fmt, file, line, func) + 1;
... |
297932838a6718e6486d1568528eebb468c01964 | cf5b60492f74c289bbda7a79bce04f15f17eb0d6 | /ๆ /513.cpp | 86453d25c41793da73daeb89635f4504c7dd5782 | [] | no_license | RoseAlice2018/Leetcode | 8bfcf850baeda0a1be45e08e0b913b933f8bd519 | e3c713f3dab13f96efe13949d8b8f3be21a2fe9e | refs/heads/master | 2021-07-14T10:51:58.002714 | 2021-02-09T08:19:37 | 2021-02-09T08:19:37 | 290,232,050 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,210 | cpp | 513.cpp | #include<iostream>
#include<queue>
#include<stack>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
int findBottomLeftValue(TreeNode* root)
{
... |
1ef08877511177ad28a63f4d6401030ab4007bc2 | c4cb42103e9e30df177d2f7022c28edc5556b1bc | /src/depth_sources/ros_depth_source.h | 6ca7ff3da22689785f2ddf95e29773e8bd1c8261 | [
"BSD-2-Clause"
] | permissive | uscresl/dart | 8892e713be4ed8f42fd836006502cf28efca2e5e | b92256406a4cb3b6779352141a4040d61d0c6a68 | refs/heads/master | 2020-08-21T09:13:23.310840 | 2019-11-30T06:53:12 | 2019-11-30T06:53:12 | 216,128,917 | 0 | 0 | null | 2019-10-19T00:46:37 | 2019-10-19T00:46:37 | null | UTF-8 | C++ | false | false | 9,878 | h | ros_depth_source.h | /**
* Author: Yizhou Sheng
* Last Updated: Nov. 13, 2019
* A depth source that utilizes message received from a virtual camera
*
*/
#ifndef ROS_DEPTH_SOURCE_H
#define ROS_DEPTH_SOURCE_H
#include "depth_source.h"
#include <iostream>
#include <fstream>
#include <vector>
#include "util/string_format.h"
#include "... |
11672875f17aa4ce232bf03520dfe9fd3b71e468 | 1a2e89ca812b38168ba18b28c293b28a44b428d8 | /src/preproc.cpp | 81487d81eb636a2b74520e629abf25ba0d3a55ce | [] | no_license | olegv142/QMCalc | 652949075aa38e79e5ba446bafd912b30c9d7e13 | bc325861112eb9e5ade93d64a0144d99ca4d5488 | refs/heads/master | 2023-03-22T17:14:49.532897 | 2021-03-19T08:01:55 | 2021-03-19T08:01:55 | 291,442,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,304 | cpp | preproc.cpp | #include "preproc.h"
#include "express.h"
#include <stdio.h>
#include "compat.h"
DefineErrorMess( PP_SYNTAX, "Preprocessor syntax error" );
DefineErrorMess( PP_RPREQ, "Preprocessor missing )" );
DefineErrorMess( PP_ARGS, "Too many macro arguments" );
DefineErrorMess( PP_NOMACRO, "Macro not available" );
DefineErrorMe... |
f3e0868d231cc9ec60fcb0b065301444509ec0d6 | 1fe3f76e96c1634856df440c4de9ec9ecdc15933 | /src/oop/Object.cpp | a4b8977195099972846eb2dc01c711515c323431 | [] | no_license | Hitonoriol/Methan0l | 837a2caeb09caf01ca26a63390a3f7727417f2cc | 05b8f91cbc97033871d25e46c1fdf65d7329e15b | refs/heads/main | 2023-09-01T16:16:10.855969 | 2023-08-16T19:31:32 | 2023-08-16T19:31:32 | 411,303,045 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,900 | cpp | Object.cpp | #include "Object.h"
#include <iomanip>
#include <deque>
#include <memory>
#include <string_view>
#include <sstream>
#include <variant>
#include <expression/LiteralExpr.h>
#include <lang/Library.h>
#include <util/util.h>
#include <interpreter/TypeManager.h>
#include <interpreter/Interpreter.h>
#include <oop/Class.h>
#... |
700e30a38e7b12550351ef5fb48f76a3c7e37b76 | 23b1de5c92c816f3c663c8ceecad960135bd0808 | /src/busline.h | d7dee6d03f456e3fef197fb0ca6889ce2815dd67 | [] | no_license | read125/OfflineMapTest | d1f4c4149542aafaa9fe7736ea6ef42bff98ffdb | bc4b740649bcb2238804e14c10ff3b133997b6bf | refs/heads/master | 2022-02-26T10:39:15.006022 | 2019-08-13T04:56:16 | 2019-08-13T04:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,074 | h | busline.h | ๏ปฟ#ifndef BUSLINE_H
#define BUSLINE_H
/****************************************************************************
** @projectName OfflineMapTest
** QT Version 5.11.1
** This file is part of the OfflineMapTest project.
** @file busline.h
** @brief BusLine class
** @details Busline cl... |
59f2e8e666f6edf7b2f6e4b49ce278435221806c | 6d947cfdb02f5a45cd29fa0845a9beb2fea12e9d | /minimum-coins-dp.cpp | 3e5448bebf7e6895de7c5d2391b6ad6e5a4f196b | [] | no_license | direwolf91/data-structures-in-C- | 431dde72db744099395ecbbc6640ca544686e725 | b5782330137cd07a895a572284cca91c710cd920 | refs/heads/master | 2020-04-04T22:18:05.934469 | 2019-02-20T16:16:40 | 2019-02-20T16:16:40 | 156,318,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,201 | cpp | minimum-coins-dp.cpp | #include<iostream>
using namespace std;
int min_coins_for_change(int* coins, int size, int sum){
int** min_coins_array = new int*[size+1];
for (int i=0; i < size+1; i++){
min_coins_array[i] = new int[sum+1];
}
for (int columnIndex = 0; columnIndex < sum+1; columnIndex++){
for (int rowIn... |
50214b7cf3b7cdce67bf9214789fedf75d9a2b4e | d0fb2290d6dbb918ad1c902ae74f747eac7f9d44 | /webkit/tag/head.cpp | adfc6c6678b3e937a6b727ae8cf6d252cc150189 | [] | no_license | drWebber/qt-webkit | 81ec9c26ad24d800d9410a16ae91f314faaa96c9 | 78b610d55b3c5f26c45debc764ff9b2af7804b27 | refs/heads/master | 2020-04-10T08:59:54.446752 | 2018-11-25T10:34:10 | 2018-11-25T10:34:10 | 160,922,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | cpp | head.cpp | #include "head.h"
QString Head::name()
{
return "head";
}
QString Head::innerText()
{
return "";
}
|
3c2a66f76b008029aae6f19be0686a9ade1d4419 | f81454ab6fc641a03875cc8f2e72fcb991dc1574 | /libc/signal.hh | 0699b80658130a318f287fa5a6ea464df136a9e1 | [
"BSD-3-Clause"
] | permissive | nyh/osv | 90c4fb1e5902365982986f72d6c1a2d978735834 | ac3c6ccee92264c2cee875c389bc338c87310527 | refs/heads/master | 2023-04-27T08:48:54.527066 | 2015-02-24T16:20:19 | 2015-02-24T16:20:19 | 14,400,181 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 877 | hh | signal.hh | /*
* Copyright (C) 2013 Cloudius Systems, Ltd.
*
* This work is open source software, licensed under the terms of the
* BSD license as described in the LICENSE file in the top-level directory.
*/
#ifndef SIGNAL_HH_
#define SIGNAL_HH_
#include <signal.h>
#include <bitset>
#include "exceptions.hh"
namespace osv {... |
24f276c81f15bcd57fa5690db418aa9add5634a2 | 15811d2f5871967841136570bb7c6e42de95972f | /Utils/Utils/PersistorTest.h | e1d052526f1d4365e39ce31c61290908fe09bf05 | [] | no_license | branthony-92/UtilToolbox | 18b3469b5c8c6f616927a35c403eb24380c38c27 | bbef782864a6293a5970832a4b564256017f21ea | refs/heads/main | 2023-08-02T12:45:35.089689 | 2021-09-27T21:38:08 | 2021-09-27T21:38:08 | 361,237,940 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | h | PersistorTest.h | #ifndef PERSISTORTEST_H
#define PERSISTORTEST_H
#include "Persistor.h"
#include "DirectoryTree.h"
#include "gtest/gtest.h"
class PersistorTest : public ::testing::Test
{
std::shared_ptr<CPersistor> m_pPers;
std::shared_ptr<CDirectoryTree> m_pDir;
std::string m_path;
protected:
void SetUp()
{
m_pDir =... |
66640ef81ed81e27518642c32463599fa7f53a3b | 33035c05aad9bca0b0cefd67529bdd70399a9e04 | /src/boost_asio_local_basic_endpoint.hpp | a28e1ca00a84a75e5089e6df798b10ef34a19476 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | elvisbugs/BoostForArduino | 7e2427ded5fd030231918524f6a91554085a8e64 | b8c912bf671868e2182aa703ed34076c59acf474 | refs/heads/master | 2023-03-25T13:11:58.527671 | 2021-03-27T02:37:29 | 2021-03-27T02:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47 | hpp | boost_asio_local_basic_endpoint.hpp | #include <boost/asio/local/basic_endpoint.hpp>
|
8ebbe5749ff77240159c7c69b7350630a93208fc | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_1741.cpp | a0b650e8ac9bf5f36bd940d5046707e32fb61c57 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28 | cpp | Kitware_CMake_repos_basic_block_block_1741.cpp | this->ChipManufacturer = IDT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.