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 |
|---|---|---|---|---|---|---|---|---|
0ff7edc0f6e0a347cd10c4c0dfc6cca578f9cd25 | b478a1a363d3334612c0ce211dba43ea412dfcd2 | waynebhayes/SANA | /src/arguments/ArgumentParser.cpp | C++ | cpp | 4,393 | no_license | #include <iostream>
#include "ArgumentParser.hpp"
#include "../utils/utils.hpp"
#include "../utils/FileIO.hpp"
#include "SupportedArguments.hpp"
using namespace std;
ArgumentParser::ArgumentParser(int argc, char* argv[]) {
if(argc == 1) {
cout << "Usage: " << argv[0] << " [OPTION] [ARG(S)] [OPTION] [ARG(S)]..." <... |
b27859d6290f3227337ba62b93d1a095451625c4 | cf4579de042a5b7aaba8b593296128fdae3a99dc | PsymonLi/sw | /nic/metaswitch/stubs/mgmt/pds_ms_nar_utils.cc | C++ | cc | 1,805 | no_license | // {C} Copyright 2019 Pensando Systems Inc. All rights reserved
// Purpose: Helper APIs for metaswitch NAR stub programming
#include "nic/metaswitch/stubs/mgmt/pds_ms_mgmt_utils.hpp"
#include "nar_mib.h"
namespace pds_ms {
// Fill narEntTable: AMB_STUBS_NAR_ENT
NBB_VOID
pds_ms_fill_amb_nar_ent (AMB_GEN_IPS *mib_msg... |
c69fd508bd113fae00e16c78804f911314d07815 | cf606e336e341f70595db647419b5ae1107892bf | ros2/rosbag2 | /rosbag2_storage/include/rosbag2_storage/storage_factory_interface.hpp | C++ | hpp | 1,449 | permissive | // Copyright 2018, Bosch Software Innovations GmbH.
//
// 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 applicab... |
57f249bf99f98994e1b7e1c775082a87a43b9322 | c40a19efb71fe8cb4f14bd24194659857c5d87cb | mogoweb/chromium-crosswalk | /chrome/browser/extensions/api/page_capture/page_capture_api.cc | C++ | cc | 6,251 | 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 "chrome/browser/extensions/api/page_capture/page_capture_api.h"
#include <limits>
#include "base/bind.h"
#include "base/file_util.h"
#inclu... |
8cdfc278719daaa1f1b181131a58589dff4304fa | c7f5d49ae1534e6664d9b9f28bd2dac0de033420 | shangzuoyan/fuchsia | /zircon/kernel/lib/ktrace/ktrace.cc | C++ | cc | 11,456 | permissive | // Copyright 2016 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <debug.h>
#include <lib/cmdline.h>
#include <lib/ktrace.h>
#include <lib/ktrace/string_ref.h>
#include <lib/syscalls/zx-s... |
ed92bcce90ca124e08700eac294199b998143177 | 731bf387dfdfbf5d95ecfc90c590456884ffc1d0 | KhronosGroup/Vulkan-Samples | /framework/stats/vulkan_stats_provider.cpp | C++ | cpp | 16,538 | permissive | /* Copyright (c) 2020-2023, Broadcom Inc. and Contributors
*
* SPDX-License-Identifier: Apache-2.0
*
* 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... |
ed18ad80e18cb3ce87c0f80c80918594dbd297a7 | b8a5cbb16d0f1cccf71dcc3cb5418ab7e29199ca | xPretzel-cb/DayZ-Epoch | /SQF/dayz_code/Configs/CfgWeapons/Rifles/M249.hpp | C++ | hpp | 1,671 | no_license | class M249_CCO_DZ : M249
{
model = "z\addons\dayz_communityweapons\m249\m249_cco.p3d";
picture = "\z\addons\dayz_communityweapons\m249\data\w_m249_cco_ca.paa";
displayName = $STR_DZ_WPN_M249_CCO_NAME;
type = WeaponSlotPrimary;
/*magazines[] = //Allow default A2 mags
{
200Rnd_556x45_M249,
100Rnd_556x45_M24... |
9e98203d80213c157fd0829d97da7cfd20400099 | fba409d9768f2c70f69f923b965ee05387f12d14 | cybertraining-dsc/sp19-222-97 | /class-work/project/blocks/src/blocks_game.cpp | C++ | cpp | 12,666 | permissive | #include "blocks_game.h"
/** @brief test_location
*
* @todo: document this function
*/
bool blocks_game::test_location(int point[BLOCKS_SHAPE_HEIGHT][BLOCKS_SHAPE_WIDTH], int top, int left){
int x, y;
int normX, normY;
for(y = 0; y < BLOCKS_SHAPE_HEIGHT; y++) {
for(x = 0; x < BLOCKS_SHAPE_WI... |
a26a3c9b3ca85cb958d30d079c77f0d6331e8177 | c18768105627c2041f041cfabf26c84aaf502ec6 | subr3v/dojo | /src/ZipArchive.cpp | C++ | cpp | 7,511 | permissive | #include "ZipArchive.h"
extern "C" {
#include <zzip/write.h>
}
using namespace Dojo;
//ZipFile imp
ZipFile::ZipFile(ZZIP_FILE* zf) {
file = zf;
}
ZipFile::~ZipFile() {
close();
}
//close file
void ZipFile::close() {
if (file != nullptr) {
zzip_close(file);
}
file = nullptr;
}
//read from file
size_t ZipFi... |
aa92ce3feb91e3f9b661dc51589b166845df87b4 | 1f8a7e9c8d178e0f801a5cfcabb747423012d0a6 | stevecorey/OpenFPGA | /openfpga/src/repack/check_lb_rr_graph.cpp | C++ | cpp | 7,300 | permissive | #include <map>
#include "vtr_log.h"
#include "lb_rr_graph_utils.h"
#include "check_lb_rr_graph.h"
/* begin namespace openfpga */
namespace openfpga {
/***********************************************************************
* This function aims at checking any duplicated edges (with same EdgeId)
* of a given nod... |
3cf5b54e4d83c8ce72af5e2d5374dd7cd34e9f1b | 64e878779311bd51e23e8a7e96e58e7b02426cc6 | Felerius/hyrise | /src/lib/operators/jit_operator/operators/jit_compute.cpp | C++ | cpp | 547 | permissive | #include "jit_compute.hpp"
namespace opossum {
JitCompute::JitCompute(const std::shared_ptr<const JitExpression>& expression) : _expression{expression} {}
std::string JitCompute::description() const {
return "[Compute] x" + std::to_string(_expression->result().tuple_index()) + " = " + _expression->to_string();
}
... |
8c05236b26fc2d59c429fc02fe6b839c9b8f6ff0 | 4fb12a74a8ae04900e6e96844289d3fa090df4ec | devdeep7/Codeforces | /arrayAprac.cpp | C++ | cpp | 1,654 | no_license | #include <iostream>
#include <string.h>
#include <chrono>
using namespace std;
using namespace std::chrono;
//
////void sort (long long *arr, int len){
//// int i;
//// int temp;
//// while(len--){
//// for (i=0;i<len;i++){
//// if (arr[i]>arr[i+1]){
//// temp = arr[i];
//// arr... |
80b9b0a1215f67794f89e9eb1e2ab0acad7cbb6f | 357d3078c438cfef9562bff1c08882b0ebf3d054 | dotaconan/php-v8 | /src/php_v8_proxy.cc | C++ | cc | 4,962 | permissive | /*
* This file is part of the pinepain/php-v8 PHP extension.
*
* Copyright (c) 2015-2017 Bogdan Padalko <pinepain@gmail.com>
*
* Licensed under the MIT license: http://opensource.org/licenses/MIT
*
* For the full copyright and license information, please view the
* LICENSE file that was distributed with this so... |
c7a177439f4510f838f1cec8ea625985457bbae9 | 5632d9a5233605e7004faf10cdb8842fd98f5627 | alexforencich/templates | /xmega.cpp/ostream.cpp | C++ | cpp | 2,776 | permissive | /************************************************************************/
/* OStream Output Stream */
/* */
/* ostream.cpp */
/* ... |
b64cbafc583bcdcc20acc8844e3db74a5a5cec31 | 3a696b0c9d80d9644d9f4a42d73be60085eb49d3 | cf-GitHub-114/experiments-of-VC | /exp3-7/exp3-7/exp3-7View.cpp | C++ | cpp | 1,936 | no_license |
// exp3-7View.cpp : Cexp37View 类的实现
//
#include "stdafx.h"
// SHARED_HANDLERS 可以在实现预览、缩略图和搜索筛选器句柄的
// ATL 项目中进行定义,并允许与该项目共享文档代码。
#ifndef SHARED_HANDLERS
#include "exp3-7.h"
#endif
#include "exp3-7Doc.h"
#include "exp3-7View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// Cexp37View
IMPLEMENT_DYNCREATE(Cexp37Vie... |
60d1474c584cbd6a7ecdd09f1e5f8a2801c3a761 | 1304c045777cccc4de2f51693ccddacba1234744 | Filet-de-S/c_plusplus_yandex | /white/test.cpp | C++ | cpp | 908 | no_license | // C++ program to implement recursive Binary Search
//#include <bits/stdc++.h>
#include <iostream>
using namespace std;
// A iterative binary search function. It returns
// location of x in given array arr[l..r] if present,
// otherwise -1
int binarySearch(int arr[], int l, int r, int x)
{
while (l <= r) {
... |
0d20007dccde26474b687f6f0f4e6ef95f72e401 | 52c3c507c00ca53269c31eec27f98d115b1c766d | GPUWorks/spacegame | /src/render/Mesh.cxx | C++ | cxx | 3,004 | no_license |
#include <QFile>
#include <QString>
#include <QTextStream>
#include <QGLWidget>
#include <Mesh.h>
#include <Color.h>
#include <RenderHelpers.h>
#include <Profile.h>
using namespace RenderHelpers;
Mesh& Mesh::ENGINE = *(new Mesh("engine", Color(0.5, 0.5, 0.5, 1.0)));
Mesh& Mesh::FLIGHT_COMPUTER = *(new Mesh("compute... |
360c68beccbf48c8786225cd092709e8e2f82e32 | ae0e0c46e4a4b2e2b632e7724467faf62bf64d66 | FootprintGL/algo | /leetcode/16.02-words-frequency-LCCI--hashmap.cpp | C++ | cpp | 505 | no_license |
class WordsFrequency {
public:
unordered_map<string, int> tbl;
WordsFrequency(vector<string>& book) {
for (auto &word : book)
tbl[word]++;
}
/* 哈希表 */
int get(string word) {
if(tbl.count(word)) {
return tbl[word];
} else {
return 0;
... |
cfef451f6de56407f7993cd83c03531fe9e09291 | 7e3da734fd814e3534ddcdee1eb21fd19d4ba877 | sigmaris/deflektor-ds | /source/anglereflector.cpp | C++ | cpp | 1,387 | no_license | /*
* anglereflector.cpp
* deflektor-ds
*
* Created by Hugh Cole-Baker on 1/18/09.
*
*/
#include <nds.h>
#include "anglereflector.h"
AngleReflector::AngleReflector(int bg, int x, int y, unsigned int palIdx, unsigned int tile, BeamDirection setAngle, int reflectiveSides) :
SpinReflector(bg, x, y, palIdx, tile... |
bf55a2a96739899e25314c7cd7037e675869144f | 5c37937276b579fbeec2297491543ec94595f40e | mathnirvana/swift | /lib/Migrator/MigrationState.cpp | C++ | cpp | 3,921 | permissive | //===--- MigrationState.cpp ------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LI... |
25ed3728cdc3b825a109be132ced1f8330499cd4 | 142b95b994588575c5c1355e64b44bc4e02744bd | nuzumglobal/Elastos.Trinity.Alpha.Android | /src/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc | C++ | cc | 37,803 | permissive | // Copyright 2016 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/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#inclu... |
2febeeac1b54b864e23a0af075e86978a7164c43 | e2cb0cf914294d03f308455c6e6f294495a4f26b | cyrusccy/Karabiner-Elements | /src/share/core_configuration.hpp | C++ | hpp | 16,721 | permissive | #pragma once
#include "connected_devices.hpp"
#include "constants.hpp"
#include "filesystem.hpp"
#include "json_utility.hpp"
#include "logger.hpp"
#include "session.hpp"
#include "time_utility.hpp"
#include "types.hpp"
#include <fstream>
#include <glob.h>
#include <json/json.hpp>
#include <natural_sort/natural_sort.hp... |
c51221acbcc7a73d254dc9f7935daa364c28208b | 95d2f8e994393cf81bcecaa112a442c47234f758 | Thomassheng/mt8735-vendor | /mediatek/proprietary/platform/common/hardware/audio/V3/speech_driver/SpeechMessengerCCCI.cpp | C++ | cpp | 77,066 | no_license | #include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <linux/rtpm_prio.h>
#include <sys/prctl.h>
#include <cutils/properties.h>
#include "AudioLock.h"
#include "SpeechMessengerCCCI.h"
#include "SpeechDriverLAD.h"
#include "SpeechBGSPlayer.h"
#include "Spee... |
b8bc84c1ae95425726ff7e6fa3270f053e9af898 | 31bf7953f26bf25273dc0b616c9c55911c08812a | sathya945/Ray-tracing | /main.cpp | C++ | cpp | 12,726 | no_license | #include "triangle.h"
using namespace std;
// const int h = 400,w = 300;
// const int h = 1200,w = 900;
const int h = 1920,w = 1280;
int max_reflections = 6;
bool refraction = false;
// bool refraction = true;
float wall_reflec = 0.1;
float floor_reflec = 0;
float div_dis = 100;
unsigned char img[h][w][3];
g... |
57bc795f0580c4684888918f501ebf49a64b3975 | abf5a9dd60342c9f2306716c8560062b115cffcd | pentalpha/railroads-simulator | /RailroadsSimulator/railroadViewerTest.cpp | C++ | cpp | 394 | permissive | #include "RailroadsViewer.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
std::string graphFilePath = "/home/pentalpha/main/UFRN/2017.1/Lab. Projeto de S.O./railroads-simulator/min.graph";
int zoom = 10;
int padding = 40;
RailroadsViewer railroads(zoom, pad... |
40a069f3f96fdb442b4e508cdea176953db2f47e | 8071ca7f57d22f79b4573e837b7181c2bb299a03 | joseph6s/36C-Code | /hw2-submission/src/stack.cpp | C++ | cpp | 1,921 | no_license | #include "datastructure.hpp"
#include <sstream>
void Stack::push(int e)
{
if (this->s_size == 0)
{
this->head->val = e;
this->s_size += 1;
}
else
{
Node *temp = new Node;
temp = this->head;
this->head = new Node;
this->head->val = e;
this->hea... |
fab3042d8841e8e858b2b2ffb886a86379a6550c | 468dfe558859a6a37532f11bc1b403164c55f342 | ngolam2011/payroll | /Tests/AddHourlyEmployeeTest.cpp | C++ | cpp | 1,530 | no_license | //
// Created by lngo9 on 12/4/2017.
//
#include "gtest/gtest.h"
#include "../PayRoll/Transactions/AddEmployeeTransaction.h"
#include "../PayRoll/HourlyClassification.h"
#include "../PayRoll/Transactions/AddHourlyEmployee.h"
#include "../PayRoll/Database/PayrollDatabase.h"
#include "../PayRoll/WeeklySchedule.h"
#inclu... |
9d11484b2752adc2b42bc617532b940d93fc9399 | 92278a425ac3631df4de5bd7cfcb177c7014eec9 | ddouup/COMP2012H | /project5/RegistrationManager.cpp | C++ | cpp | 3,669 | no_license | #include "RegistrationManager.h"
#include <iterator>
#include <algorithm>
#include <list>
#include <stdexcept>
using namespace std;
RegistrationManager::RegistrationManager():
Students(StudentID_M, 1),Courses(CourseCode_M, 2),IDIndexs(StudentID_M, 3),CodeIndexs(CourseCode_M, 4){
/*
Students(StudentID_M, 1);
Cour... |
8198d52ce410cdff29915af2bb1ef0e737c13485 | 24914bb733826a6b6016c087a05f4560801757ab | Meow-C/ogs6 | /ProcessLib/PhaseField/PhaseFieldProcess.cpp | C++ | cpp | 12,862 | permissive | /**
* \file
*
* \copyright
* Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#include "PhaseFieldProcess.h"
#include ... |
834bf98b84eba2dfe061462e735b4a1261e40690 | bc7c73e2e57b21cbb4d2e809f7921e782413b295 | ohnley/stroustrup_fltk | /src/Graph.cpp | C++ | cpp | 22,382 | no_license |
// This is a GUI support code to the chapters 12-16 of the book
// "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup
#include <FL/Fl_GIF_Image.H>
#include <FL/Fl_JPEG_Image.H>
#include "dummycmake/Graph.h"
#include <iostream>
// macro hack to get pi without importing stuff
#define MY_PI_CONST ... |
e5206de409620998bd8298b7d330acaedc71cc73 | 38870b2a7d46ad094323f1be0b59cb0af70bfeb9 | isabella232/IntelRackScaleArchitecture | /RSA-SW/PSME/common/agent-framework/tests/command/network/get_switch_ports_id_test.cpp | C++ | cpp | 3,570 | permissive | /*!
* @section LICENSE
*
* @copyright
* Copyright (c) 2015 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apache.org... |
6a0811fa8b18cfd88dd967eb044e642c60889ebb | 540d286c2ae7684896b220446e89562214dc4411 | LivinKlab/nemo-qml-plugin-contacts | /src/seasideperson.cpp | C++ | cpp | 41,647 | no_license | /*
* Copyright (C) 2012 Robin Burchell <robin+nemo@viroteck.net>
*
* You may use this file under the terms of the BSD license as follows:
*
* "Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions ... |
4704f78f8a407492d98b69424066a3a2d69ee984 | c85faf5817b28a723dfe2843bf82622d2f6d0b43 | IsraMekki/tiramisu_code_generator | /cmake-build-debug/programs_tiling/function14794/function14794_schedule_7/function14794_schedule_7_wrapper.cpp | C++ | cpp | 930 | no_license | #include "Halide.h"
#include "function14794_schedule_7_wrapper.h"
#include "tiramisu/utils.h"
#include <cstdlib>
#include <iostream>
#include <time.h>
#include <fstream>
#include <chrono>
#define MAX_RAND 200
int main(int, char **){
Halide::Buffer<int32_t> buf00(512, 128, 512);
Halide::Buffer<int32_t> buf0(5... |
05fef737683557f4a9af8c367a8771bbb3eaccfd | 270ca66821399f0b10f0bf544aa4f644b3d4f11f | ruilin/RLMap | /drape_frontend/stylist.cpp | C++ | cpp | 10,296 | permissive | #include "drape_frontend/stylist.hpp"
#include "indexer/classificator.hpp"
#include "indexer/feature.hpp"
#include "indexer/feature_visibility.hpp"
#include "indexer/drawing_rules.hpp"
#include "indexer/drules_include.hpp"
#include "indexer/scales.hpp"
#include "std/limits.hpp"
namespace df
{
namespace
{
enum Type... |
c2761e16b7fa9e59e53ec63942763a80cb49a235 | 69e4a1416b50a22ab0259ac7467e2acceeee733a | pu2oqa/muServerDeps | /_Include/boost/phoenix/bind/bind_function.hpp | C++ | hpp | 3,857 | no_license | /*=============================================================================
Copyright (c) 2001-2007 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
===================================... |
9e97174ef387910af5956f5a4b8b254174d446de | 6ec1f4cbe35eaf9d9f4b5fb3ac2930df8ed8ebeb | AyushBobale/UE4Multiplayer | /Plugins/AdvancedSessions/AdvancedSessions/Intermediate/Build/Android/UE4/Inc/AdvancedSessions/SendFriendInviteCallbackProxy.gen.cpp | C++ | cpp | 16,048 | no_license | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
========================================================================... |
2f0e3385df554bf61fd29fed2151eefae65e32da | 2651b99dc60df7127c47e20309f7e6ce7253d0db | jsmera/UVaSolvers | /127/main.cpp | C++ | cpp | 1,413 | no_license | #include <vector>
#include <stack>
#include <iterator>
#include <cstdio>
using namespace std;
struct Card {
char range;
char suit;
};
bool canStack(const Card& c1, const Card& c2) {
return (c1.range == c2.range || c1.suit == c2.suit);
}
int main() {
char card[2];
int nCards = 0;
vector< stack<Card> > ca... |
8638d9d7e5dfda24847e8e8bb4a5fbc46aac5a0b | d5a87275bb5f403df10266f87f9f8c12eda09b68 | Osezua-Oz/CPP-Practice | /Practice/WordUnscrambler/src/main.cpp | C++ | cpp | 1,790 | permissive | // main.cpp : A word unscrambler that reads scramble words from a txt file and unscramble them from reading and using a word list txt file.
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <algorithm>
using namespace std;
// Overload () operator to compare the two strings' sizes
st... |
70d42a98980c10df49080d919c6948f54a3b3e93 | 6dd6984526926faccf3f6c394cbb1d6b26fa8f7e | LewisWakeford/FirstPersonPlatformer | /game/src/Orientation.cpp | C++ | cpp | 4,201 | no_license | #include "Orientation.h"
Orientation Orientation::mix(const Orientation& orientation1, const Orientation& orientation2, const double ratio)
{
Orientation result;
result.setForward(glm::mix(orientation1.getForward(), orientation2.getForward(), ratio));
result.setUp(glm::mix(orientation1.getUp(), orientation... |
9956a2b1f402c9d5f13b49992cbb365e2d2146c7 | fec332fc19ccc2b779d546a513ed9af45205943b | karthikv792/PlanningAssistance | /planner/FD/src/preprocess/axiom.cc | C++ | cc | 2,019 | permissive | #include "helper_functions.h"
#include "axiom.h"
#include "variable.h"
#include <iostream>
#include <fstream>
#include <cassert>
using namespace std;
Axiom::Axiom(istream &in, const vector<Variable *> &variables) {
check_magic(in, "begin_rule");
int count; // number of conditions
in >> count;
for (int... |
bde586666e74d38ba666d653bfbc34638cfe3f65 | 74b5898d157ef841b87bcb4ea6557bfc596e6f43 | RobotLocomotion/drake | /examples/manipulation_station/mock_station_simulation.cc | C++ | cc | 9,618 | permissive | #include <limits>
#include <gflags/gflags.h>
#include "drake/common/eigen_types.h"
#include "drake/common/find_resource.h"
#include "drake/common/is_approx_equal_abstol.h"
#include "drake/examples/manipulation_station/manipulation_station.h"
#include "drake/geometry/drake_visualizer.h"
#include "drake/lcmt_iiwa_comma... |
70931ed16855b8ad5568c30e33bf9009edb1ed76 | 385ef0d2c6698fd941b86b592425c04feb10f727 | pewdspie24/SPOJ | /dr1.cpp | C++ | cpp | 737 | no_license | #include <bits/stdc++.h>
#include <string>
#include <string.h>
#define N9 100000000
#define N5 100000
#define FOR(i,a,b) for(long long i = a; i < b; i++)
#define F0R(i,a,b) for(long long i = a; i <= b; i++)
#define TEST(n) for(long long SoTest = 0; SoTest < n; SoTest++)
#define pub push_back
#define pob pop_back
usin... |
138262645d1d43344b554e3fde5c654c6daebf26 | 4983c16c6cf2bb12009007868de6efe6c78e6440 | PazerOP/DemoLib2 | /DemoLib2/net/netmessages/NetBspDecalMessage.hpp | C++ | hpp | 717 | permissive | #pragma once
#include "misc/Vector.hpp"
#include "net/netmessages/INetMessage.hpp"
class NetBspDecalMessage final : public INetMessage
{
public:
void GetDescription(std::ostream& description) const override;
void ApplyWorldState(WorldState& world) const override;
NetMessageType GetType() const override { return Ne... |
4c91a8a9f5a23a06618fa1f107ab256cca090329 | d7a3b81353041fb5d3ff9262bf72d0a1253af918 | vslavik/poedit | /deps/boost/libs/fusion/test/sequence/test_deduce_sequence.cpp | C++ | cpp | 629 | permissive | /*=============================================================================
Copyright (c) 2009 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================... |
6d5bb5e3b1460c9330ee56fb68db8b16f3806759 | b1ff57c12d54288af58fee66af5e7ec344b934d4 | EvgenyVRN/VTK | /Common/DataModel/vtkLagrangeInterpolation.cxx | C++ | cxx | 6,861 | permissive | /*=========================================================================
Program: Visualization Toolkit
Module: vtkLagrangeInterpolation.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 sof... |
5ce327fcd9c609bd7fc7e7798a8a251216a7a148 | 765fb3ed689d72f8b64441a85989a13e2b9b6919 | ShaiRoitman/clu | /clu/CommandLineHandlers/CommandLineHandler.cpp | C++ | cpp | 6,391 | permissive | #include "CommandLineHandler.h"
#include <memory>
#include "InputFileOperator.h"
#include "OutputHandlers/FileOutputHandler.h"
#include "OutputHandlers/BufferedOutputHandler.h"
#include "FileInputReader.h"
#include "Globals.h"
#include "Operators/TeeOperator.h"
#include "PrePostInputSource.h"
#include "StandardInputSou... |
ae8ac37947607c5b473121552633e473dd47bdc3 | d96e8ca5803b83f2de73ca2f42d4ae5ecf868338 | VCG/seeded_zwatershed | /src/szw.cpp | C++ | cpp | 6,944 | no_license | /*
* SZW.cpp - an implementation of a watershed based on affinities
*/
#include "szw.hpp"
#include <cstdint>
#include "boost/multi_array.hpp"
#include "boost/multi_array/storage_order.hpp"
#include <algorithm>
#include <vector>
#include <deque>
#include <iostream>
struct qelement_t {
uint32_t x;
uint32_t y;
... |
8a3d4f8352caa94c54495bb31d380e8ad032ef40 | 6c84d8ec835c8de5eb63ff836f25f6b168d228df | mollynova/Undergraduate_Work | /CS260/Labs/lab05/functions.cpp | C++ | cpp | 1,152 | no_license | #include<iostream>
#include "functions.h"
using namespace std;
void doAverage(int x, int y) {
int sum = x + y;
int average = sum / 2;
cout << "Average of " << x << " and " << y << " is " << average << endl;
}
void doGCD(int x, int y){
int numOne = x;
int numTwo = y;
while(numOne != 0 || numTwo != 0){
... |
725b8d3feaf2616dfe28e09541d59496b5e5efa7 | 1906f0a9f5d43e38b045fb0123f1eda491539c3c | Nimishkhurana/Data-Structures | /codeforces/619/A.cpp | C++ | cpp | 463 | no_license | #include<bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(i=a;i<b;i++)
#define ld long double
#define ll long long
int main(){
int t;
cin>>t;
while(t--){
string a,b,c;
cin>>a>>b>>c;
int i,n = (int)a.length();
rep(i,0,n){
if(a[i]==c[i] || b[i]==c[i])
... |
0d207a6a6fcd3e27c78e8b3f0c2abb1ffb8aa6b9 | 2722e0196eae1749a755042f4dea06f75a56c038 | teocaragea/dynamic-programming | /djakstra.cpp | C++ | cpp | 1,998 | no_license | #include <iostream>
#include <fstream>
using namespace std;
/**
determina lanturile de cost minim
de la nodul r (radacina)
la celelalte noduri
n<50, m<100, cost_maxim=70
=>pinf=70*100
*/
int a[50][50], n, pinf=1000;
int t[50], viz[50], d[50];
int r;
void init()
{
ifstream f ("date.in");
f>>n... |
4942597deb98c05c70423105d757096edc49ff6c | e86f6560edb36f18433248539137eca44bec5c37 | potel/DOM | /localdom/chisq.cpp | C++ | cpp | 2,252 | no_license | // to run this program
// chisq X to fit data
// chisq a to not fit
#include "fit.h"
int main(int Narg, char* pszArg[])
{
if (Narg > 3) return 0;
string title(pszArg[1]);
string fileName = title+".inp";
//read in input file to cound how many fitted parameters
ifstream file(fileName.c_str());
if (fil... |
681c621b04f6930aa42356890140e9b97b46767f | aa11c29d9be5ba39b28d034e335902262a86b024 | orthogonal829/chromium | /ash/events/keyboard_capability_delegate_impl.cc | C++ | cc | 2,152 | permissive | // Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/events/keyboard_capability_delegate_impl.h"
#include "ash/constants/ash_pref_names.h"
#include "ash/session/session_controller_impl.h"
#include "ash/shell.h"
#in... |
5455328ddd94b36bcc61716b242ad2b35b91ac18 | 88725b7d0851f16f7dae1212062cbe62071bb79e | sadrulhc/chromium | /third_party/blink/renderer/platform/widget/input/scroll_predictor_unittest.cc | C++ | cc | 20,225 | permissive | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/widget/input/scroll_predictor.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/t... |
80a3f493478a0a01ae90a3a5bd40b08bf8e1bedb | cdf27193f57da1d3ef68803e8b76bf9983b64932 | incognitocoin/incognitov2 | /src/qt/optionsmodel.cpp | C++ | cpp | 10,125 | permissive | #include "optionsmodel.h"
#include "bitcoinunits.h"
#include <QSettings>
#include "init.h"
#include "walletdb.h"
#include "guiutil.h"
OptionsModel::OptionsModel(QObject *parent) :
QAbstractListModel(parent)
{
Init();
}
bool static ApplyProxySettings()
{
QSettings settings;
CService addrProxy(settings... |
415f1aeac053668ad22ffcec5853fe424b4149d1 | 468e3ca5568cfc8f516a3a54d4f75e24a44c491a | muecoin/MUE-QUARK-DISCONTINUED | /src/qt/exchangebrowser.cpp | C++ | cpp | 25,904 | permissive | #include "exchangebrowser.h"
#include "ui_exchangebrowser.h"
#include "main.h"
#ifdef ENABLE_WALLET
#include "wallet.h"
#endif
#include "base58.h"
#include "clientmodel.h"
#include "rpcclient.h"
#include <sstream>
#include <string>
#include <QDesktopServices>
#include <QString>
using namespace json_spirit;
//Coinba... |
388ec9f10c3fdd5aa6a468806e53cfdb2736b370 | b4188dcc91e04e219277ca9df8c1789b67de8b20 | Coletinn/dados-projeto2-calculadoraRPN | /projeto2-dados/DynamicStack.cpp | C++ | cpp | 871 | no_license | /*
Gustavo Coleto de Freitas 32076541
Joćo Vitor Teles Centrone 32033125
*/
#include "DynamicStack.h"
#include <iostream>
#include <string>
DynamicStack Create()
{
LinkedList* list = Create_List();
DynamicStack stack = { 0, list };
return stack;
}
bool Push(DynamicStack& stack, float value)
{
Insert(stack.lis... |
b19dca66628fe0cd314d2229c28447a275e11181 | 554866b515c7a65451468e5b0d6892224dd2cf14 | 4l3dx/DBOGLOBAL | /DboClient/Tool/TSTool/Attr_EVT_HoipoiMix.cpp | C++ | cpp | 1,156 | no_license | // Attr_EVT_HoipoiMix.cpp : 구현 파일입니다.
//
#include "stdafx.h"
#include "TSTool.h"
#include "Attr_EVT_HoipoiMix.h"
// CAttr_EVT_HoipoiMix 대화 상자입니다.
IMPLEMENT_SERIAL(CAttr_EVT_HoipoiMix, CAttr_Page, 1)
CAttr_EVT_HoipoiMix::CAttr_EVT_HoipoiMix(CWnd* pParent /*=NULL*/)
: CAttr_Page(CAttr_EVT_HoipoiMix::IDD)
{
}
CAtt... |
3d5fddf75d8ec89925778e9020667e8b7aec7375 | e5e449878c3fc47830c31ce995a40d268138083a | zhangyuhangk/LeetCodePractices | /LeetCodePractices/Q95_Unique_Binary_Search_Trees_II.cpp | C++ | cpp | 1,517 | no_license | #include "Q95_Unique_Binary_Search_Trees_II.h"
#include "common.h"
//Definition for a binary tree node.
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
};
class Solution {
public:
vector<TreeNode*> generateTrees(int n) {
if (n <... |
c825ebb741d459bb7d9280a2160487a4a475980b | 1dc13e30361c7e1dce72fca8f7df6d04694656e1 | luannn308/exercises_mini | /CDate/Source.cpp | C++ | cpp | 786 | no_license | #include<iostream>
#include"CDate.h"
#include<math.h>
#include "Source.h"
using namespace std;
int main() {
CDate Date_1, Date_2,Date_kq;
int Date_num;
cout << "Nhap so ngay de thuc hien + - : ";
cin >> Date_num;
cin >> Date_1;
cout <<"Date_1 = "<< Date_1 << endl;
cin >> Date_2;
cout << "Date_2 = "<< Date_2 << ... |
6eac3a4c60e4a098474441265a8b5823d428b728 | 7480b8b48d5e603decff864f11b5ca9657aae984 | cms-sw/cmssw | /Fireworks/Core/src/CmsAnnotation.cc | C++ | cc | 9,580 | permissive | #include <sstream>
#include "TGLIncludes.h"
#include "TGLCamera.h"
#include "TGLRnrCtx.h"
#include "TGLSelectRecord.h"
#include "TGLViewerBase.h"
#include "TGLViewer.h"
#include "TImage.h"
#include "TEveManager.h"
#include "Fireworks/Core/interface/CmsAnnotation.h"
#include "Fireworks/Core/src/FWCheckBoxIcon.h"
#incl... |
6b4f195b37b8d0fbb6acd0a97900ed45e22578dc | c26a36923ca5a836bd1ed25f8ef6550eae16a134 | accphys-collab/lib-tracy | /tracy/src/t2elem.cc | C++ | cc | 131,105 | no_license | /* Tracy-2
J. Bengtsson, CBP, LBL 1990 - 1994 Pascal version
SLS, PSI 1995 - 1997
M. Boege SLS, PSI 1998 C translation
L. Nadolski SOLEIL 2002 Link to NAFF, Radia field maps
J. Bengtsson NSLS-II, BNL 2004 -
Element propagators.... |
d68aca66a1445e188ed3d718bbd09003bcf52fdb | db87b4fc1c64863ba0ae5d744741161ced67fb4a | Samsung/Castanets | /chrome/services/media_gallery_util/public/cpp/media_parser_provider.cc | C++ | cc | 2,090 | permissive | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/services/media_gallery_util/public/cpp/media_parser_provider.h"
#include "base/allocator/buildflags.h"
#include "base/bind.h"
#include "... |
d8d2a5122e0a707d5045da816c74a6e03482e39e | 1f5381f476a6155cba686444a1c990c69b9a9db8 | Shell-Wataru/AtCoder | /kakomon/typical90_b.cpp | C++ | cpp | 1,140 | no_license | #include <iostream>
#include <algorithm>
#include <vector>
#include <deque>
#include <queue>
#include <set>
#include <map>
#include <limits>
#include <cmath>
#include <iomanip>
#include <functional>
#include <random>
#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
using ll = long long;
int main()
{
... |
9c4b65eff5c27f2c68f2711c66005b4b27d8f33e | 118d15184ce5a49d4367207c5e6e1b4adf845aac | webosce/chromium53 | /src/device/serial/serial_io_handler.cc | C++ | cc | 9,690 | permissive | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/serial/serial_io_handler.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/files/file_path.h"
#include "bas... |
527b14aadd39a3ff2a33e4fb0d7a8340cc58303b | a441319c637d2ab7b2fe28dd54f373db04b91b4f | biyotteu/algorithms | /C++/단지번호.cpp | C++ | cpp | 955 | no_license | #include <bits/stdc++.h>
using namespace std;
int n, d[30][30], visit[30][30], cnt;
vector<int> res;
void dfs(int x, int y)
{
if (visit[x][y])
return;
int X[4] = {1, 0, -1, 0};
int Y[4] = {0, 1, 0, -1};
visit[x][y] = 1;
cnt++;
for (int i = 0; i < 4; i++)
{
if (d[x + X[i]][y... |
02ac4441af2c79a9234ede9ff0f4e0c42598b411 | 9a2963b1b629e435abbff5fbef97b154faa8ecf9 | Naios/MythCore | /src/server/game/Grids/Notifiers/GridNotifiers.cpp | C++ | cpp | 11,461 | no_license | /*
* Copyright (C) 2008 - 2011 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2012 Myth Project <http://mythprojectnetwork.blogspot.com/>
*
* Myth Project's source is based on the Trinity Project source, you can find the
* link to that easily in Trinity Copyrights. Myth Project is a private commun... |
4d62711142c1091386a124f3346aea701c7f10c0 | c796814c3b7b26cff460e5aedaa9dc9cf77b98fa | AlexKLM/Physics-sim-and-concurrency | /Server/Server/communicate_thread.cpp | C++ | cpp | 1,133 | no_license | #include "communicate_thread.h"
using namespace std;
struct test{
float x;
float y;
float angle;
};
test testpacket;
communicate_thread::communicate_thread(void)
{
testpacket.x = 50.5f;
testpacket.y = 20.35f;
testpacket.angle =11.3f;
}
communicate_thread::~communicate_thread(void)
{
}
bool communicate_th... |
ba1915464603cc7a589c1eab799de1b980de1d0f | 9c26827b1f7f8ff96f205c2810164fb5e17b774a | tungngovn/jsk_3rdparty | /3rdparty/voice_text/src/voice_text.cpp | C++ | cpp | 4,018 | no_license | /*
* voice_text_server.cpp
* Author: Yuki Furuta <furushchev@jsk.imi.i.u-tokyo.ac.jp>
*/
#include <fstream>
#include <cstdlib>
#include <sstream>
#include <string>
#include <boost/filesystem.hpp>
#include <boost/thread.hpp>
// ROS
#include <ros/ros.h>
#include <dynamic_reconfigure/server.h>
#include <voice_text/V... |
1b2e55834649586addcb6a02c770628d55d32804 | b1bb06f5021c24a83fed915c8bfa0251559237ad | strahlistvan/algorithms | /Tree.cpp | C++ | cpp | 3,959 | no_license | #include <iostream>
#include <iomanip>
#include <cstdlib>
#include <ctime>
#include <vector>
using namespace std;
const int LIMIT = 1000; //max tree depth
/** Nodes of the tree */
struct Node
{
int value;
Node * parent;
vector<Node *> children;
void add_child(int child_value)
{
Node * chi... |
95650a5d61abe160b32f77f116ed054c95d846ff | 9c4a55fb4cf683df097f319a357a3d325ee983bc | ataceyhun/xray-oxygen | /code/engine.vc2008/xrGame/HUDManager.cpp | C++ | cpp | 6,170 | permissive | #include "stdafx.h"
#include "HUDManager.h"
#include "hudtarget.h"
#include "actor.h"
#include "../xrEngine/igame_level.h"
#include "../xrEngine/xr_input.h"
#include "GamePersistent.h"
#include "../xrUICore/MainMenu.h"
#include "grenade.h"
#include "Car.h"
#include "UIGame.h"
#include "../xrUICore/UICursor.h"
#include ... |
a13d354825922f62f0000c026f29698572a36424 | 8fea0bd77d2de0770a7e5ead347444f1dac5c9e2 | ikoruk/ceres-solver | /internal/ceres/generated/partitioned_matrix_view_2_4_9.cc | C++ | cc | 2,468 | permissive | // Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2013 Google Inc. All rights reserved.
// http://code.google.com/p/ceres-solver/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistr... |
b8c7b2371f6d76823cc1b8e68a4430164d427bc3 | 504e9367fdb50c54de79a13e96d6da90fccc8b48 | ivan-kits/skia-opengl-emscripten | /src/chromium/gen/gen_combined/ui/gfx/mojo/color_space.mojom-blink.cc | C++ | cc | 3,522 | permissive | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#elif defined(_MSC_VER)
#pragma warning(pus... |
ba4641e4d356a01719635be5397f9e4ceb36c2bd | 8b90b14b64237959c0feb39e28c97481e9c7f93b | jake-billings/edu-csci2312 | /hw05/Fish.cpp | C++ | cpp | 2,011 | permissive | /**
* Name: Jake Billings
* Date: 03/30/2018
* Class: CSCI 2312
* Description: implementation file for class Fish
*/
#include "Fish.h"
/**
* read()
*
* reads from is to populate the fields of this object
*
* @param is input stream pointing to a valid data stream
*/
void Fish::read(istream &is) {
string... |
bbce33a66812024b5f6db964503e1ebecfae376b | 35a90c5183e4905ef29556232a12c8ef566148fa | Ebengrad-bit/ann3 | /nvann3/FeatureExtractionLib/FeatureExtraction.cpp | C++ | cpp | 783 | no_license | #define FEATURE_DLL_EXPORTS
#include "FeatureExtraction.h"
#include "NV_IBlob.h"
#include "NV_PoliMan.h"
std::string fe::GetTestString()
{
return "fe by NV";
}
/**
* Создать обработчик смежных областей.
* @return обработчик смежных областей.
*/
std::shared_ptr<fe::IBlobProcessor> fe::CreateBlobProcessor()
{
... |
bef1a65a0314905186fd8c0d44cd45993c8f103d | c4b8cf72594fd06f00b216c17a672a527039e005 | evlinkov/parallel | /ping_pong/main.cpp | C++ | cpp | 1,229 | no_license | #include <iostream>
#include <chrono>
#include <fstream>
#include <vector>
#include <thread>
char array[65];
static const int iterations = 1e9;
int justdoit(const int a) {
return (a + 5) % 33 + a * a + (a + a + 1) % (a + 7 + (a + 7 == 0));
}
void f(const int pos) {
for (int i = 0; i < iterations; ++i) {
... |
4eb6b0851a4086dcebce36dc0e7c1efe19ae40a6 | cccd2e85fdb3723594f428c565a9bc6a1607d574 | roigcarlo/Kratos | /kratos/tests/cpp_tests/geometries/test_coupling_geometry.cpp | C++ | cpp | 9,468 | permissive | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Tobias Teschemacher
// Collab... |
9d4702964eb59e3a70192a8ae32ca9dbe73b2b91 | fdfab9b79090f9a9de7a9b7241d8fdc9c65f91a0 | cpkt9762/SCUM-SDK | /SDK/SCUM_Zombie_Jeans_01_03_functions.cpp | C++ | cpp | 354 | no_license | // SCUM (0.1.17.8320) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "SCUM_Zombie_Jeans_01_03_classes.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
}
#ifdef _... |
17a30ed0313382f02306ceb24553cb06b7cfb648 | 1ad6b0f0d0e01ce41735b4bf253d1e4f66b31593 | isochron88/YARK | /YARK-MFD-5 DEV/YARK-MFD-5/YARK_CLIENT/Widgets/GaugeCompass.cpp | C++ | cpp | 9,263 | no_license | #include "GaugeCompass.h"
#include <iostream>
GaugeCompass::GaugeCompass()
{
}
#include "glm/gtc/matrix_transform.hpp"
std::string GaugeCompass::GetTitle()
{
return "Gauge Compass";
}
void GaugeCompass::Draw(XY pos, XY size) {
int PLANE_MARKER_HALF_WIDTH = 35;
int PLANE_MARKER_HALF_HEIGHT = 27;
int OFFSET_GA... |
72b3bdddfcf6a8a0088e18d16975b9ad7549c13b | 835b9a22f60fbd95919f9881c4d62a8d2ab80a8d | brunolauze/openpegasus-providers | /src/Providers/UNIXProviders/FlowService/UNIX_FlowService_ZOS.hxx | C++ | hxx | 1,805 | permissive | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
faf900f1dd5bea132abe0b2334777275de578615 | f3a22248f7b31fa7510ee3f7c3951408ec609a02 | AquariusBrowser/webkit | /Source/WebKit/StorageProcess/ServiceWorker/WebSWServerConnection.cpp | C++ | cpp | 12,911 | no_license | /*
* Copyright (C) 2017 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... |
c3975133bfad907b93121f2f4525879f9b2c81df | e4459fa385fbc82830908e96c3082aeca433a204 | ansono/arnold-usd | /ndr/tokens.cpp | C++ | cpp | 725 | permissive | // Copyright 2022 Autodesk, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
0f5fb46d156e0c9e726e84ddf5efe2e930ccd4b3 | 14fed72e728c41c87a08fdc17a970378997ae79b | facebook/fboss | /fboss/agent/hw/sai/tracer/Utils.cpp | C++ | cpp | 25,658 | permissive | /*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... |
88d6fd5aab39d6f553ad12bfc4104659951f0866 | 5c447a0d8f6ae8c17ad886f7cbdcd4314dba0e6e | worthenmanufacturing/tcad-charon | /src/evaluators/Charon_CondVale_Band.cpp | C++ | cpp | 281 | no_license |
#include "Charon_config.hpp"
#ifdef HAVE_CHARON_EXPLICIT_INSTANTIATION
#include "Panzer_ExplicitTemplateInstantiation.hpp"
#include "Charon_CondVale_Band_decl.hpp"
#include "Charon_CondVale_Band_impl.hpp"
PANZER_INSTANTIATE_TEMPLATE_CLASS_TWO_T(charon::CondVale_Band)
#endif
|
5cd68771d0a12d24fe576e8829f51cd57b7de802 | 4f9e280d7169ad0aec1acd87268d8e5831d7cc4d | nezlinaannagithub/Anna_Projects | /TETRIS/Tetris/Tetris/IO.cpp | C++ | cpp | 4,177 | no_license | /*****************************************************************************************
/* File: IO.cpp
/* Desc: Class for handling inpung & drawing, it uses SDL for the rendering. Change the methods
/* of this class in order to use a different renderer
/*
/*
/* gametuto.com - Javier López López (javilop.com... |
d2511aa698786ca35351b2ee5039b7d9663665d5 | ed9238bd0998f2b17021db124e17c9578c3f0955 | TwoPair/BOJ | /1927.cpp | C++ | cpp | 903 | no_license | #include <bits/stdc++.h>
using namespace std;
#define rep(i,a,n) for (int i=a;i<n;++i)
#define per(i,a,n) for (int i=n-1;i>=a;--i)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define sz(x) ((int)(x).size())
typedef vector<int> VI;
typedef long long l... |
846370fb49c957e4dbccb32ea6e4d2745040d9d1 | 5decb8a9d74c9fc08112094e7fe390ed41779467 | dusthandler/CITM_Dev_1 | /NinJump/Motor2D/j1Collision.cpp | C++ | cpp | 5,978 | permissive | #include "j1App.h"
#include "j1Input.h"
#include "j1Render.h"
#include "j1Collision.h"
#include "p2Log.h"
#include "Brofiler/Brofiler.h"
j1Collision::j1Collision()
{
for (uint i = 0; i < MAX_COLLIDERS; ++i)
colliders[i] = nullptr;
matrix[COLLIDER_WALL][COLLIDER_WALL] = false;
matrix[COLLIDER_WALL][COLLIDER_PLAY... |
aa1f9dc80a8f8abc79e03207bd30ca73da5524b0 | 139e7f0821a5580609a719236b5927992c0155c6 | zanzo420/Medieval-Dynasty-SDK | /0.6.0.3/External/SDK/BTService_SetOutsideNPCAIState_functions.cpp | C++ | cpp | 4,074 | no_license | // Name: Medieval Dynasty, Version: 0.6.0.3
#include "../pch.h"
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------... |
a63e108616004c0e1947224d7a83ef0205fd5626 | b05c6107b985261b799a17d700cd57500c4cb46b | akivajp/lev | /src/lev/system.hpp | C++ | hpp | 4,576 | permissive | #ifndef _SYSTEM_HPP
#define _SYSTEM_HPP
/////////////////////////////////////////////////////////////////////////////
// Name: lev/system.hpp
// Purpose: header for system managing class
// Author: Akiva Miura <akiva.miura@gmail.com>
// Modified by:
// Created: 13/10/2011
// Copyright: (C) 2010-2... |
a979328e7fa42c3ee9e8e3e064c770208c88925f | 2df344a5f2ba69951d98ba4ea171314d99a24ef2 | lichangke/DesignPattern | /demos/设计模式之状态模式/StatePattern/client01.cpp | C++ | cpp | 395 | no_license | #include "StatePattern01.h"
int main() {
std::cout << "==环境类来负责状态之间的转换==" << std::endl;
std::cout << "初始" << std::endl;
auto *screen = new Screen();
std::cout << "点击 click 测试" << std::endl;
screen->onClick();
screen->onClick();
screen->onClick();
screen->onClick();
screen->onClick()... |
a0842d73c459b10c13adc65b1c96e5fa352896e4 | c9b1ddd7c80cf8413e1566d3da58aa7e4389f943 | dbilovd/compeng-sem1-cpp | /Assignments/session-6-b.cpp | C++ | cpp | 870 | permissive | #include <iostream>
using namespace std;
void printMessage();
string username = "ait",
password = "cs103";
static int times = 1;
int main ()
{
string userUsername, userPassword;
do {
cout << "Enter your username: ";
cin >> userUsername;
cout << "Enter your password: ";
cin >> userPassword;
if (userU... |
408b302e60fdc9cf6da31e96d8c71049b2246259 | f17b219e9ddb6597461b7688e01ae685705e3ac1 | TsufCohen/MTM_HW3 | /HW3tests/test1.cpp | C++ | cpp | 1,280 | no_license | #include <iostream>
#include "MtmVec.h"
#include "MtmMat.h"
#include "MtmMatSq.h"
#include "MtmMatTriag.h"
#include "Complex.h"
using namespace MtmMath;
using std::cout;
using std::endl;
void myAssert(bool flag) {
if (not(flag)) {
cout << "fail" <<endl;
}
}
void exceptionsTest() {
try {
... |
435c1445935d4666b8da6d979b7302ae6214b2ac | af4c56237ddbb89128f53e7e19860c9ea20f6b54 | PabloMessina/Competitive-Programming-Material | /Solved problems/kattis/CountingTriangles.cpp | C++ | cpp | 1,959 | no_license | // tags: geometry, cross product, segment intersection detection
#include <bits/stdc++.h> // add almost everything in one shot
using namespace std;
// defines
#define rep(i,a,b) for(int i = a; i <= b; ++i)
#define invrep(i,b,a) for(int i = b; i >= a; --i)
#define umap unordered_map
#define uset unordered_set
// typedef... |
852d9f67c19a067afe49e64380ad923506709bdd | 1104f01aabb9bf3a0d22f84971939b685a602a0f | qjatn0120/BOJ_algorithm | /19532.cpp | C++ | cpp | 234 | no_license | #include <bits/stdc++.h>
using namespace std;
int a, b, c, d, e, f;
int main(){
scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
printf("%d %d\n", (c * e - b * f) / (a * e - b * d), (c * d - a * f) / (b * d - a * e));
}
|
9ab912b71788cc2cbc20713fc3cac7e4e54b4712 | f28b75f4ce37e9d4819c2f8f6a7bebd215f1eac4 | BenM-OC/CS10A | /Week 10/coneFromUser.cpp | C++ | cpp | 724 | permissive | #include <iostream>
using namespace std;
int main(/*rocketWidth*/)
{
int rowCounter = 0;
int spacesCounter = 0;
int XsPosition = 0;
for (rowCounter = 1; rowCounter < rocketWidth; rowCounter++)
{
for (spacesCounter = rowCounter; spacesCounter < rocketWidth; spacesCounter++){
cout << " ";
}
while (XsPos... |
ab5ea21e7e8f5d3c20203545c8d9aff7f4ac7229 | d457a606b09577798d2cbca703120cc2a82c4afb | hiandy168/Note_of_IOI | /算法例题/[洛谷提高历练地]/[搜索]/p1312-mayan.cpp | C++ | cpp | 2,808 | no_license | #include <iostream>
using namespace std;
struct State{
int cells[7][5]={{0}};
bool can[7][5]={{false}};
bool isover(){
for(int j=0;j<5;j++)
if (cells[0][j]>0) return false;
return true;
}
bool clearup(){
bool ret=false;
for(int i=0;i<7;i++)
... |
70c286947a9ecc0ddce501f371b74ce592bf7e6b | 50403383d8848391dbc18afc79c7ab75649a603e | pseudo-windows/terminal | /src/cascadia/TerminalSettingsEditor/ReadOnlyActions.cpp | C++ | cpp | 2,495 | permissive | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "ReadOnlyActions.h"
#include "ReadOnlyActions.g.cpp"
#include "ReadOnlyActionsPageNavigationState.g.cpp"
#include "EnumEntry.h"
using namespace winrt::Windows::Foundation;
using namespace winrt::Windows::Sys... |
e493cd8e20409a1bbae2a0154ff63d33547118bc | 63e9038832b33d90dce85a5d566d6f77f74da04e | alexandraback/datacollection | /solutions_1673486_0/C++/yuta1024/A.cpp | C++ | cpp | 879 | no_license | #include <iostream>
#include <sstream>
#include <cstdlib>
#include <cmath>
#include <map>
#include <set>
#include <queue>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <cstdio>
#include <numeric>
#include <bitset>
#include <stack>
using namespace std;
const in... |
b314b0ec6dd404fb430ce73b5af96c4a83d2d557 | e9d71ba3a08c4583e9afdd9d09115c0ff41e4ee2 | TeamFirework/SapphireBrowser | /components/download/internal/background_service/entry_utils.cc | C++ | cc | 4,188 | permissive | // Copyright 2017 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/download/internal/background_service/entry_utils.h"
#include <algorithm>
#include "components/download/internal/background_service/... |
5da29bbf49a81d41873c2c4b6ac2f7e8c28ba053 | d13160c11ddc06579b7291bf8e2870f771fcfa5d | MaximeMartelli/Power-Samurai | /splashScreen.cpp | C++ | cpp | 2,043 | no_license | /*******************************************************************/
/*=================================================================*/
/************ -- PROJET : POWER SAMURAI 2D RPG -- ******************/
/*=================================================================*/
/* [EI-SE4] Polytech Paris UP... |
8d5e1d569086d46423f51fa3ee1f8dc1b6e0cb5d | ad6ddff49cfd6c3b9f54db3cd192c7f63158156c | uabti/coolfluid3 | /cf3/mesh/LagrangeP2/Quad2D.hpp | C++ | hpp | 2,763 | no_license | // Copyright (C) 2010-2011 von Karman Institute for Fluid Dynamics, Belgium
//
// This software is distributed under the terms of the
// GNU Lesser General Public License version 3 (LGPLv3).
// See doc/lgpl.txt and doc/gpl.txt for the license text.
#ifndef cf3_mesh_LagrangeP2_Quad2D_hpp
#define cf3_mesh_LagrangeP2_Qua... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.