hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3da1ed6ca101bd811623e8f9480527f1509ef6c6 | 3,777 | cpp | C++ | src/Library/Geometry/TriangleMeshLoaderBezier.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | 1 | 2018-12-20T19:31:02.000Z | 2018-12-20T19:31:02.000Z | src/Library/Geometry/TriangleMeshLoaderBezier.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | src/Library/Geometry/TriangleMeshLoaderBezier.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////
//
// TriangleMeshLoaderBezier.cpp - Implementation of the bezier mesh
// loader
//
// Author: Aravind Krishnaswamy
// Date of Birth: August 7, 2002
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
/... | 27.977778 | 144 | 0.684141 | aravindkrishnaswamy |
3dac70154b3cf3642d5b6cde7005fdae00c73bbc | 24,055 | cpp | C++ | glib-adv/aest.cpp | ksemer/snap | 0084126c30ad49a4437bc8ea30be78484f8c58d7 | [
"BSD-3-Clause"
] | 1,805 | 2015-01-06T20:01:35.000Z | 2022-03-29T16:12:51.000Z | glib-adv/aest.cpp | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 168 | 2015-01-07T22:57:29.000Z | 2022-03-15T01:20:24.000Z | glib-adv/aest.cpp | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 768 | 2015-01-09T02:28:45.000Z | 2022-03-30T00:53:46.000Z | /////////////////////////////////////////////////
// Attribute-Estimator
PAttrEst TAttrEst::Load(TSIn& SIn){
TStr TypeNm(SIn);
if (TypeNm==TTypeNm<TAttrEstRnd>()){return new TAttrEstRnd(SIn);}
else if (TypeNm==TTypeNm<TAttrEstIGain>()){return new TAttrEstIGain(SIn);}
else if (TypeNm==TTypeNm<TAttrEstIGain... | 41.331615 | 105 | 0.665849 | ksemer |
3dac85c8bafbc7d9a7802659675a8a65a627d769 | 743 | hh | C++ | gem5/src/mem/ruby/network/booksim2/rptrafficmanager.hh | jyhuang91/flyover | 952a0fffee952c9f88b93017b6bba65a84d562cb | [
"MIT"
] | 3 | 2020-11-01T08:23:10.000Z | 2021-12-21T02:53:36.000Z | gem5/src/mem/ruby/network/booksim2/rptrafficmanager.hh | jyhuang91/flyover | 952a0fffee952c9f88b93017b6bba65a84d562cb | [
"MIT"
] | null | null | null | gem5/src/mem/ruby/network/booksim2/rptrafficmanager.hh | jyhuang91/flyover | 952a0fffee952c9f88b93017b6bba65a84d562cb | [
"MIT"
] | 1 | 2020-12-07T00:57:30.000Z | 2020-12-07T00:57:30.000Z | /*
* rptrafficmanager.hh
* - A traffic manager for Router Parking
*
* Author: Jiayi Huang
*/
#ifndef _RPTRAFFICMANAGER_HPP_
#define _RPTRAFFICMANAGER_HPP_
#include <cassert>
#include "mem/ruby/network/booksim2/trafficmanager.hh"
class RPTrafficManager : public TrafficManager {
private:
vector<vector<int> >... | 19.051282 | 83 | 0.713324 | jyhuang91 |
3dadd9169507170884588ae2e6e56af05806cd41 | 3,213 | cpp | C++ | problems/kickstart/2021/E/palindromic-crossword/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/kickstart/2021/E/palindromic-crossword/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/kickstart/2021/E/palindromic-crossword/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#ifdef LOCAL
#include "code/formatting.hpp"
#else
#define debug(...) (void)0
#endif
using namespace std;
static_assert(sizeof(int) == 4 && sizeof(long) == 8);
struct disjoint_set {
int N, S;
vector<int> next, size;
explicit disjoint_set(int N = 0) : N(N), S(N), next(N), size(N, 1... | 23.452555 | 72 | 0.347028 | brunodccarvalho |
3db11026f8a1ee573b6de54f080be4cc6a948a9f | 5,028 | hpp | C++ | src/Input.hpp | mechanicsfoundry/raytracinginoneweekend-glsl | 515905135456fe263be9bc13b708222c28827a4d | [
"MIT"
] | 4 | 2021-03-01T13:33:30.000Z | 2021-03-14T20:05:00.000Z | src/Input.hpp | mechanicsfoundry/raytracinginoneweekend-glsl | 515905135456fe263be9bc13b708222c28827a4d | [
"MIT"
] | null | null | null | src/Input.hpp | mechanicsfoundry/raytracinginoneweekend-glsl | 515905135456fe263be9bc13b708222c28827a4d | [
"MIT"
] | null | null | null | #pragma once
enum class DPadDirection
{
UP,
DOWN,
LEFT,
RIGHT
};
// these are matched to SDL key map scancodes
enum class Scancode
{
S_UNKNOWN = 0,
S_A = 4,
S_B = 5,
S_C = 6,
S_D = 7,
S_E = 8,
S_F = 9,
S_G = 10,
S_H = 11,
S_I = 12,
S_J = 13,
S_K = 14,
... | 19.413127 | 45 | 0.552506 | mechanicsfoundry |
3db1981084b1813f6fd4be3eb695e9820fb1ef9e | 507 | cpp | C++ | utils/src/drawing/Point.cpp | AleksievAleksandar/Chess | 4dd9e27ddf3302aa959d3a8854d3bc5fcb970dde | [
"MIT"
] | null | null | null | utils/src/drawing/Point.cpp | AleksievAleksandar/Chess | 4dd9e27ddf3302aa959d3a8854d3bc5fcb970dde | [
"MIT"
] | null | null | null | utils/src/drawing/Point.cpp | AleksievAleksandar/Chess | 4dd9e27ddf3302aa959d3a8854d3bc5fcb970dde | [
"MIT"
] | null | null | null | //Coresponding header
#include "utils/drawing/Point.h"
//C system includes
//C++ system includes
//Thitrd-party includes
//Own includes
//Forward Declarations
const Point Point::ZERO(0, 0);
const Point Point::UNDEFINED(1000, 1000);
Point::Point(int32_t inputX, int32_t inputY) :
x(inputX), y(inputY)
{}
bool P... | 15.363636 | 55 | 0.674556 | AleksievAleksandar |
3db374f94ab913c1d8f1e0148d5847f4bf406d94 | 1,961 | cpp | C++ | NatureUserInterfaceApp/GUI/NuiPangoPolygonMeshShader.cpp | hustztz/NatureUserInterfaceStudio | 3cdac6b6ee850c5c8470fa5f1554c7447be0d8af | [
"MIT"
] | 3 | 2016-07-14T13:04:35.000Z | 2017-04-01T09:58:27.000Z | NatureUserInterfaceApp/GUI/NuiPangoPolygonMeshShader.cpp | hustztz/NatureUserInterfaceStudio | 3cdac6b6ee850c5c8470fa5f1554c7447be0d8af | [
"MIT"
] | null | null | null | NatureUserInterfaceApp/GUI/NuiPangoPolygonMeshShader.cpp | hustztz/NatureUserInterfaceStudio | 3cdac6b6ee850c5c8470fa5f1554c7447be0d8af | [
"MIT"
] | 1 | 2021-11-21T15:33:35.000Z | 2021-11-21T15:33:35.000Z | #include "NuiPangoPolygonMeshShader.h"
#include "Shape\NuiPolygonMesh.h"
NuiPangoPolygonMeshShader::NuiPangoPolygonMeshShader()
: m_numTriangles(0)
{
glGenBuffers(1, &m_vbo);
glGenBuffers(1, &m_ibo);
}
NuiPangoPolygonMeshShader::~NuiPangoPolygonMeshShader()
{
uninitializeBuffers();
}
bool NuiPangoPolygonMeshSha... | 26.146667 | 113 | 0.782764 | hustztz |
3db437c0abe19da4bb1dadb1d6c2e45b4ee1a2bc | 3,235 | cpp | C++ | src/bindings.cpp | joshuarrrrr/wand | b53bb4880714bf39ce9c6e3f903d0f1edcaf8047 | [
"MIT"
] | null | null | null | src/bindings.cpp | joshuarrrrr/wand | b53bb4880714bf39ce9c6e3f903d0f1edcaf8047 | [
"MIT"
] | null | null | null | src/bindings.cpp | joshuarrrrr/wand | b53bb4880714bf39ce9c6e3f903d0f1edcaf8047 | [
"MIT"
] | null | null | null | #include <pybind11/pybind11.h>
#include <pybind11/chrono.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h>
#include <string>
#include <multitouch_device.hpp>
#include <touch_point.hpp>
namespace py = pybind11;
using namespace wand;
PYBIND11_MODULE(wand, m) {
m.doc() = "";
py::class_<TouchPoint, std::s... | 46.884058 | 118 | 0.622875 | joshuarrrrr |
3db73ec1c3b65834ef9d175708b430a03d76ff31 | 12,569 | cpp | C++ | ThirdParty/JSBSim/include/math/FGLocation.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | 1 | 2022-02-03T08:29:35.000Z | 2022-02-03T08:29:35.000Z | ThirdParty/JSBSim/include/math/FGLocation.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | null | null | null | ThirdParty/JSBSim/include/math/FGLocation.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | null | null | null | /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Module: FGLocation.cpp
Author: Jon S. Berndt
Date started: 04/04/2004
Purpose: Store an arbitrary location on the globe
------- Copyright (C) 1999 Jon S. Berndt (jon@jsbsim.org) ------------------
------- ... | 28.565909 | 89 | 0.557403 | Lynnvon |
3dbc6b4a4e76a80b1006d2832fe4f8eb1fc8cd74 | 667 | cpp | C++ | tests/all.cpp | robclu/wrench | 8fff96c35b4d2ff351edd8ec2b7ce0d03343bda7 | [
"MIT"
] | null | null | null | tests/all.cpp | robclu/wrench | 8fff96c35b4d2ff351edd8ec2b7ce0d03343bda7 | [
"MIT"
] | null | null | null | tests/all.cpp | robclu/wrench | 8fff96c35b4d2ff351edd8ec2b7ce0d03343bda7 | [
"MIT"
] | null | null | null | //==--- wrench/tests/all.cpp ------------------------------- -*- C++ -*- ---==//
//
// Wrench
//
// Copyright (c) 2020 Rob Clucas.
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//==------------------------------------------------... | 30.318182 | 80 | 0.4003 | robclu |
3dbd2980368ebc42b00ccbf542aa0777d2c7b032 | 2,137 | cc | C++ | fides/mock_settings_document.cc | cschuet/fides | c31ad020f213f859ddeb7a7be558e7769a501044 | [
"FSFAP"
] | 2 | 2018-07-27T00:29:35.000Z | 2018-07-29T14:44:59.000Z | fides/mock_settings_document.cc | cschuet/fides | c31ad020f213f859ddeb7a7be558e7769a501044 | [
"FSFAP"
] | null | null | null | fides/mock_settings_document.cc | cschuet/fides | c31ad020f213f859ddeb7a7be558e7769a501044 | [
"FSFAP"
] | null | null | null | // Copyright 2015 The Chromium OS 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 "fides/mock_settings_document.h"
#include "fides/identifier_utils.h"
namespace fides {
MockSettingsDocument::MockSettingsDocument(const Ver... | 27.753247 | 77 | 0.750585 | cschuet |
3dbdc45ea055ecc6fc7cf67d92f3a5c3fad796cc | 3,509 | cpp | C++ | EngCode/SOHTA engine/Graphics.cpp | AthosMatos/ATHOS-Engine | 24b09042cd8d661ac70d0f6b302a8b129a843fbd | [
"MIT"
] | null | null | null | EngCode/SOHTA engine/Graphics.cpp | AthosMatos/ATHOS-Engine | 24b09042cd8d661ac70d0f6b302a8b129a843fbd | [
"MIT"
] | null | null | null | EngCode/SOHTA engine/Graphics.cpp | AthosMatos/ATHOS-Engine | 24b09042cd8d661ac70d0f6b302a8b129a843fbd | [
"MIT"
] | null | null | null | #include "Graphics.h"
#include <string.h>
void Graphics::init(HWND hwnd)
{
cout << "GRAPHICS STARTED\n";
d3d = new D3D;
d2d = new D2D;
RQ2D = new RenderQueue_2D;
fistscene = new StdScene;
d3d->InitD3D(hwnd);
InitSharedScreen(d3d->Adapter);
d2d->InitD2D(sharedSurface10);
d2d->Updat... | 30.513043 | 124 | 0.647763 | AthosMatos |
3dc6dd6bd96bf2220ffed2970168c76685ac3ccd | 1,263 | cpp | C++ | c11httpd/worker_pool.cpp | toalexjin/c11httpd | 6774d96c72d60ad8c371a6d846744a9ccc98d7ee | [
"MIT"
] | null | null | null | c11httpd/worker_pool.cpp | toalexjin/c11httpd | 6774d96c72d60ad8c371a6d846744a9ccc98d7ee | [
"MIT"
] | null | null | null | c11httpd/worker_pool.cpp | toalexjin/c11httpd | 6774d96c72d60ad8c371a6d846744a9ccc98d7ee | [
"MIT"
] | null | null | null | /**
* Process worker pool.
*
* Copyright (c) 2015 Alex Jin (toalexjin@hotmail.com)
*/
#include "c11httpd/worker_pool.h"
#include <signal.h>
namespace c11httpd {
err_t worker_pool_t::create(int number) {
if (!this->m_main_process) {
return err_t();
}
for (int i = 0; i < number; ++i) {
const auto pid = f... | 15.592593 | 79 | 0.618369 | toalexjin |
3dcc020c864f9a41ba0be26926ad485193f0f698 | 2,958 | hpp | C++ | include/CppML/Functional/Bind.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 48 | 2019-05-14T10:07:08.000Z | 2021-04-08T08:26:20.000Z | include/CppML/Functional/Bind.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | null | null | null | include/CppML/Functional/Bind.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 4 | 2019-11-18T15:35:32.000Z | 2021-12-02T05:23:04.000Z | /**
* Copyright Žiga Sajovic, XLAB 2019
* Distributed under the MIT License
*
* https://github.com/ZigaSajovic/CppML
**/
#ifndef CPPML_BIND_HPP
#define CPPML_BIND_HPP
#include "../Pack/Insert.hpp"
#include "./Compose.hpp"
#include "./Partial.hpp"
namespace ml {
/*
* # Par:
* Is a parameter holder for ml::Bind.
... | 34.395349 | 74 | 0.647059 | changjurhee |
3dd3c37f0f0095ce5a16fc2bbd023478f50d6855 | 14,921 | hpp | C++ | kaluun/parser.hpp | dimitarm/kaluun | 1fd73fafcc2853f9cd2cebbc08dafef93e17ea28 | [
"MIT"
] | 2 | 2016-09-09T10:36:20.000Z | 2017-08-14T02:41:43.000Z | kaluun/parser.hpp | dimitarm/kaluun | 1fd73fafcc2853f9cd2cebbc08dafef93e17ea28 | [
"MIT"
] | null | null | null | kaluun/parser.hpp | dimitarm/kaluun | 1fd73fafcc2853f9cd2cebbc08dafef93e17ea28 | [
"MIT"
] | null | null | null | /*
* parser.hpp
*
* Created on: Jun 23, 2015
* Author: dimitar
*/
#include "template.hpp"
#include <ostream>
#include <sstream>
#include <utility>
#include <tuple>
#include <typeinfo>
#include <vector>
#include <algorithm>
#include <boost/range.hpp>
#include <boost/range/algorithm/find.hpp>
#include <boost/... | 36.392683 | 170 | 0.66765 | dimitarm |
3dd4ca477e3afdbe065a75f914787087cabd4fcd | 5,036 | hpp | C++ | engine/src/main_check.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 20 | 2020-07-07T18:28:35.000Z | 2022-03-21T04:35:28.000Z | engine/src/main_check.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 46 | 2021-01-20T10:13:09.000Z | 2022-03-29T12:27:19.000Z | engine/src/main_check.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 12 | 2021-01-25T08:01:24.000Z | 2021-07-27T10:09:53.000Z | /*
* Copyright 2020 Robert Bosch GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 28.292135 | 98 | 0.623114 | Sidharth-S-S |
3dd4d9409d3676ff423e59449739cdc779baf087 | 2,198 | cpp | C++ | contact/contact.cpp | anantja-in/usaco | 1b680b40cfba18fa4dadf031c39dff3f0f2b7c30 | [
"MIT"
] | null | null | null | contact/contact.cpp | anantja-in/usaco | 1b680b40cfba18fa4dadf031c39dff3f0f2b7c30 | [
"MIT"
] | null | null | null | contact/contact.cpp | anantja-in/usaco | 1b680b40cfba18fa4dadf031c39dff3f0f2b7c30 | [
"MIT"
] | null | null | null | /*
ID: anant901
PROG: contact
LANG: C++
*/
#include <iostream>
#include <fstream>
#include <string>
#include <map>
#include <utility>
#include <vector>
#include <algorithm>
using namespace std;
int compare(pair<int, string>& a, pair<int,string>& b){
return a.first > b.first;
}
int val(string a){
int res = 0;
int p... | 19.113043 | 91 | 0.568699 | anantja-in |
3ddac18b8dea1f584d40151ca4efb8bad8b28d0b | 5,812 | hpp | C++ | src/gui/logind_session_lnx.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/gui/logind_session_lnx.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/gui/logind_session_lnx.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// \file
///
/// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <info@cososys.com>\n
/// Licensed under the Apache License, Version 2.0 (the "License");\n
/// you may not use this file e... | 37.986928 | 180 | 0.682725 | CoSoSys |
3ddbaa2d7749a946d533e6e07fa4456bdf001396 | 234 | cpp | C++ | Engine/Source/Color.cpp | Denisdrk6/ProjectIII | 89634bcf4a3520ba78158dff50aee568089968cb | [
"MIT"
] | 7 | 2022-02-16T12:09:19.000Z | 2022-03-14T15:59:48.000Z | Engine/Source/Color.cpp | Denisdrk6/Dune-Fremen-s-Rising | 89634bcf4a3520ba78158dff50aee568089968cb | [
"MIT"
] | 1 | 2022-03-18T19:46:23.000Z | 2022-03-18T19:46:23.000Z | Engine/Source/Color.cpp | Denisdrk6/Dune-Fremen-s-Rising | 89634bcf4a3520ba78158dff50aee568089968cb | [
"MIT"
] | 1 | 2022-02-20T19:49:09.000Z | 2022-02-20T19:49:09.000Z | #include "Color.h"
#include "Profiling.h"
Color red = Color(1.0f, 0.0f, 0.0f);
Color green = Color(0.0f, 1.0f, 0.0f);
Color blue = Color(0.0f, 0.0f, 1.0f);
Color black = Color(0.0f, 0.0f, 0.0f);
Color white = Color(1.0f, 1.0f, 1.0f); | 29.25 | 38 | 0.628205 | Denisdrk6 |
3de170da2c63cee6ebe2b839d9a4196efaa7e167 | 1,336 | hpp | C++ | include/blokus/ai/logic.hpp | sunfl0w/CPP_HokusBlokus | aedb8d42143cce9fe2b7107ce4f6d15ef76dc58c | [
"MIT"
] | 1 | 2020-09-04T16:35:38.000Z | 2020-09-04T16:35:38.000Z | include/blokus/ai/logic.hpp | sunfl0w/CPP_HokusBlokus | aedb8d42143cce9fe2b7107ce4f6d15ef76dc58c | [
"MIT"
] | null | null | null | include/blokus/ai/logic.hpp | sunfl0w/CPP_HokusBlokus | aedb8d42143cce9fe2b7107ce4f6d15ef76dc58c | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <random>
#include <iostream>
#include "gameState.hpp"
#include "move.hpp"
#include "player.hpp"
#include "color.hpp"
#include "logger.hpp"
namespace HokusBlokus::Blokus::AI {
/**
* @brief This class defines some virtual methods for creating AIs for the game of Blokus.... | 27.265306 | 120 | 0.589072 | sunfl0w |
3de67ac7a4b63b7c9d67d2d2ac6d85223f0a8b12 | 53,170 | cpp | C++ | src/core/blocks/chains.cpp | fragcolor-xyz/chainblocks | bf83f8dc8f46637bc42713d1fa77e81228ddfccf | [
"BSD-3-Clause"
] | 12 | 2021-07-11T11:14:14.000Z | 2022-03-28T11:37:29.000Z | src/core/blocks/chains.cpp | fragcolor-xyz/chainblocks | bf83f8dc8f46637bc42713d1fa77e81228ddfccf | [
"BSD-3-Clause"
] | 103 | 2021-06-26T17:09:43.000Z | 2022-03-30T12:05:18.000Z | src/core/blocks/chains.cpp | fragcolor-xyz/chainblocks | bf83f8dc8f46637bc42713d1fa77e81228ddfccf | [
"BSD-3-Clause"
] | 8 | 2021-07-27T14:45:26.000Z | 2022-03-01T08:07:18.000Z | /* SPDX-License-Identifier: BSD-3-Clause */
/* Copyright © 2019 Fragcolor Pte. Ltd. */
#include "foundation.hpp"
#include "shared.hpp"
#include <chrono>
#include <memory>
#include <set>
#if !defined(__EMSCRIPTEN__) || defined(__EMSCRIPTEN_PTHREADS__)
#include <taskflow/taskflow.hpp>
#endif
namespace chainblocks {
enu... | 29.391929 | 80 | 0.602276 | fragcolor-xyz |
3de6fdd38554b4043a8a064ba5229b2c48b65f20 | 3,549 | hpp | C++ | Source/Common/Context.hpp | gunstarpl/Perim-Game-07-2015 | 58efdee1857f5cccad909d5c2a76f2d6871657e6 | [
"Unlicense",
"MIT"
] | null | null | null | Source/Common/Context.hpp | gunstarpl/Perim-Game-07-2015 | 58efdee1857f5cccad909d5c2a76f2d6871657e6 | [
"Unlicense",
"MIT"
] | null | null | null | Source/Common/Context.hpp | gunstarpl/Perim-Game-07-2015 | 58efdee1857f5cccad909d5c2a76f2d6871657e6 | [
"Unlicense",
"MIT"
] | null | null | null | #pragma once
#include "Precompiled.hpp"
//
// Context
//
// Conveniently holds pointers to instances of different types.
// Use when you have to pass a non trivial number of references as a single argument.
//
class Context
{
public:
// Type declarations.
typedef std::pair<std::type_index, void*> InstanceP... | 22.75 | 102 | 0.554804 | gunstarpl |
3de704a700d839d5f6b20357eda6a3740fc4021e | 4,675 | cpp | C++ | Libraries/graphics/Tests/test_PixelFormat.cpp | djgalloway/xcbuild | 936df10e59e5f5d531efca8bd48e445d88e78e0c | [
"BSD-2-Clause-NetBSD"
] | 9 | 2018-04-30T23:18:27.000Z | 2021-06-20T15:13:38.000Z | Libraries/graphics/Tests/test_PixelFormat.cpp | djgalloway/xcbuild | 936df10e59e5f5d531efca8bd48e445d88e78e0c | [
"BSD-2-Clause-NetBSD"
] | null | null | null | Libraries/graphics/Tests/test_PixelFormat.cpp | djgalloway/xcbuild | 936df10e59e5f5d531efca8bd48e445d88e78e0c | [
"BSD-2-Clause-NetBSD"
] | 4 | 2018-10-10T19:44:17.000Z | 2020-01-12T11:56:31.000Z | /**
Copyright (c) 2015-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
*/
#include <gtest/gtest.... | 46.287129 | 137 | 0.706952 | djgalloway |
3de76419cd60453f8a99d7b4a59f72ef8da81325 | 3,597 | cpp | C++ | chapter6/Base.cpp | zzq1996/OJ | 359d0ad532732092a5afe5995312b12e8da74953 | [
"Apache-2.0"
] | null | null | null | chapter6/Base.cpp | zzq1996/OJ | 359d0ad532732092a5afe5995312b12e8da74953 | [
"Apache-2.0"
] | null | null | null | chapter6/Base.cpp | zzq1996/OJ | 359d0ad532732092a5afe5995312b12e8da74953 | [
"Apache-2.0"
] | null | null | null | /**
* @Author : zhang
* @create 2022/3/1 19:56
*/
#include "Base.h"
#include "iostream"
#include "vector"
using namespace std;
/*
* @Description 十进制整数转二进制
* 方法:除2取余,逆序排序
*/
void Base::f6_1() {
unsigned int n=0;
while (cin>>n){
if(n==0){
break;
}else{
vector<int> ... | 17.632353 | 56 | 0.48179 | zzq1996 |
3de7fde1b18eda98ac3b0ca94181b6a68699e670 | 2,916 | cpp | C++ | p4c_bm/templates/src/pd_counters.cpp | krambn/p4c-bm | e6be2c76f4568d5e01f62a8955ce2839d2fa0b36 | [
"Apache-2.0"
] | null | null | null | p4c_bm/templates/src/pd_counters.cpp | krambn/p4c-bm | e6be2c76f4568d5e01f62a8955ce2839d2fa0b36 | [
"Apache-2.0"
] | null | null | null | p4c_bm/templates/src/pd_counters.cpp | krambn/p4c-bm | e6be2c76f4568d5e01f62a8955ce2839d2fa0b36 | [
"Apache-2.0"
] | 6 | 2019-09-17T13:52:51.000Z | 2022-03-03T06:51:31.000Z | /* Copyright 2013-present Barefoot Networks, 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 la... | 25.356522 | 75 | 0.665295 | krambn |
3df1534cd72d4c9bd9a355c602e7d34e307a79fb | 8,097 | inl | C++ | SoftRP/ArrayAllocatorImpl.inl | loreStefani/SoftRP | 2676145f74c734b272268820b1e1c503aa8ff765 | [
"MIT"
] | null | null | null | SoftRP/ArrayAllocatorImpl.inl | loreStefani/SoftRP | 2676145f74c734b272268820b1e1c503aa8ff765 | [
"MIT"
] | null | null | null | SoftRP/ArrayAllocatorImpl.inl | loreStefani/SoftRP | 2676145f74c734b272268820b1e1c503aa8ff765 | [
"MIT"
] | null | null | null | #ifndef SOFTRP_ARRAY_ALLOCATOR_IMPL_INL_
#define SOFTRP_ARRAY_ALLOCATOR_IMPL_INL_
#include "ArrayAllocator.h"
#include <utility>
#include <cassert>
namespace SoftRP {
/* ArrayAllocator implementation */
template<typename T, typename AllocationDesc, typename ArrayAllocationDesc>
inline ArrayAllocator<T, AllocationD... | 31.628906 | 152 | 0.742003 | loreStefani |
ad0573882fe9cb2c61661fd4dfc0449f6af0996c | 1,486 | cpp | C++ | src/dll/Handler.cpp | Mathieu-Lala/unamed00 | e9a7bc3f2c0c791d719c1f3f68f23c2734f70f10 | [
"MIT"
] | 5 | 2020-02-23T13:48:42.000Z | 2020-04-12T17:43:12.000Z | src/dll/Handler.cpp | Mathieu-Lala/unamed00 | e9a7bc3f2c0c791d719c1f3f68f23c2734f70f10 | [
"MIT"
] | null | null | null | src/dll/Handler.cpp | Mathieu-Lala/unamed00 | e9a7bc3f2c0c791d719c1f3f68f23c2734f70f10 | [
"MIT"
] | null | null | null | /**
* @file src/dll/Handler.cpp
*
*/
#include <utility>
#include "dll/Handler.hpp"
dll::Handler::Handler() noexcept :
m_handler (EMPTY)
{ }
dll::Handler::Handler(Handler &&o) noexcept :
m_handler (std::exchange(o.m_handler, EMPTY)),
m_libpath (std::move(o.m_libpath))
{ }
dll::Handler &dll::Hand... | 19.051282 | 67 | 0.62786 | Mathieu-Lala |
ad105cce07ac486786a156bf00bdcebbe804aa66 | 1,610 | cpp | C++ | LeetCode/ThousandOne/0394-decode_string.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0394-decode_string.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0394-decode_string.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 394. 字符串解码
给定一个经过编码的字符串,返回它解码后的字符串。
编码规则为: k[encoded_string],表示其中方括号内部的 encoded_string 正好重复 k 次。
注意 k 保证为正整数。
你可以认为输入字符串总是有效的;
输入字符串中没有额外的空格,且输入的方括号总是符合格式要求的。
此外,你可以认为原始数据不包含数字,所有的数字只表示重复的次数 k。
例如不会出现像 3a 或 2[4] 的输入。
示例:
s = "3[a]2[bc]", 返回 "aaabcbc".
s = "3[a2[c]]", 返回 "accaccacc".
s =... | 18.089888 | 60 | 0.526087 | Ginkgo-Biloba |
ad10652207b6a8e6dbe40723e9792d48315ad841 | 5,141 | hpp | C++ | mcdc/Include/parser.hpp | yadaniel/MCDC | 6ca4475d813ddd19741f38f8f91c9dd477ebe4dd | [
"BSD-3-Clause"
] | 16 | 2020-04-23T09:18:07.000Z | 2022-02-06T11:14:22.000Z | mcdc/Include/parser.hpp | yadaniel/MCDC | 6ca4475d813ddd19741f38f8f91c9dd477ebe4dd | [
"BSD-3-Clause"
] | 1 | 2021-12-01T15:42:30.000Z | 2021-12-01T15:42:30.000Z | mcdc/Include/parser.hpp | yadaniel/MCDC | 6ca4475d813ddd19741f38f8f91c9dd477ebe4dd | [
"BSD-3-Clause"
] | 10 | 2019-11-15T22:14:05.000Z | 2021-08-02T09:04:28.000Z | // --------------------------------------------------------------------------------------------------------------------------------
// License: BSD-3-Clause
// --------------------------------------------------------------------------------------------------------------------------------
//
// Copyright 2019 Armin... | 43.940171 | 223 | 0.682163 | yadaniel |
ad11dd5be153140c3c4eaa023dc8c6a12e2bd6e7 | 3,367 | cpp | C++ | Engine/src/shader.cpp | scilus/dmri-explorer | f23a9bf1af0ec41ef1f7b126bec237b6add542fb | [
"MIT"
] | 1 | 2021-10-01T16:28:38.000Z | 2021-10-01T16:28:38.000Z | Engine/src/shader.cpp | scilus/dmri-explorer | f23a9bf1af0ec41ef1f7b126bec237b6add542fb | [
"MIT"
] | 12 | 2021-09-16T20:01:24.000Z | 2022-03-24T00:24:17.000Z | Engine/src/shader.cpp | scilus/dmri-explorer | f23a9bf1af0ec41ef1f7b126bec237b6add542fb | [
"MIT"
] | 3 | 2021-09-16T19:06:18.000Z | 2022-02-17T19:49:05.000Z | #include "shader.h"
#include "utils.hpp"
#include <algorithm>
#include <cstring>
namespace
{
const int NUM_SHADER_INCLUDES = 3;
const char* SHADER_INCLUDE_PATHS[NUM_SHADER_INCLUDES] = {
"/include/camera_util.glsl",
"/include/orthogrid_util.glsl",
"/include/shfield_util.glsl"
};
}
namespace Slicer
{
names... | 31.46729 | 99 | 0.702703 | scilus |
ad1c520897b33c1ff46e05cfb8905dd4051d53ba | 361 | hpp | C++ | Helios/src/Input.hpp | rgracari/helio_test | 2d516d16da4252c8f92f5c265b6151c6e87bc907 | [
"Apache-2.0"
] | null | null | null | Helios/src/Input.hpp | rgracari/helio_test | 2d516d16da4252c8f92f5c265b6151c6e87bc907 | [
"Apache-2.0"
] | null | null | null | Helios/src/Input.hpp | rgracari/helio_test | 2d516d16da4252c8f92f5c265b6151c6e87bc907 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Bitmask.hpp"
namespace Helio
{
class Input
{
private:
Bitmask thisFrameKeys;
Bitmask lastFrameKeys;
public:
enum class Key
{
None = 0,
ArrowLeft,
ArrowRight,
ArrowUp,
ArrowDown,
Esc
};
void Update();
bool IsKeyPressed(Key keycode);
bool IsKeyDown(Key key... | 12.033333 | 33 | 0.66205 | rgracari |
ad1d0040093879727d9f4956bb9fa75b2636b318 | 6,640 | cpp | C++ | quadrotor_motion_with_pid_control/subpackages/thrust_controller/src/source/thrust_controller.cpp | lesmesrafa/Multi-drone-behaviors | 1d35e4f1df6d9dd8e158b01ec7577aa21ce0b9a3 | [
"CC0-1.0"
] | null | null | null | quadrotor_motion_with_pid_control/subpackages/thrust_controller/src/source/thrust_controller.cpp | lesmesrafa/Multi-drone-behaviors | 1d35e4f1df6d9dd8e158b01ec7577aa21ce0b9a3 | [
"CC0-1.0"
] | null | null | null | quadrotor_motion_with_pid_control/subpackages/thrust_controller/src/source/thrust_controller.cpp | lesmesrafa/Multi-drone-behaviors | 1d35e4f1df6d9dd8e158b01ec7577aa21ce0b9a3 | [
"CC0-1.0"
] | null | null | null | #include "thrust_controller.hpp"
void ThrustController::ownSetUp()
{
static ros::NodeHandle nh;
std::string n_space ;
std::string estimated_speed_topic;
std::string estimated_pose_topic;
std::string altitude_rate_yaw_rate_topic;
std::string thrust_topic;
std::string flight_action_topic;
std::string robot_co... | 40.487805 | 152 | 0.72997 | lesmesrafa |
ad1da01581127b3687354f7b2d6dc194de671b41 | 696 | cpp | C++ | test_gendata.cpp | campfireai/lavastone | 5c15a922172c1aa567a582ae6625d150b7a154ab | [
"Unlicense"
] | 9 | 2021-09-14T23:10:26.000Z | 2021-11-28T12:02:02.000Z | test_gendata.cpp | campfireai/lavastone | 5c15a922172c1aa567a582ae6625d150b7a154ab | [
"Unlicense"
] | null | null | null | test_gendata.cpp | campfireai/lavastone | 5c15a922172c1aa567a582ae6625d150b7a154ab | [
"Unlicense"
] | 1 | 2021-09-16T04:54:31.000Z | 2021-09-16T04:54:31.000Z | #include "gendata.hpp"
#include <fstream>
#include <iostream>
int main(int argc, char *argv[]) {
if (argc != 2) {
std::cerr << "usage:\n"
<< "./test_gendata NUM_RECORDS\n";
exit(1);
}
size_t num_records = std::stoi(argv[1]);
std::string fname = "data.csv";
std::cout << "writing " << n... | 25.777778 | 76 | 0.54023 | campfireai |
ad1ddad5142a021dc6e1cc083c4914ea6cea0fce | 494 | cpp | C++ | src/render/idle_recognizer.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 3 | 2015-02-22T20:34:28.000Z | 2020-03-04T08:55:25.000Z | src/render/idle_recognizer.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 22 | 2015-12-13T16:29:40.000Z | 2017-03-04T15:45:44.000Z | src/render/idle_recognizer.cpp | Reaping2/Reaping2 | 0d4c988c99413e50cc474f6206cf64176eeec95d | [
"MIT"
] | 14 | 2015-11-23T21:25:09.000Z | 2020-07-17T17:03:23.000Z | #include "render/idle_recognizer.h"
#include "core/i_move_component.h"
namespace render {
IdleRecognizer::IdleRecognizer( int32_t Id )
: Recognizer( Id )
{
}
bool IdleRecognizer::Recognize( Actor const& actor ) const
{
Opt<IMoveComponent> moveC = actor.Get<IMoveComponent>();
if ( !moveC.IsValid() )
{... | 18.296296 | 60 | 0.615385 | MrPepperoni |
ad20873ab7d37247c6e6e99af3c83c82b6db1521 | 409 | cpp | C++ | cmake/test/main.cpp | blagodarin/seir | fec45228d161dabb8bb4aaa23c64ea218b84e8fd | [
"Apache-2.0"
] | null | null | null | cmake/test/main.cpp | blagodarin/seir | fec45228d161dabb8bb4aaa23c64ea218b84e8fd | [
"Apache-2.0"
] | null | null | null | cmake/test/main.cpp | blagodarin/seir | fec45228d161dabb8bb4aaa23c64ea218b84e8fd | [
"Apache-2.0"
] | null | null | null | // This file is part of Seir.
// Copyright (C) Sergei Blagodarin.
// SPDX-License-Identifier: Apache-2.0
#include <seir_base/string_utils.hpp>
#include <seir_u8main/u8main.hpp>
#include <iostream>
#include <plf_colony.h>
int u8main(int, char**)
{
std::string helloWorld = "Hello world!";
seir::normalizeWhitespace(... | 21.526316 | 68 | 0.713936 | blagodarin |
ad22235ea03fb2f5c75be30d908be9762dad4ebe | 745 | cpp | C++ | countFrequency.cpp | harshallgarg/CPP | 4d15c5e5d426bb00d192368d21924ec9f017445f | [
"MIT"
] | 2 | 2020-08-09T02:09:50.000Z | 2020-08-09T07:07:47.000Z | countFrequency.cpp | harshallgarg/CPP | 4d15c5e5d426bb00d192368d21924ec9f017445f | [
"MIT"
] | null | null | null | countFrequency.cpp | harshallgarg/CPP | 4d15c5e5d426bb00d192368d21924ec9f017445f | [
"MIT"
] | 4 | 2020-05-25T10:24:14.000Z | 2021-05-03T07:52:35.000Z | //
// CountFrequency.cpp
// AnishC++
//
// Created by Anish Mookherjee on 20/10/19.
// Copyright © 2019 Anish Mookherjee. All rights reserved.
//
#include <iostream>
using namespace std;
int main()
{
int i,n;
cout<<"Enter no. of elements you want to enter."<<endl;
cin>>n;
int a[n];
int b[9];
... | 17.325581 | 59 | 0.42953 | harshallgarg |
ad266f076a48f37607ab583853ff65d659e79f8a | 5,190 | hh | C++ | src/transport/CMR.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/transport/CMR.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/transport/CMR.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | /*
* CMR.hh
*
* Created on: May 17, 2012
* Author: robertsj
*/
#ifndef CMR_HH_
#define CMR_HH_
// Detran
#include "WithinGroupAcceleration.hh"
// System
namespace detran
{
/*!
* \class CMR
* \brief Coarse Mesh Rebalance
*
* Consider the one group problem
* \f[
* \Big ( \mu \frac{\parti... | 27.172775 | 75 | 0.584971 | RLReed |
ad270fc135aa168a8214ef24fd5419b8cad51509 | 11,906 | cpp | C++ | src/CoreGenPortal/PortalCore/CoreRegInfoWin.cpp | opensocsysarch/CoreGenPortal | b6c8c9ca13fa8add969511f153331cad83953799 | [
"Apache-2.0"
] | 1 | 2019-06-25T13:06:14.000Z | 2019-06-25T13:06:14.000Z | src/CoreGenPortal/PortalCore/CoreRegInfoWin.cpp | opensocsysarch/CoreGenPortal | b6c8c9ca13fa8add969511f153331cad83953799 | [
"Apache-2.0"
] | 128 | 2018-10-23T12:45:15.000Z | 2021-12-28T13:09:39.000Z | src/CoreGenPortal/PortalCore/CoreRegInfoWin.cpp | opensocsysarch/CoreGenPortal | b6c8c9ca13fa8add969511f153331cad83953799 | [
"Apache-2.0"
] | 1 | 2021-01-20T23:17:34.000Z | 2021-01-20T23:17:34.000Z | //
// _COREREGINFOWIN_CPP_
//
// Copyright (C) 2017-2020 Tactical Computing Laboratories, LLC
// All Rights Reserved
// contact@tactcomplabs.com
//
// See LICENSE in the top level directory for licensing details
//
#include "CoreGenPortal/PortalCore/CoreRegInfoWin.h"
// Event Table
wxBEGIN_EVENT_TABLE(CoreRegInfoWin,... | 34.914956 | 83 | 0.484378 | opensocsysarch |
ad2c6f33cff15e436e69dd2540314cc2cc8144ad | 4,895 | cpp | C++ | src/XliPlatform/sdl2/SDL2GLContext.cpp | mortend/uno-base | 53bf65ca269f89e3b6ac01845a1de498963c5cca | [
"MIT"
] | 4 | 2018-05-14T07:49:34.000Z | 2018-05-21T06:40:17.000Z | src/XliPlatform/sdl2/SDL2GLContext.cpp | mortend/uno-base | 53bf65ca269f89e3b6ac01845a1de498963c5cca | [
"MIT"
] | 2 | 2018-10-21T12:40:49.000Z | 2020-04-16T17:55:55.000Z | src/XliPlatform/sdl2/SDL2GLContext.cpp | mortend/uno-base | 53bf65ca269f89e3b6ac01845a1de498963c5cca | [
"MIT"
] | 4 | 2018-05-14T17:03:51.000Z | 2018-12-01T08:05:02.000Z | #include <XliPlatform/GLContext.h>
#include <XliPlatform/GL.h>
#include <XliPlatform/PlatformSpecific/SDL2.h>
#include <uBase/Memory.h>
namespace Xli
{
namespace PlatformSpecific
{
class SDL2GLContext: public GLContext
{
SDL_Window* window;
SDL_GLContext context;
... | 36.804511 | 92 | 0.595914 | mortend |
ad31f62e3f5313fa323f59cdd539a1bc6d62e9d6 | 14,715 | cpp | C++ | patch/game/clawmute.cpp | Tonyx97/TombMP | 7eb2d265df2fe7312b7ed07dd5943736340b921c | [
"MIT"
] | 3 | 2021-10-10T11:12:03.000Z | 2021-11-04T16:46:57.000Z | patch/game/clawmute.cpp | Tonyx97/TombMP | 7eb2d265df2fe7312b7ed07dd5943736340b921c | [
"MIT"
] | null | null | null | patch/game/clawmute.cpp | Tonyx97/TombMP | 7eb2d265df2fe7312b7ed07dd5943736340b921c | [
"MIT"
] | null | null | null | #include "objects.h"
#include "lara.h"
#include "control.h"
#include "effect2.h"
#include "sphere.h"
#include "people.h"
#include "traps.h"
#include <specific/standard.h>
#include <specific/fn_stubs.h>
#define CLAW_PLASMA_DAMAGE 200
#define CLAW_BITE_DAMAGE 100
#define CLAW_TOUCH (0x90)
#define CLAW_DIE_ANIM 20
#defi... | 26.705989 | 167 | 0.648726 | Tonyx97 |
ad32728610e0ead04a587989b860f9c32b6e0ab6 | 3,308 | hpp | C++ | OpenSimRoot/src/export/ExportBaseClass.hpp | nb-e/OpenRootSim | aaa1cd18e94ebf613c28737842401daba3b8d5ef | [
"BSD-3-Clause"
] | 1 | 2021-08-03T00:52:58.000Z | 2021-08-03T00:52:58.000Z | OpenSimRoot/src/export/ExportBaseClass.hpp | nb-e/OpenRootSim | aaa1cd18e94ebf613c28737842401daba3b8d5ef | [
"BSD-3-Clause"
] | null | null | null | OpenSimRoot/src/export/ExportBaseClass.hpp | nb-e/OpenRootSim | aaa1cd18e94ebf613c28737842401daba3b8d5ef | [
"BSD-3-Clause"
] | 1 | 2021-08-03T00:52:59.000Z | 2021-08-03T00:52:59.000Z | /*
Copyright © 2016, The Pennsylvania State University
All rights reserved.
Copyright © 2016 Forschungszentrum Jülich GmbH
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted under the GNU General Public License v3 and provided that the following conditi... | 49.373134 | 755 | 0.796856 | nb-e |
ad34ff41bef08907bfa1b5c76777f7f6632f4050 | 19,327 | cpp | C++ | Pesto/src/EditorLayer.cpp | Tamookk/Basil | bdcdf4e6e13e64a34416b4412d366594f9d46f56 | [
"Apache-2.0"
] | null | null | null | Pesto/src/EditorLayer.cpp | Tamookk/Basil | bdcdf4e6e13e64a34416b4412d366594f9d46f56 | [
"Apache-2.0"
] | null | null | null | Pesto/src/EditorLayer.cpp | Tamookk/Basil | bdcdf4e6e13e64a34416b4412d366594f9d46f56 | [
"Apache-2.0"
] | null | null | null | #include "EditorLayer.h"
#include "Core/Application.h"
#include "Math/Math.h"
#include "Scene/SceneSerializer.h"
#include "Utils/PlatfomUtils.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <imgui.h>
#include <ImGuizmo.h>
namespace Basil
{
extern const std::filesystem::path assetP... | 29.551988 | 149 | 0.699384 | Tamookk |
ad35292af1d0299a74c438036ecdb3f975a4beb3 | 3,712 | cpp | C++ | engine/screens/source/EquipmentScreen.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/screens/source/EquipmentScreen.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/screens/source/EquipmentScreen.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "Conversion.hpp"
#include "EquipmentScreen.hpp"
#include "EquipmentTextKeys.hpp"
#include "EquipmentTranslator.hpp"
#include "Game.hpp"
#include "OptionsComponent.hpp"
#include "PromptTextKeys.hpp"
#include "TextComponent.hpp"
#include "TextKeys.hpp"
using namespace std;
EquipmentScreen::EquipmentScreen(Disp... | 33.142857 | 110 | 0.739763 | prolog |
ad392c4204e6794d3d7960ac0f35c44a5daf9403 | 1,213 | cpp | C++ | Arc/src/Arc/Renderer/EditorCamera.cpp | MohitSethi99/AGE | 4291ebeaa4af5b60518bc55eae079fd2cfe55d8f | [
"Apache-2.0"
] | null | null | null | Arc/src/Arc/Renderer/EditorCamera.cpp | MohitSethi99/AGE | 4291ebeaa4af5b60518bc55eae079fd2cfe55d8f | [
"Apache-2.0"
] | null | null | null | Arc/src/Arc/Renderer/EditorCamera.cpp | MohitSethi99/AGE | 4291ebeaa4af5b60518bc55eae079fd2cfe55d8f | [
"Apache-2.0"
] | null | null | null | #include "arcpch.h"
#include "EditorCamera.h"
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/quaternion.hpp>
namespace ArcEngine
{
EditorCamera::EditorCamera(float fov, float aspectRatio, float nearClip, float farClip)
: m_Fov(fov), m_AspectRatio(aspectRatio), m_NearClip(nearClip), m_FarClip(farClip), Camera(gl... | 28.880952 | 161 | 0.727947 | MohitSethi99 |
ad40256c053577a8bbb2d49273a2a3265ecf901c | 655 | cpp | C++ | application/robotcontrol.cpp | hcmarchezi/manipulator-robot-api | 6ec50278496b10d3b31557f92f62d1521edefa2a | [
"MIT"
] | null | null | null | application/robotcontrol.cpp | hcmarchezi/manipulator-robot-api | 6ec50278496b10d3b31557f92f62d1521edefa2a | [
"MIT"
] | null | null | null | application/robotcontrol.cpp | hcmarchezi/manipulator-robot-api | 6ec50278496b10d3b31557f92f62d1521edefa2a | [
"MIT"
] | null | null | null | #include "robotcontrol.h"
#include <QLabel>
#include <QMessageBox>
#include <iostream>
namespace HIC
{
RobotControl::RobotControl(QWidget *parent) : QWidget(parent), _glWidget(NULL)
{
this->setLayout(new QVBoxLayout(this));
}
void RobotControl::setGLWidget(HIC::ApplicationGLWidget* glWidget)
{
_glWidget = ... | 20.46875 | 87 | 0.674809 | hcmarchezi |
ad42adce43dc6195ea01496eb87eca5dde246f17 | 4,403 | cpp | C++ | globe/globe_overlay.cpp | MarkY-LunarG/LunarGlobe | d32a6145eebc68ad4d7e28bdd4fab88cbdd33545 | [
"Apache-2.0"
] | 2 | 2018-06-20T15:19:38.000Z | 2018-07-13T15:13:30.000Z | globe/globe_overlay.cpp | MarkY-LunarG/LunarGlobe | d32a6145eebc68ad4d7e28bdd4fab88cbdd33545 | [
"Apache-2.0"
] | 25 | 2018-07-27T23:02:01.000Z | 2019-03-15T17:00:05.000Z | globe/globe_overlay.cpp | MarkY-LunarG/LunarGravity | d32a6145eebc68ad4d7e28bdd4fab88cbdd33545 | [
"Apache-2.0"
] | null | null | null | //
// Project: LunarGlobe
// SPDX-License-Identifier: Apache-2.0
//
// File: globe/globe_overlay.hpp
// Copyright(C): 2019; LunarG, Inc.
// Author(s): Mark Young <marky@lunarg.com>
//
#include "globe_resource_manager.hpp"
#include "globe_submit_manager.hpp"
#... | 40.394495 | 117 | 0.642062 | MarkY-LunarG |
ad51652b42155e2d682c2a5f2b97729194d11156 | 291 | cpp | C++ | algorithm_cpp/basic/get_line.cpp | eunjin115/TIL | 2c9179e4dabdf5d8876871987de8b705c011b672 | [
"MIT"
] | null | null | null | algorithm_cpp/basic/get_line.cpp | eunjin115/TIL | 2c9179e4dabdf5d8876871987de8b705c011b672 | [
"MIT"
] | null | null | null | algorithm_cpp/basic/get_line.cpp | eunjin115/TIL | 2c9179e4dabdf5d8876871987de8b705c011b672 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(void){
char arr[10];
cout << "문자 입력";
cin.getline(arr,10, ' '); // 10은 최대 입력 가능 문자수, default 종결 문자는 \n (개행문자)
// cin.getline(arr,10,' '); // [예] 세 번째 인자는 종결 문자 설정 -> 공백(' ')
cout << arr << endl;
return 0;
} | 22.384615 | 75 | 0.522337 | eunjin115 |
ad51e5ab2ec0c7ecd6be302e3cc13731df5d6bce | 4,387 | hpp | C++ | include/sprout/darkroom/intersects/intersection.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | 4 | 2021-12-29T22:17:40.000Z | 2022-03-23T11:53:44.000Z | dsp/lib/sprout/sprout/darkroom/intersects/intersection.hpp | TheSlowGrowth/TapeLooper | ee8d8dccc27e39a6f6f6f435847e4d5e1b97c264 | [
"MIT"
] | 16 | 2021-10-31T21:41:09.000Z | 2022-01-22T10:51:34.000Z | include/sprout/darkroom/intersects/intersection.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==... | 34.81746 | 143 | 0.681787 | thinkoid |
ad57bfa905c555a89c327f57f1996baca4213954 | 3,069 | hpp | C++ | include/CobraModelParser/MatlabV5/ParserImpl.hpp | qacwnfq/CobraModelParser | 9e03ff6e9f05e4a971b39a85360494925c72dbeb | [
"MIT"
] | null | null | null | include/CobraModelParser/MatlabV5/ParserImpl.hpp | qacwnfq/CobraModelParser | 9e03ff6e9f05e4a971b39a85360494925c72dbeb | [
"MIT"
] | null | null | null | include/CobraModelParser/MatlabV5/ParserImpl.hpp | qacwnfq/CobraModelParser | 9e03ff6e9f05e4a971b39a85360494925c72dbeb | [
"MIT"
] | null | null | null | #ifndef COBRAMODELPARSER_MATLABV5_PARSERIMPL_HPP
#define COBRAMODELPARSER_MATLABV5_PARSERIMPL_HPP
#include <algorithm>
#include <fstream>
#include <vector>
#include <ostream>
#include "CobraModelParser/Exceptions.hpp"
#include "CobraModelParser/FileLoader.hpp"
#include "CobraModelParser/ModelBuilder.hpp"
#include "Co... | 40.92 | 111 | 0.623004 | qacwnfq |
ad57c191e0688deba12bf9b3fb676cf283bd46fe | 2,024 | hpp | C++ | Libraries/Physics/Analyzer.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Libraries/Physics/Analyzer.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Physics/Analyzer.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
/// Tracks down which object, if any, was not sent to be checked
/// for collision when it should have (assuming at least one broad phase caught
/// it).
#define OBJECT_TRACKING 1
namespace Zero
{
namespace Physics
{
// The result of a single frame
struct BroadPhaseFra... | 23.534884 | 79 | 0.731719 | RyanTylerRae |
ad5868309d617990cf94e0603699f7c75e01f739 | 635 | hpp | C++ | src/jellyfish/Material.hpp | FelipeEd/Jellyfish3D | 448ca5462fdab2a28677c7f4d05d2e733267da6f | [
"Apache-2.0"
] | null | null | null | src/jellyfish/Material.hpp | FelipeEd/Jellyfish3D | 448ca5462fdab2a28677c7f4d05d2e733267da6f | [
"Apache-2.0"
] | null | null | null | src/jellyfish/Material.hpp | FelipeEd/Jellyfish3D | 448ca5462fdab2a28677c7f4d05d2e733267da6f | [
"Apache-2.0"
] | null | null | null | #pragma once
extern bool pbr;
class Material
{
private:
public:
unsigned int m_texAlbedo;
// TODO change to textures
unsigned int m_texMetallic;
unsigned int m_texNormal;
unsigned int m_texRoughness;
unsigned int m_texAo;
// Load Ao Roughness and Metallic on one texture
unsigned in... | 19.242424 | 70 | 0.677165 | FelipeEd |
ad5920935ac5a29a023ee509a94db7e1f3378b70 | 719 | cpp | C++ | algorithms_2/BinaryInsertionSort/BinaryInsertionSort.cpp | neutrinobomber/c-stuff | 0a98d8d618a8226e7e2a63b262ef8fe3ec43e185 | [
"MIT"
] | null | null | null | algorithms_2/BinaryInsertionSort/BinaryInsertionSort.cpp | neutrinobomber/c-stuff | 0a98d8d618a8226e7e2a63b262ef8fe3ec43e185 | [
"MIT"
] | null | null | null | algorithms_2/BinaryInsertionSort/BinaryInsertionSort.cpp | neutrinobomber/c-stuff | 0a98d8d618a8226e7e2a63b262ef8fe3ec43e185 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void BinaryInsertionSort(int arr[], int len)
{
for (int i = 1; i < len; i++)
{
int begin = 0;
int end = i;
int mid = i / 2;
do
{
if (arr[i] > arr[mid])
{
begin = mid + 1;
}
else if (arr[i] < arr[mid])
{
end = mid;
}
else
{
break... | 12.614035 | 44 | 0.456189 | neutrinobomber |
ad5fc91f5069b2eaa46e855e02c428883200814d | 17,358 | cpp | C++ | src/libtsduck/dtv/tsSignalizationDemux.cpp | ASTRO-Strobel/tsduck | f1da3d49df35b3d9740fb2c8031c92d0f261829a | [
"BSD-2-Clause"
] | 2 | 2020-02-27T04:34:41.000Z | 2020-04-29T10:43:23.000Z | src/libtsduck/dtv/tsSignalizationDemux.cpp | mirakc/tsduck-arib | c400025b7d31e26c0c15471e81adf2ad50632281 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/dtv/tsSignalizationDemux.cpp | mirakc/tsduck-arib | c400025b7d31e26c0c15471e81adf2ad50632281 | [
"BSD-2-Clause"
] | 1 | 2019-10-27T03:19:28.000Z | 2019-10-27T03:19:28.000Z | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 34.372277 | 137 | 0.474997 | ASTRO-Strobel |
ad6222e6c100a11297409217fcdb1f11d8d82b08 | 3,880 | cpp | C++ | project/Windows/Engine/BlurEffect.cpp | mholtkamp/vakz | ad72c9b971c442450d530b82fb8d976c0fccbff7 | [
"MIT"
] | 5 | 2016-12-15T18:36:40.000Z | 2019-12-04T00:48:40.000Z | project/Windows/Engine/BlurEffect.cpp | mholtkamp/vakz | ad72c9b971c442450d530b82fb8d976c0fccbff7 | [
"MIT"
] | null | null | null | project/Windows/Engine/BlurEffect.cpp | mholtkamp/vakz | ad72c9b971c442450d530b82fb8d976c0fccbff7 | [
"MIT"
] | 1 | 2021-04-15T09:37:43.000Z | 2021-04-15T09:37:43.000Z | #include "BlurEffect.h"
#include "Log.h"
#include "VGL.h"
#include "VInput.h"
#include "Settings.h"
// Vertex data needed to render quad that covers entire screen
static float s_arPosition[8] = {-1.0f, -1.0f,
-1.0f, 1.0f,
1.0f, 1.0f,
... | 32.066116 | 81 | 0.439948 | mholtkamp |
ad66124e89381da2a18d6281e39597f5fa615abe | 2,041 | cpp | C++ | src/wspp_wrapper.cpp | osmiumhydorogen/CppRosBridge_demo | a8b9eb442654f54465cf58ca62da8c583fb746e4 | [
"MIT"
] | null | null | null | src/wspp_wrapper.cpp | osmiumhydorogen/CppRosBridge_demo | a8b9eb442654f54465cf58ca62da8c583fb746e4 | [
"MIT"
] | null | null | null | src/wspp_wrapper.cpp | osmiumhydorogen/CppRosBridge_demo | a8b9eb442654f54465cf58ca62da8c583fb746e4 | [
"MIT"
] | 1 | 2022-03-17T01:38:05.000Z | 2022-03-17T01:38:05.000Z | #include <wspp_wrapper.hpp>
//#include <websocketpp/common/memory.hpp>
namespace crb_sock
{
WsppWrapper::WsppWrapper()
{
_client_ep.clear_access_channels(websocketpp::log::alevel::all);
_client_ep.clear_error_channels(websocketpp::log::elevel::all);
_client_ep.init_asio();
_client_ep.start_perpetual();
m... | 25.197531 | 97 | 0.66242 | osmiumhydorogen |
ad66eb1e8eb04907ffcbcead70c6462695a816a0 | 1,017 | cpp | C++ | stringPattern.cpp | thomasjmurphy/dataStructures | 1a2fef47cb3734574e7bd7948b0a705b915940da | [
"MIT"
] | null | null | null | stringPattern.cpp | thomasjmurphy/dataStructures | 1a2fef47cb3734574e7bd7948b0a705b915940da | [
"MIT"
] | null | null | null | stringPattern.cpp | thomasjmurphy/dataStructures | 1a2fef47cb3734574e7bd7948b0a705b915940da | [
"MIT"
] | null | null | null | #include <sstream>
#include <string>
#include <unordered_map>
using namespace std;
//Given a pattern and a string, check if the string can be mapped bijectively to that
//pattern. see LeetCode problem 290.
vector<string> split(string str)
{
stringstream ss(str);
vector<string> ret;
string word;
while... | 20.34 | 85 | 0.52999 | thomasjmurphy |
ad682fe7eebba2cddbcfd6d37f866fd2258444ea | 655 | inl | C++ | src/ivorium_core/Attribute/Fields/PrivField.inl | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | 3 | 2021-02-26T02:59:09.000Z | 2022-02-08T16:44:21.000Z | src/ivorium_core/Attribute/Fields/PrivField.inl | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | src/ivorium_core/Attribute/Fields/PrivField.inl | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | namespace iv
{
//==================== PrivField_Owner =================================
template< class T >
void PrivField_Owner< T >::Field_Modify( PrivField< T > * field, T const & val )
{
field->Modify( val );
}
//==================== LField_RW =================================
template< class T >
PrivField< T... | 20.46875 | 80 | 0.519084 | ivorne |
ad696df102133daeabc06ece304610ebe0163a3a | 1,610 | hpp | C++ | Lib/Chip/ATSAMD21G18A.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/ATSAMD21G18A.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/ATSAMD21G18A.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cstdint>
#include <Chip/CM0+/Atmel/ATSAMD21G18A/AC.hpp>
#include <Chip/CM0+/Atmel/ATSAMD21G18A/ADC.hpp>
#include <Chip/CM0+/Atmel/ATSAMD21G18A/DAC.hpp>
#include <Chip/CM0+/Atmel/ATSAMD21G18A/DMAC.hpp>
#include <Chip/CM0+/Atmel/ATSAMD21G18A/DSU.hpp>
#include <Chip/CM0+/Atmel/ATSAMD21G18A/EIC.hpp>... | 46 | 51 | 0.775776 | operativeF |
ad74c256718a0e83b6b2e2c032c9e8d99cc66578 | 75 | hpp | C++ | src/ImageView/path_utility.hpp | miere43/imageview | a264fa44ba0140a8171913be763abdddbc531b4a | [
"Unlicense"
] | 1 | 2021-06-24T12:19:41.000Z | 2021-06-24T12:19:41.000Z | src/ImageView/path_utility.hpp | miere43/imageview | a264fa44ba0140a8171913be763abdddbc531b4a | [
"Unlicense"
] | null | null | null | src/ImageView/path_utility.hpp | miere43/imageview | a264fa44ba0140a8171913be763abdddbc531b4a | [
"Unlicense"
] | null | null | null | #pragma once
struct Path_Utility
{
//static wchar_t* combine_path()
}; | 12.5 | 36 | 0.706667 | miere43 |
ad81f548c629a05d4d2f5237e9c7dc6cdeaf0e1c | 6,087 | hpp | C++ | bindings/python/multibody/joint/joints-models.hpp | thanhndv212/pinocchio | 3b4d272bf4e8a231954b71201ee7e0963c944aef | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2021-05-12T03:04:59.000Z | 2021-08-10T11:43:36.000Z | bindings/python/multibody/joint/joints-models.hpp | thanhndv212/pinocchio | 3b4d272bf4e8a231954b71201ee7e0963c944aef | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | bindings/python/multibody/joint/joints-models.hpp | thanhndv212/pinocchio | 3b4d272bf4e8a231954b71201ee7e0963c944aef | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2021-04-21T16:00:21.000Z | 2022-02-03T06:24:52.000Z | //
// Copyright (c) 2015-2020 CNRS INRIA
//
#ifndef __pinocchio_python_joints_models_hpp__
#define __pinocchio_python_joints_models_hpp__
#include <boost/python.hpp>
#include "pinocchio/multibody/joint/joint-collection.hpp"
#include "pinocchio/multibody/joint/joint-composite.hpp"
#include <eigenpy/eigen-to-python.h... | 41.97931 | 155 | 0.611631 | thanhndv212 |
ad879d14f474f56434bb46142ea101b6600c53e1 | 17,253 | cpp | C++ | nTA/Source/unit_Object.cpp | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | 2 | 2020-05-09T20:50:12.000Z | 2021-06-20T08:34:58.000Z | nTA/Source/unit_Object.cpp | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | null | null | null | nTA/Source/unit_Object.cpp | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | 2 | 2018-01-08T00:12:04.000Z | 2020-06-14T10:56:50.000Z | // unit_Object.cpp // \author Logan Jones
//////////////////// \date 12/29/2001
/// \file
/// \brief ...
/////////////////////////////////////////////////////////////////////
#include "unit.h"
#include "unit_Object.h"
#include "game.h"
#include "gfx... | 31.773481 | 149 | 0.481539 | loganjones |
ad8a345a76febdef3fb5fff7e4ba1058b618ec3c | 1,741 | cpp | C++ | src/core/path_controller_component.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 3 | 2015-02-22T20:34:28.000Z | 2020-03-04T08:55:25.000Z | src/core/path_controller_component.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 22 | 2015-12-13T16:29:40.000Z | 2017-03-04T15:45:44.000Z | src/core/path_controller_component.cpp | Reaping2/Reaping2 | 0d4c988c99413e50cc474f6206cf64176eeec95d | [
"MIT"
] | 14 | 2015-11-23T21:25:09.000Z | 2020-07-17T17:03:23.000Z | #include "core/path_controller_component.h"
PathControllerComponent::PathControllerComponent()
: mNextAttackTimer(0.0)
, mNextAttackTimerMax(3.0)
, mDamage(10)
, mAggroDist(800)
, mPeaceDist(1200)
{
}
void PathControllerComponent::SetNextAttackTimer( double nextAttackTimer )
{
mNextAttackTimer... | 22.320513 | 97 | 0.775416 | MrPepperoni |
ad8d113f348e1ad3a516bbea7f09a2dfd13db202 | 8,918 | hpp | C++ | src/scripting/ScriptSymbolStorage.hpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 399 | 2019-01-06T17:55:18.000Z | 2022-03-21T17:41:18.000Z | src/scripting/ScriptSymbolStorage.hpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 101 | 2019-04-18T21:03:53.000Z | 2022-01-08T13:27:01.000Z | src/scripting/ScriptSymbolStorage.hpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 56 | 2019-04-10T10:18:27.000Z | 2022-02-08T01:23:31.000Z | #pragma once
#include "ScriptSymbols.hpp"
#include <BsPrerequisites.h>
#include <RTTI/RTTIUtil.hpp>
namespace REGoth
{
namespace Scripting
{
/**
* Holds the list of all created symbols and their data.
*
* This is the only place where symbols should created and have
* their types and names b... | 29.726667 | 101 | 0.585445 | KirmesBude |
ad92d8b87b81e135a743d279b9d2394a1e5980ef | 1,267 | cpp | C++ | Practice/2018/2018.9.20/HDU3401.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.9.20/HDU3401.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.9.20/HDU3401.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=2020;
const int inf=1000000000;
int n,mxP,W;
int F[maxN][maxN];
int Q[maxN];
int main(){
int TTT;scanf("%d",&TTT);
while... | 21.844828 | 63 | 0.488556 | SYCstudio |
74ec603469299cc223e9acc4b38b1f65f655f6f3 | 7,128 | cpp | C++ | src/lib/foundations/algebra_and_number_theory/null_polarity_generator.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/foundations/algebra_and_number_theory/null_polarity_generator.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/foundations/algebra_and_number_theory/null_polarity_generator.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // null_polarity_generator.cpp
//
// Anton Betten
// December 11, 2015
#include "foundations.h"
using namespace std;
namespace orbiter {
namespace foundations {
null_polarity_generator::null_polarity_generator()
{
null();
}
null_polarity_generator::~null_polarity_generator()
{
freeself();
}
void null_polarit... | 21.46988 | 77 | 0.621633 | abetten |
74f0c8a1d5da6817ae2eb75fa412eb8d051f6cfa | 8,707 | cpp | C++ | libraries/DueFlash/efc.cpp | sschiesser/Arduino_MPU9150 | 59f338eab642bd15970d929fd939312b1b5b2576 | [
"MIT"
] | 65 | 2015-01-22T15:34:13.000Z | 2022-03-24T17:29:07.000Z | libraries/DueFlash/efc.cpp | sschiesser/Arduino_MPU9150 | 59f338eab642bd15970d929fd939312b1b5b2576 | [
"MIT"
] | 16 | 2015-04-30T01:50:04.000Z | 2021-03-18T11:01:56.000Z | libraries/DueFlash/efc.cpp | sschiesser/Arduino_MPU9150 | 59f338eab642bd15970d929fd939312b1b5b2576 | [
"MIT"
] | 44 | 2015-02-23T11:01:45.000Z | 2021-05-01T07:11:13.000Z | /**
* \file
*
* \brief Enhanced Embedded Flash Controller (EEFC) driver for SAM.
*
* Copyright (c) 2011-2012 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | 25.533724 | 80 | 0.718847 | sschiesser |
74f0dc372993a6eb967f8ac3bcacaef6bf33825f | 825 | cpp | C++ | SkimaServer/SkimaServer/LightningPumpkinSkill.cpp | dlakwwkd/CommitAgain | 3fdad38f7951b1a58ae244bd5d68f5a92e97f633 | [
"MIT"
] | 1 | 2015-04-07T06:08:11.000Z | 2015-04-07T06:08:11.000Z | SkimaServer/SkimaServer/LightningPumpkinSkill.cpp | dlakwwkd/CommitAgain | 3fdad38f7951b1a58ae244bd5d68f5a92e97f633 | [
"MIT"
] | 1 | 2015-01-01T11:14:29.000Z | 2015-01-01T12:19:04.000Z | SkimaServer/SkimaServer/LightningPumpkinSkill.cpp | dlakwwkd/CommitAgain | 3fdad38f7951b1a58ae244bd5d68f5a92e97f633 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "LightningPumpkinSkill.h"
#include "ClientSession.h"
#include "Game.h"
#include "Player.h"
#include "Unit.h"
#include "Timer.h"
#include <time.h>
LightningPumpkinSkill::LightningPumpkinSkill(Player* owner)
{
m_Owner = owner;
m_Damage = 64;
m_Scale = Reduce(80.0f);
}
Lightnin... | 22.916667 | 117 | 0.705455 | dlakwwkd |
74f306a640ce5f8555d7c7dc46484aab8ccfd823 | 7,166 | cpp | C++ | openstudiocore/src/model/SurfacePropertyOtherSideConditionsModel.cpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | 1 | 2019-04-21T15:38:54.000Z | 2019-04-21T15:38:54.000Z | openstudiocore/src/model/SurfacePropertyOtherSideConditionsModel.cpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | null | null | null | openstudiocore/src/model/SurfacePropertyOtherSideConditionsModel.cpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | 1 | 2019-07-18T06:52:29.000Z | 2019-07-18T06:52:29.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... | 49.763889 | 156 | 0.712113 | hongyuanjia |
74fb4f9a9e6e4b1e55690f043bf843f1d514fa01 | 493 | hpp | C++ | libs/common/include/zia/common/Network.hpp | IamBlueSlime/Zia | 14aeccaa817171ca9fbd8221c6d9a32ea203a221 | [
"MIT"
] | 1 | 2020-03-09T12:17:55.000Z | 2020-03-09T12:17:55.000Z | libs/common/include/zia/common/Network.hpp | IamBlueSlime/Zia | 14aeccaa817171ca9fbd8221c6d9a32ea203a221 | [
"MIT"
] | null | null | null | libs/common/include/zia/common/Network.hpp | IamBlueSlime/Zia | 14aeccaa817171ca9fbd8221c6d9a32ea203a221 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** CPP_zia_2019
** File description:
** zia common Network.hpp
*/
#pragma once
#include "openZia/OperatingSystem.hpp"
#if defined(SYSTEM_LINUX) || defined(SYSTEM_DARWIN)
#include <arpa/inet.h>
#include <unistd.h>
typedef int socket_t;
#elif defined(SYSTEM_WINDOWS)
#define... | 18.259259 | 51 | 0.681542 | IamBlueSlime |
74ffcc1aececed48317c8333de4994d83b35f0fa | 1,576 | cpp | C++ | src/chapter_07_concurrency/problem_064_parallel_sort_algorithm.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | src/chapter_07_concurrency/problem_064_parallel_sort_algorithm.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | src/chapter_07_concurrency/problem_064_parallel_sort_algorithm.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | #include "chapter_07_concurrency/problem_064_parallel_sort_algorithm.h"
#include <algorithm> // shuffle, sort
#include <fmt/ostream.h>
#include <fmt/ranges.h>
#include <iostream> // cout
#include <numeric> // iota
#include <ostream>
#include <random> // default_random_engine, random_device
#include <vector>
void... | 33.531915 | 95 | 0.645939 | rturrado |
2d0217af5b5ef2ba1846bb426344741cd144532b | 830 | hpp | C++ | src/user/Session.hpp | hephaisto/sharebuy | 12a14aba0f7119d6db59f57e067d1f438f7a6329 | [
"MIT"
] | null | null | null | src/user/Session.hpp | hephaisto/sharebuy | 12a14aba0f7119d6db59f57e067d1f438f7a6329 | [
"MIT"
] | 9 | 2016-02-15T22:33:31.000Z | 2017-06-18T20:00:30.000Z | src/user/Session.hpp | hephaisto/sharebuy | 12a14aba0f7119d6db59f57e067d1f438f7a6329 | [
"MIT"
] | null | null | null | #ifndef H_SHAREBUY_SESSION
#define H_SHAREBUY_SESSION
#include <Wt/Dbo/Session>
#include <Wt/Dbo/ptr>
#include <Wt/Dbo/backend/Sqlite3>
#include <Wt/Auth/Login>
#include <Wt/Auth/PasswordService>
#include "User.hpp"
namespace dbo = Wt::Dbo;
typedef Wt::Auth::Dbo::UserDatabase<AuthInfo> UserDatabase;
class Session... | 21.842105 | 67 | 0.728916 | hephaisto |
2d04a20ace6f1ce3782ca36e1139c1e13ed135cc | 5,934 | hpp | C++ | engine/include/ph/config/GlobalConfig.hpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | engine/include/ph/config/GlobalConfig.hpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | engine/include/ph/config/GlobalConfig.hpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | // Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se)
// For other contributors see Contributors.txt
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//... | 38.283871 | 99 | 0.6606 | PetorSFZ |
2d0610dac0adb339db6413db131b63d509369c40 | 1,866 | cpp | C++ | Source/doom.cpp | louistio/devilution | 093dc9b6f6b7b70bcf355d75c9b3c6dcb9efcb22 | [
"Unlicense"
] | 1 | 2018-07-13T13:53:54.000Z | 2018-07-13T13:53:54.000Z | Source/doom.cpp | louistio/devilution | 093dc9b6f6b7b70bcf355d75c9b3c6dcb9efcb22 | [
"Unlicense"
] | null | null | null | Source/doom.cpp | louistio/devilution | 093dc9b6f6b7b70bcf355d75c9b3c6dcb9efcb22 | [
"Unlicense"
] | 1 | 2018-07-13T13:54:03.000Z | 2018-07-13T13:54:03.000Z | //HEADER_GOES_HERE
#include "../types.h"
int doom_quest_time; // weak
int doom_stars_drawn; // weak
void *pDoomCel;
int doomflag; // weak
int DoomQuestState; // idb
int __cdecl doom_get_frame_from_time()
{
int result; // eax
if ( DoomQuestState == 36001 )
result = 31;
else
result = DoomQuest... | 19.642105 | 66 | 0.652197 | louistio |
2d0b27b4ad205dcfd07a552d479c53877489bc22 | 1,859 | hpp | C++ | src/lattices/bravias/offset.hpp | yangqi137/lattices | 91e270fd4e0899f2fc00940ef5ca6f21b0357ab8 | [
"MIT"
] | 1 | 2019-09-25T05:35:07.000Z | 2019-09-25T05:35:07.000Z | src/lattices/bravias/offset.hpp | yangqi137/lattices | 91e270fd4e0899f2fc00940ef5ca6f21b0357ab8 | [
"MIT"
] | null | null | null | src/lattices/bravias/offset.hpp | yangqi137/lattices | 91e270fd4e0899f2fc00940ef5ca6f21b0357ab8 | [
"MIT"
] | null | null | null | #ifndef LATTICES_BRAVIAS_OFFSET_HPP
#define LATTICES_BRAVIAS_OFFSET_HPP
#include "lattice.hpp"
#include <type_traits>
#include <cassert>
#include <algorithm>
namespace lattices {
namespace bravias {
template <typename TAG, typename SIZE_TYPE>
struct OffsetCat {
typedef TAG Tag;
typedef SIZE_TYP... | 23.2375 | 72 | 0.622916 | yangqi137 |
2d0b3f3347cebe7280af21004e83d21a90347051 | 946 | cpp | C++ | src/dialogs/asknamedialog.cpp | Phoenard/Phoenard-Toolkit | 395ce79a3c56701073531cb2caad3637312d906c | [
"MIT"
] | 2 | 2016-04-03T19:15:10.000Z | 2020-04-19T16:06:54.000Z | src/dialogs/asknamedialog.cpp | Phoenard/Phoenard-Toolkit | 395ce79a3c56701073531cb2caad3637312d906c | [
"MIT"
] | null | null | null | src/dialogs/asknamedialog.cpp | Phoenard/Phoenard-Toolkit | 395ce79a3c56701073531cb2caad3637312d906c | [
"MIT"
] | 1 | 2020-04-19T16:06:17.000Z | 2020-04-19T16:06:17.000Z | #include "asknamedialog.h"
#include "ui_asknamedialog.h"
AskNameDialog::AskNameDialog(QWidget *parent) :
QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint),
ui(new Ui::AskNameDialog)
{
ui->setupUi(this);
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(f... | 23.073171 | 96 | 0.714588 | Phoenard |
2d0c2ec0bcebf82902dbbf03d97d4003c6dd190c | 2,884 | cc | C++ | test/cagey/math/MatrixTest.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | test/cagey/math/MatrixTest.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | test/cagey/math/MatrixTest.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// cagey-engine - Toy 3D Engine
// Copyright (c) 2014 Kyle Girard <theycallmecoach@gmail.com>
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associ... | 27.207547 | 80 | 0.638696 | theycallmecoach |
2d0d006e1c698d81a04fb7663967dffe944ca42f | 1,813 | cpp | C++ | core/src/view/special/CallbackScreenShooter.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | 2 | 2020-10-16T10:15:37.000Z | 2021-01-21T13:06:00.000Z | core/src/view/special/CallbackScreenShooter.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | core/src/view/special/CallbackScreenShooter.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | 1 | 2021-01-28T01:19:54.000Z | 2021-01-28T01:19:54.000Z | /*
* CallbackScreenShooter.cpp
*
* Copyright (C) 2019 by VISUS (Universitaet Stuttgart)
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "mmcore/job/TickCall.h"
#include "mmcore/view/special/CallbackScreenShooter.h"
#include <functional>
namespace megamol {
namespace core {
namespace view {
namespace ... | 27.059701 | 124 | 0.670712 | azuki-monster |
2d16b5a3cf4673ab64997dc53e89963724b50405 | 1,163 | cpp | C++ | find-duplicates-o1.cpp | whynesspower/best-of-GFG-questions | 90ef96c38965e11c0fc0987955f662d2665b4ff3 | [
"MIT"
] | 1 | 2021-11-06T14:03:06.000Z | 2021-11-06T14:03:06.000Z | find-duplicates-o1.cpp | whynesspower/best-of-GFG-questions | 90ef96c38965e11c0fc0987955f662d2665b4ff3 | [
"MIT"
] | null | null | null | find-duplicates-o1.cpp | whynesspower/best-of-GFG-questions | 90ef96c38965e11c0fc0987955f662d2665b4ff3 | [
"MIT"
] | 2 | 2021-09-12T10:15:54.000Z | 2021-09-26T20:47:19.000Z | // https://practice.geeksforgeeks.org/problems/find-duplicates-in-an-array/1#
#include <bits/stdc++.h>
using namespace std;
class Solution{
public:
vector<int> duplicates(int arr[], int n) {
int count=0;
//raverse the given array from i= 0 to n-1 elements
// Go to index arr[i]%n and inc... | 24.744681 | 77 | 0.483233 | whynesspower |
2d1cf4110ddaa389048aef7e90547f912f684f48 | 11,954 | hpp | C++ | Tensile/Source/client/include/ResultComparison.hpp | micmelesse/Tensile | 62fb9a16909ddef08010915cfefe4c0341f48daa | [
"MIT"
] | 1 | 2021-12-03T09:42:10.000Z | 2021-12-03T09:42:10.000Z | Tensile/Source/client/include/ResultComparison.hpp | micmelesse/Tensile | 62fb9a16909ddef08010915cfefe4c0341f48daa | [
"MIT"
] | null | null | null | Tensile/Source/client/include/ResultComparison.hpp | micmelesse/Tensile | 62fb9a16909ddef08010915cfefe4c0341f48daa | [
"MIT"
] | null | null | null | /*******************************************************************************
*
* MIT License
*
* Copyright (c) 2019 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | 34.449568 | 146 | 0.446127 | micmelesse |
2d2267ed5d622867ccea91a7d7a5fab5a7da71ab | 6,676 | cpp | C++ | exportNF/release/windows/obj/src/resources/__res_49.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | exportNF/release/windows/obj/src/resources/__res_49.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | exportNF/release/windows/obj/src/resources/__res_49.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | // Generated by Haxe 4.2.1+bf9ff69
namespace hx {
unsigned char __res_49[] = {
0x80, 0x00, 0x00, 0x80,
60,63,120,109,108,32,118,101,114,115,
105,111,110,61,34,49,46,48,34,32,
101,110,99,111,100,105,110,103,61,34,
117,116,102,45,56,34,32,63,62,13,
10,60,100,97,116,97,62,9,13,10,
9,60,115,112,114,105,116,101,32,105,
100,... | 33.888325 | 39 | 0.680348 | theblobscp |
2d22a488af91700dbdde75bec12f7c3a600d90dc | 551 | cpp | C++ | hdoj/hdu4841.cpp | songhn233/ACM_Steps | 6f2edeca9bf4fc999a8148bc90b2d8d0e59d48fe | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | hdoj/hdu4841.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | hdoj/hdu4841.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstring>
#include<vector>
using namespace std;
const int maxn=100000;
int n,m;
vector<int> a;
int main()
{
while(cin>>n>>m)
{
a.clear();
for(int i=0;i<2*n;i++) a.push_back(i);
int pos=0;
for(int i=0;i<n;i++)
{
pos=(pos+m-1)%a.size();
a.e... | 14.891892 | 40 | 0.53539 | songhn233 |
2d22aaba97ced5a101977b949e833bbe27571bdf | 4,193 | cc | C++ | slvn-tech/src/slvn_buffer.cc | Planksu/slvn-tech | 628565e26b0f83f34337937f4bc0b5abf26afe5d | [
"BSD-2-Clause"
] | null | null | null | slvn-tech/src/slvn_buffer.cc | Planksu/slvn-tech | 628565e26b0f83f34337937f4bc0b5abf26afe5d | [
"BSD-2-Clause"
] | null | null | null | slvn-tech/src/slvn_buffer.cc | Planksu/slvn-tech | 628565e26b0f83f34337937f4bc0b5abf26afe5d | [
"BSD-2-Clause"
] | null | null | null | // BSD 2-Clause License
//
// Copyright (c) 2021, Antton Jokinen
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,... | 34.941667 | 127 | 0.740281 | Planksu |
2d22b7af185dfcd5848585b115ea9be503cc7190 | 41 | hpp | C++ | src/_Internals/hsl_ma86z.hpp | GitBytes/hiop | 8442c75b7e1e076a8a3bf7028e3cc79c7f8cd07f | [
"BSD-3-Clause"
] | 126 | 2017-12-30T13:06:07.000Z | 2022-03-27T03:30:46.000Z | src/_Internals/hsl_ma86z.hpp | GitBytes/hiop | 8442c75b7e1e076a8a3bf7028e3cc79c7f8cd07f | [
"BSD-3-Clause"
] | 344 | 2018-01-24T22:05:38.000Z | 2022-03-31T17:49:52.000Z | src/_Internals/hsl_ma86z.hpp | GitBytes/hiop | 8442c75b7e1e076a8a3bf7028e3cc79c7f8cd07f | [
"BSD-3-Clause"
] | 30 | 2018-01-20T00:16:06.000Z | 2022-03-18T12:57:19.000Z | #define HSL_MA86Z_HEADER_NOT_CPP_READY 1
| 20.5 | 40 | 0.902439 | GitBytes |
2d245a07a632f00c2b9329b9290fda3b96c39bbf | 269 | hpp | C++ | pythran/pythonic/operator_/__ge__.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/operator_/__ge__.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/operator_/__ge__.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_OPERATOR_GE__HPP
#define PYTHONIC_OPERATOR_GE__HPP
#include "pythonic/include/operator_/__ge__.hpp"
#include "pythonic/operator_/ge.hpp"
namespace pythonic
{
namespace operator_
{
FPROXY_IMPL(pythonic::operator_, __ge__, ge);
}
}
#endif
| 14.944444 | 49 | 0.769517 | artas360 |
2d247cd0a8f5408a4c3257dcc636fc5140146b64 | 11,226 | cpp | C++ | BGFXWidget.cpp | PetrPPetrov/bgfx-qt5-win | 1008de71ef2cb061a02ec8c7aaf9ba1a74799f16 | [
"MIT"
] | 6 | 2019-12-12T09:56:36.000Z | 2021-09-04T02:40:27.000Z | BGFXWidget.cpp | PetrPPetrov/bgfx-qt5-win | 1008de71ef2cb061a02ec8c7aaf9ba1a74799f16 | [
"MIT"
] | null | null | null | BGFXWidget.cpp | PetrPPetrov/bgfx-qt5-win | 1008de71ef2cb061a02ec8c7aaf9ba1a74799f16 | [
"MIT"
] | 3 | 2019-12-13T10:42:30.000Z | 2020-11-12T12:51:41.000Z | #include <cassert>
#include <fstream>
#include "BGFXWidget.h"
struct PosColorVertex
{
float m_x;
float m_y;
float m_z;
uint32_t m_abgr;
static void init()
{
ms_layout
.begin()
.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float)
.add(bgfx::Attrib... | 33.017647 | 108 | 0.656155 | PetrPPetrov |
2d25ff4876071ba76ab86ad68633157e3eabee35 | 956 | hpp | C++ | android-28/android/content/res/AssetFileDescriptor_AutoCloseOutputStream.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/content/res/AssetFileDescriptor_AutoCloseOutputStream.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/content/res/AssetFileDescriptor_AutoCloseOutputStream.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../os/ParcelFileDescriptor_AutoCloseOutputStream.hpp"
class JByteArray;
namespace android::content::res
{
class AssetFileDescriptor;
}
namespace android::content::res
{
class AssetFileDescriptor_AutoCloseOutputStream : public android::os::ParcelFileDescriptor_AutoCloseOutputStream
{
pub... | 29.875 | 230 | 0.775105 | YJBeetle |
2d261fc49eb26146deb080dcd097a5bdaccac955 | 12,375 | cxx | C++ | PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskParticleRandomizer.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskParticleRandomizer.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskParticleRandomizer.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: R. Haake. *
* Contributors ... | 39.410828 | 563 | 0.699879 | wiechula |
2d303bab77750a62a03e74edfd4860b26dc3417a | 1,739 | cpp | C++ | dbms/src/Storages/ColumnDefault.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 85 | 2022-03-25T09:03:16.000Z | 2022-03-25T09:45:03.000Z | dbms/src/Storages/ColumnDefault.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 7 | 2022-03-25T08:59:10.000Z | 2022-03-25T09:40:13.000Z | dbms/src/Storages/ColumnDefault.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 11 | 2022-03-25T09:15:36.000Z | 2022-03-25T09:45:07.000Z | // Copyright 2022 PingCAP, Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 31.618182 | 106 | 0.703853 | solotzg |
2d331816394adba21c6cc67f263984cd71d3eda2 | 4,202 | hpp | C++ | src/sparse/KokkosSparse_spgemm.hpp | NexGenAnalytics/kokkos-kernels | 8381db0486674c1be943de23974821ddfb9e6c29 | [
"BSD-3-Clause"
] | null | null | null | src/sparse/KokkosSparse_spgemm.hpp | NexGenAnalytics/kokkos-kernels | 8381db0486674c1be943de23974821ddfb9e6c29 | [
"BSD-3-Clause"
] | 7 | 2020-05-04T16:43:08.000Z | 2022-01-13T16:31:17.000Z | src/sparse/KokkosSparse_spgemm.hpp | NexGenAnalytics/kokkos-kernels | 8381db0486674c1be943de23974821ddfb9e6c29 | [
"BSD-3-Clause"
] | null | null | null | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... | 42.444444 | 89 | 0.700857 | NexGenAnalytics |
2d3777ba79e78170975462232ac50090c9850def | 820 | cpp | C++ | src/Actions/Action_Help.cpp | PoetaKodu/cpp-pkg | 3d5cabf4e015f4727328db430a003c189aeed88a | [
"MIT"
] | 9 | 2021-05-07T21:18:26.000Z | 2022-02-01T20:44:13.000Z | src/Actions/Action_Help.cpp | PoetaKodu/pacc | 3d5cabf4e015f4727328db430a003c189aeed88a | [
"MIT"
] | null | null | null | src/Actions/Action_Help.cpp | PoetaKodu/pacc | 3d5cabf4e015f4727328db430a003c189aeed88a | [
"MIT"
] | null | null | null | #include PACC_PCH
#include <Pacc/App/App.hpp>
#include <Pacc/App/Help.hpp>
#include <Pacc/Helpers/Formatting.hpp>
///////////////////////////////////////////////////
void PaccApp::displayHelp(bool abbrev_)
{
auto programName = fs::u8path(args[0]).stem();
auto const& style = fmt_args::s();
// Introduction:
fmt:... | 20.5 | 77 | 0.576829 | PoetaKodu |
2d3a08f639ed2b9648dd61a154dd07fec0631e68 | 1,294 | cpp | C++ | Game!/main.cpp | leonore13/Game- | d984379f5e301700f973a692fc6b92e3ef852764 | [
"Apache-2.0"
] | null | null | null | Game!/main.cpp | leonore13/Game- | d984379f5e301700f973a692fc6b92e3ef852764 | [
"Apache-2.0"
] | null | null | null | Game!/main.cpp | leonore13/Game- | d984379f5e301700f973a692fc6b92e3ef852764 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// Game!
//
// Created by Sophia Nguyen on 2016-05-05.
// Copyright © 2016 Sophia Nguyen. All rights reserved.
//
// The story!
#include <iostream>
#include <string>
#include <cctype>
#include <vector>
#include "Character.hpp"
using namespace std;
int main() {
string char_name;
int age;... | 28.130435 | 502 | 0.623648 | leonore13 |
2d3c4a6ec4f2c2c3a8e7522af43e7e1c1601aeee | 1,312 | hpp | C++ | game/include/Components/PieceComponent.hpp | Hvvang/Puzzle | 0f798e3d1f4388b255a7a393b8671e4d1930cdb0 | [
"MIT"
] | null | null | null | game/include/Components/PieceComponent.hpp | Hvvang/Puzzle | 0f798e3d1f4388b255a7a393b8671e4d1930cdb0 | [
"MIT"
] | null | null | null | game/include/Components/PieceComponent.hpp | Hvvang/Puzzle | 0f798e3d1f4388b255a7a393b8671e4d1930cdb0 | [
"MIT"
] | null | null | null | #pragma once
#include <EntityManager.hpp>
#include <Components/Sprite.hpp>
#include <Components/TileComponent.hpp>
#include <array>
#include <memory>
class TileComponent;
using ::Engine::ECS::Entity;
using ::Engine::ECS::Component;
using ::Engine::ECS::Sprite;
using ::Engine::Math::Vector2i;
using ::Engine::Math::o... | 24.296296 | 77 | 0.603659 | Hvvang |
2d3e51c7d7d3345024272f6b973d84b86d115a67 | 6,126 | cpp | C++ | src/graphics/deferredrenderer.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | src/graphics/deferredrenderer.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | src/graphics/deferredrenderer.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | #include "deferredrenderer.h"
#include "irenderer.h"
#include "quadmesh.h"
#include "gl/shadermodule.h"
#include "../utils/ioutils.h"
#include "../settings.h"
namespace TankGame
{
constexpr GLenum DeferredRenderer::COLOR_FORMAT;
constexpr GLenum DeferredRenderer::NORMALS_AND_SPECULAR_FORMAT;
constexpr GLenum Deferr... | 37.353659 | 127 | 0.773425 | Eae02 |
2d42214c1315403d801c760de700eb2f2bf6f190 | 14,820 | cpp | C++ | SRC/DVD/MountSDK.cpp | ogamespec/dolwin | 7aaa864f9070ec14193f39f2e387087ccd5d0a93 | [
"CC0-1.0"
] | 107 | 2015-09-07T21:28:32.000Z | 2022-02-14T03:13:01.000Z | SRC/DVD/MountSDK.cpp | emu-russia/dolwin | 7aaa864f9070ec14193f39f2e387087ccd5d0a93 | [
"CC0-1.0"
] | 116 | 2020-03-11T16:42:02.000Z | 2021-05-27T17:05:40.000Z | SRC/DVD/MountSDK.cpp | ogamespec/dolwin | 7aaa864f9070ec14193f39f2e387087ccd5d0a93 | [
"CC0-1.0"
] | 8 | 2017-05-18T21:01:19.000Z | 2021-04-30T11:28:14.000Z | /*
Code for mounting the Dolphin SDK folder as a virtual disk.
All the necessary data (BI2, Appldr, some DOL executable, we take from the SDK). If they are not there, then the disk is simply not mounted.
*/
#include "pch.h"
using namespace Debug;
namespace DVD
{
MountDolphinSdk::MountDolphinSdk(const wchar_t * Dol... | 23.449367 | 194 | 0.65803 | ogamespec |
2d43135d6fbc1a59c5f322668622952109189dd4 | 1,240 | cpp | C++ | tests/inputreader_tests.cpp | Stellaris-code/PEGLib | e106be64c9b2b5ad91b5a580e5c0a722082ef79b | [
"MIT"
] | 1 | 2017-08-18T11:31:33.000Z | 2017-08-18T11:31:33.000Z | tests/inputreader_tests.cpp | Stellaris-code/PEGLib | e106be64c9b2b5ad91b5a580e5c0a722082ef79b | [
"MIT"
] | null | null | null | tests/inputreader_tests.cpp | Stellaris-code/PEGLib | e106be64c9b2b5ad91b5a580e5c0a722082ef79b | [
"MIT"
] | null | null | null | /* inputreader_tests.cpp %{Cpp:License:ClassName} - Yann BOUCHER (yann) 20
**
**
** DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
** Version 2, December 2004
**
** Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
**
** Everyone is permitted to copy and distribute verbatim or modified
** cop... | 26.382979 | 75 | 0.679032 | Stellaris-code |
2d446a4cf725b8535908871c9e316e9f9f518747 | 604 | hpp | C++ | android-31/android/app/appsearch/SetSchemaResponse.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/app/appsearch/SetSchemaResponse.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-31/android/app/appsearch/SetSchemaResponse.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../../JObject.hpp"
namespace android::app::appsearch
{
class SetSchemaResponse : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit SetSchemaResponse(const char *className, const char *sig, Ts...agv) : JObject(className, sig, std::forward<T... | 23.230769 | 158 | 0.706954 | YJBeetle |
2d4577a61f63ba366c8fa2aca81a7e3dc355fe10 | 1,711 | cpp | C++ | util/qtAbstractSetting.cpp | BetsyMcPhail/qtextensions | b2848e06ebba4c39dc63caa2363abc50db75f9d9 | [
"BSD-3-Clause"
] | 1 | 2017-07-31T07:08:05.000Z | 2017-07-31T07:08:05.000Z | util/qtAbstractSetting.cpp | BetsyMcPhail/qtextensions | b2848e06ebba4c39dc63caa2363abc50db75f9d9 | [
"BSD-3-Clause"
] | null | null | null | util/qtAbstractSetting.cpp | BetsyMcPhail/qtextensions | b2848e06ebba4c39dc63caa2363abc50db75f9d9 | [
"BSD-3-Clause"
] | null | null | null | /*ckwg +5
* Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "qtAbstractSetting.h"
#include <QSettings>
//-------------------------------------... | 28.516667 | 79 | 0.462887 | BetsyMcPhail |
2d45bbd5e06e0a437259e7fa31a2cf68738d2740 | 1,290 | cc | C++ | auditd/src/audit_interface.cc | BenHuddleston/kv_engine | 78123c9aa2c2feb24b7c31eecc862bf2ed6325e4 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | auditd/src/audit_interface.cc | BenHuddleston/kv_engine | 78123c9aa2c2feb24b7c31eecc862bf2ed6325e4 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | auditd/src/audit_interface.cc | BenHuddleston/kv_engine | 78123c9aa2c2feb24b7c31eecc862bf2ed6325e4 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2016-Present Couchbase, Inc.
*
* Use of this software is governed by the Business Source License included
* in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
* in that file, in accordance... | 31.463415 | 79 | 0.646512 | BenHuddleston |
2d4c24308bdb7e7553f8c70d8eeff07c8360fdd9 | 1,025 | hh | C++ | plugins/gui/abstract-gui.hh | Schroedingers-Cat/clap-examples | 9cbf04216316ca5bccb75b884906caa15766440b | [
"MIT"
] | null | null | null | plugins/gui/abstract-gui.hh | Schroedingers-Cat/clap-examples | 9cbf04216316ca5bccb75b884906caa15766440b | [
"MIT"
] | null | null | null | plugins/gui/abstract-gui.hh | Schroedingers-Cat/clap-examples | 9cbf04216316ca5bccb75b884906caa15766440b | [
"MIT"
] | null | null | null | #pragma once
#include <clap/clap.h>
namespace clap {
class CorePlugin;
class AbstractGuiListener;
class AbstractGui {
public:
AbstractGui(AbstractGuiListener &listener);
virtual ~AbstractGui();
virtual void defineParameter(const clap_param_info ¶mInfo) = 0;
virtual void updat... | 26.973684 | 88 | 0.684878 | Schroedingers-Cat |
2d4c3ec94e49c50d982126d1b2384bbd8c865ebf | 255 | cpp | C++ | code3.cpp | gaosiqiang/CSCode | cce6f63d74cca5fd843ac6a734809cc481b6d618 | [
"MIT"
] | null | null | null | code3.cpp | gaosiqiang/CSCode | cce6f63d74cca5fd843ac6a734809cc481b6d618 | [
"MIT"
] | null | null | null | code3.cpp | gaosiqiang/CSCode | cce6f63d74cca5fd843ac6a734809cc481b6d618 | [
"MIT"
] | null | null | null | #include <iostream>
//循环结构
int main(int argc, char const *argv[])
{
//输出小于a的自然数
int a;
std::cout << "请输入一个整数";
std::cin >> a;
if (a > 0) {
for (int i = 0; i < a; ++i)
{
std::cout << i << std::endl;
}
} else {
std::cout << "不得小于1";
}
} | 12.75 | 38 | 0.494118 | gaosiqiang |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.