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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f8d257f0360fde0eb66b77bd3c933a66cf52e0bb | 5,483 | hpp | C++ | tools/material_munge/src/terrain_materials_config.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | tools/material_munge/src/terrain_materials_config.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | tools/material_munge/src/terrain_materials_config.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include "glm_yaml_adapters.hpp"
#include <map>
#include <string>
#include <yaml-cpp/yaml.h>
namespace sp {
enum class Terrain_bumpmapping {
normal_mapping,
parallax_offset_mapping,
parallax_occlusion_mapping
};
enum class Terrain_blending { height, basic };
enum class Terrain_rendertype { n... | 33.03012 | 87 | 0.658216 | SleepKiller |
f8dae235fa90e0545ee41a44ec680b491ded08e2 | 1,248 | cpp | C++ | src/cheat.cpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/cheat.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/cheat.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 31.2 | 185 | 0.717147 | trademarks |
f8df230c115d9f6d8502ab20bf51d8cf54213951 | 1,557 | cpp | C++ | LeetCode/C++/983. Minimum Cost For Tickets.cpp | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | LeetCode/C++/983. Minimum Cost For Tickets.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | LeetCode/C++/983. Minimum Cost For Tickets.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | //Runtime: 4 ms, faster than 73.48% of C++ online submissions for Minimum Cost For Tickets.
//Memory Usage: 7.8 MB, less than 100.00% of C++ online submissions for Minimum Cost For Tickets.
class Solution {
public:
int mincostTickets(vector<int>& days, vector<int>& costs) {
int N = days.size();
vect... | 40.973684 | 97 | 0.46885 | shreejitverma |
f8e5ce73263ee7d6e7301d3ce396c89339d5b702 | 715 | cc | C++ | roommanager.cc | goon-3/roguekarako | 8f745564dec9f17050eaff1097e52ae720695dd6 | [
"BSD-3-Clause"
] | null | null | null | roommanager.cc | goon-3/roguekarako | 8f745564dec9f17050eaff1097e52ae720695dd6 | [
"BSD-3-Clause"
] | null | null | null | roommanager.cc | goon-3/roguekarako | 8f745564dec9f17050eaff1097e52ae720695dd6 | [
"BSD-3-Clause"
] | null | null | null | //See the LICENSE file for details
#include <SDL/SDL.h>
#include <list>
#include <iostream>
#include "roommanager.h"
#include "roomkarakovillage.h"
RoomManager::RoomManager(int roomnr)
{
switch(roomnr) {
case 0:{
_current = RoomKarakoVillage();
}
default:
_current = RoomKarakoVillage();
}
}
RoomManager::~Ro... | 15.212766 | 49 | 0.67972 | goon-3 |
25c82a565ae26ce2539e1bc6dabf955d252d5ca0 | 12,802 | cpp | C++ | include/PKAssets/PKAsset.cpp | konstatoivanen/PKAssetTools | be14601ae31df164147e4ed8b8674b6deb0dbcb6 | [
"MIT"
] | 2 | 2022-02-05T20:32:01.000Z | 2022-02-13T10:50:05.000Z | include/PKAssets/PKAsset.cpp | konstatoivanen/PKAssetTools | be14601ae31df164147e4ed8b8674b6deb0dbcb6 | [
"MIT"
] | 1 | 2022-02-01T07:04:31.000Z | 2022-02-02T14:46:44.000Z | PKRenderer/include/PKAssets/PKAsset.cpp | konstatoivanen/PKRenderer | 90a2856bf79a117d099981b63aef28331d085625 | [
"MIT"
] | null | null | null | #include "PKAsset.h"
#include <string>
namespace PK::Assets
{
PKElementType GetElementType(const char* string)
{
std::string format(string);
if (format == "half")
{
return PKElementType::Half;
}
if (format == "half2")
{
return PKElementT... | 30.264775 | 61 | 0.524606 | konstatoivanen |
25cd2007ea83d8d154ea9eff629b76a50b626f42 | 1,067 | cpp | C++ | OpenACC/Tournament.cpp | JeffersonH44/DC-GA | a6c4dbd3568fc0552f24f56587dbd0e3797ba3d1 | [
"MIT"
] | null | null | null | OpenACC/Tournament.cpp | JeffersonH44/DC-GA | a6c4dbd3568fc0552f24f56587dbd0e3797ba3d1 | [
"MIT"
] | null | null | null | OpenACC/Tournament.cpp | JeffersonH44/DC-GA | a6c4dbd3568fc0552f24f56587dbd0e3797ba3d1 | [
"MIT"
] | null | null | null | //
// Created by jefferson on 15/09/16.
//
#include <thrust/system/cuda/detail/bulk.h>
#include "Rastrigin.h"
#include "Tournament.h"
Tournament::Tournament(OptimizationFunction<double*> &function, int n, size_t dimension, size_t populationSize) :
eng(rd()),
randomIndex(eng, 0, static_cast<int>(populationSize... | 26.675 | 113 | 0.663543 | JeffersonH44 |
25d414217883f04be600e836b7a24f2454dfb91a | 28,994 | cpp | C++ | egrpc/test/main.cpp | mingkaic/travis-test | 84d45f7c7a079dfd66316d7c31969b43fb9e7c7f | [
"BSL-1.0",
"MIT"
] | null | null | null | egrpc/test/main.cpp | mingkaic/travis-test | 84d45f7c7a079dfd66316d7c31969b43fb9e7c7f | [
"BSL-1.0",
"MIT"
] | 8 | 2019-11-07T03:59:17.000Z | 2022-02-19T19:42:47.000Z | egrpc/test/main.cpp | mingkaic/travis-test | 84d45f7c7a079dfd66316d7c31969b43fb9e7c7f | [
"BSL-1.0",
"MIT"
] | null | null | null | #include <regex>
#include "gtest/gtest.h"
#include "exam/exam.hpp"
#include "estd/estd.hpp"
#include "egrpc/egrpc.hpp"
#include "egrpc/test/test.grpc.pb.h"
using ::testing::_;
using ::testing::SaveArg;
using ::testing::Return;
int main (int argc, char** argv)
{
GOOGLE_PROTOBUF_VERIFY_VERSION;
::testing::Ini... | 26.478539 | 102 | 0.712285 | mingkaic |
25d653d4cf9a282a09cf993ec6e95ba87ab2f199 | 1,521 | cpp | C++ | test/ofp/bundlecontrol_unittest.cpp | byllyfish/oftr | ac1e4ef09388376ea6fa7b460b6abe2ab3471624 | [
"MIT"
] | 1 | 2019-06-14T13:57:28.000Z | 2019-06-14T13:57:28.000Z | test/ofp/bundlecontrol_unittest.cpp | byllyfish/oftr | ac1e4ef09388376ea6fa7b460b6abe2ab3471624 | [
"MIT"
] | 20 | 2017-02-20T04:49:10.000Z | 2019-07-09T05:32:54.000Z | test/ofp/bundlecontrol_unittest.cpp | byllyfish/oftr | ac1e4ef09388376ea6fa7b460b6abe2ab3471624 | [
"MIT"
] | 1 | 2019-07-16T00:21:42.000Z | 2019-07-16T00:21:42.000Z | // Copyright (c) 2015-2018 William W. Fisher (at gmail dot com)
// This file is distributed under the MIT License.
#include "ofp/bundlecontrol.h"
#include "ofp/bundleproperty.h"
#include "ofp/unittest.h"
using namespace ofp;
const OFPBundleCtrlType kFakeType = static_cast<OFPBundleCtrlType>(0x3333);
const OFPBundleF... | 30.42 | 80 | 0.731755 | byllyfish |
25d7e7e6d3bfb9512f36ced7dd1dd7638413ec53 | 4,380 | cc | C++ | test/alog_test1.cc | hfuj13/alog | 5443a60ffafb0e9767710185257bb9c27711a452 | [
"MIT"
] | null | null | null | test/alog_test1.cc | hfuj13/alog | 5443a60ffafb0e9767710185257bb9c27711a452 | [
"MIT"
] | null | null | null | test/alog_test1.cc | hfuj13/alog | 5443a60ffafb0e9767710185257bb9c27711a452 | [
"MIT"
] | null | null | null | #include <thread>
#include "gtest/gtest.h"
#include "alog.hpp"
using namespace std;
using namespace hf;
TEST(alog, init)
{
// いきなり使っても落ちないことを確認
alog log;
log << "no print" << endl;
// ログレベル初期値を確認
alog::level_t expected = alog::SILENT;
alog::level_t actual = log.level();
ASSERT_EQ(expected, actual);
}
... | 22.931937 | 53 | 0.502055 | hfuj13 |
25d805e6fd535805a4a7ad347073373413fa04a9 | 787 | cpp | C++ | Hackerrank_problems/Day_Of_The_Programmer/solution2.cpp | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 165 | 2020-10-03T08:01:11.000Z | 2022-03-31T02:42:08.000Z | Hackerrank_problems/Day_Of_The_Programmer/solution2.cpp | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 383 | 2020-10-03T07:39:11.000Z | 2021-11-20T07:06:35.000Z | Hackerrank_problems/Day_Of_The_Programmer/solution2.cpp | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 380 | 2020-10-03T08:05:04.000Z | 2022-03-19T06:56:59.000Z | #include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
/*
The following logic
- Check if the year is equal to 1918 then will print 26.09.1918
- else if the year more than 1918 and the year is divisible by 4 or year is divisible by 4 and year is not is divisible by 100 or year is divisible by 40... | 26.233333 | 154 | 0.54892 | gbrls |
25da4b07b700a2f4dcfe03b61d54fdb41d39da06 | 6,169 | hxx | C++ | admin/select/src/op.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/select/src/op.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/select/src/op.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+--------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1997 - 2000.
//
// File: op.hxx
//
// Contents: The object picker main class, contains member objects which
// perform all the work.
//
// Cla... | 23.018657 | 78 | 0.55244 | npocmaka |
25da82d37c71eafde781438da4ae1a714fa96d2a | 3,392 | cpp | C++ | SDK/lib/lib/fs/fat/src/diskio.cpp | ghsecuritylab/CppSDK | 50da768a887241d4e670b3ef73c041b21645620e | [
"Unlicense"
] | 1 | 2019-12-15T12:26:52.000Z | 2019-12-15T12:26:52.000Z | SDK/lib/lib/fs/fat/src/diskio.cpp | ghsecuritylab/CppSDK | 50da768a887241d4e670b3ef73c041b21645620e | [
"Unlicense"
] | null | null | null | SDK/lib/lib/fs/fat/src/diskio.cpp | ghsecuritylab/CppSDK | 50da768a887241d4e670b3ef73c041b21645620e | [
"Unlicense"
] | 1 | 2020-03-07T20:47:45.000Z | 2020-03-07T20:47:45.000Z | /*-----------------------------------------------------------------------*/
/* Low level disk I/O module skeleton for FatFs (C)ChaN, 2007 */
/*-----------------------------------------------------------------------*/
/* This is a stub disk I/O module that acts as front end of the existing */
/* disk I/O modu... | 32.932039 | 76 | 0.497936 | ghsecuritylab |
25db27c8066e2357b4822e97522b298de28413d2 | 2,943 | cpp | C++ | examples/profiling/primitive_instrumentation.cpp | rhecto1/phylanx | 524eb7f2497afc9b67c76059767dfb2e4b694a47 | [
"BSL-1.0"
] | null | null | null | examples/profiling/primitive_instrumentation.cpp | rhecto1/phylanx | 524eb7f2497afc9b67c76059767dfb2e4b694a47 | [
"BSL-1.0"
] | null | null | null | examples/profiling/primitive_instrumentation.cpp | rhecto1/phylanx | 524eb7f2497afc9b67c76059767dfb2e4b694a47 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2018 Parsa Amini
// Copyright (c) 2018 Hartmut Kaiser
// Copyright (c) 2018 Shahrzad Shirzad
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <phylanx/phylanx.hpp>
#include <hpx/hp... | 29.138614 | 80 | 0.545362 | rhecto1 |
25e3b20b470c5081f4370003cae237d2be5a866d | 4,405 | cpp | C++ | flang/unittests/Runtime/Matmul.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | flang/unittests/Runtime/Matmul.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | flang/unittests/Runtime/Matmul.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | //===-- flang/unittests/RuntimeGTest/Matmul.cpp---- -------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 44.494949 | 80 | 0.680363 | mkinsner |
25e4b5938abbf299ec0c5b11f33fc4daaca7ad92 | 260 | cpp | C++ | src/cpu/insts/Jnb.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | src/cpu/insts/Jnb.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | src/cpu/insts/Jnb.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | #include "gen/Jnb.h"
#include "cpu/Cpu.h"
#include "cpu/insts/Util.h"
namespace emu::cpu::insts {
template <typename Op1>
void Jnb<Op1>::execute(Cpu& cpu) {
Jcc(cpu, op1_, [&]() { return !CF; });
}
} // namespace emu::cpu::insts
#include "gen/Jnb.cpp"
| 16.25 | 40 | 0.630769 | ammubhave |
25e528d4f4c3222df65af774f958cfcc5078435b | 955 | hpp | C++ | shared/include/req_file_helpers.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | shared/include/req_file_helpers.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | shared/include/req_file_helpers.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include "small_function.hpp"
#include <filesystem>
#include <string>
#include <string_view>
#include <vector>
namespace sp {
auto parse_req_file(const std::filesystem::path& filepath,
std::string_view platform = "pc")
-> std::vector<std::pair<std::string, std::vector<std::string... | 28.939394 | 102 | 0.66178 | SleepKiller |
25e689abd7027ed8b9992ce185f8a21d61141482 | 1,854 | cpp | C++ | libs/file/test/test_file.cpp | sabel83/just | cfe90c1997a000cd88481f5ea9f21a75130a2170 | [
"BSL-1.0"
] | 6 | 2016-05-21T17:15:17.000Z | 2018-04-24T13:03:16.000Z | libs/file/test/test_file.cpp | sabel83/just | cfe90c1997a000cd88481f5ea9f21a75130a2170 | [
"BSL-1.0"
] | null | null | null | libs/file/test/test_file.cpp | sabel83/just | cfe90c1997a000cd88481f5ea9f21a75130a2170 | [
"BSL-1.0"
] | null | null | null | // Copyright Abel Sinkovics (abel@sinkovics.hu) 2016.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <just/file.hpp>
#include <just/temp.hpp>
#include <just/test.hpp>
using namespace just... | 19.515789 | 68 | 0.65534 | sabel83 |
25efa81ee43fead14aac6d3fccbf9832b565b5ef | 931 | cc | C++ | Esercizi/IO_SU_FILES/reverse.cc | alessiamarcolini/Programmazione1UniTN | fd1cbd54b9510e1ec7efb185b727a6fd49dd32f1 | [
"MIT"
] | 3 | 2021-11-05T16:25:50.000Z | 2022-02-10T14:06:00.000Z | Esercizi/IO_SU_FILES/reverse.cc | alessiamarcolini/Programmazione1UniTN | fd1cbd54b9510e1ec7efb185b727a6fd49dd32f1 | [
"MIT"
] | null | null | null | Esercizi/IO_SU_FILES/reverse.cc | alessiamarcolini/Programmazione1UniTN | fd1cbd54b9510e1ec7efb185b727a6fd49dd32f1 | [
"MIT"
] | 2 | 2018-10-31T14:53:40.000Z | 2020-01-09T22:34:37.000Z | #include <iostream>
#include <fstream>
#include <cstring>
#include <cstdlib>
using namespace std;
const int maxsize = 80;
int main(int argc, char * argv[])
{
fstream myin, myout;
if (argc != 3)
{
cout << "Numero non valido di argomenti!" << endl;
exit(0);
}
myin.open(argv[1], ios::in);
/*if (myin.fail())
... | 17.903846 | 55 | 0.576799 | alessiamarcolini |
25f438ca798ef4a0e3e06805444bf5f438796120 | 948 | hpp | C++ | SDK/ARKSurvivalEvolved_TributeTerminal_Base_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_TributeTerminal_Base_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_TributeTerminal_Base_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_TributeTerminal_Base_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//----------------------------------------------------... | 22.571429 | 110 | 0.665612 | 2bite |
25f668a08167d717905198f842e1b149ffcfa341 | 66,900 | cpp | C++ | lemu/tests/lconst_test.cpp | jsg831/livehd | 6a3fb84a8db2bdc3460bb391f82a796fef83d13b | [
"BSD-3-Clause"
] | 115 | 2019-09-28T13:39:41.000Z | 2022-03-24T11:08:53.000Z | lemu/tests/lconst_test.cpp | jsg831/livehd | 6a3fb84a8db2bdc3460bb391f82a796fef83d13b | [
"BSD-3-Clause"
] | 113 | 2019-10-08T23:51:29.000Z | 2021-12-12T06:47:38.000Z | lemu/tests/lconst_test.cpp | jsg831/livehd | 6a3fb84a8db2bdc3460bb391f82a796fef83d13b | [
"BSD-3-Clause"
] | 44 | 2019-09-28T07:53:21.000Z | 2022-02-13T23:21:12.000Z |
#include "lconst.hpp"
#include <cassert>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <vector>
#include "fmt/format.h"
#include "gtest/gtest.h"
#include "lbench.hpp"
#include "lrand.hpp"
#include "mmap_map.hpp"
#include "sint.hpp"
#include "uint.hpp"
/*
uint and sint ... | 37.968218 | 151 | 0.659955 | jsg831 |
25f671b1e42af154aa02b73a0b0d06059df26724 | 8,439 | cpp | C++ | case-studies/PoDoFo/podofo/cib/podofo/doc/PdfSignOutputDevice.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 30 | 2018-03-05T17:35:29.000Z | 2022-03-17T18:59:34.000Z | case-studies/PoDoFo/podofo/cib/podofo/doc/PdfSignOutputDevice.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 2 | 2016-05-26T04:47:13.000Z | 2019-02-15T05:17:43.000Z | case-studies/PoDoFo/podofo/cib/podofo/doc/PdfSignOutputDevice.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 5 | 2019-02-15T05:09:22.000Z | 2021-04-14T12:10:16.000Z | #include "podofo/base/PdfData.h"
#include "podofo/base/PdfOutputDevice.h"
#include "podofo/doc/PdfSignOutputDevice.h"
#include "__zz_cib_CibPoDoFo-class-down-cast.h"
#include "__zz_cib_CibPoDoFo-delegate-helper.h"
#include "__zz_cib_CibPoDoFo-generic.h"
#include "__zz_cib_CibPoDoFo-ids.h"
#include "__zz_cib_CibPoDoFo-... | 57.408163 | 172 | 0.792748 | satya-das |
25fe59ddff0adb240ab78ee57e5b7a8b7427c200 | 40,960 | cpp | C++ | src/modules/processes/PixelMath/PixelMathInterface.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/modules/processes/PixelMath/PixelMathInterface.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/modules/processes/PixelMath/PixelMathInterface.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.9
// ----------------------------------------------------------------------------
// Standard PixelMath Process Module Version 1.8.1
// --------------------------... | 40.394477 | 140 | 0.679858 | fmeschia |
d30093b03fff2c442567370546d8f79044540cd9 | 10,991 | cpp | C++ | impl/gamelib/level.cpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | impl/gamelib/level.cpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | impl/gamelib/level.cpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | #include "level.hpp"
#include "dialog/dialog_serializer.hpp"
#include "enemies/enemy_serialization.hpp"
#include "game_interface.hpp"
#include "game_properties.hpp"
#include "guile.hpp"
#include "nlohmann.hpp"
#include "pathfinder/pathfinder.hpp"
#include "strutils.hpp"
#include "tilemap/node_layer.hpp"
#include "tilem... | 33.714724 | 98 | 0.689564 | runvs |
d300bbd04f5abe6c8772e8244da18888066e24b1 | 3,738 | cpp | C++ | src/hagglekernel/Manager.cpp | eebenson/haggle | c461667b079934fa03b1ebb472ca67641a3d1140 | [
"Apache-2.0"
] | null | null | null | src/hagglekernel/Manager.cpp | eebenson/haggle | c461667b079934fa03b1ebb472ca67641a3d1140 | [
"Apache-2.0"
] | null | null | null | src/hagglekernel/Manager.cpp | eebenson/haggle | c461667b079934fa03b1ebb472ca67641a3d1140 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2008-2009 Uppsala University
*
* 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 a... | 22.118343 | 105 | 0.727929 | eebenson |
d30125ddfb71b68e425c90c886bf68ce13533203 | 1,244 | cpp | C++ | qd/cae/dyna_cpp/dyna/d3plot/D3plotHeader.cpp | martinventer/musical-dollop | debb36b87551a68fddee16a3d1194f9961d13756 | [
"MIT"
] | 104 | 2017-08-29T19:33:53.000Z | 2022-03-19T11:36:05.000Z | qd/cae/dyna_cpp/dyna/d3plot/D3plotHeader.cpp | martinventer/musical-dollop | debb36b87551a68fddee16a3d1194f9961d13756 | [
"MIT"
] | 72 | 2017-08-10T10:59:43.000Z | 2021-10-06T19:06:50.000Z | qd/cae/dyna_cpp/dyna/d3plot/D3plotHeader.cpp | martinventer/musical-dollop | debb36b87551a68fddee16a3d1194f9961d13756 | [
"MIT"
] | 37 | 2017-11-20T14:00:56.000Z | 2022-03-09T17:19:06.000Z |
#include <dyna_cpp/dyna/d3plot/D3plotHeader.hpp>
namespace qd {
/** Constructor for the D3plot Header
*
* The header data is taken from the header of the file.
*/
D3plotHeader::D3plotHeader()
: dyna_ndim(-1)
, dyna_icode(-1)
, dyna_numnp(-1)
, dyna_mdlopt(-1)
, dyna_mattyp(-1)
, dyna_nglbv(-1)
, dyn... | 20.064516 | 56 | 0.628617 | martinventer |
d30180b43f39753468ae88917380f77bb32731a2 | 1,146 | cpp | C++ | src/core/lib/core_common/wg_dlink.cpp | wgsyd/wgtf | d8cacb43e2c5d40080d33c18a8c2f5bd27d21bed | [
"BSD-3-Clause"
] | 28 | 2016-06-03T05:28:25.000Z | 2019-02-14T12:04:31.000Z | src/core/lib/core_common/wg_dlink.cpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | null | null | null | src/core/lib/core_common/wg_dlink.cpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | 14 | 2016-06-03T05:52:27.000Z | 2019-03-21T09:56:03.000Z | #include "wg_dlink.hpp"
namespace
{
#if 0
class Unit
{
public:
Unit()
{
// declare some object that holds a link
typedef std::pair<int, wg::DLink> Holder;
Holder holder;
// declare an empty link that is used to manage list
wg::DLink list;
// add object to the list
list.append(&holder.sec... | 13.172414 | 69 | 0.635253 | wgsyd |
d3034982b3ad966046d0cf3dfc55ca84f55a7413 | 874 | cpp | C++ | Codeforces/1005A_Tanya and Stairways.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | 1 | 2020-04-13T11:12:19.000Z | 2020-04-13T11:12:19.000Z | Codeforces/1005A_Tanya and Stairways.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | Codeforces/1005A_Tanya and Stairways.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | /*
People who don't work hard
don't have the right
to be envious of the people with talent.
People fail because
they don't understand
the hard work necessary to be successful.
*/
#include <bits/stdc++.h>
using namespace std;
int n, arr[1007], total;
vector<int> ans;
int main(... | 18.595745 | 46 | 0.44508 | lieahau |
d305fcafcaf30719fa92302b617b05d4bd433503 | 2,620 | hpp | C++ | hpx/util/logging/detail/raw_doc/namespace_concepts.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | hpx/util/logging/detail/raw_doc/namespace_concepts.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | hpx/util/logging/detail/raw_doc/namespace_concepts.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | // Boost Logging library
//
// Author: John Torjo, www.torjo.com
//
// Copyright (C) 2007 John Torjo (see www.torjo.com for email)
//
// 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)
//
// See http://w... | 38.529412 | 138 | 0.758397 | Titzi90 |
d3081cddc5265e67a68049fe85b288b523a3926a | 3,519 | cpp | C++ | Codeforces/CF1003-D3-F.cpp | SpeedOfMagic/CompetitiveProgramming | 03f9d2925dbf9af29e93f67753397b5fbff7ab27 | [
"MIT"
] | 1 | 2021-05-07T07:38:26.000Z | 2021-05-07T07:38:26.000Z | Codeforces/CF1003-D3-F.cpp | SpeedOfMagic/CompetitiveProgramming | 03f9d2925dbf9af29e93f67753397b5fbff7ab27 | [
"MIT"
] | null | null | null | Codeforces/CF1003-D3-F.cpp | SpeedOfMagic/CompetitiveProgramming | 03f9d2925dbf9af29e93f67753397b5fbff7ab27 | [
"MIT"
] | null | null | null | /** MIT License Copyright (c) 2018 Vasilyev Daniil **/
// Editorial: https://codeforces.com/blog/entry/60417
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
template<typename T> using v = vector<T>;
#define int long long
typedef string str;
typedef vector<int> vint;
#define rep(a, l... | 27.708661 | 126 | 0.447286 | SpeedOfMagic |
d309e838dfc29a7bcf2726c9b022b3a176384e5e | 1,058 | cpp | C++ | Mesh.cpp | refik-karic/ZSharp | 643d4d7603e91d5b9150bf8ddfed8b1eab930b92 | [
"MIT"
] | null | null | null | Mesh.cpp | refik-karic/ZSharp | 643d4d7603e91d5b9150bf8ddfed8b1eab930b92 | [
"MIT"
] | null | null | null | Mesh.cpp | refik-karic/ZSharp | 643d4d7603e91d5b9150bf8ddfed8b1eab930b92 | [
"MIT"
] | null | null | null | #include "Mesh.h"
#include "UtilMath.h"
#include <cstring>
namespace ZSharp {
Mesh::Mesh() {
}
Mesh::Mesh(size_t numVerts, size_t stride, size_t numTriangleFaces) :
mStride(stride) {
mVertTable.Resize(numVerts);
mTriangleFaceTable.Resize(numTriangleFaces);
}
Mesh::Mesh(const Mesh& copy) {
*this = copy;
}
... | 20.346154 | 79 | 0.73913 | refik-karic |
d30f89346ef520782d61df00a575e065f5245433 | 708 | hpp | C++ | lib/libcpp/Solvers/Solvers/model.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | lib/libcpp/Solvers/Solvers/model.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | 1 | 2019-01-31T10:59:11.000Z | 2019-01-31T10:59:11.000Z | lib/libcpp/Solvers/Solvers/model.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | #ifndef __Solvers_Model_hpp
#define __Solvers_Model_hpp
#include "modelinterface.hpp"
/*--------------------------------------------------------------------------*/
namespace solvers
{
class Model : public ModelInterface
{
protected:
public:
~Model();
Model();
Model( const Model& model);
Mode... | 26.222222 | 94 | 0.539548 | beckerrh |
d312f66bffa4fdefcc24ceff1d7ef11d29d6b6c5 | 3,363 | cpp | C++ | Photon Engine/Model.cpp | DeryabinIvan/Photon-Engine | b256486b4a6d92a5dce49b07e53c318b89aa3e71 | [
"MIT"
] | 1 | 2018-07-06T12:30:33.000Z | 2018-07-06T12:30:33.000Z | Photon Engine/Model.cpp | DeryabinIvan/Photon-Engine | b256486b4a6d92a5dce49b07e53c318b89aa3e71 | [
"MIT"
] | 3 | 2021-06-17T18:08:26.000Z | 2021-09-07T07:48:15.000Z | Photon Engine/Model.cpp | DeryabinIvan/Photon-Engine | b256486b4a6d92a5dce49b07e53c318b89aa3e71 | [
"MIT"
] | null | null | null | #include "Model.h"
#include "GLEW/glew.h"
#include "GLM/glm.hpp"
#include "GLM/gtc/matrix_transform.hpp"
namespace ph_engine {
Model::Model(){
}
Model::~Model(){
//TODO: AssImp unload
}
void Model::draw(ShaderProgram& program) {
for (int i = 0; i < meshes.size(); i++)
meshes[i].draw(pr... | 27.120968 | 114 | 0.626524 | DeryabinIvan |
d3190296515cab5c7d33357ca523486066171216 | 140 | cpp | C++ | inputs/condition.cpp | sparklingyo/compilers-final-project | 2538756af945750f552529856a22623716b13d44 | [
"MIT"
] | null | null | null | inputs/condition.cpp | sparklingyo/compilers-final-project | 2538756af945750f552529856a22623716b13d44 | [
"MIT"
] | null | null | null | inputs/condition.cpp | sparklingyo/compilers-final-project | 2538756af945750f552529856a22623716b13d44 | [
"MIT"
] | 2 | 2019-12-15T00:17:07.000Z | 2020-08-14T19:35:12.000Z | int main(){
int a = 1;
int b = 2;
int c;
if (b > a) {
c = b;
}
else {
c = a;
}
return c;
} | 10 | 16 | 0.285714 | sparklingyo |
d31b24145fe86a102e259aae1e9cb57bd9505097 | 558 | cpp | C++ | src/NovelRT/Experimental/Graphics/GraphicsPipelineResource.cpp | Exadon/NovelRT | 82000a25fd53157b26a6e6d6c71cbee0ebaa241b | [
"MIT"
] | 167 | 2019-02-12T14:12:04.000Z | 2022-03-25T17:14:24.000Z | src/NovelRT/Experimental/Graphics/GraphicsPipelineResource.cpp | BanalityOfSeeking/NovelRT | bbbe54f719acdc2fcee4604ee90fb43ff975aee9 | [
"MIT"
] | 270 | 2019-02-14T20:33:05.000Z | 2022-03-08T02:28:20.000Z | src/NovelRT/Experimental/Graphics/GraphicsPipelineResource.cpp | BanalityOfSeeking/NovelRT | bbbe54f719acdc2fcee4604ee90fb43ff975aee9 | [
"MIT"
] | 56 | 2019-08-22T15:57:00.000Z | 2022-03-03T19:52:18.000Z | // Copyright © Matt Jones and Contributors. Licensed under the MIT Licence (MIT). See LICENCE.md in the repository root
// for more information.
#include <NovelRT/Experimental/Graphics/Graphics.h>
namespace NovelRT::Experimental::Graphics
{
GraphicsPipelineResourceKind Graphics::GraphicsPipelineResource::GetKind... | 29.368421 | 119 | 0.752688 | Exadon |
d31b38df9d8fbd911dabf899e296e3fab6878048 | 426 | cpp | C++ | RiverAttack/Drawer.cpp | leonardola/RiverAttack | 511e8e8888b0fd96fa26a01289bd811a39dc5a8b | [
"MIT"
] | null | null | null | RiverAttack/Drawer.cpp | leonardola/RiverAttack | 511e8e8888b0fd96fa26a01289bd811a39dc5a8b | [
"MIT"
] | null | null | null | RiverAttack/Drawer.cpp | leonardola/RiverAttack | 511e8e8888b0fd96fa26a01289bd811a39dc5a8b | [
"MIT"
] | null | null | null | #include "Drawer.h"
Drawer::Drawer(int windowHeight, int windowWidth){
this->windowHeight = windowHeight;
this->startingPosition = -windowHeight/2;
this->mapBlocks[0]->get
}
void Drawer::createBaseMap(int windowHeight, int windowWidth){
for(int i = 0; i < 10; i++){
this->mapBlocks[i] = new Blocks(windowHei... | 12.171429 | 62 | 0.690141 | leonardola |
d31c12ef0561a347490fd7575956f4075d03f113 | 23,162 | cpp | C++ | sources/VS/ThirdParty/wxWidgets/src/msw/webrequest_winhttp.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | null | null | null | sources/VS/ThirdParty/wxWidgets/src/msw/webrequest_winhttp.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | 4 | 2022-01-23T02:05:42.000Z | 2022-01-26T18:03:34.000Z | sources/VS/ThirdParty/wxWidgets/src/msw/webrequest_winhttp.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/webrequest_winhttp.h
// Purpose: wxWebRequest WinHTTP implementation
// Author: Tobias Taschner
// Created: 2018-10-17
// Copyright: (c) 2018 wxWidgets development team
// Licence: wxWindows licence... | 31.555858 | 126 | 0.651455 | Sasha7b9Work |
d31c21a47cca852d64579392e987ccfc18690fb7 | 55 | cpp | C++ | modules/electron/system-part1/src/export_socket_hal.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | 1 | 2019-02-24T07:13:51.000Z | 2019-02-24T07:13:51.000Z | modules/electron/system-part1/src/export_socket_hal.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | 1 | 2018-05-29T19:27:53.000Z | 2018-05-29T19:27:53.000Z | modules/electron/system-part1/src/export_socket_hal.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | null | null | null | #define DYNALIB_EXPORT
#include "hal_dynalib_socket.h"
| 18.333333 | 31 | 0.836364 | zsoltmazlo |
d31efe751a0fec89af5a50448c6844e30da37fee | 301 | cpp | C++ | support/libtrace/lib/RecordFile.cpp | Linestro/Gensim_Y | 031b74234a92622cf2d2d2ebc2d5ba03ca28ecf8 | [
"MIT"
] | 10 | 2020-07-14T22:09:30.000Z | 2022-01-11T09:57:52.000Z | support/libtrace/lib/RecordFile.cpp | Linestro/Gensim_Y | 031b74234a92622cf2d2d2ebc2d5ba03ca28ecf8 | [
"MIT"
] | 6 | 2020-07-09T12:01:57.000Z | 2021-04-27T10:23:58.000Z | support/libtrace/lib/RecordFile.cpp | Linestro/Gensim_Y | 031b74234a92622cf2d2d2ebc2d5ba03ca28ecf8 | [
"MIT"
] | 10 | 2020-07-29T17:05:26.000Z | 2021-12-04T14:57:15.000Z | /* This file is Copyright University of Edinburgh 2018. For license details, see LICENSE. */
#include "libtrace/RecordFile.h"
using namespace libtrace;
RecordIterator RecordFile::begin()
{
return RecordIterator(this, 0);
}
RecordIterator RecordFile::end()
{
return RecordIterator(this, _count);
}
| 21.5 | 92 | 0.76412 | Linestro |
d32429cef412ddc8c03b72205cd173375d7149a0 | 2,486 | cpp | C++ | core/indigo-core/graph/src/graph_affine_matcher.cpp | tsingdao-Tp/Indigo | b2d73faebb6a450e9b3d34fed553fad4f9d0012f | [
"Apache-2.0"
] | 204 | 2015-11-06T21:34:34.000Z | 2022-03-30T16:17:01.000Z | core/indigo-core/graph/src/graph_affine_matcher.cpp | tsingdao-Tp/Indigo | b2d73faebb6a450e9b3d34fed553fad4f9d0012f | [
"Apache-2.0"
] | 509 | 2015-11-05T13:54:43.000Z | 2022-03-30T22:15:30.000Z | core/indigo-core/graph/src/graph_affine_matcher.cpp | tsingdao-Tp/Indigo | b2d73faebb6a450e9b3d34fed553fad4f9d0012f | [
"Apache-2.0"
] | 89 | 2015-11-17T08:22:54.000Z | 2022-03-17T04:26:28.000Z | /****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... | 29.247059 | 160 | 0.594529 | tsingdao-Tp |
d32448c8b851f77b4e2d0c44c324863ca35afab1 | 2,192 | hpp | C++ | include/normalization.hpp | wichtounet/word_spotting | 7e25513acc684d79f5c6b622d1d2e55fc40d3192 | [
"MIT"
] | 4 | 2017-11-07T02:36:30.000Z | 2022-01-20T17:46:06.000Z | include/normalization.hpp | wichtounet/word_spotting | 7e25513acc684d79f5c6b622d1d2e55fc40d3192 | [
"MIT"
] | null | null | null | include/normalization.hpp | wichtounet/word_spotting | 7e25513acc684d79f5c6b622d1d2e55fc40d3192 | [
"MIT"
] | 1 | 2019-12-11T11:03:25.000Z | 2019-12-11T11:03:25.000Z | //=======================================================================
// Copyright Baptiste Wicht 2015-2017.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================
#pragma o... | 26.095238 | 95 | 0.622719 | wichtounet |
d3268f371126b8a9b4ef6bffc7bcaca84e8f82f1 | 1,162 | cpp | C++ | binary search/firstAndLastPosition.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | 20 | 2022-01-04T19:36:14.000Z | 2022-03-21T15:35:09.000Z | binary search/firstAndLastPosition.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | null | null | null | binary search/firstAndLastPosition.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | null | null | null | // Leetcode - 34 - Find First and Last Position of Element in Sorted Array
vector<int> searchRange(vector<int> &nums, int target)
{
vector<int> result(2);
result[0] = findStartIndex(nums, target);
result[1] = findEndIndex(nums, target);
return result;
}
int findStartIndex(vector<int> &nums, int target)... | 20.385965 | 74 | 0.457831 | Gooner1886 |
d328270d826e184982b476132240df44e6c3eb5a | 1,700 | cpp | C++ | scripts/JSCP2017/utils.cpp | SSV-Group/dsverifier | 1daca4704216edf9a360b4a39e00663d94646ad1 | [
"Apache-2.0"
] | 10 | 2016-08-29T19:23:25.000Z | 2020-10-18T22:27:21.000Z | scripts/JSCP2017/utils.cpp | SSV-Group/dsverifier | 1daca4704216edf9a360b4a39e00663d94646ad1 | [
"Apache-2.0"
] | 64 | 2016-09-10T16:29:44.000Z | 2019-01-15T14:31:06.000Z | scripts/JSCP2017/utils.cpp | SSV-Group/dsverifier | 1daca4704216edf9a360b4a39e00663d94646ad1 | [
"Apache-2.0"
] | 5 | 2016-10-09T21:38:41.000Z | 2017-07-05T10:05:32.000Z | /*
* verification_metrics.cpp
*
* Authors: Erickson H. da S. Alves <erickson.higor@gmail.com>
* Felipe R. Monteiro <rms.felipe@gmail.com>
*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
* */
#include "utils.h"
std::vector... | 29.824561 | 74 | 0.575294 | SSV-Group |
d32a777e201ed36ed7277c511973e54787af0b17 | 1,416 | cpp | C++ | tools/converter/source/tensorflow/StridedSliceTf.cpp | xhuan28/MNN | 81df3a48d79cbc0b75251d12934345948866f7be | [
"Apache-2.0"
] | 6,958 | 2019-05-06T02:38:02.000Z | 2022-03-31T18:08:48.000Z | tools/converter/source/tensorflow/StridedSliceTf.cpp | xhuan28/MNN | 81df3a48d79cbc0b75251d12934345948866f7be | [
"Apache-2.0"
] | 1,775 | 2019-05-06T04:40:19.000Z | 2022-03-30T15:39:24.000Z | tools/converter/source/tensorflow/StridedSliceTf.cpp | xhuan28/MNN | 81df3a48d79cbc0b75251d12934345948866f7be | [
"Apache-2.0"
] | 1,511 | 2019-05-06T02:38:05.000Z | 2022-03-31T16:59:39.000Z | //
// StridedSliceTf.cpp
// MNNConverter
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <string.h>
#include "TfUtils.hpp"
#include "tfOpConverter.hpp"
#include "graph.pb.h"
DECLARE_OP_CONVERTER(StridedSliceTf);
MNN::OpType StridedSliceTf::opType() {
return... | 26.716981 | 64 | 0.713277 | xhuan28 |
d32fbe05cb160c1aa944fc9c7fc02652a284470e | 1,428 | cpp | C++ | third_party/WebKit/Source/modules/presentation/PresentationAvailabilityCallbacks.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/modules/presentation/PresentationAvailabilityCallbacks.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/modules/presentation/PresentationAvailabilityCallbacks.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "modules/presentation/PresentationAvailabilityCallbacks.h"
#include "bindings/core/v8/ScriptPromiseResolver.h"
#include "core/dom/DOMException.h... | 34 | 74 | 0.782213 | metux |
d330e85084822b6f1fa5573c84a797a247a3989b | 1,223 | cpp | C++ | src/game/Asteroid.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | src/game/Asteroid.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | src/game/Asteroid.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | #include "game/Asteroid.hpp"
#include "rendering/MeshFactory.hpp"
#include <cmath>
static const float kScale = 0.3f;
static const float kAsteroidMass = 10.0f;
Asteroid::Asteroid(const glm::vec3& pos, const glm::vec3& scale,
const glm::vec3& speed, const glm::vec3& rotSpeed) {
m_pos = pos;
m_sp... | 29.829268 | 79 | 0.639411 | MuniuDev |
d337ac107753f37fce256b12433bf43743028f81 | 53,642 | cpp | C++ | apps/hubo-ik-gui.cpp | mxgrey/protoHuboGUI | 3384c5e40c544bd472199da9cd6e90e28321a77f | [
"BSD-2-Clause"
] | null | null | null | apps/hubo-ik-gui.cpp | mxgrey/protoHuboGUI | 3384c5e40c544bd472199da9cd6e90e28321a77f | [
"BSD-2-Clause"
] | null | null | null | apps/hubo-ik-gui.cpp | mxgrey/protoHuboGUI | 3384c5e40c544bd472199da9cd6e90e28321a77f | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2015, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): Michael X. Grey <mxgrey@gatech.edu>
*
* Georgia Tech Graphics Lab and Humanoid Robotics Lab
*
* Directed by Prof. C. Karen Liu and Prof. Mike Stilman
* <karenliu@cc.gatech.edu> <mstilman@cc.gatech.edu>
*
* This f... | 28.367002 | 121 | 0.618023 | mxgrey |
d33a33240d8a178417fd46bada7263e30639b3bd | 12,320 | cpp | C++ | OldCode/CameraController - GenlCam.cpp | merfii/Slurry | 92b23ea2b764252fc90c2af741debdffb9a96106 | [
"MIT"
] | 4 | 2019-12-04T02:56:35.000Z | 2022-01-05T14:14:37.000Z | OldCode/CameraController - GenlCam.cpp | merfii/Slurry | 92b23ea2b764252fc90c2af741debdffb9a96106 | [
"MIT"
] | null | null | null | OldCode/CameraController - GenlCam.cpp | merfii/Slurry | 92b23ea2b764252fc90c2af741debdffb9a96106 | [
"MIT"
] | 2 | 2018-11-06T03:54:00.000Z | 2018-12-06T12:13:30.000Z | #pragma execution_character_set("utf-8")
#include "GlobalShared.h"
#include "CameraController.h"
//Settings for using Basler GigE cameras.
#include <pylon/PylonIncludes.h>
//#include <pylon/PylonGUI.h>
#include <pylon/gige/BaslerGigEInstantCamera.h>
#include <pylon/gige/BaslerGigEDeviceInfo.h>
typedef Pylon::CBasl... | 24.109589 | 121 | 0.701786 | merfii |
d33bcd03a2d7a3fcf9a544973c34817e456a6a0b | 4,909 | cxx | C++ | libs/gt/src/GenArr.cxx | kit-transue/software-emancipation-discover | bec6f4ef404d72f361d91de954eae9a3bd669ce3 | [
"BSD-2-Clause"
] | 2 | 2015-11-24T03:31:12.000Z | 2015-11-24T16:01:57.000Z | libs/gt/src/GenArr.cxx | radtek/software-emancipation-discover | bec6f4ef404d72f361d91de954eae9a3bd669ce3 | [
"BSD-2-Clause"
] | null | null | null | libs/gt/src/GenArr.cxx | radtek/software-emancipation-discover | bec6f4ef404d72f361d91de954eae9a3bd669ce3 | [
"BSD-2-Clause"
] | 1 | 2019-05-19T02:26:08.000Z | 2019-05-19T02:26:08.000Z | /*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... | 23.830097 | 81 | 0.507028 | kit-transue |
d33ed0e5e621a8a9f780fc8bfa5ee69f86006c7d | 2,327 | cpp | C++ | tweann.cpp | Apostol3/nlab | 3be200dc5a7d90c32fac28f68acade3551119621 | [
"MIT"
] | null | null | null | tweann.cpp | Apostol3/nlab | 3be200dc5a7d90c32fac28f68acade3551119621 | [
"MIT"
] | null | null | null | tweann.cpp | Apostol3/nlab | 3be200dc5a7d90c32fac28f68acade3551119621 | [
"MIT"
] | 1 | 2020-04-04T14:00:45.000Z | 2020-04-04T14:00:45.000Z | #include "tweann.h"
#include <chrono>
#include <random>
using namespace nlab;
std::uint64_t tweann::generate_id()
{
static std::uint64_t seed = std::chrono::system_clock::now().time_since_epoch().count();
static std::mt19937_64 gen(seed);
static std::uniform_int_distribution< std::uint32_t > dist; //borland comp... | 16.272727 | 91 | 0.54104 | Apostol3 |
d33f8a44195f340f977f41dd7706425d5f71dfbd | 9,105 | cpp | C++ | third_party/openal-soft/alc/bsinc_tables.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | 2 | 2022-03-05T02:46:22.000Z | 2022-03-05T03:04:20.000Z | third_party/openal-soft/alc/bsinc_tables.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | null | null | null | third_party/openal-soft/alc/bsinc_tables.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | 4 | 2021-09-06T20:44:47.000Z | 2021-10-04T22:05:12.000Z |
#include "bsinc_tables.h"
#include <algorithm>
#include <array>
#include <cassert>
#include <cmath>
#include <limits>
#include <memory>
#include <stdexcept>
#include "math_defs.h"
#include "vector.h"
namespace {
/* The max points includes the doubling for downsampling, so the maximum number
* of base sample poin... | 31.50519 | 97 | 0.577924 | hporro |
d344d5fc202930c184566b2625ad1811599663bf | 6,259 | cpp | C++ | main/main.cpp | johanvdp/kweker | 2e3ce0a8ee0436ccea52ca803c1b375f08663c2a | [
"Unlicense"
] | null | null | null | main/main.cpp | johanvdp/kweker | 2e3ce0a8ee0436ccea52ca803c1b375f08663c2a | [
"Unlicense"
] | null | null | null | main/main.cpp | johanvdp/kweker | 2e3ce0a8ee0436ccea52ca803c1b375f08663c2a | [
"Unlicense"
] | null | null | null | // The author disclaims copyright to this source code.
extern "C" {
#include <string.h>
#include "driver/spi_master.h"
#include "esp_system.h"
#include "esp_log.h"
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
#include "pubsub.h"
#include "pubsub_test.h"
#include "LED.h"
#includ... | 27.572687 | 113 | 0.671034 | johanvdp |
d34570e787e459287c1f5cc0b15813906a39f215 | 1,373 | cpp | C++ | src/cpp/pongasoft/VST/GUI/ParamAwareViews.cpp | pongasoft/jamba | 0af93fc973c61b06d7a63c8e0e67329ed9ad656c | [
"Apache-2.0"
] | 93 | 2018-08-29T22:37:20.000Z | 2022-03-24T01:57:58.000Z | src/cpp/pongasoft/VST/GUI/ParamAwareViews.cpp | pongasoft/jamba | 0af93fc973c61b06d7a63c8e0e67329ed9ad656c | [
"Apache-2.0"
] | 13 | 2018-09-01T15:10:54.000Z | 2021-12-23T16:13:27.000Z | src/cpp/pongasoft/VST/GUI/ParamAwareViews.cpp | pongasoft/jamba | 0af93fc973c61b06d7a63c8e0e67329ed9ad656c | [
"Apache-2.0"
] | 1 | 2021-02-22T09:47:10.000Z | 2021-02-22T09:47:10.000Z | /*
* Copyright (c) 2019 pongasoft
*
* 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... | 29.847826 | 80 | 0.573926 | pongasoft |
d34c7917525df38039e1a69a08689de9bd8e14a8 | 299 | cpp | C++ | C语言程序设计基础/24.【中学】找出最大素数.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 63 | 2021-01-10T02:32:17.000Z | 2022-03-30T04:08:38.000Z | C语言程序设计基础/24.【中学】找出最大素数.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 2 | 2021-06-09T05:38:58.000Z | 2021-12-14T13:53:54.000Z | C语言程序设计基础/24.【中学】找出最大素数.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 20 | 2021-01-12T11:49:36.000Z | 2022-03-26T11:04:58.000Z | #include <stdio.h>
int is_sushu(int n)
{
int i;
for ( i = 2; i*i <= n; i++)
if (n % i == 0) return 0;
if (i*i > n) return 1;
}
int main()
{
int n;
scanf ("%d", &n);
for (; n >= 0; n--)
{
if ( is_sushu(n) == 1)
{
printf ("The max prime number is %d.\n", n);
break;
}
}
} | 13.590909 | 47 | 0.448161 | xiabee |
d35600d8921c913c3c75f1a0aa18504b1aed7aea | 9,426 | hpp | C++ | Backends/include/gambit/Backends/backend_types/gm2calc_1_2_0/wrapper_MSSMNoFV_onshell_physical_def.hpp | GambitBSM/gambit_2.0 | a4742ac94a0352585a3b9dcb9b222048a5959b91 | [
"Unlicense"
] | 1 | 2021-09-17T22:53:26.000Z | 2021-09-17T22:53:26.000Z | Backends/include/gambit/Backends/backend_types/gm2calc_1_2_0/wrapper_MSSMNoFV_onshell_physical_def.hpp | GambitBSM/gambit_2.0 | a4742ac94a0352585a3b9dcb9b222048a5959b91 | [
"Unlicense"
] | 3 | 2021-07-22T11:23:48.000Z | 2021-08-22T17:24:41.000Z | Backends/include/gambit/Backends/backend_types/gm2calc_1_2_0/wrapper_MSSMNoFV_onshell_physical_def.hpp | GambitBSM/gambit_2.0 | a4742ac94a0352585a3b9dcb9b222048a5959b91 | [
"Unlicense"
] | 1 | 2021-08-14T10:31:41.000Z | 2021-08-14T10:31:41.000Z | #ifndef __wrapper_MSSMNoFV_onshell_physical_def_gm2calc_1_2_0_hpp__
#define __wrapper_MSSMNoFV_onshell_physical_def_gm2calc_1_2_0_hpp__
#include <ostream>
#include <Eigen/Core>
#include "identification.hpp"
namespace CAT_3(BACKENDNAME,_,SAFE_VERSION)
{
namespace gm2calc
{
// Member functions: ... | 38.161943 | 116 | 0.576597 | GambitBSM |
d3578be326b1fd5095191108bfe615b4a133cbec | 842 | cpp | C++ | AdvancedCpp/StacksAndQueues/src/main.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | AdvancedCpp/StacksAndQueues/src/main.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | AdvancedCpp/StacksAndQueues/src/main.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | #include <iostream>
#include <string>
#include <stack>
#include <queue>
using namespace std;
class Test
{
string name;
public:
explicit Test(string name) : name(name)
{
}
~Test()
{
}
void print() const
{
cout << name << endl;
}
};
int main(int argc, char const *argv[])
{
//LIFO
stack<Test> test... | 12.953846 | 40 | 0.624703 | SebastianTirado |
d35c3d9a0a0767dccb5c2102fa6638f166482347 | 6,748 | cpp | C++ | Source/Ilum/Renderer/RenderPass/Shading/Deferred/MeshPass.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 11 | 2022-01-09T05:32:56.000Z | 2022-03-28T06:35:16.000Z | Source/Ilum/Renderer/RenderPass/Shading/Deferred/MeshPass.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | null | null | null | Source/Ilum/Renderer/RenderPass/Shading/Deferred/MeshPass.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 1 | 2021-11-20T15:39:03.000Z | 2021-11-20T15:39:03.000Z | #include "MeshPass.hpp"
#include "Renderer/Renderer.hpp"
#include <imgui.h>
namespace Ilum::pass
{
MeshPass::MeshPass(bool jitter):
m_jitter(jitter)
{
}
void MeshPass::setupPipeline(PipelineState &state)
{
std::vector<std::string> macros;
if (m_jitter)
{
macros.push_back("USE_JITTER");
}
state.shader.lo... | 52.310078 | 193 | 0.783491 | Chaf-Libraries |
d35cbcf7d34ed1a747fbadcb41fe598aa0a0e302 | 8,641 | cpp | C++ | src/types/MNISTDigit.cpp | Bhaskers-Blu-Org1/mi-reinforcement-learning | ae4dc243b344683065c342fee6a03918b2e4ed48 | [
"Apache-2.0"
] | 3 | 2019-12-03T17:43:32.000Z | 2021-02-01T04:15:12.000Z | src/types/MNISTDigit.cpp | Bhaskers-Blu-Org1/mi-reinforcement-learning | ae4dc243b344683065c342fee6a03918b2e4ed48 | [
"Apache-2.0"
] | 2 | 2019-02-02T10:47:45.000Z | 2019-02-04T23:13:50.000Z | src/types/MNISTDigit.cpp | IBM/mi-reinforcement-learning | ae4dc243b344683065c342fee6a03918b2e4ed48 | [
"Apache-2.0"
] | 4 | 2019-01-02T21:42:54.000Z | 2020-06-29T14:28:57.000Z | /*!
* Copyright (C) tkornuta, IBM Corporation 2015-2019
*
* 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 app... | 28.055195 | 167 | 0.671682 | Bhaskers-Blu-Org1 |
d35d89dbfb3f0ef1477dc36f42001498295e0923 | 528 | cpp | C++ | cliente/modelos/MenuSeleccion.cpp | seblaz/Final-Fight | b79677191a4d4239e8793fa0b6e8a8b69870a14d | [
"MIT"
] | 1 | 2020-02-23T21:15:59.000Z | 2020-02-23T21:15:59.000Z | cliente/modelos/MenuSeleccion.cpp | seblaz/Final-Fight | b79677191a4d4239e8793fa0b6e8a8b69870a14d | [
"MIT"
] | 1 | 2020-03-06T21:31:10.000Z | 2020-03-06T21:31:10.000Z | cliente/modelos/MenuSeleccion.cpp | seblaz/Final-Fight | b79677191a4d4239e8793fa0b6e8a8b69870a14d | [
"MIT"
] | 1 | 2020-02-23T21:28:28.000Z | 2020-02-23T21:28:28.000Z | //
// Created by sebas on 6/11/19.
//
#include "MenuSeleccion.h"
enum PERSONAJE MenuSeleccion::getPersonaje() {
return actual;
}
void MenuSeleccion::siguiente() {
actual = static_cast<enum PERSONAJE>((static_cast<int>(actual) + 1) % 4);
}
void MenuSeleccion::anterior() {
int pos = (static_cast<int>(actu... | 19.555556 | 86 | 0.659091 | seblaz |
d35e146e39b63c0929e92cdc048d3c8d28bbf1a4 | 15,443 | cc | C++ | trader-desk/chart.cc | HitHub1991/-dmbcs-trader-desk | 365ad5a560564220398ba8ab4b900eb1ca26c8cd | [
"FSFAP"
] | 6 | 2020-03-23T12:32:32.000Z | 2022-01-02T22:17:12.000Z | trader-desk/chart.cc | HitHub1991/-dmbcs-trader-desk | 365ad5a560564220398ba8ab4b900eb1ca26c8cd | [
"FSFAP"
] | null | null | null | trader-desk/chart.cc | HitHub1991/-dmbcs-trader-desk | 365ad5a560564220398ba8ab4b900eb1ca26c8cd | [
"FSFAP"
] | 1 | 2022-02-27T19:07:50.000Z | 2022-02-27T19:07:50.000Z | /*
* Copyright (c) 2017, 2020 Dale Mellor
*
* This file is part of the trader-desk package.
*
* The trader-desk package is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* L... | 31.907025 | 79 | 0.502364 | HitHub1991 |
d35ff97428c38b8c54774a3b9d974c990bb83677 | 747 | hpp | C++ | inc/SceneObjects/Plateau.hpp | KPO-2020-2021/zad5_2-delipl | b4bd2e673c8b7e92e85aed10919427a6704353ca | [
"Unlicense"
] | 1 | 2022-03-08T03:16:48.000Z | 2022-03-08T03:16:48.000Z | inc/SceneObjects/Plateau.hpp | KPO-2020-2021/zad5_2-delipl | b4bd2e673c8b7e92e85aed10919427a6704353ca | [
"Unlicense"
] | null | null | null | inc/SceneObjects/Plateau.hpp | KPO-2020-2021/zad5_2-delipl | b4bd2e673c8b7e92e85aed10919427a6704353ca | [
"Unlicense"
] | null | null | null | /**
* @file Plateau.hpp
* @author Delicat Jakub (delicat.kuba@gmail.com)
* @brief File describes obstacle like Plateau class
* @version 0.1
* @date 2021-06-24
*
* @copyright Copyright (c) 2021
*
*/
#ifndef PLATEAU_HPP
#define PLATEAU_HPP
#include "Cuboid.hpp"
/**
* @brief Plateau obstacle
*
*/
class Pla... | 20.189189 | 139 | 0.643909 | KPO-2020-2021 |
d361c65871e79cff96e65718c67ee1d81e1b4e13 | 3,204 | cpp | C++ | Hazel/src/Hazel/ImGui/ImGuiLayer.cpp | ZeshanRasul/Hazel | 60c38ed9946832719d8bef51eba49890ce9a975b | [
"Apache-2.0"
] | null | null | null | Hazel/src/Hazel/ImGui/ImGuiLayer.cpp | ZeshanRasul/Hazel | 60c38ed9946832719d8bef51eba49890ce9a975b | [
"Apache-2.0"
] | null | null | null | Hazel/src/Hazel/ImGui/ImGuiLayer.cpp | ZeshanRasul/Hazel | 60c38ed9946832719d8bef51eba49890ce9a975b | [
"Apache-2.0"
] | 1 | 2021-07-14T13:36:24.000Z | 2021-07-14T13:36:24.000Z | #include "hzpch.h"
/*
#include "ImGuiLayer.h"
#include "Hazel/Core.h"
#include "imgui.h"
#include "Platform/DirectX11/imgui_impl_dx11.h"
// #include "examples/imgui_impl_glfw.h"
// Temporary includes
#include "GLFW/glfw3.h"
#include "d3d11.h"
#pragma comment(lib, "d3d11.lib")
#include "Hazel/Application.h"
namespa... | 25.228346 | 105 | 0.719101 | ZeshanRasul |
d362c50a81c7d34d9a2aab11c8e989aeb3fc2355 | 1,055 | cc | C++ | modules/ugdk-core/src/time/timeaccumulator.cc | uspgamedev/ugdk | 95885a70df282a8e8e6e5c72b28a7f2f21bf7e99 | [
"Zlib"
] | 11 | 2015-03-06T13:14:32.000Z | 2020-06-09T23:34:28.000Z | modules/ugdk-core/src/time/timeaccumulator.cc | uspgamedev/ugdk | 95885a70df282a8e8e6e5c72b28a7f2f21bf7e99 | [
"Zlib"
] | 62 | 2015-01-04T05:47:40.000Z | 2018-06-15T17:00:25.000Z | modules/ugdk-core/src/time/timeaccumulator.cc | uspgamedev/ugdk | 95885a70df282a8e8e6e5c72b28a7f2f21bf7e99 | [
"Zlib"
] | 2 | 2017-04-05T20:35:49.000Z | 2017-07-30T03:44:02.000Z | #include <ugdk/time/timeaccumulator.h>
#include "SDL.h"
#include "SDL_timer.h"
#include <ugdk/time/module.h>
namespace ugdk {
namespace time {
TimeAccumulator::TimeAccumulator(int duration_miliseconds) {
Restart(duration_miliseconds);
}
int TimeAccumulator::TimeLeft() {
return duration_ - (manager().TimeSi... | 19.90566 | 75 | 0.686256 | uspgamedev |
d3641e25f8c24bf81589940c825c3aa53256ed88 | 2,456 | cpp | C++ | src/main.cpp | TheDoctor314/tetris | 43875a617e263e8ab727405b7d38a6d11db1510d | [
"Unlicense"
] | null | null | null | src/main.cpp | TheDoctor314/tetris | 43875a617e263e8ab727405b7d38a6d11db1510d | [
"Unlicense"
] | null | null | null | src/main.cpp | TheDoctor314/tetris | 43875a617e263e8ab727405b7d38a6d11db1510d | [
"Unlicense"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <chrono>
#include "game.hpp"
#include "grid.hpp"
#include "input.hpp"
#include "tetromino.hpp"
using namespace tetris;
void draw_grid(const GameGrid &grid, sf::RenderWindow &window,
sf::Shape &shape);
void draw_game_over(sf::RenderWindow &window, sf::Font &font);... | 26.408602 | 80 | 0.532166 | TheDoctor314 |
d36691306ef5b9f2489b71badaa8d37eeeda3678 | 3,749 | cpp | C++ | cg/src/graph/SceneObjectBuilder.cpp | MachSilva/Ds | a7da3d4ca3b00b19884bc64d9d7baefea809cb3d | [
"Zlib"
] | 2 | 2021-11-23T18:36:51.000Z | 2021-11-24T19:38:25.000Z | cg/src/graph/SceneObjectBuilder.cpp | MachSilva/Ds | a7da3d4ca3b00b19884bc64d9d7baefea809cb3d | [
"Zlib"
] | 1 | 2022-02-12T20:47:59.000Z | 2022-03-17T02:03:25.000Z | cg/src/graph/SceneObjectBuilder.cpp | MachSilva/Ds | a7da3d4ca3b00b19884bc64d9d7baefea809cb3d | [
"Zlib"
] | 1 | 2022-02-12T22:31:50.000Z | 2022-02-12T22:31:50.000Z | //[]---------------------------------------------------------------[]
//| |
//| Copyright (C) 2022 Paulo Pagliosa. |
//| |
//| This software is provided 'as-is', w... | 30.729508 | 73 | 0.552681 | MachSilva |
d3676bb35a262c4e6a957be159d8209faab9bdc3 | 7,302 | cpp | C++ | simo1209-DB-Engine/src/db_transaction.cpp | simo1209/training-projects | 79d578bb023e52069dba76bfb52c359e4feab9bd | [
"Apache-2.0"
] | null | null | null | simo1209-DB-Engine/src/db_transaction.cpp | simo1209/training-projects | 79d578bb023e52069dba76bfb52c359e4feab9bd | [
"Apache-2.0"
] | null | null | null | simo1209-DB-Engine/src/db_transaction.cpp | simo1209/training-projects | 79d578bb023e52069dba76bfb52c359e4feab9bd | [
"Apache-2.0"
] | null | null | null | #include <fstream>
#include <filesystem>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/file.h>
#include <algorithm>
#include "db_transaction.h"
#include "db_constants.h"
#include "db_util.h"
#include "db_exceptions.h"
namespace fs = std::filesystem;
DBTransaction::DBTransaction()
{
... | 27.870229 | 129 | 0.656669 | simo1209 |
d3683c93ee6d256c203d599b099fb3848ef6c9a4 | 1,523 | cc | C++ | third_party/blink/renderer/core/html/html_image_element_test.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/blink/renderer/core/html/html_image_element_test.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/renderer/core/html/html_image_element_test.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/html/html_image_element.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_par... | 35.418605 | 73 | 0.761655 | zipated |
d3687c6c7fbd00aed4d9e1675e8efd823a2eb8d3 | 1,280 | hpp | C++ | include/MtlMaterial.hpp | andreasbank/MtlReader | 3f3b71dce520eaaab3bebbbf071ad85d6ff66479 | [
"MIT"
] | null | null | null | include/MtlMaterial.hpp | andreasbank/MtlReader | 3f3b71dce520eaaab3bebbbf071ad85d6ff66479 | [
"MIT"
] | null | null | null | include/MtlMaterial.hpp | andreasbank/MtlReader | 3f3b71dce520eaaab3bebbbf071ad85d6ff66479 | [
"MIT"
] | null | null | null | /**
* @copyright 2017 Andreas Bank, andreas.mikael.bank@gmail.com
*/
#ifndef MTLMATERIAL_HPP
#define MTLMATERIAL_HPP
#include <string>
#include "MtlMap.hpp"
class MtlObject;
struct MtlColor {
float red, green, blue;
};
class MtlMaterial {
public:
MtlMaterial(const std::string& matName = std::string());
vo... | 29.767442 | 81 | 0.691406 | andreasbank |
d36ab9f0209b2d1d352471056ac2b4d9f7d1abe8 | 36 | cc | C++ | chapter-11/11.3.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | 1 | 2017-04-01T06:57:30.000Z | 2017-04-01T06:57:30.000Z | chapter-11/11.3.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | null | null | null | chapter-11/11.3.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | null | null | null | accumulate(vi.begin(), vi.end(), 0)
| 18 | 35 | 0.638889 | hongmi |
d36e4ca5f98caa992757e1e17c3db5e5da87c34f | 2,097 | cpp | C++ | src/modules/Eluna/GroupHooks.cpp | muscnx/Mangos021SD2 | 695bb6a4822bb9173ab8e9077cb6259869ca2f32 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/Eluna/GroupHooks.cpp | muscnx/Mangos021SD2 | 695bb6a4822bb9173ab8e9077cb6259869ca2f32 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/Eluna/GroupHooks.cpp | muscnx/Mangos021SD2 | 695bb6a4822bb9173ab8e9077cb6259869ca2f32 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | /*
* Copyright (C) 2010 - 2015 Eluna Lua Engine <http://emudevs.com/>
* This program is free software licensed under GPL version 3
* Please see the included DOCS/LICENSE.md for more information
*/
#ifndef _GROUP_HOOKS_H
#define _GROUP_HOOKS_H
#include "Hooks.h"
#include "HookHelpers.h"
#include "LuaEngine.h"
#inc... | 24.103448 | 84 | 0.733429 | muscnx |
d3703728ad37a635aefb171635aaf68355ad2b0f | 275 | cpp | C++ | Aula08/ex-02-20.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | null | null | null | Aula08/ex-02-20.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | 1 | 2018-04-27T23:42:44.000Z | 2018-04-27T23:42:44.000Z | Aula08/ex-02-20.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | null | null | null | /*
Morgana
*/
#include <iostream>
using namespace std;
int main()
{
int n;
cout << "Informe um numero: ";
cin >> n;
if (n % 2 == 0) {
cout << "é par" << endl;
} else {
cout << "é ímpar" << endl;
}
return 0;
}
| 7.432432 | 32 | 0.418182 | cgcosta |
d37222fc63ef8ccde5fccae209d09bec965ecb16 | 1,365 | hpp | C++ | source/common/vulkan/vkcAlloc.hpp | a-day-old-bagel/at3 | 868cec7672fd109760cae740b1acf26cec5eb85e | [
"MIT"
] | null | null | null | source/common/vulkan/vkcAlloc.hpp | a-day-old-bagel/at3 | 868cec7672fd109760cae740b1acf26cec5eb85e | [
"MIT"
] | null | null | null | source/common/vulkan/vkcAlloc.hpp | a-day-old-bagel/at3 | 868cec7672fd109760cae740b1acf26cec5eb85e | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <cstdlib>
#include "vkcTypes.hpp"
namespace at3::vkc::passthrough {
struct AllocatorState {
size_t *memTypeAllocSizes;
uint32_t totalAllocs;
Common *context;
};
extern AllocatorState state;
//ALLOCATOR INTERFACE / INSTALLATION
void activate(Common *co... | 19.782609 | 68 | 0.721612 | a-day-old-bagel |
d3759e3a804dce73d189f0e9dda534bb93ff88c0 | 1,609 | cpp | C++ | day20/load.cpp | bcafuk/AoC-2019 | 5ff9b86f8483cd7a6e229d572ae9e34b894eb574 | [
"Zlib"
] | null | null | null | day20/load.cpp | bcafuk/AoC-2019 | 5ff9b86f8483cd7a6e229d572ae9e34b894eb574 | [
"Zlib"
] | null | null | null | day20/load.cpp | bcafuk/AoC-2019 | 5ff9b86f8483cd7a6e229d572ae9e34b894eb574 | [
"Zlib"
] | 2 | 2020-11-02T09:24:35.000Z | 2020-12-02T09:46:27.000Z | #include <queue>
#include <string>
#include "day20.hpp"
Maze load(std::istream &stream) {
const std::string startPortal = "AA";
const std::string endPortal = "ZZ";
Maze maze{0, 0};
while (true) {
std::string line;
std::getline(stream, line);
if (stream.eof()) {
break;
}
maze.m_width = line.size()... | 22.347222 | 71 | 0.523928 | bcafuk |
c9667a0dfb661760eb362e1b4134f00986ebabc3 | 493 | hpp | C++ | libs/options/include/fcppt/options/parse_error.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/options/include/fcppt/options/parse_error.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/options/include/fcppt/options/parse_error.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_OPTIONS_PARSE_ERROR_HPP_INCLUDED
#define FCPPT_OPTIONS_PARSE_ERROR_HPP_INCLUDED
#in... | 29 | 61 | 0.764706 | pmiddend |
c96f38806d285844ee4228c89112622d11d5bd62 | 611 | cpp | C++ | GameState.cpp | naiIs/VillainTycoon | 5eff5197b147419588b4f92b4f292039b2194b43 | [
"MIT"
] | null | null | null | GameState.cpp | naiIs/VillainTycoon | 5eff5197b147419588b4f92b4f292039b2194b43 | [
"MIT"
] | null | null | null | GameState.cpp | naiIs/VillainTycoon | 5eff5197b147419588b4f92b4f292039b2194b43 | [
"MIT"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: GameState.cpp
* Author: logan
*
* Created on May 17, 2017, 11:43 AM
*/
#include "GameState.h"
GameState::GameSta... | 15.666667 | 79 | 0.666121 | naiIs |
c96ff7394870822d55c756a1e6bd7fafd0c518fb | 519 | cpp | C++ | test-graphics/src/engine/graphics/TestTexture.cpp | Karmiska/Darkness | c87eaf067a2707a0141909125ff461f69a3812e0 | [
"MIT"
] | 6 | 2019-10-17T11:31:55.000Z | 2022-02-11T08:51:20.000Z | test-graphics/src/engine/graphics/TestTexture.cpp | Karmiska/Darkness | c87eaf067a2707a0141909125ff461f69a3812e0 | [
"MIT"
] | 1 | 2020-08-11T09:01:29.000Z | 2020-08-11T09:01:29.000Z | test-graphics/src/engine/graphics/TestTexture.cpp | Karmiska/Darkness | c87eaf067a2707a0141909125ff461f69a3812e0 | [
"MIT"
] | 1 | 2020-06-02T15:48:20.000Z | 2020-06-02T15:48:20.000Z | #include "GlobalTestFixture.h"
using namespace std;
using namespace platform;
using namespace engine;
TEST(TestTexture, TestClearRenderTargetTexture)
{
GlobalEnvironment& env = *envPtr;
// start drawing
auto cmdBuffer = env.device().createCommandList();
cmdBuffer.begin();
cmdBuffer.clearTexture(
... | 22.565217 | 54 | 0.674374 | Karmiska |
c9700a1942ff83d2dadba4dff6b3650924c5af5e | 952 | cpp | C++ | Day11_HourGlassTwo.cpp | Dkaban/30DaysOfCodePractice | a07bbefbd29fab22728402e2de25b2c086ed3749 | [
"MIT"
] | null | null | null | Day11_HourGlassTwo.cpp | Dkaban/30DaysOfCodePractice | a07bbefbd29fab22728402e2de25b2c086ed3749 | [
"MIT"
] | null | null | null | Day11_HourGlassTwo.cpp | Dkaban/30DaysOfCodePractice | a07bbefbd29fab22728402e2de25b2c086ed3749 | [
"MIT"
] | null | null | null | // THE PROBLEM
// ***************************
// Calculate the hourglass sum for every hourglass in A (array), then print the maximum hourglass sum.
// Solution Created By: Dustin Kaban
// Date: June 6th, 2020
// ***************************
#include <bits/stdc++.h>
using namespace std;
int hourGlassSum(vector<vector... | 21.636364 | 102 | 0.473739 | Dkaban |
c9732d53ebfb71b216ad4cff5a536e0895d48f5b | 1,738 | hpp | C++ | include/codegen/include/NUnit/Framework/Internal/ParameterizedMethodSuite.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/NUnit/Framework/Internal/ParameterizedMethodSuite.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/NUnit/Framework/Internal/ParameterizedMethodSuite.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:57 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: NUnit.Framework.Internal.TestSuite
#include "NUnit/Framework... | 42.390244 | 134 | 0.73015 | Futuremappermydud |
c9737283c0a74e654f03fe8e4021a4fa9c21eb20 | 667 | cc | C++ | caffe2/mpi/mpi_common.cc | 123chengbo/caffe2 | 0a68778916f3280b5292fce0d74b73b70fb0f7e8 | [
"BSD-3-Clause"
] | 1 | 2017-03-13T01:38:16.000Z | 2017-03-13T01:38:16.000Z | caffe2/mpi/mpi_common.cc | will001/caffe2 | 0a68778916f3280b5292fce0d74b73b70fb0f7e8 | [
"BSD-3-Clause"
] | null | null | null | caffe2/mpi/mpi_common.cc | will001/caffe2 | 0a68778916f3280b5292fce0d74b73b70fb0f7e8 | [
"BSD-3-Clause"
] | 1 | 2020-03-19T08:48:39.000Z | 2020-03-19T08:48:39.000Z | #include "caffe2/mpi/mpi_common.h"
namespace caffe2 {
static std::mutex gCaffe2MPIMutex;
std::mutex& MPIMutex() {
return gCaffe2MPIMutex;
}
static MPI_Comm gCaffe2MPIComm = MPI_COMM_WORLD;
MPI_Comm GlobalMPIComm() {
return gCaffe2MPIComm;
}
void SetGlobalMPIComm(MPI_Comm new_comm) {
if (gCaffe2MPIComm != MPI... | 19.057143 | 48 | 0.745127 | 123chengbo |
c9758ac0087a8ce8566974f46f98e098d40b34fd | 3,082 | cpp | C++ | core123/ut/ut_mulhilo.cpp | fennm/fs123 | 559b97659352620ce16030824f9acd26f590f4e1 | [
"BSD-3-Clause"
] | 22 | 2019-04-10T18:05:35.000Z | 2021-12-30T12:26:39.000Z | core123/ut/ut_mulhilo.cpp | fennm/fs123 | 559b97659352620ce16030824f9acd26f590f4e1 | [
"BSD-3-Clause"
] | 13 | 2019-04-09T00:19:29.000Z | 2021-11-04T15:57:13.000Z | core123/ut/ut_mulhilo.cpp | fennm/fs123 | 559b97659352620ce16030824f9acd26f590f4e1 | [
"BSD-3-Clause"
] | 4 | 2019-04-07T16:33:44.000Z | 2020-07-02T02:58:51.000Z | /** @page LICENSE
Copyright 2010-2012, D. E. Shaw Research.
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 copyright
notice, this list of condit... | 33.868132 | 131 | 0.703764 | fennm |
c975f70fbb02c9d300186048c95bc963d398ca7a | 3,598 | cpp | C++ | clang-tools-extra/test/clang-tidy/checkers/cert-dcl21-cpp.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | clang-tools-extra/test/clang-tidy/checkers/cert-dcl21-cpp.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang-tools-extra/test/clang-tidy/checkers/cert-dcl21-cpp.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: %check_clang_tidy %s cert-dcl21-cpp %t
class A {};
A operator++(A &, int);
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: overloaded 'operator++' returns a non-constant object instead of a constant object type [cert-dcl21-cpp]
// CHECK-FIXES: {{^}}const A operator++(A &, int);
A operator--(A &, int);
// CHECK-M... | 26.651852 | 148 | 0.620901 | medismailben |
c976610bd789946f154056b52a063c268ea54f67 | 31,455 | cpp | C++ | src/apps/packageinstaller/PackageInfo.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/apps/packageinstaller/PackageInfo.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/apps/packageinstaller/PackageInfo.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright (c) 2007-2010, Haiku, Inc.
* Distributed under the terms of the MIT license.
*
* Author:
* Łukasz 'Sil2100' Zemczak <sil2100@vexillium.org>
*/
#include "PackageInfo.h"
#include <Alert.h>
#include <ByteOrder.h>
#include <Catalog.h>
#include <FindDirectory.h>
#include <Locale.h>
#include <Path.h>... | 27.738095 | 73 | 0.629344 | Kirishikesan |
c977a1984f371910059768a0747ce8b1f2296673 | 9,928 | cpp | C++ | NightEngine2/src/Editor/RenderSettingEditor.cpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | 2 | 2020-03-09T06:24:46.000Z | 2022-02-04T23:09:23.000Z | NightEngine2/src/Editor/RenderSettingEditor.cpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | null | null | null | NightEngine2/src/Editor/RenderSettingEditor.cpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | 2 | 2020-09-07T03:04:36.000Z | 2022-02-04T23:09:24.000Z |
/*!
@file RenderSettingEditor.cpp
@author Rittikorn Tangtrongchit
@brief Contain the Implementation of RenderSettingEditor
*/
#include "Editor/RenderSettingEditor.hpp"
#include "Editor/MemberSerializerEditor.hpp"
#include "Editor/GameObjectHierarchy.hpp"
#include "Editor/ConfirmationBox.hpp"
#include "imgui/img... | 36.907063 | 125 | 0.554795 | rittikornt |
c97845305ed19800abe28fceb0845c4431cef6f2 | 620 | cpp | C++ | competitive_programming/programming_contests/uri/counting_crow.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/programming_contests/uri/counting_crow.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/programming_contests/uri/counting_crow.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | // https://www.urionlinejudge.com.br/judge/en/problems/view/1848
#include <iostream>
#include <string>
using namespace std;
int main() {
int scream_counter = 0, blink_counter = 0;
string s;
while (scream_counter < 3) {
cin >> s;
if (s == "caw") {
scream_counter++;
cin >> s;
cout << ... | 18.787879 | 64 | 0.503226 | LeandroTk |
c97884cc021e94fc49050e68b8d10bdbee9b74da | 4,424 | cpp | C++ | VS/Utils/VS_Menu.cpp | vectorstorm/vectorstorm | 7306214108b23fa97d4a1a598197bbaa52c17d3a | [
"Zlib"
] | 19 | 2017-04-03T09:06:21.000Z | 2022-03-05T19:06:07.000Z | VS/Utils/VS_Menu.cpp | vectorstorm/vectorstorm | 7306214108b23fa97d4a1a598197bbaa52c17d3a | [
"Zlib"
] | 2 | 2019-05-24T14:40:07.000Z | 2020-04-15T01:10:23.000Z | VS/Utils/VS_Menu.cpp | vectorstorm/vectorstorm | 7306214108b23fa97d4a1a598197bbaa52c17d3a | [
"Zlib"
] | 2 | 2020-03-08T07:14:49.000Z | 2020-03-09T10:39:52.000Z | /*
* UT_Menu.cpp
* VectorStorm
*
* Created by Trevor Powell on 29/12/07.
* Copyright 2007 Trevor Powell. All rights reserved.
*
*/
#include "VS_Menu.h"
#include "VS_DisplayList.h"
#include "VS_BuiltInFont.h"
#include "VS_Sprite.h"
#include "Core.h"
#include "CORE_Game.h"
#include "VS_Input.h"
#define PU... | 21.371981 | 107 | 0.674503 | vectorstorm |
c97f9c9f74a0ec4738878c19343af85506cf9307 | 933 | cpp | C++ | client/src/responses/RemoveDailyPlanTaskResponseHandler.cpp | Hvvang/uTracker | f865d969ca7d550ac2d4b20b4fd1f834f90578b2 | [
"MIT"
] | null | null | null | client/src/responses/RemoveDailyPlanTaskResponseHandler.cpp | Hvvang/uTracker | f865d969ca7d550ac2d4b20b4fd1f834f90578b2 | [
"MIT"
] | null | null | null | client/src/responses/RemoveDailyPlanTaskResponseHandler.cpp | Hvvang/uTracker | f865d969ca7d550ac2d4b20b4fd1f834f90578b2 | [
"MIT"
] | null | null | null | //
// Created by Artem Shemidko on 18.03.2021.
//
#include "RemoveDailyPlanTaskResponseHandler.h"
#include <QJsonDocument>
#include <QJsonObject>
#include "Client.h"
RemoveDailyPlanTaskResponseHandler::RemoveDailyPlanTaskResponseHandler(QObject *parent)
: AbstractResponseHandler(parent) {
connect(this, &A... | 34.555556 | 87 | 0.729904 | Hvvang |
c985a9c2ab47146de491543292b3107d8f386bff | 6,756 | cpp | C++ | src/qt/qtwebkit/Source/WebCore/loader/appcache/ManifestParser.cpp | viewdy/phantomjs | eddb0db1d253fd0c546060a4555554c8ee08c13c | [
"BSD-3-Clause"
] | 1 | 2015-01-21T01:48:04.000Z | 2015-01-21T01:48:04.000Z | src/qt/qtwebkit/Source/WebCore/loader/appcache/ManifestParser.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtwebkit/Source/WebCore/loader/appcache/ManifestParser.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 1 | 2017-03-19T13:03:23.000Z | 2017-03-19T13:03:23.000Z | /*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 36.518919 | 118 | 0.560243 | viewdy |
c985af7dbc4dd1f4f8e9e7366c70d04336142e6f | 938 | cpp | C++ | Source/anchorGrabberSuites.cpp | shspage/anchorGrabber_aip | bbd335a9fb47e90b142c90768bdccbc1b9446c69 | [
"MIT"
] | 2 | 2022-03-14T00:04:54.000Z | 2022-03-14T01:32:39.000Z | Source/anchorGrabberSuites.cpp | shspage/anchorGrabber_aip | bbd335a9fb47e90b142c90768bdccbc1b9446c69 | [
"MIT"
] | null | null | null | Source/anchorGrabberSuites.cpp | shspage/anchorGrabber_aip | bbd335a9fb47e90b142c90768bdccbc1b9446c69 | [
"MIT"
] | null | null | null | #include "IllustratorSDK.h"
#include "anchorGrabberSuites.h"
// Suite externs
extern "C"
{
SPBlocksSuite* sSPBlocks = NULL;
AIUnicodeStringSuite* sAIUnicodeString = NULL;
AIToolSuite* sAITool = nullptr;
AIArtSuite* sAIArt = NULL;
AIPathSuite* sAIPath = NULL;
AIHitTestSuite* sAIHitTest = NULL;
AID... | 31.266667 | 72 | 0.771855 | shspage |
c9888e827a43cd9d4804e4d690a91a66b21c881a | 265 | cpp | C++ | CPP/Syntax/Lambda.cpp | piovezan/SOpt | a5ec90796b7bdf98f0675457fc4bb99c8695bc40 | [
"MIT"
] | 148 | 2017-08-03T01:49:27.000Z | 2022-03-26T10:39:30.000Z | CPP/Syntax/Lambda.cpp | piovezan/SOpt | a5ec90796b7bdf98f0675457fc4bb99c8695bc40 | [
"MIT"
] | 3 | 2017-11-23T19:52:05.000Z | 2020-04-01T00:44:40.000Z | CPP/Syntax/Lambda.cpp | piovezan/SOpt | a5ec90796b7bdf98f0675457fc4bb99c8695bc40 | [
"MIT"
] | 59 | 2017-08-03T01:49:19.000Z | 2022-03-31T23:24:38.000Z | #include <iostream>
using namespace std;
int main() {
auto gerador = []() { return 5 + rand() % 5 + 1; };
int number = gerador();
cout << number << endl;
number = gerador();
cout << number << endl;
}
//https://pt.stackoverflow.com/q/44727/101
| 20.384615 | 55 | 0.573585 | piovezan |
c98ce15c8279dbcef4e4315146b23f3cdbc26e93 | 21,525 | cpp | C++ | Seagull-Core/Core/Source/Text/FontStash.cpp | CrystaLamb/SeagullEngine | 2a4d776ff525dcfef1eb5d8ea53abe3aa2f9a462 | [
"MIT"
] | 4 | 2021-12-10T10:28:19.000Z | 2021-12-29T05:39:17.000Z | Seagull-Core/Core/Source/Text/FontStash.cpp | ILLmew/SeagullEngine | 2a4d776ff525dcfef1eb5d8ea53abe3aa2f9a462 | [
"MIT"
] | null | null | null | Seagull-Core/Core/Source/Text/FontStash.cpp | ILLmew/SeagullEngine | 2a4d776ff525dcfef1eb5d8ea53abe3aa2f9a462 | [
"MIT"
] | null | null | null | #include "FontStash.h"
#define FONTSTASH_IMPLEMENTATION
#ifdef SG_PLATFORM_WINDOWS
#include <windows.h>
#endif
#include <include/fontstash.h>
#include "include/IRenderer.h"
#include "include/IResourceLoader.h"
#include "Interface/IFileSystem.h"
#include <include/tinyimageformat_query.h>
#include <include/EASTL/ve... | 33.791209 | 238 | 0.735703 | CrystaLamb |
c98e09f27e429b1be50e82e0ba72fd873885e3dd | 820 | hpp | C++ | Src/DataSource.hpp | madmaxoft/DxfLib | 50f4931c4da4ae91878207feaf97a62322a38099 | [
"Unlicense"
] | null | null | null | Src/DataSource.hpp | madmaxoft/DxfLib | 50f4931c4da4ae91878207feaf97a62322a38099 | [
"Unlicense"
] | null | null | null | Src/DataSource.hpp | madmaxoft/DxfLib | 50f4931c4da4ae91878207feaf97a62322a38099 | [
"Unlicense"
] | null | null | null | #pragma once
#include <functional>
namespace Dxf::Parser
{
/** The data source.
This is a function that fills the specified aDestBuffer with next aSize (or fewer) bytes from the input.
The parsing functions call this repeatedly to sequentially read the entire input data.
The return value is the actual number... | 21.578947 | 104 | 0.747561 | madmaxoft |
c9915c20252c5c149bf9bb65ec1eb3000fd667dd | 2,649 | cpp | C++ | base/file_handle.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | null | null | null | base/file_handle.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | null | null | null | base/file_handle.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | null | null | null | // LAF Base Library
// Copyright (c) 2020 Igara Studio S.A.
// Copyright (c) 2001-2018 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "base/file_handle.h"
#include "base/string.h"
#inclu... | 21.362903 | 103 | 0.705172 | clarfonthey |
c9941ffb64d8cc6ed9e9e3bb7c73abe1c1a4e87a | 456 | cpp | C++ | source/03_Dynamic Programming/02_DP DNC.cpp | KerakTelor86/AlgoCopypasta | 900d989c0651b51b55c551d336c2e92faead0fc8 | [
"WTFPL"
] | 1 | 2021-06-25T05:46:11.000Z | 2021-06-25T05:46:11.000Z | source/03_Dynamic Programming/02_DP DNC.cpp | KerakTelor86/AlgoCopypasta | 900d989c0651b51b55c551d336c2e92faead0fc8 | [
"WTFPL"
] | null | null | null | source/03_Dynamic Programming/02_DP DNC.cpp | KerakTelor86/AlgoCopypasta | 900d989c0651b51b55c551d336c2e92faead0fc8 | [
"WTFPL"
] | null | null | null | void f(int rem, int l, int r, int optl, int optr) {
if(l > r)
return;
int mid = l + r >> 1;
int opt = MOD, optid = mid;
for(int i = optl; i <= mid && i <= optr; ++i) {
if(dp[rem - 1][i] + c[i][mid] < opt) {
opt = dp[rem - 1][i] + c[i][mid];
optid = i;
}
}
dp[rem][mid] = opt;
f(rem,... | 24 | 51 | 0.451754 | KerakTelor86 |
c995a477d5ae6a2b0eddd2896d07fe36d71fc814 | 1,031 | cpp | C++ | timerCPU.cpp | SwarthmoreCS-PDC/CUDAVis | 33090cfad734d0104670ebc7aae50b6416cf5a04 | [
"Apache-2.0"
] | 5 | 2019-04-22T20:29:22.000Z | 2022-01-17T20:49:56.000Z | timerCPU.cpp | SwarthmoreCS-PDC/CUDAVis | 33090cfad734d0104670ebc7aae50b6416cf5a04 | [
"Apache-2.0"
] | null | null | null | timerCPU.cpp | SwarthmoreCS-PDC/CUDAVis | 33090cfad734d0104670ebc7aae50b6416cf5a04 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2016-2018
* Swarthmore College Computer Science, Swarthmore PA
* T. Newhall, A. Danner
*/
#include "timerCPU.h"
#include <cstdio>
CPUTimer::CPUTimer() {
gettimeofday(&startTime, NULL);
gettimeofday(&stopTime, NULL);
}
void CPUTimer::start() { gettimeofday(&startTime, NULL); }
void CPUTimer::stop(... | 24.547619 | 69 | 0.678952 | SwarthmoreCS-PDC |
c99a4a26f918ed5e20f57153671a96f25ae3ebb1 | 106 | cpp | C++ | src/ParticleSystem/cpp/ForceSpring.cpp | ericchen321/GAUSS | 75d3a89e7f20989525449c46a92fb0eac4712505 | [
"MIT"
] | 2 | 2021-01-14T19:19:39.000Z | 2022-03-29T13:32:48.000Z | src/ParticleSystem/cpp/ForceSpring.cpp | ericchen321/GAUSS | 75d3a89e7f20989525449c46a92fb0eac4712505 | [
"MIT"
] | 4 | 2021-08-15T18:30:22.000Z | 2021-08-15T18:40:26.000Z | src/ParticleSystem/cpp/ForceSpring.cpp | edwinchenyj/GAUSS | 6aa9513d80f8afe10da12382ffbe16b030fad172 | [
"MIT"
] | 1 | 2021-11-19T07:57:26.000Z | 2021-11-19T07:57:26.000Z | //
// ForceSpring.cpp
// Gauss
//
// Created by David Levin on 3/4/17.
//
//
#include <ForceSpring.h>
| 10.6 | 37 | 0.59434 | ericchen321 |
c99f67181d0baa67643ec2c4159dcc35a9e6d777 | 5,204 | cc | C++ | Dragon/src/operators/activation/cudnn_dropout_op.cc | awesome-archive/Dragon | b35f9320909d07d138c2f6b345a4c24911f7c521 | [
"BSD-2-Clause"
] | null | null | null | Dragon/src/operators/activation/cudnn_dropout_op.cc | awesome-archive/Dragon | b35f9320909d07d138c2f6b345a4c24911f7c521 | [
"BSD-2-Clause"
] | null | null | null | Dragon/src/operators/activation/cudnn_dropout_op.cc | awesome-archive/Dragon | b35f9320909d07d138c2f6b345a4c24911f7c521 | [
"BSD-2-Clause"
] | null | null | null | #include "core/workspace.h"
#include "utils/op_kernel.h"
#include "operators/activation/dropout_op.h"
#ifdef WITH_CUDNN
#if CUDNN_VERSION_MIN(7, 0, 0)
namespace dragon {
template <class Context> template <typename T>
void CuDNNDropoutOp<Context>::RunWithType() {
auto* Xdata = Input(0).template data<T, Context>(... | 41.301587 | 80 | 0.582244 | awesome-archive |
c99fa90c5c5c41bb8e0da2f24cd80289328283b2 | 1,348 | cpp | C++ | owl/color/gamma_correction.cpp | soerenkoenig/owl | ab10054514a7a5b12a6b81665b3b264cfe37b0f3 | [
"MIT"
] | null | null | null | owl/color/gamma_correction.cpp | soerenkoenig/owl | ab10054514a7a5b12a6b81665b3b264cfe37b0f3 | [
"MIT"
] | null | null | null | owl/color/gamma_correction.cpp | soerenkoenig/owl | ab10054514a7a5b12a6b81665b3b264cfe37b0f3 | [
"MIT"
] | null | null | null | #include "owl/color/gamma_correction.hpp"
namespace owl
{
namespace color
{
double linear_2_gamma_corrected(double u, gamma_correction_model::s_rgb cm)
{
constexpr double a = 1.055;
constexpr double b = -0.055;
constexpr double c = 12.92;
constexpr double d = 0.0031308;
conste... | 25.433962 | 83 | 0.60905 | soerenkoenig |
c9a1b4f69a63b196484bd96a0c5597626e93da5a | 3,409 | cpp | C++ | framework/box.cpp | neyustudies/programmiersprachen-raytracer | 220a979fb67c6179ceffc4172c721c4338f5e90e | [
"MIT"
] | null | null | null | framework/box.cpp | neyustudies/programmiersprachen-raytracer | 220a979fb67c6179ceffc4172c721c4338f5e90e | [
"MIT"
] | null | null | null | framework/box.cpp | neyustudies/programmiersprachen-raytracer | 220a979fb67c6179ceffc4172c721c4338f5e90e | [
"MIT"
] | 1 | 2022-01-05T13:55:17.000Z | 2022-01-05T13:55:17.000Z | #include "box.hpp"
#include <algorithm>
#include <cmath>
#include <vector>
#include "hitpoint.hpp"
#include "util.hpp"
Box::Box() : Box{{}, {}, "Unnamed Box", {}} {}
Box::Box(glm::vec3 const& min, glm::vec3 const& max)
: Box{min, max, "Unnamed Box", {}} {}
Box::Box(glm::vec3 const& min, glm::vec3 const& max, std... | 31.275229 | 80 | 0.536814 | neyustudies |
c9a5c13ad593c56da57f74231ddca1a2b5f822bf | 2,827 | cpp | C++ | tc 160+/MinDifference.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/MinDifference.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/MinDifference.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
class MinDifference {
public:
int closestElements(int A0, int X, int Y, int M, int n) {
vector<int> v;
v.reserve(n);
... | 44.873016 | 317 | 0.569508 | ibudiselic |
c9ac7bb3b9eed2b73424734ace5480cb6de4271c | 1,596 | cpp | C++ | Codeforces/C - Classy Numbers .cpp | Harry-kp/Cp | 94e687a3a5256913467f50d8f757b12640529513 | [
"MIT"
] | 2 | 2020-11-19T19:21:24.000Z | 2021-04-22T10:53:16.000Z | Codeforces/C - Classy Numbers .cpp | Harry-kp/Cp | 94e687a3a5256913467f50d8f757b12640529513 | [
"MIT"
] | null | null | null | Codeforces/C - Classy Numbers .cpp | Harry-kp/Cp | 94e687a3a5256913467f50d8f757b12640529513 | [
"MIT"
] | 1 | 2021-12-02T06:03:17.000Z | 2021-12-02T06:03:17.000Z | #include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(0); \
cin.tie(NULL); \
cout.tie(NULL)
#define PI(a, b) pair<a, b>
#define MP make_pair
#define EB emplace_back
#define MOD 1000000007
#define int long long int
#define S second
#define... | 19.228916 | 80 | 0.447368 | Harry-kp |
c9ae759dbd4a33d2fbd9ca8bcd9938db6d7e7282 | 2,617 | hh | C++ | src/angle/AzimuthalQuadrature.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/angle/AzimuthalQuadrature.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/angle/AzimuthalQuadrature.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*-----------------------------------//
/**
* @file AzimuthalQuadrature.hh
* @brief AzimuthalQuadrature class definition
* @note Copyright (C) 2013 Jeremy Roberts
*/
//----------------------------------------------------------------------------//
#ifndef detran_angle_A... | 30.430233 | 80 | 0.587696 | baklanovp |