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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c79023a9fe05d4a6200b4ddc889e4239dc6498e9 | 717 | cpp | C++ | concurrency/call_once.cpp | miaogen123/daily-coding | 5d7f463ad1fee5e512aeb36206526b53b9a781f6 | [
"MIT"
] | 19 | 2018-07-06T06:53:56.000Z | 2022-01-01T16:36:26.000Z | concurrency/call_once.cpp | miaogen123/daily-coding | 5d7f463ad1fee5e512aeb36206526b53b9a781f6 | [
"MIT"
] | null | null | null | concurrency/call_once.cpp | miaogen123/daily-coding | 5d7f463ad1fee5e512aeb36206526b53b9a781f6 | [
"MIT"
] | 17 | 2019-03-27T23:18:43.000Z | 2021-01-18T11:17:57.000Z | #include<iostream>
#include<thread>
#include<mutex>
#include<vector>
#include<string>
using namespace std;
class TestCallOnce
{
public:
TestCallOnce(){}
void init(){
hello=new temp;
std::cout<<"i'm initing\n";
}
int getvi1(){
call_once(IsInitFlag, init, this);
cout<<"1 out "<<hello->vi[1];
return hell... | 15.933333 | 41 | 0.65272 | miaogen123 |
c79403c084bed9899b2cbdd2441962b0fdf49e2b | 4,172 | cpp | C++ | third-party/Empirical/tests/tools/keyname_utils.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/tests/tools/keyname_utils.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/tests/tools/keyname_utils.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "third-party/Catch/single_include/catch2/catch.hpp"
#include "emp/tools/keyname_utils.hpp"
#include <sstream>
#include <iostream>
#include <string>
TEST_CASE("Test keyname_utils", "[tools]")
{
// test unpack
emp::keyname::unpack_t goal{
{"seed", "100"... | 24.397661 | 72 | 0.495686 | koellingh |
c798c9b0820c4864c89849e547a44a61d0b182e0 | 1,655 | hpp | C++ | src/tensorrt/src/core/dataset/tensor_dataset.hpp | tfindlay-au/dlcookbook-dlbs | a4e65f022523a10531817533a4244c3050e9336d | [
"Apache-2.0"
] | null | null | null | src/tensorrt/src/core/dataset/tensor_dataset.hpp | tfindlay-au/dlcookbook-dlbs | a4e65f022523a10531817533a4244c3050e9336d | [
"Apache-2.0"
] | null | null | null | src/tensorrt/src/core/dataset/tensor_dataset.hpp | tfindlay-au/dlcookbook-dlbs | a4e65f022523a10531817533a4244c3050e9336d | [
"Apache-2.0"
] | null | null | null | /*
(c) Copyright [2017] Hewlett Packard Enterprise Development LP
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... | 38.488372 | 114 | 0.731118 | tfindlay-au |
c7a09c927211c77e9ba3528c5c77d3f11982d0ef | 2,350 | cpp | C++ | cpp/pipe2.cpp | cs1730/cs1730-syscalls | 868047de2a95d2abdcb5d22f34af1e55de8ffe42 | [
"MIT"
] | 1 | 2016-11-05T01:53:05.000Z | 2016-11-05T01:53:05.000Z | cpp/pipe2.cpp | cs1730/cs1730-syscalls | 868047de2a95d2abdcb5d22f34af1e55de8ffe42 | [
"MIT"
] | null | null | null | cpp/pipe2.cpp | cs1730/cs1730-syscalls | 868047de2a95d2abdcb5d22f34af1e55de8ffe42 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <cstring>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
using namespace std;
void close_pipe(int pipefd [2]);
vector<char *> mk_cstrvec(vector<string> & strvec);
void dl_cstrvec(vector<char *> & cstrvec);
void nice... | 25.824176 | 78 | 0.64 | cs1730 |
c7a6d631064fc09fc6d9b87ad01167f0329722ff | 119 | cpp | C++ | Source/XeluIcons/Private/XeluIconsLog.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | 5 | 2022-02-01T22:49:51.000Z | 2022-03-03T10:18:36.000Z | Source/XeluIcons/Private/XeluIconsLog.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | 1 | 2022-01-31T23:09:04.000Z | 2022-01-31T23:09:04.000Z | Source/XeluIcons/Private/XeluIconsLog.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | null | null | null | // Copyright 2022 Mickael Daniel. All Rights Reserved.
#include "XeluIconsLog.h"
DEFINE_LOG_CATEGORY(LogXeluIcons)
| 17 | 55 | 0.789916 | mklabs |
c7ab8df954b5e2dd2a4684c9ea99eba630034172 | 632 | hpp | C++ | include/rive/world_transform_component.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 139 | 2020-08-17T20:10:24.000Z | 2022-03-28T12:22:44.000Z | include/rive/world_transform_component.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 89 | 2020-08-28T16:41:01.000Z | 2022-03-28T19:10:49.000Z | include/rive/world_transform_component.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 19 | 2020-10-19T00:54:40.000Z | 2022-02-28T05:34:17.000Z | #ifndef _RIVE_WORLD_TRANSFORM_COMPONENT_HPP_
#define _RIVE_WORLD_TRANSFORM_COMPONENT_HPP_
#include "rive/generated/world_transform_component_base.hpp"
#include "rive/math/mat2d.hpp"
namespace rive
{
class TransformComponent;
class WorldTransformComponent : public WorldTransformComponentBase
{
friend class Transfo... | 24.307692 | 67 | 0.803797 | kariem2k |
c7ad4046737db1af7a765380184a7a2030614c9e | 10,143 | hpp | C++ | stf-inc/stf_fstream.hpp | sparcians/stf_lib | 9e4933bff0c956dba464ced72e311e73507342dc | [
"MIT"
] | 1 | 2022-02-17T00:48:44.000Z | 2022-02-17T00:48:44.000Z | stf-inc/stf_fstream.hpp | sparcians/stf_lib | 9e4933bff0c956dba464ced72e311e73507342dc | [
"MIT"
] | null | null | null | stf-inc/stf_fstream.hpp | sparcians/stf_lib | 9e4933bff0c956dba464ced72e311e73507342dc | [
"MIT"
] | null | null | null | #ifndef __STF_FSTREAM_HPP__
#define __STF_FSTREAM_HPP__
#include <ios>
#include <string_view>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <mutex>
#include <set>
#include <vector>
#include "stf_exception.hpp"
#include "stf_pc_tracker.hpp"
#include "stf_vlen.hpp"
namespace stf {
/**
... | 37.290441 | 147 | 0.506458 | sparcians |
c7b41672c7d475a0d9a0d7f83066cc93a594382e | 17,506 | cpp | C++ | src/config/ui_preferences_display.cpp | dinfinity/foo_openlyrics | cf42d61ce172f374b76140b5922f7eae1aef33b3 | [
"MIT"
] | 132 | 2021-01-26T11:19:30.000Z | 2022-03-28T09:52:45.000Z | src/config/ui_preferences_display.cpp | dinfinity/foo_openlyrics | cf42d61ce172f374b76140b5922f7eae1aef33b3 | [
"MIT"
] | 108 | 2021-04-08T10:57:27.000Z | 2022-03-27T08:02:15.000Z | src/config/ui_preferences_display.cpp | dinfinity/foo_openlyrics | cf42d61ce172f374b76140b5922f7eae1aef33b3 | [
"MIT"
] | 13 | 2021-08-06T06:21:05.000Z | 2022-03-28T08:19:37.000Z | #include "stdafx.h"
#pragma warning(push, 0)
#include "resource.h"
#include "foobar2000/helpers/atl-misc.h"
#pragma warning(pop)
#include "config/config_auto.h"
#include "config/config_font.h"
#include "logging.h"
#include "preferences.h"
#include "ui_hooks.h"
static const GUID GUID_PREFERENCES_PAGE_DIS... | 37.405983 | 200 | 0.711299 | dinfinity |
c7b485395c03893055e1620e229a5b814a8d6cac | 759 | cpp | C++ | Cfiles/sayitahmin.cpp | HilalSolak/Cprojects | e7cec37cbcdbe227c74f1fc35e1c76c9223f3b3d | [
"MIT"
] | null | null | null | Cfiles/sayitahmin.cpp | HilalSolak/Cprojects | e7cec37cbcdbe227c74f1fc35e1c76c9223f3b3d | [
"MIT"
] | null | null | null | Cfiles/sayitahmin.cpp | HilalSolak/Cprojects | e7cec37cbcdbe227c74f1fc35e1c76c9223f3b3d | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
void sayitahmin(int sayi){
int tahmin;
printf(" Tahmin Gir:");
scanf("%d",&tahmin);
if(tahmin<sayi){
printf("daha buyuk tahmin yap:");
sayitahmin(sayi);
}
else if(tahmin>sayi){
printf("daha kucuk tahmin yap:");
sayitahmin(sayi);
}
... | 21.685714 | 75 | 0.536232 | HilalSolak |
c7b56f1866133878f851dcb11e3f009fdabf90d2 | 17,979 | cpp | C++ | Cube First Phase/cube.cpp | mriddell001/encryption-cube | fd3c8ecd1cffb44bfe0bcfb361165237299cb619 | [
"Apache-2.0"
] | null | null | null | Cube First Phase/cube.cpp | mriddell001/encryption-cube | fd3c8ecd1cffb44bfe0bcfb361165237299cb619 | [
"Apache-2.0"
] | null | null | null | Cube First Phase/cube.cpp | mriddell001/encryption-cube | fd3c8ecd1cffb44bfe0bcfb361165237299cb619 | [
"Apache-2.0"
] | null | null | null | //Cube.cpp
#include "cube.h"
#include <string>
#include <vector>
#include <fstream>
#include <iterator>
#include <iostream>
using namespace std;
/**
* Cube - Initial creation of cube.
*
* Notes: May be impacted by changing load order. Check when project reaches
* applicable phase in development. Current load ... | 35.115234 | 81 | 0.47333 | mriddell001 |
c7be54e3819e4ae3845255f7944b014d29338612 | 1,864 | cpp | C++ | utils/files.cpp | Bill2462/calculon | 8caa1b346eae5b1320b2786468ec3caac607d583 | [
"MIT"
] | null | null | null | utils/files.cpp | Bill2462/calculon | 8caa1b346eae5b1320b2786468ec3caac607d583 | [
"MIT"
] | null | null | null | utils/files.cpp | Bill2462/calculon | 8caa1b346eae5b1320b2786468ec3caac607d583 | [
"MIT"
] | null | null | null | /**
* @file files.cpp
* @brief This source file contains code for saving and loading numpy array.
* @author Krzysztof Adamkiewicz
* @date 31/9/2019
*/
// This file is part of measurements laboratory excercise solution.
// Copyright (c) 2019 Krzysztof Adamkiewicz <kadamkiewicz835@gmail.com>
//
// Permission is her... | 39.659574 | 88 | 0.73176 | Bill2462 |
c7c5a05817b97764658b2f9ca69b2a485a7699fb | 1,017 | hpp | C++ | src/integrated/IntegratedRunner.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | src/integrated/IntegratedRunner.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | src/integrated/IntegratedRunner.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <atomic>
#include "forward.hpp"
namespace aima::gui { struct ImGuiWrapper; }
namespace aima::IntegratedRunner {
/**
* Represents an integrated runner that can run apps and demos
*/
class IntegratedRunner {
public:
IntegratedRunner();
Inte... | 24.804878 | 87 | 0.629302 | Person-93 |
c7c73b9ff219087d1cd00a932d0332e83f052dd7 | 7,318 | cpp | C++ | ProcessLib/ComponentTransport/CreateComponentTransportProcess.cpp | hosseinsotudeh/ogs | 214afcb00af23e4393168a846c7ee8ce4f13e489 | [
"BSD-4-Clause"
] | null | null | null | ProcessLib/ComponentTransport/CreateComponentTransportProcess.cpp | hosseinsotudeh/ogs | 214afcb00af23e4393168a846c7ee8ce4f13e489 | [
"BSD-4-Clause"
] | null | null | null | ProcessLib/ComponentTransport/CreateComponentTransportProcess.cpp | hosseinsotudeh/ogs | 214afcb00af23e4393168a846c7ee8ce4f13e489 | [
"BSD-4-Clause"
] | null | null | null | /**
* \copyright
* Copyright (c) 2012-2018, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "CreateComponentTransportProcess.h"
#inc... | 41.344633 | 118 | 0.715633 | hosseinsotudeh |
c7cf7c6d391920a9196732d9aefc37a83e4938ca | 1,559 | cpp | C++ | src/iislua/cluahttpmodule.cpp | shibayan/iislua | b0fe6fb0c204748928b6dd3205d0fe42f899d20c | [
"Apache-2.0"
] | 16 | 2015-10-09T08:03:24.000Z | 2022-03-30T08:54:10.000Z | src/iislua/cluahttpmodule.cpp | shibayan/iislua | b0fe6fb0c204748928b6dd3205d0fe42f899d20c | [
"Apache-2.0"
] | 6 | 2015-09-18T08:12:42.000Z | 2020-04-05T07:00:14.000Z | src/iislua/cluahttpmodule.cpp | shibayan/iislua | b0fe6fb0c204748928b6dd3205d0fe42f899d20c | [
"Apache-2.0"
] | 7 | 2017-09-12T09:53:20.000Z | 2022-02-28T23:50:03.000Z |
#include "stdafx.h"
CLuaHttpModule::CLuaHttpModule(CLuaStatePool* pLuaStatePool)
: L(nullptr), pLuaStatePool(pLuaStatePool)
{
}
CLuaHttpModule::~CLuaHttpModule()
{
if (L != nullptr)
{
pLuaStatePool->Release(L);
L = nullptr;
}
}
REQUEST_NOTIFICATION_STATUS CLuaHttpModule::OnExecuteCor... | 25.983333 | 219 | 0.717768 | shibayan |
c7d089ee746f7b991c88b51b978fe3b04a663a31 | 4,775 | cpp | C++ | src/Player.cpp | ScaredStorm/Platformer-Prototype | 6ef4463e6e939f3bf06918150cb07933a40baa83 | [
"MIT"
] | null | null | null | src/Player.cpp | ScaredStorm/Platformer-Prototype | 6ef4463e6e939f3bf06918150cb07933a40baa83 | [
"MIT"
] | null | null | null | src/Player.cpp | ScaredStorm/Platformer-Prototype | 6ef4463e6e939f3bf06918150cb07933a40baa83 | [
"MIT"
] | null | null | null | #include "Player.h"
Player::Player(Level *level, SDL_Texture* sprite, float x, float y, int id)
: Entity(sprite, x, y)
, m_level(level)
{
std::printf("Player position: %fx%f\n", m_x, m_y);
m_leftPressed = false;
m_rightPressed = false;
m_upPressed = false;
m_downPressed = false;
m_onG... | 20.76087 | 78 | 0.493613 | ScaredStorm |
c7d3cb0b68196ff15483ee6a770f3849d60111ed | 389 | hpp | C++ | UnsharpMask/Include/ImageFilter/ImageFilter.hpp | cristian-szabo/unsharp-mask-opencl | c760a45ff9af38089ca1fa5cfd99a9f85dc36bff | [
"MIT"
] | 4 | 2017-10-28T08:54:55.000Z | 2020-06-08T12:30:30.000Z | UnsharpMask/Include/ImageFilter/ImageFilter.hpp | cristian-szabo/unsharp-mask-opencl | c760a45ff9af38089ca1fa5cfd99a9f85dc36bff | [
"MIT"
] | null | null | null | UnsharpMask/Include/ImageFilter/ImageFilter.hpp | cristian-szabo/unsharp-mask-opencl | c760a45ff9af38089ca1fa5cfd99a9f85dc36bff | [
"MIT"
] | null | null | null | #pragma once
#include "PPM.hpp"
class ImageProcess;
class UNSHARP_MASK_PUBLIC ImageFilter
{
public:
virtual ~ImageFilter();
protected:
virtual bool onLoad(std::shared_ptr<ImageProcess> proc);
virtual void onBefore(std::uint32_t glTexId);
virtual std::uint64_t onApply(const PPM& image) = 0;
... | 14.407407 | 60 | 0.714653 | cristian-szabo |
93a573fa04137ea2d7c1bfd9a3b0c52f5275f052 | 1,172 | cpp | C++ | data/dailyCodingProblem546.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | 2 | 2020-09-04T20:56:23.000Z | 2021-06-11T07:42:26.000Z | data/dailyCodingProblem546.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | data/dailyCodingProblem546.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
Given an array of integers, return a new array where each element in
the new array is the number of smaller elements to the right of that element in the original input array.
For example, given the array [3, 4, 9, 6, 1], return [1, 1, 2, 1, 0], since:
There is 1 small... | 24.93617 | 105 | 0.574232 | vidit1999 |
93a8f707ae5655d1ac5edefbb732624f9294292b | 1,294 | cpp | C++ | Part 9 - Standard Template Library/Range_finding_pair_and_sets.cpp | rudrajit1729/CPP-Learning-Course | 3c39b2f31b10b5e8dfd3214f924c6d8af021dc94 | [
"MIT"
] | null | null | null | Part 9 - Standard Template Library/Range_finding_pair_and_sets.cpp | rudrajit1729/CPP-Learning-Course | 3c39b2f31b10b5e8dfd3214f924c6d8af021dc94 | [
"MIT"
] | null | null | null | Part 9 - Standard Template Library/Range_finding_pair_and_sets.cpp | rudrajit1729/CPP-Learning-Course | 3c39b2f31b10b5e8dfd3214f924c6d8af021dc94 | [
"MIT"
] | null | null | null | #include<iostream>
#include<set>
#include<algorithm>
using namespace std;
void problem()
{
/*
add([2,3])
add([10,20])
add([30,400])
add([401,450]) - Now given a number output the interval
*/
set<pair<int, int>> S;
// Insert in any random order but it will still be s... | 23.107143 | 108 | 0.553323 | rudrajit1729 |
93abe497a662d8cb28f3edee41c32ddbb680bced | 1,880 | cpp | C++ | test_board/pal_arbiter_test.cpp | rdolbeau/XiBus | 44d7267ff802b54cebda7e0a643a90cff71247e4 | [
"MIT"
] | 3 | 2021-12-11T21:53:57.000Z | 2022-03-29T16:44:51.000Z | test_board/pal_arbiter_test.cpp | rdolbeau/XiBus | 44d7267ff802b54cebda7e0a643a90cff71247e4 | [
"MIT"
] | 1 | 2021-12-06T07:49:41.000Z | 2021-12-07T17:17:37.000Z | test_board/pal_arbiter_test.cpp | rdolbeau/XiBus | 44d7267ff802b54cebda7e0a643a90cff71247e4 | [
"MIT"
] | 1 | 2021-12-11T09:31:00.000Z | 2021-12-11T09:31:00.000Z | #include "PalArbiter.h"
#include "verilated.h"
struct TestCase {
const char* name;
uint8_t ID;
uint8_t ARB_I;
bool GRANT;
};
int main(int argc, char **argv, char **env) {
Verilated::commandArgs(argc, argv);
PalArbiter* arbitera = new PalArbiter;
PalArbiter* arbiterb = new PalArbiter;
... | 26.857143 | 102 | 0.592021 | rdolbeau |
93b0a056194e9fa637132278509c8638e439e692 | 8,243 | cpp | C++ | nersis/libstatemodule/luastate.cpp | MoltenPlastic/nersis-love | 4fafd429643c8b546992f5b4a0dca5d4ae5d5427 | [
"MIT"
] | null | null | null | nersis/libstatemodule/luastate.cpp | MoltenPlastic/nersis-love | 4fafd429643c8b546992f5b4a0dca5d4ae5d5427 | [
"MIT"
] | null | null | null | nersis/libstatemodule/luastate.cpp | MoltenPlastic/nersis-love | 4fafd429643c8b546992f5b4a0dca5d4ae5d5427 | [
"MIT"
] | null | null | null | //implementation of a lua state (this file is included in the middle of module.cpp)
class LuaState : public State {
lua_State *L;
int id;
public:
LuaState(lua_State *L, int index);
virtual ~LuaState();
virtual void enter() {
lua_rawgeti(L, LUA_REGISTRYINDEX, id); /* table */
lua_getfield(L, -1, "enter");... | 28.32646 | 83 | 0.581584 | MoltenPlastic |
93b415e4319d7228244f28553e9cb82f858419c6 | 72 | cc | C++ | gcj/apac2016/a/a.cc | stauntonknight/algorithm | 39dbe6dc952ab7db3a469e1ca785003a4660fedb | [
"CNRI-Python"
] | null | null | null | gcj/apac2016/a/a.cc | stauntonknight/algorithm | 39dbe6dc952ab7db3a469e1ca785003a4660fedb | [
"CNRI-Python"
] | null | null | null | gcj/apac2016/a/a.cc | stauntonknight/algorithm | 39dbe6dc952ab7db3a469e1ca785003a4660fedb | [
"CNRI-Python"
] | null | null | null | #include <iostream>
int getNum(int power, int n) {
}
int main() {
}
| 7.2 | 30 | 0.597222 | stauntonknight |
93b906b8c4b078e5be06ce9ccf911b68e15f4c08 | 1,070 | cpp | C++ | lib/AST/ASTNode.cpp | mattapet/dusk-lang | 928b027429a3fd38cece78a89a9619406dcdd9f0 | [
"MIT"
] | 1 | 2022-03-30T22:01:44.000Z | 2022-03-30T22:01:44.000Z | lib/AST/ASTNode.cpp | mattapet/dusk-lang | 928b027429a3fd38cece78a89a9619406dcdd9f0 | [
"MIT"
] | null | null | null | lib/AST/ASTNode.cpp | mattapet/dusk-lang | 928b027429a3fd38cece78a89a9619406dcdd9f0 | [
"MIT"
] | null | null | null | //===--- ASTNode.cpp ------------------------------------------------------===//
//
// dusk-lang
// This source file is part of a dusk-lang project, which is a semestral
// assignement for BI-PJP course at Czech Technical University in Prague.
// The software is provided "AS IS", WITHOUT... | 28.157895 | 80 | 0.581308 | mattapet |
93bc192e6e56eca126b4254ea8d1436324d903c5 | 2,019 | cpp | C++ | 2021/day10.cpp | mly32/advent-of-code | 8c07ac69b3933403357688efc02f6d4adf1d0592 | [
"BSD-3-Clause"
] | null | null | null | 2021/day10.cpp | mly32/advent-of-code | 8c07ac69b3933403357688efc02f6d4adf1d0592 | [
"BSD-3-Clause"
] | null | null | null | 2021/day10.cpp | mly32/advent-of-code | 8c07ac69b3933403357688efc02f6d4adf1d0592 | [
"BSD-3-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
struct solution {
vector<string> lines;
solution(const string& filename) {
string line;
ifstream input_file(filename);
if (!input_file.is_open()) {
cerr << "Could not open the file - '" << filename << "'" << endl;
... | 24.621951 | 73 | 0.464091 | mly32 |
93bd5138539c84a381d7e7b0d4b7629b9912ac63 | 447 | hpp | C++ | Engine/Networking/Packets.hpp | artur-kink/nhns | bc1ccef4e4a9cba9047051d73202ee2b1482066f | [
"Apache-2.0"
] | null | null | null | Engine/Networking/Packets.hpp | artur-kink/nhns | bc1ccef4e4a9cba9047051d73202ee2b1482066f | [
"Apache-2.0"
] | null | null | null | Engine/Networking/Packets.hpp | artur-kink/nhns | bc1ccef4e4a9cba9047051d73202ee2b1482066f | [
"Apache-2.0"
] | null | null | null | #ifndef _PACKETS_
#define _PACKETS_
#include <cstring>
#include "Types.hpp"
#include <stdlib.h>
namespace Packet{
//Keep packet structure in alphabetic order
//All packets must be packed.
#pragma pack(push, 1)
/**
* Entity location information from the server.
*/
struct ServerEntityLoc... | 16.555556 | 51 | 0.621924 | artur-kink |
93bf27d1fbd5252030c3a7e7683ce4e9b0538823 | 3,047 | cc | C++ | src/player.cc | lxndr/node-gst | 9f2d49ffbdac7cc938b411f57b4cbfc302edb84b | [
"MIT"
] | null | null | null | src/player.cc | lxndr/node-gst | 9f2d49ffbdac7cc938b411f57b4cbfc302edb84b | [
"MIT"
] | null | null | null | src/player.cc | lxndr/node-gst | 9f2d49ffbdac7cc938b411f57b4cbfc302edb84b | [
"MIT"
] | null | null | null | /*
* Copyright 2018 Humanity
*/
#include <vector>
#include <string>
#include "player.h"
static Nan::Persistent<v8::Function> constructor;
v8::Local<v8::Function> Player::Init() {
auto tpl = Nan::New<v8::FunctionTemplate>(New);
tpl->SetClassName(Nan::New("GstPlayer").ToLocalChecked());
tpl->InstanceTemplate()... | 27.205357 | 81 | 0.70233 | lxndr |
93c4b43a82bd22e095c5d0b5e1ceed48a21471fb | 2,501 | cpp | C++ | Estructura/plantilla de archivo binario/main.cpp | dkmaster17/DKM | ef22411e57cb37f18b9ddd2305001050855cd137 | [
"MIT"
] | null | null | null | Estructura/plantilla de archivo binario/main.cpp | dkmaster17/DKM | ef22411e57cb37f18b9ddd2305001050855cd137 | [
"MIT"
] | null | null | null | Estructura/plantilla de archivo binario/main.cpp | dkmaster17/DKM | ef22411e57cb37f18b9ddd2305001050855cd137 | [
"MIT"
] | null | null | null | #include "Archivo.h"
class Alumno
{
unsigned int ced;
char nom[30];
public:
Alumno() { ced=0; }
Alumno( char *n, int c ) { ced=c; strcpy(nom,n); }
int get_clave() { return ced; }
char *get_nom() { return nom; }
... | 31.2625 | 74 | 0.458217 | dkmaster17 |
93c87521b40d86e1102b745d288fd79e5e300ac7 | 194 | cpp | C++ | Challenges/codcad_par_ou_impar.cpp | oJordany/CodCad | d3c76d8631583428f5e32caf79a421f2487dbd4c | [
"MIT"
] | null | null | null | Challenges/codcad_par_ou_impar.cpp | oJordany/CodCad | d3c76d8631583428f5e32caf79a421f2487dbd4c | [
"MIT"
] | 8 | 2021-12-23T13:55:40.000Z | 2022-01-03T18:55:52.000Z | Challenges/codcad_par_ou_impar.cpp | oJordany/CodCad | d3c76d8631583428f5e32caf79a421f2487dbd4c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int b, c;
cin >> b >> c;
if ((b+c) % 2 == 0){
cout << "Bino";
}else{
cout << "Cino";
}
return 0;
}
| 12.933333 | 24 | 0.42268 | oJordany |
93cf34a5bb4da518ad3f64c17f1c1dd1937feb37 | 5,000 | cpp | C++ | test/board/board_test.cpp | portatlas/tictactoe-cpp | 2bae6287881f02e8608c5e3cc7d0031724f09dda | [
"MIT"
] | null | null | null | test/board/board_test.cpp | portatlas/tictactoe-cpp | 2bae6287881f02e8608c5e3cc7d0031724f09dda | [
"MIT"
] | null | null | null | test/board/board_test.cpp | portatlas/tictactoe-cpp | 2bae6287881f02e8608c5e3cc7d0031724f09dda | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "../../lib/catch.hpp"
#include "../../src/marker.hpp"
#include "../../src/board/board.hpp"
SCENARIO ("Board: Empty Board ", "[empty-board]") {
std::vector<std::string> empty_grid = {" ", " ", " ",
" ", " ", " ",
... | 30.487805 | 75 | 0.4278 | portatlas |
93cfd92585dd834d156563d2de55120aebce2403 | 572 | cpp | C++ | Fractal Image Generator/Mandelbrot.cpp | PhantomSabre/Fractal-Image-Generator | 9419be7638ea9e5522c09304af9e20f6cd1e2cb9 | [
"MIT"
] | null | null | null | Fractal Image Generator/Mandelbrot.cpp | PhantomSabre/Fractal-Image-Generator | 9419be7638ea9e5522c09304af9e20f6cd1e2cb9 | [
"MIT"
] | null | null | null | Fractal Image Generator/Mandelbrot.cpp | PhantomSabre/Fractal-Image-Generator | 9419be7638ea9e5522c09304af9e20f6cd1e2cb9 | [
"MIT"
] | null | null | null | #include <complex>
#include "Mandelbrot.h"
namespace frctl
{
Mandelbrot::Mandelbrot() {
}
Mandelbrot::~Mandelbrot()
{}
//Mandelbrot Algorithm here
int Mandelbrot::getIterations(double x, double y)
{
std::complex<double> z = 0;
std::complex<double> c(x, y); //passing in two numbers into this;
int itera... | 15.459459 | 86 | 0.65035 | PhantomSabre |
93d13743765166a697c43974a5dcae7b9a26404a | 581 | cpp | C++ | Part_Five/Net_income.cpp | ayushpareek179/CPP-course | b2b8b8d2dd06cd772e3c9838abd5b841237bb306 | [
"MIT"
] | null | null | null | Part_Five/Net_income.cpp | ayushpareek179/CPP-course | b2b8b8d2dd06cd772e3c9838abd5b841237bb306 | [
"MIT"
] | null | null | null | Part_Five/Net_income.cpp | ayushpareek179/CPP-course | b2b8b8d2dd06cd772e3c9838abd5b841237bb306 | [
"MIT"
] | null | null | null | //To calculate the net income based on an allowance and deduction percentage
#include <iostream>
using namespace std;
int main()
{
float income, net, allowance_percent, deduction_percent;
cout<<"Enter the basic salary, percentage of allowances and percentage of deductions\n";
cin>>income>>allowance_percent>>deducti... | 34.176471 | 136 | 0.748709 | ayushpareek179 |
93d4b924650078bb8d2ed5770c5e0d4ad625d61f | 28 | cc | C++ | dev/form-poll/form-poll-srch.cc | chlewey/ilecto-util | a48afc43fb7a355b49d4f9ec4626a7f6dbb32c6c | [
"BSD-3-Clause"
] | null | null | null | dev/form-poll/form-poll-srch.cc | chlewey/ilecto-util | a48afc43fb7a355b49d4f9ec4626a7f6dbb32c6c | [
"BSD-3-Clause"
] | null | null | null | dev/form-poll/form-poll-srch.cc | chlewey/ilecto-util | a48afc43fb7a355b49d4f9ec4626a7f6dbb32c6c | [
"BSD-3-Clause"
] | null | null | null | #include "form-poll-srch.h"
| 14 | 27 | 0.714286 | chlewey |
93e950a39232154d4647947860306ddaa38a4dfa | 332 | cpp | C++ | cards/MalaLapka.cpp | programistagd/TrachOnline | 2acd9ffac0add87fd0f1824ae2b75132933496c7 | [
"MIT"
] | 3 | 2016-06-07T11:55:23.000Z | 2016-06-09T17:17:52.000Z | cards/MalaLapka.cpp | radeusgd/TrachOnline | 2acd9ffac0add87fd0f1824ae2b75132933496c7 | [
"MIT"
] | 25 | 2016-06-13T16:14:18.000Z | 2017-07-29T08:12:23.000Z | cards/MalaLapka.cpp | radeusgd/TrachOnline | 2acd9ffac0add87fd0f1824ae2b75132933496c7 | [
"MIT"
] | null | null | null | #include "cards/MalaLapka.hpp"
using namespace Cards;
string MalaLapka::getName(){
return "mala_lapka";
}
CardPtr MalaLapka::makeNew(){
return make_shared<MalaLapka>();
}
void MalaLapka::reset(){
Feature::reset();
value = 1;
}
void MalaLapka::apply(GameServer::Player& player){
player.handCards ... | 15.809524 | 50 | 0.680723 | programistagd |
93eb077ffe00c08369ff5127a26010d2f26ac52d | 670 | cpp | C++ | kittycat/forms/uigetpin.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | 1 | 2021-02-05T23:20:07.000Z | 2021-02-05T23:20:07.000Z | kittycat/forms/uigetpin.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | null | null | null | kittycat/forms/uigetpin.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ui_getpin.h"
#include "uigetpin.h"
GetPinView::GetPinView(QString email, QString pcName, QWidget *parent)
: QDialog(parent, Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
, ui(new Ui::GetPin)
{
ui->setupUi(this);
ui->lbEmail->setText(email);
... | 20.9375 | 96 | 0.702985 | siilky |
93f1b5d463ad5f948dafe4ca4077ebeda6a6f920 | 2,399 | cpp | C++ | Game/Source/Collision.cpp | Omicrxn/Apollo-Mission | 5eec170a9ca9250acfef27c81cc16c4608a78f9f | [
"MIT"
] | null | null | null | Game/Source/Collision.cpp | Omicrxn/Apollo-Mission | 5eec170a9ca9250acfef27c81cc16c4608a78f9f | [
"MIT"
] | null | null | null | Game/Source/Collision.cpp | Omicrxn/Apollo-Mission | 5eec170a9ca9250acfef27c81cc16c4608a78f9f | [
"MIT"
] | null | null | null | #include "Collision.h"
RectCollision::RectCollision(SDL_Rect collider, Module* listener) {
this->collider = collider;
this->listener = listener;
}
bool RectCollision::Intersects(SDL_Rect& colliderB) {
return (collider.x < (colliderB.x + colliderB.w) &&
(collider.x + collider.w) > colliderB.x &&
collider.y < ... | 23.291262 | 108 | 0.702793 | Omicrxn |
93f21977ed594d80eebd5ff4c14837e74471695c | 2,064 | cpp | C++ | sources/Engine/Modules/Graphics/GraphicsSystem/Camera.cpp | n-paukov/swengine | ca7441f238e8834efff5d2b61b079627824bf3e4 | [
"MIT"
] | 22 | 2017-07-26T17:42:56.000Z | 2022-03-21T22:12:52.000Z | sources/Engine/Modules/Graphics/GraphicsSystem/Camera.cpp | n-paukov/swengine | ca7441f238e8834efff5d2b61b079627824bf3e4 | [
"MIT"
] | 50 | 2017-08-02T19:37:48.000Z | 2020-07-24T21:10:38.000Z | sources/Engine/Modules/Graphics/GraphicsSystem/Camera.cpp | n-paukov/swengine | ca7441f238e8834efff5d2b61b079627824bf3e4 | [
"MIT"
] | 4 | 2018-08-20T08:12:48.000Z | 2020-07-19T14:10:05.000Z | #include "precompiled.h"
#pragma hdrstop
#include "Camera.h"
Camera::Camera()
: m_transform(new Transform())
{
}
Camera::~Camera()
{
}
Transform* Camera::getTransform() const
{
return m_transform.get();
}
const Frustum& Camera::getFrustum()
{
if (m_needFrustumUpdate || m_transform->isCacheOutdated()) {
... | 17.491525 | 109 | 0.739341 | n-paukov |
93f2f04242d771dd7a604be5f80dadc16ea0037b | 1,630 | hpp | C++ | src/wrappers/glfw/Exception.hpp | JoaoBaptMG/INF443-Project | 8c43007a8092931b125cc7feae2adf162e04534e | [
"MIT"
] | 8 | 2020-06-09T00:43:39.000Z | 2021-09-27T13:55:46.000Z | src/wrappers/glfw/Exception.hpp | JoaoBaptMG/INF584-Project | a9cf6d4e7d32eb62e7b20fe465c9e75989cca6ac | [
"MIT"
] | 1 | 2020-06-09T02:38:55.000Z | 2020-06-09T13:28:13.000Z | src/wrappers/glfw/Exception.hpp | JoaoBaptMG/INF584-Project | a9cf6d4e7d32eb62e7b20fe465c9e75989cca6ac | [
"MIT"
] | 3 | 2020-06-09T00:28:11.000Z | 2020-12-30T08:07:34.000Z | #pragma once
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <stdexcept>
namespace glfw
{
class Exception : public std::runtime_error
{
public:
Exception(const char* what) : runtime_error(what) {}
};
#define EXCEPTION_CLASS(name) class name final : public Exception \
{\
public:\
name(const char* what)... | 26.290323 | 67 | 0.770552 | JoaoBaptMG |
93f4fc6e924107501755d219494537308dd17f74 | 4,453 | hpp | C++ | remisen_run/include/shape/cube.hpp | tobanteGaming/template-opengl | 7eac0d5c49f93b0567cc49fae2b88fd72686e554 | [
"MIT"
] | 4 | 2021-07-11T02:07:38.000Z | 2022-03-19T06:14:32.000Z | remisen_run/include/shape/cube.hpp | tobanteGaming/template-opengl | 7eac0d5c49f93b0567cc49fae2b88fd72686e554 | [
"MIT"
] | null | null | null | remisen_run/include/shape/cube.hpp | tobanteGaming/template-opengl | 7eac0d5c49f93b0567cc49fae2b88fd72686e554 | [
"MIT"
] | null | null | null | #pragma once
#include <GL/glew.h>
namespace tobanteGaming
{
// Our vertices. Three consecutive floats give a 3D vertex; Three consecutive
// vertices give a triangle. A cube has 6 faces with 2 triangles each, so this
// makes 6*2=12 triangles, and 12*3 vertices
static const GLfloat g_vertex_buffer_data[] = {
-1.0... | 32.268116 | 78 | 0.525488 | tobanteGaming |
93f8503058898c5eae1871a38fcd9a79863fade2 | 479 | cpp | C++ | src/snek.cpp | aleksiy325/snek-two | da589b945e347c5178f6cc0c8b190a28651cce50 | [
"MIT"
] | 9 | 2018-03-13T03:34:46.000Z | 2021-12-17T16:30:27.000Z | src/snek.cpp | mapld/snek-two | da589b945e347c5178f6cc0c8b190a28651cce50 | [
"MIT"
] | null | null | null | src/snek.cpp | mapld/snek-two | da589b945e347c5178f6cc0c8b190a28651cce50 | [
"MIT"
] | 5 | 2018-03-13T03:41:38.000Z | 2022-02-15T08:02:43.000Z | #include "strategies/random_snake.cpp"
#include "strategies/eat_snake.cpp"
#include "arena/arena.cpp"
int main(int argc, char **argv){
Arena arena = Arena(10, 10, 5, 1000);
RandomSnake rsnake = RandomSnake{};
Strategy* strat = &rsnake;
EatSnake esnake = EatSnake{};
Strategy* estrat = &esnak... | 23.95 | 40 | 0.655532 | aleksiy325 |
93f86c81425598e98c8add36f7bc444ca7f0ff86 | 3,061 | cpp | C++ | example/up2date_client/main.cpp | rtsoft-gmbh/up2date-cpp | 6df40513617d54d72813c49d95df236474379631 | [
"Apache-2.0"
] | 3 | 2022-03-24T14:56:29.000Z | 2022-03-25T12:42:05.000Z | example/up2date_client/main.cpp | rtsoft-gmbh/up2date-cpp | 6df40513617d54d72813c49d95df236474379631 | [
"Apache-2.0"
] | 9 | 2022-03-15T18:27:49.000Z | 2022-03-25T13:00:28.000Z | example/up2date_client/main.cpp | rtsoft-gmbh/up2date-cpp | 6df40513617d54d72813c49d95df236474379631 | [
"Apache-2.0"
] | null | null | null | #include "basic_handler.hpp"
#include "ritms_dps.hpp"
#include <exception>
#include <thread>
const char *AUTH_CERT_PATH_ENV_NAME = "CERT_PATH";
const char *PROVISIONING_ENDPOINT_ENV_NAME = "PROVISIONING_ENDPOINT";
const char *X_APIG_TOKEN_ENV_NAME = "X_APIG_TOKEN";
using namespace ritms::dps;
using namespace ddi;
cl... | 42.513889 | 130 | 0.608298 | rtsoft-gmbh |
93fd448608a779c8db5c904028e225426c228234 | 721 | cpp | C++ | VModel - 2017/Vmodel2017S3E3 - Luchian.cpp | LoopieDoo/Variante-INFO | fe42ea7b1b2fb88594c5f103129ee4fa3971ba10 | [
"MIT"
] | null | null | null | VModel - 2017/Vmodel2017S3E3 - Luchian.cpp | LoopieDoo/Variante-INFO | fe42ea7b1b2fb88594c5f103129ee4fa3971ba10 | [
"MIT"
] | null | null | null | VModel - 2017/Vmodel2017S3E3 - Luchian.cpp | LoopieDoo/Variante-INFO | fe42ea7b1b2fb88594c5f103129ee4fa3971ba10 | [
"MIT"
] | 1 | 2021-09-24T22:44:08.000Z | 2021-09-24T22:44:08.000Z | #include <iostream>
using namespace std;
/*
Subprogramul nrDiv are doi parametri, a și b (a≤b), prin care primeste câte un număr
natural din intervalul [1,10^9]. Subprogramul returnează numărul valorilor din intervalul
[a,b] care pot fi scrise ca produs de două numere naturale consecutive.
Scrieti definitia completă ... | 20.6 | 89 | 0.554785 | LoopieDoo |
9e02f89180c8e757402b76819f4aef2c6996d36b | 910 | cpp | C++ | main/main.cpp | ivyknob/avionics_wifi | 2e21b2af6dd01045663c69df119d5fabdfd25ff7 | [
"MIT"
] | null | null | null | main/main.cpp | ivyknob/avionics_wifi | 2e21b2af6dd01045663c69df119d5fabdfd25ff7 | [
"MIT"
] | 4 | 2020-04-13T09:09:34.000Z | 2021-08-31T16:47:29.000Z | main/main.cpp | ivyknob/avionics_wifi | 2e21b2af6dd01045663c69df119d5fabdfd25ff7 | [
"MIT"
] | null | null | null | #include "main.hpp"
DataStorage storage;
// Status status;
void init_system() {
gpio_pad_select_gpio(BLINK_GPIO);
gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT);
// wifi_setup();
esp_err_t ret = nvs_flash_init();
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
ESP_ERRO... | 26.764706 | 81 | 0.708791 | ivyknob |
9e0be4c95944c47b45f72799b9c89bcf8dd1a8e0 | 13,909 | hpp | C++ | framework/areg/base/SharedBuffer.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 70 | 2021-07-20T11:26:16.000Z | 2022-03-27T11:17:43.000Z | framework/areg/base/SharedBuffer.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 32 | 2021-07-31T05:20:44.000Z | 2022-03-20T10:11:52.000Z | framework/areg/base/SharedBuffer.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 40 | 2021-11-02T09:45:38.000Z | 2022-03-27T11:17:46.000Z | #pragma once
/************************************************************************
* This file is part of the AREG SDK core engine.
* AREG SDK is dual-licensed under Free open source (Apache version 2.0
* License) and Commercial (with various pricing models) licenses, depending
* on the nature of the project (c... | 42.405488 | 126 | 0.562226 | Ali-Nasrolahi |
9e1260b1c4fe8ef58f2cc639b320e2b2b3d2ab1e | 452 | cpp | C++ | Check Capital.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 2 | 2021-10-01T04:20:04.000Z | 2021-10-01T04:20:06.000Z | Check Capital.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 1 | 2021-10-01T18:00:09.000Z | 2021-10-01T18:00:09.000Z | Check Capital.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 8 | 2021-10-01T04:20:38.000Z | 2022-03-19T17:05:05.000Z | class Solution {
public:
bool detectCapitalUse(string word) {
int u=0;
int l=0;
for(int i=0;i<word.size();i++){
if(word[i]>=65&&word[i]<=90)
u++;
else if(word[i]>=97&&word[i]<=122)
l++;
}
if(u==word.size()||l==word.size... | 23.789474 | 47 | 0.426991 | Subhash3 |
9e1b53cdb570a629d5a43418b190dda178e7a274 | 8,019 | cpp | C++ | plugins/vkeyboard/vkeyboard.cpp | eayus/wayfire | e71beff56eb8d82b16d02a48efc66fa127886d35 | [
"MIT"
] | null | null | null | plugins/vkeyboard/vkeyboard.cpp | eayus/wayfire | e71beff56eb8d82b16d02a48efc66fa127886d35 | [
"MIT"
] | null | null | null | plugins/vkeyboard/vkeyboard.cpp | eayus/wayfire | e71beff56eb8d82b16d02a48efc66fa127886d35 | [
"MIT"
] | null | null | null | #include <core.hpp>
#include <debug.hpp>
#include <config.hpp>
#include <view.hpp>
#include <output.hpp>
#include <plugin.hpp>
#include <signal-definitions.hpp>
#include <workspace-manager.hpp>
#include <linux/input-event-codes.h>
#include "proto/wayfire-shell-server.h"
class vkeyboard : public wayfire_plugin_t
{
... | 28.537367 | 100 | 0.667415 | eayus |
9e1d1a0125375d4de5f27d874f39293343130325 | 2,058 | cpp | C++ | cetty-core/src/cetty/handler/codec/http/CookieHeaderNames.cpp | frankee/cetty2 | 62ac0cd1438275097e47a9ba471e72efd2746ded | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 26 | 2015-11-08T10:58:21.000Z | 2021-02-25T08:27:26.000Z | cetty-core/src/cetty/handler/codec/http/CookieHeaderNames.cpp | frankee/cetty2 | 62ac0cd1438275097e47a9ba471e72efd2746ded | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2019-02-18T08:46:17.000Z | 2019-02-18T08:46:17.000Z | cetty-core/src/cetty/handler/codec/http/CookieHeaderNames.cpp | frankee/cetty2 | 62ac0cd1438275097e47a9ba471e72efd2746ded | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 8 | 2016-02-27T02:37:10.000Z | 2021-09-29T05:25:00.000Z | /*
* Copyright (c) 2010-2011 frankee zhou (frankee.zhou at gmail dot com)
* Distributed under under the Apache License, version 2.0 (the "License").
*/
#include <map>
#include <boost/algorithm/string/case_conv.hpp>
#include <cetty/handler/codec/http/CookieHeaderNames.h>
namespace cetty {
namespace handler {
namesp... | 38.111111 | 81 | 0.733722 | frankee |
9e208c41429c363e1ae00723158281882173af82 | 952 | cpp | C++ | raygame/Enemy.cpp | JCoshua/SteeringBehaivors | 9c14f69f9be4da46de9a5db693dc14a801a41712 | [
"MIT"
] | null | null | null | raygame/Enemy.cpp | JCoshua/SteeringBehaivors | 9c14f69f9be4da46de9a5db693dc14a801a41712 | [
"MIT"
] | null | null | null | raygame/Enemy.cpp | JCoshua/SteeringBehaivors | 9c14f69f9be4da46de9a5db693dc14a801a41712 | [
"MIT"
] | null | null | null | #include "Enemy.h"
#include "Transform2D.h"
#include "SeekDecision.h"
#include "IdleDecision.h"
#include "WanderDecision.h"
#include "IsAggressiveDecision.h"
#include "InRangeDecision.h"
#include "DecisionComponent.h"
#include <Vector2.h>
void Enemy::start()
{
Agent::start();
IdleDecision* idle = new IdleDecision()... | 29.75 | 119 | 0.756303 | JCoshua |
9e208f8d3c31f4ab6a37df033f145eb11eb1089f | 765 | cpp | C++ | shared/source/gmm_helper/windows/gmm_configure_device_address_space_drm_or_wddm.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 778 | 2017-09-29T20:02:43.000Z | 2022-03-31T15:35:28.000Z | shared/source/gmm_helper/windows/gmm_configure_device_address_space_drm_or_wddm.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 478 | 2018-01-26T16:06:45.000Z | 2022-03-30T10:19:10.000Z | shared/source/gmm_helper/windows/gmm_configure_device_address_space_drm_or_wddm.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 215 | 2018-01-30T08:39:32.000Z | 2022-03-29T11:08:51.000Z | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gmm_helper/client_context/gmm_client_context.h"
#include "shared/source/gmm_helper/windows/gmm_memory_base.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/os_interface/windows/window... | 31.875 | 79 | 0.597386 | troels |
9e24d276b8f5690beca3a05b0978b80faa042c04 | 5,110 | cc | C++ | ch14_markov_decision_processes/src/main.cc | Amit10311/probabilistic_robotics | d31a9f1a3f5e500bd85d98d7fb4fb5743d1222ad | [
"MIT"
] | 959 | 2018-05-21T00:29:23.000Z | 2022-03-29T03:53:05.000Z | ch14_markov_decision_processes/src/main.cc | Amit10311/probabilistic_robotics | d31a9f1a3f5e500bd85d98d7fb4fb5743d1222ad | [
"MIT"
] | 9 | 2018-11-10T10:43:07.000Z | 2021-05-03T09:42:03.000Z | ch14_markov_decision_processes/src/main.cc | Amit10311/probabilistic_robotics | d31a9f1a3f5e500bd85d98d7fb4fb5743d1222ad | [
"MIT"
] | 347 | 2018-05-17T13:18:08.000Z | 2022-03-29T03:53:13.000Z | #include "markovdp.h"
void move(const std::valarray<int>&, const std::valarray<int>&, std::map<std::valarray<int>, double, valarray_comp>&,double&);
void move_rdm(const std::valarray<int>&, const std::valarray<int>&, std::map<std::valarray<int>, double, valarray_comp>&,double&);
void warp(const std::valarray<int>&, st... | 33.398693 | 148 | 0.568102 | Amit10311 |
9e2790ee393aa1834c2123024d8bbb5ee6c4101f | 3,150 | cpp | C++ | libs/anari_test_scenes/scenes/cornell_box_cylinder_geom.cpp | Piromancer/ANARI-SDK | 636b8521b0f0c05a4d7b9cf50a643377d4cd00b9 | [
"Apache-2.0"
] | null | null | null | libs/anari_test_scenes/scenes/cornell_box_cylinder_geom.cpp | Piromancer/ANARI-SDK | 636b8521b0f0c05a4d7b9cf50a643377d4cd00b9 | [
"Apache-2.0"
] | null | null | null | libs/anari_test_scenes/scenes/cornell_box_cylinder_geom.cpp | Piromancer/ANARI-SDK | 636b8521b0f0c05a4d7b9cf50a643377d4cd00b9 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The Khronos Group
// SPDX-License-Identifier: Apache-2.0
#include "cornell_box_cylinder_geom.h"
namespace anari {
namespace scenes {
// cone mesh data
static std::vector<glm::vec3> vertices = {
// Cylinder
{0.00f, 0.80f, 0.00f},
{0.00f, -0.80f, 0.00f}};
static std::vector<float> radius... | 24.80315 | 79 | 0.64 | Piromancer |
9e287519aa0fc0426501b3bbd19f6df8d2cc1ed2 | 910 | cpp | C++ | examples/qcor_demos/pirq_workshop/qcor/demo3_nisq_noise_mitigation/mitiq_noise_mitigation.cpp | ahayashi/qcor | 929988b92cfec52d321c48e6cc01545e46edc024 | [
"BSD-3-Clause"
] | null | null | null | examples/qcor_demos/pirq_workshop/qcor/demo3_nisq_noise_mitigation/mitiq_noise_mitigation.cpp | ahayashi/qcor | 929988b92cfec52d321c48e6cc01545e46edc024 | [
"BSD-3-Clause"
] | null | null | null | examples/qcor_demos/pirq_workshop/qcor/demo3_nisq_noise_mitigation/mitiq_noise_mitigation.cpp | ahayashi/qcor | 929988b92cfec52d321c48e6cc01545e46edc024 | [
"BSD-3-Clause"
] | null | null | null | /// mitiq_noise_mitigation.cpp: Run error mitigation with mitiq ZNE (zero-noise extrapolation)
/// Compile:
/// $ qcor -qpu aer[noise-model:noise_model.json] -shots 8192 -em mitiq-zne
/// mitiq_noise_mitigation.cpp Execute: specify the number of repeating CNOT
/// ./a.out N
// Repeating CNOT's to evaluate noise mitiga... | 29.354839 | 94 | 0.637363 | ahayashi |
9e364de25be765a96eed09a558dac3cc907c7fd2 | 22,479 | hpp | C++ | include/BStringt.hpp | ANOTHEL/Awesome-mix-vol.1 | 58134a7300ce057343d622511600623eaae10042 | [
"Apache-2.0"
] | null | null | null | include/BStringt.hpp | ANOTHEL/Awesome-mix-vol.1 | 58134a7300ce057343d622511600623eaae10042 | [
"Apache-2.0"
] | null | null | null | include/BStringt.hpp | ANOTHEL/Awesome-mix-vol.1 | 58134a7300ce057343d622511600623eaae10042 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021~2022 `anothel` All rights reserved
#ifndef BSTRINGT_HPP_
#define BSTRINGT_HPP_
#include "include/amvalloc.hpp"
#include "include/amvcore.hpp"
#include "include/amvsimpstr.hpp"
#include "salieri-src/salieri.h"
namespace AMV {
template <typename BaseType, class StringTraits>
class BStringT : public ... | 30.132708 | 80 | 0.615196 | ANOTHEL |
9e3671d34f079f3ffe3b580e1f08082deb37ef71 | 177 | cpp | C++ | TestComponent/Class.cpp | jkotas/TestWinRT | e7682136641caf9713268761ec8188ca452e85f9 | [
"MIT"
] | 14 | 2019-10-29T02:39:37.000Z | 2022-02-21T03:45:58.000Z | TestComponent/Class.cpp | jkotas/TestWinRT | e7682136641caf9713268761ec8188ca452e85f9 | [
"MIT"
] | 24 | 2020-01-30T16:28:35.000Z | 2022-03-17T15:50:45.000Z | TestComponent/Class.cpp | jkotas/TestWinRT | e7682136641caf9713268761ec8188ca452e85f9 | [
"MIT"
] | 8 | 2019-10-31T13:51:54.000Z | 2021-10-10T21:29:44.000Z | #include "pch.h"
#include "Class.h"
#include "Class.g.cpp"
namespace winrt::TestComponent::implementation
{
int32_t Class::One()
{
return 1;
}
}
| 14.75 | 47 | 0.581921 | jkotas |
9e38b73cce6b3c456e9db8140791c625fa05cf02 | 6,145 | cpp | C++ | src/IKSolverRT.cpp | GuillaumeVDu/RTIKIDQualisys | 9b70e2c0eb1f3492f74119c4339a6f5404ede290 | [
"MIT"
] | 2 | 2019-07-25T18:11:13.000Z | 2019-09-08T16:02:23.000Z | src/IKSolverRT.cpp | GuillaumeVDu/RTIKIDQualisys | 9b70e2c0eb1f3492f74119c4339a6f5404ede290 | [
"MIT"
] | null | null | null | src/IKSolverRT.cpp | GuillaumeVDu/RTIKIDQualisys | 9b70e2c0eb1f3492f74119c4339a6f5404ede290 | [
"MIT"
] | null | null | null | // Copyright (c) 2015, Guillaume Durandau and Massimo Sartori
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// - Redistributions of source code must retain the above copyright notice,
// thi... | 33.579235 | 130 | 0.732954 | GuillaumeVDu |
9e3d12fb5ec3726a9bc8b01bfde2273c6ed4b9f5 | 2,779 | cpp | C++ | src/Switch.System.Drawing/src/Switch/System/Drawing/FontFamily.cpp | victor-timoshin/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 4 | 2020-02-11T13:22:58.000Z | 2022-02-24T00:37:43.000Z | src/Switch.System.Drawing/src/Switch/System/Drawing/FontFamily.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | null | null | null | src/Switch.System.Drawing/src/Switch/System/Drawing/FontFamily.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 2 | 2020-02-01T02:19:01.000Z | 2021-12-30T06:44:00.000Z | #include <Switch/System/Collections/Generic/List.hpp>
#include <Switch/System/NotImplementedException.hpp>
#include "../../../../include/Switch/System/Drawing/FontFamily.hpp"
#include "../../../../include/Switch/System/Drawing/Text/InstalledFontCollection.hpp"
#include "../../../Native/Api.hpp"
System::Drawing::FontFa... | 42.106061 | 122 | 0.74955 | victor-timoshin |
9e42d79251e7022f24660c2137062505dfc3b13b | 38,037 | cpp | C++ | server/ClientHandler.cpp | cjcliffe/SoapyRemote | aa8208879ef09c10350a1b4a95bd612ba544c50e | [
"BSL-1.0"
] | 1 | 2021-05-16T21:00:09.000Z | 2021-05-16T21:00:09.000Z | server/ClientHandler.cpp | cjcliffe/SoapyRemote | aa8208879ef09c10350a1b4a95bd612ba544c50e | [
"BSL-1.0"
] | null | null | null | server/ClientHandler.cpp | cjcliffe/SoapyRemote | aa8208879ef09c10350a1b4a95bd612ba544c50e | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2015-2015 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#include "ClientHandler.hpp"
#include "ServerStreamData.hpp"
#include "LogForwarding.hpp"
#include "SoapyRemoteDefs.hpp"
#include "FormatToElemSize.hpp"
#include "SoapyURLUtils.hpp"
#include "SoapyRPCSocket.hpp"
#include "SoapyRPCPacker.hpp"
#inc... | 33.840747 | 116 | 0.396719 | cjcliffe |
9e4908e36ce15baf336b7934459ed7ff00ef8aa3 | 25,444 | hpp | C++ | disc-fe/src/evaluators/Panzer_GatherSolution_BlockedEpetra_decl.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T03:49:50.000Z | 2022-03-22T03:49:50.000Z | disc-fe/src/evaluators/Panzer_GatherSolution_BlockedEpetra_decl.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | disc-fe/src/evaluators/Panzer_GatherSolution_BlockedEpetra_decl.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | // @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85... | 31.964824 | 79 | 0.591141 | hillyuan |
9e4a6a22b25123d459a150af8cd659e1bbbd7a3c | 25,168 | cpp | C++ | code/Plugins/Renderer/Direct3D11/Source/T3DD3D11Mappings.cpp | answerear/Fluid | 7b7992547a7d3ac05504dd9127e779eeeaddb3ab | [
"MIT"
] | 1 | 2021-11-16T15:11:52.000Z | 2021-11-16T15:11:52.000Z | code/Plugins/Renderer/Direct3D11/Source/T3DD3D11Mappings.cpp | answerear/Fluid | 7b7992547a7d3ac05504dd9127e779eeeaddb3ab | [
"MIT"
] | null | null | null | code/Plugins/Renderer/Direct3D11/Source/T3DD3D11Mappings.cpp | answerear/Fluid | 7b7992547a7d3ac05504dd9127e779eeeaddb3ab | [
"MIT"
] | null | null | null | /*******************************************************************************
* This file is part of Tiny3D (Tiny 3D Graphic Rendering Engine)
* Copyright (C) 2015-2020 Answer Wong
* For latest info, see https://github.com/answerear/Tiny3D
*
* This program is free software: you can redistribute it and/or modi... | 37.452381 | 157 | 0.560791 | answerear |
eafbf30cff755e79f9b6a2680e9c4834be8f1257 | 586 | hpp | C++ | source/lucio/core/callback.hpp | joserossini/lucioengine | 643941cf29e23824af28e60df62bb1aaa0f6a7f1 | [
"MIT"
] | null | null | null | source/lucio/core/callback.hpp | joserossini/lucioengine | 643941cf29e23824af28e60df62bb1aaa0f6a7f1 | [
"MIT"
] | null | null | null | source/lucio/core/callback.hpp | joserossini/lucioengine | 643941cf29e23824af28e60df62bb1aaa0f6a7f1 | [
"MIT"
] | null | null | null | #include <functional>
namespace lucio {
/*
* CallBack
* Use to call class member function from another class or Lambda.
*
* Example:
* {
* auto funcCallBack = new CallBack<void>([]() {
* std::cout << "Hello World\n";
* });
*
* funcCallBack->execute();
* }
*
* Note: Can also be use whit std::bind"
... | 18.3125 | 76 | 0.602389 | joserossini |
eaff3a558d9b8924d4c9eeb2bd85e06f0e4d0359 | 5,162 | hpp | C++ | include/incavery/core.hpp | helixd2s/Incavery | b33737fc879fe9ef52158d8193b95633eef1321b | [
"BSD-3-Clause"
] | 6 | 2021-02-14T22:51:28.000Z | 2021-07-30T18:35:25.000Z | include/incavery/core.hpp | helixd2s/Incavery | b33737fc879fe9ef52158d8193b95633eef1321b | [
"BSD-3-Clause"
] | null | null | null | include/incavery/core.hpp | helixd2s/Incavery | b33737fc879fe9ef52158d8193b95633eef1321b | [
"BSD-3-Clause"
] | null | null | null | #pragma once
//
#include <glm/glm.hpp>
#include <vkf/swapchain.hpp>
//
namespace icv {
//
struct DescriptorInfo {
VkDescriptorSetLayout layout = VK_NULL_HANDLE;
//VkPipelineLayout pipelineLayout = VK_NULL_HANDLE;
};
//
struct GraphicsPipelinePath
{
std::string ver... | 36.352113 | 207 | 0.623596 | helixd2s |
d802831f56e4e78ff6ca7bf64bfa12cce270be68 | 401 | hpp | C++ | old/Net.Server.Basic/inc/net/CFlushEvent.hpp | raduionita/project-hermes | 7935a1486d7b0f3c05208d2c7a2e36552581a23b | [
"MIT"
] | null | null | null | old/Net.Server.Basic/inc/net/CFlushEvent.hpp | raduionita/project-hermes | 7935a1486d7b0f3c05208d2c7a2e36552581a23b | [
"MIT"
] | null | null | null | old/Net.Server.Basic/inc/net/CFlushEvent.hpp | raduionita/project-hermes | 7935a1486d7b0f3c05208d2c7a2e36552581a23b | [
"MIT"
] | null | null | null | #ifndef __net_cflushevent_hpp__
#define __net_cflushevent_hpp__
#include <core/CEvent.hpp>
#include <net.hpp>
#include <net/CConnection.hpp>
namespace net
{
class CFlushEvent : public core::CEvent
{
public:
CConnection& mConnection;
public:
CFlushEvent(CConnection& conn) : core::CEvent("flush... | 16.708333 | 77 | 0.690773 | raduionita |
d80293402defa5c3fd763d977595de32ba8ebfc4 | 7,520 | cpp | C++ | contract/lite-client/crypto/parser/lexer.cpp | TONCommunity/ton-sync-payments-channel | 2e5cd4902406923fdba32b8309ab8c40db3ae5bc | [
"MIT"
] | 5 | 2019-10-15T18:26:06.000Z | 2020-05-09T14:09:49.000Z | contract/lite-client/crypto/parser/lexer.cpp | TONCommunity/ton-sync-payments-channel | 2e5cd4902406923fdba32b8309ab8c40db3ae5bc | [
"MIT"
] | null | null | null | contract/lite-client/crypto/parser/lexer.cpp | TONCommunity/ton-sync-payments-channel | 2e5cd4902406923fdba32b8309ab8c40db3ae5bc | [
"MIT"
] | 2 | 2020-07-24T16:09:02.000Z | 2021-08-18T17:08:28.000Z | /*
This file is part of TON Blockchain Library.
TON Blockchain Library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later ver... | 26.020761 | 118 | 0.534574 | TONCommunity |
d802c2cc4b75ab95f2436f576382c3ea9e824257 | 420 | hpp | C++ | include/dr_util/expand.hpp | fizyr-private/dr_util | 41d21712d7eceaa09e11b95f6635bd9df952481f | [
"Apache-2.0"
] | null | null | null | include/dr_util/expand.hpp | fizyr-private/dr_util | 41d21712d7eceaa09e11b95f6635bd9df952481f | [
"Apache-2.0"
] | 2 | 2019-08-05T11:58:20.000Z | 2020-02-14T10:14:57.000Z | include/dr_util/expand.hpp | fizyr-private/dr_util | 41d21712d7eceaa09e11b95f6635bd9df952481f | [
"Apache-2.0"
] | 1 | 2019-08-05T05:24:56.000Z | 2019-08-05T05:24:56.000Z | #include <map>
#include <string>
namespace dr {
/// Expand variables in a string.
/**
* A variable can be written as $NAME or ${NAME}.
*/
std::string expandVariables(std::string const & source, std::map<std::string, std::string> const & variables);
/// Expand environment variables in a string.
/**
* A variable ca... | 22.105263 | 110 | 0.683333 | fizyr-private |
d80bbfde1f94d2017e9863063c31759a920681f0 | 26 | cpp | C++ | src/external_library/bitmap/BitmapImage.cpp | MatthieuHernandez/StraightforwardNeuralNetwork | e0b99a80bb1b3f76dcb08134aa0f1bc3e6b705d7 | [
"Apache-2.0"
] | 14 | 2019-08-29T07:20:19.000Z | 2022-03-22T12:51:02.000Z | src/external_library/bitmap/BitmapImage.cpp | MatthieuHernandez/StraightforwardNeuralNetwork | e0b99a80bb1b3f76dcb08134aa0f1bc3e6b705d7 | [
"Apache-2.0"
] | 7 | 2020-08-07T11:08:45.000Z | 2021-05-08T17:11:12.000Z | src/external_library/bitmap/BitmapImage.cpp | MatthieuHernandez/StraightforwardNeuralNetwork | e0b99a80bb1b3f76dcb08134aa0f1bc3e6b705d7 | [
"Apache-2.0"
] | 3 | 2020-08-07T10:53:52.000Z | 2021-02-16T22:13:22.000Z | #include "BitmapImage.hpp" | 26 | 26 | 0.807692 | MatthieuHernandez |
d80c7ea5404eb1fb95d99bc9225a5ccf76f71805 | 1,013 | cpp | C++ | 3rdparty/diy/examples/simple/read-blocks.cpp | wgq-iapcm/Parvoro- | 9459e1081ff948628358c59207d5fcd8ce60ef8f | [
"BSD-3-Clause"
] | 43 | 2016-10-23T14:52:59.000Z | 2022-03-18T20:47:06.000Z | 3rdparty/diy/examples/simple/read-blocks.cpp | wgq-iapcm/Parvoro- | 9459e1081ff948628358c59207d5fcd8ce60ef8f | [
"BSD-3-Clause"
] | 39 | 2016-11-25T22:14:09.000Z | 2022-01-13T21:44:51.000Z | 3rdparty/diy/examples/simple/read-blocks.cpp | wgq-iapcm/Parvoro- | 9459e1081ff948628358c59207d5fcd8ce60ef8f | [
"BSD-3-Clause"
] | 21 | 2016-11-28T22:08:36.000Z | 2022-03-16T10:31:32.000Z | #include <iostream>
#include <diy/master.hpp>
#include <diy/io/block.hpp>
#include "block.h"
void output(Block* b, const diy::Master::ProxyWithLink& cp)
{
std::cout << cp.gid() << " " << b->average << std::endl;
for (int i = 0; i < cp.link()->size(); ++i)
std::cout << " " << cp.link()->target(i).gid << " " ... | 33.766667 | 110 | 0.574531 | wgq-iapcm |
d80cf59a55c78e5ad525148400e785da63fabd5d | 656 | cpp | C++ | Source/GameService/Net/Network/Crypto/KeyExchange.cpp | BaekTaehyun/T1Project | d7d98c7cfc88e57513631124c32dfee8794307db | [
"MIT"
] | 3 | 2019-06-25T05:09:47.000Z | 2020-09-30T18:06:17.000Z | Source/GameService/Net/Network/Crypto/KeyExchange.cpp | BaekTaehyun/T1Project | d7d98c7cfc88e57513631124c32dfee8794307db | [
"MIT"
] | null | null | null | Source/GameService/Net/Network/Crypto/KeyExchange.cpp | BaekTaehyun/T1Project | d7d98c7cfc88e57513631124c32dfee8794307db | [
"MIT"
] | 2 | 2018-10-15T08:09:16.000Z | 2020-04-07T05:25:52.000Z |
#include "KeyExchange.h"
#include <cassert>
std::vector<uint64_t> KeyExchange::getPublicKey(uint64_t p, uint64_t g, size_t count)
{
dhs_.clear();
std::vector<uint64_t> pk;
for (size_t i = 0; i < count; ++i)
{
DiffieHellman dh;
pk.push_back(dh.getPublicKey(p, g));
dhs_.push_back(dh);
}
return pk;
}
s... | 16 | 85 | 0.625 | BaekTaehyun |
d80ddb7432a2682168f55dff3ed25a45d4aba3c9 | 1,396 | cpp | C++ | examples/cpp/src/utils/Reader.cpp | TEE-AI/SAI | f2a43d704078057c8f957f4751317e8fea75a07f | [
"Apache-2.0"
] | 34 | 2019-01-16T14:54:10.000Z | 2021-11-16T11:19:15.000Z | examples/cpp/src/utils/Reader.cpp | TEE-AI/SAI | f2a43d704078057c8f957f4751317e8fea75a07f | [
"Apache-2.0"
] | 2 | 2019-02-16T06:41:31.000Z | 2019-04-23T05:34:01.000Z | examples/cpp/src/utils/Reader.cpp | TEE-AI/SAI | f2a43d704078057c8f957f4751317e8fea75a07f | [
"Apache-2.0"
] | 4 | 2019-04-10T00:48:27.000Z | 2021-04-12T01:21:01.000Z | #include "Reader.h"
Reader::Reader(std::vector<std::string> *filelist) {
filelist_ = filelist;
fileIndex_ = 0;
processor_ = 0;
}
Reader::~Reader() {
filelist_ = 0;
fileIndex_ = 0;
processor_ = 0;
}
void Reader::register_processor(Preprocessor *processor) {
processor_ = processor;
}
Image... | 21.151515 | 82 | 0.611032 | TEE-AI |
d8112d6d727919c9cd82b4e19ef74e99ee43676b | 1,233 | cpp | C++ | benchmark/utils.cpp | Karamaz0V1/Higra | 216d9e47641171b5a6f8b7e2b42c269b8dc34abd | [
"CECILL-B"
] | 64 | 2019-08-18T19:23:23.000Z | 2022-03-21T04:15:04.000Z | benchmark/utils.cpp | higra/Higra | e6d5984a585f652c87d303a6a6bec19f0eb7432e | [
"CECILL-B"
] | 120 | 2019-08-16T09:10:35.000Z | 2022-03-17T09:42:58.000Z | benchmark/utils.cpp | Karamaz0V1/Higra | 216d9e47641171b5a6f8b7e2b42c269b8dc34abd | [
"CECILL-B"
] | 12 | 2019-10-04T07:35:55.000Z | 2021-01-10T19:59:11.000Z | /***************************************************************************
* Copyright ESIEE Paris (2021) *
* *
* Contributor(s) : Benjamin Perret *
* ... | 44.035714 | 91 | 0.379562 | Karamaz0V1 |
d8112d8960eb885acb99ea8d5b081331a5122bf0 | 94 | cpp | C++ | BASIC c++/beginning_with_cpp/before_oop/exercise of 4 .cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/beginning_with_cpp/before_oop/exercise of 4 .cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/beginning_with_cpp/before_oop/exercise of 4 .cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
int x,i;
i=-2;
cout<<-4*i++-6%4<<endl;
}
| 10.444444 | 23 | 0.617021 | jattramesh |
d8120c0c46c988618764ba5662c38ae2c5bc925c | 2,766 | cpp | C++ | qsimplespatial/paintscheme.cpp | folibis/qsimplespatial | e39b07678ced3199cc518adf251e683759442dc3 | [
"MIT"
] | 1 | 2020-03-16T09:59:28.000Z | 2020-03-16T09:59:28.000Z | qsimplespatial/paintscheme.cpp | folibis/qsimplespatial | e39b07678ced3199cc518adf251e683759442dc3 | [
"MIT"
] | null | null | null | qsimplespatial/paintscheme.cpp | folibis/qsimplespatial | e39b07678ced3199cc518adf251e683759442dc3 | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 20014 Moukhlynin Ruslan <me@ruslan.pw>
*
* paintscheme.cpp
* This file is part of the QSimpleSpatial.
*
* 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 Sof... | 25.145455 | 123 | 0.720897 | folibis |
d8197aab074d8788bddf671d07a4e2f95f146e8b | 462 | cpp | C++ | leetcode/422. Valid Word Square/s1.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/422. Valid Word Square/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/422. Valid Word Square/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/valid-word-square/
// Author: github.com/lzl124631x
// Time: O(MN)
// Space: O(1)
class Solution {
public:
bool validWordSquare(vector<string>& words) {
for (int i = 0, M = words.size(); i < M; ++i) {
for (int j = 0, N = words[i].size(); j < N; ++j) {
... | 30.8 | 95 | 0.493506 | zhuohuwu0603 |
d8211212f095c10cb7d9de126a936bfce4d71079 | 971 | cpp | C++ | SecondaryTreeIndexTest.cpp | spakai/index_search | 75a39d536781cb3e2f91ffea496b003ca5c51ebf | [
"Apache-2.0"
] | null | null | null | SecondaryTreeIndexTest.cpp | spakai/index_search | 75a39d536781cb3e2f91ffea496b003ca5c51ebf | [
"Apache-2.0"
] | null | null | null | SecondaryTreeIndexTest.cpp | spakai/index_search | 75a39d536781cb3e2f91ffea496b003ca5c51ebf | [
"Apache-2.0"
] | null | null | null | #include "gmock/gmock.h"
#include "SecondaryTreeIndex.h"
#include "FileTable.h"
using namespace testing;
class SecondaryTreeIndexTest : public Test {
public:
FileTable ft;
SecondaryTreeIndex index;
void SetUp() override {
ft.init("../csv/abnumber.csv");
index.buil... | 26.243243 | 71 | 0.69413 | spakai |
d82341412f1d05f2ee915c5899a853d5c0a3814b | 25,543 | cpp | C++ | Clerk/UI/Schedulers/SchedulerDialog.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 14 | 2016-11-01T15:48:02.000Z | 2020-07-15T13:00:27.000Z | Clerk/UI/Schedulers/SchedulerDialog.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 29 | 2017-11-16T04:15:33.000Z | 2021-12-22T07:15:42.000Z | Clerk/UI/Schedulers/SchedulerDialog.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 2 | 2018-08-15T15:25:11.000Z | 2019-01-28T12:49:50.000Z | #include "SchedulerDialog.h"
SchedulerDialog::SchedulerDialog(wxFrame *parent, const wxChar *title, int x, int y, int width, int height) : wxFrame(parent, -1, title, wxPoint(x, y), wxSize(width, height), wxDEFAULT_FRAME_STYLE & ~(wxRESIZE_BORDER | wxMAXIMIZE_BOX)) {
SetBackgroundColour(wxColor(*wxWHITE));
this->Set... | 31.849127 | 237 | 0.737501 | sergeylenkov |
d835aa288ed1ec0e1c7e231d37c119144dfa4e37 | 1,482 | cpp | C++ | libyangmeeting2/src/src/YangMeetingFactory.cpp | yangxinghai/yangrtc | 92cc28ade5af6cbe22c151cd1220ab12816694e7 | [
"MIT"
] | 23 | 2021-09-13T06:24:34.000Z | 2022-03-24T10:05:12.000Z | libyangmeeting2/src/src/YangMeetingFactory.cpp | yangxinghai/yangrtc | 92cc28ade5af6cbe22c151cd1220ab12816694e7 | [
"MIT"
] | null | null | null | libyangmeeting2/src/src/YangMeetingFactory.cpp | yangxinghai/yangrtc | 92cc28ade5af6cbe22c151cd1220ab12816694e7 | [
"MIT"
] | 9 | 2021-09-13T06:27:44.000Z | 2022-03-02T00:23:17.000Z | /*
* YangUtilFactory.cpp
*
* Created on: 2020年10月17日
* Author: yang
*/
#include "YangMeetingHandleImpl.h"
#include <yangmeeting/yangmeetingtype.h>
#include <yangmeeting/YangMeetingFactory.h>
#include "yangutil/sys/YangIni.h"
#include "YangMeetingMessageHandle.h"
YangMeetingFactory::YangMeetingFactory() {... | 29.64 | 121 | 0.772605 | yangxinghai |
d838ab09c72fdd45c44f768858bf4401a4632c58 | 1,513 | cpp | C++ | vivi/vivi64/CommandLine.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 54 | 2020-02-15T23:17:25.000Z | 2021-11-14T17:13:22.000Z | vivi/vivi64/CommandLine.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 11 | 2020-06-01T08:04:40.000Z | 2020-11-22T02:18:41.000Z | vivi/vivi64/CommandLine.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 1 | 2020-06-01T07:51:47.000Z | 2020-06-01T07:51:47.000Z | #include <QKeyEvent>
#include "CommandLine.h"
CommandLine::CommandLine(QWidget *parent)
: QLineEdit(parent)
{
}
CommandLine::~CommandLine()
{
}
void CommandLine::focusOutEvent( QFocusEvent * event )
{
QLineEdit::focusOutEvent(event);
emit focusOut();
}
void CommandLine::keyPressEvent(QKeyEvent *event)
{
const bo... | 22.25 | 75 | 0.630535 | vivisuke |
d83ac1d2a5b8f88c4c3ec8caac492348a20fd75a | 1,826 | cpp | C++ | CarpOS/Keyboard.cpp | cartman300/CarpOS | c8ab9332f5cd7953601aa5b528cd3f0467770c8c | [
"Unlicense"
] | 2 | 2015-12-24T10:12:55.000Z | 2017-05-03T12:13:54.000Z | CarpOS/Keyboard.cpp | cartman300/CarpOS | c8ab9332f5cd7953601aa5b528cd3f0467770c8c | [
"Unlicense"
] | null | null | null | CarpOS/Keyboard.cpp | cartman300/CarpOS | c8ab9332f5cd7953601aa5b528cd3f0467770c8c | [
"Unlicense"
] | 1 | 2022-01-21T02:06:42.000Z | 2022-01-21T02:06:42.000Z | #include "Keyboard.h"
#include "Kernel.h"
#include <intrin.h>
#include <string.h>
byte kbdus[128] = {
0, 27, '1', '2', '3', '4', '5', '6', '7', '8', /* 9 */
'9', '0', '-', '=', '\b', /* Backspace */
'\t', /* Tab */
'q', 'w', 'e', 'r', /* 19 */
't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\n', /* Enter key */
... | 20.065934 | 63 | 0.470975 | cartman300 |
d83e3f875685afba035e04f1be00ffa7404c6728 | 6,821 | cpp | C++ | game/client/hud_redraw.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | game/client/hud_redraw.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | game/client/hud_redraw.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose:
//
// $NoKeywords: $
//
//===========================================================================//
//
// hud_redraw.cpp
//
#include "cbase.h"
#include "hudelement.h"
#include "iclientmode.h"
#include "itextmessage.h"
#i... | 25.077206 | 125 | 0.581586 | DannyParker0001 |
d84900f81fd56ef599a889883f58c237053d8f18 | 1,731 | cpp | C++ | BulletPhysicsWrapper/physics/bullet/cPlaneComponent.cpp | BobEh/Game-Engine | 2086336c8e0d4b49166b8f9c8b8c1db99728e206 | [
"MIT"
] | 1 | 2020-03-14T18:51:09.000Z | 2020-03-14T18:51:09.000Z | BulletPhysicsWrapper/physics/bullet/cPlaneComponent.cpp | BobEh/Game-Engine | 2086336c8e0d4b49166b8f9c8b8c1db99728e206 | [
"MIT"
] | null | null | null | BulletPhysicsWrapper/physics/bullet/cPlaneComponent.cpp | BobEh/Game-Engine | 2086336c8e0d4b49166b8f9c8b8c1db99728e206 | [
"MIT"
] | null | null | null | #include "cPlaneComponent.h"
#include "nConvert.h"
nPhysics::cPlaneComponent::cPlaneComponent(nPhysics::sPlaneDef thePlaneDef)
{
btCollisionShape* shape = new btStaticPlaneShape(nConvert::ToBullet(thePlaneDef.Normal), thePlaneDef.Constant);
btTransform transform;
transform.setIdentity();
//using motionstate is o... | 24.728571 | 112 | 0.780474 | BobEh |
d8496c4aae9eb9232814c8266b91bfe72bcc1201 | 12,523 | cpp | C++ | CppImport/src/manager/TranslateManager.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | null | null | null | CppImport/src/manager/TranslateManager.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | null | null | null | CppImport/src/manager/TranslateManager.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | null | null | null | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | 34.980447 | 120 | 0.735926 | patrick-luethi |
d84debae06b721217690a3aaa6ae822731c7984f | 345 | inl | C++ | Refureku/Library/Include/Public/Refureku/TypeInfo/Archetypes/Template/NonTypeTemplateArgument.inl | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 143 | 2020-04-07T21:38:21.000Z | 2022-03-30T01:06:33.000Z | Refureku/Library/Include/Public/Refureku/TypeInfo/Archetypes/Template/NonTypeTemplateArgument.inl | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 7 | 2021-03-30T07:26:21.000Z | 2022-03-28T16:31:02.000Z | Refureku/Library/Include/Public/Refureku/TypeInfo/Archetypes/Template/NonTypeTemplateArgument.inl | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 11 | 2020-06-06T09:45:12.000Z | 2022-01-25T17:17:55.000Z | /**
* Copyright (c) 2021 Julien SOYSOUVANH - All Rights Reserved
*
* This file is part of the Refureku library project which is released under the MIT License.
* See the README.md file for full license details.
*/
template <typename T>
T NonTypeTemplateArgument::getValue() const noexcept
{
return *reinterpret_cast<T ... | 28.75 | 92 | 0.756522 | jsoysouvanh |
d84ebb81df863d7fc70ad11d01650f1cfb93cd31 | 72 | cpp | C++ | build/staticLib/main.cpp | NoCodeProgram/ModernCPP | ac7b05a4d720678e68878d70c0a7a69f56885d00 | [
"MIT"
] | 5 | 2020-08-17T12:14:44.000Z | 2022-01-21T06:57:56.000Z | build/staticLib/main.cpp | NoCodeProgram/ModernCPP | ac7b05a4d720678e68878d70c0a7a69f56885d00 | [
"MIT"
] | null | null | null | build/staticLib/main.cpp | NoCodeProgram/ModernCPP | ac7b05a4d720678e68878d70c0a7a69f56885d00 | [
"MIT"
] | 2 | 2022-01-18T03:20:51.000Z | 2022-02-11T14:50:19.000Z | #include "cat.h"
int main()
{
Cat kitty;
kitty.speak();
return 0;
} | 8 | 16 | 0.597222 | NoCodeProgram |
d84f0e706e3b56b718041ddfda630ecadfad0384 | 301 | cpp | C++ | c++/84-7897-268-4/cap.2/Entrada/cadena3.cpp | leopansa/libros | 1fd44aaa230eedb493f52497e82bed1ab1cc6252 | [
"MIT"
] | null | null | null | c++/84-7897-268-4/cap.2/Entrada/cadena3.cpp | leopansa/libros | 1fd44aaa230eedb493f52497e82bed1ab1cc6252 | [
"MIT"
] | null | null | null | c++/84-7897-268-4/cap.2/Entrada/cadena3.cpp | leopansa/libros | 1fd44aaa230eedb493f52497e82bed1ab1cc6252 | [
"MIT"
] | null | null | null | //PROG204.CPP - Operacion de cadenas
// Imprimir unicamente cuando detecta numeros
#include <iostream>
int main()
{
int n; //solo acepta numeros
std::cout << "Introducir numeros: " << std::endl;
while(std::cin >> n)
{
std::cout << n << std::endl;
}
return 0;
} | 17.705882 | 53 | 0.578073 | leopansa |
d851e7ebb2246acf9264a52af3b5a7d47b05970c | 2,105 | cpp | C++ | src/signal.cpp | orbitrc/blusher-qt | 23a868875fbe600a14ea6d49226226fea8931ab6 | [
"MIT"
] | null | null | null | src/signal.cpp | orbitrc/blusher-qt | 23a868875fbe600a14ea6d49226226fea8931ab6 | [
"MIT"
] | null | null | null | src/signal.cpp | orbitrc/blusher-qt | 23a868875fbe600a14ea6d49226226fea8931ab6 | [
"MIT"
] | null | null | null | #include <blusher/signal.h>
#include <stdint.h>
#include "signal-impl.h"
#ifdef emit
#undef emit
#endif
#define BLUSHER_SIGNAL_CONSTRUCTOR { this->_impl = new SignalImpl(); }
#define BLUSHER_CONNECTION_CONSTRUCTOR { this->_impl = impl; }
#define BLUSHER_CONNECTION_CONSTRUCTOR_ARG(type) template<> \
Signal<type>... | 20.841584 | 75 | 0.695962 | orbitrc |
d852f59d03cc9769dfe656042d4898b851006831 | 1,598 | hpp | C++ | src/tts/include/ttsService.hpp | 3rang/TTS | 5a84b49ea08af599ad553ae27efb36b2682f3f76 | [
"MIT"
] | null | null | null | src/tts/include/ttsService.hpp | 3rang/TTS | 5a84b49ea08af599ad553ae27efb36b2682f3f76 | [
"MIT"
] | null | null | null | src/tts/include/ttsService.hpp | 3rang/TTS | 5a84b49ea08af599ad553ae27efb36b2682f3f76 | [
"MIT"
] | null | null | null |
// SPDX-FileCopyrightText: 2021 MBition GmbH
//
// SPDX-License-Identifier: Closed software
#ifndef INC_TTSSERVICE_HPP_
#define INC_TTSSERVICE_HPP_
#include <iostream>
#include <vector>
#include <cstdint>
#include <cstring>
#include <string>
#include <chrono>
#include <fstream>
#include <tensorflow/lite/interpreter... | 18.581395 | 68 | 0.673342 | 3rang |
d85738cfcfa355fa4fddd2fd103c87dcc3d0baac | 1,226 | cpp | C++ | Search/binarysearch.cpp | JobayerAhmmed/DSA_C | 2af3d702820dd3e1b9db49558e4398ea978e71ca | [
"MIT"
] | null | null | null | Search/binarysearch.cpp | JobayerAhmmed/DSA_C | 2af3d702820dd3e1b9db49558e4398ea978e71ca | [
"MIT"
] | null | null | null | Search/binarysearch.cpp | JobayerAhmmed/DSA_C | 2af3d702820dd3e1b9db49558e4398ea978e71ca | [
"MIT"
] | null | null | null | #include<stdio.h>
int parti(int* data, int left, int right)
{
int pivot = data[left + (right - left)/2];
int i = left - 1;
int j = right + 1;
while (true) {
do {
i++;
} while(data[i] < pivot);
do {
j--;
} while(data[j] > pivot);
if (i >... | 18.575758 | 58 | 0.468189 | JobayerAhmmed |
d85dfef9fd06f50ff2d53810a7109b851c3697d0 | 17,905 | cpp | C++ | opengl-text/src/freetype.cpp | Deception666/opengl-font-renderer | 32007d89389c426657d0025ec1a09f75176a1281 | [
"MIT"
] | null | null | null | opengl-text/src/freetype.cpp | Deception666/opengl-font-renderer | 32007d89389c426657d0025ec1a09f75176a1281 | [
"MIT"
] | null | null | null | opengl-text/src/freetype.cpp | Deception666/opengl-font-renderer | 32007d89389c426657d0025ec1a09f75176a1281 | [
"MIT"
] | null | null | null | #include "freetype.h"
#include "error_reporting_private.h"
#include <algorithm>
#if __linux__
#include <cstdlib>
#include <filesystem>
#endif
#include <stdexcept>
#include <utility>
#if _WIN32
#include <windows.h>
#elif __linux__
#include <dlfcn.h>
#endif
namespace opengl
{
template < typename T... | 20.771462 | 91 | 0.569171 | Deception666 |
d86271b0f08f0d5601052f4675e6e7657ab7cf56 | 576 | tpp | C++ | rb_tree/includes/btree_level_count.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | 1 | 2022-03-02T15:14:16.000Z | 2022-03-02T15:14:16.000Z | rb_tree/includes/btree_level_count.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | 73 | 2021-12-11T18:54:53.000Z | 2022-03-28T01:32:52.000Z | rb_tree/includes/btree_level_count.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | null | null | null |
#ifndef BTREE_LEVEL_COUNT_TPP
#define BTREE_LEVEL_COUNT_TPP
#include "btree.tpp"
template <class T>
size_t max_depth(size_t left_depth, size_t right_depth, ft::btree<T> *root)
{
root++;
root--;
if (left_depth > right_depth)
return (left_depth);
return (right_depth);
}
template <class T>
size_t btree_level_cou... | 20.571429 | 75 | 0.722222 | paulahemsi |
d86274ba27915117d292cc9a571897383778152b | 1,295 | cpp | C++ | Fw/Log/test/ut/LogTest.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 9,182 | 2017-07-06T15:51:35.000Z | 2022-03-30T11:20:33.000Z | Fw/Log/test/ut/LogTest.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 719 | 2017-07-14T17:56:01.000Z | 2022-03-31T02:41:35.000Z | Fw/Log/test/ut/LogTest.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 1,216 | 2017-07-12T15:41:08.000Z | 2022-03-31T21:44:37.000Z | #include <gtest/gtest.h>
#include <Fw/Log/LogPacket.hpp>
#include <Fw/Com/ComBuffer.hpp>
#include <Fw/Log/LogString.hpp>
TEST(FwLogTest,LogPacketSerialize) {
// Serialize data
Fw::LogPacket pktIn;
Fw::LogBuffer buffIn;
ASSERT_EQ(Fw::FW_SERIALIZE_OK,buffIn.serialize(static_cast<U32>(12)));
Fw::Tim... | 25.392157 | 74 | 0.689575 | AlperenCetin0 |
d866d581aab7118ca1f78c0f9c33c451a948e370 | 780 | cpp | C++ | CtCI/chapter20/20.5.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | 2 | 2021-12-29T14:42:51.000Z | 2021-12-29T14:46:45.000Z | CtCI/chapter20/20.5.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | null | null | null | CtCI/chapter20/20.5.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | null | null | null | #include <iostream>
using namespace std;
const int kMaxInt = ~(1<<31);
int ShortestDist(string text[], int n, string word1, string word2){
int min = kMaxInt / 2;
int pos1 = -min;
int pos2 = -min;
for(int pos=0; pos<n; ++pos){
if(text[pos] == word1){
pos1 = pos;
int dis... | 21.666667 | 67 | 0.465385 | wqw547243068 |
d867313f72aa79a829de0e99bb03d1657692db2e | 3,923 | hpp | C++ | include/h3api/H3Creatures/H3CreatureInformation.hpp | Patrulek/H3API | 91f10de37c6b86f3160706c1fdf4792f927e9952 | [
"MIT"
] | 14 | 2020-09-07T21:49:26.000Z | 2021-11-29T18:09:41.000Z | include/h3api/H3Creatures/H3CreatureInformation.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 2 | 2021-02-12T15:52:31.000Z | 2021-02-12T16:21:24.000Z | include/h3api/H3Creatures/H3CreatureInformation.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 8 | 2021-02-12T15:52:41.000Z | 2022-01-31T15:28:10.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... | 31.637097 | 176 | 0.513638 | Patrulek |
d86a61337af4391883603fdbccf97280c7f70321 | 309 | cpp | C++ | Graphics/Graphics/main.cpp | functard/Graphics-Framework | 90ed2e1d4631c6dce5c1aad5003e5a462966be87 | [
"MIT"
] | 1 | 2022-02-22T13:42:43.000Z | 2022-02-22T13:42:43.000Z | Graphics/Graphics/main.cpp | functard/Graphics-Framework | 90ed2e1d4631c6dce5c1aad5003e5a462966be87 | [
"MIT"
] | null | null | null | Graphics/Graphics/main.cpp | functard/Graphics-Framework | 90ed2e1d4631c6dce5c1aad5003e5a462966be87 | [
"MIT"
] | null | null | null | #include "PCH.h"
#include "Engine.h"
int CALLBACK wWinMain(HINSTANCE _hInstance, HINSTANCE _hPrevInstance, PWSTR _cmdLineArgs, int _cmdShow)
{
int value = CEngine::Get()->Init(_hInstance);
if (FAILED(value))
{
return value;
}
value = CEngine::Get()->Run();
CEngine::Get()->Finish();
return value;
} | 20.6 | 103 | 0.695793 | functard |
d87a2ac121c97d7ca6e8bf9bca530107ccb1b789 | 1,845 | hpp | C++ | oanda_v20/include/oanda/v20/json/exception/OutOfRange.hpp | CodeRancher/offcenter_oanda | c7817299b2c7199508307b2379179923e3f60fdc | [
"Apache-2.0"
] | null | null | null | oanda_v20/include/oanda/v20/json/exception/OutOfRange.hpp | CodeRancher/offcenter_oanda | c7817299b2c7199508307b2379179923e3f60fdc | [
"Apache-2.0"
] | null | null | null | oanda_v20/include/oanda/v20/json/exception/OutOfRange.hpp | CodeRancher/offcenter_oanda | c7817299b2c7199508307b2379179923e3f60fdc | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2020 Scott Brauer
*
* 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 t... | 24.6 | 75 | 0.695935 | CodeRancher |
d87b83b50d9c023e4201347db2a271f190fd69c7 | 1,461 | cpp | C++ | MyGUIWrapper/Src/EventComboChangePositionTranslator.cpp | AnomalousMedical/Engine | a19e21f597bd277e4ca17e0e5f3f89577f2307bb | [
"MIT"
] | null | null | null | MyGUIWrapper/Src/EventComboChangePositionTranslator.cpp | AnomalousMedical/Engine | a19e21f597bd277e4ca17e0e5f3f89577f2307bb | [
"MIT"
] | null | null | null | MyGUIWrapper/Src/EventComboChangePositionTranslator.cpp | AnomalousMedical/Engine | a19e21f597bd277e4ca17e0e5f3f89577f2307bb | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "../Include/MyGUIEventTranslator.h"
class EventComboChangePositionTranslator : public MyGUIEventTranslator
{
public:
typedef void (*NativeEventDelegate)(MyGUI::ComboBox* sender, size_t index HANDLE_ARG);
private:
MyGUI::ComboBox* widget;
NativeEventDelegate nativeEvent;
HAN... | 28.096154 | 219 | 0.78987 | AnomalousMedical |
f221521881832649aec7153ab6d320a15c241b49 | 599 | cpp | C++ | src/cpp/uml/literalSpecification.cpp | nemears/uml-cpp | d72c8b5506f391f2b6a5696972ff8da7ec10bd21 | [
"MIT"
] | null | null | null | src/cpp/uml/literalSpecification.cpp | nemears/uml-cpp | d72c8b5506f391f2b6a5696972ff8da7ec10bd21 | [
"MIT"
] | 1 | 2022-02-25T18:14:21.000Z | 2022-03-10T08:59:55.000Z | src/cpp/uml/literalSpecification.cpp | nemears/uml-cpp | d72c8b5506f391f2b6a5696972ff8da7ec10bd21 | [
"MIT"
] | null | null | null | #include "uml/literalSpecification.h"
#include "uml/package.h"
#include "uml/stereotype.h"
#include "uml/behavior.h"
#include "uml/dataType.h"
#include "uml/association.h"
#include "uml/association.h"
#include "uml/interface.h"
#include "uml/deployment.h"
using namespace UML;
LiteralSpecification::LiteralSpecificatio... | 23.96 | 92 | 0.737896 | nemears |
f2226373e98348a11d1b6efc7573ac53fe048d6c | 2,114 | cpp | C++ | modules/task_2/kren_p_grid_torus_topology/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2020-10-30T13:49:58.000Z | 2020-10-30T13:49:58.000Z | modules/task_2/kren_p_grid_torus_topology/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2020-11-01T18:53:35.000Z | 2020-11-01T18:53:35.000Z | modules/task_2/kren_p_grid_torus_topology/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2021-03-14T18:08:22.000Z | 2021-03-14T18:08:22.000Z | // Copyright 2020 Kren Polina
#include <gtest-mpi-listener.hpp>
#include <gtest/gtest.h>
#include <mpi.h>
#include "./grid_torus_topology.h"
TEST(Grid_Torus_Topology, can_create_grid_torus) {
MPI_Comm comm_torus = getCommTorus(MPI_COMM_WORLD);
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if (rank ... | 24.581395 | 78 | 0.688269 | RachinIA |
f2227b20dba0d7ab0fdef547be23b785d97d7b5e | 1,340 | hpp | C++ | module07/ex01/iter.hpp | selysse/CPP-Piscine | 72884c60ac5007d34874b006e37dad7a04e846bb | [
"MIT"
] | 1 | 2021-09-17T13:25:47.000Z | 2021-09-17T13:25:47.000Z | module07/ex01/iter.hpp | selysse/CPP-Piscine | 72884c60ac5007d34874b006e37dad7a04e846bb | [
"MIT"
] | null | null | null | module07/ex01/iter.hpp | selysse/CPP-Piscine | 72884c60ac5007d34874b006e37dad7a04e846bb | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* iter.hpp :+: :+: :+: ... | 31.162791 | 80 | 0.281343 | selysse |
f224794ac91fd4286b36c860fd316f0f4eadf478 | 756 | cpp | C++ | Year3Game/PitchRegion.cpp | EvanCGriffin/soccergame | 8056b39a4c7adfab3aa47333237474fc8250e7ac | [
"MIT"
] | 1 | 2021-09-29T14:27:07.000Z | 2021-09-29T14:27:07.000Z | Year3Game/PitchRegion.cpp | EvanCGriffin/soccergame | 8056b39a4c7adfab3aa47333237474fc8250e7ac | [
"MIT"
] | null | null | null | Year3Game/PitchRegion.cpp | EvanCGriffin/soccergame | 8056b39a4c7adfab3aa47333237474fc8250e7ac | [
"MIT"
] | null | null | null | #include "PitchRegion.h"
#include <Year3Engine\Utils.h>
PitchRegion::PitchRegion(double x, double y, double width, double height, int id)
:id(id)
{
rect = SDL_Rect();
rect.x = x;
rect.y = y;
rect.w = width;
rect.h = height;
center = b2Vec2(x + (width * 0.5), y + (height * 0.5));
color = b2Color(0, 0, 0);
}
... | 19.384615 | 81 | 0.667989 | EvanCGriffin |
f229c54432c3bf2ab8a1dd4e7adfa72a77cb1bd0 | 120 | hxx | C++ | src/Providers/UNIXProviders/ElementAsUser/UNIX_ElementAsUser_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/ElementAsUser/UNIX_ElementAsUser_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/ElementAsUser/UNIX_ElementAsUser_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_AIX
#ifndef __UNIX_ELEMENTASUSER_PRIVATE_H
#define __UNIX_ELEMENTASUSER_PRIVATE_H
#endif
#endif
| 10 | 38 | 0.841667 | brunolauze |
f22e7e2e6c5533baf6f8f2c9e1481b7571bd7cef | 587 | hxx | C++ | src/Tools/Algo/Predicate_ite.hxx | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | 1 | 2022-02-17T08:47:47.000Z | 2022-02-17T08:47:47.000Z | src/Tools/Algo/Predicate_ite.hxx | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | null | null | null | src/Tools/Algo/Predicate_ite.hxx | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | 1 | 2021-11-24T01:54:41.000Z | 2021-11-24T01:54:41.000Z | #include <sstream>
#include "Tools/Exception/exception.hpp"
#include "Tools/Algo/Predicate_ite.hpp"
namespace aff3ct
{
namespace tools
{
Predicate_ite::Predicate_ite(const int n_ite)
: n_ite(n_ite), cur_ite(0)
{
if (n_ite <= 0)
{
std::stringstream message;
message << "'n_ite' has to be equal or greater than 0 (... | 17.787879 | 86 | 0.689949 | WilliamMajor |
f233a4d50426273586dd94dd8cd0ec33e1c131af | 309 | cpp | C++ | URI/1175/1175.cpp | IrineuAlmeidaJr/C | e04e818be1e8b302cc5d542f4b0ba9c6e07d9b15 | [
"MIT"
] | null | null | null | URI/1175/1175.cpp | IrineuAlmeidaJr/C | e04e818be1e8b302cc5d542f4b0ba9c6e07d9b15 | [
"MIT"
] | null | null | null | URI/1175/1175.cpp | IrineuAlmeidaJr/C | e04e818be1e8b302cc5d542f4b0ba9c6e07d9b15 | [
"MIT"
] | null | null | null | #include<stdio.h>
#define TF 20
int main()
{
int vet[TF], i, aux1, aux2;
for (i=0; i<TF; i++)
scanf("%d", &vet[i]);
i=0;
while (i<TF/2)
{
aux1=vet[TF-1-i];
aux2=vet[i];
vet[i]=aux1;
vet[TF-1-i]=aux2;
i++;
}
for (i=0; i<TF; i++)
printf("N[%d] = %d\n", i, vet[i]);
return 0;
}
| 11.035714 | 36 | 0.475728 | IrineuAlmeidaJr |
f238ee98b99c834ac94915d167f36ecddee11a3a | 3,982 | cpp | C++ | sources/main.cpp | BiarnGamer/pommeDePin | 21f525e728614c31d08d8b90821d37b74e481203 | [
"Apache-2.0"
] | null | null | null | sources/main.cpp | BiarnGamer/pommeDePin | 21f525e728614c31d08d8b90821d37b74e481203 | [
"Apache-2.0"
] | null | null | null | sources/main.cpp | BiarnGamer/pommeDePin | 21f525e728614c31d08d8b90821d37b74e481203 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
#include "../entetes/animal.h"
//Déja inclut dans menu.h
//#include "../entetes/enclos.h"
#include "../entetes/set.h"
#include "../entetes/parc.h"
#include "../entetes/menu.h"
#include "../entetes/affichage.h"
// Pas besoin de utilisateur.h car ... | 27.088435 | 97 | 0.650929 | BiarnGamer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.