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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e027e5d3893348b5c2ac832a419adf6a82f9420 | 5,819 | cpp | C++ | source/EffectTokenizer.cpp | xzrunner/rgfx | 8e44ebd07f3772219f86f72f134abea215fd6cf2 | [
"MIT"
] | null | null | null | source/EffectTokenizer.cpp | xzrunner/rgfx | 8e44ebd07f3772219f86f72f134abea215fd6cf2 | [
"MIT"
] | null | null | null | source/EffectTokenizer.cpp | xzrunner/rgfx | 8e44ebd07f3772219f86f72f134abea215fd6cf2 | [
"MIT"
] | null | null | null | #include "fxlang/EffectTokenizer.h"
#include <lexer/Exception.h>
namespace fxlang
{
EffectTokenizer::EffectTokenizer(const std::string& str)
: lexer::Tokenizer<fxlang::Token::Type>(str.c_str(), str.c_str() + str.length(), "\"", '\\')
{
}
lexer::Tokenizer<fxlang::Token::Type>::Token
EffectTokenizer::EmitToken()
... | 38.282895 | 106 | 0.482729 | xzrunner |
2e08d86bae5bf5120579c62945eab977469de12f | 1,623 | cpp | C++ | game/city/doodad.cpp | AndO3131/OpenApoc | 9dea1895e273a1da5a7d8eda173255f6b364e626 | [
"MIT"
] | null | null | null | game/city/doodad.cpp | AndO3131/OpenApoc | 9dea1895e273a1da5a7d8eda173255f6b364e626 | [
"MIT"
] | null | null | null | game/city/doodad.cpp | AndO3131/OpenApoc | 9dea1895e273a1da5a7d8eda173255f6b364e626 | [
"MIT"
] | null | null | null | #include "game/city/doodad.h"
#include "game/tileview/tile.h"
#include "game/tileview/tileobject_doodad.h"
#include "framework/framework.h"
#include "game/city/city.h"
#include "game/gamestate.h"
namespace OpenApoc
{
Doodad::Doodad(Vec3<float> position, Vec2<int> imageOffset, bool temporary, int lifetime)
: posit... | 23.185714 | 100 | 0.701171 | AndO3131 |
2e0d261400b6decef1af2af0783fc320c564afc4 | 2,618 | cpp | C++ | CHAPTER17/C17E14.cpp | lrpinnto/stroustrup-exercises | a471a0d7b49b51b7c26e005ff9e66f3f6db199dd | [
"MIT"
] | null | null | null | CHAPTER17/C17E14.cpp | lrpinnto/stroustrup-exercises | a471a0d7b49b51b7c26e005ff9e66f3f6db199dd | [
"MIT"
] | null | null | null | CHAPTER17/C17E14.cpp | lrpinnto/stroustrup-exercises | a471a0d7b49b51b7c26e005ff9e66f3f6db199dd | [
"MIT"
] | null | null | null | //CHAPTER 17 EX 14
#include <iostream>
using namespace std;
class Link
{
public:
string value;
Link(const string& v, Link* s = nullptr)
: value{v}, succ{s} {
if(!succ) succ=this; //single linked list have to be circular otherwise we reach a deadend at the last entry
}
Link* ... | 20.138462 | 121 | 0.546982 | lrpinnto |
2e0ed8d2dc49c49590f0ed108f0f4ab4226937fa | 1,872 | hpp | C++ | cppcache/src/SuspendedTxExpiryHandler.hpp | austxcodemonkey/geode-native | a816ac99cbbac557629686cb2542fdc74d464338 | [
"Apache-2.0"
] | 1 | 2018-09-08T05:05:22.000Z | 2018-09-08T05:05:22.000Z | cppcache/src/SuspendedTxExpiryHandler.hpp | austxcodemonkey/geode-native | a816ac99cbbac557629686cb2542fdc74d464338 | [
"Apache-2.0"
] | 1 | 2022-03-31T01:54:57.000Z | 2022-03-31T01:54:57.000Z | cppcache/src/SuspendedTxExpiryHandler.hpp | isabella232/geode-native | 0d9a99d5e0632de62df17921950cf3f6640efb33 | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 29.714286 | 79 | 0.759615 | austxcodemonkey |
2e0f3583d17d5e91ab76aab434b641fe72736deb | 4,278 | cpp | C++ | src/interface/MI.cpp | TesseracT33/N63.5 | 7d9bc1b857a55fb40740b82ab3d19167c8dc9389 | [
"MIT"
] | null | null | null | src/interface/MI.cpp | TesseracT33/N63.5 | 7d9bc1b857a55fb40740b82ab3d19167c8dc9389 | [
"MIT"
] | null | null | null | src/interface/MI.cpp | TesseracT33/N63.5 | 7d9bc1b857a55fb40740b82ab3d19167c8dc9389 | [
"MIT"
] | null | null | null | module MI;
import Memory;
import VR4300;
#include "../Utils/EnumerateTemplateSpecializations.h"
namespace MI
{
void Initialize()
{
mi.mode = mi.interrupt = mi.mask = 0;
mi.version = 0x02010202;
}
template<InterruptType interrupt_type>
void SetInterruptFlag()
{
mi.interrupt |= std::to_underlying(interru... | 28.331126 | 113 | 0.708742 | TesseracT33 |
2e12d80fbfe1c3449486ed9f682f7d430e15a89b | 1,015 | cpp | C++ | Algorithms Hub/searchingAlgo/rabinKarpSearch/rabinKarp.cpp | spandan1460/MSCxHacktoberfest | 3eec2c3a38cb7bd37a41188ba133aa28e508b37a | [
"MIT"
] | 6 | 2021-10-02T07:39:59.000Z | 2021-10-04T07:09:17.000Z | Algorithms Hub/searchingAlgo/rabinKarpSearch/rabinKarp.cpp | spandan1460/MSCxHacktoberfest | 3eec2c3a38cb7bd37a41188ba133aa28e508b37a | [
"MIT"
] | 8 | 2021-10-06T13:58:55.000Z | 2021-10-13T10:33:10.000Z | Algorithms Hub/searchingAlgo/rabinKarpSearch/rabinKarp.cpp | spandan1460/MSCxHacktoberfest | 3eec2c3a38cb7bd37a41188ba133aa28e508b37a | [
"MIT"
] | 2 | 2021-10-07T18:47:25.000Z | 2021-11-30T06:13:22.000Z | #include<bits/stdc++.h>
using namespace std;
int rabinKarp(string txt, string pat, int q)
{
int txt_len = txt.length();
int pat_len = pat.length();
int d = 256;
int p=0,t=0,h=1;
for(int i=0;i<pat_len-1;i++)
h = (h*d)%q;
for(int i=0;i<pat_len;i++)
{
p = (d*p + pat[i])%q;
... | 19.150943 | 52 | 0.421675 | spandan1460 |
2e147ca9d672513124ab968f32d92ea3ccb93499 | 2,559 | cpp | C++ | src/functionflags.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 3 | 2020-12-28T01:40:45.000Z | 2021-05-18T01:47:07.000Z | src/functionflags.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 4 | 2019-06-29T12:23:11.000Z | 2020-07-25T15:38:46.000Z | src/functionflags.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 1 | 2021-11-17T01:49:42.000Z | 2021-11-17T01:49:42.000Z | // Copyright (C) 2018 Vincent Chambrin
// This file is part of the libscript library
// For conditions of distribution and use, see copyright notice in LICENSE
#include "script/functionflags.h"
namespace script
{
/*!
* \enumclass FunctionSpecifier
* \brief Enumeration describing function specifiers.
*
* \begin{... | 22.060345 | 82 | 0.683861 | strandfield |
2e1b7189d46148b3028f5c42c921b45dfeb12ca0 | 141 | cpp | C++ | poo_basic/inheritance/heranca1/heranca_simples_exp2/Main.cpp | stemDaniel/ufmg-pds2 | 4dbb536a0926b617d04d133cbd3f7a5a223e113e | [
"MIT"
] | null | null | null | poo_basic/inheritance/heranca1/heranca_simples_exp2/Main.cpp | stemDaniel/ufmg-pds2 | 4dbb536a0926b617d04d133cbd3f7a5a223e113e | [
"MIT"
] | null | null | null | poo_basic/inheritance/heranca1/heranca_simples_exp2/Main.cpp | stemDaniel/ufmg-pds2 | 4dbb536a0926b617d04d133cbd3f7a5a223e113e | [
"MIT"
] | null | null | null | #include <iostream>
#include "Class.hpp"
using namespace std;
int main() {
A objA(55);
B objB(77, 99);
objB.getAtributo();
return 0;
} | 11.75 | 20 | 0.652482 | stemDaniel |
2e1f80d0b864873ce90d565623dc564869802058 | 1,315 | cpp | C++ | ICPC/Regional2021/L.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | ICPC/Regional2021/L.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | ICPC/Regional2021/L.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string>
#include <vector>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <stack>
#include <utility>
#include <queue>
#include <set>
#include <iomanip>
using namespace std;
typedef int64_t ll;
typedef pair<int,ll> pil... | 18.521127 | 65 | 0.49962 | CaDe27 |
2e21230f7cbeebf8fdfa6f5f4afc37e2d6790062 | 2,627 | cpp | C++ | tbfw/texture.cpp | TimBunk/tbfw | 9a008370798c1016af393c7151582bb6919917be | [
"MIT"
] | 3 | 2017-07-31T17:03:47.000Z | 2018-05-27T05:32:10.000Z | tbfw/texture.cpp | TimBunk/tbfw | 9a008370798c1016af393c7151582bb6919917be | [
"MIT"
] | null | null | null | tbfw/texture.cpp | TimBunk/tbfw | 9a008370798c1016af393c7151582bb6919917be | [
"MIT"
] | null | null | null | #include "texture.h"
Texture Tex::LoadTexture(const char * filePath, TextureWrap textureWrap, TextureFilter textureFilter, TextureType textureType)
{
// Note to self the first texture of a ID is 1 instead of 0
// define all needed variables
GLuint id;
std::string type;
Texture texture;
int width, height;
unsi... | 28.554348 | 126 | 0.753711 | TimBunk |
2e2351f260a0421fd70959fb6f484b7810c1811b | 918 | cpp | C++ | Cours2/softdesigntraining-Poly_Physic/Source/SoftDesignTraining/Private/CoverPropertiesComponent.cpp | Glytz/-LOG8235---Exercise | 831e924bec55c79aa66a95bb9e39886d348770fd | [
"MIT"
] | null | null | null | Cours2/softdesigntraining-Poly_Physic/Source/SoftDesignTraining/Private/CoverPropertiesComponent.cpp | Glytz/-LOG8235---Exercise | 831e924bec55c79aa66a95bb9e39886d348770fd | [
"MIT"
] | null | null | null | Cours2/softdesigntraining-Poly_Physic/Source/SoftDesignTraining/Private/CoverPropertiesComponent.cpp | Glytz/-LOG8235---Exercise | 831e924bec55c79aa66a95bb9e39886d348770fd | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "SoftDesignTraining.h"
#include "CoverPropertiesComponent.h"
// Sets default values for this component's properties
UCoverPropertiesComponent::UCoverPropertiesComponent()
{
// Set this component to be initialized when the game s... | 23.538462 | 132 | 0.755991 | Glytz |
2e24c1fd7a4ffbc741f4dfd312b504101d7e6356 | 1,914 | cpp | C++ | src/wanderer_engine.cpp | albin-johansson/wanderer | 74c1e788e37d6555def23fb6f49d2342baf2a6fe | [
"MIT"
] | 11 | 2021-05-09T09:19:35.000Z | 2022-03-22T10:11:16.000Z | src/wanderer_engine.cpp | albin-johansson/wanderer | 74c1e788e37d6555def23fb6f49d2342baf2a6fe | [
"MIT"
] | 5 | 2021-02-23T11:43:10.000Z | 2021-02-23T11:43:52.000Z | src/wanderer_engine.cpp | albin-johansson/wanderer | 74c1e788e37d6555def23fb6f49d2342baf2a6fe | [
"MIT"
] | null | null | null | #include "wanderer_engine.hpp"
#include "game_constants.hpp"
namespace wanderer {
wanderer_engine::wanderer_engine()
: m_window{"Wanderer"}
, m_graphics{m_window}
, m_game{m_graphics}
{
m_input.mouse.set_logical_size(glob::logical_size<>);
// clang-format off
m_game.sink<event::fullscreen_toggled>... | 22.255814 | 90 | 0.714211 | albin-johansson |
2e2547918c27bf5ddda4e4f1d5ff4dc286c3985f | 7,999 | cc | C++ | src/ui/tracker/gl.cc | cvfish/libmv-1 | b9aac30a9ca6bc8362c09a0e191040964f7c6de2 | [
"MIT"
] | 22 | 2015-05-15T09:20:44.000Z | 2021-08-10T21:03:20.000Z | src/ui/tracker/gl.cc | mikeseven/libmv | b9aac30a9ca6bc8362c09a0e191040964f7c6de2 | [
"MIT"
] | null | null | null | src/ui/tracker/gl.cc | mikeseven/libmv | b9aac30a9ca6bc8362c09a0e191040964f7c6de2 | [
"MIT"
] | 11 | 2015-02-08T20:57:10.000Z | 2021-04-10T12:59:11.000Z | // Copyright (c) 2011 libmv authors.
//
// 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... | 29.736059 | 80 | 0.674584 | cvfish |
2e27b649d8212810fa0963e7169088a3ff376440 | 1,112 | cpp | C++ | Ch26_ContainerExtensions/insert_or_assign.cpp | jamcodes/Cpp17CompleteGuide | a21ca5c3f5069b501cd650aa62e5e623bd2c953b | [
"Unlicense"
] | 3 | 2020-10-03T05:51:00.000Z | 2021-08-24T07:45:28.000Z | Ch26_ContainerExtensions/insert_or_assign.cpp | jamcodes/Cpp17CompleteGuide | a21ca5c3f5069b501cd650aa62e5e623bd2c953b | [
"Unlicense"
] | null | null | null | Ch26_ContainerExtensions/insert_or_assign.cpp | jamcodes/Cpp17CompleteGuide | a21ca5c3f5069b501cd650aa62e5e623bd2c953b | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <unordered_map>
#include <string>
/**
* C++17 added `.insert_or_assign()` to associative containers - it guarantees that the value is
* moved either to new or an existing element.
*/
int main()
{
std::unordered_map<int, std::string> foomap{{1, "foo"},
... | 34.75 | 96 | 0.528777 | jamcodes |
2e2c9d41528bfe4272507dbec3eeb78f17231537 | 1,972 | cpp | C++ | ABC222/C_Swiss_System_Tournament.cpp | tqa236/atcoder | 22a3ca1cf49da299f5623657aefbdc581b353224 | [
"MIT"
] | null | null | null | ABC222/C_Swiss_System_Tournament.cpp | tqa236/atcoder | 22a3ca1cf49da299f5623657aefbdc581b353224 | [
"MIT"
] | null | null | null | ABC222/C_Swiss_System_Tournament.cpp | tqa236/atcoder | 22a3ca1cf49da299f5623657aefbdc581b353224 | [
"MIT"
] | null | null | null |
#include <bits/stdc++.h>
using namespace std;
#define ar array
#define ll long long
const int MAX_N = 1e5 + 1;
const ll MOD = 1e9 + 7;
const ll INF = 1e9;
int score(char first, char second)
{
if ((first == 'G') && (second == 'C'))
return 1;
if ((first == 'C') && (second == 'P'))
return 1;
... | 24.04878 | 79 | 0.495436 | tqa236 |
2e358af774955a7b773fa4476846e735047e8cfd | 180 | cpp | C++ | tests/connection.cpp | christarazi/mtxclient | 4da58d0f0f9df6d9f1438a8701fedbf54edf7e46 | [
"MIT"
] | null | null | null | tests/connection.cpp | christarazi/mtxclient | 4da58d0f0f9df6d9f1438a8701fedbf54edf7e46 | [
"MIT"
] | null | null | null | tests/connection.cpp | christarazi/mtxclient | 4da58d0f0f9df6d9f1438a8701fedbf54edf7e46 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <iostream>
#include "client.hpp"
#include "mtx/responses.hpp"
using namespace mtx::client;
TEST(Basic, Connection) {}
TEST(Basic, Failure) {}
| 15 | 28 | 0.716667 | christarazi |
2e358d9b4239500585815daf43e9d66c21059db0 | 11,636 | cpp | C++ | tests/unit/plugins/matrixops/squeeze_operation.cpp | rhecto1/phylanx | 524eb7f2497afc9b67c76059767dfb2e4b694a47 | [
"BSL-1.0"
] | null | null | null | tests/unit/plugins/matrixops/squeeze_operation.cpp | rhecto1/phylanx | 524eb7f2497afc9b67c76059767dfb2e4b694a47 | [
"BSL-1.0"
] | null | null | null | tests/unit/plugins/matrixops/squeeze_operation.cpp | rhecto1/phylanx | 524eb7f2497afc9b67c76059767dfb2e4b694a47 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2018 Hartmut Kaiser
// Copyright (c) 2018 Bita Hasheminezhad
// Copyright (c) 2018 Parsa Amini
//
// 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/hpx_m... | 40.124138 | 80 | 0.549845 | rhecto1 |
aa2fc27b5770344ae52f5c1d6a819747e8953e80 | 12,845 | cpp | C++ | hans_visual/src/camera.cpp | AnselmoGPP/HansVisual | 867fd6b9b98e25043852bc5baeb5b2c66437ddcf | [
"MIT"
] | 1 | 2019-12-04T01:32:05.000Z | 2019-12-04T01:32:05.000Z | hans_visual/src/camera.cpp | AnselmoGPP/HansVisual | 867fd6b9b98e25043852bc5baeb5b2c66437ddcf | [
"MIT"
] | null | null | null | hans_visual/src/camera.cpp | AnselmoGPP/HansVisual | 867fd6b9b98e25043852bc5baeb5b2c66437ddcf | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
//#include <iomanip>
#include "_options.hpp"
#include "camera.hpp"
void glfw_timer::get_delta_time()
{
// glfwGetTime is called only once, the first time this function is called
if (!lastTime) lastTime = glfwGetTime();
// Compute time difference between cu... | 29.528736 | 165 | 0.589023 | AnselmoGPP |
aa306484d8c44aff2206f96b1eea644e79a6ac85 | 1,459 | hxx | C++ | libbuild2/search.hxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 422 | 2018-05-30T12:00:00.000Z | 2022-03-29T07:29:56.000Z | libbuild2/search.hxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 183 | 2018-07-02T20:38:30.000Z | 2022-03-31T09:54:35.000Z | libbuild2/search.hxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 14 | 2019-01-09T12:34:02.000Z | 2021-03-16T09:10:53.000Z | // file : libbuild2/search.hxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#ifndef LIBBUILD2_SEARCH_HXX
#define LIBBUILD2_SEARCH_HXX
#include <libbuild2/types.hxx>
#include <libbuild2/forward.hxx>
#include <libbuild2/utility.hxx>
#include <libbuild2/export.hxx>
namespace build2
{
// Search ... | 32.422222 | 77 | 0.740918 | build2 |
aa33363314a777550c21a22b702fe99644586c99 | 1,009 | cpp | C++ | code/code/LoadPNG.cpp | WarzesProject/0003_LostIslands | a349228ace5646726a12ef4d394c5388c0b80e44 | [
"MIT"
] | null | null | null | code/code/LoadPNG.cpp | WarzesProject/0003_LostIslands | a349228ace5646726a12ef4d394c5388c0b80e44 | [
"MIT"
] | null | null | null | code/code/LoadPNG.cpp | WarzesProject/0003_LostIslands | a349228ace5646726a12ef4d394c5388c0b80e44 | [
"MIT"
] | null | null | null | // This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "stdafx.h"
#include "Bitmap.h"
#include "Utility.h"
#include "Log.h"
#include <PicoPNG.h>
Bitmap LoadPNG(std::istream& stream)
{
std::str... | 33.633333 | 107 | 0.692765 | WarzesProject |
aa36ae467c7780f26f661634f3e0e76538c071cf | 1,685 | hpp | C++ | Garlic Game Jam/src/MsgQueue.hpp | KubaKazimierski/Garlic-Game-Jam | 71b045da29053945e459d7e6ce58eddff30e8dbf | [
"MIT"
] | 1 | 2019-03-27T19:03:28.000Z | 2019-03-27T19:03:28.000Z | Garlic Game Jam/src/MsgQueue.hpp | KubaKazimierski/Garlic-Game-Jam | 71b045da29053945e459d7e6ce58eddff30e8dbf | [
"MIT"
] | null | null | null | Garlic Game Jam/src/MsgQueue.hpp | KubaKazimierski/Garlic-Game-Jam | 71b045da29053945e459d7e6ce58eddff30e8dbf | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2019 Jakub Kazimierski
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, publi... | 30.636364 | 85 | 0.773294 | KubaKazimierski |
aa37e8e403e4bcc16d95c6d25a87ae4269d81313 | 688 | hpp | C++ | library/ATF/_qry_case_update_guildmaster.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_qry_case_update_guildmaster.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_qry_case_update_guildmaster.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
#pragma pack(push, 4)
struct _qry_case_update_guildmaster
{
unsigned int in_guildserial;
unsigned int tmp_guildindex;
... | 29.913043 | 108 | 0.722384 | lemkova |
aa38b813c2817975abd186f0b192dd632934352d | 1,647 | cpp | C++ | helloworld/source/helloworld.cpp | BonexGu/Blik2D | 8e0592787e5c8e8a28682d0e1826b8223eae5983 | [
"MIT"
] | 13 | 2017-02-22T02:20:06.000Z | 2018-06-06T04:18:03.000Z | helloworld/source/helloworld.cpp | BonexGu/Blik2D | 8e0592787e5c8e8a28682d0e1826b8223eae5983 | [
"MIT"
] | null | null | null | helloworld/source/helloworld.cpp | BonexGu/Blik2D | 8e0592787e5c8e8a28682d0e1826b8223eae5983 | [
"MIT"
] | null | null | null | #include <blik.hpp>
#include "helloworld.hpp"
#include <r.hpp>
ZAY_DECLARE_VIEW_CLASS("HWView", HWData)
ZAY_VIEW_API OnCommand(CommandType type, chars topic, id_share in, id_cloned_share* out)
{
}
ZAY_VIEW_API OnNotify(chars sender, chars topic, id_share in, id_cloned_share* out)
{
}
ZAY_VIEW_API OnGesture(Gestur... | 24.220588 | 88 | 0.574985 | BonexGu |
aa3cd0ee8396464c285a65b39af287cfd324945e | 1,247 | cpp | C++ | ds3runtime/game_data_man.cpp | tremwil/DS3RuntimeScripting | 50508bbf9295f87c459722ea3bea015c85a36de5 | [
"MIT"
] | 8 | 2021-06-05T21:59:53.000Z | 2022-02-03T10:00:09.000Z | ds3runtime/game_data_man.cpp | tremwil/DS3RuntimeScripting | 50508bbf9295f87c459722ea3bea015c85a36de5 | [
"MIT"
] | null | null | null | ds3runtime/game_data_man.cpp | tremwil/DS3RuntimeScripting | 50508bbf9295f87c459722ea3bea015c85a36de5 | [
"MIT"
] | 5 | 2021-05-17T19:49:29.000Z | 2022-02-26T11:00:29.000Z | #pragma once
#include "pch.h"
#include "game_data_man.h"
#include "memory_util.h"
#include "databaseaddress.h"
namespace ds3runtime {
GameDataMan::GameDataMan(uintptr_t address)
{
this->address = address;
}
uintptr_t GameDataMan::getPlayerGameData()
{
return *accessMultilevelPointer<uintptr_t>(address + 0x10);
}
... | 21.135593 | 77 | 0.773857 | tremwil |
aa3df2b557450b0050682a711d701a7f0218a292 | 1,298 | cpp | C++ | src/Hord/Schema/SchemaUnitTable.cpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | src/Hord/Schema/SchemaUnitTable.cpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | src/Hord/Schema/SchemaUnitTable.cpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | /**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
*/
#include <Hord/String.hpp>
#include <Hord/Object/Defs.hpp>
#include <Hord/Schema/UnitTable.hpp>
#include <Hord/detail/gr_ceformat.hpp>
namespace Hord {
namespace Schema {
// class UnitTable implementation
#define HORD_SCOPE_CLASS Schem... | 18.28169 | 72 | 0.74037 | komiga |
aa43c1226925554a201b767086c07791c308e993 | 455 | cpp | C++ | InterviewBit/Dynamic Programming/LongestPalindromicSubsequence.cpp | CRAZYGEEKS04/competitive-programming-1 | f27b8a718761b7bfeb8ff9e294398ca1a294cb5d | [
"MIT"
] | 2 | 2020-06-01T09:16:47.000Z | 2021-09-04T12:39:41.000Z | InterviewBit/Dynamic Programming/LongestPalindromicSubsequence.cpp | gauravsingh58/competitive-programming | fa5548f435cdf2aa059e1d6ab733885790c6a592 | [
"MIT"
] | 1 | 2020-10-10T16:14:54.000Z | 2020-10-10T16:14:54.000Z | InterviewBit/Dynamic Programming/LongestPalindromicSubsequence.cpp | gauravsingh58/competitive-programming | fa5548f435cdf2aa059e1d6ab733885790c6a592 | [
"MIT"
] | null | null | null | int Solution::solve(string s) {
int n = s.size();
vector<vector<int>> dp(n, vector<int>(n, 0));
for (int i = 0; i < n; i++) {
dp[i][i] = 1;
}
for (int len = 2; len <= n; len++) {
for (int i = 0; i < n - len + 1; i++) {
int j = i + len - 1;
if (s[i] == s[j] && len == 2)
dp[i][j] = 2;
else if (s[i]... | 20.681818 | 47 | 0.408791 | CRAZYGEEKS04 |
aa48ac3c8399e7d1136d92fd6cf0af3b4fc5b1c4 | 1,357 | cpp | C++ | String/SimplifyPath/SimplifyPath.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | 2 | 2015-08-28T03:52:05.000Z | 2015-09-03T09:54:40.000Z | String/SimplifyPath/SimplifyPath.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | null | null | null | String/SimplifyPath/SimplifyPath.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | null | null | null | // Source : https://leetcode.com/problems/simplify-path/
// Author : Yijing Bai
// Date : 2016-01-10
/**********************************************************************************
*
* Given an absolute path for a file (Unix-style), simplify it.
*
* For example,
* path = "/home/", => "/home"
* path = "/a/.... | 24.672727 | 87 | 0.439204 | yijingbai |
aa48e85355ce80d2f486661a35b1c057a4497a61 | 2,898 | cpp | C++ | sources/Experiment.cpp | Kam1runetzLabs/lab-02-cache | bb301e976a58451bc4b6f65eeafb2c816cdb3f77 | [
"MIT"
] | 1 | 2020-10-28T04:22:56.000Z | 2020-10-28T04:22:56.000Z | sources/Experiment.cpp | Kam1runetzLabs/lab-02-cache | bb301e976a58451bc4b6f65eeafb2c816cdb3f77 | [
"MIT"
] | null | null | null | sources/Experiment.cpp | Kam1runetzLabs/lab-02-cache | bb301e976a58451bc4b6f65eeafb2c816cdb3f77 | [
"MIT"
] | null | null | null | // Copyright 2020 <Shumeev Ilja (Kam1runetzLabs) notsoserious2017@gmail.com>
#include <Experiment.hpp>
#include <chrono>
#include <config.hpp>
#include <random>
#include <stdexcept>
#include <utility>
Experiment::Experiment(char *aBuffer, std::size_t aBufferSize)
: buffer(aBuffer), bufferSize(aBufferSize), travel... | 34.915663 | 79 | 0.665631 | Kam1runetzLabs |
aa4d44d547e84be4e40b1c7bd1f36491a274b287 | 11,085 | cpp | C++ | export/release/windows/obj/src/flixel/input/gamepad/id/SwitchJoyconRightID.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | export/release/windows/obj/src/flixel/input/gamepad/id/SwitchJoyconRightID.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | export/release/windows/obj/src/flixel/input/gamepad/id/SwitchJoyconRightID.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | // Generated by Haxe 4.2.2
#include <hxcpp.h>
#ifndef INCLUDED_flixel_input_gamepad_FlxGamepadAnalogStick
#include <flixel/input/gamepad/FlxGamepadAnalogStick.h>
#endif
#ifndef INCLUDED_flixel_input_gamepad_id_SwitchJoyconRightID
#include <flixel/input/gamepad/id/SwitchJoyconRightID.h>
#endif
HX_LOCAL_STACK_FRAME(_hx... | 44.518072 | 232 | 0.766171 | SamuraiOfSecrets |
aa530ee67acd1f23cf6c93cd1c3b1464147f81fb | 1,377 | cpp | C++ | DP/jumpgame1/bottomup.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | DP/jumpgame1/bottomup.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | 3 | 2020-05-08T18:02:51.000Z | 2020-05-09T08:37:35.000Z | DP/jumpgame1/bottomup.cpp | UltraProton/PlacementPrep | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
bool jump_possible(vector<int> &V);
int main(int argc, char const *argv[])
{
/* code */
vector<int> V;
int t=0,n=0,x=0;
cin>>t;
while(t>0){
V.clear();
cin>>n;
while(n>0){
cin>>x;
V.emplace_back(x);
... | 23.338983 | 134 | 0.514161 | UltraProton |
aa5917d8aabea275cc9d63ddbb39e5db3b12eb9c | 7,679 | cpp | C++ | plugin_vc/game_vc/CTheZones.cpp | gta-chaos-mod/plugin-sdk | e3bf176337774a2afc797a47825f81adde78e899 | [
"Zlib"
] | 368 | 2015-01-01T21:42:00.000Z | 2022-03-29T06:22:22.000Z | plugin_vc/game_vc/CTheZones.cpp | SteepCheat/plugin-sdk | a17c5d933cb8b06e4959b370092828a6a7aa00ef | [
"Zlib"
] | 89 | 2016-05-08T06:42:36.000Z | 2022-03-29T06:49:09.000Z | plugin_vc/game_vc/CTheZones.cpp | SteepCheat/plugin-sdk | a17c5d933cb8b06e4959b370092828a6a7aa00ef | [
"Zlib"
] | 179 | 2015-02-03T23:41:17.000Z | 2022-03-26T08:27:16.000Z | /*
Plugin-SDK (Grand Theft Auto Vice City) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CTheZones.h"
// Variables
eLevelName& CTheZones::m_CurrLevel = *(eLevelName*)0x97F204;
short& CTheZones::TotalNumberOfM... | 52.59589 | 205 | 0.76885 | gta-chaos-mod |
aa5bdef187e09715ae8b6b93af9585a94c22966f | 3,707 | cpp | C++ | Draw_Signal.cpp | SJ-magic-youtube-VisualProgrammer/101_WindowFunction | 0d5acf6ce1c26ac622195d36ac14befd6f63e478 | [
"MIT"
] | null | null | null | Draw_Signal.cpp | SJ-magic-youtube-VisualProgrammer/101_WindowFunction | 0d5acf6ce1c26ac622195d36ac14befd6f63e478 | [
"MIT"
] | null | null | null | Draw_Signal.cpp | SJ-magic-youtube-VisualProgrammer/101_WindowFunction | 0d5acf6ce1c26ac622195d36ac14befd6f63e478 | [
"MIT"
] | null | null | null | /************************************************************
************************************************************/
#include "Draw_Signal.h"
/************************************************************
************************************************************/
/******************************
*************... | 25.923077 | 78 | 0.502563 | SJ-magic-youtube-VisualProgrammer |
aa5f9db12f7d0ce66b51373712691cf05c8d638e | 1,092 | hpp | C++ | src/maritime/msgs/msg_17.hpp | knapply/maritime | 10ae19347dc51a9c90380b51a86306bb868129af | [
"Apache-2.0"
] | 1 | 2020-03-22T16:24:17.000Z | 2020-03-22T16:24:17.000Z | src/maritime/msgs/msg_17.hpp | knapply/maritime | 10ae19347dc51a9c90380b51a86306bb868129af | [
"Apache-2.0"
] | null | null | null | src/maritime/msgs/msg_17.hpp | knapply/maritime | 10ae19347dc51a9c90380b51a86306bb868129af | [
"Apache-2.0"
] | 1 | 2020-03-22T16:49:48.000Z | 2020-03-22T16:49:48.000Z | #ifndef MARITIME_MSG_17_HPP
#define MARITIME_MSG_17_HPP
#include "msg.hpp"
class Msgs_17 : public AIS_Msgs<libais::Ais17> {
vec_int spare;
vec_dbl lng_deg;
vec_dbl lat_deg;
public:
Msgs_17(const int n)
: AIS_Msgs::AIS_Msgs(n),
spare(n, NA_INTEGER),
lng_deg(n, NA_REAL),
lat_deg(... | 23.73913 | 71 | 0.6337 | knapply |
aa6349b343cc564ee2b555cc13d1539406bed341 | 964 | cc | C++ | src/xenia/kernel/dispatcher.cc | jdarpinian/xenia | 609d7c755f260e86a865703dc1dcd6df064b1fa0 | [
"BSD-3-Clause"
] | 1 | 2016-11-18T23:12:53.000Z | 2016-11-18T23:12:53.000Z | src/xenia/kernel/dispatcher.cc | jdarpinian/xenia | 609d7c755f260e86a865703dc1dcd6df064b1fa0 | [
"BSD-3-Clause"
] | null | null | null | src/xenia/kernel/dispatcher.cc | jdarpinian/xenia | 609d7c755f260e86a865703dc1dcd6df064b1fa0 | [
"BSD-3-Clause"
] | null | null | null | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... | 31.096774 | 79 | 0.492739 | jdarpinian |
aa640cd949cc975c566891d1bc536dc4d2232c75 | 1,105 | hpp | C++ | include/Tungsten/Shapes/ArrayBufferRowBuilder.hpp | jebreimo/Tungsten | 792b9a9a63427bd3a98bd89b7e226e3229745743 | [
"BSD-2-Clause"
] | null | null | null | include/Tungsten/Shapes/ArrayBufferRowBuilder.hpp | jebreimo/Tungsten | 792b9a9a63427bd3a98bd89b7e226e3229745743 | [
"BSD-2-Clause"
] | null | null | null | include/Tungsten/Shapes/ArrayBufferRowBuilder.hpp | jebreimo/Tungsten | 792b9a9a63427bd3a98bd89b7e226e3229745743 | [
"BSD-2-Clause"
] | null | null | null | //****************************************************************************
// Copyright © 2019 Jan Erik Breimo. All rights reserved.
// Created by Jan Erik Breimo on 2019-07-29.
//
// This file is distributed under the BSD License.
// License text is included with the source distribution.
//************************... | 31.571429 | 93 | 0.6 | jebreimo |
aa6d9d24998579df6e2df1cc149781bc1cd754bd | 241 | cpp | C++ | src/cpp/pacmangameconsole/pacman_actor.cpp | mwpowellhtx/simple-pacman-game | 80d8fa4cc33a2041da6a1e98811071615eb8d64d | [
"MIT"
] | null | null | null | src/cpp/pacmangameconsole/pacman_actor.cpp | mwpowellhtx/simple-pacman-game | 80d8fa4cc33a2041da6a1e98811071615eb8d64d | [
"MIT"
] | null | null | null | src/cpp/pacmangameconsole/pacman_actor.cpp | mwpowellhtx/simple-pacman-game | 80d8fa4cc33a2041da6a1e98811071615eb8d64d | [
"MIT"
] | null | null | null | #include "pacman_actor.h"
namespace pacman {
pacman_actor::pacman_actor(coordinates const & p)
: actor_base(p) {
}
pacman_actor::pacman_actor(pacman_actor const & other)
: actor_base(other._position) {
}
}
| 18.538462 | 58 | 0.651452 | mwpowellhtx |
aa8115e2dda5c057ec21621cc1269205b8a4a90b | 524 | hpp | C++ | NeoPixelMQTT/lib/ArduinoJson/src/ArduinoJson/Data/JsonVariantDefault.hpp | Cantara/IoT-Photon | 1c266ac4fc3dac5fc9e021b431836a1687e61e0e | [
"Apache-2.0"
] | 1 | 2018-07-20T08:48:30.000Z | 2018-07-20T08:48:30.000Z | NeoPixelMQTT/lib/ArduinoJson/src/ArduinoJson/Data/JsonVariantDefault.hpp | Cantara/IoT-Photon | 1c266ac4fc3dac5fc9e021b431836a1687e61e0e | [
"Apache-2.0"
] | null | null | null | NeoPixelMQTT/lib/ArduinoJson/src/ArduinoJson/Data/JsonVariantDefault.hpp | Cantara/IoT-Photon | 1c266ac4fc3dac5fc9e021b431836a1687e61e0e | [
"Apache-2.0"
] | null | null | null | // Copyright Benoit Blanchon 2014-2017
// MIT License
//
// Arduino JSON library
// https://bblanchon.github.io/ArduinoJson/
// If you like this project, please add a star!
#pragma once
namespace ArduinoJson {
namespace Internals {
template <typename T>
struct JsonVariantDefault {
static T get() {
... | 19.407407 | 63 | 0.685115 | Cantara |
aa8155aedf5241b8192f7b38cef80105bbba87d5 | 638 | cpp | C++ | source/Ch09/chapter/enum001.cpp | saraporcsin/UDProg-Introduction | 47709fef6dd1063b4cc794a38d2f45d4234fa590 | [
"CC0-1.0"
] | 3 | 2021-11-02T08:30:53.000Z | 2022-02-28T07:32:25.000Z | source/Ch09/chapter/enum001.cpp | saraporcsin/UDProg-Introduction | 47709fef6dd1063b4cc794a38d2f45d4234fa590 | [
"CC0-1.0"
] | 1 | 2020-11-10T15:58:17.000Z | 2020-11-10T15:58:17.000Z | source/Ch09/chapter/enum001.cpp | saraporcsin/UDProg-Introduction | 47709fef6dd1063b4cc794a38d2f45d4234fa590 | [
"CC0-1.0"
] | 122 | 2020-09-12T08:29:45.000Z | 2022-03-04T10:22:46.000Z | #include "../../std_lib_facilities.h"
const vector<string> months =
{
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
};
enum class Month {
jan, feb, mar, apr, may, june, july, aug, sept, oct, nov, dec
};
Month operator++(Month& m... | 13.574468 | 62 | 0.567398 | saraporcsin |
aa82a3564e3e91af27e4a5cadb8b70ddb3067b6c | 2,544 | hpp | C++ | include/gut_opengl/GLTypeUtils.hpp | Lehdari/GraphicsUtils | da1c02e6dc1c5541de593141003194d054f59724 | [
"CC0-1.0"
] | 2 | 2020-07-29T16:48:53.000Z | 2020-08-20T10:49:03.000Z | include/gut_opengl/GLTypeUtils.hpp | Lehdari/GraphicsUtils | da1c02e6dc1c5541de593141003194d054f59724 | [
"CC0-1.0"
] | null | null | null | include/gut_opengl/GLTypeUtils.hpp | Lehdari/GraphicsUtils | da1c02e6dc1c5541de593141003194d054f59724 | [
"CC0-1.0"
] | null | null | null | //
// Project: GraphicsUtils
// File: GLTypeUtils.hpp
//
// Copyright (c) 2020 Miika 'Lehdari' Lehtimäki
// You may use, distribute and modify this code under the terms
// of the licence specified in file LICENSE which is distributed
// with this source code package.
//
#ifndef GRAPHICSUTILS_GLTYPEUTILS_HPP
#define GR... | 34.849315 | 90 | 0.724057 | Lehdari |
aa86e944f47c83c3c17d597958005dd9c47bd07b | 1,109 | cpp | C++ | TFX/src/logic/Game.cpp | DCubix/TFX | 537f512b1bcc48cbdb592c82ef50a281ca6f4e4a | [
"MIT"
] | null | null | null | TFX/src/logic/Game.cpp | DCubix/TFX | 537f512b1bcc48cbdb592c82ef50a281ca6f4e4a | [
"MIT"
] | null | null | null | TFX/src/logic/Game.cpp | DCubix/TFX | 537f512b1bcc48cbdb592c82ef50a281ca6f4e4a | [
"MIT"
] | null | null | null | #include "Game.h"
namespace tfx {
Game::~Game() {
for (auto& kv : m_scenes) {
delete kv.second;
}
m_scenes.clear();
}
inline void Game::setScene(const String& name) {
m_nextScene = name;
m_switchingScenes = true;
}
void Game::update(float dt) {
if (m_nextScene.length() == 0 && !m_scenes.empty()) ... | 19.803571 | 55 | 0.648332 | DCubix |
aa8a674d0c661cd67d8ae7a0f4aea4427b1de85e | 9,523 | cpp | C++ | modules/python/src/MetaObject/python/Parameters.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 2 | 2017-10-26T04:41:49.000Z | 2018-02-09T05:12:19.000Z | modules/python/src/MetaObject/python/Parameters.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | null | null | null | modules/python/src/MetaObject/python/Parameters.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 3 | 2017-01-08T21:09:48.000Z | 2018-02-10T04:27:32.000Z | #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include "Parameters.hpp"
#include "MetaObject/core/TypeTable.hpp"
#include "MetaObject/object/IMetaObject.hpp"
#include "MetaObject/params/IParam.hpp"
#include "MetaObject/params/ISubscriber.hpp"
#include "MetaObject/python/DataConverter.hpp"
#include "PythonAllocator.... | 35.401487 | 120 | 0.570408 | dtmoodie |
aa8a773fc98ae497de20e1ff6ee4563496b9f8ab | 3,313 | hpp | C++ | sources/macro_language_definitions.hpp | Flamaros/cpp-includes-graph | 2a752b752a842436a596356bf3663cbe386122df | [
"MIT"
] | 1 | 2019-05-23T11:22:23.000Z | 2019-05-23T11:22:23.000Z | sources/macro_language_definitions.hpp | Flamaros/cpp-includes-graph | 2a752b752a842436a596356bf3663cbe386122df | [
"MIT"
] | null | null | null | sources/macro_language_definitions.hpp | Flamaros/cpp-includes-graph | 2a752b752a842436a596356bf3663cbe386122df | [
"MIT"
] | null | null | null | #pragma once
#include <stdint.h>
namespace macro
{
enum class Punctuation : uint8_t
{
unknown,
// Multiple characters punctuation
// !!!!! Have to be sort by the number of characters
// !!!!! to avoid bad forward detection (/** issue when last * can override the /* detection during the forward test)
// T... | 32.480392 | 137 | 0.466948 | Flamaros |
aa91564a96fd4dd940302301cedfb9fd07d9878c | 12,472 | cpp | C++ | sdk/cpp/core/src/path/root_schema_node.cpp | viardant/ydk-gen | fbe17423d1e71f189a22fd6bd11f969474dfde6a | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2021-02-10T17:07:04.000Z | 2021-09-13T20:27:11.000Z | sdk/cpp/core/src/path/root_schema_node.cpp | viardant/ydk-gen | fbe17423d1e71f189a22fd6bd11f969474dfde6a | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2019-06-14T17:52:25.000Z | 2022-01-28T20:48:20.000Z | sdk/cpp/core/src/path/root_schema_node.cpp | viardant/ydk-gen | fbe17423d1e71f189a22fd6bd11f969474dfde6a | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2021-09-28T15:13:51.000Z | 2022-03-19T18:15:33.000Z | /// YANG Development Kit
// Copyright 2016 Cisco Systems. All rights reserved
//
////////////////////////////////////////////////////////////////
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional inf... | 30.493888 | 123 | 0.58924 | viardant |
aa9b5d99661b12ff743e700946e0a8d0564958ee | 1,134 | hpp | C++ | AirLib/include/common/common_utils/Timer.hpp | zewuzheng17/Carintercept | 58a18ac84631fa03ec245dcdefdcc0ead6f84d67 | [
"MIT"
] | null | null | null | AirLib/include/common/common_utils/Timer.hpp | zewuzheng17/Carintercept | 58a18ac84631fa03ec245dcdefdcc0ead6f84d67 | [
"MIT"
] | null | null | null | AirLib/include/common/common_utils/Timer.hpp | zewuzheng17/Carintercept | 58a18ac84631fa03ec245dcdefdcc0ead6f84d67 | [
"MIT"
] | 1 | 2022-03-22T06:16:25.000Z | 2022-03-22T06:16:25.000Z | #ifndef CommonUtils_Timer_hpp
#define CommonUtils_Timer_hpp
#include <chrono>
#include "Utils.hpp"
namespace common_utils
{
class Timer
{
public:
Timer()
{
started_ = false;
}
void start()
{
started_ = true;
start_ = now();
}
void stop()
{
started_ = fals... | 18.590164 | 130 | 0.54321 | zewuzheng17 |
aaa39fbc8343a098f7e3b9ef2a9f1e71e9012f64 | 22,993 | cpp | C++ | src/SNC-LibraryTest/SNCOperatorsTest.cpp | timmyzhu/SNC-Meister | 7ecb5de94b4dae1c3c31d699bfe2289ab9f29abd | [
"MIT"
] | 5 | 2016-09-28T19:45:01.000Z | 2020-04-19T08:01:28.000Z | src/SNC-LibraryTest/SNCOperatorsTest.cpp | timmyzhu/SNC-Meister | 7ecb5de94b4dae1c3c31d699bfe2289ab9f29abd | [
"MIT"
] | null | null | null | src/SNC-LibraryTest/SNCOperatorsTest.cpp | timmyzhu/SNC-Meister | 7ecb5de94b4dae1c3c31d699bfe2289ab9f29abd | [
"MIT"
] | 4 | 2017-02-12T05:59:25.000Z | 2020-06-15T08:18:49.000Z | // SNCOperatorsTest.cpp - SNCOperators test code.
//
// Copyright (c) 2016 Timothy Zhu.
// Licensed under the MIT License. See LICENSE file for details.
//
#include <cassert>
#include <iostream>
#include <Eigen/Core>
#include <Eigen/Eigenvalues>
#include "../SNC-Library/ProcessedTrace.hpp"
#include "../SNC-Library/Est... | 39.371575 | 366 | 0.665637 | timmyzhu |
aaad9c336858fbcc439321c1bf398138f1bd884b | 57,632 | hpp | C++ | include/bio/format/bcf_input_handler.hpp | joshuak94/b.i.o. | 537ebc584daaa7788f918bf179e0e317a959a950 | [
"BSD-3-Clause"
] | null | null | null | include/bio/format/bcf_input_handler.hpp | joshuak94/b.i.o. | 537ebc584daaa7788f918bf179e0e317a959a950 | [
"BSD-3-Clause"
] | null | null | null | include/bio/format/bcf_input_handler.hpp | joshuak94/b.i.o. | 537ebc584daaa7788f918bf179e0e317a959a950 | [
"BSD-3-Clause"
] | null | null | null | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2021, Knut Reinert & MPI für molekulare Genetik
// Copyright (c) 2020-2021, deCODE Genetics
// This file may be used, modifie... | 42.944858 | 120 | 0.537878 | joshuak94 |
aaaf384402311c0aaafc1fb207a5eaafbb22a7f1 | 4,719 | cpp | C++ | Source/Materia/RosBridge.cpp | Fulmene/Materia | d977e9bd4da2185c64ba06911474a90c98ce5708 | [
"MIT"
] | 1 | 2021-12-03T18:47:46.000Z | 2021-12-03T18:47:46.000Z | Source/Materia/RosBridge.cpp | Fulmene/Materia | d977e9bd4da2185c64ba06911474a90c98ce5708 | [
"MIT"
] | 1 | 2017-08-03T08:07:48.000Z | 2017-08-04T09:02:48.000Z | Source/Materia/RosBridge.cpp | Fulmene/Materia | d977e9bd4da2185c64ba06911474a90c98ce5708 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "RosBridge.h"
#include "Utility.h"
const FString RosBridge::DefaultIpAddr = "127.0.0.1";
const uint16 RosBridge::DefaultPort = 9090;
const int32 RosBridge::BufferSize = 2*1024*1024;
RosBridge::RosBridge() : RosBridge(DefaultIpAd... | 31.885135 | 131 | 0.696758 | Fulmene |
82b2785a0429c40740748057592e5a4bd3ff2b34 | 619 | hpp | C++ | src/pin.hpp | Valmarelox/arvacuum | 6746b65e1c7278b230489e4a7e20d0e836ac5d70 | [
"MIT"
] | null | null | null | src/pin.hpp | Valmarelox/arvacuum | 6746b65e1c7278b230489e4a7e20d0e836ac5d70 | [
"MIT"
] | null | null | null | src/pin.hpp | Valmarelox/arvacuum | 6746b65e1c7278b230489e4a7e20d0e836ac5d70 | [
"MIT"
] | null | null | null | #pragma once
#include <Arduino.h>
#undef LOW
#undef HIGH
#undef INPUT
#undef OUTPUT
class DigitalPin {
public:
enum Level {
LOW = 0x0,
HIGH = 0x1,
};
enum Mode {
INPUT = 0x0,
OUTPUT = 0x1,
};
static DigitalPin alloc_pin(unsigned long num, Mode mode=Mode::OUTPUT);
... | 18.205882 | 75 | 0.633279 | Valmarelox |
82b4150c8c1bb3d46902bd8cd22e87cf70f4a0d4 | 10,395 | cpp | C++ | MMVII/src/Bench/BenchGeom.cpp | rumenmitrev/micmac | 065de918bb963a1c0f472504862c3060e180d48b | [
"CECILL-B"
] | null | null | null | MMVII/src/Bench/BenchGeom.cpp | rumenmitrev/micmac | 065de918bb963a1c0f472504862c3060e180d48b | [
"CECILL-B"
] | null | null | null | MMVII/src/Bench/BenchGeom.cpp | rumenmitrev/micmac | 065de918bb963a1c0f472504862c3060e180d48b | [
"CECILL-B"
] | null | null | null | #include "include/MMVII_all.h"
//#include "include/MMVII_Tpl_Images.h"
namespace MMVII
{
template<class Type> void TplBenchRotation3D(cParamExeBench & aParam)
{
int aNbTest = std::min(10000,300*(1+aParam.Level()));
for (int aKTest=0 ; aKTest<aNbTest ; aKTest++)
{
cPtxd<Type,3> aP0 = cPtxd<Type,3>::PRa... | 38.787313 | 120 | 0.609812 | rumenmitrev |
82b8648d5c54778593cb9299b63a46f27fd049f2 | 9,262 | cpp | C++ | sensors/sensordebug.cpp | Huawei-mt6737/device | baec9804cf904c17d2abd45a1ecddde384ec22b7 | [
"FTL"
] | 2 | 2018-12-24T09:37:43.000Z | 2019-09-22T13:55:54.000Z | sensors/sensordebug.cpp | Huawei-mt6737/device | baec9804cf904c17d2abd45a1ecddde384ec22b7 | [
"FTL"
] | null | null | null | sensors/sensordebug.cpp | Huawei-mt6737/device | baec9804cf904c17d2abd45a1ecddde384ec22b7 | [
"FTL"
] | 8 | 2017-07-05T17:09:28.000Z | 2019-03-04T09:37:45.000Z | /* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... | 32.612676 | 95 | 0.619629 | Huawei-mt6737 |
82ba2a5e6beaf31143f62ec3f5a4e658218b6dba | 2,565 | cpp | C++ | example/src/ofApp.cpp | kasparsj/ofxColorTheory | 09218e41fc9ea338343a04110a8c2159c1b15627 | [
"MIT"
] | 9 | 2018-11-25T16:31:13.000Z | 2021-09-27T12:39:08.000Z | example/src/ofApp.cpp | kasparsj/ofxColorTheory | 09218e41fc9ea338343a04110a8c2159c1b15627 | [
"MIT"
] | null | null | null | example/src/ofApp.cpp | kasparsj/ofxColorTheory | 09218e41fc9ea338343a04110a8c2159c1b15627 | [
"MIT"
] | 1 | 2020-02-27T06:04:46.000Z | 2020-02-27T06:04:46.000Z | #include "ofApp.h"
#include "ColorWheelSchemes.h"
//--------------------------------------------------------------
void ofApp::setup(){
group.setName("Color Theory");
group.add(primaryColor.set("Primary Color", ofColor::magenta));
group.add(colorScheme.set("Color Scheme", 6, 0, ColorWheelSchemes::colorSche... | 26.443299 | 95 | 0.409747 | kasparsj |
82cca30510318ace1b64ec51a79d9c9a34cbccf5 | 914 | hpp | C++ | include/mexcppclass/matlab/countargumentvalidator.hpp | rymut/mexcppclass | a6a1873a4c4d4f588490d3dc070cb7500fb82214 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-07-28T23:59:48.000Z | 2019-07-28T23:59:48.000Z | include/mexcppclass/matlab/countargumentvalidator.hpp | rymut/mexcppclass | a6a1873a4c4d4f588490d3dc070cb7500fb82214 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/mexcppclass/matlab/countargumentvalidator.hpp | rymut/mexcppclass | a6a1873a4c4d4f588490d3dc070cb7500fb82214 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2017-08-25T03:02:36.000Z | 2020-04-08T17:02:42.000Z | /// Copyright (C) 2017 by Boguslaw Rymut
///
/// This file is distributed under the Apache 2.0 License
/// See LICENSE for details.
#ifndef MEXCPPCLASS_MATLAB_COUNTARGUMENTVALIDATOR_HPP_
#define MEXCPPCLASS_MATLAB_COUNTARGUMENTVALIDATOR_HPP_
#include "mexcppclass/matlab/existsargumentvalidator.hpp"
namespa... | 26.882353 | 76 | 0.741794 | rymut |
82ce8015f14c5bb8bfdb75d020c38a736f767a02 | 6,746 | cpp | C++ | MetaheuristicsCPP/BinaryNSGA2Ranking.cpp | kommar/metaheuristics-lab | 6fce305b1f347eae44ac615a474d96b497264141 | [
"MIT"
] | null | null | null | MetaheuristicsCPP/BinaryNSGA2Ranking.cpp | kommar/metaheuristics-lab | 6fce305b1f347eae44ac615a474d96b497264141 | [
"MIT"
] | null | null | null | MetaheuristicsCPP/BinaryNSGA2Ranking.cpp | kommar/metaheuristics-lab | 6fce305b1f347eae44ac615a474d96b497264141 | [
"MIT"
] | null | null | null | #include "BinaryNSGA2Ranking.h"
using namespace Optimizers;
CBinaryNSGA2Ranking::CBinaryNSGA2Ranking(pair<double, double> &pMaxObjectiveValues, IDominationComparer &cDominationComparer)
: p_max_objective_values(pMaxObjectiveValues), c_domination_comparer(cDominationComparer)
{
}//CBinaryNSGA2Ranking::CBinaryNSGA2Ra... | 44.091503 | 226 | 0.763415 | kommar |
82d65de27610035ac3322e84c2b557d56462acae | 342 | cpp | C++ | LuoguOJ/5710.cpp | immccn123/immccn123-cpp | b242ec25cdbf2f21dae3a1c12f0f9c4b10404793 | [
"WTFPL"
] | null | null | null | LuoguOJ/5710.cpp | immccn123/immccn123-cpp | b242ec25cdbf2f21dae3a1c12f0f9c4b10404793 | [
"WTFPL"
] | null | null | null | LuoguOJ/5710.cpp | immccn123/immccn123-cpp | b242ec25cdbf2f21dae3a1c12f0f9c4b10404793 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
bool xa = 0, xb = 0, xiaoa = 0, uim = 0, bw = 0, zm = 1;
int a;
cin >> a;
if (a % 2 == 0) xa = 1;
if (a > 4 && a <= 12) xb = 1;
if (xa && xb) xiaoa = 1;
if (xa || xb) uim = 1;
if (xa ^ xb) bw = 1;
if (xa || xb) zm = 0;
printf("%d %d %d %d",... | 22.8 | 58 | 0.450292 | immccn123 |
82d9a1d96c50135e88c47af7259f796959f54e33 | 7,340 | cc | C++ | src/VkLayer_GF_amber_scoop/src/descriptor_set_data.cc | ilkkasaa/gf-layers | e6aef25320f784cd31fb26a993a63da4f50ff007 | [
"Apache-2.0"
] | 4 | 2021-04-20T20:38:20.000Z | 2021-11-25T15:07:09.000Z | src/VkLayer_GF_amber_scoop/src/descriptor_set_data.cc | ilkkasaa/gf-layers | e6aef25320f784cd31fb26a993a63da4f50ff007 | [
"Apache-2.0"
] | 6 | 2020-08-26T11:34:03.000Z | 2020-11-20T17:58:27.000Z | src/VkLayer_GF_amber_scoop/src/descriptor_set_data.cc | ilkkasaa/gf-layers | e6aef25320f784cd31fb26a993a63da4f50ff007 | [
"Apache-2.0"
] | 5 | 2020-08-18T12:06:17.000Z | 2020-10-13T16:43:31.000Z | // Copyright 2020 The gf-layers Project Authors
//
// 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 la... | 43.176471 | 80 | 0.722888 | ilkkasaa |
82df3ea190d97da8ebde2f76ad87a00516f66ced | 3,365 | hpp | C++ | src/nfagraph/ng_lbr_sve.hpp | a16bitsysop/hyperscan | 2819dc3d1b796e28d23140cb135077a709b7d28a | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 146 | 2021-02-15T14:13:57.000Z | 2022-03-30T19:06:13.000Z | src/nfagraph/ng_lbr_sve.hpp | a16bitsysop/hyperscan | 2819dc3d1b796e28d23140cb135077a709b7d28a | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 35 | 2021-01-26T10:21:21.000Z | 2022-03-23T09:50:20.000Z | src/nfagraph/ng_lbr_sve.hpp | a16bitsysop/hyperscan | 2819dc3d1b796e28d23140cb135077a709b7d28a | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 12 | 2021-03-26T15:02:20.000Z | 2022-03-10T13:14:32.000Z | /*
* Copyright (c) 2015-2017, Intel Corporation
* Copyright (c) 2021, Arm Limited
*
* 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,
* ... | 42.594937 | 78 | 0.676969 | a16bitsysop |
82e03fe281aa872bece5e947f726c8e4be244327 | 2,220 | cpp | C++ | BasePrimitive/BasePrimitive/main.cpp | roastduckcd/OpenGL | a90e377668d5be806706bb037e9042eb3423dc55 | [
"MIT"
] | null | null | null | BasePrimitive/BasePrimitive/main.cpp | roastduckcd/OpenGL | a90e377668d5be806706bb037e9042eb3423dc55 | [
"MIT"
] | null | null | null | BasePrimitive/BasePrimitive/main.cpp | roastduckcd/OpenGL | a90e377668d5be806706bb037e9042eb3423dc55 | [
"MIT"
] | null | null | null | #ifdef __APPLE__
#include "TargetConditionals.h"
#endif
#include "GLTools.h"
#ifdef __APPLE__
#include <glut/glut.h>
#else
#define FREEGLUT_STATIC
#include <GL/glut.h>
#endif
#include "Vertices.hpp"
#include "Keyboard.hpp"
extern GLenum primi;
GLBatch pointBatch;
GLShaderManager shaderManager;
void prepareToRende... | 20.181818 | 95 | 0.63018 | roastduckcd |
82e295b8973edbce194f1af28b9ee8f3e850a591 | 1,787 | hpp | C++ | Engine/Include/Sapphire/Core/Debug/LogChannel.hpp | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | 2 | 2020-03-18T09:06:21.000Z | 2020-04-09T00:07:56.000Z | Engine/Include/Sapphire/Core/Debug/LogChannel.hpp | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | null | null | null | Engine/Include/Sapphire/Core/Debug/LogChannel.hpp | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | null | null | null | // Copyright 2020 Sapphire development team.All Rights Reserved.
#pragma once
#ifndef SAPPHIRE_CORE_LOG_CHANNEL_GUARD
#define SAPPHIRE_CORE_LOG_CHANNEL_GUARD
#include <Core/Config.hpp>
#include <Core/Types/Char.hpp>
#include <Core/Misc/RAII.hpp>
#include <Core/Misc/Macro.hpp>
namespace Sa
{
/**
* \file LogChann... | 17.349515 | 103 | 0.678232 | SapphireSuite |
82eb7790a04e91e76b226804bb5c327b73bac3aa | 1,830 | cpp | C++ | hazelcast/test/src/util/RuntimeAvailableProcessorsTest.cpp | sbrown-uhd/hazelcast-cpp-client | ce57a508092fa42b9b4b371ae6c2782a21c75515 | [
"Apache-2.0"
] | null | null | null | hazelcast/test/src/util/RuntimeAvailableProcessorsTest.cpp | sbrown-uhd/hazelcast-cpp-client | ce57a508092fa42b9b4b371ae6c2782a21c75515 | [
"Apache-2.0"
] | null | null | null | hazelcast/test/src/util/RuntimeAvailableProcessorsTest.cpp | sbrown-uhd/hazelcast-cpp-client | ce57a508092fa42b9b4b371ae6c2782a21c75515 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2008-2019, Hazelcast, Inc. 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 ... | 36.6 | 94 | 0.651366 | sbrown-uhd |
82ee34a45c90c8836edde07d56d8439f05589d98 | 48,345 | cpp | C++ | Source/Core/Visualization/Mapper/SlicePlane.cpp | X1aoyueyue/KVS | ad47d62bef4fdd9ddd3412a26ee6557b63f0543b | [
"BSD-3-Clause"
] | 42 | 2015-07-24T23:05:07.000Z | 2022-03-16T01:31:04.000Z | Source/Core/Visualization/Mapper/SlicePlane.cpp | X1aoyueyue/KVS | ad47d62bef4fdd9ddd3412a26ee6557b63f0543b | [
"BSD-3-Clause"
] | 4 | 2015-03-17T05:42:49.000Z | 2020-08-09T15:21:45.000Z | Source/Core/Visualization/Mapper/SlicePlane.cpp | X1aoyueyue/KVS | ad47d62bef4fdd9ddd3412a26ee6557b63f0543b | [
"BSD-3-Clause"
] | 29 | 2015-01-03T05:56:32.000Z | 2021-10-05T15:28:33.000Z | /****************************************************************************/
/**
* @file SlicePlane.cpp
* @author Naohisa Sakamoto
*/
/****************************************************************************/
#include "SlicePlane.h"
#include <kvs/MarchingCubesTable>
#include <kvs/MarchingTetrahedraTable>
#... | 44.191042 | 114 | 0.562168 | X1aoyueyue |
82f5a75c045cf23a2deee5cf83e825d71e7d7078 | 1,146 | cpp | C++ | remote/rtRemoteFunction.cpp | maciej-barczak-red/pxCore | a4c320cfa0f8c5629d7de34ddb2c393b18ac2a50 | [
"Apache-2.0"
] | null | null | null | remote/rtRemoteFunction.cpp | maciej-barczak-red/pxCore | a4c320cfa0f8c5629d7de34ddb2c393b18ac2a50 | [
"Apache-2.0"
] | null | null | null | remote/rtRemoteFunction.cpp | maciej-barczak-red/pxCore | a4c320cfa0f8c5629d7de34ddb2c393b18ac2a50 | [
"Apache-2.0"
] | null | null | null | #include "rtRemoteFunction.h"
#include "rtRemoteClient.h"
#include "rtRemoteConfig.h"
#include "rtRemoteEnvironment.h"
rtRemoteFunction::rtRemoteFunction(std::string const& id, std::string const& name, std::shared_ptr<rtRemoteClient> const& client)
: m_ref_count(0)
, m_id(id)
, m_name(name)
, m_client(client)
... | 20.105263 | 129 | 0.690227 | maciej-barczak-red |
82f6e047c8bd74efe525ee939ddc7d6be564d1c6 | 431 | cpp | C++ | src/application/random.cpp | qis/application | 289dc0a3802fc7f03db900043f6ca0af5de04122 | [
"BSL-1.0"
] | 2 | 2020-06-22T06:12:43.000Z | 2020-09-30T10:22:58.000Z | src/application/random.cpp | qis/application | 289dc0a3802fc7f03db900043f6ca0af5de04122 | [
"BSL-1.0"
] | null | null | null | src/application/random.cpp | qis/application | 289dc0a3802fc7f03db900043f6ca0af5de04122 | [
"BSL-1.0"
] | 1 | 2018-06-25T13:29:58.000Z | 2018-06-25T13:29:58.000Z | #include "random.hpp"
#include <fmt/core.h>
#include <random>
namespace application {
std::string random()
{
static thread_local std::random_device rd;
static thread_local std::uniform_int_distribution<std::size_t> dist(
0, std::numeric_limits<std::size_t>::max());
std::string result;
for (auto i = 0; i ... | 19.590909 | 70 | 0.663573 | qis |
82f92bdf07a8fb6aaddc7b556d0f4ef2ab09925d | 849 | hpp | C++ | include/natalie_parser/node/alias_node.hpp | afaur/natalie_parser | fb0d55295258ec612e90fe4052cc8c07553715d1 | [
"MIT"
] | null | null | null | include/natalie_parser/node/alias_node.hpp | afaur/natalie_parser | fb0d55295258ec612e90fe4052cc8c07553715d1 | [
"MIT"
] | null | null | null | include/natalie_parser/node/alias_node.hpp | afaur/natalie_parser | fb0d55295258ec612e90fe4052cc8c07553715d1 | [
"MIT"
] | null | null | null | #pragma once
#include "natalie_parser/node/node.hpp"
#include "natalie_parser/node/node_with_args.hpp"
#include "natalie_parser/node/symbol_node.hpp"
#include "tm/hashmap.hpp"
#include "tm/string.hpp"
namespace NatalieParser {
using namespace TM;
class AliasNode : public Node {
public:
AliasNode(const Token &to... | 24.970588 | 82 | 0.707892 | afaur |
d20538e450035f672e06523cae30ef544e8ea71d | 368 | cpp | C++ | Uri-Online-Judge/cpp/1542 - Reading Books.cpp | ThiagoInocencio/Competitive-Programming-Solutions | efcabdd48d8c103ca619fff53db50aef0ea873d4 | [
"MIT"
] | 1 | 2020-06-07T22:08:42.000Z | 2020-06-07T22:08:42.000Z | Uri-Online-Judge/cpp/1542 - Reading Books.cpp | ThiagoInocencio/Competitive-Programming-Solutions | efcabdd48d8c103ca619fff53db50aef0ea873d4 | [
"MIT"
] | null | null | null | Uri-Online-Judge/cpp/1542 - Reading Books.cpp | ThiagoInocencio/Competitive-Programming-Solutions | efcabdd48d8c103ca619fff53db50aef0ea873d4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
using namespace std;
double Q, D, P;
double result;
int main() {
while(cin >> Q, Q != 0) {
cin >> D >> P;
result = trunc((-D)/((1/P)-(1/Q)));
if(result == 1) printf("1 pagina\n");
else printf("%.0l... | 15.333333 | 52 | 0.51087 | ThiagoInocencio |
d20b905e5171d59339a0f6bb06ea8cc2580aa4e0 | 16,115 | cpp | C++ | part-27-vulkan-load-textures/main/src/application/vulkan/vulkan-render-context.cpp | tanzle-aames/a-simple-triangle | 3cf7d76e8e8a3b5d42c6db35d3cbfef91b139ab0 | [
"MIT"
] | 52 | 2019-11-30T04:45:02.000Z | 2022-03-10T17:17:57.000Z | part-27-vulkan-load-textures/main/src/application/vulkan/vulkan-render-context.cpp | eugenebokhan/a-simple-triangle | 3cf7d76e8e8a3b5d42c6db35d3cbfef91b139ab0 | [
"MIT"
] | null | null | null | part-27-vulkan-load-textures/main/src/application/vulkan/vulkan-render-context.cpp | eugenebokhan/a-simple-triangle | 3cf7d76e8e8a3b5d42c6db35d3cbfef91b139ab0 | [
"MIT"
] | 10 | 2020-03-30T16:18:30.000Z | 2022-01-30T14:53:45.000Z | #include "vulkan-render-context.hpp"
#include "vulkan-image-view.hpp"
#include "vulkan-image.hpp"
#include "vulkan-render-pass.hpp"
#include "vulkan-swapchain.hpp"
#include <vector>
using ast::VulkanRenderContext;
namespace
{
ast::VulkanImage createMultiSampleImage(const ast::VulkanCommandPool& commandPool,
... | 43.319892 | 119 | 0.577412 | tanzle-aames |
d210f13a314e85a1889d51a777bc0ae132435da2 | 447 | cpp | C++ | PROJECT_KART/weapon.cpp | keithmulqueen/Project-KART | 6e170ec754b728581bbfcad8c2329ebf26da83ac | [
"Unlicense"
] | null | null | null | PROJECT_KART/weapon.cpp | keithmulqueen/Project-KART | 6e170ec754b728581bbfcad8c2329ebf26da83ac | [
"Unlicense"
] | null | null | null | PROJECT_KART/weapon.cpp | keithmulqueen/Project-KART | 6e170ec754b728581bbfcad8c2329ebf26da83ac | [
"Unlicense"
] | null | null | null | #include "weapon.h"
Weapon::Weapon(string description) : Item(description)
{
//default is needed as Player class won't compile without this constructor as it has fields of type Weapon.
//We should probably define some default behaviour in here.
}
Weapon::Weapon(string description, int power, int magicPower, b... | 27.9375 | 111 | 0.718121 | keithmulqueen |
d21228c82295f61c6df45e9e790c5e7c4ba0c92c | 7,597 | cpp | C++ | Userland/Utilities/unzip.cpp | Camisul/serenity | 7cf0c7cc0d74b84b0a2cc6f180914178cbb9ea20 | [
"BSD-2-Clause"
] | 2 | 2021-02-10T17:03:23.000Z | 2021-11-08T09:58:24.000Z | Userland/Utilities/unzip.cpp | Camisul/serenity | 7cf0c7cc0d74b84b0a2cc6f180914178cbb9ea20 | [
"BSD-2-Clause"
] | 78 | 2020-08-25T08:13:30.000Z | 2021-03-02T10:20:05.000Z | Userland/Utilities/unzip.cpp | Camisul/serenity | 7cf0c7cc0d74b84b0a2cc6f180914178cbb9ea20 | [
"BSD-2-Clause"
] | 1 | 2021-06-10T00:18:29.000Z | 2021-06-10T00:18:29.000Z | /*
* Copyright (c) 2020, Andrés Vieira <anvieiravazquez@gmail.com>
* 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 noti... | 37.240196 | 163 | 0.663815 | Camisul |
d213a54cdf04f10cf216e63fd5d4c1b5002524e7 | 4,281 | hxx | C++ | odb-tests-2.4.0/pgsql/types/traits.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-tests-2.4.0/pgsql/types/traits.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-tests-2.4.0/pgsql/types/traits.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : pgsql/types/traits.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef TRAITS_HXX
#define TRAITS_HXX
#include <cassert>
#include <cstring> // std::memcpy, std::memset
#include <odb/pgsql/traits.hxx>
#include <odb/pgsql/det... | 24.745665 | 72 | 0.489138 | edidada |
d2246507680ebb66bfdfd0bec0738dc4a5089bb4 | 413 | cpp | C++ | Number Theory/powerFunction.cpp | FahimMuntashir/theAlgorithms | 58348ea5c45059121a1cf83b8f99b4ac46973f01 | [
"MIT"
] | null | null | null | Number Theory/powerFunction.cpp | FahimMuntashir/theAlgorithms | 58348ea5c45059121a1cf83b8f99b4ac46973f01 | [
"MIT"
] | null | null | null | Number Theory/powerFunction.cpp | FahimMuntashir/theAlgorithms | 58348ea5c45059121a1cf83b8f99b4ac46973f01 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
ll power(ll base, ll exp)
{
if (exp == 0)
{
return 1;
}
if (exp % 2 == 0)
{
ll half = power(base, exp / 2);
return half * half;
}
else
{
return power(base, exp - 1) * base;
}
}
in... | 13.322581 | 43 | 0.469734 | FahimMuntashir |
d226517a96dff41269c2abc62a73236458a808c4 | 217 | cpp | C++ | multirule.cpp | LiFengcheng01/CPP-Homework | 192766b689996b166a394ceb4e9b256fa39e54e0 | [
"Apache-2.0"
] | 1 | 2018-10-12T05:00:45.000Z | 2018-10-12T05:00:45.000Z | multirule.cpp | LiFengcheng01/CPP-Homework | 192766b689996b166a394ceb4e9b256fa39e54e0 | [
"Apache-2.0"
] | null | null | null | multirule.cpp | LiFengcheng01/CPP-Homework | 192766b689996b166a394ceb4e9b256fa39e54e0 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
for(int i=1;i<10;i++)
for(int l=1;l<10;l++)
{
cout<<i<<"*"<<l<<"="<<i*l<<" ";
if(i==l)
{
cout<<endl;
break;
}
}
}
| 13.5625 | 35 | 0.40553 | LiFengcheng01 |
d2269842f6c8d5d6af698fcc9926b3e3135e6462 | 4,089 | cpp | C++ | unit_tests/mem_obj/buffer_pin_tests.cpp | abhi5658054/compute-runtime | 894060de5010874381fc981cf96a722769e65a76 | [
"MIT"
] | 1 | 2022-03-04T22:47:19.000Z | 2022-03-04T22:47:19.000Z | unit_tests/mem_obj/buffer_pin_tests.cpp | abhi5658054/compute-runtime | 894060de5010874381fc981cf96a722769e65a76 | [
"MIT"
] | null | null | null | unit_tests/mem_obj/buffer_pin_tests.cpp | abhi5658054/compute-runtime | 894060de5010874381fc981cf96a722769e65a76 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017, Intel Corporation
*
* 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, ... | 35.25 | 121 | 0.68672 | abhi5658054 |
d2285d9286539b30a86d9df5e53f7b7946a67f3f | 2,168 | cpp | C++ | src/StepDetector.cpp | lineage-rpi/android_hardware_st_sensors-iio | 59dc86aad1da1e5517f1776778619cf4da085eee | [
"Apache-2.0"
] | 38 | 2017-09-25T11:11:04.000Z | 2021-12-08T07:25:19.000Z | src/StepDetector.cpp | lineage-rpi/android_hardware_st_sensors-iio | 59dc86aad1da1e5517f1776778619cf4da085eee | [
"Apache-2.0"
] | 11 | 2017-10-23T20:29:42.000Z | 2021-09-22T14:12:06.000Z | src/StepDetector.cpp | lineage-rpi/android_hardware_st_sensors-iio | 59dc86aad1da1e5517f1776778619cf4da085eee | [
"Apache-2.0"
] | 24 | 2017-09-07T19:35:00.000Z | 2021-05-26T01:41:59.000Z | /*
* STMicroelectronics Step Detector Base Class
*
* Copyright 2015-2016 STMicroelectronics Inc.
* Author: Denis Ciocca - <denis.ciocca@st.com>
*
* Licensed under the Apache License, Version 2.0 (the "License").
*/
#include <fcntl.h>
#include <assert.h>
#include <signal.h>
#include "StepDetector.h"
StepDetect... | 29.297297 | 152 | 0.766605 | lineage-rpi |
d22ffb9a6203e815a1867938c6e33fbfcde87c35 | 4,302 | cpp | C++ | src/fireengine.native.player/src/app/innergeometry.cpp | iamkevinf/FireEngine | abf440f7a1e5596165b08fcc691ce894dfe2faef | [
"MIT"
] | 1 | 2021-12-15T07:14:53.000Z | 2021-12-15T07:14:53.000Z | src/fireengine.native.player/src/app/innergeometry.cpp | iamkevinf/FireEngine | abf440f7a1e5596165b08fcc691ce894dfe2faef | [
"MIT"
] | null | null | null | src/fireengine.native.player/src/app/innergeometry.cpp | iamkevinf/FireEngine | abf440f7a1e5596165b08fcc691ce894dfe2faef | [
"MIT"
] | null | null | null | #include "exportapi.h"
#include "core/gameobject.h"
#include "io/memorystream.h"
#include "io/parseshader.h"
#include "graphics/material.h"
#include "graphics/meshrenderer.h"
#include "graphics/texture2d.h"
#include "loader/loader.h"
#include "utils/string_tool.h"
namespace FireEngine
{
struct myv... | 28.302632 | 113 | 0.547652 | iamkevinf |
d230a666783429d7e96d278543a8c7061b8d4e44 | 198 | cpp | C++ | atcoder/abc/abc041/a.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | atcoder/abc/abc041/a.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | atcoder/abc/abc041/a.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
int main()
{
string s;
int n;
cin >> s>>n;
cout << s.at(n-1)<<endl;
return 0;
} | 13.2 | 28 | 0.545455 | yu3mars |
d232d84e016af94f0ef854b245c5fbdc072030fa | 525 | cpp | C++ | 14 longest-common-prefix/c/main.cpp | o-jules/LeetCode-Problems | e8b31d0dd93f6e49e385ef35689e51f6935cd7cb | [
"MIT"
] | null | null | null | 14 longest-common-prefix/c/main.cpp | o-jules/LeetCode-Problems | e8b31d0dd93f6e49e385ef35689e51f6935cd7cb | [
"MIT"
] | null | null | null | 14 longest-common-prefix/c/main.cpp | o-jules/LeetCode-Problems | e8b31d0dd93f6e49e385ef35689e51f6935cd7cb | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
using namespace std;
string longestCommonPrefix(vector<string> &strs) {
if (strs.empty())
return "";
string d;
int i = 1;
string first = strs.back();
strs.pop_back();
for (char &c: first) {
for (string &s : strs) {
if (s.size() < i ||... | 15.441176 | 51 | 0.561905 | o-jules |
d2370d2ccf1c2859701b5393ede2c4bb24fc4322 | 6,219 | cc | C++ | media/base/media_channel.cc | Tunnel-Vizion/webrtc | 7c256c99a1b4a4d2cbe9078df77f42e425418a12 | [
"BSD-3-Clause"
] | null | null | null | media/base/media_channel.cc | Tunnel-Vizion/webrtc | 7c256c99a1b4a4d2cbe9078df77f42e425418a12 | [
"BSD-3-Clause"
] | null | null | null | media/base/media_channel.cc | Tunnel-Vizion/webrtc | 7c256c99a1b4a4d2cbe9078df77f42e425418a12 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 32.731579 | 79 | 0.732433 | Tunnel-Vizion |
d23df23a1fdc847464b729b64d71d869bf35730f | 1,513 | cpp | C++ | src/include/SignUp.cpp | pranav2012/Database_Encryption_in_C-plus-plus | 47cce7b9e1aac4a906a772728c3f6c652d305307 | [
"MIT"
] | 3 | 2020-09-10T10:56:42.000Z | 2020-09-28T17:29:38.000Z | src/include/SignUp.cpp | pranav2012/Database_Encryption_in_C-plus-plus | 47cce7b9e1aac4a906a772728c3f6c652d305307 | [
"MIT"
] | 4 | 2020-09-17T15:24:01.000Z | 2020-09-23T14:00:01.000Z | src/include/SignUp.cpp | pranav2012/Database_Encryption_in_C-plus-plus | 47cce7b9e1aac4a906a772728c3f6c652d305307 | [
"MIT"
] | 7 | 2020-09-10T16:44:45.000Z | 2021-12-28T06:20:43.000Z | #include <iostream>
#include <string.h>
using namespace std;
void signup()
{
string users_name, rollno, year, course, password, passwordcheck;
cout << "PLEASE MENTION YOUR DETAILS BELOW \n";
cout << "Please Enter usersname:\n";
getline(cin, users_name); //please dont remove getline its added twice bcos of an ... | 24.803279 | 113 | 0.608724 | pranav2012 |
d240db80f349ba4a14f5a1ef107017c58937b811 | 137 | hpp | C++ | include/type.hpp | degustaf/tlox | 0955395bc99a6cdc23d68d19e6187fbb3d20905f | [
"MIT"
] | null | null | null | include/type.hpp | degustaf/tlox | 0955395bc99a6cdc23d68d19e6187fbb3d20905f | [
"MIT"
] | null | null | null | include/type.hpp | degustaf/tlox | 0955395bc99a6cdc23d68d19e6187fbb3d20905f | [
"MIT"
] | null | null | null | #ifndef TLOX_TYPE_HPP
#define TLOX_TYPE_HPP
#include <cstdint>
typedef uint8_t Reg;
typedef double Value;
#endif /* TLOX_TYPE_HPP */
| 12.454545 | 26 | 0.766423 | degustaf |
d242b15e9a73499f302c56569990f6f920dbcd13 | 1,216 | cpp | C++ | BOJ_solve/13974.cpp | biyotte/Code_of_gunwookim | b8b679ea56b8684ec44a7911211edee1fb558a96 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | BOJ_solve/13974.cpp | biyotte/Code_of_gunwookim | b8b679ea56b8684ec44a7911211edee1fb558a96 | [
"MIT"
] | null | null | null | BOJ_solve/13974.cpp | biyotte/Code_of_gunwookim | b8b679ea56b8684ec44a7911211edee1fb558a96 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 1e16;
const long long ... | 24.32 | 64 | 0.560855 | biyotte |
d252d7afa0e1bf104c6c4c7eb939b1a38ec1f0dd | 166 | hpp | C++ | kernel/arch/i686/capi_include/capi/consts.hpp | TheCoderCrab/HeliumOS | 30754c4f2e992825168a912bd42635f7df4bfce2 | [
"MIT"
] | 2 | 2021-07-19T14:15:37.000Z | 2021-08-18T11:24:26.000Z | kernel/arch/i686/capi_include/capi/consts.hpp | YavaCoco/HeliumOS | 30754c4f2e992825168a912bd42635f7df4bfce2 | [
"MIT"
] | null | null | null | kernel/arch/i686/capi_include/capi/consts.hpp | YavaCoco/HeliumOS | 30754c4f2e992825168a912bd42635f7df4bfce2 | [
"MIT"
] | null | null | null | #pragma once
#include <utils/array.hpp>
#include "types.hpp"
namespace capi
{
constexpr utils::array<mem_size, 2> MEMORY_UNIT_SIZES{ 4096, 4 * 1024 * 1024 };
}
| 16.6 | 83 | 0.698795 | TheCoderCrab |
d25a26c0a6c981982281470b71fd1d063ce11f86 | 13,447 | cpp | C++ | test/test_util_eigen_geometry.cpp | coincar-sim/util_eigen_geometry | 745f6ddea0e2741132e9a1ebb36f314a7f2c594a | [
"BSD-3-Clause"
] | 1 | 2018-08-02T14:14:39.000Z | 2018-08-02T14:14:39.000Z | test/test_util_eigen_geometry.cpp | coincar-sim/util_eigen_geometry | 745f6ddea0e2741132e9a1ebb36f314a7f2c594a | [
"BSD-3-Clause"
] | 1 | 2020-05-18T15:14:47.000Z | 2020-05-18T16:04:30.000Z | test/test_util_eigen_geometry.cpp | coincar-sim/util_eigen_geometry | 745f6ddea0e2741132e9a1ebb36f314a7f2c594a | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017
* FZI Forschungszentrum Informatik, Karlsruhe, Germany (www.fzi.de)
* KIT, Institute of Measurement and Control, Karlsruhe, Germany (www.mrt.kit.edu)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... | 45.583051 | 109 | 0.710196 | coincar-sim |
d91fa9031268407fab1d80644311b1213b8807aa | 4,638 | cpp | C++ | src/cli.cpp | aedalzotto/fs-sim | d223a477343ecbc1e5a7b8c9075e091c14460e46 | [
"MIT"
] | null | null | null | src/cli.cpp | aedalzotto/fs-sim | d223a477343ecbc1e5a7b8c9075e091c14460e46 | [
"MIT"
] | null | null | null | src/cli.cpp | aedalzotto/fs-sim | d223a477343ecbc1e5a7b8c9075e091c14460e46 | [
"MIT"
] | null | null | null | #include "cli.h"
FSCli::FSCli()
{
last_opt = FS_OPT_EXIT;
last_prog_opt = FS_PROG_BACK;
fat_loaded = false;
job_loaded = false;
}
int FSCli::run()
{
while(main_menu()){
switch(last_opt){
case FS_OPT_SEL_FAT:
select_fat();
break;
case FS_OPT_SEL_JOB:
... | 28.453988 | 80 | 0.532342 | aedalzotto |
d9205da5374488cfa408b2b2dab4d5a42558e426 | 850 | cpp | C++ | src/NumberValue.cpp | ismo-karkkainen/datalackey | 32267fd0cd48c918dde6459e843c49234b88758e | [
"UPL-1.0"
] | null | null | null | src/NumberValue.cpp | ismo-karkkainen/datalackey | 32267fd0cd48c918dde6459e843c49234b88758e | [
"UPL-1.0"
] | null | null | null | src/NumberValue.cpp | ismo-karkkainen/datalackey | 32267fd0cd48c918dde6459e843c49234b88758e | [
"UPL-1.0"
] | null | null | null | //
// NumberValue.cpp
// datalackey
//
// Created by Ismo Kärkkäinen on 25.10.17.
// Copyright © 2017 Ismo Kärkkäinen. All rights reserved.
//
// Licensed under Universal Permissive License. See License.txt.
#include "NumberValue.hpp"
#include <sstream>
NumberValue::NumberValue(long long int N, const std::string... | 20.238095 | 64 | 0.683529 | ismo-karkkainen |
d9215e267890135c497e12ae85deb405f2e16538 | 3,504 | cpp | C++ | lib/Conversion/ONNXToKrnl/Tensor/Unsqueeze.cpp | jdh8/onnx-mlir-dialect | b5d8da77afa6014d620898b5029f869aaa656a08 | [
"Apache-2.0"
] | null | null | null | lib/Conversion/ONNXToKrnl/Tensor/Unsqueeze.cpp | jdh8/onnx-mlir-dialect | b5d8da77afa6014d620898b5029f869aaa656a08 | [
"Apache-2.0"
] | null | null | null | lib/Conversion/ONNXToKrnl/Tensor/Unsqueeze.cpp | jdh8/onnx-mlir-dialect | b5d8da77afa6014d620898b5029f869aaa656a08 | [
"Apache-2.0"
] | null | null | null | //===--------------- Unsqueeze.cpp - Lowering Unsqueeze Op ----------------===//
//
// Copyright 2019 The IBM Research Authors.
//
// =============================================================================
//
// This file lowers the ONNX Unsqueeze Operator to Krnl dialect.
//
//===--------------------------------... | 39.818182 | 80 | 0.634418 | jdh8 |
d927f706c1ee431fd88865b4ed851ba27b8900f6 | 2,087 | cpp | C++ | tutorials/11_keyboard_actor/keyboard.cpp | jc19000/simplx | 0aff7eb8753494ad93895d5dba08478b0efabc56 | [
"Apache-2.0"
] | null | null | null | tutorials/11_keyboard_actor/keyboard.cpp | jc19000/simplx | 0aff7eb8753494ad93895d5dba08478b0efabc56 | [
"Apache-2.0"
] | null | null | null | tutorials/11_keyboard_actor/keyboard.cpp | jc19000/simplx | 0aff7eb8753494ad93895d5dba08478b0efabc56 | [
"Apache-2.0"
] | null | null | null | /*
* keyboard.cpp
*
* Please see accompanying README.
*/
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <memory>
#include "simplx.h"
#include "trz/util/waitcondition.h"
#include "trz/util/keyboardactor.h"
using namespace std;
using namespace tredzone;
//---- Keyboard Liste... | 22.684783 | 120 | 0.508864 | jc19000 |
d929b1a9a965777c7457ed986e5c98d9cd29a716 | 3,454 | cpp | C++ | Photon/Plugins/NCD8Switch/src/PatriotNCD8Switch.cpp | rlisle/ProjectIoT | abdb7efa36657fcd942626975d2156ef5d02c8bc | [
"MIT"
] | 21 | 2017-03-25T17:56:58.000Z | 2019-04-06T21:36:50.000Z | Photon/Plugins/NCD8Switch/src/PatriotNCD8Switch.cpp | rlisle/ProjectIoT | abdb7efa36657fcd942626975d2156ef5d02c8bc | [
"MIT"
] | 7 | 2017-04-04T19:39:18.000Z | 2020-01-17T01:07:18.000Z | Photon/Plugins/NCD8Switch/src/PatriotNCD8Switch.cpp | rlisle/ProjectIoT | abdb7efa36657fcd942626975d2156ef5d02c8bc | [
"MIT"
] | 10 | 2017-04-06T05:37:00.000Z | 2020-03-26T18:20:05.000Z | /******************************************************************
NCD GPIO Switch control
Features:
- Switch inputs converted to patriot MQTT messages
- Supports multiple boards
It is expected that the input will be connected to a switch
that is connected to ground. The pull-up resistor will be
enabled, maki... | 25.585185 | 80 | 0.569774 | rlisle |
d92a5eb33e725675b447a917ff10b002cfa8fc9d | 10,479 | cpp | C++ | integration_tests/src/UseCaseTests.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | integration_tests/src/UseCaseTests.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | integration_tests/src/UseCaseTests.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h>
#include <memory>
#include <sstream>
#include "common/ModelHelper.h"
#include "use_case/Facade.h"
#include "use_case_interface/BoardPresenter.h"
#include "use_case_interface/GameOverPresenter.h"
#include "use_case_interface/Random.h"
#include "us... | 30.55102 | 177 | 0.577345 | codingpotato |
d92f3afa600d739f04d1bce8537dc01c82007768 | 2,657 | cpp | C++ | Source/NetworkCoopGame/Private/SExplosiveBarrel.cpp | Zakatos/NetworkCoopGame | 45618de719805ff349e4f02dff689059b3242d7d | [
"MIT"
] | null | null | null | Source/NetworkCoopGame/Private/SExplosiveBarrel.cpp | Zakatos/NetworkCoopGame | 45618de719805ff349e4f02dff689059b3242d7d | [
"MIT"
] | null | null | null | Source/NetworkCoopGame/Private/SExplosiveBarrel.cpp | Zakatos/NetworkCoopGame | 45618de719805ff349e4f02dff689059b3242d7d | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "SExplosiveBarrel.h"
#include "Components/SHealthComponent.h"
#include "Kismet/GameplayStatics.h"
#include "PhysicsEngine/RadialForceComponent.h"
#include "SCharacter.h"
#include "EngineUtils.h"
#include "Net/UnrealNetwork.h"
//... | 26.57 | 189 | 0.782838 | Zakatos |
d93a33d2b0fd6f9f85d6babdd9a714733aefabb2 | 1,665 | cpp | C++ | Src/synchronizer.cpp | suikan4github/murasaki | 84f391b99617027151565349012e5fc367da857e | [
"MIT"
] | 12 | 2019-02-24T05:22:37.000Z | 2021-10-01T05:56:59.000Z | Src/synchronizer.cpp | suikan4github/murasaki | 84f391b99617027151565349012e5fc367da857e | [
"MIT"
] | 122 | 2019-02-23T13:51:42.000Z | 2021-11-13T01:24:34.000Z | Src/synchronizer.cpp | suikan4github/murasaki | 84f391b99617027151565349012e5fc367da857e | [
"MIT"
] | 3 | 2019-02-24T16:38:25.000Z | 2022-03-22T15:25:09.000Z | /*
* synchronizer.cpp
*
* Created on: 2018/01/26
* Author: Seiichi "Suikan" Horie
*/
#include <synchronizer.hpp>
#include "murasaki_assert.hpp"
namespace murasaki {
Synchronizer::Synchronizer()
:
// Create a semaphore as "empty" state.
// Because it is empty, task is blocked if... | 28.706897 | 110 | 0.675676 | suikan4github |
d93c09e54bf1d9860d1e2ed1bb0e8413543faa96 | 3,975 | cpp | C++ | 3DLfC4D shaders/source/DLGlass.cpp | FMalmberg/3Delight-for-Cinema-4D | 78e7e81044fed4226c3613f46edb1e80c58247d6 | [
"MIT"
] | 3 | 2018-10-06T17:05:53.000Z | 2020-06-29T21:31:11.000Z | 3DLfC4D shaders/source/DLGlass.cpp | FMalmberg/3Delight-for-Cinema-4D | 78e7e81044fed4226c3613f46edb1e80c58247d6 | [
"MIT"
] | 28 | 2018-11-14T19:08:18.000Z | 2019-06-30T10:25:13.000Z | 3DLfC4D shaders/source/DLGlass.cpp | FMalmberg/3Delight-for-Cinema-4D | 78e7e81044fed4226c3613f46edb1e80c58247d6 | [
"MIT"
] | 6 | 2018-08-29T11:02:39.000Z | 2019-05-13T13:35:17.000Z | #include "c4d.h"
#include "c4d_symbols.h"
#include "IDs.h"
#include "dl_glass.h"
class DL_Glass : public MaterialData
{
INSTANCEOF(DL_Material, MaterialData)
private:
Vector color;
public:
virtual Bool Init(GeListNode* node);
virtual INITRENDERRESULT InitRender(BaseMaterial* mat, const InitRenderStruct& irs);
... | 27.226027 | 99 | 0.764277 | FMalmberg |
d93dfa9cfaeffb2820cd30f6d2541875ab5a3d15 | 8,717 | cpp | C++ | curves/DrawWindow.cpp | kujenga/curves | 03857442c7b200a9206f6cfaadeb648047e578fe | [
"MIT"
] | 1 | 2020-09-30T07:18:44.000Z | 2020-09-30T07:18:44.000Z | curves/DrawWindow.cpp | kujenga/curves | 03857442c7b200a9206f6cfaadeb648047e578fe | [
"MIT"
] | null | null | null | curves/DrawWindow.cpp | kujenga/curves | 03857442c7b200a9206f6cfaadeb648047e578fe | [
"MIT"
] | null | null | null | //
// DrawWindow.cpp
// curves
//
// Created by Aaron Taylor on 10/6/14.
// Copyright (c) 2014 Aaron Taylor. All rights reserved.
//
#include "DrawWindow.h"
#include "freeform.h"
#include "circle.h"
#include "polyline.h"
#include "bezier.h"
#include "lagrange.h"
#include "catmullclark.h"
#include "catmullrom.h"
... | 35.434959 | 120 | 0.46048 | kujenga |
d94986f56121fde2d680f1e6aa4d08dae6326138 | 2,397 | hpp | C++ | src/elix_rendertree.hpp | lukesalisbury/elix | 171aedf7c925513408b785dde24c58bcee74acf3 | [
"Zlib"
] | 3 | 2015-04-14T13:14:34.000Z | 2020-01-31T04:02:35.000Z | src/elix_rendertree.hpp | lukesalisbury/elix | 171aedf7c925513408b785dde24c58bcee74acf3 | [
"Zlib"
] | null | null | null | src/elix_rendertree.hpp | lukesalisbury/elix | 171aedf7c925513408b785dde24c58bcee74acf3 | [
"Zlib"
] | null | null | null | /***********************************************************************************************************************
Copyright © Luke Salisbury
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held
liable for any damages arising from the use of this softwar... | 32.391892 | 120 | 0.710054 | lukesalisbury |
d94db0b36086ac7b10d912d60c63b290a82e72df | 432 | cc | C++ | leet_code/Custom_Sort_String/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | leet_code/Custom_Sort_String/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | leet_code/Custom_Sort_String/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
string customSortString(string S, string T) {
unordered_map<char, string> hash;
string ret;
for (int i = 0; i < S.length(); ++i) {
hash[S[i]] = string();
}
for (int i = 0; i < T.length(); ++i) {
if (hash.find(T[i]) == hash.end()) {
ret += T[i];
} else {
hash[T[i]] ... | 16.615385 | 46 | 0.488426 | ldy121 |
d954bb1b0462935d80854749e4a03ffbba0a1bdf | 827 | cpp | C++ | Contests/Codeforces/Educational Codeforces Round 66 (Rated for Div. 2)/b-catch.cpp | Pradyuman7/AwesomeDataStructuresAndAlgorithms | 6d995c7a3ce2a227733b12b1749de647c5172e8e | [
"MIT"
] | 7 | 2018-11-15T07:51:21.000Z | 2020-03-20T04:31:33.000Z | Contests/Codeforces/Educational Codeforces Round 66 (Rated for Div. 2)/b-catch.cpp | Pradyuman7/AwesomeDataStructuresAndAlgorithms | 6d995c7a3ce2a227733b12b1749de647c5172e8e | [
"MIT"
] | null | null | null | Contests/Codeforces/Educational Codeforces Round 66 (Rated for Div. 2)/b-catch.cpp | Pradyuman7/AwesomeDataStructuresAndAlgorithms | 6d995c7a3ce2a227733b12b1749de647c5172e8e | [
"MIT"
] | 3 | 2018-11-15T06:39:53.000Z | 2021-07-20T02:09:18.000Z | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
long long int x=0;
string s;
long long int num,mul=1;
int flag=0;
// cout<<"\n";
stack <long long int> rem;
rem.push(1);
while(n--)
{
cin>>s;
if(s=="for")
{
cin>>num;
mul=... | 9.505747 | 45 | 0.437727 | Pradyuman7 |
d957a314dedd346d3ac611a7c1a83baeccb05bd0 | 87 | hpp | C++ | include/calf/debugging.hpp | youmu129/cpp-calf | 1a46f8493c2445890d352026cf061edcad310d8f | [
"MIT"
] | 3 | 2022-01-11T08:23:29.000Z | 2022-01-12T04:53:56.000Z | include/calf/debugging.hpp | loqix/cpp-calf | 1a46f8493c2445890d352026cf061edcad310d8f | [
"MIT"
] | null | null | null | include/calf/debugging.hpp | loqix/cpp-calf | 1a46f8493c2445890d352026cf061edcad310d8f | [
"MIT"
] | 1 | 2022-01-11T08:23:08.000Z | 2022-01-11T08:23:08.000Z | #ifndef CALF_DEBUGGING_HPP_
#define CALF_DEBUGGING_HPP_
#endif // CALF_DEBUGGING_HPP_
| 17.4 | 29 | 0.850575 | youmu129 |
d95a23c8f14ed5ca15f0215eeecf78bb386e339b | 3,659 | cc | C++ | c/cli_mt.cc | yux20000304/indexfs | e0b9a742e2fe9b231f06803a5af2e0c596e0d7c6 | [
"BSD-3-Clause"
] | 2 | 2021-05-29T07:27:23.000Z | 2022-02-26T18:16:07.000Z | c/cli_mt.cc | yux20000304/indexfs | e0b9a742e2fe9b231f06803a5af2e0c596e0d7c6 | [
"BSD-3-Clause"
] | null | null | null | c/cli_mt.cc | yux20000304/indexfs | e0b9a742e2fe9b231f06803a5af2e0c596e0d7c6 | [
"BSD-3-Clause"
] | 3 | 2021-01-18T03:42:53.000Z | 2022-01-02T14:50:03.000Z | // Copyright (c) 2014 The IndexFS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <pthread.h>
#include "c/libclient.h"
#include "c/cli.h"
extern "C" {
// Points to a thread-... | 22.042169 | 82 | 0.616562 | yux20000304 |
d9636a8b9fe72569ce13c15da9078db16cb95547 | 4,131 | cpp | C++ | Junior_Core/Src/Source/Sprite.cpp | DeltaGoldenFlag/JuniorEngine | 9581f863d5bd412a4ab48b7ea893151798829856 | [
"BSD-3-Clause"
] | 1 | 2019-06-13T00:14:02.000Z | 2019-06-13T00:14:02.000Z | Junior_Core/Src/Source/Sprite.cpp | DeltaGoldenFlag/JuniorEngine | 9581f863d5bd412a4ab48b7ea893151798829856 | [
"BSD-3-Clause"
] | null | null | null | Junior_Core/Src/Source/Sprite.cpp | DeltaGoldenFlag/JuniorEngine | 9581f863d5bd412a4ab48b7ea893151798829856 | [
"BSD-3-Clause"
] | null | null | null | /*
* Author: David Wong
* Email: david.wongcascante@digipen.edu
* File Name: Sprite.cpp
* Description: Defines how Sprite works
* Created: 13 Feb 2019
* Last Modified: 10 Sep 2019
*/
// Includes
#include "Sprite.h" // Sprite
#include "Graphics.h" // Graphics
#include "TextureAtlas.h" // Texture Atlas
#incl... | 27.912162 | 101 | 0.724038 | DeltaGoldenFlag |
d96405b3d6a79dc8fb3e79f3b20fe5067c52fdca | 6,051 | hpp | C++ | vcf.hpp | jgarciamesa/SoFoS | 40a917ad11e5e3614bb3086c440dea2cdce18189 | [
"MIT"
] | 14 | 2019-01-04T20:16:49.000Z | 2021-04-18T04:42:17.000Z | vcf.hpp | jgarciamesa/SoFoS | 40a917ad11e5e3614bb3086c440dea2cdce18189 | [
"MIT"
] | 15 | 2018-12-14T23:09:30.000Z | 2022-01-05T03:03:02.000Z | vcf.hpp | jgarciamesa/SoFoS | 40a917ad11e5e3614bb3086c440dea2cdce18189 | [
"MIT"
] | 4 | 2018-12-14T22:56:31.000Z | 2021-05-27T22:48:04.000Z | /*****************************************************************************
Copyright (c) 2019 Reed A. Cartwright, PhD <reed@cartwrig.ht>
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... | 33.616667 | 115 | 0.639398 | jgarciamesa |
d964cc6955629ea3a4ffbcb9c45ec953701d5350 | 2,295 | cpp | C++ | #0385.mini-parser.cpp | hosomi/LeetCode | aba8fae8e37102b33dba8fd4adf1f018c395a4db | [
"MIT"
] | null | null | null | #0385.mini-parser.cpp | hosomi/LeetCode | aba8fae8e37102b33dba8fd4adf1f018c395a4db | [
"MIT"
] | null | null | null | #0385.mini-parser.cpp | hosomi/LeetCode | aba8fae8e37102b33dba8fd4adf1f018c395a4db | [
"MIT"
] | null | null | null | /**
* // This is the interface that allows for creating nested lists.
* // You should not implement it, or speculate about its implementation
* class NestedInteger {
* public:
* // Constructor initializes an empty nested list.
* NestedInteger();
*
* // Constructor initializes a single integer.
* ... | 29.423077 | 95 | 0.485403 | hosomi |
d9660d98362273c3496b61fbb2e22a5f551e0731 | 942 | hpp | C++ | engine/allocator.hpp | asd19951995/kvdk | 167206a0bb2702d96b78889e6f7a9e01ce6f835c | [
"BSD-3-Clause"
] | null | null | null | engine/allocator.hpp | asd19951995/kvdk | 167206a0bb2702d96b78889e6f7a9e01ce6f835c | [
"BSD-3-Clause"
] | null | null | null | engine/allocator.hpp | asd19951995/kvdk | 167206a0bb2702d96b78889e6f7a9e01ce6f835c | [
"BSD-3-Clause"
] | null | null | null | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2021 Intel Corporation
*/
#pragma once
#include "kvdk/namespace.hpp"
#include "structures.hpp"
namespace KVDK_NAMESPACE {
// Free pmem blocks
struct SpaceEntry {
uint64_t offset = 0;
// Allocator specific information
// For example, in PMEMAllocator, it... | 26.166667 | 76 | 0.725053 | asd19951995 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.