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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3af1e2e8045b1b961ede0a5b013625fc7f0bf21f | 1,437 | hpp | C++ | src/rewofs/messages.hpp | dsiroky/rewofs | 4fac193bfcb0aecde46eed9d689dce76f037d4c2 | [
"MIT"
] | 3 | 2020-04-21T10:06:42.000Z | 2021-04-15T09:41:08.000Z | src/rewofs/messages.hpp | dsiroky/rewofs | 4fac193bfcb0aecde46eed9d689dce76f037d4c2 | [
"MIT"
] | null | null | null | src/rewofs/messages.hpp | dsiroky/rewofs | 4fac193bfcb0aecde46eed9d689dce76f037d4c2 | [
"MIT"
] | null | null | null | /// Messages support.
///
/// @file
#pragma once
#ifndef MESSAGES_HPP__78PIAARG
#define MESSAGES_HPP__78PIAARG
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "rewofs/messages/all.hpp"
//==========================================================================
namespace rewofs {
//========... | 25.210526 | 76 | 0.463466 | dsiroky |
3afb034fa247a84a67c7cb0e73e7ce363f5115c2 | 15,765 | hpp | C++ | include/boost/wintls/stream.hpp | xiaoxiaozhu5/boost-wintls | 93cb896500fbbad581e0362a133593f0e1b14d56 | [
"BSL-1.0"
] | 6 | 2020-08-12T21:06:50.000Z | 2020-08-30T17:23:27.000Z | include/boost/wintls/stream.hpp | xiaoxiaozhu5/boost-wintls | 93cb896500fbbad581e0362a133593f0e1b14d56 | [
"BSL-1.0"
] | 9 | 2020-09-22T08:55:25.000Z | 2020-12-12T14:24:57.000Z | include/boost/wintls/stream.hpp | xiaoxiaozhu5/boost-wintls | 93cb896500fbbad581e0362a133593f0e1b14d56 | [
"BSL-1.0"
] | 1 | 2020-08-12T20:53:10.000Z | 2020-08-12T20:53:10.000Z | //
// Copyright (c) 2020 Kasper Laudrup (laudrup at stacktrace dot dk)
//
// 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 BOOST_WINTLS_STREAM_HPP
#define BOOST_WINTLS_STREAM_HPP
#include <boost/wintls/e... | 34.72467 | 122 | 0.69242 | xiaoxiaozhu5 |
3afcda5826f1abdbdc760346f6fd7073e043c3fa | 1,400 | cpp | C++ | source/Test.cpp | MultiSight/multisight-buildy | 516aaf31a448a6e64a22b3dd4fee462d0005ff25 | [
"BSL-1.0"
] | null | null | null | source/Test.cpp | MultiSight/multisight-buildy | 516aaf31a448a6e64a22b3dd4fee462d0005ff25 | [
"BSL-1.0"
] | null | null | null | source/Test.cpp | MultiSight/multisight-buildy | 516aaf31a448a6e64a22b3dd4fee462d0005ff25 | [
"BSL-1.0"
] | null | null | null |
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// XSDK
// Copyright (c) 2015 Schneider Electric
//
// Use, modification, and distribution is subject to the Boost Software License,
// Version 1.0 (See accompanying file LICENSE).
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | 33.333333 | 115 | 0.419286 | MultiSight |
3afdc74e2722fe07e0dc18fd3aad7fa7b40cc535 | 2,861 | cpp | C++ | app/GUI/immediate/BloodSplat.cpp | isonil/survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | 1 | 2017-05-12T10:12:41.000Z | 2017-05-12T10:12:41.000Z | app/GUI/immediate/BloodSplat.cpp | isonil/Survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | null | null | null | app/GUI/immediate/BloodSplat.cpp | isonil/Survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | 1 | 2019-01-09T04:05:36.000Z | 2019-01-09T04:05:36.000Z | #include "BloodSplat.hpp"
#include "../../Global.hpp"
#include "../../Core.hpp"
#include "engine/util/Math.hpp"
#include "engine/app3D/Device.hpp"
#include "engine/GUI/GUIManager.hpp"
#include "engine/GUI/IGUIRenderer.hpp"
#include "engine/GUI/IGUITexture.hpp"
namespace app
{
BloodSplat::BloodSplat()
: m_reached... | 31.788889 | 106 | 0.701503 | isonil |
d7013ba1caf402de08b963abc04f796cef0d5360 | 104,252 | cpp | C++ | webkit/WebCore/rendering/RenderBlockLineLayout.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 15 | 2016-01-05T12:43:41.000Z | 2022-03-15T10:34:47.000Z | webkit/WebCore/rendering/RenderBlockLineLayout.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | null | null | null | webkit/WebCore/rendering/RenderBlockLineLayout.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 2 | 2020-11-30T18:36:01.000Z | 2021-02-05T23:20:24.000Z | /*
* Copyright (C) 2000 Lars Knoll (knoll@kde.org)
* Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009 Apple Inc. All right reserved.
* Copyright (c) 2010,2011 ACCESS CO., LTD. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library Gene... | 42.972795 | 213 | 0.556709 | s1rcheese |
d7033882a609c4f6412710eb1ce7736d5113a10d | 2,779 | hpp | C++ | include/gba/video/palettes.hpp | felixjones/gba-hpp | 66c84e2261c9a2d8e678e8cefb4f43f8c1c13cf3 | [
"Zlib"
] | 5 | 2022-03-12T19:16:58.000Z | 2022-03-24T20:35:45.000Z | include/gba/video/palettes.hpp | felixjones/gba-hpp | 66c84e2261c9a2d8e678e8cefb4f43f8c1c13cf3 | [
"Zlib"
] | null | null | null | include/gba/video/palettes.hpp | felixjones/gba-hpp | 66c84e2261c9a2d8e678e8cefb4f43f8c1c13cf3 | [
"Zlib"
] | null | null | null | /*
===============================================================================
Copyright (C) 2022 gba-hpp contributors
For conditions of distribution and use, see copyright notice in LICENSE.md
===============================================================================
*/
#ifndef GBAXX_VIDEO_PALETTES_HPP
#... | 30.877778 | 131 | 0.600576 | felixjones |
d705b08b95b049207c09cdbde58f67de3dc48c16 | 857 | cpp | C++ | test/Statistics/Sample.cpp | kurocha/statistics | bc9ff66fc77af326fd9b70d1fd0c0e30b55aaa68 | [
"MIT",
"Unlicense"
] | null | null | null | test/Statistics/Sample.cpp | kurocha/statistics | bc9ff66fc77af326fd9b70d1fd0c0e30b55aaa68 | [
"MIT",
"Unlicense"
] | null | null | null | test/Statistics/Sample.cpp | kurocha/statistics | bc9ff66fc77af326fd9b70d1fd0c0e30b55aaa68 | [
"MIT",
"Unlicense"
] | null | null | null | //
// Distribution.cpp
// This file is part of the "Numerics" project and released under the MIT License.
//
// Created by Samuel Williams on 4/11/2017.
// Copyright, 2017, by Samuel Williams. All rights reserved.
//
#include <UnitTest/UnitTest.hpp>
#include <Statistics/Sample.hpp>
namespace Statistics
{
using ... | 25.205882 | 88 | 0.693116 | kurocha |
d706e141b871e4cdd5374156ed41fc0436b224ec | 344 | cpp | C++ | Systems/C++/Jumping/Refrences/memory.cpp | dheerajpv/Notes | 95a697034ae07d70850f0f7b9dd24d3eb599ee20 | [
"MIT"
] | null | null | null | Systems/C++/Jumping/Refrences/memory.cpp | dheerajpv/Notes | 95a697034ae07d70850f0f7b9dd24d3eb599ee20 | [
"MIT"
] | null | null | null | Systems/C++/Jumping/Refrences/memory.cpp | dheerajpv/Notes | 95a697034ae07d70850f0f7b9dd24d3eb599ee20 | [
"MIT"
] | null | null | null | /* & can we used to find a variable memory adress
When & is used in a declaration, it is a reference operator.
When & is not used in a declaration, it is an address operator.
*/
#include <iostream>
int main() {
int power = 9000;
// Print power
std::cout << power << "\n";
// Print &power
std::cout... | 17.2 | 63 | 0.610465 | dheerajpv |
d7086144433011a86e8700f79c8fc8a9ef570213 | 544 | cpp | C++ | source/xyo/xyo-datastructures-json-varray.cpp | g-stefan/xyo | e203cb699d6bba46eae6c8157f27ea29ab7506f1 | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo/xyo-datastructures-json-varray.cpp | g-stefan/xyo | e203cb699d6bba46eae6c8157f27ea29ab7506f1 | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo/xyo-datastructures-json-varray.cpp | g-stefan/xyo | e203cb699d6bba46eae6c8157f27ea29ab7506f1 | [
"MIT",
"Unlicense"
] | null | null | null | //
// XYO
//
// Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#include "xyo-datastructures-json-varray.hpp"
namespace XYO {
namespace DataStructures {
namespace JSON {
... | 18.133333 | 81 | 0.645221 | g-stefan |
d7098d33d17b333e9e46f9178df036df48ef4b09 | 850 | cpp | C++ | src/shapes/star.cpp | hermet/rive-cpp | d69378d97e7d987930c3764655153bf8ddc65966 | [
"MIT"
] | null | null | null | src/shapes/star.cpp | hermet/rive-cpp | d69378d97e7d987930c3764655153bf8ddc65966 | [
"MIT"
] | null | null | null | src/shapes/star.cpp | hermet/rive-cpp | d69378d97e7d987930c3764655153bf8ddc65966 | [
"MIT"
] | null | null | null | #include "shapes/star.hpp"
#include "shapes/straight_vertex.hpp"
#include <cmath>
using namespace rive;
Star::Star() {}
void Star::innerRadiusChanged() { markPathDirty(); }
int Star::expectedSize() { return points() * 2; }
void Star::buildPolygon()
{
auto actualPoints = expectedSize();
auto halfWidth = width() /... | 21.794872 | 70 | 0.663529 | hermet |
d710afadd621bb289fdc523ad1024a154b77c014 | 2,716 | cpp | C++ | options/group.cpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | 1 | 2021-06-14T09:00:47.000Z | 2021-06-14T09:00:47.000Z | options/group.cpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | null | null | null | options/group.cpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | null | null | null | #include "group.hpp"
#include "defs.hpp"
#include <QStandardPaths>
#include <QDir>
#include <QDebug>
namespace options {
group::group(const QString& name) : name(name)
{
if (name == "")
return;
auto conf = ini_file();
conf->beginGroup(name);
for (auto& k_ : conf->childKeys())
{
au... | 22.823529 | 111 | 0.582842 | sheepsskullcity |
d7135af8f57086948d86dbe63885cb0adecf2400 | 458 | cpp | C++ | codebook/graph/match.cpp | nella17/NYCU_gAwr_gurA | e168cafc9e728a2cab2d1cafa90a1cfd433b9f59 | [
"CC0-1.0"
] | 1 | 2022-01-23T11:18:52.000Z | 2022-01-23T11:18:52.000Z | codebook/graph/match.cpp | nella17/NYCU_gAwr_gurA | e168cafc9e728a2cab2d1cafa90a1cfd433b9f59 | [
"CC0-1.0"
] | null | null | null | codebook/graph/match.cpp | nella17/NYCU_gAwr_gurA | e168cafc9e728a2cab2d1cafa90a1cfd433b9f59 | [
"CC0-1.0"
] | 1 | 2022-02-02T15:24:39.000Z | 2022-02-02T15:24:39.000Z | array<int,SZ> mp;
array<bool,SZ> vis;
bool dfs(int now) {
if(vis[now]) return false;
vis[now] = true;
for(int i = 0 ; i < n ; ++i) {
if(!g[now][i]) continue;
if(mp[i] == -1 or dfs(mp[i]))
return mp[i] = now , 1;
}
return false;
}
int solve() {
mp.fill(-1)... | 20.818182 | 38 | 0.425764 | nella17 |
d714da4c8b42ab9d28ea7cb3eaa59ffe581bf37c | 3,043 | hh | C++ | include/Wektor.hh | KPO-2020-2021/zad5_3-258980 | 522ed2fa86b50f782826c2597f4d408e4a552d86 | [
"Unlicense"
] | null | null | null | include/Wektor.hh | KPO-2020-2021/zad5_3-258980 | 522ed2fa86b50f782826c2597f4d408e4a552d86 | [
"Unlicense"
] | null | null | null | include/Wektor.hh | KPO-2020-2021/zad5_3-258980 | 522ed2fa86b50f782826c2597f4d408e4a552d86 | [
"Unlicense"
] | null | null | null | #ifndef WEKTOR_HH
#define WEKTOR_HH
#include <iostream>
#include <cmath>
using namespace std;
template <int Wymiar>
class Wektor
{
static int wszystkie;
static int aktualne;
double _wsp[Wymiar];
public:
Wektor();
Wektor(Wektor<Wymiar> &wek)
{
for (int i = 0; i < Wymiar; i++)
... | 19.632258 | 78 | 0.56096 | KPO-2020-2021 |
d716504018243631a6ce13abf3d43dffb6ab8b6a | 1,572 | cpp | C++ | CppPool/cpp_d07a/ex00/Skat.cpp | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 40 | 2018-01-28T14:23:27.000Z | 2022-03-05T15:57:47.000Z | CppPool/cpp_d07a/ex00/Skat.cpp | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 1 | 2021-10-05T09:03:51.000Z | 2021-10-05T09:03:51.000Z | CppPool/cpp_d07a/ex00/Skat.cpp | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 73 | 2019-01-07T18:47:00.000Z | 2022-03-31T08:48:38.000Z | //
// Skat.cpp for skat in /home/gwendoline/Epitech/Tek2/rendu/Piscine_cpp/piscine_cpp_d07a/ex00
//
// Made by Gwendoline Rodriguez
// Login <gwendoline@epitech.net>
//
// Started on Tue Jan 12 22:51:08 2016 Gwendoline Rodriguez
// Last update Tue Jan 12 22:57:53 2016 Gwendoline Rodriguez
//
#include <iostream>
#in... | 21.534247 | 113 | 0.613868 | 667MARTIN |
d719bcf6300b8b22769044918e506f0773d3a849 | 681 | cpp | C++ | val_mountain.cpp | shirishbahirat/algorithm | ec743d4c16ab4f429f22bd6f71540341b3905b3b | [
"Apache-2.0"
] | null | null | null | val_mountain.cpp | shirishbahirat/algorithm | ec743d4c16ab4f429f22bd6f71540341b3905b3b | [
"Apache-2.0"
] | null | null | null | val_mountain.cpp | shirishbahirat/algorithm | ec743d4c16ab4f429f22bd6f71540341b3905b3b | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution
{
public:
bool validMountainArray(vector<int> &arr)
{
if (arr.size() < 3)
{
return false;
}
int i = 1;
while ((i < arr.size()) && (arr[i] > arr[i - 1]))
{
i++;
}
if ((i == 1) || (i == arr.size... | 13.352941 | 53 | 0.481645 | shirishbahirat |
d71bee6bfe2958e96d832768d46e405457209ac2 | 1,143 | hpp | C++ | platforms/linux/src/Application/Packets/Base/HostToControllerPacket.hpp | iotile/baBLE-linux | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | 13 | 2018-07-04T16:35:37.000Z | 2021-03-03T10:41:07.000Z | platforms/linux/src/Application/Packets/Base/HostToControllerPacket.hpp | iotile/baBLE | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | 11 | 2018-06-01T20:32:32.000Z | 2019-01-21T17:03:47.000Z | platforms/linux/src/Application/Packets/Base/HostToControllerPacket.hpp | iotile/baBLE-linux | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | null | null | null | #ifndef BABLE_HOSTTOCONTROLLERPACKET_HPP
#define BABLE_HOSTTOCONTROLLERPACKET_HPP
#include "Application/PacketRouter/PacketRouter.hpp"
#include "Log/Log.hpp"
namespace Packet {
class HostToControllerPacket : public AbstractPacket {
public:
static Packet::Type initial_type() {
return Packet::Type::FLAT... | 30.078947 | 120 | 0.725284 | iotile |
d71ca307fe0f1fa24832f96a53c25de204595294 | 1,899 | cpp | C++ | pianoKeySet.cpp | planarian/relative_keys | 43d2e46faaa3add82ff7e7a3b6441f1772249f82 | [
"MIT"
] | 1 | 2021-11-01T12:11:53.000Z | 2021-11-01T12:11:53.000Z | pianoKeySet.cpp | planarian/relative_keys | 43d2e46faaa3add82ff7e7a3b6441f1772249f82 | [
"MIT"
] | null | null | null | pianoKeySet.cpp | planarian/relative_keys | 43d2e46faaa3add82ff7e7a3b6441f1772249f82 | [
"MIT"
] | null | null | null | #include "pianoKeySet.h"
#include <QHBoxLayout>
#include "whiteKey.h"
#include "fullBlackKey.h"
PianoKeySet::PianoKeySet(const PianoSynth * a, const Instrument * i, const Switcher * swi, QWidget *parent) :
KeySet(a, i, swi, parent)
{
// determine which white keys have black keys
blackLocations... | 31.131148 | 132 | 0.564508 | planarian |
c013007036cc008c20aa256bb2dfafb94b5f1ed1 | 3,922 | cpp | C++ | amd_depthoffieldfx/src/AMD_DepthOfFieldFX.cpp | GPUOpen-Effects/DepthOfFieldFX | d6e07f36b4804975953958031536ab7876223d5b | [
"MIT"
] | 74 | 2017-03-28T15:07:11.000Z | 2021-12-27T18:16:59.000Z | amd_depthoffieldfx/src/AMD_DepthOfFieldFX.cpp | amdvlk/amd_depthoffieldfx | d6e07f36b4804975953958031536ab7876223d5b | [
"MIT"
] | 1 | 2019-04-15T09:10:05.000Z | 2019-04-22T07:41:14.000Z | amd_depthoffieldfx/src/AMD_DepthOfFieldFX.cpp | amdvlk/amd_depthoffieldfx | d6e07f36b4804975953958031536ab7876223d5b | [
"MIT"
] | 8 | 2017-05-31T11:06:12.000Z | 2020-10-28T22:14:22.000Z | //
// Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rig... | 36.654206 | 152 | 0.758032 | GPUOpen-Effects |
c0133c11a4e3a225fe8ca9208593c164f02e78f7 | 11,044 | cpp | C++ | qt-solutions/qtscriptclassic/src/qscriptecmaregexp.cpp | privet56/qDesktopSearch | 702aac770a11895e19180bd4ed2279c7a8ab64be | [
"Apache-2.0"
] | 10 | 2016-04-15T15:31:08.000Z | 2019-10-02T01:19:48.000Z | qt-solutions/qtscriptclassic/src/qscriptecmaregexp.cpp | privet56/qDesktopSearch | 702aac770a11895e19180bd4ed2279c7a8ab64be | [
"Apache-2.0"
] | null | null | null | qt-solutions/qtscriptclassic/src/qscriptecmaregexp.cpp | privet56/qDesktopSearch | 702aac770a11895e19180bd4ed2279c7a8ab64be | [
"Apache-2.0"
] | 5 | 2016-04-15T15:31:10.000Z | 2022-02-22T02:00:06.000Z | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Solutions component.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BS... | 32.674556 | 128 | 0.644603 | privet56 |
c0134e53b20391e75b46a74e808fd577475e06ff | 860 | hh | C++ | include/Vector2.hh | KPO-2020-2021/zad4-259355 | 3090b8aca05b95d22e456edd147d29541fdf58bd | [
"Unlicense"
] | null | null | null | include/Vector2.hh | KPO-2020-2021/zad4-259355 | 3090b8aca05b95d22e456edd147d29541fdf58bd | [
"Unlicense"
] | null | null | null | include/Vector2.hh | KPO-2020-2021/zad4-259355 | 3090b8aca05b95d22e456edd147d29541fdf58bd | [
"Unlicense"
] | null | null | null | #ifndef Vector2_HH
#define Vector2_HH
#include "vector.hh"
typedef Vector<double, 2> Vector2;
//Definicje metod szczegolnych gdy dzialamy na wektorach2D
//Przeciazenie operatora porownania
//Przeciazenie operatora roznych
//Przeciazenie operatora wejscia i wyjscia
template<>
bool Vector2::operator == (const Vector2... | 20.47619 | 69 | 0.72907 | KPO-2020-2021 |
c017cca7693a58c8720766c2c29e12eee58572ef | 1,373 | cpp | C++ | src/bindings/python/PyLogTransform.cpp | rakoman/OpenColorIO | 7ec3772ac7f3594584041261f362cd952b8b6acf | [
"BSD-3-Clause"
] | 1 | 2021-10-20T03:06:38.000Z | 2021-10-20T03:06:38.000Z | src/bindings/python/PyLogTransform.cpp | rakoman/OpenColorIO | 7ec3772ac7f3594584041261f362cd952b8b6acf | [
"BSD-3-Clause"
] | 2 | 2020-05-21T11:19:23.000Z | 2020-05-21T11:26:09.000Z | src/bindings/python/PyLogTransform.cpp | rakoman/OpenColorIO | 7ec3772ac7f3594584041261f362cd952b8b6acf | [
"BSD-3-Clause"
] | 1 | 2020-05-21T11:25:19.000Z | 2020-05-21T11:25:19.000Z | // SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include "PyTransform.h"
namespace OCIO_NAMESPACE
{
void bindPyLogTransform(py::module & m)
{
LogTransformRcPtr DEFAULT = LogTransform::Create();
py::class_<LogTransform,
LogTransformRcPtr /* holde... | 33.487805 | 97 | 0.588492 | rakoman |
c018c4936bda07707c1e9a37173b829b61e552c9 | 19,816 | cpp | C++ | src/sip-transports.cpp | danias/drachtio-server | cf8bb18e74a1eb2380053e3c31cfa398efd513d4 | [
"MIT"
] | null | null | null | src/sip-transports.cpp | danias/drachtio-server | cf8bb18e74a1eb2380053e3c31cfa398efd513d4 | [
"MIT"
] | null | null | null | src/sip-transports.cpp | danias/drachtio-server | cf8bb18e74a1eb2380053e3c31cfa398efd513d4 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2013, David C Horton
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, merge, publish, distribute,... | 34.643357 | 146 | 0.606833 | danias |
c021f01b79d0f331a61a7f0aba6a7bdc21cb98a6 | 5,454 | cpp | C++ | die_source/gui_source/threadentropy.cpp | jha334201553/DIE-engine-PEID- | f251958c2bbb1ed23a5dac87f3e72659c85dc276 | [
"MIT"
] | null | null | null | die_source/gui_source/threadentropy.cpp | jha334201553/DIE-engine-PEID- | f251958c2bbb1ed23a5dac87f3e72659c85dc276 | [
"MIT"
] | null | null | null | die_source/gui_source/threadentropy.cpp | jha334201553/DIE-engine-PEID- | f251958c2bbb1ed23a5dac87f3e72659c85dc276 | [
"MIT"
] | null | null | null | // Copyright (c) 2012-2019 hors<horsicq@gmail.com>
//
// 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, ... | 23.110169 | 172 | 0.59956 | jha334201553 |
c026e664cab0985bf31353f1535f996277729da0 | 560 | hpp | C++ | src/ir/ir_member_access.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | 4 | 2017-10-31T14:01:58.000Z | 2019-07-16T04:53:32.000Z | src/ir/ir_member_access.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | null | null | null | src/ir/ir_member_access.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | 2 | 2018-01-23T12:59:07.000Z | 2019-07-16T04:53:39.000Z | #ifndef MALANG_IR_IR_MEMBER_ACCESS_HPP
#define MALANG_IR_IR_MEMBER_ACCESS_HPP
#include "ir_values.hpp"
struct IR_Member_Access : IR_LValue
{
virtual ~IR_Member_Access() = default;
IR_Member_Access(const Source_Location &src_loc, IR_Value *thing, const std::string &member_name)
: IR_LValue(src_loc)
... | 23.333333 | 101 | 0.719643 | traplol |
c02a9d0b06b03f0a55ffa2f292f21fe6ac497f9e | 1,134 | cpp | C++ | Binary-String-MEX.cpp | Sayan3990/Codechef | e693927efb4ce12c3e12875aa7082c2001d09b7c | [
"MIT"
] | 1 | 2021-07-11T10:34:25.000Z | 2021-07-11T10:34:25.000Z | Binary-String-MEX.cpp | Sayan3990/Codechef | e693927efb4ce12c3e12875aa7082c2001d09b7c | [
"MIT"
] | null | null | null | Binary-String-MEX.cpp | Sayan3990/Codechef | e693927efb4ce12c3e12875aa7082c2001d09b7c | [
"MIT"
] | null | null | null | // https://www.codechef.com/APRIL21B/problems/MEXSTR
#include <iostream>
#include <cstring>
#include <cmath>
#include <bitset>
#define lli long long int
#define SIZE 1000000
using namespace std;
int match(bitset<SIZE> &S, bitset<SIZE> &sub, lli num, lli num2) {
lli i = num, j = num2;
while(1) ... | 18.9 | 67 | 0.444444 | Sayan3990 |
c02db33cd76a23bd303fba601861377ad2564e87 | 23,789 | cpp | C++ | imap/src/ImapClient.cpp | webOS-ports/mojomail | 49358ac2878e010f5c6e3bd962f047c476c11fc3 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:20:27.000Z | 2021-01-02T08:14:23.000Z | mojomail/imap/src/ImapClient.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 3 | 2019-05-11T19:17:56.000Z | 2021-11-24T16:04:36.000Z | mojomail/imap/src/ImapClient.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:21:13.000Z | 2021-01-02T02:37:10.000Z | // @@@LICENSE
//
// Copyright (c) 2010-2013 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... | 27.469977 | 163 | 0.754508 | webOS-ports |
c03160e21ef08c9d499bda6616c6af83a39fef26 | 2,250 | cpp | C++ | Projects/Skylicht/Components/Source/ParticleSystem/Particles/CInterpolator.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 310 | 2019-11-25T04:14:11.000Z | 2022-03-31T23:39:19.000Z | Projects/Skylicht/Components/Source/ParticleSystem/Particles/CInterpolator.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 79 | 2019-11-17T07:51:02.000Z | 2022-03-22T08:49:41.000Z | Projects/Skylicht/Components/Source/ParticleSystem/Particles/CInterpolator.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 24 | 2020-05-10T09:37:55.000Z | 2022-03-05T13:19:31.000Z | /*
!@
MIT License
Copyright (c) 2020 Skylicht Technology CO., LTD
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... | 29.220779 | 141 | 0.718222 | tsukoyumi |
c03301d9184673383e859046f98c628428f78c93 | 4,210 | cpp | C++ | common/my_capture.cpp | ThreeD-Tracker-FAB/3DTrackerFAB-main | e91660f9391feac02f5657a792771230450cf4f8 | [
"MIT"
] | 2 | 2019-01-23T09:15:34.000Z | 2019-04-18T08:45:33.000Z | common/my_capture.cpp | ThreeD-Tracker-FAB/3DTrackerFAB-main | e91660f9391feac02f5657a792771230450cf4f8 | [
"MIT"
] | 1 | 2018-11-05T13:10:55.000Z | 2019-11-18T13:34:50.000Z | common/my_capture.cpp | ThreeD-Tracker-FAB/3DTrackerFAB-main | e91660f9391feac02f5657a792771230450cf4f8 | [
"MIT"
] | 2 | 2018-03-11T22:16:02.000Z | 2019-09-05T15:36:14.000Z | #include "my_capture.h"
#include "my_capture_d400.h"
#include "my_capture_r200.h"
#include "my_capture_kinect1.h"
#include <iostream>
#include <pcl/filters/radius_outlier_removal.h>
#include <pcl/filters/statistical_outlier_removal.h>
#include <pcl/features/normal_3d_omp.h>
#include <pcl/filters/crop_box.h>
#include ... | 28.835616 | 201 | 0.723515 | ThreeD-Tracker-FAB |
c03d0241e201ed10088367487461c3ee237c9b49 | 16,857 | cpp | C++ | test/clang-tidy/modernize-use-emplace.cpp | Szelethus/clang-tools-extra | 4bff9e7bc96ac495d7b6b2e8cc6c6f629e824022 | [
"Apache-2.0"
] | 171 | 2018-09-17T13:15:12.000Z | 2022-03-18T03:47:04.000Z | test/clang-tidy/modernize-use-emplace.cpp | Szelethus/clang-tools-extra | 4bff9e7bc96ac495d7b6b2e8cc6c6f629e824022 | [
"Apache-2.0"
] | 7 | 2018-10-05T04:54:18.000Z | 2020-10-02T07:58:13.000Z | test/clang-tidy/modernize-use-emplace.cpp | Szelethus/clang-tools-extra | 4bff9e7bc96ac495d7b6b2e8cc6c6f629e824022 | [
"Apache-2.0"
] | 35 | 2018-09-18T07:46:53.000Z | 2022-03-27T07:59:48.000Z | // RUN: %check_clang_tidy %s modernize-use-emplace %t -- \
// RUN: -config="{CheckOptions: \
// RUN: [{key: modernize-use-emplace.ContainersWithPushBack, \
// RUN: value: '::std::vector; ::std::list; ::std::deque; llvm::LikeASmallVector'}, \
// RUN: {key: modernize-use-emplace.T... | 27.725329 | 107 | 0.644599 | Szelethus |
c03f765978b0e3bde7d4ec612271646aa28e3f9f | 11,065 | hpp | C++ | RetroSnake/RetroSnake/GameMap.hpp | VoidYTMain/RetroSnake | f3080ad424dddbda5440d5205597081cf5b9e93b | [
"MIT"
] | 2 | 2019-01-18T07:37:54.000Z | 2019-01-19T10:57:16.000Z | RetroSnake/RetroSnake/GameMap.hpp | Vyterm/RetroSnake | f3080ad424dddbda5440d5205597081cf5b9e93b | [
"MIT"
] | null | null | null | RetroSnake/RetroSnake/GameMap.hpp | Vyterm/RetroSnake | f3080ad424dddbda5440d5205597081cf5b9e93b | [
"MIT"
] | null | null | null | #ifndef GAME_MAP_HPP
#define GAME_MAP_HPP
#include "GameModel.hpp"
#include "GameMapItem.hpp"
#include "winapi.hpp"
#include <iostream>
#include <string>
#include <memory>
#include <vector>
#include <ctime>
using std::cout;
using std::cin;
using std::endl;
using std::string;
template <int Width, int Height>
class ... | 30.65097 | 179 | 0.690285 | VoidYTMain |
c047457e5014c0962a53d506e38c46529f6f7530 | 14,372 | cpp | C++ | arangod/Aql/WindowExecutor.cpp | lo-ca/arangodb | 92a2cdda102279fc18ba238efafde118355cb000 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | arangod/Aql/WindowExecutor.cpp | solisoft/arangodb | ebb11f901fdcac72ca298f7f329427c7ec51b157 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | arangod/Aql/WindowExecutor.cpp | solisoft/arangodb | ebb11f901fdcac72ca298f7f329427c7ec51b157 | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 32.812785 | 112 | 0.671236 | lo-ca |
c047a2b1488bc328fccce013da5856484156ac48 | 20,350 | cpp | C++ | src/Sniffles.cpp | Nextomics/Sniffles | 92e5f2e994b3e10cc3d1f8c96d12d439613c08b5 | [
"MIT"
] | 1 | 2021-05-16T03:31:49.000Z | 2021-05-16T03:31:49.000Z | src/Sniffles.cpp | Nextomics/Sniffles | 92e5f2e994b3e10cc3d1f8c96d12d439613c08b5 | [
"MIT"
] | null | null | null | src/Sniffles.cpp | Nextomics/Sniffles | 92e5f2e994b3e10cc3d1f8c96d12d439613c08b5 | [
"MIT"
] | null | null | null | //============================================================================
// Name : Sniffles.cpp
// Author : Fritz Sedlazeck
// Version :
// Copyright : MIT License
// Description : Detection of SVs for long read data.
//============================================================================... | 39.746094 | 274 | 0.672432 | Nextomics |
c0486d2b611cb75e22dde52f08e3e96bcac2726e | 4,395 | cpp | C++ | coap/client/CoapRequest.cpp | HaknCo/sming-coap | 8a20f5708b53df3405805aecaea82c8a683859c2 | [
"MIT"
] | 10 | 2015-12-15T18:32:04.000Z | 2020-10-27T15:09:05.000Z | coap/client/CoapRequest.cpp | HaknCo/sming-coap | 8a20f5708b53df3405805aecaea82c8a683859c2 | [
"MIT"
] | 2 | 2016-07-04T20:46:51.000Z | 2021-05-14T19:12:35.000Z | coap/client/CoapRequest.cpp | HaknCo/sming-coap | 8a20f5708b53df3405805aecaea82c8a683859c2 | [
"MIT"
] | 1 | 2015-12-17T23:50:47.000Z | 2015-12-17T23:50:47.000Z | /*
Copyright (c) 2015 Hakan Coskun, http://www.blueonshop.de
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of c... | 31.847826 | 116 | 0.736064 | HaknCo |
c05063a28ed731ea3ab1d031249896ed5df577ce | 1,768 | cpp | C++ | src/nh99/mod_mc1.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 79 | 2015-01-16T14:14:22.000Z | 2022-01-24T06:28:15.000Z | src/nh99/mod_mc1.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 172 | 2015-01-21T01:53:57.000Z | 2022-03-29T19:57:31.000Z | src/nh99/mod_mc1.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 22 | 2015-01-15T18:11:54.000Z | 2022-01-11T21:47:51.000Z | /**
* Author: David Fournier
* Copyright (c) 2008-2012 Regents of the University of California
*/
#include <admodel.h>
void initial_params::add_random_vector(const dvector& x)
{
int ii=1;
for (int i=0;i<num_initial_params;i++)
{
if (withinbound(0,(varsptr[i])->phase_start,current_phase))
{
(vars... | 19.644444 | 78 | 0.593891 | johnrsibert |
c052b627264dd19c509d96bb50f5176e6f6bd125 | 80,349 | cpp | C++ | point_light/app.cpp | colintan95/vk_projects | 0b048455f240c8105848f210be1610980c3c40ac | [
"MIT"
] | null | null | null | point_light/app.cpp | colintan95/vk_projects | 0b048455f240c8105848f210be1610980c3c40ac | [
"MIT"
] | null | null | null | point_light/app.cpp | colintan95/vk_projects | 0b048455f240c8105848f210be1610980c3c40ac | [
"MIT"
] | null | null | null | #include "point_light/app.h"
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <algorithm>
#include <iostream>
#include <optional>
#include <set>
#include <string>
#include <string_view>
#include <vector>
#include "utils/camera.h"
#include "utils/model.h"
#in... | 37.66948 | 80 | 0.752467 | colintan95 |
c058a1bd0854d48a90a2080ba554bdbce6f536e8 | 7,605 | cpp | C++ | IrrlichtOpenCVGlue/ConcurrentBlobDetection.cpp | wolfgang1991/CommonLibraries | 949251019cc8dd532938d16ab85a4e772eb6817e | [
"Zlib"
] | null | null | null | IrrlichtOpenCVGlue/ConcurrentBlobDetection.cpp | wolfgang1991/CommonLibraries | 949251019cc8dd532938d16ab85a4e772eb6817e | [
"Zlib"
] | 1 | 2020-07-31T13:20:54.000Z | 2020-08-06T15:45:39.000Z | IrrlichtOpenCVGlue/ConcurrentBlobDetection.cpp | wolfgang1991/CommonLibraries | 949251019cc8dd532938d16ab85a4e772eb6817e | [
"Zlib"
] | null | null | null | #include "ConcurrentBlobDetection.h"
#include "IrrCVImageConversion.h"
#include <timing.h>
#include <Threading.h>
#include <mathUtils.h>
#include <Matrix.h>
#include <opencv2/features2d.hpp>
using namespace cv;
using namespace irr;
using namespace core;
using namespace video;
class ConcurrentBlobDetectionPrivate{
... | 31.296296 | 302 | 0.767258 | wolfgang1991 |
c05c39e464ebdda3296cd9a293fcad4675004d27 | 3,977 | hpp | C++ | water/threads/posix/bits.hpp | watercpp/water | 7a9a292a2513529cf5dabac1bc7a755055dac9b5 | [
"MIT"
] | 5 | 2017-04-18T18:18:50.000Z | 2018-08-03T09:13:26.000Z | water/threads/posix/bits.hpp | watercpp/water | 7a9a292a2513529cf5dabac1bc7a755055dac9b5 | [
"MIT"
] | null | null | null | water/threads/posix/bits.hpp | watercpp/water | 7a9a292a2513529cf5dabac1bc7a755055dac9b5 | [
"MIT"
] | null | null | null | // Copyright 2017 Johan Paulsson
// This file is part of the Water C++ Library. It is licensed under the MIT License.
// See the license.txt file in this distribution or https://watercpp.com/license.txt
//\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_
#ifndef WATER_THREADS_POSIX_BIT... | 30.829457 | 139 | 0.742268 | watercpp |
c05de1ec4158415f333c96db4e70cff1ce3abcf5 | 2,327 | cpp | C++ | src/lexer.cpp | ollelogdahl/Inel | e731f57062340f3ab8648df27259ff50c41e8d97 | [
"MIT"
] | null | null | null | src/lexer.cpp | ollelogdahl/Inel | e731f57062340f3ab8648df27259ff50c41e8d97 | [
"MIT"
] | null | null | null | src/lexer.cpp | ollelogdahl/Inel | e731f57062340f3ab8648df27259ff50c41e8d97 | [
"MIT"
] | null | null | null | #include "lexer.h"
#include <iostream>
#include <fstream>
#include <map>
#include <regex>
const std::vector<std::pair<std::string, TokenType>> tokenRules {
// Keywords
{R"(if)", t_if},
{R"(while)", t_while},
{R"(return)", t_re... | 28.036145 | 80 | 0.429738 | ollelogdahl |
c05ed29c262947d2d5ccf577e8cde98179d5d58b | 2,057 | cpp | C++ | pronto/graphics/pc/d3d12_command_list.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | pronto/graphics/pc/d3d12_command_list.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | pronto/graphics/pc/d3d12_command_list.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | #include "d3d12_command_list.h"
#include "d3d12_dynamic_descriptor_heap.h"
#include "d3d12_upload_buffer.h"
#include "d3d12_constant_buffer_heap.h"
#include <assert.h>
namespace pronto
{
namespace graphics
{
//---------------------------------------------------------------------------------------------
Co... | 24.488095 | 108 | 0.64317 | MgBag |
c063e89d5aaa02126820d42a1b320a76ff0b9729 | 1,101 | cpp | C++ | src_smartcontract_db/schema_table/record/table_record_local/LocalCdbOid.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_smartcontract_db/schema_table/record/table_record_local/LocalCdbOid.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_smartcontract_db/schema_table/record/table_record_local/LocalCdbOid.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* LocalCdbOid.cpp
*
* Created on: 2020/09/25
* Author: iizuka
*/
#include "schema_table/record/table_record_local/LocalCdbOid.h"
#include "schema_table/record/table_record_value/VmInstanceValueConverter.h"
namespace codablecash {
LocalCdbOid::LocalCdbOid(const LocalCdbOid& inst) : CdbOid(inst) {
}
Lo... | 19.315789 | 76 | 0.73842 | alinous-core |
c0653089c46f02d59bb5f645cd9d0818fe0cae63 | 562 | cpp | C++ | src/model/rayTracer/rayTracer.cpp | dalewzm/IceRayTracer | ba26e44a88fb6ff37106707ccfd3e73e123d0d60 | [
"Apache-1.1"
] | null | null | null | src/model/rayTracer/rayTracer.cpp | dalewzm/IceRayTracer | ba26e44a88fb6ff37106707ccfd3e73e123d0d60 | [
"Apache-1.1"
] | null | null | null | src/model/rayTracer/rayTracer.cpp | dalewzm/IceRayTracer | ba26e44a88fb6ff37106707ccfd3e73e123d0d60 | [
"Apache-1.1"
] | null | null | null | #include "rayTracer.h"
#include <cstdio>
RayTracer::RayTracer()
{
scenePtr = new Scene();
parserPtr = NULL;
}
RayTracer::~RayTracer()
{
if(scenePtr)
delete scenePtr;
if(parserPtr)
delete parserPtr;
}
void RayTracer::run()
{
buildScene();
}
bool RayTracer::buildScene()
{
fprintf(stderr,"thre... | 14.789474 | 63 | 0.569395 | dalewzm |
c06b609ecc365f76e31d514dd073c826d0c454e3 | 3,742 | cpp | C++ | src/libmotifmm/IconButton.cpp | Arquivotheca/OpenCDE | 4bb0f65dab345790bcf8d8422a05dda495990cd1 | [
"BSD-2-Clause-FreeBSD"
] | 11 | 2015-05-30T14:58:42.000Z | 2021-10-12T04:50:00.000Z | src/libmotifmm/IconButton.cpp | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-11-30T08:11:39.000Z | 2021-11-30T08:11:39.000Z | src/libmotifmm/IconButton.cpp | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-05-30T14:58:44.000Z | 2017-09-28T21:58:50.000Z | #include <motifmm.h>
namespace Motif
{
void IconButton::armCallback(Widget widget, XtPointer client_data, XtPointer call_data)
{
IconButton* button = (IconButton*)client_data;
if(button->armFunction.get() != NULL)
{
button->armFunction->execute(button);
}
}
void IconButton::activateCallback(Widget widge... | 27.718519 | 131 | 0.733832 | Arquivotheca |
c071384f0be756381592e46792d4ec0c9953dc30 | 15,404 | cpp | C++ | src/hssh/global_topological/mapping/lev_mar_optimizer.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/hssh/global_topological/mapping/lev_mar_optimizer.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/hssh/global_topological/mapping/lev_mar_optimizer.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-03T07:54:16.000Z | 2021-03-03T07:54:16.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 31.826446 | 120 | 0.566801 | anuranbaka |
c0719985811e50f80299395fac2dcb5e6a782f03 | 2,770 | cxx | C++ | osprey/be/cg/orc_ict/val_prof.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/orc_ict/val_prof.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/orc_ict/val_prof.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2001, Institute of Computing Technology, Chinese Academy of Sciences
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above c... | 34.197531 | 99 | 0.788087 | sharugupta |
c07a909bb7a80af4b7f9b04136aaaff16c2132a1 | 3,404 | hpp | C++ | pose_refinement/SA-LMPE/ba/openMVG/sfm/pipelines/global/GlobalSfM_translation_averaging.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 90 | 2019-05-19T03:48:23.000Z | 2022-02-02T15:20:49.000Z | pose_refinement/SA-LMPE/ba/openMVG/sfm/pipelines/global/GlobalSfM_translation_averaging.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 11 | 2019-05-22T07:45:46.000Z | 2021-05-20T01:48:26.000Z | pose_refinement/SA-LMPE/ba/openMVG/sfm/pipelines/global/GlobalSfM_translation_averaging.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 18 | 2019-05-19T03:48:32.000Z | 2021-05-29T18:19:16.000Z | // This file is part of OpenMVG, an Open Multiple View Geometry C++ library.
// Copyright (c) 2015 Pierre MOULON.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#... | 35.458333 | 89 | 0.772033 | Aurelio93 |
c07b1afeec5d624a520cb38891804774fc3523ac | 467 | hpp | C++ | Xcode Build/that game engine/that_game_engine/C_InteractableTalking.hpp | ThatGamesGuy/that_platform_game | 90c80ebb4e890b9e4684ec87841b4bf4e446a3d1 | [
"MIT"
] | 55 | 2018-06-19T08:22:47.000Z | 2022-03-30T01:02:59.000Z | Xcode Build/that game engine/that_game_engine/C_InteractableTalking.hpp | ThatGamesGuy/that_platform_game | 90c80ebb4e890b9e4684ec87841b4bf4e446a3d1 | [
"MIT"
] | null | null | null | Xcode Build/that game engine/that_game_engine/C_InteractableTalking.hpp | ThatGamesGuy/that_platform_game | 90c80ebb4e890b9e4684ec87841b4bf4e446a3d1 | [
"MIT"
] | 21 | 2019-04-19T15:39:08.000Z | 2022-02-20T11:21:13.000Z | #ifndef C_InteractableTalking_hpp
#define C_InteractableTalking_hpp
#include "Component.hpp"
#include "C_Interactable.hpp"
#include "Debug.hpp"
#include "C_UIWorldLabel.hpp"
#include "ObjectCollection.hpp"
class C_InteractableTalking : public Component, public C_Interactable
{
public:
C_InteractableTalking(Object... | 21.227273 | 69 | 0.770878 | ThatGamesGuy |
c07b8ccd01937d56fc0ab3f41e6d4a4ded2abefe | 8,937 | cpp | C++ | sparse/src/dpcg_merge.cpp | klast/magma | cfb849621be6f697288e995831ec3c9e84530d9d | [
"BSD-3-Clause"
] | 4 | 2020-12-04T13:31:18.000Z | 2021-12-10T11:41:23.000Z | sparse/src/dpcg_merge.cpp | klast/magma | cfb849621be6f697288e995831ec3c9e84530d9d | [
"BSD-3-Clause"
] | 1 | 2021-03-27T20:00:25.000Z | 2021-03-28T06:19:59.000Z | sparse/src/dpcg_merge.cpp | klast/magma | cfb849621be6f697288e995831ec3c9e84530d9d | [
"BSD-3-Clause"
] | 2 | 2020-12-04T13:23:36.000Z | 2021-03-27T00:50:27.000Z | /*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@author Hartwig Anzt
@generated from sparse/src/zpcg_merge.cpp, normal z -> d, Thu Oct 8 23:05:52 2020
*/
#include "magmasparse_intern... | 33.47191 | 137 | 0.567081 | klast |
c07bc51fa742c4eaca035a502fecbaceec5e37fe | 2,621 | cc | C++ | attractor.cc | chzchzchz/chaos | 2b6f8e7a39fe5384146936e49ec2fca2b168cb35 | [
"BSD-3-Clause"
] | 1 | 2019-01-02T18:38:25.000Z | 2019-01-02T18:38:25.000Z | attractor.cc | chzchzchz/chaos | 2b6f8e7a39fe5384146936e49ec2fca2b168cb35 | [
"BSD-3-Clause"
] | null | null | null | attractor.cc | chzchzchz/chaos | 2b6f8e7a39fe5384146936e49ec2fca2b168cb35 | [
"BSD-3-Clause"
] | null | null | null | #include <stdlib.h>
#include <math.h>
#include "attractor.h"
static double eval(double x, double y, const std::vector<double>& v)
{
double ret = 0.0;
for (unsigned x_deg = 0; x_deg <= MAP_DEGREE; x_deg++) {
for (unsigned y_deg = 0; y_deg <= x_deg; y_deg++) {
ret += v[x_deg * MAP_DEGREE + y_deg]
* pow(x, x_d... | 20.476563 | 68 | 0.606257 | chzchzchz |
c07cdce5556f323583b262a25f7f65527d316337 | 3,198 | cpp | C++ | Source/Storm-Graphics/include/GraphicConstraintSystem.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | 3 | 2021-11-27T04:56:12.000Z | 2022-02-14T04:02:10.000Z | Source/Storm-Graphics/include/GraphicConstraintSystem.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | null | null | null | Source/Storm-Graphics/include/GraphicConstraintSystem.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | null | null | null | #include "GraphicConstraintSystem.h"
#include "ConstraintShader.h"
#include "ThrowIfFailed.h"
Storm::GraphicConstraintSystem::GraphicConstraintSystem(const ComPtr<ID3D11Device> &device) :
_shader{ std::make_unique<Storm::ConstraintShader>(device) },
_constraintVertexCount{ 0 }
{
}
Storm::GraphicConstraintSystem... | 33.663158 | 165 | 0.792683 | SunlayGGX |
c07dad1a74b81a723ddb921074b5400f48c3f465 | 3,219 | cc | C++ | src/Output/UserInterface/VerySimpleMessageManager.cc | rodrigowerberich/simple-terminal-chess | 73c62251c4d130a896270c1e27b297da3ab0933f | [
"MIT"
] | null | null | null | src/Output/UserInterface/VerySimpleMessageManager.cc | rodrigowerberich/simple-terminal-chess | 73c62251c4d130a896270c1e27b297da3ab0933f | [
"MIT"
] | null | null | null | src/Output/UserInterface/VerySimpleMessageManager.cc | rodrigowerberich/simple-terminal-chess | 73c62251c4d130a896270c1e27b297da3ab0933f | [
"MIT"
] | null | null | null | #include "Output/UserInterface/VerySimpleMessageManager.hh"
#include "Output/UserInterface/MessageSelector.hh"
namespace Chess{
namespace Output{
namespace UserInterface{
VerySimpleLanguagePackage::VerySimpleLanguagePackage(){
}
VerySimpleLanguagePackage::VerySimpleLanguagePackage(const LanguagePackFormat& languageP... | 41.805195 | 146 | 0.769804 | rodrigowerberich |
c07fad4fc3ec50f681cd76c85f6a69d1ac5ad8f5 | 226 | cpp | C++ | main/HStringDatabase.cpp | Cararasu/holodec | d716d95a787ab7872a49a5c4fb930dc37be95ac7 | [
"MIT"
] | 215 | 2017-06-22T16:23:52.000Z | 2022-01-27T23:33:37.000Z | main/HStringDatabase.cpp | Cararasu/holodec | d716d95a787ab7872a49a5c4fb930dc37be95ac7 | [
"MIT"
] | 4 | 2017-06-29T16:49:28.000Z | 2019-02-07T19:58:57.000Z | main/HStringDatabase.cpp | Cararasu/holodec | d716d95a787ab7872a49a5c4fb930dc37be95ac7 | [
"MIT"
] | 21 | 2017-10-14T02:10:41.000Z | 2021-07-13T06:08:38.000Z |
#include "HStringDatabase.h"
const char* holodec::holokey::system = "sys";
const char* holodec::holokey::architecture = "arch";
const char* holodec::holokey::bit = "bits";
const char* holodec::holokey::endianess = "endian"; | 28.25 | 52 | 0.716814 | Cararasu |
c083a04257c4ed0eaf1c268c6d15e9f9cac0aac4 | 675 | cc | C++ | project1/kernels/kernel_case10.cc | guoyuqi020/CompilerProject | 1cd5375120bcdd2a2165d4741e9e987ce44237d5 | [
"MIT"
] | null | null | null | project1/kernels/kernel_case10.cc | guoyuqi020/CompilerProject | 1cd5375120bcdd2a2165d4741e9e987ce44237d5 | [
"MIT"
] | null | null | null | project1/kernels/kernel_case10.cc | guoyuqi020/CompilerProject | 1cd5375120bcdd2a2165d4741e9e987ce44237d5 | [
"MIT"
] | null | null | null | #include "../run.h"
void kernel_case10(float (&B)[10][10], float (&A)[8][8]) {
float temp1[8][8];
for (int i = 0;i < 8;++i){
for (int j = 0;j < 8;++j){
temp1[i][j] = 0;
if (0 <= i && i < 10) {
if (0 <= j && j < 10) {
if (0 <= i + 1 && i + 1 < 10) {
if (0 <= j && j < 10... | 23.275862 | 75 | 0.274074 | guoyuqi020 |
c085f71aefcb47e1433a5c2368104a7467ca7291 | 1,933 | hpp | C++ | AddOns/Parse/Source/wali/UserFactoryHandler.hpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | src/wpds/AddOns/Parse/Source/wali/UserFactoryHandler.hpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | src/wpds/AddOns/Parse/Source/wali/UserFactoryHandler.hpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #ifndef wali_WEIGHT_FACTORY_HANDLER_GUARD
#define wali_WEIGHT_FACTORY_HANDLER_GUARD 1
/**
* @author Nicholas Kidd
*/
#include "wali/IUserHandler.hpp"
namespace wali
{
class WeightFactory;
class MergeFnFactory;
/**
* Class for backwards compatability with WeightFactories.
*/
class UserFactoryHandler ... | 25.434211 | 88 | 0.629074 | jusito |
c08b4efe3256fdc777de959083f9619be199abf4 | 19,274 | cpp | C++ | src/gtest/tree_internal_node_test.cpp | Nanolat/nldb | fa6c986c184cbdfa47b68220d30e4358325a274f | [
"Apache-2.0"
] | 9 | 2015-01-03T10:38:43.000Z | 2021-01-04T01:02:36.000Z | src/gtest/tree_internal_node_test.cpp | Nanolat/nldb | fa6c986c184cbdfa47b68220d30e4358325a274f | [
"Apache-2.0"
] | null | null | null | src/gtest/tree_internal_node_test.cpp | Nanolat/nldb | fa6c986c184cbdfa47b68220d30e4358325a274f | [
"Apache-2.0"
] | 2 | 2015-12-07T08:52:00.000Z | 2021-12-21T17:56:08.000Z | /*
* (C) Copyright 2012, 2013 ThankyouSoft (http://ThankyouSoft.com/) and Nanolat(http://Nanolat.com).
* Writen by Kangmo Kim ( kangmo@nanolat.com )
*
* =================
* Apache v2 License
* =================
* http://www.apache.org/licenses/LICENSE-2.0.html... | 36.573055 | 102 | 0.737315 | Nanolat |
c08e54a902cfa94f1cc74dbeeeb14ac2004baea0 | 903 | cpp | C++ | queue_fps.cpp | HefnySco/yolov5-opencv-dnn-cpp | 3d653d49562d6e09c759906372278bd52f8f20e2 | [
"Apache-2.0"
] | null | null | null | queue_fps.cpp | HefnySco/yolov5-opencv-dnn-cpp | 3d653d49562d6e09c759906372278bd52f8f20e2 | [
"Apache-2.0"
] | null | null | null | queue_fps.cpp | HefnySco/yolov5-opencv-dnn-cpp | 3d653d49562d6e09c759906372278bd52f8f20e2 | [
"Apache-2.0"
] | null | null | null | #include "queue_fps.hpp"
// template <typename T>
// void CQueueFPS<T>::push(const T& entry)
// {
// //std::lock_guard<std::mutex> lock(mutex);
// std::queue<T>::push(entry);
// counter += 1;
// if (counter == 1)
// {
// //Start counting from a second frame (warmup).
// tm.reset();
... | 21 | 57 | 0.51495 | HefnySco |
c08f1f57ccf010e93eee81e6806f696ec66148ef | 2,690 | hpp | C++ | libraries/chain/include/graphene/chain/hardfork.hpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | libraries/chain/include/graphene/chain/hardfork.hpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | libraries/chain/include/graphene/chain/hardfork.hpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
* 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. Any modified source or binaries are used only with the BitShares network.
*... | 57.234043 | 208 | 0.787732 | siwelo |
c08fc8783da592a19b84761b63d415b615e81e3a | 1,672 | hpp | C++ | inc/motoro/http_request_parser.hpp | ztgreat/cpp | 0cd0643c47ec6c252968d7bb71d62f3e14c1996a | [
"Apache-2.0"
] | null | null | null | inc/motoro/http_request_parser.hpp | ztgreat/cpp | 0cd0643c47ec6c252968d7bb71d62f3e14c1996a | [
"Apache-2.0"
] | null | null | null | inc/motoro/http_request_parser.hpp | ztgreat/cpp | 0cd0643c47ec6c252968d7bb71d62f3e14c1996a | [
"Apache-2.0"
] | null | null | null | #ifndef AB62B027_AAFD_4611_8EF3_19FF408D5F97
#define AB62B027_AAFD_4611_8EF3_19FF408D5F97
#include <string>
#include "lib/http_parser.h"
#include "request.hpp"
namespace motoro {
class http_request_parser {
public:
http_request_parser() = delete;
http_request_parser(motoro::request &req);
... | 23.885714 | 80 | 0.648923 | ztgreat |
c0902aee5c38de2f8bee77ff27681024f51f75bc | 2,070 | cpp | C++ | tests/greedy/mates.cpp | gcp/verbose-parakeet | 6f5e2bba614f2704d225da75704e8af3b0e124e7 | [
"MIT"
] | 1 | 2021-04-16T00:00:28.000Z | 2021-04-16T00:00:28.000Z | tests/greedy/mates.cpp | gcp/verbose-parakeet | 6f5e2bba614f2704d225da75704e8af3b0e124e7 | [
"MIT"
] | null | null | null | tests/greedy/mates.cpp | gcp/verbose-parakeet | 6f5e2bba614f2704d225da75704e8af3b0e124e7 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <libchess/position.hpp>
#include <string>
#include "../../src/search/controller.hpp"
#include "../../src/search/greedy/search.hpp"
auto info_handler = [](int depth, int score, std::uint64_t nodes, int time, const PV &pv) {};
TEST_CASE("Greedy - Checkmate") {
const std::pair<st... | 34.5 | 93 | 0.556522 | gcp |
6a53bbf62d3887d57d03a7b14c77e8887376b668 | 2,842 | cpp | C++ | 00004_median-of-two-sorted-arrays/191003-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 6 | 2019-10-23T01:07:29.000Z | 2021-12-05T01:51:16.000Z | 00004_median-of-two-sorted-arrays/191003-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | null | null | null | 00004_median-of-two-sorted-arrays/191003-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 1 | 2021-12-03T06:54:57.000Z | 2021-12-03T06:54:57.000Z | // https://leetcode-cn.com/problems/median-of-two-sorted-arrays/
#include <cstdio>
#include <vector>
using namespace std;
class Solution {
public:
double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) {
int n1 = nums1.size();
int n2 = nums2.size();
int p1 = 0, q1 = n1, k1 = n1 / 2;
int p2 =... | 22.919355 | 77 | 0.507741 | yanlinlin82 |
6a573296bb9d824cd29ab79b4ee957e6cf5fcf31 | 947 | cpp | C++ | src/widgets/treewidgetitem.cpp | tamlok/vnote | 1318427bb742b77eb2f2e3da3c5796f159f2c2ed | [
"MIT"
] | 8,054 | 2016-10-19T14:59:52.000Z | 2020-10-11T06:21:15.000Z | src/widgets/treewidgetitem.cpp | tamlok/vnote | 1318427bb742b77eb2f2e3da3c5796f159f2c2ed | [
"MIT"
] | 1,491 | 2017-03-06T02:31:32.000Z | 2020-10-11T02:14:32.000Z | src/widgets/treewidgetitem.cpp | tamlok/vnote | 1318427bb742b77eb2f2e3da3c5796f159f2c2ed | [
"MIT"
] | 986 | 2017-02-14T05:45:13.000Z | 2020-10-10T07:42:31.000Z | #include "treewidgetitem.h"
#include <QTreeWidget>
#include <QVariant>
#include <core/global.h>
using namespace vnotex;
TreeWidgetItem::TreeWidgetItem(QTreeWidget *p_parent, const QStringList &p_strings, int p_type)
: QTreeWidgetItem(p_parent, p_strings, p_type)
{
}
bool TreeWidgetItem::operator<(const QTreeWi... | 27.057143 | 95 | 0.669483 | tamlok |
6a584bc0ece1e2582dff3e74cd4358468d55c914 | 2,358 | cpp | C++ | iceoryx_posh/source/roudi_environment/roudi_environment.cpp | Karsten1987/iceoryx | e5c23eaf5c351ef0095e43673282867b8d060026 | [
"Apache-2.0"
] | 2 | 2019-11-04T05:02:53.000Z | 2019-11-04T05:19:20.000Z | iceoryx_posh/source/roudi_environment/roudi_environment.cpp | Karsten1987/iceoryx | e5c23eaf5c351ef0095e43673282867b8d060026 | [
"Apache-2.0"
] | null | null | null | iceoryx_posh/source/roudi_environment/roudi_environment.cpp | Karsten1987/iceoryx | e5c23eaf5c351ef0095e43673282867b8d060026 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 by Robert Bosch GmbH. 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... | 30.623377 | 109 | 0.7676 | Karsten1987 |
6a5b74f4d106edf9a39a1b7f487d20212b307c68 | 2,986 | cpp | C++ | source/third_party/pevents/sample.cpp | GPUOpen-Tools/radeon_memory_visualizer | 309ac5b04b870aef408603eaac4bd727d5d3e698 | [
"MIT"
] | 86 | 2020-05-14T17:20:22.000Z | 2022-01-21T22:53:24.000Z | source/third_party/pevents/sample.cpp | GPUOpen-Tools/radeon_memory_visualizer | 309ac5b04b870aef408603eaac4bd727d5d3e698 | [
"MIT"
] | 6 | 2020-05-16T18:50:00.000Z | 2022-01-21T15:30:16.000Z | source/third_party/pevents/sample.cpp | GPUOpen-Tools/radeon_memory_visualizer | 309ac5b04b870aef408603eaac4bd727d5d3e698 | [
"MIT"
] | 11 | 2020-10-15T15:55:56.000Z | 2022-03-16T20:38:29.000Z | /*
* WIN32 Events for POSIX
* Author: Mahmoud Al-Qudsi <mqudsi@neosmart.net>
* Copyright (C) 2011 - 2015 by NeoSmart Technologies
* This code is released under the terms of the MIT License
*/
#include <iostream>
#include <assert.h>
#include <thread>
#include <chrono>
#include <atomic>
#include <signal.h>
#include ... | 22.621212 | 81 | 0.666443 | GPUOpen-Tools |
6a5bc37a5a78ee392bcf47fafb2eae1bc2dad1d4 | 537 | cpp | C++ | Mya/Sound/Music.cpp | Wolchy/Uno | 3ebb485b7e71b801cdd08d2cf97bbbb9579f44b5 | [
"MIT"
] | null | null | null | Mya/Sound/Music.cpp | Wolchy/Uno | 3ebb485b7e71b801cdd08d2cf97bbbb9579f44b5 | [
"MIT"
] | null | null | null | Mya/Sound/Music.cpp | Wolchy/Uno | 3ebb485b7e71b801cdd08d2cf97bbbb9579f44b5 | [
"MIT"
] | null | null | null | #include "Music.h"
Music::Music(std::string path){
music = Mix_LoadMUS(path.c_str());
if(music)
std::cout << "Loaded music: " << path.c_str() << "!" << std::endl;
else
std::cout << "Error Loading music: " << path.c_str() << ", with error: " << Mix_GetError() << "!" << std::endl;
}
void Music::destroy() {
Mix_... | 17.322581 | 113 | 0.607076 | Wolchy |
6a5cc849d8b781408339aefae2fbcdfaec77f6eb | 3,176 | hpp | C++ | src/main/cpp/Balau/Network/Http/Server/HttpWebApps/CannedHttpWebApp.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 6 | 2018-12-30T15:09:26.000Z | 2020-04-20T09:27:59.000Z | src/main/cpp/Balau/Network/Http/Server/HttpWebApps/CannedHttpWebApp.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/Balau/Network/Http/Server/HttpWebApps/CannedHttpWebApp.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 2 | 2019-11-12T08:07:16.000Z | 2019-11-29T11:19:47.000Z | // @formatter:off
//
// Balau core C++ library
//
// Copyright (C) 2017 Bora Software (contact@borasoftware.com)
//
// 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.apach... | 36.505747 | 110 | 0.70529 | borasoftware |
6a5f3c18c2d141042edf09d8c9032f08a0a63434 | 2,294 | cpp | C++ | src/budget/UpdateContributorCommand.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | 2 | 2016-07-17T02:12:44.000Z | 2016-11-22T14:04:55.000Z | src/budget/UpdateContributorCommand.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | null | null | null | src/budget/UpdateContributorCommand.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013 Kyle Treubig
*
* 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... | 30.586667 | 88 | 0.598082 | vimofthevine |
6a60c57a19b759d99fb651024d551b2265a281d1 | 8,010 | cpp | C++ | src/modules/processes/contrib/gviehoever/GradientDomain/GradientsHdrProcess.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/modules/processes/contrib/gviehoever/GradientDomain/GradientsHdrProcess.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/modules/processes/contrib/gviehoever/GradientDomain/GradientsHdrProcess.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.9
// ----------------------------------------------------------------------------
// Standard GradientDomain Process Module Version 0.6.4
// ---------------------... | 34.377682 | 195 | 0.534707 | fmeschia |
6a64ba75a0ee791d46a0e01144bfd41ae7f8ea21 | 2,861 | hpp | C++ | src/tilemap.hpp | Turtwiggy/Dwarf-and-Blade | 2e3bd3eb169bf3b62665d74437f806d52c415fb5 | [
"MIT"
] | null | null | null | src/tilemap.hpp | Turtwiggy/Dwarf-and-Blade | 2e3bd3eb169bf3b62665d74437f806d52c415fb5 | [
"MIT"
] | null | null | null | src/tilemap.hpp | Turtwiggy/Dwarf-and-Blade | 2e3bd3eb169bf3b62665d74437f806d52c415fb5 | [
"MIT"
] | null | null | null | #ifndef TILEMAP_HPP_INCLUDED
#define TILEMAP_HPP_INCLUDED
#include <vector>
#include <vec/vec.hpp>
#include <map>
#include <optional>
#include "sprite_renderer.hpp"
#include "random.hpp"
#include <networking/serialisable_fwd.hpp>
namespace ai_info
{
enum type
{
ACTIVE,
NONE,
};
}
namespac... | 20.435714 | 109 | 0.565537 | Turtwiggy |
6a6575b6e07405c581c9d1b327ca1c94c408cb28 | 11,550 | cpp | C++ | moveit_plugins/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp | predystopic-dev/moveit2 | 42afeea561949b1af197655c1cbb63b851e7dd8d | [
"BSD-3-Clause"
] | 1 | 2020-10-11T17:40:28.000Z | 2020-10-11T17:40:28.000Z | moveit_plugins/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp | predystopic-dev/moveit2 | 42afeea561949b1af197655c1cbb63b851e7dd8d | [
"BSD-3-Clause"
] | 1 | 2021-11-08T04:05:16.000Z | 2021-11-08T04:05:16.000Z | moveit_plugins/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp | predystopic-dev/moveit2 | 42afeea561949b1af197655c1cbb63b851e7dd8d | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, Unbounded Robotics Inc.
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modific... | 40.669014 | 121 | 0.686061 | predystopic-dev |
6a670252f09cfb9d43601565ce7fc5a81b0ad268 | 32,482 | cpp | C++ | lib/AST/RequirementMachine/RewriteLoop.cpp | tshortli/swift | 3e739f62fcb14f9f72d5da81168953cfd54e3ee0 | [
"Apache-2.0"
] | 2 | 2022-01-23T20:41:02.000Z | 2022-01-23T20:41:12.000Z | lib/AST/RequirementMachine/RewriteLoop.cpp | blanche37/swift | c3c9b1bf56ce76715ff7e547f68cc354be4cdad8 | [
"Apache-2.0"
] | 1 | 2018-08-23T19:35:25.000Z | 2018-08-23T19:35:25.000Z | lib/AST/RequirementMachine/RewriteLoop.cpp | blanche37/swift | c3c9b1bf56ce76715ff7e547f68cc354be4cdad8 | [
"Apache-2.0"
] | null | null | null | //===--- RewriteLoop.cpp - Identities between rewrite rules ---------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.... | 31.628043 | 84 | 0.632227 | tshortli |
6a67e6851474a0db95c6602b46c6f35411fddf69 | 11,633 | cpp | C++ | source/common/2d/v_drawtext.cpp | madame-rachelle/Raze | 67c8187d620e6cf9e99543cab5c5746dd31007af | [
"RSA-MD"
] | null | null | null | source/common/2d/v_drawtext.cpp | madame-rachelle/Raze | 67c8187d620e6cf9e99543cab5c5746dd31007af | [
"RSA-MD"
] | null | null | null | source/common/2d/v_drawtext.cpp | madame-rachelle/Raze | 67c8187d620e6cf9e99543cab5c5746dd31007af | [
"RSA-MD"
] | null | null | null | /*
** v_text.cpp
** Draws text to a canvas. Also has a text line-breaker thingy.
**
**---------------------------------------------------------------------------
** Copyright 1998-2006 Randy Heit
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permit... | 27.501182 | 157 | 0.644116 | madame-rachelle |
6a6c2bd3082c445842795cea2f01d6e4b8678308 | 311 | cc | C++ | packages/operator/Null_Operator.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/operator/Null_Operator.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/operator/Null_Operator.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #include "Null_Operator.hh"
using std::vector;
Null_Operator::
Null_Operator(int size):
Square_Vector_Operator(),
size_(size)
{
check_class_invariants();
}
void Null_Operator::
apply(vector<double> &x) const
{
x.assign(x.size(), 0);
}
void Null_Operator::
check_class_invariants() const
{
}
| 13.521739 | 30 | 0.70418 | brbass |
6a6dcb89a1bfe4b43b2415b2428011ef89f0ac79 | 3,537 | hpp | C++ | modules/core/src/MetaObject/logging/logging_macros.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 2 | 2017-10-26T04:41:49.000Z | 2018-02-09T05:12:19.000Z | modules/core/src/MetaObject/logging/logging_macros.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | null | null | null | modules/core/src/MetaObject/logging/logging_macros.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 3 | 2017-01-08T21:09:48.000Z | 2018-02-10T04:27:32.000Z | #ifndef MO_LOGGING_LOGGING_MACROS_HPP
#define MO_LOGGING_LOGGING_MACROS_HPP
#include "callstack.hpp"
#include <spdlog/fmt/fmt.h>
#include <spdlog/fmt/ostr.h>
#if defined(__GNUC__) && __GNUC__ == 4 && defined(__NVCC__)
// These empy definitions are for GCC 4.8 with cuda 6.5 since it can't handle fmt
#define LOG_EVERY_... | 46.539474 | 120 | 0.412214 | dtmoodie |
6a6f18c655199562b2e4dec1b14e964eaaa1cad0 | 4,194 | cpp | C++ | src/Engine/App/Entity.cpp | kimkulling/osre | b738c87e37d0b1d2d0779a412b88ce68517c4328 | [
"MIT"
] | 118 | 2015-05-12T15:12:14.000Z | 2021-11-14T15:41:11.000Z | src/Engine/App/Entity.cpp | kimkulling/osre | b738c87e37d0b1d2d0779a412b88ce68517c4328 | [
"MIT"
] | 76 | 2015-06-06T18:04:24.000Z | 2022-01-14T20:17:37.000Z | src/Engine/App/Entity.cpp | kimkulling/osre | b738c87e37d0b1d2d0779a412b88ce68517c4328 | [
"MIT"
] | 7 | 2016-06-28T09:14:38.000Z | 2021-03-12T02:07:52.000Z | /*-----------------------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2015-2021 OSRE ( Open Source Render Engine ) by Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation f... | 27.592105 | 97 | 0.651168 | kimkulling |
6a6f5aa1b606eeb85ad97f15508e3423638e7e4f | 1,132 | hpp | C++ | src/stan/mcmc/hmc/nuts_classic/unit_e_nuts_classic.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2019-07-05T01:40:40.000Z | 2019-07-05T01:40:40.000Z | src/stan/mcmc/hmc/nuts_classic/unit_e_nuts_classic.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/stan/mcmc/hmc/nuts_classic/unit_e_nuts_classic.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2018-08-28T12:09:08.000Z | 2018-08-28T12:09:08.000Z | #ifndef STAN_MCMC_HMC_NUTS_CLASSIC_UNIT_E_NUTS_CLASSIC_HPP
#define STAN_MCMC_HMC_NUTS_CLASSIC_UNIT_E_NUTS_CLASSIC_HPP
#include <stan/mcmc/hmc/nuts_classic/base_nuts_classic.hpp>
#include <stan/mcmc/hmc/hamiltonians/unit_e_point.hpp>
#include <stan/mcmc/hmc/hamiltonians/unit_e_metric.hpp>
#include <stan/mcmc/hmc/integr... | 34.30303 | 65 | 0.64841 | drezap |
6a7681e2a6bea7ce3a2c76007a063924bcaaa1a9 | 845 | cpp | C++ | 60A.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 60A.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 60A.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#de... | 18.369565 | 47 | 0.60355 | felikjunvianto |
6a76ade92f5ffde7e01f53caac461481206da438 | 10,835 | cxx | C++ | VTK/IO/vtkBYUWriter.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 1 | 2021-07-31T19:38:03.000Z | 2021-07-31T19:38:03.000Z | VTK/IO/vtkBYUWriter.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | null | null | null | VTK/IO/vtkBYUWriter.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 2 | 2019-01-22T19:51:40.000Z | 2021-07-31T19:38:05.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile$
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distrib... | 25.25641 | 89 | 0.594555 | matthb2 |
6a8198ec5eb2ff402f417791fbf8361c14da4a57 | 3,398 | cpp | C++ | test/TestSere.cpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | test/TestSere.cpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | test/TestSere.cpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | #include "catch2/catch.hpp"
#include "test/GenLetter.hpp"
#include "test/GenBoolExpr.hpp"
#include "test/EvalBoolExpr.hpp"
#include "test/EvalSere.hpp"
#include "test/EvalNfasl.hpp"
#include "test/Tools.hpp"
#include "test/ToolsZ3.hpp"
#include "ast/BoolExpr.hpp"
#include "ast/SereExpr.hpp"
#include "sat/Sat.hpp"
T... | 32.361905 | 90 | 0.572984 | craft095 |
6a822558bef69cc924668c795089a17ccc2b9c9f | 1,865 | hpp | C++ | third_party/boost/simd/function/frexp.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | 1 | 2018-01-14T12:49:14.000Z | 2018-01-14T12:49:14.000Z | third_party/boost/simd/function/frexp.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/frexp.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | 2 | 2017-12-12T12:29:52.000Z | 2019-04-08T15:55:25.000Z | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... | 25.547945 | 100 | 0.617158 | xmar |
6a8689133b64f4ea599d6c612f480d916ebb8c17 | 2,634 | cpp | C++ | graph-source-code/266-D/12228977.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/266-D/12228977.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/266-D/12228977.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++11
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <map>
#include <set>
#include <string>
#include <algorithm>
#include <iostream>
#include <complex>
using namespace std;
#defin... | 24.616822 | 67 | 0.368261 | AmrARaouf |
6a86e7a4783f289dcfeea887c1971865e5a29469 | 12,677 | cpp | C++ | worldeditor/src/graph/sceneview.cpp | thunder-engine/thunder | 14a70d46532b8b78635835fc05c0ac2f33a12d8b | [
"Apache-2.0"
] | 162 | 2020-09-18T19:42:43.000Z | 2022-03-30T20:27:42.000Z | worldeditor/src/graph/sceneview.cpp | thunder-engine/thunder | 14a70d46532b8b78635835fc05c0ac2f33a12d8b | [
"Apache-2.0"
] | 162 | 2020-10-10T11:16:52.000Z | 2022-03-30T17:09:11.000Z | worldeditor/src/graph/sceneview.cpp | thunder-engine/thunder | 14a70d46532b8b78635835fc05c0ac2f33a12d8b | [
"Apache-2.0"
] | 12 | 2020-10-18T09:16:35.000Z | 2022-01-08T11:23:17.000Z | #include "sceneview.h"
#include <QWindow>
#include <QStandardPaths>
#include <QMouseEvent>
#include <QVBoxLayout>
#include <QDebug>
#include <engine.h>
#include <timer.h>
#include <components/actor.h>
#include <components/scene.h>
#include <components/camera.h>
#include <resources/pipeline.h>
#include <systems/rend... | 37.505917 | 127 | 0.646052 | thunder-engine |
6a872ea13d8c17dd490397ba34300338814d7b91 | 3,674 | cpp | C++ | chapter-3/p-3.3/src/main.cpp | ahmedfawzyelaraby/cracking-the-coding-interview | 82395e711dd3136c0b762ac846f345cad39a4d66 | [
"MIT"
] | 1 | 2020-06-08T09:40:06.000Z | 2020-06-08T09:40:06.000Z | chapter-3/p-3.3/src/main.cpp | ahmedfawzyelaraby/cracking-the-coding-interview | 82395e711dd3136c0b762ac846f345cad39a4d66 | [
"MIT"
] | null | null | null | chapter-3/p-3.3/src/main.cpp | ahmedfawzyelaraby/cracking-the-coding-interview | 82395e711dd3136c0b762ac846f345cad39a4d66 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <memory>
#include <vector>
class StackNode {
public:
StackNode(int input_node_value) {
this->node_value = input_node_value;
this->next_node = NULL;
}
~StackNode() {}
void setNext(std::unique_ptr<StackNode> input_... | 28.703125 | 101 | 0.510887 | ahmedfawzyelaraby |
6a8a295d833ea20ce7c45c1216170ae77c3534df | 1,257 | hpp | C++ | include/ShaderAST/Expr/ExprIntrinsicCall.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | include/ShaderAST/Expr/ExprIntrinsicCall.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | include/ShaderAST/Expr/ExprIntrinsicCall.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | /*
See LICENSE file in root folder
*/
#ifndef ___AST_ExprIntrinsicCall_H___
#define ___AST_ExprIntrinsicCall_H___
#pragma once
#include "ExprList.hpp"
#include "EnumIntrinsic.hpp"
#include "IntrinsicCallHelpers.hpp"
namespace ast::expr
{
class IntrinsicCall
: public Expr
{
public:
IntrinsicCall( type::TypePtr... | 19.640625 | 73 | 0.709626 | Praetonus |
6a8b39ad0f1515de8a726431430e5022bac90547 | 3,520 | cc | C++ | src/lib/MeshFEM/FieldSampler.cc | MeshFEM/MeshFEM | 9b3619fa450d83722879bfd0f5a3fe69d927bd63 | [
"MIT"
] | 19 | 2020-10-21T10:05:17.000Z | 2022-03-20T13:41:50.000Z | src/lib/MeshFEM/FieldSampler.cc | MeshFEM/MeshFEM | 9b3619fa450d83722879bfd0f5a3fe69d927bd63 | [
"MIT"
] | 4 | 2021-01-01T15:58:15.000Z | 2021-09-19T03:31:09.000Z | src/lib/MeshFEM/FieldSampler.cc | MeshFEM/MeshFEM | 9b3619fa450d83722879bfd0f5a3fe69d927bd63 | [
"MIT"
] | 4 | 2020-10-05T09:01:50.000Z | 2022-01-11T03:02:39.000Z | #include "FieldSampler.hh"
#include "libigl_aabb/point_simplex_squared_distance.h"
#include "libigl_aabb/AABB.h"
template<size_t N>
struct SamplerAABB : public iglaabb::AABB<Eigen::MatrixXd, int(N)> {
using Base = iglaabb::AABB<Eigen::MatrixXd, int(N)>;
using Base::Base;
};
//////////////////////////////////... | 49.577465 | 144 | 0.513352 | MeshFEM |
6a910a6a1ef848094f5380a9b7e404c74f02dc89 | 78 | cpp | C++ | TrabalhoPOO/HardSkin.cpp | mbcrocci/TrabalhoPOO | 30378382b412e3ed875dbb2bfb897061dafc73ef | [
"MIT"
] | null | null | null | TrabalhoPOO/HardSkin.cpp | mbcrocci/TrabalhoPOO | 30378382b412e3ed875dbb2bfb897061dafc73ef | [
"MIT"
] | null | null | null | TrabalhoPOO/HardSkin.cpp | mbcrocci/TrabalhoPOO | 30378382b412e3ed875dbb2bfb897061dafc73ef | [
"MIT"
] | null | null | null | #include "HardSkin.h"
HardSkin::HardSkin ()
{}
HardSkin::~HardSkin ()
{}
| 7.090909 | 22 | 0.615385 | mbcrocci |
6a94376443437cc584b6709d7c8f6bf7e501d7ae | 1,075 | cpp | C++ | 2016 Long Contest for NSU and KUET - 2 ( BIT episode 1 )/O - Cvjetici.cpp | anirudha-ani/NSU-Problem-Solver | 2f6312fe5823c0352358f5db654dd0e1a619ce75 | [
"Apache-2.0"
] | null | null | null | 2016 Long Contest for NSU and KUET - 2 ( BIT episode 1 )/O - Cvjetici.cpp | anirudha-ani/NSU-Problem-Solver | 2f6312fe5823c0352358f5db654dd0e1a619ce75 | [
"Apache-2.0"
] | null | null | null | 2016 Long Contest for NSU and KUET - 2 ( BIT episode 1 )/O - Cvjetici.cpp | anirudha-ani/NSU-Problem-Solver | 2f6312fe5823c0352358f5db654dd0e1a619ce75 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <string>
#include <cstring>
using namespace std;
int data[100005];
int flag[100005] = {0};
void update (int index , int value)
{
while(index < 100005)
{
data[index] += value;
index += ((index)& (-index));
}
}
int query(int... | 17.916667 | 56 | 0.469767 | anirudha-ani |
6a95c5b25e1fd6fd0e10a612a72b2472515a10e1 | 224 | cpp | C++ | chap06/Exer06_03.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 50 | 2016-01-08T14:28:53.000Z | 2022-01-21T12:55:00.000Z | chap06/Exer06_03.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 2 | 2017-06-05T16:45:20.000Z | 2021-04-17T13:39:24.000Z | chap06/Exer06_03.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 18 | 2016-08-17T15:23:51.000Z | 2022-03-26T18:08:43.000Z | #include <iostream>
using std::cout;
using std::endl;
int fact(int val)
{
int ret = 1;
while(val > 1)
ret *= val--;
return ret;
}
int main()
{
int j = fact(12);
cout << j << endl;
return 0;
}
| 13.176471 | 22 | 0.517857 | sjbarigye |
6a96cab43d06be7a55468f57d9f3a7cad64e8080 | 26,444 | cpp | C++ | lugre/src/lugre_gfx2D_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | 1 | 2020-10-18T14:33:05.000Z | 2020-10-18T14:33:05.000Z | lugre/src/lugre_gfx2D_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | lugre/src/lugre_gfx2D_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | #include "lugre_prefix.h"
#include "lugre_scripting.h"
#include "lugre_luabind.h"
#include "lugre_gfx2D.h"
#include "lugre_BorderColourClipPaneOverlay.h"
#include "lugre_CompassOverlay.h"
#include "lugre_RobRenderableOverlay.h"
#include "lugre_SortedOverlayContainer.h"
#include "lugre_gfx3D.h"
#include "lugre_ogrewrapp... | 39.35119 | 184 | 0.70568 | ghoulsblade |
6a9bdb256c9ecc5b41ab9cc515e3752e2964d59d | 776 | cpp | C++ | work05/2.cpp | kashapovd/basic_prog_1semester | 0c45a564f50b668e37d7ff0717e18f68e79ab200 | [
"Unlicense"
] | 1 | 2019-12-08T07:21:45.000Z | 2019-12-08T07:21:45.000Z | work05/2.cpp | kashapovd/basic_prog_1semester | 0c45a564f50b668e37d7ff0717e18f68e79ab200 | [
"Unlicense"
] | null | null | null | work05/2.cpp | kashapovd/basic_prog_1semester | 0c45a564f50b668e37d7ff0717e18f68e79ab200 | [
"Unlicense"
] | null | null | null | /*
* 4. Для заданного натурального числа N вывести в столбик все простые числа меньшие N.
* Простое число – это натуральное число, имеющее ровно два различных натуральных делителя,
* то есть простое число делится нацело только на самого себя и единицу. Является ли число простым оформить как функцию
*/
#include <io... | 22.171429 | 119 | 0.546392 | kashapovd |
6a9d75980af87db53e8b2b43004e63f87c6dbb6e | 805 | cpp | C++ | source/omni/ui/blueprint.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 33 | 2015-03-21T04:12:45.000Z | 2021-04-18T21:44:33.000Z | source/omni/ui/blueprint.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | null | null | null | source/omni/ui/blueprint.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 2 | 2016-03-05T12:57:05.000Z | 2017-09-12T10:11:52.000Z | #include <omni/ui/blueprint.hpp>
#include <QPainter>
omni::ui::blueprint::blueprint (QWidget * parent) :
QWidget (parent)
{
setAutoFillBackground (true);
QPalette pal;
pal.setColor (QPalette::Background, QColor::fromRgb (0xFF, 0xFF, 0xFF));
// pal.setColor (QPalette::Background, QColor::fromRgb (0x... | 25.967742 | 78 | 0.582609 | daniel-kun |
6aa2a636762ed664fce5e15f6b02744cce920e23 | 8,480 | cpp | C++ | src/Graphics/World.cpp | boudra/darkmatter | 807ef3dc0d10e3ddff75fb4cf965acfa86423624 | [
"MIT"
] | 7 | 2015-07-29T15:04:56.000Z | 2021-07-23T13:59:30.000Z | src/Graphics/World.cpp | boudra/darkmatter | 807ef3dc0d10e3ddff75fb4cf965acfa86423624 | [
"MIT"
] | null | null | null | src/Graphics/World.cpp | boudra/darkmatter | 807ef3dc0d10e3ddff75fb4cf965acfa86423624 | [
"MIT"
] | 1 | 2015-08-27T14:31:22.000Z | 2015-08-27T14:31:22.000Z | #include "Graphics/World.hpp"
#include "Core/EntityManager.hpp"
#include "Animation/Animation.hpp"
#include "Core/Engine.hpp"
#include "Components/PhysicsComponent.hpp"
#include "Components/Cursor.hpp"
#include "Graphics/RenderSystem.hpp"
#include "Resource/ResourceManager.hpp"
#include <GL/glew.h>
#ifdef _WIN32
#inc... | 38.371041 | 80 | 0.440802 | boudra |
6aa3c3bd35796f80c044e3588138073ae8dea1b9 | 1,971 | cpp | C++ | ctest/tests/Serializer.cpp | mgradysaunders/Precept | 0677c70ac4ed9e0a8c5aad7b049daad22998de9e | [
"BSD-2-Clause"
] | null | null | null | ctest/tests/Serializer.cpp | mgradysaunders/Precept | 0677c70ac4ed9e0a8c5aad7b049daad22998de9e | [
"BSD-2-Clause"
] | null | null | null | ctest/tests/Serializer.cpp | mgradysaunders/Precept | 0677c70ac4ed9e0a8c5aad7b049daad22998de9e | [
"BSD-2-Clause"
] | null | null | null | #include "../testing.h"
#include <pre/Serializer>
#include <pre/StringID>
using namespace pre;
static int Serial_ctor_calls = 0;
static int Serial_dtor_calls = 0;
static int Serial_serialize_calls = 0;
class Serial : public Serializable {
public:
Serial() { ++Serial_ctor_calls; }
~Serial() { ++Serial_dtor... | 26.635135 | 70 | 0.632674 | mgradysaunders |
6aa5eac7415ca832d080ed5c0db31a010e77bca3 | 2,012 | cpp | C++ | test/cpp/main.cpp | moritzmhmk/charls-js | 73fed2d8165a2385809700f9d8ae2ac12ff24269 | [
"MIT"
] | 8 | 2020-04-17T18:01:38.000Z | 2022-03-01T08:48:21.000Z | test/cpp/main.cpp | moritzmhmk/charls-js | 73fed2d8165a2385809700f9d8ae2ac12ff24269 | [
"MIT"
] | 2 | 2020-04-30T02:51:01.000Z | 2022-01-12T22:39:11.000Z | test/cpp/main.cpp | moritzmhmk/charls-js | 73fed2d8165a2385809700f9d8ae2ac12ff24269 | [
"MIT"
] | 6 | 2020-04-17T18:01:48.000Z | 2022-03-16T06:32:06.000Z | #include "../../extern/charls/include/charls/charls.h"
#include <fstream>
#include <iostream>
#include <vector>
#include <iterator>
#include <time.h>
void readFile(std::string fileName, std::vector<unsigned char>& vec) {
// open the file:
std::ifstream file(fileName, std::ios::binary);
// Stop eating new... | 27.561644 | 78 | 0.630716 | moritzmhmk |
6aac21d5f6239895a60440bc3aa034aac960dd08 | 8,446 | cpp | C++ | FloatingMeasure_Test/FloatingMeasure_Test.cpp | github-baron/FloatingMeasure | 1419d95c168bd7c9927854f0fc8e7c3681b93d2d | [
"MIT"
] | 1 | 2020-11-09T07:13:03.000Z | 2020-11-09T07:13:03.000Z | FloatingMeasure_Test/FloatingMeasure_Test.cpp | github-baron/FloatingMeasure | 1419d95c168bd7c9927854f0fc8e7c3681b93d2d | [
"MIT"
] | 3 | 2020-01-27T16:20:50.000Z | 2020-01-31T23:13:53.000Z | FloatingMeasure_Test/FloatingMeasure_Test.cpp | github-baron/FloatingMeasure | 1419d95c168bd7c9927854f0fc8e7c3681b93d2d | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Michael von Mengershausen
*
* 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... | 37.207048 | 115 | 0.608335 | github-baron |
6aadb9a01efd13a31dbde8e7753453cb9fcd3936 | 652 | cpp | C++ | gameMainDriver/gameMainDriver.cpp | FullSiliconAlchemist/comp345-V2 | 459ed4490139360d8ec7816523191ca95ccaded3 | [
"MIT"
] | 1 | 2019-10-10T15:16:12.000Z | 2019-10-10T15:16:12.000Z | gameMainDriver/gameMainDriver.cpp | FullSiliconAlchemist/comp345-V2 | 459ed4490139360d8ec7816523191ca95ccaded3 | [
"MIT"
] | null | null | null | gameMainDriver/gameMainDriver.cpp | FullSiliconAlchemist/comp345-V2 | 459ed4490139360d8ec7816523191ca95ccaded3 | [
"MIT"
] | null | null | null |
#include "pch.h"
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <string>
#include <iterator>
#include "../MapProject/Map.h"
#include "../MapProject/Map.cpp"
#include "../MapProject/Country.h"
#include "../MapProject/Country.cpp"
#include "../MapLoaderProject/MapLoader.h"
#include... | 23.285714 | 85 | 0.693252 | FullSiliconAlchemist |
6aadc74baf75e7314e9ac1133865ea3fd2b607af | 1,930 | cpp | C++ | 3DEngine2/src/common/Window.cpp | rainnymig/ThreeDeeEngine-2 | 3f4c00cbf1c816072a020d850095295da6c29ccb | [
"BSD-3-Clause"
] | null | null | null | 3DEngine2/src/common/Window.cpp | rainnymig/ThreeDeeEngine-2 | 3f4c00cbf1c816072a020d850095295da6c29ccb | [
"BSD-3-Clause"
] | null | null | null | 3DEngine2/src/common/Window.cpp | rainnymig/ThreeDeeEngine-2 | 3f4c00cbf1c816072a020d850095295da6c29ccb | [
"BSD-3-Clause"
] | null | null | null | #include "pch.h"
#include "common/Window.h"
namespace tde
{
Window::Window(
ConstructorTag aConstructorTag,
HWND aWindowHandle)
: mWindowHandle(aWindowHandle)
{}
bool Window::RegisterWindow(const WNDCLASSEX* apWndClassEx)
{
if (!RegisterClassExW(apWndClassEx))
{
return false;
}
return true;
}
... | 20.752688 | 137 | 0.717098 | rainnymig |
6ac5c319f2297f88b69f89b33cc81c38004b4e0c | 102,443 | cpp | C++ | test/make_matrix.cpp | bebuch/Mitrax | bc33a1b93058886daab3e4ef736ef9b519111454 | [
"BSL-1.0"
] | null | null | null | test/make_matrix.cpp | bebuch/Mitrax | bc33a1b93058886daab3e4ef736ef9b519111454 | [
"BSL-1.0"
] | null | null | null | test/make_matrix.cpp | bebuch/Mitrax | bc33a1b93058886daab3e4ef736ef9b519111454 | [
"BSL-1.0"
] | null | null | null | // -----------------------------------------------------------------------------
// Copyright (c) 2015-2018 Benjamin Buch
//
// https://github.com/bebuch/mitrax
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
//... | 39.50752 | 80 | 0.642513 | bebuch |
6ad15169a9175292dc8d45aab821b47f0f16bdb5 | 8,307 | hpp | C++ | include/byom/dynamic_view.hpp | purpleKarrot/BYOM | 1de5f53a1185b37676d76399bd67ff9e08ad828a | [
"0BSD"
] | 2 | 2015-12-02T15:02:06.000Z | 2015-12-03T22:41:19.000Z | include/byom/dynamic_view.hpp | purpleKarrot/BYOM | 1de5f53a1185b37676d76399bd67ff9e08ad828a | [
"0BSD"
] | null | null | null | include/byom/dynamic_view.hpp | purpleKarrot/BYOM | 1de5f53a1185b37676d76399bd67ff9e08ad828a | [
"0BSD"
] | null | null | null | // Copyright (c) 2015, Daniel Pfeifer <daniel@pfeifer-mail.de>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS ... | 22.152 | 79 | 0.633081 | purpleKarrot |
6ad4c1c00212ff4bd747090827d0434244f4f36b | 826 | cpp | C++ | engine/source/engine/_gl.cpp | n4n0lix/Kerosene | cd65f5e4b374a91259e22d41153f44c141d79af3 | [
"0BSD"
] | 2 | 2016-01-17T03:35:39.000Z | 2019-12-23T15:04:47.000Z | engine/source/engine/_gl.cpp | n4n0lix/Kerosene | cd65f5e4b374a91259e22d41153f44c141d79af3 | [
"0BSD"
] | null | null | null | engine/source/engine/_gl.cpp | n4n0lix/Kerosene | cd65f5e4b374a91259e22d41153f44c141d79af3 | [
"0BSD"
] | 2 | 2016-03-23T09:13:14.000Z | 2019-12-23T15:04:53.000Z | #include "stdafx.h"
#include "_gl.h"
#ifdef GL_DEBUG
std::string gl_err_to_string(GLenum err) {
switch (err) {
case GL_INVALID_ENUM: return "Invalid enum.";
case GL_INVALID_VALUE: return "Invalid value.";
case GL_INVALID_OPERATION: return "Invalid operation.";
case GL_STACK_OVERFLO... | 31.769231 | 98 | 0.688862 | n4n0lix |
6ad65654e57b79d98b1d94f06e1ccac699c33c72 | 5,057 | cpp | C++ | applications/command_line_tools/simple_embedding_viewer.cpp | kevlim83/High-Dimensional-Inspector | 1ad9cdf7712fb497c88051bdff32ce27350433ed | [
"MIT"
] | 68 | 2017-10-05T16:18:21.000Z | 2022-03-22T14:35:48.000Z | applications/command_line_tools/simple_embedding_viewer.cpp | kevlim83/High-Dimensional-Inspector | 1ad9cdf7712fb497c88051bdff32ce27350433ed | [
"MIT"
] | 8 | 2018-04-27T20:52:00.000Z | 2020-01-17T12:28:35.000Z | applications/command_line_tools/simple_embedding_viewer.cpp | kevlim83/High-Dimensional-Inspector | 1ad9cdf7712fb497c88051bdff32ce27350433ed | [
"MIT"
] | 18 | 2017-10-31T13:09:05.000Z | 2020-07-20T16:50:53.000Z | /*
*
* Copyright (c) 2014, Nicola Pezzotti (Delft University of Technology)
* 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 copyrig... | 39.20155 | 98 | 0.688946 | kevlim83 |
6ad7c09502500ceda52db13e0edc73b64938d9d3 | 6,975 | hpp | C++ | framework/mcrouter/tcp/private/ServerServiceEvent.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 70 | 2021-07-20T11:26:16.000Z | 2022-03-27T11:17:43.000Z | framework/mcrouter/tcp/private/ServerServiceEvent.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 32 | 2021-07-31T05:20:44.000Z | 2022-03-20T10:11:52.000Z | framework/mcrouter/tcp/private/ServerServiceEvent.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 40 | 2021-11-02T09:45:38.000Z | 2022-03-27T11:17:46.000Z | #pragma once
/************************************************************************
* This file is part of the AREG SDK core engine.
* AREG SDK is dual-licensed under Free open source (Apache version 2.0
* License) and Commercial (with various pricing models) licenses, depending
* on the nature of the project (c... | 42.018072 | 122 | 0.558566 | Ali-Nasrolahi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.