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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fad39b1366e0e38cd6fadf711ffe098a7a95ae0d | 3,826 | cpp | C++ | src/parsing/glueparser.cpp | RugessNome/typeset | 98a8f9bdf17c0f2bd8069ba7395f4ce2763a735f | [
"MIT"
] | 5 | 2020-03-23T22:28:57.000Z | 2020-10-18T00:50:18.000Z | src/parsing/glueparser.cpp | RugessNome/typeset | 98a8f9bdf17c0f2bd8069ba7395f4ce2763a735f | [
"MIT"
] | 1 | 2020-03-23T22:41:04.000Z | 2020-03-25T01:27:16.000Z | src/parsing/glueparser.cpp | RugessNome/typeset | 98a8f9bdf17c0f2bd8069ba7395f4ce2763a735f | [
"MIT"
] | 1 | 2020-08-17T21:36:40.000Z | 2020-08-17T21:36:40.000Z | // Copyright (C) 2020 Vincent Chambrin
// This file is part of the 'typeset' project
// For conditions of distribution and use, see copyright notice in LICENSE
#include "tex/parsing/glueparser.h"
namespace tex
{
namespace parsing
{
GlueParser::GlueParser(UnitSystem us)
: m_unitsystem(us),
m_gluespec{ 0.f, 0.f... | 19.927083 | 96 | 0.609514 | RugessNome |
fad47f1df7f665f3126de55090ee94aef10cc671 | 8,672 | cpp | C++ | checks/csabbg/allocator-forward/csabbg_allocatorforward.t.cpp | hyrosen/bde_verify | c2db13c9f1649806bfd9155e2bffcbbcf9d54918 | [
"Apache-2.0"
] | null | null | null | checks/csabbg/allocator-forward/csabbg_allocatorforward.t.cpp | hyrosen/bde_verify | c2db13c9f1649806bfd9155e2bffcbbcf9d54918 | [
"Apache-2.0"
] | null | null | null | checks/csabbg/allocator-forward/csabbg_allocatorforward.t.cpp | hyrosen/bde_verify | c2db13c9f1649806bfd9155e2bffcbbcf9d54918 | [
"Apache-2.0"
] | null | null | null | // csabbg_allocatorforward.t.cpp -*-C++-*-
#include "csabbg_allocatorforward.t.hpp"
#include <bdes_ident.h>
#include <bslma_testallocator.h>
// -----------------------------------------------------------------------------
namespace bde_verify
{
namespace csabbg
{
... | 25.886567 | 90 | 0.56619 | hyrosen |
fad590b1d5ca9c43c66f0d3e39e1a3bf68503acf | 1,635 | cpp | C++ | Luogu/P1004.cpp | XenonWZH/involution | 189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6 | [
"MIT"
] | null | null | null | Luogu/P1004.cpp | XenonWZH/involution | 189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6 | [
"MIT"
] | null | null | null | Luogu/P1004.cpp | XenonWZH/involution | 189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
const int MAXN = 9;
int main() {
int n;
static int a[MAXN + 1][MAXN + 1];
scanf("%d", &n);
int x, y, num;
while (scanf("%d %d %d", &x, &y, &num) != EOF) {
if (x == 0 && y == 0 && num == 0) break;
a[x][y] = num;
}
... | 37.159091 | 124 | 0.349235 | XenonWZH |
fad62d81e62d5a2f69a20a63db13ecdf78bdeeee | 206 | cpp | C++ | Source/Sprite.cpp | DegitechWorldClass/LikeThis_MapTool | d9bb99c4a3302bfc071f1470841b43a31c547dd5 | [
"Apache-2.0"
] | null | null | null | Source/Sprite.cpp | DegitechWorldClass/LikeThis_MapTool | d9bb99c4a3302bfc071f1470841b43a31c547dd5 | [
"Apache-2.0"
] | null | null | null | Source/Sprite.cpp | DegitechWorldClass/LikeThis_MapTool | d9bb99c4a3302bfc071f1470841b43a31c547dd5 | [
"Apache-2.0"
] | null | null | null | #include "DXUT.h"
#include "Sprite.h"
Sprite::Sprite()
{
this->vAnchorPoint = Vector2(0.5f, 0.5f);
this->reNormalizedRect = Rect(0.f, 0.f, 1.f, 1.f);
}
Sprite::~Sprite()
{
SAFE_RELEASE(lpTexture);
}
| 12.875 | 51 | 0.640777 | DegitechWorldClass |
fad7e5fa01022f33affd89ccacfa8f51e632b7e7 | 3,512 | cpp | C++ | bars.cpp | CaptainDreamcast/Torchbearer | 144a1d8eca66e994dc832fc4116431ea267e00d9 | [
"MIT"
] | null | null | null | bars.cpp | CaptainDreamcast/Torchbearer | 144a1d8eca66e994dc832fc4116431ea267e00d9 | [
"MIT"
] | null | null | null | bars.cpp | CaptainDreamcast/Torchbearer | 144a1d8eca66e994dc832fc4116431ea267e00d9 | [
"MIT"
] | null | null | null | #include "bars.h"
#include <prism/blitz.h>
#include "datingscreen.h"
#include "storyscreen.h"
static struct {
int mRomanceValue;
int mEnergyValue;
} gBarsData;
static void datingCB(void*) {
startDating();
}
class Bars {
public:
class SingleBar {
public:
Bars& mBars;
MugenAnimationHandlerElement* mBG;
M... | 24.054795 | 135 | 0.734624 | CaptainDreamcast |
fad842041ec9904611089dea3752ef29e8649f04 | 19,112 | cpp | C++ | aws-iot-device-sdk-cpp-master/src/ResponseCode.cpp | melwynlobo/AWS-IOT-MQTT | a4f777062d4329e17d9d670bee83b7a452635476 | [
"Apache-2.0"
] | 134 | 2016-11-23T16:49:06.000Z | 2022-03-22T15:56:21.000Z | aws-iot-device-sdk-cpp-master/src/ResponseCode.cpp | melwynlobo/AWS-IOT-MQTT | a4f777062d4329e17d9d670bee83b7a452635476 | [
"Apache-2.0"
] | 180 | 2017-03-13T20:53:07.000Z | 2022-02-08T19:03:22.000Z | aws-iot-device-sdk-cpp-master/src/ResponseCode.cpp | melwynlobo/AWS-IOT-MQTT | a4f777062d4329e17d9d670bee83b7a452635476 | [
"Apache-2.0"
] | 119 | 2017-01-30T11:01:55.000Z | 2022-01-28T15:12:45.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 "lice... | 52.941828 | 106 | 0.641168 | melwynlobo |
fadae99748f576a0c366b9ca4a4fc1a8fae0b6af | 4,629 | cpp | C++ | Codeforces/1439A1-Binary_Table(Easy_Version).cpp | Pankajcoder1/Competitive_programming | 72ee0d41f3f72f43a5c2a232255eb84a04b14df9 | [
"MIT"
] | null | null | null | Codeforces/1439A1-Binary_Table(Easy_Version).cpp | Pankajcoder1/Competitive_programming | 72ee0d41f3f72f43a5c2a232255eb84a04b14df9 | [
"MIT"
] | null | null | null | Codeforces/1439A1-Binary_Table(Easy_Version).cpp | Pankajcoder1/Competitive_programming | 72ee0d41f3f72f43a5c2a232255eb84a04b14df9 | [
"MIT"
] | 1 | 2020-10-02T04:51:22.000Z | 2020-10-02T04:51:22.000Z | /*
written by Pankaj Kumar.
country:-INDIA
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll ;
typedef vector<ll> vl;
#define pan cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(0);
// define values.
// #define mod 1000000007
#define phi 1.618
/* Abbrevations */
#define ff first
#define s... | 24.62234 | 93 | 0.330741 | Pankajcoder1 |
fadbd3754e990e70e74914fcc31777c34cf517f9 | 56,939 | cpp | C++ | ffscriptUT/StructUT.cpp | VincentPT/xscript | cea6ee9e8c5af87af75188695ffa89080dce49b8 | [
"MIT"
] | null | null | null | ffscriptUT/StructUT.cpp | VincentPT/xscript | cea6ee9e8c5af87af75188695ffa89080dce49b8 | [
"MIT"
] | null | null | null | ffscriptUT/StructUT.cpp | VincentPT/xscript | cea6ee9e8c5af87af75188695ffa89080dce49b8 | [
"MIT"
] | 1 | 2019-12-24T22:24:01.000Z | 2019-12-24T22:24:01.000Z | /******************************************************************
* File: SubscriptionUT.cpp
* Description: Test cases focus on checking usage of struct in
* C Lambda scripting language.
* Author: Vincent Pham
*
* Copyright (c) 2018 VincentPT.
** Distributed under the MIT License (http://open... | 29.748694 | 241 | 0.69153 | VincentPT |
fadf18f642db5465f3eba39cc1d5b823a4eec4e2 | 1,095 | hpp | C++ | parser/combinators/or.hpp | gahag/tpc | deb4a471fa735028b5e814a0358a71fd6e7c0b78 | [
"BSD-3-Clause"
] | 9 | 2017-03-03T17:59:15.000Z | 2021-09-15T14:05:09.000Z | parser/combinators/or.hpp | zhu-fei/tpc | deb4a471fa735028b5e814a0358a71fd6e7c0b78 | [
"BSD-3-Clause"
] | null | null | null | parser/combinators/or.hpp | zhu-fei/tpc | deb4a471fa735028b5e814a0358a71fd6e7c0b78 | [
"BSD-3-Clause"
] | 2 | 2019-02-15T08:11:03.000Z | 2020-09-19T10:50:39.000Z | // Copyright (C) 2017 gahag
// All rights reserved.
//
// This software may be modified and distributed under the terms
// of the BSD license. See the LICENSE file for details.
#ifndef __TPC_PARSER_COMBINATORS_OR_HPP__
#define __TPC_PARSER_COMBINATORS_OR_HPP__
#include <tpc/parser/base.hpp>
namespace tp... | 28.076923 | 91 | 0.644749 | gahag |
fadf9446b986a5b505a37b48604b49f434b09f25 | 6,807 | hxx | C++ | src/lu_nopiv_inner_rl.hxx | flipflapflop/remifa | e20026fd5c580b65dc9eb1270e0187447a9faccc | [
"BSD-3-Clause"
] | null | null | null | src/lu_nopiv_inner_rl.hxx | flipflapflop/remifa | e20026fd5c580b65dc9eb1270e0187447a9faccc | [
"BSD-3-Clause"
] | null | null | null | src/lu_nopiv_inner_rl.hxx | flipflapflop/remifa | e20026fd5c580b65dc9eb1270e0187447a9faccc | [
"BSD-3-Clause"
] | null | null | null | #define BLOCKS 1 // Number of tiles per Thread blocks
#define BLOCK_SIZE 8 // Thread block size
#define OUTER_BLOCK_SIZE 256
/// @file
/// @copyright 2020- The Science and Technology Facilities Council (STFC)
/// @author Florent Lopez
#pragma once
#include "convert.cuh"
#include "errchk.hxx"
#include "gemm.cuh"
#incl... | 33.865672 | 129 | 0.515058 | flipflapflop |
fae29103a3f5cc67d9e966d90857c96b77e2f5fb | 2,285 | cpp | C++ | csgo_internal/WndProc.cpp | XGOD4/REDHOOK | ee8d4addf2051c07defa6df494ce00cdddefd709 | [
"MIT"
] | 1 | 2018-04-19T00:50:58.000Z | 2018-04-19T00:50:58.000Z | csgo_internal/WndProc.cpp | XGOD4/REDHOOK | ee8d4addf2051c07defa6df494ce00cdddefd709 | [
"MIT"
] | 1 | 2018-04-14T06:34:14.000Z | 2018-04-14T06:34:14.000Z | csgo_internal/WndProc.cpp | XGOD4/REDHOOK | ee8d4addf2051c07defa6df494ce00cdddefd709 | [
"MIT"
] | null | null | null | #include "Cheat.h"
WNDPROC Hooks::oldWindowProc;
void OpenMenu();
extern LRESULT ImGui_ImplDX9_WndProcHandler( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam );
LRESULT __stdcall Hooks::WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
{
switch( uMsg )
{
case WM_LBUTTONDOWN:
G::PressedKeys[ VK_... | 20.963303 | 99 | 0.651641 | XGOD4 |
fae638db1271f2260b7e21ad79d2889e58667054 | 1,843 | cpp | C++ | src/maude.cpp | glaba/glc | f262ee29594da9cee3ddfb476baa4a300d0eace4 | [
"MIT"
] | null | null | null | src/maude.cpp | glaba/glc | f262ee29594da9cee3ddfb476baa4a300d0eace4 | [
"MIT"
] | null | null | null | src/maude.cpp | glaba/glc | f262ee29594da9cee3ddfb476baa4a300d0eace4 | [
"MIT"
] | null | null | null | #include "maude.h"
#include <cstdlib>
using std::string;
using std::function;
using std::tuple;
using std::make_tuple;
using std::optional;
auto maude::reduce(string expr) -> optional<tuple<string, string>> {
bool got_result = false;
string sort;
string result;
run_command("echo \"red " + expr + " .\" | ./maude... | 24.25 | 84 | 0.55019 | glaba |
fae7508a59cd4127d966fa7652f49435dad507a0 | 462 | cpp | C++ | tester/tester.cpp | kypp/earth-viewer | 730504d3b9d778f685710a07103c57e34eaed97c | [
"MIT"
] | 1 | 2019-12-07T17:59:55.000Z | 2019-12-07T17:59:55.000Z | tester/tester.cpp | kypp/earth-viewer | 730504d3b9d778f685710a07103c57e34eaed97c | [
"MIT"
] | null | null | null | tester/tester.cpp | kypp/earth-viewer | 730504d3b9d778f685710a07103c57e34eaed97c | [
"MIT"
] | 3 | 2016-12-16T13:57:05.000Z | 2020-03-13T18:20:22.000Z | // tester.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <string>
#include <sstream>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string oko = "k128r34";
char c;
int a, b;
stringstream strim(oko);
strim >> c;
strim >>... | 14.4375 | 69 | 0.569264 | kypp |
faeca31df0029d2e55ae10c0028f4da4c600ecdb | 1,844 | cxx | C++ | source/opengl/blending.cxx | pintarj/ege | 69e093581dac9abfa2fbfd3186b22cf834218a33 | [
"MIT"
] | null | null | null | source/opengl/blending.cxx | pintarj/ege | 69e093581dac9abfa2fbfd3186b22cf834218a33 | [
"MIT"
] | 10 | 2016-09-09T18:15:32.000Z | 2017-04-05T00:26:39.000Z | source/opengl/blending.cxx | pintarj/ege | 69e093581dac9abfa2fbfd3186b22cf834218a33 | [
"MIT"
] | null | null | null | #include <ege/opengl/blending.hxx>
#include <cassert>
#include <GL/glew.h>
namespace ege
{
namespace opengl
{
void enableBlending() noexcept
{
glEnable(GL_BLEND);
}
void disableBlending() noexcept
{
glDisable(GL_BLEND);
}
void se... | 36.156863 | 98 | 0.649132 | pintarj |
faf438f7d75f88c234f60bfd37770a46c166b2ed | 6,253 | cpp | C++ | tests/test.cpp | qualab/dyn | b21ec90bf0edca9b37d4de4dc0057a0d39f6e8e6 | [
"Apache-2.0"
] | 2 | 2017-11-29T12:06:37.000Z | 2018-08-14T12:01:33.000Z | tests/test.cpp | qualab/dyn | b21ec90bf0edca9b37d4de4dc0057a0d39f6e8e6 | [
"Apache-2.0"
] | null | null | null | tests/test.cpp | qualab/dyn | b21ec90bf0edca9b37d4de4dc0057a0d39f6e8e6 | [
"Apache-2.0"
] | null | null | null | // test mechanism implementation
#include <dyn/object.h>
#include <list>
#include <memory>
#include <string>
#include <algorithm>
#include <iostream>
#include <utility>
#include "test.h"
namespace dyn
{
namespace
{
std::list<test::suite*> test_suites;
std::ostream* test_output = &std::cout;
... | 30.0625 | 109 | 0.509835 | qualab |
4f0318fb7cd1f7b4c2afc3e7d0495ba82f00db42 | 1,134 | cc | C++ | primer/examples/average.cc | CaffeineViking/concepts-primer | 041cec40fa4a25cd954ce91da6d9d10ee31499a3 | [
"MIT"
] | 17 | 2019-05-01T21:49:43.000Z | 2022-02-25T06:50:47.000Z | primer/examples/average.cc | CaffeineViking/concepts-primer | 041cec40fa4a25cd954ce91da6d9d10ee31499a3 | [
"MIT"
] | null | null | null | primer/examples/average.cc | CaffeineViking/concepts-primer | 041cec40fa4a25cd954ce91da6d9d10ee31499a3 | [
"MIT"
] | null | null | null | #include "concepts.h"
#include "point2.hh"
#include <iostream>
#include <string>
template<typename T>
requires DefaultConstructible<T> &&
SummableWith<T, T> &&
ScalableWith<T, double>
T average(const T* begin,
const T* const end) {
T sum { };
const double size = end - ... | 25.772727 | 62 | 0.544092 | CaffeineViking |
4f06de31600f564aa00b8fe34ec52eba9c3e495d | 8,226 | hpp | C++ | binspector/bitreader.hpp | sur5r/binspector | 9eeb9af463254edf1056d59944c49d00770e36f0 | [
"BSL-1.0"
] | 119 | 2015-01-14T18:03:20.000Z | 2022-03-18T14:02:46.000Z | binspector/bitreader.hpp | sur5r/binspector | 9eeb9af463254edf1056d59944c49d00770e36f0 | [
"BSL-1.0"
] | 8 | 2015-03-06T01:18:39.000Z | 2021-05-04T21:55:34.000Z | binspector/bitreader.hpp | sur5r/binspector | 9eeb9af463254edf1056d59944c49d00770e36f0 | [
"BSL-1.0"
] | 22 | 2015-01-09T16:18:38.000Z | 2022-03-13T13:41:04.000Z | /*
Copyright 2014 Adobe
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 BINSPECTOR_BITREADER_H... | 32.258824 | 102 | 0.562971 | sur5r |
4f103a2745d0912fc0765a343658a17378e9c3c2 | 819 | hpp | C++ | Test/OS/Thread.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | Test/OS/Thread.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | Test/OS/Thread.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | #pragma once
#include <AL/Common.hpp>
#include <AL/OS/Thread.hpp>
#include <AL/OS/Console.hpp>
static void AL_OS_Thread()
{
using namespace AL;
using namespace AL::OS;
Thread thread;
try
{
thread.Start(
[]()
{
#if defined(AL_TEST_SHOW_CONSOLE_OUTPUT)
Console::WriteLine(
"GetCurrentThreadId() =... | 13.65 | 43 | 0.636142 | LeoTHPS |
4f187dfed522fa374848ed01c107f61f9b8c68b5 | 576 | hpp | C++ | include/netp/handler/dump_in_len.hpp | netplus/netplus | e3b621e65742f38733d3dcaa1873443da8bbd611 | [
"MIT"
] | 48 | 2021-02-22T03:10:40.000Z | 2022-03-29T03:26:33.000Z | include/netp/handler/dump_in_len.hpp | netplus/netplus | e3b621e65742f38733d3dcaa1873443da8bbd611 | [
"MIT"
] | 7 | 2021-03-20T09:25:11.000Z | 2022-03-07T03:26:56.000Z | include/netp/handler/dump_in_len.hpp | netplus/netplus | e3b621e65742f38733d3dcaa1873443da8bbd611 | [
"MIT"
] | 13 | 2021-02-25T01:49:58.000Z | 2022-03-21T00:30:34.000Z | #ifndef _NETP_HANDLER_DUMP_IN_LEN_HPP
#define _NETP_HANDLER_DUMP_IN_LEN_HPP
#include <netp/core.hpp>
#include <netp/packet.hpp>
#include <netp/app.hpp>
#include <netp/channel_handler.hpp>
namespace netp {namespace handler {
class dump_in_len final:
public netp::channel_handler_abstract
{
public:
dump_in_len() :c... | 23.04 | 90 | 0.741319 | netplus |
4f1953cd1424de4b63e3eddd77fecabe164e4062 | 505 | hpp | C++ | src/stan/lang/ast/fun/strip_ccdf_suffix_def.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/stan/lang/ast/fun/strip_ccdf_suffix_def.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/stan/lang/ast/fun/strip_ccdf_suffix_def.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T11:36:09.000Z | 2020-07-14T11:36:09.000Z | #ifndef STAN_LANG_AST_FUN_STRIP_CCDF_SUFFIX_DEF_HPP
#define STAN_LANG_AST_FUN_STRIP_CCDF_SUFFIX_DEF_HPP
#include <stan/lang/ast/fun/ends_with.hpp>
#include <string>
namespace stan {
namespace lang {
std::string strip_ccdf_suffix(const std::string& fname) {
if (ends_with("_lccdf", fname))
return fname.substr(0,... | 22.954545 | 57 | 0.728713 | drezap |
4f1b0c1420a85a223705dad9d3d1e8be9b9bc18e | 10,690 | hpp | C++ | Nacro/SDK/FN_Results_TeamScoreRow_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_Results_TeamScoreRow_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_Results_TeamScoreRow_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// WidgetBlueprintGeneratedClass Results_TeamScoreR... | 146.438356 | 663 | 0.733863 | Milxnor |
4f1c0174755999bac9447490b4e9a99cc6fcc728 | 2,144 | cpp | C++ | cpp/QTweakWindow.cpp | sigurdstorve/supersplines | a49cac9f7e166b660fb1da688f9bf5d90f05dcdb | [
"BSL-1.0"
] | 2 | 2020-01-07T02:40:42.000Z | 2022-03-21T07:09:08.000Z | cpp/QTweakWindow.cpp | sigurdstorve/supersplines | a49cac9f7e166b660fb1da688f9bf5d90f05dcdb | [
"BSL-1.0"
] | null | null | null | cpp/QTweakWindow.cpp | sigurdstorve/supersplines | a49cac9f7e166b660fb1da688f9bf5d90f05dcdb | [
"BSL-1.0"
] | null | null | null | #include <stdexcept>
#include <QFormLayout>
#include "QTweakWindow.hpp"
#include "VariableEditorWidget.hpp"
QTweakWindow::QTweakWindow(QWidget* parent) :
QWidget(parent) {
//layout = new QVBoxLayout;
m_formLayout = new QFormLayout;
setLayout(m_formLayout);
}
void QTweakWindow::registerVari... | 38.981818 | 98 | 0.722948 | sigurdstorve |
b7ba7826d799e07b56288bbe24ce3936bd448e21 | 14,294 | cpp | C++ | src/system/core/liblog/logd_reader.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/system/core/liblog/logd_reader.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/system/core/liblog/logd_reader.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2007-2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 27.435701 | 97 | 0.633692 | dAck2cC2 |
b7bf0e881ac3d6242a6eb9d429ecdb7d40a9edb4 | 7,697 | cpp | C++ | submodules/Digit_Model/gen/kin/eigen/src/R_LeftHSAnchor.cpp | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | submodules/Digit_Model/gen/kin/eigen/src/R_LeftHSAnchor.cpp | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | submodules/Digit_Model/gen/kin/eigen/src/R_LeftHSAnchor.cpp | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | /*
* Automatically Generated from Mathematica.
* Thu 4 Nov 2021 17:02:42 GMT-04:00
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "R_LeftHSAnchor.h"
#ifdef _MSC_VER
#define INLINE __forceinline /* use __forceinline (VC++ specific) */
#else
#define INLINE static inline /* use standa... | 21.928775 | 99 | 0.658308 | prem-chand |
b7bf3120e2ea829134c7a9c599bec697869f826a | 49 | hpp | C++ | src/boost_spirit_home_karma_reference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_karma_reference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_karma_reference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/karma/reference.hpp>
| 24.5 | 48 | 0.795918 | miathedev |
b7c314fa01cdac593cd6314e366473c04faa3fda | 837 | cpp | C++ | GameEngine/GameEngine/src/IndexBuffer.cpp | Gnaag98/game-engine | 40e4d65953c17718accd0fe8129bf934873bb306 | [
"MIT"
] | null | null | null | GameEngine/GameEngine/src/IndexBuffer.cpp | Gnaag98/game-engine | 40e4d65953c17718accd0fe8129bf934873bb306 | [
"MIT"
] | null | null | null | GameEngine/GameEngine/src/IndexBuffer.cpp | Gnaag98/game-engine | 40e4d65953c17718accd0fe8129bf934873bb306 | [
"MIT"
] | null | null | null | #include "IndexBuffer.h"
#include "Renderer.h"
IndexBuffer::IndexBuffer(unsigned int* const data, const unsigned int count)
: m_count{ count } {
// Using c++ datatypes so I need to compare their size to OpenGL datatypes.
ASSERT(sizeof(unsigned int) == sizeof(GLuint));
CALL_GL(glGenBuffers(1, &m_renderer_id)... | 27.9 | 101 | 0.753883 | Gnaag98 |
b7c72307fab5fc52b24572dd2d8591fc322fbd3b | 14,390 | hpp | C++ | tests/node_based/TestNodeContext.hpp | lennartaustenfeld/hypertrie | 4a656a806f7fe66db1f5f123e1fcc78037dbc24c | [
"BSD-2-Clause"
] | 11 | 2020-03-02T05:02:20.000Z | 2020-12-20T09:52:58.000Z | tests/node_based/TestNodeContext.hpp | lennartaustenfeld/hypertrie | 4a656a806f7fe66db1f5f123e1fcc78037dbc24c | [
"BSD-2-Clause"
] | 49 | 2020-01-29T16:41:04.000Z | 2021-09-03T09:40:25.000Z | tests/node_based/TestNodeContext.hpp | lennartaustenfeld/hypertrie | 4a656a806f7fe66db1f5f123e1fcc78037dbc24c | [
"BSD-2-Clause"
] | 4 | 2020-03-24T11:14:31.000Z | 2021-02-02T13:59:38.000Z | #ifndef HYPERTRIE_TESTNODECONTEXT_H
#define HYPERTRIE_TESTNODECONTEXT_H
#include <Dice/hypertrie/internal/Hypertrie_traits.hpp>
#include <Dice/hypertrie/internal/raw/storage/NodeContext.hpp>
#include <fmt/format.h>
#include "../utils/AssetGenerator.hpp"
#include "../utils/NameOfType.hpp"
#include "TestTensor.hpp"
... | 24.266442 | 91 | 0.570257 | lennartaustenfeld |
b7d0599749ed5635e291eae3d79107f6ad3fab8f | 648 | cpp | C++ | cpp/001-010/Longest Substring Without Repeating Characters.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/001-010/Longest Substring Without Repeating Characters.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/001-010/Longest Substring Without Repeating Characters.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
public:
int lengthOfLongestSubstring(string s) {
bool visited[256] = {false};
int result(0), k(0);
for (int i = 0;i < s.length();i++) {
char ch = s[i];
if (visited[ch] == false) {
visited[ch] = true;
r... | 24 | 44 | 0.319444 | KaiyuWei |
b7d3a2a910a53f1fa85c00908f989542e09fa6d9 | 12,357 | cpp | C++ | apps/cc3o3/campaign/CampaignManager.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | 3 | 2019-10-27T22:32:44.000Z | 2020-05-21T04:00:46.000Z | apps/cc3o3/campaign/CampaignManager.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | apps/cc3o3/campaign/CampaignManager.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | #include "stdafx.h"
#include "CampaignManager.h"
#include "cc3o3/Common.h"
#include "cc3o3/CommonPaths.h"
#include "cc3o3/appstates/AppStatesFwd.h"
#include "cc3o3/appstates/InputHelpers.h"
#include "cc3o3/campaign/Campaign.h"
#include "cc3o3/char/CharacterDatabase.h"
#include "cc3o3/char/CharacterValidator.h"
#includ... | 30.738806 | 123 | 0.725581 | max-delta |
b7dc3c26f7ef162d45e71bf72c0662b55b1553f8 | 602 | cpp | C++ | src/mc_control/samples/FSM/src/mc_fsm_controller.cpp | SaeidSamadi/mc_rtc | fed695d7458da5231ae887506134c0e783556780 | [
"BSD-2-Clause"
] | null | null | null | src/mc_control/samples/FSM/src/mc_fsm_controller.cpp | SaeidSamadi/mc_rtc | fed695d7458da5231ae887506134c0e783556780 | [
"BSD-2-Clause"
] | null | null | null | src/mc_control/samples/FSM/src/mc_fsm_controller.cpp | SaeidSamadi/mc_rtc | fed695d7458da5231ae887506134c0e783556780 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2015-2019 CNRS-UM LIRMM, CNRS-AIST JRL
*/
#include "mc_fsm_controller.h"
FSMController::FSMController(mc_rbdyn::RobotModulePtr rm, double dt, const mc_rtc::Configuration & config)
: mc_control::fsm::Controller(rm, dt, config)
{
}
bool FSMController::run()
{
return mc_control::fsm::Controller::run(... | 24.08 | 106 | 0.729236 | SaeidSamadi |
b7de30cc498608efe0db8b37367e2c6a1976fe0a | 696 | hpp | C++ | src/gl/bstate.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/gl/bstate.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/gl/bstate.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "state.hpp"
#include "if.hpp"
namespace rev {
//! OpenGLのBoolステート値設定
class GL_BState : public GLState {
private:
bool _enable;
GLenum _flag;
struct DCmd_Apply {
bool enable;
GLenum flag;
static void Command(const void* p);
};
public:
GL_BState(bool enable, GLenu... | 24.857143 | 63 | 0.699713 | degarashi |
b7e2d935c4b23a5ee04f6329ab56186b7c5bcd64 | 11,793 | cxx | C++ | src/virgil/sdk/crypto/Crypto.cxx | rebeccaly/sdk-cpp | 87e823bf47954bb923309509fd980a34a54b8703 | [
"BSD-3-Clause"
] | null | null | null | src/virgil/sdk/crypto/Crypto.cxx | rebeccaly/sdk-cpp | 87e823bf47954bb923309509fd980a34a54b8703 | [
"BSD-3-Clause"
] | null | null | null | src/virgil/sdk/crypto/Crypto.cxx | rebeccaly/sdk-cpp | 87e823bf47954bb923309509fd980a34a54b8703 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) 2015-2018 Virgil Security Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* (1) Redistributions of source code must retain the above copyright
* no... | 37.798077 | 118 | 0.748664 | rebeccaly |
b7e8f86760367a856592a0800b314e5e194ce30f | 3,092 | cpp | C++ | Main.cpp | porat-ah/sp_2 | f4d4de581b1bca5e68143217b434ad16b4ce3e95 | [
"MIT"
] | null | null | null | Main.cpp | porat-ah/sp_2 | f4d4de581b1bca5e68143217b434ad16b4ce3e95 | [
"MIT"
] | null | null | null | Main.cpp | porat-ah/sp_2 | f4d4de581b1bca5e68143217b434ad16b4ce3e95 | [
"MIT"
] | 1 | 2021-03-23T03:14:40.000Z | 2021-03-23T03:14:40.000Z | #include "Board.hpp"
#include "Direction.hpp"
using namespace ariel;
#include <iostream>
#include <stdexcept>
using namespace std;
#define print(x) cout << x ;
#define println(x) cout << x << endl;
const Direction hor = Direction::Horizontal;
const Direction ver = Direction::Vertical;
int main(){
println("hello... | 23.424242 | 141 | 0.386805 | porat-ah |
b7ea90270d831e8177bca48dcfaf5a3f3f2f96be | 563 | cpp | C++ | ScrapEngine/ScrapEngine/Engine/Rendering/Buffer/FrameBuffer/BaseFrameBuffer.cpp | alundb/ScrapEngine | 755416a2b2b072a8713f5a6b669f2379608bbab0 | [
"MIT"
] | 118 | 2019-10-12T01:29:07.000Z | 2022-02-22T08:08:18.000Z | ScrapEngine/ScrapEngine/Engine/Rendering/Buffer/FrameBuffer/BaseFrameBuffer.cpp | alundb/ScrapEngine | 755416a2b2b072a8713f5a6b669f2379608bbab0 | [
"MIT"
] | 15 | 2019-09-02T16:51:39.000Z | 2021-02-21T20:03:58.000Z | ScrapEngine/ScrapEngine/Engine/Rendering/Buffer/FrameBuffer/BaseFrameBuffer.cpp | alundb/ScrapEngine | 755416a2b2b072a8713f5a6b669f2379608bbab0 | [
"MIT"
] | 11 | 2019-10-21T15:53:23.000Z | 2022-02-20T20:56:39.000Z | #include <Engine/Rendering/Buffer/FrameBuffer/BaseFrameBuffer.h>
#include <Engine/Rendering/Device/VulkanDevice.h>
ScrapEngine::Render::BaseFrameBuffer::~BaseFrameBuffer()
{
for (auto& framebuffer : framebuffers_)
{
VulkanDevice::get_instance()->get_logical_device()->destroyFramebuffer(framebuffer);
}
}
const st... | 26.809524 | 105 | 0.790409 | alundb |
b7eea80323adae1777f50eecefdac41002adb49c | 4,355 | hpp | C++ | src/PyramidNonrigidRegistration.hpp | brisyramshere/meshmonk | a0a7cf79902541cf9c800d83a4d4f14fcd756f6f | [
"Apache-2.0"
] | 53 | 2017-02-03T14:59:54.000Z | 2022-03-14T05:40:58.000Z | src/PyramidNonrigidRegistration.hpp | brisyramshere/meshmonk | a0a7cf79902541cf9c800d83a4d4f14fcd756f6f | [
"Apache-2.0"
] | 16 | 2018-07-16T10:34:15.000Z | 2022-01-18T04:37:12.000Z | src/PyramidNonrigidRegistration.hpp | brisyramshere/meshmonk | a0a7cf79902541cf9c800d83a4d4f14fcd756f6f | [
"Apache-2.0"
] | 23 | 2018-07-05T14:59:52.000Z | 2022-01-14T07:01:47.000Z | #ifndef PYRAMIDNONRIGIDREGISTRATION_HPP
#define PYRAMIDNONRIGIDREGISTRATION_HPP
#include <stdio.h>
#include <math.h>
#include <memory.h>
#include <time.h>
#include <Eigen/Dense>
#include "../global.hpp"
#include "NonrigidRegistration.hpp"
#include "Downsampler.hpp"
#include "ScaleShifter.hpp"
typedef Eigen::VectorXf ... | 37.222222 | 147 | 0.641332 | brisyramshere |
b7f04f1395af1fafae16f43297560dc7ad3f9391 | 636 | hpp | C++ | sdl1/TicTacToe/BoardGraphicsComponent.hpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/TicTacToe/BoardGraphicsComponent.hpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/TicTacToe/BoardGraphicsComponent.hpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | #ifndef __BOARDGRAPHICSCOMPONENT_H
#define __BOARDGRAPHICSCOMPONENT_H
#include "GraphicsComponent.hpp"
#include "CharSprite.hpp"
#include "SDL.h"
class BoardGraphicsComponent : public GraphicsComponent {
public:
void update( GameState *obj );
BoardGraphicsComponent( GameBoard *board, GameEngine *engine );
~B... | 19.875 | 65 | 0.753145 | pdpdds |
b7f2a6f1bc40c2fdf9eb56e24ed380e02b983897 | 3,161 | hh | C++ | src/utilities/TinyVector.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/utilities/TinyVector.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/utilities/TinyVector.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*-----------------------------------//
/**
* @file TinyVector.hh
* @brief TinyVector class definition
* @note Copyright (C) 2013 Jeremy Roberts
*/
//----------------------------------------------------------------------------//
#ifndef detran_utilities_TINYVECTOR_HH_
... | 30.104762 | 80 | 0.425815 | baklanovp |
b7f41ad336e479067f48f561448b40575b61f2d2 | 363 | cpp | C++ | modules/core/tests/node/main.cpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | modules/core/tests/node/main.cpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | modules/core/tests/node/main.cpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <iostream>
#include "common.hpp"
#include "objects.hpp"
using namespace aq;
using namespace aq::nodes;
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
auto system_table = SystemTable::instance();
mo::MetaObjectFactory::instance()->registerTransl... | 21.352941 | 65 | 0.710744 | dtmoodie |
b7f999757426b9064373305454d141bcb9f84774 | 1,182 | inl | C++ | Refureku/Library/Include/Public/Refureku/TypeInfo/Functions/MethodHelper.inl | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | Refureku/Library/Include/Public/Refureku/TypeInfo/Functions/MethodHelper.inl | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | Refureku/Library/Include/Public/Refureku/TypeInfo/Functions/MethodHelper.inl | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2020 Julien SOYSOUVANH - All Rights Reserved
*
* This file is part of the Refureku library project which is released under the MIT License.
* See the LICENSE.md file for full license details.
*/
template <typename ReturnType, typename... ArgTypes>
bool MethodHelper<ReturnType(ArgTypes...)>::hasSame... | 39.4 | 110 | 0.767343 | Angelysse |
b7feaa5c39d2690c87be55b768f6cf324ca90a39 | 407 | cc | C++ | below1.5/filip.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below1.5/filip.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below1.5/filip.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
int dupea=a;
int dupeb=b;
int newa = 0;
int newb = 0;
while(dupea!=0){
newa *= 10;
newa += dupea%10;
dupea /= 10;
}
while(dupeb!=0){
newb *= 10;
newb += dupeb%10;
... | 16.28 | 35 | 0.464373 | danzel-py |
4d0157e203ec6354c71475abffee25a4407f9e2e | 321 | hpp | C++ | include/cgl/matrix.hpp | sdragonx/cgl | d8d45d3a3930bc8f3d0851371760742fda4733b8 | [
"MIT"
] | 1 | 2020-12-30T06:35:47.000Z | 2020-12-30T06:35:47.000Z | include/cgl/matrix.hpp | sdragonx/cgl | d8d45d3a3930bc8f3d0851371760742fda4733b8 | [
"MIT"
] | null | null | null | include/cgl/matrix.hpp | sdragonx/cgl | d8d45d3a3930bc8f3d0851371760742fda4733b8 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2005-2020 sdragonx (mail:sdragonx@foxmail.com)
matrix.hpp
2020-10-27 02:08:43
*/
#ifndef MATRIX_HPP_20201027020843
#define MATRIX_HPP_20201027020843
#include "math/matrix/mat2.hpp"
#include "math/matrix/mat3.hpp"
#include "math/matrix/mat4.hpp"
#endif //MATRIX_HPP_20201027020843
... | 18.882353 | 62 | 0.732087 | sdragonx |
4d0fe7bf6b3161871bb5d228decafe296505a924 | 1,330 | cpp | C++ | src/error.cpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 18 | 2016-05-30T23:46:27.000Z | 2022-01-11T18:20:28.000Z | src/error.cpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 4 | 2017-09-12T13:32:28.000Z | 2019-10-21T10:36:18.000Z | src/error.cpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 5 | 2017-11-24T19:34:06.000Z | 2019-10-18T14:24:12.000Z | /*
* Copyright 2016 Ivan Ryabov
*
* 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 in ... | 30.227273 | 80 | 0.633835 | abbyssoul |
4d115cd4d34f46e1919ed5d374d3b204633c1f0d | 65,830 | hpp | C++ | src/vlX/vlxutils.hpp | Christophe-ABEL/VisualizationLibrary | 936fe9e5047970b23d97ff0088725e9016b470ee | [
"BSD-2-Clause"
] | 281 | 2016-04-16T14:11:04.000Z | 2022-03-24T14:48:52.000Z | src/vlX/vlxutils.hpp | Christophe-ABEL/VisualizationLibrary | 936fe9e5047970b23d97ff0088725e9016b470ee | [
"BSD-2-Clause"
] | 91 | 2016-04-20T19:55:45.000Z | 2022-01-04T02:59:33.000Z | src/vlX/vlxutils.hpp | Christophe-ABEL/VisualizationLibrary | 936fe9e5047970b23d97ff0088725e9016b470ee | [
"BSD-2-Clause"
] | 83 | 2016-04-26T01:28:40.000Z | 2022-03-21T13:23:55.000Z | /**************************************************************************************/
/* */
/* Visualization Library */
/* http://visualizationlibrary.org ... | 50.560676 | 157 | 0.693787 | Christophe-ABEL |
4d120dc1fedd502aec0c1b27a440690e4e2b5155 | 8,476 | inl | C++ | src/Core/Functor.inl | xcasadio/casaengine | 19e34c0457265435c28667df7f2e5c137d954b98 | [
"MIT"
] | null | null | null | src/Core/Functor.inl | xcasadio/casaengine | 19e34c0457265435c28667df7f2e5c137d954b98 | [
"MIT"
] | null | null | null | src/Core/Functor.inl | xcasadio/casaengine | 19e34c0457265435c28667df7f2e5c137d954b98 | [
"MIT"
] | null | null | null | inline Functor::Functor(IFunction* Func) :
m_pFunction(Func)
{
}
inline std::string Functor::operator ()(const std::string& Params) const
{
if (!m_pFunction)
throw CException("Try o call a null function through a functor");
return m_pFunction->Execute(Params);
}
template <typename T> struct Base { typedef T Typ... | 24.568116 | 108 | 0.715078 | xcasadio |
4d17e34e798aff78a452ddf39ec83287c4b84f0d | 5,460 | cpp | C++ | 3DSample/3DSample/Kuribo.cpp | YoshidaChihiro/metroydLike | da0cde35ec6aae63e766b5711bc1617931fcb8af | [
"Apache-2.0"
] | null | null | null | 3DSample/3DSample/Kuribo.cpp | YoshidaChihiro/metroydLike | da0cde35ec6aae63e766b5711bc1617931fcb8af | [
"Apache-2.0"
] | null | null | null | 3DSample/3DSample/Kuribo.cpp | YoshidaChihiro/metroydLike | da0cde35ec6aae63e766b5711bc1617931fcb8af | [
"Apache-2.0"
] | 1 | 2020-02-04T00:19:44.000Z | 2020-02-04T00:19:44.000Z | #include "Kuribo.h"
#include "Game.h"
#include"MapChipObject.h"
#include"Sencer.h"
#include "ParticleEmitter.h"
Framework::Kuribo::Kuribo(std::shared_ptr<Transform> shp_arg_transform, std::shared_ptr<GameObjectManager> shp_arg_gameObjectManager, std::shared_ptr<Map> shp_arg_map) :GameObject(shp_arg_transform, shp_arg... | 27.857143 | 225 | 0.686813 | YoshidaChihiro |
4d22c1fbb22df0f4b05ee111d37b2e9bb463949f | 1,399 | cpp | C++ | src/ComposerGUI/composer/package/form/delegate/DependencyRow.cpp | composer-gui/composer-gui | 2a488db4c6828fee0f36682d0b0edc96d359b4c3 | [
"BSD-3-Clause"
] | 13 | 2019-04-01T07:54:05.000Z | 2022-03-27T16:55:59.000Z | src/ComposerGUI/composer/package/form/delegate/DependencyRow.cpp | informaticacba/composer-gui | 2a488db4c6828fee0f36682d0b0edc96d359b4c3 | [
"BSD-3-Clause"
] | null | null | null | src/ComposerGUI/composer/package/form/delegate/DependencyRow.cpp | informaticacba/composer-gui | 2a488db4c6828fee0f36682d0b0edc96d359b4c3 | [
"BSD-3-Clause"
] | 1 | 2022-03-27T16:56:02.000Z | 2022-03-27T16:56:02.000Z | #include <QStringList>
#include "DependencyRow.h"
#include "composer/package/form/delegate/editor/Dependency.h"
namespace composer_gui
{
namespace composer
{
namespace package
{
namespace form
{
namespace delegate
{
DependencyRow::DependencyRow(const QString &title) : m_title(title){}
QWidget *DependencyRow::create... | 26.396226 | 121 | 0.705504 | composer-gui |
4d246e10b49682504c51bba902ab0824c287e55d | 397 | hpp | C++ | Binary Tree/BinaryTree.hpp | wooleyga/DataStructures | 4dde9146c982f39f59157b5937e50050ef2c4dcb | [
"MIT"
] | null | null | null | Binary Tree/BinaryTree.hpp | wooleyga/DataStructures | 4dde9146c982f39f59157b5937e50050ef2c4dcb | [
"MIT"
] | null | null | null | Binary Tree/BinaryTree.hpp | wooleyga/DataStructures | 4dde9146c982f39f59157b5937e50050ef2c4dcb | [
"MIT"
] | null | null | null | #ifndef _BINARYTREE_HPP_
#define _BINARYTREE_HPP_
#pragma once
#include "TreeNode.hpp"
class BinaryTree {
public:
BinaryTree();
~BinaryTree();
virtual void add(int x) = 0;
int getHeight();
int getNumberOfNodes();
bool contains(int x);
std::string preorderTraversal();
std::string inorderTraversal();
std::stri... | 17.26087 | 34 | 0.732997 | wooleyga |
4d28e790a71e0c4295b24dae7028a7e4601b8797 | 6,143 | cpp | C++ | src/navsws.cpp | caldwell/navcodec | faac0a76dd387b1e1d37e407f074cb3c3b5ee27f | [
"Unlicense"
] | 60 | 2015-01-23T21:13:19.000Z | 2022-01-24T08:42:28.000Z | src/navsws.cpp | caldwell/navcodec | faac0a76dd387b1e1d37e407f074cb3c3b5ee27f | [
"Unlicense"
] | 9 | 2015-01-27T07:48:00.000Z | 2017-03-30T12:23:34.000Z | src/navsws.cpp | caldwell/navcodec | faac0a76dd387b1e1d37e407f074cb3c3b5ee27f | [
"Unlicense"
] | 17 | 2015-01-26T14:30:39.000Z | 2022-02-16T07:19:31.000Z | /* Copyright(c) 2012 Optimal Bits Sweden AB. 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
* rights to use,... | 34.511236 | 122 | 0.644799 | caldwell |
4d2d402802741fda949b4bec76db689bbd54759f | 6,493 | cpp | C++ | src/c/memory.cpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | src/c/memory.cpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | src/c/memory.cpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | /* The MIT License (MIT)
*
* Copyright (c) 2014-2018 David Medina and Tim Warburton
*
* 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 t... | 32.303483 | 81 | 0.58925 | v-dobrev |
4d2e7e06c54d06f0659e2e5ef2516bd58c7ba253 | 2,663 | hpp | C++ | System.Core/include/Switch/System/ConsoleColor.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 4 | 2021-10-14T01:43:00.000Z | 2022-03-13T02:16:08.000Z | System.Core/include/Switch/System/ConsoleColor.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | null | null | null | System.Core/include/Switch/System/ConsoleColor.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 2 | 2022-03-13T02:16:06.000Z | 2022-03-14T14:32:57.000Z | /// @file
/// @brief Contains Switch::System::ConsoleColor enum.
#pragma once
#include "../Types.hpp"
#include "Enum.hpp"
/// @brief The Switch namespace contains all fundamental classes to access Hardware, Os, System, and more.
namespace Switch {
/// @brief The System namespace contains fundamental classes and bas... | 34.141026 | 215 | 0.648517 | kkptm |
4d328e68b890fff25b79afe74daed8eec29a277f | 72,344 | cpp | C++ | src/main.cpp | HolyBlackCat/LD40-Ni | 001f84da7f85565758abf96ab2ea95c23ebdc59a | [
"Zlib"
] | null | null | null | src/main.cpp | HolyBlackCat/LD40-Ni | 001f84da7f85565758abf96ab2ea95c23ebdc59a | [
"Zlib"
] | null | null | null | src/main.cpp | HolyBlackCat/LD40-Ni | 001f84da7f85565758abf96ab2ea95c23ebdc59a | [
"Zlib"
] | null | null | null | #include "everything.h"
#include <iostream>
#include <deque>
#include <random>
#include <vector>
namespace Keys = Input::Keys;
static constexpr ivec2 screen_sz(480,270);
Window win;
Renderers::Poly2D_PBR r;
Graphics::Texture tex_lookup, tex_albedo, tex_normal, tex_m_r_h_ao, tex_emission;
Audio::Context audio_con;
... | 37.194859 | 233 | 0.421777 | HolyBlackCat |
2ec073327b43c4aa58690481ced9a219f6c3a41f | 503 | cpp | C++ | examples/src/BasicService.cpp | rfernandes/answer | aeb69e72308072c445a011a86ce4c6838af42a46 | [
"MIT"
] | 1 | 2015-06-26T02:31:43.000Z | 2015-06-26T02:31:43.000Z | examples/src/BasicService.cpp | rfernandes/answer | aeb69e72308072c445a011a86ce4c6838af42a46 | [
"MIT"
] | null | null | null | examples/src/BasicService.cpp | rfernandes/answer | aeb69e72308072c445a011a86ce4c6838af42a46 | [
"MIT"
] | null | null | null | #include "BasicService.hh"
#include <boost/serialization/set.hpp>
BasicOperationResponse BasicService::simple_operation()
{
BasicOperationResponse ret = {{
"Ennie",
"Meenie",
"Miney",
"Moe"
}};
return ret;
}
std::string BasicService::hello_world()
{
return "Hello World";
}
void BasicServi... | 17.344828 | 99 | 0.66004 | rfernandes |
2ecad5e4c9c13ed47010d5a6e5e38037f804f644 | 1,264 | cpp | C++ | Z2/Z2/main.cpp | Midjoni/TP2021 | 2aca128edb558a275eca1b2103dbbdef3c852a11 | [
"Apache-2.0"
] | null | null | null | Z2/Z2/main.cpp | Midjoni/TP2021 | 2aca128edb558a275eca1b2103dbbdef3c852a11 | [
"Apache-2.0"
] | null | null | null | Z2/Z2/main.cpp | Midjoni/TP2021 | 2aca128edb558a275eca1b2103dbbdef3c852a11 | [
"Apache-2.0"
] | null | null | null | //TP 2018/2019: Zadaća 2, Zadatak 2
#include <iostream>
#include <cmath>
#include <ctime>
#include <stdexcept>
#include <cmath>
static constexpr bool jeSavrsenKvadrat (const int& n){return static_cast<int>(sqrt(n)) * static_cast<int>(sqrt(n)) == n;}
void SumaCetiriKvadrata(const int &n, int &a, int &b, int &c, int &d... | 30.829268 | 130 | 0.465981 | Midjoni |
2ecd0a9276afcd7e4d9a765750c10a095435b374 | 43,065 | cpp | C++ | src/cpu.cpp | awolffromspace/nes-emu | d34b9f48c309b5cbee08e2efaafd29f7d8f1a9ec | [
"MIT"
] | null | null | null | src/cpu.cpp | awolffromspace/nes-emu | d34b9f48c309b5cbee08e2efaafd29f7d8f1a9ec | [
"MIT"
] | null | null | null | src/cpu.cpp | awolffromspace/nes-emu | d34b9f48c309b5cbee08e2efaafd29f7d8f1a9ec | [
"MIT"
] | null | null | null | #include "cpu.h"
CPU::CPU() :
sp(0xfd),
a(0),
x(0),
y(0),
p(0x34),
totalCycles(0),
endOfProgram(false),
haltAtBrk(false),
mute(true) {
// Initialize PC to the reset vector
pc = (read(0xfffd) << 8) | read(0xfffc);
}
void CPU::clear() {
... | 24.907461 | 80 | 0.454174 | awolffromspace |
2ecdf5018e0c85380127757330552fa41adfcb8f | 7,472 | cpp | C++ | src/regularization/avm.cpp | tcew/nekRS | 07bee5852bc03e737c1feac1f408a1ada8ec5c9d | [
"BSD-3-Clause"
] | 1 | 2022-03-27T23:58:07.000Z | 2022-03-27T23:58:07.000Z | src/regularization/avm.cpp | tcew/nekRS | 07bee5852bc03e737c1feac1f408a1ada8ec5c9d | [
"BSD-3-Clause"
] | null | null | null | src/regularization/avm.cpp | tcew/nekRS | 07bee5852bc03e737c1feac1f408a1ada8ec5c9d | [
"BSD-3-Clause"
] | null | null | null | #include "cds.hpp"
#include "avm.hpp"
#include "udf.hpp"
#include <limits>
#include <string>
#include <array>
/**
* Persson's artificial viscosity method (http://persson.berkeley.edu/pub/persson06shock.pdf) with P1
**/
namespace avm {
static occa::kernel relativeMassHighestModeKernel;
static occa::kernel computeM... | 27.170909 | 118 | 0.642532 | tcew |
2ed23cbb709a41085f8b5da15139b3e7b979a49b | 3,180 | hpp | C++ | ufora/core/Timers.hpp | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | ufora/core/Timers.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | ufora/core/Timers.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | /***************************************************************************
Copyright 2015 Ufora Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licen... | 23.555556 | 152 | 0.65 | ufora |
2ed3e17a0ceed0e30f1dbeae364f17d48dc1a9e3 | 3,922 | cpp | C++ | pkg/BfsdlTests/source/ObjectDatabaseTest.cpp | dpkristensen/bfdm | 1fdbdb89263b35b5ecd3bd7e24bce700910b38f9 | [
"BSD-3-Clause"
] | 1 | 2018-07-27T17:20:59.000Z | 2018-07-27T17:20:59.000Z | pkg/BfsdlTests/source/ObjectDatabaseTest.cpp | dpkristensen/bfdm | 1fdbdb89263b35b5ecd3bd7e24bce700910b38f9 | [
"BSD-3-Clause"
] | 10 | 2018-07-28T03:21:05.000Z | 2019-02-21T07:09:36.000Z | pkg/BfsdlTests/source/ObjectDatabaseTest.cpp | dpkristensen/bfdm | 1fdbdb89263b35b5ecd3bd7e24bce700910b38f9 | [
"BSD-3-Clause"
] | null | null | null | /**
BFDP Object Database Tests
Copyright 2019, Daniel Kristensen, Garmin Ltd, or its subsidiaries.
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 co... | 32.957983 | 104 | 0.651198 | dpkristensen |
2ed83a9e49986836adc787cd3fd26a3a7c0bb593 | 609 | hpp | C++ | src/stan/cmdstan/arguments/arg_init_alpha.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | src/stan/cmdstan/arguments/arg_init_alpha.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | src/stan/cmdstan/arguments/arg_init_alpha.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef CMDSTAN_ARGUMENTS_ARG_INIT_ALPHA_HPP
#define CMDSTAN_ARGUMENTS_ARG_INIT_ALPHA_HPP
#include "singleton_argument.hpp"
namespace cmdstan {
class arg_init_alpha : public real_argument {
public:
arg_init_alpha() : real_argument() {
_name = "init_alpha";
_description = "Line search step size for first i... | 22.555556 | 63 | 0.702791 | alashworth |
2ee17442c8a2ce3f0517c3cd7fd88451c3133d8f | 1,819 | cpp | C++ | some_test_program/client2.cpp | olez961/LinuxHPSP_note | 39eb8806446477643cd6f5361772c667a61b9754 | [
"MIT"
] | null | null | null | some_test_program/client2.cpp | olez961/LinuxHPSP_note | 39eb8806446477643cd6f5361772c667a61b9754 | [
"MIT"
] | null | null | null | some_test_program/client2.cpp | olez961/LinuxHPSP_note | 39eb8806446477643cd6f5361772c667a61b9754 | [
"MIT"
] | null | null | null | /* File Name: client2.cpp */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <arpa/inet.h>
#define MAXLINE 4096
int str_to_number(const char* str);
int main(int argc, char** argv)
{
i... | 24.581081 | 80 | 0.57834 | olez961 |
2ee3c38717579e32168afc45a7df841c2f25f9e7 | 1,917 | cpp | C++ | tests/unit/arithmetic/div_u16.cpp | dylanmckay/avr-test-suite | 1f6459c1da3480876912ec0dbed5d86e327910a4 | [
"MIT"
] | 4 | 2019-03-26T13:32:48.000Z | 2020-10-12T00:45:54.000Z | tests/unit/arithmetic/div_u16.cpp | dylanmckay/avr-compiler-integration-tests | 1f6459c1da3480876912ec0dbed5d86e327910a4 | [
"MIT"
] | 2 | 2019-05-02T11:11:31.000Z | 2020-06-16T22:09:02.000Z | tests/unit/arithmetic/div_u16.cpp | dylanmckay/avr-compiler-integration-tests | 1f6459c1da3480876912ec0dbed5d86e327910a4 | [
"MIT"
] | null | null | null | // RUN: @cxx @cxxflags -mmcu=atmega328p @file -o @tempfile -O0 && avr-sim @tempfile -w OUTPUT_VALUE=u16
#include <avrlit/boilerplate/unit_test.h>
uint16_t OUTPUT_VALUE = 0xffff;
__attribute__ ((noinline)) uint16_t div(volatile uint16_t a, volatile uint16_t b) {
return a / b;
}
template<uint16_t divisor>
__attribu... | 31.42623 | 103 | 0.695879 | dylanmckay |
2ee83302bb1732f811108045cc8cc5df3750f16d | 3,285 | cc | C++ | src/ufo/filters/ObsDomainErrCheck.cc | rnt20/ufo | 68dab85486f5d79991956076ac6b962bc1a0c5bd | [
"Apache-2.0"
] | null | null | null | src/ufo/filters/ObsDomainErrCheck.cc | rnt20/ufo | 68dab85486f5d79991956076ac6b962bc1a0c5bd | [
"Apache-2.0"
] | null | null | null | src/ufo/filters/ObsDomainErrCheck.cc | rnt20/ufo | 68dab85486f5d79991956076ac6b962bc1a0c5bd | [
"Apache-2.0"
] | null | null | null | /*
* (C) Copyright 2018-2019 UCAR
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/
#include "ufo/filters/ObsDomainErrCheck.h"
#include <algorithm>
#include <string>
#include <vector>
#include "eckit/config... | 34.946809 | 97 | 0.558295 | rnt20 |
2ee942020d263642317a5d0a0d5b36d7a22861c4 | 6,356 | cpp | C++ | apps/mrpt-performance/perf-gridmaps.cpp | feroze/mrpt-shivang | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | 2 | 2017-03-25T18:09:17.000Z | 2017-05-22T08:14:48.000Z | apps/mrpt-performance/perf-gridmaps.cpp | feroze/mrpt-shivang | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | null | null | null | apps/mrpt-performance/perf-gridmaps.cpp | feroze/mrpt-shivang | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | 1 | 2018-07-29T09:40:46.000Z | 2018-07-29T09:40:46.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 27.877193 | 116 | 0.643172 | feroze |
2ee9c133c21dcd9ee9dd8156b8a03d15f85af39c | 5,407 | cpp | C++ | src/QtFuzzy/nFuzzyMamdaniRule.cpp | Vladimir-Lin/QtFuzzy | 185869384f3ce9d3a801080b675bae8ed6c5fb12 | [
"MIT"
] | null | null | null | src/QtFuzzy/nFuzzyMamdaniRule.cpp | Vladimir-Lin/QtFuzzy | 185869384f3ce9d3a801080b675bae8ed6c5fb12 | [
"MIT"
] | null | null | null | src/QtFuzzy/nFuzzyMamdaniRule.cpp | Vladimir-Lin/QtFuzzy | 185869384f3ce9d3a801080b675bae8ed6c5fb12 | [
"MIT"
] | null | null | null | #include <qtfuzzy.h>
N::Fuzzy::MamdaniRule:: MamdaniRule (void)
: Rule ( )
, _antecedent (NULL)
, _consequent (NULL)
{
}
N::Fuzzy::MamdaniRule::~MamdaniRule(void)
{
if (NotNull(_antecedent)) delete _antecedent ;
if (NotNull(_consequent)) ... | 47.017391 | 112 | 0.32236 | Vladimir-Lin |
2ef36794a211510c324bf91521d3d46a3cb5d019 | 1,879 | cpp | C++ | Matrix_operation/MatrixOperation.cpp | VAMANACHARYA/C-CPlusPlus-Programs | 13293902390245dd572587db4e11e0e01053f239 | [
"MIT"
] | null | null | null | Matrix_operation/MatrixOperation.cpp | VAMANACHARYA/C-CPlusPlus-Programs | 13293902390245dd572587db4e11e0e01053f239 | [
"MIT"
] | null | null | null | Matrix_operation/MatrixOperation.cpp | VAMANACHARYA/C-CPlusPlus-Programs | 13293902390245dd572587db4e11e0e01053f239 | [
"MIT"
] | null | null | null | #include "MatrixOperation.h"
vector <vector<int>> MatrixOperations:: MatrixAddition(const int iRowA, const int iColumnA, const vector <vector <int>> iArr1, const vector <vector <int>> iArr2)
{
for (int i = 0; i < iRowA; i++)
{
vector <int> iSumTemp;
for (int j = 0; j < iColumnA; j++)
{
iSumTemp.push_back(iA... | 22.369048 | 186 | 0.63438 | VAMANACHARYA |
2ef9e26854a565de793f4cd0f3a7218c90154412 | 330 | cpp | C++ | ICPC/UESTC_ELSE training 19/a.cpp | emengdeath/acmcode | cc1b0e067464e754d125856004a991d6eb92a2cd | [
"MIT"
] | null | null | null | ICPC/UESTC_ELSE training 19/a.cpp | emengdeath/acmcode | cc1b0e067464e754d125856004a991d6eb92a2cd | [
"MIT"
] | null | null | null | ICPC/UESTC_ELSE training 19/a.cpp | emengdeath/acmcode | cc1b0e067464e754d125856004a991d6eb92a2cd | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<algorithm>
#define N 100001
using namespace std;
int T,n;
double f[N];
int main(){
for (int i=2;i<N;i++)f[i]=(f[i-1]+(f[i-1]+1)*f[i-1]+(f[i-1]+2)/(i-f[i-1]-1))/i;
scanf("%d",&T);
for (int sig=1;sig<=T;sig++){
scanf("%d",&n);
printf("Case #%d: %.8f\n",sig,f[n]);
}
re... | 19.411765 | 80 | 0.557576 | emengdeath |
2eff156ea622b87591ad121b7dc8855942012d98 | 1,663 | cpp | C++ | source/MaterialXRuntime/RtTypeInfo.cpp | kohakukun/MaterialX | 5b11321bfa096d20ebf60e00086bed97642d2fa8 | [
"BSD-3-Clause"
] | null | null | null | source/MaterialXRuntime/RtTypeInfo.cpp | kohakukun/MaterialX | 5b11321bfa096d20ebf60e00086bed97642d2fa8 | [
"BSD-3-Clause"
] | null | null | null | source/MaterialXRuntime/RtTypeInfo.cpp | kohakukun/MaterialX | 5b11321bfa096d20ebf60e00086bed97642d2fa8 | [
"BSD-3-Clause"
] | null | null | null | //
// TM & (c) 2019 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#include <MaterialXRuntime/RtTypeInfo.h>
#include <MaterialXCore/Util.h>
namespace MaterialX
{
struct PvtTypeNameInfo
{
RtIdentifier shortName;
RtIdentifier longName;
RtId... | 23.097222 | 77 | 0.714372 | kohakukun |
2c03eb2192b8d513ca942056737a55fff9ebe7b0 | 2,399 | hpp | C++ | src/error_callback.hpp | the-last-willy/sandbox | 42c828e0a213c0e3b3346243e651f9902486886d | [
"MIT"
] | null | null | null | src/error_callback.hpp | the-last-willy/sandbox | 42c828e0a213c0e3b3346243e651f9902486886d | [
"MIT"
] | null | null | null | src/error_callback.hpp | the-last-willy/sandbox | 42c828e0a213c0e3b3346243e651f9902486886d | [
"MIT"
] | null | null | null | #pragma once
#include <stdexcept>
inline
void error_callback(
GLenum source,
GLenum type,
GLuint id,
GLenum severity,
GLsizei length,
const GLchar *msg,
const void *data)
{
(void) length;
(void) data;
const char* _source;
const char* _type;
const char* _severity;
... | 19.346774 | 47 | 0.544393 | the-last-willy |
2c071e4567fe4f281601231d2d9d85fb04ba625d | 1,228 | hpp | C++ | src/engine/engine.hpp | AndyMender/panda3-astroblast | 3d432b96b3bd8f7310c74bd239ad713cea3ac7a2 | [
"MIT"
] | null | null | null | src/engine/engine.hpp | AndyMender/panda3-astroblast | 3d432b96b3bd8f7310c74bd239ad713cea3ac7a2 | [
"MIT"
] | null | null | null | src/engine/engine.hpp | AndyMender/panda3-astroblast | 3d432b96b3bd8f7310c74bd239ad713cea3ac7a2 | [
"MIT"
] | null | null | null |
#pragma once
namespace ab_engine
{
/// Main game engine
class Engine
{
public:
Engine();
~Engine();
// TODO: add support for reading configuration file and default config?
// engine is unique - cannot copy/move!
Engine(const Engine&) ... | 23.169811 | 83 | 0.502443 | AndyMender |
2c090820a56a57b58756ee800af71a1edb2aa969 | 840 | hpp | C++ | diu/compiler/compiler.hpp | dicarne/diu | 23589581ec5bc6a3ed1b8322e24d33977852ca1c | [
"MIT"
] | null | null | null | diu/compiler/compiler.hpp | dicarne/diu | 23589581ec5bc6a3ed1b8322e24d33977852ca1c | [
"MIT"
] | null | null | null | diu/compiler/compiler.hpp | dicarne/diu | 23589581ec5bc6a3ed1b8322e24d33977852ca1c | [
"MIT"
] | null | null | null | #ifndef COMPILER_H_
#define COMPILER_H_
#include <string>
#include <vector>
#include "bytecode/bytecode_writer.hpp"
#include "lexer.h"
#include "ast/ast.hpp"
#include "bytecode/compile_bytecode.hpp"
using std::string;
using std::vector;
class compiler
{
private:
/* data */
public:
compiler()
{
}
~c... | 22.702703 | 64 | 0.616667 | dicarne |
2c09e4039f1ed10e8bfc93e8db76f13eef40c184 | 15,861 | hpp | C++ | src/impl/Kokkos_Sparse_impl_add.hpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | src/impl/Kokkos_Sparse_impl_add.hpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | src/impl/Kokkos_Sparse_impl_add.hpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | /*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... | 35.56278 | 78 | 0.61213 | crtrott |
2c0db21afe8de686119196dcb6d5b8367d4dd4c9 | 997 | cpp | C++ | src/Random/Random.cpp | bbkane/Sandbox | 848030da315045888fd8542ddee49b929fa2e64a | [
"Unlicense"
] | null | null | null | src/Random/Random.cpp | bbkane/Sandbox | 848030da315045888fd8542ddee49b929fa2e64a | [
"Unlicense"
] | null | null | null | src/Random/Random.cpp | bbkane/Sandbox | 848030da315045888fd8542ddee49b929fa2e64a | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <string>
#include <map>
#include <random>
#include <cmath>
int main()
{
std::cout << "Rand Max: "<< RAND_MAX << std::endl;
// Seed with a real random value, if available
std::random_device rd;
// Choose a random mean between 1 and 6
std::default_rand... | 29.323529 | 78 | 0.582748 | bbkane |
2c1fc3c8241a10505721321fc93786e2c7629430 | 1,931 | cpp | C++ | tests/ini/test_ini.cpp | mundak/gede | 5f175dffbeba3edd2d19a645e45d194d706616a4 | [
"BSD-2-Clause"
] | null | null | null | tests/ini/test_ini.cpp | mundak/gede | 5f175dffbeba3edd2d19a645e45d194d706616a4 | [
"BSD-2-Clause"
] | null | null | null | tests/ini/test_ini.cpp | mundak/gede | 5f175dffbeba3edd2d19a645e45d194d706616a4 | [
"BSD-2-Clause"
] | null | null | null | #include <assert.h>
#include "../../src/ini.h"
#include <unistd.h>
#include <stdio.h>
#define TEST_INI_FILENAME "test.ini"
void test_verify_(int lineNo, int t, const char *testStr)
{
if(!t)
{
fprintf(stderr, "Test failed L%d: '%s'\n", lineNo, testStr);
exit(1);
}
}
#define test_verify(t... | 22.988095 | 79 | 0.640083 | mundak |
2c22b4d112f65938d93e9449286e0276f08a1c59 | 1,811 | cpp | C++ | src/Level.cpp | LucidSigma/Console-Maze-Game | d34e45b8d24cafd59925ff37055e9c21f8df0557 | [
"MIT"
] | null | null | null | src/Level.cpp | LucidSigma/Console-Maze-Game | d34e45b8d24cafd59925ff37055e9c21f8df0557 | [
"MIT"
] | null | null | null | src/Level.cpp | LucidSigma/Console-Maze-Game | d34e45b8d24cafd59925ff37055e9c21f8df0557 | [
"MIT"
] | null | null | null | #include "Level.h"
#include <fstream>
#include <iostream>
#include <stdexcept>
extern void ClearConsole();
void Level::LoadFile(const char* fileName)
{
std::ifstream levelFile(fileName);
bool validFile = false;
while (!validFile)
{
try
{
if (!levelFile.is_open())
{
throw std::invalid_argument("Inv... | 16.463636 | 101 | 0.624517 | LucidSigma |
2c249a6e40482b56ec56dac73416a943c5a4f7e2 | 398 | hpp | C++ | include/Projectile.hpp | WSeegers/TerminalShoter | 347c9c2296bb128e8f938c6c835b28e6bb5c1195 | [
"MIT"
] | null | null | null | include/Projectile.hpp | WSeegers/TerminalShoter | 347c9c2296bb128e8f938c6c835b28e6bb5c1195 | [
"MIT"
] | 32 | 2019-06-08T15:42:12.000Z | 2019-06-16T19:30:10.000Z | include/Projectile.hpp | WSeegers/TerminalShoter | 347c9c2296bb128e8f938c6c835b28e6bb5c1195 | [
"MIT"
] | null | null | null | #ifndef PROJECTILE_HPP
#define PROJECTILE_HPP
#include "Mob.hpp"
#include "Body.hpp"
#include "IKillable.hpp"
class Projectile : public Mob, public Body, public IKillable
{
public:
Projectile(const Vec2 &position,
const Vec2 &velocity,
const Body &body);
Projectile(Projectile &other);
~Projectile();
... | 16.583333 | 60 | 0.718593 | WSeegers |
2c249fe2ab43eaf18783a707fe9587643693a20d | 2,464 | cpp | C++ | src/3rd Party Controls/S309/S309HotKey 1.3/S309HotKey 1.3/S309HotKeyPpg.cpp | nsbasic-archive/NS-Basic-for-WinCE | 93e13783931a149d2c89e02a590f3249d294d8c3 | [
"MIT"
] | 5 | 2021-06-18T21:20:32.000Z | 2022-02-25T00:00:32.000Z | src/3rd Party Controls/S309/S309HotKey 1.3/S309HotKey 1.3/S309HotKeyPpg.cpp | nsbasic-archive/NS-Basic-for-WinCE | 93e13783931a149d2c89e02a590f3249d294d8c3 | [
"MIT"
] | null | null | null | src/3rd Party Controls/S309/S309HotKey 1.3/S309HotKey 1.3/S309HotKeyPpg.cpp | nsbasic-archive/NS-Basic-for-WinCE | 93e13783931a149d2c89e02a590f3249d294d8c3 | [
"MIT"
] | 2 | 2021-07-20T05:38:28.000Z | 2021-09-25T02:00:10.000Z | // S309HotKeyPpg.cpp : Implementation of the CS309HotKeyPropPage property page class.
#include "stdafx.h"
#include "S309HotKey.h"
#include "S309HotKeyPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CS309HotKeyPropPage, COlePrope... | 32 | 86 | 0.612419 | nsbasic-archive |
2c24faf3e35a57b9e9b9c27886b7316b87b96342 | 645 | hpp | C++ | game-lib/backend/win_common/cpp/callSafely.hpp | kgrzywocz/league_of_steel | 19e0409d965d2109dfbfc6b7df06141d1d2a3afd | [
"BSD-3-Clause"
] | 6 | 2020-02-05T17:59:00.000Z | 2021-06-14T13:25:34.000Z | game-lib/backend/win_common/cpp/callSafely.hpp | kgrzywocz/league_of_steel | 19e0409d965d2109dfbfc6b7df06141d1d2a3afd | [
"BSD-3-Clause"
] | 8 | 2020-02-05T17:53:20.000Z | 2020-07-20T08:19:04.000Z | game-lib/backend/win_common/cpp/callSafely.hpp | kgrzywocz/league_of_steel | 19e0409d965d2109dfbfc6b7df06141d1d2a3afd | [
"BSD-3-Clause"
] | 1 | 2020-01-18T22:25:57.000Z | 2020-01-18T22:25:57.000Z | #pragma once
#include <typeinfo>
#include <exception>
#include <functional>
template <typename T>
T callSafely(std::function<T()> cpp_fun) throw()
{
try
{
return cpp_fun();
}
catch (std::exception &e)
{
printf("%s\n", e.what());
}
catch (...)
{
printf("lollib ot... | 18.428571 | 93 | 0.570543 | kgrzywocz |
2c2611a39674c6e97c3d8803b7a9b67b191e6e46 | 5,736 | cpp | C++ | apps/constellation/main.cpp | AronVanAmmers/ledger | 5cf8b85e5ee42957d9d38fd76b2b3ead0f061954 | [
"Apache-2.0"
] | 1 | 2019-05-15T17:23:08.000Z | 2019-05-15T17:23:08.000Z | apps/constellation/main.cpp | AronVanAmmers/ledger | 5cf8b85e5ee42957d9d38fd76b2b3ead0f061954 | [
"Apache-2.0"
] | null | null | null | apps/constellation/main.cpp | AronVanAmmers/ledger | 5cf8b85e5ee42957d9d38fd76b2b3ead0f061954 | [
"Apache-2.0"
] | null | null | null | //------------------------------------------------------------------------------
//
// Copyright 2018 Fetch.AI 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 the License at
//
// ... | 29.56701 | 100 | 0.625 | AronVanAmmers |
2c2a1dc2892deb1742089782a2d8b37888701e88 | 542 | cpp | C++ | Codeforces/1000~1999/1300/C.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | 6 | 2018-12-30T06:16:54.000Z | 2022-03-23T08:03:33.000Z | Codeforces/1000~1999/1300/C.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | Codeforces/1000~1999/1300/C.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <cstring>
const int N = 1e5 + 51;
int n, a[N], cnt[233], ans = 0;
int main() {
scanf("%d", &n);
a[0] = -1;
for (int i = 1; i <= n; i++) {
scanf("%d", a + i);
for (int j = 0; j < 30; j++)
if ((a[i] >> j) & 1) cnt[j]++;
}
for (int i = 1; i <= n; i++) {
int l... | 21.68 | 56 | 0.424354 | tiger0132 |
2c2a344632236a3f4467339fddfbd44c058f2ffd | 187 | cpp | C++ | sympiler/ScheduleCompute.cpp | singam-sanjay/sympiler | abdee268dc18826bfd208fdf7a7b1a90c9a1f1fd | [
"MIT"
] | 30 | 2018-01-19T08:42:46.000Z | 2022-01-25T12:02:24.000Z | sympiler/ScheduleCompute.cpp | singam-sanjay/sympiler | abdee268dc18826bfd208fdf7a7b1a90c9a1f1fd | [
"MIT"
] | 1 | 2019-01-05T20:36:42.000Z | 2021-04-22T15:17:53.000Z | sympiler/ScheduleCompute.cpp | singam-sanjay/sympiler | abdee268dc18826bfd208fdf7a7b1a90c9a1f1fd | [
"MIT"
] | 13 | 2017-11-14T17:12:47.000Z | 2022-01-16T11:11:16.000Z | //
// Created by kazem on 3/16/16.
//
#include "ScheduleCompute.h"
namespace Sympiler {
namespace Internal {
void ScheduleCompute::visit(const Add *op){
//Do something here
}
}
}
| 11.6875 | 43 | 0.679144 | singam-sanjay |
2c2f0abb2f22bc498478fe2e7c014d97f29319e3 | 10,670 | cpp | C++ | src/matching/detail/rootblossom.cpp | dragoniye/bbpPairings | e7ac8352e41624c31904cadb587a0bd634718cb7 | [
"Apache-2.0"
] | null | null | null | src/matching/detail/rootblossom.cpp | dragoniye/bbpPairings | e7ac8352e41624c31904cadb587a0bd634718cb7 | [
"Apache-2.0"
] | null | null | null | src/matching/detail/rootblossom.cpp | dragoniye/bbpPairings | e7ac8352e41624c31904cadb587a0bd634718cb7 | [
"Apache-2.0"
] | null | null | null | #include <cassert>
#include <vector>
#include "../templateinstantiation.h"
#include "blossomimpl.h"
#include "graphsig.h"
#include "parentblossomimpl.h"
#include "rootblossomimpl.h"
#include "types.h"
#include "verteximpl.h"
namespace matching
{
namespace detail
{
/**
* Reorder the RootBlossom's linked ... | 34.419355 | 80 | 0.613402 | dragoniye |
2c3bc8f4328bc9d193f6c165da910db87ecfa2b7 | 166,758 | cpp | C++ | recipes-clp/clp/clp/src/CoinAbcBaseFactorization1.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | recipes-clp/clp/clp/src/CoinAbcBaseFactorization1.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | recipes-clp/clp/clp/src/CoinAbcBaseFactorization1.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | // Copyright (C) 2002, International Business Machines
// Corporation and others, Copyright (C) 2012, FasterCoin. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#ifdef ABC_JUST_ONE_FACTORIZATION
#include "CoinAbcCommonFactorization.hpp"
#define CoinAbcTypeFactorizati... | 35.233045 | 154 | 0.671614 | Justin790126 |
2c3e6be0cb0c18eca54747ea1905664094bf6721 | 716 | hpp | C++ | libraries/ArduinoJson/src/ArduinoJson/StringStorage/StringMover.hpp | cryptoteun/LNPoS | 96bc91da2b98aa9be6148eb069a515378218141e | [
"MIT"
] | 39 | 2021-03-11T03:53:59.000Z | 2022-03-24T17:34:15.000Z | libraries/ArduinoJson/src/ArduinoJson/StringStorage/StringMover.hpp | cryptoteun/LNPoS | 96bc91da2b98aa9be6148eb069a515378218141e | [
"MIT"
] | 7 | 2021-08-07T23:20:14.000Z | 2022-03-20T15:05:21.000Z | arduino/libraries/ArduinoJson/src/ArduinoJson/StringStorage/StringMover.hpp | y10/esp-sprinkler | 5b0260afc8a01c3cf21e87e9cbf7e65cbb6a7ed0 | [
"MIT"
] | 10 | 2021-08-11T13:47:36.000Z | 2022-03-26T02:41:45.000Z | // ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2021
// MIT License
#pragma once
#include <ArduinoJson/Namespace.hpp>
#include <ArduinoJson/Strings/StoragePolicy.hpp>
namespace ARDUINOJSON_NAMESPACE {
class StringMover {
public:
StringMover(char* ptr) : _writePtr(ptr) {}
void startString() ... | 16.651163 | 60 | 0.692737 | cryptoteun |
2c3e7324132c4fd79936ec35add64d5823ac8270 | 1,834 | hh | C++ | GeomPrimitives/inc/TubsParams.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2021-05-25T19:10:10.000Z | 2021-05-25T19:10:10.000Z | GeomPrimitives/inc/TubsParams.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | GeomPrimitives/inc/TubsParams.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | #ifndef GeomPrimitives_TubsParams_hh
#define GeomPrimitives_TubsParams_hh
//
// The parameters of a TUBS
//
// $Id: TubsParams.hh,v 1.3 2013/01/07 03:57:40 kutschke Exp $
// $Author: kutschke $
// $Date: 2013/01/07 03:57:40 $
//
// Original author Rob Kutschke
//
#include <cmath>
#include <ostream>
#include "boost/ar... | 22.096386 | 69 | 0.540349 | bonventre |
2c418152c4cc9ae46ef1abe87a6b5c0af824d126 | 6,247 | hpp | C++ | src/include/tmdesc/functional/invoke.hpp | Ariox41/tmdesc | 0a14a05d0e4740e2812c643cc7c7a494d882ac1f | [
"BSL-1.0"
] | 1 | 2022-03-21T08:41:57.000Z | 2022-03-21T08:41:57.000Z | src/include/tmdesc/functional/invoke.hpp | Ariox41/tmdesc | 0a14a05d0e4740e2812c643cc7c7a494d882ac1f | [
"BSL-1.0"
] | null | null | null | src/include/tmdesc/functional/invoke.hpp | Ariox41/tmdesc | 0a14a05d0e4740e2812c643cc7c7a494d882ac1f | [
"BSL-1.0"
] | null | null | null | // Copyright Victor Smirnov 2021
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
//
// The documentation can be found at the library's page:
// https://github.com/Ariox41/tmdesc
#pragma once
#include "../meta/void_t... | 50.788618 | 120 | 0.595966 | Ariox41 |
2c444c5dbcb9b606511b14d2f9c99116f3cfdbfa | 3,494 | cpp | C++ | external/mintomic/src/mintpack/threadsynchronizer.cpp | ehei1/orbit | f990a7f9abb7d330e93d0d20018a62869890f04e | [
"BSD-2-Clause"
] | 327 | 2015-01-02T19:25:13.000Z | 2022-03-07T21:25:48.000Z | external/mintomic/src/mintpack/threadsynchronizer.cpp | ehei1/orbit | f990a7f9abb7d330e93d0d20018a62869890f04e | [
"BSD-2-Clause"
] | 13 | 2015-01-14T23:35:43.000Z | 2016-02-07T16:13:18.000Z | external/mintomic/src/mintpack/threadsynchronizer.cpp | ehei1/orbit | f990a7f9abb7d330e93d0d20018a62869890f04e | [
"BSD-2-Clause"
] | 72 | 2015-01-01T11:11:23.000Z | 2021-12-28T06:52:10.000Z | #include <mintpack/threadsynchronizer.h>
#include <mintsystem/timer.h>
#include <mintomic/mintomic.h>
void* ThreadSynchronizer::threadStart(void* param)
{
ThreadInfo* info = (ThreadInfo*) param;
ThreadSynchronizer *synchronizer = info->parent;
int threadNum = (int) (info - synchronizer->m_threadInfos);
... | 30.12069 | 102 | 0.647396 | ehei1 |
2c4c74509657a02cf411f20169eec87100e00ed2 | 2,065 | cpp | C++ | aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationMaintenanceConfigurationDescription.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationMaintenanceConfigurationDescription.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationMaintenanceConfigurationDescription.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kinesisanalyticsv2/model/ApplicationMaintenanceConfigurationDescription.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using na... | 27.533333 | 126 | 0.824697 | perfectrecall |
2c52958fed62acffacc3110238e42dcd2570dfba | 9,433 | cpp | C++ | data-server/test/unittest/range_sql_unittest.cpp | gengdaomi/sharkstore | 1b490176846d2da98ceca07a69b6c35646567a28 | [
"Apache-2.0"
] | 1 | 2021-08-11T02:31:52.000Z | 2021-08-11T02:31:52.000Z | data-server/test/unittest/range_sql_unittest.cpp | gengdaomi/sharkstore | 1b490176846d2da98ceca07a69b6c35646567a28 | [
"Apache-2.0"
] | null | null | null | data-server/test/unittest/range_sql_unittest.cpp | gengdaomi/sharkstore | 1b490176846d2da98ceca07a69b6c35646567a28 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include "helper/range_test_fixture.h"
#include "helper/helper_util.h"
#include "helper/query_builder.h"
#include "helper/query_parser.h"
int main(int argc, char* argv[]) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
namespace {
using namespace sharkstore::test::... | 38.659836 | 92 | 0.613697 | gengdaomi |
2c532911cb8eb4787eb28c263ec93e14a6f587ce | 1,468 | cpp | C++ | sword_to_offer/Solution_16.cpp | fingthinking/nowcoder | 9a88a431cd682369a5b19eb4f1055480ccb3a81d | [
"Apache-2.0"
] | null | null | null | sword_to_offer/Solution_16.cpp | fingthinking/nowcoder | 9a88a431cd682369a5b19eb4f1055480ccb3a81d | [
"Apache-2.0"
] | null | null | null | sword_to_offer/Solution_16.cpp | fingthinking/nowcoder | 9a88a431cd682369a5b19eb4f1055480ccb3a81d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
struct ListNode {
int val;
struct ListNode *next;
ListNode(int x) :
val(x), next(NULL) {
}
};
class Solution {
public:
ListNode *Merge(ListNode *pHead1, ListNode *pHead2) {
// 归并排序
ListNode *pList = NULL; // 注意初始化
ListN... | 24.881356 | 57 | 0.367166 | fingthinking |
2c53a8a7dd884455bb0c9665a5e700a18bcb301a | 12,739 | cpp | C++ | libs/v-ez/Source/Core/Swapchain.cpp | apg360/VulkanKore | bbef5e14e4a8fd940da6b745ecec19cea64295fb | [
"MIT"
] | null | null | null | libs/v-ez/Source/Core/Swapchain.cpp | apg360/VulkanKore | bbef5e14e4a8fd940da6b745ecec19cea64295fb | [
"MIT"
] | null | null | null | libs/v-ez/Source/Core/Swapchain.cpp | apg360/VulkanKore | bbef5e14e4a8fd940da6b745ecec19cea64295fb | [
"MIT"
] | null | null | null | //
// Copyright (c) 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 rights
/... | 43.037162 | 171 | 0.690792 | apg360 |
2c59d062b3f4307852e9e2a65b3bdceeb303bebb | 4,425 | hpp | C++ | include/UnityEngine/Sprites/DataUtility.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/UnityEngine/Sprites/DataUtility.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/UnityEngine/Sprites/DataUtility.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Begin f... | 52.678571 | 169 | 0.72904 | Fernthedev |
2c5b17568310fbe0f4ae6abed95f39623e52a7aa | 2,649 | cpp | C++ | src/ripple/beast/core/CurrentThreadName.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 5 | 2019-01-23T04:36:03.000Z | 2020-02-04T07:10:39.000Z | src/ripple/beast/core/CurrentThreadName.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | null | null | null | src/ripple/beast/core/CurrentThreadName.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 2 | 2019-05-14T07:26:59.000Z | 2020-06-15T07:25:01.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//————————————————————————————————————————————————————————————————————————————————————————————————————————————————
/*
... | 18.65493 | 114 | 0.614194 | yinchengtsinghua |
2c5b26bc8420148e239d74092189ff2fbd0234bf | 1,580 | cc | C++ | cpp/leetcode/79.word-search.cc | liubang/laboratory | 747f239a123cd0c2e5eeba893b9a4d1536555b1e | [
"MIT"
] | 3 | 2021-03-03T13:18:23.000Z | 2022-02-09T07:49:24.000Z | cpp/leetcode/79.word-search.cc | liubang/laboratory | 747f239a123cd0c2e5eeba893b9a4d1536555b1e | [
"MIT"
] | null | null | null | cpp/leetcode/79.word-search.cc | liubang/laboratory | 747f239a123cd0c2e5eeba893b9a4d1536555b1e | [
"MIT"
] | 1 | 2021-03-29T15:21:42.000Z | 2021-03-29T15:21:42.000Z | #include <gtest/gtest.h>
#include <string>
#include <vector>
namespace {
class Solution {
public:
bool exist(std::vector<std::vector<char>>& board, const std::string& word) {
for (int i = 0; i < board.size(); ++i) {
for (int j = 0; j < board[0].size(); ++j) {
if (dfs(board, word, i, j, 0)) {
... | 22.253521 | 78 | 0.452532 | liubang |
2c5c752ebee173f1bbfb91c6784532260e2664ef | 83 | cpp | C++ | test/unit_tester.cpp | shze/biosim | e9e6d97de0ccf8067e1db15980eb600389fff6ca | [
"MIT"
] | null | null | null | test/unit_tester.cpp | shze/biosim | e9e6d97de0ccf8067e1db15980eb600389fff6ca | [
"MIT"
] | null | null | null | test/unit_tester.cpp | shze/biosim | e9e6d97de0ccf8067e1db15980eb600389fff6ca | [
"MIT"
] | null | null | null | #define BOOST_TEST_MODULE unit_tester
#include <boost/test/included/unit_test.hpp>
| 27.666667 | 44 | 0.843373 | shze |
2c5ee399badec7d5705ede7daca00aaa94895387 | 3,404 | cpp | C++ | src/base/debug_utils.cpp | Take-A-Byte/buildcache | d97c536757fbba68b34908feb4a46cd7432d1df2 | [
"Zlib"
] | 160 | 2018-04-18T06:56:42.000Z | 2022-03-16T20:27:16.000Z | src/base/debug_utils.cpp | Take-A-Byte/buildcache | d97c536757fbba68b34908feb4a46cd7432d1df2 | [
"Zlib"
] | 159 | 2018-04-09T10:57:43.000Z | 2022-03-16T17:05:24.000Z | src/base/debug_utils.cpp | Take-A-Byte/buildcache | d97c536757fbba68b34908feb4a46cd7432d1df2 | [
"Zlib"
] | 33 | 2019-08-06T16:12:06.000Z | 2021-12-22T11:38:54.000Z | //--------------------------------------------------------------------------------------------------
// Copyright (c) 2018 Marcus Geelnard
//
// This software is provided 'as-is', without any express or implied warranty. In no event will the
// authors be held liable for any damages arising from the use of this softwar... | 28.605042 | 100 | 0.644242 | Take-A-Byte |
2c6236adc93faffbbdb28ea3042668a4f3830785 | 916 | cpp | C++ | schoolwork/particle-system/code/FullEngine/3dbasics/Triangle.cpp | Benjins/CCSPage | af301acbf78c7f94c5afbe0604b59fa08f8fd259 | [
"MIT"
] | null | null | null | schoolwork/particle-system/code/FullEngine/3dbasics/Triangle.cpp | Benjins/CCSPage | af301acbf78c7f94c5afbe0604b59fa08f8fd259 | [
"MIT"
] | null | null | null | schoolwork/particle-system/code/FullEngine/3dbasics/Triangle.cpp | Benjins/CCSPage | af301acbf78c7f94c5afbe0604b59fa08f8fd259 | [
"MIT"
] | null | null | null | /*
This is the Triangle source file for the 3dbasics program, which provides simple tools
to represent and compute a 3D environment.
Author: Benji Smith, 2013
Licensed under the GNU GPL v3
Full License Text found in LICENSE file
*/
#include "Triangle.h"
Triangle::Triangle(){
point0 = Vector3(0,0,0);
point1 = Vecto... | 22.9 | 91 | 0.724891 | Benjins |
2c693f4e79b03476290b429f43965bb5544ade96 | 1,114 | cpp | C++ | Binary Search/code_2.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 27 | 2019-01-31T10:22:29.000Z | 2021-08-29T08:25:12.000Z | Binary Search/code_2.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 6 | 2020-09-30T19:01:49.000Z | 2020-12-17T15:10:54.000Z | Binary Search/code_2.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 27 | 2019-09-21T14:19:32.000Z | 2021-09-15T03:06:41.000Z | //
// main.cpp
// Algorithm
//
// Created by Mohd Shoaib Rayeen on 28/10/18.
// Copyright © 2018 Shoaib Rayeen. All rights reserved.
//
#include <iostream>
#include <ctime>
using namespace std;
int getRandom(int x, int y) {
srand(time(NULL));
return (x + rand() % (y-x+1));
}
int binarySearch(int* ar... | 20.62963 | 57 | 0.5 | Jatin-Goyal5 |
ef1c4e15fca2d43708795339fabdc7e08c654fb3 | 2,565 | cpp | C++ | Adonis/src/Adonis/Eventsystem/EventManager.cpp | tiefseeudo/Vacuity | 1d8ef60c45b433858725679700ceb42c02cd70d3 | [
"Apache-2.0"
] | 2 | 2019-01-07T20:18:35.000Z | 2019-06-10T12:52:10.000Z | Adonis/src/Adonis/Eventsystem/EventManager.cpp | tiefseeudo/Adonis | 1d8ef60c45b433858725679700ceb42c02cd70d3 | [
"Apache-2.0"
] | null | null | null | Adonis/src/Adonis/Eventsystem/EventManager.cpp | tiefseeudo/Adonis | 1d8ef60c45b433858725679700ceb42c02cd70d3 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "EventManager.h"
#include "Adonis/Log.h"
namespace Adonis {
std::vector<event_ptr> EventManager::s_queue = std::vector<event_ptr>();
std::map<Event::evID, std::vector<std::pair<size_t, event_handler>>> EventManager::s_subscriptions = std::map<Event::evID, std::vector<std::pair<size_t, ev... | 34.2 | 174 | 0.684211 | tiefseeudo |
ef1feb15a292fc7e4e37d276d5c321d48c65fcdf | 4,233 | cc | C++ | gazebo/physics/dart/DARTBallJoint.cc | tommy91/Gazebo-Ardupilot | 03ff6d3e6787eddaf650a681adb56dc06cf82294 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2018-07-17T00:17:13.000Z | 2020-05-26T08:39:25.000Z | gazebo/physics/dart/DARTBallJoint.cc | tommy91/Gazebo-Ardupilot | 03ff6d3e6787eddaf650a681adb56dc06cf82294 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-02-03T18:32:35.000Z | 2022-02-03T18:32:35.000Z | gazebo/physics/dart/DARTBallJoint.cc | mingfeisun/gazebo | f3eae789c738f040b8fb27c2dc16dc4c06f2495c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2014 Open Source Robotics Foundation
*
* 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 appl... | 30.453237 | 80 | 0.574533 | tommy91 |
ef2107144a21851b20fabbe2afbf2d1a66a2a39a | 1,583 | cpp | C++ | src/mainlib/audio/AudioProcessingThread.cpp | priera/aixa | faa5d9cd99fcec47703f2b82a64b465dbc4fd3bc | [
"MIT"
] | null | null | null | src/mainlib/audio/AudioProcessingThread.cpp | priera/aixa | faa5d9cd99fcec47703f2b82a64b465dbc4fd3bc | [
"MIT"
] | 3 | 2021-05-12T08:45:11.000Z | 2021-05-12T09:09:25.000Z | src/mainlib/audio/AudioProcessingThread.cpp | priera/aixa | faa5d9cd99fcec47703f2b82a64b465dbc4fd3bc | [
"MIT"
] | null | null | null | #include "AudioProcessingThread.h"
#include <iostream>
AudioProcessingThread::AudioProcessingThread(
QAudioFormat format,
std::shared_ptr<SamplesRing> samplesRing,
std::unique_ptr<VolumeManager> volumeManager,
std::unique_ptr<aixa::math::SpectrogramComputer> spectrogramComputer) :
QThread(),
f... | 38.609756 | 103 | 0.696147 | priera |
ef2133a8461c5162e58778e2f3fe59ff1fb0cded | 209 | hpp | C++ | include/SingleNumberII.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/SingleNumberII.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/SingleNumberII.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef SINGLE_NUMBER_II_HPP_
#define SINGLE_NUMBER_II_HPP_
#include <vector>
using namespace std;
class SingleNumberII {
public:
int singleNumber(vector<int> &nums);
};
#endif // SINGLE_NUMBER_II_HPP_ | 16.076923 | 40 | 0.779904 | yanzhe-chen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.