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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84ba6953e662c2df6b1dc69b48f13189e1e9e719 | 386 | cpp | C++ | source/components/gstreamer++/test/src/main.cpp | renebarto/GStreamerTest | 736a5089b7c0f1e40a9fa60b34b9f6494f535d16 | [
"Apache-2.0"
] | null | null | null | source/components/gstreamer++/test/src/main.cpp | renebarto/GStreamerTest | 736a5089b7c0f1e40a9fa60b34b9f6494f535d16 | [
"Apache-2.0"
] | null | null | null | source/components/gstreamer++/test/src/main.cpp | renebarto/GStreamerTest | 736a5089b7c0f1e40a9fa60b34b9f6494f535d16 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include <cstdio>
#include <gstreamer++/application.h>
static const std::string ApplicationName = "GStreamerTest";
GTEST_API_ int main(int argc, char **argv) {
std::cout << "Running tests for " << ApplicationName << std::endl;
testing::InitGoogleTest(&argc, argv);
int result = RU... | 24.125 | 70 | 0.676166 | renebarto |
84bd7c879bd3ad6a4428f0761549c83b04f85c78 | 1,769 | cpp | C++ | src/Hashing/UniChecksum.cpp | heinhel/H3D-Engine | 5e638683486f9b083aaaf1a433d5eed361adfa79 | [
"MIT"
] | null | null | null | src/Hashing/UniChecksum.cpp | heinhel/H3D-Engine | 5e638683486f9b083aaaf1a433d5eed361adfa79 | [
"MIT"
] | null | null | null | src/Hashing/UniChecksum.cpp | heinhel/H3D-Engine | 5e638683486f9b083aaaf1a433d5eed361adfa79 | [
"MIT"
] | null | null | null | #include "../../H3D/Hashing/UniChecksum.hpp"
#include <algorithm>
#include <fstream>
/////////////////////////////////////////////////////////////////
// Inplementation of UniChecksum
/////////////////////////////////////////////////////////////////
constexpr int MAX_KEY_LENGTH = 24;
constexpr char* START_STRING = "h3d... | 31.035088 | 84 | 0.546637 | heinhel |
84c6df3e8491060d4f9c45166b67394e8d3dc40c | 3,594 | cpp | C++ | src/spdk_wrapper/free_buffer_pool.cpp | hsungyang/poseidonos | 0f523b36ccf0d70726364395ea96ac6ae3b845c3 | [
"BSD-3-Clause"
] | null | null | null | src/spdk_wrapper/free_buffer_pool.cpp | hsungyang/poseidonos | 0f523b36ccf0d70726364395ea96ac6ae3b845c3 | [
"BSD-3-Clause"
] | null | null | null | src/spdk_wrapper/free_buffer_pool.cpp | hsungyang/poseidonos | 0f523b36ccf0d70726364395ea96ac6ae3b845c3 | [
"BSD-3-Clause"
] | null | null | null | /*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics 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 source code must retain th... | 32.972477 | 110 | 0.669449 | hsungyang |
84cb1564eafca8c7d0d30ab948a13fd6cef73273 | 17,522 | cpp | C++ | src/scheduler.cpp | edvardsp/libproxc- | aea543d7de50a26fb424485a9eed458004f57510 | [
"BSL-1.0"
] | 1 | 2022-03-10T16:25:29.000Z | 2022-03-10T16:25:29.000Z | src/scheduler.cpp | edvardsp/libproxc- | aea543d7de50a26fb424485a9eed458004f57510 | [
"BSL-1.0"
] | null | null | null | src/scheduler.cpp | edvardsp/libproxc- | aea543d7de50a26fb424485a9eed458004f57510 | [
"BSL-1.0"
] | null | null | null | // Copyright Oliver Kowalke 2009.
// Copyright Edvard Severin Pettersen 2017.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <algorithm>
#include <atomic>
#include <chrono>
#in... | 29.548061 | 93 | 0.605639 | edvardsp |
84cd6b0b506b30632f321b7f17b2890a33b37f1e | 1,479 | cpp | C++ | Plugins/Redis/PubSub.cpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | Plugins/Redis/PubSub.cpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | Plugins/Redis/PubSub.cpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #include "Redis.hpp"
#include "Internal.hpp"
#include "Services/Config/Config.hpp"
#include "Services/Events/Events.hpp"
#include "Services/Tasks/Tasks.hpp"
#include "API/Globals.hpp"
#include "API/CExoString.hpp"
#include "API/CAppManager.hpp"
#include "API/CServerExoApp.hpp"
#include "API/CVirtualMachine.hpp"
#inc... | 25.947368 | 103 | 0.656525 | acaos |
84d589590667fb7a0db771b02608ce3f15484fec | 756 | cpp | C++ | HDUOJ/1028/generating_function.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2019-07-28T11:26:01.000Z | 2021-06-29T09:50:08.000Z | HDUOJ/1028/generating_function.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | HDUOJ/1028/generating_function.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <string>
#include <iomanip>
#include <climits>
#define SIZE 999
using namespace std;
int c1[SIZE], c2[SIZE];
int main()
{
ios::sync_with_stdio(false);
int n;
while (cin >> n)
{
memset(c1, 0,... | 19.384615 | 58 | 0.420635 | codgician |
84d600a8532b7a74be89c5092b578964fd65fed1 | 342 | cpp | C++ | Manual/P105_33.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | Manual/P105_33.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | Manual/P105_33.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
#include <fstream>
using namespace std;
double myPow(int a, int b){
int p=1;
for(int i=0;i<b;i++)
p=p*a;
return p;
}
int main(){
fstream f("P105_33.in");
int x,y,k,z=0,cif=0;
f>> x;
f >> y;
k=y;
while(k){
z++;
k=k/10;
}
cif=x*myPow(10,z)+y;
cout << cif/myPow(... | 11.4 | 27 | 0.55848 | rlodina99 |
84d63be733cae69bd86d037b3fe039be572d997b | 279 | cpp | C++ | Raven.CppClient/RouteNotFoundException.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-04-24T02:34:53.000Z | 2019-08-01T08:22:26.000Z | Raven.CppClient/RouteNotFoundException.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 2 | 2019-03-21T09:00:02.000Z | 2021-02-28T23:49:26.000Z | Raven.CppClient/RouteNotFoundException.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-03-04T11:58:54.000Z | 2021-03-01T00:25:49.000Z | #include "stdafx.h"
#include "RouteNotFoundException.h"
namespace ravendb::client::exceptions::routing
{
RouteNotFoundException::RouteNotFoundException() = default;
RouteNotFoundException::RouteNotFoundException(const std::string& message)
: RavenException(message)
{}
}
| 23.25 | 75 | 0.78853 | mlawsonca |
84d6cd53e69dce4ac3b6e9eca82e8c9f86fcc73e | 676 | cpp | C++ | HWyuzhuChapter7/Problem7-10.cpp | yzhu5/computational-physics | 40c35aebecd2ebfac81f3d1e9c8de3eb9310895a | [
"MIT"
] | null | null | null | HWyuzhuChapter7/Problem7-10.cpp | yzhu5/computational-physics | 40c35aebecd2ebfac81f3d1e9c8de3eb9310895a | [
"MIT"
] | null | null | null | HWyuzhuChapter7/Problem7-10.cpp | yzhu5/computational-physics | 40c35aebecd2ebfac81f3d1e9c8de3eb9310895a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
typedef double (*TPfun) (double x, double y);
void
calculate (double x, double y, TPfun fun[], unsigned num_of_funs)
{
for (unsigned i = 0; i < num_of_funs; ++i) {
cout << fun[i](x, y) << endl;
}
}
double
add (double x, double y)
{
cout << "add: ";
re... | 14.695652 | 66 | 0.529586 | yzhu5 |
84d6e3620a37a858d2cba73e4ee9ffeddd12d500 | 2,281 | hpp | C++ | modules/core/statistics/include/nt2/statistics/functions/unifcdf.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/statistics/include/nt2/statistics/functions/unifcdf.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/statistics/include/nt2/statistics/functions/unifcdf.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 29.623377 | 172 | 0.622972 | psiha |
84d8974b283285d7ef94c488121bb40f5fc47b45 | 1,056 | cpp | C++ | src/products.cpp | tkuye/AuctionPool | c576feada6132390d81f07966e47d732d50fdbb9 | [
"MIT"
] | null | null | null | src/products.cpp | tkuye/AuctionPool | c576feada6132390d81f07966e47d732d50fdbb9 | [
"MIT"
] | null | null | null | src/products.cpp | tkuye/AuctionPool | c576feada6132390d81f07966e47d732d50fdbb9 | [
"MIT"
] | null | null | null | #include<iostream>
#include "headers/products.h"
#include "headers/User.h"
using namespace std;
Product::Product(User * owner){
this->owner = owner;
}
void Product::changeOwner(User * owner){
this->owner = owner;
}
void Product::changeAuctionPrice(int price){
auctionPrice = price;
}
void Product::setPr... | 17.898305 | 83 | 0.660985 | tkuye |
84dbf6df094c7decee90b95b859afa709112a282 | 717 | cpp | C++ | codeforce6/1027B. Numbers on the Chessboard.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce6/1027B. Numbers on the Chessboard.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce6/1027B. Numbers on the Chessboard.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | /*
Idea:
- Simple math.
*/
#include <bits/stdc++.h>
using namespace std;
long long n, q, x, y, o, e, oo, ee;
int main() {
scanf("%lld %lld", &n, &q);
if(n % 2 == 0)
o = e = n / 2;
else
o = n / 2 + 1, e = n / 2;
while(q-- != 0) {
scanf("%lld %lld", &x, &y);
long long bf = 0;
if((... | 15.586957 | 57 | 0.379358 | khaled-farouk |
84de6ca2297d667cbf287997f1da630d47d17996 | 2,677 | cpp | C++ | tests/log10.cpp | CityOfZion/BigIntegerCpp | 865d2d753814c5c0fc488b2925e35eee2c56a6bb | [
"MIT"
] | 3 | 2021-07-30T18:48:47.000Z | 2021-12-02T10:21:19.000Z | tests/log10.cpp | CityOfZion/BigIntegerCpp | 865d2d753814c5c0fc488b2925e35eee2c56a6bb | [
"MIT"
] | null | null | null | tests/log10.cpp | CityOfZion/BigIntegerCpp | 865d2d753814c5c0fc488b2925e35eee2c56a6bb | [
"MIT"
] | 2 | 2020-10-14T06:11:15.000Z | 2021-11-18T06:46:11.000Z | #include "../include/public/bigintegercpp/BigInteger.h"
#include "gtest/gtest.h"
#include <string>
#include "stack_calc.h"
#include "Random.h"
static void VerifyLogString(std::string opstring) {
StackCalc sc(opstring);
while (sc.DoNextOperation()) {
ASSERT_EQ(sc.snCalc.top().to_string(), sc.myCalc.top(... | 28.784946 | 76 | 0.660067 | CityOfZion |
84e53b1bca320c497c3212c2f9f36d3d63e5d8e3 | 3,891 | cpp | C++ | examples/uidemo/uid_elements.cpp | wedusk101/sig | 56c37286bbf6b37d8a4e1add8f38f4f566f3b7d0 | [
"Apache-2.0"
] | null | null | null | examples/uidemo/uid_elements.cpp | wedusk101/sig | 56c37286bbf6b37d8a4e1add8f38f4f566f3b7d0 | [
"Apache-2.0"
] | null | null | null | examples/uidemo/uid_elements.cpp | wedusk101/sig | 56c37286bbf6b37d8a4e1add8f38f4f566f3b7d0 | [
"Apache-2.0"
] | null | null | null | /*=======================================================================
Copyright (c) 2018-2019 Marcelo Kallmann.
This software is distributed under the Apache License, Version 2.0.
All copies must contain the full copyright notice licence.txt located
at the base folder of the distribution.
===========... | 46.321429 | 110 | 0.549473 | wedusk101 |
84e71436c834fd16e34f48dc7408e748de93e373 | 1,510 | hpp | C++ | PP/fundamental_types.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | 3 | 2019-07-12T23:12:24.000Z | 2019-09-05T07:57:45.000Z | PP/fundamental_types.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | PP/fundamental_types.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | #pragma once
#include <PP/containers/type_tuple.hpp>
namespace PP
{
PP_CIA character_types = type_tuple<char,
signed char,
unsigned char,
wchar_t
#ifdef __cpp_char8_t
,
... | 32.12766 | 73 | 0.55298 | Petkr |
84e8ceb06ab538524e32ef20bb3ca8cead76ba63 | 945 | cpp | C++ | Ejercicios/EjerciciosRelacion1/Ejercicio15.cpp | JArandaIzquierdo/FundamentosDeProgramacion | c7c8e79c880de511c3667796356ffa265b021eb2 | [
"Apache-2.0"
] | null | null | null | Ejercicios/EjerciciosRelacion1/Ejercicio15.cpp | JArandaIzquierdo/FundamentosDeProgramacion | c7c8e79c880de511c3667796356ffa265b021eb2 | [
"Apache-2.0"
] | 13 | 2015-10-20T23:23:36.000Z | 2016-01-28T16:18:01.000Z | Ejercicios/EjerciciosRelacion1/Ejercicio15.cpp | JArandaIzquierdo/FundamentosDeProgramacion | c7c8e79c880de511c3667796356ffa265b021eb2 | [
"Apache-2.0"
] | null | null | null | /* Ejercicio 15.
Pasar unas horas, minutos y segundos dados a su formato correcto.
*/
#include <iostream>
using namespace std;
int main(){
int dias=0, horas=0, minutos=0, segundos=0, horas_ini=0, minutos_ini=0,
segundos_ini=0;
cout<< " Introduzca el numero de horas: ";
cin>>horas_ini;
... | 26.25 | 75 | 0.557672 | JArandaIzquierdo |
84ec8904a744a83e9a0491dd7183130ee7f17e5c | 2,462 | cpp | C++ | UIChatViewPlug/MessageItems/HotLineTipItem.cpp | ChaoCcWang/startalk_pc | 34231ee3a05bf104f7d4cc515c4b336d7ef944bf | [
"MIT"
] | 26 | 2019-11-29T08:06:23.000Z | 2022-02-28T10:11:42.000Z | UIChatViewPlug/MessageItems/HotLineTipItem.cpp | ChaoCcWang/startalk_pc | 34231ee3a05bf104f7d4cc515c4b336d7ef944bf | [
"MIT"
] | 9 | 2019-11-11T05:45:04.000Z | 2021-12-16T04:04:45.000Z | UIChatViewPlug/MessageItems/HotLineTipItem.cpp | ChaoCcWang/startalk_pc | 34231ee3a05bf104f7d4cc515c4b336d7ef944bf | [
"MIT"
] | 21 | 2019-11-11T05:27:57.000Z | 2021-12-10T09:20:39.000Z | //
// Created by cc on 2019/08/29.
//
#include "HotLineTipItem.h"
#include <QHBoxLayout>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include "CustomUi/LinkButton.h"
#include "../ChatViewMainPanel.h"
extern ChatViewMainPanel *g_pMainPanel;
HotLineTipItem::HotLineTipItem(const StNetMessageRes... | 30.775 | 94 | 0.570674 | ChaoCcWang |
84f279571cd9c89963eb13a0f1e88f567f8ce902 | 6,554 | cxx | C++ | src/CardSearchCommand.cxx | vlad-korneev/virgil-cli | 3077f9f8d0c474265a1888cac8dd65a89becff5a | [
"BSD-3-Clause"
] | 1 | 2019-03-28T16:47:29.000Z | 2019-03-28T16:47:29.000Z | src/CardSearchCommand.cxx | vlad-korneev/virgil-cli | 3077f9f8d0c474265a1888cac8dd65a89becff5a | [
"BSD-3-Clause"
] | null | null | null | src/CardSearchCommand.cxx | vlad-korneev/virgil-cli | 3077f9f8d0c474265a1888cac8dd65a89becff5a | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) 2015-2017 Virgil Security Inc.
*
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.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)... | 38.781065 | 116 | 0.697132 | vlad-korneev |
84f38d9ef07e039e16abe3c08f40ce3c9b46f60a | 1,709 | cpp | C++ | examples/google-code-jam/bcurcio/codb.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/bcurcio/codb.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/bcurcio/codb.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
int in(){int r=0,c;for(c=getchar_unlocked();c<=32;c=getchar_unlocked());if(c=='-') return -in();for(;c>32;r=(r<<1)+(r<<3)+c-'0',c=getchar_unlocked());return r;}
double dp[2][3000000];
double adp[2][3000000];
void solve... | 17.802083 | 160 | 0.440609 | rbenic-fer |
84f6412809b9e3b5f33638031951593ef7f43439 | 3,417 | cpp | C++ | dlls/loader.cpp | hammermaps/halflife-op4-updated | 2463ad7e5446149eb67a8cea531a46e88a8368db | [
"Unlicense"
] | null | null | null | dlls/loader.cpp | hammermaps/halflife-op4-updated | 2463ad7e5446149eb67a8cea531a46e88a8368db | [
"Unlicense"
] | null | null | null | dlls/loader.cpp | hammermaps/halflife-op4-updated | 2463ad7e5446149eb67a8cea531a46e88a8368db | [
"Unlicense"
] | null | null | null | /***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* This source code contains proprietary and confidential information of
* Valve LLC ... | 22.480263 | 120 | 0.731051 | hammermaps |
84f9f75476a8b09b781649adc9f46cbfdfe20e90 | 831 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/AI/PatrolCommand.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/AI/PatrolCommand.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/AI/PatrolCommand.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/AI/MoveCommand.hpp>
namespace RED4ext
{
namespace AI {... | 26.806452 | 65 | 0.741276 | jackhumbert |
ebc9df9f5f584523ad4b9b2ec6c6c2fc3ff93c4a | 2,285 | cpp | C++ | game/source/TankFactory.cpp | kermado/Total-Resistance | debaf40ba3be6590a70c9922e1d1a5e075f4ede3 | [
"MIT"
] | 3 | 2015-04-25T22:57:58.000Z | 2019-11-05T18:36:31.000Z | game/source/TankFactory.cpp | kermado/Total-Resistance | debaf40ba3be6590a70c9922e1d1a5e075f4ede3 | [
"MIT"
] | 1 | 2016-06-23T15:22:41.000Z | 2016-06-23T15:22:41.000Z | game/source/TankFactory.cpp | kermado/Total-Resistance | debaf40ba3be6590a70c9922e1d1a5e075f4ede3 | [
"MIT"
] | null | null | null | #include "TankFactory.hpp"
#include <glm/glm.hpp>
#include <Engine/Attribute/Transform.hpp>
#include <Engine/Attribute/ShaderProgram.hpp>
#include <Engine/Attribute/Model.hpp>
#include <Engine/Attribute/BoundingSphere.hpp>
#include "Behaviour/NavigateToCell.hpp"
#include "Attribute/Tags.hpp"
#include "Attribute/Heal... | 34.621212 | 127 | 0.76674 | kermado |
ebcbffcbca136283d3aaf3f1a06d82c026edb9f7 | 18,535 | hpp | C++ | include/blmc_drivers/devices/motor_board.hpp | andreadelprete/blmc_drivers | 53f3edce1d376432d77ea2af3746f037e2db27d9 | [
"BSD-3-Clause"
] | null | null | null | include/blmc_drivers/devices/motor_board.hpp | andreadelprete/blmc_drivers | 53f3edce1d376432d77ea2af3746f037e2db27d9 | [
"BSD-3-Clause"
] | null | null | null | include/blmc_drivers/devices/motor_board.hpp | andreadelprete/blmc_drivers | 53f3edce1d376432d77ea2af3746f037e2db27d9 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file motor_board.hpp
* @license License BSD-3-Clause
* @copyright Copyright (c) 2019, New York University and Max Planck Gesellschaft.
* @date 2019-07-11
*/
#pragma once
#include <memory>
#include <string>
#include <real_time_tools/timer.hpp>
#include <real_time_tools/thread.hpp>
#include <time_series/ti... | 25.321038 | 82 | 0.579552 | andreadelprete |
ebd0f26eeac451b4b537fbb6bd4c5b2210334444 | 774 | hpp | C++ | library/ATF/_RETURNPOST_DB_BASEInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_RETURNPOST_DB_BASEInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_RETURNPOST_DB_BASEInfo.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>
#include <_RETURNPOST_DB_BASE.hpp>
START_ATF_NAMESPACE
namespace Info
{
using _RETURNPOST_DB_BASEInit2_ptr = void (WINAPIV*)(struct _RETURNPOST_DB_BASE*... | 43 | 161 | 0.77907 | lemkova |
ebd16f253187b2d06d069c11ed8db8c30b81bd23 | 2,815 | hpp | C++ | include/crocoddyl/multibody/costs/frame-velocity.hpp | jcarpent/crocoddyl | 155999999f1fbd0c5760875584c540e2bc13645b | [
"BSD-3-Clause"
] | 1 | 2019-12-21T12:11:15.000Z | 2019-12-21T12:11:15.000Z | include/crocoddyl/multibody/costs/frame-velocity.hpp | boyali/crocoddyl | 155999999f1fbd0c5760875584c540e2bc13645b | [
"BSD-3-Clause"
] | null | null | null | include/crocoddyl/multibody/costs/frame-velocity.hpp | boyali/crocoddyl | 155999999f1fbd0c5760875584c540e2bc13645b | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2018-2019, LAAS-CNRS
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#... | 40.797101 | 118 | 0.687389 | jcarpent |
ebd176025ccbfe2c832c4f4cdf147c8ef2f11d84 | 884 | cpp | C++ | anno/DeleteLabelFileModelCommand.cpp | urobots-io/anno | 8e240185e6fc0908687b15a39c892814a6bddee6 | [
"MIT"
] | 9 | 2020-07-17T05:28:52.000Z | 2022-03-03T18:26:12.000Z | anno/DeleteLabelFileModelCommand.cpp | urobots-io/anno | 8e240185e6fc0908687b15a39c892814a6bddee6 | [
"MIT"
] | null | null | null | anno/DeleteLabelFileModelCommand.cpp | urobots-io/anno | 8e240185e6fc0908687b15a39c892814a6bddee6 | [
"MIT"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
//
// Anno Labeling Tool
// 2020-2021 (c) urobots GmbH, https://urobots.io
#include "DeleteLabelFileModelCommand.h"
DeleteLabelFileModelCommand::Delete... | 29.466667 | 103 | 0.671946 | urobots-io |
ebd209ce0435992cee44f799ad53fedec0422432 | 3,176 | hpp | C++ | experiments/include/utils.hpp | TSPoulsen/puffinn | c4738dc7e59d55a46f0c1ff5d33e35c57134581b | [
"MIT"
] | null | null | null | experiments/include/utils.hpp | TSPoulsen/puffinn | c4738dc7e59d55a46f0c1ff5d33e35c57134581b | [
"MIT"
] | null | null | null | experiments/include/utils.hpp | TSPoulsen/puffinn | c4738dc7e59d55a46f0c1ff5d33e35c57134581b | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <iostream>
#include <valarray>
#include <climits>
#include <H5Cpp.h>
#include <string>
#include <chrono>
#include "puffinn.hpp"
// Relative path to use this dataset
#define DEFAULT_HDF5_FILE "data/glove-25-angular.hdf5"
namespace utils {
struct Timer {
using cloc... | 37.364706 | 146 | 0.607997 | TSPoulsen |
ebd2b971330028c0e04183a9ab7ea950c7528c48 | 4,535 | cpp | C++ | sdk/wnd/wndStatus.cpp | darkain/RMX-Automation | b98df45a40c6e5ce8a8770579788274924d9e851 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T20:02:59.000Z | 2020-07-22T20:02:59.000Z | sdk/wnd/wndStatus.cpp | darkain/RMX-Automation | b98df45a40c6e5ce8a8770579788274924d9e851 | [
"BSD-3-Clause"
] | null | null | null | sdk/wnd/wndStatus.cpp | darkain/RMX-Automation | b98df45a40c6e5ce8a8770579788274924d9e851 | [
"BSD-3-Clause"
] | null | null | null | /****************************** RMX SDK ******************************\
* Copyright (c) 2007 Vincent E. Milum Jr., All rights reserved. *
* *
* See license.txt for more information *
* ... | 24.646739 | 91 | 0.576626 | darkain |
ebd393fb4d44e506606727dec3abccbeee03ae53 | 1,508 | cpp | C++ | src/runtime/detail/format.cpp | sarum9in/bunsan_common | 1d113259e2e53de025ba28bd9df485d75f437921 | [
"Apache-2.0"
] | null | null | null | src/runtime/detail/format.cpp | sarum9in/bunsan_common | 1d113259e2e53de025ba28bd9df485d75f437921 | [
"Apache-2.0"
] | null | null | null | src/runtime/detail/format.cpp | sarum9in/bunsan_common | 1d113259e2e53de025ba28bd9df485d75f437921 | [
"Apache-2.0"
] | null | null | null | #include <bunsan/runtime/detail/format.hpp>
#include <bunsan/runtime/demangle.hpp>
#include <iomanip>
namespace bunsan {
namespace runtime {
namespace detail {
void format_fallback(std::ostream &out, void *const addr) {
out << std::showbase << std::hex << addr << '\n';
}
void format_all_fallback(std::ostream &out... | 31.416667 | 80 | 0.603448 | sarum9in |
ebd63f6aa9b1c88ff4c0448bc6b4d292180df2d3 | 525 | cpp | C++ | cses/sorting-searching/sum.cpp | homembaixinho/codeforces | 9394eaf383afedacdfe86ca48609425b14f84bdb | [
"MIT"
] | null | null | null | cses/sorting-searching/sum.cpp | homembaixinho/codeforces | 9394eaf383afedacdfe86ca48609425b14f84bdb | [
"MIT"
] | null | null | null | cses/sorting-searching/sum.cpp | homembaixinho/codeforces | 9394eaf383afedacdfe86ca48609425b14f84bdb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
int main() {
cin.tie(0)->sync_with_stdio(0);
int n, x, k; cin >> n >> x;
vector<ii> a(n);
for (int i = 0; i < n; i++) {
cin >> k;
a[i] = {k, i+1};
}
sort(a.begin(), a.end());
int i = 0, j = a.size()-1;
while (j > i) {
... | 18.103448 | 56 | 0.447619 | homembaixinho |
ebd743ac9b6e84a88477354628b6ab2c903d06a7 | 2,248 | cpp | C++ | scm_core/src/scm/core/io/file_core.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 10 | 2015-09-17T06:01:03.000Z | 2019-10-23T07:10:20.000Z | scm_core/src/scm/core/io/file_core.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 5 | 2015-01-06T14:11:32.000Z | 2016-12-12T10:26:53.000Z | scm_core/src/scm/core/io/file_core.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 15 | 2015-01-29T20:56:13.000Z | 2020-07-02T19:03:20.000Z |
// Copyright (c) 2012 Christopher Lux <christopherlux@gmail.com>
// Distributed under the Modified BSD License, see license.txt.
#include "file_core.h"
namespace scm {
namespace io {
file_core::file_core()
{
reset_values();
}
file_core::~file_core()
{
}
// fixed functionality
file_core::offset_type
file_core:... | 20.071429 | 93 | 0.62589 | Nyran |
ebd87fd6c7c6cd8abf088f6074332d3ca21f562f | 15,183 | cpp | C++ | src/uti_phgrm/TiePHistorical/cInterEp_CrossCorrelation.cpp | micmacIGN/micmac | 558a0d104bc07150b2ff1fe2d5fb952b8f70088d | [
"CECILL-B"
] | 451 | 2016-11-25T09:40:28.000Z | 2022-03-30T04:20:42.000Z | src/uti_phgrm/TiePHistorical/cInterEp_CrossCorrelation.cpp | micmacIGN/micmac | 558a0d104bc07150b2ff1fe2d5fb952b8f70088d | [
"CECILL-B"
] | 143 | 2016-11-25T20:35:57.000Z | 2022-03-01T11:58:02.000Z | src/uti_phgrm/TiePHistorical/cInterEp_CrossCorrelation.cpp | micmacIGN/micmac | 558a0d104bc07150b2ff1fe2d5fb952b8f70088d | [
"CECILL-B"
] | 139 | 2016-12-02T10:26:21.000Z | 2022-03-10T19:40:29.000Z | /*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : Marc Pierrot Deseilligny
Contributors : Gregoire Maillet, ... | 37.581683 | 301 | 0.628598 | micmacIGN |
ebdcfc1726c3b95ffc415999f3cbadffe30a3bf7 | 7,162 | cpp | C++ | source/lx/quat.cpp | zhiayang/sim-thing | 8d9d5163146e2bdde15f4eadefa85453f12fac18 | [
"Apache-2.0"
] | 1 | 2021-02-07T08:40:11.000Z | 2021-02-07T08:40:11.000Z | source/lx/quat.cpp | zhiayang/sim-thing | 8d9d5163146e2bdde15f4eadefa85453f12fac18 | [
"Apache-2.0"
] | null | null | null | source/lx/quat.cpp | zhiayang/sim-thing | 8d9d5163146e2bdde15f4eadefa85453f12fac18 | [
"Apache-2.0"
] | null | null | null | // quat.cpp
// Copyright (c) 2014 - 2016, zhiayang@gmail.com
// Licensed under the Apache License Version 2.0.
#include "lx.h"
#include "lx/quat.h"
#include <tuple>
#include <assert.h>
namespace lx
{
double& quat::operator[] (size_t i)
{
assert(i == 0 || i == 1 || i == 2 || i == 3);
return this->ptr[i];
}
c... | 25.949275 | 122 | 0.531974 | zhiayang |
ebe0bccc14d7d60d993e94df2712c7c2b254afb7 | 14,392 | hpp | C++ | include/boost/nowide/utf8_codecvt.hpp | samd2/nowide | d379e947e631ca3336365670993dae9b4f1e0f5b | [
"BSL-1.0"
] | 1 | 2021-12-22T11:10:19.000Z | 2021-12-22T11:10:19.000Z | include/boost/nowide/utf8_codecvt.hpp | samd2/nowide | d379e947e631ca3336365670993dae9b4f1e0f5b | [
"BSL-1.0"
] | 4 | 2020-12-07T22:56:32.000Z | 2021-07-17T22:13:37.000Z | include/boost/nowide/utf8_codecvt.hpp | samd2/nowide | d379e947e631ca3336365670993dae9b4f1e0f5b | [
"BSL-1.0"
] | 17 | 2018-07-30T12:45:42.000Z | 2022-01-10T11:18:30.000Z | //
// Copyright (c) 2015 Artyom Beilis (Tonkikh)
// Copyright (c) 2020 Alexander Grund
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_NOWIDE_UTF8_CODECVT_HPP_INCLUDED
#define BOOST_NOWIDE_UTF8_C... | 38.175066 | 117 | 0.475056 | samd2 |
ebe5f746b4393207894e2fdbf0c40f451edd0d49 | 2,138 | cpp | C++ | tools/slang-test/unit-test-find-type-by-name.cpp | eleisonling/slang | da0c24774370a733b26c3053d9cd9e1fed56d875 | [
"MIT"
] | 2 | 2019-08-16T13:33:28.000Z | 2020-08-12T21:48:24.000Z | tools/slang-test/unit-test-find-type-by-name.cpp | eleisonling/slang | da0c24774370a733b26c3053d9cd9e1fed56d875 | [
"MIT"
] | null | null | null | tools/slang-test/unit-test-find-type-by-name.cpp | eleisonling/slang | da0c24774370a733b26c3053d9cd9e1fed56d875 | [
"MIT"
] | null | null | null | // unit-test-byte-encode.cpp
#include "../../slang.h"
#include <stdio.h>
#include <stdlib.h>
#include "test-context.h"
using namespace Slang;
static void findTypeByNameTest()
{
const char* testSource =
"struct TestStruct {"
" int member0;"
" Texture2D texture1;"
"};";
au... | 37.508772 | 109 | 0.693171 | eleisonling |
ebe9c9d74105340f71324baa84df461faa4b144c | 1,269 | cpp | C++ | src/bsp/bspparser.cpp | wtrsltnk/goldsrc-maps | e70e52207b70de7fdd8e6e7d7b515a5d7dc1d4d9 | [
"MIT"
] | 4 | 2019-03-13T00:50:43.000Z | 2020-03-24T07:17:14.000Z | src/bsp/bspparser.cpp | wtrsltnk/goldsrc-maps | e70e52207b70de7fdd8e6e7d7b515a5d7dc1d4d9 | [
"MIT"
] | null | null | null | src/bsp/bspparser.cpp | wtrsltnk/goldsrc-maps | e70e52207b70de7fdd8e6e7d7b515a5d7dc1d4d9 | [
"MIT"
] | null | null | null | #include "bspparser.h"
#include "bspscene.h"
#include "bsptypes.h"
BspParser::BspParser(unsigned char *data, int size)
: _data(data), _size(size)
{ }
template <class T>
std::vector<T> loadLump(tBspLump const &lump, unsigned char *data)
{
auto faceData = reinterpret_cast<T const*>(data + lump.offset);
ret... | 34.297297 | 96 | 0.712372 | wtrsltnk |
ebea2de281ea899d3594f8e67b0631e36f38d32f | 9,117 | cpp | C++ | examples/Push Transaction/main.cpp | dexon-foundation-unofficial-mirror/DEXON-Web3E | b486f8eb9756f28d0d458199936d8c80d96bb889 | [
"MIT"
] | 1 | 2019-01-21T07:45:28.000Z | 2019-01-21T07:45:28.000Z | examples/Push Transaction/main.cpp | dexon-foundation-unofficial-mirror/DEXON-Web3E | b486f8eb9756f28d0d458199936d8c80d96bb889 | [
"MIT"
] | null | null | null | examples/Push Transaction/main.cpp | dexon-foundation-unofficial-mirror/DEXON-Web3E | b486f8eb9756f28d0d458199936d8c80d96bb889 | [
"MIT"
] | 1 | 2019-01-21T06:45:15.000Z | 2019-01-21T06:45:15.000Z | #include <WiFi.h>
#include <Web3.h>
#include <Util.h>
#include <Contract.h>
// To get this sample working correctly there is some preparation work you need to do.
// Feel free to skip the majority of these instructions if you're an experienced ETH user - you probably just jump in at stage 6
// If you already ... | 40.52 | 145 | 0.711309 | dexon-foundation-unofficial-mirror |
ebeb5b30060402d5ce7c49ba689f65a46da659d8 | 1,837 | cc | C++ | node_modules/opencv4nodejs/cc/modules/video/BackgroundSubtractorKNN.cc | osman-demirci/digital-guard-app-ipcamera | 397a105d34194e2ce1ab7a31f34d03631a316b44 | [
"Apache-2.0"
] | 1 | 2020-12-01T10:15:31.000Z | 2020-12-01T10:15:31.000Z | node_modules/opencv4nodejs/cc/modules/video/BackgroundSubtractorKNN.cc | osman-demirci/digital-guard-app-ipcamera | 397a105d34194e2ce1ab7a31f34d03631a316b44 | [
"Apache-2.0"
] | null | null | null | node_modules/opencv4nodejs/cc/modules/video/BackgroundSubtractorKNN.cc | osman-demirci/digital-guard-app-ipcamera | 397a105d34194e2ce1ab7a31f34d03631a316b44 | [
"Apache-2.0"
] | null | null | null | #include "BackgroundSubtractorKNN.h"
Nan::Persistent<v8::FunctionTemplate> BackgroundSubtractorKNN::constructor;
NAN_MODULE_INIT(BackgroundSubtractorKNN::Init) {
v8::Local<v8::FunctionTemplate> ctor = Nan::New<v8::FunctionTemplate>(BackgroundSubtractorKNN::New);
v8::Local<v8::ObjectTemplate> instanceTemplate ... | 42.72093 | 111 | 0.772455 | osman-demirci |
ebeb63644fe61b1962ce0702fdb3085645a956ac | 1,575 | cpp | C++ | src/fhx/fhxparser.cpp | FuSoftware/OLECompoundPP | c1b21a8c9afec5f91d79ab9d5344c79d6397bdda | [
"MIT"
] | 1 | 2022-03-30T15:43:56.000Z | 2022-03-30T15:43:56.000Z | src/fhx/fhxparser.cpp | FuSoftware/OLECompoundPP | c1b21a8c9afec5f91d79ab9d5344c79d6397bdda | [
"MIT"
] | null | null | null | src/fhx/fhxparser.cpp | FuSoftware/OLECompoundPP | c1b21a8c9afec5f91d79ab9d5344c79d6397bdda | [
"MIT"
] | null | null | null | #include "fhxparser.h"
#include "fhxitem.h"
#include <regex>
#include <iostream>
const std::string FHX::FHXParser::pattern_items = "(.+)\\s{\\s(.*)}\\s{0,1}";
const std::string FHX::FHXParser::pattern_comments = "\\/\\*([\\S\\s]*?)\\*\\/";
FHX::FHXParser::FHXParser()
{
}
std::vector<FHX::FHXItem*> FHX::FHXParser::... | 22.183099 | 86 | 0.573968 | FuSoftware |
ebf05c2fab06c22ec99e174f76af810d5ee5f165 | 7,454 | cpp | C++ | src/utest/utestContinuity.cpp | spnngl/tsduck | ca411244bf7dfe741466762baf96e16a4a5867cc | [
"BSD-2-Clause"
] | 1 | 2019-04-23T21:16:00.000Z | 2019-04-23T21:16:00.000Z | src/utest/utestContinuity.cpp | spnngl/tsduck | ca411244bf7dfe741466762baf96e16a4a5867cc | [
"BSD-2-Clause"
] | null | null | null | src/utest/utestContinuity.cpp | spnngl/tsduck | ca411244bf7dfe741466762baf96e16a4a5867cc | [
"BSD-2-Clause"
] | null | null | null | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 31.188285 | 96 | 0.594178 | spnngl |
ebf0dc085533a2a73a2c348fdd1a595e2e7f1c9d | 828 | cpp | C++ | src/widgets/TransformWidget.cpp | lorez22/test | ea47c91571a8dfe07162220dfed413b0a14c0074 | [
"OpenSSL",
"BSD-3-Clause"
] | 5 | 2017-10-01T17:32:16.000Z | 2017-10-30T14:43:45.000Z | src/widgets/TransformWidget.cpp | lorez22/test | ea47c91571a8dfe07162220dfed413b0a14c0074 | [
"OpenSSL",
"BSD-3-Clause"
] | 5 | 2017-09-30T14:04:34.000Z | 2017-10-26T10:29:21.000Z | src/widgets/TransformWidget.cpp | stewie42/Rack | 7f16ad96048614d47713c747a7cb3e60ea4d1b42 | [
"OpenSSL",
"BSD-3-Clause"
] | null | null | null | #include "widgets.hpp"
namespace rack {
TransformWidget::TransformWidget() {
identity();
}
void TransformWidget::identity() {
nvgTransformIdentity(transform);
}
void TransformWidget::translate(Vec delta) {
float t[6];
nvgTransformTranslate(t, delta.x, delta.y);
nvgTransformPremultiply(transform, t);
}
void ... | 20.195122 | 102 | 0.730676 | lorez22 |
ebf14a4d5f76c419be7b2c82838c15f8abf74257 | 5,986 | cxx | C++ | 3p/VTK/ThirdParty/vtkm/vtk-m/vtkm/cont/testing/UnitTestStorageBasic.cxx | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | 1 | 2021-10-03T16:47:04.000Z | 2021-10-03T16:47:04.000Z | 3p/VTK/ThirdParty/vtkm/vtk-m/vtkm/cont/testing/UnitTestStorageBasic.cxx | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | null | null | null | 3p/VTK/ThirdParty/vtkm/vtk-m/vtkm/cont/testing/UnitTestStorageBasic.cxx | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | null | null | null | //============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... | 31.177083 | 97 | 0.66856 | Mason-Wmx |
ebf3ca72c7b6e607f7875c7b7b525ec2c3e22654 | 2,453 | cpp | C++ | Legacy/36. Reverse Linked List II/main.cpp | Ceruleanacg/Crack-Interview | 994dc0eee2f576fc543c90b82398dc8d957cdf09 | [
"MIT"
] | 17 | 2018-09-04T15:51:30.000Z | 2021-06-04T08:47:07.000Z | Legacy/36. Reverse Linked List II/main.cpp | Ceruleanacg/Crack-Interview | 994dc0eee2f576fc543c90b82398dc8d957cdf09 | [
"MIT"
] | null | null | null | Legacy/36. Reverse Linked List II/main.cpp | Ceruleanacg/Crack-Interview | 994dc0eee2f576fc543c90b82398dc8d957cdf09 | [
"MIT"
] | 6 | 2018-11-03T09:36:25.000Z | 2020-05-27T17:51:08.000Z | //
// main.cpp
// Immortals
//
// Created by Shuyu on 2018/3/31.
// Copyright © 2018年 Shuyu. All rights reserved.
//
#include <iostream>
class ListNode {
public:
int val;
ListNode *next;
ListNode(int val) {
this->val = val;
this->next = NULL;
}
};
class Solution {
public:
... | 25.552083 | 96 | 0.542601 | Ceruleanacg |
ebf423699b9d1015e699b112ef04591a7bea99e7 | 46,516 | cpp | C++ | Kha/Backends/Kore/khacpp/src/hx/Debugger.cpp | 5Mixer/GGJ20 | a12a14d596ab150e8d96dda5a21defcd176f251f | [
"MIT"
] | null | null | null | Kha/Backends/Kore/khacpp/src/hx/Debugger.cpp | 5Mixer/GGJ20 | a12a14d596ab150e8d96dda5a21defcd176f251f | [
"MIT"
] | null | null | null | Kha/Backends/Kore/khacpp/src/hx/Debugger.cpp | 5Mixer/GGJ20 | a12a14d596ab150e8d96dda5a21defcd176f251f | [
"MIT"
] | null | null | null | #include <hxcpp.h>
#include <list>
#include <map>
#include <vector>
#include <string>
#include <hx/Debug.h>
#include <hx/Thread.h>
#include <hx/OS.h>
#include <hx/QuickVec.h>
// Newer versions of haxe compiler will set these too (or might be null for haxe 3.0)
static const char **__all_files_fullpath = 0;... | 30.622778 | 109 | 0.590592 | 5Mixer |
ebf878a0c5173abab7add5a2e47a967482b321ba | 2,689 | cc | C++ | tests/tuple_utils_test.cc | nsdi19p69/netstar | 8cadc35c0e2ffa064655aa385f8e8ba5900c0e2c | [
"Apache-2.0"
] | 4,071 | 2018-12-13T04:17:38.000Z | 2022-03-30T03:29:35.000Z | xdl/third_party/seastar/tests/tuple_utils_test.cc | laozhuang727/x-deeplearning | 781545783a4e2bbbda48fc64318fb2c6d8bbb3cc | [
"Apache-2.0"
] | 359 | 2018-12-21T01:14:57.000Z | 2022-02-15T07:18:02.000Z | xdl/third_party/seastar/tests/tuple_utils_test.cc | laozhuang727/x-deeplearning | 781545783a4e2bbbda48fc64318fb2c6d8bbb3cc | [
"Apache-2.0"
] | 1,054 | 2018-12-20T09:57:42.000Z | 2022-03-29T07:16:53.000Z | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | 26.89 | 113 | 0.679063 | nsdi19p69 |
ebfca3907c171e2bd73e62a49d5f88a80ab05043 | 12,100 | cc | C++ | gcc-gcc-7_3_0-release/gcc/brig/brigfrontend/brig-function-handler.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/brig/brigfrontend/brig-function-handler.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/brig/brigfrontend/brig-function-handler.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | /* brig-code-entry-handler.cc -- brig function directive handling
Copyright (C) 2016-2017 Free Software Foundation, Inc.
Contributed by Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com>
for General Processor Tech.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify ... | 32.266667 | 80 | 0.699339 | best08618 |
ebfdacd0feab1d24286a112a69898409c932644a | 556 | cpp | C++ | src/Core/PostgreSQL/Utils.cpp | athom/ClickHouse | 4f4cc9d7404fd489a7229633b22b5ea1889bd8c0 | [
"Apache-2.0"
] | 2 | 2021-10-08T05:37:56.000Z | 2021-10-08T05:53:26.000Z | src/Core/PostgreSQL/Utils.cpp | athom/ClickHouse | 4f4cc9d7404fd489a7229633b22b5ea1889bd8c0 | [
"Apache-2.0"
] | 1 | 2021-06-28T15:03:05.000Z | 2021-06-28T15:03:05.000Z | src/Core/PostgreSQL/Utils.cpp | athom/ClickHouse | 4f4cc9d7404fd489a7229633b22b5ea1889bd8c0 | [
"Apache-2.0"
] | 1 | 2021-11-17T16:55:57.000Z | 2021-11-17T16:55:57.000Z | #include "Utils.h"
#if USE_LIBPQXX
#include <IO/Operators.h>
namespace postgres
{
ConnectionInfo formatConnectionString(String dbname, String host, UInt16 port, String user, String password)
{
DB::WriteBufferFromOwnString out;
out << "dbname=" << DB::quote << dbname
<< " host=" << DB::quote << host
... | 22.24 | 108 | 0.593525 | athom |
ebfdd390f98079453945359b2700631347ae99c7 | 27,005 | cxx | C++ | src/jagrgx.cxx | wlxiong/lispe | 37aa3efbffb2845b6fc34c9cf95ef5ce7fd49003 | [
"BSD-3-Clause"
] | null | null | null | src/jagrgx.cxx | wlxiong/lispe | 37aa3efbffb2845b6fc34c9cf95ef5ce7fd49003 | [
"BSD-3-Clause"
] | null | null | null | src/jagrgx.cxx | wlxiong/lispe | 37aa3efbffb2845b6fc34c9cf95ef5ce7fd49003 | [
"BSD-3-Clause"
] | null | null | null | /*
* Tamgu (탐구)
*
* Copyright 2019-present NAVER Corp.
* under BSD 3-clause
*/
/* --- CONTENTS ---
Project : Tamgu (탐구)
Version : See tamgu.cxx for the version number
filename : jagrgx.cxx
Date : 2019/03/25
Purpose : regular expression implementation for find/replace commands
Programmer : C... | 28.042575 | 143 | 0.44003 | wlxiong |
ebffdf3263ca6aa9aedda1eac95388f994c52f35 | 1,011 | cpp | C++ | Test3/Question5/Question5.cpp | ekov1/FMI---Introduction-to-Programming-2020 | d4954d1722fe3e78578fd63f3de6b973ee8289e1 | [
"MIT"
] | null | null | null | Test3/Question5/Question5.cpp | ekov1/FMI---Introduction-to-Programming-2020 | d4954d1722fe3e78578fd63f3de6b973ee8289e1 | [
"MIT"
] | null | null | null | Test3/Question5/Question5.cpp | ekov1/FMI---Introduction-to-Programming-2020 | d4954d1722fe3e78578fd63f3de6b973ee8289e1 | [
"MIT"
] | null | null | null | // Question5.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
int main()
{
int X = 42;
if (X % 2 && X < 100) X = 10;
std::cout << X % 2 << '\n';
if (X < 20) X += 25;
else if (X < 0 || X > 50) X = 15;
else X = 7;
std::cout << X %... | 31.59375 | 135 | 0.62908 | ekov1 |
2301f6f9dd52bb0e4807a4e13ad1b51e7ed55079 | 1,738 | cpp | C++ | 3rdparty/foobar2000/SDK/service.cpp | wyrover/foobar2000-starter | e125868f4e19db1f2e36109d623528f7a6e4aa56 | [
"MIT"
] | 111 | 2016-12-12T16:41:20.000Z | 2021-12-24T19:06:06.000Z | 3rdparty/foobar2000/SDK/service.cpp | wyrover/foobar2000-starter | e125868f4e19db1f2e36109d623528f7a6e4aa56 | [
"MIT"
] | 9 | 2016-12-30T09:58:12.000Z | 2022-01-20T18:21:53.000Z | 3rdparty/foobar2000/SDK/service.cpp | wyrover/foobar2000-starter | e125868f4e19db1f2e36109d623528f7a6e4aa56 | [
"MIT"
] | 13 | 2016-12-12T16:49:35.000Z | 2022-02-08T06:25:15.000Z | #include "foobar2000.h"
#include "component.h"
foobar2000_api * g_foobar2000_api = NULL;
service_class_ref service_factory_base::enum_find_class(const GUID & p_guid)
{
PFC_ASSERT(core_api::are_services_available() && g_foobar2000_api);
return g_foobar2000_api->service_enum_find_class(p_guid);
}
bool service_factor... | 28.966667 | 127 | 0.795167 | wyrover |
23050778367c0c64b2701505e2435295c387feb1 | 9,294 | cpp | C++ | src/Prey/prey_projectilerocketlauncher.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | 2 | 2018-08-30T23:48:22.000Z | 2021-04-07T19:16:18.000Z | src/Prey/prey_projectilerocketlauncher.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | null | null | null | src/Prey/prey_projectilerocketlauncher.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | null | null | null | #include "../idlib/precompiled.h"
#pragma hdrstop
#include "prey_local.h"
/***********************************************************************
hhProjectileRocketLauncher
***********************************************************************/
const idEventDef EV_SpawnModelProxyLocal( "<spawnModelProxyLocal>"... | 28.685185 | 186 | 0.687971 | AMS21 |
23082c38c8db8ffce6c53c6430ccfc2bbb69503f | 2,392 | cpp | C++ | tests/util.cpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 652 | 2022-02-03T19:31:04.000Z | 2022-03-31T17:45:29.000Z | tests/util.cpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 50 | 2022-02-03T23:16:36.000Z | 2022-03-31T19:50:19.000Z | tests/util.cpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 116 | 2022-02-03T19:57:26.000Z | 2022-03-20T17:23:47.000Z | // Copyright (c) 2021 MIT Digital Currency Initiative,
// Federal Reserve Bank of Boston
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "util.hpp"
#include "uhs/transaction/messages.hpp"
#include "u... | 35.701493 | 76 | 0.590301 | EnrikoChavez |
230d694756367c32454e82646acb908971fc145a | 2,073 | cpp | C++ | MetaCPP-CLI/ScraperTool.cpp | mlomb/MetaCPP | f37022541641326adcbe6d1d4f83c9d61f9f436b | [
"Apache-2.0"
] | 40 | 2018-03-26T20:48:47.000Z | 2022-03-08T16:45:02.000Z | MetaCPP-CLI/ScraperTool.cpp | mlomb/MetaCPP | f37022541641326adcbe6d1d4f83c9d61f9f436b | [
"Apache-2.0"
] | 3 | 2020-04-11T03:53:19.000Z | 2020-10-26T23:49:43.000Z | MetaCPP-CLI/ScraperTool.cpp | mlomb/MetaCPP | f37022541641326adcbe6d1d4f83c9d61f9f436b | [
"Apache-2.0"
] | 9 | 2019-06-08T14:31:46.000Z | 2021-02-28T12:37:46.000Z | #include "ScraperTool.hpp"
#include <clang/AST/ASTConsumer.h>
#include <clang/AST/ASTContext.h>
#include <clang/Frontend/CompilerInstance.h>
#include <clang/Frontend/FrontendActions.h>
#include <clang/Tooling/Tooling.h>
#include "ASTScraper.hpp"
using namespace clang;
using namespace clang::tooling;
namespace metac... | 28.013514 | 126 | 0.737578 | mlomb |
2310c62ec3fa06962cf58b81531781121988b927 | 1,932 | cpp | C++ | src/vertex.cpp | bhargav-umd/AGV_Navigation | 96cf832e43d0ab5f600d86509faefc7ded9a7305 | [
"MIT"
] | null | null | null | src/vertex.cpp | bhargav-umd/AGV_Navigation | 96cf832e43d0ab5f600d86509faefc7ded9a7305 | [
"MIT"
] | null | null | null | src/vertex.cpp | bhargav-umd/AGV_Navigation | 96cf832e43d0ab5f600d86509faefc7ded9a7305 | [
"MIT"
] | null | null | null | /* Copyright (C)
* 2018 - Bhargav Dandamudi and Mayank Pathak
*
* MIT License
*
* 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... | 28.835821 | 76 | 0.717391 | bhargav-umd |
231698307e13cc84e7c3aee0280e3f1fcdf997cf | 21,739 | cpp | C++ | 3rdParty/Aria/src/ArP2Arm.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | 3rdParty/Aria/src/ArP2Arm.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | 3rdParty/Aria/src/ArP2Arm.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | /*
Adept MobileRobots Robotics Interface for Applications (ARIA)
Copyright (C) 2004-2005 ActivMedia Robotics LLC
Copyright (C) 2006-2010 MobileRobots Inc.
Copyright (C) 2011-2015 Adept Technology, Inc.
Copyright (C) 2016 Omron Adept Technologies, Inc.
This program is free software; you can redistribute it and/or ... | 27.657761 | 95 | 0.696582 | bellonemauro |
231d595d528eeb67a52aa53f0ae5dd0f012ef85e | 20 | cpp | C++ | GraphicsProject/Camera.cpp | Noaheasley/Bootstrap | fbcf53bffa42fe41233726ba42218568ce0dba60 | [
"MIT"
] | 166 | 2019-04-30T16:19:34.000Z | 2022-03-28T12:36:39.000Z | GraphicsProject/Camera.cpp | Noaheasley/Bootstrap | fbcf53bffa42fe41233726ba42218568ce0dba60 | [
"MIT"
] | 3 | 2019-10-12T05:34:43.000Z | 2021-12-16T22:32:22.000Z | GraphicsProject/Camera.cpp | Noaheasley/Bootstrap | fbcf53bffa42fe41233726ba42218568ce0dba60 | [
"MIT"
] | 20 | 2019-04-30T19:43:27.000Z | 2022-03-03T18:41:25.000Z | #include "Camera.h"
| 10 | 19 | 0.7 | Noaheasley |
231f1843a8596db96f61627df3dc3cb145bd76df | 787 | cpp | C++ | mnit/b.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | mnit/b.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | mnit/b.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// Driver code
int main ()
{
int t;
scanf("%d",&t);
while(t--)
{
priority_queue <int, vector<int>, greater<int> > pq;
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)
{
int a;
scanf("%d",&a);
... | 20.179487 | 62 | 0.435832 | sagar-sam |
232178db104f0a5fcc67ffeea49a587da2fe614a | 12,321 | cpp | C++ | src/sha256.cpp | 503387955/ciyam | 630149b406cad12d9fb8bced502240791335d48c | [
"MIT"
] | 1 | 2021-09-15T12:32:29.000Z | 2021-09-15T12:32:29.000Z | src/sha256.cpp | 503387955/ciyam | 630149b406cad12d9fb8bced502240791335d48c | [
"MIT"
] | null | null | null | src/sha256.cpp | 503387955/ciyam | 630149b406cad12d9fb8bced502240791335d48c | [
"MIT"
] | null | null | null | // Copyright (c) 2012 CIYAM Pty. Ltd. ACN 093 704 539
// Copyright (c) 2012-2021 CIYAM Developers
//
// Distributed under the MIT/X11 software license, please refer to the file license.txt
// in the root project directory or http://www.opensource.org/licenses/mit-license.php.
#ifdef PRECOMPILE_H
# include "precompile... | 26.048626 | 106 | 0.54679 | 503387955 |
2325315f6f1f17ca8cbb889faa1e656ac0dedb72 | 4,505 | hpp | C++ | FDPS-5.0g/src/key.hpp | subarutaro/GPLUM | 89b1dadb08a0c6adcdc48879ddf2b7b0fb02912f | [
"MIT"
] | 2 | 2019-05-23T21:00:41.000Z | 2019-10-03T18:05:20.000Z | FDPS-5.0g/src/key.hpp | subarutaro/GPLUM | 89b1dadb08a0c6adcdc48879ddf2b7b0fb02912f | [
"MIT"
] | null | null | null | FDPS-5.0g/src/key.hpp | subarutaro/GPLUM | 89b1dadb08a0c6adcdc48879ddf2b7b0fb02912f | [
"MIT"
] | 10 | 2018-08-22T00:55:26.000Z | 2022-02-28T23:21:42.000Z | #pragma once
#include<iostream>
#include<iomanip>
#include"vector3.hpp"
#include"ps_defs.hpp"
namespace ParticleSimulator{
/*
MSB is always 0.
next 3bits represent octant index of 8 cells with level 1
*/
#ifdef PARTICLE_SIMULATOR_TWO_DIMENSION
class MortonKey{
private:
enum{
... | 39.173913 | 137 | 0.550721 | subarutaro |
23308a714aa9d7cdf270ae6b4fe4df106cf4211a | 33,500 | cc | C++ | libchecktestdata.cc | austrin/checktestdata | 42edb069627f0a2269ed7e1212aad2667589cde6 | [
"BSD-2-Clause"
] | null | null | null | libchecktestdata.cc | austrin/checktestdata | 42edb069627f0a2269ed7e1212aad2667589cde6 | [
"BSD-2-Clause"
] | null | null | null | libchecktestdata.cc | austrin/checktestdata | 42edb069627f0a2269ed7e1212aad2667589cde6 | [
"BSD-2-Clause"
] | null | null | null | /*
Libchecktestdata -- check testdata according to specification.
It's licensed under the 2-clause BSD license, see the file COPYING.
*/
#define _XOPEN_SOURCE 700
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
#include <map>
#include <set>
#inc... | 25.359576 | 97 | 0.603821 | austrin |
2332dd62d7b4894a90925707329868612103f20e | 13,919 | cpp | C++ | libs/core_reflect/Value.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | 3 | 2019-10-27T22:32:44.000Z | 2020-05-21T04:00:46.000Z | libs/core_reflect/Value.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | libs/core_reflect/Value.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | #include "stdafx.h"
#include "Value.h"
#include "core_math/math_casts.h"
#include "core/macros.h"
#include "rftl/sstream"
#include "rftl/string"
#include "rftl/extension/string_traits.h"
namespace RF::reflect {
///////////////////////////////////////////////////////////////////////////////
namespace details {
tem... | 32.445221 | 115 | 0.670379 | max-delta |
2334d1dfabe4eb30ec344757e1d09d0da2fd528b | 844 | cpp | C++ | algorithms/cpp/Problems 201-300/_287_FindTheDuplicateNumber.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | algorithms/cpp/Problems 201-300/_287_FindTheDuplicateNumber.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | algorithms/cpp/Problems 201-300/_287_FindTheDuplicateNumber.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | /* Source - https://leetcode.com/problems/find-the-duplicate-number/
Author - Shivam Arora
*/
#include <bits/stdc++.h>
using namespace std;
void swap(vector<int>& nums, int i, int j) {
int temp = nums[i];
nums[i] = nums[j];
nums[j] = temp;
}
int findDuplicate(vector<int>& nums) {
int n = nums.size(... | 19.627907 | 68 | 0.490521 | shivamacs |
233809ac4cf56bb32d621b43dbc8925e9d181e57 | 899 | cpp | C++ | cpp/src/FontManager.cpp | rookies/magicmirror | d633d05ec1f156579e369d791fff4ba340acd158 | [
"MIT"
] | null | null | null | cpp/src/FontManager.cpp | rookies/magicmirror | d633d05ec1f156579e369d791fff4ba340acd158 | [
"MIT"
] | null | null | null | cpp/src/FontManager.cpp | rookies/magicmirror | d633d05ec1f156579e369d791fff4ba340acd158 | [
"MIT"
] | null | null | null | #include "FontManager.hpp"
using namespace sf;
using namespace std;
FontManager::~FontManager() {
while (_fonts.size() > 0) {
delete get<1>(_fonts.back());
_fonts.pop_back();
}
}
Font* FontManager::getFont(String name) {
cout << "getFont(" << name.toAnsiString() << ") called." << endl;
/*
* Check if font is ... | 22.475 | 97 | 0.583982 | rookies |
233954e3e79d91ab31d3ea498af4edae42412506 | 18,819 | cpp | C++ | symengine/tests/basic/test_series_generic.cpp | belyaev-mikhail/symengine | 5e93221444fb8b995a8508bb12f10ebc3280a1db | [
"MIT"
] | 1 | 2018-05-10T19:55:36.000Z | 2018-05-10T19:55:36.000Z | symengine/tests/basic/test_series_generic.cpp | belyaev-mikhail/symengine | 5e93221444fb8b995a8508bb12f10ebc3280a1db | [
"MIT"
] | 11 | 2015-07-18T04:13:48.000Z | 2017-06-08T07:05:14.000Z | symengine/tests/basic/test_series_generic.cpp | belyaev-mikhail/symengine | 5e93221444fb8b995a8508bb12f10ebc3280a1db | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include <chrono>
#include <symengine/sets.h>
#include <symengine/series_generic.h>
#include <symengine/symengine_exception.h>
using SymEngine::UExprDict;
using SymEngine::UnivariateSeries;
using SymEngine::univariate_series;
using SymEngine::Symbol;
using SymEngine::symbol;
using SymEngine::Pow;... | 40.1258 | 80 | 0.599554 | belyaev-mikhail |
2339560648d3f6246fa896ea35ea7af5fec49a82 | 8,235 | hh | C++ | src/libmess/multindex.hh | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 9 | 2020-03-03T07:34:35.000Z | 2021-12-08T13:12:16.000Z | src/libmess/multindex.hh | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 1 | 2022-03-23T10:57:25.000Z | 2022-03-31T12:30:44.000Z | src/libmess/multindex.hh | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 9 | 2019-12-18T19:59:13.000Z | 2022-01-31T01:49:43.000Z | /*
Chemical Kinetics and Dynamics Library
Copyright (C) 2008-2013, Yuri Georgievski <ygeorgi@anl.gov>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; e... | 25.416667 | 101 | 0.577292 | dsjense |
234135570ba33348b0c05a091ffa069760e489f8 | 1,939 | hpp | C++ | Amachi_STL/AMI_priority_queue.hpp | AmachiInori/Amachi-STL | fd6c6d82b1392f071c1d4fca8694feb84f8ea1e1 | [
"MIT"
] | null | null | null | Amachi_STL/AMI_priority_queue.hpp | AmachiInori/Amachi-STL | fd6c6d82b1392f071c1d4fca8694feb84f8ea1e1 | [
"MIT"
] | null | null | null | Amachi_STL/AMI_priority_queue.hpp | AmachiInori/Amachi-STL | fd6c6d82b1392f071c1d4fca8694feb84f8ea1e1 | [
"MIT"
] | null | null | null |
/**
* This is a Standard C++ Library header.
* This file is the user oriented part of amachi STL
* Open source by MIT by amachi Inori
* Copyright (C) 2020-2020 Amachi Inori.
*
* Main header file of string
*
**/
# pragma once
# include <initializer_list>
# include "AMI_base/AMI_heap.h"
# include "AMI_deque.hp... | 27.309859 | 101 | 0.66065 | AmachiInori |
23418edbf691bfac0b12f39ae1a8c4e5809c1cae | 2,287 | hpp | C++ | Optimizers/Gradient-Descent/C++/NAdamGD.hpp | dkaramit/OpSDE | c20bfbc17b905408aebcc8e32e6265f32738a285 | [
"MIT"
] | null | null | null | Optimizers/Gradient-Descent/C++/NAdamGD.hpp | dkaramit/OpSDE | c20bfbc17b905408aebcc8e32e6265f32738a285 | [
"MIT"
] | null | null | null | Optimizers/Gradient-Descent/C++/NAdamGD.hpp | dkaramit/OpSDE | c20bfbc17b905408aebcc8e32e6265f32738a285 | [
"MIT"
] | 1 | 2021-12-15T02:03:01.000Z | 2021-12-15T02:03:01.000Z | #ifndef NAdam_GD_class
#define NAdam_GD_class
#include"GradientDescent.hpp"
/*
NAdam Gradient Descent
*/
#include<vector>
#include<cmath>
#define NAdam_GD_Template template<class LD, class lossFunc>
#define NAdam_GD_Namespace NAdamGD<LD,lossFunc>
NAdam_GD_Template
class NAdamGD: public GradientDescent<LD,lossFunc>{... | 21.990385 | 117 | 0.634893 | dkaramit |
23428a080846b8c0c7c561612b9d41d61f7ecf30 | 2,148 | cpp | C++ | Array/Nuts and Bolts Problem/solution.cpp | Amdbase1/DSA-CP | 84979ac7a5db5b53223a459877edd170d62de19a | [
"MIT"
] | null | null | null | Array/Nuts and Bolts Problem/solution.cpp | Amdbase1/DSA-CP | 84979ac7a5db5b53223a459877edd170d62de19a | [
"MIT"
] | null | null | null | Array/Nuts and Bolts Problem/solution.cpp | Amdbase1/DSA-CP | 84979ac7a5db5b53223a459877edd170d62de19a | [
"MIT"
] | 4 | 2021-10-29T22:45:07.000Z | 2021-10-30T14:16:27.000Z | // C++ program to solve nut and bolt
// problem using Quick Sort.
#include <iostream>
using namespace std;
// Method to print the array
void printArray(char arr[])
{
for(int i = 0; i < 6; i++)
{
cout << " " << arr[i];
}
cout << "\n";
}
// Similar to standard partition method.
// Here we pas... | 23.096774 | 50 | 0.497207 | Amdbase1 |
2348b55c354ccdfa83e1a55cda4aef59d33d10eb | 4,100 | cc | C++ | cc-hash-bench/subprojects/abseil-cpp-20211102.0/absl/random/internal/randen_hwaes_test.cc | bhansconnect/roc-dict | c2ff59354a82b00d564150b8bd4242fed8a74218 | [
"Apache-2.0"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | cc-hash-bench/subprojects/abseil-cpp-20211102.0/absl/random/internal/randen_hwaes_test.cc | bhansconnect/roc-dict | c2ff59354a82b00d564150b8bd4242fed8a74218 | [
"Apache-2.0"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | cc-hash-bench/subprojects/abseil-cpp-20211102.0/absl/random/internal/randen_hwaes_test.cc | bhansconnect/roc-dict | c2ff59354a82b00d564150b8bd4242fed8a74218 | [
"Apache-2.0"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2017 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... | 41 | 80 | 0.691707 | bhansconnect |
2349277c665450a8a0a6d01bf46ad6b62dea574d | 589 | cpp | C++ | 2020 Leetcode Challenges/05 May Leetcode Challenge 2020/26 ContiguousArray1.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 7 | 2020-12-01T14:27:57.000Z | 2022-02-12T09:17:22.000Z | 2020 Leetcode Challenges/05 May Leetcode Challenge 2020/26 ContiguousArray1.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 4 | 2020-11-12T17:49:22.000Z | 2021-09-06T07:46:37.000Z | 2020 Leetcode Challenges/05 May Leetcode Challenge 2020/26 ContiguousArray1.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 6 | 2021-05-21T03:49:22.000Z | 2022-01-20T20:36:53.000Z | class Solution {
public:
int findMaxLength(vector<int>& nums) {
int n = nums.size();
int cnt = 0, ans = 0;
unordered_map <int, int> index;
for (int i = 0; i < n; i++){
if (nums[i] == 1)
cnt++;
else
cnt... | 21.814815 | 47 | 0.334465 | FazeelUsmani |
234b6151b14dda5f0a9f2bd68be64e0567b3b92f | 17,658 | cpp | C++ | src/storage/client/StorageClient.cpp | zhangguoqing/nebula | cd3b7d58c3165de28528c4e64abbc8f2b87a3ca5 | [
"Apache-2.0"
] | 1 | 2020-01-23T12:05:10.000Z | 2020-01-23T12:05:10.000Z | src/storage/client/StorageClient.cpp | zhangguoqing/nebula | cd3b7d58c3165de28528c4e64abbc8f2b87a3ca5 | [
"Apache-2.0"
] | null | null | null | src/storage/client/StorageClient.cpp | zhangguoqing/nebula | cd3b7d58c3165de28528c4e64abbc8f2b87a3ca5 | [
"Apache-2.0"
] | 1 | 2020-01-23T12:05:12.000Z | 2020-01-23T12:05:12.000Z | /* Copyright (c) 2018 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "base/Base.h"
#include "storage/client/StorageClient.h"
DEFINE_int32(storage_client_timeout_ms, 60 * 1000, "st... | 33.254237 | 100 | 0.626402 | zhangguoqing |
234bd0591357f74a4fe9a0085d65910de57c492c | 1,791 | cpp | C++ | sketch_jelLEDfish/Drop.cpp | arista/jelLEDfish | 52028d4f7bfab4d29882a85d20eb9175ba7c014e | [
"Apache-2.0"
] | null | null | null | sketch_jelLEDfish/Drop.cpp | arista/jelLEDfish | 52028d4f7bfab4d29882a85d20eb9175ba7c014e | [
"Apache-2.0"
] | null | null | null | sketch_jelLEDfish/Drop.cpp | arista/jelLEDfish | 52028d4f7bfab4d29882a85d20eb9175ba7c014e | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2015 Nathan Abramson
*
* 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 agree... | 27.136364 | 75 | 0.672808 | arista |
054ade89d6fb70f727c553aa1aea4247481f84cd | 2,303 | hpp | C++ | cuda/gpumd/md/src/potentials/computeforceclass.hpp | ryanlopezzzz/ABPTutorial | 923fa89f1959cd71b28ecf4628ecfbfce6a6206c | [
"MIT"
] | 8 | 2020-05-05T00:41:50.000Z | 2021-11-04T20:54:43.000Z | cuda/gpumd/md/src/potentials/computeforceclass.hpp | ryanlopezzzz/ABPTutorial | 923fa89f1959cd71b28ecf4628ecfbfce6a6206c | [
"MIT"
] | null | null | null | cuda/gpumd/md/src/potentials/computeforceclass.hpp | ryanlopezzzz/ABPTutorial | 923fa89f1959cd71b28ecf4628ecfbfce6a6206c | [
"MIT"
] | 5 | 2020-05-04T16:37:13.000Z | 2021-08-18T07:53:58.000Z | #ifndef __computeforceclass_hpp__
#define __computeforceclass_hpp__
/** @defgroup computeenergy Compute Vertex Energy
* @brief ComputeForceClass abstracts definitions
* @{
*/
#include <memory>
#include <map>
#include <iostream>
#include "../types/globaltypes.hpp"
#include "../system/systemclass.hpp"
/**
* @clas... | 28.432099 | 153 | 0.658706 | ryanlopezzzz |
054d0ba06a26cc083c67e63099367ad31e385253 | 2,963 | cpp | C++ | lib/fab/src/tree/triangulate/triangle.cpp | mbd-shift/nodecad | cd8203c4b53608d015632a2b2fc324bcf6dec4b0 | [
"MIT",
"Unlicense"
] | 2,059 | 2015-01-18T16:21:33.000Z | 2022-03-25T21:54:24.000Z | lib/fab/src/tree/triangulate/triangle.cpp | hzeller/antimony | 37324614f873d653594f25c2b8ee05fd4782e1d8 | [
"Unlicense",
"MIT"
] | 209 | 2015-01-22T22:37:45.000Z | 2021-04-14T20:49:40.000Z | lib/fab/src/tree/triangulate/triangle.cpp | hzeller/antimony | 37324614f873d653594f25c2b8ee05fd4782e1d8 | [
"Unlicense",
"MIT"
] | 187 | 2015-02-04T16:19:43.000Z | 2022-02-12T17:12:24.000Z | #include "fab/tree/triangulate/triangle.h"
std::array<float, 3> Triangle::a_() const
{
return {{static_cast<float>(a[0]),
static_cast<float>(a[1]),
static_cast<float>(a[2])}};
}
std::array<float, 3> Triangle::b_() const
{
return {{static_cast<float>(b[0]),
static_cast<fl... | 27.435185 | 80 | 0.473507 | mbd-shift |
05517727cc1b754b478023e0beea9a97cd618eb6 | 149 | cpp | C++ | luogu/P96694.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | 1 | 2020-07-24T03:07:08.000Z | 2020-07-24T03:07:08.000Z | luogu/P96694.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | luogu/P96694.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | //
// Created by yangtao on 20-9-30.
//
#include <iostream>
#include <cstring>
#include <csstio>
#include <algorithm>
const int N = 5;
int m[N][N];
| 13.545455 | 33 | 0.651007 | delphi122 |
0551b2528c1a94048e7998a6dadb28b585db5489 | 1,143 | cpp | C++ | Turso3D/Object/ObjectResolver.cpp | cadaver/turso3d | 5659df48b7915b95a351dfcad382b3ed653573f2 | [
"Zlib"
] | 29 | 2015-03-21T22:35:50.000Z | 2022-01-25T04:13:46.000Z | Turso3D/Object/ObjectResolver.cpp | cadaver/turso3d | 5659df48b7915b95a351dfcad382b3ed653573f2 | [
"Zlib"
] | 1 | 2016-10-23T16:20:14.000Z | 2018-04-13T13:32:13.000Z | Turso3D/Object/ObjectResolver.cpp | cadaver/turso3d | 5659df48b7915b95a351dfcad382b3ed653573f2 | [
"Zlib"
] | 8 | 2015-09-28T06:26:41.000Z | 2020-12-28T14:29:51.000Z | // For conditions of distribution and use, see copyright notice in License.txt
#include "../Debug/Log.h"
#include "../IO/ObjectRef.h"
#include "ObjectResolver.h"
#include "Serializable.h"
#include "../Debug/DebugNew.h"
namespace Turso3D
{
void ObjectResolver::StoreObject(unsigned oldId, Serializable* object)
{
... | 27.214286 | 99 | 0.649169 | cadaver |
0552368303a5eb20b450f252439789e1484c9101 | 430 | inl | C++ | Core/Renderer/OpenGL/inline/OGLVAO.inl | SDurand7/AVLIT-Engine | c7a8e361d91e57fb96acfc1c96a88c3b480bb256 | [
"MIT"
] | null | null | null | Core/Renderer/OpenGL/inline/OGLVAO.inl | SDurand7/AVLIT-Engine | c7a8e361d91e57fb96acfc1c96a88c3b480bb256 | [
"MIT"
] | null | null | null | Core/Renderer/OpenGL/inline/OGLVAO.inl | SDurand7/AVLIT-Engine | c7a8e361d91e57fb96acfc1c96a88c3b480bb256 | [
"MIT"
] | null | null | null | namespace AVLIT {
inline void OGLVAO::operator=(OGLVAO &&vao) noexcept {
m_vaoID = vao.m_vaoID;
vao.m_vaoID = 0;
m_buffers = std::move(vao.m_buffers);
}
inline bool OGLVAO::operator==(const OGLVAO &vao) const { return m_vaoID == vao.m_vaoID; }
inline void OGLVAO::bind() const {
glBindVertexArray(m_va... | 23.888889 | 90 | 0.690698 | SDurand7 |
055b0c0d55ffb1d5bde8461fc7dc5670723fda17 | 152 | hpp | C++ | import.hpp | gonzavesc/Diff_Cavity | 7afa112c9b59b79e450ee068fb96f7eebaf5ce62 | [
"MIT"
] | null | null | null | import.hpp | gonzavesc/Diff_Cavity | 7afa112c9b59b79e450ee068fb96f7eebaf5ce62 | [
"MIT"
] | null | null | null | import.hpp | gonzavesc/Diff_Cavity | 7afa112c9b59b79e450ee068fb96f7eebaf5ce62 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <fstream>
#ifndef INCLUDE_IMPORT
#define INCLUDE_IMPORT
std::vector<double> readfiledat();
#endif | 19 | 35 | 0.743421 | gonzavesc |
0561167b4ea4307740200319a4209256f41eaae8 | 1,343 | hpp | C++ | src/algorithms/data_structures/queue/sliding_window_max.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | src/algorithms/data_structures/queue/sliding_window_max.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | src/algorithms/data_structures/queue/sliding_window_max.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #ifndef SLIDING_WINDOW_MAX_HPP
#define SLIDING_WINDOW_MAX_HPP
/*
https://leetcode.com/problems/sliding-window-maximum/
Given an array nums, there is a sliding window of size k which is moving
from the very left of the array to the very right. You can only see the k
numbers in the window. Each time the sliding window m... | 25.339623 | 73 | 0.55994 | iamantony |
0561c99e7246ba4c9fb0a7ff70bf0ab39d5cc0d6 | 1,092 | hpp | C++ | examples/base_game/src/system_controls.hpp | svenstaro/strapon | d343dfe2a5d9b7358a0bfd5e0efaa37075a660f1 | [
"MIT"
] | 2 | 2015-06-12T10:50:17.000Z | 2015-10-24T08:50:58.000Z | examples/base_game/src/system_controls.hpp | svenstaro/strapon | d343dfe2a5d9b7358a0bfd5e0efaa37075a660f1 | [
"MIT"
] | null | null | null | examples/base_game/src/system_controls.hpp | svenstaro/strapon | d343dfe2a5d9b7358a0bfd5e0efaa37075a660f1 | [
"MIT"
] | null | null | null | #ifndef SYSTEM_CONTROLS_HPP
#define SYSTEM_CONTROLS_HPP
#include "component_position.hpp"
#include "events.hpp"
#include <glm/vec2.hpp>
#include <glm/glm.hpp>
class ControlSystem : public entityx::System<ControlSystem> {
public:
void update(entityx::EntityManager &es, entityx::EventManager &events, double dt) ... | 27.3 | 87 | 0.557692 | svenstaro |
05626eac1ed75d73742bb209dab2a6efbbc5b6d8 | 284 | cpp | C++ | cpp/lab10/A749.cpp | PeganovAnton/cs-8th-grade | 843a1e228473734728949ba286e04612165a163e | [
"AFL-3.0"
] | null | null | null | cpp/lab10/A749.cpp | PeganovAnton/cs-8th-grade | 843a1e228473734728949ba286e04612165a163e | [
"AFL-3.0"
] | null | null | null | cpp/lab10/A749.cpp | PeganovAnton/cs-8th-grade | 843a1e228473734728949ba286e04612165a163e | [
"AFL-3.0"
] | null | null | null | #include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
int n, count;
cin >> n;
count = n / 2;
cout << count << endl;
if (n % 2 > 0) {
cout << 3 << " ";
n -= 3;
}
while (n > 0) {
cout << 2 << " ";
n -= 2;
}
return 0;
}
| 11.36 | 24 | 0.433099 | PeganovAnton |
05631d6ede1bdaa1f70a4b5bae744d871eb6d003 | 1,911 | cpp | C++ | SuiteSparse_GPURuntime/Source/SuiteSparseGPU_Workspace_transfer.cpp | penglai-hourai/SuiteSparse | bb6870d26536fcea40a7a3e38a82ad2777c65189 | [
"BSD-3-Clause"
] | null | null | null | SuiteSparse_GPURuntime/Source/SuiteSparseGPU_Workspace_transfer.cpp | penglai-hourai/SuiteSparse | bb6870d26536fcea40a7a3e38a82ad2777c65189 | [
"BSD-3-Clause"
] | null | null | null | SuiteSparse_GPURuntime/Source/SuiteSparseGPU_Workspace_transfer.cpp | penglai-hourai/SuiteSparse | bb6870d26536fcea40a7a3e38a82ad2777c65189 | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// SuiteSparse_GPURuntime/Source/SuiteSparseGPU_Workspace_transfer.cpp =========
// =============================================================================
#include "SuiteSparseGPU_Runtime.hpp"
// ----------------------------------... | 30.822581 | 80 | 0.524856 | penglai-hourai |
0565f340b0e58147026bbeae4b30748e1a627e30 | 6,089 | cpp | C++ | src/gui/FileViewFrame.cpp | sesps/SPS_SABRE_EventBuilder | c044eed7cb10e31e76c13213e8bb5aef50391bba | [
"MIT"
] | null | null | null | src/gui/FileViewFrame.cpp | sesps/SPS_SABRE_EventBuilder | c044eed7cb10e31e76c13213e8bb5aef50391bba | [
"MIT"
] | null | null | null | src/gui/FileViewFrame.cpp | sesps/SPS_SABRE_EventBuilder | c044eed7cb10e31e76c13213e8bb5aef50391bba | [
"MIT"
] | null | null | null | /*
FileViewFrame.cpp
Wrapper class on a TGTransientFrame (temporary frame assoc. with a main frame)
Designed to graphically display directories and files for selection. Takes in a type
to specify the signal pathing.
Written by G.W. McCann Sep. 2020
*/
#include "EventBuilder.h"
#include "FileViewFrame.h"
#incl... | 36.029586 | 127 | 0.73526 | sesps |
05689aa3e36b4c0abafccfd373e745a216039a94 | 741 | hpp | C++ | RType.Common/Headers/Components/Component.hpp | Mikyan0207/RType | ae3d0e4b3192577eccfb3ba55ac86bd7238e9451 | [
"MIT",
"Unlicense"
] | null | null | null | RType.Common/Headers/Components/Component.hpp | Mikyan0207/RType | ae3d0e4b3192577eccfb3ba55ac86bd7238e9451 | [
"MIT",
"Unlicense"
] | null | null | null | RType.Common/Headers/Components/Component.hpp | Mikyan0207/RType | ae3d0e4b3192577eccfb3ba55ac86bd7238e9451 | [
"MIT",
"Unlicense"
] | null | null | null | #pragma once
#include <Components/IComponent.hpp>
#include <RType.Common.hpp>
#include <Scenes/Layouts.hpp>
class RTYPECOMMON_API Component : public IComponent
{
public:
Component();
Component(const Component&) = default;
Component(Component&&) noexcept = default;
~Component() override = default;
public:
Compon... | 22.454545 | 62 | 0.759784 | Mikyan0207 |
056c641c70b9737e8d0f58c1266a088c888238bb | 19,273 | cpp | C++ | VS/Spike-Masquelier-Main/Main-Spike-Masquelier.cpp | HJLebbink/Spike-Masq | 01f458dc5792947c892af296ea82d0a7447dd19c | [
"MIT"
] | 1 | 2021-07-15T09:13:50.000Z | 2021-07-15T09:13:50.000Z | VS/Spike-Masquelier-Main/Main-Spike-Masquelier.cpp | HJLebbink/Spike-Masq | 01f458dc5792947c892af296ea82d0a7447dd19c | [
"MIT"
] | null | null | null | VS/Spike-Masquelier-Main/Main-Spike-Masquelier.cpp | HJLebbink/Spike-Masq | 01f458dc5792947c892af296ea82d0a7447dd19c | [
"MIT"
] | 1 | 2019-05-20T03:01:00.000Z | 2019-05-20T03:01:00.000Z | // The MIT License (MIT)
//
// Copyright (c) 2017 Henk-Jan Lebbink
//
// 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 us... | 37.27853 | 319 | 0.72516 | HJLebbink |
05708b0e78fa8b1efd7a741f134caba23fc7668b | 1,062 | cpp | C++ | Livearchive/XenoSpeak.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | Livearchive/XenoSpeak.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | Livearchive/XenoSpeak.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define DEB(x) cerr << "# " << (#x) << ": " << (x) << endl;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> ii;
const int MAXL = 64;
ull L[MAXL];
void prep(){
int i; L[0] = 0; L[1] = 1;
for(i = 2; i < MAXL; i++) L[i] = 2*L[i-1] + ((i%2)?-1:... | 18.631579 | 59 | 0.457627 | MartinAparicioPons |
0573d28cbad9e62269e58ab421005886f81905ab | 3,038 | hpp | C++ | src/JackCompiler/JackTokenFactory.hpp | HSU-F20-CS243/p10-starter | fde612e721a90dc83ec6bece7cfaada3b10486f8 | [
"Apache-2.0"
] | null | null | null | src/JackCompiler/JackTokenFactory.hpp | HSU-F20-CS243/p10-starter | fde612e721a90dc83ec6bece7cfaada3b10486f8 | [
"Apache-2.0"
] | null | null | null | src/JackCompiler/JackTokenFactory.hpp | HSU-F20-CS243/p10-starter | fde612e721a90dc83ec6bece7cfaada3b10486f8 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <unordered_map>
#include "JackToken.hpp"
using namespace std;
class JackTokenFactory
{
private:
unordered_map<string, Keyword> _keyword_map;
unordered_map<char, int> _symbols;
static JackTokenFactory* _instance;
JackTokenFactory()
{
_keyword_map["class"] = Keyword::Class;
_keyword_map[... | 24.304 | 104 | 0.647795 | HSU-F20-CS243 |
05789b88bc18a3ab9487aaa252902f5462a9f215 | 3,103 | cpp | C++ | protos/srm/2.2/n/n_srmReleaseSpace.cpp | dCache/s2 | b84ce6a17b9fe36f0f7edf4615c5fc2dd925dd53 | [
"BSD-3-Clause"
] | null | null | null | protos/srm/2.2/n/n_srmReleaseSpace.cpp | dCache/s2 | b84ce6a17b9fe36f0f7edf4615c5fc2dd925dd53 | [
"BSD-3-Clause"
] | 4 | 2016-05-13T09:45:31.000Z | 2018-02-18T10:11:32.000Z | protos/srm/2.2/n/n_srmReleaseSpace.cpp | dCache/s2 | b84ce6a17b9fe36f0f7edf4615c5fc2dd925dd53 | [
"BSD-3-Clause"
] | 1 | 2018-02-18T09:26:49.000Z | 2018-02-18T09:26:49.000Z | #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <sys/types.h>
#ifdef DG_DIAGNOSE
#include "diagnose/dg.h"
#endif
#include "n_srm.h"
#include "srm2api.h"
#include "srm_soap27.h"
#include "constants.h"
#include "i18.h"
#include "sysdep.h" /* BOOL, STD_BUF, ... */
#include "free.h" ... | 18.806061 | 79 | 0.705124 | dCache |
057c06c2b794f4be73122aaa6598ab30c549b09a | 1,546 | cpp | C++ | src/prune_enhancer.cpp | hillarykoch/CLIMB | da6cc77ff8be48ceeb63247506467911d6130ac2 | [
"Artistic-2.0"
] | 3 | 2021-11-29T08:05:48.000Z | 2022-01-08T16:16:35.000Z | src/prune_enhancer.cpp | hillarykoch/CLIMB | da6cc77ff8be48ceeb63247506467911d6130ac2 | [
"Artistic-2.0"
] | null | null | null | src/prune_enhancer.cpp | hillarykoch/CLIMB | da6cc77ff8be48ceeb63247506467911d6130ac2 | [
"Artistic-2.0"
] | 2 | 2020-02-24T19:18:06.000Z | 2020-09-08T14:29:27.000Z | // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
#include <RcppArmadillo.h>
#include <lemon/list_graph.h>
#include <lemon/dfs.h>
#include <lemon/lgf_reader.h>
#include <lemon/adaptors.h>
#include <iostream>
#include <fstream>
#include <string>
#include <array>
using namespace Rcpp;
u... | 24.539683 | 82 | 0.574386 | hillarykoch |
057cfafcb518b1c6dddb66c84a78b3adc004b68d | 37,138 | cc | C++ | crawl-ref/source/store.cc | brianlheim/crawl | 26c3a87c45fb30647f6dc9ce0c2095e312605176 | [
"CC0-1.0"
] | 44 | 2020-04-06T08:56:09.000Z | 2021-03-17T18:05:18.000Z | crawl-ref/source/store.cc | brianlheim/crawl | 26c3a87c45fb30647f6dc9ce0c2095e312605176 | [
"CC0-1.0"
] | 501 | 2020-04-06T07:19:01.000Z | 2022-02-23T13:04:40.000Z | crawl-ref/source/store.cc | alexjurkiewicz/crawl-ref | b30f108f014aa9282fecf9cd6d84024ab3608e69 | [
"CC0-1.0"
] | 74 | 2020-04-06T07:40:50.000Z | 2021-05-21T00:13:36.000Z | /**
* @file
* @brief Saveable hash-table and vector capable of storing
* multiple types of data.
**/
#include "AppHdr.h"
#include "store.h"
#include <algorithm>
#include "dlua.h"
#include "monster.h"
#include "stringutil.h"
// These tend to be called from tight loops, and C++ method calls don't
// g... | 20.875773 | 87 | 0.585034 | brianlheim |
057ffcad837701b53ccce91a0ee1934dcdfb725a | 1,055 | cpp | C++ | scene/light_manager.cpp | flourk/My_Engine_Code_Part | eb109ee9148391d1cd9481d4a237130244a6c9e7 | [
"MIT"
] | null | null | null | scene/light_manager.cpp | flourk/My_Engine_Code_Part | eb109ee9148391d1cd9481d4a237130244a6c9e7 | [
"MIT"
] | 1 | 2019-12-23T11:14:10.000Z | 2019-12-23T11:14:10.000Z | scene/light_manager.cpp | flourk/My_Engine_Code_Part | eb109ee9148391d1cd9481d4a237130244a6c9e7 | [
"MIT"
] | null | null | null | #include "light_manager.h"
#include <algorithm>
#include <render/shader.h>
#include <render/material.h>
#include "light.h"
#include <core/log.h>
std::vector<Light*> LightManager::m_lights;
void LightManager::AddLight(Light* light)
{
m_lights.push_back(light);
}
void LightManager::RemoveLight(Light* light)
{
... | 22.446809 | 65 | 0.597156 | flourk |
0580d089e3311e42adf47f873bfd1a0d293adfdb | 2,399 | cpp | C++ | src/frame.cpp | Zan-the-Man01/Super-Square-Boy | 303532d587879be7d6e10af010efbc011492133e | [
"MIT"
] | null | null | null | src/frame.cpp | Zan-the-Man01/Super-Square-Boy | 303532d587879be7d6e10af010efbc011492133e | [
"MIT"
] | null | null | null | src/frame.cpp | Zan-the-Man01/Super-Square-Boy | 303532d587879be7d6e10af010efbc011492133e | [
"MIT"
] | 2 | 2020-11-20T03:04:41.000Z | 2020-12-08T23:21:28.000Z | // Copyright (c) 2020 Alexander Marcozzi. All rights reserved.
#include <game/frame.h>
#include <cinder/app/App.h>
#include <string>
namespace supersquareboy {
Frame::Frame() {
}
Frame::Frame(const std::string& level_path){
std::ifstream map(cinder::app::getAssetPath(level_path));
while (!map.eof()) {
std::... | 21.612613 | 96 | 0.637349 | Zan-the-Man01 |
058194491b411ed53f011662a946bcb3db4d63bb | 21,381 | cxx | C++ | vtkALBA/vtkALBAMultiResolutionActor.cxx | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | vtkALBA/vtkALBAMultiResolutionActor.cxx | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | vtkALBA/vtkALBAMultiResolutionActor.cxx | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: vtkALBAMultiResolutionActor
Authors: Alexander Savenko
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; w... | 33.777251 | 181 | 0.552266 | IOR-BIC |
0585a1f87738c24ae022a08c384c065a62954a19 | 984 | cpp | C++ | leetcode2/longestpalindromesubstring.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | leetcode2/longestpalindromesubstring.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | leetcode2/longestpalindromesubstring.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
string longestPalindrome(string s) {
int maxlen=0;
int start=0;
int end=0;
for(int i=0;i<s.size(); i++){
//for odd len string
for(int j=0; i-j>=0 &&i+j <s.size(); j++){
if(s[i-j]!=s[i+j]){
b... | 24.6 | 56 | 0.283537 | WIZARD-CXY |
058841b84a47d5e0657de710829a1e24d7ee229f | 5,920 | cpp | C++ | Macros/Application/MacroManager.cpp | Breakfast-Galaxy-Studios/Breakfast-Macros | c33b47da7b35332522fa2fb3a424e736e59574e7 | [
"MIT"
] | null | null | null | Macros/Application/MacroManager.cpp | Breakfast-Galaxy-Studios/Breakfast-Macros | c33b47da7b35332522fa2fb3a424e736e59574e7 | [
"MIT"
] | 1 | 2022-03-14T00:32:14.000Z | 2022-03-14T00:32:14.000Z | Macros/Application/MacroManager.cpp | Breakfast-Galaxy-Studios/Breakfast-Macros | c33b47da7b35332522fa2fb3a424e736e59574e7 | [
"MIT"
] | 2 | 2022-03-15T02:16:32.000Z | 2022-03-15T02:26:46.000Z |
#include "MacroManager.h"
#include "FileManager.h"
#include "InterceptionHandler.h"
#include "MacroApp.h"
extern FileManager fileManager;
extern MacroApp* app;
/*
* Macro Class Begin
*/
Macro::Macro() {
this->actions = std::vector<Action*>();
this->keyToPress = 0;
this->enabled = false;
this->name = "null";
}
Ma... | 26.547085 | 96 | 0.699662 | Breakfast-Galaxy-Studios |
0588dbef5e7035b4e7aac6d04485d1942aabd5ce | 1,264 | cpp | C++ | src/autonet/test/WebsocketTest.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | src/autonet/test/WebsocketTest.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | src/autonet/test/WebsocketTest.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include <autonet/AutoNetServer.h>
#include <autowiring/autowiring.h>
#include CHRONO_HEADER
#include <iostream>
class WebsocketTest:
public testing::Test
{};
class WebsocketExceptionFilter:
public ExceptionFilter
{
public:
v... | 21.066667 | 79 | 0.681171 | CaseyCarter |
058b1ba268f950a61dbfcd275fa9ff6fa00fb8c6 | 7,929 | cpp | C++ | Systems/Engine/Hierarchy.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 52 | 2018-09-11T17:18:35.000Z | 2022-03-13T15:28:21.000Z | Systems/Engine/Hierarchy.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 1,409 | 2018-09-19T18:03:43.000Z | 2021-06-09T08:33:33.000Z | Systems/Engine/Hierarchy.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 26 | 2018-09-11T17:16:32.000Z | 2021-11-22T06:21:19.000Z | ///////////////////////////////////////////////////////////////////////////////
///
/// \file Hierarchy.cpp
///
/// Authors: Chris Peters, Joshua Claeys
/// Copyright 2010-2016, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#include "Precomp... | 30.732558 | 102 | 0.483163 | jodavis42 |
058c6990b63ebddf03b14871a67d95cd34a9757b | 2,836 | hpp | C++ | iceoryx_posh/include/iceoryx_posh/roudi/roudi_cmd_line_parser.hpp | ithier/iceoryx | 0186384b683c6f421e88f16dba1c663315ba5a4f | [
"Apache-2.0"
] | null | null | null | iceoryx_posh/include/iceoryx_posh/roudi/roudi_cmd_line_parser.hpp | ithier/iceoryx | 0186384b683c6f421e88f16dba1c663315ba5a4f | [
"Apache-2.0"
] | 12 | 2020-05-10T12:39:18.000Z | 2021-01-07T05:16:59.000Z | iceoryx_posh/include/iceoryx_posh/roudi/roudi_cmd_line_parser.hpp | ithier/iceoryx | 0186384b683c6f421e88f16dba1c663315ba5a4f | [
"Apache-2.0"
] | 1 | 2020-09-23T12:19:57.000Z | 2020-09-23T12:19:57.000Z | // Copyright (c) 2020 by Robert Bosch GmbH, Apex.AI 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
//
// Un... | 38.324324 | 119 | 0.747884 | ithier |
058db3f4a33c2b7438d1a3d64f846d2905ba55cd | 867 | cpp | C++ | sources/cards/creatures/blacks/MiniPekka.cpp | angeluriot/Magic_royal | a337ce4ad6c3215bbdec8c376d6e88fe97f48f94 | [
"MIT"
] | 1 | 2022-02-02T21:41:59.000Z | 2022-02-02T21:41:59.000Z | sources/cards/creatures/blacks/MiniPekka.cpp | angeluriot/Magic_royal | a337ce4ad6c3215bbdec8c376d6e88fe97f48f94 | [
"MIT"
] | null | null | null | sources/cards/creatures/blacks/MiniPekka.cpp | angeluriot/Magic_royal | a337ce4ad6c3215bbdec8c376d6e88fe97f48f94 | [
"MIT"
] | 2 | 2022-02-01T12:59:57.000Z | 2022-03-05T12:50:27.000Z | #include "cards/creatures/blacks/MiniPekka.hpp"
MiniPekka::MiniPekka(): Creature(get_full_power(), get_full_toughness(), get_capacities()) {}
MiniPekka::~MiniPekka() {}
std::string MiniPekka::get_full_type() const
{
return Creature::get_full_type() + " - Demon";
}
Card::Color MiniPekka::get_color() const
{
return... | 15.763636 | 93 | 0.696655 | angeluriot |
059012ae4b7262e9fa07f78781f74f04c5ebb665 | 511,363 | cpp | C++ | iosbuild/Classes/Native/Il2CppGenericMethodTable.cpp | Computer-Science-Innovators/South-Mapping-App | a85d01ee2eea9ba6857d9bfec0d2a3b909d6ffbc | [
"Apache-2.0"
] | 4 | 2018-05-13T14:56:22.000Z | 2018-09-17T14:13:32.000Z | iosbuild/Classes/Native/Il2CppGenericMethodTable.cpp | Computer-Science-Innovators/South-Mapping-App | a85d01ee2eea9ba6857d9bfec0d2a3b909d6ffbc | [
"Apache-2.0"
] | null | null | null | iosbuild/Classes/Native/Il2CppGenericMethodTable.cpp | Computer-Science-Innovators/South-Mapping-App | a85d01ee2eea9ba6857d9bfec0d2a3b909d6ffbc | [
"Apache-2.0"
] | 5 | 2018-05-13T16:04:42.000Z | 2018-10-26T00:30:56.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 "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
extern const Il2CppGe... | 107.973606 | 201 | 0.806762 | Computer-Science-Innovators |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.