blob_id
stringlengths
40
40
content_id
stringlengths
40
40
repo_name
stringlengths
5
114
path
stringlengths
5
318
language
stringclasses
5 values
extension
stringclasses
12 values
length_bytes
int64
200
200k
license_type
stringclasses
2 values
content
stringlengths
143
200k
6ef7045f211a5da8fb2fb3ba39f5592637ca621f
e2f6a3570bc8b79f06fa9c6e6ebe86c056cb9cb3
renato-yuzup/axis-fem
/Axis.SystemBase/services/messaging/CollectorHub.hpp
C++
hpp
6,031
permissive
#pragma once #include "foundation/Axis.SystemBase.hpp" #include "services/messaging/MessageListener.hpp" #include "services/messaging/CollectorEndpoint.hpp" namespace axis { namespace services { namespace messaging { /********************************************************************************************...
f88af01e9cf35a27932c9aa1f58f243191dd6336
c8330c7ae5e127fddadd91ec7b86a481b36cb7ac
make1122/tencentcloud-sdk-cpp
/mps/src/v20190612/model/ProhibitedOcrReviewTemplateInfo.cpp
C++
cpp
4,484
permissive
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
1e4929770f06068d926b4833ef347199bec04b41
49bacd3453a33e1caa6365fba618a769a0405592
Di0n/3DGraphics
/3DGraphics_Opdrachten/Week3/Vec.cpp
C++
cpp
620
no_license
#include "Vec.h" Vec3f::Vec3f(float x, float y, float z) { this->x = x; this->y = y; this->z = z; } Vec3f::Vec3f() { this->x = 0; this->y = 0; this->z = 0; } Vec3f::Vec3f(const Vec3f &other) { this->x = other.x; this->y = other.y; this->z = other.z; } float& Vec3f::operator [](int index)...
42926d91d4d45afcf463da42e1577c1d32645c0a
cb6524e533dd527a1acb32ec68a7a2b7d91c2b54
lintcoder/leetcode
/src/92.cpp
C++
cpp
1,016
no_license
ListNode* reverseBetween(ListNode* head, int m, int n) { if (head == nullptr || head->next == nullptr || m >= n) return head; ListNode* h = nullptr; ListNode* prev = nullptr; ListNode* first = nullptr; int i = 0; if (m == 1) { firs...
ccc81abd52f82bfd968f47ce5ff972e8efcf1d03
4da3e623e734973f4ae26cd7b7a279404bb759b2
idobetesh/Maze-Generator-Project
/src/main.cpp
C++
cpp
708
no_license
#include "TestMazeGenerator.h" #include "Maze2d.h" #include "Demo.h" #include "CLI.h" int main(void) { srand(time(NULL)); /*========================= TestMazeGenerator =========================*/ // SimpleMaze2dGenerator sm; // MyMaze2dGenerator my; // TestMazeGenerator test1; // ...
850705b1be4a6135b022303f5457546afca1cd2e
b774cdc94e11f83435b6b8e29bfb1648df6e9abc
Gregorit/Kulki
/Ranking.cpp
C++
cpp
2,582
no_license
#include <iostream> #include "Ranking.h" #include "Board.h" void Ranking::saveRanking() { FILE *rankingSave; rankingSave = fopen("ranking.txt", "w"); Element *pointer = head; while (pointer != NULL) { fprintf(rankingSave, "%s ", pointer->playerName.c_str()); fprintf(rankingSave, "%d\n", pointer->p...
5317a5fcb654a6113ef2c011f1d71168f7f5458b
00fa6250614ffe0542515049c81c4816ef1a59a0
MeshGeometry/IogramSource
/Components/Mesh_UnifyNormals.cpp
C++
cpp
2,500
permissive
// // Copyright (c) 2016 - 2017 Mesh Consultants Inc. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mod...
5f62b0646148bc134b88e90abdb4de83dbad00b7
d0f0ea62dcea98768daa996386593fa00045d796
lineCode/mos
/include/mos/gfx/assets.hpp
C++
hpp
1,545
permissive
#pragma once #include <map> #include <memory> #include <unordered_map> #include <json.hpp> #include <mos/gfx/character.hpp> #include <mos/gfx/font.hpp> #include <mos/gfx/mesh.hpp> #include <mos/gfx/model.hpp> #include <mos/gfx/texture_2d.hpp> #include <mos/gfx/light.hpp> #include <mos/gfx/environment_light.hpp> names...
df9f4ed376ae4f5fd0095f17764853e909e93aef
764d69180456d15fef14a59e4f31c3179745c107
fagan2888/OTCDerivativesCalculatorModule
/OTCDerivativesCalculatorModule/Project_Cpp/lib_static/FpmlSerialized/GenClass/fpml-eq-shared-5-4/CalculatedAmount.hpp
C++
hpp
2,416
no_license
// CalculatedAmount.hpp #ifndef FpmlSerialized_CalculatedAmount_hpp #define FpmlSerialized_CalculatedAmount_hpp #include <ISerialized.hpp> #include <fpml-shared-5-4/AdjustableRelativeOrPeriodicDates.hpp> #include <fpml-shared-5-4/AdjustableOrRelativeDate.hpp> #include <built_in_type/XsdTypeBoolean.hpp> namespace Fpm...
a623525297f54a3056492035e609b6e726f8270b
1e3b2339c4a0292dec9747ab3a7ec6a72607d906
lb296415/StaticAnalysis
/jake_project/Project_5(animals)/animal.cc
C++
cc
6,853
no_license
/************************************************ Jacob Mulligan 3/27/2017 file: animal.cc This is the implementation file for the member funcitons of the parent and child classes of animal.h **************************************************/ #include "animal.h" using namespace std; /*Griffin::Griffin(bo...
2725a49a4106f2ddac1ea4a467ac288adf484ad6
5e9e473ecbc7b83da9a87c445f9aee39691727b7
yenicelik/AirSim
/AirLib/include/vehicles/multirotor/firmwares/arducopter/ArduCopterApi.hpp
C++
hpp
16,819
permissive
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_ArduCopterDroneController_hpp #define msr_airlib_ArduCopterDroneController_hpp #include "vehicles/multirotor/api/MultirotorApiBase.hpp" #include "sensors/SensorCollection.hpp" #include "physics/Environme...
7d40d604b1df3c2a1464619edf710098956d0468
526fde253e2138f91cb72056b0e59e7e55ded91b
saravsoftnet/Hackerrank_solutions
/Implementation/larrys-array.cpp
C++
cpp
1,990
no_license
/******************************************************* * Copyright (C) 2016 Haotian Wu * * This file is the solution to the question: * https://www.hackerrank.com/challenges/larrys-array * * Redistribution and use in source and binary forms are permitted. *******************************************************...
c8b90fa6fc2c36bc7167af39c593b80c1fc9f767
4db16c13561a07ab1a146f119140cf27faf1223b
ohowland/AcceleratedCpp
/Chapter 9/Exercise 3/main.cpp
C++
cpp
777
no_license
#include <string> #include <vector> #include <iostream> #include <algorithm> #include <iomanip> #include "Student_info.h" using namespace std; int main() { vector<Student_info> students; Student_info record; string::size_type maxlen = 0; // read and store the data while (record.read(cin)) { maxlen = max(maxl...
e6ed9dd3a03f14a2f842bc51c7cb297cb745f752
8801d31d7079b31e6fde72aa72b036a4e711609a
TomasKorbar/libmemcached
/src/libmemcached/get.cc
C++
cc
21,222
permissive
/* +--------------------------------------------------------------------+ | libmemcached-awesome - C/C++ Client Library for memcached | +--------------------------------------------------------------------+ | Redistribution and use in source and binary forms, with or without | | modificatio...
2cec586a9ef53e204bbdd26c5f9edb6cf06d4690
3a834b9cce2373ce1297fc238015bed4d10cba7d
nurkeldy/nurkeldi-aman
/67.cpp
C++
cpp
591
no_license
#include <iostream> #include <cmath> using namespace std; int main() { int n; cin >> n; int a, b; int m[4]; m[0] = n/1000; m[1] = n%1000 / 100; m[2] = n%100 / 10; m[3] = n%10; int mx = 0, mn = 100; for(int i = 0; i < 4; i++) { if (mx < m[i]) mx = m[i]; ...
bbffcf1a3041a983660217d40be20a607b626ab9
95ad1c93340798e4e1fa20175ae6e9d745a0fcad
ceosss/coding
/LeetCode/Find Duplicate Subtrees.cpp
C++
cpp
572
no_license
class Solution { public: unordered_map<string, int> m; vector<TreeNode *> res; string findD(TreeNode *root) { if (!root) return "$"; string left = findD(root->left); string right = findD(root->right); string cur = to_string(root->val); string x = cur +...
a00d47b84d5d9a1ae932c31a65642c3eaa9bc9ee
1ac92844a35e53ecab4ea746c57e4d6da3311740
audier0879/apollo
/modules/planning/common/planning_gflags.cc
C++
cc
26,073
permissive
/****************************************************************************** * Copyright 2017 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
344aa4e9fc8b873acf8cbfb868cf20672b1cc04e
36f6339eaf974793a08292c7cded0253fab933c0
liuhatry/design_patterns
/memento/RoleStateMemento.hh
C++
hh
230
no_license
#ifndef ROLE_STATE_MEMENTO_HH #define ROLE_STATE_MEMENTO_HH class RoleStateMemento{ public: RoleStateMemento(int,int,int); int getVit(); int getAtk(); int getDef(); private: int vit_; int atk_; int def_; }; #endif
477fb0c50b1a83a95fe41ae6089582cf9e5015dd
ad8eca849ca3bcb3553b4730fc2b97e39bc3ab5e
skui-org/skia
/src/gpu/effects/generated/GrColorMatrixFragmentProcessor.cpp
C++
cpp
5,853
permissive
/* * Copyright 2019 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /************************************************************************************************** *** This file was autogenerated from GrColorMatrixFragmentProcessor.fp; do ...
2d6a194f1b8d2a6df12bb0e4edba7252c2aeea10
b8706915f48242995b4252cb43e50c0bae7308d3
bgianfo/serenity
/Userland/Libraries/LibSQL/AST/Expression.cpp
C++
cpp
9,420
permissive
/* * Copyright (c) 2021, Jan de Visser <jan@de-visser.net> * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/StringView.h> #include <LibRegex/Regex.h> #include <LibSQL/AST/AST.h> #include <LibSQL/Database.h> namespace SQL::AST { static constexpr StringVie...
fb26e2be03cb305d30ea7551ea18725fa68f988c
c3edfaf8446b2318e50cb09a3613c59489439dbd
Kiti-Nomad/catcake
/source/cdt/ck_cdt_ray.cpp
C++
cpp
6,284
no_license
/* Copyright (c) 2007-2010 Takashi Kitao Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
493a325157f470c4f7d4d812345aa0053cccdbb8
5dfdf654fb65b4b34c0320f8b58ffebd85fc411f
Lukasz-Witek-vel-Witkowski/AWS
/AWS-Maximum/BaseFileConfig.cpp
C++
cpp
899
no_license
#include "BaseFileConfig.h" BaseFileConfig::BaseFileConfig() { position = 0; } void BaseFileConfig::setCharsSkip(std::string Skip) { skip = Skip; } void BaseFileConfig::setPosition(int pos) { position = pos; } void BaseFileConfig::setEnd(std::string End) { end = End; } void BaseFileConfig::run(std::string path) { ...
66d9994a40985c38abc939fdd5b40266bfab4ffa
8c8813946856208ca86b71cac387a8f44dbddbc7
Tymecode/DPorts
/devel/antlr/files/patch-lib__cpp__src__ASTFactory.cpp
C++
cpp
443
no_license
$FreeBSD: head/devel/antlr/files/patch-lib__cpp__src__ASTFactory.cpp 363362 2014-07-29 17:12:47Z adamw $ --- lib/cpp/src/ASTFactory.cpp.orig Mon Nov 15 16:31:34 2004 +++ lib/cpp/src/ASTFactory.cpp Mon Nov 15 16:32:20 2004 @@ -12,7 +12,11 @@ #include "antlr/ANTLRUtil.hpp" #include <iostream> +#if defined(__GNUC__) ...
0e238761bd04fab1b91054408514ffa9ab30f7f9
767e05d700a8ca9b0edf55de7067761298b599bb
Arpit2601/CS210-ds-lab
/lab work/B Tree/by me/aggressive/main.cpp
C++
cpp
958
no_license
#include<bits/stdc++.h> #include "node.h" #include "Btree.h" using namespace std; int main() { Btree* t = NULL; t = new Btree(); // cout<<"insert 10"<<endl; t->insert(t,1); // cout<<"insert 20"<<endl; t->insert(t,3); // cout<<"insert 5"<<endl; t->insert(t,7); // cout<<"insert 6...
9afdcc827a3f224f1f12a0e4b852892cfb77d047
6e60e891763a2c80f3b29ff34314ffe3b0bed883
sohyeonAn/DressUpGame
/Project/startDlg.cpp
C++
cpp
819
permissive
// startDlg.cpp : 구현 파일입니다. // #include "stdafx.h" #include "clothing.h" #include "startDlg.h" #include "afxdialogex.h" #include "ClothingDlg.h" // startDlg 대화 상자입니다. IMPLEMENT_DYNAMIC(startDlg, CDialogEx) startDlg::startDlg(CWnd* pParent /*=NULL*/) : CDialogEx(IDD_DIALOG2, pParent) { } startDlg::~startDlg() {...
ed5ec2581d44672ccf731ffe15ae32692badac2a
64284c9e51bcadc329cfae986f13038cf5f94aac
bogdanmishchenko/lcgeo
/detector/tracker/TrackerBarrel_o1_v01_geo.cpp
C++
cpp
11,969
no_license
// Silicon Tracker Barrel implementation for the CLIC detector //==================================================================== //-------------------------------------------------------------------- // // Author : N. Nikiforou (forked from SiTrackerBarrel_geo.cpp // //========================================...
7ce91c34cc035184e29b07555c833b7b1e92b11b
96d7eb83c662dde590d5b800369891429aad200a
chawlau/DesiginPattern
/code/Prototype.cpp
C++
cpp
720
no_license
/* * Prototype */ #include <iostream> class Prototype { protected: std::string name; public: Prototype(){} virtual void setName(std::string nam) { name = nam; } virtual Prototype* clone() = 0; virtual void show(){} virtual ~Prototype(){} }; clas...
1b664f53198fb03a1776a2d37214bf404b52b641
9e49c0e3b12533a669f32c780ece6b9ee4051289
ozqf/zealous_engine
/engine/src/windows/win_window.cpp
C++
cpp
19,258
no_license
#include "ze_windows.h" // glfw must come AFTER windows to avoid macro redefinition error #include "../../../lib/glad/glad.h" #include "../../../lib/glfw3_vc2015/glfw3.h" // Version of Opengl that will be requested const i32 MAJOR_VERSION_REQ = 3;//4; const i32 MINOR_VERSION_REQ = 3; internal GLFWwindow *g_window; /...
3b854d81e7d4c24c5124443017c75d8bb730c042
68b97b01956d34e6aeec79851978d6f1fb900d0a
JJWasyl/ASD-2017
/Divide et Imperia/sepLine.cpp
C++
cpp
1,207
no_license
#include <iostream> #include <string> #include <cstdlib> #include <vector> #include <algorithm> #include <ctime> using namespace std; int sepLine(int tab[], int n){ int length = 0; if(n < 2) return 0; if(n % 2 == 0){ for(int i = n-1; i > 0; i--){ length += tab[i] - tab[i-1]; i--; } ...
0b05b47e13139d03f957f217decccf7373c4f714
b8483c8a74901aa941c92ac3532abd8eb306d1b1
thisisziihee/algorithm
/inflearn/18_층간소음.cpp
C++
cpp
927
no_license
/* 한 세대의 측정치가 M값을 넘으면 세대호수와 작은 경보음이 관리실 모니터에서 울립니다. 한 세대의 N초 동안의 실시간 측정치가 주어지면 최대 연속으로 경보음이 울린 시간을 구하세요. 경보음이 없으면 -1를 출력 ▣ 입력설명 :첫 줄에 자연수 N(10<=N<=100)과 M이 주어집니다. 두 번째 줄에 N개의 측정값(1000이하 자연수)이 초 순서대로 입력된다. ▣ 출력설명 : 최대 연속 경보음이 울린 시간(초)를 출력하세요. */ #include<stdio.h> int main() { int m, n, val, max = -21470000...
9821a56ac7bf0949502fdf8f488f00245032243b
a277ffa5eb594ebcf776822f4178a373660fd754
Samsung/Castanets
/sandbox/linux/suid/client/setuid_sandbox_host.cc
C++
cc
6,919
permissive
// Copyright 2015 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 "sandbox/linux/suid/client/setuid_sandbox_host.h" #include <fcntl.h> #include <stddef.h> #include <stdlib.h> #include <sys/stat.h> #include <uni...
d53b576919c5e2efca9a647f788d71b0137108c0
1957ac1d8a7a38784c1f478a13286bece0d088e3
MIPS/hardware-ingenic-xb4780
/xbdemux/LUMEDefs.cpp
C++
cpp
594
no_license
#include <LUMEDefs.h> namespace android{ const char *MEDIA_MIMETYPE_CONTAINER_OGV = "video/ogg"; const char *MEDIA_MIMETYPE_VIDEO_LUME = "video/lume"; const char *MEDIA_MIMETYPE_AUDIO_LUME = "audio/lume"; const char *MEDIA_MIMETYPE_AUDIO_MP4A = "audio/mp4"; const char *MEDIA_MIMETYPE_CONTAINER_LUME = "video/lume-c"; ...
87a931219743c266fea4249bf8ef736adac4ab7d
29085e69bdfbf53345c229acb85587226bd23b78
liangshuochen/webkit
/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.cpp
C++
cpp
14,426
no_license
/* * Copyright (C) 2012-2016 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
ba989376f9397ed8d3db71f348ed9d70e4bedb13
b9e58c4e561a96593d99fe8e1d0de659f4e1cfc2
ufz/ogs5
/ThirdParty/IPQC/src/phreeqcpp/GasPhase.cxx
C++
cxx
15,436
permissive
// GasPhase.cxx: implementation of the cxxGasPhase class. // ////////////////////////////////////////////////////////////////////// #ifdef _DEBUG #pragma warning(disable : 4786) // disable truncation warning (Only used by debugger) #endif #include <cassert> // assert #include <algorithm> // std::sort #include <flo...
e67530b7de51213ac97f5d49100b0c99c2e259ff
50852f018d4f615f8c8a601e8bcd66c942a00537
zhaopufeng/chromium
/third_party/blink/renderer/modules/screen_enumeration/screens.cc
C++
cc
5,443
permissive
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/modules/screen_enumeration/screens.h" #include "third_party/blink/public/common/widget/screen_info.h" #include "thir...
d0c053a64926a70f9e286efc16445588d9405140
e5724da5abf028dd29aa9b29432bc473f7083f71
yanghan9014/DEaDlinE
/src/sprite.cpp
C++
cpp
1,728
no_license
#include "sprite.h" #include "scene.h" #include "l_window.h" extern LWindow gWindow; Sprite::Sprite( Scene* scene, const char* filepath, bool is_static) : SceneObject(scene) { mNoScale = is_static;//all Overlay::STATIC for now mLTexture.loadFromFile(filepath); } void Sprite::setClipQuads(const int quad_count, co...
d64151e3617faad70dc9801261c6c4e5c482560f
9071cd6065d8e17e262225973e6529a45e988ea9
Leiqtcv/moveit
/moveit_ros/planning/moveit_cpp/src/moveit_cpp.cpp
C++
cpp
10,331
permissive
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2019, PickNik LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
98a4f9b760d469892499a8335b79fa358ffec765
168b0bb44af2258dd639a26e890de069363a2f35
MarDima/Nest
/src/RunAction.cc
C++
cc
435
no_license
// // Created by student on 14.04.18. // #include <G4Run.hh> #include <G4UserRunAction.hh> #include <RunAction.hh> void RunAction::BeginOfRunAction(const G4Run *aRun) { } void RunAction::EndOfRunAction(const G4Run *aRun) { //// std::cout<< " Result = "<< result<<'\n'; // // scoring->addResult(result); //...
921102d06c2d20f52b98ff0028cd678b9e3d38f4
fd930f84a997008add2cffe7cf70fea1be52efeb
sweetpand/LeetCode-1
/solutions/cpp/0565.cpp
C++
cpp
453
no_license
class Solution { public: int arrayNesting(vector<int>& nums) { int ans = 0; for (const int num : nums) { if (num == -1) continue; int index = num; int count = 0; while (nums[index] != -1) { // not yet seen const int cache = index; index = nums[index]; // get next in...
53099bac9bea48a2a1f472b31419084b7131792c
793f84d7d0cbba20cdb97955d4dd816686f68b1c
LoganBarnes/hello-proto
/server/src/net/tagger.cpp
C++
cpp
2,270
no_license
#include "tagger.hpp" // project #include "testing/testing.hpp" namespace net { namespace detail { void* Tagger::make_tag(TagLabel label, void* data) { auto tag = std::make_unique<Tag>(Tag{label, data}); void* tag_id = tag.get(); tags_.emplace(tag_id, std::move(tag)); counts_[data] += 1; return t...
f79c0b89d15f8c74a132e2a966ae777f8ec6cc46
cf64f1284a2fee39174f70ef9c9efdefa0102422
bunny1985/Open_Torch
/src/cameraListener.cpp
C++
cpp
1,375
no_license
/* * cameraListener.cpp * * Created on: 2011-01-01 * Author: bunny1985 */ #include "MainForm.h" MainForm::cameraListener::cameraListener(MainForm *MF){ mainform=MF; } void MainForm::cameraListener::OnCameraAutoFocused(bool completeCondition) { } void MainForm::cameraListener::OnCameraPreviewed( Osp::Bas...
350d552c9876972cadd45f694bd508525605d9aa
002b460dcf63d93af36dac2dc1228666ffc1cd98
nickthedude/iPhone-Stuff
/iPhoneAugmentedVideo/Classes/NyARToolkitCPP-2.5.4/src/core/NyARContourPickup.cpp
C++
cpp
7,535
no_license
/* * PROJECT: NyARToolkitCPP * -------------------------------------------------------------------------------- * * The NyARToolkitCPP is C++ version NyARToolkit class library. * Copyright (C)2008-2009 Ryo Iizuka * * This program is free software: you can redistribute it and/or modify * it under the terms of t...
e0c2725de7953b31145b4c215f38965231fbf5e3
0ff6660436580009c6d4ca9e19cccfc31fe1b028
hugo-dc/SSVM
/include/experimental/expected.hpp
C++
hpp
66,519
permissive
// SPDX-License-Identifier: CC0-1.0 /// // expected - An c++17 implementation of std::expected with extensions // Written in 2017 by Simon Brand (simonrbrand@gmail.com, @TartanLlama) // Modified in 2020 by Shen-Ta Hsieh (ibmibmibm.tw@gmail.com, @ibmibmibm) // // To the extent possible under law, the author(s) have dedi...
ab9aff9297cb2187fd089b723c9cec1650d494fc
87097971e2fb1f874b1c8877351de7ce6fe736e9
lrbrantley/MPiDock
/DockingJob/Misc/src/MPIVina.cpp
C++
cpp
7,475
no_license
/* File : mpiVinav4.cpp * Author : Derek Nola * Course : CPE 450 */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <assert.h> #include <string> #include <fstream> #include <vector> #include <iostream> #include <chrono> #include <mpi.h> #defi...
056742b1a6f805fc92f177a3808dd336d049c65a
e3e528ed1566c60fbd3f5e190fdeb3e2e8466aa2
ouchengguo/chromium.bb
/src/v8/src/inspector/v8-stack-trace-impl.cc
C++
cc
10,811
permissive
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/inspector/v8-stack-trace-impl.h" #include "src/inspector/string-util.h" #include "src/inspector/v8-debugger.h" #include "src/inspector/v8...
e3d5be81cad370d85a9eed10b66feddd40e907d7
36f7b299d1bb8389edf316a1367cd989c9d52ec5
rfabbri/vxl-1
/contrib/mul/mbl/tests/test_progress.cxx
C++
cxx
1,871
no_license
// This is mul/mbl/tests/test_progress.cxx #include <iostream> #include <iomanip> #ifdef _MSC_VER # include <vcl_msvc_warnings.h> #endif #include <mbl/mbl_progress_callback.h> #include <testlib/testlib_test.h> static double last_reported_progress=-0.01; static bool monotonic=true; static bool below_zero=false; void ...
eba9e65d8810229282ab6d17ef5b516a528c6c2d
c705479f06964410b4121e3ef32b6b956d28770b
tommybutler/mlearnpy2
/home--tommy--mypy/mypy/lib/python2.7/site-packages/pystan/stan/src/stan/lang/grammars/expression07_grammar.hpp
C++
hpp
1,380
permissive
#ifndef STAN_LANG_GRAMMARS_EXPRESSION07_GRAMMAR_HPP #define STAN_LANG_GRAMMARS_EXPRESSION07_GRAMMAR_HPP #include <boost/spirit/include/qi.hpp> #include <stan/lang/ast.hpp> #include <stan/lang/grammars/expression_grammar.hpp> #include <stan/lang/grammars/semantic_actions.hpp> #include <stan/lang/grammars/term_grammar....
49391230b8e25eacfe2c3534bc1101ccaf5edb79
8cc2ddecc37df1a73f717c061bb39fc73b6c651b
databill86/wav2letter
/inference/inference/module/test/ResidualTest.cpp
C++
cpp
2,913
permissive
/** * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <cereal/archives/binary.hpp> #include <cereal/archives/portable_binary.hpp> #include <cerea...
32d693a9730c214bcb3675248f90fa53db442157
0cf1e86b4e4e095c84a07b580d47f2b28f29961f
chichtlm/TouchGFX
/app/example/custom_widget_example/gui/src/custom_widgets/FadeButton.cpp
C++
cpp
2,794
no_license
/****************************************************************************** * * @brief This file is part of the TouchGFX 4.5.0 evaluation distribution. * * @author Draupner Graphics A/S <http://www.touchgfx.com> * ****************************************************************************** * * @sec...
8c2f2ef8a132c7ecb5296dea91fdce94ac4b967c
44d15be0fe8f9643129f5b22034ff65af74c9e7b
kiddos/notes
/leetcode/dp/494/494.cc
C++
cc
778
no_license
#include <bits/stdc++.h> using namespace std; // Target Sum // dp[i][t] means ways to get to t using i numbers // dp[i][t] = dp[i-1][t-nums[i]] + dp[i-1][t+nums[i]]; class Solution { public: int findTargetSumWays(vector<int>& nums, int target) { int n = nums.size(); unordered_map<int, int> dp; dp[0] =...
2f434917cff81940a6486b19d06b6fb0ea30338c
ef641f78f5ccef565bd9ea8a8b002402683aa9bf
vkpriyesh/CoachItMan
/FILE5.CPP
C++
cpp
268
no_license
#include<fstream.h> #include<conio.h> #include<string.h> void main() { clrscr(); int i; char str[80]; ifstream fin("abc.txt"); while(1) { fin.getline(str,80); if(fin.eof()) break; cout<<str<<"\n"; } fin.close(); getch(); }
7996bb66bb6a81894ac1b948db80514ed2070cd5
0053a8d05eb1d1aede06d8e1014f13d8f73a8dba
IAmAnubhavSaini/cryptoAlgorithm-nt5src
/Source/XPSP1/NT/multimedia/directx/dmusic/dmime/oledll.cpp
C++
cpp
6,443
no_license
// Copyright (c) 1998-1999 Microsoft Corporation // oledll.cpp // // Handle standard stuff for OLE server DLL // #include <objbase.h> #include "debug.h" #include <iostream.h> #include "oledll.h" #ifdef UNICODE #ifndef UNDER_CE #error DirectMusic Win NT/9x must be compiled without UNICODE #endif #endif static const T...
5403f7d04dcd14fb20f834e6ded32c627a1c2e9b
5e5b8d46f7ac1e950fb6dad3e7a14ba80fd47b30
Trojanking123/pat
/p276.cpp
C++
cpp
1,555
no_license
#include<iostream> #include<queue> using namespace std; const int kMAX = 100; const int X[] = {0, 0, 1, -1}; const int Y[] = {1, -1, 0, 0}; int m, n; struct Node{ int x,y; }node; int matric[kMAX][kMAX]; bool visited[kMAX][kMAX] = {false}; bool judge(int x, int y){ if(x < 0 || x >=n || y <0 || y >= m) retu...
7476bbe3d7fbcdf0c52f54f0a2be5298ffedd6ef
b252a9fdc30cdcce5e8250bbb6ceb068d5ae92cb
jongtae0509/codeup
/1000/1618_1.cpp
C++
cpp
547
no_license
/************************************************************** 1618번 jongtae0509 C++ 정확한 풀이코드 길이:334 byte(s) 수행 시간:0 ms 메모리 :1120 kb ****************************************************************/ #include<stdio.h> #include<algorithm> using namespace std; struct weight{ int a; }; bool cmp(const weight &u, con...
3bb233da606b1896be32c9247d7f8b4111b5653f
9b19732acfc6ed3eeb882fd6bd6b9232946cb7c7
saaadhu/llvm
/lib/Transforms/InstCombine/InstructionCombining.cpp
C++
cpp
124,506
permissive
//===- InstructionCombining.cpp - Combine multiple instructions -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
8dfc0dc87bf9f0595d0922288dc6b5108ed37f07
cbb464483dce557be06eeb0f2a147bee01e0d231
G-Research/htcondor
/src/condor_collector.V6/view_server.cpp
C++
cpp
34,885
permissive
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
42cf0746a022a537854ca0aef71d87d3a7d68ab4
98dacd2afd130c7713b46d1900a3aabd167061d4
chilkatsoft/Chilkat-for-Universal-Windows-Platform-UWP-VS2015
/Chilkat/AuthUtil.cpp
C++
cpp
2,630
no_license
// Generated for Chilkat v9.5.0.77 // This source file is generated. #include "pch.h" #include "AuthUtil.h" #include "include/CkString.h" #include "include/CkByteData.h" #include "include/CkDateTime.h" #include "include/CkAuthUtilW.h" using namespace Chilkat; using namespace Platform; using namespace Windows::...
a75dea3b77b7c0694d061ad3fb19a23446522c4b
de2cfa59fb530272d26169e66139f168c10eb37a
CaptainTsao/hana.zh
/hana/size.hpp
C++
hpp
363
permissive
/*! @file Defines `boost::hana::size`. @copyright Louis Dionne 2013-2016 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_SIZE_HPP #define BOOST_HANA_SIZE_HPP #include <hana/fwd/size.hpp> #include <hana/l...
caf74224aeb0332ff858516df450ec32ff3c90be
3c5cdb6e3b98356cee913534c5fcff5218628ef9
numberfrom/atcoder
/april/april_7/habatsu.cpp
C++
cpp
889
no_license
#include <cstdio> #include <iostream> #include <algorithm> using namespace std; int num_party(int i, const vector<vector<bool>> &g) { size_t N = g.size(); for (size_t j = 0; j < N; ++j) for (size_t k = j + 1; k < N; k++) if (1 << j & i && 1 < k & i && !g[j][k]) return 0; ...
75a0a4082b19663f42f0d22cf1db5c646fd077de
aee6cb491a609d740b744fea5a1a9e0e2b20cd27
jengyuwang/Embedded_Class_Workspace
/LCD_Custom_Char/main.cpp
C++
cpp
2,270
no_license
/* Lcd_Custom_Char Author: Lluis Nadal. Date: 15th October 2010. Up to 8 characters can be programmed in CGRAM, but because CGRAM is a RAM, characters are lost on power off and must be reloaded on power on. Assuming 2x16 LCD with HD44780 Hitachi controller compatible. */ #include "mbed.h" #include "TextLCD.h" // ...
9d31882c45d1cdd8422d68b86a73d55bb23f262e
5dab5f6566740e75f545272267b7f2185ae552cf
chaseWillden/Condor
/src/condor/ast/context.cc
C++
cc
1,826
permissive
// Copyright 2016 Chase Willden and The CondorLang 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 "context.h" #include "scope.h" namespace Condor { namespace internal{ Context::Context(){ isolate = NULL; allExport =...
8f6fe7b0220354826342cdff406c09391b625ce5
cdf385a642f820ca5d9a33d1e18975ef65e2a5e3
shiroiusagi4486/splitboard
/code/other_tests/keyboard-test/Keyboard.cpp
C++
cpp
8,973
no_license
/* Keyboard.cpp Copyright (c) 2015, Arduino LLC Original code (pre-library): Copyright (c) 2011, Peter Barrett This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 o...
27637817667ee0e72b0849d60e09d83d917c8b2a
1feea439452226b96c1c8613c56df1bf9268f8cf
Samsung/Castanets
/remoting/host/desktop_session_agent.cc
C++
cc
26,285
permissive
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "remoting/host/desktop_session_agent.h" #include <utility> #include "base/bind.h" #include "base/files/file_util.h" #include "base/logging....
3d935e55152c9ef6f1ed3fd3c17a4e6f7140cf93
977d36e41cc65ec05ff7462ca6071a7d92709c03
hjmjohnson/ITKPhaseSymmetry
/examples/PhaseSymmetryFilter.cxx
C++
cxx
4,146
permissive
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
b1707386a49b6169ab66b57b9ca47b4e8461b523
c698f0c7756a7c59b07f6b5b9281c58dfa1f0ee9
aluisyoanx/aluisyo-core
/src/CryptoNoteCore/Blockchain.cpp
C++
cpp
102,237
permissive
// Copyright (c) 2011-2017 The Cryptonote developers // Copyright (c) 2016-2018, The Karbo developers // Copyright (c) 2018 The Circle Foundation // Copyright (c) 2019 Aluisyo // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. ...
193606877dad6dfeb19635ffdffe9455e3fcb46f
aa2399b3777921be771cc998b3f289ea8fff1472
lauratrain99/First-steps-C-
/Classes & Objects/constructors/song.cpp
C++
cpp
269
no_license
#include "song.hpp" // add the Song constructor here: Song::Song(std::string new_title, std::string new_artist){ title = new_title; artist = new_artist; } std::string Song::get_title() { return title; } std::string Song::get_artist() { return artist; }
02662983e2b7f1f05e022f95bf3ce732df2c01da
47eb90e8ed886e6b44e4480e2ccd4d939f33e052
krshnapriy/Codeforces
/Codeforces 266A (Stones on a table).cpp
C++
cpp
227
no_license
#include <iostream> #include <cstring> using namespace std; int main() { int n,i,count; char s[50]; cin>>n; cin>>s; count=0; for (i=0;i<n;i++) if(s[i]==s[i+1]) count=count+1; cout<<count; return 0; }
3befe55604ad191daba076af5f3aa52fa91956a9
37ed51ef0d9cd6d065e6fcf344b4cbcf9b26d36a
prehistoricpenguin/chromium.src
/cc/render_pass_draw_quad.cc
C++
cc
2,307
permissive
// Copyright 2011 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 "config.h" #include "cc/render_pass_draw_quad.h" namespace cc { scoped_ptr<RenderPassDrawQuad> RenderPassDrawQuad::create(const SharedQuadStat...
b5cb1eebb46198bf8cdb9ddac3a70358258be7ee
e783587e3de3c95514103a9e06ed5ae559936f57
VCastille/ProjetTrafic
/src/Ship.cpp
C++
cpp
943
no_license
#include <iostream> #include <map> #include "Ship.h" #include "Engine.h" #include "Hull.h" #include "Factory.h" #include "SmallShipFactory.h" #include "BigShipFactory.h" using namespace std; /////////////////////Classe Ship Ship::Ship(){ //Constructeur _name= "No Name"; } Ship::Ship(string Name, Factory* f) //cons...
8c2aa459daede1f5a279dc0d7ebfb302b191ffb4
49980f95ba79907b14eb4070a6a80f759468429b
darlinghq/darling-WTF
/wtf/text/icu/UTextProviderLatin1.cpp
C++
cpp
15,063
permissive
/* * Copyright (C) 2014 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
1f159466f9fc3f3bc37103d709abc9f95f041e7a
3457d07f0f7f7b8c7e9e2b27017b57ed0cf67fd7
sanchezg7/CourseWork
/ObjectOrientedDesign/Assignments/assignment5/homework5/question2/Account.cpp
C++
cpp
655
no_license
#include "Account.h" #include <stdexcept> Account::Account(double money) { if (money >= 0.0) { balance = 0.0; credit(money); } else { cout << "Wrong initial balance, account set to $0.00 " << endl; balance = 0.0; } } void Account::credit(const double money) { if ( money > 0) { balance = balance + mo...
56cbcca51a98f174be290517f550eda0adae16b8
c9158540ed7d5a319d79eb45ed17fe51f9a2e303
danrachita/QamblingChain
/src/timedata.cpp
C++
cpp
3,615
permissive
// Copyright (c) 2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "timedata.h" #include "netbase.h" #include "sync.h" #include "ui_interface.h" #include "util.h" #include "utilstrencodings.h"...
5fe9c628f429dccde0dcdd8afc9a39067ec8515c
0eb609e259560cb438cf8a953af7fa7773b47449
hatlonely/leetcode
/cpp/leetcode/leetcode/74_search_a_2d_matrix.cpp
C++
cpp
1,969
no_license
// // 74_search_a_2d_matrix.cpp // leetcode // // Created by hatlonely on 16/1/20. // Copyright © 2016年 hatlonely. All rights reserved. // // Write an efficient algorithm that searches for a value in an m x n matrix. // This matrix has the following properties: // // Integers in each row are sorted from left to ...
4520e345756003d09064c12977bb8b668efe0152
ddfbfc49c63a2f3331c286fbc16d8b2d0a8b81de
svn2github/ncbi_tk
/src/connect/services/grid_control_thread.cpp
C++
cpp
14,287
no_license
/* $Id$ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under the * terms of the United States Copyrig...
94493172ec508736831a68298a6a02a67296dae6
695c0ffc7ef5703d8d48790b6346c700aaebe069
ANYbotics/velodyne
/velodyne_pointcloud/src/conversions/cloud_node.cc
C++
cc
626
permissive
/* * Copyright (C) 2012 Austin Robot Technology, Jack O'Quin * License: Modified BSD Software License Agreement * * $Id$ */ /** \file This ROS node converts raw Velodyne LIDAR packets to PointCloud2. */ #include <ros/ros.h> #include "any_velodyne_pointcloud/convert.h" /** Main node entry point. */ int ...
d6a76ae59d2acb874c822dec98f537ccb4264fac
b5fb3f6adbb49f4b42081dbfea3f94f390d64928
mgh3326/iridium-browser
/chrome/browser/chromeos/policy/login_policy_test_base.cc
C++
cc
4,592
permissive
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/policy/login_policy_test_base.h" #include "base/values.h" #include "chrome/browser/chrome_notification_types.h" #includ...
32ad22fb239d62bba5691ca446d949bbbcdbff00
7dc174442468a831a1f9dc8be5fd5e5de5d168c5
williamhbell/HepCppIntro
/example_05/src/main.cc
C++
cc
1,032
permissive
/* W. H. Bell ** A program to write and read a file. The file name is specified at ** the command line. The program can either be used to write or read ** the output file. */ #include "FileIO.h" #include <iostream> #include <cstring> using namespace std; void usage(char *); int main(int argc, char *argv[]) { ...
35bda179a91886841736b374e43366786adb8da7
b66daf8bf4b52d59b1be4689c48d4208fc31dba0
shunchan0677/InfoGAIL
/torcs-1.3.4/src/modules/simu/simuv2/SOLID-2.0/src/Object.cpp
C++
cpp
5,833
permissive
/* SOLID - Software Library for Interference Detection Copyright (C) 1997-1998 Gino van den Bergen This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License...
ef251d6f124880bae1740660b902be191f277c1a
4ce81589e5c1f8317d2c1beb460e0dc2a9ee034a
amitiitg/mytopcoder
/facebook_hacker_cup/r2q2.cpp
C++
cpp
1,174
no_license
#include <iostream> #include <vector> using namespace std; int number_ways_get_sum(int S, int N, int x1, int x2) { int ways = 0; for (int i=1; i<=N-1; i++) for (int j=i+1; j<=N; j++) { if(i==x1 || i==x2 || j==x1 || j==x2) continue; if (i+j == S) ways++; } ...
c6d13456fc76e0cfc9991e8cd85ca6a51daab2f2
387e8a01077deaa5cf20cf185606c221beaee8de
CppKorea/Cpp20Study
/4 - Coroutines/suspend_never.cpp
C++
cpp
1,172
permissive
// Run with in cl /* cl suspend_never.cpp /std:c++latest /await /EHsc */ #include <experimental/coroutine> #include <iostream> class return_ignore final { public: class promise_type final { public: auto initial_suspend() noexcept { return std::experimental::suspend_never{}; ...
0455ea67924d56514aeb566e49d0ccbdd0b25ed7
5d3b17544de78f73312f138257238c227a6fdcf8
crewcrypto/Crew
/src/script.cpp
C++
cpp
70,059
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin developers // Copyright (c) 2016 The Crew developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/foreach.hpp> #include <b...
bd4ae150385a4132546328e6d5f17a1ff154a86a
cc92d46503f72481e39254739cae314d41e0038c
musicianZem/funnyBOJ
/01717/1717.cpp
C++
cpp
1,161
no_license
#include <cstdio> #include <cstring> #include <vector> int parents[1000001]; int findTop_makeRank1( int point ) { std::vector<int> tempVector; while( parents[point] != point ) { tempVector.push_back( point ); point = parents[point]; } for(std::vector<int>::iterator it = tempVector.begin(); it != tempV...
2e9d306bf775aad741a5c8d6ced9dfd999523e18
c99d4d91c572e9cac0b53ecaf7fa1e572147db57
MS-Astra/nebula-trifid
/code/render/renderutil/drawfullscreenquad.cc
C++
cc
4,010
permissive
//------------------------------------------------------------------------------ // drawfullscreenquad.cc // (C) 2009 Radon Labs GmbH // (C) 2013-2015 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "stdneb.h" #include "renderutil/dr...
ad575289dc37656b7b2908d8020131919202bf4e
9c1fed6ebf919622a092ac84988b55114a04c624
iut-ibk/PowerVIBe
/src/extrudebuildings.cpp
C++
cpp
6,608
no_license
#include "extrudebuildings.h" #include "dmgeometry.h" #include "cgalgeometry.h" #include "tbvectordata.h" #include <QPolygonF> #include <QTransform> #include <dmhelper.h> #include <tbvectordata.h> #include <littlegeometryhelpers.h> #ifdef _OPENMP #include <omp.h> #endif using namespace DM; DM_DECLARE_NODE_NAME(Extrud...
173e894a2b66489fbee7f64d4d0a1b0764b743ae
8bf627d4c75a9eedf1b734414abe9937d10d2109
qq362946/TmingEngine
/src/Engine/Rendering/SoftRending/SoftRender.hpp
C++
hpp
8,271
permissive
/* This file is part of: TmingEngine https://github.com/xiaomingfun/TmingEngine Copyright 2018 - 2020 TmingEngine File creator: littleblue TmingEngine is open-source software and you can redistribute it and/or modify it under the terms of the License; besides, anyone who use this file/software ...
120bc51b0b6e4d024357086733e34032e7954438
8a9bbf2e586099a52f2d39acc1f5a0d3523f82b3
daniloabella18/Alg.Tec.Prog.-StructArchivoBinario-NumCom
/Trabajo 2.cpp
C++
cpp
16,158
no_license
///Danilo Abellá ///LCC - USACH ///Profesora: Rosa Berrera ///Compilador: Codeblocks 13.12 ///SO: Win 8.0 #include <iostream> #include <fstream> #define MAX 100 using namespace std; ///Declaración de TDA/// struct complejo { int puesto; float r; float i; }; ///Declaración de funcione...
a4aaceb85e61ffef73cabe180c56211958faf0c6
e56052b7df64d00f88f131e1680dab9ec7c79a24
dufaysr/sde2D
/src/Matrix.cpp
C++
cpp
7,113
no_license
/* Matrix.cpp "sde2D" Created by Renaud Dufays on 04/04/17 Copyright © 2017. All rights reserved. */ #include "Matrix.hpp" // Overwritten copy constructor // Allocate memory for new matrix, and copy // entries into this matrix Matrix::Matrix(const Matrix& m) { mDim1 = m.mDim1; mDim2 = m.mDim2; mDa...
f6f84377d72098138585790e41a83faa095a918b
8dde13fabb298a30d5fd859c281799ce818ce946
calebthejett/the-reclaimer-code
/interface/i2c.cpp
C++
cpp
1,760
no_license
#include "i2c.hpp" void start_i2c() { Wire.begin(); } void tx_float(float value, byte address) { byte* data = (byte *) &value; Wire.beginTransmission(address); Wire.write(data[0]); Wire.write(data[1]); Wire.write(data[2]); Wire.write(data[3]); Wire.endTransmission(); delayMicroseconds(WRITE_DELAY)...
5c06a2a3137c2edfade9a600ea6260f7cf548398
6c953273c2f45e5eaced1cd7459b65238a94cf7b
tnuvoletta/Principia
/physics/ephemeris_body.hpp
C++
hpp
45,999
permissive
 #pragma once #include "physics/ephemeris.hpp" #include <algorithm> #include <functional> #include <limits> #include <optional> #include <set> #include <vector> #include "astronomy/epoch.hpp" #include "base/macros.hpp" #include "base/map_util.hpp" #include "base/not_null.hpp" #include "geometry/grassmann.hpp" #incl...
02eed117a5217567b0d4d461c7d6bad664d0ed7a
ddf83dba1bafab25aa2f4cc706970ff5f93f8c38
aliyun/aliyun-openapi-cpp-sdk
/nas/src/model/CreateProtocolServiceResult.cc
C++
cc
1,465
permissive
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
705ea47b0e7aabcea167b21a2c455fd286edaa70
1e4e085bb89016deb8c8cab6745919152c87824d
jianwen612/envoy
/source/server/overload_manager_impl.cc
C++
cc
10,499
permissive
#include "server/overload_manager_impl.h" #include "envoy/config/overload/v3/overload.pb.h" #include "envoy/stats/scope.h" #include "common/common/fmt.h" #include "common/config/utility.h" #include "common/protobuf/utility.h" #include "common/stats/symbol_table_impl.h" #include "server/resource_monitor_config_impl.h...
5e19bbfaac3a9250ed5b2c4c9d63c2a395f9ae15
3ca06cc122f016465d1f5efb31f7a8f1e76d1860
cjh1/VTK
/Parallel/Core/vtkCommunicator.cxx
C++
cxx
53,143
permissive
/*========================================================================= Program: Visualization Toolkit Module: vtkCommunicator.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software ...
a62796310f0dfad35c0c55c613174d0a85c23f5e
f31e29f1642814e4bd8a2f1f1ba08a197dcbb0c0
apples/inugami
/inugami/spritesheet.cpp
C++
cpp
3,355
permissive
/******************************************************************************* * Inugami - An OpenGL framework designed for rapid game development * Version: 0.3.0 * https://github.com/DBRalir/Inugami * * Copyright (c) 2012 Jeramy Harrison <dbralir@gmail.com> * * This software is provided 'as-is', without any ...
10d126462f216133bda1ee180a8a12874fb7d597
872e7898481356438e7eb7d23cf9369fa3f28019
lucasxia01/Competitive-Programming-Problems
/Codeforces/CF 581/CF 581/B.cpp
C++
cpp
1,332
no_license
#include <vector> #include <stack> #include <iostream> #include <cstdio> #include <string> #include <cmath> #include <algorithm> #include <map> #include <functional> #include <set> #include <cstring> #include <queue> #include <stdlib.h> #include <time.h> #include <complex> #include <iterator> #include <regex> #include ...
97d1ff0ac255028292df9385f49a955e7b70ae61
c298c496aa950653ec6f7b9f4e0633e103290b6e
kimhayeon00/2020-1st-cpp_programing
/c++_2020_김하연/알고랩/삼각형의종류-2.cpp
C++
cpp
564
no_license
#include <iostream> #include <math.h> #include <algorithm> using namespace std; int main(){ int t; cin >> t; for(int i=0;i<t;i++){ int q,w,e,r,x,y; cin >> q>>w>>e>>r>>x>>y; int a=(q-e)*(q-e)+(w-r)*(w-r); int b=(e-x)*(e-x)+(r-y)*(r-y); int c=(q-x)*(q-x)+(w-y)*(w-y); int arr[3]={a,b,c}; sort(arr,arr+3);...
29ba870e2b8a071ddcdff0458bb351ea955281ee
040444f9f862b91e5439b6f16193b8ce34fc55f9
hvge/cc7
/src/cc7tests/platform/PerformanceTimerAndroid.cpp
C++
cpp
1,107
permissive
/* * Copyright 2016 Juraj Durech <durech.juraj@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 applic...
bccf1c661b49c748e5134e2cdaed839f01982d80
d83300cb06002281f2d8b5c77b4243a3076d2a13
Jichuang/AirPlane
/AirPlane/Classes/WelcomeScene.cpp
C++
cpp
1,468
no_license
#include "WelcomeScene.h" WelcomeScene::WelcomeScene(): m_welcomeLayer(NULL) { } WelcomeScene::~WelcomeScene() { } bool WelcomeScene::init() { if(!Scene::init()) { return false; } //add WelcomeLayer m_welcomeLayer=WelcomeLayer::create(); if(m_welcomeLayer==NULL) { return false; } this->addChild(m_we...
3714b9f66ee54cf75b80aa865ece0375ece91e27
e935b88dd8b2a26ed5620cc7a6ca7320f037ac5a
fmi-lab/up-group8
/Exercise 2015-11-09/Solutions.cpp
C++
cpp
3,505
no_license
#include <iostream> using namespace std; //Task 1 bool differentDigits(int n) { int tmp = number, copy, digit; while (tmp != 0){ copy = tmp / 10; digit = tmp % 10; while (copy != 0){ if (digit == copy % 10){ return false; } else copy /= 10; } tmp /= 10; } return true; } //Task 2 void makeNumbers() { ...
7970a7ade3c5436a2bea7a625d9890803a2cbf9a
3c712d9b110c29fb09bf0d4b5dc2942bd0df2175
junxzm1990/ASAN--
/testcases/juliet_test_suite/testcases/CWE122_Heap_Based_Buffer_Overflow/s02/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_char_ncat_54b.cpp
C++
cpp
1,316
no_license
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_char_ncat_54b.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.string.label.xml Template File: sources-sink-54b.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: ...
afbcbdfcb01397a98b30095566be9a0e7637e865
753aa83e206f6345b731440dd9c883e63fb1c9fb
Mosquito-Jang/algorithm
/BaekJoon/DFS/Q.1987 알파벳.cpp
C++
cpp
1,803
no_license
#include <stdio.h> #include <vector> using namespace std; typedef struct check { bool c[30]; }check; vector<pair<pair<int, int>, pair<check, int> > > v; int R, C; int arr[21][21]; int DFS(int x, int y) { int max = 1; check visit; visit.c[arr[y][x]] = 1; v.push_back(make_pair(make_pair(0, 0), make_pair(visi...