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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f56ba7b9b0425620218970964694ac78674c346 | 3,703 | cpp | C++ | lib/common/Shader.cpp | ynsn/rendor | b4d9da7ccedd472c7fc6d0155000c5b6a031dd1a | [
"MIT"
] | null | null | null | lib/common/Shader.cpp | ynsn/rendor | b4d9da7ccedd472c7fc6d0155000c5b6a031dd1a | [
"MIT"
] | null | null | null | lib/common/Shader.cpp | ynsn/rendor | b4d9da7ccedd472c7fc6d0155000c5b6a031dd1a | [
"MIT"
] | null | null | null | /**
* MIT License
*
* Copyright (c) 2019 Yoram
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 29.15748 | 86 | 0.709155 | ynsn |
7f59467bbebf778457679b5aae0d9fca38b6115d | 578 | cpp | C++ | util/mod_count_in_range.cpp | sekiya9311/CplusplusAlgorithmLibrary | f29dbdfbf3594da055185e39765880ff5d1e64ae | [
"Apache-2.0"
] | null | null | null | util/mod_count_in_range.cpp | sekiya9311/CplusplusAlgorithmLibrary | f29dbdfbf3594da055185e39765880ff5d1e64ae | [
"Apache-2.0"
] | 8 | 2019-04-13T15:11:11.000Z | 2020-03-19T17:14:18.000Z | util/mod_count_in_range.cpp | sekiya9311/CplusplusAlgorithmLibrary | f29dbdfbf3594da055185e39765880ff5d1e64ae | [
"Apache-2.0"
] | null | null | null | // 範囲内のmodごとの数
// [l, r] 閉区間
std::vector<long long> mod_count_in_range(long long left, long long right, int mod) {
const long long range = (right - left + 1);
std::vector<long long> mod_count(mod, range / mod);
if (range % mod > 0) {
const int add_of_rest_left = left % mod;
int add_of_rest_right;
if (... | 28.9 | 85 | 0.610727 | sekiya9311 |
7f5d6320aa10eee491059fc407abd1e679737819 | 366 | cpp | C++ | basic/root.cpp | ray2060/learn-cpp | bcf322d32574e1741a048219acff5697c99b2614 | [
"MIT"
] | null | null | null | basic/root.cpp | ray2060/learn-cpp | bcf322d32574e1741a048219acff5697c99b2614 | [
"MIT"
] | null | null | null | basic/root.cpp | ray2060/learn-cpp | bcf322d32574e1741a048219acff5697c99b2614 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
using namespace std;
string root(string s) {
if (s.size() == 1) return s;
int m;
for (int i = 0; i < s.size(); i ++) m += s[i] - 48;
stringstream st;
st << m;
string t;
st >> t;
return root(t);
}
int main() {
string s;
c... | 15.25 | 55 | 0.510929 | ray2060 |
7f5fd23d9e82092bb4d7066d6d588405d98299aa | 23,640 | cpp | C++ | DesignPages/DesignFormPanel.cpp | LibertyWarriorMusic/DBWorks | 4bda411608cecb86f2cfc7f9319b160ed558a853 | [
"MIT"
] | 1 | 2020-03-10T03:26:50.000Z | 2020-03-10T03:26:50.000Z | DesignPages/DesignFormPanel.cpp | LibertyWarriorMusic/DBWorks | 4bda411608cecb86f2cfc7f9319b160ed558a853 | [
"MIT"
] | 1 | 2020-03-20T05:16:14.000Z | 2020-03-20T05:17:25.000Z | DesignPages/DesignFormPanel.cpp | LibertyWarriorMusic/DBWorks | 4bda411608cecb86f2cfc7f9319b160ed558a853 | [
"MIT"
] | null | null | null | //
// DrawPan.cpp
// P2
//
// Created by Nicholas Zounis on 27/2/20.
//
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/button.h>
#include <wx/string.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/... | 32.383562 | 167 | 0.677876 | LibertyWarriorMusic |
7f60bb0f944ba4d08ab554d599ac5ea4d433bb12 | 19,513 | cc | C++ | Archive/Stroika_FINAL_for_STERL_1992/Library/Graphix/Sources/Shape.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Graphix/Sources/Shape.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Graphix/Sources/Shape.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/Shape.cc,v 1.7 1992/09/11 18:41:55 sterling Exp $
*
* TODO:
*
* - Desperately need the ability to scale shapes - probably shouyld add general
* transform capabilty - at least scale, etc..
*
* Changes:
... | 25.810847 | 129 | 0.656178 | SophistSolutions |
7f648ca329c34393391088b306750f82f8dc4b08 | 5,949 | cpp | C++ | mbed-glove-firmware/sensor_tests.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | null | null | null | mbed-glove-firmware/sensor_tests.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | null | null | null | mbed-glove-firmware/sensor_tests.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | 1 | 2019-01-09T05:16:42.000Z | 2019-01-09T05:16:42.000Z | /*
* Copyright (c) 2016 by Nick Bertoldi, Ben Heckathorn, Ryan O'Keefe,
* Adrian Padin, Timothy Schumacher
*
* 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 withou... | 25.207627 | 109 | 0.593713 | apadin1 |
7f65000118ec2d9709cec5f5792f3d4512aeba66 | 1,607 | hpp | C++ | src/component/symbol_table.hpp | aabaa/mizcore | 5542f080278d79a993df741bd3bf3daa24ac28f9 | [
"MIT"
] | 1 | 2020-11-17T12:47:29.000Z | 2020-11-17T12:47:29.000Z | src/component/symbol_table.hpp | aabaa/mizcore | 5542f080278d79a993df741bd3bf3daa24ac28f9 | [
"MIT"
] | null | null | null | src/component/symbol_table.hpp | aabaa/mizcore | 5542f080278d79a993df741bd3bf3daa24ac28f9 | [
"MIT"
] | 2 | 2020-02-28T09:19:45.000Z | 2020-02-28T09:26:17.000Z | #pragma once
#include <map>
#include <memory>
#include <string>
#include <string_view>
#include <vector>
#include "symbol_type.hpp"
#include "tsl/htrie_map.h"
namespace mizcore {
class Symbol;
class SymbolTable
{
public:
// ctor, dtor
SymbolTable();
virtual ~SymbolTable() = default;
SymbolTable(... | 27.237288 | 78 | 0.676416 | aabaa |
7f7265728b572c76da1e29ebe58b29a88f345161 | 2,169 | cpp | C++ | src/core/features/defuse.cpp | mov-rax-rax/gamesneeze | 09b2d9d6ef5b6ad7c9c820f98f1a6339bf1405a1 | [
"MIT"
] | 1 | 2022-01-13T07:05:26.000Z | 2022-01-13T07:05:26.000Z | src/core/features/defuse.cpp | mov-rax-rax/gamesneeze | 09b2d9d6ef5b6ad7c9c820f98f1a6339bf1405a1 | [
"MIT"
] | null | null | null | src/core/features/defuse.cpp | mov-rax-rax/gamesneeze | 09b2d9d6ef5b6ad7c9c820f98f1a6339bf1405a1 | [
"MIT"
] | 1 | 2021-12-31T13:02:42.000Z | 2021-12-31T13:02:42.000Z | #include "../../includes.hpp"
#include "features.hpp"
void Features::Defuse::createMoveStart(Command *cmd) {
auto autoDefuse = CONFIGBOOL("Misc>Misc>Misc>Auto Defuse");
auto silentDefuse = CONFIGBOOL("Misc>Misc>Misc>Silent Defuse");
auto antiAiming = CONFIGINT("Rage>AntiAim>Type") != 0;
if (!(autoDefu... | 30.549296 | 154 | 0.632089 | mov-rax-rax |
7f771b35efe4c9619b2da87401e3ab7679742766 | 3,159 | hpp | C++ | packages/monte_carlo/core/src/MonteCarlo_AdjointPhotonProbeState.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/core/src/MonteCarlo_AdjointPhotonProbeState.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/core/src/MonteCarlo_AdjointPhotonProbeState.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_AdjointPhotonProbeState.hpp
//! \author Alex Robinson
//! \brief Adjoint photon probe state class declaration
//!
//---------------------------------------------------------------------------//
#ifndef MONTE_CAR... | 30.375 | 90 | 0.686926 | bam241 |
7f7a350edbf1b381dbd5d2994a11701cbd83b77b | 3,015 | cpp | C++ | Ejercicios/Ejercicio44-Punto-de-Venta-parte-V/productos.cpp | DanielaVH/cpp | c54c853681cdd46d85172546b14019ed48909999 | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio44-Punto-de-Venta-parte-V/productos.cpp | DanielaVH/cpp | c54c853681cdd46d85172546b14019ed48909999 | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio44-Punto-de-Venta-parte-V/productos.cpp | DanielaVH/cpp | c54c853681cdd46d85172546b14019ed48909999 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
extern void agregarProducto(string descripcion, int cantidad, double precio);
void productos(int opcion)
{
system("cls");
int opcionProducto = 0;
switch (opcion)
{
case 1:
{
cout << "BEBIDAS CALIENTES" << endl;
cout << "******************" << endl;
... | 22.333333 | 78 | 0.448093 | DanielaVH |
7f7eb0c1e0f936d0f4e7a2690c69c17e9e1d80e0 | 5,504 | cpp | C++ | tests/bint_div.cpp | mrdcvlsc/bintlib | 9290f779eb50101bd35b00148eea94c5c30dcc61 | [
"MIT"
] | 2 | 2020-10-30T06:39:01.000Z | 2020-10-31T02:18:00.000Z | tests/bint_div.cpp | mrdcvlsc/bintlib | 9290f779eb50101bd35b00148eea94c5c30dcc61 | [
"MIT"
] | 2 | 2020-10-30T06:49:01.000Z | 2020-10-31T11:12:42.000Z | tests/bint_div.cpp | mrdcvlsc/bintlib | 9290f779eb50101bd35b00148eea94c5c30dcc61 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#ifndef _MAKE_LIB
#include "../core.hpp"
#else
#include <bint.hpp>
#endif
#include "mini-test.hpp"
int main() { START_TEST;
// test variables
apa::bint ONE = 1, ZERO = 0;
apa::bint NUM1(
"0x19cf0546f6a3fc1e93d8dbda5ea2889551cb7248d21125fbf60... | 45.866667 | 90 | 0.646802 | mrdcvlsc |
7f83d6e4766ea81b9e559b467aa37682d6ef14dc | 10,242 | cc | C++ | tls/src/params.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 40 | 2015-03-10T07:55:39.000Z | 2021-06-11T10:13:56.000Z | tls/src/params.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 297 | 2015-04-30T10:02:04.000Z | 2022-03-09T13:31:54.000Z | tls/src/params.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 29 | 2015-08-03T10:04:15.000Z | 2021-11-25T12:21:00.000Z | /*
** Copyright 2009-2013,2021 Centreon
**
** 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 agr... | 33.03871 | 80 | 0.647335 | centreon-lab |
7f872e524a56490cc8fea1da694a27bdc9480b4a | 296 | cpp | C++ | main.cpp | RoliSoft/Obfuscation-Tunnel | cbd31a1c80a7bd5b51057e1a976628727fc8987e | [
"BSD-2-Clause"
] | 11 | 2020-09-15T11:59:41.000Z | 2022-02-11T16:49:08.000Z | main.cpp | RoliSoft/Obfuscation-Tunnel | cbd31a1c80a7bd5b51057e1a976628727fc8987e | [
"BSD-2-Clause"
] | 2 | 2021-11-13T12:38:01.000Z | 2021-12-06T01:38:07.000Z | main.cpp | RoliSoft/Obfuscation-Tunnel | cbd31a1c80a7bd5b51057e1a976628727fc8987e | [
"BSD-2-Clause"
] | 2 | 2021-08-12T07:43:16.000Z | 2021-08-23T00:12:20.000Z | #include "factory.cpp"
int main(int argc, char* argv[])
{
signal(SIGINT, sig_handler);
struct session session;
int ret = parse_arguments(argc, argv, &session);
if (ret == EXIT_SUCCESS || ret == EXIT_FAILURE)
{
return ret;
}
return run_session(&session);
}
| 17.411765 | 52 | 0.618243 | RoliSoft |
7f91fcd150dfc74048f2f3e4c806d85457f6bb95 | 50 | hpp | C++ | include/JsonLoader.hpp | 0x0015/CP2DG | ae919b15dc06631171116b927ff46d7d98da4dd9 | [
"MIT"
] | 2 | 2021-10-06T03:11:06.000Z | 2022-01-06T18:53:43.000Z | include/JsonLoader.hpp | 0x0015/CP2DG | ae919b15dc06631171116b927ff46d7d98da4dd9 | [
"MIT"
] | null | null | null | include/JsonLoader.hpp | 0x0015/CP2DG | ae919b15dc06631171116b927ff46d7d98da4dd9 | [
"MIT"
] | null | null | null | #pragma once
#include "JsonLoader/JsonLoader.hpp"
| 16.666667 | 36 | 0.8 | 0x0015 |
7f94c3b7cd19f83bf8b6492a094d92257be28f5e | 718 | cpp | C++ | stable.cpp | okosan/AStar | 867da5417a97cafd620db9016c8b0efb399b139c | [
"MIT"
] | 4 | 2016-11-11T10:50:07.000Z | 2021-04-01T10:06:51.000Z | stable.cpp | okosan/AStar | 867da5417a97cafd620db9016c8b0efb399b139c | [
"MIT"
] | 1 | 2020-02-11T15:47:43.000Z | 2020-02-11T15:47:43.000Z | stable.cpp | okosan/AStar | 867da5417a97cafd620db9016c8b0efb399b139c | [
"MIT"
] | 1 | 2017-10-23T07:24:55.000Z | 2017-10-23T07:24:55.000Z | #include "stable.h"
void xfBeep(int freq, int duration)
{
std::printf ("beeping!!!");
}
bool xfBetween(double val, double val1, double val2)
{
if (val1<val2)
{
if ((val >= val1) && (val <= val2))
return true;
return false;
}
else
{
if ((v... | 17.95 | 57 | 0.448468 | okosan |
7f967881b38f927953ac0ffa7aca6fae3a2413f8 | 663 | cpp | C++ | Programming-Contest/Number Theory/BSGS.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | Programming-Contest/Number Theory/BSGS.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | Programming-Contest/Number Theory/BSGS.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | /*
Shnak's Baby-Step-giant-Step Algorithm
a^x = b (mod m)
return the power x where a , b , m given
*/
#define mod 100000007
ll solve (ll a, ll b, ll m)
{
ll n = (ll) sqrt (m + .0) + 1 , an = 1 , curr ;
rep(i,n) an = (an * a) % m;
map<ll,ll> vals;
curr = an ;
For(i,n){
if ( !vals.count(curr) ) vals[ curr ... | 21.387097 | 76 | 0.523379 | ar-pavel |
7fa8f3fdf2ebb64ccf08c6ec947b368c0a81c2ee | 832 | hpp | C++ | src/util.hpp | triton/cc-wrapper | 4be147e091897efc080691567034127dfafd75b9 | [
"Apache-2.0"
] | 1 | 2018-09-27T05:08:35.000Z | 2018-09-27T05:08:35.000Z | src/util.hpp | triton/cc-wrapper | 4be147e091897efc080691567034127dfafd75b9 | [
"Apache-2.0"
] | null | null | null | src/util.hpp | triton/cc-wrapper | 4be147e091897efc080691567034127dfafd75b9 | [
"Apache-2.0"
] | 3 | 2017-12-24T22:07:05.000Z | 2020-11-26T01:20:16.000Z | #pragma once
#include <algorithm>
#include <nonstd/optional.hpp>
#include <nonstd/span.hpp>
#include <nonstd/string_view.hpp>
namespace cc_wrapper {
namespace util {
namespace detail {
char *append(char *out, nonstd::string_view str);
nonstd::string_view removeTrailing(nonstd::string_view path);
} // namespace deta... | 27.733333 | 75 | 0.725962 | triton |
7fb4ce55e05517579f0901da106a1f7879d017ec | 11,238 | cpp | C++ | thirdparty/cgicc/cgicc/CgiEnvironment.cpp | rockchip-linux/ipcweb-backend | 1885a61babe060c16a84c172712146d4206361df | [
"BSD-3-Clause"
] | 1 | 2021-09-16T02:56:35.000Z | 2021-09-16T02:56:35.000Z | thirdparty/cgicc/cgicc/CgiEnvironment.cpp | rockchip-linux/ipcweb-backend | 1885a61babe060c16a84c172712146d4206361df | [
"BSD-3-Clause"
] | 1 | 2021-07-08T03:34:02.000Z | 2021-07-08T03:34:02.000Z | thirdparty/cgicc/cgicc/CgiEnvironment.cpp | rockchip-linux/ipcweb-backend | 1885a61babe060c16a84c172712146d4206361df | [
"BSD-3-Clause"
] | 2 | 2021-08-24T05:38:18.000Z | 2021-09-16T02:56:39.000Z | /* -*-mode:c++; c-file-style: "gnu";-*- */
/*
* $Id: CgiEnvironment.cpp,v 1.31 2017/06/22 20:26:35 sebdiaz Exp $
*
* Copyright (C) 1996 - 2004 Stephen F. Booth <sbooth@gnu.org>
* 2007 Sebastien DIAZ <sebastien.diaz@gmail.com>
* Part of the GNU cgicc library, http://www.gnu.org/software/cgi... | 30.873626 | 120 | 0.69354 | rockchip-linux |
7fba614ab0a0ff114d06c1bae69dbcb7ad3a6ca3 | 842 | cpp | C++ | AdjMatrix.cpp | RadheTians/Data-Structre | c4ee2d2592ce0eec3bb3f6a582542bb8307220d9 | [
"MIT"
] | 2 | 2019-09-23T15:17:15.000Z | 2019-10-15T04:17:07.000Z | AdjMatrix.cpp | RadheTians/Data-Structre | c4ee2d2592ce0eec3bb3f6a582542bb8307220d9 | [
"MIT"
] | null | null | null | AdjMatrix.cpp | RadheTians/Data-Structre | c4ee2d2592ce0eec3bb3f6a582542bb8307220d9 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
class AdjMatrix
{
private:
int v;
int adj[10][10];
public:
AdjMatrix(int);
~AdjMatrix();
void addPath(int,int);
void print();
};
AdjMatrix::AdjMatrix(int v)
{
this->v = v;
for(int i=0;i<v;i++)
for(int j=0;j<v;j++)
adj[i][... | 16.84 | 42 | 0.508314 | RadheTians |
7fbb94aa88bdb32f50c0a2e4598ac633593fd68b | 5,788 | cpp | C++ | ext/dvdaf3/UnicodeStr.replace.cpp | FilmAf/PHP-Extensions | f00bd2f1f2b0298fc673c03c9be89dbcceb1a3d4 | [
"CC0-1.0"
] | null | null | null | ext/dvdaf3/UnicodeStr.replace.cpp | FilmAf/PHP-Extensions | f00bd2f1f2b0298fc673c03c9be89dbcceb1a3d4 | [
"CC0-1.0"
] | null | null | null | ext/dvdaf3/UnicodeStr.replace.cpp | FilmAf/PHP-Extensions | f00bd2f1f2b0298fc673c03c9be89dbcceb1a3d4 | [
"CC0-1.0"
] | null | null | null | #include "UnicodeStr.h"
/// <summary>
/// Given an item to replace it finds it in the requested translation table and replaces it.
/// </summary>
/// <param name="pTargetPosBegins">Index of the string to be replaced.</param>
/// <param name="pTargetLength">Length of the string to be replaced.</param>
/// <param name="... | 29.989637 | 139 | 0.657222 | FilmAf |
7fbbe8613adf38550a1732c9bc237aeb19ef0e49 | 321 | cpp | C++ | Test/TestMain.cpp | aldonunez/Gemini | 141e060bbc0698370c406046c35f5669eedcce75 | [
"Apache-2.0"
] | null | null | null | Test/TestMain.cpp | aldonunez/Gemini | 141e060bbc0698370c406046c35f5669eedcce75 | [
"Apache-2.0"
] | null | null | null | Test/TestMain.cpp | aldonunez/Gemini | 141e060bbc0698370c406046c35f5669eedcce75 | [
"Apache-2.0"
] | null | null | null | #define CATCH_CONFIG_RUNNER
#include "catch.hpp"
int main( int argc, char* argv[] )
{
#if defined( _WIN32 )
_CrtSetDbgFlag(
_crtDbgFlag
| _CRTDBG_LEAK_CHECK_DF
| _CRTDBG_ALLOC_MEM_DF
);
#endif
int result = Catch::Session().run( argc, argv );
return result;
}
... | 16.894737 | 53 | 0.598131 | aldonunez |
7fbd8fa92bae2899d036ac189f91569770e9621a | 983 | cpp | C++ | examples/SDLAssets/MusicHandler.cpp | cloudncali/GExL | 08010f6a3e46e7c633968930a96ff7e98aec4efb | [
"MIT"
] | null | null | null | examples/SDLAssets/MusicHandler.cpp | cloudncali/GExL | 08010f6a3e46e7c633968930a96ff7e98aec4efb | [
"MIT"
] | null | null | null | examples/SDLAssets/MusicHandler.cpp | cloudncali/GExL | 08010f6a3e46e7c633968930a96ff7e98aec4efb | [
"MIT"
] | null | null | null | #include "MusicHandler.hpp"
#include <SDL_image.h>
#include <iostream>
MusicHandler::MusicHandler() :
GExL::TAssetHandler<Music>()
{
}
MusicHandler::~MusicHandler()
{
}
bool MusicHandler::LoadFromFile(const GExL::typeAssetID theAssetID, Music& theAsset)
{
bool anResult = false;
std::string anFilname = GetFilename... | 22.340909 | 87 | 0.668362 | cloudncali |
7fbfd83f68152f001c8b4b6c38b6cb8ef7ab1457 | 15,886 | hpp | C++ | include/ValkyrieEngine/Component.hpp | VD-15/Valkyrie-Engine | 2287568e24b3ab20dff4feecbbf523c2fbbced65 | [
"MIT"
] | 2 | 2020-06-18T21:32:29.000Z | 2021-01-29T04:16:47.000Z | include/ValkyrieEngine/Component.hpp | VD-15/Valkyrie-Engine | 2287568e24b3ab20dff4feecbbf523c2fbbced65 | [
"MIT"
] | 13 | 2020-02-02T19:00:15.000Z | 2020-02-08T18:32:06.000Z | include/ValkyrieEngine/Component.hpp | VD-15/Valkyrie-Engine | 2287568e24b3ab20dff4feecbbf523c2fbbced65 | [
"MIT"
] | null | null | null | /*!
* \file Component.hpp
* \brief Provides ECS component class
*/
#ifndef VLK_COMPONENT_HPP
#define VLK_COMPONENT_HPP
#include "ValkyrieEngine/AllocChunk.hpp"
#include "ValkyrieEngine/IComponent.hpp"
#include "ValkyrieEngine/Entity.hpp"
#include <stdexcept>
#include <type_traits>
#include <unordered_map>
#includ... | 29.418519 | 172 | 0.616077 | VD-15 |
7fc260b029f5a45c91e06399a37be0e6c61276fd | 471 | cpp | C++ | LiteCppDB/LiteCppDB.Console/Cls.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | 2 | 2019-07-18T06:30:33.000Z | 2020-01-23T17:40:36.000Z | LiteCppDB/LiteCppDB.Console/Cls.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | null | null | null | LiteCppDB/LiteCppDB.Console/Cls.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Cls.h"
namespace LiteCppDB_Console_Commands
{
DataAccess Cls::getAccess() noexcept
{
return DataAccess::None;
}
bool Cls::IsCommand(LiteCppDB::StringScanner& s) noexcept
{
return s.Scan("cls[[:s:]]*").length() > 0;
}
void Cls::Execute(LiteCppDB::LiteEngine engine, LiteCppDB::... | 23.55 | 183 | 0.730361 | pnadan |
7fc53cb9ecb64a97512fb0d4737c9a4b1ebcf413 | 40,194 | cpp | C++ | Test/NativeTestHelpers/TestMarshaledStructs.cpp | blue3k/ATFClone | d1dbadfaaf2bc54cdb7db5c4ccbc5763a4891931 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:34.000Z | 2020-06-20T07:35:34.000Z | Test/NativeTestHelpers/TestMarshaledStructs.cpp | blue3k/ATFClone | d1dbadfaaf2bc54cdb7db5c4ccbc5763a4891931 | [
"Apache-2.0"
] | null | null | null | Test/NativeTestHelpers/TestMarshaledStructs.cpp | blue3k/ATFClone | d1dbadfaaf2bc54cdb7db5c4ccbc5763a4891931 | [
"Apache-2.0"
] | null | null | null | //Copyright ?2014 Sony Computer Entertainment America LLC. See License.txt.
#include "stdafx.h"
// These names conflict with the managed versions.
#undef BROWSEINFO
#undef HDITEM
// Couldn't get this fully working. I'll make the necessary types public instead. --Ron
//// This 'using' is because of an annoying C++/C... | 45.111111 | 131 | 0.662711 | blue3k |
7fd2130e7866bac13b1394b8e297b703e97d82d2 | 71 | hpp | C++ | Source/NieRTracker/defineOffsets.hpp | Asiern/NieR-Tracker | 8b5288989e434395a4f093891ce07092bb61f846 | [
"MIT"
] | null | null | null | Source/NieRTracker/defineOffsets.hpp | Asiern/NieR-Tracker | 8b5288989e434395a4f093891ce07092bb61f846 | [
"MIT"
] | null | null | null | Source/NieRTracker/defineOffsets.hpp | Asiern/NieR-Tracker | 8b5288989e434395a4f093891ce07092bb61f846 | [
"MIT"
] | null | null | null | #define entity 16053E8;
#define X 0x50;
#define Y 0x54;
#define Z 0x58; | 17.75 | 23 | 0.732394 | Asiern |
7fd4327a12b06fdea921b7b2009111b294779254 | 3,217 | hpp | C++ | AL/Collections/Iterator.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | AL/Collections/Iterator.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | AL/Collections/Iterator.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | #pragma once
#include "AL/Common.hpp"
#include <iterator>
namespace AL::Collections
{
template<typename T>
class ForwardIterator
{
public:
typedef T* pointer;
typedef T& reference;
typedef T value_type;
typedef std::ptrdiff_t ... | 24.371212 | 109 | 0.654958 | LeoTHPS |
7fdc3f737f0eac1e01f0a882d5b2f0715f89d3bc | 1,686 | hxx | C++ | opencascade/BinObjMgt_Position.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/BinObjMgt_Position.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/BinObjMgt_Position.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2021 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special ... | 36.652174 | 113 | 0.800712 | mgreminger |
7fdcac4f87871a4b273078a5b58a207f5b6dfa30 | 1,116 | hpp | C++ | src/PathFinder/RecursiveBestFirstAgent.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | src/PathFinder/RecursiveBestFirstAgent.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | src/PathFinder/RecursiveBestFirstAgent.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | #pragma once
#include "PathFinderAgent.hpp"
#include "CollapsibleSearchNode.hpp"
namespace aima::path_finder {
class RecursiveBestFirstAgent final : public PathFinderAgent {
public:
std::unique_ptr<core::Agent> clone() const override;
std::shared_ptr<const SearchNode> getPlan() const override... | 41.333333 | 112 | 0.551075 | Person-93 |
8f0d35006a6914e8c8979ef500b51d4cf5acda4e | 6,717 | cpp | C++ | MachineLearning/Entity101/tests/root_mean_squared_error_test.cpp | CJBuchel/Entity101 | b868ffff4ca99e240a0bf1248d5c5ebb45019426 | [
"MIT"
] | null | null | null | MachineLearning/Entity101/tests/root_mean_squared_error_test.cpp | CJBuchel/Entity101 | b868ffff4ca99e240a0bf1248d5c5ebb45019426 | [
"MIT"
] | null | null | null | MachineLearning/Entity101/tests/root_mean_squared_error_test.cpp | CJBuchel/Entity101 | b868ffff4ca99e240a0bf1248d5c5ebb45019426 | [
"MIT"
] | null | null | null | /****************************************************************************************************************/
/* */
/* OpenNN: Open Neural Networks Library ... | 26.444882 | 122 | 0.589996 | CJBuchel |
8f0e5ea05920cd37f1b82c4ea0589b4d77b478e0 | 317 | hpp | C++ | dep_package/Hicore/hicore/wkb.hpp | KyrieBang/HiVecMap | b4861df4d41dd5299f277882d49540da25894972 | [
"MIT"
] | null | null | null | dep_package/Hicore/hicore/wkb.hpp | KyrieBang/HiVecMap | b4861df4d41dd5299f277882d49540da25894972 | [
"MIT"
] | null | null | null | dep_package/Hicore/hicore/wkb.hpp | KyrieBang/HiVecMap | b4861df4d41dd5299f277882d49540da25894972 | [
"MIT"
] | null | null | null | #ifndef WKB_HPP_
#define WKB_HPP_
#include "core.hpp"
#define POLYGON_TYPE 3
#define LINESTRING_TYPE 2
namespace HiGIS::IO {
Core::GeoType ReadWkb(Core::GeoBuffer &out, uint8_t *source, int type);
int ReadWkbType(uint8_t *source);
Core::GeoType GetGeoType(int code);
} // namespace HiGIS::IO
#endif // WKB_HPP_
| 17.611111 | 71 | 0.747634 | KyrieBang |
8f0e9dd013fce4f3c69f597b357ae41594f5a753 | 9,747 | cc | C++ | lib/render.cc | swwind/aurora | ea8c002d96e9ae4e0f2f73ae6a4692bb531ce46d | [
"MIT"
] | null | null | null | lib/render.cc | swwind/aurora | ea8c002d96e9ae4e0f2f73ae6a4692bb531ce46d | [
"MIT"
] | null | null | null | lib/render.cc | swwind/aurora | ea8c002d96e9ae4e0f2f73ae6a4692bb531ce46d | [
"MIT"
] | null | null | null | #include "render.h"
SDL_Window* gWindow = NULL;
SDL_Renderer* gRenderer = NULL;
std::map<int, SDL_Texture*> textureMap;
std::map<int, TTF_Font*> fontMap;
std::map<int, Mix_Music*> musicMap;
std::map<int, Mix_Chunk*> soundMap;
int tcnt = 0, fcnt = 0, mcnt = 0, scnt = 0;
std::vector<Napi::ThreadSafeFunction>
keyEvent... | 25.186047 | 105 | 0.674156 | swwind |
8f108241458a4ad128cca62cbbac1b351372bafa | 2,215 | hpp | C++ | tests/phmap/tracked.hpp | phprus/gtl | f80aefde2b3b1b57c0cbf467f6897561e2f889ad | [
"Apache-2.0"
] | 3 | 2022-03-09T05:56:37.000Z | 2022-03-29T15:32:53.000Z | tests/phmap/tracked.hpp | phprus/gtl | f80aefde2b3b1b57c0cbf467f6897561e2f889ad | [
"Apache-2.0"
] | 6 | 2022-03-09T18:46:55.000Z | 2022-03-29T12:57:26.000Z | tests/phmap/tracked.hpp | phprus/gtl | f80aefde2b3b1b57c0cbf467f6897561e2f889ad | [
"Apache-2.0"
] | 1 | 2022-03-09T05:56:39.000Z | 2022-03-09T05:56:39.000Z | // Copyright 2018 The Abseil 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 28.037975 | 79 | 0.679458 | phprus |
8f146a6baded3606ecf981d6a0093b49d85f7dd5 | 1,221 | cpp | C++ | reporting/performance/logsumexp_performance.cpp | grlee77/math | e8c40e309cc32d43fbe42c49d9ec7da7cdb79418 | [
"BSL-1.0"
] | null | null | null | reporting/performance/logsumexp_performance.cpp | grlee77/math | e8c40e309cc32d43fbe42c49d9ec7da7cdb79418 | [
"BSL-1.0"
] | null | null | null | reporting/performance/logsumexp_performance.cpp | grlee77/math | e8c40e309cc32d43fbe42c49d9ec7da7cdb79418 | [
"BSL-1.0"
] | null | null | null | // (C) Copyright Matt Borland 2022.
// Use, modification and distribution are subject to 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 <vector>
#include <benchmark/benchmark.h>
#include <boost/math/special_functions/l... | 37 | 128 | 0.732187 | grlee77 |
8f15eeb33f2d1cdf88314c41d31f9f5c75497fdc | 1,933 | cpp | C++ | IcarusDetector/Behaviors/SendingCommand.cpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | 1 | 2021-10-05T03:43:57.000Z | 2021-10-05T03:43:57.000Z | IcarusDetector/Behaviors/SendingCommand.cpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | null | null | null | IcarusDetector/Behaviors/SendingCommand.cpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | null | null | null | #include "SendingCommand.hpp"
#include <sw/redis++/redis++.h>
#include "../Modules/GeneralMessageTranslator.hpp"
#include "TurretCommand.pb.h"
namespace Icarus
{
using namespace Gaia::BehaviorTree;
void SendingCommand::OnInitialize()
{
InitializeFacilities();
auto connection = GetBlackboar... | 35.796296 | 96 | 0.638386 | RoboPioneers |
8f1703db107c1a8ca04f23a1c0f80e2877217378 | 1,305 | hpp | C++ | experimental/Pomdog.Experimental/Actions/ScaleToAction.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Actions/ScaleToAction.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Actions/ScaleToAction.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "detail/TemporalAction.hpp"
#include "Pomdog.Experimental/Gameplay/Entity.hpp"
#include "Pomdog.Experimental/Gameplay2D/Transform.hpp"
#include "Pomdog/Math/Vector3.hpp"
#include "Pomdog/Utility/Assert.hpp"
namespace Pomdog... | 24.166667 | 81 | 0.695785 | ValtoForks |
8f1cae6fa2350fbfcbdff334e819bdd69797e002 | 9,227 | cpp | C++ | bootstrap_semantic.cpp | marionette-of-u/kp19pp | 61a80859774e4c391b9a6e2b2e98387bacb92410 | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2015-12-16T05:33:11.000Z | 2018-06-06T14:18:31.000Z | bootstrap_semantic.cpp | marionette-of-u/kp19pp | 61a80859774e4c391b9a6e2b2e98387bacb92410 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | bootstrap_semantic.cpp | marionette-of-u/kp19pp | 61a80859774e4c391b9a6e2b2e98387bacb92410 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <unordered_map>
#include <cstdlib>
#include "scanner_lexer.hpp"
#include "scanner.hpp"
#include "exception.hpp"
namespace kp19pp{
namespace scanner{
namespace semantic_action{
typedef scanner_type::token_type to... | 39.431624 | 222 | 0.687873 | marionette-of-u |
8f22289c193a2e7de5bff6bcaf9bd657d9174f5a | 2,882 | cpp | C++ | source/Camera.cpp | planetpratik/Alphonso-Graphics-Engine | d31b46fa5c34862e6e67d07fc99f34f63065929c | [
"MIT"
] | 2 | 2019-09-16T04:44:02.000Z | 2020-03-06T08:24:33.000Z | source/Camera.cpp | planetpratik/Alphonso-Graphics-Engine | d31b46fa5c34862e6e67d07fc99f34f63065929c | [
"MIT"
] | null | null | null | source/Camera.cpp | planetpratik/Alphonso-Graphics-Engine | d31b46fa5c34862e6e67d07fc99f34f63065929c | [
"MIT"
] | null | null | null | #pragma once
#include "Camera.h"
#define UNREFERENCED_PARAMETER(P) (P)
using namespace glm;
namespace AlphonsoGraphicsEngine
{
const float Camera::DefaultFieldOfView = 45.0f;
const float Camera::DefaultNearPlaneDistance = 0.1f;
const float Camera::DefaultFarPlaneDistance = 10.0f;
Camera::Camera(RendererC& rende... | 20.884058 | 163 | 0.719986 | planetpratik |
8f23fdc865ff8012af8949afdf760c16bd07da0a | 1,131 | cpp | C++ | test/function/scalar/rem_pio2.cpp | TobiasLudwig/boost.simd | c04d0cc56747188ddb9a128ccb5715dd3608dbc1 | [
"BSL-1.0"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | test/function/scalar/rem_pio2.cpp | remymuller/boost.simd | 3caefb7ee707e5f68dae94f8f31f72f34b7bb5de | [
"BSL-1.0"
] | null | null | null | test/function/scalar/rem_pio2.cpp | remymuller/boost.simd | 3caefb7ee707e5f68dae94f8f31f72f34b7bb5de | [
"BSL-1.0"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/*!
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//====================================... | 32.314286 | 100 | 0.585323 | TobiasLudwig |
8f2d2d22e31511a19c9487bc80eae1f977eaefdf | 1,281 | cpp | C++ | src/cppstubs.cpp | erikvanhamme/ecppstm32 | 4f265bf649be0a5d6c0ed333d27a10c21e90166e | [
"Apache-2.0"
] | 1 | 2019-06-25T14:28:51.000Z | 2019-06-25T14:28:51.000Z | src/cppstubs.cpp | erikvanhamme/ecppstm32 | 4f265bf649be0a5d6c0ed333d27a10c21e90166e | [
"Apache-2.0"
] | null | null | null | src/cppstubs.cpp | erikvanhamme/ecppstm32 | 4f265bf649be0a5d6c0ed333d27a10c21e90166e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 Erik Van Hamme
*
* 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 ... | 23.722222 | 75 | 0.674473 | erikvanhamme |
8f33db63665776258e8672f3b69f76bbb5933c38 | 12,342 | cpp | C++ | src/MainUi.cpp | membranesoftware/membrane-medialibraryui | 3e95d0b7991075386e442fec006f2fdc4257746c | [
"BSD-3-Clause"
] | null | null | null | src/MainUi.cpp | membranesoftware/membrane-medialibraryui | 3e95d0b7991075386e442fec006f2fdc4257746c | [
"BSD-3-Clause"
] | null | null | null | src/MainUi.cpp | membranesoftware/membrane-medialibraryui | 3e95d0b7991075386e442fec006f2fdc4257746c | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2018-2021 Membrane Software <author@membranesoftware.com> https://membranesoftware.com
*
* 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... | 32.737401 | 346 | 0.72549 | membranesoftware |
8f39482c56618b2c605d277ce6fc27ad76feb891 | 967 | cpp | C++ | OscillatorDPW.cpp | VSIONHAIRIES/CHEAP-FAT-OPEN | 36862751bd4f872cc510dfb205e9b1103d8cf6b8 | [
"MIT"
] | null | null | null | OscillatorDPW.cpp | VSIONHAIRIES/CHEAP-FAT-OPEN | 36862751bd4f872cc510dfb205e9b1103d8cf6b8 | [
"MIT"
] | null | null | null | OscillatorDPW.cpp | VSIONHAIRIES/CHEAP-FAT-OPEN | 36862751bd4f872cc510dfb205e9b1103d8cf6b8 | [
"MIT"
] | null | null | null | #include "OscillatorDPW.h"
OscillatorDPW::OscillatorDPW(): Oscillator() {
AudioOut = new AudioNodeOutput(this, &_osc);
_acc = 0;
_f0 = 1; // we should not divide by zero!!!!
_fs = (int64_t(48000) << 32); // placeholder until the below works // bitshift up with 32 then divide by 4, is the same as bitshifting up wit... | 31.193548 | 146 | 0.622544 | VSIONHAIRIES |
8f3ab0f31ad5b641201d339bfddc6e3a34898700 | 527 | cpp | C++ | Atomic/AtMem.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 4 | 2019-11-10T21:56:40.000Z | 2021-12-11T20:10:55.000Z | Atomic/AtMem.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | null | null | null | Atomic/AtMem.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 1 | 2019-11-11T08:38:59.000Z | 2019-11-11T08:38:59.000Z | #include "AtIncludes.h"
#include "AtMem.h"
// The below global objects MUST be initialized before code that may call the allocation functions in AtMem.h
#pragma warning (push)
#pragma warning (disable: 4073) // L3: initializers put in library initialization area
#pragma init_seg (lib)
#pragma warning (pop)
... | 21.08 | 110 | 0.690702 | denisbider |
8f3ed7695e438ba20f25549b9020bd0602463033 | 462 | cpp | C++ | solutions/URI_1329 - (2322746) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | solutions/URI_1329 - (2322746) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | solutions/URI_1329 - (2322746) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, const char * argv[])
{
int x, y, n, num;
while(cin >> n && n != 0) {
x = 0;
y = 0;
for(; n > 0; n--){
cin >> num;
if(num == 0)
x++;
else
... | 17.769231 | 81 | 0.32684 | KelwinKomka |
8f422cbdf2c2815681c2c5de887c3acc5548e9e0 | 21,089 | hpp | C++ | src/SDDK/wf_trans.hpp | ckae95/SIRIUS | ecb7edb4f19577c85b0cec82aa6a0d5374ee1f33 | [
"BSD-2-Clause"
] | null | null | null | src/SDDK/wf_trans.hpp | ckae95/SIRIUS | ecb7edb4f19577c85b0cec82aa6a0d5374ee1f33 | [
"BSD-2-Clause"
] | null | null | null | src/SDDK/wf_trans.hpp | ckae95/SIRIUS | ecb7edb4f19577c85b0cec82aa6a0d5374ee1f33 | [
"BSD-2-Clause"
] | null | null | null | /// Linear transformation of the wave-functions.
/** The transformation matrix is expected in the CPU memory. */
template <typename T>
inline void transform(device_t pu__,
int ispn__,
double alpha__,
... | 45.647186 | 158 | 0.437242 | ckae95 |
8f42af672d54dfd800bcc91efc2b0398649334a6 | 5,376 | cpp | C++ | isis/src/base/objs/Gui/GuiCubeParameter.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/src/base/objs/Gui/GuiCubeParameter.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/src/base/objs/Gui/GuiCubeParameter.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | /** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0 ... | 28.748663 | 79 | 0.629836 | kdl222 |
8f46a3de19bd49938a996e2572c3461888f23919 | 972 | cpp | C++ | PAT_A/PAT_A1071.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | 3 | 2019-07-08T05:20:28.000Z | 2021-09-22T10:53:26.000Z | PAT_A/PAT_A1071.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | PAT_A/PAT_A1071.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
string str, res;
int resNum = -1;
unordered_map<string, int> counts;
int main()
{
getline(cin, str);
int j = 0;
for (int i = 0; i < str.size(); i = j)
{
j = i;
string word = "";
while (j < str.size() && ((str[j] >= 'A' && str[j] <= '... | 23.707317 | 140 | 0.388889 | EnhydraGod |
8f47c70b229f8dfc7202775d940b36a75eaa1e51 | 1,737 | cpp | C++ | 10114 - Loansome Car Buyer/10114 - Loansome Car Buyer/main.cpp | anirudha-ani/UVa | 236f8cc2f357fa28abff05861afa45aa3419b6c3 | [
"Apache-2.0"
] | null | null | null | 10114 - Loansome Car Buyer/10114 - Loansome Car Buyer/main.cpp | anirudha-ani/UVa | 236f8cc2f357fa28abff05861afa45aa3419b6c3 | [
"Apache-2.0"
] | null | null | null | 10114 - Loansome Car Buyer/10114 - Loansome Car Buyer/main.cpp | anirudha-ani/UVa | 236f8cc2f357fa28abff05861afa45aa3419b6c3 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <cstring>
#include <string>
using namespace std;
int main()
{
int loan_duration , number_of_depriciation_recorded;
double down_payment , initial_loan;
while(scanf("%d %lf %lf %d", &loan_duration , & down_payment , &initial_loan , &number_of_depriciation_... | 27.571429 | 117 | 0.52274 | anirudha-ani |
8f47ee56cb447aed652640de5a07933a231d143a | 2,880 | cpp | C++ | src/frameworks/av/media/libmediaextractor/DataSourceBase.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/av/media/libmediaextractor/DataSourceBase.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/av/media/libmediaextractor/DataSourceBase.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 21.984733 | 83 | 0.6 | dAck2cC2 |
8f495e13ad960055227d17a352fe157ded8f32ec | 1,054 | hpp | C++ | libs/core/include/fcppt/container/grid/in_range.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/container/grid/in_range.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/container/grid/in_range.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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_CONTAINER_GRID_IN_RANGE_HPP_INCLUDED
#define FCPPT_CONTAINER_GRID_IN_RANGE_HPP_INCLUD... | 30.114286 | 90 | 0.740038 | freundlich |
8f4cd3f938f0ca768f22c5c7a2c94cc18d16dca7 | 3,844 | hpp | C++ | lib/dmitigr/util/debug.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | lib/dmitigr/util/debug.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | lib/dmitigr/util/debug.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | // -*- C++ -*-
// Copyright (C) Dmitry Igrishin
// For conditions of distribution and use, see files LICENSE.txt or util.hpp
#ifndef DMITIGR_UTIL_DEBUG_HPP
#define DMITIGR_UTIL_DEBUG_HPP
#include "dmitigr/util/macros.hpp"
#include <cstdio>
#include <stdexcept>
namespace dmitigr {
/**
* @brief The debug mode indic... | 31.768595 | 134 | 0.603278 | thevojacek |
8f4ddc3fad2a6a2e1403f1446267976ae2053673 | 1,074 | cpp | C++ | string_playing/string_playing/main.cpp | silentShadow/C-plus-plus | fb0108beb83f69d0c207f75dc29fae8c1657121c | [
"MIT"
] | null | null | null | string_playing/string_playing/main.cpp | silentShadow/C-plus-plus | fb0108beb83f69d0c207f75dc29fae8c1657121c | [
"MIT"
] | null | null | null | string_playing/string_playing/main.cpp | silentShadow/C-plus-plus | fb0108beb83f69d0c207f75dc29fae8c1657121c | [
"MIT"
] | null | null | null | //
// main.cpp
// string_playing
//
// Rev: 1
// Created by Jonathan Reiter on 6/8/16.
// Copyright © 2016 Jonathan Reiter. All rights reserved.
//
#include <iostream>
#include <cstring>
#define STRMAX 300
using namespace std;
int main() {
//char s[20];
char str[STRMAX];
char name[100];
cha... | 19.178571 | 58 | 0.540968 | silentShadow |
8f4e219558db87ad458179e40301a06cdbfaf031 | 2,042 | cpp | C++ | src/anim3/WxStageCanvas.cpp | xzrunner/easyone | c6cc33585a3a5affd44e51938a1bae5b146ab7af | [
"MIT"
] | 1 | 2020-07-07T07:14:01.000Z | 2020-07-07T07:14:01.000Z | src/anim3/WxStageCanvas.cpp | xzrunner/easyone | c6cc33585a3a5affd44e51938a1bae5b146ab7af | [
"MIT"
] | null | null | null | src/anim3/WxStageCanvas.cpp | xzrunner/easyone | c6cc33585a3a5affd44e51938a1bae5b146ab7af | [
"MIT"
] | null | null | null | #include "anim3/WxStageCanvas.h"
#ifdef MODULE_ANIM3
#include "anim3/WxStagePage.h"
#include "frame/WxStagePage.h"
#include <ee0/WxStagePage.h>
#include <ee0/SubjectMgr.h>
#include <model/Model.h>
#include <node0/SceneNode.h>
#include <node3/CompModel.h>
#include <node3/CompModelInst.h>
#include <node3/RenderSyste... | 24.023529 | 81 | 0.670421 | xzrunner |
8f4ec57cf153b478c713eab1e116468a44e006f3 | 5,684 | cpp | C++ | robot_by_robot/primitives.cpp | gfonsecabr/shadoks-robots | 04dc95e05cf7bf04545e72e2bbf4bda524d06594 | [
"MIT"
] | null | null | null | robot_by_robot/primitives.cpp | gfonsecabr/shadoks-robots | 04dc95e05cf7bf04545e72e2bbf4bda524d06594 | [
"MIT"
] | null | null | null | robot_by_robot/primitives.cpp | gfonsecabr/shadoks-robots | 04dc95e05cf7bf04545e72e2bbf4bda524d06594 | [
"MIT"
] | null | null | null | // CG:SHOP 2021 Coordinated Motion Planning - Shadoks Team
//
// Elementary classes
//
/**
* MIT License
*
* Copyright (c) 2020 Guilherme Dias da Fonseca <gfonsecabr@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (... | 23.487603 | 91 | 0.606967 | gfonsecabr |
8f54b3f0e88f892b1d0998ed0640f4c462ecfb4d | 720 | cpp | C++ | src/QtComponents/Traditions/nScrollArea.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/Traditions/nScrollArea.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/Traditions/nScrollArea.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | #include <qtcomponents.h>
N::ScrollArea :: ScrollArea ( QWidget * parent , Plan * p )
: QScrollArea ( parent )
, VirtualGui ( this , p )
{
addIntoWidget ( parent , this ) ;
setAttribute ( Qt::WA_InputMethodEnabled ) ;
addCon... | 28.8 | 60 | 0.418056 | Vladimir-Lin |
8f56348b62a8478749caf7983bf269f7b39702f6 | 11,052 | cpp | C++ | Terminal/Source/Encoding.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 80 | 2020-06-17T15:26:27.000Z | 2022-03-29T11:17:01.000Z | Terminal/Source/Encoding.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 11 | 2020-07-19T15:22:06.000Z | 2022-03-31T03:33:13.000Z | Terminal/Source/Encoding.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 18 | 2020-09-16T01:29:46.000Z | 2022-03-27T18:48:09.000Z | /*
* BearLibTerminal
* Copyright (C) 2013-2016 Cfyz
*
* 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, modif... | 26.12766 | 125 | 0.606225 | Gravecat |
8f5e8b1f7cfc7dbdffefa41bb184de9aeea8396a | 596,867 | cpp | C++ | IOSTEST/Classes/Native/Il2CppGenericMethodTable.cpp | 1085069832/OpenBrushVR | acd5c5b4636d81fda5162d4bfc5381e37237f155 | [
"Unlicense",
"MIT"
] | 203 | 2016-09-04T16:36:34.000Z | 2022-03-16T23:55:18.000Z | IOSTEST/Classes/Native/Il2CppGenericMethodTable.cpp | 1085069832/OpenBrushVR | acd5c5b4636d81fda5162d4bfc5381e37237f155 | [
"Unlicense",
"MIT"
] | 5 | 2016-11-28T06:43:07.000Z | 2018-11-09T21:09:25.000Z | IOSTEST/Classes/Native/Il2CppGenericMethodTable.cpp | 1085069832/OpenBrushVR | acd5c5b4636d81fda5162d4bfc5381e37237f155 | [
"Unlicense",
"MIT"
] | 42 | 2016-09-05T04:05:15.000Z | 2021-06-27T12:26:23.000Z | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
extern const Il2CppGenericMethodF... | 108.897464 | 201 | 0.808066 | 1085069832 |
8f5e951daf815f3a8716c97d339f7049012d80b5 | 539 | hpp | C++ | test/util/memory_input_stream.hpp | falk-werner/nv | 7bb2b71de4333466b91b960f1eda822a73c3382e | [
"MIT"
] | null | null | null | test/util/memory_input_stream.hpp | falk-werner/nv | 7bb2b71de4333466b91b960f1eda822a73c3382e | [
"MIT"
] | null | null | null | test/util/memory_input_stream.hpp | falk-werner/nv | 7bb2b71de4333466b91b960f1eda822a73c3382e | [
"MIT"
] | null | null | null | #ifndef NV_MEMORY_INPUT_STREAM_H
#define NV_MEMORY_INPUT_STREAM_H
#include <cstdio>
#include <string>
namespace nv_test
{
class MemoryInputStream
{
MemoryInputStream(MemoryInputStream const & other) = delete;
MemoryInputStream& operator=(MemoryInputStream const & other) = delete;
public:
MemoryInputStrea... | 18.586207 | 75 | 0.716141 | falk-werner |
8f5fffc7826d74675e32c40ee16410fa0e85320e | 6,048 | cpp | C++ | CFD/src/visualization/visualization.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 1 | 2021-09-10T18:19:16.000Z | 2021-09-10T18:19:16.000Z | CFD/src/visualization/visualization.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | null | null | null | CFD/src/visualization/visualization.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 2 | 2020-04-02T06:46:56.000Z | 2021-06-17T16:47:57.000Z | #include "visualization/visualizer.h"
#include "mesh.h"
#include "cfd_components.h"
#include "graphics/assets/model.h"
#include "graphics/assets/assets.h"
#include "graphics/rhi/draw.h"
#include "components/transform.h"
#include "ecs/ecs.h"
#include "core/time.h"
#include "cfd_ids.h"
#include "core/math/vec3.h"
#inclu... | 33.977528 | 110 | 0.597057 | CompilerLuke |
8f635e69b343e7957a85ffd4f6b90dcea184775b | 5,883 | cpp | C++ | src/net/MosquittoClient.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 7 | 2018-06-09T05:55:59.000Z | 2021-01-05T05:19:02.000Z | src/net/MosquittoClient.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 1 | 2019-12-25T10:39:06.000Z | 2020-01-03T08:35:29.000Z | src/net/MosquittoClient.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 11 | 2018-05-10T08:29:05.000Z | 2020-01-22T20:49:32.000Z | #include <Poco/Clock.h>
#include <Poco/Error.h>
#include <Poco/Exception.h>
#include <Poco/Logger.h>
#include <Poco/Thread.h>
#include <Poco/Net/NetException.h>
#include "di/Injectable.h"
#include "net/MosquittoClient.h"
BEEEON_OBJECT_BEGIN(BeeeOn, MosquittoClient)
BEEEON_OBJECT_CASTABLE(StoppableRunnable)
BEEEON_OBJ... | 22.54023 | 92 | 0.739249 | jalowiczor |
8f67903672bfd65e415b15508b4d9550cb5084e1 | 350 | cpp | C++ | map/guides_on_map_delegate.cpp | suke-blog/omim | f3e75dad4fc2f8c2ec6f3b48fe3841084f8831eb | [
"Apache-2.0"
] | null | null | null | map/guides_on_map_delegate.cpp | suke-blog/omim | f3e75dad4fc2f8c2ec6f3b48fe3841084f8831eb | [
"Apache-2.0"
] | null | null | null | map/guides_on_map_delegate.cpp | suke-blog/omim | f3e75dad4fc2f8c2ec6f3b48fe3841084f8831eb | [
"Apache-2.0"
] | null | null | null | #include "map/guides_on_map_delegate.hpp"
GuidesOnMapDelegate::GuidesOnMapDelegate(
std::shared_ptr<CatalogHeadersProvider> const & headersProvider)
: m_headersProvider(headersProvider)
{
}
platform::HttpClient::Headers GuidesOnMapDelegate::GetHeaders()
{
if (!m_headersProvider)
return {};
return m_hea... | 21.875 | 68 | 0.777143 | suke-blog |
8f74912a7ed21631fc610145fa8ddfb2aaf358e5 | 519 | cpp | C++ | uva/713.cpp | larc/competitive_programming | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | 1 | 2019-05-23T19:05:39.000Z | 2019-05-23T19:05:39.000Z | uva/713.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | uva/713.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | // 713 - Adding Reversed Numbers
#include <cstdio>
#include <cstring>
#define N 202
int main()
{
int n, i;
char A[N], B[N], C[N], a;
scanf("%d", &n);
while(n--)
{
memset(A, 0, sizeof(A));
memset(B, 0, sizeof(B));
scanf("%s %s", A, B);
a = 0;
for(i = 0; A[i] || B[i]; ++i)
{
a += A[i] ? A[i] - '... | 12.069767 | 32 | 0.396917 | larc |
8f77127a0ecb91262cc89e9285994acfbc98d5f9 | 891 | cpp | C++ | P4Library/Commands/P4LoginCommand.cpp | sipe9/PerforceAssist | faf91344c6e6b89b883fbfc799c27b1476eb60ed | [
"MIT"
] | null | null | null | P4Library/Commands/P4LoginCommand.cpp | sipe9/PerforceAssist | faf91344c6e6b89b883fbfc799c27b1476eb60ed | [
"MIT"
] | null | null | null | P4Library/Commands/P4LoginCommand.cpp | sipe9/PerforceAssist | faf91344c6e6b89b883fbfc799c27b1476eb60ed | [
"MIT"
] | null | null | null | #include "P4LoginCommand.hpp"
#include "../Utils/StringUtil.hpp"
#include <sstream>
namespace VersionControl
{
P4LoginCommand::P4LoginCommand(const std::string &password, bool globalTicket) :
P4Command("login"),
m_password(password),
m_loginRequired(false),
m_globalTicket(true)
{
}
bool P... | 18.5625 | 88 | 0.637486 | sipe9 |
8f783361cce71e4dd30ff1dd6d0a857a89b53bdc | 623 | hpp | C++ | DonkeyKom/dk/memory.hpp | branw/DonkeyKom | 3a7b90fc5d7ecf74e511e92da2e93baa148cf685 | [
"MIT"
] | 10 | 2018-01-07T09:33:53.000Z | 2021-11-26T03:39:37.000Z | DonkeyKom/dk/memory.hpp | branw/DonkeyKom | 3a7b90fc5d7ecf74e511e92da2e93baa148cf685 | [
"MIT"
] | null | null | null | DonkeyKom/dk/memory.hpp | branw/DonkeyKom | 3a7b90fc5d7ecf74e511e92da2e93baa148cf685 | [
"MIT"
] | 8 | 2018-01-07T09:33:54.000Z | 2019-10-13T15:38:21.000Z | #pragma once
#include <Windows.h>
#include <functional>
namespace dk {
struct memory_manager {
using Callback = std::function<bool(uint64_t, uint8_t *&)>;
memory_manager();
~memory_manager();
uint64_t scan_ranges(char *pool_tag, size_t page_size, Callback page_cb, Callback block_cb);
void map_all_memory(... | 18.323529 | 94 | 0.728732 | branw |
8f824294758884516aa247417f19c241b576e4a4 | 3,981 | hpp | C++ | converter.hpp | YourName0729/B4-S4 | d079849e8d37191938ca18e89cfa5ec33ad9a3a6 | [
"MIT"
] | 1 | 2021-07-10T14:25:25.000Z | 2021-07-10T14:25:25.000Z | converter.hpp | YourName0729/B4-S4 | d079849e8d37191938ca18e89cfa5ec33ad9a3a6 | [
"MIT"
] | null | null | null | converter.hpp | YourName0729/B4-S4 | d079849e8d37191938ca18e89cfa5ec33ad9a3a6 | [
"MIT"
] | null | null | null | #include <vector>
#include <utility>
#include "cnf.hpp"
#include "state.hpp"
class Converter {
public:
Converter(unsigned int h, unsigned int l, unsigned int p) {
height = h + 2, length = l + 2, period = p;
}
CNF& convert() {
cnf.clear();
ruleNeighbor();
ruleWall();
... | 28.640288 | 86 | 0.431299 | YourName0729 |
8f82ce278e9ae7ebef94b522b832d38bbf357cbe | 5,513 | cpp | C++ | Externals/Falcor/Test/Source/DepthStencilStateTest.cpp | guoxx/Playground | bdbef6c7525631eabe37896102d125a03eaec1f3 | [
"MIT"
] | 49 | 2020-11-16T07:50:53.000Z | 2022-03-19T21:54:18.000Z | Test/Source/DepthStencilStateTest.cpp | tfoleyNV/Falcor-old | 2155109af2322f2aa1db2385cde44d1b7507976b | [
"BSD-3-Clause"
] | null | null | null | Test/Source/DepthStencilStateTest.cpp | tfoleyNV/Falcor-old | 2155109af2322f2aa1db2385cde44d1b7507976b | [
"BSD-3-Clause"
] | 5 | 2020-12-15T09:42:17.000Z | 2021-09-11T21:03:52.000Z | /***************************************************************************
# Copyright (c) 2015, NVIDIA CORPORATION. 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 sourc... | 44.459677 | 130 | 0.575186 | guoxx |
8f889094ecc2f0ab9f75afd7f682153560a5591f | 101 | cpp | C++ | test/common/network/FakeUUIDFactory.cpp | Toinouze/Arthos | fc08d20fb1d9dcd539209f00bf1b6ab00d63bad6 | [
"Apache-2.0"
] | null | null | null | test/common/network/FakeUUIDFactory.cpp | Toinouze/Arthos | fc08d20fb1d9dcd539209f00bf1b6ab00d63bad6 | [
"Apache-2.0"
] | null | null | null | test/common/network/FakeUUIDFactory.cpp | Toinouze/Arthos | fc08d20fb1d9dcd539209f00bf1b6ab00d63bad6 | [
"Apache-2.0"
] | null | null | null | #include "FakeUUIDFactory.h"
UUID FakeUUIDFactory::create() {
return std::to_string(++count);
}
| 16.833333 | 35 | 0.70297 | Toinouze |
8f8e159d8afd321d528ac8666bdb57c8dfa181a7 | 2,065 | cpp | C++ | libs/fnd/memory/test/src/unit_test_fnd_memory_uninitialized_default_construct.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/memory/test/src/unit_test_fnd_memory_uninitialized_default_construct.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/memory/test/src/unit_test_fnd_memory_uninitialized_default_construct.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_fnd_memory_uninitialized_default_construct.cpp
*
* @brief uninitialized_default_construct のテスト
*
* @author myoukaku
*/
#include <bksge/fnd/memory/uninitialized_default_construct.hpp>
#include <bksge/fnd/memory/destroy.hpp>
#include <bksge/fnd/iterator/begin.hpp>
#include <bksge/... | 21.28866 | 71 | 0.661985 | myoukaku |
8f8fd8262cc962079538fb912250447c2b8afb31 | 94 | cpp | C++ | src/toolchain/core/IL/ILProgram.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/core/IL/ILProgram.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/core/IL/ILProgram.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | 2 | 2015-03-03T04:36:51.000Z | 2018-10-01T03:04:11.000Z | #include "ILProgram.h"
ILProgram::ILProgram():Scope(NULL)
{
}
ILProgram::~ILProgram()
{
}
| 7.833333 | 34 | 0.659574 | layerzero |
8f92d3bf2d227d21c08a7dcb71791a3e408045fe | 20,943 | cc | C++ | CAPI/CAPI/CAPI/src/proto/Message2Server.pb.cc | BryantSuen/THUAI4 | 88c4ab90c814b781b0af58e8781720cf32699b48 | [
"MIT"
] | 7 | 2021-03-27T14:23:33.000Z | 2022-03-28T11:16:46.000Z | CAPI/CAPI/CAPI/src/proto/Message2Server.pb.cc | BryantSuen/THUAI4 | 88c4ab90c814b781b0af58e8781720cf32699b48 | [
"MIT"
] | 4 | 2021-03-21T10:56:38.000Z | 2021-04-30T15:02:12.000Z | CAPI/CAPI/CAPI/src/proto/Message2Server.pb.cc | BryantSuen/THUAI4 | 88c4ab90c814b781b0af58e8781720cf32699b48 | [
"MIT"
] | 13 | 2021-03-14T08:57:36.000Z | 2021-09-23T01:09:14.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Message2Server.proto
#include "Message2Server.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>... | 40.984344 | 175 | 0.727689 | BryantSuen |
8f93c25a0e62e2b4700ad005f1c9d7b5ec665244 | 3,155 | cpp | C++ | demos/sjtwo/oled/source/main.cpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 6 | 2020-06-20T23:56:42.000Z | 2021-12-18T08:13:54.000Z | demos/sjtwo/oled/source/main.cpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 153 | 2020-06-09T14:49:29.000Z | 2022-01-31T16:39:39.000Z | demos/sjtwo/oled/source/main.cpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 10 | 2020-08-02T00:55:38.000Z | 2022-01-24T23:06:51.000Z | #include "peripherals/lpc40xx/gpio.hpp"
#include "peripherals/lpc40xx/spi.hpp"
#include "devices/displays/oled/ssd1306.hpp"
#include "systems/graphics/graphics.hpp"
#include "utility/log.hpp"
#include "utility/time/time.hpp"
int main()
{
sjsu::LogInfo("Starting OLED Application...");
sjsu::lpc40xx::Spi & ssp1 ... | 30.336538 | 80 | 0.640887 | SarahS16 |
8f95b97568538ab829522cdac3e067c78833076c | 3,076 | cpp | C++ | GUI_LabelValuePair.cpp | TheNewBob/IMS2 | 572dcfd4c3621458f01278713437c2aca526d2e6 | [
"MIT"
] | 2 | 2018-01-28T20:07:52.000Z | 2018-03-01T22:41:39.000Z | GUI_LabelValuePair.cpp | TheNewBob/IMS2 | 572dcfd4c3621458f01278713437c2aca526d2e6 | [
"MIT"
] | 6 | 2017-08-26T10:24:48.000Z | 2018-01-28T13:45:34.000Z | GUI_LabelValuePair.cpp | TheNewBob/IMS2 | 572dcfd4c3621458f01278713437c2aca526d2e6 | [
"MIT"
] | null | null | null | #include "GUI_Common.h"
#include "GUI_LabelValuePair.h"
#include "GUI_LabelValuePairState.h"
GUI_LabelValuePair::GUI_LabelValuePair(string _label, string _value, RECT _rect, int _id, GUI_ElementStyle *_style, GUI_font *_valuefont)
: GUI_BaseElement(_rect, _id, _style), label(_label), valuefont(_valuefont)
{
swapStat... | 27.963636 | 180 | 0.730494 | TheNewBob |
8f9885bbeab0b33acc49b50e04af084143c267e1 | 5,572 | cxx | C++ | painty/renderer/src/TextureBrushDictionary.cxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 15 | 2020-04-22T15:18:28.000Z | 2022-03-24T07:48:28.000Z | painty/renderer/src/TextureBrushDictionary.cxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 25 | 2020-04-18T18:55:50.000Z | 2021-05-30T21:26:39.000Z | painty/renderer/src/TextureBrushDictionary.cxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 2 | 2020-09-16T05:55:54.000Z | 2021-01-09T12:09:43.000Z | /**
* @file TextureBrushDictionary.cxx
* @author Thomas Lindemeier
* @brief
* @date 2020-09-29
*
*/
#include "painty/renderer/TextureBrushDictionary.hxx"
#include <filesystem>
#include <fstream>
#include <iostream>
#include <map>
#include <random>
// #include "opencv2/highgui/highgui.hpp"
#inclu... | 30.448087 | 80 | 0.611271 | lindemeier |
8f9c2b9a39f8f684797d7cfbfa8c3831a742d24d | 3,477 | cpp | C++ | Source/ComponentProgressBar.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 10 | 2018-01-16T16:18:42.000Z | 2019-02-19T19:51:45.000Z | Source/ComponentProgressBar.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 136 | 2018-05-10T08:47:58.000Z | 2018-06-15T09:38:10.000Z | Source/ComponentProgressBar.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 1 | 2018-06-04T17:18:40.000Z | 2018-06-04T17:18:40.000Z | #include "ComponentProgressBar.h"
#include "GameObject.h"
#include "ComponentCanvas.h"
#include "ComponentRectTransform.h"
#include "Texture.h"
#include "Application.h"
#include "ModuleResources.h"
ComponentProgressBar::ComponentProgressBar(GameObject * attached_gameobject)
{
SetActive(true);
SetName("ProgressBar");... | 22.875 | 92 | 0.757262 | Project-3-UPC-DDV-BCN |
8fa2445ef2545e28995155af0ae4b2b25ed6097f | 597 | cc | C++ | crypto/internal.cc | chronos-tachyon/mojo | 8d268932dd927a24a2b5de167d63869484e1433a | [
"MIT"
] | 3 | 2017-04-24T07:00:59.000Z | 2020-04-13T04:53:06.000Z | crypto/internal.cc | chronos-tachyon/mojo | 8d268932dd927a24a2b5de167d63869484e1433a | [
"MIT"
] | 1 | 2017-01-10T04:23:55.000Z | 2017-01-10T04:23:55.000Z | crypto/internal.cc | chronos-tachyon/mojo | 8d268932dd927a24a2b5de167d63869484e1433a | [
"MIT"
] | 1 | 2020-04-13T04:53:07.000Z | 2020-04-13T04:53:07.000Z | // Copyright © 2017 by Donald King <chronos@chronos-tachyon.net>
// Available under the MIT License. See LICENSE for details.
#include "crypto/internal.h"
namespace crypto {
namespace internal {
std::string canonical_name(base::StringPiece in) {
std::string out;
out.reserve(in.size());
for (char ch : in) {
... | 22.961538 | 64 | 0.579564 | chronos-tachyon |
8fa4f728c6b428132adeb9e748c6380f25761b13 | 5,642 | cpp | C++ | src/org/apache/poi/ss/usermodel/DataConsolidateFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/DataConsolidateFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/DataConsolidateFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/usermodel/DataConsolidateFunction.java
#include <org/apache/poi/ss/usermodel/DataConsolidateFunction.hpp>
#include <java/io/Serializable.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/Comparable.hpp>
#include <java/lang/Enum.hpp>
#include <java/lang/... | 41.485294 | 197 | 0.706487 | pebble2015 |
8fa68f10b64065a1e43f7291036da4b7943b8745 | 3,005 | cpp | C++ | IotHttpServer/tests/TestUriParser.cpp | saarbastler/IotHttpServer | f55896950510e7a6403d19ce2f425adae4761b2d | [
"BSD-2-Clause"
] | 1 | 2018-08-26T11:37:31.000Z | 2018-08-26T11:37:31.000Z | IotHttpServer/tests/TestUriParser.cpp | saarbastler/IotHttpServer | f55896950510e7a6403d19ce2f425adae4761b2d | [
"BSD-2-Clause"
] | null | null | null | IotHttpServer/tests/TestUriParser.cpp | saarbastler/IotHttpServer | f55896950510e7a6403d19ce2f425adae4761b2d | [
"BSD-2-Clause"
] | null | null | null | #ifdef IOT_HTTP_SERVER_TESTS
#include <iostream>
#include "../UriParser.h"
//#define BOOST_TEST_MODULE UriParserTest
#include <boost/test/unit_test.hpp>
using namespace saba::web;
BOOST_AUTO_TEST_CASE(UriParserTest_path1)
{
UriParser uriParser("/");
BOOST_CHECK_EQUAL(uriParser.getPath(), "/");
... | 28.349057 | 85 | 0.692512 | saarbastler |
8fa829cf09caf4185924822def95ead5d454d5d3 | 5,300 | cpp | C++ | common/Util.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 272 | 2019-06-27T12:21:49.000Z | 2022-03-23T07:18:33.000Z | common/Util.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 9 | 2019-08-11T13:07:01.000Z | 2022-01-26T12:30:24.000Z | common/Util.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 16 | 2019-09-29T01:41:02.000Z | 2022-03-29T15:51:35.000Z | #include "Util.h"
#include "Enums.h"
#include "../common/Macros.h"
Axis CubeFaceAxisMapping[(uint32_t)CubeFace::COUNT][(uint32_t)NormCoordAxis::COUNT] =
{
{ Axis::Y, Axis::Z, Axis::X },
{ Axis::Y, Axis::Z, Axis::X },
{ Axis::Z, Axis::X, Axis::Y },
{ Axis::Z, Axis::X, Axis::Y },
{ Axis::X, Axis::Y, Axis::Z },
{ A... | 28.648649 | 148 | 0.712264 | enjiushi |
8faccddc8c15d5eca8f759aee1b8a865cb6aade4 | 14,212 | inl | C++ | include/ion/math/matrix.inl | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | include/ion/math/matrix.inl | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | include/ion/math/matrix.inl | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | template<typename T, std::size_t R, std::size_t C>
inline Matrix<T, R, C>::Matrix()
{
for (unsigned int i = 0; i < R; i++)
{
for (unsigned int j = 0; j < C; j++)
{
m[i][j] = (T)((i == j) ? 1 : 0);
}
}
}
template<typename T, std::size_t R, std::size_t C>
inline Matrix<T, ... | 32.822171 | 188 | 0.485787 | dvdbrink |
8fb27bdb97fb335445a8ee19d6b85273db44cc1a | 150 | cpp | C++ | examples/llvm-hello_world/target/branching2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 581 | 2018-06-10T10:37:55.000Z | 2022-03-30T14:56:53.000Z | examples/llvm-hello_world/target/branching2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 172 | 2018-06-13T12:33:26.000Z | 2022-03-26T07:21:41.000Z | examples/llvm-hello_world/target/branching2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 137 | 2018-06-10T10:31:14.000Z | 2022-03-06T11:53:56.000Z | int main(int argc, char **argv) {
int a = 10;
int b = 100;
if (argc - 1) {
a = 20;
} else {
a = 30;
b = 300;
}
return a + b;
} | 13.636364 | 33 | 0.426667 | flix- |
8fb84ea0e291d10742fddeab683b67fcb9cbaef5 | 8,286 | cpp | C++ | SurfaceCtrl/MagicCamera.cpp | Xemuth/SurfaceCtrl | 07167935a0950c22f06fdf2ba2bff7bb3f2dee05 | [
"BSD-2-Clause"
] | 2 | 2020-07-12T21:06:23.000Z | 2021-02-17T11:39:37.000Z | SurfaceCtrl/MagicCamera.cpp | Xemuth/SurfaceCtrl | 07167935a0950c22f06fdf2ba2bff7bb3f2dee05 | [
"BSD-2-Clause"
] | 4 | 2021-02-17T11:38:45.000Z | 2021-03-20T20:27:49.000Z | SurfaceCtrl/MagicCamera.cpp | Xemuth/SurfaceCtrl | 07167935a0950c22f06fdf2ba2bff7bb3f2dee05 | [
"BSD-2-Clause"
] | null | null | null | #include "MagicCamera.h"
namespace Upp{
glm::mat4 MagicCamera::GetProjectionMatrix()const noexcept{
if(type == CameraType::PERSPECTIVE){
return glm::perspective(glm::radians(GetFOV()),float( ScreenSize.cx / ScreenSize.cy),GetDrawDistanceMin(),GetDrawDisanceMax());//We calculate Projection here since multiple camera ... | 35.715517 | 222 | 0.678132 | Xemuth |
26336d63dd840996ce7ce02b9a6a9e6f278e4d1a | 63,888 | cpp | C++ | src/lib/foundations/globals/numerics.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/foundations/globals/numerics.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/foundations/globals/numerics.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // numerics.cpp
//
// Anton Betten
//
// started: February 11, 2018
#include "foundations.h"
using namespace std;
#define EPSILON 0.01
namespace orbiter {
namespace foundations {
numerics::numerics()
{
}
numerics::~numerics()
{
}
void numerics::vec_print(double *a, int len)
{
int i;
cout << "(";
for... | 19.633682 | 171 | 0.519487 | abetten |
26362cf965b782026e910ea37ae72d445615cf61 | 227 | hpp | C++ | all.hpp | cslauritsen/MyThermostat | a0c888a75c1368c9949e1de8cfc6d75c1d8e735c | [
"Apache-2.0"
] | null | null | null | all.hpp | cslauritsen/MyThermostat | a0c888a75c1368c9949e1de8cfc6d75c1d8e735c | [
"Apache-2.0"
] | null | null | null | all.hpp | cslauritsen/MyThermostat | a0c888a75c1368c9949e1de8cfc6d75c1d8e735c | [
"Apache-2.0"
] | null | null | null | #include "MyThermostat.hpp"
#if defined(__APPLE__) || defined(__linux)
#include <fstream>
#include <iostream>
#include <ostream>
#endif
#if defined(__linux) || defined(ARDUINO)
#include <stdint.h>
#include <string.h>
#endif
| 16.214286 | 42 | 0.726872 | cslauritsen |
263699fa55fc119416ee683d5055f8412dd30d02 | 1,219 | hpp | C++ | D01/ex08/Human.hpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | D01/ex08/Human.hpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | D01/ex08/Human.hpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Human.hpp :+: :+: :+: ... | 39.322581 | 80 | 0.279737 | amoinier |
26392813434506c75d8fc68707a06bcadc556151 | 410 | hh | C++ | src/Zynga/Framework/ShardedDatabase/V3/Test/UserSharded/Config/Mock/Base/NoPassword.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 19 | 2018-04-23T09:30:48.000Z | 2022-03-06T21:35:18.000Z | src/Zynga/Framework/ShardedDatabase/V3/Test/UserSharded/Config/Mock/Base/NoPassword.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 22 | 2017-11-27T23:39:25.000Z | 2019-08-09T08:56:57.000Z | src/Zynga/Framework/ShardedDatabase/V3/Test/UserSharded/Config/Mock/Base/NoPassword.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 28 | 2017-11-16T20:53:56.000Z | 2021-01-04T11:13:17.000Z | <?hh // strict
namespace Zynga\Framework\ShardedDatabase\V3\Test\UserSharded\Config\Mock\Base;
use
Zynga\Framework\ShardedDatabase\V3\Config\Mock\Base as ConfigBase
;
use Zynga\Framework\ShardedDatabase\V3\ConnectionDetails;
class NoPassword extends ConfigBase {
public function shardsInit(): bool {
$this->ad... | 25.625 | 79 | 0.760976 | ssintzz |
2639ce8bd22d52aa9a2ac8021a704d0eae2e64ee | 3,758 | cc | C++ | frontend/lex/numbers.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 10 | 2015-10-28T18:54:41.000Z | 2021-12-29T16:48:31.000Z | frontend/lex/numbers.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 95 | 2020-02-27T22:34:02.000Z | 2022-03-06T19:45:24.000Z | frontend/lex/numbers.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 2 | 2019-02-01T23:16:04.000Z | 2020-02-27T16:06:02.000Z | #include "frontend/lex/numbers.h"
#include <string>
#include <string_view>
#include <variant>
namespace frontend {
namespace {
template <int Base>
int64_t DigitInBase(char c) {
if constexpr (Base == 10) {
return ('0' <= c and c <= '9') ? (c - '0') : -1;
} else if constexpr (Base == 2) {
return ((c | 1) ==... | 29.825397 | 76 | 0.598457 | asoffer |
2649aa1d585ddcda57f5cbb4c1ac6e2a042e75a9 | 4,575 | cpp | C++ | test/PHControlTest.cpp | IDzyre/TankController | 60ccdd6d4023be7a0e0155b508e8b067603bf8b2 | [
"MIT"
] | null | null | null | test/PHControlTest.cpp | IDzyre/TankController | 60ccdd6d4023be7a0e0155b508e8b067603bf8b2 | [
"MIT"
] | null | null | null | test/PHControlTest.cpp | IDzyre/TankController | 60ccdd6d4023be7a0e0155b508e8b067603bf8b2 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <ArduinoUnitTests.h>
#include <ci/ObservableDataStream.h>
#include "Devices/DateTime_TC.h"
#include "MainMenu.h"
#include "PHCalibrationMid.h"
#include "PHControl.h"
#include "TankControllerLib.h"
const uint16_t PIN = 49;
/**
* cycle the control through to a point of being off
*/
void... | 33.888889 | 112 | 0.74623 | IDzyre |
2650d87f48eb1b74a9a280537059de5dc71df5cb | 38 | hpp | C++ | src/boost_fusion_algorithm.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_algorithm.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_algorithm.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/algorithm.hpp>
| 19 | 37 | 0.789474 | miathedev |
26514c2bffae327a7b38b275f04db707c695e211 | 8,401 | cc | C++ | ja2/Build/Editor/EditorMapInfo.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | ja2/Build/Editor/EditorMapInfo.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | ja2/Build/Editor/EditorMapInfo.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | #include "Editor/EditorMapInfo.h"
#include "Editor/EditScreen.h"
#include "Editor/EditSys.h"
#include "Editor/EditorDefines.h"
#include "Editor/EditorItems.h"
#include "Editor/EditorMercs.h"
#include "Editor/EditorTaskbarUtils.h"
#include "Editor/EditorTerrain.h" //for access to TerrainTileDrawMode
#include "Editor/E... | 35.150628 | 100 | 0.717296 | gtrafimenkov |
26550220b122d5d69e5a93bdd574de699eb1315a | 5,812 | cc | C++ | src/operators/test/operator_mini1D.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/operators/test/operator_mini1D.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/operators/test/operator_mini1D.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /*
Operators
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Author: Konstantin Lipnikov (lipnikov@lanl.gov)
*/
#include <cstdlib... | 30.914894 | 98 | 0.582072 | fmyuan |
2657531345a1be7c95f5c8fdf80852b4c7419e44 | 190 | hpp | C++ | include/crucible/PointLight.hpp | pianoman373/crucible | fa03ca471fef56cf2def029a14bcc6a467996dfa | [
"MIT"
] | 2 | 2019-02-17T02:55:38.000Z | 2019-04-19T04:57:39.000Z | include/crucible/PointLight.hpp | pianoman373/crucible | fa03ca471fef56cf2def029a14bcc6a467996dfa | [
"MIT"
] | null | null | null | include/crucible/PointLight.hpp | pianoman373/crucible | fa03ca471fef56cf2def029a14bcc6a467996dfa | [
"MIT"
] | 1 | 2018-12-03T22:39:44.000Z | 2018-12-03T22:39:44.000Z | #pragma once
#include <crucible/Math.hpp>
class PointLight {
public:
vec3 m_position;
vec3 m_color;
float m_radius;
PointLight(vec3 position, vec3 color, float radius);
}; | 15.833333 | 56 | 0.7 | pianoman373 |
26592a5e44863f17480bc4cb343850030f328d0b | 3,361 | cpp | C++ | app/src/main/cpp/UI/Scoreboard/ScoreboardWindow.cpp | ArnisLielturks/Urho3D-Project-Template | 998d12e2470ec8a43ec552a1c2182eecfed63ca1 | [
"MIT"
] | 48 | 2019-01-06T02:17:44.000Z | 2021-09-28T15:10:30.000Z | app/src/main/cpp/UI/Scoreboard/ScoreboardWindow.cpp | urnenfeld/Urho3D-Project-Template | efd45e4edcffb232753010a3ee623d6cf9bc1c26 | [
"MIT"
] | 17 | 2019-01-22T17:48:58.000Z | 2021-04-04T17:52:56.000Z | app/src/main/cpp/UI/Scoreboard/ScoreboardWindow.cpp | ArnisLielturks/Urho3D-Project-Template | 998d12e2470ec8a43ec552a1c2182eecfed63ca1 | [
"MIT"
] | 18 | 2019-02-18T13:55:41.000Z | 2021-04-02T14:28:00.000Z | #include <Urho3D/UI/UI.h>
#include <Urho3D/Resource/ResourceCache.h>
#include <Urho3D/UI/Text.h>
#include <Urho3D/UI/Font.h>
#include "ScoreboardWindow.h"
#include "../../Player/PlayerEvents.h"
#include "../../Globals/GUIDefines.h"
ScoreboardWindow::ScoreboardWindow(Context* context) :
BaseWindow(context)
{
}
Sco... | 31.707547 | 115 | 0.670336 | ArnisLielturks |
265eb7e3d7bb380c5091c946648d17cc17b2acd0 | 17,977 | cpp | C++ | trunk/suicore/src/System/Render/Skia/SkiaDrawContext.cpp | OhmPopy/MPFUI | eac88d66aeb88d342f16866a8d54858afe3b6909 | [
"MIT"
] | 59 | 2017-08-27T13:27:55.000Z | 2022-01-21T13:24:05.000Z | src/suicore/System/Render/Skia/SkiaDrawContext.cpp | BigPig0/MPFUI | 7042e0a5527ab323e16d2106d715db4f8ee93275 | [
"MIT"
] | 5 | 2017-11-26T05:40:23.000Z | 2019-04-02T08:58:21.000Z | src/suicore/System/Render/Skia/SkiaDrawContext.cpp | BigPig0/MPFUI | 7042e0a5527ab323e16d2106d715db4f8ee93275 | [
"MIT"
] | 49 | 2017-08-24T08:00:50.000Z | 2021-11-07T01:24:41.000Z |
#include "skiadrawing.h"
#include <System/Types/Const.h>
#include <System/Types/Structure.h>
#include <System/Graphics/SkiaPaint.h>
#include <System/Interop/System.h>
#include "SkTextOp.h"
#include <Skia/effects/SkGradientShader.h>
#include <Skia/core/SkTypeface.h>
namespace suic
{
SkiaDrawing::SkiaDrawing(Handle ... | 24.659808 | 120 | 0.600156 | OhmPopy |
2662f0342aea17a0c7cd36fc6c8edfda4fcaa9c2 | 2,445 | cpp | C++ | source/example.cpp | Nicola20/programmiersprachen-aufgabenblatt-3 | 3d213c3a5c46cfac04670bd9720334e9fd1fcf61 | [
"MIT"
] | null | null | null | source/example.cpp | Nicola20/programmiersprachen-aufgabenblatt-3 | 3d213c3a5c46cfac04670bd9720334e9fd1fcf61 | [
"MIT"
] | null | null | null | source/example.cpp | Nicola20/programmiersprachen-aufgabenblatt-3 | 3d213c3a5c46cfac04670bd9720334e9fd1fcf61 | [
"MIT"
] | null | null | null | #include "window.hpp"
#include "Circle.hpp"
//#include "Rectangle.hpp"
//#include "Vec2.hpp"
#include <GLFW/glfw3.h>
#include <utility>
#include <cmath>
#include <set>
#include <iostream>
#include <vector>
#include <string>
int main(int argc, char* argv[])
{
Window win{std::make_pair(800,800)};
std::cout<<"P... | 26.010638 | 110 | 0.577096 | Nicola20 |
26671dd7edc3c49d10e07e9e2dbabdb863ebba71 | 637 | hpp | C++ | include/lol/def/LolChatPlayerPreferences.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolChatPlayerPreferences.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolChatPlayerPreferences.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
namespace lol {
struct LolChatPlayerPreferences {
std::string data;
std::string hash;
std::string type;
uint64_t modified;
};
inline void to_json(json& j, const LolChatPlayerPreferences& v) {
j["data"] = v.data;
j["hash"] = v.hash;
j["type"]... | 28.954545 | 69 | 0.599686 | Maufeat |
266a1f110a44dfe36bb5da7c8969135b31ac459b | 2,173 | cpp | C++ | src/certificate/ObjectIdentifier.cpp | LabSEC/libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 22 | 2015-08-26T16:40:59.000Z | 2022-02-22T19:52:55.000Z | src/certificate/ObjectIdentifier.cpp | LabSEC/Libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 14 | 2015-09-01T00:39:22.000Z | 2018-12-17T16:24:28.000Z | src/certificate/ObjectIdentifier.cpp | LabSEC/Libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 22 | 2015-08-31T19:17:37.000Z | 2021-01-04T13:38:35.000Z | #include <libcryptosec/certificate/ObjectIdentifier.h>
ObjectIdentifier::ObjectIdentifier()
{
this->asn1Object = ASN1_OBJECT_new();
// printf("New OID: nid: %d - length: %d\n", this->asn1Object->nid, this->asn1Object->length);
}
ObjectIdentifier::ObjectIdentifier(ASN1_OBJECT *asn1Object)
{
this->asn1Object = asn1Ob... | 20.12037 | 97 | 0.702255 | LabSEC |
266daa49cd3e4f526a836bcde3a66b8eab32b4ae | 12,976 | cpp | C++ | a3d/src/d3d12/a3dDescriptorSetLayout.cpp | ProjectAsura/asura-SDK | e823129856185b023b164415b7aec2de0ba9c338 | [
"MIT"
] | 42 | 2016-11-11T13:27:48.000Z | 2021-07-27T17:53:43.000Z | a3d/src/d3d12/a3dDescriptorSetLayout.cpp | ProjectAsura/asura-SDK | e823129856185b023b164415b7aec2de0ba9c338 | [
"MIT"
] | null | null | null | a3d/src/d3d12/a3dDescriptorSetLayout.cpp | ProjectAsura/asura-SDK | e823129856185b023b164415b7aec2de0ba9c338 | [
"MIT"
] | 2 | 2017-03-26T08:25:29.000Z | 2018-10-24T06:10:29.000Z | //-------------------------------------------------------------------------------------------------
// File : a3dDescriptorSetLayout.cpp
// Desc : Descriptor Set Layout Implementation.
// Copyright(c) Project Asura. All right reserved.
//-----------------------------------------------------------------------------... | 36.655367 | 116 | 0.433955 | ProjectAsura |
266db602595f4fddce7894fe25ad418c77987836 | 9,726 | cpp | C++ | modules/asset/src/scene.cpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | 16 | 2019-12-10T19:44:17.000Z | 2022-01-04T03:16:19.000Z | modules/asset/src/scene.cpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | null | null | null | modules/asset/src/scene.cpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | 3 | 2021-06-04T21:56:55.000Z | 2022-03-03T06:47:56.000Z | #include "glpp/asset/scene.hpp"
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <assimp/Importer.hpp>
namespace glpp::asset {
void traverse_scene_graph(
const aiScene* scene,
const aiNode* node,
glm::mat4 old,
std::vector<mesh_t>& meshes
);
struct light_cast_t {
const aiScene*... | 30.778481 | 123 | 0.707177 | lenamueller |
2681f01f49362550d596e64e01dd9c88d2b11557 | 580 | hpp | C++ | src/sn_Exception/source_location_extend.hpp | Airtnp/SuperNaiveCppLib | 0745aa79dc5060cd0f7025658164374b991c698e | [
"MIT"
] | 4 | 2017-04-01T08:09:09.000Z | 2017-05-20T11:35:58.000Z | src/sn_Exception/source_location_extend.hpp | Airtnp/ACppLib | 0745aa79dc5060cd0f7025658164374b991c698e | [
"MIT"
] | null | null | null | src/sn_Exception/source_location_extend.hpp | Airtnp/ACppLib | 0745aa79dc5060cd0f7025658164374b991c698e | [
"MIT"
] | null | null | null | //
// Created by Airtnp on 10/18/2019.
//
#ifndef ACPPLIB_SOURCE_LOCATION_EXTEND_HPP
#define ACPPLIB_SOURCE_LOCATION_EXTEND_HPP
#include <utility>
namespace sn_Exception {
namespace source_location {
/// For `std::source_location` after variadic template argumentss
template <typename ...Ts>
... | 23.2 | 98 | 0.655172 | Airtnp |
268324cc8e0071ff6f7753ada142d5a8a5006a36 | 1,004 | hpp | C++ | include/Config.hpp | ShimmerFairy/z64fe | e680f009814ee5f625422837a1744ad02b7d8f08 | [
"ClArtistic"
] | 4 | 2016-05-04T07:03:11.000Z | 2022-02-25T18:55:15.000Z | include/Config.hpp | ShimmerFairy/z64fe | e680f009814ee5f625422837a1744ad02b7d8f08 | [
"ClArtistic"
] | null | null | null | include/Config.hpp | ShimmerFairy/z64fe | e680f009814ee5f625422837a1744ad02b7d8f08 | [
"ClArtistic"
] | null | null | null | /** \file Config.hpp
*
* \brief Declares various constant maps and such for rom-specific info. May
* well be in external files someday, but this works for now.
*
*/
#pragma once
#include <map>
#include <string>
namespace Config {
enum class Region {
UNKNOWN,
NTSC,
PAL,
... | 16.733333 | 77 | 0.5249 | ShimmerFairy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.