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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
853b0a18ec8a70ae2b7be35776b998dea2b8c39c | 5,139 | cpp | C++ | Applied/CCore/src/FileName.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | Applied/CCore/src/FileName.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | Applied/CCore/src/FileName.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | /* FileName.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 4.01
//
// Tag: Applied
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// Copyrig... | 17.13 | 90 | 0.526562 | SergeyStrukov |
853cd933cd66cd7622490591b70fa693c08ff795 | 558 | hpp | C++ | src/Jogo/GUI/EventHandler.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/GUI/EventHandler.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/GUI/EventHandler.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | //
// EventHandler.hpp
// Jogo-SFML
//
// Created by Matheus Kunnen Ledesma on 11/5/19.
// Copyright © 2019 Matheus Kunnen Ledesma. All rights reserved.
//
#ifndef EventHandler_hpp
#define EventHandler_hpp
#include "base_gui_includes.hpp"
namespace GUI {
namespace Events {
enum Type {CLICK, HOVER, ENABLED, ... | 18 | 65 | 0.695341 | MatheusKunnen |
853d0f79142828a35817ae677b9c4030ca469793 | 464 | cpp | C++ | src/keycreate/keycreate.cpp | fusor-io/fusor-state-machine | d52f96e7067aecb19088c9d59c57bdb7cba55504 | [
"MIT"
] | null | null | null | src/keycreate/keycreate.cpp | fusor-io/fusor-state-machine | d52f96e7067aecb19088c9d59c57bdb7cba55504 | [
"MIT"
] | null | null | null | src/keycreate/keycreate.cpp | fusor-io/fusor-state-machine | d52f96e7067aecb19088c9d59c57bdb7cba55504 | [
"MIT"
] | null | null | null | #include <string.h>
#include "keycreate.h"
char *KeyCreate::withScope(const char *scopeId, const char *name)
{
strncpy(_buffer, scopeId, MAX_VAR_NAME_LEN - 1);
strncat(_buffer, ".", MAX_VAR_NAME_LEN - strlen(_buffer) - 1);
strncat(_buffer, name, MAX_VAR_NAME_LEN - strlen(_buffer) - 1);
return _buffer;
... | 25.777778 | 67 | 0.678879 | fusor-io |
8547fcd6076b24448a7bec1e939241764501064f | 2,097 | cpp | C++ | rendering/Pipeline.cpp | broecker/gfx1993 | d0390cdf6bd7b864dd86c99fa4d79cb31c00fa2f | [
"MIT"
] | null | null | null | rendering/Pipeline.cpp | broecker/gfx1993 | d0390cdf6bd7b864dd86c99fa4d79cb31c00fa2f | [
"MIT"
] | null | null | null | rendering/Pipeline.cpp | broecker/gfx1993 | d0390cdf6bd7b864dd86c99fa4d79cb31c00fa2f | [
"MIT"
] | null | null | null | #include "Pipeline.h"
#include <glm/glm.hpp>
using glm::vec4;
namespace render {
VertexOut &&lerp(const VertexOut &a, const VertexOut &b, float d) {
VertexOut result;
result.clipPosition = glm::mix(a.clipPosition, b.clipPosition, d);
result.worldPosition = glm::mix(a.worldPosition, b.worldPosition, d);
resul... | 32.261538 | 77 | 0.679542 | broecker |
854e2d0eada09c5c96b778e9d74865f6e0a55284 | 848 | cpp | C++ | Source/MapEditorModule/DetailsCustomisation/MapActorDetailCustomization.cpp | benoitestival/MapModuleEditor | 3a7d72d0dc3761bd61f19df1e5af46081a791356 | [
"MIT"
] | null | null | null | Source/MapEditorModule/DetailsCustomisation/MapActorDetailCustomization.cpp | benoitestival/MapModuleEditor | 3a7d72d0dc3761bd61f19df1e5af46081a791356 | [
"MIT"
] | null | null | null | Source/MapEditorModule/DetailsCustomisation/MapActorDetailCustomization.cpp | benoitestival/MapModuleEditor | 3a7d72d0dc3761bd61f19df1e5af46081a791356 | [
"MIT"
] | 1 | 2021-07-07T09:22:28.000Z | 2021-07-07T09:22:28.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "MapActorDetailCustomization.h"
#include "Editor/PropertyEditor/Public/PropertyEditorModule.h"
#include "MapGenerator/MapActor.h"
#include "Modules/ModuleManager.h"
TSharedRef<IDetailCustomization> MapActorDetailCustomization::M... | 33.92 | 147 | 0.837264 | benoitestival |
8556297f0b4422ad12dc45a3b3f36a85b70e6142 | 801 | hpp | C++ | lib/index.hpp | cirossmonteiro/tensor | 6ece78825535188fba6dbe62ae4be0521381c026 | [
"Unlicense"
] | 1 | 2019-03-31T05:23:20.000Z | 2019-03-31T05:23:20.000Z | lib/index.hpp | cirossmonteiro/tensor | 6ece78825535188fba6dbe62ae4be0521381c026 | [
"Unlicense"
] | null | null | null | lib/index.hpp | cirossmonteiro/tensor | 6ece78825535188fba6dbe62ae4be0521381c026 | [
"Unlicense"
] | null | null | null | #pragma once
#ifndef INDEX_HPP
#define INDEX_HPP
#include <cstddef>
#include <iostream>
using namespace std;
class Index {
unsigned int size = 0;
unsigned int *values = NULL;
public:
~Index(); // done
Index(); // to do
Index(unsigned int new_size); // done
Index(unsigned int new_size, unsigned in... | 26.7 | 67 | 0.649189 | cirossmonteiro |
85563c3c4cf38752082c149c6ad400bbc57b34db | 11,166 | hpp | C++ | src/mirrage/utils/include/mirrage/utils/ranges.hpp | lowkey42/mirrage | 2527537989a548062d0bbca8370d063fc6b81a18 | [
"MIT"
] | 14 | 2017-10-26T08:45:54.000Z | 2021-04-06T11:44:17.000Z | src/mirrage/utils/include/mirrage/utils/ranges.hpp | lowkey42/mirrage | 2527537989a548062d0bbca8370d063fc6b81a18 | [
"MIT"
] | 17 | 2017-10-09T20:11:58.000Z | 2018-11-08T22:05:14.000Z | src/mirrage/utils/include/mirrage/utils/ranges.hpp | lowkey42/mirrage | 2527537989a548062d0bbca8370d063fc6b81a18 | [
"MIT"
] | 1 | 2018-09-26T23:10:06.000Z | 2018-09-26T23:10:06.000Z | /** simple wrappers for iterator pairs ***************************************
* *
* Copyright (c) 2018 Florian Oetke *
* This file is distributed under the MIT License *
* ... | 29.307087 | 104 | 0.632814 | lowkey42 |
855a6cbddf47fbd3cfde60a54ae772f0997434e7 | 5,516 | hpp | C++ | library/src/main/jni/openslmediaplayer/include/oslmp/OpenSLMediaPlayerContext.hpp | cirnoftw/android-openslmediaplayer | 6b363282dd0ac19bcb4e8ce52a4cb7bf35c58583 | [
"Apache-2.0"
] | 435 | 2015-01-16T14:36:07.000Z | 2022-02-11T02:32:19.000Z | library/src/main/jni/openslmediaplayer/include/oslmp/OpenSLMediaPlayerContext.hpp | cirnoftw/android-openslmediaplayer | 6b363282dd0ac19bcb4e8ce52a4cb7bf35c58583 | [
"Apache-2.0"
] | 59 | 2015-02-12T22:21:49.000Z | 2021-06-16T11:48:15.000Z | library/src/main/jni/openslmediaplayer/include/oslmp/OpenSLMediaPlayerContext.hpp | cirnoftw/android-openslmediaplayer | 6b363282dd0ac19bcb4e8ce52a4cb7bf35c58583 | [
"Apache-2.0"
] | 104 | 2015-01-16T14:36:07.000Z | 2021-05-24T03:32:54.000Z | //
// Copyright (C) 2014 Haruki Hasegawa
//
// 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 ap... | 42.430769 | 120 | 0.687999 | cirnoftw |
855eff19f12f55dbac9886aa25d8181539af2efe | 3,220 | cpp | C++ | Container.cpp | nirry78/codegen | 9c538533ea899c8e9bb4a5f2f0851c0680708c82 | [
"MIT"
] | null | null | null | Container.cpp | nirry78/codegen | 9c538533ea899c8e9bb4a5f2f0851c0680708c82 | [
"MIT"
] | null | null | null | Container.cpp | nirry78/codegen | 9c538533ea899c8e9bb4a5f2f0851c0680708c82 | [
"MIT"
] | null | null | null | #include "Container.h"
Container::Container(json& object):
mFieldCount(0)
{
for (auto& [key, value] : object.items())
{
if (!key.compare("name"))
{
mName = value.get<std::string>();
LOGD(" Name: %s\n", mName.c_str());
}
else if (!key.compare("param... | 19.634146 | 87 | 0.476708 | nirry78 |
856056ee5d6517a7e2eff6c71d9352575e1caebb | 38,794 | cpp | C++ | SerialPrograms/Source/NintendoSwitch/TestProgramSwitch.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | SerialPrograms/Source/NintendoSwitch/TestProgramSwitch.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | SerialPrograms/Source/NintendoSwitch/TestProgramSwitch.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | /* Test Program (Switch)
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include <cmath>
//#include <QSystemTrayIcon>
#include <QProcess>
#include "Common/Cpp/Exceptions.h"
#include "Common/Cpp/PrettyPrint.h"
#include "Common/Cpp/AlignedVector.h"
#include "Common/Cpp/SIMDDebuggers... | 31.134831 | 127 | 0.6617 | BlizzardHero |
856472542cd47e4ec940c97e2ba7719c79562fe7 | 1,484 | cc | C++ | CodeChef/SHORT/COOK65/Problem B/B.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | CodeChef/SHORT/COOK65/Problem B/B.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | CodeChef/SHORT/COOK65/Problem B/B.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include <bits/stdc++.h>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define se second
#define pb(x) push_back(x)
#define mp(x,y) make_pair(x,y)
#define LET(x, a) __typeof(a) x(a)
#define foreach(it, v) for(LET(it, v.begin()); it != v... | 20.328767 | 100 | 0.557951 | VastoLorde95 |
8566a3fc64a064df90c9167e4d1799fd8b24e576 | 768 | cpp | C++ | Topics/2015_05_03/quiz.cpp | TelerikAcademy/C-Beginner | a4d5a8beb870da910f74da41362b02f0d754ee51 | [
"MIT"
] | null | null | null | Topics/2015_05_03/quiz.cpp | TelerikAcademy/C-Beginner | a4d5a8beb870da910f74da41362b02f0d754ee51 | [
"MIT"
] | null | null | null | Topics/2015_05_03/quiz.cpp | TelerikAcademy/C-Beginner | a4d5a8beb870da910f74da41362b02f0d754ee51 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
bool is_prime(long long a){
long long x=sqrt(a), i;
if (a%2==0){
if (a==2) {return true;}
else {return false;}
}
for (i=3; i<=x; i=i+2){
if (a%i==0) {return false;}
}
return true;
}
int main () {
long long n,m,i,j,brc... | 18.285714 | 52 | 0.451823 | TelerikAcademy |
85676711a5e512403a8f0422642f1b0912792d53 | 1,045 | cpp | C++ | 500 problems pepcoding/Subarray with given sum.cpp | shikhar8434/OJ-problems | 7e787b41fd8b6342f73ee59066e2a324608c511d | [
"MIT"
] | 2 | 2020-10-13T12:37:15.000Z | 2020-10-28T14:29:15.000Z | 500 problems pepcoding/Subarray with given sum.cpp | shikhar8434/OJ-problems | 7e787b41fd8b6342f73ee59066e2a324608c511d | [
"MIT"
] | null | null | null | 500 problems pepcoding/Subarray with given sum.cpp | shikhar8434/OJ-problems | 7e787b41fd8b6342f73ee59066e2a324608c511d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define ll long long int
#define vi vector<int>
#define vii vector<int, int>
#define vc vector<char>
#define vl vector<ll>
#define mod 1000000007
#define INF 1000000009
using namespace std;
int main()
... | 18.017241 | 43 | 0.42488 | shikhar8434 |
85677ce7bc7152934b8d1ae4e3bc98f3c6353c32 | 3,470 | hpp | C++ | include/Xyz/LineClipping.hpp | jebreimo/Xyz | 654e22412fc505c5f6a385992a6f5c7e6ab3cc3c | [
"BSD-2-Clause"
] | null | null | null | include/Xyz/LineClipping.hpp | jebreimo/Xyz | 654e22412fc505c5f6a385992a6f5c7e6ab3cc3c | [
"BSD-2-Clause"
] | null | null | null | include/Xyz/LineClipping.hpp | jebreimo/Xyz | 654e22412fc505c5f6a385992a6f5c7e6ab3cc3c | [
"BSD-2-Clause"
] | null | null | null | //****************************************************************************
// Copyright © 2017 Jan Erik Breimo. All rights reserved.
// Created by Jan Erik Breimo on 24.04.2017.
//
// This file is distributed under the BSD License.
// License text is included with the source distribution.
//************************... | 34.356436 | 78 | 0.52853 | jebreimo |
85696b81b51a00bf54ab18b733ba63df7b15bcd2 | 1,710 | hpp | C++ | include/put.hpp | Leonardo2718/btrio | 67941bc4a5b1d6bc637e3b1ffd75cdbcaddbdba7 | [
"BSL-1.0"
] | null | null | null | include/put.hpp | Leonardo2718/btrio | 67941bc4a5b1d6bc637e3b1ffd75cdbcaddbdba7 | [
"BSL-1.0"
] | null | null | null | include/put.hpp | Leonardo2718/btrio | 67941bc4a5b1d6bc637e3b1ffd75cdbcaddbdba7 | [
"BSL-1.0"
] | null | null | null | /**
* Copyright Leonardo Banderali 2017 - 2017.
* 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 PUT_HPP
#define PUT_HPP
#include "format.hpp"
#include "put_utils.hpp"
#include ... | 31.666667 | 130 | 0.580117 | Leonardo2718 |
856a124ab0f9a59e5777d742161ef3d253753311 | 2,143 | hpp | C++ | gearoenix/render/engine/gx-rnd-eng-configuration.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/render/engine/gx-rnd-eng-configuration.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/render/engine/gx-rnd-eng-configuration.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_RENDER_ENGINE_CONFIGURATION_HPP
#define GEAROENIX_RENDER_ENGINE_CONFIGURATION_HPP
#include "../../core/gx-cr-build-configuration.hpp"
#include "../../core/gx-cr-static.hpp"
#include "../../math/gx-math-numeric.hpp"
#include "../../system/gx-sys-log.hpp"
#include <cstdint>
namespace gearoenix::render:... | 43.734694 | 133 | 0.74475 | Hossein-Noroozpour |
856a8b2d450d1f93a9bdf07f813386f156422476 | 360 | cc | C++ | src/gb/utils/test.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | 3 | 2021-11-30T20:37:33.000Z | 2022-01-06T20:26:52.000Z | src/gb/utils/test.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | null | null | null | src/gb/utils/test.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | null | null | null | #include "types.h"
namespace {
/* Compile time test to verify that integers are at least 32-bits wide. */
using namespace gb;
constexpr uint BitCount() {
auto i{static_cast<uint>(-1)};
uint count{0};
while (i != 0) {
i >>= 1;
++count;
}
return count;
}
static_assert(BitCount() >... | 16.363636 | 74 | 0.594444 | jonatan-ekstrom |
85701f1cad53f89ee8392100a78788862b8f9e2e | 568 | cpp | C++ | mytools/asm/SymbolTable.cpp | kingnak/nand2tetris | 120be8f04251b88e519f1bac838c40fd4c1b68e1 | [
"MIT"
] | null | null | null | mytools/asm/SymbolTable.cpp | kingnak/nand2tetris | 120be8f04251b88e519f1bac838c40fd4c1b68e1 | [
"MIT"
] | null | null | null | mytools/asm/SymbolTable.cpp | kingnak/nand2tetris | 120be8f04251b88e519f1bac838c40fd4c1b68e1 | [
"MIT"
] | null | null | null | #include "SymbolTable.h"
using namespace std;
void SymbolTable::addFixedEntry(const string &symbol, int16_t address)
{
m_map.insert(make_pair(symbol, address));
}
int16_t SymbolTable::addVariableEntry(const std::string &symbol)
{
m_map.insert(make_pair(symbol, m_nextVariable));
return m_nextVariable++;
}
bool Sy... | 21.037037 | 70 | 0.742958 | kingnak |
8572d407a4dd363db5f244fdc0af278010b6e859 | 7,484 | hpp | C++ | src/v8bind/class.hpp | ayles/V8Bind | 1ed1bf8b87f9a1f52d510e4ece77f3ff17a944d1 | [
"MIT"
] | 1 | 2021-12-30T15:08:40.000Z | 2021-12-30T15:08:40.000Z | src/v8bind/class.hpp | ayles/V8Bind | 1ed1bf8b87f9a1f52d510e4ece77f3ff17a944d1 | [
"MIT"
] | 1 | 2020-02-05T21:52:17.000Z | 2020-02-07T19:21:37.000Z | src/v8bind/class.hpp | ayles/v8bind | 1ed1bf8b87f9a1f52d510e4ece77f3ff17a944d1 | [
"MIT"
] | null | null | null | //
// Created by selya on 01.09.2019.
//
#ifndef SANDWICH_V8B_CLASS_HPP
#define SANDWICH_V8B_CLASS_HPP
#include <v8bind/type_info.hpp>
#include <v8.h>
#include <unordered_map>
#include <type_traits>
#include <memory>
#include <vector>
#include <cstddef>
#include <tuple>
#define V8B_IMPL inline
namespace v8b {
cl... | 30.672131 | 107 | 0.685863 | ayles |
85750cdbde250c45b6e2d90232d5dc0ee76e96d3 | 97 | hpp | C++ | led-blink/src/main.hpp | ikapoz/stm32 | 9efc2a099f55bddaf85b68cc51fb6a31b48538b7 | [
"MIT"
] | null | null | null | led-blink/src/main.hpp | ikapoz/stm32 | 9efc2a099f55bddaf85b68cc51fb6a31b48538b7 | [
"MIT"
] | null | null | null | led-blink/src/main.hpp | ikapoz/stm32 | 9efc2a099f55bddaf85b68cc51fb6a31b48538b7 | [
"MIT"
] | null | null | null | #pragma once
#ifdef __cplusplus
extern "C" {
#endif
int app_main();
#ifdef __cplusplus
}
#endif | 9.7 | 18 | 0.721649 | ikapoz |
8577dbdb44873d3aeac351497f36cae3f4e7427f | 7,204 | cpp | C++ | build/moc/moc_QGeoMapReplyQGC.cpp | UNIST-ESCL/UNIST_GCS | f61f0c12bbb028869e4494f507ea8ab52c8c79c2 | [
"Apache-2.0"
] | 1 | 2018-11-07T06:10:53.000Z | 2018-11-07T06:10:53.000Z | build/moc/moc_QGeoMapReplyQGC.cpp | UNIST-ESCL/UNIST_GCS | f61f0c12bbb028869e4494f507ea8ab52c8c79c2 | [
"Apache-2.0"
] | null | null | null | build/moc/moc_QGeoMapReplyQGC.cpp | UNIST-ESCL/UNIST_GCS | f61f0c12bbb028869e4494f507ea8ab52c8c79c2 | [
"Apache-2.0"
] | 1 | 2018-11-07T06:10:47.000Z | 2018-11-07T06:10:47.000Z | /****************************************************************************
** Meta object code from reading C++ file 'QGeoMapReplyQGC.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.3)
**
** WARNING! All changes made in this file will be lost!
*****************************************************... | 37.520833 | 143 | 0.619933 | UNIST-ESCL |
8579f3e5972a232be71939234deb4ac789e9a895 | 2,938 | cpp | C++ | VEngine/src/VEngine/renderer/Camera.cpp | Parsif/VEngine | a31bdb1479c4dabe6a5eb808008600e736164180 | [
"MIT"
] | null | null | null | VEngine/src/VEngine/renderer/Camera.cpp | Parsif/VEngine | a31bdb1479c4dabe6a5eb808008600e736164180 | [
"MIT"
] | null | null | null | VEngine/src/VEngine/renderer/Camera.cpp | Parsif/VEngine | a31bdb1479c4dabe6a5eb808008600e736164180 | [
"MIT"
] | null | null | null | #include "precheader.h"
#include "Camera.h"
#include "events/Input.h"
#include "events/MouseEvents.h"
#include "events/WindowEvents.h"
namespace vengine
{
Camera::Camera(const float fov, const float near_z, const float far_z) :
m_fov(fov), m_near_z(near_z), m_far_z(far_z)
{
m_view = glm::lookAt(m_eye, m_target,... | 27.203704 | 110 | 0.711368 | Parsif |
857ae7cf007fc227368d641f38355a3595b44729 | 9,406 | cpp | C++ | Medusa/MedusaCore/Core/Siren/Schema/Type/SirenCustomClass.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 143 | 2015-11-18T01:06:03.000Z | 2022-03-30T03:08:54.000Z | Medusa/MedusaCore/Core/Siren/Schema/Type/SirenCustomClass.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 1 | 2019-10-23T13:00:40.000Z | 2019-10-23T13:00:40.000Z | Medusa/MedusaCore/Core/Siren/Schema/Type/SirenCustomClass.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 45 | 2015-11-18T01:17:59.000Z | 2022-03-05T12:29:45.000Z | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaCorePreCompiled.h"
#include "SirenCustomClass.h"
#include "Core/Log/Log.h"
#include "Core/Siren/Schema/SirenTextParser.h"
#include "Core/Siren/Schema/... | 20.995536 | 81 | 0.683606 | tony2u |
858156c4a69e019492ae396a919ada2eeb498a54 | 10,215 | cp | C++ | Win32/Sources/Application/Server/Dialogs/CNamespaceDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Win32/Sources/Application/Server/Dialogs/CNamespaceDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Win32/Sources/Application/Server/Dialogs/CNamespaceDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. 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
... | 26.671018 | 136 | 0.697112 | mulberry-mail |
3fecdd79de1733a32cee4b0aeeb25f3540d62d3d | 59 | hpp | C++ | common/gl.hpp | Legion-Engine/Test_GL | 43e08fd92d2a2a903beea45440f4b4e170d72c6d | [
"MIT"
] | null | null | null | common/gl.hpp | Legion-Engine/Test_GL | 43e08fd92d2a2a903beea45440f4b4e170d72c6d | [
"MIT"
] | null | null | null | common/gl.hpp | Legion-Engine/Test_GL | 43e08fd92d2a2a903beea45440f4b4e170d72c6d | [
"MIT"
] | null | null | null | #pragma once
#include <glad/glad.h>
#include <glfw/glfw3.h> | 19.666667 | 23 | 0.728814 | Legion-Engine |
3ff64f73d4f352d9cf6f49c55efff6685977e14e | 3,143 | hpp | C++ | include/abc/tagged_type.hpp | mabaro/abc | db636953f3438e6861458c0aa33642381bc4711d | [
"MIT"
] | null | null | null | include/abc/tagged_type.hpp | mabaro/abc | db636953f3438e6861458c0aa33642381bc4711d | [
"MIT"
] | 3 | 2020-10-18T00:06:28.000Z | 2020-10-18T00:10:14.000Z | include/abc/tagged_type.hpp | mabaro/abc | db636953f3438e6861458c0aa33642381bc4711d | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <type_traits>
namespace abc
{
template <typename T, typename TTag, int64_t DefaultValue>
class tagged_type
{
static_assert(std::is_trivial<T>::value, "Only trivial types are supported");
T m_value;
public:
using value_t = T;
using this_t = tagged_type<T... | 31.747475 | 92 | 0.620108 | mabaro |
3ff7fec602af276513c5a52036f5d5617a70dd3e | 3,451 | hpp | C++ | include/snd/misc.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | 18 | 2020-08-26T11:33:50.000Z | 2021-04-13T15:57:28.000Z | include/snd/misc.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | 1 | 2021-05-16T17:11:57.000Z | 2021-05-16T17:25:17.000Z | include/snd/misc.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | null | null | null | #pragma once
#ifndef _USE_MATH_DEFINES
# define _USE_MATH_DEFINES
#endif
#include <algorithm>
#include <cmath>
#pragma warning(push, 0)
#include <DSP/MLDSPOps.h>
#pragma warning(pop)
#include "convert.hpp"
namespace snd {
constexpr auto PI = 3.14159265358979f;
constexpr float DENORMAL_DC = 1e-25f;
inline void f... | 17.880829 | 90 | 0.616923 | colugomusic |
3ffb9128a689f3b9ddcb15655694c5b5e7f34cab | 666 | cc | C++ | chapter3/ex3-39.cc | guojing0/cpp-primer | b0e36982d1323395aaca9bd9be09f383c130b645 | [
"MIT"
] | 1 | 2015-03-15T00:35:51.000Z | 2015-03-15T00:35:51.000Z | chapter3/ex3-39.cc | guojing0/cpp-primer | b0e36982d1323395aaca9bd9be09f383c130b645 | [
"MIT"
] | null | null | null | chapter3/ex3-39.cc | guojing0/cpp-primer | b0e36982d1323395aaca9bd9be09f383c130b645 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main(int argc, char const *argv[])
{
string s1 = "Happy day", s2 = "Bad cat";
const char ch1[] = "Know yourself", ch2[] = "Know thyself";
if (s1 > s2) {
cout << "String s1 is larger.";
} else if (s2 < s1) {
... | 21.483871 | 63 | 0.509009 | guojing0 |
b203c07bc6768841c65461f3783e765da3896ea0 | 385 | cpp | C++ | lessons/03-loops/src/problem1_sol.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | lessons/03-loops/src/problem1_sol.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | lessons/03-loops/src/problem1_sol.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cstdlib>
int main(int argc, char** argv) {
if (argc != 2) {
std::cout << "Usage: " << argv[0] << " <number>\n";
return 1;
}
int nmax = atoi(argv[1]);
int sum_num = 0;
for (int i = 3; i < 1000; i++) {
if (i % 3 == 0 || i % 5 == 0) {
sum_num += i;
}
}
... | 16.041667 | 55 | 0.467532 | chemphys |
b204c5bc971170676d5d06fdf68655dbdae8aae5 | 2,119 | cpp | C++ | src/clock.cpp | JoakimLindbom/JLmod | d4ef1f0fd376492a32b229e054a63dcc32ea317f | [
"BSD-3-Clause"
] | 10 | 2018-01-10T20:29:22.000Z | 2020-07-06T21:23:02.000Z | src/clock.cpp | JoakimLindbom/vcvrack | d4ef1f0fd376492a32b229e054a63dcc32ea317f | [
"BSD-3-Clause"
] | 5 | 2018-02-25T13:57:19.000Z | 2020-04-01T16:07:41.000Z | src/clock.cpp | JoakimLindbom/vcvrack | d4ef1f0fd376492a32b229e054a63dcc32ea317f | [
"BSD-3-Clause"
] | null | null | null | #include "clock.hpp"
#include <functional>
Clock::Clock() {
reset();
}
void Clock::reset() {
step = -1.0;
}
bool Clock::isReset() {
return step == -1.0;
}
double Clock::getStep() {
return step;
}
void Clock::setSampleRate(double inSampleRate) {
sampleRate = inSampleRate; // TODO: Cascade to sub ... | 23.285714 | 123 | 0.577631 | JoakimLindbom |
b20538b53f06da71e3a0e4464c2f782d82060ba8 | 418 | cpp | C++ | app.cpp | retorillo/appveyor-playground | d30895cf7267bdd2083bde81b4e4cfc2ceede940 | [
"CC0-1.0"
] | null | null | null | app.cpp | retorillo/appveyor-playground | d30895cf7267bdd2083bde81b4e4cfc2ceede940 | [
"CC0-1.0"
] | null | null | null | app.cpp | retorillo/appveyor-playground | d30895cf7267bdd2083bde81b4e4cfc2ceede940 | [
"CC0-1.0"
] | null | null | null | #include "app.h"
int CALLBACK WinMain(HINSTANCE i, HINSTANCE p, LPSTR c, int n) {
auto foobar = combine(L"C:\\foo\\bar", L"..\\bar");
MessageBoxW(NULL, foobar.c_str(), L"test", MB_OK);
return foobar != L"C:\\foo\\bar";
}
std::wstring combine(std::wstring l, std::wstring r) {
WCHAR* b;
PathAllocCombine(l.c_st... | 27.866667 | 71 | 0.648325 | retorillo |
b2278b98545dec581081afdf28a8433cbab546af | 302 | hpp | C++ | src/cpp3ds/Graphics/CitroHelpers.hpp | cpp3ds/cpp3ds | 7813714776e2134bd75b9f3869ed142c1d4eeaaf | [
"MIT"
] | 98 | 2015-08-26T16:49:29.000Z | 2022-03-03T10:15:43.000Z | src/cpp3ds/Graphics/CitroHelpers.hpp | Naxann/cpp3ds | 1932e798306ec6d910c6a5b9e85e9d8f02fb815f | [
"MIT"
] | 10 | 2016-02-26T21:30:51.000Z | 2020-07-12T20:48:09.000Z | src/cpp3ds/Graphics/CitroHelpers.hpp | Naxann/cpp3ds | 1932e798306ec6d910c6a5b9e85e9d8f02fb815f | [
"MIT"
] | 15 | 2015-10-16T06:22:37.000Z | 2020-10-01T08:52:48.000Z | #pragma once
#include <citro3d.h>
void CitroInit(size_t commandBufferSize);
void CitroDestroy();
void CitroBindUniforms(shaderProgram_s* program);
void CitroUpdateMatrixStacks();
C3D_MtxStack* CitroGetProjectionMatrix();
C3D_MtxStack* CitroGetModelviewMatrix();
C3D_MtxStack* CitroGetTextureMatrix();
| 27.454545 | 49 | 0.831126 | cpp3ds |
b22d96ce16a46e20c9a9b9c05ea235799addebaa | 3,041 | cpp | C++ | common/test_libs/arduino_sim/ArduinoSim.cpp | sienna0127/VentilatorSoftware | 73e65d8b00c29617b64430cff921afa597096bf8 | [
"Apache-2.0"
] | null | null | null | common/test_libs/arduino_sim/ArduinoSim.cpp | sienna0127/VentilatorSoftware | 73e65d8b00c29617b64430cff921afa597096bf8 | [
"Apache-2.0"
] | null | null | null | common/test_libs/arduino_sim/ArduinoSim.cpp | sienna0127/VentilatorSoftware | 73e65d8b00c29617b64430cff921afa597096bf8 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2020, RespiraWorks
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 writing, software
d... | 30.108911 | 79 | 0.70832 | sienna0127 |
b23885ece11a149f98a639c53ec6a016954c6167 | 1,139 | cpp | C++ | codechef/BINIM2/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codechef/BINIM2/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codechef/BINIM2/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 21-10-2018 22:40:38
* solution_verdict: Accepted language: C++14
* run... | 30.783784 | 111 | 0.369622 | kzvd4729 |
b23c37009fd8fb21a79a37d2a980d31f16e19b66 | 3,835 | cpp | C++ | src/036_valid_sudoku.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | 1 | 2019-09-01T22:54:39.000Z | 2019-09-01T22:54:39.000Z | src/036_valid_sudoku.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | 6 | 2019-07-19T07:16:42.000Z | 2019-07-26T08:21:31.000Z | src/036_valid_sudoku.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | null | null | null |
/*
Valid Sudoku
URL: https://leetcode.com/problems/valid-sudoku
Tags: ['hash-table']
___
Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be
validated according to the following rules :
1. Each row must contain the digits `1-9` without repetition.
2. Each column must contain the digits `... | 30.19685 | 80 | 0.393481 | llife09 |
b23d918b6b8841b218baedbc00d97ead1298d0f9 | 191 | hpp | C++ | src/Input.hpp | RichardMarks/proto | 68fe7a635c946f7cfd5bbc41ab44ad38b9a48f01 | [
"MIT"
] | null | null | null | src/Input.hpp | RichardMarks/proto | 68fe7a635c946f7cfd5bbc41ab44ad38b9a48f01 | [
"MIT"
] | null | null | null | src/Input.hpp | RichardMarks/proto | 68fe7a635c946f7cfd5bbc41ab44ad38b9a48f01 | [
"MIT"
] | null | null | null | #ifndef INPUT_H
#define INPUT_H
namespace proto {
class Config;
class Input {
public:
Input(Config& config);
~Input();
};
} // !namespace proto
#endif // !INPUT_H
| 10.611111 | 28 | 0.602094 | RichardMarks |
b23e0884e156046a6e20dc29f642df205a4f990e | 888 | cpp | C++ | src/prod/src/api/wrappers/ComClientSettingsResult.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/api/wrappers/ComClientSettingsResult.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/api/wrappers/ComClientSettingsResult.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 26.909091 | 98 | 0.653153 | vishnuk007 |
b2402af98fb294e4e193cec4112358712acd635c | 54,548 | hpp | C++ | ch_frb_io.hpp | CHIMEFRB/ch_frb_io | 1c283cda329c16cd04cf79d9d520a2076f748c9d | [
"MIT"
] | null | null | null | ch_frb_io.hpp | CHIMEFRB/ch_frb_io | 1c283cda329c16cd04cf79d9d520a2076f748c9d | [
"MIT"
] | 17 | 2016-06-15T22:55:57.000Z | 2020-09-25T18:15:40.000Z | ch_frb_io.hpp | CHIMEFRB/ch_frb_io | 1c283cda329c16cd04cf79d9d520a2076f748c9d | [
"MIT"
] | 3 | 2017-01-12T11:42:19.000Z | 2019-01-14T23:54:44.000Z | #ifndef _CH_FRB_IO_HPP
#define _CH_FRB_IO_HPP
#if (__cplusplus < 201103) && !defined(__GXX_EXPERIMENTAL_CXX0X__)
#error "This source file needs to be compiled with C++11 support (g++ -std=c++11)"
#endif
#include <queue>
#include <string>
#include <vector>
#include <map>
#include <unordered_set>
#include <unordered_ma... | 44.240065 | 161 | 0.705507 | CHIMEFRB |
b240b483f53d28c2668fc46cb5c62b6ffad27663 | 1,886 | cpp | C++ | src/src/expr/evaluter_term.cpp | Yukikamome316/MineCode | 65ffbd06a05f09c11cbd43c4de934f97eaffca6d | [
"MIT"
] | 17 | 2020-12-07T10:58:03.000Z | 2021-09-10T05:49:38.000Z | src/src/expr/evaluter_term.cpp | Yukikamome316/MineCode | 65ffbd06a05f09c11cbd43c4de934f97eaffca6d | [
"MIT"
] | 2 | 2021-05-16T18:45:36.000Z | 2021-10-20T13:02:35.000Z | src/src/expr/evaluter_term.cpp | Yukikamome316/MineCode | 65ffbd06a05f09c11cbd43c4de934f97eaffca6d | [
"MIT"
] | 8 | 2021-01-11T09:11:21.000Z | 2021-09-02T17:52:46.000Z | #include <eval.h>
#include <parserCore.h>
#include <parserTypes.h>
#include <stmtProcessor.h>
#include <syntaxError.h>
#include <util.h>
using namespace parserTypes;
void eval::Term(parserCore *that, term obj, int dest) {
int offs = that->Asm->stack_offset;
struct offset {
enum Type { MUL, DIV, MOD };
Ty... | 25.835616 | 74 | 0.513256 | Yukikamome316 |
b24543063e7a8606e02d514248c669a3d9159efa | 3,344 | cpp | C++ | PhysicsTestbeds/Physics2d/Components/RigidBody2d.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | PhysicsTestbeds/Physics2d/Components/RigidBody2d.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | PhysicsTestbeds/Physics2d/Components/RigidBody2d.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | #include "Precompiled.hpp"
#include "RigidBody2d.hpp"
#include "Engine/Cog.hpp"
#include "Engine/Space.hpp"
#include "PhysicsSpace2d.hpp"
#include "Utilities/ZeroUtilities.hpp"
namespace Physics2d
{
//-------------------------------------------------------------------RigidBody2d
ZilchDefineType(RigidBody2d, builde... | 20.9 | 90 | 0.75299 | jodavis42 |
b24fdc9bd6f32d5eddd556105561518396f867f4 | 2,453 | cpp | C++ | src/world/csvr/Parser.cpp | desktopgame/ofxPlanet | fe364e83f4c0ec0f169df63ce989a88ae6328c07 | [
"BSD-2-Clause",
"MIT"
] | 3 | 2020-02-24T14:19:20.000Z | 2021-05-17T11:25:07.000Z | src/world/csvr/Parser.cpp | desktopgame/ofxPlanet | fe364e83f4c0ec0f169df63ce989a88ae6328c07 | [
"BSD-2-Clause",
"MIT"
] | 1 | 2020-02-25T09:20:34.000Z | 2020-02-25T09:38:49.000Z | src/world/csvr/Parser.cpp | desktopgame/ofxPlanet | fe364e83f4c0ec0f169df63ce989a88ae6328c07 | [
"BSD-2-Clause",
"MIT"
] | 1 | 2021-08-14T07:12:42.000Z | 2021-08-14T07:12:42.000Z | #include "parser.hpp"
#include <cctype>
#include <iostream>
#include <sstream>
#include <stdexcept>
namespace ofxPlanet {
namespace csvr {
Parser::Parser() : tables() {}
void Parser::parse(const std::string& source) {
int start = 0;
while (true) {
Table table;
int read ... | 33.148649 | 77 | 0.416633 | desktopgame |
b2506097ff0fe500e6be1b5f819e94c3a7b1d673 | 467 | cpp | C++ | C++/isPalindrome.cpp | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | 2 | 2020-04-08T17:57:43.000Z | 2021-11-07T09:11:51.000Z | C++/isPalindrome.cpp | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | null | null | null | C++/isPalindrome.cpp | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | 8 | 2018-03-13T18:20:26.000Z | 2022-03-09T19:48:11.000Z | // Time Complexity: O(n)
// Space Complexity: O(1)
class Solution {
public:
bool isPalindrome(int x) {
if(x < 0)
return false;
int d = 1;
for(; x / d >= 10 ; d *= 10);
for(; x > 0; x = (x % d) / 10, d /= 100) {
int q = x / d;... | 20.304348 | 54 | 0.329764 | xtt129 |
b250704696796f07757187ddd0f347e9fd3a5209 | 2,052 | hh | C++ | src/ui/win32/bindings/NumericUpDownBinding.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 71 | 2018-04-15T13:02:43.000Z | 2022-03-26T11:19:18.000Z | src/ui/win32/bindings/NumericUpDownBinding.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 309 | 2018-04-15T12:10:59.000Z | 2022-01-22T20:13:04.000Z | src/ui/win32/bindings/NumericUpDownBinding.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 17 | 2018-04-17T16:09:31.000Z | 2022-03-04T08:49:03.000Z | #ifndef RA_UI_WIN32_NUMERICUPDOWNBINDING_H
#define RA_UI_WIN32_NUMERICUPDOWNBINDING_H
#pragma once
#include "NumericTextBoxBinding.hh"
namespace ra {
namespace ui {
namespace win32 {
namespace bindings {
class NumericUpDownBinding : public NumericTextBoxBinding
{
public:
explicit NumericUpDownBinding(ViewModelBa... | 24.428571 | 86 | 0.63499 | Jamiras |
b25451f79ccd6a2b2420e0d7196676082dedbb56 | 362 | hpp | C++ | core/LinearActivation.hpp | CltKitakami/NeuralNetwork | 78f2ba1cc38b16d94c10341fe3c5afd8f684db7e | [
"MIT"
] | null | null | null | core/LinearActivation.hpp | CltKitakami/NeuralNetwork | 78f2ba1cc38b16d94c10341fe3c5afd8f684db7e | [
"MIT"
] | null | null | null | core/LinearActivation.hpp | CltKitakami/NeuralNetwork | 78f2ba1cc38b16d94c10341fe3c5afd8f684db7e | [
"MIT"
] | null | null | null | #ifndef _LINEARACTIVATION_HPP_
#define _LINEARACTIVATION_HPP_
#include "Activation.hpp"
namespace nn {
class LinearActivation : public Activation
{
public:
virtual ~LinearActivation() = default;
virtual void forward(MatrixType &) override {}
virtual void backward(MatrixType &x) override
{
x = MatrixType::One... | 14.48 | 47 | 0.729282 | CltKitakami |
b258a92d14a33205982860ce6fcfc512805b1cfa | 26,537 | cpp | C++ | Hardware/Vivado_HLS_IPs/Acceleration_Scheduler_SG_XDMA/acceleration_scheduler_sg_xdma.cpp | iscalab/PCIe_FPGA_Accel | bd601ac5b212583fd6329721ff21a857ae45a0d6 | [
"MIT"
] | 5 | 2018-12-11T03:17:17.000Z | 2021-11-17T06:30:50.000Z | Hardware/Vivado_HLS_IPs/Acceleration_Scheduler_SG_XDMA/acceleration_scheduler_sg_xdma.cpp | dbakoyiannis/PCIe_FPGA_Accel | 1980073afba12c0d3d6accb95066c591e428180a | [
"MIT"
] | null | null | null | Hardware/Vivado_HLS_IPs/Acceleration_Scheduler_SG_XDMA/acceleration_scheduler_sg_xdma.cpp | dbakoyiannis/PCIe_FPGA_Accel | 1980073afba12c0d3d6accb95066c591e428180a | [
"MIT"
] | 2 | 2021-04-04T08:47:03.000Z | 2021-04-27T12:32:48.000Z | /*******************************************************************************
* Filename: acceleration_scheduler_sg_xdma.cpp
* Author: Dimitrios Bakoyiannis <d.bakoyiannis@gmail.com>
* License:
*
* MIT License
*
* Copyright (c) [2018] [Dimitrios Bakoyiannis]
*
* Permission is hereby granted, free of charge, to... | 52.548515 | 187 | 0.703885 | iscalab |
b25f39b9c350db8114d85c4c171a568e8d87cdd3 | 5,936 | cpp | C++ | src/InterProcessCommunication/NamedPipeNetworkServer/main.cpp | SemenMartynov/SPbPU_SystemProgramming | 151f3de08fe7d0095ddd2e5b7a49e87c32f72b3e | [
"MIT"
] | null | null | null | src/InterProcessCommunication/NamedPipeNetworkServer/main.cpp | SemenMartynov/SPbPU_SystemProgramming | 151f3de08fe7d0095ddd2e5b7a49e87c32f72b3e | [
"MIT"
] | null | null | null | src/InterProcessCommunication/NamedPipeNetworkServer/main.cpp | SemenMartynov/SPbPU_SystemProgramming | 151f3de08fe7d0095ddd2e5b7a49e87c32f72b3e | [
"MIT"
] | null | null | null | #include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <tchar.h>
#include <strsafe.h>
#include "logger.h"
#define BUFSIZE 512
DWORD WINAPI InstanceThread(LPVOID);
int _tmain(int argc, _TCHAR* argv[]) {
//Init log
initlog(argv[0]);
_tprintf(_T("Server is started.\n\n"));
BOOL fCo... | 37.1 | 89 | 0.6656 | SemenMartynov |
b261584d02f89b87c0729209149505d5b65840ad | 13,157 | cpp | C++ | NextEngine/src/graphics/renderer/terrain.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 1 | 2021-09-10T18:19:16.000Z | 2021-09-10T18:19:16.000Z | NextEngine/src/graphics/renderer/terrain.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | null | null | null | NextEngine/src/graphics/renderer/terrain.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 2 | 2020-04-02T06:46:56.000Z | 2021-06-17T16:47:57.000Z | #include "core/profiler.h"
#include "ecs/ecs.h"
#include "graphics/renderer/terrain.h"
#include "graphics/assets/assets.h"
#include "graphics/assets/model.h"
#include "components/transform.h"
#include "components/terrain.h"
#include "components/camera.h"
#include "graphics/assets/material.h"
#include "graphics/renderer... | 43.566225 | 170 | 0.769628 | CompilerLuke |
b26527d03ec717ccb01c9a61e85e359f363b29ba | 6,146 | cpp | C++ | elem.cpp | soulofmachines/QtCue | 035148f32fa1ca08ded9eca2fa6810c235d4831c | [
"MIT"
] | null | null | null | elem.cpp | soulofmachines/QtCue | 035148f32fa1ca08ded9eca2fa6810c235d4831c | [
"MIT"
] | null | null | null | elem.cpp | soulofmachines/QtCue | 035148f32fa1ca08ded9eca2fa6810c235d4831c | [
"MIT"
] | null | null | null | #include "elem.hpp"
QComboBox *file_list() {
QStringList string = QStringList() << "BINARY" << "MOTOROLA"
<< "AIFF" << "WAVE" << "MP3";
QComboBox* combo = new QComboBox();
combo->addItems(string);
return combo;
}
QComboBox *track_list() {
QStringList string... | 30.884422 | 108 | 0.441263 | soulofmachines |
05d1ac22327335fe17703d3be4a530ea8bc67348 | 1,944 | hpp | C++ | test/examples/code/3rdparty/assimp/detail/ph.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | test/examples/code/3rdparty/assimp/detail/ph.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | test/examples/code/3rdparty/assimp/detail/ph.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright SOFT-ERG (Przemek Kuczmierczyk) 2016
All Rights Reserved.
THIS WORK CONTAINS TRADE SECRET
AND PROPRIETARY INFORMATION WHICH IS THE
PROPERTY OF SOFT-ERG (Przemek Kuczmierczyk)
AND IS SUBJECT TO LICENSE TERMS.
*/
// ---------------------------------------------------------... | 21.6 | 81 | 0.64249 | maikebing |
05d31ac2b37312671d2275ca84dd41fca9cdea6a | 445 | cc | C++ | src/main.cc | rsanchezm98/sudoku-solver | 4b7580105acb4dda50ca24c69be09f89826f39a4 | [
"MIT"
] | null | null | null | src/main.cc | rsanchezm98/sudoku-solver | 4b7580105acb4dda50ca24c69be09f89826f39a4 | [
"MIT"
] | null | null | null | src/main.cc | rsanchezm98/sudoku-solver | 4b7580105acb4dda50ca24c69be09f89826f39a4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "sudoku.hpp"
int main(int argc, char** argv)
{
if(argc < 2)
{
std::cout << "Please, rerun the program with a filename...\n";
return 0;
}
std::string filename = argv[1];
filename = "../sudoku_files/" + filename;
size_t table_size = ... | 22.25 | 70 | 0.58427 | rsanchezm98 |
05d487dc83be83fe591a9cb01fd315bc83ee3151 | 4,405 | hh | C++ | libsrc/pylith/friction/obsolete/StaticFriction.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 93 | 2015-01-08T16:41:22.000Z | 2022-02-25T13:40:02.000Z | libsrc/pylith/friction/obsolete/StaticFriction.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 277 | 2015-02-20T16:27:35.000Z | 2022-03-30T21:13:09.000Z | libsrc/pylith/friction/obsolete/StaticFriction.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 71 | 2015-03-24T12:11:08.000Z | 2022-03-03T04:26:02.000Z | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 30.804196 | 78 | 0.640863 | Grant-Block |
05e3e38e2b358720cf85efb9805fa60b9adc7b79 | 1,301 | cpp | C++ | CipherTools/PluginSupport/PIDocManager.cpp | kuustudio/CipherTools | d99e707eab0515424ebe3555bb15dfbdc1782575 | [
"MIT"
] | 2 | 2019-09-02T16:28:10.000Z | 2020-08-19T09:29:51.000Z | PluginSupport/PIDocManager.cpp | SurrealSky/CipherManager | b0b4f3e58d148ee285a279cea46171ef9ef6cb00 | [
"MIT"
] | null | null | null | PluginSupport/PIDocManager.cpp | SurrealSky/CipherManager | b0b4f3e58d148ee285a279cea46171ef9ef6cb00 | [
"MIT"
] | 1 | 2021-07-03T02:49:46.000Z | 2021-07-03T02:49:46.000Z | #include "stdafx.h"
#include "PIDocManager.h"
IMPLEMENT_DYNAMIC(CPIDocManager, CDocManager)
CPIDocManager::CPIDocManager(void)
{
}
CPIDocManager::~CPIDocManager(void)
{
}
#ifdef _DEBUG
void CPIDocManager::AssertValid() const
{
CDocManager::AssertValid();
}
void CPIDocManager::Dump(CDumpContext& dc) const
{
CDo... | 19.41791 | 83 | 0.730208 | kuustudio |
05edb2d789e67f3c9d902a64ab32b4664fc0b4f3 | 12,624 | cpp | C++ | AircraftDynamicsTestFramework/TrajectoryFromFile.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | AircraftDynamicsTestFramework/TrajectoryFromFile.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | AircraftDynamicsTestFramework/TrajectoryFromFile.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | // ****************************************************************************
// NOTICE
//
// This is the copyright work of The MITRE Corporation, and was produced
// for the U. S. Government under Contract Number DTFAWA-10-C-00080, and
// is subject to Federal Aviation Administration Acquisition Management
// System... | 27.503268 | 143 | 0.680925 | sbowman-mitre |
05ee5a8bee6a009cee9280c7b62d81e9d27a6228 | 1,436 | cpp | C++ | VideoScriptEditor/VideoScriptEditor.PreviewRenderer.Unmanaged/AviSynthEnvironment.cpp | danjoconnell/VideoScriptEditor | 1d836e0cbe6e5afc56bdeb17ff834da308d752b0 | [
"MIT"
] | null | null | null | VideoScriptEditor/VideoScriptEditor.PreviewRenderer.Unmanaged/AviSynthEnvironment.cpp | danjoconnell/VideoScriptEditor | 1d836e0cbe6e5afc56bdeb17ff834da308d752b0 | [
"MIT"
] | null | null | null | VideoScriptEditor/VideoScriptEditor.PreviewRenderer.Unmanaged/AviSynthEnvironment.cpp | danjoconnell/VideoScriptEditor | 1d836e0cbe6e5afc56bdeb17ff834da308d752b0 | [
"MIT"
] | 1 | 2021-02-04T16:43:57.000Z | 2021-02-04T16:43:57.000Z | #include "pch.h"
#include <string>
#include "AviSynthEnvironment.h"
#include <system_error>
namespace VideoScriptEditor::PreviewRenderer::Unmanaged
{
using namespace VideoScriptEditor::Unmanaged;
AviSynthEnvironment::AviSynthEnvironment() : AviSynthEnvironmentBase()
{
if (!CreateScriptEnvironment(... | 27.09434 | 128 | 0.638579 | danjoconnell |
05f2da41f5bd8713c9a218fa5c8d7d7a351847c1 | 3,876 | cpp | C++ | orbwebai/common/src/common.cpp | HungMingWu/ncnn_example | 6604eab8d76a5e49280e3f840847c84244c0fb2b | [
"MIT"
] | 1 | 2022-03-28T12:45:43.000Z | 2022-03-28T12:45:43.000Z | orbwebai/common/src/common.cpp | HungMingWu/ncnn_example | 6604eab8d76a5e49280e3f840847c84244c0fb2b | [
"MIT"
] | null | null | null | orbwebai/common/src/common.cpp | HungMingWu/ncnn_example | 6604eab8d76a5e49280e3f840847c84244c0fb2b | [
"MIT"
] | null | null | null | #include <assert.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <iostream>
#include <orbwebai/structure.h>
#include <orbwebai/structure_operator.h>
#include <common/common.h>
namespace orbwebai
{
namespace face
{
float CalculateSimilarity(
const std::vector<float>& feature1,
const std::... | 34 | 108 | 0.680599 | HungMingWu |
05f3ab142aa6e830e78f51725f90b93050b2ef4a | 1,615 | cpp | C++ | src/Alias.cpp | irov/GOAP | f8d5f061537019fccdd143b232aa8a869fdb0b2d | [
"MIT"
] | 14 | 2016-10-07T21:53:02.000Z | 2021-12-13T02:57:19.000Z | src/Alias.cpp | irov/GOAP | f8d5f061537019fccdd143b232aa8a869fdb0b2d | [
"MIT"
] | null | null | null | src/Alias.cpp | irov/GOAP | f8d5f061537019fccdd143b232aa8a869fdb0b2d | [
"MIT"
] | 4 | 2016-09-01T10:06:29.000Z | 2021-12-13T02:57:20.000Z | /*
* Copyright (C) 2017-2019, Yuriy Levchenko <irov13@mail.ru>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "GOAP/Alias.h"
#include "GOAP/SourceInterface.h"
#include "GOAP/Cook.h"
#include "GOAP/Exception.h"
namespace GOAP
{
... | 26.47541 | 82 | 0.430341 | irov |
05f426ef899df9cabd8a310697ee86808e2508cc | 17,589 | cpp | C++ | src/Engine/imgui/imgui_impl_gl3.cpp | ennis/autograph-pipelines | afc66ef60bf99fca26d200bd7739528e1bf3ed8c | [
"MIT"
] | 1 | 2021-04-24T12:29:42.000Z | 2021-04-24T12:29:42.000Z | src/Engine/imgui/imgui_impl_gl3.cpp | ennis/autograph-pipelines | afc66ef60bf99fca26d200bd7739528e1bf3ed8c | [
"MIT"
] | null | null | null | src/Engine/imgui/imgui_impl_gl3.cpp | ennis/autograph-pipelines | afc66ef60bf99fca26d200bd7739528e1bf3ed8c | [
"MIT"
] | null | null | null | // ImGui GLFW binding with OpenGL3 + shaders
// In this binding, ImTextureID is used to store an OpenGL 'GLuint' texture
// identifier. Read the FAQ about ImTextureID in imgui.cpp.
// You can copy and use unmodified imgui_impl_* files in your project. See
// main.cpp for an example of using this. If you use this bindi... | 37.107595 | 80 | 0.669907 | ennis |
05f5d52656a4bcfcc7f70162b7b08a51e588f8e3 | 5,924 | cpp | C++ | test/unit/models/TransactionFilterTest.cpp | BlockChain-Station/enjin-cpp-sdk | 3af1cd001d7e660787bbfb2e2414a96f5a95a228 | [
"Apache-2.0"
] | 12 | 2021-09-28T14:37:22.000Z | 2022-03-04T17:54:11.000Z | test/unit/models/TransactionFilterTest.cpp | BlockChain-Station/enjin-cpp-sdk | 3af1cd001d7e660787bbfb2e2414a96f5a95a228 | [
"Apache-2.0"
] | null | null | null | test/unit/models/TransactionFilterTest.cpp | BlockChain-Station/enjin-cpp-sdk | 3af1cd001d7e660787bbfb2e2414a96f5a95a228 | [
"Apache-2.0"
] | 8 | 2021-11-05T18:56:55.000Z | 2022-01-10T11:14:24.000Z | /* Copyright 2021 Enjin Pte. 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... | 34.847059 | 282 | 0.597569 | BlockChain-Station |
af0087a7e85abdf54d4f22d5fb776247e8f8c5db | 3,491 | cpp | C++ | cmpf_path_tracking_controller/cmpf_decoupled_controller/src/decoupled_controller.cpp | aungpaing98/cmpf | 6dc561895946c8faa5b15c72d2590990ac7d3e9f | [
"Apache-2.0"
] | 3 | 2021-12-23T15:36:37.000Z | 2022-02-28T15:05:35.000Z | cmpf_path_tracking_controller/cmpf_decoupled_controller/src/decoupled_controller.cpp | aungpaing98/cmpf | 6dc561895946c8faa5b15c72d2590990ac7d3e9f | [
"Apache-2.0"
] | 1 | 2022-01-12T15:33:42.000Z | 2022-01-12T15:33:42.000Z | cmpf_path_tracking_controller/cmpf_decoupled_controller/src/decoupled_controller.cpp | aungpaing98/cmpf | 6dc561895946c8faa5b15c72d2590990ac7d3e9f | [
"Apache-2.0"
] | 1 | 2022-01-10T04:47:13.000Z | 2022-01-10T04:47:13.000Z | /************************************************************************
Copyright 2021 Phone Thiha Kyaw
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/license... | 37.138298 | 112 | 0.691492 | aungpaing98 |
af04effcd92a2963645f7475b5a05bf9cd15440e | 6,021 | cpp | C++ | LiteCppDB/LiteCppDB/ObjectId.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | 2 | 2019-07-18T06:30:33.000Z | 2020-01-23T17:40:36.000Z | LiteCppDB/LiteCppDB/ObjectId.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | null | null | null | LiteCppDB/LiteCppDB/ObjectId.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "BsonValue.h"
#include <functional>
#include <random>
#include <sstream>
#include "ObjectId.h"
#include <gsl\gsl>
namespace LiteCppDB
{
#pragma region Properties
// Get timestamp
int32_t ObjectId::getTimestamp() noexcept
{
return this->mTimestamp;
}
void ObjectId::setTimestamp(in... | 23.892857 | 98 | 0.680618 | pnadan |
af0a3817e818a47eb04b4bd4d953565af9c173f0 | 348 | hpp | C++ | include/cereal/size_type.hpp | VaderY/cereal | b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a | [
"BSD-3-Clause"
] | null | null | null | include/cereal/size_type.hpp | VaderY/cereal | b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a | [
"BSD-3-Clause"
] | null | null | null | include/cereal/size_type.hpp | VaderY/cereal | b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <cstdint>
#include <cereal/macros.hpp>
namespace cereal {
// -------------------------------------------------------------------------------------------------
using size_type = CEREAL_SIZE_TYPE;
// ---------------------------------------------------------------------------------------------... | 20.470588 | 100 | 0.304598 | VaderY |
af0fce98bb2f00f6f1c531b9a680a347f47dd3c7 | 4,343 | hpp | C++ | math/utility/fn.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | math/utility/fn.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | math/utility/fn.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#ifndef _SNAKEOIL_MATH_UTILITY_FUNCTION_HPP_
#define _SNAKEOIL_MATH_UTILITY_FUNCTION_HPP_
#include "../typedefs.h"
n... | 28.019355 | 79 | 0.474557 | aconstlink |
af1130ae08cae69f83aa8589451a7aa94b454f9f | 1,347 | cpp | C++ | src/calc/Checksum.cpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | src/calc/Checksum.cpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | src/calc/Checksum.cpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#include <cstdio>
#include "calc/Checksum.hpp"
using namespace calc;
u8 Checksum::calc_zero_sum(const u8 * data, int size){
int i;
u8 sum = 0;
int count = size/sizeof(u8) - 1;
for(i=0; i < count; i++){
sum += da... | 20.104478 | 100 | 0.644395 | bander9289 |
af11adfc5ebd185ea6fb7dfa00beeff452fdfca1 | 1,597 | cpp | C++ | SharedUtility/DataReader/BaseLibsvmReader.cpp | ELFairyhyuk/ova-gpu-svm | 78610da3d0ae4c1fb60b629d1ed3fd824f878234 | [
"Apache-1.1"
] | null | null | null | SharedUtility/DataReader/BaseLibsvmReader.cpp | ELFairyhyuk/ova-gpu-svm | 78610da3d0ae4c1fb60b629d1ed3fd824f878234 | [
"Apache-1.1"
] | null | null | null | SharedUtility/DataReader/BaseLibsvmReader.cpp | ELFairyhyuk/ova-gpu-svm | 78610da3d0ae4c1fb60b629d1ed3fd824f878234 | [
"Apache-1.1"
] | null | null | null | /*
* BaseLibsvmReader.cpp
*
* Created on: 6 May 2016
* Author: Zeyi Wen
* @brief: definition of some basic functions for reading data in libsvm format
*/
#include <iostream>
#include <assert.h>
#include <sstream>
#include <stdio.h>
#include "BaseLibsvmReader.h"
using std::istringstream;
/**
* @brief: g... | 21.581081 | 127 | 0.66938 | ELFairyhyuk |
af19a928b1a8c576a437ad0ca9799287405ae88d | 445 | cpp | C++ | src/collection/CollectionInterface.cpp | christian-esken/mediawarp | 0c0d2423175774421c4b78b36693e29f6146af6b | [
"Apache-2.0"
] | null | null | null | src/collection/CollectionInterface.cpp | christian-esken/mediawarp | 0c0d2423175774421c4b78b36693e29f6146af6b | [
"Apache-2.0"
] | null | null | null | src/collection/CollectionInterface.cpp | christian-esken/mediawarp | 0c0d2423175774421c4b78b36693e29f6146af6b | [
"Apache-2.0"
] | null | null | null | /*
* CollectionInterface.cpp
*
* Created on: 13.01.2015
* Author: chris
*/
#include "CollectionInterface.h"
#include <exception>
CollectionInterface::CollectionInterface(int collectionId) : collectionId(collectionId)
{
}
CollectionInterface::~CollectionInterface()
{
}
std::vector<shared_ptr<MediaItem> ... | 17.8 | 90 | 0.74382 | christian-esken |
af2196db2443b3566ae1eb91d8c17b7d3c5769ae | 4,719 | cpp | C++ | src/socketinputstream.cpp | MacroGu/log4cxx_gcc_4_8 | c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e | [
"Apache-2.0"
] | 1 | 2016-10-06T20:09:32.000Z | 2016-10-06T20:09:32.000Z | src/socketinputstream.cpp | MacroGu/log4cxx_gcc_4_8 | c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e | [
"Apache-2.0"
] | null | null | null | src/socketinputstream.cpp | MacroGu/log4cxx_gcc_4_8 | c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2003,2004 The Apache Software 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... | 26.071823 | 81 | 0.665395 | MacroGu |
af2ae618822789d926e55512bd0cbb68f9dc399a | 25,648 | cpp | C++ | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/Network/CNetwork.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 231 | 2018-01-28T00:06:56.000Z | 2022-03-31T21:39:56.000Z | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/Network/CNetwork.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 9 | 2016-02-10T10:46:16.000Z | 2017-12-06T17:27:51.000Z | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/Network/CNetwork.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 66 | 2018-01-28T21:54:52.000Z | 2022-02-16T22:50:57.000Z | // include definition
#define _CRT_SECURE_NO_DEPRECATE
#include "cnetwork.h"
// Defines for this code
#define SAFE_RELEASE( p ) { if ( p ) { ( p )->Release ( ); ( p ) = NULL; } }
#define SAFE_DELETE_ARRAY( p ) { if ( p ) { delete [ ] ( p ); ( p ) = NULL; } }
// GUID Value
GUID DPCREATE_GUID = { 0x7d2f0893, 0xb... | 25.828802 | 167 | 0.641181 | domydev |
af30f8bb5bc055f1be18c4b6dd569f56c27a7f0c | 184 | cpp | C++ | old_src/example_server/main.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | old_src/example_server/main.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | old_src/example_server/main.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | #include "plotty.h"
#include <QCoreApplication>
int main(int argc, char* argv[]) {
auto app = QCoreApplication(argc, argv);
Plotty plotty(50000);
return app.exec();
}
| 14.153846 | 44 | 0.652174 | InsightCenterNoodles |
af314665d27de3c965b1cdad16acd9bdcf07c943 | 959 | cpp | C++ | tests/cpp/nontype_template_args.201411.cpp | eggs-cpp/sd-6 | d7ba0c08acf7c1c817baa1ea53f488d02394858a | [
"BSL-1.0"
] | 7 | 2015-03-03T18:33:02.000Z | 2018-08-31T08:26:01.000Z | tests/cpp/nontype_template_args.201411.cpp | eggs-cpp/sd-6 | d7ba0c08acf7c1c817baa1ea53f488d02394858a | [
"BSL-1.0"
] | null | null | null | tests/cpp/nontype_template_args.201411.cpp | eggs-cpp/sd-6 | d7ba0c08acf7c1c817baa1ea53f488d02394858a | [
"BSL-1.0"
] | null | null | null | // Eggs.SD-6
//
// Copyright Agustin K-ballo Berge, Fusion Fenix 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)
int x;
int arr[10];
void fun() {}
struct s { static int sm; } so;
template <typename T, T*> ... | 21.311111 | 79 | 0.698644 | eggs-cpp |
af3243cdf44db04240e5caaeeb6c906616f39c47 | 14,615 | cpp | C++ | src/intcomp/AbbreviationCodegen.cpp | WebAssembly/decompressor-prototype | 44075ebeef75b950fdd9c0cd0b369928ef05a09c | [
"Apache-2.0"
] | 11 | 2016-07-08T20:43:29.000Z | 2021-05-09T21:43:34.000Z | src/intcomp/AbbreviationCodegen.cpp | DalavanCloud/decompressor-prototype | 44075ebeef75b950fdd9c0cd0b369928ef05a09c | [
"Apache-2.0"
] | 62 | 2016-06-07T15:21:24.000Z | 2017-05-18T15:51:04.000Z | src/intcomp/AbbreviationCodegen.cpp | DalavanCloud/decompressor-prototype | 44075ebeef75b950fdd9c0cd0b369928ef05a09c | [
"Apache-2.0"
] | 5 | 2016-06-07T15:05:32.000Z | 2020-01-06T17:21:43.000Z | // -*- C++ -*- */
//
// Copyright 2016 WebAssembly Community Group participants
//
// 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
//
// ... | 33.36758 | 80 | 0.67376 | WebAssembly |
af32802b9e92115193ac6365f68c26580d39cc78 | 1,473 | cpp | C++ | string/simplify_path.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | 1 | 2015-07-15T07:31:42.000Z | 2015-07-15T07:31:42.000Z | string/simplify_path.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | null | null | null | string/simplify_path.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <bits/stl_stack.h>
using namespace std;
/**
* Given an absolute path for a file (Unix-style), simplify it.
* For example,
* path = "/home/", => "/home"
* path = "/a/./b/../../c/", => "/c"
* Corner Cases:
* • Did you consider the case where path = "/../"? In this... | 27.277778 | 102 | 0.441955 | zhangxin23 |
af3684c70243779d4f462636a73078db6e072682 | 2,950 | cpp | C++ | Common/zoneview.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Common/zoneview.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Common/zoneview.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | //
// zoneview.cpp
// MelobaseStation
//
// Created by Daniel Cliche on 2016-02-08.
// Copyright (c) 2016-2021 Daniel Cliche. All rights reserved.
//
#include "zoneview.h"
using namespace MDStudio;
// ----------------------------------------------------------------------------------------------------------------... | 42.142857 | 120 | 0.622034 | dcliche |
af3c5d944ca4f879ea6d4365e1365e221f69cde7 | 45,136 | cpp | C++ | amd_femfx/src/FindContacts/FEMFXMeshCollision.cpp | UnifiQ/FEMFX | 95cf656731a2465ae1d400138170af2d6575b5bb | [
"MIT"
] | 418 | 2019-12-16T10:36:42.000Z | 2022-03-27T02:46:08.000Z | amd_femfx/src/FindContacts/FEMFXMeshCollision.cpp | UnifiQ/FEMFX | 95cf656731a2465ae1d400138170af2d6575b5bb | [
"MIT"
] | 15 | 2019-12-16T15:39:29.000Z | 2021-12-02T15:45:21.000Z | amd_femfx/src/FindContacts/FEMFXMeshCollision.cpp | UnifiQ/FEMFX | 95cf656731a2465ae1d400138170af2d6575b5bb | [
"MIT"
] | 54 | 2019-12-16T12:33:18.000Z | 2022-02-27T16:33:28.000Z | /*
MIT License
Copyright (c) 2019 Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, m... | 44.294406 | 197 | 0.624225 | UnifiQ |
af3c85ba4560bd4fbd781a99e2b5af71ae654cf9 | 772 | hpp | C++ | include/clpp/command_queue_flags.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 5 | 2015-09-08T01:59:26.000Z | 2018-11-26T10:19:29.000Z | include/clpp/command_queue_flags.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 6 | 2015-11-29T03:00:11.000Z | 2015-11-29T03:11:52.000Z | include/clpp/command_queue_flags.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | null | null | null | #ifndef CLPP_COMMAND_QUEUE_FLAGS_HPP
#define CLPP_COMMAND_QUEUE_FLAGS_HPP
#include "clpp/detail/common.hpp"
#include "clpp/detail/mask_wrapper.hpp"
namespace cl {
class CommandQueueFlags final :
public detail::MaskWrapper<cl_command_queue_properties>
{
public:
using detail::MaskWrapper<CommandQueueFlags::cl_ma... | 29.692308 | 74 | 0.759067 | Robbepop |
af4b5024feecf15d017f713595e8a8251eeb9623 | 3,158 | cpp | C++ | RTOS_JOB_SCHEDULING_SIMULATOR/Files/sjfnp.cpp | binodkumar23/IITJ_IDDEDA | 2c2f9ec14bcbb882c23866f1329a5fd0a1a7a993 | [
"MIT"
] | 1 | 2021-12-11T10:23:05.000Z | 2021-12-11T10:23:05.000Z | RTOS_JOB_SCHEDULING_SIMULATOR/Files/sjfnp.cpp | binodkumar23/IITJ_IDDEDA | 2c2f9ec14bcbb882c23866f1329a5fd0a1a7a993 | [
"MIT"
] | null | null | null | RTOS_JOB_SCHEDULING_SIMULATOR/Files/sjfnp.cpp | binodkumar23/IITJ_IDDEDA | 2c2f9ec14bcbb882c23866f1329a5fd0a1a7a993 | [
"MIT"
] | 3 | 2021-12-23T17:19:42.000Z | 2022-01-27T13:53:47.000Z | #include <bits/stdc++.h>
using namespace std;
vector<double> sjfnp(vector<int> &cpu_burst, vector<int> &arrival_times, int mode)
{
int n = cpu_burst.size();
vector<int> wait_time(n, 0), turnaround_time(n, 0), response_time(n), completion_time(n, 0);
vector<vector<int> > table(n, vector<int>(6));
tabl... | 31.58 | 99 | 0.468334 | binodkumar23 |
af507d136ec0c8e4bb719e673a2005234f73e475 | 756 | hpp | C++ | src/UI/RepeaterBookResultsWidget.hpp | neotericpiguy/QDmrconfig | 5fd0b5fbacd414f5963bcfef153db95e9447bade | [
"MIT"
] | 1 | 2021-01-03T17:49:59.000Z | 2021-01-03T17:49:59.000Z | src/UI/RepeaterBookResultsWidget.hpp | neotericpiguy/QDmrconfig | 5fd0b5fbacd414f5963bcfef153db95e9447bade | [
"MIT"
] | 39 | 2020-12-19T18:19:06.000Z | 2021-12-29T01:25:39.000Z | src/UI/RepeaterBookResultsWidget.hpp | neotericpiguy/QDmrconfig | 5fd0b5fbacd414f5963bcfef153db95e9447bade | [
"MIT"
] | null | null | null | #ifndef REPEATERBOOKRESULTSWIDGET_HPP
#define REPEATERBOOKRESULTSWIDGET_HPP
#pragma GCC diagnostic ignored "-Weffc++"
#include <QtWidgets/QPlainTextEdit>
#include <QtWidgets/QTableWidget>
#include <QtWidgets/QtWidgets>
#include <memory>
#pragma GCC diagnostic pop
#include "BSONDocWidget.hpp"
class RepeaterBookResult... | 28 | 94 | 0.80291 | neotericpiguy |
af5783770d5c282eca5c5eb8feffe07c4126afe6 | 8,308 | cpp | C++ | src/mongo/s/catalog/catalog_manager.cpp | rzh/mongo | f1c7cef21ac01792eb4934893b970f0303a23bca | [
"Apache-2.0"
] | null | null | null | src/mongo/s/catalog/catalog_manager.cpp | rzh/mongo | f1c7cef21ac01792eb4934893b970f0303a23bca | [
"Apache-2.0"
] | null | null | null | src/mongo/s/catalog/catalog_manager.cpp | rzh/mongo | f1c7cef21ac01792eb4934893b970f0303a23bca | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... | 35.504274 | 99 | 0.649735 | rzh |
af58dd217a39669eeccb09954b94c546564e8b0a | 955 | cpp | C++ | src/Privileges.cpp | vexyl/MCHawk2 | 9c69795181c5a59ff6c57c36e77d71623df4db8b | [
"MIT"
] | 5 | 2020-09-02T06:58:15.000Z | 2021-12-26T02:29:35.000Z | src/Privileges.cpp | vexyl/MCHawk2 | 9c69795181c5a59ff6c57c36e77d71623df4db8b | [
"MIT"
] | 10 | 2021-11-23T16:10:38.000Z | 2021-12-30T16:05:52.000Z | src/Privileges.cpp | vexyl/MCHawk2 | 9c69795181c5a59ff6c57c36e77d71623df4db8b | [
"MIT"
] | 1 | 2021-07-13T16:55:53.000Z | 2021-07-13T16:55:53.000Z | #include "../include/Privileges.hpp"
#include <algorithm>
void PrivilegeHandler::GivePrivilege(std::string name, std::string priv)
{
auto iter = m_privs.find(name);
if (iter == m_privs.end()) {
// TODO: error check
m_privs.insert(std::make_pair(name, std::vector { priv }));
}
else {
// TODO: Check if alread... | 22.738095 | 117 | 0.653403 | vexyl |
af5c39f793d2afa67502e2cd8d8dfca3c8bb0987 | 4,149 | cpp | C++ | Libraries/RobsJuceModules/rapt/Unfinished/MiscAudio/BandwidthConverter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | null | null | null | Libraries/RobsJuceModules/rapt/Unfinished/MiscAudio/BandwidthConverter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | null | null | null | Libraries/RobsJuceModules/rapt/Unfinished/MiscAudio/BandwidthConverter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | null | null | null | template<class T>
T rsBandwidthConverter::bandedgesToCenterFrequency(T fl, T fu)
{
return sqrt(fl*fu);
}
template<class T>
T rsBandwidthConverter::bandedgesToAbsoluteBandwidth(T fl, T fu)
{
return fu - fl;
}
template<class T>
T rsBandwidthConverter::relativeBandwidthToBandedgeFactor(T br)
{
return 0.5*br + sqrt... | 35.767241 | 100 | 0.692697 | RobinSchmidt |
af5defc1c825bc5680eab5e811e314bbc2dc0de5 | 404 | cpp | C++ | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | #include "MyTestBenchMonitor.h"
void MyTestBenchMonitor::Display_Patterns()
{
cout << "At time : " << sc_time_stamp();
//next_trigger(TBMonitor_a. | TBMonitor_b | TBMonitor_c);
cout << "\ta = " << TBMonitor_a << "\tb = " << TBMonitor_b << "\tc_in = " << TBMonitor_c;
//next_trigger(TBMonitor_sum | TBMonitor_sum);
... | 33.666667 | 90 | 0.648515 | VSPhaneendraPaluri |
af5dfb203e9dceb2ef6970ffe47f34b30138073b | 17,261 | cpp | C++ | examples/lowlevel/benchmark_map.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | 3 | 2020-02-13T02:08:06.000Z | 2020-10-06T16:26:30.000Z | examples/lowlevel/benchmark_map.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | null | null | null | examples/lowlevel/benchmark_map.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | null | null | null | // Copyright (c) 2007-2020, Grigory Buteyko aka Hrissan
// Licensed under the MIT License. See LICENSE for details.
#include <array>
#include <chrono>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <random>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include... | 33.911591 | 115 | 0.639071 | hrissan |
af60f971a6f1c6055b70c3a18f62b8330d3fd656 | 439 | cpp | C++ | libs/libc/source/string/memccpy.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 16 | 2019-03-14T19:45:02.000Z | 2022-02-06T19:18:08.000Z | libs/libc/source/string/memccpy.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 1 | 2020-05-08T08:40:02.000Z | 2020-05-08T13:27:59.000Z | libs/libc/source/string/memccpy.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 2 | 2021-01-16T20:42:05.000Z | 2021-12-01T23:37:18.000Z | // memccpy.cpp
// Copyright (c) 2014 - 2016, zhiayang
// Licensed under the Apache License Version 2.0.
#include <stddef.h>
extern "C" void* memccpy(void* dest_ptr, const void* src_ptr, int c, size_t n)
{
unsigned char* dest = (unsigned char*) dest_ptr;
const unsigned char* src = (const unsigned char*) src_ptr;
for... | 25.823529 | 78 | 0.649203 | zhiayang |
af661942888ffecea18cb24d30e3d05615c1592e | 3,693 | cpp | C++ | gm/daa.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | gm/daa.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | gm/daa.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkFont.h"
#include "include/core/SkPaint.h"
#include "include/co... | 27.766917 | 94 | 0.541565 | NearTox |
af6c3a5fa03dab6a87d9a3abe48f4804956e52cf | 1,287 | hpp | C++ | library/sha256/sha256.hpp | shuyangsun/ssy_blockchain | 846c3758ddeb6717b8e7425a9ad89eda5eceb7ab | [
"MIT"
] | null | null | null | library/sha256/sha256.hpp | shuyangsun/ssy_blockchain | 846c3758ddeb6717b8e7425a9ad89eda5eceb7ab | [
"MIT"
] | null | null | null | library/sha256/sha256.hpp | shuyangsun/ssy_blockchain | 846c3758ddeb6717b8e7425a9ad89eda5eceb7ab | [
"MIT"
] | null | null | null | /*********************************************************************
* Filename: sha256.h
* Author: Brad Conte (brad AT bradconte.com)
* Copyright:
* Disclaimer: This code is presented "as is" without any guarantees.
* Details: Defines the API for the corresponding SHA1 implementation.
**********************... | 36.771429 | 92 | 0.523699 | shuyangsun |
af6de3fd4345760aea98549bb776b82adb22984a | 603 | cpp | C++ | VehicleIR.cpp | tcklpl/remotevehicle-vehicle | 49c9a7fd455e9c9246077b20bf192f3805d6c873 | [
"MIT"
] | null | null | null | VehicleIR.cpp | tcklpl/remotevehicle-vehicle | 49c9a7fd455e9c9246077b20bf192f3805d6c873 | [
"MIT"
] | null | null | null | VehicleIR.cpp | tcklpl/remotevehicle-vehicle | 49c9a7fd455e9c9246077b20bf192f3805d6c873 | [
"MIT"
] | null | null | null | /*
RemoteVehicle - library for controlling a remote vehicle using a ESP32CAM board.
Created by Luan Negroni Sibinel, August 24, 2021.
Released under the MIT license.
*/
#include "VehicleIR.h"
VehicleIR::VehicleIR(int8_t panalog, int8_t pdigital) {
_panalog = panalog;
_pdigital = pdigital;
if (_... | 25.125 | 84 | 0.660033 | tcklpl |
af6e73cb9cc01c2facf801835c69d271e7115792 | 7,182 | cpp | C++ | src/wmecore/UiObjectOld.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | src/wmecore/UiObjectOld.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | src/wmecore/UiObjectOld.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | // This file is part of Wintermute Engine
// For conditions of distribution and use, see copyright notice in license.txt
#include "Wme.h"
#include "UiObjectOld.h"
#include "UiObjectFactory.h"
#include "ContentManager.h"
#include "ElementCollection.h"
#include "Sprite.h"
#include "XmlUtil.h"
namespace Wme... | 25.468085 | 125 | 0.536062 | retrowork |
af774e896c3c26f1dd8eac933d891f0007b6d59f | 3,048 | cpp | C++ | source/buffer.cpp | gnader/glutils | d80ec61eecfc1ea2555efd5f52317a54a86289cd | [
"MIT"
] | null | null | null | source/buffer.cpp | gnader/glutils | d80ec61eecfc1ea2555efd5f52317a54a86289cd | [
"MIT"
] | null | null | null | source/buffer.cpp | gnader/glutils | d80ec61eecfc1ea2555efd5f52317a54a86289cd | [
"MIT"
] | null | null | null | /**
* This file is part of gltoolbox
*
* MIT License
*
* Copyright (c) 2021 Georges Nader
*
* 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 wi... | 23.8125 | 86 | 0.69521 | gnader |
af7b6ea6d128439d18c9fff9b840644ddb98f9d1 | 2,779 | cpp | C++ | 10.1.1.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | 10.1.1.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | 10.1.1.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | // program to quick short the linked list
// first of all create the linked list
#include<stdio.h>
#include<stdlib.h>
struct node
{
int data;
struct node* next;
};
void push(struct node **head,int data1)
{
struct node* newnode=NULL;
newnode=(struct node*)malloc(sizeof(struct node));
newnode->data=d... | 21.21374 | 101 | 0.558834 | luckylove |
5038382f91b12e996e0a51390909ea21e6dce422 | 4,239 | cpp | C++ | source/primitive/Box.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/primitive/Box.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/primitive/Box.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | #include "raytracing/primitive/Box.h"
#include "raytracing/maths/Ray.h"
#include "raytracing/maths/Normal.h"
#include "raytracing/utilities/ShadeRec.h"
#include "raytracing/utilities/Constants.h"
namespace rt
{
Box::Box(const Point3D& min, const Point3D& max)
{
x0 = min.x;
y0 = min.y;
z0 = min.z;
x1 = max.x;
y1... | 18.592105 | 69 | 0.538099 | xzrunner |
5039bf2a4c5eb2fd363d549f3197c97c53c2b558 | 1,142 | cpp | C++ | viewastrattapubblicazionestampata.cpp | mtodescato/ProgettoPAO | b73e871381e56d6b2917db8a7d227213c514f35b | [
"BSD-3-Clause"
] | null | null | null | viewastrattapubblicazionestampata.cpp | mtodescato/ProgettoPAO | b73e871381e56d6b2917db8a7d227213c514f35b | [
"BSD-3-Clause"
] | null | null | null | viewastrattapubblicazionestampata.cpp | mtodescato/ProgettoPAO | b73e871381e56d6b2917db8a7d227213c514f35b | [
"BSD-3-Clause"
] | null | null | null | #include "viewastrattapubblicazionestampata.h"
viewAstrattaPubblicazioneStampata::viewAstrattaPubblicazioneStampata(astrattaPubblicazione *p , QWidget* parent): viewAstrattaPubblicazione(p,parent){}
void viewAstrattaPubblicazioneStampata::caricaCampiDati() {
viewAstrattaPubblicazione::caricaCampiDati();
astrattaP... | 40.785714 | 151 | 0.801226 | mtodescato |
503c2a584d5c9e29ceb89ad561296769117282b3 | 900 | cpp | C++ | Chapter_4_Mathematical_Logical_Bitwise_and_Shift_Operators/Program3.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | 1 | 2020-12-03T15:26:20.000Z | 2020-12-03T15:26:20.000Z | Chapter_4_Mathematical_Logical_Bitwise_and_Shift_Operators/Program3.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | null | null | null | Chapter_4_Mathematical_Logical_Bitwise_and_Shift_Operators/Program3.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | null | null | null | // Chapter 4: Program 3
/***
Write a C++ program to read diameter of a circle. Find perimeter and area
of the circle.
**/
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main(void)
{
const double PI = 3.141592;
double Diameter, Radius, Perimeter, Area;
cout << "\n\t This... | 25 | 78 | 0.625556 | othneildrew |
50408d093de66e680842e2a1f4f0f26a9a96ebbf | 1,569 | cpp | C++ | oneflow/api/python/framework/py_distribute.cpp | jackalcooper/oneflow-1 | 16d261ea52a56c28db8e79dbbc79032b4804d09e | [
"Apache-2.0"
] | 2 | 2021-09-10T00:19:49.000Z | 2021-11-16T11:27:20.000Z | oneflow/api/python/framework/py_distribute.cpp | jackalcooper/oneflow-1 | 16d261ea52a56c28db8e79dbbc79032b4804d09e | [
"Apache-2.0"
] | null | null | null | oneflow/api/python/framework/py_distribute.cpp | jackalcooper/oneflow-1 | 16d261ea52a56c28db8e79dbbc79032b4804d09e | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 The OneFlow Authors. 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 law or agre... | 37.357143 | 97 | 0.765456 | jackalcooper |
50534627e9e01b4312b826745b1493b5659a67cb | 471 | hpp | C++ | src/Util/ImGui.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | 1 | 2022-02-10T04:41:57.000Z | 2022-02-10T04:41:57.000Z | src/Util/ImGui.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | src/Util/ImGui.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | #ifndef DRK_UTIL_IMGUI_HPP
#define DRK_UTIL_IMGUI_HPP
#include "Core/Base.hpp"
#include <imgui/imgui.h>
#include <string_view>
namespace DrkCraft::DrkImGui
{
void BeginFullscreen(std::string_view name, ImGuiWindowFlags flags=0);
void BeginCentered(std::string_view name, const ImVec2& size, ImGuiWindowFlags ... | 24.789474 | 92 | 0.766454 | D3r3k23 |
5053ea1a70f91478eda466acf7088a52a44b6e56 | 1,030 | hpp | C++ | include/deferred/detail/deferred_type_helper.hpp | JohnJocoo/deferred_heap | 700510b62bec42c77b52016ac15091b77d5dc619 | [
"BSL-1.0"
] | null | null | null | include/deferred/detail/deferred_type_helper.hpp | JohnJocoo/deferred_heap | 700510b62bec42c77b52016ac15091b77d5dc619 | [
"BSL-1.0"
] | null | null | null | include/deferred/detail/deferred_type_helper.hpp | JohnJocoo/deferred_heap | 700510b62bec42c77b52016ac15091b77d5dc619 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <typeinfo>
namespace def::detail
{
struct memory_chunk_header;
/// Base for helper for deferred-enabled type.
class type_helper
{
public:
explicit type_helper(const std::type_info& info,
std::size_t bytes_object,
std::size_t bytes_allocator... | 23.953488 | 67 | 0.691262 | JohnJocoo |
5055bedb072381a75762b2d8ba9b253cba5b000f | 4,331 | cpp | C++ | src/test/value_parser_path_test.cpp | RichardCory/svgpp | 801e0142c61c88cf2898da157fb96dc04af1b8b0 | [
"BSL-1.0"
] | 428 | 2015-01-05T17:13:54.000Z | 2022-03-31T08:25:47.000Z | src/test/value_parser_path_test.cpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 61 | 2015-01-08T14:32:27.000Z | 2021-12-06T16:55:11.000Z | src/test/value_parser_path_test.cpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 90 | 2015-05-19T04:56:46.000Z | 2022-03-26T16:42:50.000Z | #include <svgpp/parser/path_data.hpp>
// Only compilation is checked
using namespace svgpp;
namespace
{
struct PathContext1
{
public:
void path_move_to(double x, double y, tag::coordinate::absolute)
{}
void path_line_to(double x, double y, tag::coordinate::absolute)
{}
void path_cubic_bez... | 28.682119 | 87 | 0.471946 | RichardCory |
506c250b70618bfcc89ad1ff716504527bdbcba2 | 315 | cpp | C++ | json-parser002/lib/json_null.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | json-parser002/lib/json_null.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | json-parser002/lib/json_null.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | #include "json_null.h"
JsonNull::JsonNull() : JsonValue(JsonType::kNull) {
}
bool JsonNull::IsNull() const noexcept {
return true;
}
bool JsonNull::operator==(const JsonValue &value) const noexcept {
return type_ == value.Type();
}
std::nullptr_t JsonNull::Value() const noexcept {
return nullptr;
}
| 19.6875 | 66 | 0.695238 | syohex |
507098b06484c39551ae4b05fd71ecee34241a0a | 1,078 | cpp | C++ | core/dawn_player/error.cpp | lxrite/DawnPlayer | ba3c7f1f01d7609213492f4c9ba4a91454fb7365 | [
"MIT"
] | 55 | 2015-03-22T16:19:03.000Z | 2022-03-18T18:11:39.000Z | core/dawn_player/error.cpp | lxrite/DawnPlayer | ba3c7f1f01d7609213492f4c9ba4a91454fb7365 | [
"MIT"
] | 2 | 2015-04-09T07:42:08.000Z | 2015-07-26T02:56:06.000Z | core/dawn_player/error.cpp | lxrite/DawnPlayer | ba3c7f1f01d7609213492f4c9ba4a91454fb7365 | [
"MIT"
] | 11 | 2015-04-29T04:52:19.000Z | 2019-12-31T09:36:53.000Z | /*
* error.cpp:
*
* Copyright (C) 2015-2017 Light Lin <blog.poxiao.me> All Rights Reserved.
*
*/
#include "error.hpp"
namespace dawn_player {
open_error::open_error(const std::string& what_arg, open_error_code ec)
: what_msg(what_arg), error_code(ec)
{}
const char* open_error::what() c... | 20.339623 | 90 | 0.67718 | lxrite |
5072d895de952d882d7d0940f0497c0c83e79859 | 17,031 | cc | C++ | lib/matrices/wimax_864_0_66B.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | 8 | 2018-10-29T14:56:05.000Z | 2022-02-10T09:42:21.000Z | lib/matrices/wimax_864_0_66B.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | null | null | null | lib/matrices/wimax_864_0_66B.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | 4 | 2018-10-16T20:12:56.000Z | 2020-10-19T07:37:05.000Z | #include "matrices.h"
#ifdef Z_36
unsigned int wimax_864_0_66B_D = 35;
unsigned int wimax_864_0_66B_X = 6;
int16_t wimax_864_0_66B[288][11] = {
{0, 79, 161, 234, 301, 390, 449, 509, 611, 612, -1},
{1, 80, 162, 235, 302, 391, 450, 510, 576, 613, -1},
{2, 81, 163, 236, 303, 392, 451, 511, 577, 614, -1},
... | 57.151007 | 59 | 0.509424 | iamviji |
5074b492e1d6cad9623d045c0e74c142a9cf7662 | 299 | cpp | C++ | c2017/wd/wd186/main.cpp | wmjtxt/c-exercise | d22336460cab825dd7ae98297bbe46febedfcece | [
"MIT"
] | null | null | null | c2017/wd/wd186/main.cpp | wmjtxt/c-exercise | d22336460cab825dd7ae98297bbe46febedfcece | [
"MIT"
] | null | null | null | c2017/wd/wd186/main.cpp | wmjtxt/c-exercise | d22336460cab825dd7ae98297bbe46febedfcece | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
char a[100], b[100];
gets(a);
gets(b);
int lena = -1, i = 0;
while(a[++lena] != '\0');
while(b[i] != '\0'){
a[lena++] = b[i++];
}
a[lena] = '\0';
cout << a << endl;
return 0;
}
| 15.736842 | 29 | 0.441472 | wmjtxt |
507cdeacfef76c4f63da9a526dbb2de19e2ae25d | 5,139 | cpp | C++ | src/vulkan/vulkan-upload.cpp | Impulse21/nvrhi | f272a6595dd0768a8e3419f0075f0edf40d00391 | [
"MIT"
] | 2 | 2021-08-28T23:02:30.000Z | 2021-08-28T23:26:21.000Z | src/vulkan/vulkan-upload.cpp | Impulse21/nvrhi | f272a6595dd0768a8e3419f0075f0edf40d00391 | [
"MIT"
] | null | null | null | src/vulkan/vulkan-upload.cpp | Impulse21/nvrhi | f272a6595dd0768a8e3419f0075f0edf40d00391 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2021, NVIDIA CORPORATION. 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.26 | 110 | 0.622884 | Impulse21 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.