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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e92b3fc986d472e7af5280d52c4343cebbe41635 | 117 | cpp | C++ | 07-File-handling/binaryfile.cpp | increedBull7/C-and-DS-by-Bari | c7cb59673c11c3c65772132dadc3db3634fd7f10 | [
"MIT"
] | null | null | null | 07-File-handling/binaryfile.cpp | increedBull7/C-and-DS-by-Bari | c7cb59673c11c3c65772132dadc3db3634fd7f10 | [
"MIT"
] | null | null | null | 07-File-handling/binaryfile.cpp | increedBull7/C-and-DS-by-Bari | c7cb59673c11c3c65772132dadc3db3634fd7f10 | [
"MIT"
] | 1 | 2021-09-27T12:01:55.000Z | 2021-09-27T12:01:55.000Z | #include <iostream>
using namespace std;
int main(){
cout<<hex<<163;
//cout<<set<<"Hello";
return 0;
} | 11.7 | 25 | 0.581197 | increedBull7 |
e92d566697c739a751f4690038593309ecf36d3b | 8,732 | cpp | C++ | samples/Hello/third-party/fuzzylite/examples/takagi-sugeno/matlab/invkine2.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | samples/Hello/third-party/fuzzylite/examples/takagi-sugeno/matlab/invkine2.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | samples/Hello/third-party/fuzzylite/examples/takagi-sugeno/matlab/invkine2.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | #include <fl/Headers.h>
int main(int argc, char** argv){
//Code automatically generated with fuzzylite 6.0.
using namespace fl;
Engine* engine = new Engine;
engine->setName("invkine2");
engine->setDescription("");
InputVariable* input1 = new InputVariable;
input1->setName("input1");
input1->setDescription("");
inpu... | 64.205882 | 108 | 0.730875 | okocsis |
e92e0ea2447db7c1581651f5ee244097062f01df | 6,558 | hpp | C++ | QuantExt/qle/termstructures/yoyinflationcurveobservermoving.hpp | nvolfango/Engine | a5ee0fc09d5a50ab36e50d55893b6e484d6e7004 | [
"BSD-3-Clause"
] | 1 | 2021-03-30T17:24:17.000Z | 2021-03-30T17:24:17.000Z | QuantExt/qle/termstructures/yoyinflationcurveobservermoving.hpp | zhangjiayin/Engine | a5ee0fc09d5a50ab36e50d55893b6e484d6e7004 | [
"BSD-3-Clause"
] | null | null | null | QuantExt/qle/termstructures/yoyinflationcurveobservermoving.hpp | zhangjiayin/Engine | a5ee0fc09d5a50ab36e50d55893b6e484d6e7004 | [
"BSD-3-Clause"
] | 1 | 2022-02-07T02:04:10.000Z | 2022-02-07T02:04:10.000Z | /*
Copyright (C) 2016 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 37.261364 | 111 | 0.695029 | nvolfango |
e92e1b4938c02bd44ffd17b29b06289f768dc1c5 | 1,114 | cpp | C++ | lualibs/bitlib.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | 1 | 2020-01-24T01:14:04.000Z | 2020-01-24T01:14:04.000Z | lualibs/bitlib.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | null | null | null | lualibs/bitlib.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | 1 | 2020-06-05T07:00:16.000Z | 2020-06-05T07:00:16.000Z | #include "lualibs/bitlib.h"
static engine * eventEngine;
static int or_op(lua_State *L) {
int v = 0;
lua_pushnil(L);
while(lua_next(L, -2)) {
v |= ((int)lua_tointeger(L, -1));
lua_pop(L, 1);
}
lua_pushinteger(L,v);
return 1;
}
static int and_op(lua_State *L) {
int v = 0;... | 21.018868 | 78 | 0.584381 | canuc |
e933bc96a3135b31cd39158542f3d9f2c84b8d3f | 557 | cpp | C++ | 450Question(DayWise)/57.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | 450Question(DayWise)/57.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | 450Question(DayWise)/57.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null |
class Solution {
public:
int maximumSwap(int num) {
string n=to_string(num);
//keep in a map the last accurance of each digit
unodered_map<int,int> last;
for(int i=0;i<n.size();i++)
last[n[i]-'0']=i;
for(int i=0;i<n.size();i++)
{
for(int j... | 21.423077 | 56 | 0.37702 | jnvshubham7 |
e93a5606a867254a44102443862a1b3c43fc6b0f | 938 | cpp | C++ | RegexTester/src/main.cpp | GamesTrap/LearnCPP | 710b24876f61e1033aaa0502fc4508250de717c3 | [
"MIT"
] | 7 | 2020-06-14T00:33:29.000Z | 2022-01-08T21:40:06.000Z | RegexTester/src/main.cpp | GamesTrap/LearnCPP | 710b24876f61e1033aaa0502fc4508250de717c3 | [
"MIT"
] | null | null | null | RegexTester/src/main.cpp | GamesTrap/LearnCPP | 710b24876f61e1033aaa0502fc4508250de717c3 | [
"MIT"
] | 1 | 2021-04-04T14:14:15.000Z | 2021-04-04T14:14:15.000Z | #include <iostream>
#include "RegexTester.h"
void TestCases()
{
const std::string testCases[][2] =
{
{"^\\D+([0-9]+) \\1", "Summer 2018 2018"},
{"[a-c]+", "zcbaaxcadey"},
{"\\t", "contains Tab"},
{"[a-c]*", "z"}, //Greedy
{"[^aeiou]+", "hello"},
{"/\\*.*\\*/", "xyz /* hello */ abc */ 123"}, //Greedy
{... | 19.541667 | 127 | 0.509595 | GamesTrap |
e93c6e1ff9a22a2c0f1e875f3166937c54e79cf6 | 26 | cpp | C++ | ChessGUI/GameSetting.cpp | weininglee/OOP03-Chess | a2cbafe14f04d31012d06d59d23504e7c3382af8 | [
"CC0-1.0"
] | null | null | null | ChessGUI/GameSetting.cpp | weininglee/OOP03-Chess | a2cbafe14f04d31012d06d59d23504e7c3382af8 | [
"CC0-1.0"
] | null | null | null | ChessGUI/GameSetting.cpp | weininglee/OOP03-Chess | a2cbafe14f04d31012d06d59d23504e7c3382af8 | [
"CC0-1.0"
] | null | null | null | #include "GameSetting.h"
| 13 | 25 | 0.730769 | weininglee |
e93e5f0c7c39aafc049959dcd9e346bd43a4bf62 | 2,745 | cpp | C++ | JanuaEngine/tgcviewer-cpp/Examples/ExampleOCEngine1/ExampleCreateRawSceneXML.cpp | gigc/Janua | cbcc8ad0e9501e1faef5b37a964769970aa3d236 | [
"MIT",
"Unlicense"
] | 98 | 2015-01-13T16:23:23.000Z | 2022-02-14T21:51:07.000Z | JanuaEngine/tgcviewer-cpp/Examples/ExampleOCEngine1/ExampleCreateRawSceneXML.cpp | gigc/Janua | cbcc8ad0e9501e1faef5b37a964769970aa3d236 | [
"MIT",
"Unlicense"
] | 1 | 2016-06-30T22:07:54.000Z | 2016-06-30T22:07:54.000Z | JanuaEngine/tgcviewer-cpp/Examples/ExampleOCEngine1/ExampleCreateRawSceneXML.cpp | gigc/Janua | cbcc8ad0e9501e1faef5b37a964769970aa3d236 | [
"MIT",
"Unlicense"
] | 13 | 2015-08-26T11:19:08.000Z | 2021-07-12T03:41:50.000Z | /////////////////////////////////////////////////////////////////////////////////
// TgcViewer-cpp
//
// Author: Matias Leone
//
/////////////////////////////////////////////////////////////////////////////////
#include "Examples/ExampleOCEngine1/ExampleCreateRawSceneXML.h"
using namespace Examples;
string Ex... | 24.078947 | 121 | 0.686339 | gigc |
e9420b8861db4897af50ff36678bfb5addac951f | 8,860 | cpp | C++ | tests/auto/qamqpexchange/tst_qamqpexchange.cpp | assignonward/aosuite | 243771d237970fe1175aaabc7d8d22f691076b6b | [
"MIT"
] | null | null | null | tests/auto/qamqpexchange/tst_qamqpexchange.cpp | assignonward/aosuite | 243771d237970fe1175aaabc7d8d22f691076b6b | [
"MIT"
] | null | null | null | tests/auto/qamqpexchange/tst_qamqpexchange.cpp | assignonward/aosuite | 243771d237970fe1175aaabc7d8d22f691076b6b | [
"MIT"
] | 1 | 2018-08-11T20:39:07.000Z | 2018-08-11T20:39:07.000Z | #include <QtTest/QtTest>
#include "signalspy.h"
#include "qamqptestcase.h"
#include "qamqpclient.h"
#include "qamqpexchange.h"
#include "qamqpqueue.h"
class tst_QAMQPExchange : public TestCase
{
Q_OBJECT
private Q_SLOTS:
void init();
void cleanup();
void standardTypes_data();
void standardTypes(... | 35.870445 | 121 | 0.711851 | assignonward |
e9422e0a2dfa363966062cba30201dcf76116647 | 519 | cpp | C++ | CODE_S2_Tues_Thurs/CODE_S2_Tues_Thurs/cMeshObject.cpp | Freethetan/INFO3111-S21 | b0526d641c5e744c38e6a48d1b66a47f0d8dd592 | [
"MIT"
] | null | null | null | CODE_S2_Tues_Thurs/CODE_S2_Tues_Thurs/cMeshObject.cpp | Freethetan/INFO3111-S21 | b0526d641c5e744c38e6a48d1b66a47f0d8dd592 | [
"MIT"
] | null | null | null | CODE_S2_Tues_Thurs/CODE_S2_Tues_Thurs/cMeshObject.cpp | Freethetan/INFO3111-S21 | b0526d641c5e744c38e6a48d1b66a47f0d8dd592 | [
"MIT"
] | null | null | null | #include "cMeshObject.h"
cMeshObject::cMeshObject()
{
this->meshName = "";
this->position = glm::vec3(0.0f, 0.0f, 0.0f);
this->wholeObjectColour = glm::vec4(0.0f, 0.0f, 0.0f, 1.0f); // 0,0,0,1 (black)
this->orientation = glm::vec3(0.0f, 0.0f, 0.0f); // Euler angles (x, y, and z)
this->scale = 1.0f; // 1.0f
... | 25.95 | 80 | 0.618497 | Freethetan |
e9438b487334094863815802e95838749bf54915 | 2,770 | hpp | C++ | libcaf_core/caf/deduce_mpi.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/deduce_mpi.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/deduce_mpi.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include <type_traits>
#include "caf/detail/implicit_conversions.hpp"
#incl... | 30.43956 | 77 | 0.678339 | seewpx |
e944e2ddd4607411eee4a7f93da89205cfde2846 | 1,934 | hpp | C++ | include/cpl/search/brent_find_cycle.hpp | dieram3/competitive-programming-library | 29bd0204d00c08e56d1f7fedc5c6c3603c4e5121 | [
"BSL-1.0"
] | 25 | 2016-05-03T02:08:58.000Z | 2022-01-11T03:49:28.000Z | include/cpl/search/brent_find_cycle.hpp | dieram3/competitive-programming-library | 29bd0204d00c08e56d1f7fedc5c6c3603c4e5121 | [
"BSL-1.0"
] | 22 | 2016-04-26T04:46:17.000Z | 2016-12-06T03:53:32.000Z | include/cpl/search/brent_find_cycle.hpp | dieram3/competitive-programming-library | 29bd0204d00c08e56d1f7fedc5c6c3603c4e5121 | [
"BSL-1.0"
] | 5 | 2017-04-04T16:10:42.000Z | 2019-12-05T08:22:30.000Z | // Copyright Diego Ramirez 2015
// 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 CPL_SEARCH_BRENT_FIND_CYCLE_HPP
#define CPL_SEARCH_BRENT_FIND_CYCLE_HPP
#include <cstddef> // size_t
... | 28.865672 | 78 | 0.626163 | dieram3 |
e944f238abd42ba6688d00b48e93cf8801b19112 | 1,814 | cpp | C++ | src/plugins/robots/attabot/simulator/attabot_measures.cpp | DiegoD616/argos3-ATTABOT | e909bf1432dbd6649450dbb95e4e9f68f375eefa | [
"MIT"
] | null | null | null | src/plugins/robots/attabot/simulator/attabot_measures.cpp | DiegoD616/argos3-ATTABOT | e909bf1432dbd6649450dbb95e4e9f68f375eefa | [
"MIT"
] | null | null | null | src/plugins/robots/attabot/simulator/attabot_measures.cpp | DiegoD616/argos3-ATTABOT | e909bf1432dbd6649450dbb95e4e9f68f375eefa | [
"MIT"
] | null | null | null | /**
* @file <argos3/plugins/robots/attabot/simulator/attabot_measures.h>
*
* @author Carlo Pinciroli - <ilpincy@gmail.com>
*/
#include "attabot_measures.h"
/****************************************/
/****************************************/
const Real ATTABOT_BASE_RADIUS = 0.0704;
const Real ATTABOT_BASE_ELE... | 36.28 | 96 | 0.699008 | DiegoD616 |
e9453d612cafe580c706515bbaa88360bb2ded7d | 2,594 | cpp | C++ | HazelGameEngine/src/Hazel/Core/Application.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | HazelGameEngine/src/Hazel/Core/Application.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | HazelGameEngine/src/Hazel/Core/Application.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | #include "hzpch.h"
#include "Application.h"
#include "Hazel/Events/ApplicationEvent.h"
#include "Hazel/Core/Log.h"
#include "Input.h"
#include "Hazel/Renderer/Renderer.h"
#include "glm/glm.hpp"
#include <GLFW/glfw3.h>
namespace Hazel {
#define BIND_EVENT_FN(x) std::bind(&x, this, std::placeholders::_1)
//assign ... | 22.17094 | 85 | 0.681958 | duo131 |
e946abe52374922bed3d60418603417c3dedd69d | 372 | cpp | C++ | meta/test/test_complete_type.cpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | 24 | 2020-07-01T13:45:50.000Z | 2021-11-04T19:54:47.000Z | meta/test/test_complete_type.cpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | null | null | null | meta/test/test_complete_type.cpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | null | null | null | #include <catch2/catch.hpp>
#include <mgs/meta/concepts/complete_type.hpp>
using namespace mgs::meta;
TEST_CASE("complete_type")
{
static_assert(is_complete_type<int>::value, "");
static_assert(is_complete_type<struct incomplete*>::value, "");
static_assert(!is_complete_type<struct incomplete>::value, "");
s... | 26.571429 | 65 | 0.744624 | theodelrieu |
e948cd4fea41ac4a023bfc25f292e2da7aaa19c6 | 6,639 | hxx | C++ | nixycore/string/detail/string_ops_define.hxx | yyzybb537/nixy | a77d0eac833a29d29d6717ce722ed75a813a4e1f | [
"MIT"
] | 1 | 2016-09-24T03:49:30.000Z | 2016-09-24T03:49:30.000Z | nixycore/string/detail/string_ops_define.hxx | yyzybb537/nixy | a77d0eac833a29d29d6717ce722ed75a813a4e1f | [
"MIT"
] | null | null | null | nixycore/string/detail/string_ops_define.hxx | yyzybb537/nixy | a77d0eac833a29d29d6717ce722ed75a813a4e1f | [
"MIT"
] | 4 | 2015-10-30T04:01:09.000Z | 2021-01-07T05:11:56.000Z | /*
The Nixy Library
Code covered by the MIT License
Modified from Extended STL string (http://www.gotroot.ca/ext_string)
Modified by : mutouyun (http://darkc.at)
Copyright (c) 2005, Keenan Tims (ktims@gotroot.ca) All rights reserved.
*/
////////////////////////////////////////////////////////////... | 22.972318 | 117 | 0.480795 | yyzybb537 |
e94d9d9c5b2d14bc4c7f52b2f912ae12bd6c393f | 371 | cpp | C++ | gnuplot/gsyscall.cpp | yan9a/plotcpp | 27dc7bcf7b2508de13884bec3b22250db3b8421f | [
"MIT"
] | null | null | null | gnuplot/gsyscall.cpp | yan9a/plotcpp | 27dc7bcf7b2508de13884bec3b22250db3b8421f | [
"MIT"
] | null | null | null | gnuplot/gsyscall.cpp | yan9a/plotcpp | 27dc7bcf7b2508de13884bec3b22250db3b8421f | [
"MIT"
] | null | null | null | // File: gsyscall.cpp
// Description: gnuplot system call
// WebSite: http://cool-emerald.blogspot.com
// MIT License (https://opensource.org/licenses/MIT)
// Copyright (c) 2018 Yan Naing Aye
#include <iostream>
using namespace std;
int main() {
cout<<"Using gnuplot"<<endl;
system("gnuplot -p -e \"set datafile... | 28.538462 | 75 | 0.679245 | yan9a |
e950d758ddf11187b791f6b8ea779548ab0ce2e1 | 17,741 | hpp | C++ | modules/core/linalg/include/nt2/linalg/functions/factorizations/symeig.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/linalg/include/nt2/linalg/functions/factorizations/symeig.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/linalg/include/nt2/linalg/functions/factorizations/symeig.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2013 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 34.650391 | 86 | 0.457584 | psiha |
e952153a56db7bb8679eeeb5d9da42174f8bc990 | 4,641 | cpp | C++ | Sources/Internal/Render/RenderPass/ForwardRenderPass.cpp | nameless323/KiotoEngine | 3db271540b4cacdfbca697acfa029dd8caf72761 | [
"MIT"
] | 4 | 2019-04-26T15:48:10.000Z | 2020-06-02T02:15:07.000Z | Sources/Internal/Render/RenderPass/ForwardRenderPass.cpp | nameless323/KiotoEngine | 3db271540b4cacdfbca697acfa029dd8caf72761 | [
"MIT"
] | 2 | 2017-08-11T10:49:55.000Z | 2020-04-04T13:20:22.000Z | Sources/Internal/Render/RenderPass/ForwardRenderPass.cpp | nameless323/KiotoEngine | 3db271540b4cacdfbca697acfa029dd8caf72761 | [
"MIT"
] | 1 | 2021-02-07T08:28:04.000Z | 2021-02-07T08:28:04.000Z | #include "stdafx.h"
#include "Render/RenderPass/ForwardRenderPass.h"
#include "Core/KiotoEngine.h"
#include "Render/Camera.h"
#include "Render/Material.h"
#include "Render/Renderer.h"
#include "Render/RenderCommand.h"
#include "Render/RenderObject.h"
#include "Render/RenderPacket.h"
#include "Render/RenderSettings.h"... | 36.543307 | 143 | 0.730661 | nameless323 |
e9525818407981a21848642878a2d8bdc12dc669 | 6,264 | cpp | C++ | src/Internal/Connection.cpp | MrElectrify/BetteRCon | ecec11174c2aa90a142ef0169b00ad97af9a1068 | [
"MIT"
] | 2 | 2019-12-13T04:10:25.000Z | 2021-10-29T21:26:07.000Z | src/Internal/Connection.cpp | MrElectrify/BetteRCon | ecec11174c2aa90a142ef0169b00ad97af9a1068 | [
"MIT"
] | 2 | 2019-12-26T05:31:46.000Z | 2020-01-18T23:26:46.000Z | src/Internal/Connection.cpp | MrElectrify/BetteRCon | ecec11174c2aa90a142ef0169b00ad97af9a1068 | [
"MIT"
] | null | null | null | #include <BetteRCon/Internal/Connection.h>
using BetteRCon::Internal::Connection;
using BetteRCon::Internal::Packet;
Connection::Connection(Worker_t& worker)
: m_worker(worker), m_connected(false),
m_socket(m_worker), m_timeoutTimer(m_worker) {}
void Connection::AsyncConnect(const Endpoint_t& endpoint, ConnectCal... | 31.796954 | 119 | 0.737388 | MrElectrify |
e953adaa8c90c82e9ac89b889a18c71c6ff7b3ed | 3,119 | cpp | C++ | aws-cpp-sdk-alexaforbusiness/source/model/ConferenceProvider.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-alexaforbusiness/source/model/ConferenceProvider.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-alexaforbusiness/source/model/ConferenceProvider.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 1 | 2019-01-18T13:03:55.000Z | 2019-01-18T13:03:55.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 21.363014 | 105 | 0.727797 | curiousjgeorge |
e95a5144c57fb9516db01b2a9baaee4ea76587d5 | 1,559 | hpp | C++ | Source Files/Objects/libstructimpl.hpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | 1 | 2022-03-25T10:20:25.000Z | 2022-03-25T10:20:25.000Z | Source Files/Objects/libstructimpl.hpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | null | null | null | Source Files/Objects/libstructimpl.hpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | null | null | null | #include <iostream>
#include <string>
#include <stdlib.h>
#include <cstdio>
#define MAX_LIMIT_SZ 2048
using namespace std;
typedef struct error{
int *p;
error *dangle = NULL;
}error;
typedef struct node{
int j;
char ch[2];
node *left;
node *right ;
node *dangler ;
node():j(MAX_LIMIT_SZ),... | 27.350877 | 97 | 0.508659 | hendry19901990 |
e95cd4976991fbffc0436b5509969ea66722bb23 | 639 | hpp | C++ | src/action_and_component_macros/case_3/actions.hpp | McKillroy/hpx_snippets | 0c87b979cdd3947431be24f88bdb8d16d0c20187 | [
"BSL-1.0"
] | null | null | null | src/action_and_component_macros/case_3/actions.hpp | McKillroy/hpx_snippets | 0c87b979cdd3947431be24f88bdb8d16d0c20187 | [
"BSL-1.0"
] | null | null | null | src/action_and_component_macros/case_3/actions.hpp | McKillroy/hpx_snippets | 0c87b979cdd3947431be24f88bdb8d16d0c20187 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <hpx/hpx.hpp>
namespace test {
// Free function in namespace
int some_function( );
// Define the action (inside the namespace):
// Parameters: function name, desired action name
HPX_DEFINE_PLAIN_ACTION( some_function, some_function_action );
}; // namespace test
// Declar... | 31.95 | 95 | 0.763693 | McKillroy |
e95d67f7401d88fdcb5269fc7a5b94271a778978 | 2,952 | hpp | C++ | hmath/core/units.hpp | oliver-peoples/Hamiltonian-Mathematics | 91075f44829829fb7052b38bcdffd4a58d8c7b6d | [
"Unlicense"
] | null | null | null | hmath/core/units.hpp | oliver-peoples/Hamiltonian-Mathematics | 91075f44829829fb7052b38bcdffd4a58d8c7b6d | [
"Unlicense"
] | null | null | null | hmath/core/units.hpp | oliver-peoples/Hamiltonian-Mathematics | 91075f44829829fb7052b38bcdffd4a58d8c7b6d | [
"Unlicense"
] | null | null | null | #ifndef HMATH_UNITS_HPP
#define HMATH_UNITS_HPP
namespace hmath
{
namespace unit
{
// The base units
const long double second = 1.0;
const long double meter = 1.0;
const long double kilogram = 1.0;
const long double ampere = 1.0;
const long double kelvin = 1.0;
... | 34.729412 | 93 | 0.615854 | oliver-peoples |
e95dac3823c1707c150ee8017de9f59909f2a2c0 | 24,507 | cpp | C++ | modules/tracktion_engine/model/edit/tracktion_TimecodeDisplayFormat.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/model/edit/tracktion_TimecodeDisplayFormat.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/model/edit/tracktion_TimecodeDisplayFormat.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 32.895302 | 155 | 0.555474 | jbloit |
e966565428d01c328a1134e44ab0200556f7c84c | 7,080 | cpp | C++ | Sources/Menu.cpp | AnalogMan151/Re-Decode | 7ce4153e00fe234a0347f48c1ebc99c6c7578e02 | [
"Unlicense"
] | 4 | 2021-08-17T18:03:02.000Z | 2021-11-06T21:39:05.000Z | Sources/Menu.cpp | AnalogMan151/Re-Decode | 7ce4153e00fe234a0347f48c1ebc99c6c7578e02 | [
"Unlicense"
] | 1 | 2021-08-11T05:10:38.000Z | 2021-08-11T05:14:43.000Z | Sources/Menu.cpp | AnalogMan151/Re-Decode | 7ce4153e00fe234a0347f48c1ebc99c6c7578e02 | [
"Unlicense"
] | 1 | 2021-08-15T02:56:15.000Z | 2021-08-15T02:56:15.000Z | #include "Menu.hpp"
#include "Cheats.hpp"
#include "Unicode.h"
#include "Helpers/HotkeyHelpers.hpp"
using namespace CTRPluginFramework;
extern std::vector<std::string> approvedCodes;
// Entries with keyboard input made global so keyboard function can enable entry upon input
MenuEntry *g_setMoneyFunc = Entry("Freeze ... | 50.212766 | 224 | 0.663983 | AnalogMan151 |
e96727454184931189840b8f94b60cc2edd2be8e | 2,548 | cpp | C++ | example/example06.cpp | zemasoft/wildcards | 5662507f01f5d0a4ec22f45749214276ed366d1b | [
"BSL-1.0"
] | 39 | 2018-04-17T08:25:12.000Z | 2022-03-08T17:15:50.000Z | example/example06.cpp | zemasoft/wildcards | 5662507f01f5d0a4ec22f45749214276ed366d1b | [
"BSL-1.0"
] | 27 | 2018-04-11T19:38:18.000Z | 2020-06-30T05:38:26.000Z | example/example06.cpp | zemasoft/wildcards | 5662507f01f5d0a4ec22f45749214276ed366d1b | [
"BSL-1.0"
] | 4 | 2019-10-29T23:29:39.000Z | 2021-02-06T10:52:13.000Z | // Copyright Tomas Zeman 2018.
// 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)
#include <cmath>
#include <cstring>
#include <iostream>
#include <random>
#include <stdexcept>
#include <vector>
#include "cx/strin... | 20.222222 | 85 | 0.618132 | zemasoft |
e9688de0a9a818f7c86f3863071ca84f111e3e81 | 1,736 | cpp | C++ | Pods/OLMKit/src/utility.cpp | Adore-Infotech/New-IOS2021 | 01efbc0fa61d9af238a00684db1d4455a790ca63 | [
"Apache-2.0"
] | 1 | 2020-08-09T01:02:27.000Z | 2020-08-09T01:02:27.000Z | Pods/OLMKit/src/utility.cpp | Adore-Infotech/New-IOS2021 | 01efbc0fa61d9af238a00684db1d4455a790ca63 | [
"Apache-2.0"
] | null | null | null | Pods/OLMKit/src/utility.cpp | Adore-Infotech/New-IOS2021 | 01efbc0fa61d9af238a00684db1d4455a790ca63 | [
"Apache-2.0"
] | 1 | 2021-12-04T21:07:09.000Z | 2021-12-04T21:07:09.000Z | /* Copyright 2015 OpenMarket 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 ... | 29.931034 | 80 | 0.709677 | Adore-Infotech |
e96bc64beb7e9de54607bfe576b324477d1ce187 | 7,442 | cpp | C++ | DlgSplice.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 12 | 2019-06-07T10:06:41.000Z | 2021-03-22T22:13:59.000Z | DlgSplice.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 1 | 2019-05-09T07:38:12.000Z | 2019-07-10T04:20:55.000Z | DlgSplice.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 3 | 2020-09-08T08:27:33.000Z | 2021-05-13T09:25:43.000Z | // DlgSplice.cpp : implementation file
//
#include "stdafx.h"
#include "audtest.h"
#include "Xform.h"
#include "zFormEdt.h"
#include "DlgSplice.h"
#include "DataSet.h"
#include "Folder.h"
#include "Utils.h"
#include "DlgSelec.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FIL... | 22.214925 | 109 | 0.653319 | RDamman |
e96d1b9c06051a494853369fc5ff430b8dd17da4 | 2,516 | cc | C++ | test/cpp/schema_specific/inverse_attr3.cc | tewk/stepcode | 4925b16978c74335b722efd2c35f878a158de57b | [
"BSD-3-Clause"
] | null | null | null | test/cpp/schema_specific/inverse_attr3.cc | tewk/stepcode | 4925b16978c74335b722efd2c35f878a158de57b | [
"BSD-3-Clause"
] | null | null | null | test/cpp/schema_specific/inverse_attr3.cc | tewk/stepcode | 4925b16978c74335b722efd2c35f878a158de57b | [
"BSD-3-Clause"
] | null | null | null | /** \file inverse_attr3.cc
* Oct 2013
* Test inverse attributes; uses a tiny schema similar to a subset of IFC2x3
*
* This test originally used STEPfile, which didn't work. Fixing STEPfile would have been very difficult, it uses lazyInstMgr now.
*/
#include <sc_cf.h>
extern void SchemaInit( class Registry & );
#in... | 34.465753 | 141 | 0.618045 | tewk |
e96dc274337ac690d36dd61cd328fa6be1a14a0c | 2,192 | cpp | C++ | dijkstra.cpp | qq372505855/shortest_path_algorithms | b32c1c3848d286a5903fed5608b76185c36c5335 | [
"Apache-2.0"
] | 1 | 2019-03-13T15:43:57.000Z | 2019-03-13T15:43:57.000Z | dijkstra.cpp | qq372505855/shortest_path_algorithms | b32c1c3848d286a5903fed5608b76185c36c5335 | [
"Apache-2.0"
] | null | null | null | dijkstra.cpp | qq372505855/shortest_path_algorithms | b32c1c3848d286a5903fed5608b76185c36c5335 | [
"Apache-2.0"
] | null | null | null | /******************************************************************
* FileName : dijkstra.cpp
* Author : Lishuxiang
* E-mail : lishuxiang@cug.edu.cn
* Time : Wed 16 Jan 2019 07:29:14 PM CST
* Function :
******************************************************************/
#include<iostream>
#include<string... | 23.319149 | 67 | 0.510036 | qq372505855 |
e97804a7949f241570438c7de01ee78ee1239218 | 6,116 | cc | C++ | tests/test_char_set.cc | phisixersai/ppapi | a4d4a5a249d3f369903be3e1fa1a1dfd16de82e0 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | tests/test_char_set.cc | rise-worlds/ppapi | a4d4a5a249d3f369903be3e1fa1a1dfd16de82e0 | [
"BSD-3-Clause"
] | null | null | null | tests/test_char_set.cc | rise-worlds/ppapi | a4d4a5a249d3f369903be3e1fa1a1dfd16de82e0 | [
"BSD-3-Clause"
] | 1 | 2020-01-16T01:46:31.000Z | 2020-01-16T01:46:31.000Z | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ppapi/tests/test_char_set.h"
#include "ppapi/c/dev/ppb_char_set_dev.h"
#include "ppapi/cpp/module.h"
#include "ppapi/tests/testing_instance... | 36.404762 | 78 | 0.703564 | phisixersai |
e97b7d37f58d3786c3df1ff0223470105375f156 | 17,155 | cpp | C++ | src/algorithm/cherrypicker.cpp | allison-group/indigox | 22657cb3ceb888049cc231e73d18fb2eac099604 | [
"MIT"
] | 7 | 2019-11-24T15:51:37.000Z | 2021-10-02T05:18:42.000Z | src/algorithm/cherrypicker.cpp | allison-group/indigox | 22657cb3ceb888049cc231e73d18fb2eac099604 | [
"MIT"
] | 2 | 2018-12-17T00:55:32.000Z | 2019-10-11T01:47:04.000Z | src/algorithm/cherrypicker.cpp | allison-group/indigox | 22657cb3ceb888049cc231e73d18fb2eac099604 | [
"MIT"
] | 2 | 2019-10-21T01:26:56.000Z | 2019-12-02T00:00:42.000Z | #include <indigox/algorithm/cherrypicker.hpp>
#include <indigox/algorithm/graph/isomorphism.hpp>
#include <indigox/classes/angle.hpp>
#include <indigox/classes/athenaeum.hpp>
#include <indigox/classes/atom.hpp>
#include <indigox/classes/bond.hpp>
#include <indigox/classes/dihedral.hpp>
#include <indigox/classes/molecul... | 41.139089 | 136 | 0.626931 | allison-group |
e97e01a296fe1bd4f1039f9d28e0e604a5fbfef6 | 717 | hpp | C++ | src/model/cell.hpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2020-04-10T14:39:00.000Z | 2021-02-11T15:52:16.000Z | src/model/cell.hpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2019-12-17T08:50:20.000Z | 2020-02-03T09:37:56.000Z | src/model/cell.hpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 1 | 2020-08-19T03:06:52.000Z | 2020-08-19T03:06:52.000Z | #ifndef NINJACLOWN_CELL_HPP
#define NINJACLOWN_CELL_HPP
#include "model/interaction.hpp"
#include "model/types.hpp"
#include "utils/optional.hpp"
namespace model {
namespace cst {
constexpr float cell_width = 1.0f;
constexpr float cell_height = 1.0f;
} // namespace cst
enum class cell_type {
CHASM = 1,
GROUND... | 18.868421 | 59 | 0.72106 | TiWinDeTea |
e97eb0b9b87acd5875e06333d265a16c11236bed | 15,402 | hpp | C++ | em_unet/src/PyGreentea/evaluation/src_cython/zi/mesh_tmp/tri_mesh.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 10 | 2018-09-13T17:37:22.000Z | 2020-05-08T16:20:42.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/mesh/tri_mesh.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 1 | 2018-12-02T14:17:39.000Z | 2018-12-02T20:59:26.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/mesh/tri_mesh.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 2 | 2019-03-03T12:06:10.000Z | 2020-04-12T13:23:02.000Z | //
// Copyright (C) 2010 Aleksandar Zlateski <zlateski@mit.edu>
// ----------------------------------------------------------
//
// 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 versio... | 24.564593 | 103 | 0.521491 | VCG |
e9835db2e486b5ce0ec02b1f3a4ede9f0aef7401 | 1,797 | cpp | C++ | c++/16-linked-list-appending.cpp | riskycase/pu2-computer | 31c8f3d54c96fa58b5a9cf07315f284af87cc19b | [
"MIT"
] | null | null | null | c++/16-linked-list-appending.cpp | riskycase/pu2-computer | 31c8f3d54c96fa58b5a9cf07315f284af87cc19b | [
"MIT"
] | null | null | null | c++/16-linked-list-appending.cpp | riskycase/pu2-computer | 31c8f3d54c96fa58b5a9cf07315f284af87cc19b | [
"MIT"
] | null | null | null | /**
* Write a program to create a linked list and append elements to it
*/
#include<iostream>
#define endl "\n"
using namespace std;
class linklist {
private:
struct Node {
int data;
Node* link;
}*START;
public:
linklist();
void print();
void append( int item );
void count();
};
linklist::link... | 18.525773 | 74 | 0.608236 | riskycase |
e984b50ccf1ee3dc98211bb1a31fbe3896da7813 | 1,315 | cpp | C++ | stringsorting.cpp | ayaankhan98/C-Progamming_basics | 0aba46dfe91986e30151bed54eaa7f66d0486c5e | [
"MIT"
] | null | null | null | stringsorting.cpp | ayaankhan98/C-Progamming_basics | 0aba46dfe91986e30151bed54eaa7f66d0486c5e | [
"MIT"
] | null | null | null | stringsorting.cpp | ayaankhan98/C-Progamming_basics | 0aba46dfe91986e30151bed54eaa7f66d0486c5e | [
"MIT"
] | null | null | null | #include <iostream>
//#include <string>
using namespace std;
class Person
{
private:
string name;
public:
string getname()
{
return name;
}
void setname()
{
cout<<"Enter Name : ";
cin>>name;
}
void printname()
... | 18.013699 | 51 | 0.455513 | ayaankhan98 |
e986516d067e77784b18df31abf4ca29edb96d47 | 10,025 | cpp | C++ | src/arduino/webusb/Adafruit_USBD_WebUSB.cpp | earlephilhower/Adafruit_TinyUSB_Arduino | 2168ccf7c51cbc99bd90104647d1c12844330023 | [
"MIT"
] | 2 | 2021-07-07T10:13:35.000Z | 2021-10-08T06:40:29.000Z | src/arduino/webusb/Adafruit_USBD_WebUSB.cpp | earlephilhower/Adafruit_TinyUSB_Arduino | 2168ccf7c51cbc99bd90104647d1c12844330023 | [
"MIT"
] | null | null | null | src/arduino/webusb/Adafruit_USBD_WebUSB.cpp | earlephilhower/Adafruit_TinyUSB_Arduino | 2168ccf7c51cbc99bd90104647d1c12844330023 | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2019 hathach for Adafruit Industries
*
* 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 th... | 33.305648 | 102 | 0.659052 | earlephilhower |
e9870c315b6c6259000d88f6df1b2655669312e6 | 2,063 | cpp | C++ | software/src/8.0/src/frontend/MStermio.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | software/src/8.0/src/frontend/MStermio.cpp | VisionAerie/vision | e40c39e3abc49b0e2c9623204c54b900c4333f29 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/8.0/src/frontend/MStermio.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** Machine Specific Terminal IO *****/
#include "Vk.h"
#include "V_VString.h"
#include "stdcurses.h"
#include "SItermio.h"
/*******************************************
***** CURSES compatibility routines *****
*******************************************/
PublicVarDef int STD_hasInsertDeleteLine = FALSE... | 18.419643 | 73 | 0.631604 | c-kuhlman |
e988cf61dd86bf57054dfa5c2fcc0fe7c7fb9ef0 | 1,557 | cpp | C++ | tracking_allocatated_memory.cpp | vsoftco/snippets | 467520e285f9c83024416f050a5357bf659f4860 | [
"MIT"
] | 13 | 2015-04-21T09:09:59.000Z | 2021-11-27T11:00:40.000Z | tracking_allocatated_memory.cpp | vsoftco/snippets | 467520e285f9c83024416f050a5357bf659f4860 | [
"MIT"
] | null | null | null | tracking_allocatated_memory.cpp | vsoftco/snippets | 467520e285f9c83024416f050a5357bf659f4860 | [
"MIT"
] | 3 | 2019-08-09T09:29:59.000Z | 2021-01-09T08:52:11.000Z | // Keeping track of memory allocation
// http://stackoverflow.com/q/29820626/3093378 (question)
// http://stackoverflow.com/a/29821408/3093378 (my answer)
#include <iostream>
#include <map>
std::map<void*, std::size_t> memory; // globally allocated memory map
struct tag {}; // tag for placement new's so we don't over... | 23.238806 | 78 | 0.595376 | vsoftco |
e9891e5a44a17a1e41c1fb1f5139c466c8db2360 | 989 | cpp | C++ | module/Utils.cpp | eXo-MTA/GPS-Module | 60627b561d42cb17d898387a67665260c78e3fcf | [
"MIT"
] | 15 | 2019-11-14T00:20:17.000Z | 2022-01-13T14:37:51.000Z | module/Utils.cpp | eXo-MTA/GPS-Module | 60627b561d42cb17d898387a67665260c78e3fcf | [
"MIT"
] | 6 | 2017-04-27T19:16:02.000Z | 2017-06-23T01:26:17.000Z | module/Utils.cpp | eXo-MTA/GPS-Module | 60627b561d42cb17d898387a67665260c78e3fcf | [
"MIT"
] | 3 | 2021-02-17T18:17:02.000Z | 2021-11-12T00:29:29.000Z | #include "Utils.h"
void Utils::GetNodeNeighbors(lua_State* luaVM, pathfind::GraphNode* startNode, int depth)
{
std::size_t index = 1;
for (const auto& pair : startNode->edges)
{
pathfind::GraphNode* edgeNode = pair.first;
lua_pushnumber(luaVM, index++);
lua_newtable(luaVM);
lua_pushnumber(luaVM, 1);
... | 24.121951 | 89 | 0.656218 | eXo-MTA |
e989c17db87fc40f1ced81df5952d8874a1add6d | 13,217 | cpp | C++ | RenderOverlays/HighlightEffects.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | 3 | 2018-05-17T08:39:39.000Z | 2020-12-09T13:20:26.000Z | RenderOverlays/HighlightEffects.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | null | null | null | RenderOverlays/HighlightEffects.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | 1 | 2021-11-14T08:50:15.000Z | 2021-11-14T08:50:15.000Z | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "HighlightEffects.h"
#include "../../RenderCore/Metal/DeviceContext.h"
#include "../../RenderCore/Metal/Shader.h"
#include "../../Ren... | 39.571856 | 186 | 0.697813 | pocketgems |
e98f021fc51fd014239c759cce7fbbd9e729508e | 4,081 | cpp | C++ | src/LumberJack.cpp | FRC-3277/2018POWER-UP | 063797b865c3985b77dabe51173595a995d99f0f | [
"MIT"
] | 2 | 2018-01-26T00:54:32.000Z | 2018-03-22T02:24:06.000Z | src/LumberJack.cpp | FRC-3277/2018POWER-UP | 063797b865c3985b77dabe51173595a995d99f0f | [
"MIT"
] | 2 | 2018-02-10T04:04:13.000Z | 2018-02-11T02:24:08.000Z | src/LumberJack.cpp | FRC-3277/2018POWER-UP | 063797b865c3985b77dabe51173595a995d99f0f | [
"MIT"
] | null | null | null | #include <LumberJack.h>
INITIALIZE_EASYLOGGINGPP
LumberJack::LumberJack() {
defaultConf.setToDefault();
defaultLogger = el::Loggers::getLogger("default");
}
LumberJack::~LumberJack() {
}
void LumberJack::SetLoggingLevel(el::Level argSeverityLevel)
{
severityLevelChosen = argSeverityLevel;
}
void LumberJack::SetC... | 20.004902 | 94 | 0.737564 | FRC-3277 |
e9942507bfe3217a594bd9a9b56de1cd11ad17aa | 319 | hpp | C++ | include/andromeda/graphics/environment.hpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 7 | 2020-04-28T11:01:55.000Z | 2022-02-22T09:59:33.000Z | include/andromeda/graphics/environment.hpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 2 | 2021-09-03T12:58:06.000Z | 2021-09-20T20:07:33.000Z | include/andromeda/graphics/environment.hpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 1 | 2021-09-03T12:56:25.000Z | 2021-09-03T12:56:25.000Z | #pragma once
#include <phobos/image.hpp>
#include <andromeda/util/handle.hpp>
namespace andromeda::gfx {
struct Environment {
ph::RawImage cubemap;
ph::ImageView cubemap_view;
ph::RawImage irradiance;
ph::ImageView irradiance_view;
ph::RawImage specular;
ph::ImageView specular_view;
};
} | 15.95 | 36 | 0.708464 | NotAPenguin0 |
e9945e5159b3c244910b59fcbf95313f77fd873b | 12,678 | hpp | C++ | 08/vector_tests.hpp | k911mipt/made_2019_cpp | a55a7c867cdc1c076ae86c89a79df6581c80da7b | [
"MIT"
] | null | null | null | 08/vector_tests.hpp | k911mipt/made_2019_cpp | a55a7c867cdc1c076ae86c89a79df6581c80da7b | [
"MIT"
] | null | null | null | 08/vector_tests.hpp | k911mipt/made_2019_cpp | a55a7c867cdc1c076ae86c89a79df6581c80da7b | [
"MIT"
] | null | null | null | #pragma once
#ifndef PRINT_TESTS_H_
#define PRINT_TESTS_H_
#include <algorithm>
#include <functional>
#include "vector.hpp"
#include <deque>
namespace made {
namespace test {
using TestFunc = std::function<bool()>;
using TestGetter = std::function<std::vector<TestFunc>()>;
namespace stl... | 35.61236 | 117 | 0.432324 | k911mipt |
e995169aa51097e69d22d95e7028396678498dc5 | 1,206 | cpp | C++ | InSight/src/Platform/OpenGL/OpenGLContext.cpp | I-Hudson/InSightEngine | a766c87a7be51a19ab796a81888fbbf93a8a43be | [
"Apache-2.0"
] | 3 | 2019-05-26T19:22:27.000Z | 2019-07-09T21:42:18.000Z | InSight/src/Platform/OpenGL/OpenGLContext.cpp | I-Hudson/InSightEngine | a766c87a7be51a19ab796a81888fbbf93a8a43be | [
"Apache-2.0"
] | 15 | 2019-05-26T09:32:22.000Z | 2019-06-11T11:31:03.000Z | InSight/src/Platform/OpenGL/OpenGLContext.cpp | I-Hudson/Insight-Engine | a766c87a7be51a19ab796a81888fbbf93a8a43be | [
"Apache-2.0"
] | null | null | null | #include "Platform/OpenGL/OpenGLContext.h"
#include "InSight/Log.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
namespace InSight
{
OpenGLContext::OpenGLContext(GLFWwindow * aWindowHandle)
: mWindowHandle(aWindowHandle)
{
EN_CORE_ASSERT(mWindowHandle, "Window handle is null!");
}
void OpenGLContext::Init()... | 33.5 | 118 | 0.743781 | I-Hudson |
e996d2245d638ec7ef146c111aa9d1f89b888b1f | 2,806 | cpp | C++ | Topcoder/asia-mut/C.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | 1 | 2015-11-03T09:31:07.000Z | 2015-11-03T09:31:07.000Z | Topcoder/asia-mut/C.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | null | null | null | Topcoder/asia-mut/C.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | null | null | null | // File Name: C.cpp
// Author: YangYue
// Created Time: Mon Jul 28 14:55:52 2014
//headers
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <ctime>
#include <string>
#include <queue>
#include <set>
#include <map>
#include <iostream>
#include <vec... | 21.419847 | 88 | 0.571632 | CodingYue |
e999b6a575e299a4d5c495d2c48042494cf02120 | 1,619 | hh | C++ | io/FilteringLineIStream.hh | gvissers/quill2 | 589d7bc3ce20da888547f8f4f6b8da908b3d63a5 | [
"Apache-2.0"
] | null | null | null | io/FilteringLineIStream.hh | gvissers/quill2 | 589d7bc3ce20da888547f8f4f6b8da908b3d63a5 | [
"Apache-2.0"
] | null | null | null | io/FilteringLineIStream.hh | gvissers/quill2 | 589d7bc3ce20da888547f8f4f6b8da908b3d63a5 | [
"Apache-2.0"
] | null | null | null | #ifndef FILTERINGLINEISTREAM_HH
#define FILTERINGLINEISTREAM_HH
/*!
* \file FilteringLineIStream.hh
* \brief Definition of the FilteringLineIStream class
*/
#include "io/LineIStream.hh"
#include "io/FilteringIStream.hh"
/*!
* \brief Class for reading filtered lines
*
* Class FilteringLineIStream is an input st... | 31.745098 | 76 | 0.738728 | gvissers |
e99cb18c33f7bcfd3f2e6c39aa01f214d6123813 | 1,409 | hpp | C++ | editor/src/layers/test_layer.hpp | trbflxr/xe | 13123869a848972e064cb8c6838c4215f034f3d9 | [
"MIT"
] | null | null | null | editor/src/layers/test_layer.hpp | trbflxr/xe | 13123869a848972e064cb8c6838c4215f034f3d9 | [
"MIT"
] | null | null | null | editor/src/layers/test_layer.hpp | trbflxr/xe | 13123869a848972e064cb8c6838c4215f034f3d9 | [
"MIT"
] | null | null | null | //
// Created by FLXR on 9/11/2019.
//
#ifndef XE_TEST_LAYER_HPP
#define XE_TEST_LAYER_HPP
#include <xe/core/engine.hpp>
#include <xe/graphics/camera.hpp>
namespace xe {
class TestLayer : public LayerBase {
public:
explicit TestLayer();
void onStart() override;
void onStop() override;
void onR... | 20.720588 | 50 | 0.665011 | trbflxr |
e9a38153790ee71b2ad0af8c1f068a7129b2ce05 | 808 | cc | C++ | pdb/src/computationServer/sources/physicalOptimizer/PDBOptimizerSource.cc | SeraphL/plinycompute | 7788bc2b01d83f4ff579c13441d0ba90734b54a2 | [
"Apache-2.0"
] | 3 | 2019-05-04T05:17:30.000Z | 2020-02-21T05:01:59.000Z | pdb/src/computationServer/sources/physicalOptimizer/PDBOptimizerSource.cc | dcbdan/plinycompute | a6f1c8ac8f75c09615f08752c82179f33cfc6d89 | [
"Apache-2.0"
] | 3 | 2020-02-20T19:50:46.000Z | 2020-06-25T14:31:51.000Z | pdb/src/computationServer/sources/physicalOptimizer/PDBOptimizerSource.cc | dcbdan/plinycompute | a6f1c8ac8f75c09615f08752c82179f33cfc6d89 | [
"Apache-2.0"
] | 5 | 2019-02-19T23:17:24.000Z | 2020-08-03T01:08:04.000Z | #include <PDBOptimizerSource.h>
#include <PDBAbstractPhysicalNode.h>
#include <physicalOptimizer/PDBOptimizerSource.h>
bool pdb::OptimizerSourceComparator::operator()(const pdb::OptimizerSource &lhs, const pdb::OptimizerSource &rhs) {
// first compare them based on the size
if(lhs.first != rhs.first) {
return... | 31.076923 | 137 | 0.717822 | SeraphL |
e9a7600b62d9eb575382b1dfac58d5ec671384ba | 1,184 | cpp | C++ | src/engine/core/texture.cpp | junhaowww/ForkerEngine | a5c71d0de797ab38c77d52d7b5a7f1d2f8005da7 | [
"Apache-2.0"
] | 3 | 2020-12-18T04:31:48.000Z | 2021-10-18T16:55:24.000Z | src/engine/core/texture.cpp | junhaowww/ForkerEngine | a5c71d0de797ab38c77d52d7b5a7f1d2f8005da7 | [
"Apache-2.0"
] | null | null | null | src/engine/core/texture.cpp | junhaowww/ForkerEngine | a5c71d0de797ab38c77d52d7b5a7f1d2f8005da7 | [
"Apache-2.0"
] | null | null | null | //
// Created by JunhaoW on 2020/12/12.
// Modified version from LearnOpenGL by Joey de Vries
//
#include "texture.h"
Texture::Texture()
: Width(0), Height(0), Internal_Format(GL_RGB), Image_Format(GL_RGB),
Wrap_S(GL_REPEAT), Wrap_T(GL_REPEAT), Filter_Min(GL_LINEAR_MIPMAP_LINEAR), Filter_Max(GL_LINEAR)
{
... | 33.828571 | 120 | 0.735642 | junhaowww |
e9a8428c73a17d9e2d2def3dcc8000f26c3877ed | 887 | hpp | C++ | FactoryPattern/Animals.hpp | jonathan-daniel/ModernDesignPatterns | e9c79ced4261ba98c2c773cc725375903ae4c21c | [
"MIT"
] | 94 | 2018-07-15T19:20:54.000Z | 2021-11-17T15:56:06.000Z | FactoryPattern/Animals.hpp | junyanchang/ModernDesignPatterns | e9c79ced4261ba98c2c773cc725375903ae4c21c | [
"MIT"
] | 2 | 2018-07-15T19:58:31.000Z | 2021-02-22T19:43:15.000Z | FactoryPattern/Animals.hpp | junyanchang/ModernDesignPatterns | e9c79ced4261ba98c2c773cc725375903ae4c21c | [
"MIT"
] | 20 | 2018-07-24T04:47:07.000Z | 2022-03-19T08:52:09.000Z | #pragma once
#include <iostream>
class Animal {
private:
int animalInt;
public:
Animal(int animalInt) : animalInt(animalInt) {}
Animal() : animalInt(12) {}
virtual ~Animal(){} // the base class must have a virtual method.
virtual void doSomething()
{
std::cout << "animal stuff" << std::endl;
}
};
class Dog... | 16.735849 | 66 | 0.642616 | jonathan-daniel |
e9a8f9e7acf00f434b4070c23a305aa5e409a62d | 187 | cpp | C++ | test_main/src/EntryPoint.cpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 15 | 2020-01-15T13:04:36.000Z | 2022-02-18T17:08:25.000Z | test_main/src/EntryPoint.cpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 3 | 2015-09-09T08:16:30.000Z | 2015-11-24T16:22:48.000Z | test_main/src/EntryPoint.cpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 1 | 2021-12-06T07:19:05.000Z | 2021-12-06T07:19:05.000Z | #include <higanbana/core/platform/EntryPoint.hpp>
#include <higanbana/core/ranges/rectangle.hpp>
#include "windowMain.hpp"
int EntryPoint::main() {
mainWindow(m_params);
return 0;
} | 20.777778 | 49 | 0.754011 | jgavert |
e9ade19cc6f3bfc362e36b12d3e2dead26a231b1 | 476 | cpp | C++ | vm/vm.cpp | doublec/factor | 21ef21588252e2b54030ad6fd2fd1075dceb48f0 | [
"BSD-2-Clause"
] | 2 | 2016-05-09T05:56:17.000Z | 2020-12-01T09:27:35.000Z | vm/vm.cpp | doublec/factor | 21ef21588252e2b54030ad6fd2fd1075dceb48f0 | [
"BSD-2-Clause"
] | null | null | null | vm/vm.cpp | doublec/factor | 21ef21588252e2b54030ad6fd2fd1075dceb48f0 | [
"BSD-2-Clause"
] | null | null | null | #include "master.hpp"
namespace factor
{
factor_vm::factor_vm() :
nursery(0,0),
callback_id(0),
c_to_factor_func(NULL),
profiling_p(false),
gc_off(false),
current_gc(NULL),
gc_events(NULL),
fep_disabled(false),
full_output(false),
last_nano_count(0),
signal_callstack_seg(NULL)
{
primitive_reset_dispatch_s... | 14.424242 | 34 | 0.739496 | doublec |
e9c4c2b25e8f5e92ed11ca35cf6712136c1c9d49 | 679 | hpp | C++ | XMLSet.hpp | rherardi/xmlset | f9e9071d6745e08cd7d43c34a052a452f29bc40c | [
"Apache-2.0"
] | null | null | null | XMLSet.hpp | rherardi/xmlset | f9e9071d6745e08cd7d43c34a052a452f29bc40c | [
"Apache-2.0"
] | null | null | null | XMLSet.hpp | rherardi/xmlset | f9e9071d6745e08cd7d43c34a052a452f29bc40c | [
"Apache-2.0"
] | null | null | null | // XMLSet.hpp: interface for the CXMLSet class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_XMLSET_HPP__90BFB3A4_5935_48EB_AE2E_014859F49591__INCLUDED_)
#define AFX_XMLSET_HPP__90BFB3A4_5935_48EB_AE2E_014859F49591__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#end... | 21.21875 | 84 | 0.66863 | rherardi |
e9c8711c0813dbd854f7a55dfb09ddf74d8541dc | 53 | hpp | C++ | src/boost_spirit_include_classic_sequence.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_include_classic_sequence.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_include_classic_sequence.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/include/classic_sequence.hpp>
| 26.5 | 52 | 0.830189 | miathedev |
e9ca0cc95dc0a8608948c8a3d0a40e3fee12d437 | 669 | cpp | C++ | src/sample/test_sample/test_io.cpp | autolaborcenter/PM1SDK | d91731d77c666bb642be5785c1a76d8effe5cf70 | [
"Apache-2.0"
] | 2 | 2019-07-15T12:44:52.000Z | 2021-03-24T04:59:01.000Z | src/sample/test_sample/test_io.cpp | autolaborcenter/PM1SDK | d91731d77c666bb642be5785c1a76d8effe5cf70 | [
"Apache-2.0"
] | null | null | null | src/sample/test_sample/test_io.cpp | autolaborcenter/PM1SDK | d91731d77c666bb642be5785c1a76d8effe5cf70 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <thread>
#include "../../main/internal/serial/serial_port.hh"
int main() {
try {
serial_port port("COM7", 115200);
std::thread([&port] {
uint8_t buffer[128]{};
while (true) {
auto actual = port.read(buffer, sizeof(buffer... | 29.086957 | 79 | 0.5142 | autolaborcenter |
e9ca91ef6601b832af9bc72e9fd132e92e1b6323 | 1,938 | cpp | C++ | UVA11045.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 17 | 2015-12-08T18:50:03.000Z | 2022-03-16T01:23:20.000Z | UVA11045.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | null | null | null | UVA11045.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 6 | 2017-04-04T18:16:23.000Z | 2020-06-28T11:07:22.000Z | #include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
using namespace std;
typedef vector<int> vi;
int N, M, mf, f, s, t, INF = 2000000;
int res[40][40];
vi p;
void augment(int v, int minEdge) {
if (v == s) {
f = minEdge;
return;
} else if (p[v] != -1) {
augment(... | 24.846154 | 67 | 0.356553 | MaSteve |
e9cd170ccc371ceb40cda2bb4e40b0797c2113b8 | 701 | cpp | C++ | Nonlinear/code/kaiseki/shin_kaiseki/CountBisection_re.cpp | ShuftBK/kaiseki_report | 84928313a8032727e0dc2f3cc925f536a5619b22 | [
"MIT"
] | null | null | null | Nonlinear/code/kaiseki/shin_kaiseki/CountBisection_re.cpp | ShuftBK/kaiseki_report | 84928313a8032727e0dc2f3cc925f536a5619b22 | [
"MIT"
] | null | null | null | Nonlinear/code/kaiseki/shin_kaiseki/CountBisection_re.cpp | ShuftBK/kaiseki_report | 84928313a8032727e0dc2f3cc925f536a5619b22 | [
"MIT"
] | null | null | null | /*
Bisection Method
*/
#include <stdio.h>
#include <math.h>
const double eps = pow(10.0, -15);
const double delta = pow(10.0, -15);
double count = 0;
double f(double x)
{
return (5 + exp((-6)*x) - 3 * x);
}
int main()
{
double a = -1000000000, b = 1000000000,c, fa, fc, diff, delf, prevc;
int n = 0;
printf("a=%f... | 18.447368 | 70 | 0.499287 | ShuftBK |
e9cd45d7581b6152d57c1e3671525a52796cc1b3 | 1,467 | hpp | C++ | core/LLVM/composite_decl.hpp | Chengifei/SySSFEs | 9e08715ed137d2405c051d9f74e9ab8bf18d4cbe | [
"Apache-2.0"
] | 1 | 2021-01-02T15:22:05.000Z | 2021-01-02T15:22:05.000Z | core/LLVM/composite_decl.hpp | Chengifei/SySSFEs | 9e08715ed137d2405c051d9f74e9ab8bf18d4cbe | [
"Apache-2.0"
] | null | null | null | core/LLVM/composite_decl.hpp | Chengifei/SySSFEs | 9e08715ed137d2405c051d9f74e9ab8bf18d4cbe | [
"Apache-2.0"
] | null | null | null | /* Copyright 2018 by Yifei Zheng
*
* 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 ... | 31.212766 | 89 | 0.709611 | Chengifei |
8397be110382af88f4d6763435be437bfe154c36 | 2,561 | cpp | C++ | test/cs/src/server.cpp | netplus/netplus | e3b621e65742f38733d3dcaa1873443da8bbd611 | [
"MIT"
] | 48 | 2021-02-22T03:10:40.000Z | 2022-03-29T03:26:33.000Z | test/cs/src/server.cpp | netplus/netplus | e3b621e65742f38733d3dcaa1873443da8bbd611 | [
"MIT"
] | 7 | 2021-03-20T09:25:11.000Z | 2022-03-07T03:26:56.000Z | test/cs/src/server.cpp | netplus/netplus | e3b621e65742f38733d3dcaa1873443da8bbd611 | [
"MIT"
] | 13 | 2021-02-25T01:49:58.000Z | 2022-03-21T00:30:34.000Z | #include <netp.hpp>
class example_handler :
public netp::channel_handler_abstract
{
public:
example_handler() :
channel_handler_abstract(netp::CH_ACTIVITY|netp::CH_INBOUND_READ|netp::CH_OUTBOUND_WRITE)
{}
void read(NRP<netp::channel_handler_context> const& ctx, NRP<netp::packet> const& income) override
{
NET... | 28.455556 | 144 | 0.687232 | netplus |
839a991059ce0fc5f1a5cac4daa525f78123413f | 5,835 | hpp | C++ | src/SkinnedMesh.hpp | vadosnaprimer/desktop-m3g | fa04787e8609cd0f4e63defc7f2c669c8cc78d1f | [
"MIT"
] | 2 | 2019-05-14T08:14:15.000Z | 2021-01-19T13:28:38.000Z | src/SkinnedMesh.hpp | vadosnaprimer/desktop-m3g | fa04787e8609cd0f4e63defc7f2c669c8cc78d1f | [
"MIT"
] | null | null | null | src/SkinnedMesh.hpp | vadosnaprimer/desktop-m3g | fa04787e8609cd0f4e63defc7f2c669c8cc78d1f | [
"MIT"
] | null | null | null | #ifndef __M3G_SKINNED_MESH_HPP__
#define __M3G_SKINNED_MESH_HPP__
#include "m3g/Mesh.hpp"
#include "m3g/BoneWeight.hpp"
#include <iosfwd>
#include <vector>
namespace m3g {
class Group;
class VertexBuffer;
class IndexBuffer;
class RayIntersection;
class Vector;
/**
* @~English A sce... | 30.07732 | 141 | 0.551671 | vadosnaprimer |
839dedc2311d040510fbab8d9b849e426dd7e4e5 | 1,103 | hpp | C++ | addons/ares_compositions/Ares/Military Structures/Camps/BIS Small Recon Camp.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | null | null | null | addons/ares_compositions/Ares/Military Structures/Camps/BIS Small Recon Camp.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | 4 | 2018-12-21T06:57:25.000Z | 2020-07-09T09:06:38.000Z | addons/ares_compositions/Ares/Military Structures/Camps/BIS Small Recon Camp.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | null | null | null | class Object0 {side=8;rank="";vehicle="Land_TentDome_F";position[]={0,0,0};dir=191.566;};
class Object1 {side=8;rank="";vehicle="Land_WoodenLog_F";position[]={2.67871,2.83691,1.90735e-006};dir=359.888;};
class Object2 {side=8;rank="";vehicle="Land_Canteen_F";position[]={6.58594,0.875977,3.24249e-005};dir=19.5592;};
cla... | 110.3 | 118 | 0.723481 | Braincrushy |
83a14fbfd7ba3dad096162365e523b2a4eb676a9 | 24,540 | cpp | C++ | src/plugPikiYamashita/drawCountDown.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | 27 | 2021-09-28T00:33:11.000Z | 2021-11-18T19:38:40.000Z | src/plugPikiYamashita/drawCountDown.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | src/plugPikiYamashita/drawCountDown.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | #include "types.h"
/*
* --INFO--
* Address: ........
* Size: 00009C
*/
void _Error(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 0000F4
*/
void _Print(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: 801E7AB0
* Size: 0001F8
*/
zen::DrawCountDown::DrawCountDown(... | 22.349727 | 53 | 0.454034 | doldecomp |
83a7d2fdcd34d873df9f2e6b02a82be66a1692a9 | 1,936 | cpp | C++ | Lab9/OpenGL_UI_Example/my_gl.cpp | dyaranon/CSE165_UCMerced_OOP | cd6e65e537f6d98244e2bd81f481007629a16852 | [
"Apache-2.0"
] | null | null | null | Lab9/OpenGL_UI_Example/my_gl.cpp | dyaranon/CSE165_UCMerced_OOP | cd6e65e537f6d98244e2bd81f481007629a16852 | [
"Apache-2.0"
] | null | null | null | Lab9/OpenGL_UI_Example/my_gl.cpp | dyaranon/CSE165_UCMerced_OOP | cd6e65e537f6d98244e2bd81f481007629a16852 | [
"Apache-2.0"
] | null | null | null | #include "my_gl.h"
MyGL::MyGL(QWidget *parent) : QOpenGLWidget(parent)
{
xrot = yrot = zrot = 0.0;
}
void MyGL::initializeGL()
{
glClearColor(0.0, 0.0, 0.0, 0.0);
glEnable(GL_DEPTH_TEST);
glEnable(GL_LIGHT0);
}
void MyGL::paintGL()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_B... | 26.520548 | 122 | 0.607438 | dyaranon |
83a8a10cc914399941b048c65724a3f99e346c1d | 7,328 | cpp | C++ | datastore/importers/nmdb-import-ipconfig/Parser.cpp | mire-all-rashly/netmeld | d3ffd0b3d1332654e9c8df871bc7bf0b8cb46fed | [
"MIT"
] | null | null | null | datastore/importers/nmdb-import-ipconfig/Parser.cpp | mire-all-rashly/netmeld | d3ffd0b3d1332654e9c8df871bc7bf0b8cb46fed | [
"MIT"
] | null | null | null | datastore/importers/nmdb-import-ipconfig/Parser.cpp | mire-all-rashly/netmeld | d3ffd0b3d1332654e9c8df871bc7bf0b8cb46fed | [
"MIT"
] | null | null | null | // =============================================================================
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Permission is hereby grante... | 28.513619 | 80 | 0.574099 | mire-all-rashly |
83bb1a1375152e35b1ca1ae7b907e4e2e0313707 | 1,774 | hpp | C++ | lib/include/CL/Utils/Error.hpp | ProjectPhysX/OpenCL-SDK | f3e8600cfb6c0266c121d7e1f8b2e5dba9c5fab1 | [
"Apache-2.0"
] | null | null | null | lib/include/CL/Utils/Error.hpp | ProjectPhysX/OpenCL-SDK | f3e8600cfb6c0266c121d7e1f8b2e5dba9c5fab1 | [
"Apache-2.0"
] | null | null | null | lib/include/CL/Utils/Error.hpp | ProjectPhysX/OpenCL-SDK | f3e8600cfb6c0266c121d7e1f8b2e5dba9c5fab1 | [
"Apache-2.0"
] | null | null | null | #pragma once
// OpenCL Utils includes
#include "OpenCLUtils_Export.h"
// OpenCL Utils includes
#include <CL/Utils/ErrorCodes.h>
// OpenCL includes
#include <CL/opencl.hpp>
namespace cl {
namespace util {
#if defined(CL_HPP_ENABLE_EXCEPTIONS)
/*! \brief Exception class
*
* This may be thrown by SDK ut... | 24.985915 | 80 | 0.536077 | ProjectPhysX |
83bdc42d0ecc0c24d8a7050af0c47290e49b3934 | 10,736 | cpp | C++ | Outputs/file/au.cpp | jgunthorpe/muse | 7701cab4377938a8ce3d8c8d2eb68f5f7a7152bf | [
"MIT"
] | null | null | null | Outputs/file/au.cpp | jgunthorpe/muse | 7701cab4377938a8ce3d8c8d2eb68f5f7a7152bf | [
"MIT"
] | null | null | null | Outputs/file/au.cpp | jgunthorpe/muse | 7701cab4377938a8ce3d8c8d2eb68f5f7a7152bf | [
"MIT"
] | null | null | null | /* ########################################################################
FileAU - Class to allow Muse/2 to output a module to a AU file
Write RAW mix data to a AU file.
########################################################################
*/
#include <muse.h>
#include <au.h>
#include <stdio.... | 28.178478 | 87 | 0.472802 | jgunthorpe |
83bf4de6115bf3b592627d433296d652d0979f11 | 5,206 | hpp | C++ | src/controller/MessageManager.hpp | JeanMarcZimmer/libDiscordBot | dadd68a15b89f1577fd43a56b6fcf90330f1e1e8 | [
"MIT"
] | 11 | 2020-05-16T08:41:15.000Z | 2022-03-19T23:03:42.000Z | src/controller/MessageManager.hpp | JeanMarcZimmer/libDiscordBot | dadd68a15b89f1577fd43a56b6fcf90330f1e1e8 | [
"MIT"
] | 4 | 2020-05-15T06:59:01.000Z | 2020-10-06T18:13:23.000Z | src/controller/MessageManager.hpp | JeanMarcZimmer/libDiscordBot | dadd68a15b89f1577fd43a56b6fcf90330f1e1e8 | [
"MIT"
] | 5 | 2020-05-16T09:06:39.000Z | 2021-02-23T21:12:46.000Z | /*
* MIT License
*
* Copyright (c) 2020 Christian Tost
*
* 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 rights
* to use, copy, m... | 31.551515 | 108 | 0.531886 | JeanMarcZimmer |
83c03b1592df7c3cfa1e6c69bfd849db928b296d | 343 | cpp | C++ | ksn-2021-karakter/solution-5.cpp | ia-toki/ksn-2021 | e925029fa9ce6198aae489c5f8505c47078da28e | [
"CC-BY-4.0"
] | null | null | null | ksn-2021-karakter/solution-5.cpp | ia-toki/ksn-2021 | e925029fa9ce6198aae489c5f8505c47078da28e | [
"CC-BY-4.0"
] | null | null | null | ksn-2021-karakter/solution-5.cpp | ia-toki/ksn-2021 | e925029fa9ce6198aae489c5f8505c47078da28e | [
"CC-BY-4.0"
] | 1 | 2021-12-05T04:17:41.000Z | 2021-12-05T04:17:41.000Z | #include <bits/stdc++.h>
using namespace std;
int N;
string S;
bool valid() {
for (int i=1;i<N;i++) {
if (S[i-1]==S[i]) {
return 0;
}
}
return 1;
}
int main() {
cin>>N>>S;
sort(S.begin(),S.end());
do {
if (valid()) {
cout<<S<<'\n';
break;
}
}
while (next_permutation(... | 12.703704 | 46 | 0.472303 | ia-toki |
83c1eb76ac8abc2d16c039c3ce775eefb6d43628 | 1,963 | cpp | C++ | libvast/src/system/spawn_indexer.cpp | knapperzbusch/vast | 9d2af995254519b47febe2062adbc55965055cbe | [
"BSD-3-Clause"
] | null | null | null | libvast/src/system/spawn_indexer.cpp | knapperzbusch/vast | 9d2af995254519b47febe2062adbc55965055cbe | [
"BSD-3-Clause"
] | 1 | 2019-11-29T12:43:41.000Z | 2019-11-29T12:43:41.000Z | libvast/src/system/spawn_indexer.cpp | knapperzbusch/vast | 9d2af995254519b47febe2062adbc55965055cbe | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | 46.738095 | 80 | 0.479878 | knapperzbusch |
83c584dce5f9832f335e5c35b4025908d3875230 | 7,400 | hpp | C++ | src/NumericalAlgorithms/DiscontinuousGalerkin/BoundarySchemes/FirstOrder/FirstOrderSchemeLts.hpp | hrueter/spectre | 87825d0ee94378f4e79fbbba252afc5bb4443dcc | [
"MIT"
] | null | null | null | src/NumericalAlgorithms/DiscontinuousGalerkin/BoundarySchemes/FirstOrder/FirstOrderSchemeLts.hpp | hrueter/spectre | 87825d0ee94378f4e79fbbba252afc5bb4443dcc | [
"MIT"
] | null | null | null | src/NumericalAlgorithms/DiscontinuousGalerkin/BoundarySchemes/FirstOrder/FirstOrderSchemeLts.hpp | hrueter/spectre | 87825d0ee94378f4e79fbbba252afc5bb4443dcc | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <utility>
#include "DataStructures/DataBox/DataBoxTag.hpp"
#include "DataStructures/DataBox/Prefixes.hpp"
#include "DataStructures/DataVector.hpp"
#include "DataStructures/Tensor/EagerMath/Magnitude.hpp"
#i... | 44.848485 | 100 | 0.705135 | hrueter |
83c63141746ec5457d47f32a9d558dd86145264d | 3,345 | cpp | C++ | examples/3d/example3/example3.cpp | grenkin/joker-fem | b86115f5deebd2f2da1a9417f840da57c2b5c220 | [
"MIT"
] | null | null | null | examples/3d/example3/example3.cpp | grenkin/joker-fem | b86115f5deebd2f2da1a9417f840da57c2b5c220 | [
"MIT"
] | null | null | null | examples/3d/example3/example3.cpp | grenkin/joker-fem | b86115f5deebd2f2da1a9417f840da57c2b5c220 | [
"MIT"
] | null | null | null | /*
-\Delta u + u^2 = -6 + (x^2 + y^2 + z^2)^2
-u_x + u|_{x=-1} = 3 + y^2 + z^2
u_x + u|_{x=1} = 3 + y^2 + z^2
-u_y + u|_{y=-1} = 3 + x^2 + z^2
u_y + u|_{y=1} = 3 + x^2 + z^2
-u_z + u|_{z=-1} = 3 + x^2 + y^2
u_z + u|_{z=1} = 3 + x^2 + y^2
Exact solution: u(x, y, z) = x^2 + y^2 + z^2
*/
#include <joker-fem-3d/bvp3d.h>
#... | 30.688073 | 79 | 0.452915 | grenkin |
83cdf4f3849b3a8893a08cc17bc27db5fbd43552 | 9,649 | cpp | C++ | test/testcpu/testload.cpp | am1ko/nes | 4c1addaa6331733ccde90a3d9a0eed74968e859e | [
"MIT"
] | null | null | null | test/testcpu/testload.cpp | am1ko/nes | 4c1addaa6331733ccde90a3d9a0eed74968e859e | [
"MIT"
] | null | null | null | test/testcpu/testload.cpp | am1ko/nes | 4c1addaa6331733ccde90a3d9a0eed74968e859e | [
"MIT"
] | null | null | null | #include "testload.h"
#include "test_helpers.h"
using ::testing::Return;
using ::testing::Exactly;
using ::testing::_;
// ---------------------------------------------------------------------------------------------- //
LoadTest::LoadTest() : cpu(memory) {
ON_CALL(memory, read(_)).WillByDefault(Return(0U));
}
//... | 30.438486 | 100 | 0.480257 | am1ko |
83d159dca4d9552e70fe3f7c382b6dc8bae52cc1 | 550 | hpp | C++ | Loyalty/DataModel/Entities/ClientDesc.hpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | null | null | null | Loyalty/DataModel/Entities/ClientDesc.hpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | 1 | 2021-03-06T11:38:01.000Z | 2021-03-15T21:33:16.000Z | Loyalty/DataModel/Entities/ClientDesc.hpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "BalanceDesc.hpp"
namespace Sol::Loyalty::DataModel {
class SOL_LOYALTY_DATA_MODEL_ENTITIES_API ClientDesc final: public GpTypeStructBase
{
public:
CLASS_DECLARE_DEFAULTS(ClientDesc)
TYPE_STRUCT_DECLARE("6ae53969-df92-47c5-a0b5-9ca4e85e03b3"_sv)
public:
ClientDesc (void) noexcept;
v... | 21.153846 | 83 | 0.752727 | uno-labs-solana-hackathon |
83d46e1f24e1b6cc70d8c2cf545c21a70d74581a | 1,200 | cpp | C++ | 5333/src/cpp/Belev.cpp | swan58/2018-PowerUp | 035a4257810ab84de2528048d9afaa635344ae4b | [
"MIT"
] | 1 | 2018-01-26T05:58:48.000Z | 2018-01-26T05:58:48.000Z | 5333/src/cpp/Belev.cpp | swan58/2018-PowerUp | 035a4257810ab84de2528048d9afaa635344ae4b | [
"MIT"
] | null | null | null | 5333/src/cpp/Belev.cpp | swan58/2018-PowerUp | 035a4257810ab84de2528048d9afaa635344ae4b | [
"MIT"
] | null | null | null | #include "Belev.h"
#include "IO.h"
#include <RobotController.h>
void BelevatorControl::tick() {
if (IO::get_instance()->get_belev_limit_min()) IO::get_instance()->belev_motors[0]->SetSelectedSensorPosition(0, 0, 0);
}
void BelevatorControl::lift(double power) {
IO::get_instance()->belev_motors[0]->Set(power);
}
... | 35.294118 | 150 | 0.744167 | swan58 |
83d4d90c9f1b0943f96015d2572c17668eb69ad5 | 4,508 | cpp | C++ | interval.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | interval.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | interval.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | /******************************************************/
/* */
/* interval.cpp - event intervals */
/* */
/******************************************************/
/* Copyright 2020 Pierre Abbat.
* ... | 27.156627 | 91 | 0.636202 | phma |
83d5775eec998ea66bf31b746057587e09af2ee6 | 1,510 | hpp | C++ | include/data_structure.hpp | Algorithms-and-Data-Structures-2021/semester-work-disjoint-set | ea75ee2509422631d35afffd90b368ef783ac4de | [
"MIT"
] | null | null | null | include/data_structure.hpp | Algorithms-and-Data-Structures-2021/semester-work-disjoint-set | ea75ee2509422631d35afffd90b368ef783ac4de | [
"MIT"
] | null | null | null | include/data_structure.hpp | Algorithms-and-Data-Structures-2021/semester-work-disjoint-set | ea75ee2509422631d35afffd90b368ef783ac4de | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <stdexcept>
namespace itis {
/**
* Структура элемента
* Элемент имеет ранг и значение родителя
*/
struct Element {
public:
int rank{0};
int parent{0};
/**
* Конструктор элемента
* @param num - номер(значение) элемента
* Изначально каждый элемент является св... | 22.205882 | 103 | 0.68543 | Algorithms-and-Data-Structures-2021 |
83dc3a950cc94e8a3ea62d07ac2451677637c69e | 593 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Winforms/Classic DataGrid.GetCellBounds1 Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Winforms/Classic DataGrid.GetCellBounds1 Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Winforms/Classic DataGrid.GetCellBounds1 Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z | #using <System.dll>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.Data.dll>
using namespace System;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Windows::Forms;
public ref class Form1: public Form
{
protected:
DataGrid^ dataGrid1... | 19.766667 | 46 | 0.639123 | hamarb123 |
83e05da69e883e6df46c647aa745e9d6da4707cc | 2,027 | cpp | C++ | buglife.cpp | darksidergod/CompetitiveProgramming | ea0ee53bddd87e41b4586dd30c1d4a6b8ae3a93a | [
"MIT"
] | null | null | null | buglife.cpp | darksidergod/CompetitiveProgramming | ea0ee53bddd87e41b4586dd30c1d4a6b8ae3a93a | [
"MIT"
] | null | null | null | buglife.cpp | darksidergod/CompetitiveProgramming | ea0ee53bddd87e41b4586dd30c1d4a6b8ae3a93a | [
"MIT"
] | 1 | 2020-10-03T19:48:05.000Z | 2020-10-03T19:48:05.000Z | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define int long long int
#define mk make_pair
#define flp(i, k, n) for(int i=k; i<n; i++)
#define F first
#define pb push_back
#define S second
#define SIZE 1000000
int power(int a, int b) {
int x = 1, y = a;
while(b > 0) {
if(b%2 == 1) ... | 18.768519 | 52 | 0.371978 | darksidergod |
83e4817f442cc32b9edc2e147ae710ecccfed4ff | 20,113 | hh | C++ | src/solvers/IterativeMethodGMRES.hh | cannsudemir/amanzi | c6cd3287bdc2c6cf26c6f8b79e34799751385f9e | [
"RSA-MD"
] | 1 | 2021-02-23T18:34:47.000Z | 2021-02-23T18:34:47.000Z | src/solvers/IterativeMethodGMRES.hh | cannsudemir/amanzi | c6cd3287bdc2c6cf26c6f8b79e34799751385f9e | [
"RSA-MD"
] | null | null | null | src/solvers/IterativeMethodGMRES.hh | cannsudemir/amanzi | c6cd3287bdc2c6cf26c6f8b79e34799751385f9e | [
"RSA-MD"
] | null | null | null | /*
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Authors: Ethan Coon (ecoon@lanl.gov)
Konstantin Lipnikov (lipnikov@lanl.go... | 32.336013 | 122 | 0.596231 | cannsudemir |
83f1c30c1e8023b63550ae30882cfaacc6c1e6d8 | 763 | cpp | C++ | Binary Search Of Sorted Data.cpp | sayanroy058/C-Programs | 2bb591d5a322d1bf10e8a1627d92db05cb0ece75 | [
"CC0-1.0"
] | 2 | 2019-09-11T16:22:30.000Z | 2019-09-19T18:29:42.000Z | Binary Search Of Sorted Data.cpp | sayanroy058/C-Programs | 2bb591d5a322d1bf10e8a1627d92db05cb0ece75 | [
"CC0-1.0"
] | null | null | null | Binary Search Of Sorted Data.cpp | sayanroy058/C-Programs | 2bb591d5a322d1bf10e8a1627d92db05cb0ece75 | [
"CC0-1.0"
] | null | null | null | #include<stdio.h>
int main()
{
int i,n,a[100],first,last,mid,search;
printf("Enter the number of elements: ");
scanf("%d",&n);
printf("Enter the numbers:\n");
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
printf("\nEnter the number to find: ");
scanf("%d", &search);
first = 0;
... | 19.564103 | 55 | 0.453473 | sayanroy058 |
83f345970389c281998c42889509a5cd765b34fe | 11,180 | cpp | C++ | src/solutions/aoc_day_24.cpp | bcooperstl/advent-of-code-2015 | 0aac084b72aeb45ca01a6ec52e0a71502dfa28e0 | [
"MIT"
] | null | null | null | src/solutions/aoc_day_24.cpp | bcooperstl/advent-of-code-2015 | 0aac084b72aeb45ca01a6ec52e0a71502dfa28e0 | [
"MIT"
] | null | null | null | src/solutions/aoc_day_24.cpp | bcooperstl/advent-of-code-2015 | 0aac084b72aeb45ca01a6ec52e0a71502dfa28e0 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <cstdlib>
#include <climits>
#include <cstring>
#include <algorithm>
#include "aoc_day_24.h"
#include "file_utils.h"
using namespace std;
AocDay24::AocDay24():AocDay(24)
{
}
AocDay24::~AocDay24()
{
}
vector<long> AocDay24::parse_in... | 28.090452 | 139 | 0.482916 | bcooperstl |
83f3b75ec118548069b9602517506e1e5b47b0b7 | 6,422 | hpp | C++ | _engine/code/include/_doxygen/3_code_convention.hpp | Shelim/pixie_engine | bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1 | [
"MIT"
] | null | null | null | _engine/code/include/_doxygen/3_code_convention.hpp | Shelim/pixie_engine | bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1 | [
"MIT"
] | null | null | null | _engine/code/include/_doxygen/3_code_convention.hpp | Shelim/pixie_engine | bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1 | [
"MIT"
] | null | null | null | /**
* \~English @page code_convention Code Convention
* @tableofcontents
* @section code_convention_naming Naming conventions
*
* 1. All names are lowercase with underscores as word separator (ie. `hello_world`)
* 2. Basic name pattern:
* - `object_property` (ie. `game_name`)
* - `action_object_pro... | 41.432258 | 221 | 0.587045 | Shelim |
83f7845f1c2aa54807b7852bd4abf43ee7add616 | 787 | cpp | C++ | unit_test/hash_map/testhashmap.cpp | filipecalasans/algo-study | dcfc1beebad7a958e7611794f2b88fcd487aaf17 | [
"MIT"
] | 1 | 2021-06-02T13:35:54.000Z | 2021-06-02T13:35:54.000Z | unit_test/hash_map/testhashmap.cpp | filipecalasans/algo-study | dcfc1beebad7a958e7611794f2b88fcd487aaf17 | [
"MIT"
] | null | null | null | unit_test/hash_map/testhashmap.cpp | filipecalasans/algo-study | dcfc1beebad7a958e7611794f2b88fcd487aaf17 | [
"MIT"
] | null | null | null | #include "hash_map/hashmap.h"
#include "gtest/gtest.h"
using namespace Algos;
struct DataTest {
int integer;
bool boolean;
std::string txt;
//DataTest() {}
//DataTest(const DataTest& other) {
// *this = other;
//}
DataTest& operator=(const DataTest& other) {
integer = other.integer;... | 16.395833 | 49 | 0.557814 | filipecalasans |
83f9eb15dd0684ee475f8113de9ed5a10d9288e0 | 1,163 | cpp | C++ | Week_4/07 Practice Programming Assignment/Example.cpp | Animart/basics-of-c-plus-plus-development-white-belt | 9ad0aec57a54e505955ad4a93a0636903ba92822 | [
"Unlicense"
] | 1 | 2018-11-22T17:33:45.000Z | 2018-11-22T17:33:45.000Z | Week_4/07 Practice Programming Assignment/Example.cpp | Animart/basics-of-c-plus-plus-development-white-belt | 9ad0aec57a54e505955ad4a93a0636903ba92822 | [
"Unlicense"
] | null | null | null | Week_4/07 Practice Programming Assignment/Example.cpp | Animart/basics-of-c-plus-plus-development-white-belt | 9ad0aec57a54e505955ad4a93a0636903ba92822 | [
"Unlicense"
] | 1 | 2021-03-09T05:26:37.000Z | 2021-03-09T05:26:37.000Z | #include <iostream>
#include <string>
#include <vector>
using namespace std;
struct Student
{
Student(string other_firstname, string other_lastname, int other_day, int other_month, int other_year)
{
firstname = other_firstname;
lastname = other_lastname;
day = other_day;
month = other_month;
year = othe... | 18.171875 | 104 | 0.566638 | Animart |
8601eabd81abaf62c1cfd315585781d8518f0468 | 41,261 | cpp | C++ | src/vulkansubsystem/vulkansubsystem.cpp | kirdaybov/renderingengine | c6979cb1e2f2ca8668e71c46534283d370538cd1 | [
"MIT"
] | 2 | 2021-03-07T16:30:59.000Z | 2022-02-21T15:31:21.000Z | src/vulkansubsystem/vulkansubsystem.cpp | kirdaybov/renderingengine | c6979cb1e2f2ca8668e71c46534283d370538cd1 | [
"MIT"
] | null | null | null | src/vulkansubsystem/vulkansubsystem.cpp | kirdaybov/renderingengine | c6979cb1e2f2ca8668e71c46534283d370538cd1 | [
"MIT"
] | null | null | null | #include "vulkansubsystem.h"
#include "config.h"
#include "logger/logger.h"
#include <vector>
#include <set>
#include <algorithm>
#include <chrono>
#include <array>
#include "assetmanager/assetmanager.h"
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>
#include "app/application.h"
#include "imguirenderable.h... | 33.792793 | 219 | 0.774606 | kirdaybov |
8603a436782bcd4b9b52197f7b020c52ed8e57a0 | 1,911 | cpp | C++ | qws/src/gui/QPixmapCache.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 42 | 2015-02-16T19:29:16.000Z | 2021-07-25T11:09:03.000Z | qws/src/gui/QPixmapCache.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 1 | 2017-11-23T12:49:25.000Z | 2017-11-23T12:49:25.000Z | qws/src/gui/QPixmapCache.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 5 | 2015-10-15T21:25:30.000Z | 2017-11-22T13:18:24.000Z | /////////////////////////////////////////////////////////////////////////////
//
// File : QPixmapCache.cpp
// Copyright : (c) David Harley 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:02:05
//
// Warning : this file is machine generate... | 25.144737 | 86 | 0.645212 | keera-studios |
860590fb58bcb44d94930e8d51a71bfddacaa40f | 9,465 | cpp | C++ | src/core/map/cell_entrance_editor_system.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 3 | 2015-02-22T20:34:28.000Z | 2020-03-04T08:55:25.000Z | src/core/map/cell_entrance_editor_system.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 22 | 2015-12-13T16:29:40.000Z | 2017-03-04T15:45:44.000Z | src/core/map/cell_entrance_editor_system.cpp | Reaping2/Reaping2 | 0d4c988c99413e50cc474f6206cf64176eeec95d | [
"MIT"
] | 14 | 2015-11-23T21:25:09.000Z | 2020-07-17T17:03:23.000Z | #include "platform/i_platform.h"
#include "cell_entrance_editor_system.h"
#include "ui/ui.h"
#include "editor_grid_system.h"
#include "editor_target_system.h"
#include "editor_brush_system.h"
#include "../../engine/engine.h"
#include "../../input/keyboard.h"
#include "editor_hud_state.h"
#include "input/mouse.h"
#inclu... | 35.317164 | 160 | 0.660328 | MrPepperoni |
860c6477ba26d7ec28f0cc787718563d9dd48b43 | 2,122 | cpp | C++ | rs/test/append_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | 19 | 2017-05-15T08:20:00.000Z | 2021-12-03T05:58:32.000Z | rs/test/append_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | null | null | null | rs/test/append_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | 3 | 2018-01-16T18:07:30.000Z | 2021-06-30T07:33:44.000Z | // Copyright 2017 Per Grön. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | 27.558442 | 79 | 0.63525 | dymk |
860c6e0da67893e6547f1d7c259a7a1e6aab884f | 1,457 | cpp | C++ | DemoGame/Game/Source/Player.cpp | Omicrxn/Automated-Builds-CI-CD | 5a3729854dc2716407939e831079737e45f5690a | [
"MIT"
] | null | null | null | DemoGame/Game/Source/Player.cpp | Omicrxn/Automated-Builds-CI-CD | 5a3729854dc2716407939e831079737e45f5690a | [
"MIT"
] | null | null | null | DemoGame/Game/Source/Player.cpp | Omicrxn/Automated-Builds-CI-CD | 5a3729854dc2716407939e831079737e45f5690a | [
"MIT"
] | 1 | 2021-04-18T06:49:36.000Z | 2021-04-18T06:49:36.000Z | #include "Player.h"
Player::Player() : Entity(EntityType::PLAYER)
{
texture = NULL;
position = iPoint(12 * 16, 27 * 16);
jumpSpeed = 200.0f;
width = 16;
height = 32;
// Define Player animations
}
bool Player::Update(Input* input, float dt)
{
#define GRAVITY 400.0f
#define PLAYER_MOVE... | 26.017857 | 97 | 0.663693 | Omicrxn |
860cb25ee368696965c03b5c9240947434af6634 | 5,241 | cc | C++ | engine/dgl/bitmapGif.cc | ClayHanson/B4v21-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | 1 | 2020-08-18T19:45:34.000Z | 2020-08-18T19:45:34.000Z | engine/dgl/bitmapGif.cc | ClayHanson/B4v21-Launcher-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | null | null | null | engine/dgl/bitmapGif.cc | ClayHanson/B4v21-Launcher-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------
#include "console/consoleLogger.h"
#include "core/stream.h"
#include "core/fileStream.h"
#include ... | 29.948571 | 79 | 0.444572 | ClayHanson |
860df8d3e1cd7b54ff41ffdf4a59967ed41af9e7 | 1,330 | cpp | C++ | main/dx9/TextureCoordsCalc.cpp | dvarubla/directgraph | feb29419eba2fc931a1bdf593545fabdf552ce8a | [
"MIT"
] | null | null | null | main/dx9/TextureCoordsCalc.cpp | dvarubla/directgraph | feb29419eba2fc931a1bdf593545fabdf552ce8a | [
"MIT"
] | null | null | null | main/dx9/TextureCoordsCalc.cpp | dvarubla/directgraph | feb29419eba2fc931a1bdf593545fabdf552ce8a | [
"MIT"
] | null | null | null | #include <main/patterns.h>
#include "TextureCoordsCalc.h"
namespace directgraph{
namespace dx9{
TextureCoords
TextureCoordsCalc::calcLineCoords(float prevEnd, const FCoords &start, const FCoords &end, bool needAddOffset) {
FCoords texStart = {
prevEnd, 0
... | 33.25 | 132 | 0.557143 | dvarubla |
8612820c787dc914aba3094f7eaba14916c9a2ee | 7,189 | cpp | C++ | src/parsegen_xml.cpp | Aiteta/capp | a43c40788e53e28403dd62e576b17e933aac912d | [
"MIT"
] | 3 | 2021-09-01T15:12:23.000Z | 2022-03-28T09:01:05.000Z | src/parsegen_xml.cpp | Aiteta/capp | a43c40788e53e28403dd62e576b17e933aac912d | [
"MIT"
] | null | null | null | src/parsegen_xml.cpp | Aiteta/capp | a43c40788e53e28403dd62e576b17e933aac912d | [
"MIT"
] | null | null | null | #include "parsegen_xml.hpp"
namespace parsegen {
namespace xml {
language build_language() {
language out;
auto& prods = out.productions;
prods.resize(NPRODS);
prods[PROD_DOC] = {"document", {"toplevels"}};
prods[PROD_TOPLEVEL] = {"toplevels", {}};
prods[PROD_TOPLEVELS] = {"toplevels", {"toplevel", "S?", ... | 43.047904 | 79 | 0.606065 | Aiteta |
8617646bae42b021a02cb1ff0c2d1cd2df1a6c18 | 17,882 | cpp | C++ | src/core/lib/math/bigintfxd/mubintvecfxd.cpp | uishi/Modified_PALISADEv1.9.2 | d8bf4739144e53340481721b1df83dfff2f65cd8 | [
"BSD-2-Clause"
] | 1 | 2021-09-02T07:20:28.000Z | 2021-09-02T07:20:28.000Z | src/core/lib/math/bigintfxd/mubintvecfxd.cpp | uishi/Modified_PALISADEv1.9.2 | d8bf4739144e53340481721b1df83dfff2f65cd8 | [
"BSD-2-Clause"
] | null | null | null | src/core/lib/math/bigintfxd/mubintvecfxd.cpp | uishi/Modified_PALISADEv1.9.2 | d8bf4739144e53340481721b1df83dfff2f65cd8 | [
"BSD-2-Clause"
] | 3 | 2021-09-02T07:21:06.000Z | 2022-01-19T15:24:20.000Z | /*
* @file mubintvecfxd.cpp This file contains the vector manipulation functionality.
* @author TPOC: contact@palisade-crypto.org
*
* @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without modification,
... | 32.691042 | 143 | 0.72106 | uishi |
861df7df678520582dc80fa869d06e226e61770b | 925 | hpp | C++ | libs/core/include/fcppt/math/vector/length_square.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/math/vector/length_square.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/math/vector/length_square.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_MATH_VECTOR_LENGTH_SQUARE_HPP_INCLUDED
#define FCPPT_MATH_VECTOR_LENGTH_SQUARE_HPP_IN... | 25 | 75 | 0.745946 | freundlich |
8622e7357de4b2da523e7b4d44718f4fbc63b133 | 2,318 | cpp | C++ | src/util/sys/fdguard.cpp | rayslava/leechcraft | 4ecc8aa56dc6030d2593922ff41b00ff50902db8 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/util/sys/fdguard.cpp | ForNeVeR/leechcraft | 384d041d23b1cdb7cc3c758612ac8d68d3d3d88c | [
"BSL-1.0"
] | null | null | null | src/util/sys/fdguard.cpp | ForNeVeR/leechcraft | 384d041d23b1cdb7cc3c758612ac8d68d3d3d88c | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
* Copyright (C) 2012 Maxim Ignatenko
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby grant... | 28.975 | 78 | 0.670837 | rayslava |
8626e61e3bb2a3d6347e661ece41835af910aed5 | 3,386 | cpp | C++ | MachineLearning/NNProject.cpp | bburwood/AIEYear2 | 51c50693c54008f0d199339721024ab6cbaf7456 | [
"MIT"
] | 1 | 2019-08-25T03:04:11.000Z | 2019-08-25T03:04:11.000Z | MachineLearning/NNProject.cpp | bburwood/AIEYear2 | 51c50693c54008f0d199339721024ab6cbaf7456 | [
"MIT"
] | null | null | null | MachineLearning/NNProject.cpp | bburwood/AIEYear2 | 51c50693c54008f0d199339721024ab6cbaf7456 | [
"MIT"
] | null | null | null | #include "NNProject.h"
#include <iostream>
using namespace std;
int gScreenWidth;
int gScreenHeight;
NNProject::NNProject()
{
}
NNProject::~NNProject()
{
}
bool NNProject::onCreate(int argc, char* argv[])
{
// initialise the Gizmos helper class
Gizmos::create(0xffff, 0xffff, 0xffff, 0xffff);
// set the colo... | 18.402174 | 86 | 0.689604 | bburwood |
863143f355084a52204373aa0e4ac765e2cc7387 | 129 | cpp | C++ | boards/px4/fmu-v4/src/timer_config.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | boards/px4/fmu-v4/src/timer_config.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | boards/px4/fmu-v4/src/timer_config.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:c636ca0a80ea9c8a2340b156473c13cebe20f4257e51982d03e998f5e6290324
size 3114
| 32.25 | 75 | 0.883721 | Diksha-agg |
863241f218a7771773a1fe598b6e46f945173e8d | 1,049 | cpp | C++ | Entregas/ACM_Tarea07/P05/HW07P05.cpp | cesar-magana/Advanced_Programming | 7b5ff09cd2816b67ca9f68d5ede211c73fb73de5 | [
"MIT"
] | null | null | null | Entregas/ACM_Tarea07/P05/HW07P05.cpp | cesar-magana/Advanced_Programming | 7b5ff09cd2816b67ca9f68d5ede211c73fb73de5 | [
"MIT"
] | null | null | null | Entregas/ACM_Tarea07/P05/HW07P05.cpp | cesar-magana/Advanced_Programming | 7b5ff09cd2816b67ca9f68d5ede211c73fb73de5 | [
"MIT"
] | null | null | null | /*------------------------------------------------------------
PROGRAMACIÓN AVANZADA I HW07P05
César Magaña
cesar@cimat.mx
--------------------------------------------------------------*/
#include <ctime>
#include <iostream>
#include <cstdlib>
using namespace std;
float Tab[10] = {3.141592, 2.7178, 1.1, 0.00003, 2.... | 24.97619 | 89 | 0.406101 | cesar-magana |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.