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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb73c42cfd1672b2dacbf2f87caabe1641b86080 | 492 | cpp | C++ | Engine/Source/UISliderComponent.cpp | Osvak/TurboTribble | fd4f565d2fb67894adc138d0446ffb8cf24323e6 | [
"MIT"
] | null | null | null | Engine/Source/UISliderComponent.cpp | Osvak/TurboTribble | fd4f565d2fb67894adc138d0446ffb8cf24323e6 | [
"MIT"
] | 1 | 2022-01-18T16:30:42.000Z | 2022-01-18T16:30:42.000Z | Engine/Source/UISliderComponent.cpp | Osvak/TurboTribble | fd4f565d2fb67894adc138d0446ffb8cf24323e6 | [
"MIT"
] | null | null | null | #include "Application.h"
#include "SDL.h"
#include "UISliderComponent.h"
#include "ModuleCamera3D.h"
#include "CameraComponent.h"
UISliderComponent::UISliderComponent(int id, std::string text)
{
type = ComponentType::UI_SLIDER;
value = 0;
minValue = 50;
maxValue = 100;
sliderText.SetText(text, float2(5, 5), 0.5f,... | 16.965517 | 71 | 0.727642 | Osvak |
bb74cdb8f97444680bafab6b6d9d3bcf49ccaa0a | 3,009 | cc | C++ | client/src/client.cc | zinhart/kvs | decac5308007bde0921f50200cf76d81b2b32251 | [
"MIT"
] | null | null | null | client/src/client.cc | zinhart/kvs | decac5308007bde0921f50200cf76d81b2b32251 | [
"MIT"
] | null | null | null | client/src/client.cc | zinhart/kvs | decac5308007bde0921f50200cf76d81b2b32251 | [
"MIT"
] | null | null | null | //#include "common"
#include <iostream>
#include <algorithm>
#include <memory>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#define PORT "4000" // the p... | 27.354545 | 122 | 0.636092 | zinhart |
bb74d5a004cf7c24fff1b74c9805452df806caf5 | 114 | cpp | C++ | source/serviceclass/worklist_scp.cpp | mariusherzog/dicom | 826a1dadb294637f350a665b9c4f97f2cd46439d | [
"MIT"
] | 15 | 2016-01-28T16:54:57.000Z | 2021-04-16T08:28:21.000Z | source/serviceclass/worklist_scp.cpp | mariusherzog/dicom | 826a1dadb294637f350a665b9c4f97f2cd46439d | [
"MIT"
] | null | null | null | source/serviceclass/worklist_scp.cpp | mariusherzog/dicom | 826a1dadb294637f350a665b9c4f97f2cd46439d | [
"MIT"
] | 3 | 2016-07-16T05:22:11.000Z | 2020-04-03T08:59:26.000Z | #include "worklist_scp.hpp"
namespace dicom
{
namespace serviceclass
{
worklist_scp::worklist_scp()
{
}
}
}
| 6.705882 | 28 | 0.710526 | mariusherzog |
bb82118acf1af34ea093d1ef19a9bc66ba77650d | 2,470 | cpp | C++ | libs/tex/generate_texture_views.cpp | sucongCJS/mvs-texturing | 413ad0619eaadb1a9416ae347ff1f9989b29ca59 | [
"BSD-3-Clause"
] | null | null | null | libs/tex/generate_texture_views.cpp | sucongCJS/mvs-texturing | 413ad0619eaadb1a9416ae347ff1f9989b29ca59 | [
"BSD-3-Clause"
] | null | null | null | libs/tex/generate_texture_views.cpp | sucongCJS/mvs-texturing | 413ad0619eaadb1a9416ae347ff1f9989b29ca59 | [
"BSD-3-Clause"
] | null | null | null | #include <util/timer.h>
#include <util/tokenizer.h>
#include <util/file_system.h>
#include <mve/image_io.h>
#include <mve/image_tools.h>
#include <mve/bundle_io.h>
#include <mve/scene.h>
#include "texturing.h"
#include "progress_counter.h"
TEX_NAMESPACE_BEGIN
void from_mve_scene(std::string const & scene_dir, std::s... | 31.265823 | 147 | 0.615385 | sucongCJS |
bb8a200aea6523c5d3ee51471472beb68474090c | 659 | cpp | C++ | src/0028.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | 38 | 2020-03-05T06:38:32.000Z | 2022-03-11T02:32:14.000Z | src/0028.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | null | null | null | src/0028.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | 16 | 2020-04-02T15:13:20.000Z | 2022-02-25T07:34:35.000Z | class Solution {
public:
int strStr(string haystack, string needle) {
if (empty(needle)) {
return 0;
}
vector<int> pi(size(needle));
for (int i = 1, j = 0; i < size(pi); ++i) {
while (j > 0 && needle[i] != needle[j]) {
j = pi[j - 1];
}
if (needle[i] == needle[j]) {
... | 21.258065 | 53 | 0.408194 | downdemo |
bb8eac9f978ff2afac67af52fd866c14e8027207 | 1,186 | cpp | C++ | IndexBuilder/main.cpp | Dudi119/SearchYA | a3468dedcd3fc8d63350a2c79b16b6949fdc7e41 | [
"MIT"
] | 5 | 2017-08-29T15:33:16.000Z | 2020-12-09T08:34:02.000Z | IndexBuilder/main.cpp | Dudi119/MesosBenchMark | a3468dedcd3fc8d63350a2c79b16b6949fdc7e41 | [
"MIT"
] | 1 | 2017-09-26T11:44:01.000Z | 2017-09-27T06:40:01.000Z | IndexBuilder/main.cpp | Dudi119/MesosBenchMark | a3468dedcd3fc8d63350a2c79b16b6949fdc7e41 | [
"MIT"
] | 2 | 2017-08-19T04:41:16.000Z | 2020-07-21T17:38:16.000Z | #include <memory>
#include "Core/src/Enviorment.h"
#include "Core/src/Logger.h"
#include "Core/src/CommandLine.h"
#include "Core/src/Logger.h"
#include "Core/src/TraceListener.h"
#include "cppkin/cppkin.h"
#include "IndexBuilder.h"
using namespace core;
using namespace std;
int main(int argc, char** argv)
{
CommandL... | 37.0625 | 139 | 0.752108 | Dudi119 |
bb8ffb56b7c980e985717913696e97f8883cc384 | 380 | hpp | C++ | Ladybug3D/Libraries/Renderer/SceneObject.hpp | wlsvy/Ladybug3D | 9cd92843bf6cdff806aa4283c5594028a53e20b3 | [
"MIT"
] | null | null | null | Ladybug3D/Libraries/Renderer/SceneObject.hpp | wlsvy/Ladybug3D | 9cd92843bf6cdff806aa4283c5594028a53e20b3 | [
"MIT"
] | null | null | null | Ladybug3D/Libraries/Renderer/SceneObject.hpp | wlsvy/Ladybug3D | 9cd92843bf6cdff806aa4283c5594028a53e20b3 | [
"MIT"
] | null | null | null | #pragma once
#include "Object.hpp"
namespace Ladybug3D {
class Transform;
class Model;
class SceneObject : public Object {
public:
SceneObject(const std::string& name = "SceneObject");
~SceneObject();
auto& GetTransform() { return m_Transform; }
void OnImGui() override;
std::shared_ptr<Model> Model;
... | 17.272727 | 55 | 0.710526 | wlsvy |
bb95bed7c3fa0b21fa19c5cff9430e306cd3c1d5 | 599 | hpp | C++ | libs/opencl/include/sge/opencl/platform/object_sequence.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/opencl/include/sge/opencl/platform/object_sequence.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/opencl/include/sge/opencl/platform/object_sequence.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_OPENCL_PLATFORM_OBJECT_SEQUENCE_HPP_INCLUDED
#define SGE_OPENCL_PLATFORM_OBJECT_SEQUENC... | 27.227273 | 67 | 0.764608 | cpreh |
bb9b9f11072857fdc7000753e3fe7bd5d78aa9d5 | 14,429 | cpp | C++ | connecter/mmloop_test/getopt.cpp | mqtter/mqtter | a60f57d866f3e50ffc3abe5020737fe8d0aeeba3 | [
"MIT"
] | 2 | 2018-07-25T13:04:14.000Z | 2019-01-14T03:58:54.000Z | mmloop_test/getopt.cpp | skybosi/maomao | 88e556cb4c56ebc0dbf597f0a5835a495d8ab5df | [
"MIT"
] | 1 | 2017-07-29T02:19:59.000Z | 2017-07-30T12:48:21.000Z | mmloop_test/getopt.cpp | skybosi/maomao | 88e556cb4c56ebc0dbf597f0a5835a495d8ab5df | [
"MIT"
] | 2 | 2017-11-27T14:40:42.000Z | 2019-01-14T03:58:56.000Z | #include "getopt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int opterr; /* if error message should be printed */
int optind; /* index into parent argv vector */
int optopt; /* character checked for validity */
int optreset; /* reset getopt */
char *optarg; /* argument ... | 24.877586 | 129 | 0.584933 | mqtter |
bba7f4103dff199da36fc105011c01580921bb83 | 656 | hpp | C++ | source/framework/python/src/command_line.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 2 | 2021-02-26T22:45:56.000Z | 2021-05-02T10:28:48.000Z | source/framework/python/src/command_line.hpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 262 | 2016-08-11T10:12:02.000Z | 2020-10-13T18:09:16.000Z | source/framework/python/src/command_line.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 1 | 2020-03-11T09:49:41.000Z | 2020-03-11T09:49:41.000Z | #pragma once
#include "lue/py/configure.hpp"
#include <functional>
#include <memory>
#include <vector>
namespace lue {
class CommandLine
{
public:
CommandLine();
int argc() const;
char** argv() const;
private:
// For each argument a string... | 18.222222 | 77 | 0.559451 | computationalgeography |
bbab7f4d1e831fc0c378a8ce92e6bd1731f92d0f | 1,384 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/ext/profile/replace_new.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/libstdc++-v3/testsuite/ext/profile/replace_new.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/ext/profile/replace_new.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // -*- C++ -*-
// Copyright (C) 2006-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3... | 25.163636 | 74 | 0.695087 | best08618 |
bbb7c5dc56e6f5c60b0485f0896f159ce624ad07 | 1,224 | cpp | C++ | src/powerext/DnaInfo/DnaInfo.cpp | ssidpat/powerext | dd89281cf2008fdfda6eb1090cd381eb004e8f6c | [
"BSD-3-Clause"
] | 15 | 2017-07-15T02:10:58.000Z | 2022-01-04T23:09:23.000Z | src/powerext/DnaInfo/DnaInfo.cpp | ssidpat/powerext | dd89281cf2008fdfda6eb1090cd381eb004e8f6c | [
"BSD-3-Clause"
] | 2 | 2017-12-07T19:12:23.000Z | 2020-09-30T19:05:23.000Z | src/powerext/DnaInfo/DnaInfo.cpp | ssidpat/powerext | dd89281cf2008fdfda6eb1090cd381eb004e8f6c | [
"BSD-3-Clause"
] | 3 | 2019-01-18T00:55:00.000Z | 2021-09-08T11:06:45.000Z | // DnaInfo.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "../PowerExt/AssemblyName.h"
#include "../PowerExt/HResultDecoder.h"
#include <iostream>
#include <string>
int _tmain(int argc, TCHAR* argv[])
{
std::wcout << _T("DnaInfo.exe (.NET Assembly Information)") << std::e... | 25.5 | 87 | 0.606209 | ssidpat |
c7de29be989e742aa72b87500b286f1742317a29 | 6,081 | cc | C++ | spot/spot/twaalgos/translate.cc | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2018-03-02T14:29:57.000Z | 2018-03-02T14:29:57.000Z | spot/spot/twaalgos/translate.cc | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | null | null | null | spot/spot/twaalgos/translate.cc | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2015-06-05T12:42:07.000Z | 2015-06-05T12:42:07.000Z | // -*- coding: utf-8 -*-
// Copyright (C) 2013-2017 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
// Spot is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the... | 31.671875 | 74 | 0.588226 | mcc-petrinets |
c7e42f144afc7e32cc637eb5589570661ffe69d5 | 3,533 | cpp | C++ | src/atta/memorySystem/tests/speed.cpp | brenocq/atta | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 5 | 2021-11-18T02:44:45.000Z | 2021-12-21T17:46:10.000Z | src/atta/memorySystem/tests/speed.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 6 | 2021-03-11T21:01:27.000Z | 2021-09-06T19:41:46.000Z | src/atta/memorySystem/tests/speed.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 3 | 2020-09-10T07:17:00.000Z | 2020-11-05T10:24:41.000Z | //--------------------------------------------------
// Atta Memory Tests
// speed.cpp
// Date: 2021-08-20
// By Breno Cunha Queiroz
//--------------------------------------------------
#include <gtest/gtest.h>
#include <atta/core/stringId.h>
#include <atta/memorySystem/memoryManager.h>
#include <atta/memorySystem/allo... | 25.977941 | 92 | 0.463063 | brenocq |
c7ea1e1dbdf21ac93cb344d6fcf42752583cc5a7 | 2,067 | cpp | C++ | src/SelfGravity/Init_FFTW.cpp | zhulianhua/Daino | db88f5738aba76fa8a28d7672450e0c5c832b3de | [
"MIT"
] | 3 | 2019-04-13T02:08:01.000Z | 2020-11-17T12:45:37.000Z | src/SelfGravity/Init_FFTW.cpp | zhulianhua/Daino | db88f5738aba76fa8a28d7672450e0c5c832b3de | [
"MIT"
] | null | null | null | src/SelfGravity/Init_FFTW.cpp | zhulianhua/Daino | db88f5738aba76fa8a28d7672450e0c5c832b3de | [
"MIT"
] | 2 | 2019-11-12T02:00:20.000Z | 2019-12-09T14:52:31.000Z |
#include "DAINO.h"
#ifdef GRAVITY
#ifdef SERIAL
rfftwnd_plan FFTW_Plan, FFTW_Plan_Inv;
#else
rfftwnd_mpi_plan FFTW_Plan, FFTW_Plan_Inv;
#endif
//-------------------------------------------------------------------------------------------------------
// Function : Init_FFTW
// Description : Create the F... | 27.932432 | 105 | 0.490082 | zhulianhua |
c7f08fc096d3392d0f15755c7d8791cb590f6508 | 552 | hpp | C++ | android-31/java/lang/LinkageError.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/lang/LinkageError.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/lang/LinkageError.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "./Error.hpp"
class JString;
class JThrowable;
namespace java::lang
{
class LinkageError : public java::lang::Error
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit LinkageError(const char *className, const char *sig, Ts...agv) : java::lang::Error(classNam... | 19.714286 | 163 | 0.688406 | YJBeetle |
c7f19c0e759845db014af34b2e387e65bb1dfc3e | 786 | cc | C++ | src/obj/object.cc | abyss7/libgit- | 0e2dee26fbe64ebfb6a6cfa332b8dc4a3bdea11d | [
"MIT"
] | 1 | 2019-11-09T22:22:23.000Z | 2019-11-09T22:22:23.000Z | src/obj/object.cc | abyss7/libgitxx | 0e2dee26fbe64ebfb6a6cfa332b8dc4a3bdea11d | [
"MIT"
] | null | null | null | src/obj/object.cc | abyss7/libgitxx | 0e2dee26fbe64ebfb6a6cfa332b8dc4a3bdea11d | [
"MIT"
] | null | null | null | #include "object.hh"
#include <base/exception.hh>
namespace git {
Object::Type Object::type() const {
switch (git_object_type(raw_object())) {
case GIT_OBJ_BLOB:
return BLOB;
case GIT_OBJ_COMMIT:
return COMMIT;
case GIT_OBJ_TREE:
return TREE;
default:
return UNKNOWN;
}
}
... | 19.170732 | 102 | 0.63486 | abyss7 |
c7f448a0f4c0ed6170eca03602a0725b897d3871 | 404 | cpp | C++ | swig_example/third party/swig-example.cpp | Lukemtesta/python-binding | bef3978ac48ce4e683014798ccac9a88cfd73ee0 | [
"Apache-2.0"
] | null | null | null | swig_example/third party/swig-example.cpp | Lukemtesta/python-binding | bef3978ac48ce4e683014798ccac9a88cfd73ee0 | [
"Apache-2.0"
] | null | null | null | swig_example/third party/swig-example.cpp | Lukemtesta/python-binding | bef3978ac48ce4e683014798ccac9a88cfd73ee0 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "liba.h"
#include "swig-example.h"
void swig_example_hello()
{
std::cout << "Hello from swig-example" << std::endl;
}
void link_liba_hello()
{
liba_hello();
}
void blah()
{
std::cout << "blah" << std::endl;
}
void vector_print()
{
std::cout << "vector print" << std::endl;
}
... | 13.466667 | 56 | 0.618812 | Lukemtesta |
c7f53d3c297632110eedc8c7962b70178fa1f375 | 667 | cpp | C++ | src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/netfs/client/VolumeEvent.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 4 | 2016-03-29T21:45:21.000Z | 2016-12-20T00:50:38.000Z | src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/netfs/client/VolumeEvent.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | null | null | null | src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/netfs/client/VolumeEvent.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 3 | 2018-12-17T13:07:38.000Z | 2021-09-08T13:07:31.000Z | // VolumeEvent.cpp
#include "VolumeEvent.h"
// constructor
VolumeEvent::VolumeEvent(uint32 type, vnode_id target)
: Referencable(true),
fType(type),
fTarget(target)
{
}
// destructor
VolumeEvent::~VolumeEvent()
{
}
// GetType
uint32
VolumeEvent::GetType() const
{
return fType;
}
// SetTarget
void
VolumeEve... | 12.584906 | 61 | 0.736132 | axeld |
c7fe942d4e6736080ae2b254888cb2a4396eb117 | 5,140 | cc | C++ | src/cpp/charmove.cc | Tomius/LoD | 6011e3a80367009d541ef6668aeb6d61d381d348 | [
"MIT"
] | 32 | 2015-02-21T17:11:50.000Z | 2022-02-10T16:34:16.000Z | src/cpp/charmove.cc | Tomius/LoD | 6011e3a80367009d541ef6668aeb6d61d381d348 | [
"MIT"
] | null | null | null | src/cpp/charmove.cc | Tomius/LoD | 6011e3a80367009d541ef6668aeb6d61d381d348 | [
"MIT"
] | 8 | 2016-05-30T07:24:19.000Z | 2021-11-13T10:46:27.000Z | // Copyright (c) 2014, Tamas Csala
#include "./charmove.h"
#include <GLFW/glfw3.h>
#include <algorithm>
#include "engine/game_engine.h"
CharacterMovement::CharacterMovement(engine::GameObject *parent,
float horizontal_speed,
float rotationSpeed... | 26.091371 | 80 | 0.6107 | Tomius |
2a0ae0111bb4284ec5b9af8e8406546f232bdd2b | 215 | cpp | C++ | Plugins/VirtuosoInput/Source/VirtuosoInput/Private/VirtuosoTrackingState.cpp | charles-river-analytics/VSDK-Unreal | 0f99ec140f6d6660a09148163bdd006c5ecc67d5 | [
"MIT"
] | 3 | 2021-05-26T14:12:01.000Z | 2022-01-09T01:15:12.000Z | Plugins/VirtuosoInput/Source/VirtuosoInput/Private/VirtuosoTrackingState.cpp | charles-river-analytics/VSDK-Unreal | 0f99ec140f6d6660a09148163bdd006c5ecc67d5 | [
"MIT"
] | null | null | null | Plugins/VirtuosoInput/Source/VirtuosoInput/Private/VirtuosoTrackingState.cpp | charles-river-analytics/VSDK-Unreal | 0f99ec140f6d6660a09148163bdd006c5ecc67d5 | [
"MIT"
] | null | null | null | // Copyright 2020 Charles River Analytics, Inc. All Rights Reserved.
#include "VirtuosoTrackingState.h"
UVirtuosoTrackingState::UVirtuosoTrackingState()
{
}
UVirtuosoTrackingState::~UVirtuosoTrackingState()
{
}
| 16.538462 | 68 | 0.795349 | charles-river-analytics |
2a0f66cf05f312fc1cc7e36ec7f09caf9c29361f | 13,868 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/AudioPlayer/volume_bar.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/AudioPlayer/volume_bar.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/AudioPlayer/volume_bar.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _volume_bar[] LOCATION_EXTFLASH_ATTRIBUTE = { // 170x4 ARGB8888 pixels.
0xff,0xff,0xff,0x27,0xff,0xff,0xff,0x33,0xff,0xff,0xff,0x33,0xff,0xff,0xff,0x33,0xff,0xff,0xff,0x33,0... | 252.145455 | 320 | 0.797159 | ramkumarkoppu |
2a101a79b18945b9f171d6ce995edb45c666134c | 7,774 | cpp | C++ | src/hash_tables.cpp | dfwteinos/Search-Clustering | 174a26ac7aabf9d3a7ce06976e3ebe77c6a8c1bd | [
"MIT"
] | null | null | null | src/hash_tables.cpp | dfwteinos/Search-Clustering | 174a26ac7aabf9d3a7ce06976e3ebe77c6a8c1bd | [
"MIT"
] | null | null | null | src/hash_tables.cpp | dfwteinos/Search-Clustering | 174a26ac7aabf9d3a7ce06976e3ebe77c6a8c1bd | [
"MIT"
] | null | null | null | #include "../include/hash_tables.h"
#include "../include/arguments.h"
template <class T>
HashTable<T>::HashTable(vector_list_collection<T> data_set, int k_value, int l_value, int R_value, int N_value, double C_value)
{
table_size = data_set.size() / 16;
vector_size = data_set[0].second.size();
K = k_valu... | 33.65368 | 191 | 0.593645 | dfwteinos |
2a13ee99d2c4490dda1e4ba956ef71fd24d735c8 | 16,691 | cpp | C++ | src/test/dag/temporal_components.cpp | arashbm/dag | 26559581f696fabf7aacb3fbc045df811ddbd37d | [
"MIT"
] | null | null | null | src/test/dag/temporal_components.cpp | arashbm/dag | 26559581f696fabf7aacb3fbc045df811ddbd37d | [
"MIT"
] | 14 | 2021-05-24T12:11:05.000Z | 2022-03-02T22:15:01.000Z | src/test/dag/temporal_components.cpp | arashbm/dag | 26559581f696fabf7aacb3fbc045df811ddbd37d | [
"MIT"
] | null | null | null | #include <vector>
#include <set>
#include <unordered_set>
#include <catch2/catch.hpp>
using Catch::Matchers::UnorderedEquals;
using Catch::Matchers::Equals;
#include <dag/temporal_components.hpp>
#include <dag/temporal_edges.hpp>
#include <dag/estimators.hpp>
TEST_CASE("temporal components", "[dag::temporal_componen... | 36.60307 | 80 | 0.522617 | arashbm |
2a14be0a116e52c8069e13b13ed08e3b958a4d5b | 11,002 | cpp | C++ | HoloIntervention/Source/Rendering/CameraResources.cpp | adamrankin/HoloIntervention | 0f2a4dc702729a0a04af5c210884ef4e08e49267 | [
"Apache-2.0"
] | 2 | 2020-06-17T09:55:59.000Z | 2021-04-03T16:18:29.000Z | HoloIntervention/Source/Rendering/CameraResources.cpp | adamrankin/HoloIntervention | 0f2a4dc702729a0a04af5c210884ef4e08e49267 | [
"Apache-2.0"
] | 1 | 2018-09-02T02:39:21.000Z | 2018-09-02T02:39:21.000Z | HoloIntervention/Source/Rendering/CameraResources.cpp | adamrankin/HoloIntervention | 0f2a4dc702729a0a04af5c210884ef4e08e49267 | [
"Apache-2.0"
] | null | null | null | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... | 41.052239 | 181 | 0.655699 | adamrankin |
2a1cd6d8c00eae8458bd896922ab1595262bf9d6 | 6,012 | cpp | C++ | src/libawkward/typedbuilder/IndexedOptionArrayBuilder.cpp | ioanaif/awkward-1.0 | 22501ba218646dc24dc515c4394eb22f126d340d | [
"BSD-3-Clause"
] | null | null | null | src/libawkward/typedbuilder/IndexedOptionArrayBuilder.cpp | ioanaif/awkward-1.0 | 22501ba218646dc24dc515c4394eb22f126d340d | [
"BSD-3-Clause"
] | null | null | null | src/libawkward/typedbuilder/IndexedOptionArrayBuilder.cpp | ioanaif/awkward-1.0 | 22501ba218646dc24dc515c4394eb22f126d340d | [
"BSD-3-Clause"
] | null | null | null | // BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
#define FILENAME(line) FILENAME_FOR_EXCEPTIONS("src/libawkward/builder/IndexedOptionArrayBuilder.cpp", line)
#include "awkward/typedbuilder/IndexedOptionArrayBuilder.h"
#include "awkward/typedbuilder/TypedArrayBuilder.h"
#include... | 31.150259 | 108 | 0.626414 | ioanaif |
2a1d3fd812f5cbf3af8e947032ee73c06d113109 | 921 | hpp | C++ | include/Module/Source/User/Source_user_binary.hpp | FredrikBlomgren/aff3ct | fa616bd923b2dcf03a4cf119cceca51cf810d483 | [
"MIT"
] | 315 | 2016-06-21T13:32:14.000Z | 2022-03-28T09:33:59.000Z | include/Module/Source/User/Source_user_binary.hpp | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 153 | 2017-01-17T03:51:06.000Z | 2022-03-24T15:39:26.000Z | include/Module/Source/User/Source_user_binary.hpp | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 119 | 2017-01-04T14:31:58.000Z | 2022-03-21T08:34:16.000Z | #ifndef SOURCE_USER_BINARY_HPP_
#define SOURCE_USER_BINARY_HPP_
#include <string>
#include <vector>
#include <fstream>
#include <memory>
#include "Module/Source/Source.hpp"
namespace aff3ct
{
namespace module
{
template <typename B = int32_t>
class Source_user_binary : public Source<B>
{
private:
std::ifstream sour... | 20.466667 | 94 | 0.703583 | FredrikBlomgren |
2a21d57b9949a9f12817b8dbc9977955ced6201b | 7,174 | cpp | C++ | Visual Mercutio/zBaseLib/PSS_PLFNAutoNumbered.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zBaseLib/PSS_PLFNAutoNumbered.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zBaseLib/PSS_PLFNAutoNumbered.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_PLFNAutoNumbered ------------------------------------------------*
****************************************************************************
* Description : Provides an financial plan auto-numbered object *
* Devel... | 30.922414 | 110 | 0.476164 | Jeanmilost |
2a24a43d5020c4e757efdc26e46e319dcae98a08 | 1,584 | cpp | C++ | sources/UseCases/Multithreading/f1/function1.cpp | alrinach/ARISS | b84ace8412ebb037d7c1690ee488c111aef57b64 | [
"CECILL-B",
"MIT"
] | null | null | null | sources/UseCases/Multithreading/f1/function1.cpp | alrinach/ARISS | b84ace8412ebb037d7c1690ee488c111aef57b64 | [
"CECILL-B",
"MIT"
] | null | null | null | sources/UseCases/Multithreading/f1/function1.cpp | alrinach/ARISS | b84ace8412ebb037d7c1690ee488c111aef57b64 | [
"CECILL-B",
"MIT"
] | null | null | null | #include "CBasefunction.h"
#include <iostream>
#include <stdlib.h>
#define SEMKEY_1 50000
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
void * fonction_thread(void * arg) {
long numero = (long) arg;
std::cout << "numéro vaut : " << numero << std::endl;
//usleep(random());
std::cout <<... | 24.75 | 78 | 0.581439 | alrinach |
2a26d9cdad17739ee5bd7f530447d991615bbd4e | 1,243 | cpp | C++ | source/Game/Entities/Aircraft.cpp | zhiayang/controller_game | a0800f991067e81850d44d7298d80b8772c5384f | [
"Apache-2.0"
] | 1 | 2021-02-07T08:42:12.000Z | 2021-02-07T08:42:12.000Z | source/Game/Entities/Aircraft.cpp | zhiayang/controller_game | a0800f991067e81850d44d7298d80b8772c5384f | [
"Apache-2.0"
] | null | null | null | source/Game/Entities/Aircraft.cpp | zhiayang/controller_game | a0800f991067e81850d44d7298d80b8772c5384f | [
"Apache-2.0"
] | null | null | null | // Aircraft.cpp
// Copyright (c) 2014 - The Foreseeable Future, [email protected]
// Licensed under the Apache License Version 2.0.
#include "Game.h"
#include <random>
#include "Config.h"
#include "Game/Scene.h"
#include "Game/Aircraft.h"
namespace Game
{
Aircraft::Aircraft(Entity* p) : MovingEntity(p), ai(this)
{... | 19.123077 | 102 | 0.652454 | zhiayang |
2a270ca12258cf80c0517bd0c8d8a56ad38daa67 | 382 | ipp | C++ | include/particles/implementation/component/ParticleEmitterSimple.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 3 | 2021-06-24T10:20:12.000Z | 2021-07-18T14:43:19.000Z | include/particles/implementation/component/ParticleEmitterSimple.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 2 | 2021-07-22T15:31:03.000Z | 2021-07-28T14:27:28.000Z | include/particles/implementation/component/ParticleEmitterSimple.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 1 | 2021-07-22T15:24:24.000Z | 2021-07-22T15:24:24.000Z | /**
* @file
* @author University of Warwick
* @version 1.0
*
* @section LICENSE
*
* @section DESCRIPTION
*
* Description
*
* Contains header level definitions for the ParticleEmitterSimple Class
*
*/
#ifndef CUPCFD_PARTICLES_PARTICLE_EMITTER_SIMPLE_IPP_H
#define CUPCFD_PARTICLES_PARTICLE_EMITTER_SIMPLE_IP... | 13.642857 | 72 | 0.746073 | thorbenlouw |
2a27b02e1482815b9058d92ded33c79b7818caa3 | 2,947 | cpp | C++ | oshgui/Controls/RadioButton.cpp | zhuhuibeishadiao/osh_sdk | 087df8876443c36254b6de127b732e74ddf77167 | [
"MIT"
] | 6 | 2018-10-31T12:53:37.000Z | 2019-01-12T23:12:43.000Z | OSHGui/Controls/RadioButton.cpp | EternityX/oshgui-deadcell | 7c565ba7e941ec00cf9f4a2d7639eb8a363a3e9e | [
"MIT"
] | 4 | 2018-10-31T16:39:43.000Z | 2019-01-14T07:30:24.000Z | OSHGui/Controls/RadioButton.cpp | EternityX/oshgui-deadcell | 7c565ba7e941ec00cf9f4a2d7639eb8a363a3e9e | [
"MIT"
] | 2 | 2021-01-20T21:17:35.000Z | 2022-03-12T08:18:43.000Z | /*
* OldSchoolHack GUI
*
* by KN4CK3R https://www.oldschoolhack.me/
*
* See license in OSHGui.hpp
*/
#include "RadioButton.hpp"
#include "Label.hpp"
#include "../Misc/Exceptions.hpp"
namespace OSHGui
{
//---------------------------------------------------------------------------
//Constructor
//-------------... | 28.892157 | 151 | 0.491686 | zhuhuibeishadiao |
2a28eca7795b2d1148dcae007a3dfd6f2fb9b78b | 625 | cc | C++ | caffe2/core/event_test.cc | huiqun2001/caffe2 | 97209961b675c8bea3831450ba46c9e8b7bad3de | [
"MIT"
] | null | null | null | caffe2/core/event_test.cc | huiqun2001/caffe2 | 97209961b675c8bea3831450ba46c9e8b7bad3de | [
"MIT"
] | null | null | null | caffe2/core/event_test.cc | huiqun2001/caffe2 | 97209961b675c8bea3831450ba46c9e8b7bad3de | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "caffe2/core/context.h"
#include "caffe2/core/event.h"
namespace caffe2 {
// For the CPU event test, we only test if these functions are properly
// registered. Nothing special needs to be checked since CPU events are no-ops.
TEST(EventCPUTest, EventBasics) {
DeviceOption device_op... | 24.038462 | 79 | 0.736 | huiqun2001 |
2a29354894a525a0b0963bffe5958b6445acdf82 | 10,172 | cpp | C++ | PinGUI/GUI_Elements/ComboBox.cpp | Pinsius/PinGUI | eb1d39937e28c7f0a030f3dcd61e3d1a67c1feb1 | [
"Zlib"
] | 60 | 2017-04-16T15:31:13.000Z | 2021-12-22T19:01:07.000Z | PinGUI/GUI_Elements/ComboBox.cpp | Pinsius/PinGUI | eb1d39937e28c7f0a030f3dcd61e3d1a67c1feb1 | [
"Zlib"
] | 4 | 2017-02-14T19:05:21.000Z | 2020-07-16T10:04:27.000Z | PinGUI/GUI_Elements/ComboBox.cpp | Pinsius/PinGUI | eb1d39937e28c7f0a030f3dcd61e3d1a67c1feb1 | [
"Zlib"
] | 20 | 2017-02-15T19:07:17.000Z | 2021-12-22T19:01:07.000Z | /**
PinGUI
Copyright (c) 2017 Lubomir Barantal <[email protected]>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use... | 26.1491 | 142 | 0.630161 | Pinsius |
2a2df2581625dc70da8397d83fcb7692a5abd9db | 1,061 | cpp | C++ | chapter_06/Emirp.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | null | null | null | chapter_06/Emirp.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | 31 | 2021-05-14T03:37:24.000Z | 2022-03-13T17:38:32.000Z | chapter_06/Emirp.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | null | null | null | // Exercise 6.23 - Emirp
#include <iostream>
#include <iomanip>
bool isPrime(int number)
{
for (int divisor = 2; divisor <= number / 2; divisor++)
{
if (number % divisor == 0)
{
return false;
}
}
return true;
}
int reverseNumber(int extract)
{
int reverseNumbe... | 17.683333 | 62 | 0.528746 | Kevin-Oudai |
2a3085cc6a7a51b8ae06a24d22cc51647488b9aa | 1,877 | cpp | C++ | src/texture/Texture.cpp | Owlinated/Chess | 0a4e7d02bca1af6423ed88ed780b8fb0cae1ccb8 | [
"MIT"
] | 1 | 2022-01-05T18:37:47.000Z | 2022-01-05T18:37:47.000Z | src/texture/Texture.cpp | flostellbrink/Chess | 0a4e7d02bca1af6423ed88ed780b8fb0cae1ccb8 | [
"MIT"
] | null | null | null | src/texture/Texture.cpp | flostellbrink/Chess | 0a4e7d02bca1af6423ed88ed780b8fb0cae1ccb8 | [
"MIT"
] | null | null | null | #include <GL/glew.h>
#include "Texture.h"
#include <src/texture/Image.h>
Texture::Texture() : texture_handle_()
{
}
Texture::Texture(const std::string& texturePath, const GLenum target, const GLenum repeatMode)
{
texture_handle_ = 0;
glGenTextures(1, &texture_handle_);
glBindTexture(target, texture_handle_);
... | 27.602941 | 94 | 0.631327 | Owlinated |
2a354182883b2e7e1caaf1490d9b37b87a3becba | 564 | cpp | C++ | 450/Utkarsh/array/firstAndLastX.cpp | stunnerhash/Competitive-Programming | 7ef3e36dd1bf5744fb2edea5e64e851c5a02f631 | [
"MIT"
] | 1 | 2021-07-27T03:54:41.000Z | 2021-07-27T03:54:41.000Z | 450/Utkarsh/array/firstAndLastX.cpp | stunnerhash/Competitive-Programming | 7ef3e36dd1bf5744fb2edea5e64e851c5a02f631 | [
"MIT"
] | null | null | null | 450/Utkarsh/array/firstAndLastX.cpp | stunnerhash/Competitive-Programming | 7ef3e36dd1bf5744fb2edea5e64e851c5a02f631 | [
"MIT"
] | null | null | null | //https://practice.geeksforgeeks.org/problems/first-and-last-occurrences-of-x/1
#include <bits/stdc++.h>
using namespace std;
void firstAndLastX(int a[], int n, int x)
{
if (binary_search(a, a + n, x) == 0) cout<<"-1";
else cout<< lower_bound(a, a + n, x)-a <<" "<<upper_bound(a, a + n, x)-1-a;
}
int main()
{
... | 21.692308 | 79 | 0.498227 | stunnerhash |
2a3723e5f939c1099664bd34f378158ccf76eae6 | 4,623 | cpp | C++ | Core/Contents/Source/PolyGLSLProgram.cpp | Guendeli/Polycode | f458010cb81a4c78874e29ff7738eae4e13b12bb | [
"MIT"
] | 1 | 2020-08-25T06:30:49.000Z | 2020-08-25T06:30:49.000Z | Core/Contents/Source/PolyGLSLProgram.cpp | Guendeli/Polycode | f458010cb81a4c78874e29ff7738eae4e13b12bb | [
"MIT"
] | null | null | null | Core/Contents/Source/PolyGLSLProgram.cpp | Guendeli/Polycode | f458010cb81a4c78874e29ff7738eae4e13b12bb | [
"MIT"
] | null | null | null | /*
Copyright (C) 2011 by Ivan Safrin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, ... | 32.787234 | 202 | 0.717932 | Guendeli |
2a374262715fee77b0dc8a70db55bc86ed65192d | 1,633 | hpp | C++ | include/sre/Resource.hpp | estrac/SimpleRenderEngine | af8f25378e1394448a12b50fd9a19297e5de28d2 | [
"MIT"
] | 313 | 2017-01-13T10:54:58.000Z | 2022-03-18T03:08:53.000Z | include/sre/Resource.hpp | AntonyChan818/SimpleRenderEngine | 7e52507ecf6e93c1ddce7f9c2175acb159f49492 | [
"MIT"
] | 13 | 2016-09-29T12:50:23.000Z | 2019-04-21T05:17:33.000Z | include/sre/Resource.hpp | AntonyChan818/SimpleRenderEngine | 7e52507ecf6e93c1ddce7f9c2175acb159f49492 | [
"MIT"
] | 61 | 2016-08-31T07:34:42.000Z | 2022-03-16T23:02:11.000Z | /*
* SimpleRenderEngine (https://github.com/mortennobel/SimpleRenderEngine)
*
* Created by Morten Nobel-Jørgensen ( http://www.nobel-joergensen.com/ )
* License: MIT
*/
#pragma once
#include <string>
#include <set>
#include <map>
namespace sre {
enum ResourceType {
BuiltIn = 0b001,
File ... | 41.871795 | 120 | 0.560931 | estrac |
2a3d8ae74318d4784bb0a7ebb271d69e305c468b | 1,462 | cpp | C++ | Modules/SegmentationUI/Qmitk/QmitkRegionGrowingToolGUI.cpp | samsmu/MITK | c93dce6dc38d8f4c961de4440e4dd113b9841c8c | [
"BSD-3-Clause"
] | 5 | 2015-02-05T10:58:41.000Z | 2019-04-17T15:04:07.000Z | Modules/SegmentationUI/Qmitk/QmitkRegionGrowingToolGUI.cpp | kometa-dev/MITK | 984b5f7ac8ea614e80f303381ef1fc77d8ca4c3d | [
"BSD-3-Clause"
] | 141 | 2015-03-03T06:52:01.000Z | 2020-12-10T07:28:14.000Z | Modules/SegmentationUI/Qmitk/QmitkRegionGrowingToolGUI.cpp | kometa-dev/MITK | 984b5f7ac8ea614e80f303381ef1fc77d8ca4c3d | [
"BSD-3-Clause"
] | 4 | 2015-02-19T06:48:13.000Z | 2020-06-19T16:20:25.000Z | #include "QmitkRegionGrowingToolGUI.h"
MITK_TOOL_GUI_MACRO(MITKSEGMENTATIONUI_EXPORT, QmitkRegionGrowingToolGUI, "")
QmitkRegionGrowingToolGUI::QmitkRegionGrowingToolGUI()
: QmitkToolGUI()
{
m_Controls.setupUi(this);
connect(this, SIGNAL(NewToolAssociated(mitk::Tool*)), this, SLOT(OnNewToolAssociated(mitk::To... | 32.488889 | 127 | 0.792066 | samsmu |
2a3e7982560ba836040315476accb9cbc193c9f4 | 4,524 | cpp | C++ | src/fluxions_renderer_gles30_snapshot.cpp | microwerx/fluxions-renderer | d461ac437e9c410577eeb609b52b6dd386e03b03 | [
"MIT"
] | null | null | null | src/fluxions_renderer_gles30_snapshot.cpp | microwerx/fluxions-renderer | d461ac437e9c410577eeb609b52b6dd386e03b03 | [
"MIT"
] | null | null | null | src/fluxions_renderer_gles30_snapshot.cpp | microwerx/fluxions-renderer | d461ac437e9c410577eeb609b52b6dd386e03b03 | [
"MIT"
] | null | null | null | #include "fluxions_renderer_pch.hpp"
#include <fluxions_renderer_gles30_snapshot.hpp>
namespace Fluxions {
//////////////////////////////////////////////////////////////////////
// RendererGLES30Snapshot ///////////////////////////////////////////////////
////////////////////////////////////////////////////////////... | 41.888889 | 100 | 0.782051 | microwerx |
2a48a46382db2584bb71399229333cf710812a53 | 35,596 | cpp | C++ | src/lib/pubkey/newhope/newhope.cpp | reneme/botan | b8b50eaf392a5da53d59f28919af0dcfd16b6f4d | [
"BSD-2-Clause"
] | 1 | 2018-01-07T03:42:28.000Z | 2018-01-07T03:42:28.000Z | src/lib/pubkey/newhope/newhope.cpp | reneme/botan | b8b50eaf392a5da53d59f28919af0dcfd16b6f4d | [
"BSD-2-Clause"
] | null | null | null | src/lib/pubkey/newhope/newhope.cpp | reneme/botan | b8b50eaf392a5da53d59f28919af0dcfd16b6f4d | [
"BSD-2-Clause"
] | null | null | null | /*
* NEWHOPE Ring-LWE scheme
* Based on the public domain reference implementation by the
* designers (https://github.com/tpoeppelmann/newhope)
*
* Further changes
* (C) 2016 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/newhope.h>
#include <botan/hash.h>
#inclu... | 44.944444 | 129 | 0.631504 | reneme |
2a5579b49e8dcaecd38d4cb1636e32896d144f31 | 149 | hpp | C++ | RPC/GpApiRPC.hpp | ITBear/GpApi | fcf114acf28b37682919c9a634d8a2ae3860409b | [
"Apache-2.0"
] | null | null | null | RPC/GpApiRPC.hpp | ITBear/GpApi | fcf114acf28b37682919c9a634d8a2ae3860409b | [
"Apache-2.0"
] | null | null | null | RPC/GpApiRPC.hpp | ITBear/GpApi | fcf114acf28b37682919c9a634d8a2ae3860409b | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "RqRs/GpApiRqRs.hpp"
#include "Client/GpApiClient.hpp"
#include "Server/GpApiServer.hpp"
#include "GpApiVoidDesc.hpp"
| 18.625 | 34 | 0.738255 | ITBear |
2a58dfc89d20ff1d53638ffe6f7f9e24b9ed8eb4 | 48,690 | cpp | C++ | Intersectable.cpp | jambolo/Math | 470d58579a9aa18930f419f00332f10a7a2fd008 | [
"MIT"
] | null | null | null | Intersectable.cpp | jambolo/Math | 470d58579a9aa18930f419f00332f10a7a2fd008 | [
"MIT"
] | null | null | null | Intersectable.cpp | jambolo/Math | 470d58579a9aa18930f419f00332f10a7a2fd008 | [
"MIT"
] | null | null | null | #include "Intersectable.h"
#include "Box.h"
#include "Cone.h"
#include "Frustum.h"
#include "Line.h"
#include "MyMath.h"
#include "Plane.h"
#include "Point.h"
#include "Sphere.h"
#pragma warning( disable : 4100 ) // 'identifier' : unreferenced formal parameter
//! @param a The point to test.
//! @param b The poi... | 28.507026 | 131 | 0.625488 | jambolo |
2a595f10e7726880050db0c4ae8725f99808f58c | 4,668 | cpp | C++ | src/CAENDigitizerException.cpp | flagarde/CAENcpp | f008098ec7b0a4ca609e217df9d13b87179491c9 | [
"MIT"
] | null | null | null | src/CAENDigitizerException.cpp | flagarde/CAENcpp | f008098ec7b0a4ca609e217df9d13b87179491c9 | [
"MIT"
] | null | null | null | src/CAENDigitizerException.cpp | flagarde/CAENcpp | f008098ec7b0a4ca609e217df9d13b87179491c9 | [
"MIT"
] | null | null | null | #include "CAENDigitizerException.hpp"
#include "CAENDigitizerType.h"
namespace CAEN
{
const char* Exception::what() const noexcept
{
return m_What.c_str();
}
const char* Exception::description() const noexcept
{
return m_Description.c_str();
}
std::int_least8_t Exception::code() const noexcept
{
return m_C... | 31.972603 | 238 | 0.687875 | flagarde |
39895bee8a6c943606dcdb78e1e39735de17bf14 | 9,824 | cpp | C++ | RendererCore/src/WindowRegister.cpp | Gaiyitp9/TGRenderLab | 9251161088643bacdd82586210e468e28b4ce5d7 | [
"MIT"
] | null | null | null | RendererCore/src/WindowRegister.cpp | Gaiyitp9/TGRenderLab | 9251161088643bacdd82586210e468e28b4ce5d7 | [
"MIT"
] | null | null | null | RendererCore/src/WindowRegister.cpp | Gaiyitp9/TGRenderLab | 9251161088643bacdd82586210e468e28b4ce5d7 | [
"MIT"
] | null | null | null | /****************************************************************
* TianGong RenderLab *
* Copyright (c) Gaiyitp9. All rights reserved. *
* This code is licensed under the MIT License (MIT). *
*****************************************************************/
#include "WindowRegister.hpp"
#inclu... | 33.99308 | 118 | 0.739414 | Gaiyitp9 |
3989ab37c948861fd15cf884e9a594898755aee8 | 5,586 | cpp | C++ | owGame/WMO/WMO.cpp | Chaos192/OpenWow | 1d91a51fafeedadc67122a3e9372ec4637a48434 | [
"Apache-2.0"
] | 30 | 2017-09-02T20:25:47.000Z | 2021-12-31T10:12:07.000Z | owGame/WMO/WMO.cpp | Chaos192/OpenWow | 1d91a51fafeedadc67122a3e9372ec4637a48434 | [
"Apache-2.0"
] | null | null | null | owGame/WMO/WMO.cpp | Chaos192/OpenWow | 1d91a51fafeedadc67122a3e9372ec4637a48434 | [
"Apache-2.0"
] | 23 | 2018-02-04T17:18:33.000Z | 2022-03-22T09:45:36.000Z | #include "stdafx.h"
#ifdef USE_WMO_MODELS
// Include
#include "WMO_Base_Instance.h"
// General
#include "WMO.h"
CWMO::CWMO(const IBaseManager& BaseManager, IRenderDevice& RenderDevice, const std::string& Filename)
: m_FileName(Filename)
, m_TexturesNames(nullptr)
, m_DoodadsFilenames(nullptr)
, m_BaseManager(Ba... | 23.470588 | 127 | 0.697637 | Chaos192 |
398a014d168421009d498635e782844e8a350fa4 | 16,655 | cxx | C++ | osprey/common/com/wn_simp.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/common/com/wn_simp.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/common/com/wn_simp.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free S... | 27.620232 | 124 | 0.653197 | sharugupta |
398a765b86b2c2511401a8ffcded4ab9c2fa53d7 | 5,374 | cpp | C++ | D3/BillboardParticles.cpp | Sudoka/D3 | 40c43bfc8bc619a344796c69a720be752e660eac | [
"CC-BY-3.0"
] | 1 | 2018-06-21T04:04:45.000Z | 2018-06-21T04:04:45.000Z | D3/BillboardParticles.cpp | Sudoka/D3 | 40c43bfc8bc619a344796c69a720be752e660eac | [
"CC-BY-3.0"
] | null | null | null | D3/BillboardParticles.cpp | Sudoka/D3 | 40c43bfc8bc619a344796c69a720be752e660eac | [
"CC-BY-3.0"
] | null | null | null | //
// BillboardParticles.cpp
// D3
//
// Created by Srđan Rašić on 10/7/12.
// Copyright (c) 2012 Srđan Rašić. All rights reserved.
//
#include "BillboardParticles.hpp"
namespace d3 {
BillboardParticles::BillboardParticles(shared_ptr<ParticleSystem> particle_system) : emitter(particle_system)
{
un... | 44.783333 | 126 | 0.598995 | Sudoka |
398a8aa8d2a685a8d41d5aacc5e7cf810d75073b | 8,341 | cpp | C++ | jit.gl.isf/jit.gl.isf/ISFFileManager_Win.cpp | mrRay/jit.gl.isf | 81553e0c48f6030fcd67e0df2a48d38f0d98ee90 | [
"MIT"
] | 19 | 2019-04-28T11:53:46.000Z | 2021-04-16T21:05:58.000Z | jit.gl.isf/jit.gl.isf/ISFFileManager_Win.cpp | mrRay/jit.gl.isf | 81553e0c48f6030fcd67e0df2a48d38f0d98ee90 | [
"MIT"
] | 6 | 2019-05-25T17:27:18.000Z | 2020-09-01T01:11:25.000Z | jit.gl.isf/jit.gl.isf/ISFFileManager_Win.cpp | mrRay/jit.gl.isf | 81553e0c48f6030fcd67e0df2a48d38f0d98ee90 | [
"MIT"
] | 1 | 2020-08-14T15:39:10.000Z | 2020-08-14T15:39:10.000Z | #include "ISFFileManager_Win.hpp"
#include "VVISF.hpp"
//#include <unistd.h>
#include <sys/types.h>
//#include <pwd.h>
#include <algorithm>
/*
#include "jit.common.h"
#include "jit.gl.h"
//#include "ext_mess.h"
*/
#include <filesystem>
using namespace std;
using namespace VVGL;
using namespace VVISF;
void ISFF... | 32.582031 | 245 | 0.687927 | mrRay |
39906832e9940940eb1e4d81e5ad9fd0bd6da26f | 172 | hpp | C++ | include/TextureManager.hpp | Frostie314159/FrostEngine | bb7781c5c90baf77ca836d69d6c38a4a5381e27f | [
"MIT"
] | null | null | null | include/TextureManager.hpp | Frostie314159/FrostEngine | bb7781c5c90baf77ca836d69d6c38a4a5381e27f | [
"MIT"
] | null | null | null | include/TextureManager.hpp | Frostie314159/FrostEngine | bb7781c5c90baf77ca836d69d6c38a4a5381e27f | [
"MIT"
] | null | null | null | #ifndef TEXTURE_MANAGER_HPP_
#define TEXTURE_MANAGER_HPP_
#include <iostream>
#include <vector>
#include "stb/stb_image.h"
class TextureManager
{
private:
public:
};
#endif | 15.636364 | 28 | 0.796512 | Frostie314159 |
39906b9a591240b78755180ee0087bdcebf54ed5 | 1,647 | cpp | C++ | 018/4Sum.cpp | Lixu518/leetcode | f8e868ef6963da92237e6dc6888d7dda0b9bdd19 | [
"MIT"
] | 1 | 2018-06-24T13:58:07.000Z | 2018-06-24T13:58:07.000Z | 018/4Sum.cpp | Lixu518/leetcode | f8e868ef6963da92237e6dc6888d7dda0b9bdd19 | [
"MIT"
] | null | null | null | 018/4Sum.cpp | Lixu518/leetcode | f8e868ef6963da92237e6dc6888d7dda0b9bdd19 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
vector<vector<int>> fourSum(vector<int>&nums, int target){
vector<vector<int>> total;
int n = nums.size();
if(n<4) return total;
sort(nums.begin(),nums.end());
for (int i=0;i<n-3;i++){
if(i>0&&num... | 35.804348 | 93 | 0.453552 | Lixu518 |
39990e6a9d4dd6137bf85bcf89a84be908e31afd | 5,553 | cpp | C++ | src/rrrobot_ws/src/rrrobot/src/rrrobot_node.cpp | EECS-467-W20-RRRobot-Project/RRRobot | f5bfccab3b96e1908a81a987d5fed51ae3b9c738 | [
"MIT"
] | 1 | 2020-04-10T21:19:03.000Z | 2020-04-10T21:19:03.000Z | src/rrrobot_ws/src/rrrobot/src/rrrobot_node.cpp | EECS-467-W20-RRRobot-Project/RRRobot | f5bfccab3b96e1908a81a987d5fed51ae3b9c738 | [
"MIT"
] | 9 | 2020-04-10T18:47:54.000Z | 2020-04-10T18:57:52.000Z | src/rrrobot_ws/src/rrrobot/src/rrrobot_node.cpp | EECS-467-W20-RRRobot-Project/RRRobot | f5bfccab3b96e1908a81a987d5fed51ae3b9c738 | [
"MIT"
] | null | null | null | // rrrobot_node.cpp
#include <algorithm>
#include <vector>
#include <string>
#include <stdlib.h>
#include <time.h>
#include <fstream>
#include <iostream>
#include <ros/ros.h>
#include <osrf_gear/LogicalCameraImage.h>
#include <osrf_gear/Order.h>
#include <osrf_gear/Proximity.h>
#include <osrf_gear/VacuumGripperState... | 24.355263 | 116 | 0.730956 | EECS-467-W20-RRRobot-Project |
399c99bd2be8831407f02b878cc0f7c6deb5856b | 4,738 | cpp | C++ | shirabeengine/shirabeengine/modules/vulkan_integration/code/source/resources/types/vulkanshadermoduleresource.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 5 | 2019-12-02T12:28:57.000Z | 2021-04-07T21:21:13.000Z | shirabeengine/shirabeengine/modules/vulkan_integration/code/source/resources/types/vulkanshadermoduleresource.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | null | null | null | shirabeengine/shirabeengine/modules/vulkan_integration/code/source/resources/types/vulkanshadermoduleresource.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 1 | 2020-01-09T14:25:42.000Z | 2020-01-09T14:25:42.000Z | //
// Created by dottideveloper on 29.10.19.
//
#include <material/serialization.h>
#include "vulkan_integration/resources/types/vulkanshadermoduleresource.h"
#include "vulkan_integration/vulkandevicecapabilities.h"
namespace engine::vulkan
{
//<---------------------------------------------------------------------... | 41.2 | 130 | 0.436471 | BoneCrasher |
399d5128af1add1705289fa1dbfa47b61822ea4c | 5,855 | cc | C++ | gazebo/physics/Atmosphere_TEST.cc | SamFerwerda/Gazebo10-commits | b33ac5982fb75cac894fa145f7268146d44e0724 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2018-07-17T00:17:13.000Z | 2020-05-26T08:39:25.000Z | gazebo/physics/Atmosphere_TEST.cc | SamFerwerda/Gazebo10-commits | b33ac5982fb75cac894fa145f7268146d44e0724 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-06-04T10:26:04.000Z | 2020-06-04T10:26:04.000Z | gazebo/physics/Atmosphere_TEST.cc | SamFerwerda/Gazebo10-commits | b33ac5982fb75cac894fa145f7268146d44e0724 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-11-10T07:19:09.000Z | 2019-11-21T19:11:11.000Z | /*
* Copyright (C) 2016 Open Source Robotics Foundation
*
* 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 appl... | 34.64497 | 80 | 0.713749 | SamFerwerda |
399db7b9cb01f3cad58f6479f2145cf6826b3046 | 14,799 | inl | C++ | include/UDRefl/details/Object.inl | zerger/UDRefl | 1a2f67a3d94f191d6eafd520359428ac3d579ab2 | [
"MIT"
] | null | null | null | include/UDRefl/details/Object.inl | zerger/UDRefl | 1a2f67a3d94f191d6eafd520359428ac3d579ab2 | [
"MIT"
] | null | null | null | include/UDRefl/details/Object.inl | zerger/UDRefl | 1a2f67a3d94f191d6eafd520359428ac3d579ab2 | [
"MIT"
] | null | null | null | #pragma once
#include <array>
namespace Ubpa::UDRefl {
//
// ObjectPtrBase
//////////////////
template<typename... Args>
InvocableResult ObjectPtrBase::IsInvocable(StrID methodID) const noexcept {
std::array argTypeIDs = { TypeID::of<Args>... };
return IsInvocable(ID, methodID, Span<const TypeID>{argTypeIDs... | 36.905237 | 116 | 0.693493 | zerger |
39a22d72475d40fe80590b67e8c7068a5926cedf | 821 | cpp | C++ | HackerRank/Challenges/compare-the-triplets.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | HackerRank/Challenges/compare-the-triplets.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | HackerRank/Challenges/compare-the-triplets.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <vector>
using namespace std;
void addIf(vector<int> &results, int a, int b)
{
if (a > b)
{
results[0]++;
}
else if (a < b)
{
results[1]++;
}
}
vector<int> solve(int a0, int a1, int a2, int b0, int b1, int b2)
{
vector<int> r... | 17.847826 | 65 | 0.501827 | Diggzinc |
39a5cab860d715ba666ff4c97e096f82308098f1 | 5,307 | cpp | C++ | Bebop2cpp-master/SNAP/SNAP_rudi.cpp | jmenden1/SNAP | a253aa052e4568cdc35e7ff5789b3e716ccbb4da | [
"MIT"
] | null | null | null | Bebop2cpp-master/SNAP/SNAP_rudi.cpp | jmenden1/SNAP | a253aa052e4568cdc35e7ff5789b3e716ccbb4da | [
"MIT"
] | null | null | null | Bebop2cpp-master/SNAP/SNAP_rudi.cpp | jmenden1/SNAP | a253aa052e4568cdc35e7ff5789b3e716ccbb4da | [
"MIT"
] | null | null | null | #include <vector>
#include "Drone.h"
#include <math.h>
#include <boost/asio/io_service.hpp>
#include <Fullnavdata.h>
#include <gnuplot_iostream.h>
#include <deque>
#include <fstream>
#include <iostream>
#include <sstream>
/*
* PRIVATE HEADER
*/
#define DRONE_IP "192.168.42.1"
#define DRONE_MAX_ALT... | 21.313253 | 102 | 0.655172 | jmenden1 |
39b190ab03896db9404c35ee98c9abbbe5ec8e95 | 1,898 | cpp | C++ | od/audio/SampleSaver.cpp | bapch/er-301 | e652eb9253009897747b0de7cfc57a27ac0cde1a | [
"MIT"
] | 1 | 2021-06-29T19:26:35.000Z | 2021-06-29T19:26:35.000Z | od/audio/SampleSaver.cpp | bapch/er-301 | e652eb9253009897747b0de7cfc57a27ac0cde1a | [
"MIT"
] | 1 | 2021-04-28T07:54:41.000Z | 2021-04-28T07:54:41.000Z | od/audio/SampleSaver.cpp | bapch/er-301 | e652eb9253009897747b0de7cfc57a27ac0cde1a | [
"MIT"
] | 1 | 2021-03-02T21:32:52.000Z | 2021-03-02T21:32:52.000Z | /*
* SampleSaver.cpp
*
* Created on: 24 Oct 2016
* Author: clarkson
*/
#include <od/audio/SampleSaver.h>
#include <od/audio/WavFileWriter.h>
namespace od
{
SampleSaver::SampleSaver()
{
}
SampleSaver::~SampleSaver()
{
}
bool SampleSaver::set(Sample *sample, const char *filenam... | 18.427184 | 127 | 0.611697 | bapch |
39b3080d167cecd1cf34fe5bdca3aea61bbf180c | 1,991 | hpp | C++ | ThreadPool.hpp | Linsexy/thread-pool | 0e9667c8c95fefc65054d8022c1a736aebf330d5 | [
"MIT"
] | null | null | null | ThreadPool.hpp | Linsexy/thread-pool | 0e9667c8c95fefc65054d8022c1a736aebf330d5 | [
"MIT"
] | 1 | 2018-03-27T19:43:26.000Z | 2018-03-28T14:04:40.000Z | ThreadPool.hpp | Linsexy/thread-pool | 0e9667c8c95fefc65054d8022c1a736aebf330d5 | [
"MIT"
] | null | null | null | //
// Created by benito on 3/25/18.
//
#ifndef THREAD_POOL_THREADPOOL_HPP
#define THREAD_POOL_THREADPOOL_HPP
/* Written for the Arfang Engine
*
* https://github.com/Linsexy/arfang-engine
*
*/
#include <array>
#include <vector>
#include <functional>
#include <list>
#include <future>
#include <queue>
#include <iost... | 27.273973 | 108 | 0.549975 | Linsexy |
39c13e97f233560c6fdf20a9c88db6c3884accb5 | 758 | cpp | C++ | Win32/GroupBox.cpp | soncfe/Win32GUI | c7bf6f24f2d4a66456c701017005e58f75a57c3c | [
"Unlicense"
] | 36 | 2020-03-29T19:23:00.000Z | 2022-03-28T22:07:11.000Z | Win32/GroupBox.cpp | soncfe/Win32GUI | c7bf6f24f2d4a66456c701017005e58f75a57c3c | [
"Unlicense"
] | 7 | 2020-08-01T13:35:16.000Z | 2022-01-27T00:43:44.000Z | Win32/GroupBox.cpp | soncfe/Win32GUI | c7bf6f24f2d4a66456c701017005e58f75a57c3c | [
"Unlicense"
] | 10 | 2020-04-07T15:55:44.000Z | 2021-12-16T20:25:12.000Z | #include "GroupBox.h"
GroupBox::GroupBox()
{
}
GroupBox::GroupBox(Control* parent, std::string name, RECT rect)
: Control(parent, name, rect.right, rect.bottom)
{
cmnControlInit(ICC_STANDARD_CLASSES);
setLocation(rect.left, rect.top);
mStyle = WS_CHILD | WS_VISIBLE | BS_GROUPBOX | BS_NOTIFY;
mType = WC_BUTTON;
... | 23.6875 | 76 | 0.738786 | soncfe |
39c7bed1fe699371925ee5a737b47ce59df42389 | 156 | cpp | C++ | chapter04/4.6_The_Member_Access_Operators .cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | 9 | 2019-05-10T05:39:21.000Z | 2022-02-22T08:04:52.000Z | chapter04/4.6_The_Member_Access_Operators .cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | null | null | null | chapter04/4.6_The_Member_Access_Operators .cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | 6 | 2019-05-13T13:39:19.000Z | 2022-02-22T08:05:01.000Z | /**
* 4.6 成员访问运算符
* @Author Bob
* @Eamil [email protected]
* @Date 2017/7/28
*/
int main(){
/**
* p->size(); 等价于 (*p).size()
*/
return 0;
}
| 12 | 31 | 0.49359 | NorthFacing |
39ca362c7922dde9d34d3c17724aa77e6c4c43ce | 652 | hpp | C++ | Sources/Physics/Colliders/ColliderSphere.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | Sources/Physics/Colliders/ColliderSphere.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | Sources/Physics/Colliders/ColliderSphere.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | #pragma once
#include "Collider.hpp"
class btSphereShape;
namespace acid {
class ACID_EXPORT ColliderSphere : public Collider::Registrar<ColliderSphere> {
public:
explicit ColliderSphere(float radius = 0.5f, const Transform &localTransform = {});
~ColliderSphere();
btCollisionShape *GetCollisionShape() const ov... | 22.482759 | 84 | 0.76227 | dreadris |
39ca7ec225ef050296a50f9a169889b1a73db298 | 3,314 | hpp | C++ | tests/data.hpp | ChrisAHolland/constexpr-sql | 3ea390a3f8a5d0e1dcb9b5f187121d4649e5f9c3 | [
"MIT"
] | 121 | 2020-04-21T13:21:55.000Z | 2021-11-15T09:48:47.000Z | tests/data.hpp | ChrisAHolland/constexpr-sql | 3ea390a3f8a5d0e1dcb9b5f187121d4649e5f9c3 | [
"MIT"
] | 3 | 2020-04-23T05:29:54.000Z | 2021-07-18T18:37:57.000Z | tests/data.hpp | ChrisAHolland/constexpr-sql | 3ea390a3f8a5d0e1dcb9b5f187121d4649e5f9c3 | [
"MIT"
] | 5 | 2020-04-23T05:01:02.000Z | 2022-02-21T21:00:30.000Z | #pragma once
#include <string>
#include <type_traits>
#include "sql.hpp"
using books =
sql::schema<
"books", sql::index<>,
#ifdef CROSS
sql::column<"book", std::string>,
#else
sql::column<"title", std::string>,
#endif
sql::column<"genre", std::string>,
sql::column<"year", unsigned>,
sql::column<"pages",... | 20.45679 | 65 | 0.646952 | ChrisAHolland |
39cadcd1cc8192bf943bc237abdaabb52e2fa9fe | 1,578 | hpp | C++ | include/DREAM/ConvergenceChecker.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | include/DREAM/ConvergenceChecker.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | include/DREAM/ConvergenceChecker.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | #ifndef _DREAM_CONVERGENCE_CHECKER_HPP
#define _DREAM_CONVERGENCE_CHECKER_HPP
#include <string>
#include <unordered_map>
#include <vector>
#include "FVM/NormEvaluator.hpp"
#include "FVM/UnknownQuantityHandler.hpp"
namespace DREAM {
class ConvergenceChecker : public FVM::NormEvaluator {
private:
std::u... | 30.346154 | 90 | 0.679975 | chalmersplasmatheory |
39cd665f158df7b7981492c8c02d51edefce8d11 | 1,872 | cpp | C++ | src/question34.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question34.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question34.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
// 法一:
vector<int> searchRange1(vector<int>& nums, int target) {
if(nums.size() == 0) return {-1, -1};
int l = 0, r = nums.size() - 1;
int mid = 0;
while(l <= r){
... | 27.130435 | 113 | 0.444444 | lxb1226 |
39d7c9e0998fda2cdc29ac309fb7e0712ae06c90 | 1,709 | cc | C++ | src/sheet_painter.cc | d0iasm/liumos | f9600bd26f15ebd194d35d5e76877650e25b9733 | [
"MIT"
] | null | null | null | src/sheet_painter.cc | d0iasm/liumos | f9600bd26f15ebd194d35d5e76877650e25b9733 | [
"MIT"
] | null | null | null | src/sheet_painter.cc | d0iasm/liumos | f9600bd26f15ebd194d35d5e76877650e25b9733 | [
"MIT"
] | null | null | null | #include "sheet_painter.h"
#include "asm.h"
// @font.gen.c
extern uint8_t font[0x100][16];
void SheetPainter::DrawCharacter(Sheet& s,
char c,
int px,
int py,
bool do_flush) {
if (!s.b... | 28.016393 | 77 | 0.426565 | d0iasm |
39d8dafd5118ea5b48ded9852aee0f07e48802f6 | 813 | hpp | C++ | include/cues.hpp | stefanofortu/intoTheWild | 000af8d5b7a480e0f14e1a2deb047899c8469b41 | [
"Unlicense"
] | null | null | null | include/cues.hpp | stefanofortu/intoTheWild | 000af8d5b7a480e0f14e1a2deb047899c8469b41 | [
"Unlicense"
] | 1 | 2015-12-23T16:26:12.000Z | 2015-12-23T16:26:34.000Z | include/cues.hpp | stefanofortu/intothewild | 000af8d5b7a480e0f14e1a2deb047899c8469b41 | [
"Unlicense"
] | null | null | null | #ifndef _CUES_HPP_
#define _CUES_HPP_
#include "config.hpp"
vector<double> ComputeEHOG(Mat source, vector<vector<Point> > regions);
vector<double> ComputePD(Mat source, vector<vector<Point> > regions);
vector<double> ComputeStrokeWidth(Mat source, vector<vector<Point> > regions);
vector<int> regions_cue(vector<dou... | 42.789474 | 168 | 0.738007 | stefanofortu |
39d9cd2a51eb44da0fd11031f2d53dd4e72bed47 | 45 | cpp | C++ | src/NGFX/Private/Vulkan/vk_log.cpp | PixPh/kaleido3d | 8a8356586f33a1746ebbb0cfe46b7889d0ae94e9 | [
"MIT"
] | 38 | 2019-01-10T03:10:12.000Z | 2021-01-27T03:14:47.000Z | src/NGFX/Private/Vulkan/vk_log.cpp | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | null | null | null | src/NGFX/Private/Vulkan/vk_log.cpp | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | 8 | 2019-04-16T07:56:27.000Z | 2020-11-19T02:38:37.000Z | #include "vk_common.h"
namespace vulkan
{
} | 7.5 | 22 | 0.711111 | PixPh |
39de3ef7de48233da97491f31e295f3e2792d4b0 | 9,319 | cpp | C++ | programming/sampleProject/startScanner.cpp | ljyang100/dataScience | ad2b243673c570c18d83ab1a0cd1bb4694c17eac | [
"MIT"
] | 2 | 2020-12-10T02:05:29.000Z | 2021-05-30T15:23:56.000Z | programming/sampleProject/startScanner.cpp | ljyang100/dataScience | ad2b243673c570c18d83ab1a0cd1bb4694c17eac | [
"MIT"
] | null | null | null | programming/sampleProject/startScanner.cpp | ljyang100/dataScience | ad2b243673c570c18d83ab1a0cd1bb4694c17eac | [
"MIT"
] | 1 | 2020-04-21T11:18:18.000Z | 2020-04-21T11:18:18.000Z | #include "startScanner.h"
void StartScanner::StartEntryPoint()
{
AllData a;
a.initializeTraderParameters(); a.initializeOtherParameters();
a.initializeSymbolVectors_Prev();
a.m_backTest = false; //**** IMPORTANT! This must be false all the time for real trading.
a.initializeSymbolVectors();
a.initializeBaseV... | 65.167832 | 322 | 0.725722 | ljyang100 |
39e2e124b0dbd8950a1a7d138a1b5ee8464995d5 | 656 | cpp | C++ | src/gui/widget/BodyWidget/BodyController.cpp | bartkessels/GetIt | 8adde91005d00d83a73227a91b08706657513f41 | [
"MIT"
] | 16 | 2020-09-07T18:53:39.000Z | 2022-03-21T08:15:55.000Z | src/gui/widget/BodyWidget/BodyController.cpp | bartkessels/GetIt | 8adde91005d00d83a73227a91b08706657513f41 | [
"MIT"
] | 23 | 2017-03-29T21:21:43.000Z | 2022-03-23T07:27:55.000Z | src/gui/widget/BodyWidget/BodyController.cpp | bartkessels/GetIt | 8adde91005d00d83a73227a91b08706657513f41 | [
"MIT"
] | 4 | 2020-06-15T12:51:10.000Z | 2021-09-05T20:50:46.000Z | #include "gui/widget/BodyWidget/BodyController.hpp"
using namespace getit::gui::widget;
BodyController::BodyController(std::shared_ptr<IBodyView> view):
view(view)
{
}
void BodyController::registerTab(std::shared_ptr<getit::domain::BeforeRequestPipeline> controller, std::shared_ptr<QWidget> tab, std::string nam... | 28.521739 | 146 | 0.760671 | bartkessels |
39e2e6f4d2351b8444b28edacee97376057ee6d6 | 665 | hpp | C++ | core/impl/memory/free_first_fit.hpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | core/impl/memory/free_first_fit.hpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | core/impl/memory/free_first_fit.hpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | #ifndef E2_FREE_FIRST_FIT_HPP
#define E2_FREE_FIRST_FIT_HPP
#include "i_free.hpp"
#include "memory_common.hpp"
namespace e2 { namespace memory {
class free_first_fit_impl {
public:
template< class T >
bool deleting( void * p_mem_start, size_t p_mem_len, std::list< memory_block_info > * mem_blocks... | 28.913043 | 161 | 0.714286 | auyunli |
39e3b63b95788224b22bcbcfb41c9ecca1964d06 | 457 | cpp | C++ | ExampleTemplate/ExampleTemplate.cpp | siretty/BrotBoxEngine | e1eb95152ffb8a7051e96a8937aa62f568b90a27 | [
"MIT"
] | 37 | 2020-06-14T18:14:08.000Z | 2022-03-29T18:39:34.000Z | ExampleTemplate/ExampleTemplate.cpp | HEX17/BrotBoxEngine | 4f8bbe220be022423b94e3b594a3695b87705a70 | [
"MIT"
] | 2 | 2021-04-05T15:34:18.000Z | 2021-05-28T00:04:56.000Z | ExampleTemplate/ExampleTemplate.cpp | HEX17/BrotBoxEngine | 4f8bbe220be022423b94e3b594a3695b87705a70 | [
"MIT"
] | 10 | 2020-06-25T17:07:03.000Z | 2022-03-08T20:31:17.000Z | #include "BBE/BrotBoxEngine.h"
#include <iostream>
class MyGame : public bbe::Game
{
virtual void onStart() override
{
}
virtual void update(float timeSinceLastFrame) override
{
}
virtual void draw3D(bbe::PrimitiveBrush3D & brush) override
{
}
virtual void draw2D(bbe::PrimitiveBrush2D & brush) override
{
}... | 14.741935 | 60 | 0.682713 | siretty |
39e64f1ecc077a97d5a64894fa9edc174bd0f1cd | 120,568 | cc | C++ | lib/ArgParseConvert/test/argument_map_test.cc | JasperBraun/PasteAlignments | 5186f674e51571319af3f328c661aaa62dbd0ca9 | [
"MIT"
] | null | null | null | lib/ArgParseConvert/test/argument_map_test.cc | JasperBraun/PasteAlignments | 5186f674e51571319af3f328c661aaa62dbd0ca9 | [
"MIT"
] | null | null | null | lib/ArgParseConvert/test/argument_map_test.cc | JasperBraun/PasteAlignments | 5186f674e51571319af3f328c661aaa62dbd0ca9 | [
"MIT"
] | null | null | null | // Copyright (c) 2020 Jasper Braun
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, ... | 50.069767 | 82 | 0.639332 | JasperBraun |
39ee83e54d46b60df4100a62c6ceedca042acc2d | 5,627 | cpp | C++ | poker/src/DecisionMaker.cpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | 1 | 2021-12-10T06:27:47.000Z | 2021-12-10T06:27:47.000Z | poker/src/DecisionMaker.cpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | null | null | null | poker/src/DecisionMaker.cpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | null | null | null | #include "DecisionMaker.hpp"
#include <iostream>
namespace poker{
void DecisionMaker::decideBetsize()
{
int bet = 0;
double winning_probability = this->data_.probability.first + this->data_.probability.second;
if(this->data_.players.at(0).current_decision == CALL)
{
... | 36.538961 | 182 | 0.513773 | JMassing |
39f60abaee0d398121d6905751915372ae22d6dc | 11,163 | cpp | C++ | CReader_bin.cpp | MechLabEngineering/SICKRPi-Scanner | 19d7603a7bee444c8cfbd646f9773178ecf2e188 | [
"MIT"
] | null | null | null | CReader_bin.cpp | MechLabEngineering/SICKRPi-Scanner | 19d7603a7bee444c8cfbd646f9773178ecf2e188 | [
"MIT"
] | null | null | null | CReader_bin.cpp | MechLabEngineering/SICKRPi-Scanner | 19d7603a7bee444c8cfbd646f9773178ecf2e188 | [
"MIT"
] | null | null | null | /*
* CReader.cpp
* save laser data to binary file
*
* Created on: 22.12.2014
* Author: Markus
*/
#include <iostream>
#include <string>
#include "CReader.h"
#include <sstream>
#include <fstream>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
#include <math.h>
#include <list>
#include <octomap/octom... | 21.717899 | 128 | 0.636746 | MechLabEngineering |
39fb491fd6f308f2fc4e92febae3038da1953a38 | 11,209 | cpp | C++ | src/engine/job_system.cpp | nemerle/LumixEngine | 6cfee07c4268c15994c7171cb5625179b1f369e2 | [
"MIT"
] | null | null | null | src/engine/job_system.cpp | nemerle/LumixEngine | 6cfee07c4268c15994c7171cb5625179b1f369e2 | [
"MIT"
] | null | null | null | src/engine/job_system.cpp | nemerle/LumixEngine | 6cfee07c4268c15994c7171cb5625179b1f369e2 | [
"MIT"
] | null | null | null | #include "engine/atomic.h"
#include "engine/array.h"
#include "engine/engine.h"
#include "engine/fibers.h"
#include "engine/allocator.h"
#include "engine/log.h"
#include "engine/math.h"
#include "engine/os.h"
#include "engine/sync.h"
#include "engine/thread.h"
#include "engine/profiler.h"
#include "job_system.h"
name... | 22.328685 | 115 | 0.686323 | nemerle |
39fc8b02a547193c70cf3a351b0c8f934e67566e | 2,434 | cpp | C++ | lib/WebServer/WebServer.cpp | sidoh/esp8266_pin_server | 31912034f660a9e174876aef7c3aa250f1674a9a | [
"MIT"
] | 2 | 2019-02-18T01:01:29.000Z | 2019-04-22T12:28:04.000Z | lib/WebServer/WebServer.cpp | sidoh/esp8266_pin_server | 31912034f660a9e174876aef7c3aa250f1674a9a | [
"MIT"
] | 1 | 2018-01-04T22:14:25.000Z | 2018-01-06T19:17:12.000Z | lib/WebServer/WebServer.cpp | sidoh/esp8266_pin_server | 31912034f660a9e174876aef7c3aa250f1674a9a | [
"MIT"
] | null | null | null | #include <PinHandler.h>
#include <Settings.h>
#include <WebServer.h>
#include <FS.h>
using namespace std::placeholders;
WebServer::WebServer(Settings& settings, PinHandler& pinHandler)
: settings(settings)
, authProvider(settings)
, server(80, authProvider)
, pinHandler(pinHandler)
{ }
void WebServer::begin(... | 26.747253 | 108 | 0.703369 | sidoh |
260b82ff984fb3982bf266d67275f4a12127f6ef | 7,821 | cc | C++ | DED/i3-old/test.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | 4 | 2015-06-12T05:08:56.000Z | 2017-11-13T11:34:27.000Z | DED/i3-old/test.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | null | null | null | DED/i3-old/test.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | 1 | 2021-10-20T02:04:53.000Z | 2021-10-20T02:04:53.000Z | /*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copy... | 29.513208 | 79 | 0.588927 | flipk |
260baed23247e7fdc04a28da812ef4d91946fa20 | 1,354 | hpp | C++ | app/src/main/cpp/graphics/resources/base.hpp | ktzevani/native-camera-vulkan | b9c03c956f8e9c2bda05ae31060d09518fd5790b | [
"Apache-2.0"
] | 10 | 2021-06-06T15:30:05.000Z | 2022-03-20T09:48:18.000Z | app/src/main/cpp/graphics/resources/base.hpp | ktzevani/native-camera-vulkan | b9c03c956f8e9c2bda05ae31060d09518fd5790b | [
"Apache-2.0"
] | 1 | 2021-09-23T08:44:50.000Z | 2021-09-23T08:44:50.000Z | app/src/main/cpp/graphics/resources/base.hpp | ktzevani/native-camera-vulkan | b9c03c956f8e9c2bda05ae31060d09518fd5790b | [
"Apache-2.0"
] | 2 | 2021-08-09T07:50:10.000Z | 2021-12-31T13:51:53.000Z | /*
* Copyright 2020 Konstantinos Tzevanidis
*
* 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 ... | 25.54717 | 95 | 0.687592 | ktzevani |
260e6d3bdac5631718004f8e99dd6e4539deca0f | 2,655 | cpp | C++ | src/base64.cpp | Oberon00/jd | 0724e059cfa56615afb0a50c27ce9885faa54ed6 | [
"BSD-2-Clause"
] | 1 | 2015-10-10T14:05:56.000Z | 2015-10-10T14:05:56.000Z | src/base64.cpp | Oberon00/jd | 0724e059cfa56615afb0a50c27ce9885faa54ed6 | [
"BSD-2-Clause"
] | null | null | null | src/base64.cpp | Oberon00/jd | 0724e059cfa56615afb0a50c27ce9885faa54ed6 | [
"BSD-2-Clause"
] | null | null | null | // Part of the Jade Engine -- Copyright (c) Christian Neumüller 2012--2013
// This file is subject to the terms of the BSD 2-Clause License.
// See LICENSE.txt or http://opensource.org/licenses/BSD-2-Clause
#include "base64.hpp"
#include <array>
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <cst... | 26.818182 | 84 | 0.534087 | Oberon00 |
2611e2856e3ac8d7acd24edab7ee13f10e239bdc | 2,660 | cpp | C++ | src/data/SourceCodeLocationsModel.cpp | vitorjna/LoggerClient | b447f36224e98919045138bb08a849df211e5491 | [
"MIT"
] | null | null | null | src/data/SourceCodeLocationsModel.cpp | vitorjna/LoggerClient | b447f36224e98919045138bb08a849df211e5491 | [
"MIT"
] | null | null | null | src/data/SourceCodeLocationsModel.cpp | vitorjna/LoggerClient | b447f36224e98919045138bb08a849df211e5491 | [
"MIT"
] | null | null | null | #include "SourceCodeLocationsModel.h"
#include "util/NetworkUtils.h"
SourceCodeLocationsModel::SourceCodeLocationsModel(QObject *parent)
: StandardItemModel(parent)
{
setupHeader();
}
SourceCodeLocationsModel::~SourceCodeLocationsModel() = default;
QString SourceCodeLocationsModel::getColumnName(const Source... | 32.048193 | 138 | 0.59812 | vitorjna |
2612601b86ac87bb1928207ed4b547cdeb80a239 | 3,461 | cc | C++ | base/io_buffer_test.cc | wuyongchn/trpc | ee492ce8c40ef6a156f298aa295ed4e1fe4b4545 | [
"BSD-2-Clause"
] | null | null | null | base/io_buffer_test.cc | wuyongchn/trpc | ee492ce8c40ef6a156f298aa295ed4e1fe4b4545 | [
"BSD-2-Clause"
] | null | null | null | base/io_buffer_test.cc | wuyongchn/trpc | ee492ce8c40ef6a156f298aa295ed4e1fe4b4545 | [
"BSD-2-Clause"
] | null | null | null | #include "base/io_buffer.h"
#include "base/scoped_refptr.h"
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <string.h>
namespace pbrpc {
namespace unittest {
TEST(IOBufferWithSizeTest, TestConstructor) {
const int kBufSize = 128;
auto buffer = MakeRefCounted<IOBufferWithSize>(kBufSize);
}
TEST(IOBuf... | 30.359649 | 69 | 0.737937 | wuyongchn |
2613c230b86e3ace3ee1dc68d5649ce109d96676 | 4,009 | cpp | C++ | SPOJ/SPOJ CERC07K - Key Task.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | 2 | 2020-04-23T17:47:27.000Z | 2020-04-25T19:40:50.000Z | SPOJ/SPOJ CERC07K - Key Task.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | null | null | null | SPOJ/SPOJ CERC07K - Key Task.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | 1 | 2020-06-14T20:52:39.000Z | 2020-06-14T20:52:39.000Z | #include<bits/stdc++.h>
#include<iostream>
#include<string>
#include<vector>
#include<cmath>
#include<list>
#include <algorithm>
#include<vector>
#include<set>
#include <cctype>
#include <cstring>
#include <cstdio>
#include<queue>
#include<stack>
#include<bitset>
#include<time.h>
#include<fstream>
/******************... | 20.880208 | 116 | 0.467199 | bishoy-magdy |
2617d234f36327f4a417092231cbeac3db3a699b | 1,687 | cpp | C++ | src/Arduino/ADXL345/example_grativity_to_tilt.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null | src/Arduino/ADXL345/example_grativity_to_tilt.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null | src/Arduino/ADXL345/example_grativity_to_tilt.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null |
#include <Arduino.h>
#include <stdint.h>
#include <Math.h>
#include "ADXL345.h"
#define OFFSETX 270
#define OFFSETY 270
ADXL345 accel;
void setup()
{
Serial.begin(9600);
Wire.begin();
accel.begin();
delay(1500);
}
void loop()
{
// Data acquisition from accelerometer
float x = (int16_t... | 22.197368 | 59 | 0.571429 | smurilogs |
26194c3bdf8b2234686f873fc6c989481ab274f2 | 15,419 | cpp | C++ | fuse_publishers/test/test_pose_2d_publisher.cpp | congleetea/fuse | 7a87a59915a213431434166c96d0705ba6aa00b2 | [
"BSD-3-Clause"
] | 383 | 2018-07-02T07:20:32.000Z | 2022-03-31T12:51:06.000Z | fuse_publishers/test/test_pose_2d_publisher.cpp | congleetea/fuse | 7a87a59915a213431434166c96d0705ba6aa00b2 | [
"BSD-3-Clause"
] | 117 | 2018-07-16T10:32:52.000Z | 2022-02-02T20:15:16.000Z | fuse_publishers/test/test_pose_2d_publisher.cpp | congleetea/fuse | 7a87a59915a213431434166c96d0705ba6aa00b2 | [
"BSD-3-Clause"
] | 74 | 2018-10-01T10:10:45.000Z | 2022-03-02T04:48:22.000Z | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2018, Locus Robotics
* 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 re... | 41.117333 | 109 | 0.728841 | congleetea |
261c3a982176fb59cb4adb48f6970cbe839b934c | 7,690 | cpp | C++ | src/downloads/downloadfilehelper.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | 1 | 2017-05-21T15:31:02.000Z | 2017-05-21T15:31:02.000Z | src/downloads/downloadfilehelper.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | null | null | null | src/downloads/downloadfilehelper.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | null | null | null | /* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2012 David Rosca <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software ... | 32.041667 | 148 | 0.597529 | bubapl |
1c7a16b52d0a2598419413ef6684c2331805539d | 10,204 | cpp | C++ | homework/AvilovaEM/05/BI.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 12 | 2018-02-20T15:25:12.000Z | 2022-02-15T03:31:55.000Z | homework/AvilovaEM/05/BI.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 1 | 2018-02-26T12:40:47.000Z | 2018-02-26T12:40:47.000Z | homework/AvilovaEM/05/BI.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 33 | 2018-02-20T15:25:11.000Z | 2019-02-13T22:33:36.000Z | #include <cstdlib>
#include <cstring>
#include <stdint.h>
#include <utility>
#include <ostream>
#include <iostream>
#include <algorithm>
#include <memory>
class BigInt
{
public:
BigInt()
: sign(0)
, length(0)
, dataSize(0)
, data(nullptr) {}
BigInt(const long long &x)
{
... | 24.353222 | 85 | 0.409643 | nkotelevskii |
1c7b3fe3cf86dba04992823ab919c18ad59f7092 | 367 | hpp | C++ | glib/include/triangle.hpp | cesarus777/kt_glib | 96b4740f660535c3481645c4b45a3fd89a08c9e2 | [
"BSD-3-Clause"
] | 2 | 2020-09-22T13:44:47.000Z | 2021-12-10T07:46:24.000Z | glib/include/triangle.hpp | cesarus777/kt_glib | 96b4740f660535c3481645c4b45a3fd89a08c9e2 | [
"BSD-3-Clause"
] | null | null | null | glib/include/triangle.hpp | cesarus777/kt_glib | 96b4740f660535c3481645c4b45a3fd89a08c9e2 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <base.hpp>
namespace mygeo
{
class Triangle : public Polygon
{
public:
Triangle(Point p1, Point p2, Point p3) : Polygon({ p1, p2, p3 }, TRIANGLE) {}
Triangle(std::vector<Point> v) : Polygon(v, TRIANGLE)
{
if(v.size() != 3)
throw std::invalid_argument("Invalid Tri... | 19.315789 | 81 | 0.613079 | cesarus777 |
1c7d2a3d01ed78eabca75cff56475777866f1206 | 1,470 | hpp | C++ | include/proton/_mapped_type.hpp | calmdan/libproton | 229f2a963771049523c8a58dfa25d79b4b2417e0 | [
"BSD-2-Clause"
] | 1 | 2020-07-12T13:43:40.000Z | 2020-07-12T13:43:40.000Z | include/proton/_mapped_type.hpp | calmdan/libproton | 229f2a963771049523c8a58dfa25d79b4b2417e0 | [
"BSD-2-Clause"
] | null | null | null | include/proton/_mapped_type.hpp | calmdan/libproton | 229f2a963771049523c8a58dfa25d79b4b2417e0 | [
"BSD-2-Clause"
] | null | null | null | #ifndef PROTON_MAPPED_TYPE_HEADER
#define PROTON_MAPPED_TYPE_HEADER
namespace proton{
template <typename mapT, typename K>
typename mapT::mapped_type get(const mapT& x, K&& key)
{
auto it=x.find(key);
PROTON_THROW_IF(it==x.end(), "can't find the key in a map");
return it->second;
}
template <typename map... | 21.304348 | 82 | 0.631293 | calmdan |
1c80b6327bfbc8e4e1b6903e5ffc1e73575f323b | 2,387 | cpp | C++ | source/std.groupboxbuttonscontrol.cpp | wilsonsouza/stdx.frame.x86 | c9e0cc4c748f161367531990e5795a700f40e5ec | [
"Apache-2.0"
] | null | null | null | source/std.groupboxbuttonscontrol.cpp | wilsonsouza/stdx.frame.x86 | c9e0cc4c748f161367531990e5795a700f40e5ec | [
"Apache-2.0"
] | null | null | null | source/std.groupboxbuttonscontrol.cpp | wilsonsouza/stdx.frame.x86 | c9e0cc4c748f161367531990e5795a700f40e5ec | [
"Apache-2.0"
] | null | null | null | //-----------------------------------------------------------------------------------------------//
// dedaluslib.lib for Windows
//
// Created by Wilson.Souza 2012, 2013
// For Libbs Farma
//
// Dedalus Prime
// (c) 2012, 2013
//----------------------------------------------------------------------------------... | 34.1 | 100 | 0.385002 | wilsonsouza |
1c85325531a36596e3ceaa4b65f7076b2f8050e4 | 181 | hpp | C++ | include/FrogJump.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/FrogJump.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/FrogJump.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef FROG_JUMP_HPP_
#define FROG_JUMP_HPP_
#include <vector>
using namespace std;
class FrogJump {
public:
bool canCross(vector<int> &stones);
};
#endif // FROG_JUMP_HPP_ | 13.923077 | 39 | 0.745856 | yanzhe-chen |
1c8c19d674c1611e12874901794e29cc4ed89d85 | 10,093 | cpp | C++ | tests/http/http_fields/main.cpp | Stiffstream/arataga | b6e1720dd2df055949847425f12bb1af56edbe83 | [
"MIT",
"Newsletr",
"BSL-1.0",
"BSD-3-Clause"
] | 14 | 2021-01-08T15:43:37.000Z | 2021-11-06T19:30:15.000Z | tests/http/http_fields/main.cpp | Stiffstream/arataga | b6e1720dd2df055949847425f12bb1af56edbe83 | [
"MIT",
"Newsletr",
"BSL-1.0",
"BSD-3-Clause"
] | 5 | 2021-03-07T06:51:33.000Z | 2021-07-01T09:54:30.000Z | tests/http/http_fields/main.cpp | Stiffstream/arataga | b6e1720dd2df055949847425f12bb1af56edbe83 | [
"MIT",
"Newsletr",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h>
#include <arataga/acl_handler/buffers.hpp>
#include <restinio/helpers/string_algo.hpp>
#include <tests/connection_handler_simulator/pub.hpp>
#include <asio.hpp>
using namespace std::string_view_literals;
using namespace std::chrono_literals;
... | 26.012887 | 75 | 0.688497 | Stiffstream |
1c97d0af2d6e76bd95eb25c247ed0c479bf1420e | 1,306 | hpp | C++ | includes/text_analysis.hpp | JaredsAlgorithms/CS-131-Project-6 | e911ef84ed3cdc89251ead24eb5cf21da7282272 | [
"MIT"
] | null | null | null | includes/text_analysis.hpp | JaredsAlgorithms/CS-131-Project-6 | e911ef84ed3cdc89251ead24eb5cf21da7282272 | [
"MIT"
] | null | null | null | includes/text_analysis.hpp | JaredsAlgorithms/CS-131-Project-6 | e911ef84ed3cdc89251ead24eb5cf21da7282272 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm> /* std::transform */
#include <iostream>
#include <list>
#include <set>
#include <string> /* not needed for Mac OSX */
#include <unordered_map>
#include <vector>
class TextAnalysis {
public:
TextAnalysis() = default;
void add_word(const std::string&, size_t); // IMPLEMENT BELOW
... | 31.095238 | 78 | 0.671516 | JaredsAlgorithms |
1c98609ac81992193bbb7728945e00c6f3bfbee2 | 5,232 | cpp | C++ | VkMaterialSystem/os_input.cpp | khalladay/VkMaterialSystem | b8f83ed0ff0a4810d7f19868267d8e62f061e3c3 | [
"MIT"
] | 26 | 2017-12-04T17:51:22.000Z | 2022-02-17T16:50:54.000Z | VkMaterialSystem/os_input.cpp | khalladay/VkMaterialSystem | b8f83ed0ff0a4810d7f19868267d8e62f061e3c3 | [
"MIT"
] | 1 | 2019-07-08T12:48:30.000Z | 2019-08-09T11:51:08.000Z | VkMaterialSystem/os_input.cpp | khalladay/VkMaterialSystem | b8f83ed0ff0a4810d7f19868267d8e62f061e3c3 | [
"MIT"
] | 4 | 2018-06-14T18:31:07.000Z | 2022-02-28T12:16:00.000Z | #pragma once
#include "stdafx.h"
#include "os_input.h"
#include "os_support.h"
#define checkhf(expr, format, ...) if (FAILED(expr)) \
{ \
fprintf(stdout, "CHECK FAILED: %s:%d:%s " format "\n", __FILE__, __LINE__, __func__, ##__VA_ARGS__); \
CString dbgstr; ... | 27.536842 | 125 | 0.728402 | khalladay |
1c9a2ee7e7d53924ad0bc7a2663238d2aeb48c86 | 1,222 | cpp | C++ | 0639-Word Abbreviation/0639-Word Abbreviation.cpp | akekho/LintCode | 2d31f1ec092d89e70d5059c7fb2df2ee03da5981 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0601-0700/0639-Word Abbreviation/0639-Word Abbreviation.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0601-0700/0639-Word Abbreviation/0639-Word Abbreviation.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
/**
* @param dict: an array of n distinct non-empty strings
* @return: an array of minimal possible abbreviations for every word
*/
vector<string> wordsAbbreviation(vector<string> &dict) {
// write your code here
int n = dict.size();
unordered_map<... | 27.772727 | 82 | 0.438625 | akekho |
1ca2a7117330734b01c768bfca8c047ff7a1daa8 | 5,469 | cpp | C++ | src/obj_reg.cpp | robinzhoucmu/MLab_TrackingMocap | e9bd71ea546c545dfb1f4f406e72fe2822992046 | [
"BSD-2-Clause"
] | null | null | null | src/obj_reg.cpp | robinzhoucmu/MLab_TrackingMocap | e9bd71ea546c545dfb1f4f406e72fe2822992046 | [
"BSD-2-Clause"
] | null | null | null | src/obj_reg.cpp | robinzhoucmu/MLab_TrackingMocap | e9bd71ea546c545dfb1f4f406e72fe2822992046 | [
"BSD-2-Clause"
] | null | null | null | #include "obj_reg.h"
ObjectReg::ObjectReg() {
}
void ObjectReg::Serialize(std::ostream & fout) {
// First 3 lines of cali marker positions.
for (int i = 0; i < 3; ++i) {
const Vec& p = cali_markers_pos[i];
for (int j = 0; j < 3; ++j ) {
fout << p[j] << " ";
}
fout << std::endl;
}
// Seri... | 31.796512 | 126 | 0.669592 | robinzhoucmu |
1caab0212a24f6b421caa406dfc7099da758fd9c | 2,749 | cc | C++ | autolign.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | autolign.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | autolign.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | #include "project.hh"
#include "topology.hh"
#include "random.hh"
#include "cudamem.hh"
#include "project.hh"
#include "ppm.hh"
#include "warp.hh"
#include "partrait.hh"
#include "encgen.hh"
#include "autoposer.hh"
#include "imgutils.hh"
#include <math.h>
#include <map>
using namespace makemore;
int main(int argc,... | 26.432692 | 83 | 0.624227 | jdb19937 |
1cb37e2cd6062198c9923ef3446250367fbe4e49 | 802 | hpp | C++ | include/pipes/override.hpp | LouisCharlesC/pipes | 1100066894ceca3aebfc3e2fa12287600ab3a0f6 | [
"MIT"
] | null | null | null | include/pipes/override.hpp | LouisCharlesC/pipes | 1100066894ceca3aebfc3e2fa12287600ab3a0f6 | [
"MIT"
] | null | null | null | include/pipes/override.hpp | LouisCharlesC/pipes | 1100066894ceca3aebfc3e2fa12287600ab3a0f6 | [
"MIT"
] | null | null | null | #ifndef BEGIN_HPP
#define BEGIN_HPP
#include "pipes/operator.hpp"
#include "pipes/base.hpp"
#include <iterator>
#include <utility>
namespace pipes
{
template<typename Iterator>
class override_pipeline : public pipeline_base<override_pipeline<Iterator>>
{
public:
template<typename T>
... | 21.675676 | 96 | 0.630923 | LouisCharlesC |
1cbb247d98e296b1933ce7cc4988b8bd682a6119 | 743 | hpp | C++ | SDK/ARKSurvivalEvolved_DmgType_Trike_Reflected_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_DmgType_Trike_Reflected_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_DmgType_Trike_Reflected_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DmgType_Trike_Reflected_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//-------------------------------------------------... | 20.081081 | 116 | 0.621803 | 2bite |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.