blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec0a7bd8b62cbb20022bac794abcf7a7d6d74a64 | ca12c766b3a2f2e786fc104af0032f5536152bae | /ex2-open-mesh/UniformVariable.h | 81e08c89bd28d3785f99e2d4b7d4f9b6d73e0692 | [] | no_license | nonocodebox/computer-graphics | 6198a3941849b1b0afb2b00952b1a8eeea4f807a | 0ffb45dd7d0987de2da4954a597031d3fd4078ae | refs/heads/master | 2021-01-10T05:42:12.227617 | 2016-02-19T07:33:15 | 2016-02-19T07:33:15 | 52,006,644 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,769 | h | UniformVariable.h | #ifndef UNIFORM_VARIABLE_H
#define UNIFORM_VARIABLE_H
#include <GL/glew.h>
#ifdef __APPLE__
#include <OpenGL/OpenGL.h>
#else
#include <GL/gl.h>
#endif
#include <glm/glm.hpp>
#include <glm/mat4x4.hpp>
#include <glm/vec3.hpp>
#include <glm/gtc/type_ptr.hpp>
class UniformVariable
{
public:
UniformVariable();
virtual ... |
99905d1fc4821d592040f075f8e32c8b4b10a099 | 43671eb2be91782ac2096b9ec64e3a02b5aa9559 | /subsystem/clients/subview/abo_info_manager.h | d98bfaf3bfdd73cc35123091d7f349ce3b0d0e94 | [] | no_license | psi46/elComandante | fba87eda9c404de0ceed0ab9b81f5258f172325b | 052066eda34d1e335128af214e55e330f9b6e855 | refs/heads/master | 2020-04-06T12:37:01.024183 | 2016-11-28T14:23:31 | 2016-11-28T14:23:31 | 28,905,523 | 1 | 4 | null | 2015-08-08T11:06:20 | 2015-01-07T08:25:52 | FORTRAN | UTF-8 | C++ | false | false | 408 | h | abo_info_manager.h | /**
* \file abo_info_manager.h
* \author Dennis Terhorst
* \date Sun Sep 13 19:00:56 CEST 2009
*/
#ifndef ABO_INFO_MANAGER_H
#define ABO_INFO_MANAGER_H
#include <map>
#include <string>
#include "abo_info.h"
class abo_info_manager {
typedef std::map<std::string, abo_info> infomap_t;
infomap_t infos;
public:
abo_... |
06016df8530fa92230582c5076587734b3cfbffc | c7c73566784a7896100e993606e1bd8fdd0ea94e | /panda/src/gobj/vertexSlider.cxx | bc05232eb2927a6685260d7fb1f27b2ce69e20c8 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | panda3d/panda3d | c3f94df2206ff7cfe4a3b370777a56fb11a07926 | 160ba090a5e80068f61f34fc3d6f49dbb6ad52c5 | refs/heads/master | 2023-08-21T13:23:16.904756 | 2021-04-11T22:55:33 | 2023-08-06T06:09:32 | 13,212,165 | 4,417 | 1,072 | NOASSERTION | 2023-09-09T19:26:14 | 2013-09-30T10:20:25 | C++ | UTF-8 | C++ | false | false | 2,885 | cxx | vertexSlider.cxx | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file vertexSlider.cxx
* @au... |
4ecbff71f7916e4f7b625b9c53b9631d6cc8b14e | 76188f403aa04827f9dd6ed8571801d93ff12851 | /src/rgba.cpp | 2df989859c956fa824d0e5080730ee90bdaa2a5f | [] | no_license | welldias/ether | 9a4b9a4d5d6917e093684f53d7ac15d5ff7ba0b2 | 3f01b61d319f615c627ca8e83cf609250f100b99 | refs/heads/master | 2022-09-26T01:38:37.102239 | 2020-08-13T04:09:55 | 2020-08-13T04:09:55 | 203,291,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,697 | cpp | rgba.cpp | #include "ether.h"
namespace ether {
#define COLOR_I2F(i) ((1.0f / 255) * i)
Rgba::Rgba()
:r(c), g(c + 1), b(c + 2), a(c + 3) {
Zero();
}
Rgba::Rgba(float r, float g, float b, float a)
: r(c), g(c + 1), b(c + 2), a(c + 3) {
Set(r, g, b, a);
}
Rgba::Rgba(const Rgba& c1)
: r(c), g(c + 1), b(c + 2), a(... |
dc63ac88005fdf253af70f443098ef1c1bbf36ca | ab7b355f7564c647013639ec3d1221aea2e2e246 | /recgVarIntro.cpp | 686d5827c7cee7edfee444fef384f6e227aedb97 | [] | no_license | JamesDYX/C0_Compiler | d67f6c07bdf272f74f149f7a08d4729a64fb7766 | 0278a5dc78d0a3614bc0d4f112045c84934f7e23 | refs/heads/master | 2020-04-12T00:46:44.804982 | 2019-09-26T01:17:46 | 2019-09-26T01:17:46 | 162,211,792 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | cpp | recgVarIntro.cpp | #include <iostream>
#include "syntaxAnalys.h"
#include "getSym.h"
#include "error.h"
#include "symbolTable.h"
#include "midCode.h"
using namespace std;
int recgVarIntro(int level) {
int curState = 0;
streampos sp = sourceFile.tellg();
int n = curSym.len;
int type = curSym.getType();
try {
if (recgVarDef(level)... |
208d97327aa3848b747f334162aa64ca8fa6a547 | e3e5a52a5485879f566eff6e3c27f7bcf40e59e0 | /Engine/MathLib/Mat4.cpp | 975aaa3ede4718008dca4b68192f50bebe3d9409 | [] | no_license | PsikerGr/Game-Engine | d83375e54f11074244704204ce8c7bc92bdac8db | e3fe43268d901d617edf470580bc1b335d21edf5 | refs/heads/master | 2020-03-15T12:03:35.235675 | 2018-05-04T12:33:43 | 2018-05-04T12:33:43 | 132,135,462 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,499 | cpp | Mat4.cpp |
#include <cmath>
#include <iomanip>
#include <iostream>
#include "Mat4.h"
#include "Quat.h"
#include "Vec3d.h"
#include "Tools.h"
namespace Maths
{
Mat4::Mat4()
{
for (size_t i = 0; i < 16; i++)
{
m[i] = 0.0f;
}
}
Mat4::Mat4(float _m[16])
{
for (size_t i = 0; i < 16; ++i)
{
m[i] = _m[i];
}
}... |
53450bf492da944a5083cd495caa44219e2222df | e915d0bcf2b4c6add59a216c3377288e20afd737 | /cpp04/ex01/AWeapon.hpp | 5d82e4b80a136afdbf954d6dc46a56c68e6491e0 | [] | no_license | NikiP-C/cpp_piscine | 575a29253a7e6d99f9e685d347115ccf54fa0516 | d79c19fc9130a57a3dc5e22d82816df20e86ed76 | refs/heads/master | 2023-03-11T11:46:40.110033 | 2021-03-01T12:31:16 | 2021-03-01T12:31:16 | 283,230,325 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,381 | hpp | AWeapon.hpp | /* ************************************************************************** */
/* */
/* :::::::: */
/* AWeapon.hpp :+: :+: ... |
fa38108cfbf239b6e9d65a1255b4c85598f44073 | 965ee00eaea864cd6b1486488b2db456401736b3 | /mobiled3/test/xlinetest.cc | aa9155a1e8ac035c10d7d409ef68c0952f2d1f55 | [] | no_license | benadler/taser_genrob | 2d369fb4eb21aeb7c5b41818fb8810a1ec42218c | 4ae30e4b6ad4ae3071b78676d3894a758a6b7309 | refs/heads/master | 2021-01-25T07:18:52.496671 | 2011-11-15T17:38:53 | 2011-11-15T17:38:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,760 | cc | xlinetest.cc | //
//
//
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h> // XSizeHints
int main (void)
{
//
//
//
Display *display = XOpenDisplay (NULL);
if (!display)
{
fprintf (stderr, "can't connect to xserver\n");
abort ();
}
//
//
... |
9f85d83de0c56e2a085bb67f7fba2fa9463e5e50 | 160c381bbb3a82dc8232989cb1b9220fdba5c38f | /src/Project/Cloth Simulation/graphics_practice/graphics_practice/Camera.h | e5bdef41853974df71d29589618220a832d47aaf | [] | no_license | Erik-A-Smith/opengl-comp-477-cloth-fire-simulation | 58bc54d4a5f7b310a7637635f384caf2f3a23740 | e5676a00a317caf4770b0470ee4afe3962ce5f2e | refs/heads/master | 2022-04-04T11:45:16.953111 | 2020-02-21T20:24:18 | 2020-02-21T20:24:18 | 242,224,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 749 | h | Camera.h | #pragma once
#include "Angel.h"
extern class Camera camera;
class Camera
{
public:
Camera();
~Camera();
void zoomIn();
void zoomOut();
enum direction { UP, DOWN, LEFT, RIGHT };
void move(direction to);
void setRatio(int w, int h) { whratio = (float)w / h; };
mat4 projection();
mat4 lookAt();
enum Mode { PER... |
4076309f7066f6f86557acdbcd857d41e74dc39b | a1bff3088351d202156422e65f62e3acb554e275 | /include/EgeMath/Matrix4.hpp | 285900ccac1d8a8a27e1280e5d076a599dfa707f | [
"MIT"
] | permissive | Eracage/EgeMath | 4153b6c2fa0e70cb089973f6036beb13da13d723 | 865fbc266fe11e50cca2a7adceb3cd9984011b55 | refs/heads/master | 2016-09-15T23:27:35.004716 | 2014-05-21T01:36:34 | 2014-05-21T01:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,751 | hpp | Matrix4.hpp | #pragma once
#ifndef MATRIX4_H_EGEMATH
#define MATRIX4_H_EGEMATH
#include "Vector4.hpp"
#include "Matrix3.hpp"
namespace ege
{
template<typename T>
class Matrix4
{
public:
static const Matrix4<T> Identity;
static const unsigned int ROWS = 4;
static const unsigned int COLUMNS = 4;
/**
Creates Identity Ma... |
37739968e54d329884fef9c0fd4ffff57c1441a1 | 0dea3203e9b18f6e71aae8aeb6f660550d4ab2c3 | /src/libxtp/topology.cc | 69ec76cbe3d9d0aa257d0661afcfcd36011dc624 | [
"Apache-2.0"
] | permissive | fossabot/xtp | 73b2cc1ddb154dfcb0acd6426bc569fff4abd9dd | e82cc53f23e213d09da15da80ada6e32ac031a07 | refs/heads/master | 2022-12-07T12:49:29.592780 | 2020-08-24T15:36:19 | 2020-08-24T15:36:19 | 289,967,983 | 0 | 0 | Apache-2.0 | 2020-08-24T15:36:17 | 2020-08-24T15:36:17 | null | UTF-8 | C++ | false | false | 6,465 | cc | topology.cc | /*
* Copyright 2009-2020 The VOTCA Development Team
* (http://www.votca.org)
*
* 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... |
f67e4f09029b3fe00e297668288e8c5c82cfef6a | d34b8f7023c8b1a73ec8a0cbfa23594ac88247d8 | /GraphMap.h | cfaa4b738b9f20dc4fe456aba1efc4ab6d20acb9 | [] | no_license | Najiva/Annealing_TSP | 296fba09b7a3a40a43a2e8ef447fbdff065f7246 | db229ba93b6554dd16e485414e7c6ea2999da7a3 | refs/heads/master | 2020-12-31T06:56:44.481812 | 2017-03-29T14:40:54 | 2017-03-29T14:40:54 | 86,591,691 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,044 | h | GraphMap.h | /*
* File: DataAnalyzer.h
* Author: Juraj
*
* Created on February 19, 2017, 11:39 AM
*/
using namespace std;
#include<set>
#include<unordered_set>
#include<unordered_map>
#include<vector>
#include <random>
#include "Flight.h"
#include "GraphLoader.h"
#include "RNG.h"
#include <cmath>
#include <numeric>
#inclu... |
ff65555d4c59d4a60fd765526e02cdee69b796e4 | 6b26739dfaacb8068aca5a7ca68ca03bbef08c52 | /src/RequestParser.cpp | b0e606798accb92c9841e41493ac0a60fcab2d49 | [
"BSD-3-Clause"
] | permissive | skyformat99/predixy | b6f74f77a056db9def5534457feb09933a7a4147 | 9d86d04374c09761d92a7161b65d1e3a45b41abd | refs/heads/master | 2021-01-01T18:21:04.056475 | 2017-07-24T03:03:31 | 2017-07-24T03:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,485 | cpp | RequestParser.cpp | /*
* predixy - A high performance and full features proxy for redis.
* Copyright (C) 2017 Joyield, Inc. <joyield.com@gmail.com>
* All rights reserved.
*/
#include "RequestParser.h"
RequestParser::RequestParser()
{
reset();
}
RequestParser::~RequestParser()
{
reset();
}
void RequestParser::reset()
{
... |
76b707141ccf5a582f7a9fdcb317c59ef4632656 | 4a2f83dc8e99de3ece66d8d91a7218ef8fa684ca | /SDST/Dogfight/Code/Game/Main_Win32.cpp | 1dcef1c00eb325dcd6bfb17a6ec75344fee83e32 | [] | no_license | mitchelpederson/SpecialTopics | 73fae9e7184a13ef6f26713471daf5e6b53c6644 | cfa73fbcfca5756f02d8061f1d967812e5dda000 | refs/heads/master | 2021-06-29T01:30:42.768436 | 2019-04-19T03:30:53 | 2019-04-19T03:30:53 | 135,343,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 621 | cpp | Main_Win32.cpp | #include "Engine/Core/WindowsCommon.hpp"
#include "Engine/Core/Window.hpp"
#include "Game/App.hpp"
#include "Game/GameCommon.hpp"
#include "Engine/Renderer/glbindings.h"
#define UNUSED(x) (void)(x);
App* g_theApp = nullptr;
//-----------------------------------------------------------------------------------------... |
99668b7778d0579a2321a2bccdec57913848088a | f39b997dd8c7e187b504cacdcda9a603f7a25606 | /packageName.MessageName.pb.h | 4c369a0c6991351a1fc0b85e0bf65ef26ef19042 | [] | no_license | hanxbo/first_project | cf7c5614e1e35d32c23baaddd099a61f14b48155 | 5344e053d7a9858b9b017bd9e9e6fb511576165a | refs/heads/master | 2020-04-25T01:52:35.805446 | 2019-02-28T13:11:46 | 2019-02-28T13:11:46 | 172,420,837 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 10,756 | h | packageName.MessageName.pb.h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: packageName.MessageName.proto
#ifndef PROTOBUF_INCLUDED_packageName_2eMessageName_2eproto
#define PROTOBUF_INCLUDED_packageName_2eMessageName_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION... |
38f17dd6ca8f2f9eaa39c7b71140d49d07f694b7 | 081da9b4d17f9018086a5d82326a33d0a71b3531 | /MyTest/Pintu_Fedora_Test/toroman.cpp | 5c068dded4f63b4b20fadf6d130349dabf93ead3 | [] | no_license | pintuk/LINUX | a202b6bde149770bf41829a45a2af7644b63eb03 | 67ce1d855d95619fed07f380f3784c505cd6a77d | refs/heads/master | 2021-05-01T07:58:31.306597 | 2019-06-16T10:15:46 | 2019-06-16T10:15:46 | 79,650,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,928 | cpp | toroman.cpp | #include <iostream>
#include <iomanip>
#include <string>
using namespace std; //introduces namespace std
void ShowList();
int ToIntegers(string);
int DoOperation(int, int, string);
string ToNumerals(int);
int main()
{
string RomanNumeral1="";
string RomanNumeral2="";
string Operation="";
str... |
82362635fbb97943e566ef412ad23ddb1cd90c6f | 3292ba9bd2a70eea8b6def75bb43e18796b48044 | /cpp_CS225/daily-exercise/day41-BernsteinHash/potd-q41-clean/Hash.cpp | f4585b85080b10543402c0b4e5b5782b69e839ec | [
"MIT"
] | permissive | Yutong-Dai/codes-for-courses | 91125bd7156eb8756160b21d2bf71276bf31ab9a | a2dfea516ebc7cabef31a5169533b6da352e7ccb | refs/heads/master | 2022-04-11T02:41:11.439127 | 2020-03-19T14:59:55 | 2020-03-19T14:59:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 263 | cpp | Hash.cpp | #include "Hash.h"
#include <string>
unsigned long bernstein(std::string str, int M)
{
unsigned long b_hash = 5381;
//Your code here
return b_hash % M;
}
std::string reverse(std::string str)
{
std::string output = "";
//Your code here
return output;
}
|
16f825ee58e56d27b2d171e41928cb95be8c001c | ee31918613a8ff88ba8458d96240ba3dc0475448 | /leetcode21_merge_two_sorted_lists.cpp | 27e5e833e181d55056439e9b55c97193a870c7f5 | [] | no_license | wangguibao/algorithms | 00975ff12f48bf235d7bc50d5627625470f62074 | 06f9f4c5f7a61a2f3b3355f2ffd349ee53f7b149 | refs/heads/master | 2023-08-03T17:09:38.997440 | 2023-08-03T09:22:58 | 2023-08-03T09:22:58 | 3,753,424 | 7 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 3,236 | cpp | leetcode21_merge_two_sorted_lists.cpp | /**
* @file leetcode21_merge_two_sorted_lists.cpp
* @author wangguibao(https://github.com/wangguibao)
* @date 2023/06/03 12:34
* @brief https://leetcode.com/problems/merge-two-sorted-lists
*
**/
#include <iostream>
#include <vector>
#include <string>
/**
* Definition for singly-linked list.
*/
stru... |
01af60aa11123cf5b92d57e325cdab08dfaba7af | 67023e55fe9c52c51eb90bd91bdeb1d59f97d11c | /TBox/suiteinfo.cpp | 7b060dd0317a91d712042b80825a3b5f6d8405c5 | [] | no_license | olexandr-semeniuk/trs | c36c98e3f70e23dae30e65f45028af7954577bda | f11d9004e9c107fe93f588e58ca22e6719c4598d | refs/heads/master | 2021-01-17T04:55:05.821154 | 2017-03-14T12:26:38 | 2017-03-14T12:26:38 | 83,032,150 | 0 | 0 | null | 2017-02-24T10:53:06 | 2017-02-24T10:53:06 | null | UTF-8 | C++ | false | false | 2,943 | cpp | suiteinfo.cpp | #include "suiteinfo.h"
#include <QDebug>
#include "datamanager.h"
SuiteInfo::SuiteInfo(QObject *parent) : QObject(parent)
{
}
void SuiteInfo::setPath(QString path) {
currentPath=path;
}
void SuiteInfo::setName(QString name) {
testName=name;
}
QString SuiteInfo::getPath() {
return currentPath;
}
QString Sui... |
7b9ad228885777419b7f0580b58c50c135c2a30e | ec5fe2508aac7257e206404391fdbea0110e4e48 | /prj/inc/shapes.hh | 2f952b0cce5aaf27e00b78afe448df22040ef0e2 | [] | no_license | JacobCrown/Dron-podwodny | 7a161e45a7d6840ba5c998cc8702103ff0074611 | 49f4abbe9223851e7bf2895a859de4530157bdb8 | refs/heads/main | 2023-06-27T09:16:55.871392 | 2021-08-05T14:01:33 | 2021-08-05T14:01:33 | 393,063,058 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,086 | hh | shapes.hh | #ifndef SHAPES_HH
#define SHAPES_HH
/* * * * * * * * * * * * * * * * * * * * */
#include <iostream>
#include "shape.hh"
/*!
* \file
* \brief Definicja metody klasy shapes
*
* Zawiera definicje metod klasy shapes. Dziedziczy z klasy shape, są to szczególne przypadki repre... |
36ef59c0ed633d23c2fac93052720978619f1407 | 02346933f707ef5cc81a287341d7a8452f5bf81a | /C++/26. FindInorderTraversal/FindInorderTraversal/BinaryTree.h | 8d8392f89ca2feee3518c505e98c06613ce5f085 | [] | no_license | DongyeonSeoDev/AlgorithmStudy | aad5a4dc69a8277cba8a957ed06d0b5cbb712849 | d3c22a37188f288aa9ef8f259ca08df5c7283fe5 | refs/heads/main | 2023-07-05T01:42:48.047974 | 2021-08-26T10:25:45 | 2021-08-26T10:25:45 | 350,306,543 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 872 | h | BinaryTree.h | #pragma once
#include <vector>
typedef int BTData;
typedef struct _bTreeNode
{
BTData data;
struct _bTreeNode* left;
struct _bTreeNode* right;
} BTreeNode;
BTreeNode* MakeBTreeNode(void);
BTData GetData(BTreeNode* bt);
void SetData(BTreeNode* bt, BTData data);
BTreeNode* GetLeftSubTree(BTreeNode* bt);
BTreeNode*... |
9066eab8d1aba2c6c175bd92d1047330607d2618 | ddfb8503248e94db641b19e41591a831b54e831c | /src/Bonuses/UpdateBonuses.cpp | aea2e69dbd48659c12ada33ac3e017f25b33f5fc | [] | no_license | Patys/BitcoinGame | 3b8cab4d8c74602983dc5d12213153a4ab9afc5a | c71f426d2d8c3f547e96c7275431fd1b273677b1 | refs/heads/master | 2021-01-22T03:40:53.227282 | 2015-02-19T17:42:15 | 2015-02-19T17:42:15 | 92,396,389 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,045 | cpp | UpdateBonuses.cpp | #include <app.h>
void App::updateBonuses(float delta_time)
{
for(std::size_t i = 0; i < bonuses.size(); i++)
{
bonuses[i].pos.y += bonuses[i].vel * delta_time;
bool collision_with_player = isCollision(player.getPosition(), sf::Vector2f(96, 64),
sf::Vector2f(bonuses[i].pos.x, bonuses[i].... |
7c1ca92bb59cf30d7c644b40a515f490b2cd0e59 | 9d2a9fc83c0a92905ec6bd6c94fa8f79636393cb | /controller/scraper_form.cpp | 8c155fa4f50981a0452fb3b4d640b398ba37156c | [] | no_license | Win9XCHI/Fastening_test | 0cfb2181601032bdc007c0c92211cd80ab7fdfb0 | 7e194f1e34cd5a4da880ed9081f728d5302a1903 | refs/heads/main | 2023-06-22T18:34:23.531790 | 2021-07-24T17:09:25 | 2021-07-24T17:09:25 | 373,510,310 | 0 | 0 | null | 2021-07-24T17:09:26 | 2021-06-03T13:06:16 | null | UTF-8 | C++ | false | false | 8,398 | cpp | scraper_form.cpp | #include "scraper_form.h"
#include "ui_scraper_form.h"
Scraper_Form::Scraper_Form(ScraperDB db, User u, QWidget *parent) :
QWidget(parent),
ui(new Ui::Scraper_Form)
{
ui->setupUi(this);
scene = new QGraphicsScene;
count = 0;
name = EQUIPMENT_NAME::SCRAPER;
ui->comboBox->addItem(YES_NO::EMPT... |
99c5215c53784a5739c5d4a3042b63b18cab7dba | 879681c994f1ca9c8d2c905a4e5064997ad25a27 | /root-2.3.0/run/tutorials/multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/0.5/alpha.air | 64c48e5807408073f3000d818ac2833f21d93e60 | [] | no_license | MizuhaWatanabe/OpenFOAM-2.3.0-with-Ubuntu | 3828272d989d45fb020e83f8426b849e75560c62 | daeb870be81275e8a81f5cbac4ca1906a9bc69c0 | refs/heads/master | 2020-05-17T16:36:41.848261 | 2015-04-18T09:29:48 | 2015-04-18T09:29:48 | 34,159,882 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 54,583 | air | alpha.air | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... |
ef104540ea31f8ac847804e014d237f8c83eea4b | 584105ff5b87869494a42f632079668e4c3f82de | /sci_gateway/cpp/opencv_extractFeatures.cpp | 2fae785fc1bcea3c9fe29e8dd6b385ab26bdb722 | [] | no_license | kevgeo/FOSSEE-Computer-Vision | 0ceb1aafb800580498ea7d79982003714d88fb48 | 9ca5ceae56d11d81a178a9dafddc809238e412ba | refs/heads/master | 2021-01-17T21:11:31.309967 | 2016-08-01T14:45:40 | 2016-08-01T14:45:40 | 63,127,286 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 50,039 | cpp | opencv_extractFeatures.cpp | /****************************************************************************************************************************************************************************************
* Author: Umang Agrawal *
* Code: extractFeatures.cpp *
* Function Format: [featureVector ValidPo... |
758d05e4d432148237f214af091cc17c52ed5a0e | 73a6c73fa08a4fc7aabcc6bb705d2e71132685b3 | /src/libs/common/include/keto/common/StringCodec.hpp | 034acb833605e4727d37bf10095ff52c18d6fe38 | [
"MIT"
] | permissive | blockspacer/keto | 2f6ff979a9dc9513943bf9cedb4a302a70a2b66a | dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8 | refs/heads/master | 2021-02-15T06:48:08.661393 | 2018-05-22T14:01:34 | 2018-05-22T14:01:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 476 | hpp | StringCodec.hpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: StringCodec.hpp
* Author: Brett Chaldecott
*
* Created on February 3, 2018, 7:29 AM
*/
#ifndef STRINGCODEC_HPP
#de... |
6988b837a785b693c6fa0d24ead5e24286149337 | 82ce8270ff35a7352bff32cd119ab74917ba5ec6 | /c++/pisicne2/D04/ex00/Victim.hpp | 6ab4cae2954e41800e65b6e5361cec5ec32aff2c | [] | no_license | bensisko69/projet_42 | d10fe8ea54b924e20a9aeb1e5afc3c0f20709992 | 007308c86fb8947ae25efda79ca614b6bf96a2f0 | refs/heads/master | 2021-01-10T14:11:34.069446 | 2015-12-04T14:51:43 | 2015-12-04T14:51:43 | 45,042,318 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,334 | hpp | Victim.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Victim.hpp :+: :+: :+: ... |
f8247f88656f66063c4be456d8eb3244778c25b6 | 63b7eeb13966847cf499e361a0da4918e7e11b96 | /comparison/external/include/TimerUtils.hpp | 6d91ada95d0cdc4162a6aa5b56d908efa4c92310 | [] | no_license | siolag161/liege_sp | 139dd23214bd3e6b10a88735ff91523560ce47cc | 6257d22d0db127c10082664b3175a2225bb58a15 | refs/heads/master | 2020-04-06T05:46:42.474101 | 2014-07-16T15:40:19 | 2014-07-16T15:40:19 | 20,776,886 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,613 | hpp | TimerUtils.hpp | /*********************************************************************
* File: EnumUtils.hpp
* Description: temporary groups helper method related to enum manipulation
* @date: 18/10/2013
* @author: Song Ho Ahn (song.ahn@gmail.com)
*********************************************************************/
#ifndef LAT... |
c146aa42a5c5cf12a12caa8cc42bb4a071ae87e9 | 6f224b734744e38062a100c42d737b433292fb47 | /mlir/lib/Dialect/SCF/Utils/AffineCanonicalizationUtils.cpp | 89dfb61d48af9456577720f1162390d095b5e8c7 | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | smeenai/llvm-project | 1af036024dcc175c29c9bd2901358ad9b0e6610e | 764287f1ad69469cc264bb094e8fcdcfdd0fcdfb | refs/heads/main | 2023-09-01T04:26:38.516584 | 2023-08-29T21:11:41 | 2023-08-31T22:16:12 | 216,062,316 | 0 | 0 | Apache-2.0 | 2019-10-18T16:12:03 | 2019-10-18T16:12:03 | null | UTF-8 | C++ | false | false | 8,825 | cpp | AffineCanonicalizationUtils.cpp | //===- AffineCanonicalizationUtils.cpp - Affine Canonicalization in SCF ---===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
4171a3878dd3406cef5b472b9c106a5dc95b4cee | f49d600c865dc9fd5af8ea04f56da6569b9b74f3 | /src/enumeradores/enumdirecao.h | ff30bbfc390575c200c768eaa09845b2fcc99739 | [] | no_license | RicardoVentrilho/CSG | bcfa1ba96ba569f7ae8efa83d67a7e2cdd454c3f | 060f7cc12d262a5167318584804360c740955c09 | refs/heads/master | 2021-08-19T08:49:02.911118 | 2017-11-25T14:48:05 | 2017-11-25T14:48:05 | 112,010,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 169 | h | enumdirecao.h | #ifndef ENUMANIMACAO_H
#define ENUMANIMACAO_H
namespace enumeradores
{
enum EnumDirecao
{
ESQUERDA,
DIREITA
};
}
#endif // ENUMANIMACAO_H
|
7636f79eec3f2832658ffccf9ffc2764960a70fa | bd2d02ff0f344648dc51341d50163f5170026369 | /dataengines/potd/apodprovider.h | 7246b177600bf977176df01a709de2b6fe072e9d | [] | no_license | gtwilliams/clone-of-kdeplasma-addons | d3059f4dbe53f00e57a4dba8166a0f1ff1cdd6de | 82138f47966f8ae7692101ac1fa7260f7e4607bd | refs/heads/master | 2023-04-11T02:08:56.925870 | 2021-04-10T12:36:59 | 2021-04-10T12:36:59 | 356,885,225 | 0 | 1 | null | 2021-04-11T15:25:35 | 2021-04-11T14:09:19 | C++ | UTF-8 | C++ | false | false | 1,306 | h | apodprovider.h | /*
* SPDX-FileCopyrightText: 2007 Tobias Koenig <tokoe@kde.org>
* SPDX-FileCopyrightText: 2008 Anne-Marie Mahfouf <annma@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef APODPROVIDER_H
#define APODPROVIDER_H
#include "potdprovider.h"
#include <QImage>
class KJob;
/**
* This class provi... |
5d9b83458de51cd76ed2e39c1355d711113852be | b516ffaa751c248a0f085e165e0da022dcd97df4 | /BonEngine/inc/Gfx/Sprite.h | 2fa16a93e3c95b74f0a651d1b7e5382d389d6044 | [
"MIT"
] | permissive | parhelia512/BonEngine | 0c90909cb15cfaa73a2d7da69e1b0b85fc8dec0d | 49cec684c2307715df0958ed673ff077eac0a395 | refs/heads/master | 2023-02-17T14:22:24.429552 | 2021-07-30T21:05:33 | 2021-07-30T21:05:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,121 | h | Sprite.h | /*****************************************************************//**
* \file Sprite.h
* \brief Define a basic sprite struct to hold rendering properties.
*
* \author Ronen Ness
* \date May 2020
*********************************************************************/
#pragma once
#include "../dllimport.h"
#i... |
431060b17795e75794ef68354b1e97368b5f231c | a01e2d3b9c95bc5068424f4447df0b752ff102de | /square_of_digits.cpp | 83096eb67fecf780b2f6ae7165b10efe5f41888a | [] | no_license | gowshikk/guvi | e664ef62975f0578431227fd17668f26787bf904 | 3bccd29a3534c8acbb1083f7e8ce13b3a39cc71a | refs/heads/master | 2020-06-02T19:54:41.687323 | 2019-07-11T13:59:27 | 2019-07-11T13:59:27 | 191,289,504 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 263 | cpp | square_of_digits.cpp | #include<ctype.h>
#include<bits/stdc++.h>
#include<string.h>
#include <iostream>
using namespace std;
int main() {
long long int num,res=0;int rem;
cin>>num;
while(num)
{
rem=num%10;
res=res+(rem*rem);
num/=10;
}
cout<<res;
return 0;
}
|
5631fc34225d52bcf98eff3e0399c785f502528f | fbbaf9be7a85b6d06b8283dc9790f99d31e3ed77 | /Ejercicio1_27-05/Ejercicio1_27-05.ino | 387dab37220fd7969e79be9b063bf7a988449c39 | [] | no_license | martina-png/Interrupciones | 6bd75f2360754078664b3a71946fdd15216e0252 | b4a14f71dc08d116858e23cfb7f065bd4a292dd8 | refs/heads/main | 2023-05-05T20:05:46.445662 | 2021-05-27T20:04:30 | 2021-05-27T20:04:30 | 367,093,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 599 | ino | Ejercicio1_27-05.ino | const int echoPin = 6;
const int triggerPin = 3;
float Distancia;
long Tiempo;
const int pin = 2;
void setup(){
Serial.begin(9600);
pinMode(triggerPin, OUTPUT);
pinMode(echoPin, INPUT);
attachInterrupt(digitalPinToInterrupt(pin), pir, RISING);
}
void loop(){
digitalWrite(triggerPin, HIGH);
delayMicroseco... |
27036fb8ecd84a439a0e962b85c20bf5d862f8c2 | cc6cc5856663fb645a7c79615a7fffa19fcea028 | /SynthVoice.h | 09e98330090833fea481d3b9cfec8f5ffd7c667c | [] | no_license | BilguunTs/synthesizerTest | c88fd4cc1c687c046e80f04895fddcb8c8421ebb | 64d5202d7fd7e568b4fa01f997520bca46a9b921 | refs/heads/main | 2023-02-16T20:15:42.020386 | 2021-01-13T10:15:07 | 2021-01-13T10:15:07 | 328,134,564 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,444 | h | SynthVoice.h | /*
==============================================================================
SynthVoice.h
Created: 11 Jan 2021 2:44:01pm
Author: User
==============================================================================
*/
#pragma once
#include <JuceHeader.h>
#include "SynthSound.h"
#include "maximili... |
7c88dee74fc8b1cda7b89c108764e35d31f24480 | e4e79cc749ade9df9d1e48d972ac9683dee85933 | /original/IntelliKeys/WindowsOld/common/IKOverlayList.h | e008ed53c9f97d9c0664ffe3b68c89cfae1d23e4 | [
"MIT"
] | permissive | ATMakersOrg/OpenIKeys | f3420332714a844262bd3ebfbcf09405b7b3c05b | 629f88a35322245c623f59f387cc39a2444f02c4 | refs/heads/master | 2022-03-03T16:05:58.189792 | 2019-10-29T00:30:55 | 2019-10-29T00:30:55 | 107,173,263 | 12 | 4 | MIT | 2019-10-29T00:30:55 | 2017-10-16T19:24:54 | C | UTF-8 | C++ | false | false | 1,028 | h | IKOverlayList.h | // IKOverlayList.h: interface for the IKOverlayList class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_IKOVERLAYLIST_H__2D3AEC30_BE00_4D52_BE47_BCA1A8DC1C0C__INCLUDED_)
#define AFX_IKOVERLAYLIST_H__2D3AEC30_BE00_4D52_BE47_BCA1A8DC1C0C__INCLUDED_
#if _MSC_VER > 1000
#prag... |
2659a92692b55a95b53230267c80c0507f7e5b7e | 57b43dee64e9a43cdb2a480b8ecb592b49dd9775 | /src/Img2Pc.cpp | e603735f9fac83b39c81f56d3a2962561cf08787 | [] | no_license | wystephen/M_SLAM | 2fcbd16aa1ed721808890a570a93c2d573432522 | da167bf39eaae19ac40b2bcd3ddf7eb30a7160bb | refs/heads/master | 2021-01-21T12:59:27.208460 | 2016-04-19T13:30:25 | 2016-04-19T13:30:25 | 55,210,823 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,330 | cpp | Img2Pc.cpp | //
// Created by steve on 3/31/16.
//
#include <ros/ros.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/PointCloud2.h>
#include <cv_bridge/cv_bridge.h>
#include <image_transport/image_transport.h>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#in... |
55fb44df2bc8d89fca2f5cddb2b8d274fa550b28 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/xnnpack/src/bench/qs8-dwconv.cc | c0b56ca948a1478415da516ed55d7088283ad90a | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 88,964 | cc | qs8-dwconv.cc | // Copyright 2021 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <algorithm>
#include <cfloat>
#include <cmath>
#include <functional>
#include <random>
#include <vector>
#include <benchmark/benchmark.h>
#includ... |
e2244c516b82fda88b7516719c4488bc98a75283 | cc803734eadb35ba0b06374157fa513a445b79ed | /ttt/wavelet.cpp | 6455ecf57daa876622ae023ed48c8cfd6af08fb3 | [] | no_license | zrainpku/cppsource | 0dbf95e6b2e34cf697cfa4ded0520a50b760c268 | 209c0e03bffb319618cff5a44fc0e32235a92333 | refs/heads/master | 2020-05-14T12:14:32.615384 | 2019-04-17T01:01:37 | 2019-04-17T01:01:37 | 181,790,884 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 10,496 | cpp | wavelet.cpp | //
// wavelet.cpp
// ttt
//
// Created by 朱瑞 on 17/8/1.
// Copyright © 2017年 朱瑞. All rights reserved.
//
#include "wavelet.hpp"
Wavelet::Wavelet(int layer)
{
_layer = layer;
}
Wavelet::~Wavelet()
{}
Mat Wavelet::ColorImageEqualize(Mat src)
{
Mat equal_color;
vector<Mat> splitBGR(src.channels()); /... |
23e1ea190e38af0100bc7f1acee990fdf72e67f8 | 0f4012d03230b59125ac3c618f9b5e5e61d4cc7d | /Cocos2d-x/2.0-x-2.03_branch_231_NoScript/samples/HelloFish/Classes/SIX_Classes/SIX_ClientLogic.h | 8ba2d7f9b3629fca98f9e47a60a51e51ffa8123c | [
"MIT"
] | permissive | daxingyou/SixCocos2d-xVC2012 | 80d0a8701dda25d8d97ad88b762aadd7e014c6ee | 536e5c44b08c965744cd12103d3fabd403051f19 | refs/heads/master | 2022-04-27T06:41:50.396490 | 2020-05-01T02:57:20 | 2020-05-01T02:57:20 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 796 | h | SIX_ClientLogic.h | /*********************************************************
Name:SIX_ClientLogic
Desc:SOCKET交互接口,所有网络消息丢到SIX_Proxy代理中,
由UI线程处理。
Auth:Cool.Cat@2013-05-08
*********************************************************/
#pragma once
#include <SIX_Typedef.h>
#include <SIX_PackageMgr.h>
#include <SIX_Proxy.h>
#include <SIX... |
4107fa3c50edbbfbce288aad85a68690c766332f | b7a5c0cf68124534bd3f482beca8a1a89f65e605 | /cproj/tags/cronw-v1.0.0.2/cron_core.cpp | a97100204ab0c2f9c42267edcc5f197a09e9f9de | [] | no_license | willmomo/ry2kojima | 032fe44a27c080c0d2731a827b1a328cc50c78dd | e65d4e278f7004e06744f22f6eff33529c1ec65b | refs/heads/master | 2020-04-05T23:47:47.461217 | 2016-07-13T00:54:32 | 2016-07-13T00:54:32 | 63,201,963 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 8,392 | cpp | cron_core.cpp | //-----------------------------------------------------------------------------
// cron のメイン処理
//-----------------------------------------------------------------------------
#include "kjmlib-20130512/kjmlib.h"
#include "cron_core.h"
static cron_options* s_popt;
//----------------------------------------------------... |
4d26fa2949b0a5a723172f7ff9f892df28f8262d | 28d4b7348b10d98e8ac17576b2be3a05c0415300 | /src/geom/spikeball.cpp | 32d5f71cdc4587558dfc06885167869dd447a886 | [] | no_license | cbrenton/dangerclose | e95916f462499ed4c642392c4c96b01ce32260b7 | 97216c04be9ac0edc09af8e66deb0dd724974ad2 | refs/heads/master | 2016-09-06T03:36:02.498990 | 2012-06-08T01:03:00 | 2012-06-08T01:03:00 | 4,361,881 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,171 | cpp | spikeball.cpp | #include "geom/spikeball.h"
#include "geom/transform.h"
using namespace glm;
Spikeball::Spikeball(float _rad) :
rad(_rad)
{
trans = mat4(1.f);
}
float Spikeball::dist(vec3 *pt, vec3 *dir)
{
float t = -length(*pt - vec3(0, 0, -14));
vec3 p = *pt;
// Spikeball code.
vec3 c[19]={vec3(1,0,0),vec3(0... |
e1785db68d12beedb689b616c48c1fb75a4b6477 | e7c45d18fa1e4285e5227e5984e07c47f8867d1d | /Common/DevLibs/DevLib/BBBase.cpp | cc62f7b31c18cf838c63d933a8b23c4b6b078417 | [] | no_license | abcweizhuo/Test3 | 0f3379e528a543c0d43aad09489b2444a2e0f86d | 128a4edcf9a93d36a45e5585b70dee75e4502db4 | refs/heads/master | 2021-01-17T01:59:39.357645 | 2008-08-20T00:00:29 | 2008-08-20T00:00:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,991 | cpp | BBBase.cpp | //================== SysCAD - Copyright Kenwalt (Pty) Ltd ===================
// $Nokeywords: $
//===========================================================================
#include "stdafx.h"
#include "sc_defs.h"
#define __BBBASE_CPP
#include "BBBase.h"
//#include "optoff.h"
//===========================... |
0c3a0ec418fd4aa0a81b8ae25472282a9fb7b6b9 | e52c64cdc8706262504176fd729a60e6bb5e439b | /cpp/software-guard/netlink_proc.h | c01a372756f7811f30288e4443a9074d7867e0b6 | [] | no_license | jouyouyun/examples | 2a1488a1492a121658e5861db8ca2ac9e845cc96 | 487293c50d0274d5213b34cada75967b507e9cd5 | refs/heads/master | 2023-05-10T19:06:33.874163 | 2022-12-02T03:10:12 | 2022-12-02T03:10:12 | 154,499,705 | 19 | 8 | null | 2023-05-05T02:20:45 | 2018-10-24T12:45:33 | C | UTF-8 | C++ | false | false | 262 | h | netlink_proc.h | #pragma once
namespace dmcg
{
namespace module
{
namespace software
{
class NetlinkProc
{
public:
virtual void HandleExecEvent(int pid) = 0;
virtual void HandleExitEvent(int pid) = 0;
};
} // namespace software
} // namespace module
} // namespace dmcg
|
e2aa2cde8cf6c5c2d4e40b4c2f6f8ead6e763334 | 5e6910a3e9a20b15717a88fd38d200d962faedb6 | /LightOJ/LOJ1266.cpp | 3ef05b2b9718c7554d943367c260363f133e4129 | [] | no_license | khaledsliti/CompetitiveProgramming | f1ae55556d744784365bcedf7a9aaef7024c5e75 | 635ef40fb76db5337d62dc140f38105595ccd714 | refs/heads/master | 2023-08-29T15:12:04.935894 | 2023-08-15T13:27:12 | 2023-08-15T13:27:12 | 171,742,989 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,401 | cpp | LOJ1266.cpp | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define sz(x) ((int)(x).size())
#define all(x) (x).begin(), (x).end()
const int N = 1005;
int bit[N][N];
void add(int i, int j, int val)
{
for(int x = i; x < N; x += x & -x)
for(int y = j; y < N; y += y & -y)
bit[x][y... |
5e608fa4fb8dd5a0ee5b977b9fad8cb0351d05ab | f0cd16686484d13621ebb395d3db9064523d866d | /implementations/Vulkan/texture_view.cpp | a94d6ac1124d0c8bb8ab6631c846412d29935ec2 | [
"MIT"
] | permissive | ronsaldo/abstract-gpu | 3ba684cad9dc59724526268a592c33711f0b411d | d19251bc1df48408ec016fde74f0e0ac544f2f35 | refs/heads/master | 2023-03-15T01:37:39.943182 | 2022-08-30T00:17:29 | 2022-08-30T00:17:29 | 530,415,789 | 0 | 1 | MIT | 2022-08-29T22:34:33 | 2022-08-29T22:34:32 | null | UTF-8 | C++ | false | false | 833 | cpp | texture_view.cpp | #include "texture_view.hpp"
namespace AgpuVulkan
{
AVkTextureView::AVkTextureView(const agpu::device_ref &device)
: device(device)
{
}
AVkTextureView::~AVkTextureView()
{
vkDestroyImageView(deviceForVk->device, handle, nullptr);
}
agpu::texture_view_ref AVkTextureView::create(const agpu::device_ref &device, ... |
7655d8641492ef219ad77ce3609482283c9d99e3 | 1187b42bd08c1be389272dce452406e57ed78f64 | /sapfor/experts/Sapfor_2017/_src/ParallelizationRegions/ParRegions.h | 6a196b7aeea772ad55d436b962153152d5f9e143 | [] | no_license | koldeen/Sapfor2 | 2b784a12400bdeb919a6e7a6c3df54ec94d7f86b | 6ab55f3ed3ef4d741dc3fa291aaf4fb15111df7d | refs/heads/master | 2023-05-28T06:26:54.435944 | 2021-03-18T07:19:45 | 2021-03-18T07:19:45 | 371,909,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,642 | h | ParRegions.h | #pragma once
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include "../Distribution/DvmhDirective.h"
#include "../Distribution/GraphCSR.h"
#include "../Distribution/Distribution.h"
#include "../Utils/AstWrapper.h"
#if __SPF
#include "../Utils/SgUtils.h"
#endif
struct Parall... |
158f59ebf479fef13149c535e4c0372bbd69b24e | 650e1bea7cec90b3c88ad84a80f5134434920c68 | /larflow/Reco/arxiv/PCACluster.cxx | 146e5d6002cad9767dcdbf445c4b38ba14de0ab8 | [] | no_license | NuTufts/larflow | 7698329f50ec7d0db2f0a715e5a9f6dc09998f55 | 1ba2b426f191704a141bb72d7675d9746538eed4 | refs/heads/master | 2023-08-31T04:35:10.251625 | 2020-09-01T01:49:33 | 2020-09-01T01:49:33 | 136,974,430 | 1 | 1 | null | 2020-09-03T03:00:40 | 2018-06-11T19:56:04 | C++ | UTF-8 | C++ | false | false | 26,895 | cxx | PCACluster.cxx | #include "PCACluster.h"
#include "cluster_functions.h"
#include "nlohmann/json.hpp"
#include "ublarcvapp/ContourTools/ContourClusterAlgo.h"
#include "ublarcvapp/dbscan/DBScan.h"
#include "larcv/core/DataFormat/EventImage2D.h"
#include "DataFormat/larflow3dhit.h"
#include "DataFormat/larflowcluster.h"
#include "TRan... |
60920b1959860ec8120af1f233feaec67c245fbb | cac66a9b146d76c94c889cbb6ef04b4320d5e89a | /task_demo/task_demo/PrintTast.h | c413b030bb258722afbffbb3ddc56ae0f47e2751 | [] | no_license | fblued/task | a3532204e052c048f09dbad216cd4b0f28fad6ab | a4650b0aae5ea0804e1d1cce9b53657db9610cc9 | refs/heads/master | 2020-03-07T21:37:46.047928 | 2018-04-02T09:22:09 | 2018-04-02T09:22:09 | 127,731,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | h | PrintTast.h | #pragma once
#include "Tast.h"
#include <string>
using namespace std;
class PrintTast :
public Tast
{
public:
enum PrintTastType{
enum_TAST_PRINT_TYPE1 = 1,
enum_TAST_PRINT_TYPE2 = 2
};
public:
PrintTast(PrintTastType type, string printString);
virtual ~PrintTast();
public:
virtual void Process();
protected... |
773f197ccad36985045fbd1ec918838d2c61bd86 | 1cff2143cee0dc0def78b5320d98f5710655f21a | /IPC/1605108.cpp | c4b166745769a5496a91a948e7a6dd0f804117b0 | [] | no_license | ShelbyBhai/CSE-314-Operating-Systems | 2e9d07a850a87835eb960185a0ee74a455dd9909 | 9b4e445dad58db43821784bdf7d9150fba6b9eb8 | refs/heads/master | 2023-02-23T12:42:00.441625 | 2021-01-25T19:54:37 | 2021-01-25T19:54:37 | 332,865,332 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,333 | cpp | 1605108.cpp | #include <iostream>
#include <cstdio>
#include <pthread.h>
#include <unistd.h>
#include <semaphore.h>
#include <time.h>
#include <cstring>
using namespace std;
#define number_of_serviceman 3
#define number_of_cycles 10
#define capacity_of_paymentroom 2
pthread_mutex_t serviceman[number_of_serviceman];
pthread_mutex... |
3911a20617ffd950edc2bca2019ad93c591f96cb | b3510eb59c65eec1da31e7313f56f8b4ec47b95d | /250L1/srm404/srm404/srm404.cpp | 9c499e98e69dec64b06cf41e5e623b1d8cc2345f | [] | no_license | pcodex/TopCoder | cc94037d95e3df34e08efa08a9754268793289b0 | 92916b6638e24731d80af28fc29d1ce865c24f31 | refs/heads/master | 2021-01-10T05:33:21.711602 | 2018-03-10T02:26:12 | 2018-03-10T02:26:12 | 46,031,250 | 0 | 1 | null | 2020-10-02T02:16:08 | 2015-11-12T05:22:10 | C++ | UTF-8 | C++ | false | false | 1,008 | cpp | srm404.cpp | // srm404.cpp : Defines the entry point for the console application.
//
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <algorithm>
using namespace std;
class ReadingBooks
{
public:
int countBooks(vector <string> readParts);
};
int Rea... |
5b0201e56561ea44f33f762d2380b61cec135fc7 | faa807a0303af84174bee15e3fc3c18d7cb11304 | /99bottleofbeer.cpp | 36b74748a0a9baccfb05cba6d7d1b0a6bde8a52e | [] | no_license | caibiF/More-C-Problems | 013214ee698f7b2edcc581af7fd8f433658e2cea | 0d86d954f1fda12cfe48b04c5d839f37a15b0fdf | refs/heads/master | 2021-01-21T20:23:47.299882 | 2015-08-22T17:21:47 | 2015-08-22T17:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | 99bottleofbeer.cpp | #include <iostream>
using namespace std;
int main(){
//99 bottles of beer on the wall, 99 bottles of beer.
//Take one down, pass it around, 98 bottles of beer on the wall...
//No more bottles of beer on the wall, no more bottles of beer.
//Go to the store and buy some more, 99 bottles of beer on the wall.
f... |
b87070dcd7e105bf41f070b52f37736103434f27 | 52ca17dca8c628bbabb0f04504332c8fdac8e7ea | /boost/wave/util/functor_input.hpp | 515d557d8cc95abc9f7b873a12de87f9accb5012 | [] | no_license | qinzuoyan/thirdparty | f610d43fe57133c832579e65ca46e71f1454f5c4 | bba9e68347ad0dbffb6fa350948672babc0fcb50 | refs/heads/master | 2021-01-16T17:47:57.121882 | 2015-04-21T06:59:19 | 2015-04-21T06:59:19 | 33,612,579 | 0 | 0 | null | 2015-04-08T14:39:51 | 2015-04-08T14:39:51 | null | UTF-8 | C++ | false | false | 69 | hpp | functor_input.hpp | #include "thirdparty/boost_1_58_0/boost/wave/util/functor_input.hpp"
|
b7555ba6a24e4ba9f1333b5a2af4f24ae4603769 | cf13ad30dde89ddd6b33f26e2889cd12da5c6f69 | /AudioPlayer/mainwindow.cpp | 9553c73e137b4b9fd0477d0d7659e5c68925115c | [] | no_license | FloHAW/avprg | f5fb1862d71894279595d1413ec812e1999af44c | 7cbb07504062b0d5e1fea677bc250fe8a9eb53df | refs/heads/master | 2020-12-13T19:56:41.951527 | 2014-12-08T13:33:33 | 2014-12-08T13:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QFileDialog>
#include <QDir>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_open_clicked()
{
QString fileName = QF... |
6f6fe5af9058d7e3ddf931053a6f4cbd908bbcce | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Codes/AC/63.cpp | 14d41a8e9e301ceb8619f17add4d91c8069205ac | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,189 | cpp | 63.cpp | #include <bits/stdc++.h>
#define FAST_IO ios::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define CaseT int T;cin >> T;for(int cas=1;cas<=T;cas++)
#define clr(a,b) memset(a,b,sizeof(a))
#define sgn(a) ((a)==0?0:(a)/abs(a))
#define upd(a,b) (a%b?a/b+1:a/b)
#define all(x) (x).begin(),(x).end()
#defi... |
2d588be71be9b820aa0a3db41d74316f87fbfc34 | d8b735b232065b958fb47cc94c2510f6f0a3a08c | /COSC2436-DataStructures/Vector Examples/VectorDriver3.cpp | 03cf085e9c18b3558b5268737b6e25023264f06d | [] | no_license | ManuelsPonce/ACC_ProgrammingClasses | 9aedf39c335c0eb3419c403e5929db06091a5411 | 39c79d23eb02279339a318c56a6c24722e0674ab | refs/heads/master | 2020-05-05T04:52:19.047827 | 2019-04-05T17:42:26 | 2019-04-05T17:42:26 | 179,728,142 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | cpp | VectorDriver3.cpp |
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> newVector;
for(int i = 0; i < 32; i++)
{
newVector.push_back(i);
cout << i << ": Size "<< newVector.size()<< ", Capacity "<< newVector.capacity()<< endl;
newVector.pop_back();
}
return 0;
} // end main
|
b8b70a098da52ea28c709ea9e407772d228246dc | 942be99b90b68ff45bd47208c170a49e13d77111 | /tictactesting/tictactesting.cpp | 55c78faa326b30b1c8974725d31af856b3546383 | [] | no_license | odinsen369/tictactoedone | c79fb39d885804c75da7dbe6537c07bf84b7071d | c09b05d0f362a7005b8af8f0162c0a1b8f9ee03b | refs/heads/master | 2022-12-20T22:52:24.568452 | 2020-09-28T21:14:10 | 2020-09-28T21:14:10 | 299,421,545 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,135 | cpp | tictactesting.cpp | #include <iostream>
#include <string>
#include <vector>
std::vector <char> board = { '1','2','3','4','5','6','7','8','9' };
bool player = true;
int value;
bool changetox(std::vector <char>& board_copy1) {
if (board_copy1.at(value - 1) == 'X' or board_copy1.at(value - 1) == 'O') {
std::cout << "illegal input";
... |
7e1514563e1f3120dd6e00bc1569b4c3b9fbcb47 | 9120a9b17d00f41e5af26b66f5b667c02d870df0 | /SOURCE/owlcore/datep.cpp | c94600c27df0469e5c5bc8449d11d59f65554a44 | [
"Zlib"
] | permissive | pierrebestwork/owl | dd77c095abb214a107f17686e6143907bf809930 | 807aa5ab4df9ee9faa35ba6df9a342a62b9bac76 | refs/heads/master | 2023-02-14T02:12:38.490348 | 2020-03-16T16:41:49 | 2020-03-16T16:41:49 | 326,663,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 824 | cpp | datep.cpp | //----------------------------------------------------------------------------
// Borland Class Library
// Copyright (c) 1993, 1996 by Borland International, All Rights Reserved
//
//$Revision: 1.27 $
//$Author: jogybl $
//$Date: 2009-08-05 10:48:52 $
//
// TDate class persistant streaming implementation
//---... |
988fead8f9c44e2cda5de505c17859119e28c70c | 1853b1709e6ab1db69c4ddc9ed619b688a9897e5 | /include/Leviathan/video/ICamera.h | ae34fabc4be8f080596df6fd2121e47e748f547a | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | dixx/Die_Chroniken_eines_namenlosen_Spiels | 9acf88a32158a40cf02bd5b6e8c05edccfdf129a | 5f0bb2ded81bbb1d89ddd9d06e23618a05ed9c6f | refs/heads/main | 2023-08-21T12:14:50.118693 | 2023-08-10T14:32:28 | 2023-08-10T14:32:28 | 16,031,648 | 1 | 2 | NOASSERTION | 2023-08-10T14:32:30 | 2014-01-18T18:50:22 | C++ | UTF-8 | C++ | false | false | 2,589 | h | ICamera.h | /*! \file ICamera.h
* \brief Bietet Zugriff auf eine Kamera.
* \note Bestandteil der Leviathan Engine
*/
#ifndef LEVIATHAN_PUBLIC_INTERFACES_VIDEO_ICAMERA_H
#define LEVIATHAN_PUBLIC_INTERFACES_VIDEO_ICAMERA_H
#include <video/IPositionable.h>
namespace leviathan {
namespace video {
struct Vector3D;
... |
d51ba1103a8853fd82e525d9541d1e826f9bfc09 | 3518543f54d8d7d8c3a2cf35b5edb3275e7a8621 | /Includes/Fact.class.hpp | bf91f477dd9a22cf52c421ff659b53dc78064500 | [] | no_license | Big-Brick/EpxertSystem | d5a7ce24daf510dea284d90ef88df7dda3ed5640 | 9263db2cd686236fb35c2062dbbf12cfbb1a2ae6 | refs/heads/master | 2020-03-19T08:06:12.656281 | 2018-06-05T13:03:29 | 2018-06-05T13:03:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,727 | hpp | Fact.class.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fact.class.hpp :+: :+: :+: ... |
a5d61539751940f169b9b47c7b8200baee300788 | 6727dca8d3e31bd4610c8d1de47485d846b85ce6 | /src/Canvas.hpp | 6751cf9dca8fc344c9d22355c171755f00aed21c | [] | no_license | epixelse/AssaultCubeHack | dd64ea179153c85c2f777fc21aeac6bbfe5a5527 | 8eed1cbf2bfce782b9c3608fb12fa31c5c3c42b5 | refs/heads/master | 2023-03-18T16:04:02.854510 | 2020-04-22T12:02:37 | 2020-04-22T12:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,534 | hpp | Canvas.hpp | #pragma once
#define GLEW_STATIC
#include "UU.hpp"
#include <GL/glew.h>
#include <iostream>
#include <string>
#include <ft2build.h>
#include FT_FREETYPE_H
#include <map>
#include "Types.hpp"
namespace NCanvas
{
bool Initiate();
void Terminate();
void InHookInitiate();
void BeginScene();
void EndScene();
vo... |
251e84a883c45a12964c43dc009cb3db059bf245 | 57b6fa831fe532cf0739135c77946f0061e3fbf5 | /NWNXLib/API/Mac/API/MEMORY4GROUP.hpp | 73ed13ab287a22e9410c1ca7606f294cd520b7e9 | [
"MIT"
] | permissive | presscad/nwnee | dfcb90767258522f2b23afd9437d3dcad74f936d | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | refs/heads/master | 2020-08-22T05:26:11.221042 | 2018-11-24T16:45:45 | 2018-11-24T16:45:45 | 216,326,718 | 1 | 0 | MIT | 2019-10-20T07:54:45 | 2019-10-20T07:54:45 | null | UTF-8 | C++ | false | false | 191 | hpp | MEMORY4GROUP.hpp | #pragma once
#include <cstdint>
#include "MEM4st.hpp"
#include "l4linkSt.hpp"
namespace NWNXLib {
namespace API {
struct MEMORY4GROUP
{
l4linkSt link;
MEM4st types[10];
};
}
}
|
1336f52f349f7752f65e771b75951effaa791006 | 7f8f5dd7709c2710dac650c7a1afe460942c00a4 | /SBFem2D/Common3D.h | 18ac8c8f525e3e6a1517a72654b1b173bdc7ae64 | [] | no_license | labmec/SBFem | 66d84e246a765f9a68a8e0b8962fba142538e023 | da2e54ee516cfcd44443aef99cb31e9ac89a8cce | refs/heads/master | 2022-09-26T06:21:27.613510 | 2022-09-01T20:59:22 | 2022-09-01T20:59:22 | 117,534,438 | 0 | 0 | null | 2022-03-10T13:37:34 | 2018-01-15T11:00:47 | C++ | UTF-8 | C++ | false | false | 1,480 | h | Common3D.h | #ifndef COMMON3DHPP
#define COMMON3DHPP
#include "TPZLinearAnalysis.h"
#include "pzcmesh.h"
#include "TPZAnalyticSolution.h"
#ifdef USING_BOOST
#include "boost/crc.hpp"
static void printvec(const std::string &name, TPZVec<boost::crc_32_type::value_type> &vec)
{
std::ofstream out(name);
int64_t nel = vec.siz... |
36eda57c7efd796531b615a875bed4312c6c2bdd | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-dms/include/aws/dms/model/ComputeConfig.h | a03a81466beb1bfd9c618f0b952c782e23f4c899 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 34,463 | h | ComputeConfig.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{... |
6009c7c8256b306dd5ceca9671eff1889587919c | 4be0dc811a3eb7cf1ccb8156b8977484076e90c1 | /src/RouteChoice/patReadPathsFromKML.cc | fa3c88b142058a0309c766cf4e5a5e42da4c85dd | [
"MIT"
] | permissive | idaohang/smaroute | 27980b191b8a926a42211f9fd47da9e5b19be938 | e2ccc9492dff54c8ef5c74d5309d2b06758ba342 | refs/heads/master | 2021-01-22T12:54:08.171216 | 2013-07-15T05:47:44 | 2013-07-15T05:47:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,377 | cc | patReadPathsFromKML.cc | /*
* patReadPathsFromKML.cc
*
* Created on: May 26, 2012
* Author: jchen
*/
#include "patReadPathsFromKML.h"
#include "kml/dom.h"
#include "kml/base/file.h"
#include "patException.h"
#include <xmlwrapp/xmlwrapp.h>
#include <boost/xpressive/xpressive.hpp>
#include <map>
#include "patChoiceSet.h"
using name... |
4974cd4d11ccaccc43090354defd78a0bd6aa595 | ac830a9ff015de55283d4b72a1cdeaa89c8648c0 | /src/ExportableObject.h | dd354e0e30594074d9c95ab40f846a40612f77ab | [
"MIT"
] | permissive | lp249839965/Maya2glTF | ff3a74251341739825796ad3210cddc0d1fef19a | 7a222e745849db3a0a56b793b94a2a066de8e4c5 | refs/heads/master | 2020-03-09T02:37:39.499955 | 2018-04-05T19:42:43 | 2018-04-05T19:47:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | h | ExportableObject.h | #pragma once
#include "ExportableItem.h"
class Arguments;
class ExportableResources;
class ExportableObject : public ExportableItem
{
public:
ExportableObject(MObject mObj);
virtual ~ExportableObject() = 0;
const std::string& name() const { return _name; }
private:
std::string _name;
};
|
8b11ebdcd1f71b1897ac898b53716f8a16382fd4 | 70a128a17456c608fad85f02f86198e510af3183 | /leetcode151.cpp | 56bc96e9749b3574bb87b812280f320897b21c73 | [] | no_license | wangdai/algo | 5e9b9437e20957ccfad409e59b336357f9bb6d44 | 5be6632f491688333c9c74fde0797596fcdbb81b | refs/heads/master | 2021-01-20T03:02:13.980035 | 2015-04-21T06:51:55 | 2015-04-21T06:51:55 | 28,333,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 970 | cpp | leetcode151.cpp | /**
* leetcode 151 - Reverse Words in a String
* https://leetcode.com/problems/reverse-words-in-a-string/
*
* here is a one pass and O(1) space solution
*
* @author wangdai
* @date 2015-03-21
*/
#include <iostream>
#include <cstdio>
#include <vector>
#include <stack>
#include <string>
using namespace std;
vo... |
ea019c0dcc470f158d090b78ca7da34e31d9839b | 0af567e9d99fce5bf92ba7c22e12f504cd865ce9 | /mocks/mockOpNegFour.hpp | f679db860ed5ebe62e022b72eb770184a39d99d1 | [] | no_license | athai026/CS100_Lab7--factory-pattern | aeaf72434a516a94a537f77e9630eb8963472e46 | 9dd5c8c57080dec78bf2fc7632c72a3b5c848fe2 | refs/heads/master | 2023-05-30T20:55:05.609216 | 2021-05-25T06:35:40 | 2021-05-25T06:35:40 | 378,633,940 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | hpp | mockOpNegFour.hpp | #ifndef __MOCK_OP_NEG_FOUR__
#define __MOCK_OP_NEG_FOUR__
#include "../src/base.hpp"
class mockOpNegFour : public Base {
public:
mockOpNegFour() {}
virtual double evaluate() {return -4;}
virtual std::string stringify() {return "-4";}
};
#endif //__MOCK_OP_NEG_FOUR__
|
33b6c6b9e50cd93f8453f734aefabd73af31311a | 72bdd3326063dfed2f1f82445f70ebac7f989087 | /tarea 2do parcial/programa6.cpp | 8a95f269b511d0fc606e48925ae3b322dfe649be | [] | no_license | julioalmadaf/CPP | 9d2056ccb99f5a8e0b02ab5847b1f713c3c956a3 | 09f42243069abbda978cb8913b9c47e5992bf861 | refs/heads/master | 2020-09-25T13:49:57.981687 | 2019-12-05T04:39:38 | 2019-12-05T04:39:38 | 226,017,017 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | programa6.cpp | #include<stdio.h>
#include<conio.h>
main()
{
int num;
printf("Pon un numero");
scanf("%i", &num);
if (num%2==0) {
num=num*num;
printf("%i", num);
}
else {
num=num*num*num;
printf("%i", num);
}
getch;
}
|
97cb9547be8371e59a1b6b5d33b8d1dfd4a4baec | 137daedf38a8c1d406d91f14cd47260364fd5981 | /ixwebsocket/IXStrCaseCompare.cpp | 833815ff67f9fef547ae65034e360254dcb66550 | [
"BSD-3-Clause"
] | permissive | machinezone/IXWebSocket | 62642d9bc690cc2f8c9451cde289d961fb54c114 | a7019631b765581b7e3549cf7cdac77496984709 | refs/heads/master | 2023-08-04T18:01:08.443057 | 2023-08-02T05:16:43 | 2023-08-02T05:16:43 | 150,647,867 | 476 | 185 | BSD-3-Clause | 2023-09-13T01:39:11 | 2018-09-27T21:07:07 | C++ | UTF-8 | C++ | false | false | 1,176 | cpp | IXStrCaseCompare.cpp | /*
* IXStrCaseCompare.cpp
* Author: Benjamin Sergeant
* Copyright (c) 2020 Machine Zone. All rights reserved.
*/
#include "IXStrCaseCompare.h"
#include <algorithm>
#include <locale>
namespace ix
{
bool CaseInsensitiveLess::NocaseCompare::operator()(const unsigned char& c1,
... |
259552b950d674514e8282b94bd7ef33b5063d21 | 82df30000193bd075390318b76f10a8ace15624a | /AFCS_UI/main.cpp | c2afdf74ac5706606368d9f32769492eaad56104 | [
"MIT"
] | permissive | tudorginga/AFCS4P3D | 6e14f4180d6b1395ab0fbb40193a002af76c8c30 | 65d0023c851360d5abdb0432f5f7abc99625c2dd | refs/heads/main | 2023-07-13T02:04:19.793042 | 2021-08-15T08:54:00 | 2021-08-15T08:54:00 | 396,157,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 166 | cpp | main.cpp | #include <QtWidgets/QApplication>
#include "AFCS_UI.h"
int main(int argc, char *argv[])
{
QApplication A(argc, argv);
AFCS_UI UI;
UI.show();
return A.exec();
}
|
977784a7449e224d6090a65c7fea10c4e1fdd203 | dc97b3ca57f62762abf5d3a5bffef6d53e966181 | /src/Renderer.hpp | add3b3ad1a092025987a42c8bbd7ca55ae1015b4 | [] | no_license | konradsz/parallax | 08b9292aa2678e83a929bd56deed625cc2b44172 | b4e2f3ee53019366ae7a89f6c663fd0e62e32409 | refs/heads/master | 2020-04-14T18:02:12.417238 | 2019-01-03T17:37:54 | 2019-01-03T17:37:54 | 164,003,786 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 577 | hpp | Renderer.hpp | #pragma once
#include <map>
#define GLEW_STATIC
#include <GL/glew.h>
#include <glm/glm.hpp>
#include "Shader.hpp"
#include "Sprite.hpp"
namespace ogl {
class Renderer {
public:
Renderer(float frustum_width, float frustum_height);
~Renderer();
void load_texture(const std::string& file... |
bfaa2aaf05ba3f538ae37eee6184f439cb9f3646 | 473c3cd16cd6c85cd96703ffcc431e846006e7be | /Plugins/StateMachine/Source/StateMachine/Private/BaseSwitchers.cpp | 2980f825fdb7b882d5f476f4d27183567f37839e | [] | no_license | TamerXlam/Quantum | a11fc465ccd46fcdd981cfe25372e6f799d51d00 | ac9a088b7de5000374808a642d16622ecc15fbb3 | refs/heads/master | 2021-06-19T19:31:51.646312 | 2021-06-14T13:13:30 | 2021-06-14T13:13:30 | 163,433,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 911 | cpp | BaseSwitchers.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "BaseSwitchers.h"
#include "StateMachineComponent.h"
void UOnBaseStateIsFinishedNotify::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation)
{
if (!IsValid(MeshComp))
{
return;
}
AActor* MOwner = MeshComp... |
b7e2df6f3bc06915faf60cb32ae7bcecb8a2f3e8 | d16985a72e39109c30b1e975007cc1cabe8a6ac8 | /Common/Packets/GCEquipDecompoundResult.h | 90fa6d3c11b46c2dd40322541104aba5895a0c03 | [] | no_license | uvbs/wx2Server | e878c3c5c27715a0a1044f6b3229960d36eff4b4 | 78a4b693ac018a4ae82e7919f6e29c97b92554ab | refs/heads/master | 2021-01-18T00:06:34.770227 | 2013-12-13T09:18:54 | 2013-12-13T09:18:54 | 43,288,843 | 2 | 3 | null | 2015-09-28T08:24:45 | 2015-09-28T08:24:44 | null | UTF-8 | C++ | false | false | 1,544 | h | GCEquipDecompoundResult.h | #ifndef _GC_EQUIPDECOMPOUNDRESULT_H_
#define _GC_EQUIPDECOMPOUNDRESULT_H_
#include "Type.h"
#include "Packet.h"
#include "PacketFactory.h"
namespace Packets
{
class GCEquipDecompoundResult: public Packet
{
public:
GCEquipDecompoundResult(){};
virtual ~GCEquipDecompoundResult(){};
//公用接... |
914e4578795a06ba0d8831aa56c12f4e0ab34fcf | 90724829e4022f38c6328738afb59c4db71f122f | /Radiant/Source/Radiant/Private/MoveToPoint.cpp | bd23bd263166a288a07398089fe4a4000446ad16 | [] | no_license | woojooc/Radiant | 6cbe86fc1359ce8aecc5900f92c80298c5adf5ee | 52ca55f856a197982d94b609b0aeff95bbbd43c1 | refs/heads/main | 2023-07-18T09:59:19.284625 | 2021-08-13T03:37:33 | 2021-08-13T03:37:33 | 388,393,085 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,093 | cpp | MoveToPoint.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "MoveToPoint.h"
// Sets default values for this component's properties
UMoveToPoint::UMoveToPoint()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// ... |
b49c82de9cf75b21f81882cb91e82b66a71d1a4b | d09092dbe69c66e916d8dd76d677bc20776806fe | /.libs/puno_automatic_generated/inc/types/com/sun/star/text/TextRangeSelection.hpp | e7ef6842351305ddf48e40d6cf9846a7590d41be | [] | no_license | GXhua/puno | 026859fcbc7a509aa34ee857a3e64e99a4568020 | e2f8e7d645efbde5132b588678a04f70f1ae2e00 | refs/heads/master | 2020-03-22T07:35:46.570037 | 2018-07-11T02:19:26 | 2018-07-11T02:19:26 | 139,710,567 | 0 | 0 | null | 2018-07-04T11:03:58 | 2018-07-04T11:03:58 | null | UTF-8 | C++ | false | false | 2,166 | hpp | TextRangeSelection.hpp | #ifndef INCLUDED_COM_SUN_STAR_TEXT_TEXTRANGESELECTION_HPP
#define INCLUDED_COM_SUN_STAR_TEXT_TEXTRANGESELECTION_HPP
#include "sal/config.h"
#include "com/sun/star/text/TextRangeSelection.hdl"
#include "com/sun/star/text/TextPosition.hpp"
#include "com/sun/star/uno/Type.hxx"
#include "cppu/unotype.hxx"
#include "sal/... |
502a2bc436d6541437c5d4d9be02ba22bd9c23cb | 91d1cccabfbe0c4fae90bb91ed5f81a614c0c4d7 | /prueba_c++/prueba/main.cpp | 6732e9cf05dee71f1a8993fb5d147a86b9f9dfb3 | [] | no_license | fotonicaOrg/afinador | 4340c54969fcd39c6970ecd1788254adb34b3e2e | 76f1a985bb824432c4e5f3481d48d07e0190935c | refs/heads/master | 2020-04-08T20:48:14.333558 | 2018-12-11T21:00:21 | 2018-12-11T21:00:21 | 159,715,691 | 0 | 3 | null | 2018-12-11T21:00:23 | 2018-11-29T19:17:49 | C++ | UTF-8 | C++ | false | false | 803 | cpp | main.cpp | #include <iostream>
#include "header.h"
using namespace std;
int main()
{
double rate = 44100.9;
int length = 256*12;
double threshold_ratio = 0.9;
std::string in_file("prueba.txt");
std::string out_corr("corr.txt");
std::string out_raw("raw.txt");
vector<double> data(length, 0);
std... |
e3426d2b696e173917197852101bbe08b6ffa539 | d5556fb26cbc49681ae98192bf6584e2b12c0598 | /Csci325/Custom_Linked_List/book.h | 3b3f8b7ba56bf67c775ca0864842612db1d6870f | [] | no_license | RickyHempel/SchoolProjects | e8c2ed75fc3358dd5397737c09364826ae4e5f87 | 1c3a8c1c5e5255fff6923a57e9aa1116ee66f59e | refs/heads/master | 2020-03-16T20:07:55.064039 | 2018-06-14T05:38:17 | 2018-06-14T05:38:17 | 132,947,689 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 699 | h | book.h | /*
Name: Richard Hempel, Tanner Thurman, Justin Evans
Date: 10/20/2014
Purpose: Declaring the book struct for the library.cpp
File: book.h
*/
#ifndef book_h_
#define book_h_
#include <string>//String use.
using namespace std;
//Declaring the struct for book
struct book{
//public:
book *next; // setti... |
b3f28cd4f8017262d2de63f62952b32e8a65e98f | ee48b4cc16d20be0f8a558fb1401973f2633d2a9 | /examples/tutorial2/main.cpp | 8aef22aa9c1e1a779c0c4484554fd6b9cda6c24b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | slowriot/noisepp | 5e74730be7f62e1515718045955ec559f73b2273 | dfc120588ad0fb471056c44da15938b845076320 | refs/heads/master | 2021-01-10T18:42:02.801365 | 2018-02-07T01:02:19 | 2018-02-07T01:02:19 | 20,843,702 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,999 | cpp | main.cpp | #include <iostream>
#include "Noise.h"
using namespace std;
int main ()
{
// create the perlin module (we will keep the default parameters here)
noisepp::PerlinModule perlin;
// create the constant module
noisepp::ConstantModule constant;
// set a constant value of 0.5
constant.setValue (0.5);
// create the ad... |
2a213ed0711ea0cf3e29f5e1030757a731c93c7a | efe5f7a550697484b1f3b60a07e0e60b77f1e662 | /src/solvers/jarvis_scan_3d.h | 38f786bd15a21ffa240d287e510e8d97b64acd8a | [] | no_license | PMitura/cheetah | a4ba465e8d56f08aded944f390a9c7bf6d39593f | bbd9da40baca2a446283caeb05e479086b72652d | refs/heads/master | 2021-01-20T11:41:36.675706 | 2016-05-15T09:39:40 | 2016-05-15T09:39:40 | 53,272,752 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | h | jarvis_scan_3d.h | #pragma once
#include <vector>
#include <set>
#include <cstdlib>
#include <ctime>
#include <cfloat>
#include <climits>
#include "lib/geometry.h"
#include "lib/structures.h"
#include "solvers/solver_3d.h"
#include "solvers/graham_scan_2d.h"
namespace ch
{
/**
* Gift wrapping style solver for 3d convex hulls
*/
cla... |
e8d09c649293e4d055f3da658d4921fa8723f439 | 490ed1245cea047429eba7c47d35cd74cdd34663 | /RayTrace/renderer/GLSLTestRenderer.cpp | 321e2b1a5ac492e6e1ce0ccb71941997a963aa21 | [] | no_license | freedom12/RayTrace | 209e4a89c292fd980c6df7f282df53b3f8a3ef44 | 6b9e3369ae0a22dcb16184dfd458dac0113fc76a | refs/heads/master | 2020-07-29T10:36:49.850369 | 2019-10-10T02:40:54 | 2019-10-10T02:40:54 | 209,764,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,355 | cpp | GLSLTestRenderer.cpp | #include "GLSLTestRenderer.h"
#include <vector>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "../shape/Sphere.h"
#include "../core/Random.h"
GLSLTestRenderer::GLSLTestRenderer(const int w, const int h) : width(w), height(h)
{
auto from = glm::vec3(-0, 5, -30);
auto to = glm::vec3(0, 0, 0);
cam... |
e10b36ce837fe0cf06d715dc7566c84ff34fb617 | 0cb85cd0c88a9b9f0cca4472742c2bf9febef2d8 | /include/klava/kcdf_utils.h | d566f860bd8f64095ceb307dfde8680bbe911413 | [] | no_license | seth1002/antivirus-1 | 9dfbadc68e16e51f141ac8b3bb283c1d25792572 | 3752a3b20e1a8390f0889f6192ee6b851e99e8a4 | refs/heads/master | 2020-07-15T00:30:19.131934 | 2016-07-21T13:59:11 | 2016-07-21T13:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,970 | h | kcdf_utils.h | // kcdf_utils.h
//
#ifndef kcdf_utils_h_INCLUDED
#define kcdf_utils_h_INCLUDED
#ifdef __cplusplus
#include <kl_types.h>
#include <klava/klaverr.h>
#include <klava/kdc.h>
#include <klava/kdu.h>
#include <klava/kdu_utils.h>
struct KLAV_Bin_Writer;
// Tags of CDF file
class KCDFTagHandler
{
pub... |
a5e933d544d9c0beca89bd5ea92ba555260997cf | 96e55cd13cd109e8182690e67ed4ea6019145884 | /src/util/latch.h | 5ae17ccf4e179aaa18b2ff1f2e0bcce4dcd06bea | [
"MIT"
] | permissive | bafonso/DHE-Modules | cacf4e48c47cee111f0341683dcfd9db9e5e1c94 | f3e3aeabf7a2917170c929feb7beec16ba4c2991 | refs/heads/master | 2020-03-08T15:37:24.678156 | 2018-03-25T01:22:44 | 2018-03-25T01:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,311 | h | latch.h | #pragma once
#include <functional>
#include <vector>
namespace DHE {
class Latch {
public:
bool is_high() const { return state==State::HIGH; }
/**
* Suspends firing events.
*/
void disable() {
enabled = false;
}
/**
* Resumes firing events.
*/
void enable() {
enabled = true;
}
... |
b928e11f57cc4049ce6e2046a7a5a6bede082a5a | e769678179d65e4d38fc36967eb70e48032afd44 | /tools/gfx/utils/light/LightRenderer.hpp | 53ada46f51941f63a6ebad19e72cccb86130d39d | [] | no_license | Pocsel/pocsel | 02f860c2d6d7bbdff17df09e4a5d7dfc60849c04 | f3ec58f68719302ec10fc3312928b08566b0dd52 | refs/heads/master | 2021-01-23T08:56:14.496186 | 2014-12-26T00:24:14 | 2014-12-26T00:24:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,606 | hpp | LightRenderer.hpp | #pragma once
#include "tools/Frustum.hpp"
#include "tools/gfx/IRenderer.hpp"
#include "tools/gfx/effect/Effect.hpp"
#include "tools/gfx/utils/Image.hpp"
#include "tools/gfx/utils/Sphere.hpp"
#include "tools/gfx/utils/light/DirectionnalLight.hpp"
#include "tools/gfx/utils/light/PointLight.hpp"
namespace Tools { namesp... |
d67fc7c09ca6ef043f26757e8e1e355af1d3cfb9 | 848ac61bdf1def80e30c3b08c7b19bec2ba6b666 | /Source/ComponentEx/Private/Components/CompositeColliderComponent.cpp | cd940e6bcffbb8680395f4c8d0c04185e76912d7 | [
"MIT"
] | permissive | yatagarasu25/UnrealEngineEx | d99eaa92596a10d55d949f423f5cb7f16bcf7625 | 7a8a9359918c143ffb0b7e18092f4ccc6ac5e5d7 | refs/heads/master | 2023-07-06T00:29:20.019261 | 2023-06-27T12:00:40 | 2023-06-27T12:00:40 | 176,234,335 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,755 | cpp | CompositeColliderComponent.cpp | #include "Components/CompositeColliderComponent.h"
#include "Components/ShapeComponent.h"
#include "ComponentEx.final.h"
UCompositeColliderComponent::UCompositeColliderComponent()
{
bWantsInitializeComponent = true;
}
void UCompositeColliderComponent::InitializeComponent()
{
Super::InitializeComponent();
Init... |
ee4ec854619d5455e069c4b6292c1b7196d05192 | 8c329a02cdcf06aa569701321bbb33fdfcdfb659 | /EstruturaDeDados/aula8.cpp | 31db33cc519f22d8123f2404e553f6609bec9b65 | [] | no_license | icidade/EstruturaDeDados | 22dcd51460c3ff07870522e639eb4cb404275f89 | da2cc29b8a69c9f042aeda028e5737ef04353a85 | refs/heads/master | 2021-01-10T20:56:24.805053 | 2015-10-26T02:35:44 | 2015-10-26T02:35:44 | 41,254,905 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 7,895 | cpp | aula8.cpp | #include "stdafx.h"
#define TAM 3
using namespace std;
/*
formas de acessar um membro de uma estrutura atraves de um ponteiro:
usando o operador ->
nomeDaVariavelPonteiro -> membro
usando o operador *
(*nomeDaVariavelPonteiro).membro
para se atribuir o endereco de uma estrutura a um ponteiro:
nomeDaVariavelPonteiro ... |
2b99af5f3305fadcbacafeac0a8edeab461d0f13 | cdddb70908194ce21d16052b336ebaf5e203b5ab | /src/atlas/grid/Spacing.cc | 4bb762a6a2115d076c2a5fa77e88663bfb4980a2 | [
"Apache-2.0"
] | permissive | ecmwf/atlas | 4e32fe8c5b70995b5b4df96b13a2741d093c40db | aaf527db8a18fafd4f61e93169676c6834821692 | refs/heads/develop | 2023-08-31T13:25:36.339542 | 2023-08-25T10:03:21 | 2023-08-25T10:03:21 | 122,975,745 | 94 | 39 | Apache-2.0 | 2023-08-30T15:35:53 | 2018-02-26T13:44:07 | C++ | UTF-8 | C++ | false | false | 2,071 | cc | Spacing.cc | /*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... |
7c486c295153a812856ddf1b789749b4f96574a4 | 2b4e3b6498c06a912a7b4306960355eca7e61f3b | /chapter 15/chap15_15.13/header.cpp | fd359d124bccce35a60638b42b1aba9c67d51ee3 | [] | no_license | nrqu/answersprimer | 9391510e19764bbafa9ce79b801567f680c1dcaf | a21e782e8c5b771c80b861c59a60f643bab9ab4a | refs/heads/master | 2022-11-14T13:52:43.742962 | 2020-07-13T21:58:30 | 2020-07-13T21:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | cpp | header.cpp | //Exercise 15.13: Given the following classes, explain each print function:
#include<string>
using std::string;
#include<iostream>
using std::ostream;
class base {
public:
string name() { std::cout<<"base"<<std::endl; return basename; }
virtual void print(ostream &os) {std::cout<<"base"<<std::endl; os << basename; }//... |
93b6e7b97bc11a6f11269ca520587e427f787440 | 225f5b2a02b5a63456a141b62ef385307a9be93f | /Chapter9/SelectK.cpp | e000507862801883ac96b00ed3bfcaf8b5e4c85b | [] | no_license | lewgate/Algorithm | 97a55bcb37c95c420ebe96e30b897e78a416b15e | 2871cbd1f1a4baa748b4dbf60f0d9415ed377b67 | refs/heads/master | 2016-09-09T20:32:23.721338 | 2013-11-13T08:54:21 | 2013-11-13T08:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,158 | cpp | SelectK.cpp | #include <iostream>
using namespace std;
template <typename T>
void Swap(T *a, T *b){
T tmp = *a;
*a = *b;
*b = tmp;
}
template <typename T>
int Partition(T *pArray, int left, int right){
T ref = pArray[right];
int i = left - 1;
for(int j = left; j <= right-1; j++){
if(pArray[j] < ref){
... |
304d420800c95872c201168c704b185f6a0650d3 | 9b2ef6d9a1c977b197497c437c34ced3eeb614d5 | /Kaguya/Core/ThreadSafeQueue.h | 4815e41b28f9959af83f6fd1748e42156419d005 | [] | no_license | LASTEXILE-CH/Kaguya | 019050da60c15ac970534d0b80497f5dc2cb813f | 8020f18ff74e1f0ae7f16ebd82383c81fc319907 | refs/heads/master | 2023-04-03T10:57:28.511072 | 2021-04-18T11:12:11 | 2021-04-18T11:12:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,284 | h | ThreadSafeQueue.h | #pragma once
#include "Synchronization/CriticalSection.h"
#include "Synchronization/ConditionVariable.h"
#include <queue>
template<typename T>
class ThreadSafeQueue
{
public:
ThreadSafeQueue() = default;
ThreadSafeQueue(const ThreadSafeQueue&) = delete;
ThreadSafeQueue& operator=(const ThreadSafeQueue&) = delete;
... |
286c13efb725f66dc962a11ac225fd15eedd7eaf | 0ed5ac0197d20dfce1d77c611d8bb2fd58da96e7 | /iceoryx_posh/include/iceoryx_posh/internal/popo/base_publisher.inl | 8e36e2fac2646d6359cee8075404f37135092ebc | [
"Apache-2.0",
"LicenseRef-scancode-generic-export-compliance",
"BSD-3-Clause",
"EPL-2.0",
"MIT"
] | permissive | boschglobal/iceoryx | 1cd2b6709c6be7ac8dff38f89d80bba6f2d1af30 | eb0256407e3cf0baed1efdee6f8eeacf4d3514da | refs/heads/master | 2023-06-22T17:08:19.884933 | 2021-06-10T18:10:13 | 2021-06-10T18:10:13 | 343,827,468 | 1 | 0 | Apache-2.0 | 2021-07-23T11:39:36 | 2021-03-02T15:50:51 | C++ | UTF-8 | C++ | false | false | 2,375 | inl | base_publisher.inl | // Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2020 - 2021 by Apex.AI Inc. 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
//
// ... |
f23ceac49bcc313a942da124e70d97add344c664 | 0f428d45c84693770158ea9733aca44fa3d4001f | /AGP2015 BaseCode VS2015/Skybox.cpp | 65b45b2ea213af41466cea6172402beb0a0e7791 | [] | no_license | UWSScott/Lomnia-GitHub | c6896189f1a868a54bd49c9a2d38ec979588bd5b | 5eaf996b6cb9cc2e622d3036bdca97a7e96cb2aa | refs/heads/master | 2021-01-10T15:25:04.146985 | 2016-05-05T22:50:40 | 2016-05-05T22:50:40 | 52,366,391 | 0 | 0 | null | 2016-04-12T15:48:14 | 2016-02-23T14:52:34 | C++ | UTF-8 | C++ | false | false | 6,222 | cpp | Skybox.cpp | #include "Skybox.h"
GLuint loadCubeMapTex(const char *fname[6], GLuint *texID)
{
glGenTextures(1, texID); // generate texture ID
GLenum sides[6] = { GL_TEXTURE_CUBE_MAP_POSITIVE_Z,
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,
GL_TEXTURE_CUBE_MAP_POSITIVE_X,
GL_TEXTURE_CUBE_MAP_NEGATIVE_X,
GL_TEXTURE_CUBE_MAP_POSITIVE_Y,... |
89827a87afcd5e31577742001f6c430074241222 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /0701-0800/0764-Largest Plus Sign/0764-Largest Plus Sign.cpp | 8b4609dd8e56d468ce5ac52f61243a093d174bcd | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | C++ | false | false | 1,343 | cpp | 0764-Largest Plus Sign.cpp | class Solution {
public:
int orderOfLargestPlusSign(int N, vector<vector<int>>& mines) {
vector<vector<int>> grid(N, vector<int>(N, 1));
for (auto mine : mines) {
grid[mine[0]][mine[1]] = 0;
}
int rowHits = 0;
int colStart = 0;
vector<int> colHits... |
aec8efd63625d309e2a21a7973952b7156d7a019 | 9a2c6a663c65e34e82defdeed69076849f868cff | /constant/HCNO_table | 21dc4f0332c2ab57fde341e17069d1f697d397e0 | [] | no_license | hong27/flameletfoamrastestcase | 940bd5d90d7cf051cb7ea829a108d9ebcf680756 | 5ba874439fee1d75dd903edc9db927bd0a6de6d1 | refs/heads/master | 2021-01-15T07:10:32.088581 | 2020-02-25T04:38:55 | 2020-02-25T04:38:55 | 242,910,749 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173,361 | HCNO_table | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.x |
... | |
1f8037c2fc1f75ac73ddd1da48d12e55caf68c7d | cfa27073eadacfb581a0ce09d391272e2d764fc3 | /src/archon/display/demo/image_viewer.cpp | 51c23c215633abdebfec326813b5c06f7f116683 | [] | no_license | kspangsege/archon | e1b5cd2413cef95782ee8c8185be0086289fa318 | d8c323efd2d7914cc96d832a070f31168c4b847b | refs/heads/master | 2023-09-01T02:58:03.071535 | 2023-08-31T18:15:41 | 2023-08-31T19:50:37 | 15,814,007 | 2 | 0 | null | 2023-09-13T10:16:58 | 2014-01-11T00:41:43 | C++ | UTF-8 | C++ | false | false | 7,036 | cpp | image_viewer.cpp | // This file is part of the Archon project, a suite of C++ libraries.
//
// Copyright (C) 2022 Kristian Spangsege <kristian.spangsege@gmail.com>
//
// 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 Soft... |
a6e065f29cba8889e9863c9b30898d495000827c | ad55c8279900c3a70418ee166b03840ef75e1461 | /Player.h | 4cea95bf5fc223fd5dd71d607ea51ea3517bebfd | [] | no_license | FRDTrue/BNB-TuringTeam | 61f1eda5c0f4620d0b37379c8190e1043e459ad5 | bd423621bd49aa814401f8ffdac94b89bbf38e2e | refs/heads/master | 2023-07-08T03:27:37.145824 | 2017-08-18T04:56:16 | 2017-08-18T04:56:16 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,843 | h | Player.h | #ifndef CPLAYER_H_
#define CPLAYER_H_
#include "Sys.h"
#include "GameMap.h"
#include "Bubble.h"
#include "PlaySound.h"
#include "GameProps.h"
enum Player_Status {BEGIN, MOVE, DIE};
enum Direction { UP, DOWN, LEFT, RIGHT };
class CPlayer
{
public:
CPlayer();
virtual ~CPlayer();
public:
virtual void PlayerInit(HINST... |
013e36ef0fceff1cddcf63eb7e70b7d897991f88 | c5422eb23f49eadf2ad3147edcd4f8da40eb14db | /aos/a3/rpc/gen-cpp/base_constants.h | e572250ece42675c4c5f0e8dae58f05e1b6e7144 | [] | no_license | rbs11/spring14 | f497a5845cc78a35398b3352f77e5289f3e69b32 | dcbef931ea0107debc74bd4edc20809cf1c18b1d | refs/heads/master | 2021-01-23T08:24:12.539484 | 2014-10-12T09:39:06 | 2014-10-12T09:39:06 | 25,114,396 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 355 | h | base_constants.h | /**
* Autogenerated by Thrift Compiler (0.9.1)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#ifndef base_CONSTANTS_H
#define base_CONSTANTS_H
#include "base_types.h"
namespace Rpc {
class baseConstants {
public:
baseConstants();
};
extern const baseConstants g_base_... |
0045f78c0d309cc09ca5bf44b107d2b46c1c6993 | d0db3a0ffb52297351805a734d5b549822fdf2ab | /dictionary-md/IncurableDisease.cpp | 7d4d668faf51cf955a904828102413ec03f4eacb | [] | no_license | Vearol/dictionary-m.d. | 1fa30daaf66f4ce8f81a6ef41171efd0a4132aff | 864aa3d7ab7122c21f5dade601c9a396a61c9072 | refs/heads/master | 2020-05-20T12:14:10.126700 | 2016-12-15T09:06:34 | 2016-12-15T09:06:34 | 69,492,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 138 | cpp | IncurableDisease.cpp | #include "IncurableDisease.h"
IncurableDisease::IncurableDisease()
{
}
bool IncurableDisease::getCurability()
{
return curable;
}
|
931a62645fe176677516e8872163c558131b4d19 | 2a6d385c7737aea3c6b49eef9252babb7557b909 | /SHNtupliser/interface/SHCaloTowerContainer.hh | 411647f9518ee6f4be379c2e2185a37d82a4408f | [] | no_license | Sam-Harper/usercode | 1b302a4b647e479d27a9501f9576bd04b07e111a | fa43427fac80d773978ea67b78be58d264f39ec8 | refs/heads/120XNtup | 2022-08-26T12:59:53.388853 | 2022-07-12T16:52:46 | 2022-07-12T16:52:46 | 15,675,175 | 1 | 11 | null | 2022-07-21T13:27:57 | 2014-01-06T13:54:22 | Python | UTF-8 | C++ | false | false | 1,435 | hh | SHCaloTowerContainer.hh | #ifndef SHCALOTOWERCONTAINER
#define SHCALOTOWERCONTAINER
#include "SHarper/SHNtupliser/interface/SHCaloTower.hh"
#include "TClonesArray.h"
#include <vector>
#include <iostream>
class SHCaloTowerContainer {
private:
TClonesArray caloTowerArray_;
mutable std::vector<int> towerIndxTable_; //! transient all... |
02417e4e12fd7f2f5c074b103ee277b0467078b9 | 6654535ba5ce583d20d3fdfe7cea2e8cda0261ca | /cf/1156C.cpp | 85d4560ad0f5822a72495e5b8cf57074ae67cea4 | [] | no_license | qwerty22121998/acm | 92d907485d85845a8fc3f4c8c474fc495bbf11a4 | 72553e68d1f12a39fa803caa9f3fc90ca10b7be9 | refs/heads/master | 2022-01-13T05:11:20.845535 | 2019-05-17T07:44:37 | 2019-05-17T07:44:37 | 112,994,340 | 0 | 1 | null | 2018-10-10T14:35:56 | 2017-12-04T04:25:47 | C++ | UTF-8 | C++ | false | false | 585 | cpp | 1156C.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
vector<ll> a;
int n;
ll z;
multiset<ll> m;
void solve() {
for (auto e : a) m.insert(e);
int res = 0;
while (m.size()) {
ll now = *m.begin();
m.erase(m.begin());
auto it = m.lower_bound(no... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.