text
stringlengths
54
60.6k
<commit_before>/* HardwareSerial.cpp - Hardware serial library for Wiring Copyright (c) 2006 Nicholas Zambetti. All right reserved. 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 Fou...
<commit_before>#include "components/config.hpp" #include <climits> #include <fstream> #include "cairo/utils.hpp" #include "utils/color.hpp" #include "utils/env.hpp" #include "utils/factory.hpp" #include "utils/string.hpp" POLYBAR_NS namespace chrono = std::chrono; /** * Create instance */ config::make_type confi...
<commit_before>/* * Copyright 2012 Google 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 l...
<commit_before> // Copyright (c) 2013-2019 niXman (github dotty nixman doggy pm dotty me) // All rights reserved. // // This file is part of EASYNET(https://github.com/niXman/easynet) project. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the follo...
<commit_before>// 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-CHROMIUM file. #include "brightray/browser/browser_main_parts.h" #if defined(OSX_POSIX) #include <stdlib.h> #endif #include <sys/stat.h> #i...
<commit_before>#include "rename_buffer.h" #include <iostream> #include <memory> #include <set> #include <string> #include <sys/stat.h> #include <utility> #include <vector> #include "../../log.h" #include "batch_handler.h" #include "recent_file_cache.h" using std::endl; using std::move; using std::ostream; using std:...
<commit_before>#include "chr/FileSystem.h" #include "chr/MemoryBuffer.h" using namespace std; namespace chr { bool hasFileResources() { #if defined(CHR_FS_APK) || defined(CHR_FS_RC) || defined(CHR_FS_JS_EMBED) || defined(CHR_FS_JS_PRELOAD) return false; #else return true; #endif } boo...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: SmoothingRecursiveGaussianImageFilter.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All right...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
<commit_before>////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2016 musikcube team // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: //...
<commit_before>// 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 "media/audio/mac/audio_low_latency_output_mac.h" #include <CoreServices/CoreServices.h> #include "base/basictypes.h" #includ...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include "stx/wall...
<commit_before>/* * Author(s): * - Cedric Gestes <gestes@aldebaran-robotics.com> * - Chris Kilner <ckilner@aldebaran-robotics.com> * * Copyright (C) 2010, 2011 Aldebaran Robotics */ #include <cstdlib> #include <cstring> #include <cstdio> #include <qi/os.hpp> #include <qi/log.hpp> #include <qi/log/consolelog...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Creator. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Co...
<commit_before>// Copyright 2022 The Ray Authors. // // 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...
<commit_before>#include <tuple> #include <integer_sequence> #include <type_traits> template<typename T, typename Tuple, size_t... I> T __make_from_tuple(Tuple&& t, std::index_sequence<I...>) { return T(std::get<I>(std::forward<Tuple>(t))...); } template<typename T, typename Tuple> T make_from_tuple(Tuple&& t) { ...
<commit_before>// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2011-2013 Preferred Networks and Nippon Telegraph and Telephone Corporation. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Lice...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2011 Dennis Nienhüser <earthwings@gentoo.org> // Copyright 2013 ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the...
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "Lic...
<commit_before>#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <st...
<commit_before>/* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
<commit_before>/** * File : D.cpp * Author : Kazune Takahashi * Created : 2018-9-8 21:12:40 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // ...
<commit_before>/* * Copyright (c) 2012 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#define DEBUG 1 /** * File : C.cpp * Author : Kazune Takahashi * Created : 2019-5-28 15:35:36 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #in...
<commit_before>#define DEBUG 1 /** * File : F.cpp * Author : Kazune Takahashi * Created : 5/16/2020, 6:32:30 PM * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <cmath> #include <complex> #include <cstdint> #include <cstdi...
<commit_before>#define DEBUG 1 /** * File : C.cpp * Author : Kazune Takahashi * Created : 6/18/2019, 2:02:05 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stack...
<commit_before>#define DEBUG 1 /** * File : C.cpp * Author : Kazune Takahashi * Created : 6/18/2019, 2:02:05 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stack...
<commit_before>#define DEBUG 1 /** * File : F.cpp * Author : Kazune Takahashi * Created : 7/28/2019, 1:18:49 AM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stack...
<commit_before>#define DEBUG 1 /** * File : F.cpp * Author : Kazune Takahashi * Created : 2019/11/5 22:01:12 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stack> #...
<commit_before>#define DEBUG 1 /** * File : E.cpp * Author : Kazune Takahashi * Created : 6/7/2020, 1:08:56 AM * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <cmath> #include <complex> #include <cstdint> #include <cstdio...
<commit_before>#define DEBUG 1 /** * File : E.cpp * Author : Kazune Takahashi * Created : 2020/3/7 21:44:32 * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <cmath> #include <complex> #include <cstdint> #include <cstdio> #...
<commit_before>/************************************************************************* * * $RCSfile: ChartPlotAreaOOoTContext.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2004-11-09 18:29:55 $ * * The Contents of this file are made available subject to the terms of * either of the...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<commit_before>/*********************************************************************** created: 21/7/2015 author: Yaron Cohen-Tal *************************************************************************/ /*************************************************************************** * Copyright (C) 200...
<commit_before>/* * This file is a part of Xpiks - cross platform application for * keywording and uploading images for microstocks * Copyright (C) 2014-2018 Taras Kushnir <kushnirTV@gmail.com> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL wa...
<commit_before>/* Copyright 2021 Stanford University * Copyright 2021 Los Alamos National Laboratory * * 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/lice...
<commit_before>/* * (C) Copyright 2014 Kurento (http://kurento.org/) * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org...
<commit_before><commit_msg>tdf#91100 - don't Notify focus changes after dispose.<commit_after><|endoftext|>
<commit_before>// Time: O(n) // Space: O(n) /** * Definition of TreeNode: * class TreeNode { * public: * int val; * TreeNode *left, *right; * TreeNode(int val) { * this->val = val; * this->left = this->right = NULL; * } * } */ class Solution { public: /** * @param A...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sfxpicklist.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-07 19:11:02 $ * * The Contents of this file are ma...
<commit_before>#include "AlembicPointsUtils.h" #include <IParticleObjectExt.h> #include <ParticleFlow/IParticleChannelID.h> #include <ParticleFlow/IParticleChannelShape.h> #include <ParticleFlow/IParticleContainer.h> #include <ParticleFlow/IParticleGroup.h> #include <ParticleFlow/IPFSystem.h> #include <ParticleFlow/IP...
<commit_before>#ifndef slic3r_GUI_ObjectManipulation_hpp_ #define slic3r_GUI_ObjectManipulation_hpp_ #include <memory> #include "GUI_ObjectSettings.hpp" #include "GLCanvas3D.hpp" class wxStaticText; class PrusaLockButton; namespace Slic3r { namespace GUI { class ObjectManipulation : public OG_Settings { #if ENABL...
<commit_before>#include "TFile.h" #include "TH1.h" #include "TH1D.h" #include "TMath.h" #include <Riostream.h> // // Multiply two histos of variable bin width // TH1 * MultiplyHistos(TH1 *h1, TH1 *h2) { Int_t nbins1 = h1->GetNbinsX(); Int_t nbins2 = h2->GetNbinsX(); Double_t binwidth1 = h1->GetBinWidth(1); ...
<commit_before>#include "discord.h" #include "../logger.h" #include "../util.h" #include "../config.h" #include <sleepy_discord/sleepy_discord.h> namespace shanghai { namespace system { namespace { const std::string HELP_TEXT = R"(/help Show this help /server Show server list )"; struct DiscordConfig { std...
<commit_before>// Time: O(log(min(m, n))) // Space: O(1) class Solution { public: double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) { if ((nums1.size() + nums2.size()) % 2 == 1) { return findKthInTwoSortedArrays(nums1, nums2, (nums1.size() + nums2.size()) / 2 + 1); ...
<commit_before>#include "spritesheet_importer.h" #include "halley/core/graphics/sprite/sprite_sheet.h" #include "halley/tools/file/filesystem.h" #include "halley/file/byte_serializer.h" std::vector<Halley::Path> Halley::SpriteSheetImporter::import(const ImportingAsset& asset, Path dstDir, ProgressReporter reporter, As...
<commit_before>// // main.cpp // CS372C++11Spring2014 // // Created by Chris Hartman on 1/22/14. // Copyright (c) 2014 Chris Hartman. All rights reserved. // #include <iostream> using std::cout; using std::endl; #include <string> using std::string; #include <vector> using std::vector; #include <utility> using std:...
<commit_before>// // main.cpp // CS372C++11Spring2014 // // Created by Chris Hartman on 1/22/14. // Copyright (c) 2014 Chris Hartman. All rights reserved. // #include <iostream> using std::cout; using std::endl; #include <string> using std::string; #include <vector> using std::vector; #include <utility> using std:...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "visitor.h" #include <vespa/document/fieldset/fieldsets.h> #include <vespa/vespalib/util/array.hpp> #include <climits> namespace storage::api { IMPLEMENT_COMMAND(CreateVisito...
<commit_before>// Source : https://oj.leetcode.com/problems/wildcard-matching/ // Author : Hao Chen // Date : 2014-07-19 /********************************************************************************** * * Implement wildcard pattern matching with support for '?' and '*'. * * '?' Matches any single character. *...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 2003 The Apache Software Foundation. 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. Redistributi...
<commit_before>#ifndef STAN_MATH_REV_MAT_FUNCTOR_KINSOL_DATA_HPP #define STAN_MATH_REV_MAT_FUNCTOR_KINSOL_DATA_HPP #include <stan/math/prim/mat/fun/to_array_1d.hpp> #include <stan/math/prim/mat/fun/to_vector.hpp> #include <stan/math/rev/mat/functor/algebra_system.hpp> #include <stan/math/rev/mat/functor/jacobian.hpp> ...
<commit_before>/************************************************************************* * * $RCSfile: swmodule.hxx,v $ * * $Revision: 1.19 $ * * last change: $Author: vg $ $Date: 2003-05-22 08:40:59 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include <iostream> void swap(void *vp1, void *vp2, int size) { if (vp1 == NULL || vp2 == NULL) return; char *buffer = (char *)malloc(size); memcpy(buffer, vp1, size); memcpy(vp1, vp2, size); memcpy(vp2, buffer, size); free(buffer); } int main(int argc, char const *a...
<commit_before>#include "intro_screen.hpp" #include "../core/units.hpp" #include "../core/renderer/graphics_ctx.hpp" #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <game/game_screen.hpp> #include <game/example_screen.hpp> namespace mo { using namespace unit_literals; using namespace rend...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>#include "InputMesh.h" #include <maya/MFnMesh.h> #include <maya/MDataBlock.h> #include <maya/MFloatArray.h> #include <maya/MFloatPointArray.h> #include <maya/MFloatVectorArray.h> #include <maya/MIntArray.h> #include <maya/MMatrix.h> #include "util.h" InputMesh::InputMesh(int assetId, int inputIdx) : ...
<commit_before><commit_msg>Remove dead code<commit_after><|endoftext|>
<commit_before><commit_msg>sw/paint: replace bools by enum in DrawGraphic method<commit_after><|endoftext|>
<commit_before><commit_msg>sw: fix sw_unoapi UnvisitedCharStyleName regression<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2009 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/gtk/import_dialog_gtk.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "grit/generated...
<commit_before>// Copyright (c) 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 "chrome/browser/ui/webui/theme_source.h" #include "base/message_loop.h" #include "base/ref_counted_memory.h" #include "chrome...
<commit_before>// Copyright (c) 2009 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/common/temp_scaffolding_stubs.h" #include <vector> #include "base/gfx/rect.h" #include "base/logging.h" #include "ch...
<commit_before>// // DocumentParser.cpp // Emojicode // // Created by Theo Weidmann on 24/04/16. // Copyright © 2016 Theo Weidmann. All rights reserved. // #include "DocumentParser.hpp" #include "FunctionParser.hpp" #include "Functions/Function.hpp" #include "Functions/Initializer.hpp" #include "ProtocolTypeBodyPa...
<commit_before>#include <algorithm> #include <cmath> #include <limits> #include <utility> #include "geom/bounding_box.h" namespace Svit { void BoundingBox::extend (Point3& _point) { switch (size_type) { case EMPTY: min = _point; max = _point; size_type = BOUNDED; break; case BOUNDED: {...
<commit_before>/* FILENAME: DrawManager.cpp AUTHOR: Salinder Sidhu DESCRIPTION: Implementation for DrawManager.h. UPDATE DATE: 12/22/2015 */ #include "DrawManager.h" /* PhyfsStreamException class*/ PhyfsStreamException::PhyfsStreamException(string action) { message = "PhyfsStreamException: Could not perform req...
<commit_before>#include <iostream> #include <cmath> using namespace std; bool is_prime(unsigned long long n){ if (n == 2) return true; if (n % 2 == 0 || n < 2) return false; for (unsigned long i = 3; i <= sqrt(n); i += 2){ if (n % i == 0) return false; } return true; } int main(){ in...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (testabilitydriver@nokia.com) ** ** This file is part of Testability Driver Qt Agent ** ** If y...
<commit_before>// Copyright (c) 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 "chrome/test/test_navigation_observer.h" #include "chrome/test/ui_test_utils.h" #include "testing/gtest/include/gtest/gtest.h...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkMaximumProjectionImageFilterTest2.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights...
<commit_before>#include "uvc_interface_v4l.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <dirent.h> UvcInterfaceV4L::UvcInterfaceV4L() { mFd = -1; mReadFrameThread = NULL; ...
<commit_before>// // Thread.hpp // Emojicode // // Created by Theo Weidmann on 04/01/2017. // Copyright © 2017 Theo Weidmann. All rights reserved. // #ifndef Thread_hpp #define Thread_hpp #include "Engine.hpp" #include "RetainedObjectPointer.hpp" #include "ThreadsManager.hpp" #include <mutex> namespace Emojicode...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkQtRichTextView.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 softwar...
<commit_before>// @(#) $Id$ /************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * ALICE Experiment at CERN, All rights reserved. * * ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkEnSightMasterServerReader.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen All rights res...
<commit_before>#include "include/properties_reader.h" //Constructor PropertiesReader::PropertiesReader(std::string file_path) { //Open the file std::string line; //Check if the file exists struct stat buffer; if (stat (file_path.c_str(), &buffer) == 0) { std::ifstream file (file_path); if (file.is...
<commit_before><commit_msg>lokdocview: ensure that the cursor is at least 30 twips wide<commit_after><|endoftext|>
<commit_before>/* * %CopyrightBegin% * * Copyright Ericsson AB 2011-2016. 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/...
<commit_before>/* This file is part of libkcal. Copyright (c) 1998 Preston Brown Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org> 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 t...
<commit_before>#include "less/TokenList.h" TokenList::~TokenList() { } void TokenList::ltrim() { while (!empty() && front().type == Token::WHITESPACE) { pop_front(); } } void TokenList::rtrim() { while (!empty() && back().type == Token::WHITESPACE) { pop_back(); } } void TokenList::trim() { ltrim();...
<commit_before> #include "pmx_draw.h" void mmdpiPmxDraw::draw( void ) { //for( uint level = 0; level < mmdpiPmxLoad::bone_level_range; level ++ ) //{ // for( uint i = 0; i < mmdpiModel::bone_num; i ++ ) // { // MMDPI_PMX_BONE_INFO_PTR bonep = &mmdpiPmxLoad::bone[ i ]; // MMDPI_BONE_INFO_PTR bone = &mmdpiB...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>/* Dynamics/Kinematics modeling and simulation library. Copyright (C) 1999 by Michael Alexander Ewert 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...
<commit_before>/** * @file Object.hpp * @brief Object class prototype. * @author zer0 * @date 2016-06-05 */ #ifndef __INCLUDE_LIBTBAG__LIBTBAG_COMMON_OBJECT_HPP__ #define __INCLUDE_LIBTBAG__LIBTBAG_COMMON_OBJECT_HPP__ // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020...
<commit_before>#include "Building.h" Building::Building() { } Building::Building(GLuint programme_id) { int width = rand() % 60 + 15; int height = rand() % 80 + 15; int depth = rand() % 10 + 20; for (int x = 0; x < width;x++) { for (int z = 0; z < depth; z++) { for (int y = 0; y < height; y++) { ...
<commit_before>#include <vector> #include "compiler.h" #include "parser.h" #include "token.h" using namespace std; bool next(); void prev(); TokenNode* makeNode(); TokenNode* makeNode(Token); TokenNode* makeNode(TokenType); TokenNode* dImports(); TokenNode* dNoContext(); TokenNode* dNoContextItem(); TokenNode* dGene...
<commit_before>/******************************* Copyright (c) 2016-2019 Grégoire Angerand 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 righ...
<commit_before>#include <unordered_map> #include "Compression.h" #include "IMGFile.h" #include "../Math/Vector2.h" #include "../Utilities/Bytes.h" #include "../Utilities/Debug.h" #include "components/vfs/manager.hpp" namespace { // These IMG files are actually headerless/raw files with hardcoded dimensions. const ...
<commit_before>#include <algorithm> #include "SETFile.h" #include "../Utilities/Debug.h" #include "components/vfs/manager.hpp" const int SETFile::CHUNK_WIDTH = 64; const int SETFile::CHUNK_HEIGHT = 64; const int SETFile::CHUNK_SIZE = SETFile::CHUNK_WIDTH * SETFile::CHUNK_HEIGHT; SETFile::SETFile(const std::string &...
<commit_before>/************************************************************************* * UrBackup - Client/Server backup system * Copyright (C) 2011-2015 Martin Raiber * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public Licen...
<commit_before>#include "mayaUtils.h" #include <maya/MSelectionList.h> #include <maya/MUuid.h> #include <maya/MPlug.h> #include <maya/MPlugArray.h> MayaUtils::MayaUtils() { } MayaUtils::~MayaUtils() { } bool MayaUtils::isValidNodeType(MString& _type) { return (_type == MString("transform") || _type == MString...
<commit_before>#pragma ident "$Id: Rinex3NavFilterOperators.hpp 70 2006-08-01 18:36:21Z ehagen $" /** * @file Rinex3NavFilterOperators.hpp * Operators for FileFilter using Rinex navigation data */ #ifndef GPSTK_RINEXNAVFILTEROPERATORS_HPP #define GPSTK_RINEXNAVFILTEROPERATORS_HPP //==============================...
<commit_before>//Standard library #include <iostream> //External includes #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> //Local headers #include "ChunkManager.h" #include "Types.h" #include "ShaderCache.h" #include "Camera.h" #include "RenderingContext.h" #include "LightSource.h" #include "...
<commit_before>// Scintilla source code edit control /** @file HanjaDic.cxx ** Korean Hanja Dictionary ** Convert between Korean Hanja and Hangul by COM interface. **/ // Copyright 2015 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed...
<commit_before>// Copyright 2008 Paul Hodge #include "common_headers.h" #include <SDL.h> #include <SDL_image.h> #include <SDL_opengl.h> #include <circa.h> #include "textures.h" using namespace circa; GLenum get_texture_format(SDL_Surface *surface) { assert(surface); int nColors = surface->format->BytesPer...
<commit_before>//===-- StaticBinaryELF.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 http...
<commit_before>/* * vending_machine.hpp * * Created on: Nov 15, 2016 * Author: zmij */ #ifndef AFSM_EXAMPLES_VENDING_MACHINE_HPP_ #define AFSM_EXAMPLES_VENDING_MACHINE_HPP_ #include <afsm/fsm.hpp> #include <map> #include <algorithm> #include <numeric> namespace vending { namespace events { struct power_...