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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ef28a3e742e00d6060f6347536fc6e260a99bc73 | 1,090 | cpp | C++ | 13/01.cpp | philipplenk/adventofcode21 | 5258525ce5011a63157e3b705329e8a76d2f5110 | [
"BSD-2-Clause"
] | null | null | null | 13/01.cpp | philipplenk/adventofcode21 | 5258525ce5011a63157e3b705329e8a76d2f5110 | [
"BSD-2-Clause"
] | null | null | null | 13/01.cpp | philipplenk/adventofcode21 | 5258525ce5011a63157e3b705329e8a76d2f5110 | [
"BSD-2-Clause"
] | null | null | null | #include <advent.hpp>
#include <iostream>
#include <sstream>
#include <string>
#include <unordered_set>
#include <vector>
using namespace advent;
struct fold_instruction
{
int value;
char axis;
};
int main(int argc, char* argv[])
{
std::vector<point2d> coordinates;
std::vector<fold_instruction> instructions;
... | 20.566038 | 69 | 0.672477 | philipplenk |
ef3017089b0bf2e977c2e9f9e2a3f6dbfad8d434 | 1,606 | cpp | C++ | test/algorithm/move_test.cpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | test/algorithm/move_test.cpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | test/algorithm/move_test.cpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <nek/algorithm/move.hpp>
#include <gtest/gtest.h>
TEST(move_test, raw_array)
{
// setup
int src[4] = {1, 2, 3, 4};
int dest[4] = {};
// exercise
nek::move(src, src + 4, dest);
// verify
EXPECT_EQ(1, dest[0]);
EXPECT_EQ(2, dest[1]);
EXPECT_EQ(3, dest[... | 20.589744 | 83 | 0.532379 | nekko1119 |
ef34bd98320a22d14f451a097ee118012af2dcbf | 10,398 | cc | C++ | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/PushButtonItem.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/PushButtonItem.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/PushButtonItem.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/PushButtonItem.cc,v 1.8 1992/09/08 16:40:43 lewis Exp $
*
* TODO:
*
* Changes:
* $Log: PushButtonItem.cc,v $
* Revision 1.8 1992/09/08 16:40:43 lewis
* Renamed NULL -> Nil.
*
* Revision 1.7 1992/09/... | 25.865672 | 122 | 0.67061 | SophistSolutions |
ef358cf0a73ae95021c2f85a00d0cb75c63490d1 | 100,639 | cc | C++ | protocal/routing/topo_graph.pb.cc | racestart/g2r | d115ebaab13829d716750eab2ebdcc51d79ff32e | [
"Apache-2.0"
] | 1 | 2020-03-05T12:49:21.000Z | 2020-03-05T12:49:21.000Z | protocal/routing/topo_graph.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | null | null | null | protocal/routing/topo_graph.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | 1 | 2020-03-25T15:06:39.000Z | 2020-03-25T15:06:39.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: routing/topo_graph.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "routing/topo_graph.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stub... | 34.418263 | 124 | 0.701935 | racestart |
ef35d3b080c48164d2903d2ae8f256a990c61dfd | 3,077 | cc | C++ | demos/29_upstream/29_upstream_random.cc | chanchann/workflow_annotation | f986e65af82a91d9257a655ba7a4ece272b89c26 | [
"MIT"
] | 66 | 2021-10-17T11:54:11.000Z | 2022-03-29T13:05:02.000Z | demos/29_upstream/29_upstream_random.cc | xjchilli/workflow_annotation | e91795aa91ee6c0d40f1ca0edd7e9c1338479e77 | [
"MIT"
] | 1 | 2021-11-24T18:37:18.000Z | 2021-11-29T12:49:47.000Z | demos/29_upstream/29_upstream_random.cc | xjchilli/workflow_annotation | e91795aa91ee6c0d40f1ca0edd7e9c1338479e77 | [
"MIT"
] | 17 | 2021-09-27T03:47:50.000Z | 2022-03-22T08:22:12.000Z | #include <workflow/UpstreamManager.h>
#include <workflow/WFHttpServer.h>
#include <workflow/WFTaskFactory.h>
#include <workflow/WFFacilities.h>
#include <workflow/UpstreamPolicies.h>
#include <workflow/StringUtil.h>
#include <vector>
#include <string>
/*
基本原理
随机选择一个目标
如果try_another配置为true,那么将在所有存活的目标中随机选择一个
仅在main中选择... | 30.166667 | 90 | 0.688008 | chanchann |
ef373c19f4908182cf9fb381d4642bfa7cf40990 | 24,436 | cpp | C++ | matlab_code/jjcao_code-head/toolbox/jjcao_point/mex/show_pts_gl/show_pts_gl.cpp | joycewangsy/normals_pointnet | fc74a8ed1a009b18785990b1b4c20eda0549721c | [
"MIT"
] | null | null | null | matlab_code/jjcao_code-head/toolbox/jjcao_point/mex/show_pts_gl/show_pts_gl.cpp | joycewangsy/normals_pointnet | fc74a8ed1a009b18785990b1b4c20eda0549721c | [
"MIT"
] | null | null | null | matlab_code/jjcao_code-head/toolbox/jjcao_point/mex/show_pts_gl/show_pts_gl.cpp | joycewangsy/normals_pointnet | fc74a8ed1a009b18785990b1b4c20eda0549721c | [
"MIT"
] | null | null | null | #pragma warning(disable : 4244 4290 4305 4800 4996)
#include <yvals.h>
#if (_MSC_VER >= 1600)
#define __STDC_UTF_16__
#endif
#include <mex.h>
#pragma comment(lib, "libmex.lib")
#pragma comment(lib, "libmx.lib")
#include <iostream>
#include <sstream>
#include <numeric>
#include <GL/glut.h>
#include "myutil.h"
#includ... | 28.952607 | 150 | 0.639917 | joycewangsy |
ef37b15a0f9b5aa838b75d15210e281d9c6153d5 | 967 | cpp | C++ | codeforces/B - Preparation for International Women's Day/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/B - Preparation for International Women's Day/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/B - Preparation for International Women's Day/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: * kzvd4729 created: Mar/07/2019 21:28
* solution_verdict: Accepted language: GNU C++14
* run... | 40.291667 | 111 | 0.380558 | kzvd4729 |
ef380834876413f3c3ec2d13cb70721369bc635d | 7,888 | cpp | C++ | Source/FileJoinerStub/JoinerWindow.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | 3 | 2020-08-20T18:57:52.000Z | 2021-12-13T03:11:19.000Z | Source/FileJoinerStub/JoinerWindow.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | 22 | 2020-02-24T21:40:44.000Z | 2021-04-18T15:07:15.000Z | Source/FileJoinerStub/JoinerWindow.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2002 Ramshankar (aka Teknomancer).
// Copyright (c) 2011 Chris Roberts.
// All rights reserved.
#include "JoinerWindow.h"
#include "AppConstants.h"
#include "BevelView.h"
#include "Joiner.h"
#include "Shared.h"
#include "UIConstants.h"
#include <Application.h>... | 34.147186 | 122 | 0.615492 | Teknomancer |
ef3e1acd1db584af0ec815d1c5f75c51219bf02c | 2,476 | hpp | C++ | libs/core/include/fcppt/container/grid/pos_range_impl.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/container/grid/pos_range_impl.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/container/grid/pos_range_impl.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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)
#ifndef FCPPT_CONTAINER_GRID_POS_RANGE_IMPL_HPP_INCLUDED
#define FCPPT_CONTAINER_GRID_POS_RANGE_IMP... | 36.411765 | 90 | 0.763732 | freundlich |
ef419883f6001262225bbdba11091d76f9e0ce31 | 2,663 | cpp | C++ | listas_PO/fluxo_minimo_hiller/src/main.cpp | Tassany/Pesquisa_Operacional | 93890fef63dfd48a0e7867bf681ec01e05560fdc | [
"MIT"
] | null | null | null | listas_PO/fluxo_minimo_hiller/src/main.cpp | Tassany/Pesquisa_Operacional | 93890fef63dfd48a0e7867bf681ec01e05560fdc | [
"MIT"
] | null | null | null | listas_PO/fluxo_minimo_hiller/src/main.cpp | Tassany/Pesquisa_Operacional | 93890fef63dfd48a0e7867bf681ec01e05560fdc | [
"MIT"
] | null | null | null | #include "../include/Data.hpp"
#include <stdio.h>
#include <iostream>
#include <ilcplex/ilocplex.h>
void solve(Data& data);
int main(int argc, char** argv)
{
if(argc != 2)
{
printf("Usage:\n./tas instance\n");
return 0;
}
Data data(argv[1]);
solve(data);
return 0;
}
void s... | 23.776786 | 109 | 0.513706 | Tassany |
ef447a3901cc3b3c8cc06fc0cc3be01f0384ecac | 22,402 | cpp | C++ | src/chainparams.cpp | QRAX-LABS/QRAX | 951ed45d473b7ab8c74bf35ff794e97169736d0c | [
"MIT"
] | 2 | 2021-12-29T14:10:03.000Z | 2022-02-19T09:24:37.000Z | src/chainparams.cpp | QRAX-LABS/QRAX | 951ed45d473b7ab8c74bf35ff794e97169736d0c | [
"MIT"
] | null | null | null | src/chainparams.cpp | QRAX-LABS/QRAX | 951ed45d473b7ab8c74bf35ff794e97169736d0c | [
"MIT"
] | null | null | null | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php... | 47.765458 | 242 | 0.72873 | QRAX-LABS |
ef466860e4dd2efcace0855e5e2582b9485dcc5f | 101 | cpp | C++ | openexr-c/abigen/imf_image.cpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 7 | 2021-06-04T20:59:16.000Z | 2022-02-11T01:00:42.000Z | openexr-c/abigen/imf_image.cpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 35 | 2021-05-14T04:28:22.000Z | 2021-12-30T12:08:40.000Z | openexr-c/abigen/imf_image.cpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 5 | 2021-05-15T04:02:56.000Z | 2021-07-02T05:38:01.000Z | #include <OpenEXR/ImfImage.h>
#include "imf_image.hpp"
void abi_gen_imf_image(std::ostream& os) {
}
| 16.833333 | 42 | 0.742574 | vfx-rs |
ef4a4493a11a524dff28f94e0e96bca610730202 | 832 | hpp | C++ | src/Sudoku/Cell.hpp | Pafnoutios/libsudoku | 9d700716895d46f71e854133a1135ab6047b3f88 | [
"MIT"
] | null | null | null | src/Sudoku/Cell.hpp | Pafnoutios/libsudoku | 9d700716895d46f71e854133a1135ab6047b3f88 | [
"MIT"
] | null | null | null | src/Sudoku/Cell.hpp | Pafnoutios/libsudoku | 9d700716895d46f71e854133a1135ab6047b3f88 | [
"MIT"
] | null | null | null | #pragma once
#include "Size.hpp"
#include "SliceType.hpp"
#include <array>
#include <vector>
namespace Sudoku
{
class Slice;
class Cell
{
public:
static const int Unassigned = -1;
Cell(const Size& size);
void assignMembership(SliceType index, Slice& slice);
bool isPossible(int i) const;... | 19.809524 | 85 | 0.685096 | Pafnoutios |
ef4a482e4cdaccf8e9b2bb0a02584f28fd3615bd | 20 | cpp | C++ | JRPG/JRPG/IState.cpp | JackMalone1/JRPG | f148b8f9ccef86d95dd8ccc165167ece83c3b0ea | [
"MIT"
] | 1 | 2020-05-18T18:51:16.000Z | 2020-05-18T18:51:16.000Z | JRPG/JRPG/IState.cpp | JackMalone1/JRPG | f148b8f9ccef86d95dd8ccc165167ece83c3b0ea | [
"MIT"
] | null | null | null | JRPG/JRPG/IState.cpp | JackMalone1/JRPG | f148b8f9ccef86d95dd8ccc165167ece83c3b0ea | [
"MIT"
] | null | null | null | #include "IState.h"
| 10 | 19 | 0.7 | JackMalone1 |
ef5de01a037fe805a792d917c2316f8ffe19d737 | 3,115 | cpp | C++ | oomact_toy_examples/src/example1.cpp | OnyxBlack7/oomact | 5ae5fbbaddaf58e2fc24adaabedf711619934ac9 | [
"BSD-3-Clause"
] | 21 | 2017-06-19T13:57:59.000Z | 2022-02-20T02:40:58.000Z | oomact_toy_examples/src/example1.cpp | OnyxBlack7/oomact | 5ae5fbbaddaf58e2fc24adaabedf711619934ac9 | [
"BSD-3-Clause"
] | 19 | 2017-05-10T09:11:25.000Z | 2019-03-11T16:41:36.000Z | oomact_toy_examples/src/example1.cpp | OnyxBlack7/oomact | 5ae5fbbaddaf58e2fc24adaabedf711619934ac9 | [
"BSD-3-Clause"
] | 11 | 2017-06-19T13:39:12.000Z | 2022-03-16T19:53:27.000Z | #include <glog/logging.h>
#include <sm/boost/null_deleter.hpp>
#include <aslam/calibration/model/FrameGraphModel.h>
#include <aslam/calibration/model/sensors/MotionCaptureSensor.h>
#include <aslam/calibration/model/PoseTrajectory.h>
#include "aslam/calibration/calibrator/CalibratorI.h"
#include "aslam/calibration/in... | 39.43038 | 196 | 0.731621 | OnyxBlack7 |
ef5eda94bebd3e3fb6cb1490071619de2981971c | 10,887 | hpp | C++ | ShadowPeople/Types.hpp | SamuelSiltanen/ShadowPeople | 58f94a4397dc5084d9705d4378599cae480b4776 | [
"Apache-2.0"
] | null | null | null | ShadowPeople/Types.hpp | SamuelSiltanen/ShadowPeople | 58f94a4397dc5084d9705d4378599cae480b4776 | [
"Apache-2.0"
] | null | null | null | ShadowPeople/Types.hpp | SamuelSiltanen/ShadowPeople | 58f94a4397dc5084d9705d4378599cae480b4776 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2018 Samuel Siltanen
Types.hpp
*/
#pragma once
#include <array>
#include <vector>
#include <string>
#include <memory>
template<int N>
class BooleanVector
{
public:
BooleanVector(bool fillValue = false)
{
for (int i = 0; i < N; i++)
{
m_elements[i] = fillValue;
}
}
BooleanVector(std... | 20.311567 | 110 | 0.62616 | SamuelSiltanen |
ef60f8c4ff33d376ee5f68ea9c66bff9c9921506 | 7,258 | cpp | C++ | AppViewClasses/VisualView.cpp | dekieras/GLEANApp | 3cae6aa53f90f0c950f3097edcda5193b6b89fe8 | [
"MIT"
] | 3 | 2017-04-06T21:37:22.000Z | 2020-10-05T12:46:50.000Z | AppViewClasses/VisualView.cpp | dekieras/GLEANApp | 3cae6aa53f90f0c950f3097edcda5193b6b89fe8 | [
"MIT"
] | null | null | null | AppViewClasses/VisualView.cpp | dekieras/GLEANApp | 3cae6aa53f90f0c950f3097edcda5193b6b89fe8 | [
"MIT"
] | null | null | null | /*
* VisualView.cpp
*
* Created by David Kieras on 12/20/06.
* Copyright 2006 University of Michigan. All rights reserved.
*
*/
#include "VisualView.h"
#include "VisualViewObject.h"
#include "GLEANKernel/Standard_symbols.h"
#include "AppColorUtilities.h"
#include "Color_map.h"
#include "GLEANKernel/Utility_te... | 29.504065 | 125 | 0.711629 | dekieras |
ef67da81976f11bb8f3d88c9c38e2ba4553bf6f9 | 2,098 | hpp | C++ | cslibs_ndt/include/cslibs_ndt/matching/ceres/local_parameterization.hpp | doge-of-the-day/cslibs_ndt | f326d05d5bde9750ad595790849eb2ac9a747123 | [
"BSD-3-Clause"
] | 36 | 2018-10-17T07:00:23.000Z | 2021-12-22T15:41:50.000Z | cslibs_ndt/include/cslibs_ndt/matching/ceres/local_parameterization.hpp | doge-of-the-day/cslibs_ndt | f326d05d5bde9750ad595790849eb2ac9a747123 | [
"BSD-3-Clause"
] | 4 | 2018-10-04T14:16:28.000Z | 2020-11-26T10:03:14.000Z | cslibs_ndt/include/cslibs_ndt/matching/ceres/local_parameterization.hpp | doge-of-the-day/cslibs_ndt | f326d05d5bde9750ad595790849eb2ac9a747123 | [
"BSD-3-Clause"
] | 18 | 2018-07-15T14:39:56.000Z | 2021-05-05T11:12:51.000Z | #ifndef CSLIBS_NDT_MATCHING_CERES_LOCAL_PARAMETERIZATION_HPP
#define CSLIBS_NDT_MATCHING_CERES_LOCAL_PARAMETERIZATION_HPP
#include <ceres/autodiff_local_parameterization.h>
#include <ceres/rotation.h>
namespace cslibs_ndt {
namespace matching {
namespace ceres {
template <typename T>
inline T clamp(const T& value, c... | 26.556962 | 89 | 0.64776 | doge-of-the-day |
ef6e0355c089bdeb8964147add1ed625e438ac44 | 6,425 | cpp | C++ | src/Broadcaster2006/Source/DigitalLeftView.cpp | pedroroque/DigitalBroadcaster | 279e65b348421dcd8db53ebb588154b85dc169e9 | [
"MIT"
] | null | null | null | src/Broadcaster2006/Source/DigitalLeftView.cpp | pedroroque/DigitalBroadcaster | 279e65b348421dcd8db53ebb588154b85dc169e9 | [
"MIT"
] | null | null | null | src/Broadcaster2006/Source/DigitalLeftView.cpp | pedroroque/DigitalBroadcaster | 279e65b348421dcd8db53ebb588154b85dc169e9 | [
"MIT"
] | null | null | null | // DigitalLeftView.cpp : implementation file
//
#include "stdafx.h"
#include "..\include\DigitalLeftView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern CImageList *g_ilTree;
extern UINT g_nFormat;
//////////////////////////////////////////////////////////... | 22.079038 | 109 | 0.717198 | pedroroque |
ef79bae634b9b9cf896063dd687a8d1fd402d614 | 5,616 | hpp | C++ | VSRootAnalysis/VSRFunctor.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | 1 | 2018-04-17T14:03:36.000Z | 2018-04-17T14:03:36.000Z | VSRootAnalysis/VSRFunctor.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | VSRootAnalysis/VSRFunctor.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | //-*-mode:c++; mode:font-lock;-*-
#ifndef VSRFUNCTOR_HPP
#define VSRFUNCTOR_HPP
#include <TF1.h>
#include <TGraph.h>
#include <TVector.h>
#include <VSNSpace.hpp>
class VSRFunctor
{
public:
VSRFunctor() {}
virtual ~VSRFunctor() {}
virtual double operator() (const std::vector< double >& x) const = 0;
virtual... | 24.206897 | 79 | 0.555377 | sfegan |
ef7be295ab9a7e37a2bb12436cdae1f234b26b3c | 1,394 | hpp | C++ | include/gamelib/core/update/UpdateSystem.hpp | mall0c/GameLib | df4116b53c39be7b178dd87f7eb0fe32a94d00d3 | [
"MIT"
] | 1 | 2020-02-17T09:53:36.000Z | 2020-02-17T09:53:36.000Z | include/gamelib/core/update/UpdateSystem.hpp | mall0c/GameLib | df4116b53c39be7b178dd87f7eb0fe32a94d00d3 | [
"MIT"
] | null | null | null | include/gamelib/core/update/UpdateSystem.hpp | mall0c/GameLib | df4116b53c39be7b178dd87f7eb0fe32a94d00d3 | [
"MIT"
] | null | null | null | #ifndef GAMELIB_UPDATE_SYSTEM_HPP
#define GAMELIB_UPDATE_SYSTEM_HPP
#include "gamelib/utils/SlotMap.hpp"
#include "gamelib/core/Subsystem.hpp"
#include "Updatable.hpp"
/*
* Updates all registered UpdateComponents in the given intervals.
* The frametime between individual updates is saved and passed to the object
*... | 21.446154 | 77 | 0.596844 | mall0c |
ef82c6433da9e69398ee70d849069f5b656be038 | 3,665 | hpp | C++ | csf_workspace/csf/include/core/system/message/csf_message.hpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | 2 | 2019-12-17T13:16:48.000Z | 2019-12-17T13:16:51.000Z | csf_workspace/csf/include/core/system/message/csf_message.hpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | null | null | null | csf_workspace/csf/include/core/system/message/csf_message.hpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | null | null | null | /*******************************************************************************
*
*Copyright: armuxinxian@aliyun.com
*
*File name: csf_message.hpp
*
*Author: f
*
*Version: 1.0
*
*Date: 27-6月-2018 17:28:43
*
*Description: Class(csf_message)
*
*Others:
*
*History:
*******************************************************... | 19.494681 | 139 | 0.549523 | Kitty-Kitty |
ef8346d451ad23ace572d565ad2d628c0519b374 | 3,149 | cpp | C++ | tap/core/opaque.cpp | tsavola/tap | e7b5dea6b0e9c7ebbb2710842ebfb62352cb54cc | [
"BSD-2-Clause"
] | 1 | 2019-12-09T20:55:59.000Z | 2019-12-09T20:55:59.000Z | tap/core/opaque.cpp | tsavola/tap | e7b5dea6b0e9c7ebbb2710842ebfb62352cb54cc | [
"BSD-2-Clause"
] | null | null | null | tap/core/opaque.cpp | tsavola/tap | e7b5dea6b0e9c7ebbb2710842ebfb62352cb54cc | [
"BSD-2-Clause"
] | null | null | null | #include "core.hpp"
#include <cstring>
#define TAP_OPAQUE_PREFIX "tap.core.opaque."
namespace tap {
struct OpaqueObject {
PyObject_HEAD
};
static PyObject *opaque_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) noexcept
{
return type->tp_alloc(type, 0);
}
static void opaque_dealloc(PyObject *opaque) ... | 21.134228 | 112 | 0.712607 | tsavola |
ef85120a5db26eb0a04510d3f279553943b5b94e | 262 | cpp | C++ | Schweizer-Messer/numpy_eigen/src/autogen_test_module/test_2_1_double.cpp | mmmspatz/kalibr | e2e881e5d25d378f0c500c67e00532ee1c1082fd | [
"BSD-4-Clause"
] | null | null | null | Schweizer-Messer/numpy_eigen/src/autogen_test_module/test_2_1_double.cpp | mmmspatz/kalibr | e2e881e5d25d378f0c500c67e00532ee1c1082fd | [
"BSD-4-Clause"
] | null | null | null | Schweizer-Messer/numpy_eigen/src/autogen_test_module/test_2_1_double.cpp | mmmspatz/kalibr | e2e881e5d25d378f0c500c67e00532ee1c1082fd | [
"BSD-4-Clause"
] | null | null | null | #include <eigen3/Eigen/Core>
#include <numpy_eigen/boost_python_headers.hpp>
Eigen::Matrix<double, 2, 1> test_double_2_1(const Eigen::Matrix<double, 2, 1> & M)
{
return M;
}
void export_double_2_1()
{
boost::python::def("test_double_2_1",test_double_2_1);
}
| 20.153846 | 82 | 0.740458 | mmmspatz |
ef85265bf7c777783d0b92a80219ec64be7dd7b1 | 47 | hpp | C++ | src/boost_context_execution_context.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_context_execution_context.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_context_execution_context.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/context/execution_context.hpp>
| 23.5 | 46 | 0.829787 | miathedev |
ef8d4737469b60584cd3015ab89c89412dd5e937 | 4,341 | hh | C++ | spot/spot/twaalgos/product.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2018-03-02T14:29:57.000Z | 2018-03-02T14:29:57.000Z | spot/spot/twaalgos/product.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | null | null | null | spot/spot/twaalgos/product.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2015-06-05T12:42:07.000Z | 2015-06-05T12:42:07.000Z | // -*- coding: utf-8 -*-
// Copyright (C) 2014, 2015 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
// Spot is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// th... | 39.463636 | 72 | 0.698917 | mcc-petrinets |
ef8f41be8eecef8459e7bb15e0860223c1140b26 | 279 | cpp | C++ | leetcode55.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | leetcode55.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | leetcode55.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | class Solution {
public:
bool canJump(vector<int>& nums) {
int maxRange = 0;
for(int i = 0; i < nums.size(); i++)
{
if(maxRange < i) return false;
maxRange = max(maxRange, i+nums[i]);
}
return true;
}
}; | 23.25 | 49 | 0.46595 | SJTUGavinLiu |
aab72aca7f3cd8766e05c6c02934a617f8e44258 | 1,906 | hpp | C++ | linked_list/include/linkedlist_header.hpp | raikken/data-struct-sample | 24e4a3113991f81693156aa244b0e135d282e585 | [
"MIT"
] | 1 | 2019-12-07T02:42:48.000Z | 2019-12-07T02:42:48.000Z | linked_list/include/linkedlist_header.hpp | Raikkenon/data-struct-sample | 24e4a3113991f81693156aa244b0e135d282e585 | [
"MIT"
] | null | null | null | linked_list/include/linkedlist_header.hpp | Raikkenon/data-struct-sample | 24e4a3113991f81693156aa244b0e135d282e585 | [
"MIT"
] | null | null | null | /**
* @file: linkedList.cpp
* @author: xxx
* @mail: xxx@yyy.com
* @date 2019-10-30 22:14:08
* @brief
**/
#include<iostream>
#include<vector>
#include<unordered_map>
//#include "reverse.hpp"
using namespace std;
#ifndef LINKEDNODE_H__
#define LINKEDNODE_H__
class LinkedNode{
//private:
// int _data;
//... | 25.078947 | 91 | 0.625393 | raikken |
aab916a7d55c57461fe7c00689a756f114591263 | 62 | hpp | C++ | hack-test/nim_cpp_importcpp/cxtype.hpp | haxscramper/hax-nim | be5c8b781a756fe51d572ec2d1da44006c575bfa | [
"BSD-2-Clause"
] | 1 | 2020-10-10T18:38:29.000Z | 2020-10-10T18:38:29.000Z | hack-test/nim_cpp_importcpp/double-wrap-type/cxtype.hpp | haxscramper/hax-nim | be5c8b781a756fe51d572ec2d1da44006c575bfa | [
"BSD-2-Clause"
] | null | null | null | hack-test/nim_cpp_importcpp/double-wrap-type/cxtype.hpp | haxscramper/hax-nim | be5c8b781a756fe51d572ec2d1da44006c575bfa | [
"BSD-2-Clause"
] | null | null | null | #pragma once
struct S {};
S hello() {
}
void world(S s) {
}
| 6.888889 | 17 | 0.548387 | haxscramper |
aabb7442893d8983dfb943e6d056d1229595a6c5 | 1,219 | hpp | C++ | python/proxy.hpp | t-ikegami/ELAI | 0d86040a375df852f681af6ca53f62eb10e1933b | [
"Apache-2.0"
] | null | null | null | python/proxy.hpp | t-ikegami/ELAI | 0d86040a375df852f681af6ca53f62eb10e1933b | [
"Apache-2.0"
] | null | null | null | python/proxy.hpp | t-ikegami/ELAI | 0d86040a375df852f681af6ca53f62eb10e1933b | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include "Elai/vector.hpp"
#include "Elai/matrix.hpp"
#include "Elai/bicgstab.hpp"
volatile bool debug = true;
void
DebugStop(void)
{
while (debug) {
sleep(1);
}
}
std::vector< int >*
NewStdVector(int nelems, int *data)
{
... | 16.930556 | 71 | 0.612797 | t-ikegami |
aabeeb9339e85bb69e0e9df51776d03ad531a938 | 701 | hpp | C++ | include/lol/def/LolStoreLoginDataPacket.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolStoreLoginDataPacket.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolStoreLoginDataPacket.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
#include "LolStoreSimpleDialogMessage.hpp"
#include "LolStoreAllSummonerData.hpp"
namespace lol {
struct LolStoreLoginDataPacket {
LolStoreAllSummonerData allSummonerData;
std::vector<LolStoreSimpleDialogMessage> simpleMessages;
};
inline void to_json(json& j, co... | 38.944444 | 95 | 0.747504 | Maufeat |
aac0cbba95a4beba9625aa5a5689abac5325cb1e | 1,988 | hpp | C++ | src/CursATE/Curses/detail/StringDataSource.ut.hpp | qiagen/LogATE | aa43595c89bf3bcaa302d8406e5ad789efc0e035 | [
"BSD-2-Clause"
] | null | null | null | src/CursATE/Curses/detail/StringDataSource.ut.hpp | qiagen/LogATE | aa43595c89bf3bcaa302d8406e5ad789efc0e035 | [
"BSD-2-Clause"
] | null | null | null | src/CursATE/Curses/detail/StringDataSource.ut.hpp | qiagen/LogATE | aa43595c89bf3bcaa302d8406e5ad789efc0e035 | [
"BSD-2-Clause"
] | 3 | 2021-01-12T18:52:49.000Z | 2021-01-19T17:48:50.000Z | #pragma once
#include "CursATE/Curses/DataSource.hpp"
#include <map>
namespace CursATE::Curses::detail
{
struct StringDataSource: public DataSource
{
size_t index(Id const& id) const override
{
const auto it = data_.find(id);
return std::distance( data_.begin(), it );
};
size_t size() const override ... | 19.490196 | 89 | 0.56338 | qiagen |
aac2bc9c562ca2fd0b2a919f6a64e025496fc476 | 1,485 | cpp | C++ | 3D Graphics - Summative 1/Main.cpp | ferp132/OpenGL | 2d5387915f3bf80b44b7c078dd9d6bdbb1c69f6f | [
"MIT"
] | null | null | null | 3D Graphics - Summative 1/Main.cpp | ferp132/OpenGL | 2d5387915f3bf80b44b7c078dd9d6bdbb1c69f6f | [
"MIT"
] | null | null | null | 3D Graphics - Summative 1/Main.cpp | ferp132/OpenGL | 2d5387915f3bf80b44b7c078dd9d6bdbb1c69f6f | [
"MIT"
] | null | null | null | #include "Dependencies\glew\glew.h"
#include "Dependencies\freeglut\freeglut.h"
#include "InputManager.h"
#include "GameManager.h"
//glm::mat4 Projection = glm::ortho(0.0f, 800.0f, 0.0f, 800.0f, -1.0f, 1.0f);
//glm::mat4 View = glm::translate(glm::mat4(1.0f), glm::vec3(0, 0, -1));
//glm::vec3 MoveVec = glm::vec3(0,... | 26.517857 | 80 | 0.716498 | ferp132 |
aac7801eb7410213aebcdb2cd053174924df4cf7 | 2,536 | cpp | C++ | src/formats/XYZ.cpp | sguionni/chemfiles | 99486730d4849656308516c6f7ed60b74fd575bc | [
"BSD-3-Clause"
] | null | null | null | src/formats/XYZ.cpp | sguionni/chemfiles | 99486730d4849656308516c6f7ed60b74fd575bc | [
"BSD-3-Clause"
] | null | null | null | src/formats/XYZ.cpp | sguionni/chemfiles | 99486730d4849656308516c6f7ed60b74fd575bc | [
"BSD-3-Clause"
] | null | null | null | // Chemfiles, a modern library for chemistry file reading and writing
// Copyright (C) Guillaume Fraux and contributors -- BSD license
#include <cassert>
#include <cstdint>
#include <array>
#include <string>
#include <vector>
#include <exception>
#include "chemfiles/File.hpp"
#include "chemfiles/Format.hpp"
#include ... | 26.694737 | 80 | 0.591877 | sguionni |
aad263e88e9ba49f28e3a4eff9c0fdec0ecd71f6 | 1,339 | hpp | C++ | src/mlpack/core/boost_backport/boost_backport.hpp | NaxAlpha/mlpack-build | 1f0c1454d4b35eb97ff115669919c205cee5bd1c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2018-05-21T11:08:36.000Z | 2022-03-12T07:52:14.000Z | src/mlpack/core/boost_backport/boost_backport.hpp | okmegy/Mlpack | ac9abef3c1353f483ed1af42ba5a7432f291ca1a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | src/mlpack/core/boost_backport/boost_backport.hpp | okmegy/Mlpack | ac9abef3c1353f483ed1af42ba5a7432f291ca1a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file boost_backport.hpp
* @author Yannis Mentekidis
*
* Centralized control of what boost files to include. We have backported the
* following boost functionality:
*
* * unordered_set serialization support (added in boost 1.56.0)
* * trigamma and polygamma function evaluation (added in boost 1.58.0)
*... | 31.139535 | 78 | 0.767737 | NaxAlpha |
aadab5dde0a92d5dfdd51f5ae619d60392f40167 | 3,802 | cpp | C++ | src/test/lib/expression/evaluation/like_matcher_test.cpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 583 | 2015-01-10T00:55:32.000Z | 2022-03-25T12:24:30.000Z | src/test/lib/expression/evaluation/like_matcher_test.cpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 1,573 | 2015-01-07T15:47:22.000Z | 2022-03-31T11:48:03.000Z | src/test/lib/expression/evaluation/like_matcher_test.cpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 145 | 2015-03-09T16:26:07.000Z | 2022-02-15T12:53:23.000Z | #include <string>
#include <utility>
#include "base_test.hpp"
#include "expression/evaluation/like_matcher.hpp"
using namespace std::string_literals; // NOLINT
namespace opossum {
class LikeMatcherTest : public BaseTest {
public:
bool match(const std::string& value, const std::string& pattern) const {
auto... | 37.643564 | 119 | 0.725408 | mrcl-tst |
aae23f1dd2964091e45d986cf8163cf8b9c7ac96 | 3,079 | cpp | C++ | src/propertybrowser/editorfactory/private/doublespinboxfactory_p.cpp | bitdewy/Ya | 9e075712b311a2403b4cc0ef5be24b05f523be3e | [
"BSD-3-Clause"
] | null | null | null | src/propertybrowser/editorfactory/private/doublespinboxfactory_p.cpp | bitdewy/Ya | 9e075712b311a2403b4cc0ef5be24b05f523be3e | [
"BSD-3-Clause"
] | null | null | null | src/propertybrowser/editorfactory/private/doublespinboxfactory_p.cpp | bitdewy/Ya | 9e075712b311a2403b4cc0ef5be24b05f523be3e | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** BSD 3-Clause License
**
** Copyright (c) 2017, bitdewy
** All rights reserved.
**
****************************************************************************/
#include "doublespinboxfactory_p.h"
#include "editorfactory/doubl... | 27.247788 | 89 | 0.559922 | bitdewy |
aaf0ce6c46ea6ce6869d69575091cf611570df2c | 281 | cpp | C++ | src/os.cpp | NoobSaibot/templ | a5cdf9c1484b7898128236c0dc9302aa2e457501 | [
"MIT"
] | 1 | 2019-10-29T18:24:00.000Z | 2019-10-29T18:24:00.000Z | src/os.cpp | NoobSaibot/templ | a5cdf9c1484b7898128236c0dc9302aa2e457501 | [
"MIT"
] | 22 | 2019-10-27T10:15:06.000Z | 2019-11-30T15:17:56.000Z | src/os.cpp | NoobSaibot/templ | a5cdf9c1484b7898128236c0dc9302aa2e457501 | [
"MIT"
] | 1 | 2020-08-25T04:48:27.000Z | 2020-08-25T04:48:27.000Z | #include <stdlib.h>
#include <stdio.h>
#ifdef _MSC_VER
# include "os_win32.cpp"
#elif __linux__
# include "os_linux.cpp"
#else
# error "nicht unterstütztes system!"
#endif
#include <string.h>
#include <assert.h>
#include <stdint.h>
#include <ctype.h>
#include <math.h>
| 15.611111 | 40 | 0.690391 | NoobSaibot |
aaf43d110b0fe2633ab38850adcf39c12220c0ac | 25,150 | cpp | C++ | src/execution_tree/compiler/compiler.cpp | rtohid/phylanx | c2e4e8e531c204a70b1907995b1fd467870e6d9d | [
"BSL-1.0"
] | null | null | null | src/execution_tree/compiler/compiler.cpp | rtohid/phylanx | c2e4e8e531c204a70b1907995b1fd467870e6d9d | [
"BSL-1.0"
] | null | null | null | src/execution_tree/compiler/compiler.cpp | rtohid/phylanx | c2e4e8e531c204a70b1907995b1fd467870e6d9d | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017-2018 Hartmut Kaiser
//
// 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)
// phylanxinspect:noinclude:HPX_ASSERT
#include <phylanx/config.hpp>
#include <phylanx/ast/detail/is_function_call.hp... | 38.931889 | 83 | 0.509583 | rtohid |
aaf79aea46a96dab3d056786c81f40e1fa30c589 | 19,384 | cpp | C++ | libipc/common_name.cpp | yfdyh000/cppcryptfs | 3a4c266831a0228e42c27b0e221bb5e7893dd920 | [
"MIT"
] | null | null | null | libipc/common_name.cpp | yfdyh000/cppcryptfs | 3a4c266831a0228e42c27b0e221bb5e7893dd920 | [
"MIT"
] | null | null | null | libipc/common_name.cpp | yfdyh000/cppcryptfs | 3a4c266831a0228e42c27b0e221bb5e7893dd920 | [
"MIT"
] | null | null | null | /*
cppcryptfs : user-mode cryptographic virtual overlay filesystem.
Copyright (C) 2016-2022 Bailey Brown (github.com/bailey27/cppcryptfs)
cppcryptfs is based on the design of gocryptfs (github.com/rfjakob/gocryptfs)
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining... | 32.52349 | 98 | 0.518778 | yfdyh000 |
aaf9717ef67900adb8c2affec5cb69b90c4d4d6c | 684 | cpp | C++ | test/tcp_cli_ip6.cpp | arsee11/easynet | 819f3604caf4441cec8e80f88e50f6074b66a077 | [
"BSD-2-Clause"
] | null | null | null | test/tcp_cli_ip6.cpp | arsee11/easynet | 819f3604caf4441cec8e80f88e50f6074b66a077 | [
"BSD-2-Clause"
] | null | null | null | test/tcp_cli_ip6.cpp | arsee11/easynet | 819f3604caf4441cec8e80f88e50f6074b66a077 | [
"BSD-2-Clause"
] | null | null | null | #include <stdio.h>
#include "connector.h"
using namespace arsee::net;
#define MAXBUF 1024
int main(int argc, char **argv)
{
char buf[MAXBUF + 1];
if (argc != 3) {
printf("usage: %s [ip6:port]\n", argv[0]);
exit(0);
}
EventQueueEpoll eq;
Connector6 conn(&eq, 10086);
Connector6::... | 19.542857 | 85 | 0.568713 | arsee11 |
c9063a235155be0f3e31bd69cab18c2d4c683b2c | 2,661 | cpp | C++ | Draws/Rect.cpp | Excelsus4/TrexRunner | 6b1bfdab63c7554c09072cc1b889de0e58415f49 | [
"MIT"
] | null | null | null | Draws/Rect.cpp | Excelsus4/TrexRunner | 6b1bfdab63c7554c09072cc1b889de0e58415f49 | [
"MIT"
] | null | null | null | Draws/Rect.cpp | Excelsus4/TrexRunner | 6b1bfdab63c7554c09072cc1b889de0e58415f49 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Rect.h"
Rect::Rect(wstring shaderFile, wstring textureFile):
position(0,0), scale(1,1)
{
CreateBuffer(shaderFile, textureFile);
UpdateWorld();
}
Rect::Rect(wstring shaderFile, wstring textureFile, D3DXVECTOR2 position, D3DXVECTOR2 scale) :
position(position), scale(scale)
{
CreateB... | 21.459677 | 94 | 0.694476 | Excelsus4 |
c908d4fec0cdd7234f56b763cfd322cadd14bb26 | 5,487 | cpp | C++ | source/widgetzeug/source/ColorSchemeControlWidget.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null | source/widgetzeug/source/ColorSchemeControlWidget.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null | source/widgetzeug/source/ColorSchemeControlWidget.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null |
#include <widgetzeug/ColorSchemeControlWidget.h>
#include <assert.h>
#include <widgetzeug/ColorScheme.h>
#include <widgetzeug/ColorSchemePresets.h>
#include <widgetzeug/ColorSchemePresetsWidget.h>
#include <widgetzeug/ColorSchemeWidget.h>
#include <widgetzeug/DataLinkWidget.h>
#include <widgetzeug/make_unique.hpp>
... | 28.138462 | 129 | 0.766175 | kateyy |
c9097e8f1f6e4eb73a837c92b53ba717d880657b | 9,876 | hh | C++ | src/geometry/Mesh.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | src/geometry/Mesh.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | src/geometry/Mesh.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
/**
* @file Mesh.hh
* @brief Mesh class definition.
* @note Copyright (C) 2013 Jeremy Roberts
*/
//---------------------------------------------------------------------------//
#ifndef detran_geometry_MESH_HH_
#define detran_geome... | 28.217143 | 79 | 0.580093 | RLReed |
c90e4c3389a88bcac76295338837cd08192f72bd | 6,183 | hh | C++ | CommBasicObjects/smartsoft/src-gen/CommBasicObjects/CommPropertySetCore.hh | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | null | null | null | CommBasicObjects/smartsoft/src-gen/CommBasicObjects/CommPropertySetCore.hh | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | 2 | 2020-08-20T14:49:47.000Z | 2020-10-07T16:10:07.000Z | CommBasicObjects/smartsoft/src-gen/CommBasicObjects/CommPropertySetCore.hh | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | 8 | 2018-06-25T08:41:28.000Z | 2020-08-13T10:39:30.000Z | //--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... | 39.132911 | 126 | 0.747372 | canonical-robots |
c9124e05b1ee5b3c6c6f9cf33f48002a4e96a1be | 12,693 | cc | C++ | src/runtime/isolate.cc | kroq-gar78/cascade | ff63545e77ff784e6779dacf43536eb80a9ba42f | [
"BSD-2-Clause"
] | null | null | null | src/runtime/isolate.cc | kroq-gar78/cascade | ff63545e77ff784e6779dacf43536eb80a9ba42f | [
"BSD-2-Clause"
] | null | null | null | src/runtime/isolate.cc | kroq-gar78/cascade | ff63545e77ff784e6779dacf43536eb80a9ba42f | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2017-2018 VMware, Inc.
// SPDX-License-Identifier: BSD-2-Clause
//
// The BSD-2 license (the License) set forth below applies to all parts of the
// Cascade project. You may not use this file except in compliance with the
// License.
//
// BSD-2 License
//
// Redistribution and use in source and binary fo... | 33.314961 | 109 | 0.670763 | kroq-gar78 |
c914955b2f0111aee123765ab4b2f6cb6f3eab54 | 3,000 | cpp | C++ | src/entity-system/model/entities/entity-instances/EntityInstance.cpp | inexorgame/entity-system | 230a6f116fb02caeace79bc9b32f17fe08687c36 | [
"MIT"
] | 19 | 2018-10-11T09:19:48.000Z | 2020-04-19T16:36:58.000Z | src/entity-system/model/entities/entity-instances/EntityInstance.cpp | inexorgame-obsolete/entity-system-inactive | 230a6f116fb02caeace79bc9b32f17fe08687c36 | [
"MIT"
] | 132 | 2018-07-28T12:30:54.000Z | 2020-04-25T23:05:33.000Z | src/entity-system/model/entities/entity-instances/EntityInstance.cpp | inexorgame-obsolete/entity-system-inactive | 230a6f116fb02caeace79bc9b32f17fe08687c36 | [
"MIT"
] | 3 | 2019-03-02T16:19:23.000Z | 2020-02-18T05:15:29.000Z | #include "EntityInstance.hpp"
namespace inexor::entity_system {
EntityInstance::EntityInstance(const EntityTypePtr &ent_type) : GUIDBase(), InstanceBase(ent_type)
{
}
EntityInstance::EntityInstance(const xg::Guid &ent_inst_GUID, const EntityTypePtr &ent_type) : GUIDBase(ent_inst_GUID), InstanceBase(ent_type)
{
}
En... | 32.967033 | 144 | 0.729 | inexorgame |
c9152929a04391eb80015dc373eb104bc6c81ac2 | 16,388 | cp | C++ | Std/Mod/Headers.cp | romiras/Blackbox-fw-playground | 6de94dc65513e657a9b86c1772e2c07742b608a8 | [
"BSD-2-Clause"
] | 1 | 2016-03-17T08:27:05.000Z | 2016-03-17T08:27:05.000Z | Std/Mod/Headers.cps | Spirit-of-Oberon/LightBox | 8a45ed11dcc02ae97e86f264dcee3e07c910ff9d | [
"BSD-2-Clause"
] | null | null | null | Std/Mod/Headers.cps | Spirit-of-Oberon/LightBox | 8a45ed11dcc02ae97e86f264dcee3e07c910ff9d | [
"BSD-2-Clause"
] | 1 | 2018-03-14T17:53:27.000Z | 2018-03-14T17:53:27.000Z | MODULE StdHeaders;
(**
project = "BlackBox"
organization = "www.oberon.ch"
contributors = "Oberon microsystems"
version = "System/Rsrc/About"
copyright = "System/Rsrc/About"
license = "Docu/BB-License"
changes = ""
issues = ""
**)
(* headers / footers support t... | 36.826966 | 114 | 0.537588 | romiras |
c9172326cde65c04f4fdb6dc5f1c39fcd6b59aa3 | 4,885 | hpp | C++ | include/Prefix.hpp | sjtakada/radixtree | 05e594de4bdd900bdd4dd1b8141f7a23ce5792b1 | [
"MIT"
] | null | null | null | include/Prefix.hpp | sjtakada/radixtree | 05e594de4bdd900bdd4dd1b8141f7a23ce5792b1 | [
"MIT"
] | null | null | null | include/Prefix.hpp | sjtakada/radixtree | 05e594de4bdd900bdd4dd1b8141f7a23ce5792b1 | [
"MIT"
] | null | null | null | #ifndef _RADIXTREE_LIB_PREFIX_HPP_
#define _RADIXTREE_LIB_PREFIX_HPP
#include <arpa/inet.h>
#include <string>
#include <ostream>
#include <iomanip>
#include <stdexcept>
namespace librt {
using namespace std;
using IPv4 = struct in_addr;
using IPv6 = struct in6_addr;
template <typename T>
class Prefix
{
public:
P... | 21.615044 | 68 | 0.586899 | sjtakada |
c9272b67db7832631db1353d03482208eb65724f | 1,010 | cpp | C++ | ablateLibrary/parameters/petscOptionParameters.cpp | mtmcgurn-buffalo/ablate | 35ee9a30277908775a61d78462ea9724ee631a9b | [
"BSD-3-Clause"
] | 3 | 2021-01-19T21:29:10.000Z | 2021-08-20T19:54:49.000Z | ablateLibrary/parameters/petscOptionParameters.cpp | mtmcgurn-buffalo/ablate | 35ee9a30277908775a61d78462ea9724ee631a9b | [
"BSD-3-Clause"
] | 124 | 2021-01-14T15:30:48.000Z | 2022-03-28T14:44:31.000Z | ablateLibrary/parameters/petscOptionParameters.cpp | mtmcgurn-buffalo/ablate | 35ee9a30277908775a61d78462ea9724ee631a9b | [
"BSD-3-Clause"
] | 17 | 2021-02-10T22:34:57.000Z | 2022-03-21T18:46:06.000Z | #include "petscOptionParameters.hpp"
#include "utilities/petscError.hpp"
ablate::parameters::PetscOptionParameters::PetscOptionParameters(PetscOptions petscOptionsIn) : petscOptions(petscOptionsIn) {}
std::optional<std::string> ablate::parameters::PetscOptionParameters::GetString(std::string paramName) const {
// ... | 32.580645 | 127 | 0.722772 | mtmcgurn-buffalo |
c9281be818b22cdb0e8fe0f0ec4edd17fb2b43e5 | 3,877 | cc | C++ | release/src/router/aria2/src/BtExtendedMessage.cc | Clarkmania/ripetomato | 5eda5521468cb9cb7156ae6750cf8229b776d10e | [
"FSFAP"
] | 3 | 2019-01-13T09:19:57.000Z | 2022-01-15T12:16:14.000Z | release/src/router/aria2/src/BtExtendedMessage.cc | Clarkmania/ripetomato | 5eda5521468cb9cb7156ae6750cf8229b776d10e | [
"FSFAP"
] | 1 | 2020-07-28T08:22:45.000Z | 2020-07-28T08:22:45.000Z | release/src/router/aria2/src/BtExtendedMessage.cc | Clarkmania/ripetomato | 5eda5521468cb9cb7156ae6750cf8229b776d10e | [
"FSFAP"
] | 1 | 2020-03-06T21:17:24.000Z | 2020-03-06T21:17:24.000Z | /* <!-- copyright */
/*
* aria2 - The high speed download utility
*
* Copyright (C) 2006 Tatsuhiro Tsujikawa
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Lice... | 32.041322 | 79 | 0.717307 | Clarkmania |
c928929c8e40eaf5bb837f38b92d85cf62b9a9d9 | 265 | cpp | C++ | archive/codevs.1474.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | archive/codevs.1474.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | archive/codevs.1474.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
using namespace std;
int main(){
int n,m,temp[1000],cnt=0;
scanf("%d %d",&n,&m);
while(n!=0){
temp[cnt++]=n%m;
n/=m;
}
for(int i=cnt-1;i>=0;i--){
if(temp[i]<10) printf("%d",temp[i]);
else printf("%c",temp[i]-10+65);
}
return 0;
}
| 15.588235 | 38 | 0.539623 | woshiluo |
c929868804fd796e7f37324e0cf73a00e930885d | 268 | cpp | C++ | libs/core/render/src/gl/detail/wgl/bksge_core_render_gl_detail_wgl_wgl_context.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/src/gl/detail/wgl/bksge_core_render_gl_detail_wgl_wgl_context.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/src/gl/detail/wgl/bksge_core_render_gl_detail_wgl_wgl_context.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file bksge_core_render_gl_detail_wgl_wgl_context.cpp
*
* @brief WglContext の実装
*
* @author myoukaku
*/
#include <bksge/fnd/config.hpp>
#if !defined(BKSGE_HEADER_ONLY)
#include <bksge/core/render/gl/detail/wgl/inl/wgl_context_inl.hpp>
#endif
| 20.615385 | 67 | 0.712687 | myoukaku |
c92dbfba73e9ec4a1613643ee4582facb506aafa | 500 | cpp | C++ | tests/StructuredBindingsHandler2Test.cpp | galorojo/cppinsights | 52ecab4ddd8e36fb99893551cf0fb8b5d58589f2 | [
"MIT"
] | 1,853 | 2018-05-13T21:49:17.000Z | 2022-03-30T10:34:45.000Z | tests/StructuredBindingsHandler2Test.cpp | tiandaoafei/cppinsights | af78ac299121354101a5e506dafccaac95d27a77 | [
"MIT"
] | 398 | 2018-05-15T14:48:51.000Z | 2022-03-24T12:14:33.000Z | tests/StructuredBindingsHandler2Test.cpp | SammyEnigma/cppinsights | c984b8e68139bbcc244c094fd2463eeced8fd997 | [
"MIT"
] | 104 | 2018-05-15T04:00:59.000Z | 2022-03-17T02:04:15.000Z | #include <cstdio>
int main() {
struct SP
{
int x;
int y;
};
SP sp{1, 2};
auto[sx, sy] = sp;
class CP
{
public:
int x;
int y;
};
CP cp{1,2};
auto [ c1, c2 ] = cp;
printf("c1: %d c2: %d\n", cp.x, cp.y);
++c1;
++c2;
prin... | 13.513514 | 42 | 0.366 | galorojo |
c9371dd0a823cb94cdf50603885192d79f0cfa7e | 712 | hpp | C++ | booksim2/src/rptrafficmanager.hpp | jyhuang91/flyover | 952a0fffee952c9f88b93017b6bba65a84d562cb | [
"MIT"
] | 3 | 2020-11-01T08:23:10.000Z | 2021-12-21T02:53:36.000Z | booksim2/src/rptrafficmanager.hpp | jyhuang91/flyover | 952a0fffee952c9f88b93017b6bba65a84d562cb | [
"MIT"
] | null | null | null | booksim2/src/rptrafficmanager.hpp | jyhuang91/flyover | 952a0fffee952c9f88b93017b6bba65a84d562cb | [
"MIT"
] | 1 | 2020-12-07T00:57:30.000Z | 2020-12-07T00:57:30.000Z | /*
* rptrafficmanager.hpp
* - A traffic manager for Router Parking
*
* Author: Jiayi Huang
*/
#ifndef _RPTRAFFICMANAGER_HPP_
#define _RPTRAFFICMANAGER_HPP_
#include <cassert>
#include "trafficmanager.hpp"
class RPTrafficManager : public TrafficManager {
private:
vector<vector<int> > _packet_size;
vector<... | 18.25641 | 81 | 0.706461 | jyhuang91 |
c93b26603ccd0f9878f6c22b702ada46b087d9c0 | 100 | cpp | C++ | src/tests/main.cpp | SrgFromZ/fetlang | a80e660aec9427bf5e131d072dc83c71a15241c0 | [
"BSD-3-Clause"
] | 527 | 2018-02-20T22:02:22.000Z | 2022-03-27T12:48:59.000Z | src/tests/main.cpp | sahwar/fetlang | a80e660aec9427bf5e131d072dc83c71a15241c0 | [
"BSD-3-Clause"
] | 7 | 2018-03-22T14:20:14.000Z | 2021-11-28T16:37:06.000Z | src/tests/main.cpp | sahwar/fetlang | a80e660aec9427bf5e131d072dc83c71a15241c0 | [
"BSD-3-Clause"
] | 26 | 2018-02-27T19:54:07.000Z | 2021-11-30T07:09:50.000Z | /* Contains Catch's main() function */
#define CATCH_CONFIG_MAIN
#include "../thirdparty/catch.hpp"
| 25 | 38 | 0.74 | SrgFromZ |
c93bf363c1753b45d7605b87c7ce65a64b825d04 | 732 | cpp | C++ | lect14/queue.cpp | ucsb-cs24-mirza-s21/cs24-s21-lectures | 1a50c6c4fb2b619ec3b578fda87295cf330661cc | [
"MIT"
] | null | null | null | lect14/queue.cpp | ucsb-cs24-mirza-s21/cs24-s21-lectures | 1a50c6c4fb2b619ec3b578fda87295cf330661cc | [
"MIT"
] | null | null | null | lect14/queue.cpp | ucsb-cs24-mirza-s21/cs24-s21-lectures | 1a50c6c4fb2b619ec3b578fda87295cf330661cc | [
"MIT"
] | 2 | 2021-03-29T21:57:57.000Z | 2021-04-12T21:12:40.000Z | // queue.cpp
// C++ Standard Template Library (contd)
// New data structure : queue
// Last in first out principle
// Operations: O(1)
// front() // returns the value of the element on front of the queue
// pop() // delete the element in the front of the queue
// push() // inserts an element to the rear of the queue
... | 22.875 | 68 | 0.588798 | ucsb-cs24-mirza-s21 |
c93ca81ecfca35a6f8a33242153282e584773a14 | 2,647 | hpp | C++ | src/gpu/nvidia/cudnn_sum.hpp | JackAKirk/oneDNN | 432c3f0c1c265a0fa96aa46c256d150ea670eb5a | [
"Apache-2.0"
] | 1,327 | 2018-01-25T21:23:47.000Z | 2020-04-03T09:39:30.000Z | src/gpu/nvidia/cudnn_sum.hpp | JackAKirk/oneDNN | 432c3f0c1c265a0fa96aa46c256d150ea670eb5a | [
"Apache-2.0"
] | 583 | 2020-04-04T02:37:25.000Z | 2022-03-31T00:12:03.000Z | src/gpu/nvidia/cudnn_sum.hpp | JackAKirk/oneDNN | 432c3f0c1c265a0fa96aa46c256d150ea670eb5a | [
"Apache-2.0"
] | 365 | 2018-01-29T16:12:36.000Z | 2020-04-03T08:32:27.000Z | /*******************************************************************************
* Copyright 2020 Intel Corporation
* Copyright 2020 Codeplay Software Limited
*
* 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... | 37.28169 | 80 | 0.612014 | JackAKirk |
c945bdb4b4607bd12c332d334286dbe413931c24 | 5,879 | cpp | C++ | hw2/HW2a.cpp | aguicam/FRR-SSAO | 27150feb8f74319786f22ca3f801b4cd705875a3 | [
"Apache-2.0"
] | null | null | null | hw2/HW2a.cpp | aguicam/FRR-SSAO | 27150feb8f74319786f22ca3f801b4cd705875a3 | [
"Apache-2.0"
] | null | null | null | hw2/HW2a.cpp | aguicam/FRR-SSAO | 27150feb8f74319786f22ca3f801b4cd705875a3 | [
"Apache-2.0"
] | null | null | null | // ===============================================================
// Computer Graphics Homework Solutions
// Copyright (C) 2017 by George Wolberg
//
// HW2a.cpp - HW2a class
//
// Written by: George Wolberg, 2017
// ===============================================================
#include "HW2a.h"
// shader ID
enum {... | 24.911017 | 113 | 0.557578 | aguicam |
c9486e0c42d3354c808384851ca717fa1e5f01ba | 2,881 | cpp | C++ | Models/Camera.cpp | supudo/Kuplung-DX-CXX | 7100c17e0c76eab30bfa2bf813d66d32bcfe3565 | [
"Unlicense"
] | null | null | null | Models/Camera.cpp | supudo/Kuplung-DX-CXX | 7100c17e0c76eab30bfa2bf813d66d32bcfe3565 | [
"Unlicense"
] | null | null | null | Models/Camera.cpp | supudo/Kuplung-DX-CXX | 7100c17e0c76eab30bfa2bf813d66d32bcfe3565 | [
"Unlicense"
] | null | null | null | #include "pch.h"
#include "Camera.h"
#include <DX\DirectXHelper.h>
#include <Utilities/MathUtils.h>
using namespace Kuplung_DX::Models;
Camera::Camera() {}
Camera::~Camera() {
this->EyeSettings.reset();
this->PositionX.reset();
this->PositionY.reset();
this->PositionZ.reset();
this->RotateX.re... | 40.013889 | 150 | 0.706352 | supudo |
c9492b14e57f0ad1311bcc5e9434edb7b5330ceb | 635 | hpp | C++ | libraries/protocol/include/voilk/protocol/schema_types/asset_symbol_type.hpp | voilknetwork/voilk | 839716ae446d39d7260505b5d6d16f4f122cf1fe | [
"MIT"
] | null | null | null | libraries/protocol/include/voilk/protocol/schema_types/asset_symbol_type.hpp | voilknetwork/voilk | 839716ae446d39d7260505b5d6d16f4f122cf1fe | [
"MIT"
] | null | null | null | libraries/protocol/include/voilk/protocol/schema_types/asset_symbol_type.hpp | voilknetwork/voilk | 839716ae446d39d7260505b5d6d16f4f122cf1fe | [
"MIT"
] | 3 | 2020-09-03T11:23:13.000Z | 2021-06-16T07:07:54.000Z |
#pragma once
#include <voilk/schema/abstract_schema.hpp>
#include <voilk/schema/schema_impl.hpp>
#include <voilk/protocol/asset_symbol.hpp>
namespace voilk { namespace schema { namespace detail {
//////////////////////////////////////////////
// asset_symbol_type //
/////////////////////////... | 21.166667 | 76 | 0.626772 | voilknetwork |
c94b286558068db778646df516ad4ed191551233 | 605 | cpp | C++ | 2.6/Divisibility.cpp | tangxiangru/NOIP | 6c756df37e5cb6105f5d5eb0fd9b03a4ef8407e4 | [
"MIT"
] | 1 | 2020-10-12T12:00:08.000Z | 2020-10-12T12:00:08.000Z | 2.6/Divisibility.cpp | tangxiangru/NOIP | 6c756df37e5cb6105f5d5eb0fd9b03a4ef8407e4 | [
"MIT"
] | null | null | null | 2.6/Divisibility.cpp | tangxiangru/NOIP | 6c756df37e5cb6105f5d5eb0fd9b03a4ef8407e4 | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<cstdio>
using namespace std;
int num[10005];
bool divi[2][105];
int main(){
int n, k, tmp, m=0;
cin>>n>>k;
for(int i=1;i<=n;i++){
scanf("%d", &tmp);
if(tmp<0) tmp=-tmp;
tmp%=k;
if(tmp!=0)
num[++m]=tmp;
}
if(m==0) { cout<<"Divisible"<<endl; return 0; }
divi[0][0]=true; d... | 18.333333 | 50 | 0.585124 | tangxiangru |
c951ab8bad3d360a8e008ef1e3ded20ad678558e | 4,550 | cpp | C++ | calculus/timestamp.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | null | null | null | calculus/timestamp.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | null | null | null | calculus/timestamp.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | 1 | 2020-04-24T02:28:32.000Z | 2020-04-24T02:28:32.000Z | //
// timestamp.cpp
// calculus
//
// Created by Li Li on 9/5/15.
// Copyright (c) 2015 Lilissun. All rights reserved.
//
#include "timestamp.h"
#include "common/iostream.h"
#include "common/debug.h"
#include "symbolic/nonce.h"
#include "symbolic/function.h"
#include "symbolic/number.h"
#include "symbolic/constan... | 48.404255 | 191 | 0.681319 | lilissun |
c9566a7da3f30991fa5d2ddb94ef5960d1cbaefa | 47,521 | cpp | C++ | verilator-4.016/src/V3Expand.cpp | tcovert2015/fpga_competition | 26b7a72959afbf8315eb962ec597ba14b4a73dbd | [
"BSD-3-Clause"
] | null | null | null | verilator-4.016/src/V3Expand.cpp | tcovert2015/fpga_competition | 26b7a72959afbf8315eb962ec597ba14b4a73dbd | [
"BSD-3-Clause"
] | null | null | null | verilator-4.016/src/V3Expand.cpp | tcovert2015/fpga_competition | 26b7a72959afbf8315eb962ec597ba14b4a73dbd | [
"BSD-3-Clause"
] | null | null | null | // -*- mode: C++; c-file-style: "cc-mode" -*-
//*************************************************************************
// DESCRIPTION: Verilator: Add temporaries, such as for expand nodes
//
// Code available from: http://www.veripool.org/verilator
//
//***************************************************************... | 48.540347 | 119 | 0.455672 | tcovert2015 |
c95d24abbb22ea4b51b8f20053f7fc5ac70c8acc | 496 | cpp | C++ | BOJ_백준/3986 Nice word.cpp | woorimlee/cpp_CTCI_6E_APSS | ff1d42e871ba853ac3de726df0c609885ba07573 | [
"MIT"
] | 2 | 2020-12-30T03:35:51.000Z | 2021-02-28T20:39:09.000Z | BOJ_백준/3986 Nice word.cpp | woorimlee/cpp_CTCI_6E_APSS | ff1d42e871ba853ac3de726df0c609885ba07573 | [
"MIT"
] | 1 | 2020-12-08T08:48:40.000Z | 2021-04-09T04:58:57.000Z | BOJ_백준/3986 Nice word.cpp | woorimlee/Algorithm-Repository | ff1d42e871ba853ac3de726df0c609885ba07573 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
using namespace std;
int main(void) {
ios::sync_with_stdio(false);
int n;
cin >> n;
int answer = 0;
vector <char> vec;
string str;
for (int i = 0; i < n; i++) {
cin >> str;
vec.push_back(str[0]);
for (int j = 1; j < str.length(); j++) {
if (!vec.... | 16.533333 | 60 | 0.566532 | woorimlee |
e9290758d7a1cdcd1c40b660b4f8288b21c7dd77 | 34,178 | cpp | C++ | norichan/norichan.cpp | nathanjahnke/norichan | af3b434b7606e8e3e4a7a62520ac2eb9bd36d1b5 | [
"MIT"
] | null | null | null | norichan/norichan.cpp | nathanjahnke/norichan | af3b434b7606e8e3e4a7a62520ac2eb9bd36d1b5 | [
"MIT"
] | null | null | null | norichan/norichan.cpp | nathanjahnke/norichan | af3b434b7606e8e3e4a7a62520ac2eb9bd36d1b5 | [
"MIT"
] | null | null | null | #include "norichan.h"
norichan::norichan(QWidget *parent) : QMainWindow(parent)
,current_field(false)
,currently_streaming(false)
,display_width(0)
,display_height(0)
,framerate(0.0)
{
update_pixmap_bool = currently_encoding = audio_in_playing = audio_out_created = easycap_audio_not_foun... | 40.256773 | 231 | 0.685119 | nathanjahnke |
e929b5a51cbecc552f995530f40e6853becb1a3a | 2,606 | cxx | C++ | util-lib/src/fe/SynchronizedFrontend.cxx | andrey-nakin/caen-v1720e-frontend | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | null | null | null | util-lib/src/fe/SynchronizedFrontend.cxx | andrey-nakin/caen-v1720e-frontend | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | 8 | 2019-03-06T08:43:29.000Z | 2019-05-07T11:28:08.000Z | util-lib/src/fe/SynchronizedFrontend.cxx | andrey-nakin/gneis-daq | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | null | null | null | #include "fe/SynchronizedFrontend.hxx"
namespace fe {
void SynchronizedFrontend::doInit() {
std::lock_guard<decltype(mutex)> lock(mutex);
doInitSynchronized();
}
void SynchronizedFrontend::doExit() {
std::lock_guard<decltype(mutex)> lock(mutex);
doExitSynchronized();
}
void SynchronizedFrontend::doBeginOfRu... | 18.352113 | 80 | 0.74175 | andrey-nakin |
e92b8e7ad741daacd06f2bd7a620e37f5167150c | 54,865 | cpp | C++ | clients/selftest/test_complex.cpp | aaksud/rocFFT | dea01c6bdd056152860101b932eb7cffdadc8768 | [
"MIT"
] | 3 | 2021-06-09T07:06:33.000Z | 2022-03-31T14:58:18.000Z | clients/selftest/test_complex.cpp | aaksud/rocFFT | dea01c6bdd056152860101b932eb7cffdadc8768 | [
"MIT"
] | null | null | null | clients/selftest/test_complex.cpp | aaksud/rocFFT | dea01c6bdd056152860101b932eb7cffdadc8768 | [
"MIT"
] | 3 | 2020-03-02T14:41:11.000Z | 2021-08-11T03:03:31.000Z | /******************************************************************************
* Copyright (c) 2016 - present Advanced Micro Devices, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to dea... | 30.944726 | 209 | 0.650232 | aaksud |
e92fda6127595ff1f4c22235c2a29f6f7c7a800e | 8,227 | cpp | C++ | src/misc/object_tracker.cpp | LuisAntonRebollo/Anvil | f66780767745885906dea4401263bd68b6609b30 | [
"MIT"
] | null | null | null | src/misc/object_tracker.cpp | LuisAntonRebollo/Anvil | f66780767745885906dea4401263bd68b6609b30 | [
"MIT"
] | null | null | null | src/misc/object_tracker.cpp | LuisAntonRebollo/Anvil | f66780767745885906dea4401263bd68b6609b30 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2017-2018 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rig... | 33.443089 | 119 | 0.626838 | LuisAntonRebollo |
e9334d98578b6cfbdd0ece89cbfe9bb74d619d8d | 277 | cpp | C++ | creative_algorithm_for_ps-advanced/p29-combinationS-rcsv.cpp | ryankwondev/problem_solving | c74a3c37da1ddb4414059739e5def5c93e6f602e | [
"MIT"
] | null | null | null | creative_algorithm_for_ps-advanced/p29-combinationS-rcsv.cpp | ryankwondev/problem_solving | c74a3c37da1ddb4414059739e5def5c93e6f602e | [
"MIT"
] | null | null | null | creative_algorithm_for_ps-advanced/p29-combinationS-rcsv.cpp | ryankwondev/problem_solving | c74a3c37da1ddb4414059739e5def5c93e6f602e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int combination(int n, int r) {
if (r == 0)
return 1;
return (n - r + 1) * combination(n, r - 1) / r;
}
int main() {
int n, r;
scanf("%d %d", &n, &r);
printf("%d", combination(n, r));
return 0;
}
| 16.294118 | 51 | 0.498195 | ryankwondev |
e9353c285d7f4ad26ee5721da01faf2560196947 | 1,095 | cc | C++ | below2.1/goatrope.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/goatrope.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/goatrope.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main(){
double gx,gy,x1,y1,x2,y2;
cin>>gx>>gy>>x1>>y1>>x2>>y2;
double res;
if(gx<x1){
if(gy>y2){
res = pow(
pow(x1-gx,2)+pow(gy-y2,2),
(1.0/2)
);
}
... | 17.95082 | 42 | 0.320548 | danzel-py |
e93909672cdd888bf7410dd46b29d54fbb53cb49 | 14,862 | cpp | C++ | Nana.Cpp11/source/gui/widgets/menubar.cpp | gfannes/nana | 3b8d33f9a98579684ea0440b6952deabe61bd978 | [
"BSL-1.0"
] | 1 | 2018-02-09T21:25:13.000Z | 2018-02-09T21:25:13.000Z | Nana.Cpp11/source/gui/widgets/menubar.cpp | gfannes/nana | 3b8d33f9a98579684ea0440b6952deabe61bd978 | [
"BSL-1.0"
] | null | null | null | Nana.Cpp11/source/gui/widgets/menubar.cpp | gfannes/nana | 3b8d33f9a98579684ea0440b6952deabe61bd978 | [
"BSL-1.0"
] | null | null | null | #include <nana/gui/widgets/menubar.hpp>
#include <stdexcept>
namespace nana
{
namespace gui
{
namespace drawerbase
{
namespace menubar
{
struct item_type
{
item_type(const nana::string& text, unsigned long shortkey)
: text(text), shortkey(shortkey)
{}
nana::string text;
unsigned long ... | 24.444079 | 147 | 0.591509 | gfannes |
e93b989aa1c19888b98815bec271c2196ee2129e | 2,812 | cpp | C++ | src/armnn/test/CloneTests.cpp | Srivathsav-max/armnn-clone | af2daa6526623c91ee97f7141be4d1b07de92a48 | [
"MIT"
] | 1 | 2022-03-31T18:21:59.000Z | 2022-03-31T18:21:59.000Z | src/armnn/test/CloneTests.cpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | src/armnn/test/CloneTests.cpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | //
// Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <Graph.hpp>
#include <Layer.hpp>
#include <armnn/TypesUtils.hpp>
#include <armnn/Exceptions.hpp>
#include <armnn/Optional.hpp>
#include <armnn/backends/IBackendInternal.hpp>
#include <armnn/backends/Tenso... | 27.300971 | 111 | 0.713727 | Srivathsav-max |
e93c30a8df3e01c15cb0563bf2ef0460d2dfe7c4 | 5,528 | cpp | C++ | packages/geometry/root/test/tstRootModelProperties.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/geometry/root/test/tstRootModelProperties.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/geometry/root/test/tstRootModelProperties.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file tstRootModelProperties.cpp
//! \author Alex Robinson
//! \brief Root model properties class unit tests
//!
//---------------------------------------------------------------------------//
// Std Lib Includes
#include <iostr... | 38.657343 | 90 | 0.615774 | bam241 |
e9425eecf99c1e6cff130df747b21a679446863f | 2,686 | cpp | C++ | Data Structures/Queue/Queue (Using Classes).cpp | ya-nsh/Data-Structures-and-Algorithms | 3c709b6d0fcd0705d6d96b9ef7fcadf4ad9e320a | [
"MIT"
] | 1 | 2020-08-19T13:55:32.000Z | 2020-08-19T13:55:32.000Z | Data Structures/Queue/Queue (Using Classes).cpp | ya-nsh/Data-Structures-and-Algorithms | 3c709b6d0fcd0705d6d96b9ef7fcadf4ad9e320a | [
"MIT"
] | null | null | null | Data Structures/Queue/Queue (Using Classes).cpp | ya-nsh/Data-Structures-and-Algorithms | 3c709b6d0fcd0705d6d96b9ef7fcadf4ad9e320a | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string.h>
#define maxSize 10
class Queue
{
int front = -1, rear = -1;
int queue[maxSize];
public:
bool isFull();
bool isEmpty();
int peek();
void enqueue();
void dequeue();
void display();
};
// helper functions
boo... | 19.75 | 94 | 0.456069 | ya-nsh |
e94344c1d0fbb9bcc0eb39c9eedb0ab8cd3bae60 | 1,985 | cpp | C++ | src/MSocketServer.cpp | sander-visser/msocket | c61eacef2c79060d36eedeb50c8b8d1d128bccfe | [
"MIT"
] | null | null | null | src/MSocketServer.cpp | sander-visser/msocket | c61eacef2c79060d36eedeb50c8b8d1d128bccfe | [
"MIT"
] | null | null | null | src/MSocketServer.cpp | sander-visser/msocket | c61eacef2c79060d36eedeb50c8b8d1d128bccfe | [
"MIT"
] | null | null | null | /*****************************************************************************
* \file MSocketServer.cpp
* \author Pierre Svärd
* \date 2017-03-05
* \brief msocket server C++ wrapper
* \details https://github.com/cogu/msocket
*
* Copyright (c) 2017 Pierre Svärd
*
*************************************... | 30.538462 | 108 | 0.695214 | sander-visser |
e94449fafdfce5015c681eee25d4a9205d5193b0 | 3,050 | cpp | C++ | Ladoo/src/Ladoo/Renderer/OrthoCameraController.cpp | tanveerg1/Ladoo3D | 0dad82d34c0e47340b4a321de21a95e046650795 | [
"Apache-2.0"
] | 2 | 2020-06-24T17:51:12.000Z | 2020-07-06T19:53:11.000Z | Ladoo/src/Ladoo/Renderer/OrthoCameraController.cpp | tanveerg1/Ladoo3D | 0dad82d34c0e47340b4a321de21a95e046650795 | [
"Apache-2.0"
] | null | null | null | Ladoo/src/Ladoo/Renderer/OrthoCameraController.cpp | tanveerg1/Ladoo3D | 0dad82d34c0e47340b4a321de21a95e046650795 | [
"Apache-2.0"
] | null | null | null | #include "ldpch.h"
#include "OrthoCameraController.h"
#include "Ladoo/Base/Input.h"
#include "Ladoo/Base/KeyCodes.h"
namespace Ladoo {
OrthoCameraController::OrthoCameraController(float aspectRatio, bool rotation)
: c_AspectRatio(aspectRatio), camera(-c_AspectRatio * c_ZoomLevel, c_AspectRatio * c_ZoomLevel, -c_Z... | 33.516484 | 146 | 0.747541 | tanveerg1 |
e947bcbb36156a4b6e2c6a8946e87ccac61ea315 | 1,987 | cpp | C++ | dllmain.cpp | c3358/hardwatse-source-leak | 615fc1ac0d33167edc288d976d1e74accce98763 | [
"MIT"
] | 1 | 2021-06-15T17:11:19.000Z | 2021-06-15T17:11:19.000Z | dllmain.cpp | c3358/hardwatse-source-leak | 615fc1ac0d33167edc288d976d1e74accce98763 | [
"MIT"
] | null | null | null | dllmain.cpp | c3358/hardwatse-source-leak | 615fc1ac0d33167edc288d976d1e74accce98763 | [
"MIT"
] | 1 | 2021-06-15T17:11:16.000Z | 2021-06-15T17:11:16.000Z | #include "stdafx.h"
#include <Windows.h>
VOID Main()
{
MH_Initialize();
SettingsHelper::LoadDefaultConfig();
if (!Util::Initialize()) {
return;
}
if (!offsets::Initialize()) {
return;
}
if (!hooks::Initialize()) {
return;
}
if (!rend::Initialize()) {
... | 20.697917 | 108 | 0.643181 | c3358 |
e948e466c11fe32a483465595bc8ee678c13e211 | 362 | cpp | C++ | examples/running_mean/server.cpp | AadityaJ/MoonDoor | d42264f725aa91ff4ebd69a9663999d94b1d6c42 | [
"MIT"
] | null | null | null | examples/running_mean/server.cpp | AadityaJ/MoonDoor | d42264f725aa91ff4ebd69a9663999d94b1d6c42 | [
"MIT"
] | null | null | null | examples/running_mean/server.cpp | AadityaJ/MoonDoor | d42264f725aa91ff4ebd69a9663999d94b1d6c42 | [
"MIT"
] | null | null | null | #include "../../includes/mServer.h"
using namespace std;
int main(int argc, char const *argv[]) {
Server s;
s.listen_(8000);
int run_sum=0,count=0;
while(1){
string val=s.receive();
int num=stoi(val);
run_sum+=num;
count+=1;
string avg=to_string(run_sum/count);
... | 21.294118 | 44 | 0.555249 | AadityaJ |
e948f479014a0d1fa639e2766472b7b71dd9c1d1 | 1,746 | cc | C++ | libpfkutil/signal_backtrace_test.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | 4 | 2015-06-12T05:08:56.000Z | 2017-11-13T11:34:27.000Z | libpfkutil/signal_backtrace_test.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | null | null | null | libpfkutil/signal_backtrace_test.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | 1 | 2021-10-20T02:04:53.000Z | 2021-10-20T02:04:53.000Z |
#include "signal_backtrace.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <signal.h>
using namespace BackTraceUtil;
void my_handler(void * arg, const SignalBacktraceInfo *info)
{
ssize_t s = write(2, info->description, info->desc_len);
if (s) { } // remove unuse... | 22.101266 | 60 | 0.553837 | flipk |
e94c71cf802aba3fb27f5d94a5d5def43ace0f3f | 1,101 | hpp | C++ | libs/fnd/variant/include/bksge/fnd/variant/detail/variant_construct.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/variant/include/bksge/fnd/variant/detail/variant_construct.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/variant/include/bksge/fnd/variant/detail/variant_construct.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file variant_construct.hpp
*
* @brief variant_construct の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_VARIANT_DETAIL_VARIANT_CONSTRUCT_HPP
#define BKSGE_FND_VARIANT_DETAIL_VARIANT_CONSTRUCT_HPP
#include <bksge/fnd/variant/detail/raw_visit.hpp>
#include <bksge/fnd/variant/detail/variant_acces... | 21.588235 | 81 | 0.722979 | myoukaku |
e955b29c57db0b14aa42ad1d9f855bee593d65a4 | 36,809 | cpp | C++ | src/OpenLoco/Audio/Audio.cpp | JimmyAllnighter/OpenLoco | dda8245be39a033db5cadfa455f1679a3f24ff24 | [
"MIT"
] | null | null | null | src/OpenLoco/Audio/Audio.cpp | JimmyAllnighter/OpenLoco | dda8245be39a033db5cadfa455f1679a3f24ff24 | [
"MIT"
] | null | null | null | src/OpenLoco/Audio/Audio.cpp | JimmyAllnighter/OpenLoco | dda8245be39a033db5cadfa455f1679a3f24ff24 | [
"MIT"
] | null | null | null | #include "Audio.h"
#include "../Config.h"
#include "../Console.h"
#include "../Date.h"
#include "../Entities/EntityManager.h"
#include "../Environment.h"
#include "../Game.h"
#include "../Interop/Interop.hpp"
#include "../Localisation/StringIds.h"
#include "../Map/TileLoop.hpp"
#include "../Map/TileManager.h"
#include ... | 29.732633 | 191 | 0.524192 | JimmyAllnighter |
e963d9b7f22206e6a33c0b64da470b8220bfcf46 | 1,089 | cpp | C++ | GameEngine/ECS/AEntity.cpp | Epitech-Tek2/superBonobros2 | 525ab414215f5b67829bf200797c2055141cb7b9 | [
"MIT"
] | null | null | null | GameEngine/ECS/AEntity.cpp | Epitech-Tek2/superBonobros2 | 525ab414215f5b67829bf200797c2055141cb7b9 | [
"MIT"
] | null | null | null | GameEngine/ECS/AEntity.cpp | Epitech-Tek2/superBonobros2 | 525ab414215f5b67829bf200797c2055141cb7b9 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** B-CPP-501-STG-5-1-rtype-romuald1.soultan
** File description:
** AEntity
*/
#include "AEntity.hpp"
gameEngine::AEntity::AEntity(ECS *ecs, const std::string &type) : _ecs(ecs), _type(type), _alive(true)
{
}
gameEngine::AEntity::~AEntity()
{
}
const gameEngine::Component::Bitset &gameEn... | 18.457627 | 102 | 0.707989 | Epitech-Tek2 |
e9685f5e5ded022d9e855de2988c14b91bb921e8 | 4,111 | cxx | C++ | src/mod/pub/lib/noise/palette.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | 1 | 2017-12-26T14:29:37.000Z | 2017-12-26T14:29:37.000Z | src/mod/pub/lib/noise/palette.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | src/mod/pub/lib/noise/palette.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | #include "stdafx.hxx"
#include "palette.hxx"
//using namespace std;
#include "pfm.hxx"
#define FORMAT_ABGR
Palette::Palette()
{
clearColors();
}
void Palette::clearColors()
{
pos[0] = 0.0f;
rgb[0] = 0;
pos[1] = 1.0f;
rgb[1] = 0xffffff;
posCount = 2;
}
int Palette::parseColor(std::string& ... | 20.86802 | 83 | 0.484797 | indigoabstract |
e96f50ea305892ffb4cfc758e75b17bc63246dd2 | 3,893 | cpp | C++ | src/QtLocationPlugin/MapProvider.cpp | JklqmYao1994/qgroundcontrol | 391f155ceecfb3835fed5bd9ee406b5c1949f74b | [
"Apache-2.0"
] | 1 | 2019-12-10T16:28:44.000Z | 2019-12-10T16:28:44.000Z | src/QtLocationPlugin/MapProvider.cpp | JklqmYao1994/qgroundcontrol | 391f155ceecfb3835fed5bd9ee406b5c1949f74b | [
"Apache-2.0"
] | 30 | 2019-07-10T02:21:58.000Z | 2019-08-15T02:17:42.000Z | src/QtLocationPlugin/MapProvider.cpp | JklqmYao1994/qgroundcontrol | 391f155ceecfb3835fed5bd9ee406b5c1949f74b | [
"Apache-2.0"
] | 2 | 2020-05-04T17:40:25.000Z | 2020-05-13T02:18:58.000Z | /****************************************************************************
*
* (c) 2009-2019 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
*************************************... | 34.451327 | 122 | 0.589263 | JklqmYao1994 |
e97014a4148d56f8a52452e9b016176d28105893 | 1,690 | hpp | C++ | kernel/include/conc/wait_list.hpp | cekkr/thor-os | 841b088eddc378ef38c98878a51958479dce4a31 | [
"MIT"
] | null | null | null | kernel/include/conc/wait_list.hpp | cekkr/thor-os | 841b088eddc378ef38c98878a51958479dce4a31 | [
"MIT"
] | null | null | null | kernel/include/conc/wait_list.hpp | cekkr/thor-os | 841b088eddc378ef38c98878a51958479dce4a31 | [
"MIT"
] | null | null | null | //=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=================================================================... | 22.533333 | 83 | 0.563905 | cekkr |
e97819a112374e727efbbf7477faf3c851b377e0 | 398 | cpp | C++ | QRest/QJobExecution/QInfoQueue.cpp | CptKappa/qiskit-api-cpp | 0c8386d88f33d83a12fdf064e98b8c0b9076d011 | [
"Apache-2.0"
] | null | null | null | QRest/QJobExecution/QInfoQueue.cpp | CptKappa/qiskit-api-cpp | 0c8386d88f33d83a12fdf064e98b8c0b9076d011 | [
"Apache-2.0"
] | 2 | 2019-02-08T13:33:40.000Z | 2019-04-01T14:49:21.000Z | QRest/QJobExecution/QInfoQueue.cpp | CptKappa/qiskit-api-cpp | 0c8386d88f33d83a12fdf064e98b8c0b9076d011 | [
"Apache-2.0"
] | 1 | 2018-10-25T16:13:42.000Z | 2018-10-25T16:13:42.000Z | // Copyright by Benjamin Luxbacher
#include "QInfoQueue.h"
namespace QRest
{
namespace QJobExecution
{
QInfoQueue::QInfoQueue()
{
}
QInfoQueue::QInfoQueue(std::string status, int position)
{
this->status = status;
this->position = posit... | 15.92 | 64 | 0.512563 | CptKappa |
e979426cc8350ea3a3b8f34bef4f54cd876cb01d | 21,866 | hpp | C++ | Libraries/Physics/ComplexShapeCollision.hpp | playmer/WelderEngineRevamp | 7b6c3a9648b7d2b65dbb1f475af0a54ab6a40aac | [
"MIT"
] | 1 | 2019-07-13T03:36:11.000Z | 2019-07-13T03:36:11.000Z | Libraries/Physics/ComplexShapeCollision.hpp | playmer/WelderEngineRevamp | 7b6c3a9648b7d2b65dbb1f475af0a54ab6a40aac | [
"MIT"
] | null | null | null | Libraries/Physics/ComplexShapeCollision.hpp | playmer/WelderEngineRevamp | 7b6c3a9648b7d2b65dbb1f475af0a54ab6a40aac | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
#include "Physics/ShapeCollisionHelpers.hpp"
/// To support being a complex shape, the collider type must contain a typedef
/// called RangeInLocalSpace that is either set to true_type or false_type.
/// Also, the collider must have a GetOverlapRange(Aabb) that returns a... | 39.974406 | 120 | 0.716958 | playmer |
e97dfe0e428c98a63eb8252fda4b68ab66f3dc23 | 3,372 | cxx | C++ | src/HexCellFem.cxx | samsalt/gxmc | 6efeb6f0c9eeb65c6e1003c7f27b0583b5c5e572 | [
"BSD-3-Clause"
] | null | null | null | src/HexCellFem.cxx | samsalt/gxmc | 6efeb6f0c9eeb65c6e1003c7f27b0583b5c5e572 | [
"BSD-3-Clause"
] | null | null | null | src/HexCellFem.cxx | samsalt/gxmc | 6efeb6f0c9eeb65c6e1003c7f27b0583b5c5e572 | [
"BSD-3-Clause"
] | null | null | null | #include "HexCellFem.h"
void HexCellFem::UpdateTotalShape(const std::vector<gxcNode> &Node, const gxcControl &SimulationParameter)
{
for (int i = 0; i < 8; i++)
NeighborNode[i] = VertexId[i];
std::array<std::array<gxcData, 3>, 3> XDxi, InvXDxi;
std::array<std::array<gxcData, 8>, 3> xyzel;
//... | 32.737864 | 149 | 0.513345 | samsalt |
e97e68c9fafa80c5704e493815eee94a8cff22d9 | 473 | cpp | C++ | StacksAndQueues/rain_water.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | StacksAndQueues/rain_water.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | StacksAndQueues/rain_water.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int trap(const vector<int> &A) {
vector<int> left_max(A.size(), 0), right_max(A.size(), 0);
int m = 0;
for(int i = 0; i < A.size(); ++i) {
left_max[i] = m;
m = max(m, A[i]);
}
m = 0;
for(int i = A.size() - 1; i >= 0; --i) {
right_max[i] = m;
m = max(m, A[i]... | 16.310345 | 59 | 0.505285 | aneesh001 |
e981ec1fe1d738eae0d0f51664e4f79346d79bb5 | 3,248 | cpp | C++ | Universe/engine/src/platform/windows/window_impl.cpp | SmirnovVyacheslav/Universe_1.0 | 6210c57664796f653c2fe54c737caf615b7b58c9 | [
"Apache-2.0"
] | null | null | null | Universe/engine/src/platform/windows/window_impl.cpp | SmirnovVyacheslav/Universe_1.0 | 6210c57664796f653c2fe54c737caf615b7b58c9 | [
"Apache-2.0"
] | null | null | null | Universe/engine/src/platform/windows/window_impl.cpp | SmirnovVyacheslav/Universe_1.0 | 6210c57664796f653c2fe54c737caf615b7b58c9 | [
"Apache-2.0"
] | null | null | null | // Copyright: (C) 2021-2022 Vyacheslav Smirnov. All rights reserved.
#include "window_impl.h"
#ifdef WINDOWS
namespace engine {
namespace platform {
void* window::id() {
return inst.impl->id();
}
void window::create_window() {
inst.impl.initialize(config::core()->w... | 32.158416 | 111 | 0.516933 | SmirnovVyacheslav |
e98443ddae1002d184e9c463fa11487ae58e79bd | 10,290 | cpp | C++ | ColorInterpolation/Interpolation.cpp | yanhongwang/ColorImageProcessingPipeline | 87b584442ed5e2ea9cfbc27eada5067cd1c2e601 | [
"MIT"
] | 2 | 2016-06-29T06:54:35.000Z | 2021-01-07T11:56:02.000Z | ColorInterpolation/Interpolation.cpp | yanhongwang/ColorImageProcessingPipeline | 87b584442ed5e2ea9cfbc27eada5067cd1c2e601 | [
"MIT"
] | null | null | null | ColorInterpolation/Interpolation.cpp | yanhongwang/ColorImageProcessingPipeline | 87b584442ed5e2ea9cfbc27eada5067cd1c2e601 | [
"MIT"
] | 1 | 2016-01-17T09:51:12.000Z | 2016-01-17T09:51:12.000Z | #include "Unit1.h"
void Interpolation_2003_Sobel
(
unsigned char **p,
unsigned char **G,
unsigned char **R,
unsigned char **B
)
{
double T, D, L, Ri, TL, TR, DL, DR; // Value of the interpolation in each direction
double wT, wD, wL, wR, wTL, wTR, wDL, wDR; // Weight in each direction
int i,j;
/* Green i... | 43.054393 | 224 | 0.379883 | yanhongwang |
e98b562ec6d6354804d3398df1031ea0262f3e3e | 379 | cpp | C++ | leetcode.com/0944 Delete Columns to Make Sorted/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0944 Delete Columns to Make Sorted/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0944 Delete Columns to Make Sorted/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int minDeletionSize(vector<string>& A) {
int n = A[0].size(), res = 0;
for (int i = 0; i < n; ++i) {
char pre = 0;
for (const string& a : A) {
if (a[i] < pre) {
++res;
break;
... | 16.478261 | 42 | 0.456464 | sky-bro |
e996eb9b82e7dde4d521c906290ceda629a8d439 | 1,613 | cc | C++ | wcd/src/ActionInitialization.cc | lagoproject/sims | bc34510b803136c770ecd9c789dc7cfade2ccbbd | [
"BSD-3-Clause"
] | null | null | null | wcd/src/ActionInitialization.cc | lagoproject/sims | bc34510b803136c770ecd9c789dc7cfade2ccbbd | [
"BSD-3-Clause"
] | null | null | null | wcd/src/ActionInitialization.cc | lagoproject/sims | bc34510b803136c770ecd9c789dc7cfade2ccbbd | [
"BSD-3-Clause"
] | null | null | null | // Geant4 Libraries
//
// Local Libraries
//
#include "ActionInitialization.hh"
#include "PrimaryGeneratorAction.hh"
#include "RunAction.hh"
#include "SteppingAction.hh"
#include "SteppingVerbose.hh"
#include "EventAction.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
ActionIn... | 26.016129 | 80 | 0.701798 | lagoproject |
e997a6c2895e3e9e0695d7d8f72fd9d4140870d0 | 1,136 | hpp | C++ | source/ashes/renderer/GlRenderer/Miscellaneous/GlQueryPool.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | source/ashes/renderer/GlRenderer/Miscellaneous/GlQueryPool.hpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | source/ashes/renderer/GlRenderer/Miscellaneous/GlQueryPool.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /*
See LICENSE file in root folder
*/
#ifndef ___GlRenderer_QueryPool_H___
#define ___GlRenderer_QueryPool_H___
#include "renderer/GlRenderer/GlRendererPrerequisites.hpp"
namespace ashes::gl
{
class QueryPool
: public AutoIdIcdObject< QueryPool >
{
public:
QueryPool( VkAllocationCallbacks const * allocInfo
... | 17.75 | 58 | 0.722711 | DragonJoker |
e9986bf4a2b5896c69fbf07e488adc8e081df5b7 | 1,025 | cpp | C++ | Game-Engine/sdl/src/MonitorWindow.cpp | Mastera21/GameEngine | 6a103edccd107000f0abc5037ebd670ff53a3873 | [
"Apache-2.0"
] | 1 | 2022-01-23T16:27:55.000Z | 2022-01-23T16:27:55.000Z | Game-Engine/sdl/src/MonitorWindow.cpp | Mastera21/GameEngine | 6a103edccd107000f0abc5037ebd670ff53a3873 | [
"Apache-2.0"
] | null | null | null | Game-Engine/sdl/src/MonitorWindow.cpp | Mastera21/GameEngine | 6a103edccd107000f0abc5037ebd670ff53a3873 | [
"Apache-2.0"
] | null | null | null | #include "sdl/MonitorWindow.h"
#include <iostream>
#include "SDL_video.h"
int32_t sd::MonitorWindow::init(const MonitorWindowCofg& cfg){
Point finalPos;
if(cfg.windowPos == Point::UNDEFINED){
finalPos.x = SDL_WINDOWPOS_UNDEFINED;
finalPos.y = SDL_WINDOWPOS_UNDEFINED;
}else{
finalPos = cfg.windowPos;
}
_w... | 21.808511 | 129 | 0.717073 | Mastera21 |
e99b82440d6c626eeb1d349f509b09ecc701df80 | 2,950 | cpp | C++ | libs/sge_engine/src/sge_engine/enums2d.cpp | ongamex/SGEEngine | de17c10bd880e8175ea01588eeefeb70abfbc3d0 | [
"MIT"
] | 34 | 2021-06-15T10:24:49.000Z | 2022-03-22T19:20:23.000Z | libs/sge_engine/src/sge_engine/enums2d.cpp | ongamex/SGEEngine | de17c10bd880e8175ea01588eeefeb70abfbc3d0 | [
"MIT"
] | 9 | 2021-03-04T21:34:03.000Z | 2021-05-04T18:33:47.000Z | libs/sge_engine/src/sge_engine/enums2d.cpp | ongamex/SGEEngine | de17c10bd880e8175ea01588eeefeb70abfbc3d0 | [
"MIT"
] | 2 | 2021-12-29T01:15:22.000Z | 2022-02-01T10:53:15.000Z | #include "enums2d.h"
#include "sge_core/typelib/typeLib.h"
namespace sge {
// clang-format off
ReflAddTypeId(Anchor, 20'03'01'0003);
ReflAddTypeId(Billboarding, 20'03'01'0002);
ReflBlock() {
ReflAddType(Billboarding)
ReflEnumVal(billboarding_none, "None")
ReflEnumVal(billboarding_yOnly, "UpOnly")
ReflEnumVal(... | 30.412371 | 137 | 0.705424 | ongamex |
e99bf8783c21bb2727c77d68aa80ab9426e07935 | 15,448 | cc | C++ | gpu-simulator/gpgpu-sim/src/stream_manager.cc | tgrogers/accel-sim-framework | ea3d64183bc5d9ff41963ba89a051e0871f243ca | [
"BSD-2-Clause"
] | null | null | null | gpu-simulator/gpgpu-sim/src/stream_manager.cc | tgrogers/accel-sim-framework | ea3d64183bc5d9ff41963ba89a051e0871f243ca | [
"BSD-2-Clause"
] | null | null | null | gpu-simulator/gpgpu-sim/src/stream_manager.cc | tgrogers/accel-sim-framework | ea3d64183bc5d9ff41963ba89a051e0871f243ca | [
"BSD-2-Clause"
] | 4 | 2021-04-24T00:08:23.000Z | 2021-05-13T06:30:21.000Z | // Copyright (c) 2009-2011, Tor M. Aamodt, Wilson W.L. Fung
// The University of British Columbia
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// Redistributions of source code must reta... | 31.917355 | 80 | 0.653936 | tgrogers |
e99ea3e9f4cdfdb1c482e0a386a5c16b9fc15630 | 611 | cpp | C++ | source/main.cpp | ponpiste/BitTorrent | cad7ac1af64ac3075ee1c7b0516458612b1f9a4c | [
"MIT"
] | 1 | 2020-10-12T01:50:17.000Z | 2020-10-12T01:50:17.000Z | source/main.cpp | ponpiste/BitTorrent | cad7ac1af64ac3075ee1c7b0516458612b1f9a4c | [
"MIT"
] | null | null | null | source/main.cpp | ponpiste/BitTorrent | cad7ac1af64ac3075ee1c7b0516458612b1f9a4c | [
"MIT"
] | 1 | 2021-05-21T18:34:39.000Z | 2021-05-21T18:34:39.000Z | #include "parsing/torrent.h"
#include <iostream>
#include "download/peer_id.h"
#include "tracker/tracker.h"
#include "download/download.h"
using namespace std;
int main(int argc, const char** argv) {
if(argc < 2) {
cout<<"usage: BitTorrent <torrent_file>"<<endl;
return 0;
}
srand(time(NULL));
peer_id::gener... | 19.09375 | 72 | 0.671031 | ponpiste |
e9a14a7d9a70aace88b051dd4d54284bbb90d7d9 | 2,297 | cpp | C++ | Spark/EngineSystems/SceneManager.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | 1 | 2022-02-15T19:50:01.000Z | 2022-02-15T19:50:01.000Z | Spark/EngineSystems/SceneManager.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | Spark/EngineSystems/SceneManager.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | #include "SceneManager.h"
#include "GUI/ImGui/imgui.h"
#include "JsonSerializer.h"
#include "ResourceLibrary.h"
#include "Scene.h"
#include "Spark.h"
namespace spark
{
SceneManager::SceneManager()
{
current_scene = std::make_shared<Scene>();
}
void SceneManager::update() const
{
current_scene->update();
}
... | 21.87619 | 105 | 0.595559 | MickAlmighty |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.